qcobjects 2.5.142-beta → 2.6.2
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 +49 -0
- package/CHANGELOG.md +15 -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/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 +5 -5
- package/public/browser/QCObjects.js +37 -33
- package/public/browser/QCObjects.js.map +3 -3
- package/public/cjs/index.cjs +37 -33
- package/public/cjs/index.cjs.map +3 -3
- package/public/esm/index.mjs +34 -30
- package/public/esm/index.mjs.map +3 -3
- package/public/types/index.d.ts +1 -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/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
- package/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -38
- package/.github/workflows/npmpublish-ts.yml +0 -38
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Node.js Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*.*.*'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v6
|
|
13
|
+
with:
|
|
14
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
15
|
+
ref: ${{ github.ref }}
|
|
16
|
+
- uses: actions/setup-node@v6
|
|
17
|
+
with:
|
|
18
|
+
node-version: 22
|
|
19
|
+
- run: npm i --legacy-peer-deps
|
|
20
|
+
- run: npm run build
|
|
21
|
+
- run: npm test
|
|
22
|
+
|
|
23
|
+
publish-npm:
|
|
24
|
+
needs: build
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
id-token: write
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
with:
|
|
32
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
ref: ${{ github.ref }}
|
|
34
|
+
- uses: actions/setup-node@v6
|
|
35
|
+
with:
|
|
36
|
+
node-version: 22
|
|
37
|
+
- name: Upgrade npm for OIDC support (requires >=11.5.1)
|
|
38
|
+
run: npm install -g npm@latest
|
|
39
|
+
- run: npm i --legacy-peer-deps
|
|
40
|
+
- run: npm run build
|
|
41
|
+
- name: Publish to npm
|
|
42
|
+
run: |
|
|
43
|
+
if [[ "${{ github.ref }}" == *-beta ]]; then
|
|
44
|
+
npm publish --tag beta
|
|
45
|
+
elif [[ "${{ github.ref }}" == *-lts ]]; then
|
|
46
|
+
npm publish --tag lts
|
|
47
|
+
else
|
|
48
|
+
npm publish
|
|
49
|
+
fi
|
package/CHANGELOG.md
CHANGED
|
@@ -621,6 +621,21 @@ 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.2
|
|
625
|
+
|
|
626
|
+
- fix: repository.url + bugs.url QuickCorp -> QCObjects (Sigstore provenance E422 hard-blocks OIDC publishes against stale org)
|
|
627
|
+
- fix: lazify node builtins (basePath, findPackageNodePath) + type-only types re-export (browser-safe dists; 0 eager node:/types top-level imports)
|
|
628
|
+
- fix: eslint-disable for no-unnecessary-type-assertion on load-bearing assertion (repo build was self-breaking)
|
|
629
|
+
|
|
630
|
+
## v2.6.1
|
|
631
|
+
|
|
632
|
+
- Build fixes: WidgetsFactory lib.dom conformance (unblocks npm publish)
|
|
633
|
+
|
|
634
|
+
## v2.6.0
|
|
635
|
+
|
|
636
|
+
- License migration LGPLv3 -> MIT (LICENSE.txt, package.json, source headers)
|
|
637
|
+
- See product-specs 09-license and 15-unified-vision-v3 (Phase 1)
|
|
638
|
+
|
|
624
639
|
|
|
625
640
|
## Version1 -> Version1.1
|
|
626
641
|
|
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.2
|
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/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.2",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"test:jasmine": "npm run test:ts-types && npx ts-node -r tsconfig-paths/register --project ./tsconfig.jasmine.json ./node_modules/jasmine/bin/jasmine.js",
|
|
40
40
|
"test": "(npm run lint && npm run test:jasmine)",
|
|
41
41
|
"coverage": "nyc --reporter=lcov --reporter=text-summary npm run test",
|
|
42
|
-
"lint": "(npx
|
|
42
|
+
"lint": "(npx eslint src/**/*.ts --fix )",
|
|
43
43
|
"preversion": "npm cache verify && npm run coverage",
|
|
44
44
|
"sync": "git add . && git commit -am ",
|
|
45
45
|
"postversion": "git push && git push --tags",
|
|
@@ -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
|
|
|
@@ -408,7 +408,7 @@ var global = (() => {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
if (Array.isArray(children)) {
|
|
411
|
-
children.filter((child) => child instanceof Node).forEach((child) => {
|
|
411
|
+
children.filter(((child) => child instanceof Node)).forEach((child) => {
|
|
412
412
|
element.appendChild(child);
|
|
413
413
|
});
|
|
414
414
|
} else if (children instanceof Node) {
|
|
@@ -439,9 +439,9 @@ var global = (() => {
|
|
|
439
439
|
"src/introspection.ts"() {
|
|
440
440
|
"use strict";
|
|
441
441
|
_protected_code_ = /* @__PURE__ */ __name((_) => {
|
|
442
|
-
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : function() {
|
|
442
|
+
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : (function() {
|
|
443
443
|
return "";
|
|
444
|
-
};
|
|
444
|
+
});
|
|
445
445
|
if (typeof _.prototype !== "undefined") {
|
|
446
446
|
_.prototype.toString = function() {
|
|
447
447
|
const _protected_symbols = [
|
|
@@ -1229,27 +1229,31 @@ var global = (() => {
|
|
|
1229
1229
|
});
|
|
1230
1230
|
|
|
1231
1231
|
// src/basePath.ts
|
|
1232
|
-
var
|
|
1232
|
+
var _basePath_, setBasePath;
|
|
1233
1233
|
var init_basePath = __esm({
|
|
1234
1234
|
"src/basePath.ts"() {
|
|
1235
1235
|
"use strict";
|
|
1236
1236
|
init_platform();
|
|
1237
|
-
|
|
1238
|
-
_basePath_ = function() {
|
|
1237
|
+
_basePath_ = (function() {
|
|
1239
1238
|
let _basePath = "";
|
|
1240
1239
|
if (isBrowser) {
|
|
1241
1240
|
const baseURI = document.baseURI.split("?")[0].split("/");
|
|
1242
1241
|
baseURI.pop();
|
|
1243
1242
|
_basePath = baseURI.join("/") + "/";
|
|
1244
1243
|
} else {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1244
|
+
try {
|
|
1245
|
+
const nodeProcess = __require("node:process");
|
|
1246
|
+
if (typeof nodeProcess !== "undefined") {
|
|
1247
|
+
_basePath = `${nodeProcess.cwd()}/`;
|
|
1248
|
+
} else {
|
|
1249
|
+
_basePath = "";
|
|
1250
|
+
}
|
|
1251
|
+
} catch {
|
|
1248
1252
|
_basePath = "";
|
|
1249
1253
|
}
|
|
1250
1254
|
}
|
|
1251
1255
|
return _basePath;
|
|
1252
|
-
}();
|
|
1256
|
+
})();
|
|
1253
1257
|
setBasePath = /* @__PURE__ */ __name((value) => {
|
|
1254
1258
|
_basePath_ = value;
|
|
1255
1259
|
}, "setBasePath");
|
|
@@ -1486,14 +1490,14 @@ var global = (() => {
|
|
|
1486
1490
|
}
|
|
1487
1491
|
let _conf;
|
|
1488
1492
|
try {
|
|
1489
|
-
_conf = function(config) {
|
|
1493
|
+
_conf = (function(config) {
|
|
1490
1494
|
if (config._CONFIG_ENC === null) {
|
|
1491
1495
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1492
1496
|
}
|
|
1493
1497
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1494
1498
|
const _protectedConf = config._CONFIG?.valueOf();
|
|
1495
1499
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1496
|
-
}(ConfigSettings.instance);
|
|
1500
|
+
})(ConfigSettings.instance);
|
|
1497
1501
|
} catch (e) {
|
|
1498
1502
|
_conf = {};
|
|
1499
1503
|
console.error(e);
|
|
@@ -1506,14 +1510,14 @@ var global = (() => {
|
|
|
1506
1510
|
get(name, _default) {
|
|
1507
1511
|
let _value;
|
|
1508
1512
|
try {
|
|
1509
|
-
const _conf = function(config) {
|
|
1513
|
+
const _conf = (function(config) {
|
|
1510
1514
|
if (config._CONFIG_ENC === null) {
|
|
1511
1515
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1512
1516
|
}
|
|
1513
1517
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1514
1518
|
const _protectedConf = config._CONFIG.valueOf();
|
|
1515
1519
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1516
|
-
}(ConfigSettings.instance);
|
|
1520
|
+
})(ConfigSettings.instance);
|
|
1517
1521
|
if (typeof _conf[name] !== "undefined") {
|
|
1518
1522
|
_value = _conf[name];
|
|
1519
1523
|
}
|
|
@@ -4055,7 +4059,7 @@ var global = (() => {
|
|
|
4055
4059
|
});
|
|
4056
4060
|
|
|
4057
4061
|
// src/findPackageNodePath.ts
|
|
4058
|
-
var
|
|
4062
|
+
var findPackageNodePath;
|
|
4059
4063
|
var init_findPackageNodePath = __esm({
|
|
4060
4064
|
"src/findPackageNodePath.ts"() {
|
|
4061
4065
|
"use strict";
|
|
@@ -4063,11 +4067,11 @@ var global = (() => {
|
|
|
4063
4067
|
init_Export();
|
|
4064
4068
|
init_Logger();
|
|
4065
4069
|
init_platform();
|
|
4066
|
-
import_node_fs = __toESM(__require("node:fs"));
|
|
4067
4070
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4068
4071
|
let sdkPath = null;
|
|
4069
4072
|
if (!isBrowser) {
|
|
4070
4073
|
try {
|
|
4074
|
+
const fs = __require("node:fs");
|
|
4071
4075
|
let sdkPaths = [
|
|
4072
4076
|
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
|
|
4073
4077
|
`${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
|
|
@@ -4083,7 +4087,7 @@ var global = (() => {
|
|
|
4083
4087
|
""
|
|
4084
4088
|
].concat(module.paths);
|
|
4085
4089
|
sdkPaths = sdkPaths.filter((p) => {
|
|
4086
|
-
return
|
|
4090
|
+
return fs.existsSync(p + "/" + packagename);
|
|
4087
4091
|
});
|
|
4088
4092
|
if (sdkPaths.length > 0) {
|
|
4089
4093
|
sdkPath = sdkPaths[0];
|
|
@@ -4350,11 +4354,11 @@ var global = (() => {
|
|
|
4350
4354
|
}, 0);
|
|
4351
4355
|
}
|
|
4352
4356
|
sortBy(propName, sortAsc) {
|
|
4353
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4357
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4354
4358
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4355
|
-
} : function(prev, current) {
|
|
4359
|
+
}) : (function(prev, current) {
|
|
4356
4360
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4357
|
-
};
|
|
4361
|
+
});
|
|
4358
4362
|
return this.sort(sort_function);
|
|
4359
4363
|
}
|
|
4360
4364
|
matrix(length, fillValue) {
|
|
@@ -4421,7 +4425,7 @@ var global = (() => {
|
|
|
4421
4425
|
const self2 = this;
|
|
4422
4426
|
let _index = 0;
|
|
4423
4427
|
self2.source = New(ClassFactory("ArrayList"), source);
|
|
4424
|
-
for (const _k
|
|
4428
|
+
for (const _k of Object.keys(self2.source)) {
|
|
4425
4429
|
if (!isNaN(_k)) {
|
|
4426
4430
|
logger.debug("binding " + _k.toString());
|
|
4427
4431
|
(function(_pname) {
|
|
@@ -4488,7 +4492,7 @@ var global = (() => {
|
|
|
4488
4492
|
findElements(elementName) {
|
|
4489
4493
|
const _o = New(ClassFactory("TagElements"));
|
|
4490
4494
|
if (isBrowser) {
|
|
4491
|
-
for (const _k
|
|
4495
|
+
for (const _k of Object.keys(this)) {
|
|
4492
4496
|
if (typeof _k === "number" && typeof this[_k] !== "function" && Object.hasOwn(this[_k], "subelements")) {
|
|
4493
4497
|
_o.push(this[_k].subelements(elementName));
|
|
4494
4498
|
}
|
|
@@ -4706,7 +4710,7 @@ var global = (() => {
|
|
|
4706
4710
|
init_globalSettings();
|
|
4707
4711
|
init_loadSDK();
|
|
4708
4712
|
init_range();
|
|
4709
|
-
(/* @__PURE__ */ __name(function __qcobjects__(_top2) {
|
|
4713
|
+
(/* @__PURE__ */ __name((function __qcobjects__(_top2) {
|
|
4710
4714
|
if (typeof Object.defineProperty !== "undefined" && typeof _top2 !== "undefined") {
|
|
4711
4715
|
try {
|
|
4712
4716
|
Object.defineProperty(_top2, "__qcobjects__", {
|
|
@@ -4879,11 +4883,11 @@ var global = (() => {
|
|
|
4879
4883
|
_protected_code_(Array.max);
|
|
4880
4884
|
_protected_code_(Array.prototype.max);
|
|
4881
4885
|
Array.prototype.sortBy = function(propName, sortAsc = true) {
|
|
4882
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4886
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4883
4887
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4884
|
-
} : function(prev, current) {
|
|
4888
|
+
}) : (function(prev, current) {
|
|
4885
4889
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4886
|
-
};
|
|
4890
|
+
});
|
|
4887
4891
|
return this.sort(sort_function);
|
|
4888
4892
|
};
|
|
4889
4893
|
Array.sortBy = function(a, propName, sortAsc = true) {
|
|
@@ -5054,7 +5058,7 @@ var global = (() => {
|
|
|
5054
5058
|
}
|
|
5055
5059
|
})(isBrowser);
|
|
5056
5060
|
}
|
|
5057
|
-
}, "__qcobjects__"))(_top);
|
|
5061
|
+
}), "__qcobjects__"))(_top);
|
|
5058
5062
|
}
|
|
5059
5063
|
});
|
|
5060
5064
|
|
|
@@ -5537,7 +5541,7 @@ var global = (() => {
|
|
|
5537
5541
|
const context = this;
|
|
5538
5542
|
try {
|
|
5539
5543
|
document.getElementsByTagName(context.containerTag)[0].appendChild(
|
|
5540
|
-
function(s, url, context2) {
|
|
5544
|
+
(function(s, url, context2) {
|
|
5541
5545
|
s.type = context2.type;
|
|
5542
5546
|
s.src = url;
|
|
5543
5547
|
s.crossOrigin = Object.hasOwn(context2, "crossOrigin") ? context2.crossOrigin : "anonymous";
|
|
@@ -5557,7 +5561,7 @@ var global = (() => {
|
|
|
5557
5561
|
};
|
|
5558
5562
|
context2.body = s;
|
|
5559
5563
|
return s;
|
|
5560
|
-
}.call(
|
|
5564
|
+
}).call(
|
|
5561
5565
|
this,
|
|
5562
5566
|
_DOMCreateElement("script"),
|
|
5563
5567
|
this.external ? this.url : this.basePath + this.url,
|
|
@@ -5620,7 +5624,7 @@ var global = (() => {
|
|
|
5620
5624
|
const context = this;
|
|
5621
5625
|
if (isBrowser) {
|
|
5622
5626
|
window.document.getElementsByTagName("head")[0].appendChild(
|
|
5623
|
-
function(s, url, context2) {
|
|
5627
|
+
(function(s, url, context2) {
|
|
5624
5628
|
s.type = "text/css";
|
|
5625
5629
|
s.rel = "stylesheet";
|
|
5626
5630
|
s.href = url;
|
|
@@ -5633,7 +5637,7 @@ var global = (() => {
|
|
|
5633
5637
|
s.onload = context2.done;
|
|
5634
5638
|
context2.body = s;
|
|
5635
5639
|
return s;
|
|
5636
|
-
}.call(
|
|
5640
|
+
}).call(
|
|
5637
5641
|
this,
|
|
5638
5642
|
_DOMCreateElement("link"),
|
|
5639
5643
|
this.external ? this.url : this.basePath + this.url,
|