dom-render 1.0.74 → 1.0.77
Sign up to get free protection for your applications and to get access to all the features.
- package/Config.d.ts +38 -36
- package/Config.js +2 -2
- package/DomRender.d.ts +28 -27
- package/DomRender.js +90 -88
- package/DomRenderProxy.d.ts +29 -29
- package/DomRenderProxy.js +342 -327
- package/README.MD +638 -567
- package/RawSet.d.ts +140 -118
- package/RawSet.js +771 -905
- package/components/ComponentSet.d.ts +7 -0
- package/components/ComponentSet.js +14 -0
- package/dist/bundle.js +3789 -3214
- package/events/EventManager.d.ts +48 -47
- package/events/EventManager.js +530 -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 -4
- package/lifecycle/OnDestroyRender.js +2 -2
- 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 +0 -0
- package/operators/AttrExpresion.js +44 -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 -25
- package/routers/Router.js +116 -116
- 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,41 +1,41 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StringUtils = void 0;
|
4
|
-
var StringUtils = /** @class */ (function () {
|
5
|
-
function StringUtils() {
|
6
|
-
}
|
7
|
-
StringUtils.deleteEnter = function (data) {
|
8
|
-
return data.replace(/\r?\n/g, '');
|
9
|
-
};
|
10
|
-
StringUtils.regexExec = function (regex, text) {
|
11
|
-
var varExec = regex.exec(text);
|
12
|
-
var usingVars = [];
|
13
|
-
while (varExec) {
|
14
|
-
usingVars.push(varExec);
|
15
|
-
varExec = regex.exec(varExec.input);
|
16
|
-
}
|
17
|
-
return usingVars;
|
18
|
-
};
|
19
|
-
// public static betweenRegexpStr(start: string, end: string, data: string, flag = 'gm') {
|
20
|
-
// const startEspace = StringUtils.escapeSpecialCharacterRegExp(start);
|
21
|
-
// const reg = RegExp(`(${start}(?:(${start})??[^${startEspace}]*?${end}))`,flag);
|
22
|
-
// return StringUtils.regexExec(reg, data);
|
23
|
-
// }
|
24
|
-
// public static betweenRegexpStrGroup(start: string, end: string, data: string, flag = 'gm') {
|
25
|
-
// const startEspace = StringUtils.escapeSpecialCharacterRegExp(start);
|
26
|
-
// const reg = RegExp(`(?:${start}(?:((?:${start})??[^${startEspace}]*?)${end}))`,flag);
|
27
|
-
// return StringUtils.regexExec(reg, data);
|
28
|
-
// }
|
29
|
-
// public static between(start: string, end: string, data: string, flag = 'gm') {
|
30
|
-
// // (\$\{(?:\[??[^\[]*?\})), (\$\{(?:(\$\{)??[^\$\{]*?\}))
|
31
|
-
// start = StringUtils.escapeSpecialCharacterRegExp(start);
|
32
|
-
// end = StringUtils.escapeSpecialCharacterRegExp(end);
|
33
|
-
// const reg = RegExp(`(${start}(?:(${start})??[^${start}]*?${end}))`,flag);
|
34
|
-
// return StringUtils.regexExec(reg, data);
|
35
|
-
// }
|
36
|
-
StringUtils.escapeSpecialCharacterRegExp = function (data) {
|
37
|
-
return data.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
38
|
-
};
|
39
|
-
return StringUtils;
|
40
|
-
}());
|
41
|
-
exports.StringUtils = StringUtils;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.StringUtils = void 0;
|
4
|
+
var StringUtils = /** @class */ (function () {
|
5
|
+
function StringUtils() {
|
6
|
+
}
|
7
|
+
StringUtils.deleteEnter = function (data) {
|
8
|
+
return data.replace(/\r?\n/g, '');
|
9
|
+
};
|
10
|
+
StringUtils.regexExec = function (regex, text) {
|
11
|
+
var varExec = regex.exec(text);
|
12
|
+
var usingVars = [];
|
13
|
+
while (varExec) {
|
14
|
+
usingVars.push(varExec);
|
15
|
+
varExec = regex.exec(varExec.input);
|
16
|
+
}
|
17
|
+
return usingVars;
|
18
|
+
};
|
19
|
+
// public static betweenRegexpStr(start: string, end: string, data: string, flag = 'gm') {
|
20
|
+
// const startEspace = StringUtils.escapeSpecialCharacterRegExp(start);
|
21
|
+
// const reg = RegExp(`(${start}(?:(${start})??[^${startEspace}]*?${end}))`,flag);
|
22
|
+
// return StringUtils.regexExec(reg, data);
|
23
|
+
// }
|
24
|
+
// public static betweenRegexpStrGroup(start: string, end: string, data: string, flag = 'gm') {
|
25
|
+
// const startEspace = StringUtils.escapeSpecialCharacterRegExp(start);
|
26
|
+
// const reg = RegExp(`(?:${start}(?:((?:${start})??[^${startEspace}]*?)${end}))`,flag);
|
27
|
+
// return StringUtils.regexExec(reg, data);
|
28
|
+
// }
|
29
|
+
// public static between(start: string, end: string, data: string, flag = 'gm') {
|
30
|
+
// // (\$\{(?:\[??[^\[]*?\})), (\$\{(?:(\$\{)??[^\$\{]*?\}))
|
31
|
+
// start = StringUtils.escapeSpecialCharacterRegExp(start);
|
32
|
+
// end = StringUtils.escapeSpecialCharacterRegExp(end);
|
33
|
+
// const reg = RegExp(`(${start}(?:(${start})??[^${start}]*?${end}))`,flag);
|
34
|
+
// return StringUtils.regexExec(reg, data);
|
35
|
+
// }
|
36
|
+
StringUtils.escapeSpecialCharacterRegExp = function (data) {
|
37
|
+
return data.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
38
|
+
};
|
39
|
+
return StringUtils;
|
40
|
+
}());
|
41
|
+
exports.StringUtils = StringUtils;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export declare class ValidUtils {
|
2
|
-
static isNullOrUndefined(data: any): boolean;
|
3
|
-
static isNull(data: any): boolean;
|
4
|
-
static isArray(object_o: any): boolean;
|
5
|
-
static isNumber(object_o: any): boolean;
|
6
|
-
static isString(object_o: any): boolean;
|
7
|
-
static isFunction(object_o: any): boolean;
|
8
|
-
static isObject(object_o: any): boolean;
|
9
|
-
static isMap(object_o: any): boolean;
|
10
|
-
}
|
1
|
+
export declare class ValidUtils {
|
2
|
+
static isNullOrUndefined(data: any): boolean;
|
3
|
+
static isNull(data: any): boolean;
|
4
|
+
static isArray(object_o: any): boolean;
|
5
|
+
static isNumber(object_o: any): boolean;
|
6
|
+
static isString(object_o: any): boolean;
|
7
|
+
static isFunction(object_o: any): boolean;
|
8
|
+
static isObject(object_o: any): boolean;
|
9
|
+
static isMap(object_o: any): boolean;
|
10
|
+
}
|
@@ -1,78 +1,78 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ValidUtils = void 0;
|
4
|
-
var ValidUtils = /** @class */ (function () {
|
5
|
-
function ValidUtils() {
|
6
|
-
}
|
7
|
-
ValidUtils.isNullOrUndefined = function (data) {
|
8
|
-
if (data == null || undefined === data) {
|
9
|
-
return true;
|
10
|
-
}
|
11
|
-
else {
|
12
|
-
return false;
|
13
|
-
}
|
14
|
-
};
|
15
|
-
ValidUtils.isNull = function (data) {
|
16
|
-
if (data == null) {
|
17
|
-
return true;
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
return false;
|
21
|
-
}
|
22
|
-
};
|
23
|
-
ValidUtils.isArray = function (object_o) {
|
24
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
25
|
-
return false;
|
26
|
-
}
|
27
|
-
else {
|
28
|
-
return Object.prototype.toString.call(object_o).trim() === '[object Array]';
|
29
|
-
}
|
30
|
-
};
|
31
|
-
ValidUtils.isNumber = function (object_o) {
|
32
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
33
|
-
return false;
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
return Object.prototype.toString.call(object_o).trim() === '[object Number]';
|
37
|
-
}
|
38
|
-
};
|
39
|
-
ValidUtils.isString = function (object_o) {
|
40
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
41
|
-
return false;
|
42
|
-
}
|
43
|
-
else {
|
44
|
-
return Object.prototype.toString.call(object_o).trim() === '[object String]';
|
45
|
-
}
|
46
|
-
};
|
47
|
-
ValidUtils.isFunction = function (object_o) {
|
48
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
49
|
-
return false;
|
50
|
-
}
|
51
|
-
else {
|
52
|
-
return Object.prototype.toString.call(object_o).trim() === '[object Function]';
|
53
|
-
}
|
54
|
-
// if (typeof object_o === 'function') {
|
55
|
-
// return true;
|
56
|
-
// }else {
|
57
|
-
// return false;
|
58
|
-
// }
|
59
|
-
};
|
60
|
-
ValidUtils.isObject = function (object_o) {
|
61
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
62
|
-
return false;
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
return Object.prototype.toString.call(object_o).trim() === '[object Object]';
|
66
|
-
}
|
67
|
-
};
|
68
|
-
ValidUtils.isMap = function (object_o) {
|
69
|
-
if (ValidUtils.isNullOrUndefined(object_o)) {
|
70
|
-
return false;
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
return Object.prototype.toString.call(object_o).trim() === '[object Map]';
|
74
|
-
}
|
75
|
-
};
|
76
|
-
return ValidUtils;
|
77
|
-
}());
|
78
|
-
exports.ValidUtils = ValidUtils;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ValidUtils = void 0;
|
4
|
+
var ValidUtils = /** @class */ (function () {
|
5
|
+
function ValidUtils() {
|
6
|
+
}
|
7
|
+
ValidUtils.isNullOrUndefined = function (data) {
|
8
|
+
if (data == null || undefined === data) {
|
9
|
+
return true;
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
return false;
|
13
|
+
}
|
14
|
+
};
|
15
|
+
ValidUtils.isNull = function (data) {
|
16
|
+
if (data == null) {
|
17
|
+
return true;
|
18
|
+
}
|
19
|
+
else {
|
20
|
+
return false;
|
21
|
+
}
|
22
|
+
};
|
23
|
+
ValidUtils.isArray = function (object_o) {
|
24
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
25
|
+
return false;
|
26
|
+
}
|
27
|
+
else {
|
28
|
+
return Object.prototype.toString.call(object_o).trim() === '[object Array]';
|
29
|
+
}
|
30
|
+
};
|
31
|
+
ValidUtils.isNumber = function (object_o) {
|
32
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
33
|
+
return false;
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
return Object.prototype.toString.call(object_o).trim() === '[object Number]';
|
37
|
+
}
|
38
|
+
};
|
39
|
+
ValidUtils.isString = function (object_o) {
|
40
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
41
|
+
return false;
|
42
|
+
}
|
43
|
+
else {
|
44
|
+
return Object.prototype.toString.call(object_o).trim() === '[object String]';
|
45
|
+
}
|
46
|
+
};
|
47
|
+
ValidUtils.isFunction = function (object_o) {
|
48
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
49
|
+
return false;
|
50
|
+
}
|
51
|
+
else {
|
52
|
+
return Object.prototype.toString.call(object_o).trim() === '[object Function]';
|
53
|
+
}
|
54
|
+
// if (typeof object_o === 'function') {
|
55
|
+
// return true;
|
56
|
+
// }else {
|
57
|
+
// return false;
|
58
|
+
// }
|
59
|
+
};
|
60
|
+
ValidUtils.isObject = function (object_o) {
|
61
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
62
|
+
return false;
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
return Object.prototype.toString.call(object_o).trim() === '[object Object]';
|
66
|
+
}
|
67
|
+
};
|
68
|
+
ValidUtils.isMap = function (object_o) {
|
69
|
+
if (ValidUtils.isNullOrUndefined(object_o)) {
|
70
|
+
return false;
|
71
|
+
}
|
72
|
+
else {
|
73
|
+
return Object.prototype.toString.call(object_o).trim() === '[object Map]';
|
74
|
+
}
|
75
|
+
};
|
76
|
+
return ValidUtils;
|
77
|
+
}());
|
78
|
+
exports.ValidUtils = ValidUtils;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
import { ValidatorArray } from './ValidatorArray';
|
3
|
-
export declare class AllCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
-
constructor(value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
5
|
-
valid(): boolean;
|
6
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
import { ValidatorArray } from './ValidatorArray';
|
3
|
+
export declare class AllCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
+
constructor(value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
5
|
+
valid(): boolean;
|
6
|
+
}
|
@@ -1,32 +1,32 @@
|
|
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.AllCheckedValidatorArray = void 0;
|
19
|
-
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
-
var AllCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
-
__extends(AllCheckedValidatorArray, _super);
|
22
|
-
function AllCheckedValidatorArray(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
AllCheckedValidatorArray.prototype.valid = function () {
|
27
|
-
var _a;
|
28
|
-
return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length > 0);
|
29
|
-
};
|
30
|
-
return AllCheckedValidatorArray;
|
31
|
-
}(ValidatorArray_1.ValidatorArray));
|
32
|
-
exports.AllCheckedValidatorArray = AllCheckedValidatorArray;
|
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.AllCheckedValidatorArray = void 0;
|
19
|
+
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
+
var AllCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
+
__extends(AllCheckedValidatorArray, _super);
|
22
|
+
function AllCheckedValidatorArray(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
AllCheckedValidatorArray.prototype.valid = function () {
|
27
|
+
var _a;
|
28
|
+
return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return !it.checked; }).length > 0);
|
29
|
+
};
|
30
|
+
return AllCheckedValidatorArray;
|
31
|
+
}(ValidatorArray_1.ValidatorArray));
|
32
|
+
exports.AllCheckedValidatorArray = AllCheckedValidatorArray;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
import { ValidatorArray } from './ValidatorArray';
|
3
|
-
export declare class AllUnCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
-
constructor(value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
5
|
-
valid(): boolean;
|
6
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
import { ValidatorArray } from './ValidatorArray';
|
3
|
+
export declare class AllUnCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
+
constructor(value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
5
|
+
valid(): boolean;
|
6
|
+
}
|
@@ -1,32 +1,32 @@
|
|
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.AllUnCheckedValidatorArray = void 0;
|
19
|
-
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
-
var AllUnCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
-
__extends(AllUnCheckedValidatorArray, _super);
|
22
|
-
function AllUnCheckedValidatorArray(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
AllUnCheckedValidatorArray.prototype.valid = function () {
|
27
|
-
var _a;
|
28
|
-
return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > 0);
|
29
|
-
};
|
30
|
-
return AllUnCheckedValidatorArray;
|
31
|
-
}(ValidatorArray_1.ValidatorArray));
|
32
|
-
exports.AllUnCheckedValidatorArray = AllUnCheckedValidatorArray;
|
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.AllUnCheckedValidatorArray = void 0;
|
19
|
+
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
+
var AllUnCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
+
__extends(AllUnCheckedValidatorArray, _super);
|
22
|
+
function AllUnCheckedValidatorArray(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
AllUnCheckedValidatorArray.prototype.valid = function () {
|
27
|
+
var _a;
|
28
|
+
return !(((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length > 0);
|
29
|
+
};
|
30
|
+
return AllUnCheckedValidatorArray;
|
31
|
+
}(ValidatorArray_1.ValidatorArray));
|
32
|
+
exports.AllUnCheckedValidatorArray = AllUnCheckedValidatorArray;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
export declare class CheckedValidator<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 CheckedValidator<T = any, E = HTMLElement> extends Validator<T, E> {
|
3
|
+
constructor(value?: T, target?: E, event?: Event, autoValid?: boolean);
|
4
|
+
valid(): boolean;
|
5
|
+
}
|
@@ -1,32 +1,32 @@
|
|
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.CheckedValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var CheckedValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(CheckedValidator, _super);
|
22
|
-
function CheckedValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
CheckedValidator.prototype.valid = function () {
|
27
|
-
var _a, _b;
|
28
|
-
return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
|
29
|
-
};
|
30
|
-
return CheckedValidator;
|
31
|
-
}(Validator_1.Validator));
|
32
|
-
exports.CheckedValidator = CheckedValidator;
|
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.CheckedValidator = void 0;
|
19
|
+
var Validator_1 = require("./Validator");
|
20
|
+
var CheckedValidator = /** @class */ (function (_super) {
|
21
|
+
__extends(CheckedValidator, _super);
|
22
|
+
function CheckedValidator(value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
}
|
26
|
+
CheckedValidator.prototype.valid = function () {
|
27
|
+
var _a, _b;
|
28
|
+
return (_b = (_a = this.getTarget()) === null || _a === void 0 ? void 0 : _a.checked) !== null && _b !== void 0 ? _b : false;
|
29
|
+
};
|
30
|
+
return CheckedValidator;
|
31
|
+
}(Validator_1.Validator));
|
32
|
+
exports.CheckedValidator = CheckedValidator;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
import { ValidatorArray } from './ValidatorArray';
|
3
|
-
export declare class CountEqualsCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
-
count: number;
|
5
|
-
constructor(count: number, value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
6
|
-
valid(): boolean;
|
7
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
import { ValidatorArray } from './ValidatorArray';
|
3
|
+
export declare class CountEqualsCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
+
count: number;
|
5
|
+
constructor(count: number, value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
6
|
+
valid(): boolean;
|
7
|
+
}
|
@@ -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.CountEqualsCheckedValidatorArray = void 0;
|
19
|
-
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
-
var CountEqualsCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
-
__extends(CountEqualsCheckedValidatorArray, _super);
|
22
|
-
function CountEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
_this.count = count;
|
26
|
-
return _this;
|
27
|
-
}
|
28
|
-
CountEqualsCheckedValidatorArray.prototype.valid = function () {
|
29
|
-
var _a;
|
30
|
-
return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length === this.count;
|
31
|
-
};
|
32
|
-
return CountEqualsCheckedValidatorArray;
|
33
|
-
}(ValidatorArray_1.ValidatorArray));
|
34
|
-
exports.CountEqualsCheckedValidatorArray = CountEqualsCheckedValidatorArray;
|
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.CountEqualsCheckedValidatorArray = void 0;
|
19
|
+
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
+
var CountEqualsCheckedValidatorArray = /** @class */ (function (_super) {
|
21
|
+
__extends(CountEqualsCheckedValidatorArray, _super);
|
22
|
+
function CountEqualsCheckedValidatorArray(count, value, target, event, autoValid) {
|
23
|
+
if (autoValid === void 0) { autoValid = true; }
|
24
|
+
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
+
_this.count = count;
|
26
|
+
return _this;
|
27
|
+
}
|
28
|
+
CountEqualsCheckedValidatorArray.prototype.valid = function () {
|
29
|
+
var _a;
|
30
|
+
return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(function (it) { return it.checked; }).length === this.count;
|
31
|
+
};
|
32
|
+
return CountEqualsCheckedValidatorArray;
|
33
|
+
}(ValidatorArray_1.ValidatorArray));
|
34
|
+
exports.CountEqualsCheckedValidatorArray = CountEqualsCheckedValidatorArray;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
import { ValidatorArray } from './ValidatorArray';
|
3
|
-
export declare class CountEqualsUnCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
-
count: number;
|
5
|
-
constructor(count: number, value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
6
|
-
valid(): boolean;
|
7
|
-
}
|
1
|
+
import { Validator } from './Validator';
|
2
|
+
import { ValidatorArray } from './ValidatorArray';
|
3
|
+
export declare class CountEqualsUnCheckedValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
+
count: number;
|
5
|
+
constructor(count: number, value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
6
|
+
valid(): boolean;
|
7
|
+
}
|