dom-render 1.0.97 → 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 -510
- 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 -5493
- 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 -107
- package/operators/DrFor.d.ts +0 -8
- package/operators/DrFor.js +0 -104
- package/operators/DrForOf.d.ts +0 -8
- package/operators/DrForOf.js +0 -107
- 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 -108
- 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 -73
- package/operators/DrRepeat.d.ts +0 -8
- package/operators/DrRepeat.js +0 -105
- package/operators/DrTargetAttr.d.ts +0 -7
- package/operators/DrTargetAttr.js +0 -98
- package/operators/DrTargetElement.d.ts +0 -7
- package/operators/DrTargetElement.js +0 -114
- 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 -143
- 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 -1141
- 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
package/rawsets/Attrs.d.ts
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
export declare type Attrs = {
|
2
|
-
dr: string | null;
|
3
|
-
drIf: string | null;
|
4
|
-
drAppender: string | null;
|
5
|
-
drFor: string | null;
|
6
|
-
drForOf: string | null;
|
7
|
-
drThisProperty: string | null;
|
8
|
-
drRepeat: string | null;
|
9
|
-
drThis: string | null;
|
10
|
-
drForm: string | null;
|
11
|
-
drPre: string | null;
|
12
|
-
drInnerHTML: string | null;
|
13
|
-
drInnerText: string | null;
|
14
|
-
drItOption: string | null;
|
15
|
-
drVarOption: string | null;
|
16
|
-
drAfterOption: string | null;
|
17
|
-
drNextOption: string | null;
|
18
|
-
drBeforeOption: string | null;
|
19
|
-
drCompleteOption: string | null;
|
20
|
-
drStripOption: string | null;
|
21
|
-
drDestroyOption: string | null;
|
22
|
-
drHasKeysOption: string | null;
|
23
|
-
drKeyOption: string | null;
|
24
|
-
};
|
package/rawsets/Attrs.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Router } from '../routers/Router';
|
2
|
-
import { Attrs } from './Attrs';
|
3
|
-
import { RawSet } from './RawSet';
|
4
|
-
export declare type CreatorMetaData = {
|
5
|
-
thisVariableName?: string | null;
|
6
|
-
thisFullVariableName?: string | null;
|
7
|
-
componentKey?: string | null;
|
8
|
-
rawSet: RawSet;
|
9
|
-
scripts?: {
|
10
|
-
[n: string]: any;
|
11
|
-
};
|
12
|
-
router?: Router;
|
13
|
-
innerHTML: string;
|
14
|
-
drAttrs?: Attrs;
|
15
|
-
rootCreator: any;
|
16
|
-
attribute: any;
|
17
|
-
creator: any;
|
18
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DestroyOptionType = void 0;
|
4
|
-
var DestroyOptionType;
|
5
|
-
(function (DestroyOptionType) {
|
6
|
-
DestroyOptionType["NO_DESTROY"] = "NO_DESTROY";
|
7
|
-
DestroyOptionType["NO_MESSENGER_DESTROY"] = "NO_MESSENGER_DESTROY";
|
8
|
-
})(DestroyOptionType = exports.DestroyOptionType || (exports.DestroyOptionType = {}));
|
package/rawsets/RawSet.d.ts
DELETED
@@ -1,118 +0,0 @@
|
|
1
|
-
import { Config } from '../configs/Config';
|
2
|
-
import { ComponentSet } from '../components/ComponentSet';
|
3
|
-
import { TargetElement } from '../configs/TargetElement';
|
4
|
-
import { TargetAttr } from '../configs/TargetAttr';
|
5
|
-
import { DestroyOptionType } from './DestroyOptionType';
|
6
|
-
import { Attrs } from './Attrs';
|
7
|
-
import { RawSetType } from './RawSetType';
|
8
|
-
export declare class RawSet {
|
9
|
-
uuid: string;
|
10
|
-
type: RawSetType;
|
11
|
-
point: {
|
12
|
-
start: (Comment | Text | HTMLMetaElement) & {
|
13
|
-
rawSet?: RawSet;
|
14
|
-
};
|
15
|
-
node: Node;
|
16
|
-
end: Comment | Text | HTMLMetaElement;
|
17
|
-
thisVariableName?: string | null;
|
18
|
-
parent?: Node | null;
|
19
|
-
};
|
20
|
-
fragment: DocumentFragment;
|
21
|
-
detect?: {
|
22
|
-
action: Function;
|
23
|
-
} | undefined;
|
24
|
-
data?: any;
|
25
|
-
static readonly DR_NAME = "dr";
|
26
|
-
static readonly DR_IF_NAME = "dr-if";
|
27
|
-
static readonly DR_FOR_NAME = "dr-for";
|
28
|
-
static readonly DR_FOR_OF_NAME = "dr-for-of";
|
29
|
-
static readonly DR_THIS_PROPERTY_NAME = "dr-this-property";
|
30
|
-
static readonly DR_REPEAT_NAME = "dr-repeat";
|
31
|
-
static readonly DR_THIS_NAME = "dr-this";
|
32
|
-
static readonly DR_FORM_NAME = "dr-form";
|
33
|
-
static readonly DR_PRE_NAME = "dr-pre";
|
34
|
-
static readonly DR_APPENDER_NAME = "dr-appender";
|
35
|
-
static readonly DR_INNERHTML_NAME = "dr-inner-html";
|
36
|
-
static readonly DR_INNERTEXT_NAME = "dr-inner-text";
|
37
|
-
static readonly DR_DETECT_NAME = "dr-detect";
|
38
|
-
static readonly DR_IT_OPTIONNAME = "dr-it";
|
39
|
-
static readonly DR_VAR_OPTIONNAME = "dr-var";
|
40
|
-
static readonly DR_AFTER_OPTIONNAME = "dr-after";
|
41
|
-
static readonly DR_NEXT_OPTIONNAME = "dr-next";
|
42
|
-
static readonly DR_BEFORE_OPTIONNAME = "dr-before";
|
43
|
-
static readonly DR_COMPLETE_OPTIONNAME = "dr-complete";
|
44
|
-
static readonly DR_STRIP_OPTIONNAME = "dr-strip";
|
45
|
-
static readonly DR_DESTROY_OPTIONNAME = "dr-destroy";
|
46
|
-
static readonly DR_COMPONENT_NAME_OPTIONNAME = "dr-component-name";
|
47
|
-
static readonly DR_COMPONENT_INNER_HTML_NAME_OPTIONNAME = "dr-component-inner-html-name";
|
48
|
-
static readonly DR_KEY_OPTIONNAME = "dr-key";
|
49
|
-
static readonly DR_HAS_KEYS_OPTIONNAME = "dr-has-keys";
|
50
|
-
static readonly DR_ON_CREATE_ARGUMENTS_OPTIONNAME = "dr-on-create:arguments";
|
51
|
-
static readonly DR_ON_CREATED_CALLBACK_OPTIONNAME = "dr-on-create:callback";
|
52
|
-
static readonly DR_ON_INIT_ARGUMENTS_OPTIONNAME = "dr-on-init:arguments";
|
53
|
-
static readonly DR_ON_CONSTRUCTOR_ARGUMENTS_OPTIONNAME = "dr-on-constructor:arguments";
|
54
|
-
static readonly drAttrsOriginName: Attrs;
|
55
|
-
static readonly DR_TAGS: never[];
|
56
|
-
static readonly DR_ATTRIBUTES: readonly ["dr", "dr-appender", "dr-if", "dr-for-of", "dr-this-property", "dr-for", "dr-this", "dr-form", "dr-pre", "dr-inner-html", "dr-inner-text", "dr-repeat", "dr-detect"];
|
57
|
-
constructor(uuid: string, type: RawSetType, point: {
|
58
|
-
start: (Comment | Text | HTMLMetaElement) & {
|
59
|
-
rawSet?: RawSet;
|
60
|
-
};
|
61
|
-
node: Node;
|
62
|
-
end: Comment | Text | HTMLMetaElement;
|
63
|
-
thisVariableName?: string | null;
|
64
|
-
parent?: Node | null;
|
65
|
-
}, fragment: DocumentFragment, detect?: {
|
66
|
-
action: Function;
|
67
|
-
} | undefined, data?: any);
|
68
|
-
get isConnected(): boolean;
|
69
|
-
getUsingTriggerVariables(config?: Config): Set<string>;
|
70
|
-
render(obj: any, config: Config): Promise<RawSet[]>;
|
71
|
-
/**
|
72
|
-
* @deprecated
|
73
|
-
* @param config
|
74
|
-
*/
|
75
|
-
static generateStyleSheetsLocal(config: Config): void;
|
76
|
-
static generateCSS(id: string, cssRule: CSSRule): void;
|
77
|
-
static generateStyleTransform(styleBody: string | string[], componentKey: string, styleTagWrap?: boolean): string;
|
78
|
-
applyEvent(obj: any, fragment?: DocumentFragment, config?: Config): void;
|
79
|
-
getAttribute(element: Element, attr: string): string | null;
|
80
|
-
getAttributeAndDelete(element: Element, attr: string): string | null;
|
81
|
-
getDrAppendAttributeAndDelete(element: Element, obj: any): string | null;
|
82
|
-
replaceBody(genNode: Node): void;
|
83
|
-
static checkPointCreates(element: Node, obj: any, config: Config): RawSet[];
|
84
|
-
static createStartEndPoint(node: Node, id: string, type: RawSetType, config: Config): {
|
85
|
-
start: HTMLMetaElement;
|
86
|
-
end: HTMLMetaElement;
|
87
|
-
} | {
|
88
|
-
start: Comment;
|
89
|
-
end: Comment;
|
90
|
-
};
|
91
|
-
remove(): void;
|
92
|
-
childAllRemove(): void;
|
93
|
-
childs(stopNext?: (node: Node) => boolean): ChildNode[] | undefined;
|
94
|
-
getHasRawSet(key: string): RawSet | undefined;
|
95
|
-
static drItOtherEncoding(element: Element | DocumentFragment): string;
|
96
|
-
static drItOtherDecoding(element: Element | DocumentFragment, random: string): void;
|
97
|
-
static drThisEncoding(element: Element, drThis: string): string;
|
98
|
-
static drThisDecoding(element: Element, thisRandom: string): void;
|
99
|
-
static drFormOtherMoveAttr(element: Element, as: string, to: string, config: Config): void;
|
100
|
-
static drVarEncoding(element: Element, drVarOption: string): {
|
101
|
-
name: string;
|
102
|
-
value: string;
|
103
|
-
regex: RegExp;
|
104
|
-
random: string;
|
105
|
-
}[];
|
106
|
-
static drVarDecoding(element: Element, vars: {
|
107
|
-
name: string;
|
108
|
-
value: string;
|
109
|
-
regex: RegExp;
|
110
|
-
random: string;
|
111
|
-
}[]): void;
|
112
|
-
static drThisCreate(rawSet: RawSet, element: Element, drThis: string, drVarOption: string, drStripOption: boolean | string | null, obj: any, config: Config, set?: ComponentSet): Promise<DocumentFragment>;
|
113
|
-
static createComponentTargetAttribute(name: string, getThisObj: (element: Element, attrValue: string, obj: any, rawSet: RawSet) => any, factory: (element: Element, attrValue: string, obj: any, rawSet: RawSet) => DocumentFragment): TargetAttr;
|
114
|
-
static createComponentTargetElement(name: string, objFactory: (element: Element, obj: any, rawSet: RawSet, counstructorParam: any[]) => any, template?: string, styles?: string[]): TargetElement;
|
115
|
-
static isExporesion(data: string | null): boolean;
|
116
|
-
static exporesionGrouops(data: string | null): RegExpExecArray[];
|
117
|
-
static destroy(obj: any | undefined, parameter: any[], config: Config, destroyOptions?: (DestroyOptionType | string)[]): void;
|
118
|
-
}
|