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
package/public/cjs/index.cjs
CHANGED
|
@@ -279,9 +279,9 @@ var init_platform = __esm({
|
|
|
279
279
|
return r;
|
|
280
280
|
})(name);
|
|
281
281
|
}, "_require_");
|
|
282
|
-
is_phonegap = /* @__PURE__ */ function() {
|
|
282
|
+
is_phonegap = /* @__PURE__ */ (function() {
|
|
283
283
|
return typeof cordova !== "undefined";
|
|
284
|
-
}();
|
|
284
|
+
})();
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
|
|
@@ -401,7 +401,7 @@ var init_DOMCreateElement = __esm({
|
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
if (Array.isArray(children)) {
|
|
404
|
-
children.filter((child) => child instanceof Node).forEach((child) => {
|
|
404
|
+
children.filter(((child) => child instanceof Node)).forEach((child) => {
|
|
405
405
|
element.appendChild(child);
|
|
406
406
|
});
|
|
407
407
|
} else if (children instanceof Node) {
|
|
@@ -432,9 +432,9 @@ var init_introspection = __esm({
|
|
|
432
432
|
"src/introspection.ts"() {
|
|
433
433
|
"use strict";
|
|
434
434
|
_protected_code_ = /* @__PURE__ */ __name((_) => {
|
|
435
|
-
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : function() {
|
|
435
|
+
const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : (function() {
|
|
436
436
|
return "";
|
|
437
|
-
};
|
|
437
|
+
});
|
|
438
438
|
if (typeof _.prototype !== "undefined") {
|
|
439
439
|
_.prototype.toString = function() {
|
|
440
440
|
const _protected_symbols = [
|
|
@@ -1222,27 +1222,31 @@ var init_Base64 = __esm({
|
|
|
1222
1222
|
});
|
|
1223
1223
|
|
|
1224
1224
|
// src/basePath.ts
|
|
1225
|
-
var
|
|
1225
|
+
var _basePath_, setBasePath;
|
|
1226
1226
|
var init_basePath = __esm({
|
|
1227
1227
|
"src/basePath.ts"() {
|
|
1228
1228
|
"use strict";
|
|
1229
1229
|
init_platform();
|
|
1230
|
-
|
|
1231
|
-
_basePath_ = function() {
|
|
1230
|
+
_basePath_ = (function() {
|
|
1232
1231
|
let _basePath = "";
|
|
1233
1232
|
if (isBrowser) {
|
|
1234
1233
|
const baseURI = document.baseURI.split("?")[0].split("/");
|
|
1235
1234
|
baseURI.pop();
|
|
1236
1235
|
_basePath = baseURI.join("/") + "/";
|
|
1237
1236
|
} else {
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1237
|
+
try {
|
|
1238
|
+
const nodeProcess = require("node:process");
|
|
1239
|
+
if (typeof nodeProcess !== "undefined") {
|
|
1240
|
+
_basePath = `${nodeProcess.cwd()}/`;
|
|
1241
|
+
} else {
|
|
1242
|
+
_basePath = "";
|
|
1243
|
+
}
|
|
1244
|
+
} catch {
|
|
1241
1245
|
_basePath = "";
|
|
1242
1246
|
}
|
|
1243
1247
|
}
|
|
1244
1248
|
return _basePath;
|
|
1245
|
-
}();
|
|
1249
|
+
})();
|
|
1246
1250
|
setBasePath = /* @__PURE__ */ __name((value) => {
|
|
1247
1251
|
_basePath_ = value;
|
|
1248
1252
|
}, "setBasePath");
|
|
@@ -1479,14 +1483,14 @@ var init_CONFIG = __esm({
|
|
|
1479
1483
|
}
|
|
1480
1484
|
let _conf;
|
|
1481
1485
|
try {
|
|
1482
|
-
_conf = function(config) {
|
|
1486
|
+
_conf = (function(config) {
|
|
1483
1487
|
if (config._CONFIG_ENC === null) {
|
|
1484
1488
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1485
1489
|
}
|
|
1486
1490
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1487
1491
|
const _protectedConf = config._CONFIG?.valueOf();
|
|
1488
1492
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1489
|
-
}(ConfigSettings.instance);
|
|
1493
|
+
})(ConfigSettings.instance);
|
|
1490
1494
|
} catch (e) {
|
|
1491
1495
|
_conf = {};
|
|
1492
1496
|
console.error(e);
|
|
@@ -1499,14 +1503,14 @@ var init_CONFIG = __esm({
|
|
|
1499
1503
|
get(name, _default) {
|
|
1500
1504
|
let _value;
|
|
1501
1505
|
try {
|
|
1502
|
-
const _conf = function(config) {
|
|
1506
|
+
const _conf = (function(config) {
|
|
1503
1507
|
if (config._CONFIG_ENC === null) {
|
|
1504
1508
|
config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
|
|
1505
1509
|
}
|
|
1506
1510
|
const _protectedEnc = config._CONFIG_ENC.valueOf();
|
|
1507
1511
|
const _protectedConf = config._CONFIG.valueOf();
|
|
1508
1512
|
return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
|
|
1509
|
-
}(ConfigSettings.instance);
|
|
1513
|
+
})(ConfigSettings.instance);
|
|
1510
1514
|
if (typeof _conf[name] !== "undefined") {
|
|
1511
1515
|
_value = _conf[name];
|
|
1512
1516
|
}
|
|
@@ -4048,7 +4052,7 @@ var init_defaultProcessors = __esm({
|
|
|
4048
4052
|
});
|
|
4049
4053
|
|
|
4050
4054
|
// src/findPackageNodePath.ts
|
|
4051
|
-
var
|
|
4055
|
+
var findPackageNodePath;
|
|
4052
4056
|
var init_findPackageNodePath = __esm({
|
|
4053
4057
|
"src/findPackageNodePath.ts"() {
|
|
4054
4058
|
"use strict";
|
|
@@ -4056,11 +4060,11 @@ var init_findPackageNodePath = __esm({
|
|
|
4056
4060
|
init_Export();
|
|
4057
4061
|
init_Logger();
|
|
4058
4062
|
init_platform();
|
|
4059
|
-
import_node_fs = __toESM(require("node:fs"));
|
|
4060
4063
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4061
4064
|
let sdkPath = null;
|
|
4062
4065
|
if (!isBrowser) {
|
|
4063
4066
|
try {
|
|
4067
|
+
const fs = require("node:fs");
|
|
4064
4068
|
let sdkPaths = [
|
|
4065
4069
|
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
|
|
4066
4070
|
`${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
|
|
@@ -4076,7 +4080,7 @@ var init_findPackageNodePath = __esm({
|
|
|
4076
4080
|
""
|
|
4077
4081
|
].concat(module.paths);
|
|
4078
4082
|
sdkPaths = sdkPaths.filter((p) => {
|
|
4079
|
-
return
|
|
4083
|
+
return fs.existsSync(p + "/" + packagename);
|
|
4080
4084
|
});
|
|
4081
4085
|
if (sdkPaths.length > 0) {
|
|
4082
4086
|
sdkPath = sdkPaths[0];
|
|
@@ -4343,11 +4347,11 @@ var init_ArrayCollection = __esm({
|
|
|
4343
4347
|
}, 0);
|
|
4344
4348
|
}
|
|
4345
4349
|
sortBy(propName, sortAsc) {
|
|
4346
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4350
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4347
4351
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4348
|
-
} : function(prev, current) {
|
|
4352
|
+
}) : (function(prev, current) {
|
|
4349
4353
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4350
|
-
};
|
|
4354
|
+
});
|
|
4351
4355
|
return this.sort(sort_function);
|
|
4352
4356
|
}
|
|
4353
4357
|
matrix(length, fillValue) {
|
|
@@ -4414,7 +4418,7 @@ var init_ArrayCollection = __esm({
|
|
|
4414
4418
|
const self2 = this;
|
|
4415
4419
|
let _index = 0;
|
|
4416
4420
|
self2.source = New(ClassFactory("ArrayList"), source);
|
|
4417
|
-
for (const _k
|
|
4421
|
+
for (const _k of Object.keys(self2.source)) {
|
|
4418
4422
|
if (!isNaN(_k)) {
|
|
4419
4423
|
logger.debug("binding " + _k.toString());
|
|
4420
4424
|
(function(_pname) {
|
|
@@ -4481,7 +4485,7 @@ var init_Tag = __esm({
|
|
|
4481
4485
|
findElements(elementName) {
|
|
4482
4486
|
const _o = New(ClassFactory("TagElements"));
|
|
4483
4487
|
if (isBrowser) {
|
|
4484
|
-
for (const _k
|
|
4488
|
+
for (const _k of Object.keys(this)) {
|
|
4485
4489
|
if (typeof _k === "number" && typeof this[_k] !== "function" && Object.hasOwn(this[_k], "subelements")) {
|
|
4486
4490
|
_o.push(this[_k].subelements(elementName));
|
|
4487
4491
|
}
|
|
@@ -4699,7 +4703,7 @@ var require_MainProcess = __commonJS({
|
|
|
4699
4703
|
init_globalSettings();
|
|
4700
4704
|
init_loadSDK();
|
|
4701
4705
|
init_range();
|
|
4702
|
-
(/* @__PURE__ */ __name(function __qcobjects__(_top2) {
|
|
4706
|
+
(/* @__PURE__ */ __name((function __qcobjects__(_top2) {
|
|
4703
4707
|
if (typeof Object.defineProperty !== "undefined" && typeof _top2 !== "undefined") {
|
|
4704
4708
|
try {
|
|
4705
4709
|
Object.defineProperty(_top2, "__qcobjects__", {
|
|
@@ -4872,11 +4876,11 @@ var require_MainProcess = __commonJS({
|
|
|
4872
4876
|
_protected_code_(Array.max);
|
|
4873
4877
|
_protected_code_(Array.prototype.max);
|
|
4874
4878
|
Array.prototype.sortBy = function(propName, sortAsc = true) {
|
|
4875
|
-
const sort_function = sortAsc ? function(prev, current) {
|
|
4879
|
+
const sort_function = sortAsc ? (function(prev, current) {
|
|
4876
4880
|
return current[propName] < prev[propName] ? 1 : -1;
|
|
4877
|
-
} : function(prev, current) {
|
|
4881
|
+
}) : (function(prev, current) {
|
|
4878
4882
|
return current[propName] > prev[propName] ? 1 : -1;
|
|
4879
|
-
};
|
|
4883
|
+
});
|
|
4880
4884
|
return this.sort(sort_function);
|
|
4881
4885
|
};
|
|
4882
4886
|
Array.sortBy = function(a, propName, sortAsc = true) {
|
|
@@ -5047,7 +5051,7 @@ var require_MainProcess = __commonJS({
|
|
|
5047
5051
|
}
|
|
5048
5052
|
})(isBrowser);
|
|
5049
5053
|
}
|
|
5050
|
-
}, "__qcobjects__"))(_top);
|
|
5054
|
+
}), "__qcobjects__"))(_top);
|
|
5051
5055
|
}
|
|
5052
5056
|
});
|
|
5053
5057
|
|
|
@@ -5531,7 +5535,7 @@ var SourceJS = class extends InheritClass {
|
|
|
5531
5535
|
const context = this;
|
|
5532
5536
|
try {
|
|
5533
5537
|
document.getElementsByTagName(context.containerTag)[0].appendChild(
|
|
5534
|
-
function(s, url, context2) {
|
|
5538
|
+
(function(s, url, context2) {
|
|
5535
5539
|
s.type = context2.type;
|
|
5536
5540
|
s.src = url;
|
|
5537
5541
|
s.crossOrigin = Object.hasOwn(context2, "crossOrigin") ? context2.crossOrigin : "anonymous";
|
|
@@ -5551,7 +5555,7 @@ var SourceJS = class extends InheritClass {
|
|
|
5551
5555
|
};
|
|
5552
5556
|
context2.body = s;
|
|
5553
5557
|
return s;
|
|
5554
|
-
}.call(
|
|
5558
|
+
}).call(
|
|
5555
5559
|
this,
|
|
5556
5560
|
_DOMCreateElement("script"),
|
|
5557
5561
|
this.external ? this.url : this.basePath + this.url,
|
|
@@ -5614,7 +5618,7 @@ var SourceCSS = class extends InheritClass {
|
|
|
5614
5618
|
const context = this;
|
|
5615
5619
|
if (isBrowser) {
|
|
5616
5620
|
window.document.getElementsByTagName("head")[0].appendChild(
|
|
5617
|
-
function(s, url, context2) {
|
|
5621
|
+
(function(s, url, context2) {
|
|
5618
5622
|
s.type = "text/css";
|
|
5619
5623
|
s.rel = "stylesheet";
|
|
5620
5624
|
s.href = url;
|
|
@@ -5627,7 +5631,7 @@ var SourceCSS = class extends InheritClass {
|
|
|
5627
5631
|
s.onload = context2.done;
|
|
5628
5632
|
context2.body = s;
|
|
5629
5633
|
return s;
|
|
5630
|
-
}.call(
|
|
5634
|
+
}).call(
|
|
5631
5635
|
this,
|
|
5632
5636
|
_DOMCreateElement("link"),
|
|
5633
5637
|
this.external ? this.url : this.basePath + this.url,
|