qcobjects 2.4.105-ts → 2.4.108-ts
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/.hintrc +5 -0
- package/VERSION +1 -1
- package/build/ArrayCollection.js +136 -0
- package/build/BackendMicroservice.js +211 -0
- package/build/Base64.js +100 -0
- package/build/CONFIG.js +85 -0
- package/build/Cast.js +53 -0
- package/build/Class.js +284 -0
- package/build/ClassFactory.js +38 -0
- package/build/ComplexStorageCache.js +91 -0
- package/build/Component.js +1133 -0
- package/build/ComponentFactory.js +113 -0
- package/build/ConfigSettings.js +39 -0
- package/build/Controller.js +81 -0
- package/build/Crypt.js +87 -0
- package/build/DDO.js +81 -0
- package/build/DOMCreateElement.js +15 -0
- package/build/DataStringify.js +22 -0
- package/build/DefaultTemplateHandler.js +57 -0
- package/build/DocumentLayout.js +20 -0
- package/build/Effect.js +46 -0
- package/build/Export.js +11 -0
- package/build/Import.js +140 -0
- package/build/IncrementInstanceID.js +11 -0
- package/build/InheritClass.js +194 -0
- package/build/LegacyCopy.js +31 -0
- package/build/Logger.js +33 -0
- package/build/MainProcess.js +549 -0
- package/build/NamespaceRef.js +29 -0
- package/build/New.js +17 -0
- package/build/ObjectName.js +22 -0
- package/build/Package.js +67 -0
- package/build/PrimaryCollections.js +7 -0
- package/build/Processor.js +81 -0
- package/build/QCObjects.js +182 -4843
- package/build/Ready.js +49 -0
- package/build/RegisterClass.js +28 -0
- package/build/Service.js +112 -0
- package/build/SourceCSS.js +56 -0
- package/build/SourceJS.js +73 -0
- package/build/Tag.js +77 -0
- package/build/Timer.js +30 -0
- package/build/Toggle.js +59 -0
- package/build/TransitionEffect.js +65 -0
- package/build/VO.js +11 -0
- package/build/View.js +18 -0
- package/build/WidgetsFactory.js +537 -0
- package/build/assign.js +32 -0
- package/build/asyncLoad.js +43 -0
- package/build/basePath.js +32 -0
- package/build/captureFalseTouch.js +32 -0
- package/build/componentLoader.js +258 -0
- package/build/defaultProcessors.js +130 -0
- package/build/domain.js +4 -0
- package/build/findPackageNodePath.js +47 -0
- package/build/getType.js +38 -0
- package/build/globalSettings.js +115 -0
- package/build/index.d.ts +1045 -0
- package/build/index.js +24 -4
- package/build/index.mjs +1 -1
- package/build/introspection.js +86 -0
- package/build/isQCObjects.js +20 -0
- package/build/is_a.js +19 -0
- package/build/is_forbidden_name.js +15 -0
- package/build/is_raw_class.js +7 -0
- package/build/loadSDK.js +63 -0
- package/build/localStorage.js +19 -0
- package/build/make_global.js +24 -0
- package/build/mathFunctions.js +7 -0
- package/build/platform.js +28 -0
- package/build/range.js +17 -0
- package/build/routings.js +21 -0
- package/build/secretKey.js +5 -0
- package/build/serviceLoader.js +300 -0
- package/build/shortCode.js +14 -0
- package/build/subelements.js +8 -0
- package/build/super.js +20 -0
- package/build/tag_filter.js +4 -0
- package/build/top.js +23 -0
- package/build/uniqueID.js +5 -0
- package/build/waitUntil.js +31 -0
- package/build-esbuild.js +62 -0
- package/eslint.config.mjs +87 -0
- package/package.json +25 -22
- package/public/browser/index.js +6502 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +6586 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +6494 -0
- package/public/esm/index.mjs.map +7 -0
- package/spec/helpers/mock-sdk.helper.ts +5 -0
- package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
- package/spec/support/jasmine.json +3 -3
- package/spec/testsClassFactorySpec.ts +40 -0
- package/spec/{testsConfigSpec.js → testsConfigSpec.ts} +2 -2
- package/spec/{testsGlobalFeaturesSpec.js → testsGlobalFeaturesSpec.ts} +10 -8
- package/spec/{testsSpec.js → testsSpec.ts} +11 -10
- package/spec/{testsTypeSpec.js → testsTypeSpec.ts} +5 -3
- package/src/ArrayCollection.ts +143 -0
- package/src/BackendMicroservice.ts +229 -0
- package/src/Base64.ts +92 -0
- package/src/CONFIG.ts +96 -0
- package/src/Cast.ts +46 -0
- package/src/Class.ts +303 -0
- package/src/ClassFactory.ts +34 -0
- package/src/ComplexStorageCache.ts +97 -0
- package/src/Component.ts +1222 -0
- package/src/ComponentFactory.ts +122 -0
- package/src/ConfigSettings.ts +62 -0
- package/src/Controller.ts +90 -0
- package/src/Crypt.ts +87 -0
- package/src/DDO.ts +93 -0
- package/src/DOMCreateElement.ts +12 -0
- package/src/DataStringify.ts +19 -0
- package/src/DefaultTemplateHandler.ts +55 -0
- package/src/DocumentLayout.ts +16 -0
- package/src/Effect.ts +56 -0
- package/src/Export.ts +8 -0
- package/src/Import.ts +135 -0
- package/src/IncrementInstanceID.ts +8 -0
- package/src/InheritClass.ts +210 -0
- package/src/LegacyCopy.ts +27 -0
- package/src/Logger.ts +32 -0
- package/src/MainProcess.ts +629 -0
- package/src/NamespaceRef.ts +26 -0
- package/src/New.ts +15 -0
- package/src/ObjectName.ts +16 -0
- package/src/Package.ts +67 -0
- package/src/PrimaryCollections.ts +7 -0
- package/src/Processor.ts +93 -0
- package/src/QCObjects.ts +100 -0
- package/src/Ready.ts +44 -0
- package/src/RegisterClass.ts +26 -0
- package/src/Service.ts +127 -0
- package/src/SourceCSS.ts +59 -0
- package/src/SourceJS.ts +76 -0
- package/src/Tag.ts +76 -0
- package/src/Timer.ts +42 -0
- package/src/Toggle.ts +65 -0
- package/src/TransitionEffect.ts +80 -0
- package/src/VO.ts +8 -0
- package/src/View.ts +17 -0
- package/src/WidgetsFactory.ts +543 -0
- package/src/assign.ts +33 -0
- package/src/asyncLoad.ts +42 -0
- package/src/basePath.ts +29 -0
- package/src/captureFalseTouch.ts +29 -0
- package/src/componentLoader.ts +252 -0
- package/src/defaultProcessors.ts +145 -0
- package/src/domain.ts +1 -0
- package/src/findPackageNodePath.ts +43 -0
- package/src/getType.ts +36 -0
- package/src/globalSettings.ts +118 -0
- package/src/index.mts +1 -1
- package/src/index.ts +1 -1
- package/src/introspection.ts +80 -0
- package/src/isQCObjects.ts +19 -0
- package/src/is_a.ts +16 -0
- package/src/is_forbidden_name.ts +12 -0
- package/src/is_raw_class.ts +3 -0
- package/src/loadSDK.ts +59 -0
- package/src/localStorage.ts +17 -0
- package/src/make_global.ts +19 -0
- package/src/mathFunctions.ts +3 -0
- package/src/platform.ts +30 -0
- package/src/range.ts +15 -0
- package/src/routings.ts +18 -0
- package/src/secretKey.ts +3 -0
- package/src/serviceLoader.ts +306 -0
- package/src/shortCode.ts +11 -0
- package/src/subelements.ts +4 -0
- package/src/super.ts +17 -0
- package/src/tag_filter.ts +1 -0
- package/src/top.ts +111 -0
- package/src/types/global/index.d.ts +597 -0
- package/src/uniqueID.ts +3 -0
- package/src/waitUntil.ts +26 -0
- package/tsconfig.d.json +35 -8
- package/tsconfig.jasmine.json +39 -0
- package/tsconfig.json +46 -12
- package/.eslintignore +0 -5
- package/.eslintrc.cjs +0 -21
- package/.eslintrc.json +0 -24
- package/browser/QCObjects.js +0 -2
- package/browser/QCObjects.js.map +0 -7
- package/browser/chunks/chunk-O2PFFZVJ.js +0 -713
- package/browser/chunks/chunk-O2PFFZVJ.js.map +0 -7
- package/browser/chunks/chunk-TBLBK5VV.js +0 -713
- package/browser/chunks/chunk-TBLBK5VV.js.map +0 -7
- package/browser/chunks/chunk-ZYLXOA35.js +0 -713
- package/browser/chunks/chunk-ZYLXOA35.js.map +0 -7
- package/browser/index.js +0 -2
- package/browser/index.js.map +0 -7
- package/spec/testsClassFactorySpec.js +0 -41
- package/src/QCObjects.js +0 -5247
- package/src/index.d.ts +0 -8
- package/types/index.d.ts +0 -472
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterWidgets = exports.RegisterWidget = exports._ComponentWidget_ = void 0;
|
|
4
|
+
const DOMCreateElement_1 = require("./DOMCreateElement");
|
|
5
|
+
const Export_1 = require("./Export");
|
|
6
|
+
const introspection_1 = require("./introspection");
|
|
7
|
+
const platform_1 = require("./platform");
|
|
8
|
+
class QCObjectsWidgetNode {
|
|
9
|
+
accessKey;
|
|
10
|
+
accessKeyLabel;
|
|
11
|
+
autocapitalize;
|
|
12
|
+
dir;
|
|
13
|
+
draggable;
|
|
14
|
+
hidden;
|
|
15
|
+
inert;
|
|
16
|
+
innerText;
|
|
17
|
+
lang;
|
|
18
|
+
offsetHeight;
|
|
19
|
+
offsetLeft;
|
|
20
|
+
offsetParent;
|
|
21
|
+
offsetTop;
|
|
22
|
+
offsetWidth;
|
|
23
|
+
outerText;
|
|
24
|
+
popover;
|
|
25
|
+
spellcheck;
|
|
26
|
+
title;
|
|
27
|
+
translate;
|
|
28
|
+
attachInternals() {
|
|
29
|
+
throw new Error("Method not implemented.");
|
|
30
|
+
}
|
|
31
|
+
click() {
|
|
32
|
+
throw new Error("Method not implemented.");
|
|
33
|
+
}
|
|
34
|
+
hidePopover() {
|
|
35
|
+
throw new Error("Method not implemented.");
|
|
36
|
+
}
|
|
37
|
+
showPopover() {
|
|
38
|
+
throw new Error("Method not implemented.");
|
|
39
|
+
}
|
|
40
|
+
togglePopover(force) {
|
|
41
|
+
throw new Error("Method not implemented.");
|
|
42
|
+
}
|
|
43
|
+
addEventListener(type, listener, options) {
|
|
44
|
+
throw new Error("Method not implemented.");
|
|
45
|
+
}
|
|
46
|
+
removeEventListener(type, listener, options) {
|
|
47
|
+
throw new Error("Method not implemented.");
|
|
48
|
+
}
|
|
49
|
+
attributes;
|
|
50
|
+
classList;
|
|
51
|
+
className;
|
|
52
|
+
clientHeight;
|
|
53
|
+
clientLeft;
|
|
54
|
+
clientTop;
|
|
55
|
+
clientWidth;
|
|
56
|
+
id;
|
|
57
|
+
innerHTML;
|
|
58
|
+
localName;
|
|
59
|
+
namespaceURI;
|
|
60
|
+
onfullscreenchange;
|
|
61
|
+
onfullscreenerror;
|
|
62
|
+
outerHTML;
|
|
63
|
+
ownerDocument;
|
|
64
|
+
part;
|
|
65
|
+
prefix;
|
|
66
|
+
scrollHeight;
|
|
67
|
+
scrollLeft;
|
|
68
|
+
scrollTop;
|
|
69
|
+
scrollWidth;
|
|
70
|
+
shadowRoot;
|
|
71
|
+
slot;
|
|
72
|
+
tagName;
|
|
73
|
+
attachShadow(init) {
|
|
74
|
+
throw new Error("Method not implemented.");
|
|
75
|
+
}
|
|
76
|
+
checkVisibility(options) {
|
|
77
|
+
throw new Error("Method not implemented.");
|
|
78
|
+
}
|
|
79
|
+
closest(selectors) {
|
|
80
|
+
throw new Error("Method not implemented.");
|
|
81
|
+
}
|
|
82
|
+
computedStyleMap() {
|
|
83
|
+
throw new Error("Method not implemented.");
|
|
84
|
+
}
|
|
85
|
+
getAttribute(qualifiedName) {
|
|
86
|
+
throw new Error("Method not implemented.");
|
|
87
|
+
}
|
|
88
|
+
getAttributeNS(namespace, localName) {
|
|
89
|
+
throw new Error("Method not implemented.");
|
|
90
|
+
}
|
|
91
|
+
getAttributeNames() {
|
|
92
|
+
throw new Error("Method not implemented.");
|
|
93
|
+
}
|
|
94
|
+
getAttributeNode(qualifiedName) {
|
|
95
|
+
throw new Error("Method not implemented.");
|
|
96
|
+
}
|
|
97
|
+
getAttributeNodeNS(namespace, localName) {
|
|
98
|
+
throw new Error("Method not implemented.");
|
|
99
|
+
}
|
|
100
|
+
getBoundingClientRect() {
|
|
101
|
+
throw new Error("Method not implemented.");
|
|
102
|
+
}
|
|
103
|
+
getClientRects() {
|
|
104
|
+
throw new Error("Method not implemented.");
|
|
105
|
+
}
|
|
106
|
+
getElementsByClassName(classNames) {
|
|
107
|
+
throw new Error("Method not implemented.");
|
|
108
|
+
}
|
|
109
|
+
getElementsByTagName(qualifiedName) {
|
|
110
|
+
throw new Error("Method not implemented.");
|
|
111
|
+
}
|
|
112
|
+
getElementsByTagNameNS(namespace, localName) {
|
|
113
|
+
throw new Error("Method not implemented.");
|
|
114
|
+
}
|
|
115
|
+
getHTML(options) {
|
|
116
|
+
throw new Error("Method not implemented.");
|
|
117
|
+
}
|
|
118
|
+
hasAttribute(qualifiedName) {
|
|
119
|
+
throw new Error("Method not implemented.");
|
|
120
|
+
}
|
|
121
|
+
hasAttributeNS(namespace, localName) {
|
|
122
|
+
throw new Error("Method not implemented.");
|
|
123
|
+
}
|
|
124
|
+
hasAttributes() {
|
|
125
|
+
throw new Error("Method not implemented.");
|
|
126
|
+
}
|
|
127
|
+
hasPointerCapture(pointerId) {
|
|
128
|
+
throw new Error("Method not implemented.");
|
|
129
|
+
}
|
|
130
|
+
insertAdjacentElement(where, element) {
|
|
131
|
+
throw new Error("Method not implemented.");
|
|
132
|
+
}
|
|
133
|
+
insertAdjacentHTML(position, string) {
|
|
134
|
+
throw new Error("Method not implemented.");
|
|
135
|
+
}
|
|
136
|
+
insertAdjacentText(where, data) {
|
|
137
|
+
throw new Error("Method not implemented.");
|
|
138
|
+
}
|
|
139
|
+
matches(selectors) {
|
|
140
|
+
throw new Error("Method not implemented.");
|
|
141
|
+
}
|
|
142
|
+
releasePointerCapture(pointerId) {
|
|
143
|
+
throw new Error("Method not implemented.");
|
|
144
|
+
}
|
|
145
|
+
removeAttribute(qualifiedName) {
|
|
146
|
+
throw new Error("Method not implemented.");
|
|
147
|
+
}
|
|
148
|
+
removeAttributeNS(namespace, localName) {
|
|
149
|
+
throw new Error("Method not implemented.");
|
|
150
|
+
}
|
|
151
|
+
removeAttributeNode(attr) {
|
|
152
|
+
throw new Error("Method not implemented.");
|
|
153
|
+
}
|
|
154
|
+
requestFullscreen(options) {
|
|
155
|
+
throw new Error("Method not implemented.");
|
|
156
|
+
}
|
|
157
|
+
requestPointerLock(options) {
|
|
158
|
+
throw new Error("Method not implemented.");
|
|
159
|
+
}
|
|
160
|
+
scroll(x, y) {
|
|
161
|
+
throw new Error("Method not implemented.");
|
|
162
|
+
}
|
|
163
|
+
scrollBy(x, y) {
|
|
164
|
+
throw new Error("Method not implemented.");
|
|
165
|
+
}
|
|
166
|
+
scrollIntoView(arg) {
|
|
167
|
+
throw new Error("Method not implemented.");
|
|
168
|
+
}
|
|
169
|
+
scrollTo(x, y) {
|
|
170
|
+
throw new Error("Method not implemented.");
|
|
171
|
+
}
|
|
172
|
+
setAttribute(qualifiedName, value) {
|
|
173
|
+
throw new Error("Method not implemented.");
|
|
174
|
+
}
|
|
175
|
+
setAttributeNS(namespace, qualifiedName, value) {
|
|
176
|
+
throw new Error("Method not implemented.");
|
|
177
|
+
}
|
|
178
|
+
setAttributeNode(attr) {
|
|
179
|
+
throw new Error("Method not implemented.");
|
|
180
|
+
}
|
|
181
|
+
setAttributeNodeNS(attr) {
|
|
182
|
+
throw new Error("Method not implemented.");
|
|
183
|
+
}
|
|
184
|
+
setHTMLUnsafe(html) {
|
|
185
|
+
throw new Error("Method not implemented.");
|
|
186
|
+
}
|
|
187
|
+
setPointerCapture(pointerId) {
|
|
188
|
+
throw new Error("Method not implemented.");
|
|
189
|
+
}
|
|
190
|
+
toggleAttribute(qualifiedName, force) {
|
|
191
|
+
throw new Error("Method not implemented.");
|
|
192
|
+
}
|
|
193
|
+
webkitMatchesSelector(selectors) {
|
|
194
|
+
throw new Error("Method not implemented.");
|
|
195
|
+
}
|
|
196
|
+
baseURI;
|
|
197
|
+
childNodes;
|
|
198
|
+
firstChild;
|
|
199
|
+
isConnected;
|
|
200
|
+
lastChild;
|
|
201
|
+
nextSibling;
|
|
202
|
+
nodeName;
|
|
203
|
+
nodeType;
|
|
204
|
+
nodeValue;
|
|
205
|
+
parentElement;
|
|
206
|
+
parentNode;
|
|
207
|
+
previousSibling;
|
|
208
|
+
textContent;
|
|
209
|
+
appendChild(node) {
|
|
210
|
+
throw new Error("Method not implemented.");
|
|
211
|
+
}
|
|
212
|
+
cloneNode(deep) {
|
|
213
|
+
throw new Error("Method not implemented.");
|
|
214
|
+
}
|
|
215
|
+
compareDocumentPosition(other) {
|
|
216
|
+
throw new Error("Method not implemented.");
|
|
217
|
+
}
|
|
218
|
+
contains(other) {
|
|
219
|
+
throw new Error("Method not implemented.");
|
|
220
|
+
}
|
|
221
|
+
getRootNode(options) {
|
|
222
|
+
throw new Error("Method not implemented.");
|
|
223
|
+
}
|
|
224
|
+
hasChildNodes() {
|
|
225
|
+
throw new Error("Method not implemented.");
|
|
226
|
+
}
|
|
227
|
+
insertBefore(node, child) {
|
|
228
|
+
throw new Error("Method not implemented.");
|
|
229
|
+
}
|
|
230
|
+
isDefaultNamespace(namespace) {
|
|
231
|
+
throw new Error("Method not implemented.");
|
|
232
|
+
}
|
|
233
|
+
isEqualNode(otherNode) {
|
|
234
|
+
throw new Error("Method not implemented.");
|
|
235
|
+
}
|
|
236
|
+
isSameNode(otherNode) {
|
|
237
|
+
throw new Error("Method not implemented.");
|
|
238
|
+
}
|
|
239
|
+
lookupNamespaceURI(prefix) {
|
|
240
|
+
throw new Error("Method not implemented.");
|
|
241
|
+
}
|
|
242
|
+
lookupPrefix(namespace) {
|
|
243
|
+
throw new Error("Method not implemented.");
|
|
244
|
+
}
|
|
245
|
+
normalize() {
|
|
246
|
+
throw new Error("Method not implemented.");
|
|
247
|
+
}
|
|
248
|
+
removeChild(child) {
|
|
249
|
+
throw new Error("Method not implemented.");
|
|
250
|
+
}
|
|
251
|
+
replaceChild(node, child) {
|
|
252
|
+
throw new Error("Method not implemented.");
|
|
253
|
+
}
|
|
254
|
+
ELEMENT_NODE;
|
|
255
|
+
ATTRIBUTE_NODE;
|
|
256
|
+
TEXT_NODE;
|
|
257
|
+
CDATA_SECTION_NODE;
|
|
258
|
+
ENTITY_REFERENCE_NODE;
|
|
259
|
+
ENTITY_NODE;
|
|
260
|
+
PROCESSING_INSTRUCTION_NODE;
|
|
261
|
+
COMMENT_NODE;
|
|
262
|
+
DOCUMENT_NODE;
|
|
263
|
+
DOCUMENT_TYPE_NODE;
|
|
264
|
+
DOCUMENT_FRAGMENT_NODE;
|
|
265
|
+
NOTATION_NODE;
|
|
266
|
+
DOCUMENT_POSITION_DISCONNECTED;
|
|
267
|
+
DOCUMENT_POSITION_PRECEDING;
|
|
268
|
+
DOCUMENT_POSITION_FOLLOWING;
|
|
269
|
+
DOCUMENT_POSITION_CONTAINS;
|
|
270
|
+
DOCUMENT_POSITION_CONTAINED_BY;
|
|
271
|
+
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
|
272
|
+
dispatchEvent(event) {
|
|
273
|
+
throw new Error("Method not implemented.");
|
|
274
|
+
}
|
|
275
|
+
ariaAtomic;
|
|
276
|
+
ariaAutoComplete;
|
|
277
|
+
ariaBrailleLabel;
|
|
278
|
+
ariaBrailleRoleDescription;
|
|
279
|
+
ariaBusy;
|
|
280
|
+
ariaChecked;
|
|
281
|
+
ariaColCount;
|
|
282
|
+
ariaColIndex;
|
|
283
|
+
ariaColSpan;
|
|
284
|
+
ariaCurrent;
|
|
285
|
+
ariaDescription;
|
|
286
|
+
ariaDisabled;
|
|
287
|
+
ariaExpanded;
|
|
288
|
+
ariaHasPopup;
|
|
289
|
+
ariaHidden;
|
|
290
|
+
ariaInvalid;
|
|
291
|
+
ariaKeyShortcuts;
|
|
292
|
+
ariaLabel;
|
|
293
|
+
ariaLevel;
|
|
294
|
+
ariaLive;
|
|
295
|
+
ariaModal;
|
|
296
|
+
ariaMultiLine;
|
|
297
|
+
ariaMultiSelectable;
|
|
298
|
+
ariaOrientation;
|
|
299
|
+
ariaPlaceholder;
|
|
300
|
+
ariaPosInSet;
|
|
301
|
+
ariaPressed;
|
|
302
|
+
ariaReadOnly;
|
|
303
|
+
ariaRequired;
|
|
304
|
+
ariaRoleDescription;
|
|
305
|
+
ariaRowCount;
|
|
306
|
+
ariaRowIndex;
|
|
307
|
+
ariaRowSpan;
|
|
308
|
+
ariaSelected;
|
|
309
|
+
ariaSetSize;
|
|
310
|
+
ariaSort;
|
|
311
|
+
ariaValueMax;
|
|
312
|
+
ariaValueMin;
|
|
313
|
+
ariaValueNow;
|
|
314
|
+
ariaValueText;
|
|
315
|
+
role;
|
|
316
|
+
animate(keyframes, options) {
|
|
317
|
+
throw new Error("Method not implemented.");
|
|
318
|
+
}
|
|
319
|
+
getAnimations(options) {
|
|
320
|
+
throw new Error("Method not implemented.");
|
|
321
|
+
}
|
|
322
|
+
after(...nodes) {
|
|
323
|
+
throw new Error("Method not implemented.");
|
|
324
|
+
}
|
|
325
|
+
before(...nodes) {
|
|
326
|
+
throw new Error("Method not implemented.");
|
|
327
|
+
}
|
|
328
|
+
remove() {
|
|
329
|
+
throw new Error("Method not implemented.");
|
|
330
|
+
}
|
|
331
|
+
replaceWith(...nodes) {
|
|
332
|
+
throw new Error("Method not implemented.");
|
|
333
|
+
}
|
|
334
|
+
nextElementSibling;
|
|
335
|
+
previousElementSibling;
|
|
336
|
+
childElementCount;
|
|
337
|
+
children;
|
|
338
|
+
firstElementChild;
|
|
339
|
+
lastElementChild;
|
|
340
|
+
append(...nodes) {
|
|
341
|
+
throw new Error("Method not implemented.");
|
|
342
|
+
}
|
|
343
|
+
prepend(...nodes) {
|
|
344
|
+
throw new Error("Method not implemented.");
|
|
345
|
+
}
|
|
346
|
+
querySelector(selectors) {
|
|
347
|
+
throw new Error("Method not implemented.");
|
|
348
|
+
}
|
|
349
|
+
querySelectorAll(selectors) {
|
|
350
|
+
throw new Error("Method not implemented.");
|
|
351
|
+
}
|
|
352
|
+
replaceChildren(...nodes) {
|
|
353
|
+
throw new Error("Method not implemented.");
|
|
354
|
+
}
|
|
355
|
+
assignedSlot;
|
|
356
|
+
attributeStyleMap;
|
|
357
|
+
style;
|
|
358
|
+
contentEditable;
|
|
359
|
+
enterKeyHint;
|
|
360
|
+
inputMode;
|
|
361
|
+
isContentEditable;
|
|
362
|
+
onabort;
|
|
363
|
+
onanimationcancel;
|
|
364
|
+
onanimationend;
|
|
365
|
+
onanimationiteration;
|
|
366
|
+
onanimationstart;
|
|
367
|
+
onauxclick;
|
|
368
|
+
onbeforeinput;
|
|
369
|
+
onbeforetoggle;
|
|
370
|
+
onblur;
|
|
371
|
+
oncancel;
|
|
372
|
+
oncanplay;
|
|
373
|
+
oncanplaythrough;
|
|
374
|
+
onchange;
|
|
375
|
+
onclick;
|
|
376
|
+
onclose;
|
|
377
|
+
oncontextlost;
|
|
378
|
+
oncontextmenu;
|
|
379
|
+
oncontextrestored;
|
|
380
|
+
oncopy;
|
|
381
|
+
oncuechange;
|
|
382
|
+
oncut;
|
|
383
|
+
ondblclick;
|
|
384
|
+
ondrag;
|
|
385
|
+
ondragend;
|
|
386
|
+
ondragenter;
|
|
387
|
+
ondragleave;
|
|
388
|
+
ondragover;
|
|
389
|
+
ondragstart;
|
|
390
|
+
ondrop;
|
|
391
|
+
ondurationchange;
|
|
392
|
+
onemptied;
|
|
393
|
+
onended;
|
|
394
|
+
onerror;
|
|
395
|
+
onfocus;
|
|
396
|
+
onformdata;
|
|
397
|
+
ongotpointercapture;
|
|
398
|
+
oninput;
|
|
399
|
+
oninvalid;
|
|
400
|
+
onkeydown;
|
|
401
|
+
onkeypress;
|
|
402
|
+
onkeyup;
|
|
403
|
+
onload;
|
|
404
|
+
onloadeddata;
|
|
405
|
+
onloadedmetadata;
|
|
406
|
+
onloadstart;
|
|
407
|
+
onlostpointercapture;
|
|
408
|
+
onmousedown;
|
|
409
|
+
onmouseenter;
|
|
410
|
+
onmouseleave;
|
|
411
|
+
onmousemove;
|
|
412
|
+
onmouseout;
|
|
413
|
+
onmouseover;
|
|
414
|
+
onmouseup;
|
|
415
|
+
onpaste;
|
|
416
|
+
onpause;
|
|
417
|
+
onplay;
|
|
418
|
+
onplaying;
|
|
419
|
+
onpointercancel;
|
|
420
|
+
onpointerdown;
|
|
421
|
+
onpointerenter;
|
|
422
|
+
onpointerleave;
|
|
423
|
+
onpointermove;
|
|
424
|
+
onpointerout;
|
|
425
|
+
onpointerover;
|
|
426
|
+
onpointerup;
|
|
427
|
+
onprogress;
|
|
428
|
+
onratechange;
|
|
429
|
+
onreset;
|
|
430
|
+
onresize;
|
|
431
|
+
onscroll;
|
|
432
|
+
onscrollend;
|
|
433
|
+
onsecuritypolicyviolation;
|
|
434
|
+
onseeked;
|
|
435
|
+
onseeking;
|
|
436
|
+
onselect;
|
|
437
|
+
onselectionchange;
|
|
438
|
+
onselectstart;
|
|
439
|
+
onslotchange;
|
|
440
|
+
onstalled;
|
|
441
|
+
onsubmit;
|
|
442
|
+
onsuspend;
|
|
443
|
+
ontimeupdate;
|
|
444
|
+
ontoggle;
|
|
445
|
+
ontouchcancel;
|
|
446
|
+
ontouchend;
|
|
447
|
+
ontouchmove;
|
|
448
|
+
ontouchstart;
|
|
449
|
+
ontransitioncancel;
|
|
450
|
+
ontransitionend;
|
|
451
|
+
ontransitionrun;
|
|
452
|
+
ontransitionstart;
|
|
453
|
+
onvolumechange;
|
|
454
|
+
onwaiting;
|
|
455
|
+
onwebkitanimationend;
|
|
456
|
+
onwebkitanimationiteration;
|
|
457
|
+
onwebkitanimationstart;
|
|
458
|
+
onwebkittransitionend;
|
|
459
|
+
onwheel;
|
|
460
|
+
autofocus;
|
|
461
|
+
dataset;
|
|
462
|
+
nonce;
|
|
463
|
+
tabIndex;
|
|
464
|
+
blur() {
|
|
465
|
+
throw new Error("Method not implemented.");
|
|
466
|
+
}
|
|
467
|
+
focus(options) {
|
|
468
|
+
throw new Error("Method not implemented.");
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
if (platform_1.isBrowser) {
|
|
472
|
+
exports._ComponentWidget_ = class _ComponentWidget_ extends HTMLElement {
|
|
473
|
+
constructor() {
|
|
474
|
+
super();
|
|
475
|
+
const componentWidget = this;
|
|
476
|
+
const componentName = componentWidget.nodeName.toLowerCase();
|
|
477
|
+
const componentBody = (0, DOMCreateElement_1._DOMCreateElement)("quick-component");
|
|
478
|
+
const __enabled__atributes__ = componentWidget.getAttributeNames();
|
|
479
|
+
componentBody.setAttribute("name", componentName);
|
|
480
|
+
if (!componentWidget.hasAttribute("shadowed")) {
|
|
481
|
+
componentBody.setAttribute("shadowed", "true");
|
|
482
|
+
}
|
|
483
|
+
__enabled__atributes__.map(function (attributeName) {
|
|
484
|
+
if (componentWidget.hasAttribute(attributeName)) {
|
|
485
|
+
componentBody.setAttribute(attributeName, componentWidget?.getAttribute(attributeName));
|
|
486
|
+
componentWidget.removeAttribute(attributeName);
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
const data_attributenames = componentWidget.getAttributeNames().filter(function (a) {
|
|
490
|
+
return a.startsWith("data-");
|
|
491
|
+
}).map(function (a) {
|
|
492
|
+
return a.split("-")[1];
|
|
493
|
+
});
|
|
494
|
+
data_attributenames.map(function (_attribute_name_) {
|
|
495
|
+
componentBody.setAttribute("data-" + _attribute_name_, componentWidget?.getAttribute("data-" + _attribute_name_));
|
|
496
|
+
componentWidget.removeAttribute("data-" + _attribute_name_);
|
|
497
|
+
});
|
|
498
|
+
[...componentWidget.children].map(function (element) {
|
|
499
|
+
componentBody.appendChild(element.cloneNode(true));
|
|
500
|
+
element.remove();
|
|
501
|
+
});
|
|
502
|
+
componentWidget.append(componentBody);
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
exports._ComponentWidget_ = class _ComponentWidget_ extends QCObjectsWidgetNode {
|
|
508
|
+
constructor() {
|
|
509
|
+
super();
|
|
510
|
+
throw new Error("Class not implemented.");
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
(0, Export_1.Export)(exports._ComponentWidget_);
|
|
515
|
+
const RegisterWidget = function (widgetName) {
|
|
516
|
+
if (platform_1.isBrowser) {
|
|
517
|
+
customElements.define(widgetName, class extends exports._ComponentWidget_ {
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.");
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
exports.RegisterWidget = RegisterWidget;
|
|
525
|
+
const RegisterWidgets = function (...args) {
|
|
526
|
+
const widgetList = [...args];
|
|
527
|
+
widgetList.filter(function (widgetName) {
|
|
528
|
+
return typeof widgetName === "string";
|
|
529
|
+
}).map(function (widgetName) {
|
|
530
|
+
return (0, exports.RegisterWidget)(widgetName);
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
exports.RegisterWidgets = RegisterWidgets;
|
|
534
|
+
(introspection_1._protected_code_)(exports.RegisterWidget);
|
|
535
|
+
(introspection_1._protected_code_)(exports.RegisterWidgets);
|
|
536
|
+
(0, Export_1.Export)(exports.RegisterWidget);
|
|
537
|
+
(0, Export_1.Export)(exports.RegisterWidgets);
|
package/build/assign.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// Object.assign Polyfilling
|
|
4
|
+
// Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill
|
|
5
|
+
if (typeof Object.assign !== "function") {
|
|
6
|
+
// Must be writable: true, enumerable: false, configurable: true
|
|
7
|
+
Object.defineProperty(Object, "assign", {
|
|
8
|
+
// eslint-disable-next-line no-unused-vars
|
|
9
|
+
value: function assign(target, varArgs) {
|
|
10
|
+
"use strict";
|
|
11
|
+
if (target === null) { // TypeError if undefined or null
|
|
12
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
13
|
+
}
|
|
14
|
+
const to = Object(target);
|
|
15
|
+
for (let index = 1; index < arguments.length; index++) {
|
|
16
|
+
// eslint-disable-next-line prefer-rest-params
|
|
17
|
+
const nextSource = arguments[index];
|
|
18
|
+
if (nextSource !== null) { // Skip over if undefined or null
|
|
19
|
+
for (const nextKey in nextSource) {
|
|
20
|
+
// Avoid bugs when hasOwnProperty is shadowed
|
|
21
|
+
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
|
|
22
|
+
to[nextKey] = nextSource[nextKey];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return to;
|
|
28
|
+
},
|
|
29
|
+
writable: true,
|
|
30
|
+
configurable: true
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._fireAsyncLoad = exports._asyncLoad = void 0;
|
|
4
|
+
exports.asyncLoad = asyncLoad;
|
|
5
|
+
const Export_1 = require("./Export");
|
|
6
|
+
const platform_1 = require("./platform");
|
|
7
|
+
const top_1 = require("./top");
|
|
8
|
+
exports._asyncLoad = [];
|
|
9
|
+
function asyncLoad(callback, args) {
|
|
10
|
+
class AsyncCallback {
|
|
11
|
+
func;
|
|
12
|
+
args;
|
|
13
|
+
constructor(callback, args = []) {
|
|
14
|
+
this.func = callback;
|
|
15
|
+
this.args = args;
|
|
16
|
+
}
|
|
17
|
+
dispatch() {
|
|
18
|
+
this.func.apply(this, ...args, this);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports._asyncLoad.push((new AsyncCallback(callback, args)));
|
|
22
|
+
return AsyncCallback;
|
|
23
|
+
}
|
|
24
|
+
const _fireAsyncLoad = function () {
|
|
25
|
+
if (platform_1.isBrowser) {
|
|
26
|
+
document.addEventListener("readystatechange", () => {
|
|
27
|
+
if (document.readyState === "complete") {
|
|
28
|
+
// eslint-disable-next-line array-callback-return
|
|
29
|
+
exports._asyncLoad.map(function (fc) {
|
|
30
|
+
fc.dispatch.call(fc);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else if (typeof top_1._top.global !== "undefined") {
|
|
36
|
+
// eslint-disable-next-line array-callback-return
|
|
37
|
+
exports._asyncLoad.map(function (fc) {
|
|
38
|
+
fc.dispatch.call(fc);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
exports._fireAsyncLoad = _fireAsyncLoad;
|
|
43
|
+
(0, Export_1.Export)(asyncLoad);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setBasePath = exports._basePath_ = void 0;
|
|
4
|
+
const Logger_1 = require("./Logger");
|
|
5
|
+
const platform_1 = require("./platform");
|
|
6
|
+
exports._basePath_ = (function () {
|
|
7
|
+
let _basePath = "";
|
|
8
|
+
if (platform_1.isBrowser) {
|
|
9
|
+
const baseURI = document.baseURI.split("?")[0].split("/");
|
|
10
|
+
baseURI.pop();
|
|
11
|
+
_basePath = baseURI.join("/") + "/";
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
let process;
|
|
15
|
+
try {
|
|
16
|
+
process = (0, platform_1._require_)("process");
|
|
17
|
+
}
|
|
18
|
+
catch (e) {
|
|
19
|
+
Logger_1.logger.debug(`An error ocurred: ${e}.`);
|
|
20
|
+
// not a process module
|
|
21
|
+
}
|
|
22
|
+
if (typeof process !== "undefined") {
|
|
23
|
+
_basePath = `${(process).cwd()}/`;
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
_basePath = "";
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return _basePath;
|
|
30
|
+
})();
|
|
31
|
+
const setBasePath = (value) => { exports._basePath_ = value; };
|
|
32
|
+
exports.setBasePath = setBasePath;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.captureFalseTouch = exports.supportsPassive = void 0;
|
|
4
|
+
const Logger_1 = require("./Logger");
|
|
5
|
+
const platform_1 = require("./platform");
|
|
6
|
+
exports.supportsPassive = false;
|
|
7
|
+
const captureFalseTouch = () => {
|
|
8
|
+
return (exports.supportsPassive) ? ({
|
|
9
|
+
passive: true
|
|
10
|
+
}) : (false);
|
|
11
|
+
};
|
|
12
|
+
exports.captureFalseTouch = captureFalseTouch;
|
|
13
|
+
// Test via a getter in the options object to see if the passive property is accessed
|
|
14
|
+
if (platform_1.isBrowser) {
|
|
15
|
+
try {
|
|
16
|
+
const opts = Object.defineProperty({}, "passive", {
|
|
17
|
+
get() {
|
|
18
|
+
exports.supportsPassive = true;
|
|
19
|
+
return exports.supportsPassive;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
window.addEventListener("testPassive", null, opts);
|
|
23
|
+
window.removeEventListener("testPassive", null, opts);
|
|
24
|
+
}
|
|
25
|
+
catch (e) {
|
|
26
|
+
Logger_1.logger.debug(`An error ocurred: ${e}.`);
|
|
27
|
+
exports.supportsPassive = false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
exports.supportsPassive = false;
|
|
32
|
+
}
|