qcobjects-sdk 2.4.66 → 2.5.105
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.yml +47 -0
- package/README.md +0 -1
- package/VERSION +1 -1
- package/build/index.js +137 -25
- package/build/ts/org.qcobjects.base.components.js +75 -0
- package/build/ts/org.qcobjects.cloud.auth.session.data.js +122 -0
- package/build/ts/org.qcobjects.cloud.auth.session.usertoken.js +97 -0
- package/build/ts/org.qcobjects.components.grid.js +63 -0
- package/build/ts/org.qcobjects.components.js +200 -0
- package/build/{js/org.qcobjects.modal.effects.js → ts/org.qcobjects.components.list.js} +40 -29
- package/build/ts/org.qcobjects.components.notifications.js +180 -0
- package/build/ts/org.qcobjects.components.slider.js +207 -0
- package/build/{js → ts}/org.qcobjects.components.splashscreen.js +123 -130
- package/build/ts/org.qcobjects.controllers.form.js +180 -0
- package/build/ts/org.qcobjects.controllers.grid.js +269 -0
- package/build/{js → ts}/org.qcobjects.controllers.js +11 -11
- package/build/ts/org.qcobjects.controllers.list.js +235 -0
- package/build/ts/org.qcobjects.controllers.slider.js +126 -0
- package/build/ts/org.qcobjects.controllers.swagger.js +75 -0
- package/build/ts/org.qcobjects.effects.base.js +70 -0
- package/build/ts/org.qcobjects.effects.extended.js +270 -0
- package/build/ts/org.qcobjects.effects.js +49 -0
- package/build/ts/org.qcobjects.i18n_messages.js +59 -0
- package/build/{js → ts}/org.qcobjects.modal.controllers.js +16 -15
- package/build/ts/org.qcobjects.modal.effects.js +46 -0
- package/build/{js → ts}/org.qcobjects.models.js +11 -11
- package/{src/js/org.qcobjects.tools.canvas.ts → build/ts/org.qcobjects.tools.canvas.js} +16 -21
- package/build/{js → ts}/org.qcobjects.tools.js +10 -3
- package/build/ts/org.qcobjects.tools.layouts.js +74 -0
- package/build/{js → ts}/org.qcobjects.views.js +11 -11
- package/build-esbuild.js +72 -0
- package/eslint.config.mjs +88 -0
- package/package.json +67 -63
- package/postbuild.js +10 -0
- package/public/browser/index.js +9829 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +9879 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +9819 -0
- package/public/esm/index.mjs.map +7 -0
- package/public/types/index.d.ts +614 -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/index.ts +127 -2
- package/src/ts/org.qcobjects.base.components.ts +83 -0
- package/src/ts/org.qcobjects.cloud.auth.session.data.ts +134 -0
- package/src/ts/org.qcobjects.cloud.auth.session.usertoken.ts +108 -0
- package/src/ts/org.qcobjects.components.grid.ts +68 -0
- package/src/{js → ts}/org.qcobjects.components.list.ts +15 -31
- package/src/{js → ts}/org.qcobjects.components.notifications.ts +12 -12
- package/src/ts/org.qcobjects.components.slider.ts +216 -0
- package/src/{js → ts}/org.qcobjects.components.splashscreen.ts +31 -39
- package/src/ts/org.qcobjects.components.ts +226 -0
- package/src/ts/org.qcobjects.controllers.form.ts +209 -0
- package/src/ts/org.qcobjects.controllers.grid.ts +291 -0
- package/src/ts/org.qcobjects.controllers.list.ts +256 -0
- package/src/ts/org.qcobjects.controllers.slider.ts +153 -0
- package/src/ts/org.qcobjects.controllers.swagger.ts +83 -0
- package/src/{js → ts}/org.qcobjects.controllers.ts +7 -9
- package/src/ts/org.qcobjects.effects.base.ts +81 -0
- package/src/{js/org.qcobjects.effects.ts → ts/org.qcobjects.effects.extended.ts} +70 -198
- package/src/ts/org.qcobjects.effects.ts +42 -0
- package/src/ts/org.qcobjects.i18n_messages.ts +68 -0
- package/src/{js → ts}/org.qcobjects.modal.controllers.ts +12 -14
- package/src/{js → ts}/org.qcobjects.modal.effects.ts +22 -18
- package/src/{js → ts}/org.qcobjects.models.ts +8 -11
- package/src/ts/org.qcobjects.tools.canvas.ts +57 -0
- package/src/ts/org.qcobjects.tools.layouts.ts +82 -0
- package/src/{js → ts}/org.qcobjects.tools.ts +7 -1
- package/src/{js → ts}/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/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -40
- package/.gitmodules +0 -4
- package/build/QCObjects-SDK.js +0 -97
- 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/js/org.qcobjects.cloud.auth.session.data.js +0 -125
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -109
- package/build/js/org.qcobjects.components.grid.js +0 -81
- package/build/js/org.qcobjects.components.js +0 -292
- package/build/js/org.qcobjects.components.list.js +0 -71
- package/build/js/org.qcobjects.components.notifications.js +0 -179
- package/build/js/org.qcobjects.components.slider.js +0 -193
- package/build/js/org.qcobjects.controllers.form.js +0 -178
- package/build/js/org.qcobjects.controllers.grid.js +0 -258
- package/build/js/org.qcobjects.controllers.list.js +0 -228
- package/build/js/org.qcobjects.controllers.slider.js +0 -131
- package/build/js/org.qcobjects.controllers.swagger.js +0 -50
- package/build/js/org.qcobjects.effects.js +0 -417
- package/build/js/org.qcobjects.i18n_messages.js +0 -72
- package/build/js/org.qcobjects.tools.canvas.js +0 -53
- package/build/js/org.qcobjects.tools.layouts.js +0 -73
- 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/docs/CNAME +0 -1
- 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/QCObjects-SDK.ts +0 -108
- 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.data.ts +0 -135
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +0 -2
- package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +0 -128
- 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.grid.ts +0 -95
- 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.slider.ts +0 -205
- package/src/js/org.qcobjects.components.splashscreen.d.ts +0 -28
- package/src/js/org.qcobjects.components.ts +0 -336
- 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.form.ts +0 -206
- package/src/js/org.qcobjects.controllers.grid.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.grid.ts +0 -287
- package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.list.ts +0 -254
- package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.slider.ts +0 -158
- package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
- package/src/js/org.qcobjects.controllers.swagger.ts +0 -83
- 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.i18n_messages.ts +0 -82
- 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.tools.layouts.ts +0 -85
- package/src/js/org.qcobjects.views.d.ts +0 -1
- /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { ClassFactory, Controller, ControllerParams, New, Package, QCObjectsElement, QCObjectsShadowedElement, logger } from "qcobjects";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* QCObjects SDK 2.4
|
|
5
|
-
* ________________
|
|
6
|
-
*
|
|
7
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
8
|
-
*
|
|
9
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
10
|
-
* QuickCorp/QCObjects is licensed under the
|
|
11
|
-
* GNU Lesser General Public License v3.0
|
|
12
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
13
|
-
*
|
|
14
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
15
|
-
* complete source code of licensed works and modifications under the same
|
|
16
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
17
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
18
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
19
|
-
* work may be distributed under different terms and without source code for
|
|
20
|
-
* the larger work.
|
|
21
|
-
*
|
|
22
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
23
|
-
*
|
|
24
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
|
-
* license document, but changing it is not allowed.
|
|
26
|
-
*/
|
|
27
|
-
(function (global) {
|
|
28
|
-
"use strict";
|
|
29
|
-
type SliderParams = ControllerParams & {
|
|
30
|
-
duration:number;
|
|
31
|
-
slideIndex:number;
|
|
32
|
-
interval:number | null;
|
|
33
|
-
sliderHandlerName:string | null;
|
|
34
|
-
};
|
|
35
|
-
Package("org.qcobjects.controllers.slider", [
|
|
36
|
-
|
|
37
|
-
class SliderController extends Controller {
|
|
38
|
-
slideIndex = 0;
|
|
39
|
-
duration = 7100;
|
|
40
|
-
interval:any = null;
|
|
41
|
-
sliderHandlerName = "";
|
|
42
|
-
_componentRoot: QCObjectsElement | QCObjectsShadowedElement | HTMLElement | ShadowRoot | undefined;
|
|
43
|
-
|
|
44
|
-
constructor({component, dependencies= [], duration = 7100, slideIndex=0, interval = null, sliderHandlerName = null}:SliderParams) {
|
|
45
|
-
super({component, dependencies, duration, slideIndex, interval, sliderHandlerName} as SliderParams);
|
|
46
|
-
this.component = component;
|
|
47
|
-
this._componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
48
|
-
this.sliderHandlerName = "slider_" + this.component.__instanceID.toString();
|
|
49
|
-
(global as any).set(this.sliderHandlerName, this);
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
stop() {
|
|
55
|
-
if (this.interval != null) {
|
|
56
|
-
clearInterval(this.interval);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
plusSlidesAndStop(n:number) {
|
|
61
|
-
this.stop();
|
|
62
|
-
this.plusSlides(n);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
plusSlides(n:number) {
|
|
66
|
-
this.showSlides(this.slideIndex += n);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
currentSlide(n:number) {
|
|
70
|
-
this.stop();
|
|
71
|
-
this.showSlides(this.slideIndex = n);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
automate() {
|
|
75
|
-
this.interval = setInterval(() => {
|
|
76
|
-
this.plusSlides(1);
|
|
77
|
-
}, this.duration);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
showSlides(n:number) {
|
|
81
|
-
const slides = (this._componentRoot as QCObjectsElement)?.subelements(".qcoSlides");
|
|
82
|
-
const dots = (this._componentRoot as QCObjectsElement)?.subelements(".qcoSlider__dots--dot");
|
|
83
|
-
|
|
84
|
-
if (n > (slides.length - 1)) {
|
|
85
|
-
this.slideIndex = 0;
|
|
86
|
-
}
|
|
87
|
-
if (n < 0) {
|
|
88
|
-
this.slideIndex = 0;
|
|
89
|
-
}
|
|
90
|
-
slides.filter((slide, index)=> {return index!== this.slideIndex;}).map((slide) => {
|
|
91
|
-
return (New(ClassFactory("Fade"),{})).apply(slide, 1, 0);
|
|
92
|
-
});
|
|
93
|
-
dots.filter((dot, index)=> {return index!== this.slideIndex;}).map((dot) => {
|
|
94
|
-
return dot.classList.remove("active");
|
|
95
|
-
});
|
|
96
|
-
try {
|
|
97
|
-
dots[this.slideIndex].classList.add("active");
|
|
98
|
-
} catch (e:any) {
|
|
99
|
-
logger.debug(`Something went wrong when trying to activate a slide: ${this.slideIndex} - ${e.message}`);
|
|
100
|
-
}
|
|
101
|
-
setTimeout( () => {
|
|
102
|
-
slides.filter((slide, index)=> {return index!== this.slideIndex;}).map((slide) => {
|
|
103
|
-
slide.style.display = "none";
|
|
104
|
-
return slide.style.display;
|
|
105
|
-
});
|
|
106
|
-
try {
|
|
107
|
-
slides[this.slideIndex].style.display = "block";
|
|
108
|
-
(New(ClassFactory("Fade"), {})).apply(slides[this.slideIndex], 0, 1);
|
|
109
|
-
|
|
110
|
-
} catch (e:any) {
|
|
111
|
-
logger.debug(`Something went wrong when trying to show a slide: ${this.slideIndex} - ${e.message}`);
|
|
112
|
-
}
|
|
113
|
-
}, 700);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
fillDots() {
|
|
117
|
-
const slides = (this._componentRoot as QCObjectsElement)?.subelements(".qcoSlides");
|
|
118
|
-
slides.map((slide:QCObjectsElement | HTMLElement, index:number) => {
|
|
119
|
-
const dotHTML = document.createElement("span");
|
|
120
|
-
const dotContent = `<span class="qcoSlider__dots--dot" onclick="global.get('${this.sliderHandlerName}').currentSlide(${index})"></span>`;
|
|
121
|
-
dotHTML.innerHTML = dotContent;
|
|
122
|
-
return (this._componentRoot as QCObjectsElement)?.subelements(".qcoSlider__dots")[0].append(dotHTML);
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
done() {
|
|
128
|
-
const slides = (this._componentRoot as QCObjectsElement)?.subelements(".qcoSlides");
|
|
129
|
-
slides.filter((slide:QCObjectsElement | HTMLElement, index)=> {return index!== this.slideIndex;}).map((slide) => {
|
|
130
|
-
slide.style.display = "none";
|
|
131
|
-
return slide.style.display;
|
|
132
|
-
});
|
|
133
|
-
setTimeout( () => {
|
|
134
|
-
this.fillDots();
|
|
135
|
-
this.slideIndex = 0;
|
|
136
|
-
this.showSlides(this.slideIndex);
|
|
137
|
-
this.automate();
|
|
138
|
-
}, 3000);
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
]);
|
|
145
|
-
|
|
146
|
-
})((typeof module === "object" && typeof module.exports === "object") ? (
|
|
147
|
-
module.exports = (typeof globalThis !== "undefined"
|
|
148
|
-
? globalThis
|
|
149
|
-
: typeof self !== "undefined"
|
|
150
|
-
? self
|
|
151
|
-
: typeof window !== "undefined"
|
|
152
|
-
? window
|
|
153
|
-
: typeof global !== "undefined"
|
|
154
|
-
? global
|
|
155
|
-
: {})
|
|
156
|
-
) : ((typeof global === "object") ? (global) : (
|
|
157
|
-
(typeof window === "object") ? (window) : ({})
|
|
158
|
-
)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { CONFIG, Controller, New, Package, SourceCSS, SourceJS } from "qcobjects";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* QCObjects SDK 2.4
|
|
5
|
-
* ________________
|
|
6
|
-
*
|
|
7
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
8
|
-
*
|
|
9
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
10
|
-
* QuickCorp/QCObjects is licensed under the
|
|
11
|
-
* GNU Lesser General Public License v3.0
|
|
12
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
13
|
-
*
|
|
14
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
15
|
-
* complete source code of licensed works and modifications under the same
|
|
16
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
17
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
18
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
19
|
-
* work may be distributed under different terms and without source code for
|
|
20
|
-
* the larger work.
|
|
21
|
-
*
|
|
22
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
23
|
-
*
|
|
24
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
|
-
* license document, but changing it is not allowed.
|
|
26
|
-
*/
|
|
27
|
-
declare let SwaggerUIBundle:any;
|
|
28
|
-
declare let SwaggerUIStandalonePreset:any;
|
|
29
|
-
(function () {
|
|
30
|
-
"use strict";
|
|
31
|
-
Package("org.qcobjects.controllers.swagger", [
|
|
32
|
-
|
|
33
|
-
class SwaggerUIController extends Controller {
|
|
34
|
-
|
|
35
|
-
startSwaggerUI() {
|
|
36
|
-
// Begin Swagger UI call region
|
|
37
|
-
if (typeof SwaggerUIBundle !== "undefined") {
|
|
38
|
-
/* eslint-disable no-undef */
|
|
39
|
-
const ui = SwaggerUIBundle({
|
|
40
|
-
url: CONFIG.get("swagger-ui-url", "https://petstore.swagger.io/v2/swagger.json"),
|
|
41
|
-
dom_id: "#" + CONFIG.get("swagger-ui-dom_id", "swagger-ui"),
|
|
42
|
-
deepLinking: true,
|
|
43
|
-
presets: [
|
|
44
|
-
SwaggerUIBundle.presets.apis,
|
|
45
|
-
SwaggerUIStandalonePreset
|
|
46
|
-
],
|
|
47
|
-
plugins: [
|
|
48
|
-
SwaggerUIBundle.plugins.DownloadUrl
|
|
49
|
-
],
|
|
50
|
-
layout: "StandaloneLayout"
|
|
51
|
-
});
|
|
52
|
-
// End Swagger UI call region
|
|
53
|
-
(window as any).ui = ui;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
done() {
|
|
59
|
-
this.component.body.innerHTML = "<div id=\"" + CONFIG.get("swagger-ui-dom_id", "swagger-ui") + "\"></div>";
|
|
60
|
-
const swaggerUIPackagePath = CONFIG.get("swagger-ui-package-path", "node_modules/swagger-ui-dist/");
|
|
61
|
-
|
|
62
|
-
this.dependencies?.push(New(SourceJS, {
|
|
63
|
-
url: swaggerUIPackagePath + "swagger-ui-standalone-preset.js",
|
|
64
|
-
external: CONFIG.get("swagger-ui-external", false)
|
|
65
|
-
}));
|
|
66
|
-
this.dependencies?.push(New(SourceCSS, {
|
|
67
|
-
url: swaggerUIPackagePath + "swagger-ui.css",
|
|
68
|
-
external: CONFIG.get("swagger-ui-external", false)
|
|
69
|
-
}));
|
|
70
|
-
this.dependencies?.push(New(SourceJS, {
|
|
71
|
-
url: swaggerUIPackagePath + "swagger-ui-bundle.js",
|
|
72
|
-
external: CONFIG.get("swagger-ui-external", false),
|
|
73
|
-
done: () => {
|
|
74
|
-
this.startSwaggerUI();
|
|
75
|
-
}
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
]);
|
|
82
|
-
|
|
83
|
-
})();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const Fade: any;
|
|
2
|
-
declare const Move: any;
|
|
3
|
-
declare const MoveXInFromRight: any;
|
|
4
|
-
declare const MoveXInFromLeft: any;
|
|
5
|
-
declare const MoveYInFromBottom: any;
|
|
6
|
-
declare const MoveYInFromTop: any;
|
|
7
|
-
declare const RotateX: any;
|
|
8
|
-
declare const RotateY: any;
|
|
9
|
-
declare const RotateZ: any;
|
|
10
|
-
declare const Rotate: any;
|
|
11
|
-
declare const Radius: any;
|
|
12
|
-
declare const Resize: any;
|
|
13
|
-
declare const WipeLeft: any;
|
|
14
|
-
declare const WipeRight: any;
|
|
15
|
-
declare const WipeUp: any;
|
|
16
|
-
declare const WipeDown: any;
|
|
17
|
-
declare const ModalFade: any;
|
|
18
|
-
declare const ModalMoveDown: any;
|
|
19
|
-
declare const ModalMoveUp: any;
|
|
20
|
-
export { Fade, Move, MoveXInFromRight, MoveXInFromLeft, MoveYInFromBottom, MoveYInFromTop, RotateX, RotateY, RotateZ, Rotate, Radius, Resize, WipeLeft, WipeRight, WipeUp, WipeDown, ModalFade, ModalMoveDown, ModalMoveUp };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { Package, InheritClass, CONFIG, Import } from "qcobjects";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* QCObjects SDK 2.4
|
|
5
|
-
* ________________
|
|
6
|
-
*
|
|
7
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
8
|
-
*
|
|
9
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
10
|
-
* QuickCorp/QCObjects is licensed under the
|
|
11
|
-
* GNU Lesser General Public License v3.0
|
|
12
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
13
|
-
*
|
|
14
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
15
|
-
* complete source code of licensed works and modifications under the same
|
|
16
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
17
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
18
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
19
|
-
* work may be distributed under different terms and without source code for
|
|
20
|
-
* the larger work.
|
|
21
|
-
*
|
|
22
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
23
|
-
*
|
|
24
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
25
|
-
* license document, but changing it is not allowed.
|
|
26
|
-
*/
|
|
27
|
-
(function (global:any) {
|
|
28
|
-
"use strict";
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line camelcase
|
|
31
|
-
class i18n_messages extends InheritClass {
|
|
32
|
-
|
|
33
|
-
constructor({
|
|
34
|
-
messages = []
|
|
35
|
-
}) {
|
|
36
|
-
super({
|
|
37
|
-
messages
|
|
38
|
-
});
|
|
39
|
-
if (CONFIG.get("use_i18n", false)) {
|
|
40
|
-
CONFIG.set("lang", "en");
|
|
41
|
-
if (!global.get("i18n")) {
|
|
42
|
-
global.set("i18n", {
|
|
43
|
-
messages
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
global.set("i18n", {
|
|
47
|
-
messages: global.get("i18n").messages.concat(messages)
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
_load_i18n_packages_() {
|
|
55
|
-
// eslint-disable-next-line array-callback-return, camelcase
|
|
56
|
-
return CONFIG.get("i18n_languages", []).map((i18n_packagename: any) => {
|
|
57
|
-
// eslint-disable-next-line camelcase
|
|
58
|
-
Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
Package("org.qcobjects.i18n_messages", [
|
|
65
|
-
// eslint-disable-next-line camelcase
|
|
66
|
-
i18n_messages
|
|
67
|
-
]);
|
|
68
|
-
// eslint-disable-next-line new-cap
|
|
69
|
-
(new i18n_messages({}))._load_i18n_packages_();
|
|
70
|
-
})((typeof module === "object" && typeof module.exports === "object") ? (
|
|
71
|
-
module.exports = (typeof globalThis !== "undefined"
|
|
72
|
-
? globalThis
|
|
73
|
-
: typeof self !== "undefined"
|
|
74
|
-
? self
|
|
75
|
-
: typeof window !== "undefined"
|
|
76
|
-
? window
|
|
77
|
-
: typeof global !== "undefined"
|
|
78
|
-
? global
|
|
79
|
-
: {})
|
|
80
|
-
) : ((typeof global === "object") ? (global) : (
|
|
81
|
-
(typeof window === "object") ? (window) : ({})
|
|
82
|
-
)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* eslint-disable array-callback-return */
|
|
2
|
-
/**
|
|
3
|
-
* QCObjects SDK 2.4
|
|
4
|
-
* ________________
|
|
5
|
-
*
|
|
6
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
7
|
-
*
|
|
8
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
9
|
-
* QuickCorp/QCObjects is licensed under the
|
|
10
|
-
* GNU Lesser General Public License v3.0
|
|
11
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
12
|
-
*
|
|
13
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
14
|
-
* complete source code of licensed works and modifications under the same
|
|
15
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
16
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
17
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
18
|
-
* work may be distributed under different terms and without source code for
|
|
19
|
-
* the larger work.
|
|
20
|
-
*
|
|
21
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
22
|
-
*
|
|
23
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
24
|
-
* license document, but changing it is not allowed.
|
|
25
|
-
*/
|
|
26
|
-
"use strict";
|
|
27
|
-
|
|
28
|
-
import { CONFIG, InheritClass, New, Package, SourceCSS, Tag } from "qcobjects";
|
|
29
|
-
import { Fade, MoveXInFromLeft, MoveXInFromRight, MoveYInFromBottom } from "./org.qcobjects.effects";
|
|
30
|
-
|
|
31
|
-
(function() {
|
|
32
|
-
Package("org.qcobjects.tools.layouts",[
|
|
33
|
-
|
|
34
|
-
class BasicLayout extends InheritClass {
|
|
35
|
-
dependencies:any[] = [];
|
|
36
|
-
|
|
37
|
-
constructor ({component = null, dependencies = []}) {
|
|
38
|
-
super({component, dependencies});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
load (){
|
|
42
|
-
this.dependencies.push(New(SourceCSS,{
|
|
43
|
-
external:!(CONFIG.get("useLocalSDK",false)),
|
|
44
|
-
url:(CONFIG.get("useLocalSDK",false))?("css/basic-layout.css"):(CONFIG.get("remoteSDKPath",false)+"css/basic-layout.css")
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
coloredBorder (){
|
|
49
|
-
/*
|
|
50
|
-
* A helper function to visualize the layout borders
|
|
51
|
-
* Usage: BasicLayout.coloredBorder()
|
|
52
|
-
*/
|
|
53
|
-
setTimeout(function (){
|
|
54
|
-
Tag("nav").map((element:HTMLElement)=>{element.style.border="20px solid #3333";});
|
|
55
|
-
Tag("nav").map((element:HTMLElement)=>{element.style.backgroundColor="#129999";});
|
|
56
|
-
Tag("component>footer").map((element:HTMLElement)=>{element.style.background="#876";});
|
|
57
|
-
Tag("component>div").map((element:HTMLElement)=>{element.style.border="3px dashed #fff";});
|
|
58
|
-
Tag("component>section").map((element:HTMLElement)=>{element.style.border="3px solid #000";});
|
|
59
|
-
Tag("component>section").map((element:HTMLElement)=>{element.style.backgroundColor="#fffaaa";});
|
|
60
|
-
|
|
61
|
-
Tag("component>article").map((element:HTMLElement)=>{element.style.border="3px dotted #000";});
|
|
62
|
-
Tag("component>header").map((element:HTMLElement)=>{element.style.background="#789";});
|
|
63
|
-
Tag("component>footer").map((element:HTMLElement)=>{element.style.background="#876";});
|
|
64
|
-
Tag("component>article:nth-child(1)").map((element:HTMLElement)=>{element.style.border="1px solid #444";});
|
|
65
|
-
Tag("component>article:nth-child(1)").map((element:HTMLElement)=>{element.style.backgroundColor="#555aaa";});
|
|
66
|
-
Tag("component>article:nth-child(2)").map((element:HTMLElement)=>{element.style.backgroundColor="#aaa333";});
|
|
67
|
-
Tag("component>article:nth-child(3)").map((element:HTMLElement)=>{element.style.backgroundColor="#54da82";});
|
|
68
|
-
Tag("*").map((element:HTMLElement)=>{element.style.color="#fff";});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Tag("component>article").map((element:HTMLElement)=>Fade.apply(element,0,1));
|
|
72
|
-
Tag("component>footer").map((element:HTMLElement)=>Fade.apply(element,0,1));
|
|
73
|
-
Tag("component>header").map((element:HTMLElement)=>Fade.apply(element,0,1));
|
|
74
|
-
Tag("nav").map((element:HTMLElement)=>{element.style.display="block";element.style.width=element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString() ;MoveXInFromLeft.apply(element);});
|
|
75
|
-
Tag("component>article").map((element:HTMLElement)=>{element.style.display="block";element.style.height=element.offsetParent?.scrollHeight.toString() || element.clientHeight.toString();MoveYInFromBottom.apply(element);});
|
|
76
|
-
Tag("component>article:nth-child(2)").map((element:HTMLElement)=>{element.style.display="block";element.style.width=element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString();MoveXInFromRight.apply(element);});
|
|
77
|
-
},300);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
]);
|
|
84
|
-
|
|
85
|
-
})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|