dom-render 1.0.88 → 1.0.89

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/dist/bundle.js CHANGED
@@ -3185,7 +3185,13 @@ var LocationUtils = /** @class */ (function () {
3185
3185
  };
3186
3186
  LocationUtils.hashQueryParamsObject = function (window) {
3187
3187
  var _a;
3188
- return this.queryStringToObject((_a = window.location.hash.split('?').pop()) !== null && _a !== void 0 ? _a : '');
3188
+ var s = (_a = window.location.hash.split('?').pop()) !== null && _a !== void 0 ? _a : '';
3189
+ if (s.startsWith('#')) {
3190
+ return {};
3191
+ }
3192
+ else {
3193
+ return this.queryStringToObject(s);
3194
+ }
3189
3195
  };
3190
3196
  LocationUtils.pathQueryParams = function (window) {
3191
3197
  return this.queryStringToMap(window.location.search.substring(1));
@@ -3566,47 +3572,17 @@ var Appender = /** @class */ (function () {
3566
3572
  return Appender;
3567
3573
  }());
3568
3574
 
3569
- var CheckedValidator = /** @class */ (function (_super) {
3570
- __extends(CheckedValidator, _super);
3571
- function CheckedValidator(value, target, event, autoValid) {
3575
+ var AllCheckedValidatorArray = /** @class */ (function (_super) {
3576
+ __extends(AllCheckedValidatorArray, _super);
3577
+ function AllCheckedValidatorArray(value, target, event, autoValid) {
3572
3578
  if (autoValid === void 0) { autoValid = true; }
3573
3579
  return _super.call(this, value, target, event, autoValid) || this;
3574
3580
  }
3575
- CheckedValidator.prototype.valid = function () {
3576
- var _a, _b;
3577
- return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
3578
- };
3579
- return CheckedValidator;
3580
- }(Validator));
3581
-
3582
- var CountEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3583
- __extends(CountEqualsUnCheckedValidatorArray, _super);
3584
- function CountEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
3585
- if (autoValid === void 0) { autoValid = true; }
3586
- var _this = _super.call(this, value, target, event, autoValid) || this;
3587
- _this.count = count;
3588
- return _this;
3589
- }
3590
- CountEqualsUnCheckedValidatorArray.prototype.valid = function () {
3591
- var _a;
3592
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length === this.count;
3593
- };
3594
- return CountEqualsUnCheckedValidatorArray;
3595
- }(ValidatorArray));
3596
-
3597
- var CountGreaterThanCheckedValidatorArray = /** @class */ (function (_super) {
3598
- __extends(CountGreaterThanCheckedValidatorArray, _super);
3599
- function CountGreaterThanCheckedValidatorArray(count, value, target, event, autoValid) {
3600
- if (autoValid === void 0) { autoValid = true; }
3601
- var _this = _super.call(this, value, target, event, autoValid) || this;
3602
- _this.count = count;
3603
- return _this;
3604
- }
3605
- CountGreaterThanCheckedValidatorArray.prototype.valid = function () {
3581
+ AllCheckedValidatorArray.prototype.valid = function () {
3606
3582
  var _a;
3607
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > this.count;
3583
+ return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length > 0);
3608
3584
  };
3609
- return CountGreaterThanCheckedValidatorArray;
3585
+ return AllCheckedValidatorArray;
3610
3586
  }(ValidatorArray));
3611
3587
 
3612
3588
  var AllUnCheckedValidatorArray = /** @class */ (function (_super) {
@@ -3622,32 +3598,32 @@ var AllUnCheckedValidatorArray = /** @class */ (function (_super) {
3622
3598
  return AllUnCheckedValidatorArray;
3623
3599
  }(ValidatorArray));
3624
3600
 
3625
- var AllCheckedValidatorArray = /** @class */ (function (_super) {
3626
- __extends(AllCheckedValidatorArray, _super);
3627
- function AllCheckedValidatorArray(value, target, event, autoValid) {
3601
+ var CheckedValidator = /** @class */ (function (_super) {
3602
+ __extends(CheckedValidator, _super);
3603
+ function CheckedValidator(value, target, event, autoValid) {
3628
3604
  if (autoValid === void 0) { autoValid = true; }
3629
3605
  return _super.call(this, value, target, event, autoValid) || this;
3630
3606
  }
3631
- AllCheckedValidatorArray.prototype.valid = function () {
3632
- var _a;
3633
- return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length > 0);
3607
+ CheckedValidator.prototype.valid = function () {
3608
+ var _a, _b;
3609
+ return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
3634
3610
  };
3635
- return AllCheckedValidatorArray;
3636
- }(ValidatorArray));
3611
+ return CheckedValidator;
3612
+ }(Validator));
3637
3613
 
3638
- var CountEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3639
- __extends(CountEqualsCheckedValidatorArray, _super);
3640
- function CountEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3614
+ var CountGreaterThanCheckedValidatorArray = /** @class */ (function (_super) {
3615
+ __extends(CountGreaterThanCheckedValidatorArray, _super);
3616
+ function CountGreaterThanCheckedValidatorArray(count, value, target, event, autoValid) {
3641
3617
  if (autoValid === void 0) { autoValid = true; }
3642
3618
  var _this = _super.call(this, value, target, event, autoValid) || this;
3643
3619
  _this.count = count;
3644
3620
  return _this;
3645
3621
  }
3646
- CountEqualsCheckedValidatorArray.prototype.valid = function () {
3622
+ CountGreaterThanCheckedValidatorArray.prototype.valid = function () {
3647
3623
  var _a;
3648
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length === this.count;
3624
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > this.count;
3649
3625
  };
3650
- return CountEqualsCheckedValidatorArray;
3626
+ return CountGreaterThanCheckedValidatorArray;
3651
3627
  }(ValidatorArray));
3652
3628
 
3653
3629
  var CountGreaterThanEqualsCheckedValidatorArray = /** @class */ (function (_super) {
@@ -3665,19 +3641,19 @@ var CountGreaterThanEqualsCheckedValidatorArray = /** @class */ (function (_supe
3665
3641
  return CountGreaterThanEqualsCheckedValidatorArray;
3666
3642
  }(ValidatorArray));
3667
3643
 
3668
- var CountGreaterThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3669
- __extends(CountGreaterThanEqualsUnCheckedValidatorArray, _super);
3670
- function CountGreaterThanEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
3644
+ var CountEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3645
+ __extends(CountEqualsUnCheckedValidatorArray, _super);
3646
+ function CountEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
3671
3647
  if (autoValid === void 0) { autoValid = true; }
3672
3648
  var _this = _super.call(this, value, target, event, autoValid) || this;
3673
3649
  _this.count = count;
3674
3650
  return _this;
3675
3651
  }
3676
- CountGreaterThanEqualsUnCheckedValidatorArray.prototype.valid = function () {
3652
+ CountEqualsUnCheckedValidatorArray.prototype.valid = function () {
3677
3653
  var _a;
3678
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length >= this.count;
3654
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length === this.count;
3679
3655
  };
3680
- return CountGreaterThanEqualsUnCheckedValidatorArray;
3656
+ return CountEqualsUnCheckedValidatorArray;
3681
3657
  }(ValidatorArray));
3682
3658
 
3683
3659
  var CountGreaterThanUnCheckedValidatorArray = /** @class */ (function (_super) {
@@ -3710,19 +3686,49 @@ var CountLessThanEqualsCheckedValidatorArray = /** @class */ (function (_super)
3710
3686
  return CountLessThanEqualsCheckedValidatorArray;
3711
3687
  }(ValidatorArray));
3712
3688
 
3713
- var CountLessThanCheckedValidatorArray = /** @class */ (function (_super) {
3714
- __extends(CountLessThanCheckedValidatorArray, _super);
3715
- function CountLessThanCheckedValidatorArray(count, value, target, event, autoValid) {
3689
+ var CountUnCheckedValidatorArray = /** @class */ (function (_super) {
3690
+ __extends(CountUnCheckedValidatorArray, _super);
3691
+ function CountUnCheckedValidatorArray(count, value, target, event, autoValid) {
3716
3692
  if (autoValid === void 0) { autoValid = true; }
3717
3693
  var _this = _super.call(this, value, target, event, autoValid) || this;
3718
3694
  _this.count = count;
3719
3695
  return _this;
3720
3696
  }
3721
- CountLessThanCheckedValidatorArray.prototype.valid = function () {
3697
+ CountUnCheckedValidatorArray.prototype.valid = function () {
3722
3698
  var _a;
3723
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length < this.count;
3699
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length >= this.count;
3724
3700
  };
3725
- return CountLessThanCheckedValidatorArray;
3701
+ return CountUnCheckedValidatorArray;
3702
+ }(ValidatorArray));
3703
+
3704
+ var CountEqualsCheckedValidatorArray = /** @class */ (function (_super) {
3705
+ __extends(CountEqualsCheckedValidatorArray, _super);
3706
+ function CountEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
3707
+ if (autoValid === void 0) { autoValid = true; }
3708
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3709
+ _this.count = count;
3710
+ return _this;
3711
+ }
3712
+ CountEqualsCheckedValidatorArray.prototype.valid = function () {
3713
+ var _a;
3714
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length === this.count;
3715
+ };
3716
+ return CountEqualsCheckedValidatorArray;
3717
+ }(ValidatorArray));
3718
+
3719
+ var CountLessThanUnCheckedValidatorArray = /** @class */ (function (_super) {
3720
+ __extends(CountLessThanUnCheckedValidatorArray, _super);
3721
+ function CountLessThanUnCheckedValidatorArray(count, value, target, event, autoValid) {
3722
+ if (autoValid === void 0) { autoValid = true; }
3723
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3724
+ _this.count = count;
3725
+ return _this;
3726
+ }
3727
+ CountLessThanUnCheckedValidatorArray.prototype.valid = function () {
3728
+ var _a;
3729
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length < this.count;
3730
+ };
3731
+ return CountLessThanUnCheckedValidatorArray;
3726
3732
  }(ValidatorArray));
3727
3733
 
3728
3734
  var CountLessThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
@@ -3740,50 +3746,57 @@ var CountLessThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super
3740
3746
  return CountLessThanEqualsUnCheckedValidatorArray;
3741
3747
  }(ValidatorArray));
3742
3748
 
3743
- var EmptyValidator = /** @class */ (function (_super) {
3744
- __extends(EmptyValidator, _super);
3745
- function EmptyValidator(value, target, event, autoValid) {
3746
- if (autoValid === void 0) { autoValid = true; }
3747
- return _super.call(this, value, target, event, autoValid) || this;
3748
- }
3749
- EmptyValidator.prototype.valid = function () {
3750
- var _a, _b;
3751
- var value = this.value;
3752
- return value === undefined || value === null || ((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) <= 0;
3753
- };
3754
- return EmptyValidator;
3755
- }(Validator));
3756
-
3757
- var CountUnCheckedValidatorArray = /** @class */ (function (_super) {
3758
- __extends(CountUnCheckedValidatorArray, _super);
3759
- function CountUnCheckedValidatorArray(count, value, target, event, autoValid) {
3749
+ var CountGreaterThanEqualsUnCheckedValidatorArray = /** @class */ (function (_super) {
3750
+ __extends(CountGreaterThanEqualsUnCheckedValidatorArray, _super);
3751
+ function CountGreaterThanEqualsUnCheckedValidatorArray(count, value, target, event, autoValid) {
3760
3752
  if (autoValid === void 0) { autoValid = true; }
3761
3753
  var _this = _super.call(this, value, target, event, autoValid) || this;
3762
3754
  _this.count = count;
3763
3755
  return _this;
3764
3756
  }
3765
- CountUnCheckedValidatorArray.prototype.valid = function () {
3757
+ CountGreaterThanEqualsUnCheckedValidatorArray.prototype.valid = function () {
3766
3758
  var _a;
3767
3759
  return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length >= this.count;
3768
3760
  };
3769
- return CountUnCheckedValidatorArray;
3761
+ return CountGreaterThanEqualsUnCheckedValidatorArray;
3770
3762
  }(ValidatorArray));
3771
3763
 
3772
- var CountLessThanUnCheckedValidatorArray = /** @class */ (function (_super) {
3773
- __extends(CountLessThanUnCheckedValidatorArray, _super);
3774
- function CountLessThanUnCheckedValidatorArray(count, value, target, event, autoValid) {
3764
+ var ExcludeCheckedValidatorArray = /** @class */ (function (_super) {
3765
+ __extends(ExcludeCheckedValidatorArray, _super);
3766
+ function ExcludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3767
+ if (allRequired === void 0) { allRequired = false; }
3775
3768
  if (autoValid === void 0) { autoValid = true; }
3776
3769
  var _this = _super.call(this, value, target, event, autoValid) || this;
3777
- _this.count = count;
3770
+ _this.include = include;
3771
+ _this.allRequired = allRequired;
3778
3772
  return _this;
3779
3773
  }
3780
- CountLessThanUnCheckedValidatorArray.prototype.valid = function () {
3774
+ ExcludeCheckedValidatorArray.prototype.valid = function () {
3775
+ var _this = this;
3781
3776
  var _a;
3782
- return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length < this.count;
3777
+ var valus = (_a = this.value) !== null && _a !== void 0 ? _a : [];
3778
+ var unCheckedValue = valus.filter(function (it) { return !it.checked; }).map(function (it) { return it.value; });
3779
+ return unCheckedValue.length > 0 &&
3780
+ (!(unCheckedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3781
+ (this.allRequired ? unCheckedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3783
3782
  };
3784
- return CountLessThanUnCheckedValidatorArray;
3783
+ return ExcludeCheckedValidatorArray;
3785
3784
  }(ValidatorArray));
3786
3785
 
3786
+ var EmptyValidator = /** @class */ (function (_super) {
3787
+ __extends(EmptyValidator, _super);
3788
+ function EmptyValidator(value, target, event, autoValid) {
3789
+ if (autoValid === void 0) { autoValid = true; }
3790
+ return _super.call(this, value, target, event, autoValid) || this;
3791
+ }
3792
+ EmptyValidator.prototype.valid = function () {
3793
+ var _a, _b;
3794
+ var value = this.value;
3795
+ return value === undefined || value === null || ((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) <= 0;
3796
+ };
3797
+ return EmptyValidator;
3798
+ }(Validator));
3799
+
3787
3800
  var FormValidator = /** @class */ (function (_super) {
3788
3801
  __extends(FormValidator, _super);
3789
3802
  function FormValidator(target, event, autoValid) {
@@ -3802,28 +3815,6 @@ var FormValidator = /** @class */ (function (_super) {
3802
3815
  return FormValidator;
3803
3816
  }(Validator));
3804
3817
 
3805
- var IncludeCheckedValidatorArray = /** @class */ (function (_super) {
3806
- __extends(IncludeCheckedValidatorArray, _super);
3807
- function IncludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3808
- if (allRequired === void 0) { allRequired = false; }
3809
- if (autoValid === void 0) { autoValid = true; }
3810
- var _this = _super.call(this, value, target, event, autoValid) || this;
3811
- _this.include = include;
3812
- _this.allRequired = allRequired;
3813
- return _this;
3814
- }
3815
- IncludeCheckedValidatorArray.prototype.valid = function () {
3816
- var _this = this;
3817
- var _a;
3818
- var valus = (_a = this.value) !== null && _a !== void 0 ? _a : [];
3819
- var checkedValue = valus.filter(function (it) { return it.checked; }).map(function (it) { return it.value; });
3820
- return checkedValue.length > 0 &&
3821
- (!(checkedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3822
- (this.allRequired ? checkedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3823
- };
3824
- return IncludeCheckedValidatorArray;
3825
- }(ValidatorArray));
3826
-
3827
3818
  var MultipleValidator = /** @class */ (function (_super) {
3828
3819
  __extends(MultipleValidator, _super);
3829
3820
  function MultipleValidator(validators, value, target, event, autoValid) {
@@ -3853,9 +3844,9 @@ var MultipleValidator = /** @class */ (function (_super) {
3853
3844
  return MultipleValidator;
3854
3845
  }(Validator));
3855
3846
 
3856
- var ExcludeCheckedValidatorArray = /** @class */ (function (_super) {
3857
- __extends(ExcludeCheckedValidatorArray, _super);
3858
- function ExcludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3847
+ var IncludeCheckedValidatorArray = /** @class */ (function (_super) {
3848
+ __extends(IncludeCheckedValidatorArray, _super);
3849
+ function IncludeCheckedValidatorArray(include, allRequired, value, target, event, autoValid) {
3859
3850
  if (allRequired === void 0) { allRequired = false; }
3860
3851
  if (autoValid === void 0) { autoValid = true; }
3861
3852
  var _this = _super.call(this, value, target, event, autoValid) || this;
@@ -3863,16 +3854,31 @@ var ExcludeCheckedValidatorArray = /** @class */ (function (_super) {
3863
3854
  _this.allRequired = allRequired;
3864
3855
  return _this;
3865
3856
  }
3866
- ExcludeCheckedValidatorArray.prototype.valid = function () {
3857
+ IncludeCheckedValidatorArray.prototype.valid = function () {
3867
3858
  var _this = this;
3868
3859
  var _a;
3869
3860
  var valus = (_a = this.value) !== null && _a !== void 0 ? _a : [];
3870
- var unCheckedValue = valus.filter(function (it) { return !it.checked; }).map(function (it) { return it.value; });
3871
- return unCheckedValue.length > 0 &&
3872
- (!(unCheckedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3873
- (this.allRequired ? unCheckedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3861
+ var checkedValue = valus.filter(function (it) { return it.checked; }).map(function (it) { return it.value; });
3862
+ return checkedValue.length > 0 &&
3863
+ (!(checkedValue.filter(function (it) { return !_this.include.includes(it); }).length > 0)) &&
3864
+ (this.allRequired ? checkedValue.filter(function (it) { return _this.include.includes(it); }).length === this.include.length : true);
3874
3865
  };
3875
- return ExcludeCheckedValidatorArray;
3866
+ return IncludeCheckedValidatorArray;
3867
+ }(ValidatorArray));
3868
+
3869
+ var CountLessThanCheckedValidatorArray = /** @class */ (function (_super) {
3870
+ __extends(CountLessThanCheckedValidatorArray, _super);
3871
+ function CountLessThanCheckedValidatorArray(count, value, target, event, autoValid) {
3872
+ if (autoValid === void 0) { autoValid = true; }
3873
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3874
+ _this.count = count;
3875
+ return _this;
3876
+ }
3877
+ CountLessThanCheckedValidatorArray.prototype.valid = function () {
3878
+ var _a;
3879
+ return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length < this.count;
3880
+ };
3881
+ return CountLessThanCheckedValidatorArray;
3876
3882
  }(ValidatorArray));
3877
3883
 
3878
3884
  var NotEmptyValidator = /** @class */ (function (_super) {
@@ -3925,6 +3931,20 @@ var RegExpTestValidator = /** @class */ (function (_super) {
3925
3931
  return RegExpTestValidator;
3926
3932
  }(Validator));
3927
3933
 
3934
+ var RequiredValidator = /** @class */ (function (_super) {
3935
+ __extends(RequiredValidator, _super);
3936
+ function RequiredValidator(value, target, event, autoValid) {
3937
+ if (autoValid === void 0) { autoValid = true; }
3938
+ return _super.call(this, value, target, event, autoValid) || this;
3939
+ }
3940
+ RequiredValidator.prototype.valid = function () {
3941
+ var value = this.value;
3942
+ // console.log('required', value, value !== undefined && value !== null)
3943
+ return value !== undefined && value !== null;
3944
+ };
3945
+ return RequiredValidator;
3946
+ }(Validator));
3947
+
3928
3948
  var ValidMultipleValidator = /** @class */ (function (_super) {
3929
3949
  __extends(ValidMultipleValidator, _super);
3930
3950
  function ValidMultipleValidator(validMultipleCallback, validators, value, target, event, autoValid) {
@@ -3940,18 +3960,18 @@ var ValidMultipleValidator = /** @class */ (function (_super) {
3940
3960
  return ValidMultipleValidator;
3941
3961
  }(MultipleValidator));
3942
3962
 
3943
- var RequiredValidator = /** @class */ (function (_super) {
3944
- __extends(RequiredValidator, _super);
3945
- function RequiredValidator(value, target, event, autoValid) {
3963
+ var ValidValidator = /** @class */ (function (_super) {
3964
+ __extends(ValidValidator, _super);
3965
+ function ValidValidator(validCallBack, value, target, event, autoValid) {
3946
3966
  if (autoValid === void 0) { autoValid = true; }
3947
- return _super.call(this, value, target, event, autoValid) || this;
3967
+ var _this = _super.call(this, value, target, event, autoValid) || this;
3968
+ _this.validCallBack = validCallBack;
3969
+ return _this;
3948
3970
  }
3949
- RequiredValidator.prototype.valid = function () {
3950
- var value = this.value;
3951
- // console.log('required', value, value !== undefined && value !== null)
3952
- return value !== undefined && value !== null;
3971
+ ValidValidator.prototype.valid = function (value, target, event) {
3972
+ return this.validCallBack(value, target, event);
3953
3973
  };
3954
- return RequiredValidator;
3974
+ return ValidValidator;
3955
3975
  }(Validator));
3956
3976
 
3957
3977
  var UnCheckedValidator = /** @class */ (function (_super) {
@@ -3981,20 +4001,6 @@ var ValidValidatorArray = /** @class */ (function (_super) {
3981
4001
  return ValidValidatorArray;
3982
4002
  }(ValidatorArray));
3983
4003
 
3984
- var ValidValidator = /** @class */ (function (_super) {
3985
- __extends(ValidValidator, _super);
3986
- function ValidValidator(validCallBack, value, target, event, autoValid) {
3987
- if (autoValid === void 0) { autoValid = true; }
3988
- var _this = _super.call(this, value, target, event, autoValid) || this;
3989
- _this.validCallBack = validCallBack;
3990
- return _this;
3991
- }
3992
- ValidValidator.prototype.valid = function (value, target, event) {
3993
- return this.validCallBack(value, target, event);
3994
- };
3995
- return ValidValidator;
3996
- }(Validator));
3997
-
3998
4004
  var NotRegExpTestValidator = /** @class */ (function (_super) {
3999
4005
  __extends(NotRegExpTestValidator, _super);
4000
4006
  function NotRegExpTestValidator(regexp, value, target, event, autoValid) {
@@ -4045,28 +4051,6 @@ var ValueNotEqualsValidator = /** @class */ (function (_super) {
4045
4051
  return ValueNotEqualsValidator;
4046
4052
  }(Validator));
4047
4053
 
4048
- var ClipBoardUtils = /** @class */ (function () {
4049
- function ClipBoardUtils() {
4050
- }
4051
- ClipBoardUtils.readText = function (clipboard) {
4052
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4053
- return clipboard.readText();
4054
- };
4055
- ClipBoardUtils.read = function (clipboard) {
4056
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4057
- return clipboard.read();
4058
- };
4059
- ClipBoardUtils.writeText = function (data, clipboard) {
4060
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4061
- return clipboard.writeText(data);
4062
- };
4063
- ClipBoardUtils.write = function (data, clipboard) {
4064
- if (clipboard === void 0) { clipboard = navigator.clipboard; }
4065
- return clipboard.write(data);
4066
- };
4067
- return ClipBoardUtils;
4068
- }());
4069
-
4070
4054
  var NodeUtils = /** @class */ (function () {
4071
4055
  function NodeUtils() {
4072
4056
  }
@@ -4091,6 +4075,28 @@ var NodeUtils = /** @class */ (function () {
4091
4075
  return NodeUtils;
4092
4076
  }());
4093
4077
 
4078
+ var ClipBoardUtils = /** @class */ (function () {
4079
+ function ClipBoardUtils() {
4080
+ }
4081
+ ClipBoardUtils.readText = function (clipboard) {
4082
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
4083
+ return clipboard.readText();
4084
+ };
4085
+ ClipBoardUtils.read = function (clipboard) {
4086
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
4087
+ return clipboard.read();
4088
+ };
4089
+ ClipBoardUtils.writeText = function (data, clipboard) {
4090
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
4091
+ return clipboard.writeText(data);
4092
+ };
4093
+ ClipBoardUtils.write = function (data, clipboard) {
4094
+ if (clipboard === void 0) { clipboard = navigator.clipboard; }
4095
+ return clipboard.write(data);
4096
+ };
4097
+ return ClipBoardUtils;
4098
+ }());
4099
+
4094
4100
  var StorageUtils = /** @class */ (function () {
4095
4101
  function StorageUtils() {
4096
4102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dom-render",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "main": "DomRender.js",
5
5
  "license": "MIT",
6
6
  "description": "html view template engine",
@@ -25,7 +25,13 @@ var LocationUtils = /** @class */ (function () {
25
25
  };
26
26
  LocationUtils.hashQueryParamsObject = function (window) {
27
27
  var _a;
28
- return this.queryStringToObject((_a = window.location.hash.split('?').pop()) !== null && _a !== void 0 ? _a : '');
28
+ var s = (_a = window.location.hash.split('?').pop()) !== null && _a !== void 0 ? _a : '';
29
+ if (s.startsWith('#')) {
30
+ return {};
31
+ }
32
+ else {
33
+ return this.queryStringToObject(s);
34
+ }
29
35
  };
30
36
  LocationUtils.pathQueryParams = function (window) {
31
37
  return this.queryStringToMap(window.location.search.substring(1));