dom-render 1.0.79 → 1.0.80

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -541,7 +541,8 @@ var EventManager = /** @class */ (function () {
541
541
  map.forEach(function (v, k) {
542
542
  var data = ScriptUtils.eval("const $element = this.element; return ".concat(v, " "), Object.assign(obj, {
543
543
  __render: Object.freeze({
544
- element: it
544
+ element: it,
545
+ attribute: DomUtils.getAttributeToObject(it)
545
546
  })
546
547
  }));
547
548
  it.setAttribute(k, data);
@@ -553,26 +554,6 @@ var EventManager = /** @class */ (function () {
553
554
  it.obj = obj;
554
555
  });
555
556
  });
556
- // on-init event
557
- this.procAttr(childNodes, EventManager.onInitAttrName, function (it, attribute) {
558
- var script = attribute;
559
- if (script) {
560
- script = 'return ' + script;
561
- }
562
- if (script) {
563
- ScriptUtils.eval("".concat(_this.bindScript, "; ").concat(script, " "), Object.assign(obj, {
564
- __render: Object.freeze({
565
- element: it
566
- })
567
- }));
568
- // console.log('onInit--->', obj, varName, it)
569
- // if (typeof this.getValue(obj, varName) === 'function') {
570
- // this.getValue(obj, varName)(it);
571
- // } else {
572
- // this.setValue(obj, varName, it);
573
- // }
574
- }
575
- });
576
557
  // value-link event
577
558
  this.procAttr(childNodes, EventManager.valueLinkAttrName, function (it, varName) {
578
559
  if (varName) {
@@ -621,6 +602,7 @@ var EventManager = /** @class */ (function () {
621
602
  __render: Object.freeze({
622
603
  event: event,
623
604
  element: it,
605
+ attribute: DomUtils.getAttributeToObject(it),
624
606
  target: event.target,
625
607
  range: Range.range,
626
608
  scripts: EventManager.setBindProperty(config === null || config === void 0 ? void 0 : config.scripts, obj)
@@ -636,6 +618,27 @@ var EventManager = /** @class */ (function () {
636
618
  });
637
619
  }
638
620
  });
621
+ // on-init event
622
+ this.procAttr(childNodes, EventManager.onInitAttrName, function (it, attribute) {
623
+ var script = attribute;
624
+ if (script) {
625
+ script = 'return ' + script;
626
+ }
627
+ if (script) {
628
+ ScriptUtils.eval("".concat(_this.bindScript, "; ").concat(script, " "), Object.assign(obj, {
629
+ __render: Object.freeze({
630
+ element: it,
631
+ attribute: DomUtils.getAttributeToObject(it)
632
+ })
633
+ }));
634
+ // console.log('onInit--->', obj, varName, it)
635
+ // if (typeof this.getValue(obj, varName) === 'function') {
636
+ // this.getValue(obj, varName)(it);
637
+ // } else {
638
+ // this.setValue(obj, varName, it);
639
+ // }
640
+ }
641
+ });
639
642
  this.changeVar(obj, childNodes, undefined, config);
640
643
  // console.log('eventManager-applyEvent-->', config?.applyEvents)
641
644
  var elements = Array.from(childNodes).filter(function (it) { return it.nodeType === 1; }).map(function (it) { return it; });
@@ -683,7 +686,8 @@ var EventManager = /** @class */ (function () {
683
686
  if (EventManager.isUsingThisVar(script, varName) || varName === undefined) {
684
687
  var data = ScriptUtils.eval("const $element = this.__render.element; ".concat(script, " "), Object.assign(obj, {
685
688
  __render: Object.freeze({
686
- element: it
689
+ element: it,
690
+ attribute: DomUtils.getAttributeToObject(it)
687
691
  })
688
692
  }));
689
693
  if (typeof data === 'string') {
@@ -734,7 +738,8 @@ var EventManager = /** @class */ (function () {
734
738
  if (EventManager.isUsingThisVar(script, varName) || varName === undefined) {
735
739
  var data = ScriptUtils.eval("const $element = this.__render.element; ".concat(script, " "), Object.assign(obj, {
736
740
  __render: Object.freeze({
737
- element: it
741
+ element: it,
742
+ attribute: DomUtils.getAttributeToObject(it)
738
743
  })
739
744
  }));
740
745
  if (typeof data === 'string') {
@@ -762,7 +767,8 @@ var EventManager = /** @class */ (function () {
762
767
  if (EventManager.isUsingThisVar(script, varName) || varName === undefined) {
763
768
  var data = ScriptUtils.eval("const $element = this.element; ".concat(script, " "), Object.assign(obj, {
764
769
  __render: Object.freeze({
765
- element: it
770
+ element: it,
771
+ attribute: DomUtils.getAttributeToObject(it)
766
772
  })
767
773
  }));
768
774
  if (typeof data === 'string') {
@@ -796,7 +802,8 @@ var EventManager = /** @class */ (function () {
796
802
  if (isUsing) {
797
803
  var data = ScriptUtils.eval("const $element = this.element; return ".concat(v, " "), Object.assign(obj, {
798
804
  __render: Object.freeze({
799
- element: it
805
+ element: it,
806
+ attribute: DomUtils.getAttributeToObject(it)
800
807
  })
801
808
  }));
802
809
  it.setAttribute(k, data);
@@ -813,14 +820,13 @@ var EventManager = /** @class */ (function () {
813
820
  it.addEventListener(eventName, function (event) {
814
821
  var filter = true;
815
822
  var filterScript = it.getAttribute("".concat(attr, ":filter"));
816
- var attribute = DomUtils.getAttributeToObject(it);
817
823
  var thisTarget = Object.assign(obj, {
818
824
  __render: Object.freeze({
819
825
  event: event,
820
826
  element: it,
821
827
  target: event.target,
822
828
  range: Range.range,
823
- attribute: attribute,
829
+ attribute: DomUtils.getAttributeToObject(it),
824
830
  router: config === null || config === void 0 ? void 0 : config.router,
825
831
  scripts: EventManager.setBindProperty(config === null || config === void 0 ? void 0 : config.scripts, obj)
826
832
  })
@@ -856,6 +862,7 @@ var EventManager = /** @class */ (function () {
856
862
  __render: Object.freeze({
857
863
  event: event,
858
864
  element: it,
865
+ attribute: DomUtils.getAttributeToObject(it),
859
866
  target: event.target,
860
867
  range: Range.range,
861
868
  scripts: EventManager.setBindProperty(config === null || config === void 0 ? void 0 : config.scripts, obj),
@@ -1016,7 +1023,7 @@ var Dr = /** @class */ (function (_super) {
1016
1023
  var tempalte = this.source.config.window.document.createElement('template');
1017
1024
  tempalte.innerHTML = newTemp.innerHTML;
1018
1025
  this.returnContainer.fag.append(tempalte.content);
1019
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1026
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1020
1027
  (_c = this.elementSource.element.parentNode) === null || _c === void 0 ? void 0 : _c.replaceChild(this.returnContainer.fag, this.elementSource.element);
1021
1028
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1022
1029
  return exports.ExecuteState.EXECUTE;
@@ -1053,7 +1060,7 @@ var DrIf = /** @class */ (function (_super) {
1053
1060
  tempalte.innerHTML = newTemp.innerHTML;
1054
1061
  // console.log(tempalte.innerHTML)
1055
1062
  this.returnContainer.fag.append(tempalte.content);
1056
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1063
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1057
1064
  (_e = this.elementSource.element.parentNode) === null || _e === void 0 ? void 0 : _e.replaceChild(this.returnContainer.fag, this.elementSource.element);
1058
1065
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1059
1066
  // if (bypass) {
@@ -1100,7 +1107,7 @@ var DrThis = /** @class */ (function (_super) {
1100
1107
  else {
1101
1108
  this.returnContainer.fag.append(RawSet.drThisCreate(this.elementSource.element, this.elementSource.attrs.drThis, (_e = this.elementSource.attrs.drVarOption) !== null && _e !== void 0 ? _e : '', this.elementSource.attrs.drStripOption, this.source.obj, this.source.config));
1102
1109
  }
1103
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1110
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1104
1111
  (_f = this.elementSource.element.parentNode) === null || _f === void 0 ? void 0 : _f.replaceChild(this.returnContainer.fag, this.elementSource.element);
1105
1112
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1106
1113
  }
@@ -1499,7 +1506,7 @@ var DrForm = /** @class */ (function (_super) {
1499
1506
  }
1500
1507
  });
1501
1508
  RawSet.drFormOtherMoveAttr(this.elementSource.element, 'temp-name', 'name', this.source.config);
1502
- (_a = this.returnContainer.raws).push.apply(_a, RawSet.checkPointCreates(this.elementSource.element, this.source.config));
1509
+ (_a = this.returnContainer.raws).push.apply(_a, RawSet.checkPointCreates(this.elementSource.element, this.source.obj, this.source.config));
1503
1510
  return exports.ExecuteState.EXECUTE;
1504
1511
  }
1505
1512
  return exports.ExecuteState.NO_EXECUTE;
@@ -1523,7 +1530,7 @@ var DrInnerText = /** @class */ (function (_super) {
1523
1530
  var tempalte = this.source.config.window.document.createElement('template');
1524
1531
  tempalte.innerHTML = newTemp.innerHTML;
1525
1532
  this.returnContainer.fag.append(tempalte.content);
1526
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1533
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1527
1534
  (_d = this.elementSource.element.parentNode) === null || _d === void 0 ? void 0 : _d.replaceChild(this.returnContainer.fag, this.elementSource.element);
1528
1535
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1529
1536
  return exports.ExecuteState.EXECUTE;
@@ -1551,7 +1558,7 @@ var DrInnerHTML = /** @class */ (function (_super) {
1551
1558
  var tempalte = this.source.config.window.document.createElement('template');
1552
1559
  tempalte.innerHTML = newTemp.innerHTML;
1553
1560
  this.returnContainer.fag.append(tempalte.content);
1554
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1561
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1555
1562
  (_d = this.elementSource.element.parentNode) === null || _d === void 0 ? void 0 : _d.replaceChild(this.returnContainer.fag, this.elementSource.element);
1556
1563
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1557
1564
  return exports.ExecuteState.EXECUTE;
@@ -1581,7 +1588,7 @@ var DrFor = /** @class */ (function (_super) {
1581
1588
  var tempalte = this.source.config.window.document.createElement('template');
1582
1589
  tempalte.innerHTML = newTemp.innerHTML;
1583
1590
  this.returnContainer.fag.append(tempalte.content);
1584
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1591
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1585
1592
  (_e = this.elementSource.element.parentNode) === null || _e === void 0 ? void 0 : _e.replaceChild(this.returnContainer.fag, this.elementSource.element);
1586
1593
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1587
1594
  return exports.ExecuteState.EXECUTE;
@@ -1613,7 +1620,7 @@ var DrForOf = /** @class */ (function (_super) {
1613
1620
  var tempalte = this.source.config.window.document.createElement('template');
1614
1621
  tempalte.innerHTML = newTemp.innerHTML;
1615
1622
  this.returnContainer.fag.append(tempalte.content);
1616
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1623
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1617
1624
  (_e = this.elementSource.element.parentNode) === null || _e === void 0 ? void 0 : _e.replaceChild(this.returnContainer.fag, this.elementSource.element);
1618
1625
  // const rrr = rr.flatMap(it => it.render(obj, config));// .flat();
1619
1626
  (_a = this.returnContainer.raws).push.apply(_a, rr);
@@ -1646,7 +1653,7 @@ var DrAppender = /** @class */ (function (_super) {
1646
1653
  var tempalte = this.source.config.window.document.createElement('template');
1647
1654
  tempalte.innerHTML = newTemp.innerHTML;
1648
1655
  this.returnContainer.fag.append(tempalte.content);
1649
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1656
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1650
1657
  (_e = this.elementSource.element.parentNode) === null || _e === void 0 ? void 0 : _e.replaceChild(this.returnContainer.fag, this.elementSource.element);
1651
1658
  // const rrr = rr.flatMap(it => it.render(obj, config));// .flat();
1652
1659
  (_a = this.returnContainer.raws).push.apply(_a, rr);
@@ -1677,7 +1684,7 @@ var DrRepeat = /** @class */ (function (_super) {
1677
1684
  var tempalte = this.source.config.window.document.createElement('template');
1678
1685
  tempalte.innerHTML = newTemp.innerHTML;
1679
1686
  this.returnContainer.fag.append(tempalte.content);
1680
- var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.config);
1687
+ var rr = RawSet.checkPointCreates(this.returnContainer.fag, this.source.obj, this.source.config);
1681
1688
  (_e = this.elementSource.element.parentNode) === null || _e === void 0 ? void 0 : _e.replaceChild(this.returnContainer.fag, this.elementSource.element);
1682
1689
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1683
1690
  return exports.ExecuteState.EXECUTE;
@@ -1739,7 +1746,7 @@ var DrTargetElement = /** @class */ (function (_super) {
1739
1746
  };
1740
1747
  }
1741
1748
  // fag.append(documentFragment)
1742
- var rr = RawSet.checkPointCreates(documentFragment, this.source.config);
1749
+ var rr = RawSet.checkPointCreates(documentFragment, this.source.obj, this.source.config);
1743
1750
  (_d = this.elementSource.element.parentNode) === null || _d === void 0 ? void 0 : _d.replaceChild(documentFragment, this.elementSource.element);
1744
1751
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1745
1752
  this.afterCallBack.onElementInitCallBacks.push({
@@ -1774,7 +1781,7 @@ var DrTargetAttr = /** @class */ (function (_super) {
1774
1781
  if (attrValue && attrName && (!this.elementSource.attrs.drForOf && !this.elementSource.attrs.drFor && !this.elementSource.attrs.drRepeat)) {
1775
1782
  var documentFragment = targetAttr.callBack(this.elementSource.element, attrValue, this.source.obj, this.rawSet);
1776
1783
  if (documentFragment) {
1777
- var rr = RawSet.checkPointCreates(documentFragment, this.source.config);
1784
+ var rr = RawSet.checkPointCreates(documentFragment, this.source.obj, this.source.config);
1778
1785
  (_d = this.elementSource.element.parentNode) === null || _d === void 0 ? void 0 : _d.replaceChild(documentFragment, this.elementSource.element);
1779
1786
  (_a = this.returnContainer.raws).push.apply(_a, rr);
1780
1787
  this.afterCallBack.onAttrInitCallBacks.push({
@@ -2053,7 +2060,7 @@ var RawSet = /** @class */ (function () {
2053
2060
  (_a = this.point.start.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(genNode, this.point.start.nextSibling);
2054
2061
  };
2055
2062
  // 중요 important
2056
- RawSet.checkPointCreates = function (element, config) {
2063
+ RawSet.checkPointCreates = function (element, obj, config) {
2057
2064
  var _a, _b, _c, _d, _e, _f, _g, _h;
2058
2065
  var thisVariableName = element.__domrender_this_variable_name;
2059
2066
  // console.log('checkPointCreates thisVariableName', thisVariableName);
@@ -2607,7 +2614,7 @@ var DomRenderProxy = /** @class */ (function () {
2607
2614
  (_d = (_c = this._domRender_proxy) === null || _c === void 0 ? void 0 : _c.onCreateRender) === null || _d === void 0 ? void 0 : _d.call(_c, createParam);
2608
2615
  var innerHTML = (_e = target.innerHTML) !== null && _e !== void 0 ? _e : '';
2609
2616
  this._targets.add(target);
2610
- var rawSets = RawSet.checkPointCreates(target, this.config);
2617
+ var rawSets = RawSet.checkPointCreates(target, this._domRender_proxy, this.config);
2611
2618
  // console.log('initRender -------rawSet', rawSets)
2612
2619
  // 중요 초기에 한번 튕겨줘야함.
2613
2620
  eventManager.applyEvent(this._domRender_proxy, eventManager.findAttrElements(target, this.config), this.config);
@@ -3360,48 +3367,36 @@ var DomRender = /** @class */ (function () {
3360
3367
  domRender.run(robj);
3361
3368
  return robj;
3362
3369
  };
3363
- DomRender.addComponent = function (config, _a, _b) {
3364
- var _c;
3365
- var type = _a.type, _d = _a.tagName, tagName = _d === void 0 ? type.name : _d;
3366
- var template = _b.template, _e = _b.styles, styles = _e === void 0 ? [] : _e, _f = _b.styleLocale, styleLocale = _f === void 0 ? false : _f;
3367
- var component = RawSet.createComponentTargetElement(tagName, function (e, o, r2, counstructorParam) {
3368
- return new (type.bind.apply(type, __spreadArray([void 0], counstructorParam, false)))();
3369
- }, template, styles, styleLocale, config);
3370
- config.targetElements = (_c = config.targetElements) !== null && _c !== void 0 ? _c : [];
3371
- config.targetElements.push(component);
3372
- return {
3373
- add: function (source, front) {
3374
- return DomRender.addComponent(config, source, front);
3375
- }
3376
- };
3370
+ DomRender.createComponent = function (param, config) {
3371
+ var _a, _b;
3372
+ var component = RawSet.createComponentTargetElement((_a = param.tagName) !== null && _a !== void 0 ? _a : param.type.name, function (e, o, r2, counstructorParam) {
3373
+ var _a;
3374
+ return new ((_a = param.type).bind.apply(_a, __spreadArray([void 0], counstructorParam, false)))();
3375
+ }, (_b = param.template) !== null && _b !== void 0 ? _b : '', Array.isArray(param.styles) ? param.styles : (param.styles ? [param.styles] : undefined), false, config);
3376
+ return component;
3377
3377
  };
3378
- DomRender.addAttribute = function (config, attrName, getThisObj, factory) {
3379
- var _a;
3378
+ DomRender.createAttribute = function (attrName, getThisObj, factory) {
3380
3379
  var targetAttribute = RawSet.createComponentTargetAttribute(attrName, getThisObj, factory);
3381
- config.targetAttrs = (_a = config.targetAttrs) !== null && _a !== void 0 ? _a : [];
3382
- config.targetAttrs.push(targetAttribute);
3383
- return {
3384
- add: function (attrName, getThisObj, factory) {
3385
- return DomRender.addAttribute(config, attrName, getThisObj, factory);
3386
- }
3387
- };
3388
- };
3389
- DomRender.addAttributeCallBack = function (config, attrName, callBack) {
3390
- var _a;
3391
- config.applyEvents = (_a = config.applyEvents) !== null && _a !== void 0 ? _a : [];
3392
- config.applyEvents.push({
3393
- attrName: attrName,
3394
- callBack: callBack
3395
- });
3396
- return {
3397
- add: function (attrName, callBack) {
3398
- return DomRender.addAttributeCallBack(config, attrName, callBack);
3399
- }
3400
- };
3380
+ return targetAttribute;
3401
3381
  };
3402
3382
  return DomRender;
3403
3383
  }());
3404
3384
 
3385
+ var RenderManager = /** @class */ (function () {
3386
+ function RenderManager() {
3387
+ }
3388
+ RenderManager.render = function (obj, target) {
3389
+ if (target === void 0) { target = Object.keys(obj); }
3390
+ var domRenderProxy = obj._DomRender_proxy;
3391
+ if (domRenderProxy) {
3392
+ target.forEach(function (it) {
3393
+ domRenderProxy.root([it], obj[it]);
3394
+ });
3395
+ }
3396
+ };
3397
+ return RenderManager;
3398
+ }());
3399
+
3405
3400
  var Appender = /** @class */ (function () {
3406
3401
  // [keys: string]: any;
3407
3402
  function Appender() {
@@ -3431,21 +3426,6 @@ var Appender = /** @class */ (function () {
3431
3426
  return Appender;
3432
3427
  }());
3433
3428
 
3434
- var RenderManager = /** @class */ (function () {
3435
- function RenderManager() {
3436
- }
3437
- RenderManager.render = function (obj, target) {
3438
- if (target === void 0) { target = Object.keys(obj); }
3439
- var domRenderProxy = obj._DomRender_proxy;
3440
- if (domRenderProxy) {
3441
- target.forEach(function (it) {
3442
- domRenderProxy.root([it], obj[it]);
3443
- });
3444
- }
3445
- };
3446
- return RenderManager;
3447
- }());
3448
-
3449
3429
  var AllCheckedValidatorArray = /** @class */ (function (_super) {
3450
3430
  __extends(AllCheckedValidatorArray, _super);
3451
3431
  function AllCheckedValidatorArray(value, target, event, autoValid) {
@@ -3487,6 +3467,34 @@ var CountEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3487
3467
  return CountEqualsCheckedValidatorArray;
3488
3468
  }(ValidatorArray));
3489
3469
 
3470
+ var CheckedValidator = /** @class */ (function (_super) {
3471
+ __extends(CheckedValidator, _super);
3472
+ function CheckedValidator(value, target, event, autoValid) {
3473
+ if (autoValid === void 0) { autoValid = true; }
3474
+ return _super.call(this, value, target, event, autoValid) || this;
3475
+ }
3476
+ CheckedValidator.prototype.valid = function () {
3477
+ var _a, _b;
3478
+ return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
3479
+ };
3480
+ return CheckedValidator;
3481
+ }(Validator));
3482
+
3483
+ var CountGreaterThanCheckedValidatorArray = /** @class */ (function (_super) {
3484
+ __extends(CountGreaterThanCheckedValidatorArray, _super);
3485
+ function CountGreaterThanCheckedValidatorArray(count, value, target, event, autoValid) {
3486
+ if (autoValid === void 0) { autoValid = true; }
3487
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3488
+ _this.count = count;
3489
+ return _this;
3490
+ }
3491
+ CountGreaterThanCheckedValidatorArray.prototype.valid = function () {
3492
+ var _a;
3493
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > this.count;
3494
+ };
3495
+ return CountGreaterThanCheckedValidatorArray;
3496
+ }(ValidatorArray));
3497
+
3490
3498
  var CountEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3491
3499
  __extends(CountEqualsUnCheckedValidatorArray, _super);
3492
3500
  function CountEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
@@ -3502,34 +3510,21 @@ var CountEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3502
3510
  return CountEqualsUnCheckedValidatorArray;
3503
3511
  }(ValidatorArray));
3504
3512
 
3505
- var CountGreaterThanCheckedValidatorArray = /** @class */ (function (_super) {
3506
- __extends(CountGreaterThanCheckedValidatorArray, _super);
3507
- function CountGreaterThanCheckedValidatorArray(count, value, target, event, autoValid) {
3513
+ var CountLessThanEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3514
+ __extends(CountLessThanEqualsCheckedValidatorArray, _super);
3515
+ function CountLessThanEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3508
3516
  if (autoValid === void 0) { autoValid = true; }
3509
3517
  var _this = _super.call(this, value, target, event, autoValid) || this;
3510
3518
  _this.count = count;
3511
3519
  return _this;
3512
3520
  }
3513
- CountGreaterThanCheckedValidatorArray.prototype.valid = function () {
3521
+ CountLessThanEqualsCheckedValidatorArray.prototype.valid = function () {
3514
3522
  var _a;
3515
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > this.count;
3523
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length <= this.count;
3516
3524
  };
3517
- return CountGreaterThanCheckedValidatorArray;
3525
+ return CountLessThanEqualsCheckedValidatorArray;
3518
3526
  }(ValidatorArray));
3519
3527
 
3520
- var CheckedValidator = /** @class */ (function (_super) {
3521
- __extends(CheckedValidator, _super);
3522
- function CheckedValidator(value, target, event, autoValid) {
3523
- if (autoValid === void 0) { autoValid = true; }
3524
- return _super.call(this, value, target, event, autoValid) || this;
3525
- }
3526
- CheckedValidator.prototype.valid = function () {
3527
- var _a, _b;
3528
- return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
3529
- };
3530
- return CheckedValidator;
3531
- }(Validator));
3532
-
3533
3528
  var CountGreaterThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3534
3529
  __extends(CountGreaterThanEqualsUnCheckedValidatorArray, _super);
3535
3530
  function CountGreaterThanEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
@@ -3545,34 +3540,34 @@ var CountGreaterThanEqualsUnCheckedValidatorArray = /** @class */ (function (_su
3545
3540
  return CountGreaterThanEqualsUnCheckedValidatorArray;
3546
3541
  }(ValidatorArray));
3547
3542
 
3548
- var CountGreaterThanEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3549
- __extends(CountGreaterThanEqualsCheckedValidatorArray, _super);
3550
- function CountGreaterThanEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3543
+ var CountLessThanCheckedValidatorArray = /** @class */ (function (_super) {
3544
+ __extends(CountLessThanCheckedValidatorArray, _super);
3545
+ function CountLessThanCheckedValidatorArray(count, value, target, event, autoValid) {
3551
3546
  if (autoValid === void 0) { autoValid = true; }
3552
3547
  var _this = _super.call(this, value, target, event, autoValid) || this;
3553
3548
  _this.count = count;
3554
3549
  return _this;
3555
3550
  }
3556
- CountGreaterThanEqualsCheckedValidatorArray.prototype.valid = function () {
3551
+ CountLessThanCheckedValidatorArray.prototype.valid = function () {
3557
3552
  var _a;
3558
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length >= this.count;
3553
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length < this.count;
3559
3554
  };
3560
- return CountGreaterThanEqualsCheckedValidatorArray;
3555
+ return CountLessThanCheckedValidatorArray;
3561
3556
  }(ValidatorArray));
3562
3557
 
3563
- var CountLessThanEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3564
- __extends(CountLessThanEqualsCheckedValidatorArray, _super);
3565
- function CountLessThanEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3558
+ var CountGreaterThanEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3559
+ __extends(CountGreaterThanEqualsCheckedValidatorArray, _super);
3560
+ function CountGreaterThanEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3566
3561
  if (autoValid === void 0) { autoValid = true; }
3567
3562
  var _this = _super.call(this, value, target, event, autoValid) || this;
3568
3563
  _this.count = count;
3569
3564
  return _this;
3570
3565
  }
3571
- CountLessThanEqualsCheckedValidatorArray.prototype.valid = function () {
3566
+ CountGreaterThanEqualsCheckedValidatorArray.prototype.valid = function () {
3572
3567
  var _a;
3573
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length <= this.count;
3568
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length >= this.count;
3574
3569
  };
3575
- return CountLessThanEqualsCheckedValidatorArray;
3570
+ return CountGreaterThanEqualsCheckedValidatorArray;
3576
3571
  }(ValidatorArray));
3577
3572
 
3578
3573
  var CountLessThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
@@ -3620,21 +3615,6 @@ var CountLessThanUnCheckedValidatorArray = /** @class */ (function (_super) {
3620
3615
  return CountLessThanUnCheckedValidatorArray;
3621
3616
  }(ValidatorArray));
3622
3617
 
3623
- var CountLessThanCheckedValidatorArray = /** @class */ (function (_super) {
3624
- __extends(CountLessThanCheckedValidatorArray, _super);
3625
- function CountLessThanCheckedValidatorArray(count, value, target, event, autoValid) {
3626
- if (autoValid === void 0) { autoValid = true; }
3627
- var _this = _super.call(this, value, target, event, autoValid) || this;
3628
- _this.count = count;
3629
- return _this;
3630
- }
3631
- CountLessThanCheckedValidatorArray.prototype.valid = function () {
3632
- var _a;
3633
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length < this.count;
3634
- };
3635
- return CountLessThanCheckedValidatorArray;
3636
- }(ValidatorArray));
3637
-
3638
3618
  var CountUnCheckedValidatorArray = /** @class */ (function (_super) {
3639
3619
  __extends(CountUnCheckedValidatorArray, _super);
3640
3620
  function CountUnCheckedValidatorArray(count, value, target, event, autoValid) {
@@ -3686,28 +3666,6 @@ var IncludeCheckedValidatorArray = /** @class */ (function (_super) {
3686
3666
  return IncludeCheckedValidatorArray;
3687
3667
  }(ValidatorArray));
3688
3668
 
3689
- var ExcludeCheckedValidatorArray = /** @class */ (function (_super) {
3690
- __extends(ExcludeCheckedValidatorArray, _super);
3691
- function ExcludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3692
- if (allRequired === void 0) { allRequired = false; }
3693
- if (autoValid === void 0) { autoValid = true; }
3694
- var _this = _super.call(this, value, target, event, autoValid) || this;
3695
- _this.include = include;
3696
- _this.allRequired = allRequired;
3697
- return _this;
3698
- }
3699
- ExcludeCheckedValidatorArray.prototype.valid = function () {
3700
- var _this = this;
3701
- var _a;
3702
- var valus = (_a = this.value) !== null && _a !== void 0 ? _a : [];
3703
- var unCheckedValue = valus.filter(function (it) { return !it.checked; }).map(function (it) { return it.value; });
3704
- return unCheckedValue.length > 0 &&
3705
- (!(unCheckedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3706
- (this.allRequired ? unCheckedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3707
- };
3708
- return ExcludeCheckedValidatorArray;
3709
- }(ValidatorArray));
3710
-
3711
3669
  var NotEmptyValidator = /** @class */ (function (_super) {
3712
3670
  __extends(NotEmptyValidator, _super);
3713
3671
  function NotEmptyValidator(value, target, event, autoValid) {
@@ -3723,24 +3681,6 @@ var NotEmptyValidator = /** @class */ (function (_super) {
3723
3681
  return NotEmptyValidator;
3724
3682
  }(Validator));
3725
3683
 
3726
- var FormValidator = /** @class */ (function (_super) {
3727
- __extends(FormValidator, _super);
3728
- function FormValidator(target, event, autoValid) {
3729
- if (autoValid === void 0) { autoValid = true; }
3730
- return _super.call(this, undefined, target, event, autoValid) || this;
3731
- }
3732
- FormValidator.prototype.validAction = function () {
3733
- return _super.prototype.childValidAction.call(this);
3734
- };
3735
- FormValidator.prototype.valid = function () {
3736
- return this.childValid();
3737
- };
3738
- FormValidator.prototype.reset = function () {
3739
- this.targetReset();
3740
- };
3741
- return FormValidator;
3742
- }(Validator));
3743
-
3744
3684
  var MultipleValidator = /** @class */ (function (_super) {
3745
3685
  __extends(MultipleValidator, _super);
3746
3686
  function MultipleValidator(validators, value, target, event, autoValid) {
@@ -3770,6 +3710,58 @@ var MultipleValidator = /** @class */ (function (_super) {
3770
3710
  return MultipleValidator;
3771
3711
  }(Validator));
3772
3712
 
3713
+ var FormValidator = /** @class */ (function (_super) {
3714
+ __extends(FormValidator, _super);
3715
+ function FormValidator(target, event, autoValid) {
3716
+ if (autoValid === void 0) { autoValid = true; }
3717
+ return _super.call(this, undefined, target, event, autoValid) || this;
3718
+ }
3719
+ FormValidator.prototype.validAction = function () {
3720
+ return _super.prototype.childValidAction.call(this);
3721
+ };
3722
+ FormValidator.prototype.valid = function () {
3723
+ return this.childValid();
3724
+ };
3725
+ FormValidator.prototype.reset = function () {
3726
+ this.targetReset();
3727
+ };
3728
+ return FormValidator;
3729
+ }(Validator));
3730
+
3731
+ var ExcludeCheckedValidatorArray = /** @class */ (function (_super) {
3732
+ __extends(ExcludeCheckedValidatorArray, _super);
3733
+ function ExcludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3734
+ if (allRequired === void 0) { allRequired = false; }
3735
+ if (autoValid === void 0) { autoValid = true; }
3736
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3737
+ _this.include = include;
3738
+ _this.allRequired = allRequired;
3739
+ return _this;
3740
+ }
3741
+ ExcludeCheckedValidatorArray.prototype.valid = function () {
3742
+ var _this = this;
3743
+ var _a;
3744
+ var valus = (_a = this.value) !== null && _a !== void 0 ? _a : [];
3745
+ var unCheckedValue = valus.filter(function (it) { return !it.checked; }).map(function (it) { return it.value; });
3746
+ return unCheckedValue.length > 0 &&
3747
+ (!(unCheckedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3748
+ (this.allRequired ? unCheckedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3749
+ };
3750
+ return ExcludeCheckedValidatorArray;
3751
+ }(ValidatorArray));
3752
+
3753
+ var PassValidator = /** @class */ (function (_super) {
3754
+ __extends(PassValidator, _super);
3755
+ function PassValidator(value, target, event, autoValid) {
3756
+ if (autoValid === void 0) { autoValid = true; }
3757
+ return _super.call(this, value, target, event, autoValid) || this;
3758
+ }
3759
+ PassValidator.prototype.valid = function () {
3760
+ return true;
3761
+ };
3762
+ return PassValidator;
3763
+ }(Validator));
3764
+
3773
3765
  var NotRegExpTestValidator = /** @class */ (function (_super) {
3774
3766
  __extends(NotRegExpTestValidator, _super);
3775
3767
  function NotRegExpTestValidator(regexp, value, target, event, autoValid) {
@@ -3792,40 +3784,18 @@ var NotRegExpTestValidator = /** @class */ (function (_super) {
3792
3784
  return NotRegExpTestValidator;
3793
3785
  }(Validator));
3794
3786
 
3795
- var RegExpTestValidator = /** @class */ (function (_super) {
3796
- __extends(RegExpTestValidator, _super);
3797
- function RegExpTestValidator(regexp, value, target, event, autoValid) {
3787
+ var ValidValidator = /** @class */ (function (_super) {
3788
+ __extends(ValidValidator, _super);
3789
+ function ValidValidator(validCallBack, value, target, event, autoValid) {
3798
3790
  if (autoValid === void 0) { autoValid = true; }
3799
3791
  var _this = _super.call(this, value, target, event, autoValid) || this;
3800
- _this.regexp = DomRenderProxy.final(regexp);
3792
+ _this.validCallBack = validCallBack;
3801
3793
  return _this;
3802
3794
  }
3803
- RegExpTestValidator.prototype.valid = function () {
3804
- var _a;
3805
- var value = this.value;
3806
- var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
3807
- // console.log('regexp-->', value, this.regexp, regExp.test(value))
3808
- if (value) {
3809
- return regExp.test(value);
3810
- }
3811
- else {
3812
- return false;
3813
- }
3814
- };
3815
- return RegExpTestValidator;
3816
- }(Validator));
3817
-
3818
- var UnCheckedValidator = /** @class */ (function (_super) {
3819
- __extends(UnCheckedValidator, _super);
3820
- function UnCheckedValidator(value, target, event, autoValid) {
3821
- if (autoValid === void 0) { autoValid = true; }
3822
- return _super.call(this, value, target, event, autoValid) || this;
3823
- }
3824
- UnCheckedValidator.prototype.valid = function () {
3825
- var _a, _b;
3826
- return !((_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false);
3795
+ ValidValidator.prototype.valid = function (value, target, event) {
3796
+ return this.validCallBack(value, target, event);
3827
3797
  };
3828
- return UnCheckedValidator;
3798
+ return ValidValidator;
3829
3799
  }(Validator));
3830
3800
 
3831
3801
  var ValidMultipleValidator = /** @class */ (function (_super) {
@@ -3843,16 +3813,27 @@ var ValidMultipleValidator = /** @class */ (function (_super) {
3843
3813
  return ValidMultipleValidator;
3844
3814
  }(MultipleValidator));
3845
3815
 
3846
- var PassValidator = /** @class */ (function (_super) {
3847
- __extends(PassValidator, _super);
3848
- function PassValidator(value, target, event, autoValid) {
3816
+ var RegExpTestValidator = /** @class */ (function (_super) {
3817
+ __extends(RegExpTestValidator, _super);
3818
+ function RegExpTestValidator(regexp, value, target, event, autoValid) {
3849
3819
  if (autoValid === void 0) { autoValid = true; }
3850
- return _super.call(this, value, target, event, autoValid) || this;
3820
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3821
+ _this.regexp = DomRenderProxy.final(regexp);
3822
+ return _this;
3851
3823
  }
3852
- PassValidator.prototype.valid = function () {
3853
- return true;
3824
+ RegExpTestValidator.prototype.valid = function () {
3825
+ var _a;
3826
+ var value = this.value;
3827
+ var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
3828
+ // console.log('regexp-->', value, this.regexp, regExp.test(value))
3829
+ if (value) {
3830
+ return regExp.test(value);
3831
+ }
3832
+ else {
3833
+ return false;
3834
+ }
3854
3835
  };
3855
- return PassValidator;
3836
+ return RegExpTestValidator;
3856
3837
  }(Validator));
3857
3838
 
3858
3839
  var RequiredValidator = /** @class */ (function (_super) {
@@ -3869,6 +3850,20 @@ var RequiredValidator = /** @class */ (function (_super) {
3869
3850
  return RequiredValidator;
3870
3851
  }(Validator));
3871
3852
 
3853
+ var ValueNotEqualsValidator = /** @class */ (function (_super) {
3854
+ __extends(ValueNotEqualsValidator, _super);
3855
+ function ValueNotEqualsValidator(equalsValue, value, target, event, autoValid) {
3856
+ if (autoValid === void 0) { autoValid = true; }
3857
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3858
+ _this.equalsValue = equalsValue;
3859
+ return _this;
3860
+ }
3861
+ ValueNotEqualsValidator.prototype.valid = function () {
3862
+ return this.value !== this.equalsValue;
3863
+ };
3864
+ return ValueNotEqualsValidator;
3865
+ }(Validator));
3866
+
3872
3867
  var ValidValidatorArray = /** @class */ (function (_super) {
3873
3868
  __extends(ValidValidatorArray, _super);
3874
3869
  function ValidValidatorArray(validCallBack, value, target, event, autoValid) {
@@ -3883,20 +3878,6 @@ var ValidValidatorArray = /** @class */ (function (_super) {
3883
3878
  return ValidValidatorArray;
3884
3879
  }(ValidatorArray));
3885
3880
 
3886
- var ValidValidator = /** @class */ (function (_super) {
3887
- __extends(ValidValidator, _super);
3888
- function ValidValidator(validCallBack, value, target, event, autoValid) {
3889
- if (autoValid === void 0) { autoValid = true; }
3890
- var _this = _super.call(this, value, target, event, autoValid) || this;
3891
- _this.validCallBack = validCallBack;
3892
- return _this;
3893
- }
3894
- ValidValidator.prototype.valid = function (value, target, event) {
3895
- return this.validCallBack(value, target, event);
3896
- };
3897
- return ValidValidator;
3898
- }(Validator));
3899
-
3900
3881
  var ValueEqualsValidator = /** @class */ (function (_super) {
3901
3882
  __extends(ValueEqualsValidator, _super);
3902
3883
  function ValueEqualsValidator(equalsValue, value, target, event, autoValid) {
@@ -3911,42 +3892,39 @@ var ValueEqualsValidator = /** @class */ (function (_super) {
3911
3892
  return ValueEqualsValidator;
3912
3893
  }(Validator));
3913
3894
 
3914
- var ValueNotEqualsValidator = /** @class */ (function (_super) {
3915
- __extends(ValueNotEqualsValidator, _super);
3916
- function ValueNotEqualsValidator(equalsValue, value, target, event, autoValid) {
3895
+ var UnCheckedValidator = /** @class */ (function (_super) {
3896
+ __extends(UnCheckedValidator, _super);
3897
+ function UnCheckedValidator(value, target, event, autoValid) {
3917
3898
  if (autoValid === void 0) { autoValid = true; }
3918
- var _this = _super.call(this, value, target, event, autoValid) || this;
3919
- _this.equalsValue = equalsValue;
3920
- return _this;
3899
+ return _super.call(this, value, target, event, autoValid) || this;
3921
3900
  }
3922
- ValueNotEqualsValidator.prototype.valid = function () {
3923
- return this.value !== this.equalsValue;
3901
+ UnCheckedValidator.prototype.valid = function () {
3902
+ var _a, _b;
3903
+ return !((_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false);
3924
3904
  };
3925
- return ValueNotEqualsValidator;
3905
+ return UnCheckedValidator;
3926
3906
  }(Validator));
3927
3907
 
3928
- var NodeUtils = /** @class */ (function () {
3929
- function NodeUtils() {
3908
+ var ClipBoardUtils = /** @class */ (function () {
3909
+ function ClipBoardUtils() {
3930
3910
  }
3931
- // https://stackoverflow.com/questions/3955229/remove-all-child-elements-of-a-dom-node-in-javascript
3932
- NodeUtils.removeAllChildNode = function (node) {
3933
- while (node === null || node === void 0 ? void 0 : node.firstChild) {
3934
- node.firstChild.remove();
3935
- }
3911
+ ClipBoardUtils.readText = function (clipboard) {
3912
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
3913
+ return clipboard.readText();
3936
3914
  };
3937
- NodeUtils.appendChild = function (parentNode, childNode) {
3938
- return parentNode.appendChild(childNode);
3915
+ ClipBoardUtils.read = function (clipboard) {
3916
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
3917
+ return clipboard.read();
3939
3918
  };
3940
- NodeUtils.replaceNode = function (targetNode, newNode) {
3941
- var _a;
3942
- // console.log('repalceNode', targetNode, newNode, targetNode.parentNode)
3943
- return (_a = targetNode.parentNode) === null || _a === void 0 ? void 0 : _a.replaceChild(newNode, targetNode);
3919
+ ClipBoardUtils.writeText = function (data, clipboard) {
3920
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
3921
+ return clipboard.writeText(data);
3944
3922
  };
3945
- NodeUtils.addNode = function (targetNode, newNode) {
3946
- var _a;
3947
- return (_a = targetNode.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(newNode, targetNode.nextSibling);
3923
+ ClipBoardUtils.write = function (data, clipboard) {
3924
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
3925
+ return clipboard.write(data);
3948
3926
  };
3949
- return NodeUtils;
3927
+ return ClipBoardUtils;
3950
3928
  }());
3951
3929
 
3952
3930
  var StorageUtils = /** @class */ (function () {
@@ -3994,26 +3972,28 @@ var StorageUtils = /** @class */ (function () {
3994
3972
  return StorageUtils;
3995
3973
  }());
3996
3974
 
3997
- var ClipBoardUtils = /** @class */ (function () {
3998
- function ClipBoardUtils() {
3975
+ var NodeUtils = /** @class */ (function () {
3976
+ function NodeUtils() {
3999
3977
  }
4000
- ClipBoardUtils.readText = function (clipboard) {
4001
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4002
- return clipboard.readText();
3978
+ // https://stackoverflow.com/questions/3955229/remove-all-child-elements-of-a-dom-node-in-javascript
3979
+ NodeUtils.removeAllChildNode = function (node) {
3980
+ while (node === null || node === void 0 ? void 0 : node.firstChild) {
3981
+ node.firstChild.remove();
3982
+ }
4003
3983
  };
4004
- ClipBoardUtils.read = function (clipboard) {
4005
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4006
- return clipboard.read();
3984
+ NodeUtils.appendChild = function (parentNode, childNode) {
3985
+ return parentNode.appendChild(childNode);
4007
3986
  };
4008
- ClipBoardUtils.writeText = function (data, clipboard) {
4009
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4010
- return clipboard.writeText(data);
3987
+ NodeUtils.replaceNode = function (targetNode, newNode) {
3988
+ var _a;
3989
+ // console.log('repalceNode', targetNode, newNode, targetNode.parentNode)
3990
+ return (_a = targetNode.parentNode) === null || _a === void 0 ? void 0 : _a.replaceChild(newNode, targetNode);
4011
3991
  };
4012
- ClipBoardUtils.write = function (data, clipboard) {
4013
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4014
- return clipboard.write(data);
3992
+ NodeUtils.addNode = function (targetNode, newNode) {
3993
+ var _a;
3994
+ return (_a = targetNode.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(newNode, targetNode.nextSibling);
4015
3995
  };
4016
- return ClipBoardUtils;
3996
+ return NodeUtils;
4017
3997
  }());
4018
3998
 
4019
3999
  exports.AllCheckedValidatorArray = AllCheckedValidatorArray;