qcobjects-sdk 2.4.45 → 2.4.49
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 +1 -1
- package/src/QCObjects-SDK.js +6 -2
- package/src/js/org.qcobjects.components.js +10 -9
- package/src/js/org.qcobjects.components.list.js +4 -4
- package/src/js/org.qcobjects.components.notifications.js +2 -2
- package/src/js/org.qcobjects.components.slider.js +3 -3
- package/src/js/org.qcobjects.components.splashscreen.js +4 -4
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.49
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.49",
|
|
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",
|
package/src/QCObjects-SDK.js
CHANGED
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
var global = _top;
|
|
48
48
|
_top.global = global;
|
|
49
49
|
var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
|
|
50
|
+
var isNodeCommonJS = (typeof module !== "undefined") ? (true): (false);
|
|
50
51
|
var remoteImportsPath = CONFIG.get("remoteImportsPath");
|
|
51
52
|
var relativeImportPath = CONFIG.get("relativeImportPath");
|
|
52
53
|
var external = (!CONFIG.get("useLocalSDK")) ? (true) : (false);
|
|
53
|
-
if (external) {
|
|
54
|
+
if (external && !isNodeCommonJS) {
|
|
54
55
|
CONFIG.set("remoteImportsPath", "https://sdk.qcobjects.dev/v2.4/src/js/");
|
|
55
56
|
} else {
|
|
56
57
|
CONFIG.set("relativeImportPath", "qcobjects-sdk/src/js/");
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
var _imports_;
|
|
70
|
-
if (isBrowser) {
|
|
71
|
+
if (isBrowser && !isNodeCommonJS) {
|
|
71
72
|
_imports_ = [
|
|
72
73
|
Import("org.qcobjects.i18n_messages", function () {}, external),
|
|
73
74
|
Import("org.qcobjects.models", function () {}, external),
|
|
@@ -93,6 +94,9 @@
|
|
|
93
94
|
];
|
|
94
95
|
} else {
|
|
95
96
|
// non-browsers environment
|
|
97
|
+
if (isNodeCommonJS){
|
|
98
|
+
CONFIG.set("remoteImportsPath", CONFIG.get("basePath",""));
|
|
99
|
+
}
|
|
96
100
|
|
|
97
101
|
var _relative_path_ = "qcobjects-sdk/src/js/";
|
|
98
102
|
_imports_ = [
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
class FormField extends Component {
|
|
29
29
|
cached = false;
|
|
30
30
|
reload = true;
|
|
31
|
-
constructor (
|
|
31
|
+
constructor (o){
|
|
32
|
+
o.name = (typeof o.name !== "undefined")?(o.name):("form-field");
|
|
32
33
|
super(o);
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
view = null;
|
|
103
104
|
data = {};
|
|
104
105
|
|
|
105
|
-
constructor (
|
|
106
|
+
constructor (o){
|
|
106
107
|
o.body = _DOMCreateElement("div");
|
|
107
108
|
super(o);
|
|
108
109
|
}
|
|
@@ -112,14 +113,14 @@
|
|
|
112
113
|
|
|
113
114
|
|
|
114
115
|
class ButtonField extends FormField {
|
|
115
|
-
constructor(
|
|
116
|
+
constructor(o) {
|
|
116
117
|
o.fieldType = "button";
|
|
117
118
|
super(o);
|
|
118
119
|
}
|
|
119
120
|
},
|
|
120
121
|
|
|
121
122
|
class InputField extends FormField {
|
|
122
|
-
constructor(
|
|
123
|
+
constructor(o) {
|
|
123
124
|
o.fieldType = "input";
|
|
124
125
|
super(o);
|
|
125
126
|
}
|
|
@@ -127,7 +128,7 @@
|
|
|
127
128
|
},
|
|
128
129
|
|
|
129
130
|
class TextField extends FormField {
|
|
130
|
-
constructor(
|
|
131
|
+
constructor(o) {
|
|
131
132
|
o.fieldType = "textarea";
|
|
132
133
|
super(o);
|
|
133
134
|
}
|
|
@@ -135,7 +136,7 @@
|
|
|
135
136
|
},
|
|
136
137
|
|
|
137
138
|
class EmailField extends FormField {
|
|
138
|
-
constructor(
|
|
139
|
+
constructor(o) {
|
|
139
140
|
o.fieldType = "input";
|
|
140
141
|
super(o);
|
|
141
142
|
}
|
|
@@ -164,7 +165,7 @@
|
|
|
164
165
|
`;
|
|
165
166
|
|
|
166
167
|
data = {};
|
|
167
|
-
constructor(
|
|
168
|
+
constructor(o) {
|
|
168
169
|
o.body = _DOMCreateElement("div");
|
|
169
170
|
super(o);
|
|
170
171
|
}
|
|
@@ -185,7 +186,7 @@
|
|
|
185
186
|
};
|
|
186
187
|
submodal = null;
|
|
187
188
|
|
|
188
|
-
constructor(
|
|
189
|
+
constructor(o) {
|
|
189
190
|
o.basePath = CONFIG.get("modalBasePath", CONFIG.get("remoteSDKPath"));
|
|
190
191
|
super(o);
|
|
191
192
|
this.data.modalId = this.__instanceID;
|
|
@@ -263,7 +264,7 @@
|
|
|
263
264
|
tplextension = "tpl.html";
|
|
264
265
|
name = "swagger-ui";
|
|
265
266
|
|
|
266
|
-
constructor(
|
|
267
|
+
constructor(o) {
|
|
267
268
|
super(o);
|
|
268
269
|
|
|
269
270
|
}
|
|
@@ -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
|
-
constructor (
|
|
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
|
-
constructor (
|
|
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
|
-
constructor (
|
|
34
|
+
constructor (o){
|
|
35
|
+
o.name= "notification";
|
|
36
36
|
o.body = _DOMCreateElement("div");
|
|
37
37
|
super(o);
|
|
38
38
|
|
|
@@ -31,7 +31,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
31
31
|
template="<p>Loading...</p>";
|
|
32
32
|
name = "slidelist";
|
|
33
33
|
|
|
34
|
-
constructor (
|
|
34
|
+
constructor (o){
|
|
35
35
|
super(o);
|
|
36
36
|
this.body.setAttribute("controllerClass","DataGridController");
|
|
37
37
|
var subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null)?(this.body.getAttribute("subcomponentClass")):("GridItemComponent");
|
|
@@ -44,7 +44,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
44
44
|
effectClass = "Fade";
|
|
45
45
|
name = "slider_item";
|
|
46
46
|
|
|
47
|
-
constructor (
|
|
47
|
+
constructor (o) {
|
|
48
48
|
super(o);
|
|
49
49
|
this.data.slideNumber = this.data.__dataIndex+1;
|
|
50
50
|
this.template= `
|
|
@@ -65,7 +65,7 @@ Package("org.qcobjects.components.slider",[
|
|
|
65
65
|
class SliderComponent extends Component {
|
|
66
66
|
name = "slider";
|
|
67
67
|
|
|
68
|
-
constructor (
|
|
68
|
+
constructor (o) {
|
|
69
69
|
super(o);
|
|
70
70
|
this.template= `
|
|
71
71
|
<style>
|
|
@@ -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";
|
|
@@ -607,7 +606,8 @@ Package("org.qcobjects.components.splashscreen",[
|
|
|
607
606
|
|
|
608
607
|
`;
|
|
609
608
|
|
|
610
|
-
constructor (
|
|
609
|
+
constructor (o) {
|
|
610
|
+
o.name= "cubesplashscreen";
|
|
611
611
|
super(o);
|
|
612
612
|
}
|
|
613
613
|
|