qcobjects 2.5.142 → 2.6.3
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/.github/workflows/npmpublish.yml +2 -0
- package/CHANGELOG.md +19 -0
- package/LICENSE.txt +21 -56
- package/README.md +6 -1
- package/VERSION +1 -1
- package/build/ArrayCollection.js +1 -1
- package/build/Component.js +2 -2
- package/build/DOMCreateElement.js +1 -0
- package/build/Logger.js +6 -0
- package/build/QCObjects.js +3 -12
- package/build/Tag.js +1 -1
- package/build/basePath.js +10 -7
- package/build/findPackageNodePath.js +3 -5
- package/package.json +4 -4
- package/public/browser/QCObjects.js +43 -33
- package/public/browser/QCObjects.js.map +3 -3
- package/public/cjs/index.cjs +43 -33
- package/public/cjs/index.cjs.map +3 -3
- package/public/esm/index.mjs +40 -30
- package/public/esm/index.mjs.map +3 -3
- package/public/types/index.d.ts +3 -1
- package/public/types/index.d.ts.map +1 -1
- package/qcobjects_01.png +0 -0
- package/src/ArrayCollection.ts +1 -1
- package/src/CONFIG.ts +1 -1
- package/src/Component.ts +6 -6
- package/src/DOMCreateElement.ts +1 -0
- package/src/Import.ts +1 -1
- package/src/Logger.ts +7 -0
- package/src/Processor.ts +2 -2
- package/src/QCObjects.ts +4 -13
- package/src/SourceCSS.ts +2 -2
- package/src/Tag.ts +1 -1
- package/src/Toggle.ts +1 -1
- package/src/WidgetsFactory.ts +7 -3
- package/src/asyncLoad.ts +1 -1
- package/src/basePath.ts +9 -4
- package/src/findPackageNodePath.ts +2 -1
|
@@ -17,6 +17,7 @@ jobs:
|
|
|
17
17
|
with:
|
|
18
18
|
node-version: 22
|
|
19
19
|
- run: npm i --legacy-peer-deps
|
|
20
|
+
- run: npm run build
|
|
20
21
|
- run: npm test
|
|
21
22
|
|
|
22
23
|
publish-npm:
|
|
@@ -36,6 +37,7 @@ jobs:
|
|
|
36
37
|
- name: Upgrade npm for OIDC support (requires >=11.5.1)
|
|
37
38
|
run: npm install -g npm@latest
|
|
38
39
|
- run: npm i --legacy-peer-deps
|
|
40
|
+
- run: npm run build
|
|
39
41
|
- name: Publish to npm
|
|
40
42
|
run: |
|
|
41
43
|
if [[ "${{ github.ref }}" == *-beta ]]; then
|
package/CHANGELOG.md
CHANGED
|
@@ -621,6 +621,25 @@ v2.4.9-beta allow _new_ only to be called once for every object instance
|
|
|
621
621
|
# Changelog
|
|
622
622
|
|
|
623
623
|
This is an automatic Changelog history of versions generated using the command: **qcobjects v-changelog > CHANGELOG.md**
|
|
624
|
+
## v2.6.3
|
|
625
|
+
|
|
626
|
+
- fix: add logger.error + errorEnabled flag (CLI build:esbuild crash handler)
|
|
627
|
+
|
|
628
|
+
## v2.6.2
|
|
629
|
+
|
|
630
|
+
- fix: repository.url + bugs.url QuickCorp -> QCObjects (Sigstore provenance E422 hard-blocks OIDC publishes against stale org)
|
|
631
|
+
- fix: lazify node builtins (basePath, findPackageNodePath) + type-only types re-export (browser-safe dists; 0 eager node:/types top-level imports)
|
|
632
|
+
- fix: eslint-disable for no-unnecessary-type-assertion on load-bearing assertion (repo build was self-breaking)
|
|
633
|
+
|
|
634
|
+
## v2.6.1
|
|
635
|
+
|
|
636
|
+
- Build fixes: WidgetsFactory lib.dom conformance (unblocks npm publish)
|
|
637
|
+
|
|
638
|
+
## v2.6.0
|
|
639
|
+
|
|
640
|
+
- License migration LGPLv3 -> MIT (LICENSE.txt, package.json, source headers)
|
|
641
|
+
- See product-specs 09-license and 15-unified-vision-v3 (Phase 1)
|
|
642
|
+
|
|
624
643
|
|
|
625
644
|
## Version1 -> Version1.1
|
|
626
645
|
|
package/LICENSE.txt
CHANGED
|
@@ -1,56 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
24
|
-
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
|
|
25
|
-
|
|
26
|
-
2. Conveying Modified Versions.
|
|
27
|
-
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
|
|
28
|
-
|
|
29
|
-
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
|
|
30
|
-
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
|
|
31
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
32
|
-
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
|
|
33
|
-
|
|
34
|
-
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
|
|
35
|
-
b) Accompany the object code with a copy of the GNU GPL and this license document.
|
|
36
|
-
4. Combined Works.
|
|
37
|
-
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
|
|
38
|
-
|
|
39
|
-
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
|
|
40
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
|
|
41
|
-
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
|
|
42
|
-
d) Do one of the following:
|
|
43
|
-
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
|
|
44
|
-
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
|
|
45
|
-
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
|
|
46
|
-
5. Combined Libraries.
|
|
47
|
-
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
|
|
48
|
-
|
|
49
|
-
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
|
|
50
|
-
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
|
|
51
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
52
|
-
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
|
53
|
-
|
|
54
|
-
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
|
|
55
|
-
|
|
56
|
-
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Jean Machuca,<correojean@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
> **Official repository.** This is the maintained QCObjects core framework
|
|
2
|
+
> (MIT license). Normative specifications live in
|
|
3
|
+
> [QCObjects/product-specs](https://github.com/QCObjects/product-specs)
|
|
4
|
+
> ([docs](https://qcobjects.github.io/product-specs/)).
|
|
5
|
+
>
|
|
6
|
+
> 
|
|
2
7
|
|
|
3
8
|
[](https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt) [](https://app.fossa.com/projects/git%2Bgithub.com%2FQuickCorp%2FQCObjects?ref=badge_shield) [](https://www.jsdelivr.com/package/npm/qcobjects) [](https://qcobjects.readthedocs.io/?badge=latest) [](https://github.com/QuickCorp/QCObjects/releases/) [](https://github.com/QuickCorp/QCObjects) [](https://badge.fury.io/js/qcobjects)   [](CODE_OF_CONDUCT.md)
|
|
4
9
|
[](https://bestpractices.coreinfrastructure.org/projects/5295)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.3
|
package/build/ArrayCollection.js
CHANGED
|
@@ -107,7 +107,7 @@ class ArrayCollection {
|
|
|
107
107
|
const self = this;
|
|
108
108
|
let _index = 0;
|
|
109
109
|
self.source = (0, New_1.New)((0, ClassFactory_1.ClassFactory)("ArrayList"), source);
|
|
110
|
-
for (const _k
|
|
110
|
+
for (const _k of Object.keys(self.source)) {
|
|
111
111
|
if (!isNaN(_k)) {
|
|
112
112
|
Logger_1.logger.debug("binding " + _k.toString());
|
|
113
113
|
(function (_pname) {
|
package/build/Component.js
CHANGED
|
@@ -859,10 +859,10 @@ class Component extends InheritClass_1.InheritClass {
|
|
|
859
859
|
component.routingNodes = componentBody?.subelements("routing");
|
|
860
860
|
component.routings = [];
|
|
861
861
|
component.routingNodes.map((routingNode) => {
|
|
862
|
-
const attributeNames = routingNode.getAttributeNames();
|
|
862
|
+
const attributeNames = (routingNode).getAttributeNames();
|
|
863
863
|
const routing = {};
|
|
864
864
|
attributeNames.map((attributeName, a) => {
|
|
865
|
-
routing[attributeNames[a]] = routingNode.getAttribute(attributeNames[a]);
|
|
865
|
+
routing[attributeNames[a]] = (routingNode).getAttribute(attributeNames[a]);
|
|
866
866
|
return attributeName;
|
|
867
867
|
});
|
|
868
868
|
component.routings.push(routing);
|
|
@@ -5,6 +5,7 @@ const platform_1 = require("./platform");
|
|
|
5
5
|
const _DOMCreateElement = function (elementName, props, children) {
|
|
6
6
|
let _ret_;
|
|
7
7
|
if (platform_1.isBrowser) {
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion -- load-bearing: tsc rejects the unasserted HTMLElement at the IQCObjectsElement return below (TS2740); the rule only sees the evolving-let receiver
|
|
8
9
|
_ret_ = (0, exports._DOMCreateComplexElement)(elementName, props, children);
|
|
9
10
|
}
|
|
10
11
|
else {
|
package/build/Logger.js
CHANGED
|
@@ -7,6 +7,7 @@ class Logger {
|
|
|
7
7
|
debugEnabled = true;
|
|
8
8
|
infoEnabled = true;
|
|
9
9
|
warnEnabled = true;
|
|
10
|
+
errorEnabled = true;
|
|
10
11
|
debug(message) {
|
|
11
12
|
if (this.debugEnabled) {
|
|
12
13
|
console.log("\x1b[35m%s\x1b[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -29,6 +30,11 @@ class Logger {
|
|
|
29
30
|
console.warn("\x1b[31m%s\x1b[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
error(message) {
|
|
34
|
+
if (this.errorEnabled) {
|
|
35
|
+
console.error("\x1b[31m%s\x1b[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
39
|
exports.Logger = Logger;
|
|
34
40
|
exports.logger = new Logger();
|
package/build/QCObjects.js
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects
|
|
2
|
+
* QCObjects Framework
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/QCObjects/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
package/build/Tag.js
CHANGED
|
@@ -31,7 +31,7 @@ class TagElements extends ArrayCollection_1.ArrayList {
|
|
|
31
31
|
findElements(elementName) {
|
|
32
32
|
const _o = (0, New_1.New)((0, ClassFactory_1.ClassFactory)("TagElements"));
|
|
33
33
|
if (platform_1.isBrowser) {
|
|
34
|
-
for (const _k
|
|
34
|
+
for (const _k of Object.keys(this)) {
|
|
35
35
|
if (typeof _k === "number" && typeof this[_k] !== "function" && Object.hasOwn(this[_k], "subelements")) {
|
|
36
36
|
_o.push(this[_k].subelements(elementName));
|
|
37
37
|
}
|
package/build/basePath.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.setBasePath = exports._basePath_ = void 0;
|
|
7
4
|
const platform_1 = require("./platform");
|
|
8
|
-
const node_process_1 = __importDefault(require("node:process"));
|
|
9
5
|
exports._basePath_ = (function () {
|
|
10
6
|
let _basePath = "";
|
|
11
7
|
if (platform_1.isBrowser) {
|
|
@@ -14,10 +10,17 @@ exports._basePath_ = (function () {
|
|
|
14
10
|
_basePath = baseURI.join("/") + "/";
|
|
15
11
|
}
|
|
16
12
|
else {
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
try {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
15
|
+
const nodeProcess = require("node:process");
|
|
16
|
+
if (typeof nodeProcess !== "undefined") {
|
|
17
|
+
_basePath = `${(nodeProcess).cwd()}/`;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
_basePath = "";
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
|
-
|
|
23
|
+
catch {
|
|
21
24
|
_basePath = "";
|
|
22
25
|
}
|
|
23
26
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.findPackageNodePath = void 0;
|
|
7
4
|
const CONFIG_1 = require("./CONFIG");
|
|
8
5
|
const Export_1 = require("./Export");
|
|
9
6
|
const Logger_1 = require("./Logger");
|
|
10
7
|
const platform_1 = require("./platform");
|
|
11
|
-
const node_fs_1 = __importDefault(require("node:fs"));
|
|
12
8
|
const findPackageNodePath = function (packagename) {
|
|
13
9
|
let sdkPath = null;
|
|
14
10
|
if (!platform_1.isBrowser) {
|
|
15
11
|
try {
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
+
const fs = require("node:fs");
|
|
16
14
|
let sdkPaths = [
|
|
17
15
|
`${CONFIG_1.CONFIG.get("projectPath")}${CONFIG_1.CONFIG.get("relativeImportPath")}`,
|
|
18
16
|
`${CONFIG_1.CONFIG.get("basePath")}${CONFIG_1.CONFIG.get("relativeImportPath")}`,
|
|
@@ -28,7 +26,7 @@ const findPackageNodePath = function (packagename) {
|
|
|
28
26
|
""
|
|
29
27
|
].concat(module.paths);
|
|
30
28
|
sdkPaths = sdkPaths.filter(p => {
|
|
31
|
-
return (
|
|
29
|
+
return (fs).existsSync(p + "/" + packagename);
|
|
32
30
|
});
|
|
33
31
|
if (sdkPaths.length > 0) {
|
|
34
32
|
sdkPath = sdkPaths[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.3",
|
|
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/index.cjs",
|
|
6
6
|
"module": "public/esm/index.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"import": "./public/esm/*.mjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
"license": "
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "npm run build:ts-types && npm run build:ts && npm run build:browser",
|
|
32
32
|
"postbuild": "node ./postbuild.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|
|
58
|
-
"url": "
|
|
58
|
+
"url": "https://github.com/QCObjects/QCObjects"
|
|
59
59
|
},
|
|
60
60
|
"keywords": [
|
|
61
61
|
"qcobjects",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
],
|
|
113
113
|
"author": "Jean Machuca <correojean@gmail.com>",
|
|
114
114
|
"bugs": {
|
|
115
|
-
"url": "https://github.com/
|
|
115
|
+
"url": "https://github.com/QCObjects/QCObjects/issues"
|
|
116
116
|
},
|
|
117
117
|
"homepage": "https://qcobjects.com",
|
|
118
118
|
"devDependencies": {
|
|
@@ -286,9 +286,9 @@ var global = (() => {
|
|
|
286
286
|
return r;
|
|
287
287
|
})(name);
|
|
288
288
|
}, "_require_");
|
|
289
|
-
is_phonegap = /* @__PURE__ */ function() {
|
|
289
|
+
is_phonegap = /* @__PURE__ */ (function() {
|
|
290
290
|
return typeof cordova !== "undefined";
|
|
291
|
-
}();
|
|
291
|
+
})();
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
294
|
|
|
@@ -306,6 +306,7 @@ var global = (() => {
|
|
|
306
306
|
debugEnabled = true;
|
|
307
307
|
infoEnabled = true;
|
|
308
308
|
warnEnabled = true;
|
|
309
|
+
errorEnabled = true;
|
|
309
310
|
debug(message) {
|
|
310
311
|
if (this.debugEnabled) {
|
|
311
312
|
console.log("\x1B[35m%s\x1B[0m", `[DEBUG][${performance.now().toLocaleString()}] ${message}`);
|
|
@@ -327,6 +328,11 @@ var global = (() => {
|
|
|
327
328
|
console.warn("\x1B[31m%s\x1B[0m", `[WARN][${performance.now().toLocaleString()}] ${message}`);
|
|
328
329
|
}
|
|
329
330
|
}
|
|
331
|
+
error(message) {
|
|
332
|
+
if (this.errorEnabled) {
|
|
333
|
+
console.error("\x1B[31m%s\x1B[0m", `[ERROR][${performance.now().toLocaleString()}] ${message}`);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
330
336
|
};
|
|
331
337
|
logger = new Logger();
|
|
332
338
|
Export(logger);
|
|
@@ -408,7 +414,7 @@ var global = (() => {
|
|
|
408
414
|
});
|
|
409
415
|
}
|
|
410
416
|
if (Array.isArray(children)) {
|
|
411
|
-
children.filter((child) => child instanceof Node).forEach((child) => {
|
|
417
|
+
children.filter(((child) => child instanceof Node)).forEach((child) => {
|
|
412
418
|
element.appendChild(child);
|
|
413
419
|
});
|
|
414
420
|
} else if (children instanceof Node) {
|
|
@@ -439,9 +445,9 @@ var global = (() => {
|
|
|
439
445
|
"src/introspection.ts"() {
|
|
440
446
|
"use strict";
|
|
441
447
|
_protected_code_ = /* @__PURE__ */ __name((_) => {
|
|
442
|
-
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : function() {
|
|
448
|
+
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : (function() {
|
|
443
449
|
return "";
|
|
444
|
-
};
|
|
450
|
+
});
|
|
445
451
|
if (typeof _.prototype !== "undefined") {
|
|
446
452
|
_.prototype.toString = function() {
|
|
447
453
|
const _protected_symbols = [
|
|
@@ -1229,27 +1235,31 @@ var global = (() => {
|
|
|
1229
1235
|
});
|
|
1230
1236
|
|
|
1231
1237
|
// src/basePath.ts
|
|
1232
|
-
var
|
|
1238
|
+
var _basePath_, setBasePath;
|
|
1233
1239
|
var init_basePath = __esm({
|
|
1234
1240
|
"src/basePath.ts"() {
|
|
1235
1241
|
"use strict";
|
|
1236
1242
|
init_platform();
|
|
1237
|
-
|
|
1238
|
-
_basePath_ = function() {
|
|
1243
|
+
_basePath_ = (function() {
|
|
1239
1244
|
let _basePath = "";
|
|
1240
1245
|
if (isBrowser) {
|
|
1241
1246
|
const baseURI = document.baseURI.split("?")[0].split("/");
|
|
1242
1247
|
baseURI.pop();
|
|
1243
1248
|
_basePath = baseURI.join("/") + "/";
|
|
1244
1249
|
} else {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1250
|
+
try {
|
|
1251
|
+
const nodeProcess = __require("node:process");
|
|
1252
|
+
if (typeof nodeProcess !== "undefined") {
|
|
1253
|
+
_basePath = `${nodeProcess.cwd()}/`;
|
|
1254
|
+
} else {
|
|
1255
|
+
_basePath = "";
|
|
1256
|
+
}
|
|
1257
|
+
} catch {
|
|
1248
1258
|
_basePath = "";
|
|
1249
1259
|
}
|
|
1250
1260
|
}
|
|
1251
1261
|
return _basePath;
|
|
1252
|
-
}();
|
|
1262
|
+
})();
|
|
1253
1263
|
setBasePath = /* @__PURE__ */ __name((value) => {
|
|
1254
1264
|
_basePath_ = value;
|
|
1255
1265
|
}, "setBasePath");
|
|
@@ -1486,14 +1496,14 @@ var global = (() => {
|
|
|
1486
1496
|
}
|
|
1487
1497
|
let _conf;
|
|
1488
1498
|
try {
|
|
1489
|
-
_conf = function(config) {
|
|
1499
|
+
_conf = (function(config) {
|
|
1490
1500
|
if (config._CONFIG_ENC === null) {
|
|
1491
1501
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1492
1502
|
}
|
|
1493
1503
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1494
1504
|
const _protectedConf = config._CONFIG?.valueOf();
|
|
1495
1505
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1496
|
-
}(ConfigSettings.instance);
|
|
1506
|
+
})(ConfigSettings.instance);
|
|
1497
1507
|
} catch (e) {
|
|
1498
1508
|
_conf = {};
|
|
1499
1509
|
console.error(e);
|
|
@@ -1506,14 +1516,14 @@ var global = (() => {
|
|
|
1506
1516
|
get(name, _default) {
|
|
1507
1517
|
let _value;
|
|
1508
1518
|
try {
|
|
1509
|
-
const _conf = function(config) {
|
|
1519
|
+
const _conf = (function(config) {
|
|
1510
1520
|
if (config._CONFIG_ENC === null) {
|
|
1511
1521
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1512
1522
|
}
|
|
1513
1523
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1514
1524
|
const _protectedConf = config._CONFIG.valueOf();
|
|
1515
1525
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1516
|
-
}(ConfigSettings.instance);
|
|
1526
|
+
})(ConfigSettings.instance);
|
|
1517
1527
|
if (typeof _conf[name] !== "undefined") {
|
|
1518
1528
|
_value = _conf[name];
|
|
1519
1529
|
}
|
|
@@ -4055,7 +4065,7 @@ var global = (() => {
|
|
|
4055
4065
|
});
|
|
4056
4066
|
|
|
4057
4067
|
// src/findPackageNodePath.ts
|
|
4058
|
-
var
|
|
4068
|
+
var findPackageNodePath;
|
|
4059
4069
|
var init_findPackageNodePath = __esm({
|
|
4060
4070
|
"src/findPackageNodePath.ts"() {
|
|
4061
4071
|
"use strict";
|
|
@@ -4063,11 +4073,11 @@ var global = (() => {
|
|
|
4063
4073
|
init_Export();
|
|
4064
4074
|
init_Logger();
|
|
4065
4075
|
init_platform();
|
|
4066
|
-
import_node_fs = __toESM(__require("node:fs"));
|
|
4067
4076
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4068
4077
|
let sdkPath = null;
|
|
4069
4078
|
if (!isBrowser) {
|
|
4070
4079
|
try {
|
|
4080
|
+
const fs = __require("node:fs");
|
|
4071
4081
|
let sdkPaths = [
|
|
4072
4082
|
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
|
|
4073
4083
|
`${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
|
|
@@ -4083,7 +4093,7 @@ var global = (() => {
|
|
|
4083
4093
|
""
|
|
4084
4094
|
].concat(module.paths);
|
|
4085
4095
|
sdkPaths = sdkPaths.filter((p) => {
|
|
4086
|
-
return
|
|
4096
|
+
return fs.existsSync(p + "/" + packagename);
|
|
4087
4097
|
});
|
|
4088
4098
|
if (sdkPaths.length > 0) {
|
|
4089
4099
|
sdkPath = sdkPaths[0];
|
|
@@ -4350,11 +4360,11 @@ var global = (() => {
|
|
|
4350
4360
|
}, 0);
|
|
4351
4361
|
}
|
|
4352
4362
|
sortBy(propName, sortAsc) {
|
|
4353
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4363
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4354
4364
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4355
|
-
} : function(prev, current) {
|
|
4365
|
+
}) : (function(prev, current) {
|
|
4356
4366
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4357
|
-
};
|
|
4367
|
+
});
|
|
4358
4368
|
return this.sort(sort_function);
|
|
4359
4369
|
}
|
|
4360
4370
|
matrix(length, fillValue) {
|
|
@@ -4421,7 +4431,7 @@ var global = (() => {
|
|
|
4421
4431
|
const self2 = this;
|
|
4422
4432
|
let _index = 0;
|
|
4423
4433
|
self2.source = New(ClassFactory("ArrayList"), source);
|
|
4424
|
-
for (const _k
|
|
4434
|
+
for (const _k of Object.keys(self2.source)) {
|
|
4425
4435
|
if (!isNaN(_k)) {
|
|
4426
4436
|
logger.debug("binding " + _k.toString());
|
|
4427
4437
|
(function(_pname) {
|
|
@@ -4488,7 +4498,7 @@ var global = (() => {
|
|
|
4488
4498
|
findElements(elementName) {
|
|
4489
4499
|
const _o = New(ClassFactory("TagElements"));
|
|
4490
4500
|
if (isBrowser) {
|
|
4491
|
-
for (const _k
|
|
4501
|
+
for (const _k of Object.keys(this)) {
|
|
4492
4502
|
if (typeof _k === "number" && typeof this[_k] !== "function" && Object.hasOwn(this[_k], "subelements")) {
|
|
4493
4503
|
_o.push(this[_k].subelements(elementName));
|
|
4494
4504
|
}
|
|
@@ -4706,7 +4716,7 @@ var global = (() => {
|
|
|
4706
4716
|
init_globalSettings();
|
|
4707
4717
|
init_loadSDK();
|
|
4708
4718
|
init_range();
|
|
4709
|
-
(/* @__PURE__ */ __name(function __qcobjects__(_top2) {
|
|
4719
|
+
(/* @__PURE__ */ __name((function __qcobjects__(_top2) {
|
|
4710
4720
|
if (typeof Object.defineProperty !== "undefined" && typeof _top2 !== "undefined") {
|
|
4711
4721
|
try {
|
|
4712
4722
|
Object.defineProperty(_top2, "__qcobjects__", {
|
|
@@ -4879,11 +4889,11 @@ var global = (() => {
|
|
|
4879
4889
|
_protected_code_(Array.max);
|
|
4880
4890
|
_protected_code_(Array.prototype.max);
|
|
4881
4891
|
Array.prototype.sortBy = function(propName, sortAsc = true) {
|
|
4882
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4892
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4883
4893
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4884
|
-
} : function(prev, current) {
|
|
4894
|
+
}) : (function(prev, current) {
|
|
4885
4895
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4886
|
-
};
|
|
4896
|
+
});
|
|
4887
4897
|
return this.sort(sort_function);
|
|
4888
4898
|
};
|
|
4889
4899
|
Array.sortBy = function(a, propName, sortAsc = true) {
|
|
@@ -5054,7 +5064,7 @@ var global = (() => {
|
|
|
5054
5064
|
}
|
|
5055
5065
|
})(isBrowser);
|
|
5056
5066
|
}
|
|
5057
|
-
}, "__qcobjects__"))(_top);
|
|
5067
|
+
}), "__qcobjects__"))(_top);
|
|
5058
5068
|
}
|
|
5059
5069
|
});
|
|
5060
5070
|
|
|
@@ -5537,7 +5547,7 @@ var global = (() => {
|
|
|
5537
5547
|
const context = this;
|
|
5538
5548
|
try {
|
|
5539
5549
|
document.getElementsByTagName(context.containerTag)[0].appendChild(
|
|
5540
|
-
function(s, url, context2) {
|
|
5550
|
+
(function(s, url, context2) {
|
|
5541
5551
|
s.type = context2.type;
|
|
5542
5552
|
s.src = url;
|
|
5543
5553
|
s.crossOrigin = Object.hasOwn(context2, "crossOrigin") ? context2.crossOrigin : "anonymous";
|
|
@@ -5557,7 +5567,7 @@ var global = (() => {
|
|
|
5557
5567
|
};
|
|
5558
5568
|
context2.body = s;
|
|
5559
5569
|
return s;
|
|
5560
|
-
}.call(
|
|
5570
|
+
}).call(
|
|
5561
5571
|
this,
|
|
5562
5572
|
_DOMCreateElement("script"),
|
|
5563
5573
|
this.external ? this.url : this.basePath + this.url,
|
|
@@ -5620,7 +5630,7 @@ var global = (() => {
|
|
|
5620
5630
|
const context = this;
|
|
5621
5631
|
if (isBrowser) {
|
|
5622
5632
|
window.document.getElementsByTagName("head")[0].appendChild(
|
|
5623
|
-
function(s, url, context2) {
|
|
5633
|
+
(function(s, url, context2) {
|
|
5624
5634
|
s.type = "text/css";
|
|
5625
5635
|
s.rel = "stylesheet";
|
|
5626
5636
|
s.href = url;
|
|
@@ -5633,7 +5643,7 @@ var global = (() => {
|
|
|
5633
5643
|
s.onload = context2.done;
|
|
5634
5644
|
context2.body = s;
|
|
5635
5645
|
return s;
|
|
5636
|
-
}.call(
|
|
5646
|
+
}).call(
|
|
5637
5647
|
this,
|
|
5638
5648
|
_DOMCreateElement("link"),
|
|
5639
5649
|
this.external ? this.url : this.basePath + this.url,
|