qcobjects 2.4.88 → 2.4.92
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 +17 -16
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.92
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.92",
|
|
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",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
90
90
|
"@typescript-eslint/parser": "^5.58.0",
|
|
91
|
-
"eslint": "^8.
|
|
91
|
+
"eslint": "^8.40.0",
|
|
92
92
|
"eslint-config-prettier": "^8.8.0",
|
|
93
93
|
"eslint-config-qcobjects": "^0.0.23",
|
|
94
94
|
"eslint-config-semistandard": "^17.0.0",
|
package/src/QCObjects.js
CHANGED
|
@@ -2158,6 +2158,7 @@
|
|
|
2158
2158
|
templateURI= "",
|
|
2159
2159
|
template,
|
|
2160
2160
|
tplsource= "default",
|
|
2161
|
+
tplextension,
|
|
2161
2162
|
url= "",
|
|
2162
2163
|
name= "",
|
|
2163
2164
|
method= "GET",
|
|
@@ -2180,6 +2181,7 @@
|
|
|
2180
2181
|
super({
|
|
2181
2182
|
templateURI,
|
|
2182
2183
|
template,
|
|
2184
|
+
tplextension,
|
|
2183
2185
|
tplsource,
|
|
2184
2186
|
url,
|
|
2185
2187
|
name,
|
|
@@ -2548,7 +2550,9 @@
|
|
|
2548
2550
|
_component_.subcomponents = _component_.__buildSubComponents__();
|
|
2549
2551
|
|
|
2550
2552
|
_component_._bindroute_();
|
|
2551
|
-
|
|
2553
|
+
if (isBrowser){
|
|
2554
|
+
_component_.body.setAttribute("loaded", true);
|
|
2555
|
+
}
|
|
2552
2556
|
};
|
|
2553
2557
|
|
|
2554
2558
|
return new Promise (function (resolve, reject){
|
|
@@ -2563,11 +2567,15 @@
|
|
|
2563
2567
|
|
|
2564
2568
|
hostElements(tagFilter){
|
|
2565
2569
|
var _component_ = this;
|
|
2566
|
-
var elementList =
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2570
|
+
var elementList = [];
|
|
2571
|
+
if (isBrowser){
|
|
2572
|
+
elementList = (_component_.shadowed && (typeof _component_.shadowRoot !== "undefined"))?(
|
|
2573
|
+
_component_.shadowRoot.subelements(tagFilter)
|
|
2574
|
+
):(
|
|
2575
|
+
_component_.body.subelements(tagFilter)
|
|
2576
|
+
);
|
|
2577
|
+
|
|
2578
|
+
}
|
|
2571
2579
|
return elementList;
|
|
2572
2580
|
}
|
|
2573
2581
|
|
|
@@ -3372,15 +3380,8 @@
|
|
|
3372
3380
|
* @author: Jean Machuca <correojean@gmail.com>
|
|
3373
3381
|
* @param params an object with the params to build the uri path
|
|
3374
3382
|
*/
|
|
3375
|
-
var ComponentURI =
|
|
3376
|
-
|
|
3377
|
-
if (params["TPL_SOURCE"] === "default") {
|
|
3378
|
-
templateURI = "{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.{{TPLEXTENSION}}";
|
|
3379
|
-
for (var k in params) {
|
|
3380
|
-
var param = params[k];
|
|
3381
|
-
templateURI = templateURI.replace("{{" + k + "}}", params[k]);
|
|
3382
|
-
}
|
|
3383
|
-
}
|
|
3383
|
+
var ComponentURI = ({TPL_SOURCE ,COMPONENTS_BASE_PATH, COMPONENT_NAME, TPLEXTENSION}) => {
|
|
3384
|
+
const templateURI = (TPL_SOURCE === "default")?(`${COMPONENTS_BASE_PATH}${COMPONENT_NAME}${TPLEXTENSION}`):("");
|
|
3384
3385
|
return templateURI;
|
|
3385
3386
|
};
|
|
3386
3387
|
|
|
@@ -3605,7 +3606,7 @@
|
|
|
3605
3606
|
}
|
|
3606
3607
|
return Promise.reject(_ret_);
|
|
3607
3608
|
}).catch(function (e) {
|
|
3608
|
-
logger.debug(
|
|
3609
|
+
logger.debug(`Something wrong loading the component: ${e}`);
|
|
3609
3610
|
});
|
|
3610
3611
|
return __promise__;
|
|
3611
3612
|
};
|