qcobjects 2.4.52 → 2.4.54
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/QCObjects.js +6 -5
- package/VERSION +1 -1
- package/package.json +1 -1
package/QCObjects.js
CHANGED
|
@@ -2253,7 +2253,7 @@
|
|
|
2253
2253
|
var data = this.data;
|
|
2254
2254
|
var __serviceClass;
|
|
2255
2255
|
var __classDefinition = component.getClass().__definition;
|
|
2256
|
-
var _serviceClassName = (body.getAttribute("serviceClass") !== null) ? (body.getAttribute("serviceClass")) : (null);
|
|
2256
|
+
var _serviceClassName = (isBrowser && body.getAttribute("serviceClass") !== null) ? (body.getAttribute("serviceClass")) : (null);
|
|
2257
2257
|
|
|
2258
2258
|
return new Promise (function (resolve, reject){
|
|
2259
2259
|
/* __enable_service_class__ = true by default */
|
|
@@ -2261,8 +2261,8 @@
|
|
|
2261
2261
|
(Object.hasOwnProperty.call(body, "enableServiceClass") && body.enableServiceClass) ||
|
|
2262
2262
|
(!Object.hasOwnProperty.call(body, "enableServiceClass"))
|
|
2263
2263
|
) ? (true) : (false);
|
|
2264
|
-
var _response_to_data_ = (body.getAttribute("response-to") !== null && body.getAttribute("response-to") === "data") ? (true) : (false);
|
|
2265
|
-
var _response_to_template_ = (body.getAttribute("response-to") !== null && body.getAttribute("response-to") === "template") ? (true) : (false);
|
|
2264
|
+
var _response_to_data_ = (isBrowser && body.getAttribute("response-to") !== null && body.getAttribute("response-to") === "data") ? (true) : (false);
|
|
2265
|
+
var _response_to_template_ = (isBrowser && body.getAttribute("response-to") !== null && body.getAttribute("response-to") === "template") ? (true) : (false);
|
|
2266
2266
|
|
|
2267
2267
|
if (__enable_service_class__ && _serviceClassName !== null) {
|
|
2268
2268
|
__serviceClass = ClassFactory(_serviceClassName);
|
|
@@ -2506,13 +2506,13 @@
|
|
|
2506
2506
|
get bodyAttributes() {
|
|
2507
2507
|
var _component_ = this;
|
|
2508
2508
|
var c = _component_.body;
|
|
2509
|
-
return [...c.getAttributeNames()].map (a => {return {[a]:c.getAttribute(a)};}).reduce ((accumulator,colData, index) => {return Object.assign(accumulator, colData);} );
|
|
2509
|
+
return (isBrowser)?([...c.getAttributeNames()].map (a => {return {[a]:c.getAttribute(a)};}).reduce ((accumulator,colData, index) => {return Object.assign(accumulator, colData);} )):({});
|
|
2510
2510
|
}
|
|
2511
2511
|
|
|
2512
2512
|
get dataAttributes(){
|
|
2513
2513
|
var _component_ = this;
|
|
2514
2514
|
var c = _component_.body;
|
|
2515
|
-
return [{}].concat([...c.getAttributeNames()].filter(n=>n.startsWith("data-")).map (a => {return {[a.split("-")[1]]:c.getAttribute(a)};})).reduce ((accumulator,colData, index) => {return Object.assign(accumulator, colData);} );
|
|
2515
|
+
return (isBrowser)?([{}].concat([...c.getAttributeNames()].filter(n=>n.startsWith("data-")).map (a => {return {[a.split("-")[1]]:c.getAttribute(a)};})).reduce ((accumulator,colData, index) => {return Object.assign(accumulator, colData);} )):({});
|
|
2516
2516
|
}
|
|
2517
2517
|
|
|
2518
2518
|
__buildSubComponents__ (rebuildObjects = false) {
|
|
@@ -4579,6 +4579,7 @@
|
|
|
4579
4579
|
|
|
4580
4580
|
constructor (){
|
|
4581
4581
|
super(...arguments);
|
|
4582
|
+
this._new_(...arguments);
|
|
4582
4583
|
}
|
|
4583
4584
|
|
|
4584
4585
|
changeToggle() {
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.54
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.54",
|
|
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": "QCObjects.js",
|
|
6
6
|
"license": "LGPL-3.0",
|