@angelscmf/front 1.0.1 → 1.0.3
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/README.md +7 -0
- package/dist/AngelsFrontApplication.d.mts +7 -27
- package/dist/AngelsFrontApplication.d.ts +7 -27
- package/dist/AngelsFrontApplication.js +109 -42
- package/dist/AngelsFrontApplication.js.map +1 -1
- package/dist/AngelsFrontApplication.mjs +108 -43
- package/dist/AngelsFrontApplication.mjs.map +1 -1
- package/dist/AngelsFrontComponent.d.mts +11 -0
- package/dist/AngelsFrontComponent.d.ts +11 -0
- package/dist/AngelsFrontComponent.js +151 -0
- package/dist/AngelsFrontComponent.js.map +1 -0
- package/dist/AngelsFrontComponent.mjs +128 -0
- package/dist/AngelsFrontComponent.mjs.map +1 -0
- package/dist/AngelsFrontMod.d.mts +58 -0
- package/dist/AngelsFrontMod.d.ts +58 -0
- package/dist/AngelsFrontMod.js +128 -0
- package/dist/AngelsFrontMod.js.map +1 -0
- package/dist/AngelsFrontMod.mjs +107 -0
- package/dist/AngelsFrontMod.mjs.map +1 -0
- package/dist/AngelsFrontPage.d.mts +10 -0
- package/dist/AngelsFrontPage.d.ts +10 -0
- package/dist/AngelsFrontPage.js +155 -0
- package/dist/AngelsFrontPage.js.map +1 -0
- package/dist/AngelsFrontPage.mjs +132 -0
- package/dist/AngelsFrontPage.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/AngelsMod.d.mts +0 -14
- package/dist/AngelsMod.d.ts +0 -14
- package/dist/AngelsMod.js +0 -48
- package/dist/AngelsMod.js.map +0 -1
- package/dist/AngelsMod.mjs +0 -27
- package/dist/AngelsMod.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AngelsFrontComponent from './AngelsFrontComponent.mjs';
|
|
2
|
+
import './AngelsFrontMod.mjs';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appStop(): void;
|
|
8
|
-
/**
|
|
9
|
-
* Inits the Angels' Application.
|
|
10
|
-
*/
|
|
11
|
-
appInit(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Binds Angels' Application's handlers.
|
|
14
|
-
*/
|
|
15
|
-
appBind(): void;
|
|
16
|
-
appLink(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Runs the Angels' Application.
|
|
19
|
-
*/
|
|
20
|
-
appRun(): void;
|
|
21
|
-
appWait(): void;
|
|
22
|
-
appDeInit(): void;
|
|
23
|
-
appDeBind(): void;
|
|
24
|
-
appDeLink(): void;
|
|
25
|
-
appDeRun(): void;
|
|
26
|
-
appDeWait(): void;
|
|
27
|
-
appAddMod<TMod extends AngelsMod>(mod: TMod): TMod;
|
|
4
|
+
/**
|
|
5
|
+
* @example new AngelsFrontApplication(document.body)
|
|
6
|
+
*/
|
|
7
|
+
declare class AngelsFrontApplication extends AngelsFrontComponent {
|
|
28
8
|
}
|
|
29
9
|
|
|
30
|
-
export {
|
|
10
|
+
export { AngelsFrontApplication as default };
|
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AngelsFrontComponent from './AngelsFrontComponent.js';
|
|
2
|
+
import './AngelsFrontMod.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
appStop(): void;
|
|
8
|
-
/**
|
|
9
|
-
* Inits the Angels' Application.
|
|
10
|
-
*/
|
|
11
|
-
appInit(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Binds Angels' Application's handlers.
|
|
14
|
-
*/
|
|
15
|
-
appBind(): void;
|
|
16
|
-
appLink(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Runs the Angels' Application.
|
|
19
|
-
*/
|
|
20
|
-
appRun(): void;
|
|
21
|
-
appWait(): void;
|
|
22
|
-
appDeInit(): void;
|
|
23
|
-
appDeBind(): void;
|
|
24
|
-
appDeLink(): void;
|
|
25
|
-
appDeRun(): void;
|
|
26
|
-
appDeWait(): void;
|
|
27
|
-
appAddMod<TMod extends AngelsMod>(mod: TMod): TMod;
|
|
4
|
+
/**
|
|
5
|
+
* @example new AngelsFrontApplication(document.body)
|
|
6
|
+
*/
|
|
7
|
+
declare class AngelsFrontApplication extends AngelsFrontComponent {
|
|
28
8
|
}
|
|
29
9
|
|
|
30
|
-
export {
|
|
10
|
+
export { AngelsFrontApplication as default };
|
|
@@ -20,69 +20,136 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/AngelsFrontApplication.ts
|
|
21
21
|
var AngelsFrontApplication_exports = {};
|
|
22
22
|
__export(AngelsFrontApplication_exports, {
|
|
23
|
-
default: () =>
|
|
23
|
+
default: () => AngelsFrontApplication
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(AngelsFrontApplication_exports);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
// src/AngelsFrontMod.ts
|
|
28
|
+
var AngelsFrontMod = class {
|
|
27
29
|
constructor() {
|
|
28
|
-
this.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
|
|
30
|
+
this.modWaitStartTimeout = 1e3;
|
|
31
|
+
this.modSubModArray = new Array();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Starts AngelsFrontMod.
|
|
35
|
+
*/
|
|
36
|
+
modStart() {
|
|
37
|
+
this.modInit();
|
|
38
|
+
this.modBind();
|
|
39
|
+
this.modLink();
|
|
40
|
+
this.modRun();
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
this.modWait();
|
|
43
|
+
}, this.modWaitStartTimeout);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Finishes AngelsFrontMod.
|
|
47
|
+
*/
|
|
48
|
+
modFinish() {
|
|
49
|
+
this.modDeWait();
|
|
50
|
+
this.modDeRun();
|
|
51
|
+
this.modDeLink();
|
|
52
|
+
this.modDeBind();
|
|
53
|
+
this.modDeInit();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Inits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
57
|
+
*/
|
|
58
|
+
modInit() {
|
|
59
|
+
this.modSubModArray.forEach((mod) => mod.modInit());
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Binds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
63
|
+
*/
|
|
64
|
+
modBind() {
|
|
65
|
+
this.modSubModArray.forEach((mod) => mod.modBind());
|
|
43
66
|
}
|
|
44
67
|
/**
|
|
45
|
-
*
|
|
68
|
+
* Links AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
46
69
|
*/
|
|
47
|
-
|
|
48
|
-
this.
|
|
70
|
+
modLink() {
|
|
71
|
+
this.modSubModArray.forEach((mod) => mod.modLink());
|
|
49
72
|
}
|
|
50
73
|
/**
|
|
51
|
-
*
|
|
74
|
+
* Runs AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
52
75
|
*/
|
|
53
|
-
|
|
54
|
-
this.
|
|
76
|
+
modRun() {
|
|
77
|
+
this.modSubModArray.forEach((mod) => mod.modRun());
|
|
55
78
|
}
|
|
56
|
-
|
|
57
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Waits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
81
|
+
*/
|
|
82
|
+
modWait() {
|
|
83
|
+
this.modSubModArray.forEach((mod) => mod.modWait());
|
|
58
84
|
}
|
|
59
85
|
/**
|
|
60
|
-
*
|
|
86
|
+
* DeInits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
61
87
|
*/
|
|
62
|
-
|
|
63
|
-
this.
|
|
88
|
+
modDeInit() {
|
|
89
|
+
this.modSubModArray.forEach((mod) => mod.modDeInit());
|
|
64
90
|
}
|
|
65
|
-
|
|
66
|
-
|
|
91
|
+
/**
|
|
92
|
+
* DeBinds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
93
|
+
*/
|
|
94
|
+
modDeBind() {
|
|
95
|
+
this.modSubModArray.forEach((mod) => mod.modDeBind());
|
|
67
96
|
}
|
|
68
|
-
|
|
69
|
-
|
|
97
|
+
/**
|
|
98
|
+
* DeLinks AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
99
|
+
*/
|
|
100
|
+
modDeLink() {
|
|
101
|
+
this.modSubModArray.forEach((mod) => mod.modDeLink());
|
|
70
102
|
}
|
|
71
|
-
|
|
72
|
-
|
|
103
|
+
/**
|
|
104
|
+
* DeRuns AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
105
|
+
*/
|
|
106
|
+
modDeRun() {
|
|
107
|
+
this.modSubModArray.forEach((mod) => mod.modDeRun());
|
|
73
108
|
}
|
|
74
|
-
|
|
75
|
-
|
|
109
|
+
/**
|
|
110
|
+
* DeWaits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
111
|
+
*/
|
|
112
|
+
modDeWait() {
|
|
113
|
+
this.modSubModArray.forEach((mod) => mod.modDeWait());
|
|
76
114
|
}
|
|
77
|
-
|
|
78
|
-
this.
|
|
115
|
+
modDestructor() {
|
|
116
|
+
this.modSubModArray.forEach((mod) => mod.modDestructor());
|
|
79
117
|
}
|
|
80
|
-
|
|
81
|
-
|
|
118
|
+
modAddSubMod(mod) {
|
|
119
|
+
if (mod) {
|
|
120
|
+
this.modSubModArray.push(mod);
|
|
121
|
+
return mod;
|
|
122
|
+
}
|
|
123
|
+
return null;
|
|
82
124
|
}
|
|
83
|
-
|
|
84
|
-
this.
|
|
125
|
+
modRequireSubMod(mod) {
|
|
126
|
+
this.modSubModArray.push(mod);
|
|
85
127
|
return mod;
|
|
86
128
|
}
|
|
87
129
|
};
|
|
130
|
+
|
|
131
|
+
// src/AngelsFrontComponent.ts
|
|
132
|
+
var AngelsFrontComponent = class extends AngelsFrontMod {
|
|
133
|
+
constructor(element) {
|
|
134
|
+
super();
|
|
135
|
+
this.comElement = element;
|
|
136
|
+
}
|
|
137
|
+
comFindElement(selector) {
|
|
138
|
+
return this.comElement.querySelector(selector);
|
|
139
|
+
}
|
|
140
|
+
comFindElements(selector) {
|
|
141
|
+
return Array.from(this.comElement.querySelectorAll(selector));
|
|
142
|
+
}
|
|
143
|
+
comRequireElement(selector) {
|
|
144
|
+
const element = this.comElement.querySelector(selector);
|
|
145
|
+
if (element) {
|
|
146
|
+
return element;
|
|
147
|
+
}
|
|
148
|
+
throw Error(`Element '${selector}' is not found.`);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
// src/AngelsFrontApplication.ts
|
|
153
|
+
var AngelsFrontApplication = class extends AngelsFrontComponent {
|
|
154
|
+
};
|
|
88
155
|
//# sourceMappingURL=AngelsFrontApplication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AngelsFrontApplication.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"sources":["../src/AngelsFrontApplication.ts","../src/AngelsFrontMod.ts","../src/AngelsFrontComponent.ts"],"sourcesContent":["import AngelsFrontComponent from \"./AngelsFrontComponent\";\n\n/**\n * @example new AngelsFrontApplication(document.body)\n */\nexport default class AngelsFrontApplication extends AngelsFrontComponent {\n}","export default class AngelsFrontMod {\n\n protected modSubModArray: Array<AngelsFrontMod>;\n public modWaitStartTimeout = 1000;\n\n constructor() {\n this.modSubModArray = new Array;\n }\n\n /**\n * Starts AngelsFrontMod.\n */\n modStart() {\n this.modInit();\n this.modBind();\n this.modLink();\n this.modRun();\n setTimeout(() => {\n this.modWait();\n }, this.modWaitStartTimeout);\n }\n\n /**\n * Finishes AngelsFrontMod.\n */\n modFinish() {\n this.modDeWait();\n this.modDeRun();\n this.modDeLink();\n this.modDeBind();\n this.modDeInit();\n }\n\n /**\n * Inits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modInit() {\n this.modSubModArray.forEach(mod => mod.modInit());\n }\n\n /**\n * Binds AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modBind() {\n this.modSubModArray.forEach(mod => mod.modBind());\n }\n\n /**\n * Links AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modLink() {\n this.modSubModArray.forEach(mod => mod.modLink());\n }\n\n /**\n * Runs AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modRun() {\n this.modSubModArray.forEach(mod => mod.modRun());\n }\n\n /**\n * Waits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modWait() {\n this.modSubModArray.forEach(mod => mod.modWait());\n }\n\n /**\n * DeInits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeInit() {\n this.modSubModArray.forEach(mod => mod.modDeInit());\n }\n /**\n * DeBinds AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeBind() {\n this.modSubModArray.forEach(mod => mod.modDeBind());\n }\n /**\n * DeLinks AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeLink() {\n this.modSubModArray.forEach(mod => mod.modDeLink());\n }\n /**\n * DeRuns AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeRun() {\n this.modSubModArray.forEach(mod => mod.modDeRun());\n }\n /**\n * DeWaits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeWait() {\n this.modSubModArray.forEach(mod => mod.modDeWait());\n }\n\n modDestructor() {\n this.modSubModArray.forEach(mod => mod.modDestructor());\n }\n\n modAddSubMod<T extends AngelsFrontMod>(mod: T | null): T | null {\n if (mod) {\n this.modSubModArray.push(mod);\n return mod;\n }\n return null;\n }\n\n modRequireSubMod<T extends AngelsFrontMod>(mod: T): T {\n this.modSubModArray.push(mod);\n return mod;\n }\n}","import AngelsFrontMod from \"./AngelsFrontMod\";\n\nexport default class AngelsFrontComponent extends AngelsFrontMod {\n\n readonly comElement: Element;\n\n constructor(element: Element) {\n super();\n this.comElement = element;\n }\n\n comFindElement(selector: string): Element | null {\n return this.comElement.querySelector(selector);\n }\n\n comFindElements(selector: string): Array<Element> {\n return Array.from(this.comElement.querySelectorAll(selector));\n }\n\n comRequireElement(selector: string): Element {\n const element = this.comElement.querySelector(selector);\n if (element) {\n return element;\n }\n throw Error(`Element '${selector}' is not found.`);\n }\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAqB,iBAArB,MAAoC;AAAA,EAKhC,cAAc;AAFd,SAAO,sBAAsB;AAGzB,SAAK,iBAAiB,IAAI;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAKA,WAAW;AACP,SAAK,QAAQ;AACb,SAAK,QAAQ;AACb,SAAK,QAAQ;AACb,SAAK,OAAO;AACZ,eAAW,MAAM;AACb,WAAK,QAAQ;AAAA,IACjB,GAAG,KAAK,mBAAmB;AAAA,EAC/B;AAAA;AAAA;AAAA;AAAA,EAKA,YAAY;AACR,SAAK,UAAU;AACf,SAAK,SAAS;AACd,SAAK,UAAU;AACf,SAAK,UAAU;AACf,SAAK,UAAU;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACN,SAAK,eAAe,QAAQ,SAAO,IAAI,QAAQ,CAAC;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACN,SAAK,eAAe,QAAQ,SAAO,IAAI,QAAQ,CAAC;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACN,SAAK,eAAe,QAAQ,SAAO,IAAI,QAAQ,CAAC;AAAA,EACpD;AAAA;AAAA;AAAA;AAAA,EAKA,SAAS;AACL,SAAK,eAAe,QAAQ,SAAO,IAAI,OAAO,CAAC;AAAA,EACnD;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACN,SAAK,eAAe,QAAQ,SAAO,IAAI,QAAQ,CAAC;AAAA,EACpD;AAAA;AAAA;A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AoD,qBAAqB;AACzE;","names":[]}
|
|
@@ -1,67 +1,132 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
var
|
|
1
|
+
// src/AngelsFrontMod.ts
|
|
2
|
+
var AngelsFrontMod = class {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.
|
|
18
|
-
this.appDeInit();
|
|
4
|
+
this.modWaitStartTimeout = 1e3;
|
|
5
|
+
this.modSubModArray = new Array();
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Starts AngelsFrontMod.
|
|
9
|
+
*/
|
|
10
|
+
modStart() {
|
|
11
|
+
this.modInit();
|
|
12
|
+
this.modBind();
|
|
13
|
+
this.modLink();
|
|
14
|
+
this.modRun();
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
this.modWait();
|
|
17
|
+
}, this.modWaitStartTimeout);
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
* Finishes AngelsFrontMod.
|
|
22
21
|
*/
|
|
23
|
-
|
|
24
|
-
this.
|
|
22
|
+
modFinish() {
|
|
23
|
+
this.modDeWait();
|
|
24
|
+
this.modDeRun();
|
|
25
|
+
this.modDeLink();
|
|
26
|
+
this.modDeBind();
|
|
27
|
+
this.modDeInit();
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* Inits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
28
31
|
*/
|
|
29
|
-
|
|
30
|
-
this.
|
|
32
|
+
modInit() {
|
|
33
|
+
this.modSubModArray.forEach((mod) => mod.modInit());
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Binds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
37
|
+
*/
|
|
38
|
+
modBind() {
|
|
39
|
+
this.modSubModArray.forEach((mod) => mod.modBind());
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Links AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
43
|
+
*/
|
|
44
|
+
modLink() {
|
|
45
|
+
this.modSubModArray.forEach((mod) => mod.modLink());
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Runs AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
49
|
+
*/
|
|
50
|
+
modRun() {
|
|
51
|
+
this.modSubModArray.forEach((mod) => mod.modRun());
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Waits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
55
|
+
*/
|
|
56
|
+
modWait() {
|
|
57
|
+
this.modSubModArray.forEach((mod) => mod.modWait());
|
|
34
58
|
}
|
|
35
59
|
/**
|
|
36
|
-
*
|
|
60
|
+
* DeInits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
37
61
|
*/
|
|
38
|
-
|
|
39
|
-
this.
|
|
62
|
+
modDeInit() {
|
|
63
|
+
this.modSubModArray.forEach((mod) => mod.modDeInit());
|
|
40
64
|
}
|
|
41
|
-
|
|
42
|
-
|
|
65
|
+
/**
|
|
66
|
+
* DeBinds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
67
|
+
*/
|
|
68
|
+
modDeBind() {
|
|
69
|
+
this.modSubModArray.forEach((mod) => mod.modDeBind());
|
|
43
70
|
}
|
|
44
|
-
|
|
45
|
-
|
|
71
|
+
/**
|
|
72
|
+
* DeLinks AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
73
|
+
*/
|
|
74
|
+
modDeLink() {
|
|
75
|
+
this.modSubModArray.forEach((mod) => mod.modDeLink());
|
|
46
76
|
}
|
|
47
|
-
|
|
48
|
-
|
|
77
|
+
/**
|
|
78
|
+
* DeRuns AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
79
|
+
*/
|
|
80
|
+
modDeRun() {
|
|
81
|
+
this.modSubModArray.forEach((mod) => mod.modDeRun());
|
|
49
82
|
}
|
|
50
|
-
|
|
51
|
-
|
|
83
|
+
/**
|
|
84
|
+
* DeWaits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
85
|
+
*/
|
|
86
|
+
modDeWait() {
|
|
87
|
+
this.modSubModArray.forEach((mod) => mod.modDeWait());
|
|
52
88
|
}
|
|
53
|
-
|
|
54
|
-
this.
|
|
89
|
+
modDestructor() {
|
|
90
|
+
this.modSubModArray.forEach((mod) => mod.modDestructor());
|
|
55
91
|
}
|
|
56
|
-
|
|
57
|
-
|
|
92
|
+
modAddSubMod(mod) {
|
|
93
|
+
if (mod) {
|
|
94
|
+
this.modSubModArray.push(mod);
|
|
95
|
+
return mod;
|
|
96
|
+
}
|
|
97
|
+
return null;
|
|
58
98
|
}
|
|
59
|
-
|
|
60
|
-
this.
|
|
99
|
+
modRequireSubMod(mod) {
|
|
100
|
+
this.modSubModArray.push(mod);
|
|
61
101
|
return mod;
|
|
62
102
|
}
|
|
63
103
|
};
|
|
104
|
+
|
|
105
|
+
// src/AngelsFrontComponent.ts
|
|
106
|
+
var AngelsFrontComponent = class extends AngelsFrontMod {
|
|
107
|
+
constructor(element) {
|
|
108
|
+
super();
|
|
109
|
+
this.comElement = element;
|
|
110
|
+
}
|
|
111
|
+
comFindElement(selector) {
|
|
112
|
+
return this.comElement.querySelector(selector);
|
|
113
|
+
}
|
|
114
|
+
comFindElements(selector) {
|
|
115
|
+
return Array.from(this.comElement.querySelectorAll(selector));
|
|
116
|
+
}
|
|
117
|
+
comRequireElement(selector) {
|
|
118
|
+
const element = this.comElement.querySelector(selector);
|
|
119
|
+
if (element) {
|
|
120
|
+
return element;
|
|
121
|
+
}
|
|
122
|
+
throw Error(`Element '${selector}' is not found.`);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/AngelsFrontApplication.ts
|
|
127
|
+
var AngelsFrontApplication = class extends AngelsFrontComponent {
|
|
128
|
+
};
|
|
64
129
|
export {
|
|
65
|
-
|
|
130
|
+
AngelsFrontApplication as default
|
|
66
131
|
};
|
|
67
132
|
//# sourceMappingURL=AngelsFrontApplication.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AngelsFrontApplication.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/AngelsFrontMod.ts","../src/AngelsFrontComponent.ts","../src/AngelsFrontApplication.ts"],"sourcesContent":["export default class AngelsFrontMod {\n\n protected modSubModArray: Array<AngelsFrontMod>;\n public modWaitStartTimeout = 1000;\n\n constructor() {\n this.modSubModArray = new Array;\n }\n\n /**\n * Starts AngelsFrontMod.\n */\n modStart() {\n this.modInit();\n this.modBind();\n this.modLink();\n this.modRun();\n setTimeout(() => {\n this.modWait();\n }, this.modWaitStartTimeout);\n }\n\n /**\n * Finishes AngelsFrontMod.\n */\n modFinish() {\n this.modDeWait();\n this.modDeRun();\n this.modDeLink();\n this.modDeBind();\n this.modDeInit();\n }\n\n /**\n * Inits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modInit() {\n this.modSubModArray.forEach(mod => mod.modInit());\n }\n\n /**\n * Binds AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modBind() {\n this.modSubModArray.forEach(mod => mod.modBind());\n }\n\n /**\n * Links AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modLink() {\n this.modSubModArray.forEach(mod => mod.modLink());\n }\n\n /**\n * Runs AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modRun() {\n this.modSubModArray.forEach(mod => mod.modRun());\n }\n\n /**\n * Waits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modWait() {\n this.modSubModArray.forEach(mod => mod.modWait());\n }\n\n /**\n * DeInits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeInit() {\n this.modSubModArray.forEach(mod => mod.modDeInit());\n }\n /**\n * DeBinds AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeBind() {\n this.modSubModArray.forEach(mod => mod.modDeBind());\n }\n /**\n * DeLinks AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeLink() {\n this.modSubModArray.forEach(mod => mod.modDeLink());\n }\n /**\n * DeRuns AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeRun() {\n this.modSubModArray.forEach(mod => mod.modDeRun());\n }\n /**\n * DeWaits AngelsFrontMod and its sub-modules AngelsFrontMod.\n */\n modDeWait() {\n this.modSubModArray.forEach(mod => mod.modDeWait());\n }\n\n modDestructor() {\n this.modSubModArray.forEach(mod => mod.modDestructor());\n }\n\n modAddSubMod<T extends AngelsFrontMod>(mod: T | null): T | null {\n if (mod) {\n this.modSubModArray.push(mod);\n return mod;\n }\n return null;\n }\n\n modRequireSubMod<T extends AngelsFrontMod>(mod: T): T {\n this.modSubModArray.push(mod);\n return mod;\n }\n}","import AngelsFrontMod from \"./AngelsFrontMod\";\n\nexport default class AngelsFrontComponent extends AngelsFrontMod {\n\n readonly comElement: Element;\n\n constructor(element: Element) {\n super();\n this.comElement = element;\n }\n\n comFindElement(selector: string): Element | null {\n return this.comElement.querySelector(selector);\n }\n\n comFindElements(selector: string): Array<Element> {\n return Array.from(this.comElement.querySelectorAll(selector));\n }\n\n comRequireElement(selector: string): Element {\n const element = this.comElement.querySelector(selector);\n if (element) {\n return element;\n }\n throw Error(`Element '${selector}' is not found.`);\n }\n}","import AngelsFrontComponent from \"./AngelsFrontComponent\";\n\n/**\n * @example new AngelsFrontApplication(document.body)\n */\nexport default class AngelsFrontApplication extends AngelsFrontComponent {\n}"],"mappings":";AAAA,IAAqB,iBAArB,MAAoC;AAAA,EAKhC,cAAc;AAFd,SAAO,sBAAsB;AAGzB,SAAK,iBAAiB,IAAI;AAAA,EAC9B;AAAA;AAAA;AAAA;AAAA,EAKA,WAAW;AACP,SAAK,QAAQ;AACb,SAAK,Q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A,gBAAgB;AACZ,SAAK,eAAe,QAAQ,SAAO,IAAI,cAAc,CAAC;AAAA,EAC1D;AAAA,EAEA,aAAuC,KAAyB;AAC5D,QAAI,KAAK;AACL,WAAK,eAAe,KAAK,GAAG;AAC5B,aAAO;AAAA,IACX;AACA,WAAO;AAAA,EACX;AAAA,EAEA,iBAA2C,KAAW;AAClD,SAAK,eAAe,KAAK,GAAG;AAC5B,WAAO;AAAA,EACX;AACJ;;;ACjHA,IAAqB,uBAArB,cAAkD,eAAe;AAAA,EAI7D,YAAY,SAAkB;AAC1B,UAAM;AACN,SAAK,aAAa;AAAA,EACtB;AAAA,EAEA,eAAe,UAAkC;AAC7C,WAAO,KAAK,WAAW,cAAc,QAAQ;AAAA,EACjD;AAAA,EAEA,gBAAgB,UAAkC;AAC9C,WAAO,MAAM,KAAK,KAAK,WAAW,iBAAiB,QAAQ,CAAC;AAAA,EAChE;AAAA,EAEA,kBAAkB,UAA2B;AACzC,UAAM,UAAU,KAAK,WAAW,cAAc,QAAQ;AACtD,QAAI,SAAS;AACT,aAAO;AAAA,IACX;AACA,UAAM,MAAM,YAAY,QAAQ,iBAAiB;AAAA,EACrD;AACJ;;;ACrBA,IAAqB,yBAArB,cAAoD,qBAAqB;AACzE;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import AngelsFrontMod from './AngelsFrontMod.mjs';
|
|
2
|
+
|
|
3
|
+
declare class AngelsFrontComponent extends AngelsFrontMod {
|
|
4
|
+
readonly comElement: Element;
|
|
5
|
+
constructor(element: Element);
|
|
6
|
+
comFindElement(selector: string): Element | null;
|
|
7
|
+
comFindElements(selector: string): Array<Element>;
|
|
8
|
+
comRequireElement(selector: string): Element;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AngelsFrontComponent as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import AngelsFrontMod from './AngelsFrontMod.js';
|
|
2
|
+
|
|
3
|
+
declare class AngelsFrontComponent extends AngelsFrontMod {
|
|
4
|
+
readonly comElement: Element;
|
|
5
|
+
constructor(element: Element);
|
|
6
|
+
comFindElement(selector: string): Element | null;
|
|
7
|
+
comFindElements(selector: string): Array<Element>;
|
|
8
|
+
comRequireElement(selector: string): Element;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { AngelsFrontComponent as default };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/AngelsFrontComponent.ts
|
|
21
|
+
var AngelsFrontComponent_exports = {};
|
|
22
|
+
__export(AngelsFrontComponent_exports, {
|
|
23
|
+
default: () => AngelsFrontComponent
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(AngelsFrontComponent_exports);
|
|
26
|
+
|
|
27
|
+
// src/AngelsFrontMod.ts
|
|
28
|
+
var AngelsFrontMod = class {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.modWaitStartTimeout = 1e3;
|
|
31
|
+
this.modSubModArray = new Array();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Starts AngelsFrontMod.
|
|
35
|
+
*/
|
|
36
|
+
modStart() {
|
|
37
|
+
this.modInit();
|
|
38
|
+
this.modBind();
|
|
39
|
+
this.modLink();
|
|
40
|
+
this.modRun();
|
|
41
|
+
setTimeout(() => {
|
|
42
|
+
this.modWait();
|
|
43
|
+
}, this.modWaitStartTimeout);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Finishes AngelsFrontMod.
|
|
47
|
+
*/
|
|
48
|
+
modFinish() {
|
|
49
|
+
this.modDeWait();
|
|
50
|
+
this.modDeRun();
|
|
51
|
+
this.modDeLink();
|
|
52
|
+
this.modDeBind();
|
|
53
|
+
this.modDeInit();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Inits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
57
|
+
*/
|
|
58
|
+
modInit() {
|
|
59
|
+
this.modSubModArray.forEach((mod) => mod.modInit());
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Binds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
63
|
+
*/
|
|
64
|
+
modBind() {
|
|
65
|
+
this.modSubModArray.forEach((mod) => mod.modBind());
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Links AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
69
|
+
*/
|
|
70
|
+
modLink() {
|
|
71
|
+
this.modSubModArray.forEach((mod) => mod.modLink());
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Runs AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
75
|
+
*/
|
|
76
|
+
modRun() {
|
|
77
|
+
this.modSubModArray.forEach((mod) => mod.modRun());
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Waits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
81
|
+
*/
|
|
82
|
+
modWait() {
|
|
83
|
+
this.modSubModArray.forEach((mod) => mod.modWait());
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* DeInits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
87
|
+
*/
|
|
88
|
+
modDeInit() {
|
|
89
|
+
this.modSubModArray.forEach((mod) => mod.modDeInit());
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* DeBinds AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
93
|
+
*/
|
|
94
|
+
modDeBind() {
|
|
95
|
+
this.modSubModArray.forEach((mod) => mod.modDeBind());
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* DeLinks AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
99
|
+
*/
|
|
100
|
+
modDeLink() {
|
|
101
|
+
this.modSubModArray.forEach((mod) => mod.modDeLink());
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* DeRuns AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
105
|
+
*/
|
|
106
|
+
modDeRun() {
|
|
107
|
+
this.modSubModArray.forEach((mod) => mod.modDeRun());
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* DeWaits AngelsFrontMod and its sub-modules AngelsFrontMod.
|
|
111
|
+
*/
|
|
112
|
+
modDeWait() {
|
|
113
|
+
this.modSubModArray.forEach((mod) => mod.modDeWait());
|
|
114
|
+
}
|
|
115
|
+
modDestructor() {
|
|
116
|
+
this.modSubModArray.forEach((mod) => mod.modDestructor());
|
|
117
|
+
}
|
|
118
|
+
modAddSubMod(mod) {
|
|
119
|
+
if (mod) {
|
|
120
|
+
this.modSubModArray.push(mod);
|
|
121
|
+
return mod;
|
|
122
|
+
}
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
modRequireSubMod(mod) {
|
|
126
|
+
this.modSubModArray.push(mod);
|
|
127
|
+
return mod;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// src/AngelsFrontComponent.ts
|
|
132
|
+
var AngelsFrontComponent = class extends AngelsFrontMod {
|
|
133
|
+
constructor(element) {
|
|
134
|
+
super();
|
|
135
|
+
this.comElement = element;
|
|
136
|
+
}
|
|
137
|
+
comFindElement(selector) {
|
|
138
|
+
return this.comElement.querySelector(selector);
|
|
139
|
+
}
|
|
140
|
+
comFindElements(selector) {
|
|
141
|
+
return Array.from(this.comElement.querySelectorAll(selector));
|
|
142
|
+
}
|
|
143
|
+
comRequireElement(selector) {
|
|
144
|
+
const element = this.comElement.querySelector(selector);
|
|
145
|
+
if (element) {
|
|
146
|
+
return element;
|
|
147
|
+
}
|
|
148
|
+
throw Error(`Element '${selector}' is not found.`);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=AngelsFrontComponent.js.map
|