dom-render 1.0.73 → 1.0.76
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/Config.d.ts +38 -36
- package/Config.js +2 -2
- package/DomRender.d.ts +28 -4
- package/DomRender.js +90 -39
- package/DomRenderProxy.d.ts +29 -29
- package/DomRenderProxy.js +338 -327
- package/README.MD +638 -511
- package/RawSet.d.ts +140 -117
- package/RawSet.js +765 -882
- package/components/ComponentSet.d.ts +7 -0
- package/components/ComponentSet.js +14 -0
- package/dist/bundle.js +3796 -3133
- package/events/EventManager.d.ts +47 -47
- package/events/EventManager.js +499 -499
- package/iterators/Range.d.ts +22 -22
- package/iterators/Range.js +65 -65
- package/lifecycle/OnBeforeReturnGet.d.ts +3 -3
- package/lifecycle/OnBeforeReturnGet.js +2 -2
- package/lifecycle/OnBeforeReturnSet.d.ts +3 -3
- package/lifecycle/OnBeforeReturnSet.js +2 -2
- package/lifecycle/OnCreateRender.d.ts +3 -3
- package/lifecycle/OnCreateRender.js +2 -2
- package/lifecycle/OnDestroyRender.d.ts +4 -0
- package/lifecycle/OnDestroyRender.js +2 -0
- package/lifecycle/OnInitRender.d.ts +7 -7
- package/lifecycle/OnInitRender.js +2 -2
- package/lifecycle/OnProxyDomRender.d.ts +4 -0
- package/lifecycle/OnProxyDomRender.js +2 -0
- package/managers/RenderManager.d.ts +3 -3
- package/managers/RenderManager.js +18 -18
- package/messenger/DefaultMessenger.d.ts +3 -0
- package/messenger/DefaultMessenger.js +27 -0
- package/messenger/Messenger.d.ts +78 -0
- package/messenger/Messenger.js +201 -0
- package/operators/Appender.d.ts +7 -12
- package/operators/Appender.js +32 -39
- package/operators/AttrExpresion.d.ts +4 -0
- package/operators/AttrExpresion.js +68 -0
- package/operators/Dr.d.ts +4 -0
- package/operators/Dr.js +62 -0
- package/operators/DrAppender.d.ts +4 -0
- package/operators/DrAppender.js +65 -0
- package/operators/DrFor.d.ts +4 -0
- package/operators/DrFor.js +62 -0
- package/operators/DrForOf.d.ts +4 -0
- package/operators/DrForOf.js +65 -0
- package/operators/DrForm.d.ts +4 -0
- package/operators/DrForm.js +100 -0
- package/operators/DrIf.d.ts +4 -0
- package/operators/DrIf.js +72 -0
- package/operators/DrInnerHTML.d.ts +4 -0
- package/operators/DrInnerHTML.js +60 -0
- package/operators/DrInnerText.d.ts +4 -0
- package/operators/DrInnerText.js +58 -0
- package/operators/DrPre.d.ts +4 -0
- package/operators/DrPre.js +30 -0
- package/operators/DrRepeat.d.ts +4 -0
- package/operators/DrRepeat.js +63 -0
- package/operators/DrTargetAttr.d.ts +4 -0
- package/operators/DrTargetAttr.js +55 -0
- package/operators/DrTargetElement.d.ts +4 -0
- package/operators/DrTargetElement.js +65 -0
- package/operators/DrThis.d.ts +4 -0
- package/operators/DrThis.js +59 -0
- package/operators/OperatorRender.d.ts +41 -0
- package/operators/OperatorRender.js +21 -0
- package/package.json +94 -94
- package/routers/HashRouter.d.ts +9 -9
- package/routers/HashRouter.js +53 -53
- package/routers/PathRouter.d.ts +9 -9
- package/routers/PathRouter.js +52 -52
- package/routers/Router.d.ts +25 -22
- package/routers/Router.js +116 -94
- package/types/Types.d.ts +14 -14
- package/types/Types.js +36 -36
- package/utils/clipboard/ClipBoardUtils.d.ts +6 -6
- package/utils/clipboard/ClipBoardUtils.js +25 -25
- package/utils/dom/DomUtils.d.ts +13 -13
- package/utils/dom/DomUtils.js +47 -47
- package/utils/location/LocationUtils.d.ts +16 -16
- package/utils/location/LocationUtils.js +57 -57
- package/utils/node/NodeUtils.d.ts +10 -10
- package/utils/node/NodeUtils.js +27 -27
- package/utils/random/RandomUtils.d.ts +7 -7
- package/utils/random/RandomUtils.js +47 -47
- package/utils/script/ScriptUtils.d.ts +14 -14
- package/utils/script/ScriptUtils.js +89 -89
- package/utils/storage/StorageUtils.d.ts +9 -9
- package/utils/storage/StorageUtils.js +48 -48
- package/utils/string/StringUtils.d.ts +5 -5
- package/utils/string/StringUtils.js +41 -41
- package/utils/valid/ValidUtils.d.ts +10 -10
- package/utils/valid/ValidUtils.js +78 -78
- package/validators/AllCheckedValidatorArray.d.ts +6 -6
- package/validators/AllCheckedValidatorArray.js +32 -32
- package/validators/AllUnCheckedValidatorArray.d.ts +6 -6
- package/validators/AllUnCheckedValidatorArray.js +32 -32
- package/validators/CheckedValidator.d.ts +5 -5
- package/validators/CheckedValidator.js +32 -32
- package/validators/CountEqualsCheckedValidatorArray.d.ts +7 -7
- package/validators/CountEqualsCheckedValidatorArray.js +34 -34
- package/validators/CountEqualsUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountEqualsUnCheckedValidatorArray.js +34 -34
- package/validators/CountGreaterThanCheckedValidatorArray.d.ts +7 -7
- package/validators/CountGreaterThanCheckedValidatorArray.js +34 -34
- package/validators/CountGreaterThanEqualsCheckedValidatorArray.d.ts +7 -7
- package/validators/CountGreaterThanEqualsCheckedValidatorArray.js +34 -34
- package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.js +34 -34
- package/validators/CountGreaterThanUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountGreaterThanUnCheckedValidatorArray.js +34 -34
- package/validators/CountLessThanCheckedValidatorArray.d.ts +7 -7
- package/validators/CountLessThanCheckedValidatorArray.js +34 -34
- package/validators/CountLessThanEqualsCheckedValidatorArray.d.ts +7 -7
- package/validators/CountLessThanEqualsCheckedValidatorArray.js +34 -34
- package/validators/CountLessThanEqualsUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountLessThanEqualsUnCheckedValidatorArray.js +34 -34
- package/validators/CountLessThanUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountLessThanUnCheckedValidatorArray.js +34 -34
- package/validators/CountUnCheckedValidatorArray.d.ts +7 -7
- package/validators/CountUnCheckedValidatorArray.js +34 -34
- package/validators/EmptyValidator.d.ts +5 -5
- package/validators/EmptyValidator.js +33 -33
- package/validators/ExcludeCheckedValidatorArray.d.ts +8 -8
- package/validators/ExcludeCheckedValidatorArray.js +41 -41
- package/validators/FormValidator.d.ts +7 -7
- package/validators/FormValidator.js +37 -37
- package/validators/IncludeCheckedValidatorArray.d.ts +8 -8
- package/validators/IncludeCheckedValidatorArray.js +41 -41
- package/validators/MultipleValidator.d.ts +8 -8
- package/validators/MultipleValidator.js +48 -48
- package/validators/NonPassValidator.d.ts +5 -5
- package/validators/NonPassValidator.js +31 -31
- package/validators/NotEmptyValidator.d.ts +5 -5
- package/validators/NotEmptyValidator.js +34 -34
- package/validators/NotRegExpTestValidator.d.ts +6 -6
- package/validators/NotRegExpTestValidator.js +42 -42
- package/validators/PassValidator.d.ts +5 -5
- package/validators/PassValidator.js +31 -31
- package/validators/RegExpTestValidator.d.ts +6 -6
- package/validators/RegExpTestValidator.js +43 -43
- package/validators/RequiredValidator.d.ts +5 -5
- package/validators/RequiredValidator.js +33 -33
- package/validators/UnCheckedValidator.d.ts +5 -5
- package/validators/UnCheckedValidator.js +32 -32
- package/validators/ValidMultipleValidator.d.ts +9 -9
- package/validators/ValidMultipleValidator.js +34 -34
- package/validators/ValidValidator.d.ts +6 -6
- package/validators/ValidValidator.js +33 -33
- package/validators/ValidValidatorArray.d.ts +7 -7
- package/validators/ValidValidatorArray.js +33 -33
- package/validators/Validator.d.ts +57 -57
- package/validators/Validator.js +242 -242
- package/validators/ValidatorArray.d.ts +17 -17
- package/validators/ValidatorArray.js +99 -99
- package/validators/ValueEqualsValidator.d.ts +6 -6
- package/validators/ValueEqualsValidator.js +33 -33
- package/validators/ValueNotEqualsValidator.d.ts +6 -6
- package/validators/ValueNotEqualsValidator.js +33 -33
@@ -1,48 +1,48 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.MultipleValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var MultipleValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(MultipleValidator, _super);
|
22
|
-
function MultipleValidator(validators, value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
_this.validators = validators.map(function (it) {
|
26
|
-
it.setAutoValid(false);
|
27
|
-
it.setAutoValidAction(false);
|
28
|
-
return it;
|
29
|
-
});
|
30
|
-
_this.validators.forEach(function (it) {
|
31
|
-
it.set(_this.value, _this.getTarget(), _this.getEvent());
|
32
|
-
});
|
33
|
-
return _this;
|
34
|
-
}
|
35
|
-
MultipleValidator.prototype.changeValue = function (value) {
|
36
|
-
var _this = this;
|
37
|
-
this.validators.forEach(function (it) { return it.set(_this.value, _this.getTarget(), _this.getEvent()); });
|
38
|
-
};
|
39
|
-
MultipleValidator.prototype.validAction = function () {
|
40
|
-
return !(this.validators.filter(function (it) { return !it.validAction(); }).length > 0);
|
41
|
-
};
|
42
|
-
MultipleValidator.prototype.valid = function () {
|
43
|
-
// console.log('mm', this.validators)
|
44
|
-
return !(this.validators.filter(function (it) { return !it.valid(); }).length > 0);
|
45
|
-
};
|
46
|
-
return MultipleValidator;
|
47
|
-
}(Validator_1.Validator));
|
48
|
-
exports.MultipleValidator = MultipleValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.MultipleValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var MultipleValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(MultipleValidator, _super);
|
22
|
+
function MultipleValidator(validators, value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
_this.validators = validators.map(function (it) {
|
26
|
+
it.setAutoValid(false);
|
27
|
+
it.setAutoValidAction(false);
|
28
|
+
return it;
|
29
|
+
});
|
30
|
+
_this.validators.forEach(function (it) {
|
31
|
+
it.set(_this.value, _this.getTarget(), _this.getEvent());
|
32
|
+
});
|
33
|
+
return _this;
|
34
|
+
}
|
35
|
+
MultipleValidator.prototype.changeValue = function (value) {
|
36
|
+
var _this = this;
|
37
|
+
this.validators.forEach(function (it) { return it.set(_this.value, _this.getTarget(), _this.getEvent()); });
|
38
|
+
};
|
39
|
+
MultipleValidator.prototype.validAction = function () {
|
40
|
+
return !(this.validators.filter(function (it) { return !it.validAction(); }).length > 0);
|
41
|
+
};
|
42
|
+
MultipleValidator.prototype.valid = function () {
|
43
|
+
// console.log('mm', this.validators)
|
44
|
+
return !(this.validators.filter(function (it) { return !it.valid(); }).length > 0);
|
45
|
+
};
|
46
|
+
return MultipleValidator;
|
47
|
+
}(Validator_1.Validator));
|
48
|
+
exports.MultipleValidator = MultipleValidator;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class NonPassValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
-
valid(): boolean;
|
5
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class NonPassValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|
@@ -1,31 +1,31 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.NonPassValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var NonPassValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(NonPassValidator, _super);
|
22
|
-
function NonPassValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
NonPassValidator.prototype.valid = function () {
|
27
|
-
return false;
|
28
|
-
};
|
29
|
-
return NonPassValidator;
|
30
|
-
}(Validator_1.Validator));
|
31
|
-
exports.NonPassValidator = NonPassValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.NonPassValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var NonPassValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(NonPassValidator, _super);
|
22
|
+
function NonPassValidator(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
NonPassValidator.prototype.valid = function () {
|
27
|
+
return false;
|
28
|
+
};
|
29
|
+
return NonPassValidator;
|
30
|
+
}(Validator_1.Validator));
|
31
|
+
exports.NonPassValidator = NonPassValidator;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class NotEmptyValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
-
valid(): boolean;
|
5
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class NotEmptyValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|
@@ -1,34 +1,34 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.NotEmptyValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var NotEmptyValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(NotEmptyValidator, _super);
|
22
|
-
function NotEmptyValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
NotEmptyValidator.prototype.valid = function () {
|
27
|
-
var _a, _b;
|
28
|
-
var value = this.value;
|
29
|
-
// console.log('NotEmptyValidator', value, value !== undefined && value !== null && ((value as any)?.length ?? 0) > 0)
|
30
|
-
return value !== undefined && value !== null && ((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0;
|
31
|
-
};
|
32
|
-
return NotEmptyValidator;
|
33
|
-
}(Validator_1.Validator));
|
34
|
-
exports.NotEmptyValidator = NotEmptyValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.NotEmptyValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var NotEmptyValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(NotEmptyValidator, _super);
|
22
|
+
function NotEmptyValidator(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
NotEmptyValidator.prototype.valid = function () {
|
27
|
+
var _a, _b;
|
28
|
+
var value = this.value;
|
29
|
+
// console.log('NotEmptyValidator', value, value !== undefined && value !== null && ((value as any)?.length ?? 0) > 0)
|
30
|
+
return value !== undefined && value !== null && ((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0;
|
31
|
+
};
|
32
|
+
return NotEmptyValidator;
|
33
|
+
}(Validator_1.Validator));
|
34
|
+
exports.NotEmptyValidator = NotEmptyValidator;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class NotRegExpTestValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
regexp: RegExp;
|
4
|
-
constructor(regexp: RegExp, value?: T, target?: E, event?: Event, autoValid?: boolean);
|
5
|
-
valid(): boolean;
|
6
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class NotRegExpTestValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
regexp: RegExp;
|
4
|
+
constructor(regexp: RegExp, value?: T, target?: E, event?: Event, autoValid?: boolean);
|
5
|
+
valid(): boolean;
|
6
|
+
}
|
@@ -1,42 +1,42 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.NotRegExpTestValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var DomRenderProxy_1 = require("../DomRenderProxy");
|
21
|
-
var NotRegExpTestValidator = /** @class */ (function (_super) {
|
22
|
-
__extends(NotRegExpTestValidator, _super);
|
23
|
-
function NotRegExpTestValidator(regexp, value, target, event, autoValid) {
|
24
|
-
if (autoValid === void 0) { autoValid = true; }
|
25
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
26
|
-
_this.regexp = DomRenderProxy_1.DomRenderProxy.final(regexp);
|
27
|
-
return _this;
|
28
|
-
}
|
29
|
-
NotRegExpTestValidator.prototype.valid = function () {
|
30
|
-
var _a;
|
31
|
-
var value = this.value;
|
32
|
-
var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
|
33
|
-
if (value) {
|
34
|
-
return !regExp.test(value);
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
return true;
|
38
|
-
}
|
39
|
-
};
|
40
|
-
return NotRegExpTestValidator;
|
41
|
-
}(Validator_1.Validator));
|
42
|
-
exports.NotRegExpTestValidator = NotRegExpTestValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.NotRegExpTestValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var DomRenderProxy_1 = require("../DomRenderProxy");
|
21
|
+
var NotRegExpTestValidator = /** @class */ (function (_super) {
|
22
|
+
__extends(NotRegExpTestValidator, _super);
|
23
|
+
function NotRegExpTestValidator(regexp, value, target, event, autoValid) {
|
24
|
+
if (autoValid === void 0) { autoValid = true; }
|
25
|
+
var _this = _super.call(this, value, target, event, autoValid) || this;
|
26
|
+
_this.regexp = DomRenderProxy_1.DomRenderProxy.final(regexp);
|
27
|
+
return _this;
|
28
|
+
}
|
29
|
+
NotRegExpTestValidator.prototype.valid = function () {
|
30
|
+
var _a;
|
31
|
+
var value = this.value;
|
32
|
+
var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
|
33
|
+
if (value) {
|
34
|
+
return !regExp.test(value);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
return true;
|
38
|
+
}
|
39
|
+
};
|
40
|
+
return NotRegExpTestValidator;
|
41
|
+
}(Validator_1.Validator));
|
42
|
+
exports.NotRegExpTestValidator = NotRegExpTestValidator;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class PassValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
-
valid(): boolean;
|
5
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class PassValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|
@@ -1,31 +1,31 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.PassValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var PassValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(PassValidator, _super);
|
22
|
-
function PassValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
PassValidator.prototype.valid = function () {
|
27
|
-
return true;
|
28
|
-
};
|
29
|
-
return PassValidator;
|
30
|
-
}(Validator_1.Validator));
|
31
|
-
exports.PassValidator = PassValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.PassValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var PassValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(PassValidator, _super);
|
22
|
+
function PassValidator(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
PassValidator.prototype.valid = function () {
|
27
|
+
return true;
|
28
|
+
};
|
29
|
+
return PassValidator;
|
30
|
+
}(Validator_1.Validator));
|
31
|
+
exports.PassValidator = PassValidator;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class RegExpTestValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
regexp: RegExp;
|
4
|
-
constructor(regexp: RegExp, value?: T, target?: E, event?: Event, autoValid?: boolean);
|
5
|
-
valid(): boolean;
|
6
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class RegExpTestValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
regexp: RegExp;
|
4
|
+
constructor(regexp: RegExp, value?: T, target?: E, event?: Event, autoValid?: boolean);
|
5
|
+
valid(): boolean;
|
6
|
+
}
|
@@ -1,43 +1,43 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.RegExpTestValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var DomRenderProxy_1 = require("../DomRenderProxy");
|
21
|
-
var RegExpTestValidator = /** @class */ (function (_super) {
|
22
|
-
__extends(RegExpTestValidator, _super);
|
23
|
-
function RegExpTestValidator(regexp, value, target, event, autoValid) {
|
24
|
-
if (autoValid === void 0) { autoValid = true; }
|
25
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
26
|
-
_this.regexp = DomRenderProxy_1.DomRenderProxy.final(regexp);
|
27
|
-
return _this;
|
28
|
-
}
|
29
|
-
RegExpTestValidator.prototype.valid = function () {
|
30
|
-
var _a;
|
31
|
-
var value = this.value;
|
32
|
-
var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
|
33
|
-
// console.log('regexp-->', value, this.regexp, regExp.test(value))
|
34
|
-
if (value) {
|
35
|
-
return regExp.test(value);
|
36
|
-
}
|
37
|
-
else {
|
38
|
-
return false;
|
39
|
-
}
|
40
|
-
};
|
41
|
-
return RegExpTestValidator;
|
42
|
-
}(Validator_1.Validator));
|
43
|
-
exports.RegExpTestValidator = RegExpTestValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.RegExpTestValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var DomRenderProxy_1 = require("../DomRenderProxy");
|
21
|
+
var RegExpTestValidator = /** @class */ (function (_super) {
|
22
|
+
__extends(RegExpTestValidator, _super);
|
23
|
+
function RegExpTestValidator(regexp, value, target, event, autoValid) {
|
24
|
+
if (autoValid === void 0) { autoValid = true; }
|
25
|
+
var _this = _super.call(this, value, target, event, autoValid) || this;
|
26
|
+
_this.regexp = DomRenderProxy_1.DomRenderProxy.final(regexp);
|
27
|
+
return _this;
|
28
|
+
}
|
29
|
+
RegExpTestValidator.prototype.valid = function () {
|
30
|
+
var _a;
|
31
|
+
var value = this.value;
|
32
|
+
var regExp = (_a = this.regexp._DomRender_origin) !== null && _a !== void 0 ? _a : this.regexp;
|
33
|
+
// console.log('regexp-->', value, this.regexp, regExp.test(value))
|
34
|
+
if (value) {
|
35
|
+
return regExp.test(value);
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
return false;
|
39
|
+
}
|
40
|
+
};
|
41
|
+
return RegExpTestValidator;
|
42
|
+
}(Validator_1.Validator));
|
43
|
+
exports.RegExpTestValidator = RegExpTestValidator;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class RequiredValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
-
valid(): boolean;
|
5
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class RequiredValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|
@@ -1,33 +1,33 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.RequiredValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var RequiredValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(RequiredValidator, _super);
|
22
|
-
function RequiredValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
RequiredValidator.prototype.valid = function () {
|
27
|
-
var value = this.value;
|
28
|
-
// console.log('required', value, value !== undefined && value !== null)
|
29
|
-
return value !== undefined && value !== null;
|
30
|
-
};
|
31
|
-
return RequiredValidator;
|
32
|
-
}(Validator_1.Validator));
|
33
|
-
exports.RequiredValidator = RequiredValidator;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.RequiredValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var RequiredValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(RequiredValidator, _super);
|
22
|
+
function RequiredValidator(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
RequiredValidator.prototype.valid = function () {
|
27
|
+
var value = this.value;
|
28
|
+
// console.log('required', value, value !== undefined && value !== null)
|
29
|
+
return value !== undefined && value !== null;
|
30
|
+
};
|
31
|
+
return RequiredValidator;
|
32
|
+
}(Validator_1.Validator));
|
33
|
+
exports.RequiredValidator = RequiredValidator;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class UnCheckedValidator<T = any, E = HTMLElement> extends Validator<T, E> {
|
3
|
-
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
-
valid(): boolean;
|
5
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
export declare class UnCheckedValidator<T = any, E = HTMLElement> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|