qcobjects 2.5.115-beta → 2.5.118-beta

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.
@@ -70,15 +70,67 @@ var require_assign = __commonJS({
70
70
  }
71
71
  });
72
72
 
73
- // src/PrimaryCollections.ts
74
- var _QC_CLASSES, _QC_PACKAGES, _QC_PACKAGES_IMPORTED, _QC_READY_LISTENERS;
75
- var init_PrimaryCollections = __esm({
76
- "src/PrimaryCollections.ts"() {
73
+ // src/is_raw_class.ts
74
+ var __is_raw_class__;
75
+ var init_is_raw_class = __esm({
76
+ "src/is_raw_class.ts"() {
77
77
  "use strict";
78
- _QC_CLASSES = {};
79
- _QC_PACKAGES = {};
80
- _QC_PACKAGES_IMPORTED = [];
81
- _QC_READY_LISTENERS = [];
78
+ __is_raw_class__ = /* @__PURE__ */ __name(function(o_c) {
79
+ return !!(typeof o_c === "function" && o_c.toString().startsWith("class"));
80
+ }, "__is_raw_class__");
81
+ }
82
+ });
83
+
84
+ // src/ObjectName.ts
85
+ var ObjectName;
86
+ var init_ObjectName = __esm({
87
+ "src/ObjectName.ts"() {
88
+ "use strict";
89
+ ObjectName = /* @__PURE__ */ __name(function(o) {
90
+ let ret = "";
91
+ if (typeof o === "function" && Object.hasOwn(o, "name") && o.name !== "") {
92
+ ret = o.name;
93
+ } else if (typeof o !== "undefined" && typeof o.constructor === "function" && o.constructor.name !== "") {
94
+ ret = o.constructor.name;
95
+ } else if (typeof o !== "undefined" && typeof o.constructor === "object") {
96
+ ret = o.constructor.toString().replace(/\[(.*?)\]/g, "$1").split(" ").slice(1).join("");
97
+ }
98
+ return ret;
99
+ }, "ObjectName");
100
+ }
101
+ });
102
+
103
+ // src/getType.ts
104
+ var __getType__;
105
+ var init_getType = __esm({
106
+ "src/getType.ts"() {
107
+ "use strict";
108
+ init_is_raw_class();
109
+ init_ObjectName();
110
+ __getType__ = /* @__PURE__ */ __name(function __getType__2(o_c) {
111
+ let _ret_ = "";
112
+ switch (true) {
113
+ case (typeof o_c === "object" && (!!o_c.constructor && !!o_c.constructor.name) && o_c.constructor.name !== ""):
114
+ _ret_ = o_c.constructor.name;
115
+ break;
116
+ case (typeof o_c === "function" && !!o_c.name):
117
+ _ret_ = o_c.name;
118
+ break;
119
+ case (__is_raw_class__(o_c) && !!o_c.name):
120
+ _ret_ = o_c.name;
121
+ break;
122
+ case (!!o_c && !!o_c.__classType && o_c.__classType !== ""):
123
+ _ret_ = o_c.__classType;
124
+ break;
125
+ case (!!o_c && !!o_c.__definition && !!o_c.__definition.__classType && o_c.__definition.__classType !== ""):
126
+ _ret_ = o_c.__definition.__classType;
127
+ break;
128
+ default:
129
+ _ret_ = ObjectName(o_c);
130
+ break;
131
+ }
132
+ return _ret_;
133
+ }, "__getType__");
82
134
  }
83
135
  });
84
136
 
@@ -102,6 +154,94 @@ var init_make_global = __esm({
102
154
  }
103
155
  });
104
156
 
157
+ // src/PrimaryCollections.ts
158
+ var _QC_CLASSES, _QC_PACKAGES, _QC_PACKAGES_IMPORTED, _QC_READY_LISTENERS, __register_class__, get_QC_CLASS, _get_packages_names, getPackagesNamesList, getPackagesList, getClassesList, getClassesNamesList, set_QC_PACKAGE;
159
+ var init_PrimaryCollections = __esm({
160
+ "src/PrimaryCollections.ts"() {
161
+ "use strict";
162
+ init_getType();
163
+ init_make_global();
164
+ _QC_CLASSES = {};
165
+ _QC_PACKAGES = {};
166
+ _QC_PACKAGES_IMPORTED = [];
167
+ _QC_READY_LISTENERS = [];
168
+ __register_class__ = /* @__PURE__ */ __name(function(_class_, __namespace) {
169
+ const __classType = __getType__(_class_);
170
+ let name = _class_.name || __classType;
171
+ if (name.toLowerCase() === "function") {
172
+ name = __classType;
173
+ }
174
+ if (typeof _class_.__definition === "undefined") {
175
+ _class_.__definition = {};
176
+ }
177
+ _class_.__definition.__classType = __classType;
178
+ if (typeof __namespace !== "undefined") {
179
+ _class_.__definition.__namespace = __namespace;
180
+ }
181
+ _QC_CLASSES[name] = _class_;
182
+ __make_global__(_class_);
183
+ return _QC_CLASSES[name];
184
+ }, "__register_class__");
185
+ get_QC_CLASS = /* @__PURE__ */ __name((name) => {
186
+ return _QC_CLASSES[name];
187
+ }, "get_QC_CLASS");
188
+ _get_packages_names = /* @__PURE__ */ __name(function(_packages) {
189
+ let _keys = [];
190
+ for (const _k of Object.keys(_packages)) {
191
+ if (typeof _packages[_k] !== "undefined" && typeof _packages[_k] !== "function" && Object.hasOwn(_packages[_k], "length") && _packages[_k].length > 0) {
192
+ _keys.push(_k);
193
+ _keys = _keys.concat(_get_packages_names(_packages[_k]));
194
+ }
195
+ }
196
+ return _keys;
197
+ }, "_get_packages_names");
198
+ getPackagesNamesList = /* @__PURE__ */ __name(() => {
199
+ return _get_packages_names(_QC_PACKAGES);
200
+ }, "getPackagesNamesList");
201
+ getPackagesList = /* @__PURE__ */ __name(() => {
202
+ return [...getPackagesNamesList()].map((packagename) => {
203
+ const _classesList = _QC_PACKAGES[packagename];
204
+ let _ret_ = void 0;
205
+ if (_classesList) {
206
+ _ret_ = {
207
+ packageName: packagename,
208
+ classesList: _classesList.filter(function() {
209
+ return true;
210
+ })
211
+ };
212
+ }
213
+ return _ret_;
214
+ }).filter(function(_p) {
215
+ return typeof _p !== "undefined";
216
+ });
217
+ }, "getPackagesList");
218
+ getClassesList = /* @__PURE__ */ __name(() => {
219
+ let _classesList = [];
220
+ [...getPackagesList()].forEach(function(_package_element) {
221
+ _classesList = _classesList.concat(_package_element.classesList.map(
222
+ (_class_element) => {
223
+ return {
224
+ packageName: _package_element.packageName,
225
+ className: `${_package_element.packageName}.${__getType__(_class_element)}`,
226
+ classFactory: _class_element
227
+ };
228
+ }
229
+ ));
230
+ return _package_element;
231
+ });
232
+ return _classesList;
233
+ }, "getClassesList");
234
+ getClassesNamesList = /* @__PURE__ */ __name(() => {
235
+ return [...getClassesList()].map((_class_element) => {
236
+ return _class_element.className;
237
+ });
238
+ }, "getClassesNamesList");
239
+ set_QC_PACKAGE = /* @__PURE__ */ __name((packageName, _qc_packages) => {
240
+ _QC_PACKAGES[packageName] = _qc_packages;
241
+ }, "set_QC_PACKAGE");
242
+ }
243
+ });
244
+
105
245
  // src/Export.ts
106
246
  var Export;
107
247
  var init_Export = __esm({
@@ -310,70 +450,6 @@ var init_DOMCreateElement = __esm({
310
450
  }
311
451
  });
312
452
 
313
- // src/is_raw_class.ts
314
- var __is_raw_class__;
315
- var init_is_raw_class = __esm({
316
- "src/is_raw_class.ts"() {
317
- "use strict";
318
- __is_raw_class__ = /* @__PURE__ */ __name(function(o_c) {
319
- return !!(typeof o_c === "function" && o_c.toString().startsWith("class"));
320
- }, "__is_raw_class__");
321
- }
322
- });
323
-
324
- // src/ObjectName.ts
325
- var ObjectName;
326
- var init_ObjectName = __esm({
327
- "src/ObjectName.ts"() {
328
- "use strict";
329
- ObjectName = /* @__PURE__ */ __name(function(o) {
330
- let ret = "";
331
- if (typeof o === "function" && Object.hasOwn(o, "name") && o.name !== "") {
332
- ret = o.name;
333
- } else if (typeof o !== "undefined" && typeof o.constructor === "function" && o.constructor.name !== "") {
334
- ret = o.constructor.name;
335
- } else if (typeof o !== "undefined" && typeof o.constructor === "object") {
336
- ret = o.constructor.toString().replace(/\[(.*?)\]/g, "$1").split(" ").slice(1).join("");
337
- }
338
- return ret;
339
- }, "ObjectName");
340
- }
341
- });
342
-
343
- // src/getType.ts
344
- var __getType__;
345
- var init_getType = __esm({
346
- "src/getType.ts"() {
347
- "use strict";
348
- init_is_raw_class();
349
- init_ObjectName();
350
- __getType__ = /* @__PURE__ */ __name(function __getType__2(o_c) {
351
- let _ret_ = "";
352
- switch (true) {
353
- case (__is_raw_class__(o_c) && !!o_c.name):
354
- _ret_ = o_c.name;
355
- break;
356
- case (typeof o_c === "object" && (!!o_c.constructor && !!o_c.constructor.name) && o_c.constructor.name !== ""):
357
- _ret_ = o_c.constructor.name;
358
- break;
359
- case (!!o_c && !!o_c.__classType && o_c.__classType !== ""):
360
- _ret_ = o_c.__classType;
361
- break;
362
- case (!!o_c && !!o_c.__definition && !!o_c.__definition.__classType && o_c.__definition.__classType !== ""):
363
- _ret_ = o_c.__definition.__classType;
364
- break;
365
- case (typeof o_c === "function" && !!o_c.name):
366
- _ret_ = o_c.name;
367
- break;
368
- default:
369
- _ret_ = ObjectName(o_c);
370
- break;
371
- }
372
- return _ret_;
373
- }, "__getType__");
374
- }
375
- });
376
-
377
453
  // src/IncrementInstanceID.ts
378
454
  var __instanceID, IncrementInstanceID;
379
455
  var init_IncrementInstanceID = __esm({
@@ -474,95 +550,37 @@ var init_introspection = __esm({
474
550
  }
475
551
  });
476
552
 
477
- // src/RegisterClass.ts
478
- var __register_class__, RegisterClass;
479
- var init_RegisterClass = __esm({
480
- "src/RegisterClass.ts"() {
481
- "use strict";
482
- init_getType();
483
- init_make_global();
484
- init_PrimaryCollections();
485
- __register_class__ = /* @__PURE__ */ __name(function(_class_, __namespace) {
486
- let name = _class_.name || __getType__(_class_);
487
- if (name.toLowerCase() === "function" && typeof _class_.__classType !== "undefined") {
488
- name = _class_.__classType;
489
- }
490
- if (typeof _class_.__definition === "undefined") {
491
- _class_.__definition = {};
492
- }
493
- _class_.__definition.__classType = name;
494
- if (typeof __namespace !== "undefined") {
495
- _class_.__definition.__namespace = __namespace;
496
- }
497
- _QC_CLASSES[name] = _class_;
498
- __make_global__(_QC_CLASSES[name]);
499
- return _QC_CLASSES[name];
500
- }, "__register_class__");
501
- RegisterClass = /* @__PURE__ */ __name(function(_class_, __namespace) {
502
- return __register_class__(_class_, __namespace);
503
- }, "RegisterClass");
504
- __make_global__(RegisterClass);
505
- }
506
- });
507
-
508
553
  // src/Package.ts
509
554
  var Package;
510
555
  var init_Package = __esm({
511
556
  "src/Package.ts"() {
512
557
  "use strict";
513
- init_InheritClass();
514
558
  init_is_raw_class();
515
559
  init_PrimaryCollections();
516
- init_RegisterClass();
517
- Package = /* @__PURE__ */ __name(function(namespace, classes = []) {
518
- if (Object.hasOwn(_QC_PACKAGES, namespace) && typeof _QC_PACKAGES[namespace] !== "undefined" && Object.hasOwn(_QC_PACKAGES[namespace], "length") && _QC_PACKAGES[namespace].length > 0 && typeof classes !== "undefined" && Object.hasOwn(classes, "length") && classes.length > 0) {
519
- classes.filter(
520
- function(_c1) {
521
- return __is_raw_class__(_c1);
522
- }
523
- ).map((_class_) => {
524
- if (typeof _class_.__definition === "undefined") {
525
- _class_.__definition = {};
526
- }
527
- _class_.__definition.__namespace = namespace;
528
- _class_.__namespace = namespace;
529
- return _class_;
560
+ Package = /* @__PURE__ */ __name((namespace, classes = []) => {
561
+ if (Object.hasOwn(_QC_PACKAGES, namespace) && typeof _QC_PACKAGES[namespace] !== "undefined" && typeof _QC_PACKAGES[namespace] !== "string" && Object.hasOwn(_QC_PACKAGES[namespace], "length") && _QC_PACKAGES[namespace].length > 0 && typeof classes !== "undefined" && Object.hasOwn(classes, "length") && classes.length > 0) {
562
+ classes.forEach((_class_) => {
563
+ __register_class__(_class_, namespace);
530
564
  });
531
- _QC_PACKAGES[namespace] = _QC_PACKAGES[namespace].concat(classes);
532
- } else if (typeof classes !== "undefined") {
533
- if (typeof classes === "object" && Object.hasOwn(classes, "length")) {
534
- classes.filter(
535
- function(_c1) {
536
- return __is_raw_class__(_c1);
537
- }
538
- ).map((_class_) => {
539
- if (typeof _class_.__definition === "undefined") {
540
- _class_.__definition = {};
541
- }
542
- _class_.__definition.__namespace = namespace;
543
- _class_.__namespace = namespace;
544
- return _class_;
545
- });
546
- } else if (classes.prototype instanceof InheritClass) {
547
- if (typeof classes.__definition === "undefined") {
548
- classes.__definition = {};
549
- }
550
- classes.__definition.__namespace = namespace;
551
- classes.__namespace = namespace;
552
- }
553
- _QC_PACKAGES[namespace] = classes;
554
- }
555
- if (Object.hasOwn(_QC_PACKAGES, namespace)) {
556
- _QC_PACKAGES[namespace].map((_class_) => {
565
+ set_QC_PACKAGE(namespace, _QC_PACKAGES[namespace].concat(classes));
566
+ } else if (typeof classes !== "undefined" && typeof classes !== "undefined" && Object.hasOwn(classes, "length") && classes.length > 0) {
567
+ classes.forEach((_class_) => {
557
568
  __register_class__(_class_, namespace);
558
- return _class_;
559
569
  });
570
+ set_QC_PACKAGE(namespace, classes);
571
+ } else if (__is_raw_class__(classes)) {
572
+ if (typeof classes.__definition === "undefined") {
573
+ classes.__definition = {};
574
+ }
575
+ classes.__definition.__namespace = namespace;
576
+ classes.__namespace = namespace;
577
+ __register_class__(classes, namespace);
578
+ set_QC_PACKAGE(namespace, [classes]);
579
+ } else {
580
+ throw new Error(`An error ocurred. It was not possible to add classes to ${namespace}.`);
560
581
  }
561
- return Object.hasOwn(_QC_PACKAGES, namespace) ? _QC_PACKAGES[namespace] : void 0;
582
+ return Object.hasOwn(_QC_PACKAGES, namespace) ? _QC_PACKAGES[namespace] : [];
562
583
  }, "Package");
563
- Package.prototype.toString = function() {
564
- return "Package(namespace, classes) { [QCObjects native code] }";
565
- };
566
584
  }
567
585
  });
568
586
 
@@ -1075,9 +1093,6 @@ var init_Class = __esm({
1075
1093
  _QC_CLASSES[name] = _CastProps(definition, _QC_CLASSES[name]);
1076
1094
  _QC_CLASSES[name].__definition = definition;
1077
1095
  _QC_CLASSES[name].__definition.__classType = name;
1078
- _QC_CLASSES[name].__definition.__new__ = /* @__PURE__ */ __name(function __new__(_o_) {
1079
- _CastProps(_o_, this);
1080
- }, "__new__");
1081
1096
  _top[name] = _QC_CLASSES[name];
1082
1097
  return _QC_CLASSES[name];
1083
1098
  }, "Class");
@@ -1101,7 +1116,7 @@ var init_ClassFactory = __esm({
1101
1116
  if (typeof className === "undefined" || className === null) {
1102
1117
  throw Error("You need to pass a parameter {className}");
1103
1118
  }
1104
- if (className !== null && className.indexOf(".") > -1) {
1119
+ if (className !== null && className.indexOf(".") !== -1) {
1105
1120
  const packageName = className.split(".").slice(0, className.split(".").length - 1).join(".");
1106
1121
  const _className = className.split(".").slice(-1).join("");
1107
1122
  const _package = _QC_PACKAGES[packageName] || [];
@@ -1113,10 +1128,15 @@ var init_ClassFactory = __esm({
1113
1128
  } else {
1114
1129
  throw Error(`Class ${_className} not found. Found classes: ${JSON.stringify(packageClasses)} in package ${packageName}`);
1115
1130
  }
1116
- } else if (className !== null && Object.hasOwn(_QC_CLASSES, className)) {
1117
- _classFactory = _QC_CLASSES[className];
1131
+ } else if (className !== null) {
1132
+ _classFactory = get_QC_CLASS(className);
1133
+ if (typeof _classFactory === "undefined") {
1134
+ throw new Error(`${className} is undefined.`);
1135
+ }
1118
1136
  } else {
1119
- throw Error(`Unable to determine class ${className}. Unable to retrieve the class factory.`);
1137
+ throw Error(`className is null. Unable to retrieve the class factory.
1138
+ Not found in:
1139
+ ${Object.keys(_QC_CLASSES).join("\n")}`);
1120
1140
  }
1121
1141
  return _classFactory;
1122
1142
  }, "ClassFactory");
@@ -3780,13 +3800,19 @@ __export(top_exports, {
3780
3800
  set: () => set,
3781
3801
  setConfigService: () => setConfigService
3782
3802
  });
3783
- var _top, componentsStack, resetTop, buildComponentsStack, configService, setConfigService, set, get;
3803
+ var _top, componentsStack, resetTop, buildComponentsStack, configService, setConfigService, set, get, _define_props;
3784
3804
  var init_top = __esm({
3785
3805
  "src/top.ts"() {
3786
3806
  "use strict";
3787
3807
  init_ComponentFactory();
3788
3808
  init_Cast();
3789
3809
  init_globalSettings();
3810
+ init_Class();
3811
+ init_ClassFactory();
3812
+ init_Export();
3813
+ init_platform();
3814
+ init_PrimaryCollections();
3815
+ init_Logger();
3790
3816
  _top = typeof module !== "undefined" && typeof module.exports !== "undefined" && module.exports || typeof global !== "undefined" && global || typeof globalThis !== "undefined" && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self !== null && self || void 0;
3791
3817
  _top.lastCache = void 0;
3792
3818
  componentsStack = [];
@@ -3808,184 +3834,95 @@ var init_top = __esm({
3808
3834
  return _top[name] || _defaultValue;
3809
3835
  }, "get");
3810
3836
  resetTop();
3837
+ _define_props = /* @__PURE__ */ __name(function(_top2) {
3838
+ if (!Object.hasOwn(_top2, "PackagesList")) {
3839
+ Object.defineProperty(_top2, "PackagesList", {
3840
+ // eslint-disable-next-line no-unused-vars
3841
+ set: /* @__PURE__ */ __name((value) => {
3842
+ logger.debug("PackagesList is readonly");
3843
+ }, "set"),
3844
+ get: /* @__PURE__ */ __name(() => {
3845
+ return getPackagesList();
3846
+ }, "get")
3847
+ });
3848
+ }
3849
+ if (!Object.hasOwn(_top2, "PackagesNameList")) {
3850
+ Object.defineProperty(_top2, "PackagesNameList", {
3851
+ // eslint-disable-next-line no-unused-vars
3852
+ set: /* @__PURE__ */ __name((val) => {
3853
+ logger.debug("PackagesNameList is readonly");
3854
+ }, "set"),
3855
+ get: /* @__PURE__ */ __name(() => {
3856
+ return getPackagesNamesList();
3857
+ }, "get")
3858
+ });
3859
+ }
3860
+ if (!Object.hasOwn(_top2, "ClassesList")) {
3861
+ Object.defineProperty(_top2, "ClassesList", {
3862
+ // eslint-disable-next-line no-unused-vars
3863
+ set: /* @__PURE__ */ __name((value) => {
3864
+ logger.debug("ClassesList is readonly");
3865
+ }, "set"),
3866
+ get: /* @__PURE__ */ __name(() => {
3867
+ return getClassesList();
3868
+ }, "get")
3869
+ });
3870
+ }
3871
+ if (!Object.hasOwn(_top2, "ClassesNameList")) {
3872
+ Object.defineProperty(_top2, "ClassesNameList", {
3873
+ // eslint-disable-next-line no-unused-vars
3874
+ set(value) {
3875
+ logger.debug("ClassesNameList is readonly");
3876
+ },
3877
+ get: /* @__PURE__ */ __name(() => {
3878
+ return getClassesNamesList();
3879
+ }, "get")
3880
+ });
3881
+ }
3882
+ }, "_define_props");
3883
+ if (isBrowser) {
3884
+ Class("GLOBAL", _QC_CLASSES.global);
3885
+ Export(ClassFactory("GLOBAL"));
3886
+ }
3887
+ if (isBrowser && typeof window !== "undefined") {
3888
+ set("global", window);
3889
+ } else if (isBrowser && typeof globalThis !== "undefined") {
3890
+ set("global", globalThis);
3891
+ }
3892
+ _define_props(_top);
3811
3893
  }
3812
3894
  });
3813
3895
 
3814
- // src/subelements.ts
3815
- var subelements;
3816
- var init_subelements = __esm({
3817
- "src/subelements.ts"() {
3896
+ // src/captureFalseTouch.ts
3897
+ var supportsPassive, captureFalseTouch;
3898
+ var init_captureFalseTouch = __esm({
3899
+ "src/captureFalseTouch.ts"() {
3818
3900
  "use strict";
3819
- subelements = /* @__PURE__ */ __name(function subelements2(query) {
3820
- const _self = this;
3821
- return [..._self.querySelectorAll(query)];
3822
- }, "subelements");
3823
- }
3824
- });
3825
-
3826
- // src/waitUntil.ts
3827
- var waitUntil;
3828
- var init_waitUntil = __esm({
3829
- "src/waitUntil.ts"() {
3830
- "use strict";
3831
- init_Logger();
3832
- waitUntil = /* @__PURE__ */ __name(function(func, exp) {
3833
- const _waitUntil = /* @__PURE__ */ __name(function(func2, exp2) {
3834
- const maxWaitCycles = 2e3;
3835
- let _w = 0;
3836
- var _t = setInterval(function() {
3837
- if (exp2()) {
3838
- clearInterval(_t);
3839
- func2();
3840
- logger.debug("Ejecuting " + func2.name + " after wait");
3841
- } else {
3842
- if (_w < maxWaitCycles) {
3843
- _w += 1;
3844
- logger.debug("WAIT UNTIL " + func2.name + " is true, " + _w.toString() + " cycles");
3845
- } else {
3846
- logger.debug("Max execution time for " + func2.name + " expression until true");
3847
- clearInterval(_t);
3848
- }
3849
- }
3850
- }, 1);
3851
- }, "_waitUntil");
3852
- setTimeout(function() {
3853
- _waitUntil(func, exp);
3854
- }, 1);
3855
- }, "waitUntil");
3856
- }
3857
- });
3858
-
3859
- // src/super.ts
3860
- var _super_;
3861
- var init_super = __esm({
3862
- "src/super.ts"() {
3863
- "use strict";
3864
- init_ClassFactory();
3865
- _super_ = /* @__PURE__ */ __name(function(className, classMethodName) {
3866
- return ClassFactory(className)[classMethodName];
3867
- }, "_super_");
3868
- _super_.prototype.toString = function() {
3869
- return "_super_(className,classMethodName,params) { [QCObjects native code] }";
3870
- };
3871
- }
3872
- });
3873
-
3874
- // src/shortCode.ts
3875
- var shortCode;
3876
- var init_shortCode = __esm({
3877
- "src/shortCode.ts"() {
3878
- "use strict";
3879
- init_Crypt();
3880
- shortCode = /* @__PURE__ */ __name(function() {
3881
- const length = 1e3;
3882
- const code1 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (/* @__PURE__ */ new Date()).getTime().toString());
3883
- const code2 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), new Date((/* @__PURE__ */ new Date()).getTime() - 1e3 * 1e3).getTime().toString());
3884
- const shortCode2 = [...code2].map((o1, index) => {
3885
- return [...code1][index] === o1 ? null : o1;
3886
- }).filter((c) => c !== null).join("");
3887
- return shortCode2;
3888
- }, "shortCode");
3889
- }
3890
- });
3891
-
3892
- // src/Ready.ts
3893
- var Ready, ready, _Ready;
3894
- var init_Ready = __esm({
3895
- "src/Ready.ts"() {
3896
- "use strict";
3897
- init_CONFIG();
3898
- init_platform();
3899
- init_PrimaryCollections();
3900
- init_top();
3901
- Ready = /* @__PURE__ */ __name(function Ready2(e) {
3902
- if (isBrowser) {
3903
- _QC_READY_LISTENERS.push(e.bind(window));
3904
- } else if (typeof global !== "undefined") {
3905
- _QC_READY_LISTENERS.push(e.bind(global));
3906
- }
3907
- }, "Ready");
3908
- ready = Ready;
3909
- _Ready = /* @__PURE__ */ __name(function(e) {
3910
- const _execReady = /* @__PURE__ */ __name(function() {
3911
- _QC_READY_LISTENERS.map(function(_ready_listener_, _r) {
3912
- if (typeof _ready_listener_ === "function") {
3913
- _ready_listener_();
3914
- _QC_READY_LISTENERS.splice(_r, 1);
3915
- }
3916
- });
3917
- }, "_execReady");
3918
- if (CONFIG.get("delayForReady") > 0) {
3919
- if (isBrowser) {
3920
- setTimeout(_execReady.bind(window), CONFIG.get("delayForReady"));
3921
- } else if (typeof global !== "undefined") {
3922
- setTimeout(_execReady.bind(global), CONFIG.get("delayForReady"));
3923
- }
3924
- } else {
3925
- _execReady.call(_top);
3926
- }
3927
- }, "_Ready");
3928
- }
3929
- });
3930
-
3931
- // src/captureFalseTouch.ts
3932
- var supportsPassive, captureFalseTouch;
3933
- var init_captureFalseTouch = __esm({
3934
- "src/captureFalseTouch.ts"() {
3935
- "use strict";
3936
- init_Logger();
3937
- init_platform();
3938
- supportsPassive = false;
3939
- captureFalseTouch = /* @__PURE__ */ __name(() => {
3940
- return supportsPassive ? {
3941
- passive: true
3942
- } : false;
3943
- }, "captureFalseTouch");
3944
- if (isBrowser) {
3945
- try {
3946
- const opts = Object.defineProperty({}, "passive", {
3947
- get() {
3948
- supportsPassive = true;
3949
- return supportsPassive;
3950
- }
3951
- });
3952
- window.addEventListener("testPassive", null, opts);
3953
- window.removeEventListener("testPassive", null, opts);
3954
- } catch (e) {
3955
- logger.debug(`An error ocurred: ${e}.`);
3956
- supportsPassive = false;
3957
- }
3958
- } else {
3959
- supportsPassive = false;
3960
- }
3961
- }
3962
- });
3963
-
3964
- // src/NamespaceRef.ts
3965
- var NamespaceRef;
3966
- var init_NamespaceRef = __esm({
3967
- "src/NamespaceRef.ts"() {
3968
- "use strict";
3969
- init_isQCObjects();
3970
- init_Package();
3971
- NamespaceRef = /* @__PURE__ */ __name(function(namespace) {
3972
- const packageInstance = Package(namespace) || [];
3973
- const classes = packageInstance.filter((c) => isQCObjects_Class(c)).map((c) => {
3974
- return {
3975
- [c.__definition.__classType]: c
3976
- };
3977
- }).reduce((a, b) => {
3978
- return Object.assign(a, b);
3979
- });
3980
- return namespace.split(".").map((c) => {
3981
- return {
3982
- [c]: classes
3983
- };
3984
- }).reverse().reduce((a, b) => {
3985
- b[Object.keys(b).join(".")] = a;
3986
- return b;
3987
- });
3988
- }, "NamespaceRef");
3901
+ init_Logger();
3902
+ init_platform();
3903
+ supportsPassive = false;
3904
+ captureFalseTouch = /* @__PURE__ */ __name(() => {
3905
+ return supportsPassive ? {
3906
+ passive: true
3907
+ } : false;
3908
+ }, "captureFalseTouch");
3909
+ if (isBrowser) {
3910
+ try {
3911
+ const opts = Object.defineProperty({}, "passive", {
3912
+ get() {
3913
+ supportsPassive = true;
3914
+ return supportsPassive;
3915
+ }
3916
+ });
3917
+ window.addEventListener("testPassive", null, opts);
3918
+ window.removeEventListener("testPassive", null, opts);
3919
+ } catch (e) {
3920
+ logger.debug(`An error ocurred: ${e}.`);
3921
+ supportsPassive = false;
3922
+ }
3923
+ } else {
3924
+ supportsPassive = false;
3925
+ }
3989
3926
  }
3990
3927
  });
3991
3928
 
@@ -4108,6 +4045,181 @@ var init_defaultProcessors = __esm({
4108
4045
  }
4109
4046
  });
4110
4047
 
4048
+ // src/findPackageNodePath.ts
4049
+ var findPackageNodePath;
4050
+ var init_findPackageNodePath = __esm({
4051
+ "src/findPackageNodePath.ts"() {
4052
+ "use strict";
4053
+ init_CONFIG();
4054
+ init_Export();
4055
+ init_Logger();
4056
+ init_platform();
4057
+ findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
4058
+ let sdkPath = null;
4059
+ if (!isBrowser) {
4060
+ const fs = __require("fs");
4061
+ try {
4062
+ let sdkPaths = [
4063
+ `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
4064
+ `${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
4065
+ `${CONFIG.get("projectPath")}`,
4066
+ `${CONFIG.get("basePath")}`,
4067
+ `${CONFIG.get("relativeImportPath")}`,
4068
+ `${process.cwd()}${CONFIG.get("relativeImportPath")}`,
4069
+ `${process.cwd()}/node_modules/` + packagename,
4070
+ `${process.cwd()}/node_modules`,
4071
+ `${process.cwd()}`,
4072
+ "node_modules",
4073
+ "./",
4074
+ ""
4075
+ ].concat(module.paths);
4076
+ sdkPaths = sdkPaths.filter((p) => {
4077
+ return fs.existsSync(p + "/" + packagename);
4078
+ });
4079
+ if (sdkPaths.length > 0) {
4080
+ sdkPath = sdkPaths[0];
4081
+ logger.info(packagename + " is Installed.");
4082
+ } else {
4083
+ sdkPath = "";
4084
+ logger.info(`${packagename} is not in a standard path.`);
4085
+ }
4086
+ } catch (e) {
4087
+ console.log(e);
4088
+ }
4089
+ }
4090
+ return sdkPath;
4091
+ }, "findPackageNodePath");
4092
+ Export(findPackageNodePath);
4093
+ }
4094
+ });
4095
+
4096
+ // src/Import.ts
4097
+ var Import;
4098
+ var init_Import = __esm({
4099
+ "src/Import.ts"() {
4100
+ "use strict";
4101
+ init_basePath();
4102
+ init_CONFIG();
4103
+ init_DataStringify();
4104
+ init_DOMCreateElement();
4105
+ init_findPackageNodePath();
4106
+ init_Logger();
4107
+ init_platform();
4108
+ init_PrimaryCollections();
4109
+ Import = /* @__PURE__ */ __name(function(packagename, ready2, external) {
4110
+ if (external !== void 0) {
4111
+ logger.debug(`[Import] Setting external=${external.toString()} resource to import: ${packagename}`);
4112
+ }
4113
+ if (external) {
4114
+ logger.debug(`[Import] Registering external resource to import: ${packagename}`);
4115
+ } else {
4116
+ logger.debug(`[Import] Registering local resource to import: ${packagename}`);
4117
+ }
4118
+ let _promise_import_;
4119
+ if (isBrowser) {
4120
+ _promise_import_ = new Promise(function(resolve, reject) {
4121
+ const allPackagesImported = /* @__PURE__ */ __name(function() {
4122
+ let ret = false;
4123
+ let cp = 0;
4124
+ for (const p in _QC_PACKAGES) {
4125
+ cp++;
4126
+ }
4127
+ if (cp < _QC_PACKAGES_IMPORTED.length) {
4128
+ ret = false;
4129
+ } else {
4130
+ ret = true;
4131
+ }
4132
+ return ret;
4133
+ }, "allPackagesImported");
4134
+ const readyImported = /* @__PURE__ */ __name(function(e) {
4135
+ _QC_PACKAGES_IMPORTED.push(ready2);
4136
+ if (allPackagesImported()) {
4137
+ _QC_PACKAGES_IMPORTED.map(function(_imported_) {
4138
+ _QC_READY_LISTENERS.push(_imported_);
4139
+ });
4140
+ }
4141
+ if (isBrowser && CONFIG.get("removePackageScriptAfterLoading")) {
4142
+ e.target.remove();
4143
+ }
4144
+ resolve.call(_promise_import_, {
4145
+ "_imported_": e.target,
4146
+ "_package_name_": packagename
4147
+ });
4148
+ }, "readyImported");
4149
+ if (!Object.hasOwn(_QC_PACKAGES, packagename)) {
4150
+ const s1 = _DOMCreateElement("script");
4151
+ s1.type = CONFIG.get("sourceType", "text/javascript");
4152
+ s1.async = !!CONFIG.get("asynchronousImportsLoad");
4153
+ s1.onreadystatechange = function() {
4154
+ if (s1.readyState === "complete") {
4155
+ readyImported(s1);
4156
+ }
4157
+ };
4158
+ s1.onload = readyImported;
4159
+ s1.onerror = function(e) {
4160
+ logger.debug(`An error ocurred: ${e}.`);
4161
+ reject.call(_promise_import_, {
4162
+ "_imported_": s1,
4163
+ "_package_name_": packagename
4164
+ });
4165
+ };
4166
+ s1.src = external ? CONFIG.get("remoteImportsPath") + packagename + ".js" : _basePath_ + CONFIG.get("relativeImportPath") + packagename + ".js";
4167
+ document.getElementsByTagName("head")[0].appendChild(s1);
4168
+ }
4169
+ });
4170
+ _promise_import_.catch(function() {
4171
+ logger.debug("Import: Error loading a package ");
4172
+ });
4173
+ } else {
4174
+ _promise_import_ = new Promise(function(resolve, reject) {
4175
+ try {
4176
+ const standardNodePath = findPackageNodePath(packagename);
4177
+ let packageAbsoluteName = "";
4178
+ if (standardNodePath !== null) {
4179
+ packageAbsoluteName = standardNodePath + "/" + packagename;
4180
+ } else {
4181
+ const jsNodePath = findPackageNodePath(packagename + ".js");
4182
+ if (jsNodePath !== null) {
4183
+ packageAbsoluteName = jsNodePath + "/" + packagename + ".js";
4184
+ } else {
4185
+ packageAbsoluteName = _basePath_ + CONFIG.get("relativeImportPath") + packagename;
4186
+ }
4187
+ }
4188
+ try {
4189
+ resolve.call(_promise_import_, {
4190
+ "_imported_": _require_(`${packageAbsoluteName}`),
4191
+ "_package_name_": packagename
4192
+ });
4193
+ } catch (e) {
4194
+ reject.call(_promise_import_, {
4195
+ "_imported_": null,
4196
+ "_package_name_": packagename,
4197
+ "error": e
4198
+ });
4199
+ }
4200
+ } catch (e) {
4201
+ reject.call(_promise_import_, {
4202
+ "_imported_": null,
4203
+ "_package_name_": packagename,
4204
+ "error": e
4205
+ });
4206
+ }
4207
+ }).catch(function(e) {
4208
+ logger.debug("Something happened when importing " + packagename);
4209
+ console.warn(e);
4210
+ });
4211
+ }
4212
+ _promise_import_.catch(function(e) {
4213
+ logger.warn(_DataStringify(e));
4214
+ });
4215
+ return _promise_import_;
4216
+ }, "Import");
4217
+ Import.prototype.toString = function() {
4218
+ return "Import(packagename,ready,external) { [QCObjects native code] }";
4219
+ };
4220
+ }
4221
+ });
4222
+
4111
4223
  // src/mathFunctions.ts
4112
4224
  var __to_number;
4113
4225
  var init_mathFunctions = __esm({
@@ -4119,6 +4231,73 @@ var init_mathFunctions = __esm({
4119
4231
  }
4120
4232
  });
4121
4233
 
4234
+ // src/NamespaceRef.ts
4235
+ var NamespaceRef;
4236
+ var init_NamespaceRef = __esm({
4237
+ "src/NamespaceRef.ts"() {
4238
+ "use strict";
4239
+ init_isQCObjects();
4240
+ init_Package();
4241
+ NamespaceRef = /* @__PURE__ */ __name(function(namespace) {
4242
+ const packageInstance = Package(namespace) || [];
4243
+ const classes = packageInstance.filter((c) => isQCObjects_Class(c)).map((c) => {
4244
+ return {
4245
+ [c.__definition.__classType]: c
4246
+ };
4247
+ }).reduce((a, b) => {
4248
+ return Object.assign(a, b);
4249
+ });
4250
+ return namespace.split(".").map((c) => {
4251
+ return {
4252
+ [c]: classes
4253
+ };
4254
+ }).reverse().reduce((a, b) => {
4255
+ b[Object.keys(b).join(".")] = a;
4256
+ return b;
4257
+ });
4258
+ }, "NamespaceRef");
4259
+ }
4260
+ });
4261
+
4262
+ // src/Ready.ts
4263
+ var Ready, ready, _Ready;
4264
+ var init_Ready = __esm({
4265
+ "src/Ready.ts"() {
4266
+ "use strict";
4267
+ init_CONFIG();
4268
+ init_platform();
4269
+ init_PrimaryCollections();
4270
+ init_top();
4271
+ Ready = /* @__PURE__ */ __name(function Ready2(e) {
4272
+ if (isBrowser) {
4273
+ _QC_READY_LISTENERS.push(e.bind(window));
4274
+ } else if (typeof global !== "undefined") {
4275
+ _QC_READY_LISTENERS.push(e.bind(global));
4276
+ }
4277
+ }, "Ready");
4278
+ ready = Ready;
4279
+ _Ready = /* @__PURE__ */ __name(function(e) {
4280
+ const _execReady = /* @__PURE__ */ __name(function() {
4281
+ _QC_READY_LISTENERS.map(function(_ready_listener_, _r) {
4282
+ if (typeof _ready_listener_ === "function") {
4283
+ _ready_listener_();
4284
+ _QC_READY_LISTENERS.splice(_r, 1);
4285
+ }
4286
+ });
4287
+ }, "_execReady");
4288
+ if (CONFIG.get("delayForReady") > 0) {
4289
+ if (isBrowser) {
4290
+ setTimeout(_execReady.bind(window), CONFIG.get("delayForReady"));
4291
+ } else if (typeof global !== "undefined") {
4292
+ setTimeout(_execReady.bind(global), CONFIG.get("delayForReady"));
4293
+ }
4294
+ } else {
4295
+ _execReady.call(_top);
4296
+ }
4297
+ }, "_Ready");
4298
+ }
4299
+ });
4300
+
4122
4301
  // src/ArrayCollection.ts
4123
4302
  var ArrayList, ArrayCollection;
4124
4303
  var init_ArrayCollection = __esm({
@@ -4335,181 +4514,81 @@ var init_Tag = __esm({
4335
4514
  }
4336
4515
  });
4337
4516
 
4338
- // src/findPackageNodePath.ts
4339
- var findPackageNodePath;
4340
- var init_findPackageNodePath = __esm({
4341
- "src/findPackageNodePath.ts"() {
4517
+ // src/shortCode.ts
4518
+ var shortCode;
4519
+ var init_shortCode = __esm({
4520
+ "src/shortCode.ts"() {
4521
+ "use strict";
4522
+ init_Crypt();
4523
+ shortCode = /* @__PURE__ */ __name(function() {
4524
+ const length = 1e3;
4525
+ const code1 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), (/* @__PURE__ */ new Date()).getTime().toString());
4526
+ const code2 = _Crypt.encrypt((Math.random() * length).toString().replace(".", ""), new Date((/* @__PURE__ */ new Date()).getTime() - 1e3 * 1e3).getTime().toString());
4527
+ const shortCode2 = [...code2].map((o1, index) => {
4528
+ return [...code1][index] === o1 ? null : o1;
4529
+ }).filter((c) => c !== null).join("");
4530
+ return shortCode2;
4531
+ }, "shortCode");
4532
+ }
4533
+ });
4534
+
4535
+ // src/super.ts
4536
+ var _super_;
4537
+ var init_super = __esm({
4538
+ "src/super.ts"() {
4342
4539
  "use strict";
4343
- init_import();
4344
- init_CONFIG();
4345
- init_Export();
4346
- init_Logger();
4347
- init_platform();
4348
- findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
4349
- let sdkPath = null;
4350
- if (!isBrowser) {
4351
- let fs;
4352
- (async () => {
4353
- fs = await _import_("node:fs");
4354
- })().then(() => {
4355
- let sdkPaths = [
4356
- `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
4357
- `${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
4358
- `${CONFIG.get("projectPath")}`,
4359
- `${CONFIG.get("basePath")}`,
4360
- `${CONFIG.get("relativeImportPath")}`,
4361
- `${process.cwd()}${CONFIG.get("relativeImportPath")}`,
4362
- `${process.cwd()}/node_modules/` + packagename,
4363
- `${process.cwd()}/node_modules`,
4364
- `${process.cwd()}`,
4365
- "node_modules",
4366
- "./",
4367
- ""
4368
- ].concat(module.paths);
4369
- sdkPaths = sdkPaths.filter((p) => {
4370
- return fs.existsSync(p + "/" + packagename);
4371
- });
4372
- if (sdkPaths.length > 0) {
4373
- sdkPath = sdkPaths[0];
4374
- logger.info(packagename + " is Installed.");
4375
- } else {
4376
- sdkPath = "";
4377
- logger.info(`${packagename} is not in a standard path.`);
4378
- }
4379
- }).catch((e) => {
4380
- throw new Error(e);
4381
- });
4382
- }
4383
- return sdkPath;
4384
- }, "findPackageNodePath");
4385
- Export(findPackageNodePath);
4540
+ init_ClassFactory();
4541
+ _super_ = /* @__PURE__ */ __name(function(className, classMethodName) {
4542
+ return ClassFactory(className)[classMethodName];
4543
+ }, "_super_");
4544
+ _super_.prototype.toString = function() {
4545
+ return "_super_(className,classMethodName,params) { [QCObjects native code] }";
4546
+ };
4386
4547
  }
4387
4548
  });
4388
4549
 
4389
- // src/Import.ts
4390
- var Import;
4391
- var init_Import = __esm({
4392
- "src/Import.ts"() {
4550
+ // src/waitUntil.ts
4551
+ var waitUntil;
4552
+ var init_waitUntil = __esm({
4553
+ "src/waitUntil.ts"() {
4393
4554
  "use strict";
4394
- init_basePath();
4395
- init_CONFIG();
4396
- init_DataStringify();
4397
- init_DOMCreateElement();
4398
- init_findPackageNodePath();
4399
4555
  init_Logger();
4400
- init_platform();
4401
- init_PrimaryCollections();
4402
- Import = /* @__PURE__ */ __name(function(packagename, ready2, external) {
4403
- if (external !== void 0) {
4404
- logger.debug(`[Import] Setting external=${external.toString()} resource to import: ${packagename}`);
4405
- }
4406
- if (external) {
4407
- logger.debug(`[Import] Registering external resource to import: ${packagename}`);
4408
- } else {
4409
- logger.debug(`[Import] Registering local resource to import: ${packagename}`);
4410
- }
4411
- let _promise_import_;
4412
- if (isBrowser) {
4413
- _promise_import_ = new Promise(function(resolve, reject) {
4414
- const allPackagesImported = /* @__PURE__ */ __name(function() {
4415
- let ret = false;
4416
- let cp = 0;
4417
- for (const p in _QC_PACKAGES) {
4418
- cp++;
4419
- }
4420
- if (cp < _QC_PACKAGES_IMPORTED.length) {
4421
- ret = false;
4422
- } else {
4423
- ret = true;
4424
- }
4425
- return ret;
4426
- }, "allPackagesImported");
4427
- const readyImported = /* @__PURE__ */ __name(function(e) {
4428
- _QC_PACKAGES_IMPORTED.push(ready2);
4429
- if (allPackagesImported()) {
4430
- _QC_PACKAGES_IMPORTED.map(function(_imported_) {
4431
- _QC_READY_LISTENERS.push(_imported_);
4432
- });
4433
- }
4434
- if (isBrowser && CONFIG.get("removePackageScriptAfterLoading")) {
4435
- e.target.remove();
4436
- }
4437
- resolve.call(_promise_import_, {
4438
- "_imported_": e.target,
4439
- "_package_name_": packagename
4440
- });
4441
- }, "readyImported");
4442
- if (!Object.hasOwn(_QC_PACKAGES, packagename)) {
4443
- const s1 = _DOMCreateElement("script");
4444
- s1.type = CONFIG.get("sourceType", "text/javascript");
4445
- s1.async = !!CONFIG.get("asynchronousImportsLoad");
4446
- s1.onreadystatechange = function() {
4447
- if (s1.readyState === "complete") {
4448
- readyImported(s1);
4449
- }
4450
- };
4451
- s1.onload = readyImported;
4452
- s1.onerror = function(e) {
4453
- logger.debug(`An error ocurred: ${e}.`);
4454
- reject.call(_promise_import_, {
4455
- "_imported_": s1,
4456
- "_package_name_": packagename
4457
- });
4458
- };
4459
- s1.src = external ? CONFIG.get("remoteImportsPath") + packagename + ".js" : _basePath_ + CONFIG.get("relativeImportPath") + packagename + ".js";
4460
- document.getElementsByTagName("head")[0].appendChild(s1);
4461
- }
4462
- });
4463
- _promise_import_.catch(function() {
4464
- logger.debug("Import: Error loading a package ");
4465
- });
4466
- } else {
4467
- _promise_import_ = new Promise(function(resolve, reject) {
4468
- try {
4469
- const standardNodePath = findPackageNodePath(packagename);
4470
- let packageAbsoluteName = "";
4471
- if (standardNodePath !== null) {
4472
- packageAbsoluteName = standardNodePath + "/" + packagename;
4556
+ waitUntil = /* @__PURE__ */ __name(function(func, exp) {
4557
+ const _waitUntil = /* @__PURE__ */ __name(function(func2, exp2) {
4558
+ const maxWaitCycles = 2e3;
4559
+ let _w = 0;
4560
+ var _t = setInterval(function() {
4561
+ if (exp2()) {
4562
+ clearInterval(_t);
4563
+ func2();
4564
+ logger.debug("Ejecuting " + func2.name + " after wait");
4565
+ } else {
4566
+ if (_w < maxWaitCycles) {
4567
+ _w += 1;
4568
+ logger.debug("WAIT UNTIL " + func2.name + " is true, " + _w.toString() + " cycles");
4473
4569
  } else {
4474
- const jsNodePath = findPackageNodePath(packagename + ".js");
4475
- if (jsNodePath !== null) {
4476
- packageAbsoluteName = jsNodePath + "/" + packagename + ".js";
4477
- } else {
4478
- packageAbsoluteName = _basePath_ + CONFIG.get("relativeImportPath") + packagename;
4479
- }
4480
- }
4481
- try {
4482
- resolve.call(_promise_import_, {
4483
- "_imported_": _require_(`${packageAbsoluteName}`),
4484
- "_package_name_": packagename
4485
- });
4486
- } catch (e) {
4487
- reject.call(_promise_import_, {
4488
- "_imported_": null,
4489
- "_package_name_": packagename,
4490
- "error": e
4491
- });
4570
+ logger.debug("Max execution time for " + func2.name + " expression until true");
4571
+ clearInterval(_t);
4492
4572
  }
4493
- } catch (e) {
4494
- reject.call(_promise_import_, {
4495
- "_imported_": null,
4496
- "_package_name_": packagename,
4497
- "error": e
4498
- });
4499
4573
  }
4500
- }).catch(function(e) {
4501
- logger.debug("Something happened when importing " + packagename);
4502
- console.warn(e);
4503
- });
4504
- }
4505
- _promise_import_.catch(function(e) {
4506
- logger.warn(_DataStringify(e));
4507
- });
4508
- return _promise_import_;
4509
- }, "Import");
4510
- Import.prototype.toString = function() {
4511
- return "Import(packagename,ready,external) { [QCObjects native code] }";
4512
- };
4574
+ }, 1);
4575
+ }, "_waitUntil");
4576
+ setTimeout(function() {
4577
+ _waitUntil(func, exp);
4578
+ }, 1);
4579
+ }, "waitUntil");
4580
+ }
4581
+ });
4582
+
4583
+ // src/subelements.ts
4584
+ var subelements;
4585
+ var init_subelements = __esm({
4586
+ "src/subelements.ts"() {
4587
+ "use strict";
4588
+ subelements = /* @__PURE__ */ __name(function subelements2(query) {
4589
+ const _self = this;
4590
+ return [..._self.querySelectorAll(query)];
4591
+ }, "subelements");
4513
4592
  }
4514
4593
  });
4515
4594
 
@@ -4604,7 +4683,6 @@ var require_MainProcess = __commonJS({
4604
4683
  init_ObjectName();
4605
4684
  init_Package();
4606
4685
  init_platform();
4607
- init_PrimaryCollections();
4608
4686
  init_Ready();
4609
4687
  init_serviceLoader();
4610
4688
  init_Tag();
@@ -4884,95 +4962,7 @@ var require_MainProcess = __commonJS({
4884
4962
  Export(isBrowser);
4885
4963
  Export(_methods_);
4886
4964
  Export(GlobalSettings);
4887
- (function(_top3) {
4888
- Object.defineProperty(_top3, "PackagesNameList", {
4889
- // eslint-disable-next-line no-unused-vars
4890
- set(val) {
4891
- logger.debug("PackagesNameList is readonly");
4892
- },
4893
- get() {
4894
- const _get_packages_names = /* @__PURE__ */ __name(function(_packages) {
4895
- let _keys = [];
4896
- for (const _k of Object.keys(_packages)) {
4897
- if (typeof _packages[_k] !== "undefined" && typeof _packages[_k] !== "function" && Object.hasOwn(_packages[_k], "length") && _packages[_k].length > 0) {
4898
- _keys.push(_k);
4899
- _keys = _keys.concat(_get_packages_names(_packages[_k]));
4900
- }
4901
- }
4902
- return _keys;
4903
- }, "_get_packages_names");
4904
- return _get_packages_names(_QC_PACKAGES);
4905
- }
4906
- });
4907
- Object.defineProperty(_top3, "PackagesList", {
4908
- // eslint-disable-next-line no-unused-vars
4909
- set(value) {
4910
- logger.debug("PackagesList is readonly");
4911
- },
4912
- get() {
4913
- return _top3.PackagesNameList.map(function(packagename) {
4914
- const _classesList = Package(packagename);
4915
- let _ret_ = void 0;
4916
- if (_classesList) {
4917
- _ret_ = {
4918
- packageName: packagename,
4919
- classesList: _classesList.filter(function(_packageClass) {
4920
- return isQCObjects_Class(_packageClass);
4921
- })
4922
- };
4923
- }
4924
- return _ret_;
4925
- }).filter(function(_p) {
4926
- return typeof _p !== "undefined";
4927
- });
4928
- }
4929
- });
4930
- Object.defineProperty(_top3, "ClassesList", {
4931
- // eslint-disable-next-line no-unused-vars
4932
- set(value) {
4933
- logger.debug("ClassesList is readonly");
4934
- },
4935
- get() {
4936
- let _classesList = [];
4937
- _top3.PackagesList.map(function(_package_element) {
4938
- _classesList = _classesList.concat(_package_element.classesList.map(
4939
- function(_class_element) {
4940
- return {
4941
- packageName: _package_element.packageName,
4942
- className: _package_element.packageName + "." + _class_element.__definition.__classType,
4943
- classFactory: _class_element
4944
- };
4945
- }
4946
- ));
4947
- return _package_element;
4948
- });
4949
- return _classesList;
4950
- }
4951
- });
4952
- Object.defineProperty(_top3, "ClassesNameList", {
4953
- // eslint-disable-next-line no-unused-vars
4954
- set(value) {
4955
- logger.debug("ClassesNameList is readonly");
4956
- },
4957
- get() {
4958
- return _top3.ClassesList.map(function(_class_element) {
4959
- return _class_element.className;
4960
- });
4961
- }
4962
- });
4963
- if (isBrowser) {
4964
- Class("GLOBAL", _QC_CLASSES.global);
4965
- Export(ClassFactory("GLOBAL"));
4966
- }
4967
- if (isBrowser && typeof window !== "undefined") {
4968
- set("global", window);
4969
- } else if (typeof global !== "undefined") {
4970
- set("global", global);
4971
- } else if (typeof globalThis !== "undefined") {
4972
- set("global", globalThis);
4973
- }
4974
- loadSDK_default();
4975
- })(_top2);
4965
+ loadSDK_default();
4976
4966
  if (isBrowser) {
4977
4967
  asyncLoad(function() {
4978
4968
  Ready(function() {
@@ -5063,6 +5053,7 @@ var require_MainProcess = __commonJS({
5063
5053
  // src/QCObjects.ts
5064
5054
  var AssignPolyfill = __toESM(require_assign());
5065
5055
  init_top();
5056
+ var QCObjects = __toESM(require_MainProcess());
5066
5057
  init_top();
5067
5058
  init_PrimaryCollections();
5068
5059
  init_DataStringify();
@@ -5316,7 +5307,16 @@ init_Crypt();
5316
5307
  // src/DefaultTemplateHandler.ts
5317
5308
  init_Logger();
5318
5309
  init_Processor();
5319
- init_RegisterClass();
5310
+
5311
+ // src/RegisterClass.ts
5312
+ init_make_global();
5313
+ init_PrimaryCollections();
5314
+ var RegisterClass = /* @__PURE__ */ __name(function(_class_, __namespace) {
5315
+ return __register_class__(_class_, __namespace);
5316
+ }, "RegisterClass");
5317
+ __make_global__(RegisterClass);
5318
+
5319
+ // src/DefaultTemplateHandler.ts
5320
5320
  var DefaultTemplateHandler = class {
5321
5321
  static {
5322
5322
  __name(this, "DefaultTemplateHandler");
@@ -5517,7 +5517,6 @@ Package("com.qcobjects", [SourceCSS]);
5517
5517
 
5518
5518
  // src/QCObjects.ts
5519
5519
  init_globalSettings();
5520
- init_RegisterClass();
5521
5520
 
5522
5521
  // src/WidgetsFactory.ts
5523
5522
  init_DOMCreateElement();
@@ -6181,6 +6180,8 @@ Package("com.qcobjects.valueObjects", [
6181
6180
  // src/Effect.ts
6182
6181
  init_InheritClass();
6183
6182
  init_Package();
6183
+ init_introspection();
6184
+ init_ClassFactory();
6184
6185
  var Effect = class extends InheritClass {
6185
6186
  static {
6186
6187
  __name(this, "Effect");
@@ -6219,6 +6220,10 @@ var Effect = class extends InheritClass {
6219
6220
  Package("com.qcobjects.effects.base", [
6220
6221
  Effect
6221
6222
  ]);
6223
+ _methods_(ClassFactory("Effect")).map((__c__) => {
6224
+ _protected_code_(__c__);
6225
+ return __c__;
6226
+ });
6222
6227
 
6223
6228
  // src/TransitionEffect.ts
6224
6229
  init_Logger();
@@ -6491,7 +6496,6 @@ init_mathFunctions();
6491
6496
  init_top();
6492
6497
  init_make_global();
6493
6498
  init_top();
6494
- var QCObjects = __toESM(require_MainProcess());
6495
6499
  export {
6496
6500
  ArrayCollection,
6497
6501
  ArrayList,