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