qcobjects 2.4.28-beta → 2.4.29-beta
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 +23 -8
- package/VERSION +1 -1
- package/package.json +1 -1
package/QCObjects.js
CHANGED
|
@@ -706,9 +706,9 @@
|
|
|
706
706
|
var ret = "";
|
|
707
707
|
if (typeof o === "function" && Object.hasOwnProperty.call(o, "name") && o.name !== "") {
|
|
708
708
|
ret = o.name;
|
|
709
|
-
} else if (typeof o.constructor === "function" && o.constructor.name !== "") {
|
|
709
|
+
} else if (typeof o !== "undefined" && typeof o.constructor === "function" && o.constructor.name !== "") {
|
|
710
710
|
ret = o.constructor.name;
|
|
711
|
-
} else if (typeof o.constructor === "object") {
|
|
711
|
+
} else if (typeof o !== "undefined" && typeof o.constructor === "object") {
|
|
712
712
|
ret = o.constructor.toString().replace(/\[(.*?)\]/g, "$1").split(" ").slice(1).join("");
|
|
713
713
|
}
|
|
714
714
|
return ret;
|
|
@@ -784,10 +784,10 @@
|
|
|
784
784
|
&& o_c.constructor.name !== "":
|
|
785
785
|
_ret_ = o_c.constructor.name;
|
|
786
786
|
break;
|
|
787
|
-
case (!!o_c.__classType) && o_c.__classType !== "":
|
|
787
|
+
case (!!o_c && !!o_c.__classType) && o_c.__classType !== "":
|
|
788
788
|
_ret_ = o_c.__classType;
|
|
789
789
|
break;
|
|
790
|
-
case (!!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
|
|
790
|
+
case (!!o_c && !!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
|
|
791
791
|
_ret_ = o_c.__definition.__classType;
|
|
792
792
|
break;
|
|
793
793
|
default:
|
|
@@ -810,6 +810,12 @@
|
|
|
810
810
|
|| typeof obj === typeName))?(true):(false);
|
|
811
811
|
};
|
|
812
812
|
|
|
813
|
+
var __register_class__ = function (name, _class_) {
|
|
814
|
+
_QC_CLASSES[name] = _class_;
|
|
815
|
+
_top[name] = _QC_CLASSES[name];
|
|
816
|
+
return _top[name];
|
|
817
|
+
}
|
|
818
|
+
|
|
813
819
|
/**
|
|
814
820
|
* Creates new object class of another object
|
|
815
821
|
*
|
|
@@ -1139,7 +1145,7 @@
|
|
|
1139
1145
|
return "New(QCObjectsClassName, args) { [QCObjects native code] }";
|
|
1140
1146
|
};
|
|
1141
1147
|
|
|
1142
|
-
var
|
|
1148
|
+
var __make_global__ = function (f) {
|
|
1143
1149
|
if (typeof f !== "undefined") {
|
|
1144
1150
|
if (isBrowser) {
|
|
1145
1151
|
try {
|
|
@@ -1152,6 +1158,11 @@
|
|
|
1152
1158
|
}
|
|
1153
1159
|
}
|
|
1154
1160
|
}
|
|
1161
|
+
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
var Export = function (f) {
|
|
1165
|
+
return __make_global__(f);
|
|
1155
1166
|
};
|
|
1156
1167
|
Export.prototype.toString = function() {
|
|
1157
1168
|
return "Export(function or symbol) { [QCObjects native code] }";
|
|
@@ -1477,6 +1488,7 @@
|
|
|
1477
1488
|
}
|
|
1478
1489
|
).map(function (_class_){
|
|
1479
1490
|
_class_.__definition.__namespace = namespace;
|
|
1491
|
+
__register_class__(_class_);
|
|
1480
1492
|
});
|
|
1481
1493
|
_QC_PACKAGES[namespace] = _QC_PACKAGES[namespace].concat(classes);
|
|
1482
1494
|
} else if (typeof classes !== "undefined"){
|
|
@@ -1487,9 +1499,11 @@
|
|
|
1487
1499
|
}
|
|
1488
1500
|
).map(function (_class_){
|
|
1489
1501
|
_class_.__definition.__namespace = namespace;
|
|
1502
|
+
__register_class__(_class_);
|
|
1490
1503
|
});
|
|
1491
1504
|
} else if (isQCObjects_Class(classes)) {
|
|
1492
1505
|
classes.__definition.__namespace = namespace;
|
|
1506
|
+
__register_class__(classes);
|
|
1493
1507
|
}
|
|
1494
1508
|
_QC_PACKAGES[namespace] = classes;
|
|
1495
1509
|
}
|
|
@@ -1764,7 +1778,7 @@
|
|
|
1764
1778
|
} else {
|
|
1765
1779
|
global.onload = _Ready;
|
|
1766
1780
|
}
|
|
1767
|
-
Class("InheritClass",
|
|
1781
|
+
Class("InheritClass", class {}, {});
|
|
1768
1782
|
|
|
1769
1783
|
/**
|
|
1770
1784
|
* Dynamic Data Objects Class
|
|
@@ -1961,7 +1975,7 @@
|
|
|
1961
1975
|
}
|
|
1962
1976
|
}
|
|
1963
1977
|
};
|
|
1964
|
-
Class ("Component",
|
|
1978
|
+
Class ("Component", ClassFactory("InheritClass"), {
|
|
1965
1979
|
domain: domain,
|
|
1966
1980
|
basePath: basePath,
|
|
1967
1981
|
templateURI: "",
|
|
@@ -2597,6 +2611,7 @@
|
|
|
2597
2611
|
|
|
2598
2612
|
}
|
|
2599
2613
|
});
|
|
2614
|
+
|
|
2600
2615
|
_top._bindroute_.__assigned=false;
|
|
2601
2616
|
|
|
2602
2617
|
(_methods_)(ClassFactory("Component")).map(function (__c__){(_protected_code_)(__c__);});
|
|
@@ -3586,7 +3601,7 @@
|
|
|
3586
3601
|
):("")
|
|
3587
3602
|
);
|
|
3588
3603
|
var __classDefinition = ClassFactory(__componentClassName);
|
|
3589
|
-
var __tplsource_prop_set = (__componentClassName !== "Component" && (typeof __classDefinition.tplsource === "string" && __classDefinition.tplsource !== "") ) ? (true) : (false);
|
|
3604
|
+
var __tplsource_prop_set = (__componentClassName !== "Component" && ((typeof __classDefinition !== "undefined" && typeof __classDefinition.tplsource === "string") && __classDefinition.tplsource !== "") ) ? (true) : (false);
|
|
3590
3605
|
var tplsource = (__tplsource_attr_not_set && __tplsource_prop_set) ? (__classDefinition.tplsource) : ((__tplsource_attr_not_set)?("default"):(components[_c].getAttribute("template-source")));
|
|
3591
3606
|
logger.debug (`template source for ${_componentName} is ${tplsource} `);
|
|
3592
3607
|
logger.debug (`type for ${_componentName} is ${__getType__(__classDefinition)} `);
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.29-beta
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.29-beta",
|
|
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",
|