@angelscmf/front 1.0.28 → 1.0.29
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/dist/AngelsCore.cjs +44 -1
- package/dist/AngelsCore.cjs.map +1 -1
- package/dist/AngelsCore.js +44 -1
- package/dist/AngelsCore.js.map +1 -1
- package/dist/AngelsElement.cjs +67 -0
- package/dist/AngelsElement.cjs.map +1 -0
- package/dist/AngelsElement.d.cts +11 -0
- package/dist/AngelsElement.d.ts +11 -0
- package/dist/AngelsElement.js +42 -0
- package/dist/AngelsElement.js.map +1 -0
- package/dist/AngelsFrontAnimationLibrary.cjs +83 -35
- package/dist/AngelsFrontAnimationLibrary.cjs.map +1 -1
- package/dist/AngelsFrontAnimationLibrary.d.cts +4 -4
- package/dist/AngelsFrontAnimationLibrary.d.ts +4 -4
- package/dist/AngelsFrontAnimationLibrary.js +80 -32
- package/dist/AngelsFrontAnimationLibrary.js.map +1 -1
- package/dist/AngelsFrontDOMLibrary.cjs +85 -6
- package/dist/AngelsFrontDOMLibrary.cjs.map +1 -1
- package/dist/AngelsFrontDOMLibrary.d.cts +8 -2
- package/dist/AngelsFrontDOMLibrary.d.ts +8 -2
- package/dist/AngelsFrontDOMLibrary.js +78 -5
- package/dist/AngelsFrontDOMLibrary.js.map +1 -1
- package/dist/{AngelsFrontLibrary.cjs → AngelsFrontLoader.cjs} +103 -30
- package/dist/AngelsFrontLoader.cjs.map +1 -0
- package/dist/{AngelsFrontLibrary.js → AngelsFrontLoader.js} +103 -30
- package/dist/AngelsFrontLoader.js.map +1 -0
- package/package.json +1 -1
- package/sass/AngelsDesign.scss +1 -0
- package/sass/angelsMessages/_AngelsAlert.scss +20 -10
- package/sass/angelsMessages/_AngelsDebug.scss +15 -10
- package/sass/angelsMessages/_AngelsDone.scss +15 -10
- package/sass/angelsMessages/_AngelsError.scss +15 -10
- package/sass/angelsMessages/_AngelsInfo.scss +15 -10
- package/sass/angelsMessages/_AngelsTip.scss +15 -10
- package/sass/angelsMessages/_AngelsWarn.scss +15 -10
- package/sass/angelsTags/_a-state.scss +10 -0
- package/sass/angelsTags/_a-table.scss +48 -19
- package/dist/AngelsFrontLibrary.cjs.map +0 -1
- package/dist/AngelsFrontLibrary.js.map +0 -1
- /package/dist/{AngelsFrontLibrary.d.cts → AngelsFrontLoader.d.cts} +0 -0
- /package/dist/{AngelsFrontLibrary.d.ts → AngelsFrontLoader.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
declare function
|
|
3
|
-
declare function
|
|
1
|
+
declare function aLibEngageElement(originalElement: AngelsSelectorType, switcher?: boolean | undefined): Promise<void>;
|
|
2
|
+
declare function aLibConcealElement(originalElement: AngelsSelectorType): Promise<void>;
|
|
3
|
+
declare function aLibRevealElement(originalElement: AngelsSelectorType): Promise<void>;
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export { aLibConcealElement, aLibEngageElement, aLibRevealElement };
|
|
@@ -19,35 +19,96 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
// src/AngelsElement.ts
|
|
23
|
+
var AngelsElementClass = class {
|
|
24
|
+
constructor(element) {
|
|
25
|
+
this.originalElement = element;
|
|
26
|
+
return new Proxy(this, {
|
|
27
|
+
get(target, prop, receiver) {
|
|
28
|
+
if (prop in target) {
|
|
29
|
+
return target[prop];
|
|
30
|
+
}
|
|
31
|
+
return target.originalElement[prop];
|
|
32
|
+
},
|
|
33
|
+
set(target, prop, newValue, receiver) {
|
|
34
|
+
if (prop in target) {
|
|
35
|
+
target[prop] = newValue;
|
|
36
|
+
} else {
|
|
37
|
+
target.originalElement[prop] = newValue;
|
|
38
|
+
}
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
aHideElement() {
|
|
44
|
+
this.originalElement.hidden = true;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
aShowElement() {
|
|
48
|
+
this.originalElement.hidden = false;
|
|
49
|
+
return this;
|
|
50
|
+
}
|
|
51
|
+
aTextContent(content = void 0) {
|
|
52
|
+
var _a;
|
|
53
|
+
if (content === void 0) {
|
|
54
|
+
return (_a = this.originalElement.textContent) != null ? _a : ``;
|
|
55
|
+
}
|
|
56
|
+
this.originalElement.textContent = content.toString();
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
22
61
|
// src/AngelsFrontDOMLibrary.ts
|
|
23
|
-
function
|
|
62
|
+
function aLibFindElement(selector) {
|
|
24
63
|
let element;
|
|
25
64
|
if (typeof selector === "undefined") {
|
|
26
|
-
|
|
65
|
+
return null;
|
|
27
66
|
} else if (selector === null) {
|
|
28
|
-
|
|
67
|
+
return null;
|
|
29
68
|
} else if (typeof selector === "string") {
|
|
30
69
|
const findElement = document.querySelector(selector);
|
|
31
70
|
if (!findElement) {
|
|
32
|
-
|
|
71
|
+
return null;
|
|
33
72
|
}
|
|
34
73
|
element = findElement;
|
|
35
74
|
} else if (selector instanceof HTMLElement) {
|
|
36
75
|
element = selector;
|
|
37
76
|
} else if (selector instanceof Element) {
|
|
38
77
|
element = selector;
|
|
78
|
+
} else if (selector instanceof AngelsElementClass) {
|
|
79
|
+
return selector;
|
|
39
80
|
} else {
|
|
40
81
|
element = selector;
|
|
41
82
|
}
|
|
42
|
-
return element;
|
|
83
|
+
return new AngelsElementClass(element);
|
|
84
|
+
}
|
|
85
|
+
function aLibRequireElement(selector) {
|
|
86
|
+
const element = aLibFindElement(selector);
|
|
87
|
+
if (element) {
|
|
88
|
+
return element;
|
|
89
|
+
}
|
|
90
|
+
throw Error(`Element not found by '${selector}' selector.`);
|
|
43
91
|
}
|
|
44
92
|
|
|
45
93
|
// src/AngelsFrontAnimationLibrary.ts
|
|
46
|
-
function
|
|
94
|
+
function aLibEngageElement(originalElement, switcher = void 0) {
|
|
95
|
+
return __async(this, null, function* () {
|
|
96
|
+
const innerElement = aLibRequireElement(originalElement);
|
|
97
|
+
if (switcher === void 0) {
|
|
98
|
+
switcher = !innerElement.hidden;
|
|
99
|
+
}
|
|
100
|
+
if (switcher) {
|
|
101
|
+
return yield aLibRevealElement(innerElement);
|
|
102
|
+
} else {
|
|
103
|
+
return yield aLibConcealElement(innerElement);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function aLibConcealElement(originalElement) {
|
|
47
108
|
return __async(this, null, function* () {
|
|
48
109
|
const innerElement = aLibRequireElement(originalElement);
|
|
49
110
|
const promise = new Promise((resolve) => {
|
|
50
|
-
if (
|
|
111
|
+
if (innerElement.hidden) {
|
|
51
112
|
resolve();
|
|
52
113
|
return;
|
|
53
114
|
}
|
|
@@ -55,42 +116,34 @@ function aLibShowElement(originalElement) {
|
|
|
55
116
|
const animationHandler = () => {
|
|
56
117
|
clearTimeout(timeout);
|
|
57
118
|
innerElement.removeEventListener("animationend", animationHandler);
|
|
119
|
+
innerElement.hidden = true;
|
|
120
|
+
innerElement.classList.remove("a-out-animation");
|
|
58
121
|
resolve();
|
|
59
122
|
};
|
|
60
|
-
innerElement.
|
|
123
|
+
innerElement.classList.add("a-out-animation");
|
|
61
124
|
const animations = innerElement.getAnimations();
|
|
62
125
|
if (animations.length > 0) {
|
|
63
126
|
timeout = setTimeout(() => {
|
|
64
127
|
innerElement.removeEventListener("animationend", animationHandler);
|
|
128
|
+
innerElement.hidden = true;
|
|
129
|
+
innerElement.classList.remove("a-out-animation");
|
|
65
130
|
console.warn("Animation timeout");
|
|
66
131
|
resolve();
|
|
67
132
|
}, 5e3);
|
|
68
133
|
innerElement.addEventListener("animationend", animationHandler);
|
|
69
134
|
} else {
|
|
135
|
+
innerElement.hidden = true;
|
|
70
136
|
resolve();
|
|
71
137
|
}
|
|
72
138
|
});
|
|
73
139
|
return promise;
|
|
74
140
|
});
|
|
75
141
|
}
|
|
76
|
-
function
|
|
77
|
-
return __async(this, null, function* () {
|
|
78
|
-
const innerElement = aLibRequireElement(originalElement);
|
|
79
|
-
if (switcher === void 0) {
|
|
80
|
-
switcher = !innerElement.hidden;
|
|
81
|
-
}
|
|
82
|
-
if (switcher) {
|
|
83
|
-
return yield aLibShowElement(innerElement);
|
|
84
|
-
} else {
|
|
85
|
-
return yield aLibHideElement(innerElement);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function aLibHideElement(originalElement) {
|
|
142
|
+
function aLibRevealElement(originalElement) {
|
|
90
143
|
return __async(this, null, function* () {
|
|
91
144
|
const innerElement = aLibRequireElement(originalElement);
|
|
92
145
|
const promise = new Promise((resolve) => {
|
|
93
|
-
if (innerElement.hidden) {
|
|
146
|
+
if (!innerElement.hidden) {
|
|
94
147
|
resolve();
|
|
95
148
|
return;
|
|
96
149
|
}
|
|
@@ -98,23 +151,18 @@ function aLibHideElement(originalElement) {
|
|
|
98
151
|
const animationHandler = () => {
|
|
99
152
|
clearTimeout(timeout);
|
|
100
153
|
innerElement.removeEventListener("animationend", animationHandler);
|
|
101
|
-
innerElement.hidden = true;
|
|
102
|
-
innerElement.classList.remove("a-out-animation");
|
|
103
154
|
resolve();
|
|
104
155
|
};
|
|
105
|
-
innerElement.
|
|
156
|
+
innerElement.hidden = false;
|
|
106
157
|
const animations = innerElement.getAnimations();
|
|
107
158
|
if (animations.length > 0) {
|
|
108
159
|
timeout = setTimeout(() => {
|
|
109
160
|
innerElement.removeEventListener("animationend", animationHandler);
|
|
110
|
-
innerElement.hidden = true;
|
|
111
|
-
innerElement.classList.remove("a-out-animation");
|
|
112
161
|
console.warn("Animation timeout");
|
|
113
162
|
resolve();
|
|
114
163
|
}, 5e3);
|
|
115
164
|
innerElement.addEventListener("animationend", animationHandler);
|
|
116
165
|
} else {
|
|
117
|
-
innerElement.hidden = true;
|
|
118
166
|
resolve();
|
|
119
167
|
}
|
|
120
168
|
});
|
|
@@ -122,8 +170,8 @@ function aLibHideElement(originalElement) {
|
|
|
122
170
|
});
|
|
123
171
|
}
|
|
124
172
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
173
|
+
aLibConcealElement,
|
|
174
|
+
aLibEngageElement,
|
|
175
|
+
aLibRevealElement
|
|
128
176
|
};
|
|
129
177
|
//# sourceMappingURL=AngelsFrontAnimationLibrary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AngelsFrontDOMLibrary.ts","../src/AngelsFrontAnimationLibrary.ts"],"sourcesContent":["export function
|
|
1
|
+
{"version":3,"sources":["../src/AngelsElement.ts","../src/AngelsFrontDOMLibrary.ts","../src/AngelsFrontAnimationLibrary.ts"],"sourcesContent":["export type AngelsElement<TElement extends HTMLElement = HTMLElement> = AngelsElementClass<TElement> & TElement;\n\nexport class AngelsElementClass<TElement extends HTMLElement = HTMLElement> {\n\n protected originalElement: TElement;\n\n constructor(element: TElement) {\n\n this.originalElement = element;\n\n return new Proxy(this, {\n get(target: any, prop: string | symbol, receiver: any) {\n if (prop in target) {\n return target[prop];\n }\n return target.originalElement[prop];\n },\n\n set(target: any, prop: string | symbol, newValue: any, receiver: any) {\n if (prop in target) {\n target[prop] = newValue;\n } else {\n target.originalElement[prop] = newValue;\n }\n return true;\n }\n });\n }\n\n aHideElement(): this {\n this.originalElement.hidden = true;\n return this;\n }\n\n aShowElement(): this {\n this.originalElement.hidden = false;\n return this;\n }\n\n aTextContent(): string;\n aTextContent(content: string): this;\n aTextContent(content: string | undefined = undefined): this | string {\n if (content === undefined) {\n return this.originalElement.textContent ?? ``;\n }\n this.originalElement.textContent = content.toString();\n return this;\n }\n}\n","import { AngelsElement, AngelsElementClass } from \"./AngelsElement\";\n\nexport function aLibFindElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType<THTMLElement>): AngelsElement<THTMLElement> | null {\n\n let element: THTMLElement;\n if (typeof selector === 'undefined') {\n return null;\n } else if (selector === null) {\n return null;\n } else if (typeof selector === 'string') {\n const findElement = document.querySelector<THTMLElement>(selector);\n if (!findElement) {\n return null;\n }\n element = findElement;\n } else if (selector instanceof HTMLElement) {\n element = selector as THTMLElement;\n } else if (selector instanceof Element) {\n element = selector as THTMLElement;\n } else if (selector instanceof AngelsElementClass) {\n return selector as AngelsElement<THTMLElement>;\n } else {\n element = selector;\n }\n return new AngelsElementClass(element) as AngelsElement<THTMLElement>;\n}\n\nexport function aLibRequireElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibFindElement<THTMLElement>(selector);\n if (element) {\n return element;\n }\n throw Error(`Element not found by '${selector}' selector.`);\n}\n\nexport function aLibHideElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = true;\n return element;\n}\n\nexport function aLibShowElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = false;\n return element;\n}\n\nexport function aLibToggleElement(originalElement: AngelsSelectorType, switcher: boolean | undefined = undefined) {\n const innerElement = aLibRequireElement(originalElement);\n if (switcher === undefined) {\n switcher = !innerElement.hidden;\n }\n if (switcher) {\n return aLibShowElement(innerElement);\n } else {\n return aLibHideElement(innerElement);\n }\n}\n","import { aLibRequireElement } from \"./AngelsFrontDOMLibrary\";\n\nexport async function aLibEngageElement(originalElement: AngelsSelectorType, switcher: boolean | undefined = undefined) {\n const innerElement = aLibRequireElement(originalElement);\n if (switcher === undefined) {\n switcher = !innerElement.hidden;\n }\n if (switcher) {\n return await aLibRevealElement(innerElement);\n } else {\n return await aLibConcealElement(innerElement);\n }\n}\n\nexport async function aLibConcealElement(originalElement: AngelsSelectorType) {\n const innerElement = aLibRequireElement(originalElement);\n const promise = new Promise<void>((resolve) => {\n\n if (innerElement.hidden) {\n resolve();\n return;\n }\n\n let timeout: NodeJS.Timeout | undefined;\n\n const animationHandler = () => {\n clearTimeout(timeout);\n innerElement.removeEventListener('animationend', animationHandler);\n innerElement.hidden = true;\n innerElement.classList.remove('a-out-animation');\n resolve();\n }\n\n innerElement.classList.add('a-out-animation');\n\n const animations = innerElement.getAnimations();\n if (animations.length > 0) {\n timeout = setTimeout(() => {\n innerElement.removeEventListener('animationend', animationHandler);\n innerElement.hidden = true;\n innerElement.classList.remove('a-out-animation');\n console.warn('Animation timeout');\n resolve();\n }, 5000); // 5 seconds timeout\n innerElement.addEventListener('animationend', animationHandler);\n } else {\n innerElement.hidden = true;\n resolve();\n }\n });\n\n return promise;\n}\n\nexport async function aLibRevealElement(originalElement: AngelsSelectorType) {\n const innerElement = aLibRequireElement(originalElement);\n const promise = new Promise<void>((resolve) => {\n\n if (!innerElement.hidden) {\n resolve();\n return;\n }\n\n let timeout: NodeJS.Timeout | undefined;\n\n const animationHandler = () => {\n clearTimeout(timeout);\n innerElement.removeEventListener('animationend', animationHandler);\n resolve();\n }\n\n innerElement.hidden = false;\n\n const animations = innerElement.getAnimations();\n if (animations.length > 0) {\n timeout = setTimeout(() => {\n innerElement.removeEventListener('animationend', animationHandler);\n console.warn('Animation timeout');\n resolve();\n }, 5000); // 5 seconds timeout\n innerElement.addEventListener('animationend', animationHandler);\n } else {\n resolve();\n }\n });\n\n return promise;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEO,IAAM,qBAAN,MAAqE;AAAA,EAIxE,YAAY,SAAmB;AAE3B,SAAK,kBAAkB;AAEvB,WAAO,IAAI,MAAM,MAAM;AAAA,MACnB,IAAI,QAAa,MAAuB,UAAe;AACnD,YAAI,QAAQ,QAAQ;AAChB,iBAAO,OAAO,IAAI;AAAA,QACtB;AACA,eAAO,OAAO,gBAAgB,IAAI;AAAA,MACtC;AAAA,MAEA,IAAI,QAAa,MAAuB,UAAe,UAAe;AAClE,YAAI,QAAQ,QAAQ;AAChB,iBAAO,IAAI,IAAI;AAAA,QACnB,OAAO;AACH,iBAAO,gBAAgB,IAAI,IAAI;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M;AACvB,uBAAa,oBAAoB,gBAAgB,gBAAgB;AACjE,kBAAQ,KAAK,mBAAmB;AAChC,kBAAQ;AAAA,QACZ,GAAG,GAAI;AACP,qBAAa,iBAAiB,gBAAgB,gBAAgB;AAAA,MAClE,OAAO;AACH,gBAAQ;AAAA,MACZ;AAAA,IACJ,CAAC;AAED,WAAO;AAAA,EACX;AAAA;","names":[]}
|
|
@@ -20,32 +20,111 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/AngelsFrontDOMLibrary.ts
|
|
21
21
|
var AngelsFrontDOMLibrary_exports = {};
|
|
22
22
|
__export(AngelsFrontDOMLibrary_exports, {
|
|
23
|
-
|
|
23
|
+
aLibFindElement: () => aLibFindElement,
|
|
24
|
+
aLibHideElement: () => aLibHideElement,
|
|
25
|
+
aLibRequireElement: () => aLibRequireElement,
|
|
26
|
+
aLibShowElement: () => aLibShowElement,
|
|
27
|
+
aLibToggleElement: () => aLibToggleElement
|
|
24
28
|
});
|
|
25
29
|
module.exports = __toCommonJS(AngelsFrontDOMLibrary_exports);
|
|
26
|
-
|
|
30
|
+
|
|
31
|
+
// src/AngelsElement.ts
|
|
32
|
+
var AngelsElementClass = class {
|
|
33
|
+
constructor(element) {
|
|
34
|
+
this.originalElement = element;
|
|
35
|
+
return new Proxy(this, {
|
|
36
|
+
get(target, prop, receiver) {
|
|
37
|
+
if (prop in target) {
|
|
38
|
+
return target[prop];
|
|
39
|
+
}
|
|
40
|
+
return target.originalElement[prop];
|
|
41
|
+
},
|
|
42
|
+
set(target, prop, newValue, receiver) {
|
|
43
|
+
if (prop in target) {
|
|
44
|
+
target[prop] = newValue;
|
|
45
|
+
} else {
|
|
46
|
+
target.originalElement[prop] = newValue;
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
aHideElement() {
|
|
53
|
+
this.originalElement.hidden = true;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
aShowElement() {
|
|
57
|
+
this.originalElement.hidden = false;
|
|
58
|
+
return this;
|
|
59
|
+
}
|
|
60
|
+
aTextContent(content = void 0) {
|
|
61
|
+
var _a;
|
|
62
|
+
if (content === void 0) {
|
|
63
|
+
return (_a = this.originalElement.textContent) != null ? _a : ``;
|
|
64
|
+
}
|
|
65
|
+
this.originalElement.textContent = content.toString();
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/AngelsFrontDOMLibrary.ts
|
|
71
|
+
function aLibFindElement(selector) {
|
|
27
72
|
let element;
|
|
28
73
|
if (typeof selector === "undefined") {
|
|
29
|
-
|
|
74
|
+
return null;
|
|
30
75
|
} else if (selector === null) {
|
|
31
|
-
|
|
76
|
+
return null;
|
|
32
77
|
} else if (typeof selector === "string") {
|
|
33
78
|
const findElement = document.querySelector(selector);
|
|
34
79
|
if (!findElement) {
|
|
35
|
-
|
|
80
|
+
return null;
|
|
36
81
|
}
|
|
37
82
|
element = findElement;
|
|
38
83
|
} else if (selector instanceof HTMLElement) {
|
|
39
84
|
element = selector;
|
|
40
85
|
} else if (selector instanceof Element) {
|
|
41
86
|
element = selector;
|
|
87
|
+
} else if (selector instanceof AngelsElementClass) {
|
|
88
|
+
return selector;
|
|
42
89
|
} else {
|
|
43
90
|
element = selector;
|
|
44
91
|
}
|
|
92
|
+
return new AngelsElementClass(element);
|
|
93
|
+
}
|
|
94
|
+
function aLibRequireElement(selector) {
|
|
95
|
+
const element = aLibFindElement(selector);
|
|
96
|
+
if (element) {
|
|
97
|
+
return element;
|
|
98
|
+
}
|
|
99
|
+
throw Error(`Element not found by '${selector}' selector.`);
|
|
100
|
+
}
|
|
101
|
+
function aLibHideElement(selector) {
|
|
102
|
+
const element = aLibRequireElement(selector);
|
|
103
|
+
element.hidden = true;
|
|
104
|
+
return element;
|
|
105
|
+
}
|
|
106
|
+
function aLibShowElement(selector) {
|
|
107
|
+
const element = aLibRequireElement(selector);
|
|
108
|
+
element.hidden = false;
|
|
45
109
|
return element;
|
|
46
110
|
}
|
|
111
|
+
function aLibToggleElement(originalElement, switcher = void 0) {
|
|
112
|
+
const innerElement = aLibRequireElement(originalElement);
|
|
113
|
+
if (switcher === void 0) {
|
|
114
|
+
switcher = !innerElement.hidden;
|
|
115
|
+
}
|
|
116
|
+
if (switcher) {
|
|
117
|
+
return aLibShowElement(innerElement);
|
|
118
|
+
} else {
|
|
119
|
+
return aLibHideElement(innerElement);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
47
122
|
// Annotate the CommonJS export names for ESM import in node:
|
|
48
123
|
0 && (module.exports = {
|
|
49
|
-
|
|
124
|
+
aLibFindElement,
|
|
125
|
+
aLibHideElement,
|
|
126
|
+
aLibRequireElement,
|
|
127
|
+
aLibShowElement,
|
|
128
|
+
aLibToggleElement
|
|
50
129
|
});
|
|
51
130
|
//# sourceMappingURL=AngelsFrontDOMLibrary.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AngelsFrontDOMLibrary.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../src/AngelsFrontDOMLibrary.ts","../src/AngelsElement.ts"],"sourcesContent":["import { AngelsElement, AngelsElementClass } from \"./AngelsElement\";\n\nexport function aLibFindElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType<THTMLElement>): AngelsElement<THTMLElement> | null {\n\n let element: THTMLElement;\n if (typeof selector === 'undefined') {\n return null;\n } else if (selector === null) {\n return null;\n } else if (typeof selector === 'string') {\n const findElement = document.querySelector<THTMLElement>(selector);\n if (!findElement) {\n return null;\n }\n element = findElement;\n } else if (selector instanceof HTMLElement) {\n element = selector as THTMLElement;\n } else if (selector instanceof Element) {\n element = selector as THTMLElement;\n } else if (selector instanceof AngelsElementClass) {\n return selector as AngelsElement<THTMLElement>;\n } else {\n element = selector;\n }\n return new AngelsElementClass(element) as AngelsElement<THTMLElement>;\n}\n\nexport function aLibRequireElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibFindElement<THTMLElement>(selector);\n if (element) {\n return element;\n }\n throw Error(`Element not found by '${selector}' selector.`);\n}\n\nexport function aLibHideElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = true;\n return element;\n}\n\nexport function aLibShowElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = false;\n return element;\n}\n\nexport function aLibToggleElement(originalElement: AngelsSelectorType, switcher: boolean | undefined = undefined) {\n const innerElement = aLibRequireElement(originalElement);\n if (switcher === undefined) {\n switcher = !innerElement.hidden;\n }\n if (switcher) {\n return aLibShowElement(innerElement);\n } else {\n return aLibHideElement(innerElement);\n }\n}\n","export type AngelsElement<TElement extends HTMLElement = HTMLElement> = AngelsElementClass<TElement> & TElement;\n\nexport class AngelsElementClass<TElement extends HTMLElement = HTMLElement> {\n\n protected originalElement: TElement;\n\n constructor(element: TElement) {\n\n this.originalElement = element;\n\n return new Proxy(this, {\n get(target: any, prop: string | symbol, receiver: any) {\n if (prop in target) {\n return target[prop];\n }\n return target.originalElement[prop];\n },\n\n set(target: any, prop: string | symbol, newValue: any, receiver: any) {\n if (prop in target) {\n target[prop] = newValue;\n } else {\n target.originalElement[prop] = newValue;\n }\n return true;\n }\n });\n }\n\n aHideElement(): this {\n this.originalElement.hidden = true;\n return this;\n }\n\n aShowElement(): this {\n this.originalElement.hidden = false;\n return this;\n }\n\n aTextContent(): string;\n aTextContent(content: string): this;\n aTextContent(content: string | undefined = undefined): this | string {\n if (content === undefined) {\n return this.originalElement.textContent ?? ``;\n }\n this.originalElement.textContent = content.toString();\n return this;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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d;AACA,SAAO,IAAI,mBAAmB,OAAO;AACzC;AAEO,SAAS,mBAAqD,UAA2D;AAC5H,QAAM,UAAU,gBAA8B,QAAQ;AACtD,MAAI,SAAS;AACT,WAAO;AAAA,EACX;AACA,QAAM,MAAM,yBAAyB,QAAQ,aAAa;AAC9D;AAEO,SAAS,gBAAkD,UAA2D;AACzH,QAAM,UAAU,mBAAiC,QAAQ;AACzD,UAAQ,SAAS;AACjB,SAAO;AACX;AAEO,SAAS,gBAAkD,UAA2D;AACzH,QAAM,UAAU,mBAAiC,QAAQ;AACzD,UAAQ,SAAS;AACjB,SAAO;AACX;AAEO,SAAS,kBAAkB,iBAAqC,WAAgC,QAAW;AAC9G,QAAM,eAAe,mBAAmB,eAAe;AACvD,MAAI,aAAa,QAAW;AACxB,eAAW,CAAC,aAAa;AAAA,EAC7B;AACA,MAAI,UAAU;AACV,WAAO,gBAAgB,YAAY;AAAA,EACvC,OAAO;AACH,WAAO,gBAAgB,YAAY;AAAA,EACvC;AACJ;","names":[]}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { AngelsElement } from './AngelsElement.cjs';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare function aLibFindElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType<THTMLElement>): AngelsElement<THTMLElement> | null;
|
|
4
|
+
declare function aLibRequireElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
5
|
+
declare function aLibHideElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
6
|
+
declare function aLibShowElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
7
|
+
declare function aLibToggleElement(originalElement: AngelsSelectorType, switcher?: boolean | undefined): AngelsElement<HTMLElement>;
|
|
8
|
+
|
|
9
|
+
export { aLibFindElement, aLibHideElement, aLibRequireElement, aLibShowElement, aLibToggleElement };
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { AngelsElement } from './AngelsElement.js';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare function aLibFindElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType<THTMLElement>): AngelsElement<THTMLElement> | null;
|
|
4
|
+
declare function aLibRequireElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
5
|
+
declare function aLibHideElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
6
|
+
declare function aLibShowElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement>;
|
|
7
|
+
declare function aLibToggleElement(originalElement: AngelsSelectorType, switcher?: boolean | undefined): AngelsElement<HTMLElement>;
|
|
8
|
+
|
|
9
|
+
export { aLibFindElement, aLibHideElement, aLibRequireElement, aLibShowElement, aLibToggleElement };
|
|
@@ -1,26 +1,99 @@
|
|
|
1
|
+
// src/AngelsElement.ts
|
|
2
|
+
var AngelsElementClass = class {
|
|
3
|
+
constructor(element) {
|
|
4
|
+
this.originalElement = element;
|
|
5
|
+
return new Proxy(this, {
|
|
6
|
+
get(target, prop, receiver) {
|
|
7
|
+
if (prop in target) {
|
|
8
|
+
return target[prop];
|
|
9
|
+
}
|
|
10
|
+
return target.originalElement[prop];
|
|
11
|
+
},
|
|
12
|
+
set(target, prop, newValue, receiver) {
|
|
13
|
+
if (prop in target) {
|
|
14
|
+
target[prop] = newValue;
|
|
15
|
+
} else {
|
|
16
|
+
target.originalElement[prop] = newValue;
|
|
17
|
+
}
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
aHideElement() {
|
|
23
|
+
this.originalElement.hidden = true;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
aShowElement() {
|
|
27
|
+
this.originalElement.hidden = false;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
aTextContent(content = void 0) {
|
|
31
|
+
var _a;
|
|
32
|
+
if (content === void 0) {
|
|
33
|
+
return (_a = this.originalElement.textContent) != null ? _a : ``;
|
|
34
|
+
}
|
|
35
|
+
this.originalElement.textContent = content.toString();
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
1
40
|
// src/AngelsFrontDOMLibrary.ts
|
|
2
|
-
function
|
|
41
|
+
function aLibFindElement(selector) {
|
|
3
42
|
let element;
|
|
4
43
|
if (typeof selector === "undefined") {
|
|
5
|
-
|
|
44
|
+
return null;
|
|
6
45
|
} else if (selector === null) {
|
|
7
|
-
|
|
46
|
+
return null;
|
|
8
47
|
} else if (typeof selector === "string") {
|
|
9
48
|
const findElement = document.querySelector(selector);
|
|
10
49
|
if (!findElement) {
|
|
11
|
-
|
|
50
|
+
return null;
|
|
12
51
|
}
|
|
13
52
|
element = findElement;
|
|
14
53
|
} else if (selector instanceof HTMLElement) {
|
|
15
54
|
element = selector;
|
|
16
55
|
} else if (selector instanceof Element) {
|
|
17
56
|
element = selector;
|
|
57
|
+
} else if (selector instanceof AngelsElementClass) {
|
|
58
|
+
return selector;
|
|
18
59
|
} else {
|
|
19
60
|
element = selector;
|
|
20
61
|
}
|
|
62
|
+
return new AngelsElementClass(element);
|
|
63
|
+
}
|
|
64
|
+
function aLibRequireElement(selector) {
|
|
65
|
+
const element = aLibFindElement(selector);
|
|
66
|
+
if (element) {
|
|
67
|
+
return element;
|
|
68
|
+
}
|
|
69
|
+
throw Error(`Element not found by '${selector}' selector.`);
|
|
70
|
+
}
|
|
71
|
+
function aLibHideElement(selector) {
|
|
72
|
+
const element = aLibRequireElement(selector);
|
|
73
|
+
element.hidden = true;
|
|
74
|
+
return element;
|
|
75
|
+
}
|
|
76
|
+
function aLibShowElement(selector) {
|
|
77
|
+
const element = aLibRequireElement(selector);
|
|
78
|
+
element.hidden = false;
|
|
21
79
|
return element;
|
|
22
80
|
}
|
|
81
|
+
function aLibToggleElement(originalElement, switcher = void 0) {
|
|
82
|
+
const innerElement = aLibRequireElement(originalElement);
|
|
83
|
+
if (switcher === void 0) {
|
|
84
|
+
switcher = !innerElement.hidden;
|
|
85
|
+
}
|
|
86
|
+
if (switcher) {
|
|
87
|
+
return aLibShowElement(innerElement);
|
|
88
|
+
} else {
|
|
89
|
+
return aLibHideElement(innerElement);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
23
92
|
export {
|
|
24
|
-
|
|
93
|
+
aLibFindElement,
|
|
94
|
+
aLibHideElement,
|
|
95
|
+
aLibRequireElement,
|
|
96
|
+
aLibShowElement,
|
|
97
|
+
aLibToggleElement
|
|
25
98
|
};
|
|
26
99
|
//# sourceMappingURL=AngelsFrontDOMLibrary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/AngelsFrontDOMLibrary.ts"],"sourcesContent":["export function
|
|
1
|
+
{"version":3,"sources":["../src/AngelsElement.ts","../src/AngelsFrontDOMLibrary.ts"],"sourcesContent":["export type AngelsElement<TElement extends HTMLElement = HTMLElement> = AngelsElementClass<TElement> & TElement;\n\nexport class AngelsElementClass<TElement extends HTMLElement = HTMLElement> {\n\n protected originalElement: TElement;\n\n constructor(element: TElement) {\n\n this.originalElement = element;\n\n return new Proxy(this, {\n get(target: any, prop: string | symbol, receiver: any) {\n if (prop in target) {\n return target[prop];\n }\n return target.originalElement[prop];\n },\n\n set(target: any, prop: string | symbol, newValue: any, receiver: any) {\n if (prop in target) {\n target[prop] = newValue;\n } else {\n target.originalElement[prop] = newValue;\n }\n return true;\n }\n });\n }\n\n aHideElement(): this {\n this.originalElement.hidden = true;\n return this;\n }\n\n aShowElement(): this {\n this.originalElement.hidden = false;\n return this;\n }\n\n aTextContent(): string;\n aTextContent(content: string): this;\n aTextContent(content: string | undefined = undefined): this | string {\n if (content === undefined) {\n return this.originalElement.textContent ?? ``;\n }\n this.originalElement.textContent = content.toString();\n return this;\n }\n}\n","import { AngelsElement, AngelsElementClass } from \"./AngelsElement\";\n\nexport function aLibFindElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType<THTMLElement>): AngelsElement<THTMLElement> | null {\n\n let element: THTMLElement;\n if (typeof selector === 'undefined') {\n return null;\n } else if (selector === null) {\n return null;\n } else if (typeof selector === 'string') {\n const findElement = document.querySelector<THTMLElement>(selector);\n if (!findElement) {\n return null;\n }\n element = findElement;\n } else if (selector instanceof HTMLElement) {\n element = selector as THTMLElement;\n } else if (selector instanceof Element) {\n element = selector as THTMLElement;\n } else if (selector instanceof AngelsElementClass) {\n return selector as AngelsElement<THTMLElement>;\n } else {\n element = selector;\n }\n return new AngelsElementClass(element) as AngelsElement<THTMLElement>;\n}\n\nexport function aLibRequireElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibFindElement<THTMLElement>(selector);\n if (element) {\n return element;\n }\n throw Error(`Element not found by '${selector}' selector.`);\n}\n\nexport function aLibHideElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = true;\n return element;\n}\n\nexport function aLibShowElement<THTMLElement extends HTMLElement>(selector: AngelsSelectorType): AngelsElement<THTMLElement> {\n const element = aLibRequireElement<THTMLElement>(selector);\n element.hidden = false;\n return element;\n}\n\nexport function aLibToggleElement(originalElement: AngelsSelectorType, switcher: boolean | undefined = undefined) {\n const innerElement = aLibRequireElement(originalElement);\n if (switcher === undefined) {\n switcher = !innerElement.hidden;\n }\n if (switcher) {\n return aLibShowElement(innerElement);\n } else {\n return aLibHideElement(innerElement);\n }\n}\n"],"mappings":";AAEO,IAAM,qBAAN,MAAqE;AAAA,EAIxE,YAAY,SAAmB;AAE3B,SAAK,kBAAkB;AAEvB,WAAO,IAAI,MAAM,MAAM;AAAA,MACnB,IAAI,QAAa,MAAuB,UAAe;AACnD,YAAI,QAAQ,QAAQ;AAChB,iBAAO,OAAO,IAAI;AAAA,Q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