qcobjects-sdk 2.5.105-beta → 2.6.2
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 +49 -0
- package/.gitmodules +4 -0
- package/CHANGELOG.md +15 -0
- package/LICENSE.txt +21 -0
- package/README.md +7 -1
- package/VERSION +1 -1
- package/build/index.js +128 -35
- package/build/{js → ts}/org.qcobjects.cloud.auth.session.data.js +3 -12
- package/build/{js → ts}/org.qcobjects.cloud.auth.session.usertoken.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.grid.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.list.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.notifications.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.slider.js +3 -12
- package/build/{js → ts}/org.qcobjects.components.splashscreen.js +3 -12
- package/build/{js → ts}/org.qcobjects.controllers.form.js +4 -13
- package/build/{js → ts}/org.qcobjects.controllers.grid.js +3 -12
- package/build/ts/org.qcobjects.controllers.js +25 -0
- package/build/{js → ts}/org.qcobjects.controllers.list.js +3 -12
- package/build/{js → ts}/org.qcobjects.controllers.slider.js +3 -12
- package/build/{js → ts}/org.qcobjects.controllers.swagger.js +3 -12
- package/build/{js → ts}/org.qcobjects.effects.base.js +3 -19
- package/build/{js → ts}/org.qcobjects.effects.extended.js +13 -70
- package/build/{js → ts}/org.qcobjects.effects.js +3 -12
- package/build/{js → ts}/org.qcobjects.i18n_messages.js +3 -12
- package/build/{js → ts}/org.qcobjects.modal.controllers.js +3 -12
- package/build/{js → ts}/org.qcobjects.modal.effects.js +3 -12
- package/build/ts/org.qcobjects.models.js +25 -0
- package/build/{js → ts}/org.qcobjects.tools.canvas.js +3 -12
- package/build/{js → ts}/org.qcobjects.tools.js +3 -12
- package/build/{js → ts}/org.qcobjects.tools.layouts.js +3 -12
- package/build/ts/org.qcobjects.views.js +25 -0
- package/build-esbuild.js +1 -3
- package/docs/CNAME +1 -0
- package/package.json +6 -6
- package/public/browser/index.js +81 -7072
- package/public/browser/index.js.map +4 -4
- package/public/cjs/index.cjs +140 -7073
- package/public/cjs/index.cjs.map +4 -4
- package/public/esm/index.mjs +386 -7396
- package/public/esm/index.mjs.map +4 -4
- package/public/types/index.d.ts +60 -153
- package/src/css/basic-layout.css +4 -16
- package/src/index.ts +118 -2
- package/src/{js → ts}/org.qcobjects.cloud.auth.session.data.ts +3 -12
- package/src/{js → ts}/org.qcobjects.cloud.auth.session.usertoken.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.grid.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.list.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.notifications.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.slider.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.splashscreen.ts +3 -12
- package/src/{js → ts}/org.qcobjects.components.ts +3 -12
- package/src/{js → ts}/org.qcobjects.controllers.form.ts +4 -13
- package/src/{js → ts}/org.qcobjects.controllers.grid.ts +6 -15
- package/src/{js → ts}/org.qcobjects.controllers.list.ts +4 -13
- package/src/{js → ts}/org.qcobjects.controllers.slider.ts +4 -13
- package/src/{js → ts}/org.qcobjects.controllers.swagger.ts +3 -12
- package/src/ts/org.qcobjects.controllers.ts +26 -0
- package/src/{js → ts}/org.qcobjects.effects.base.ts +9 -25
- package/src/{js → ts}/org.qcobjects.effects.extended.ts +33 -90
- package/src/{js → ts}/org.qcobjects.effects.ts +3 -12
- package/src/{js → ts}/org.qcobjects.i18n_messages.ts +3 -12
- package/src/{js → ts}/org.qcobjects.modal.controllers.ts +3 -12
- package/src/{js → ts}/org.qcobjects.modal.effects.ts +3 -12
- package/src/ts/org.qcobjects.models.ts +25 -0
- package/src/{js → ts}/org.qcobjects.tools.canvas.ts +3 -12
- package/src/{js → ts}/org.qcobjects.tools.layouts.ts +3 -12
- package/src/{js → ts}/org.qcobjects.tools.ts +3 -12
- package/src/ts/org.qcobjects.views.ts +30 -0
- package/.github/workflows/npmpublish-beta.yml +0 -40
- package/.github/workflows/npmpublish-lts.yml +0 -40
- package/.github/workflows/npmpublish-main.yml +0 -40
- package/build/QCObjects-SDK.js +0 -139
- package/build/js/org.qcobjects.controllers.js +0 -34
- package/build/js/org.qcobjects.models.js +0 -34
- package/build/js/org.qcobjects.views.js +0 -34
- package/src/QCObjects-SDK.ts +0 -127
- package/src/js/org.qcobjects.controllers.ts +0 -35
- package/src/js/org.qcobjects.models.ts +0 -34
- package/src/js/org.qcobjects.views.ts +0 -39
- /package/build/{js → ts}/org.qcobjects.base.components.js +0 -0
- /package/src/{js → ts}/org.qcobjects.base.components.ts +0 -0
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -94,7 +85,7 @@ export class FormController extends Controller {
|
|
|
94
85
|
}), false).then(
|
|
95
86
|
() => {
|
|
96
87
|
// This will show the service response as a plain text
|
|
97
|
-
|
|
88
|
+
logger.info("DONE SERVICE COMPONENT");
|
|
98
89
|
location.href = this.formSettings.nextRouting;
|
|
99
90
|
|
|
100
91
|
},
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -121,10 +112,10 @@ export class DataGridController extends Controller {
|
|
|
121
112
|
let page: number | string | null | undefined;
|
|
122
113
|
paginateIn = (paginateIn !== null) ? (paginateIn) : ("client");
|
|
123
114
|
if (paginateIn === "client") {
|
|
124
|
-
page = this.component.body.getAttribute("page-number")
|
|
115
|
+
page = this.component.body.getAttribute("page-number");
|
|
125
116
|
page = (isNaN(page) || page === null) ? (-1) : (page);
|
|
126
117
|
if (page !== -1) {
|
|
127
|
-
pagesNumber = this.component.body.getAttribute("total-pages")
|
|
118
|
+
pagesNumber = this.component.body.getAttribute("total-pages");
|
|
128
119
|
pagesNumber = (isNaN(pagesNumber)) ? (1) : (pagesNumber);
|
|
129
120
|
offset = this.getPageIndex(page, pagesNumber, list.length)[0];
|
|
130
121
|
limit = this.getPageIndex(page, pagesNumber, list.length)[1];
|
|
@@ -242,7 +233,7 @@ export class DataGridController extends Controller {
|
|
|
242
233
|
let pagesNumber;
|
|
243
234
|
if (page !== -1) {
|
|
244
235
|
const serverDataCount = (this.component.body.getAttribute("server-data-count") !== null) ? (this.component.body.getAttribute("server-data-count") as unknown as number) : (1);
|
|
245
|
-
pagesNumber = this.component.body.getAttribute("total-pages")
|
|
236
|
+
pagesNumber = this.component.body.getAttribute("total-pages");
|
|
246
237
|
pagesNumber = (isNaN(pagesNumber)) ? (1) : (pagesNumber);
|
|
247
238
|
offset = this.getPageIndex(page, pagesNumber, serverDataCount)[0];
|
|
248
239
|
limit = this.getPageIndex(page, pagesNumber, serverDataCount)[1];
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -42,7 +33,7 @@ export class ListController extends Controller {
|
|
|
42
33
|
_componentRoot: HTMLElement | undefined;
|
|
43
34
|
|
|
44
35
|
constructor({ component, dependencies = [], valueField = undefined, labelField = undefined }: ListControllerParams) {
|
|
45
|
-
super({ component, dependencies, valueField, labelField }
|
|
36
|
+
super({ component, dependencies, valueField, labelField });
|
|
46
37
|
this.component = component;
|
|
47
38
|
this._componentRoot = (this.component.shadowed) ? (this.component.shadowRoot) : (this.component.body);
|
|
48
39
|
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -43,7 +34,7 @@ export class SliderController extends Controller {
|
|
|
43
34
|
component: Component;
|
|
44
35
|
|
|
45
36
|
constructor({ component, dependencies = [], duration = 7100, slideIndex = 0, interval = null, sliderHandlerName = null }: SliderParams) {
|
|
46
|
-
super({ component, dependencies, duration, slideIndex, interval, sliderHandlerName }
|
|
37
|
+
super({ component, dependencies, duration, slideIndex, interval, sliderHandlerName });
|
|
47
38
|
this.component = component;
|
|
48
39
|
this._componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
49
40
|
this.sliderHandlerName = "slider_" + this.component.__instanceID.toString();
|
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects SDK
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
7
7
|
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
19
10
|
*
|
|
20
11
|
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
12
|
*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects Framework SDK
|
|
3
|
+
* ________________
|
|
4
|
+
*
|
|
5
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
+
*
|
|
7
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
+
* QCObjects is licensed under the MIT License
|
|
9
|
+
* [LICENSE] (https://github.com/QCObjects/qcobjects-sdk/blob/main/LICENSE.txt)
|
|
10
|
+
*
|
|
11
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
12
|
+
*
|
|
13
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
14
|
+
* license document, but changing it is not allowed.
|
|
15
|
+
*/
|
|
16
|
+
"use strict";
|
|
17
|
+
import { Controller, Package } from "qcobjects";
|
|
18
|
+
|
|
19
|
+
export class GenericController extends Controller {
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Package("org.qcobjects.controllers", [
|
|
24
|
+
GenericController
|
|
25
|
+
|
|
26
|
+
]);
|
|
@@ -15,13 +15,13 @@ export type MoveElement = HTMLElement & {
|
|
|
15
15
|
}
|
|
16
16
|
apply(element:HTMLElement, alphaFrom:number, alphaTo:number) {
|
|
17
17
|
const da = alphaTo - alphaFrom;
|
|
18
|
-
|
|
18
|
+
super.animate({
|
|
19
19
|
duration: this.duration,
|
|
20
|
-
timing(timeFraction) {
|
|
20
|
+
timing(timeFraction: number) {
|
|
21
21
|
|
|
22
22
|
return timeFraction;
|
|
23
23
|
},
|
|
24
|
-
draw(progress) {
|
|
24
|
+
draw(progress: number) {
|
|
25
25
|
logger.debug("animation progress: " + progress.toString());
|
|
26
26
|
const alpha = alphaFrom + (progress * da / 100);
|
|
27
27
|
logger.debug("alpha: " + alpha.toString());
|
|
@@ -33,13 +33,13 @@ export type MoveElement = HTMLElement & {
|
|
|
33
33
|
|
|
34
34
|
static apply(element:HTMLElement, alphaFrom:number, alphaTo:number) {
|
|
35
35
|
const da = alphaTo - alphaFrom;
|
|
36
|
-
|
|
36
|
+
super.animate({
|
|
37
37
|
duration: this.duration,
|
|
38
|
-
timing(timeFraction) {
|
|
38
|
+
timing(timeFraction: number) {
|
|
39
39
|
|
|
40
40
|
return timeFraction;
|
|
41
41
|
},
|
|
42
|
-
draw(progress) {
|
|
42
|
+
draw(progress: number) {
|
|
43
43
|
logger.debug("animation progress: " + progress.toString());
|
|
44
44
|
const alpha = alphaFrom + (progress * da / 100);
|
|
45
45
|
logger.debug("alpha: " + alpha.toString());
|
|
@@ -47,14 +47,6 @@ export type MoveElement = HTMLElement & {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
// eslint-disable-next-line no-unused-vars
|
|
51
|
-
static animate(arg0: { duration: any; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
52
|
-
throw new Error("Method not implemented.");
|
|
53
|
-
}
|
|
54
|
-
// eslint-disable-next-line no-unused-vars
|
|
55
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
56
|
-
throw new Error("Method not implemented.");
|
|
57
|
-
}
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
export class Move extends Effect {
|
|
@@ -65,13 +57,13 @@ export type MoveElement = HTMLElement & {
|
|
|
65
57
|
const dx = xto - xfrom;
|
|
66
58
|
const dy = yto - yfrom;
|
|
67
59
|
element.style.transform = "translate(" + xfrom + "px," + yfrom + "px)";
|
|
68
|
-
|
|
60
|
+
super.animate({
|
|
69
61
|
duration: this.duration,
|
|
70
|
-
timing(timeFraction) {
|
|
62
|
+
timing(timeFraction: number) {
|
|
71
63
|
|
|
72
64
|
return timeFraction;
|
|
73
65
|
},
|
|
74
|
-
draw(progress) {
|
|
66
|
+
draw(progress: number) {
|
|
75
67
|
logger.debug("animation progress: " + progress.toString());
|
|
76
68
|
const y = yfrom + (progress * dy / 100);
|
|
77
69
|
const x = xfrom + (progress * dx / 100);
|
|
@@ -80,14 +72,6 @@ export type MoveElement = HTMLElement & {
|
|
|
80
72
|
}
|
|
81
73
|
});
|
|
82
74
|
}
|
|
83
|
-
// eslint-disable-next-line no-unused-vars
|
|
84
|
-
static animate(arg0: { duration: any; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
85
|
-
throw new Error("Method not implemented.");
|
|
86
|
-
}
|
|
87
|
-
// eslint-disable-next-line no-unused-vars
|
|
88
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
89
|
-
throw new Error("Method not implemented.");
|
|
90
|
-
}
|
|
91
75
|
|
|
92
76
|
}
|
|
93
77
|
|