qcobjects 2.5.105-beta → 2.5.106-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.
- package/VERSION +1 -1
- package/build/Cast.js +4 -2
- package/build/Logger.js +2 -0
- package/build/MainProcess.js +3 -6
- package/build/globalSettings.js +7 -0
- package/build/index.d.ts +110 -106
- package/build/top.js +5 -4
- package/package.json +1 -1
- package/public/browser/QCObjects.js +64 -55
- package/public/browser/QCObjects.js.map +4 -4
- package/public/cjs/QCObjects.cjs +64 -55
- package/public/cjs/QCObjects.cjs.map +4 -4
- package/public/esm/QCObjects.mjs +64 -55
- package/public/esm/QCObjects.mjs.map +4 -4
- package/src/Cast.ts +4 -2
- package/src/Logger.ts +2 -0
- package/src/MainProcess.ts +4 -8
- package/src/globalSettings.ts +10 -1
- package/src/top.ts +7 -5
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.106-beta
|
package/build/Cast.js
CHANGED
|
@@ -29,14 +29,16 @@ exports._Cast = _Cast;
|
|
|
29
29
|
* @param {Object} obj_source
|
|
30
30
|
* @param {Object} obj_dest
|
|
31
31
|
*/
|
|
32
|
-
const _CastProps = function (obj_source, obj_dest) {
|
|
32
|
+
const _CastProps = function (obj_source, obj_dest, _ignoreError = true) {
|
|
33
33
|
for (const v in obj_source) {
|
|
34
34
|
if (typeof obj_source[v] !== "undefined" && typeof obj_source[v] !== "function") {
|
|
35
35
|
try {
|
|
36
36
|
obj_dest[v] = obj_source[v];
|
|
37
37
|
}
|
|
38
38
|
catch (e) {
|
|
39
|
-
|
|
39
|
+
if (!_ignoreError) {
|
|
40
|
+
Logger_1.logger.debug(`An error ocurred: ${e}.`);
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
else if (typeof obj_source[v] === "function") {
|
package/build/Logger.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.logger = exports.Logger = void 0;
|
|
4
|
+
const Export_1 = require("./Export");
|
|
4
5
|
const platform_1 = require("./platform");
|
|
5
6
|
class Logger {
|
|
6
7
|
debugEnabled = true;
|
|
@@ -31,3 +32,4 @@ class Logger {
|
|
|
31
32
|
}
|
|
32
33
|
exports.Logger = Logger;
|
|
33
34
|
exports.logger = new Logger();
|
|
35
|
+
(0, Export_1.Export)(exports.logger);
|
package/build/MainProcess.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const top_1 = require("./top");
|
|
6
7
|
const asyncLoad_1 = require("./asyncLoad");
|
|
7
8
|
const captureFalseTouch_1 = require("./captureFalseTouch");
|
|
8
9
|
const Cast_1 = require("./Cast");
|
|
@@ -29,7 +30,6 @@ const PrimaryCollections_1 = require("./PrimaryCollections");
|
|
|
29
30
|
const Ready_1 = require("./Ready");
|
|
30
31
|
const serviceLoader_1 = require("./serviceLoader");
|
|
31
32
|
const Tag_1 = require("./Tag");
|
|
32
|
-
const top_1 = require("./top");
|
|
33
33
|
const Processor_1 = require("./Processor");
|
|
34
34
|
const is_a_1 = require("./is_a");
|
|
35
35
|
const getType_1 = require("./getType");
|
|
@@ -41,6 +41,7 @@ const waitUntil_1 = require("./waitUntil");
|
|
|
41
41
|
const subelements_1 = require("./subelements");
|
|
42
42
|
const globalSettings_1 = require("./globalSettings");
|
|
43
43
|
const loadSDK_1 = __importDefault(require("./loadSDK"));
|
|
44
|
+
const range_1 = require("./range");
|
|
44
45
|
(function __qcobjects__(_top) {
|
|
45
46
|
if (typeof Object.defineProperty !== "undefined" && typeof _top !== "undefined") {
|
|
46
47
|
try {
|
|
@@ -60,8 +61,6 @@ const loadSDK_1 = __importDefault(require("./loadSDK"));
|
|
|
60
61
|
}
|
|
61
62
|
if (typeof _top.__qcobjects__.loaded === "undefined") {
|
|
62
63
|
_top.__qcobjects__.loaded = true;
|
|
63
|
-
const global = _top;
|
|
64
|
-
_top.global = global;
|
|
65
64
|
if (platform_1.isBrowser) {
|
|
66
65
|
Element.prototype.subelements = subelements_1.subelements;
|
|
67
66
|
Document.prototype.subelements = subelements_1.subelements;
|
|
@@ -72,7 +71,6 @@ const loadSDK_1 = __importDefault(require("./loadSDK"));
|
|
|
72
71
|
}
|
|
73
72
|
Logger_1.logger.debugEnabled = false;
|
|
74
73
|
Logger_1.logger.infoEnabled = true;
|
|
75
|
-
_top.logger = Logger_1.logger;
|
|
76
74
|
/**
|
|
77
75
|
* Basic Type of all elements
|
|
78
76
|
*/
|
|
@@ -350,7 +348,7 @@ const loadSDK_1 = __importDefault(require("./loadSDK"));
|
|
|
350
348
|
(introspection_1._protected_code_)(Array.prototype.matrix3d);
|
|
351
349
|
String.prototype.list = function () {
|
|
352
350
|
const __instance = this;
|
|
353
|
-
return
|
|
351
|
+
return (0, range_1.range)(0, __instance.length - 1).map(function (i) {
|
|
354
352
|
return __instance[i];
|
|
355
353
|
});
|
|
356
354
|
};
|
|
@@ -384,7 +382,6 @@ const loadSDK_1 = __importDefault(require("./loadSDK"));
|
|
|
384
382
|
(0, Export_1.Export)(platform_1.isBrowser);
|
|
385
383
|
(0, Export_1.Export)(introspection_1._methods_);
|
|
386
384
|
(0, Export_1.Export)(globalSettings_1.GlobalSettings);
|
|
387
|
-
(0, top_1.resetTop)();
|
|
388
385
|
(function (_top) {
|
|
389
386
|
Object.defineProperty(_top, "PackagesNameList", {
|
|
390
387
|
// eslint-disable-next-line no-unused-vars
|
package/build/globalSettings.js
CHANGED
|
@@ -21,6 +21,13 @@ class GlobalSettings extends InheritClass_1.InheritClass {
|
|
|
21
21
|
}
|
|
22
22
|
return GlobalSettings._instance;
|
|
23
23
|
}
|
|
24
|
+
_logger = new Logger_1.Logger();
|
|
25
|
+
get logger() {
|
|
26
|
+
return this._logger;
|
|
27
|
+
}
|
|
28
|
+
set logger(value) {
|
|
29
|
+
this._logger = value;
|
|
30
|
+
}
|
|
24
31
|
set(name, value) {
|
|
25
32
|
this._GLOBAL[name] = value;
|
|
26
33
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -20,72 +20,6 @@ declare module "platform" {
|
|
|
20
20
|
export const _require_: (name: string) => any;
|
|
21
21
|
export const is_phonegap: boolean;
|
|
22
22
|
}
|
|
23
|
-
declare module "Logger" {
|
|
24
|
-
export class Logger {
|
|
25
|
-
debugEnabled: boolean;
|
|
26
|
-
infoEnabled: boolean;
|
|
27
|
-
warnEnabled: boolean;
|
|
28
|
-
debug(message: string): void;
|
|
29
|
-
info(message: string): void;
|
|
30
|
-
warn(message: string): void;
|
|
31
|
-
}
|
|
32
|
-
export const logger: Logger;
|
|
33
|
-
}
|
|
34
|
-
declare module "New" {
|
|
35
|
-
/**
|
|
36
|
-
* Creates an object from a Class definition
|
|
37
|
-
*
|
|
38
|
-
* @param {QC_Object} o
|
|
39
|
-
* @param {Object} args
|
|
40
|
-
*/
|
|
41
|
-
export const New: (__class__: any, args?: {}) => any;
|
|
42
|
-
}
|
|
43
|
-
declare module "mathFunctions" {
|
|
44
|
-
export const __to_number: (value: any) => number;
|
|
45
|
-
}
|
|
46
|
-
declare module "ArrayCollection" {
|
|
47
|
-
import { IArrayCollection, IArrayList } from "types";
|
|
48
|
-
export class ArrayList extends Array implements IArrayList {
|
|
49
|
-
prototype: any;
|
|
50
|
-
unique(): any[];
|
|
51
|
-
table(): void;
|
|
52
|
-
sum(): number;
|
|
53
|
-
avg(): number;
|
|
54
|
-
min(): number;
|
|
55
|
-
max(): number;
|
|
56
|
-
sortBy(propName: string, sortAsc?: boolean): any[];
|
|
57
|
-
matrix(length: number, fillValue?: number): any[];
|
|
58
|
-
matrix2d(length: number, fillValue?: number): any[][];
|
|
59
|
-
matrix3d(length: number, fillValue?: number): any[][][];
|
|
60
|
-
}
|
|
61
|
-
export class ArrayCollection implements IArrayCollection {
|
|
62
|
-
source: ArrayList;
|
|
63
|
-
changed(prop: string, value: any): void;
|
|
64
|
-
push(value: any): void;
|
|
65
|
-
pop(): void;
|
|
66
|
-
_new_(source: ArrayList): void;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
declare module "basePath" {
|
|
70
|
-
export var _basePath_: string;
|
|
71
|
-
export const setBasePath: (value: string) => void;
|
|
72
|
-
}
|
|
73
|
-
declare module "LegacyCopy" {
|
|
74
|
-
export const _LegacyCopy: (obj: any, _ignore?: string[]) => any;
|
|
75
|
-
}
|
|
76
|
-
declare module "DataStringify" {
|
|
77
|
-
export const _DataStringify: (data: any) => string;
|
|
78
|
-
}
|
|
79
|
-
declare module "domain" {
|
|
80
|
-
export const _domain_: string;
|
|
81
|
-
}
|
|
82
|
-
declare module "IncrementInstanceID" {
|
|
83
|
-
/**
|
|
84
|
-
* Primary instance ID of all objects
|
|
85
|
-
*/
|
|
86
|
-
export var __instanceID: number;
|
|
87
|
-
export const IncrementInstanceID: () => void;
|
|
88
|
-
}
|
|
89
23
|
declare module "Cast" {
|
|
90
24
|
/**
|
|
91
25
|
* Casts an object to another object class type
|
|
@@ -100,7 +34,7 @@ declare module "Cast" {
|
|
|
100
34
|
* @param {Object} obj_source
|
|
101
35
|
* @param {Object} obj_dest
|
|
102
36
|
*/
|
|
103
|
-
export const _CastProps: (obj_source: any, obj_dest: any) => any;
|
|
37
|
+
export const _CastProps: (obj_source: any, obj_dest: any, _ignoreError?: boolean) => any;
|
|
104
38
|
}
|
|
105
39
|
declare module "DOMCreateElement" {
|
|
106
40
|
import { IQCObjectsElement } from "types";
|
|
@@ -122,10 +56,57 @@ declare module "getType" {
|
|
|
122
56
|
*/
|
|
123
57
|
export const __getType__: (o_c: any) => any;
|
|
124
58
|
}
|
|
59
|
+
declare module "IncrementInstanceID" {
|
|
60
|
+
/**
|
|
61
|
+
* Primary instance ID of all objects
|
|
62
|
+
*/
|
|
63
|
+
export var __instanceID: number;
|
|
64
|
+
export const IncrementInstanceID: () => void;
|
|
65
|
+
}
|
|
125
66
|
declare module "introspection" {
|
|
126
67
|
export const _protected_code_: (_: any) => void;
|
|
127
68
|
export const _methods_: <T>(_: any) => T[];
|
|
128
69
|
}
|
|
70
|
+
declare module "RegisterClass" {
|
|
71
|
+
export const __register_class__: (_class_: any, __namespace?: string) => any;
|
|
72
|
+
export const RegisterClass: (_class_: any, __namespace?: string) => any;
|
|
73
|
+
}
|
|
74
|
+
declare module "Package" {
|
|
75
|
+
/**
|
|
76
|
+
* Defines a package for Class classification
|
|
77
|
+
*
|
|
78
|
+
* @param {Object} namespace
|
|
79
|
+
* @param {Object} classes
|
|
80
|
+
*/
|
|
81
|
+
export const Package: (namespace: string, classes?: any[]) => any[] | undefined;
|
|
82
|
+
}
|
|
83
|
+
declare module "InheritClass" {
|
|
84
|
+
import { type IInheritClass, type TBody } from "types";
|
|
85
|
+
export class InheritClass implements IInheritClass {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
__definition: any;
|
|
88
|
+
private _body;
|
|
89
|
+
get body(): TBody;
|
|
90
|
+
set body(value: TBody);
|
|
91
|
+
childs: any;
|
|
92
|
+
__instanceID: number;
|
|
93
|
+
constructor(_o_?: any);
|
|
94
|
+
static get __classType(): any;
|
|
95
|
+
get __classType(): string;
|
|
96
|
+
static hierarchy(__class__: any): any[];
|
|
97
|
+
__namespace?: string | undefined;
|
|
98
|
+
__new__(_o_: any): void;
|
|
99
|
+
_new_(_o_?: any): void;
|
|
100
|
+
static getParentClass(): any;
|
|
101
|
+
getParentClass(): any;
|
|
102
|
+
static getClass(): any;
|
|
103
|
+
getClass(): any;
|
|
104
|
+
css(_css: any): any;
|
|
105
|
+
hierarchy(): any;
|
|
106
|
+
append(_child?: any): void;
|
|
107
|
+
attachIn(tag: any): void;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
129
110
|
declare module "isQCObjects" {
|
|
130
111
|
export const isQCObjects_Object: (_: any) => boolean;
|
|
131
112
|
export const isQCObjects_Class: (_: any) => boolean;
|
|
@@ -149,6 +130,9 @@ declare module "is_forbidden_name" {
|
|
|
149
130
|
*/
|
|
150
131
|
export const __is__forbidden_name__: (name: string) => boolean;
|
|
151
132
|
}
|
|
133
|
+
declare module "LegacyCopy" {
|
|
134
|
+
export const _LegacyCopy: (obj: any, _ignore?: string[]) => any;
|
|
135
|
+
}
|
|
152
136
|
declare module "Class" {
|
|
153
137
|
import { TClass } from "types";
|
|
154
138
|
/**
|
|
@@ -188,6 +172,25 @@ declare module "Base64" {
|
|
|
188
172
|
_utf8_decode(e: string): string;
|
|
189
173
|
};
|
|
190
174
|
}
|
|
175
|
+
declare module "basePath" {
|
|
176
|
+
export var _basePath_: string;
|
|
177
|
+
export const setBasePath: (value: string) => void;
|
|
178
|
+
}
|
|
179
|
+
declare module "DataStringify" {
|
|
180
|
+
export const _DataStringify: (data: any) => string;
|
|
181
|
+
}
|
|
182
|
+
declare module "domain" {
|
|
183
|
+
export const _domain_: string;
|
|
184
|
+
}
|
|
185
|
+
declare module "New" {
|
|
186
|
+
/**
|
|
187
|
+
* Creates an object from a Class definition
|
|
188
|
+
*
|
|
189
|
+
* @param {QC_Object} o
|
|
190
|
+
* @param {Object} args
|
|
191
|
+
*/
|
|
192
|
+
export const New: (__class__: any, args?: {}) => any;
|
|
193
|
+
}
|
|
191
194
|
declare module "secretKey" {
|
|
192
195
|
export const _secretKey: string;
|
|
193
196
|
}
|
|
@@ -280,9 +283,6 @@ declare module "routings" {
|
|
|
280
283
|
export const __valid_routings__: (routings: TComponentRouting[], routingPath: string) => TComponentRouting[];
|
|
281
284
|
export const __valid_routing_way__: (validRoutingWays: string[], routingWay: string) => boolean;
|
|
282
285
|
}
|
|
283
|
-
declare module "Export" {
|
|
284
|
-
export const Export: (f: any) => void;
|
|
285
|
-
}
|
|
286
286
|
declare module "asyncLoad" {
|
|
287
287
|
import { TAsyncLoadCallback } from "types";
|
|
288
288
|
export const _asyncLoad: never[];
|
|
@@ -517,12 +517,16 @@ declare module "Service" {
|
|
|
517
517
|
declare module "globalSettings" {
|
|
518
518
|
import { IGlobalSettings } from "types";
|
|
519
519
|
import { InheritClass } from "InheritClass";
|
|
520
|
+
import { Logger } from "Logger";
|
|
520
521
|
export class GlobalSettings extends InheritClass implements IGlobalSettings {
|
|
521
522
|
static __start__(): Promise<any>;
|
|
522
523
|
[key: string]: any;
|
|
523
524
|
_GLOBAL: any;
|
|
524
525
|
private static _instance;
|
|
525
526
|
static get instance(): GlobalSettings;
|
|
527
|
+
protected _logger: Logger;
|
|
528
|
+
get logger(): Logger;
|
|
529
|
+
set logger(value: Logger);
|
|
526
530
|
set(name: string, value: any): void;
|
|
527
531
|
get(name: string, _default?: any): any;
|
|
528
532
|
__start__(): Promise<any>;
|
|
@@ -626,44 +630,44 @@ declare module "top" {
|
|
|
626
630
|
declare module "make_global" {
|
|
627
631
|
export const __make_global__: (f: any) => void;
|
|
628
632
|
}
|
|
629
|
-
declare module "
|
|
630
|
-
export const
|
|
631
|
-
export const RegisterClass: (_class_: any, __namespace?: string) => any;
|
|
633
|
+
declare module "Export" {
|
|
634
|
+
export const Export: (f: any) => void;
|
|
632
635
|
}
|
|
633
|
-
declare module "
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
636
|
+
declare module "Logger" {
|
|
637
|
+
export class Logger {
|
|
638
|
+
debugEnabled: boolean;
|
|
639
|
+
infoEnabled: boolean;
|
|
640
|
+
warnEnabled: boolean;
|
|
641
|
+
debug(message: string): void;
|
|
642
|
+
info(message: string): void;
|
|
643
|
+
warn(message: string): void;
|
|
644
|
+
}
|
|
645
|
+
export const logger: Logger;
|
|
641
646
|
}
|
|
642
|
-
declare module "
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
attachIn(tag: any): void;
|
|
647
|
+
declare module "mathFunctions" {
|
|
648
|
+
export const __to_number: (value: any) => number;
|
|
649
|
+
}
|
|
650
|
+
declare module "ArrayCollection" {
|
|
651
|
+
import { IArrayCollection, IArrayList } from "types";
|
|
652
|
+
export class ArrayList extends Array implements IArrayList {
|
|
653
|
+
prototype: any;
|
|
654
|
+
unique(): any[];
|
|
655
|
+
table(): void;
|
|
656
|
+
sum(): number;
|
|
657
|
+
avg(): number;
|
|
658
|
+
min(): number;
|
|
659
|
+
max(): number;
|
|
660
|
+
sortBy(propName: string, sortAsc?: boolean): any[];
|
|
661
|
+
matrix(length: number, fillValue?: number): any[];
|
|
662
|
+
matrix2d(length: number, fillValue?: number): any[][];
|
|
663
|
+
matrix3d(length: number, fillValue?: number): any[][][];
|
|
664
|
+
}
|
|
665
|
+
export class ArrayCollection implements IArrayCollection {
|
|
666
|
+
source: ArrayList;
|
|
667
|
+
changed(prop: string, value: any): void;
|
|
668
|
+
push(value: any): void;
|
|
669
|
+
pop(): void;
|
|
670
|
+
_new_(source: ArrayList): void;
|
|
667
671
|
}
|
|
668
672
|
}
|
|
669
673
|
declare module "BackendMicroservice" {
|
package/build/top.js
CHANGED
|
@@ -13,8 +13,8 @@ exports._top = ((typeof module !== "undefined" && typeof module.exports !== "und
|
|
|
13
13
|
exports._top.lastCache = undefined;
|
|
14
14
|
exports.componentsStack = [];
|
|
15
15
|
const resetTop = () => {
|
|
16
|
-
const globalSettings =
|
|
17
|
-
exports._top = (0, Cast_1._CastProps)(globalSettings, exports._top);
|
|
16
|
+
const globalSettings = globalSettings_1.GlobalSettings.instance;
|
|
17
|
+
exports._top = (0, Cast_1._CastProps)(globalSettings, exports._top, true);
|
|
18
18
|
};
|
|
19
19
|
exports.resetTop = resetTop;
|
|
20
20
|
const buildComponentsStack = () => {
|
|
@@ -27,10 +27,11 @@ const setConfigService = (_configService) => {
|
|
|
27
27
|
};
|
|
28
28
|
exports.setConfigService = setConfigService;
|
|
29
29
|
const set = (name, value) => {
|
|
30
|
-
exports._top
|
|
30
|
+
exports._top[name] = value;
|
|
31
31
|
};
|
|
32
32
|
exports.set = set;
|
|
33
33
|
const get = (name, _defaultValue) => {
|
|
34
|
-
return exports._top
|
|
34
|
+
return exports._top[name] || _defaultValue;
|
|
35
35
|
};
|
|
36
36
|
exports.get = get;
|
|
37
|
+
(0, exports.resetTop)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.106-beta",
|
|
4
4
|
"description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
|
|
5
5
|
"main": "public/cjs/QCObjects.cjs",
|
|
6
6
|
"module": "public/esm/QCObjects.mjs",
|
|
@@ -114,11 +114,53 @@ var global = (() => {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
+
// src/make_global.ts
|
|
118
|
+
var __make_global__;
|
|
119
|
+
var init_make_global = __esm({
|
|
120
|
+
"src/make_global.ts"() {
|
|
121
|
+
"use strict";
|
|
122
|
+
init_platform();
|
|
123
|
+
init_top();
|
|
124
|
+
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
125
|
+
if (typeof f !== "undefined") {
|
|
126
|
+
if (isBrowser) {
|
|
127
|
+
try {
|
|
128
|
+
_top[f.name] = f;
|
|
129
|
+
window[f.name] = f;
|
|
130
|
+
} catch (e) {
|
|
131
|
+
throw Error(`An error ocurred: ${e}`);
|
|
132
|
+
}
|
|
133
|
+
} else if (typeof global !== "undefined") {
|
|
134
|
+
if (!Object.hasOwn(global, f.name)) {
|
|
135
|
+
global[f.name] = f;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}, "__make_global__");
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// src/Export.ts
|
|
144
|
+
var Export;
|
|
145
|
+
var init_Export = __esm({
|
|
146
|
+
"src/Export.ts"() {
|
|
147
|
+
"use strict";
|
|
148
|
+
init_make_global();
|
|
149
|
+
Export = /* @__PURE__ */ __name(function(f) {
|
|
150
|
+
return __make_global__(f);
|
|
151
|
+
}, "Export");
|
|
152
|
+
Export.prototype.toString = function() {
|
|
153
|
+
return "Export(function or symbol) { [QCObjects native code] }";
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
117
158
|
// src/Logger.ts
|
|
118
159
|
var Logger, logger;
|
|
119
160
|
var init_Logger = __esm({
|
|
120
161
|
"src/Logger.ts"() {
|
|
121
162
|
"use strict";
|
|
163
|
+
init_Export();
|
|
122
164
|
init_platform();
|
|
123
165
|
Logger = class {
|
|
124
166
|
static {
|
|
@@ -150,6 +192,7 @@ var global = (() => {
|
|
|
150
192
|
}
|
|
151
193
|
};
|
|
152
194
|
logger = new Logger();
|
|
195
|
+
Export(logger);
|
|
153
196
|
}
|
|
154
197
|
});
|
|
155
198
|
|
|
@@ -172,13 +215,15 @@ var global = (() => {
|
|
|
172
215
|
}
|
|
173
216
|
return obj_dest;
|
|
174
217
|
}, "_Cast");
|
|
175
|
-
_CastProps = /* @__PURE__ */ __name(function(obj_source, obj_dest) {
|
|
218
|
+
_CastProps = /* @__PURE__ */ __name(function(obj_source, obj_dest, _ignoreError = true) {
|
|
176
219
|
for (const v in obj_source) {
|
|
177
220
|
if (typeof obj_source[v] !== "undefined" && typeof obj_source[v] !== "function") {
|
|
178
221
|
try {
|
|
179
222
|
obj_dest[v] = obj_source[v];
|
|
180
223
|
} catch (e) {
|
|
181
|
-
|
|
224
|
+
if (!_ignoreError) {
|
|
225
|
+
logger.debug(`An error ocurred: ${e}.`);
|
|
226
|
+
}
|
|
182
227
|
}
|
|
183
228
|
} else if (typeof obj_source[v] === "function") {
|
|
184
229
|
try {
|
|
@@ -375,32 +420,6 @@ var global = (() => {
|
|
|
375
420
|
}
|
|
376
421
|
});
|
|
377
422
|
|
|
378
|
-
// src/make_global.ts
|
|
379
|
-
var __make_global__;
|
|
380
|
-
var init_make_global = __esm({
|
|
381
|
-
"src/make_global.ts"() {
|
|
382
|
-
"use strict";
|
|
383
|
-
init_platform();
|
|
384
|
-
init_top();
|
|
385
|
-
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
386
|
-
if (typeof f !== "undefined") {
|
|
387
|
-
if (isBrowser) {
|
|
388
|
-
try {
|
|
389
|
-
_top[f.name] = f;
|
|
390
|
-
window[f.name] = f;
|
|
391
|
-
} catch (e) {
|
|
392
|
-
throw Error(`An error ocurred: ${e}`);
|
|
393
|
-
}
|
|
394
|
-
} else if (typeof global !== "undefined") {
|
|
395
|
-
if (!Object.hasOwn(global, f.name)) {
|
|
396
|
-
global[f.name] = f;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}, "__make_global__");
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
|
|
404
423
|
// src/RegisterClass.ts
|
|
405
424
|
var __register_class__, RegisterClass;
|
|
406
425
|
var init_RegisterClass = __esm({
|
|
@@ -1584,21 +1603,6 @@ var global = (() => {
|
|
|
1584
1603
|
}
|
|
1585
1604
|
});
|
|
1586
1605
|
|
|
1587
|
-
// src/Export.ts
|
|
1588
|
-
var Export;
|
|
1589
|
-
var init_Export = __esm({
|
|
1590
|
-
"src/Export.ts"() {
|
|
1591
|
-
"use strict";
|
|
1592
|
-
init_make_global();
|
|
1593
|
-
Export = /* @__PURE__ */ __name(function(f) {
|
|
1594
|
-
return __make_global__(f);
|
|
1595
|
-
}, "Export");
|
|
1596
|
-
Export.prototype.toString = function() {
|
|
1597
|
-
return "Export(function or symbol) { [QCObjects native code] }";
|
|
1598
|
-
};
|
|
1599
|
-
}
|
|
1600
|
-
});
|
|
1601
|
-
|
|
1602
1606
|
// src/asyncLoad.ts
|
|
1603
1607
|
function asyncLoad(callback, args) {
|
|
1604
1608
|
class AsyncCallback {
|
|
@@ -3616,6 +3620,13 @@ var global = (() => {
|
|
|
3616
3620
|
}
|
|
3617
3621
|
return _GlobalSettings._instance;
|
|
3618
3622
|
}
|
|
3623
|
+
_logger = new Logger();
|
|
3624
|
+
get logger() {
|
|
3625
|
+
return this._logger;
|
|
3626
|
+
}
|
|
3627
|
+
set logger(value) {
|
|
3628
|
+
this._logger = value;
|
|
3629
|
+
}
|
|
3619
3630
|
set(name, value) {
|
|
3620
3631
|
this._GLOBAL[name] = value;
|
|
3621
3632
|
}
|
|
@@ -3715,8 +3726,8 @@ var global = (() => {
|
|
|
3715
3726
|
_top.lastCache = void 0;
|
|
3716
3727
|
componentsStack = [];
|
|
3717
3728
|
resetTop = /* @__PURE__ */ __name(() => {
|
|
3718
|
-
const globalSettings =
|
|
3719
|
-
_top = _CastProps(globalSettings, _top);
|
|
3729
|
+
const globalSettings = GlobalSettings.instance;
|
|
3730
|
+
_top = _CastProps(globalSettings, _top, true);
|
|
3720
3731
|
}, "resetTop");
|
|
3721
3732
|
buildComponentsStack = /* @__PURE__ */ __name(() => {
|
|
3722
3733
|
componentsStack = buildComponents(document);
|
|
@@ -3726,11 +3737,12 @@ var global = (() => {
|
|
|
3726
3737
|
configService = _configService;
|
|
3727
3738
|
}, "setConfigService");
|
|
3728
3739
|
set = /* @__PURE__ */ __name((name, value) => {
|
|
3729
|
-
_top
|
|
3740
|
+
_top[name] = value;
|
|
3730
3741
|
}, "set");
|
|
3731
3742
|
get = /* @__PURE__ */ __name((name, _defaultValue) => {
|
|
3732
|
-
return _top
|
|
3743
|
+
return _top[name] || _defaultValue;
|
|
3733
3744
|
}, "get");
|
|
3745
|
+
resetTop();
|
|
3734
3746
|
}
|
|
3735
3747
|
});
|
|
3736
3748
|
|
|
@@ -4501,6 +4513,7 @@ var global = (() => {
|
|
|
4501
4513
|
var require_MainProcess = __commonJS({
|
|
4502
4514
|
"src/MainProcess.ts"() {
|
|
4503
4515
|
"use strict";
|
|
4516
|
+
init_top();
|
|
4504
4517
|
init_asyncLoad();
|
|
4505
4518
|
init_captureFalseTouch();
|
|
4506
4519
|
init_Cast();
|
|
@@ -4527,7 +4540,6 @@ var global = (() => {
|
|
|
4527
4540
|
init_Ready();
|
|
4528
4541
|
init_serviceLoader();
|
|
4529
4542
|
init_Tag();
|
|
4530
|
-
init_top();
|
|
4531
4543
|
init_Processor();
|
|
4532
4544
|
init_is_a();
|
|
4533
4545
|
init_getType();
|
|
@@ -4539,6 +4551,7 @@ var global = (() => {
|
|
|
4539
4551
|
init_subelements();
|
|
4540
4552
|
init_globalSettings();
|
|
4541
4553
|
init_loadSDK();
|
|
4554
|
+
init_range();
|
|
4542
4555
|
(/* @__PURE__ */ __name(function __qcobjects__(_top2) {
|
|
4543
4556
|
if (typeof Object.defineProperty !== "undefined" && typeof _top2 !== "undefined") {
|
|
4544
4557
|
try {
|
|
@@ -4557,8 +4570,6 @@ var global = (() => {
|
|
|
4557
4570
|
}
|
|
4558
4571
|
if (typeof _top2.__qcobjects__.loaded === "undefined") {
|
|
4559
4572
|
_top2.__qcobjects__.loaded = true;
|
|
4560
|
-
const global2 = _top2;
|
|
4561
|
-
_top2.global = global2;
|
|
4562
4573
|
if (isBrowser) {
|
|
4563
4574
|
Element.prototype.subelements = subelements;
|
|
4564
4575
|
Document.prototype.subelements = subelements;
|
|
@@ -4569,7 +4580,6 @@ var global = (() => {
|
|
|
4569
4580
|
}
|
|
4570
4581
|
logger.debugEnabled = false;
|
|
4571
4582
|
logger.infoEnabled = true;
|
|
4572
|
-
_top2.logger = logger;
|
|
4573
4583
|
if (isBrowser) {
|
|
4574
4584
|
Element.prototype.find = function(tag) {
|
|
4575
4585
|
const _self = this;
|
|
@@ -4636,7 +4646,7 @@ var global = (() => {
|
|
|
4636
4646
|
document.addEventListener("deviceready", _Ready, captureFalseTouch);
|
|
4637
4647
|
}
|
|
4638
4648
|
} else {
|
|
4639
|
-
|
|
4649
|
+
global.onload = _Ready;
|
|
4640
4650
|
}
|
|
4641
4651
|
if (isBrowser) {
|
|
4642
4652
|
window.addEventListener("popstate", function(popStateEvent) {
|
|
@@ -4782,7 +4792,7 @@ var global = (() => {
|
|
|
4782
4792
|
_protected_code_(Array.prototype.matrix3d);
|
|
4783
4793
|
String.prototype.list = function() {
|
|
4784
4794
|
const __instance = this;
|
|
4785
|
-
return
|
|
4795
|
+
return range(0, __instance.length - 1).map(function(i) {
|
|
4786
4796
|
return __instance[i];
|
|
4787
4797
|
});
|
|
4788
4798
|
};
|
|
@@ -4806,7 +4816,6 @@ var global = (() => {
|
|
|
4806
4816
|
Export(isBrowser);
|
|
4807
4817
|
Export(_methods_);
|
|
4808
4818
|
Export(GlobalSettings);
|
|
4809
|
-
resetTop();
|
|
4810
4819
|
(function(_top3) {
|
|
4811
4820
|
Object.defineProperty(_top3, "PackagesNameList", {
|
|
4812
4821
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -4887,7 +4896,7 @@ var global = (() => {
|
|
|
4887
4896
|
Class("GLOBAL", _QC_CLASSES.global);
|
|
4888
4897
|
Export(ClassFactory("GLOBAL"));
|
|
4889
4898
|
}
|
|
4890
|
-
Export(
|
|
4899
|
+
Export(global);
|
|
4891
4900
|
loadSDK_default();
|
|
4892
4901
|
})(_top2);
|
|
4893
4902
|
if (isBrowser) {
|