dom-render 1.0.98 → 1.0.99
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/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/dom-render.iml +9 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jpa-buddy.xml +6 -0
- package/.idea/misc.xml +8 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.MD +6 -793
- package/package.json +1 -1
- package/DomRender.d.ts +0 -13
- package/DomRender.js +0 -72
- package/DomRenderProxy.d.ts +0 -30
- package/DomRenderProxy.js +0 -515
- package/components/ComponentSet.d.ts +0 -10
- package/components/ComponentSet.js +0 -13
- package/configs/Config.d.ts +0 -34
- package/configs/Config.js +0 -2
- package/configs/TargetAttr.d.ts +0 -6
- package/configs/TargetAttr.js +0 -2
- package/configs/TargetElement.d.ts +0 -14
- package/configs/TargetElement.js +0 -2
- package/css/parse/index.d.ts +0 -1
- package/css/parse/index.js +0 -512
- package/css/stringify/compiler.d.ts +0 -32
- package/css/stringify/compiler.js +0 -40
- package/css/stringify/compress.d.ts +0 -75
- package/css/stringify/compress.js +0 -156
- package/css/stringify/identity.d.ts +0 -85
- package/css/stringify/identity.js +0 -194
- package/css/stringify/index.d.ts +0 -14
- package/css/stringify/index.js +0 -44
- package/dist/bundle.js +0 -5442
- package/events/EventManager.d.ts +0 -49
- package/events/EventManager.js +0 -529
- package/iterators/Range.d.ts +0 -23
- package/iterators/Range.js +0 -80
- package/lifecycle/OnBeforeReturnGet.d.ts +0 -3
- package/lifecycle/OnBeforeReturnGet.js +0 -2
- package/lifecycle/OnBeforeReturnSet.d.ts +0 -3
- package/lifecycle/OnBeforeReturnSet.js +0 -2
- package/lifecycle/OnChangeAttrRender.d.ts +0 -3
- package/lifecycle/OnChangeAttrRender.js +0 -2
- package/lifecycle/OnCreateRender.d.ts +0 -3
- package/lifecycle/OnCreateRender.js +0 -2
- package/lifecycle/OnDestroyRender.d.ts +0 -4
- package/lifecycle/OnDestroyRender.js +0 -2
- package/lifecycle/OnInitRender.d.ts +0 -3
- package/lifecycle/OnInitRender.js +0 -2
- package/lifecycle/OnProxyDomRender.d.ts +0 -4
- package/lifecycle/OnProxyDomRender.js +0 -2
- package/managers/RenderManager.d.ts +0 -3
- package/managers/RenderManager.js +0 -18
- package/messenger/DefaultMessenger.d.ts +0 -3
- package/messenger/DefaultMessenger.js +0 -27
- package/messenger/Messenger.d.ts +0 -78
- package/messenger/Messenger.js +0 -201
- package/operators/Appender.d.ts +0 -10
- package/operators/Appender.js +0 -64
- package/operators/AttrExpresion.d.ts +0 -0
- package/operators/AttrExpresion.js +0 -44
- package/operators/Dr.d.ts +0 -8
- package/operators/Dr.js +0 -101
- package/operators/DrAppender.d.ts +0 -8
- package/operators/DrAppender.js +0 -105
- package/operators/DrFor.d.ts +0 -8
- package/operators/DrFor.js +0 -102
- package/operators/DrForOf.d.ts +0 -8
- package/operators/DrForOf.js +0 -105
- package/operators/DrForm.d.ts +0 -8
- package/operators/DrForm.js +0 -138
- package/operators/DrIf.d.ts +0 -8
- package/operators/DrIf.js +0 -106
- package/operators/DrInnerHTML.d.ts +0 -8
- package/operators/DrInnerHTML.js +0 -99
- package/operators/DrInnerText.d.ts +0 -8
- package/operators/DrInnerText.js +0 -97
- package/operators/DrPre.d.ts +0 -7
- package/operators/DrPre.js +0 -71
- package/operators/DrRepeat.d.ts +0 -8
- package/operators/DrRepeat.js +0 -103
- package/operators/DrTargetAttr.d.ts +0 -7
- package/operators/DrTargetAttr.js +0 -96
- package/operators/DrTargetElement.d.ts +0 -7
- package/operators/DrTargetElement.js +0 -112
- package/operators/DrThis.d.ts +0 -5
- package/operators/DrThis.js +0 -108
- package/operators/DrThisProperty.d.ts +0 -10
- package/operators/DrThisProperty.js +0 -141
- package/operators/OperatorExecuter.d.ts +0 -49
- package/operators/OperatorExecuter.js +0 -89
- package/operators/OperatorExecuterAttrRequire.d.ts +0 -8
- package/operators/OperatorExecuterAttrRequire.js +0 -79
- package/rawsets/AttrInitCallBack.d.ts +0 -5
- package/rawsets/AttrInitCallBack.js +0 -2
- package/rawsets/Attrs.d.ts +0 -24
- package/rawsets/Attrs.js +0 -2
- package/rawsets/CreatorMetaData.d.ts +0 -18
- package/rawsets/CreatorMetaData.js +0 -2
- package/rawsets/DestroyOptionType.d.ts +0 -4
- package/rawsets/DestroyOptionType.js +0 -8
- package/rawsets/ElementInitCallBack.d.ts +0 -8
- package/rawsets/ElementInitCallBack.js +0 -2
- package/rawsets/RawSet.d.ts +0 -118
- package/rawsets/RawSet.js +0 -1142
- package/rawsets/RawSetOperatorType.d.ts +0 -3
- package/rawsets/RawSetOperatorType.js +0 -7
- package/rawsets/RawSetType.d.ts +0 -7
- package/rawsets/RawSetType.js +0 -11
- package/rawsets/Render.d.ts +0 -17
- package/rawsets/Render.js +0 -2
- package/routers/HashRouter.d.ts +0 -9
- package/routers/HashRouter.js +0 -53
- package/routers/PathRouter.d.ts +0 -9
- package/routers/PathRouter.js +0 -52
- package/routers/Router.d.ts +0 -28
- package/routers/Router.js +0 -126
- package/types/Types.d.ts +0 -14
- package/types/Types.js +0 -36
- package/utils/clipboard/ClipBoardUtils.d.ts +0 -6
- package/utils/clipboard/ClipBoardUtils.js +0 -25
- package/utils/dom/DomUtils.d.ts +0 -13
- package/utils/dom/DomUtils.js +0 -47
- package/utils/location/LocationUtils.d.ts +0 -16
- package/utils/location/LocationUtils.js +0 -63
- package/utils/node/NodeUtils.d.ts +0 -10
- package/utils/node/NodeUtils.js +0 -27
- package/utils/random/RandomUtils.d.ts +0 -7
- package/utils/random/RandomUtils.js +0 -47
- package/utils/script/ScriptUtils.d.ts +0 -14
- package/utils/script/ScriptUtils.js +0 -89
- package/utils/storage/StorageUtils.d.ts +0 -16
- package/utils/storage/StorageUtils.js +0 -87
- package/utils/string/StringUtils.d.ts +0 -6
- package/utils/string/StringUtils.js +0 -58
- package/utils/valid/ValidUtils.d.ts +0 -10
- package/utils/valid/ValidUtils.js +0 -78
- package/validators/AllCheckedValidatorArray.d.ts +0 -6
- package/validators/AllCheckedValidatorArray.js +0 -32
- package/validators/AllUnCheckedValidatorArray.d.ts +0 -6
- package/validators/AllUnCheckedValidatorArray.js +0 -32
- package/validators/CheckedValidator.d.ts +0 -5
- package/validators/CheckedValidator.js +0 -32
- package/validators/CountEqualsCheckedValidatorArray.d.ts +0 -7
- package/validators/CountEqualsCheckedValidatorArray.js +0 -34
- package/validators/CountEqualsUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountEqualsUnCheckedValidatorArray.js +0 -34
- package/validators/CountGreaterThanCheckedValidatorArray.d.ts +0 -7
- package/validators/CountGreaterThanCheckedValidatorArray.js +0 -34
- package/validators/CountGreaterThanEqualsCheckedValidatorArray.d.ts +0 -7
- package/validators/CountGreaterThanEqualsCheckedValidatorArray.js +0 -34
- package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountGreaterThanEqualsUnCheckedValidatorArray.js +0 -34
- package/validators/CountGreaterThanUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountGreaterThanUnCheckedValidatorArray.js +0 -34
- package/validators/CountLessThanCheckedValidatorArray.d.ts +0 -7
- package/validators/CountLessThanCheckedValidatorArray.js +0 -34
- package/validators/CountLessThanEqualsCheckedValidatorArray.d.ts +0 -7
- package/validators/CountLessThanEqualsCheckedValidatorArray.js +0 -34
- package/validators/CountLessThanEqualsUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountLessThanEqualsUnCheckedValidatorArray.js +0 -34
- package/validators/CountLessThanUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountLessThanUnCheckedValidatorArray.js +0 -34
- package/validators/CountUnCheckedValidatorArray.d.ts +0 -7
- package/validators/CountUnCheckedValidatorArray.js +0 -34
- package/validators/EmptyValidator.d.ts +0 -5
- package/validators/EmptyValidator.js +0 -33
- package/validators/ExcludeCheckedValidatorArray.d.ts +0 -8
- package/validators/ExcludeCheckedValidatorArray.js +0 -41
- package/validators/FormValidator.d.ts +0 -7
- package/validators/FormValidator.js +0 -37
- package/validators/IncludeCheckedValidatorArray.d.ts +0 -8
- package/validators/IncludeCheckedValidatorArray.js +0 -41
- package/validators/MultipleValidator.d.ts +0 -8
- package/validators/MultipleValidator.js +0 -48
- package/validators/NonPassValidator.d.ts +0 -5
- package/validators/NonPassValidator.js +0 -31
- package/validators/NotEmptyValidator.d.ts +0 -5
- package/validators/NotEmptyValidator.js +0 -34
- package/validators/NotRegExpTestValidator.d.ts +0 -6
- package/validators/NotRegExpTestValidator.js +0 -42
- package/validators/PassValidator.d.ts +0 -5
- package/validators/PassValidator.js +0 -31
- package/validators/RegExpTestValidator.d.ts +0 -6
- package/validators/RegExpTestValidator.js +0 -43
- package/validators/RequiredValidator.d.ts +0 -5
- package/validators/RequiredValidator.js +0 -33
- package/validators/UnCheckedValidator.d.ts +0 -5
- package/validators/UnCheckedValidator.js +0 -32
- package/validators/ValidMultipleValidator.d.ts +0 -9
- package/validators/ValidMultipleValidator.js +0 -34
- package/validators/ValidValidator.d.ts +0 -6
- package/validators/ValidValidator.js +0 -33
- package/validators/ValidValidatorArray.d.ts +0 -7
- package/validators/ValidValidatorArray.js +0 -33
- package/validators/Validator.d.ts +0 -57
- package/validators/Validator.js +0 -242
- package/validators/ValidatorArray.d.ts +0 -17
- package/validators/ValidatorArray.js +0 -99
- package/validators/ValueEqualsValidator.d.ts +0 -6
- package/validators/ValueEqualsValidator.js +0 -33
- package/validators/ValueNotEqualsValidator.d.ts +0 -6
- package/validators/ValueNotEqualsValidator.js +0 -33
@@ -1,34 +0,0 @@
|
|
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;
|
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 && ((_a = value === null || value === void 0 ? void 0 : value.length) !== null && _a !== void 0 ? _a : 0) > 0;
|
31
|
-
};
|
32
|
-
return NotEmptyValidator;
|
33
|
-
}(Validator_1.Validator));
|
34
|
-
exports.NotEmptyValidator = NotEmptyValidator;
|
@@ -1,42 +0,0 @@
|
|
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,31 +0,0 @@
|
|
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,43 +0,0 @@
|
|
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,33 +0,0 @@
|
|
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,32 +0,0 @@
|
|
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.UnCheckedValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var UnCheckedValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(UnCheckedValidator, _super);
|
22
|
-
function UnCheckedValidator(value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
return _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
}
|
26
|
-
UnCheckedValidator.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 UnCheckedValidator;
|
31
|
-
}(Validator_1.Validator));
|
32
|
-
exports.UnCheckedValidator = UnCheckedValidator;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { Validator } from './Validator';
|
2
|
-
import { MultipleValidator } from './MultipleValidator';
|
3
|
-
export type ValidMulltiple<T = any, E = Element> = (validators: Validator<T, E>[], value?: T, target?: E, event?: Event) => boolean;
|
4
|
-
export declare class ValidMultipleValidator<T = any, E = Element> extends MultipleValidator<T, E> {
|
5
|
-
validMultipleCallback: ValidMulltiple<T, E>;
|
6
|
-
validators: Validator<T, E>[];
|
7
|
-
constructor(validMultipleCallback: ValidMulltiple<T, E>, validators: Validator<T, E>[], value?: T, target?: E, event?: Event, autoValid?: boolean);
|
8
|
-
valid(): boolean;
|
9
|
-
}
|
@@ -1,34 +0,0 @@
|
|
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.ValidMultipleValidator = void 0;
|
19
|
-
var MultipleValidator_1 = require("./MultipleValidator");
|
20
|
-
var ValidMultipleValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(ValidMultipleValidator, _super);
|
22
|
-
function ValidMultipleValidator(validMultipleCallback, validators, value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
var _this = _super.call(this, validators, value, target, event, autoValid) || this;
|
25
|
-
_this.validMultipleCallback = validMultipleCallback;
|
26
|
-
_this.validators = validators;
|
27
|
-
return _this;
|
28
|
-
}
|
29
|
-
ValidMultipleValidator.prototype.valid = function () {
|
30
|
-
return this.validMultipleCallback(this.validators, this.value, this.getTarget(), this.getEvent());
|
31
|
-
};
|
32
|
-
return ValidMultipleValidator;
|
33
|
-
}(MultipleValidator_1.MultipleValidator));
|
34
|
-
exports.ValidMultipleValidator = ValidMultipleValidator;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { Valid, Validator } from './Validator';
|
2
|
-
export declare class ValidValidator<T = any, E = Element> extends Validator<T, E> {
|
3
|
-
validCallBack: Valid<T, E>;
|
4
|
-
constructor(validCallBack: Valid<T, E>, value?: T, target?: E, event?: Event, autoValid?: boolean);
|
5
|
-
valid(value?: T, target?: E, event?: Event): boolean;
|
6
|
-
}
|
@@ -1,33 +0,0 @@
|
|
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.ValidValidator = void 0;
|
19
|
-
var Validator_1 = require("./Validator");
|
20
|
-
var ValidValidator = /** @class */ (function (_super) {
|
21
|
-
__extends(ValidValidator, _super);
|
22
|
-
function ValidValidator(validCallBack, value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
_this.validCallBack = validCallBack;
|
26
|
-
return _this;
|
27
|
-
}
|
28
|
-
ValidValidator.prototype.valid = function (value, target, event) {
|
29
|
-
return this.validCallBack(value, target, event);
|
30
|
-
};
|
31
|
-
return ValidValidator;
|
32
|
-
}(Validator_1.Validator));
|
33
|
-
exports.ValidValidator = ValidValidator;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { Valid, Validator } from './Validator';
|
2
|
-
import { ValidatorArray } from './ValidatorArray';
|
3
|
-
export declare class ValidValidatorArray<T = any, E = Element> extends ValidatorArray<T, E> {
|
4
|
-
validCallBack: Valid<Validator<T, E>[], E>;
|
5
|
-
constructor(validCallBack: Valid<Validator<T, E>[], E>, value?: Validator<T, E>[], target?: E, event?: Event, autoValid?: boolean);
|
6
|
-
valid(): boolean;
|
7
|
-
}
|
@@ -1,33 +0,0 @@
|
|
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.ValidValidatorArray = void 0;
|
19
|
-
var ValidatorArray_1 = require("./ValidatorArray");
|
20
|
-
var ValidValidatorArray = /** @class */ (function (_super) {
|
21
|
-
__extends(ValidValidatorArray, _super);
|
22
|
-
function ValidValidatorArray(validCallBack, value, target, event, autoValid) {
|
23
|
-
if (autoValid === void 0) { autoValid = true; }
|
24
|
-
var _this = _super.call(this, value, target, event, autoValid) || this;
|
25
|
-
_this.validCallBack = validCallBack;
|
26
|
-
return _this;
|
27
|
-
}
|
28
|
-
ValidValidatorArray.prototype.valid = function () {
|
29
|
-
return this.validCallBack(this.value, this.getTarget(), this.getEvent());
|
30
|
-
};
|
31
|
-
return ValidValidatorArray;
|
32
|
-
}(ValidatorArray_1.ValidatorArray));
|
33
|
-
exports.ValidValidatorArray = ValidValidatorArray;
|
@@ -1,57 +0,0 @@
|
|
1
|
-
export type Valid<T = any, E = Element> = (value?: T, target?: E, event?: Event) => boolean;
|
2
|
-
export type ValidAction<T = any, E = Element> = (valid: boolean, value?: T, target?: E, event?: Event) => void;
|
3
|
-
export declare abstract class Validator<T = any, E = Element> {
|
4
|
-
protected _value?: T | undefined;
|
5
|
-
private _target?;
|
6
|
-
private _event?;
|
7
|
-
private _autoValid;
|
8
|
-
private _autoValidAction;
|
9
|
-
private _validAction?;
|
10
|
-
constructor(_value?: T | undefined, target?: E, event?: Event, autoValid?: boolean, autoValidAction?: boolean);
|
11
|
-
getValidAction(): ValidAction<T, E> | undefined;
|
12
|
-
setValidAction(value: ValidAction<T, E>): this;
|
13
|
-
getAutoValid(): boolean;
|
14
|
-
setAutoValid(autoValid: boolean): this;
|
15
|
-
getAutoValidAction(): boolean;
|
16
|
-
setAutoValidAction(autoValid: boolean): this;
|
17
|
-
getEvent(): Event | undefined;
|
18
|
-
setEvent(event: Event | undefined): this;
|
19
|
-
getTarget(): E | undefined;
|
20
|
-
targetFocus(): void;
|
21
|
-
targetReset(): void;
|
22
|
-
targetDispatchEvent(event: Event): any;
|
23
|
-
setTarget(target: E | undefined): this;
|
24
|
-
private domRenderFinal;
|
25
|
-
get value(): T | undefined;
|
26
|
-
set value(value: T | undefined);
|
27
|
-
protected tickValue(value: T | undefined): void;
|
28
|
-
set(value?: T, target?: E, event?: Event): void;
|
29
|
-
changeValue(value: T | undefined): void;
|
30
|
-
get checked(): boolean;
|
31
|
-
set checked(checked: boolean);
|
32
|
-
get selectedIndex(): number;
|
33
|
-
set selectedIndex(selectedIndex: number);
|
34
|
-
querySelector(selector: string): Element | null;
|
35
|
-
querySelectorALL(selector: string): NodeListOf<Element>;
|
36
|
-
validAction(): boolean;
|
37
|
-
abstract valid(): boolean;
|
38
|
-
inValid(): boolean;
|
39
|
-
allValid(): boolean;
|
40
|
-
allValidAction(): boolean;
|
41
|
-
allInValid(): boolean;
|
42
|
-
allInValidAction(): boolean;
|
43
|
-
childValid(): boolean;
|
44
|
-
childValue(): {
|
45
|
-
[key: string]: any;
|
46
|
-
};
|
47
|
-
childValidAction(): boolean;
|
48
|
-
childInValid(): boolean;
|
49
|
-
childInValidValidator(): [string, Validator<any, Element>][];
|
50
|
-
childInValidAction(): boolean;
|
51
|
-
childValidator(name: string): Validator | undefined;
|
52
|
-
childValidators(): [string, Validator][];
|
53
|
-
childValidValidator(): [string, Validator][];
|
54
|
-
syncValue(): void;
|
55
|
-
allSyncValue(): void;
|
56
|
-
get length(): any;
|
57
|
-
}
|