qcobjects 2.4.83 → 2.4.86
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/package.json +2 -2
- package/src/QCObjects.js +40 -21
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.86
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.86",
|
|
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": "src/index.cjs",
|
|
6
6
|
"module": "src/index.mjs",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"@types/qcobjects": "github:QCObjects/-types-qcobjects",
|
|
105
105
|
"@types/qcobjects-sdk": "github:QCObjects/-types-qcobjects-sdk",
|
|
106
|
-
"qcobjects-sdk": "
|
|
106
|
+
"qcobjects-sdk": ">=2.4.53"
|
|
107
107
|
},
|
|
108
108
|
"engines": {
|
|
109
109
|
"npm": ">=9",
|
package/src/QCObjects.js
CHANGED
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
_config_settings._CONFIG = {
|
|
1434
1434
|
"relativeImportPath": "",
|
|
1435
1435
|
"remoteImportsPath": "",
|
|
1436
|
-
"remoteSDKPath": "https://sdk.qcobjects.dev/v2.4/",
|
|
1436
|
+
"remoteSDKPath": "https://sdk.qcobjects.dev/v2.4/src/",
|
|
1437
1437
|
"asynchronousImportsLoad": false,
|
|
1438
1438
|
"removePackageScriptAfterLoading": true,
|
|
1439
1439
|
"componentsBasePath": "",
|
|
@@ -2168,13 +2168,35 @@
|
|
|
2168
2168
|
_body=_DOMCreateElement("div"),
|
|
2169
2169
|
__promise__= null,
|
|
2170
2170
|
__shadowRoot,
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2171
|
+
body,
|
|
2172
|
+
shadowRoot,
|
|
2173
|
+
splashScreenComponent,
|
|
2174
|
+
controller,
|
|
2175
|
+
view
|
|
2176
2176
|
}){
|
|
2177
|
-
|
|
2177
|
+
if (arguments.length<1){
|
|
2178
|
+
throw Error(`No arguments in component. You must at least give one argument.`);
|
|
2179
|
+
}
|
|
2180
|
+
super({
|
|
2181
|
+
templateURI,
|
|
2182
|
+
template,
|
|
2183
|
+
tplsource,
|
|
2184
|
+
url,
|
|
2185
|
+
name,
|
|
2186
|
+
method,
|
|
2187
|
+
data,
|
|
2188
|
+
reload,
|
|
2189
|
+
shadowed,
|
|
2190
|
+
cached,
|
|
2191
|
+
_body,
|
|
2192
|
+
__promise__,
|
|
2193
|
+
__shadowRoot,
|
|
2194
|
+
body,
|
|
2195
|
+
shadowRoot,
|
|
2196
|
+
splashScreenComponent,
|
|
2197
|
+
controller,
|
|
2198
|
+
view
|
|
2199
|
+
});
|
|
2178
2200
|
var self = this;
|
|
2179
2201
|
|
|
2180
2202
|
if (typeof self.name === "undefined") {
|
|
@@ -4602,7 +4624,7 @@
|
|
|
4602
4624
|
componentRoot.style.display = "block";
|
|
4603
4625
|
_transition_.effects.map(function (effectClassName, eff) {
|
|
4604
4626
|
var __effectClass__ = ClassFactory(effectClassName);
|
|
4605
|
-
var effectObj = new __effectClass__();
|
|
4627
|
+
var effectObj = new __effectClass__({});
|
|
4606
4628
|
var effectClassMethod = effectObj.apply;
|
|
4607
4629
|
var args = [componentRoot].concat(Object.values({
|
|
4608
4630
|
alphaFrom,
|
|
@@ -4938,25 +4960,22 @@
|
|
|
4938
4960
|
return _promise;
|
|
4939
4961
|
};
|
|
4940
4962
|
var _buildComponents = function () {
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
logger.debug("Initializing the service worker");
|
|
4944
|
-
_promise_ = __load__serviceWorker.call(_top)
|
|
4945
|
-
.finally (function (){
|
|
4963
|
+
return new Promise ((resolve, reject) => {
|
|
4964
|
+
if (isBrowser) {
|
|
4946
4965
|
logger.debug("Starting to building components");
|
|
4947
4966
|
try {
|
|
4948
4967
|
_top.componentsStack = document.buildComponents.call(document);
|
|
4949
4968
|
}catch (e){
|
|
4950
4969
|
throw Error (`Something went wrong trying to start components tree: ${e.message}`);
|
|
4951
4970
|
}
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4971
|
+
logger.debug("Initializing the service worker");
|
|
4972
|
+
__load__serviceWorker.call(_top)
|
|
4973
|
+
.catch(function (e) {
|
|
4974
|
+
logger.debug(`error loading the service worker ${e}`);
|
|
4975
|
+
});
|
|
4976
|
+
}
|
|
4977
|
+
resolve();
|
|
4978
|
+
});
|
|
4960
4979
|
};
|
|
4961
4980
|
logger.debug("Starting to load the config settings...");
|
|
4962
4981
|
if (_top.CONFIG.get("useConfigService", false)) {
|