qcobjects-sdk 2.4.44 → 2.4.47
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.47
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.47",
|
|
4
4
|
"description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
|
|
5
5
|
"main": "src/index.cjs",
|
|
6
6
|
"module": "src/index.mjs",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
Package("org.qcobjects.components.list",[
|
|
28
28
|
|
|
29
29
|
class ListItemComponent extends Component {
|
|
30
|
-
name="list-item";
|
|
31
30
|
shadowed= false;
|
|
32
31
|
tplsource= "inline";
|
|
33
32
|
template="<a href=\"{{value}}\">{{label}}</a>";
|
|
34
33
|
cached= false;
|
|
35
34
|
|
|
36
35
|
constructor (...o){
|
|
36
|
+
o.name="list-item";
|
|
37
37
|
super(o);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
},
|
|
41
41
|
|
|
42
42
|
class ListComponent extends Component {
|
|
43
|
-
name="list";
|
|
44
43
|
shadowed= true;
|
|
45
44
|
tplsource= "inline";
|
|
46
45
|
template= "<p>Loading...</p>";
|
|
47
46
|
|
|
48
47
|
constructor (...o){
|
|
48
|
+
o.name = "list";
|
|
49
49
|
super(o);
|
|
50
50
|
this.body.setAttribute("controllerClass","ListController");
|
|
51
51
|
this.body.setAttribute("subcomponentClass","ListItemComponent");
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
Package("org.quickcorp.components.notifications", [
|
|
28
28
|
|
|
29
29
|
class NotificationComponent extends Component {
|
|
30
|
-
name= "notification";
|
|
31
30
|
cached= false;
|
|
32
31
|
tplsource= "inline";
|
|
33
32
|
shadowed= false;
|
|
34
33
|
|
|
35
34
|
constructor (...o){
|
|
35
|
+
o.name= "notification";
|
|
36
36
|
o.body = _DOMCreateElement("div");
|
|
37
37
|
super(o);
|
|
38
38
|
|
|
@@ -28,9 +28,9 @@ Package("org.qcobjects.components.base", [
|
|
|
28
28
|
class SplashScreenComponent extends Component {
|
|
29
29
|
cached = false;
|
|
30
30
|
shadowed= true;
|
|
31
|
-
name = "splashscreen";
|
|
32
31
|
|
|
33
32
|
constructor (...o) {
|
|
33
|
+
o.name = "splashscreen";
|
|
34
34
|
super(o);
|
|
35
35
|
|
|
36
36
|
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
@@ -113,7 +113,6 @@ Package("org.qcobjects.components.base", [
|
|
|
113
113
|
|
|
114
114
|
Package("org.qcobjects.components.splashscreen",[
|
|
115
115
|
class VideoSplashScreenComponent extends SplashScreenComponent {
|
|
116
|
-
name = "videosplashscreen";
|
|
117
116
|
cached= false;
|
|
118
117
|
shadowed= true;
|
|
119
118
|
tplsource= "inline";
|
|
@@ -284,12 +283,12 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
284
283
|
|
|
285
284
|
|
|
286
285
|
constructor (...o) {
|
|
286
|
+
o.name = "videosplashscreen";
|
|
287
287
|
super(o);
|
|
288
288
|
}
|
|
289
289
|
},
|
|
290
290
|
|
|
291
291
|
class CubeSplashScreenComponent extends SplashScreenComponent {
|
|
292
|
-
name= "cubesplashscreen";
|
|
293
292
|
cached= false;
|
|
294
293
|
shadowed= true;
|
|
295
294
|
tplsource= "inline";
|
|
@@ -608,6 +607,7 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
608
607
|
`;
|
|
609
608
|
|
|
610
609
|
constructor (...o) {
|
|
610
|
+
o.name= "cubesplashscreen";
|
|
611
611
|
super(o);
|
|
612
612
|
}
|
|
613
613
|
|
|
@@ -21,37 +21,41 @@
|
|
|
21
21
|
*
|
|
22
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
23
|
* license document, but changing it is not allowed.
|
|
24
|
-
*/
|
|
25
|
-
(function() {
|
|
26
|
-
"use strict";
|
|
27
|
-
Package("org.qcobjects.i18n_messages", [
|
|
24
|
+
*/
|
|
25
|
+
(function () {
|
|
26
|
+
"use strict";
|
|
27
|
+
Package("org.qcobjects.i18n_messages", [
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
class i18n_messages extends InheritClass {
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
constructor({
|
|
32
|
+
messages = []
|
|
33
|
+
}) {
|
|
34
|
+
super({
|
|
35
|
+
messages
|
|
36
|
+
});
|
|
37
|
+
if (CONFIG.get("use_i18n")) {
|
|
38
|
+
CONFIG.set("lang", "en");
|
|
39
|
+
if (!global.get("i18n")) {
|
|
40
|
+
global.set("i18n", {
|
|
41
|
+
messages: messages
|
|
42
|
+
});
|
|
43
|
+
} else {
|
|
44
|
+
global.set("i18n", {
|
|
45
|
+
messages: global.get("i18n").messages.concat(messages)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
43
48
|
}
|
|
49
|
+
|
|
44
50
|
}
|
|
45
51
|
|
|
46
|
-
|
|
52
|
+
_load_i18n_packages_() {
|
|
53
|
+
return CONFIG.get("i18n_languages", []).map((i18n_packagename) => {
|
|
54
|
+
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
47
57
|
|
|
48
|
-
_load_i18n_packages_ (){
|
|
49
|
-
return CONFIG.get("i18n_languages",[]).map((i18n_packagename)=>{
|
|
50
|
-
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
51
|
-
});
|
|
52
58
|
}
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
(new i18n_messages())._load_i18n_packages_();
|
|
57
|
-
}).call(null);
|
|
59
|
+
]);
|
|
60
|
+
(new i18n_messages({}))._load_i18n_packages_();
|
|
61
|
+
}).call(null);
|