qcobjects-sdk 2.4.64 → 2.5.105-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/.github/workflows/npmpublish-beta.yml +4 -2
- package/.github/workflows/npmpublish-lts.yml +4 -2
- package/.github/workflows/npmpublish-main.yml +5 -3
- package/VERSION +1 -1
- package/build/QCObjects-SDK.js +83 -41
- package/build/index.js +17 -7
- package/build/js/org.qcobjects.base.components.js +75 -0
- package/build/js/org.qcobjects.cloud.auth.session.data.js +98 -101
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +68 -80
- package/build/js/org.qcobjects.components.grid.js +35 -53
- package/build/js/org.qcobjects.components.js +145 -237
- package/build/js/org.qcobjects.components.list.js +36 -45
- package/build/js/org.qcobjects.components.notifications.js +107 -106
- package/build/js/org.qcobjects.components.slider.js +183 -169
- package/build/js/org.qcobjects.components.splashscreen.js +123 -130
- package/build/js/org.qcobjects.controllers.form.js +149 -147
- package/build/js/org.qcobjects.controllers.grid.js +226 -215
- package/build/js/org.qcobjects.controllers.js +11 -11
- package/build/js/org.qcobjects.controllers.list.js +195 -188
- package/build/js/org.qcobjects.controllers.slider.js +101 -106
- package/build/js/org.qcobjects.controllers.swagger.js +71 -46
- package/build/js/org.qcobjects.effects.base.js +86 -0
- package/build/js/org.qcobjects.effects.extended.js +318 -0
- package/build/js/org.qcobjects.effects.js +26 -394
- package/build/js/org.qcobjects.i18n_messages.js +33 -46
- package/build/js/org.qcobjects.modal.controllers.js +16 -15
- package/build/js/org.qcobjects.modal.effects.js +23 -28
- package/build/js/org.qcobjects.models.js +11 -11
- package/build/js/org.qcobjects.tools.canvas.js +28 -27
- package/build/js/org.qcobjects.tools.js +10 -3
- package/build/js/org.qcobjects.tools.layouts.js +46 -45
- package/build/js/org.qcobjects.views.js +11 -11
- package/build-esbuild.js +72 -0
- package/eslint.config.mjs +88 -0
- package/package.json +66 -59
- package/postbuild.js +10 -0
- package/public/browser/index.js +9902 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +9894 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +9894 -0
- package/public/esm/index.mjs.map +7 -0
- package/public/types/index.d.ts +698 -0
- package/spec/helpers/mock-sdk.helper.ts +2 -0
- package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
- package/spec/support/jasmine.json +7 -4
- package/src/QCObjects-SDK.ts +72 -53
- package/src/js/org.qcobjects.base.components.ts +83 -0
- package/src/js/org.qcobjects.cloud.auth.session.data.ts +98 -99
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +72 -92
- package/src/js/org.qcobjects.components.grid.ts +31 -58
- package/src/js/org.qcobjects.components.list.ts +15 -31
- package/src/js/org.qcobjects.components.notifications.ts +12 -12
- package/src/js/org.qcobjects.components.slider.ts +182 -171
- package/src/js/org.qcobjects.components.splashscreen.ts +31 -39
- package/src/js/org.qcobjects.components.ts +151 -261
- package/src/js/org.qcobjects.controllers.form.ts +151 -148
- package/src/js/org.qcobjects.controllers.grid.ts +226 -222
- package/src/js/org.qcobjects.controllers.list.ts +207 -205
- package/src/js/org.qcobjects.controllers.slider.ts +120 -125
- package/src/js/org.qcobjects.controllers.swagger.ts +51 -51
- package/src/js/org.qcobjects.controllers.ts +7 -9
- package/src/js/org.qcobjects.effects.base.ts +97 -0
- package/src/js/org.qcobjects.effects.extended.ts +350 -0
- package/src/js/org.qcobjects.effects.ts +6 -394
- package/src/js/org.qcobjects.i18n_messages.ts +37 -51
- package/src/js/org.qcobjects.modal.controllers.ts +12 -14
- package/src/js/org.qcobjects.modal.effects.ts +22 -18
- package/src/js/org.qcobjects.models.ts +8 -11
- package/src/js/org.qcobjects.tools.canvas.ts +26 -28
- package/src/js/org.qcobjects.tools.layouts.ts +44 -47
- package/src/js/org.qcobjects.tools.ts +7 -1
- package/src/js/org.qcobjects.views.ts +9 -8
- package/src/types/global/index.d.ts +181 -0
- package/transpile.js +65 -0
- package/tsconfig.d.json +65 -3
- package/tsconfig.jasmine.json +64 -0
- package/tsconfig.json +71 -7
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -6
- package/build/css/base-modal.css +0 -43
- package/build/css/basic-layout-embedded-nav.css +0 -14
- package/build/css/basic-layout.css +0 -76
- package/build/css/components/horizontal-list.css +0 -64
- package/build/css/components/list.css +0 -57
- package/build/css/components/splashscreen.css +0 -111
- package/build/css/modal.css +0 -46
- package/build/index.cjs +0 -4
- package/build/index.mjs +0 -2
- package/build/templates/components/modalyoulose.tpl.html +0 -3
- package/build/templates/components/modalyouwin.tpl.html +0 -4
- package/build/templates/components/splashscreen.tpl.html +0 -128
- package/build/templates/components/swagger-ui.tpl.html +0 -22
- package/public/QCObjects-SDK.js +0 -696
- package/public/QCObjects-SDK.js.map +0 -7
- package/public/css/base-modal.css +0 -2
- package/public/css/base-modal.css.map +0 -7
- package/public/css/basic-layout-embedded-nav.css +0 -2
- package/public/css/basic-layout-embedded-nav.css.map +0 -7
- package/public/css/basic-layout.css +0 -2
- package/public/css/basic-layout.css.map +0 -7
- package/public/css/components/horizontal-list.css +0 -2
- package/public/css/components/horizontal-list.css.map +0 -7
- package/public/css/components/list.css +0 -2
- package/public/css/components/list.css.map +0 -7
- package/public/css/components/splashscreen.css +0 -2
- package/public/css/components/splashscreen.css.map +0 -7
- package/public/css/modal.css +0 -2
- package/public/css/modal.css.map +0 -7
- package/public/index.cjs +0 -4
- package/public/index.js +0 -27
- package/public/index.mjs +0 -2
- package/public/templates/components/modalyoulose.tpl.html +0 -3
- package/public/templates/components/modalyouwin.tpl.html +0 -4
- package/public/templates/components/splashscreen.tpl.html +0 -128
- package/public/templates/components/swagger-ui.tpl.html +0 -22
- package/src/QCObjects-SDK.d.ts +0 -26
- package/src/index.cts +0 -2
- package/src/index.d.ts +0 -2
- package/src/index.mts +0 -2
- package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +0 -1
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +0 -2
- package/src/js/org.qcobjects.components.d.ts +0 -10
- package/src/js/org.qcobjects.components.grid.d.ts +0 -3
- package/src/js/org.qcobjects.components.list.d.ts +0 -3
- package/src/js/org.qcobjects.components.notifications.d.ts +0 -1
- package/src/js/org.qcobjects.components.slider.d.ts +0 -1
- package/src/js/org.qcobjects.components.splashscreen.d.ts +0 -28
- package/src/js/org.qcobjects.controllers.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.form.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.grid.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
- package/src/js/org.qcobjects.effects.d.ts +0 -20
- package/src/js/org.qcobjects.i18n_messages.d.ts +0 -1
- package/src/js/org.qcobjects.modal.controllers.d.ts +0 -1
- package/src/js/org.qcobjects.modal.effects.d.ts +0 -1
- package/src/js/org.qcobjects.models.d.ts +0 -1
- package/src/js/org.qcobjects.tools.canvas.d.ts +0 -1
- package/src/js/org.qcobjects.tools.d.ts +0 -1
- package/src/js/org.qcobjects.tools.layouts.d.ts +0 -1
- package/src/js/org.qcobjects.views.d.ts +0 -1
- /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -24,130 +24,58 @@
|
|
|
24
24
|
*/
|
|
25
25
|
"use strict";
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.SwaggerUIComponent = exports.
|
|
27
|
+
exports.SwaggerUIComponent = exports.ModalComponent = exports.ModalEnclosureComponent = exports.EmailField = exports.TextField = exports.InputField = exports.ButtonField = exports.ShadowedComponent = exports.FormField = void 0;
|
|
28
28
|
const qcobjects_1 = require("qcobjects");
|
|
29
29
|
const org_qcobjects_effects_1 = require("./org.qcobjects.effects");
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
o.name = (typeof o.name !== "undefined") ? (o.name) : ("form-field");
|
|
43
|
-
super(o);
|
|
44
|
-
this.cached = false;
|
|
45
|
-
this.reload = true;
|
|
46
|
-
}
|
|
47
|
-
createBindingEvents() {
|
|
48
|
-
let _objList;
|
|
49
|
-
if (typeof this.fieldType === "undefined" || this.fieldType == null) {
|
|
50
|
-
_objList = this.body.subelements("*[data-field]"); // every child with data-field set
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
_objList = this.body.subelements(this.fieldType + "[data-field]"); // every child with data-field set and tagname is equal to fieldType property
|
|
54
|
-
}
|
|
55
|
-
for (let _datak = 0; _datak < _objList.length; _datak++) {
|
|
56
|
-
const _obj = _objList[_datak];
|
|
57
|
-
_obj.addEventListener("change", () => {
|
|
58
|
-
qcobjects_1.logger.debug("Executing change event binding");
|
|
59
|
-
this.executeBindings();
|
|
60
|
-
});
|
|
61
|
-
_obj.addEventListener("blur", () => {
|
|
62
|
-
qcobjects_1.logger.debug("Executing change event binding");
|
|
63
|
-
this.executeBindings();
|
|
64
|
-
});
|
|
65
|
-
_obj.addEventListener("focus", () => {
|
|
66
|
-
qcobjects_1.logger.debug("Executing change event binding");
|
|
67
|
-
this.executeBindings();
|
|
68
|
-
});
|
|
69
|
-
_obj.addEventListener("keydown", () => {
|
|
70
|
-
qcobjects_1.logger.debug("Executing keydown event binding");
|
|
71
|
-
this.executeBindings();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
executeBinding(_obj) {
|
|
76
|
-
const _datamodel = _obj.getAttribute("data-field");
|
|
77
|
-
qcobjects_1.logger.debug("Binding " + _datamodel + " for " + this.name);
|
|
78
|
-
this.data[_datamodel] = _obj.value;
|
|
79
|
-
}
|
|
80
|
-
executeBindings() {
|
|
81
|
-
let _objList;
|
|
82
|
-
if (typeof this.fieldType === "undefined" || this.fieldType == null) {
|
|
83
|
-
_objList = this.body.subelements("*[data-field]"); // every child with data-field set
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
_objList = this.body.subelements(this.fieldType + "[data-field]"); // every child with data-field set and tagname is equal to fieldType property
|
|
87
|
-
}
|
|
88
|
-
for (let _datak = 0; _datak < _objList.length; _datak++) {
|
|
89
|
-
const _obj = _objList[_datak];
|
|
90
|
-
const _datamodel = _obj.getAttribute("data-field");
|
|
91
|
-
qcobjects_1.logger.debug("Binding " + _datamodel + " for " + this.name);
|
|
92
|
-
this.data[_datamodel] = _obj.value;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
done(standardResponse) {
|
|
96
|
-
const _ret_ = super.done(standardResponse);
|
|
97
|
-
this.executeBindings();
|
|
98
|
-
this.createBindingEvents();
|
|
99
|
-
qcobjects_1.logger.debug("Field loaded: " + this.fieldType + "[name=" + this.name + "]");
|
|
100
|
-
return _ret_;
|
|
101
|
-
}
|
|
30
|
+
const org_qcobjects_base_components_1 = require("./org.qcobjects.base.components");
|
|
31
|
+
Object.defineProperty(exports, "FormField", { enumerable: true, get: function () { return org_qcobjects_base_components_1.FormField; } });
|
|
32
|
+
class ShadowedComponent extends qcobjects_1.Component {
|
|
33
|
+
container = null;
|
|
34
|
+
shadowed = true;
|
|
35
|
+
cached = false;
|
|
36
|
+
controller = null;
|
|
37
|
+
view = null;
|
|
38
|
+
data = {};
|
|
39
|
+
constructor(o) {
|
|
40
|
+
o.body = (0, qcobjects_1._DOMCreateElement)("div");
|
|
41
|
+
super(o);
|
|
102
42
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
super(o);
|
|
110
|
-
this.container = null;
|
|
111
|
-
this.shadowed = true;
|
|
112
|
-
this.cached = false;
|
|
113
|
-
this.controller = null;
|
|
114
|
-
this.view = null;
|
|
115
|
-
this.data = {};
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
class ButtonField extends FormField {
|
|
119
|
-
constructor(o) {
|
|
120
|
-
o.fieldType = "button";
|
|
121
|
-
super(o);
|
|
122
|
-
}
|
|
43
|
+
}
|
|
44
|
+
exports.ShadowedComponent = ShadowedComponent;
|
|
45
|
+
class ButtonField extends org_qcobjects_base_components_1.FormField {
|
|
46
|
+
constructor(o) {
|
|
47
|
+
o.fieldType = "button";
|
|
48
|
+
super(o);
|
|
123
49
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
50
|
+
}
|
|
51
|
+
exports.ButtonField = ButtonField;
|
|
52
|
+
class InputField extends org_qcobjects_base_components_1.FormField {
|
|
53
|
+
constructor(o) {
|
|
54
|
+
o.fieldType = "input";
|
|
55
|
+
super(o);
|
|
129
56
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
57
|
+
}
|
|
58
|
+
exports.InputField = InputField;
|
|
59
|
+
class TextField extends org_qcobjects_base_components_1.FormField {
|
|
60
|
+
constructor(o) {
|
|
61
|
+
o.fieldType = "textarea";
|
|
62
|
+
super(o);
|
|
135
63
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
64
|
+
}
|
|
65
|
+
exports.TextField = TextField;
|
|
66
|
+
class EmailField extends org_qcobjects_base_components_1.FormField {
|
|
67
|
+
constructor(o) {
|
|
68
|
+
o.fieldType = "input";
|
|
69
|
+
super(o);
|
|
141
70
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.template = `
|
|
71
|
+
}
|
|
72
|
+
exports.EmailField = EmailField;
|
|
73
|
+
class ModalEnclosureComponent extends qcobjects_1.Component {
|
|
74
|
+
name = "modalenclosure";
|
|
75
|
+
tplsource = "inline";
|
|
76
|
+
cached = false;
|
|
77
|
+
basePath = qcobjects_1.CONFIG.get("modalBasePath", qcobjects_1.CONFIG.get("remoteSDKPath", ""));
|
|
78
|
+
template = `
|
|
151
79
|
<!-- The Modal -->
|
|
152
80
|
<style>
|
|
153
81
|
@import url('https://sdk.qcobjects.dev/css/modal.css');
|
|
@@ -162,131 +90,111 @@ const _top = (typeof module === "object" && typeof module.exports === "object")
|
|
|
162
90
|
|
|
163
91
|
</div>
|
|
164
92
|
`;
|
|
165
|
-
|
|
166
|
-
|
|
93
|
+
data = {};
|
|
94
|
+
constructor(o) {
|
|
95
|
+
o.body = (0, qcobjects_1._DOMCreateElement)("div");
|
|
96
|
+
super(o);
|
|
167
97
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
98
|
+
}
|
|
99
|
+
exports.ModalEnclosureComponent = ModalEnclosureComponent;
|
|
100
|
+
class ModalComponent extends qcobjects_1.Component {
|
|
101
|
+
name = "modal";
|
|
102
|
+
cached = false;
|
|
103
|
+
modalEnclosureComponentClass = "ModalEnclosureComponent";
|
|
104
|
+
controller = null;
|
|
105
|
+
view = null;
|
|
106
|
+
tplsource = "none";
|
|
107
|
+
closeOnClickOutside = false;
|
|
108
|
+
data = {
|
|
109
|
+
content: "",
|
|
110
|
+
modalId: 0
|
|
111
|
+
};
|
|
112
|
+
submodal = null;
|
|
113
|
+
__instanceID;
|
|
114
|
+
basePath;
|
|
115
|
+
subcomponents;
|
|
116
|
+
body;
|
|
117
|
+
templateURI;
|
|
118
|
+
constructor(o) {
|
|
119
|
+
o.basePath = qcobjects_1.CONFIG.get("modalBasePath", qcobjects_1.CONFIG.get("remoteSDKPath", ""));
|
|
120
|
+
super(o);
|
|
121
|
+
this.data.modalId = this.__instanceID;
|
|
122
|
+
const submodal = (0, qcobjects_1.New)((0, qcobjects_1.ClassFactory)(this.modalEnclosureComponentClass), {
|
|
123
|
+
name: this.name,
|
|
124
|
+
basePath: this.basePath,
|
|
125
|
+
data: this.data
|
|
126
|
+
});
|
|
127
|
+
this.subcomponents.push(submodal);
|
|
128
|
+
this.submodal = submodal;
|
|
129
|
+
if (submodal.tplsource === "none") {
|
|
130
|
+
this.body.innerHTML = submodal.parsedAssignmentText;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this.body.append(submodal.body);
|
|
198
134
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
135
|
+
}
|
|
136
|
+
modal() {
|
|
137
|
+
const modalId = this.data.modalId;
|
|
138
|
+
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal").map((modal) => {
|
|
139
|
+
modal.style.display = "block";
|
|
140
|
+
return (new org_qcobjects_effects_1.ModalFade()).apply(modal, 0, 1);
|
|
141
|
+
});
|
|
142
|
+
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal .modal-content").map((modalcontent) => {
|
|
143
|
+
return org_qcobjects_effects_1.ModalMoveDown.apply(modalcontent, 0, -document.body.clientHeight, 0, 0);
|
|
144
|
+
});
|
|
145
|
+
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal .modal-content .close").map((closebtn) => {
|
|
146
|
+
return closebtn.addEventListener("click", () => {
|
|
147
|
+
this.close();
|
|
148
|
+
}, false);
|
|
149
|
+
});
|
|
150
|
+
if (this.closeOnClickOutside) {
|
|
151
|
+
window.addEventListener("click", () => {
|
|
152
|
+
this.close();
|
|
153
|
+
}, false);
|
|
218
154
|
}
|
|
219
|
-
|
|
220
|
-
|
|
155
|
+
}
|
|
156
|
+
close() {
|
|
157
|
+
const modalId = this.data.modalId;
|
|
158
|
+
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal").map((modal) => {
|
|
159
|
+
modal.style.display = "block";
|
|
160
|
+
return (new org_qcobjects_effects_1.ModalFade({ duration: 3000 })).apply(modal, 1, 0);
|
|
161
|
+
});
|
|
162
|
+
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal .modal-content").map(function (modalcontent) {
|
|
163
|
+
return org_qcobjects_effects_1.ModalMoveUp.apply(modalcontent, 0, 0, 0, -document.body.clientHeight);
|
|
164
|
+
});
|
|
165
|
+
setTimeout(function () {
|
|
221
166
|
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal").map((modal) => {
|
|
222
|
-
modal.style.display = "
|
|
223
|
-
return
|
|
224
|
-
});
|
|
225
|
-
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal .modal-content").map(function (modalcontent) {
|
|
226
|
-
return (new org_qcobjects_effects_1.ModalMoveUp({})).apply(modalcontent, 0, 0, 0, -document.body.clientHeight);
|
|
227
|
-
});
|
|
228
|
-
setTimeout(function () {
|
|
229
|
-
(0, qcobjects_1.Tag)("#modalInstance_" + modalId + ".modal").map((modal) => {
|
|
230
|
-
modal.style.display = "none";
|
|
231
|
-
return true;
|
|
232
|
-
});
|
|
233
|
-
}, 900);
|
|
234
|
-
}
|
|
235
|
-
rebuild() {
|
|
236
|
-
const _ret_ = super.rebuild();
|
|
237
|
-
this.templateURI = (0, qcobjects_1.ComponentURI)({
|
|
238
|
-
"COMPONENTS_BASE_PATH": qcobjects_1.CONFIG.get("componentsBasePath", ""),
|
|
239
|
-
"COMPONENT_NAME": "modal",
|
|
240
|
-
"TPLEXTENSION": qcobjects_1.CONFIG.get("tplextension", ""),
|
|
241
|
-
"TPL_SOURCE": "default" // here is always default in order to get the right uri
|
|
167
|
+
modal.style.display = "none";
|
|
168
|
+
return true;
|
|
242
169
|
});
|
|
243
|
-
|
|
244
|
-
}
|
|
170
|
+
}, 900);
|
|
245
171
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
172
|
+
rebuild() {
|
|
173
|
+
const _ret_ = super.rebuild();
|
|
174
|
+
this.templateURI = (0, qcobjects_1.ComponentURI)({
|
|
175
|
+
"COMPONENTS_BASE_PATH": qcobjects_1.CONFIG.get("componentsBasePath", ""),
|
|
176
|
+
"COMPONENT_NAME": "modal",
|
|
177
|
+
"TPLEXTENSION": qcobjects_1.CONFIG.get("tplextension", ""),
|
|
178
|
+
"TPL_SOURCE": "default" // here is always default in order to get the right uri
|
|
179
|
+
});
|
|
180
|
+
return _ret_; // parent call
|
|
254
181
|
}
|
|
255
|
-
|
|
256
|
-
ShadowedComponent,
|
|
257
|
-
ButtonField,
|
|
258
|
-
InputField,
|
|
259
|
-
TextField,
|
|
260
|
-
EmailField,
|
|
261
|
-
ModalEnclosureComponent,
|
|
262
|
-
ModalComponent,
|
|
263
|
-
SwaggerUIComponent
|
|
264
|
-
]);
|
|
265
|
-
global.FormField = FormField;
|
|
266
|
-
global.ShadowedComponent = ShadowedComponent;
|
|
267
|
-
global.ButtonField = ButtonField;
|
|
268
|
-
global.InputField = InputField;
|
|
269
|
-
global.TextField = TextField;
|
|
270
|
-
global.EmailField = EmailField;
|
|
271
|
-
global.ModalEnclosureComponent = ModalEnclosureComponent;
|
|
272
|
-
global.ModalComponent = ModalComponent;
|
|
273
|
-
global.SwaggerUIComponent = SwaggerUIComponent;
|
|
274
|
-
})(_top);
|
|
275
|
-
const FormField = _top.FormField;
|
|
276
|
-
exports.FormField = FormField;
|
|
277
|
-
const ShadowedComponent = _top.ShadowedComponent;
|
|
278
|
-
exports.ShadowedComponent = ShadowedComponent;
|
|
279
|
-
const ButtonField = _top.ButtonField;
|
|
280
|
-
exports.ButtonField = ButtonField;
|
|
281
|
-
const InputField = _top.InputField;
|
|
282
|
-
exports.InputField = InputField;
|
|
283
|
-
const TextField = _top.TextField;
|
|
284
|
-
exports.TextField = TextField;
|
|
285
|
-
const EmailField = _top.EmailField;
|
|
286
|
-
exports.EmailField = EmailField;
|
|
287
|
-
const ModalEnclosureComponent = _top.ModalEnclosureComponent;
|
|
288
|
-
exports.ModalEnclosureComponent = ModalEnclosureComponent;
|
|
289
|
-
const ModalComponent = _top.ModalComponent;
|
|
182
|
+
}
|
|
290
183
|
exports.ModalComponent = ModalComponent;
|
|
291
|
-
|
|
184
|
+
class SwaggerUIComponent extends qcobjects_1.Component {
|
|
185
|
+
cached = false;
|
|
186
|
+
basePath = qcobjects_1.CONFIG.get("remoteSDKPath", "");
|
|
187
|
+
tplextension = "tpl.html";
|
|
188
|
+
name = "swagger-ui";
|
|
189
|
+
}
|
|
292
190
|
exports.SwaggerUIComponent = SwaggerUIComponent;
|
|
191
|
+
(0, qcobjects_1.Package)("org.qcobjects.form.components", [
|
|
192
|
+
ShadowedComponent,
|
|
193
|
+
ButtonField,
|
|
194
|
+
InputField,
|
|
195
|
+
TextField,
|
|
196
|
+
EmailField,
|
|
197
|
+
ModalEnclosureComponent,
|
|
198
|
+
ModalComponent,
|
|
199
|
+
SwaggerUIComponent
|
|
200
|
+
]);
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListItemComponent = exports.ListComponent = void 0;
|
|
4
|
-
const qcobjects_1 = require("qcobjects");
|
|
5
1
|
/**
|
|
6
|
-
* QCObjects SDK 2.
|
|
2
|
+
* QCObjects SDK 2.5
|
|
7
3
|
* ________________
|
|
8
4
|
*
|
|
9
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -26,46 +22,41 @@ const qcobjects_1 = require("qcobjects");
|
|
|
26
22
|
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
27
23
|
* license document, but changing it is not allowed.
|
|
28
24
|
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
constructor(o) {
|
|
42
|
-
o.name = "list-item";
|
|
43
|
-
super(o);
|
|
44
|
-
this.shadowed = false;
|
|
45
|
-
this.tplsource = "inline";
|
|
46
|
-
this.template = "<a href=\"{{value}}\">{{label}}</a>";
|
|
47
|
-
this.cached = false;
|
|
48
|
-
}
|
|
25
|
+
"use strict";
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.ListComponent = exports.ListItemComponent = void 0;
|
|
28
|
+
const qcobjects_1 = require("qcobjects");
|
|
29
|
+
class ListItemComponent extends qcobjects_1.Component {
|
|
30
|
+
shadowed = false;
|
|
31
|
+
tplsource = "inline";
|
|
32
|
+
template = "<a href=\"{{value}}\">{{label}}</a>";
|
|
33
|
+
cached = false;
|
|
34
|
+
constructor(o) {
|
|
35
|
+
o.name = "list-item";
|
|
36
|
+
super(o);
|
|
49
37
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
38
|
+
}
|
|
39
|
+
exports.ListItemComponent = ListItemComponent;
|
|
40
|
+
class ListComponent extends qcobjects_1.Component {
|
|
41
|
+
data;
|
|
42
|
+
shadowed = true;
|
|
43
|
+
tplsource = "inline";
|
|
44
|
+
template = "<p>Loading...</p>";
|
|
45
|
+
body;
|
|
46
|
+
shadowRoot;
|
|
47
|
+
rows;
|
|
48
|
+
subcomponents;
|
|
49
|
+
done;
|
|
50
|
+
serviceData;
|
|
51
|
+
constructor(o) {
|
|
52
|
+
o.name = "list";
|
|
53
|
+
super(o);
|
|
54
|
+
this.body.setAttribute("controllerClass", "ListController");
|
|
55
|
+
this.body.setAttribute("subcomponentClass", "ListItemComponent");
|
|
60
56
|
}
|
|
61
|
-
|
|
62
|
-
ListItemComponent,
|
|
63
|
-
ListComponent
|
|
64
|
-
]);
|
|
65
|
-
global.ListComponent = ListComponent;
|
|
66
|
-
global.ListItemComponent = ListItemComponent;
|
|
67
|
-
})(_top);
|
|
68
|
-
const ListComponent = _top.ListComponent;
|
|
57
|
+
}
|
|
69
58
|
exports.ListComponent = ListComponent;
|
|
70
|
-
|
|
71
|
-
|
|
59
|
+
(0, qcobjects_1.Package)("org.qcobjects.components.list", [
|
|
60
|
+
ListItemComponent,
|
|
61
|
+
ListComponent
|
|
62
|
+
]);
|