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
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
declare module "ts/org.qcobjects.i18n_messages" {
|
|
2
|
+
import { InheritClass } from "qcobjects";
|
|
3
|
+
export class i18n_messages extends InheritClass {
|
|
4
|
+
constructor({ messages }: {
|
|
5
|
+
messages?: never[] | undefined;
|
|
6
|
+
});
|
|
7
|
+
_load_i18n_packages_(): any;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare module "ts/org.qcobjects.models" {
|
|
11
|
+
import { VO } from "qcobjects";
|
|
12
|
+
export class Contact extends VO {
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
declare module "ts/org.qcobjects.effects.base" {
|
|
16
|
+
import { Effect } from "qcobjects";
|
|
17
|
+
export type MoveElement = HTMLElement & {
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
};
|
|
21
|
+
export class Fade extends Effect {
|
|
22
|
+
duration: number;
|
|
23
|
+
static duration: any;
|
|
24
|
+
constructor(o?: {
|
|
25
|
+
duration: number;
|
|
26
|
+
});
|
|
27
|
+
apply(element: HTMLElement, alphaFrom: number, alphaTo: number): void;
|
|
28
|
+
static apply(element: HTMLElement, alphaFrom: number, alphaTo: number): void;
|
|
29
|
+
}
|
|
30
|
+
export class Move extends Effect {
|
|
31
|
+
duration: number;
|
|
32
|
+
static duration: any;
|
|
33
|
+
static apply(element: MoveElement, xfrom: number, yfrom: number, xto: number, yto: number): void;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
declare module "ts/org.qcobjects.effects.extended" {
|
|
37
|
+
import { Effect } from "qcobjects";
|
|
38
|
+
import { Move, MoveElement } from "ts/org.qcobjects.effects.base";
|
|
39
|
+
export class MoveXInFromRight extends Move {
|
|
40
|
+
duration: number;
|
|
41
|
+
static apply(element: MoveElement): void;
|
|
42
|
+
}
|
|
43
|
+
export class MoveXInFromLeft extends Move {
|
|
44
|
+
duration: number;
|
|
45
|
+
static apply(element: MoveElement): void;
|
|
46
|
+
}
|
|
47
|
+
export class MoveYInFromBottom extends Move {
|
|
48
|
+
duration: number;
|
|
49
|
+
static apply(element: MoveElement): void;
|
|
50
|
+
}
|
|
51
|
+
export class MoveYInFromTop extends Move {
|
|
52
|
+
duration: number;
|
|
53
|
+
static apply(element: MoveElement): void;
|
|
54
|
+
}
|
|
55
|
+
export class RotateX extends Effect {
|
|
56
|
+
duration: number;
|
|
57
|
+
static duration: any;
|
|
58
|
+
static apply(element: HTMLElement, angleFrom: number, angleTo: number): void;
|
|
59
|
+
}
|
|
60
|
+
export class RotateY extends Effect {
|
|
61
|
+
duration: number;
|
|
62
|
+
static duration: any;
|
|
63
|
+
static apply(element: HTMLElement, angleFrom: number, angleTo: number): void;
|
|
64
|
+
}
|
|
65
|
+
export class RotateZ extends Effect {
|
|
66
|
+
duration: number;
|
|
67
|
+
apply(element: HTMLElement, angleFrom: number, angleTo: number): void;
|
|
68
|
+
}
|
|
69
|
+
export class Rotate extends Effect {
|
|
70
|
+
duration: number;
|
|
71
|
+
apply(element: HTMLElement, angleFrom: number, angleTo: number): void;
|
|
72
|
+
}
|
|
73
|
+
export class Radius extends Effect {
|
|
74
|
+
duration: number;
|
|
75
|
+
apply(element: HTMLElement, radiusFrom: number, radiusTo: number): void;
|
|
76
|
+
}
|
|
77
|
+
export class Resize extends Effect {
|
|
78
|
+
duration: number;
|
|
79
|
+
apply(element: HTMLElement, scaleFrom: number, scaleTo: number): void;
|
|
80
|
+
}
|
|
81
|
+
export class WipeLeft extends Effect {
|
|
82
|
+
duration: number;
|
|
83
|
+
apply(element: HTMLElement, scaleFrom: number, scaleTo: number): void;
|
|
84
|
+
}
|
|
85
|
+
export class WipeRight extends Effect {
|
|
86
|
+
duration: number;
|
|
87
|
+
apply(element: HTMLElement, scaleFrom: number, scaleTo: number): void;
|
|
88
|
+
}
|
|
89
|
+
export class WipeUp extends Effect {
|
|
90
|
+
duration: number;
|
|
91
|
+
apply(element: HTMLElement, scaleFrom: number, scaleTo: number): void;
|
|
92
|
+
}
|
|
93
|
+
export class WipeDown extends Effect {
|
|
94
|
+
duration: number;
|
|
95
|
+
apply(element: HTMLElement, scaleFrom: number, scaleTo: number): void;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
declare module "ts/org.qcobjects.modal.effects" {
|
|
99
|
+
import { Fade, Move } from "ts/org.qcobjects.effects";
|
|
100
|
+
export class ModalFade extends Fade {
|
|
101
|
+
duration: number;
|
|
102
|
+
}
|
|
103
|
+
export class ModalMoveUp extends Move {
|
|
104
|
+
duration: number;
|
|
105
|
+
}
|
|
106
|
+
export class ModalMoveDown extends Move {
|
|
107
|
+
duration: number;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
declare module "ts/org.qcobjects.effects" {
|
|
111
|
+
export { Fade, Move } from "ts/org.qcobjects.effects.base";
|
|
112
|
+
export { MoveXInFromRight, MoveXInFromLeft, MoveYInFromBottom, MoveYInFromTop, RotateX, RotateY, RotateZ, Rotate, Radius, Resize, WipeLeft, WipeRight, WipeUp, WipeDown } from "ts/org.qcobjects.effects.extended";
|
|
113
|
+
export { ModalFade, ModalMoveUp, ModalMoveDown } from "ts/org.qcobjects.modal.effects";
|
|
114
|
+
}
|
|
115
|
+
declare module "ts/org.qcobjects.base.components" {
|
|
116
|
+
import { Component } from "qcobjects";
|
|
117
|
+
export type FieldComponentParams = {
|
|
118
|
+
name: string;
|
|
119
|
+
body: any;
|
|
120
|
+
data: any;
|
|
121
|
+
basePath?: string;
|
|
122
|
+
fieldType: string;
|
|
123
|
+
};
|
|
124
|
+
export class FormField extends Component {
|
|
125
|
+
fieldType: string;
|
|
126
|
+
cached: boolean;
|
|
127
|
+
reload: boolean;
|
|
128
|
+
body: any;
|
|
129
|
+
name: string;
|
|
130
|
+
data: any;
|
|
131
|
+
constructor(o: FieldComponentParams);
|
|
132
|
+
createBindingEvents(): void;
|
|
133
|
+
executeBinding(_obj: HTMLElement & {
|
|
134
|
+
value: any;
|
|
135
|
+
}): void;
|
|
136
|
+
executeBindings(): void;
|
|
137
|
+
done(standardResponse: any): Promise<any>;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
declare module "ts/org.qcobjects.components" {
|
|
141
|
+
import { Component } from "qcobjects";
|
|
142
|
+
import { FormField, FieldComponentParams } from "ts/org.qcobjects.base.components";
|
|
143
|
+
export { FormField };
|
|
144
|
+
export class ShadowedComponent extends Component {
|
|
145
|
+
container: null;
|
|
146
|
+
shadowed: boolean;
|
|
147
|
+
cached: boolean;
|
|
148
|
+
controller: null;
|
|
149
|
+
view: null;
|
|
150
|
+
data: {};
|
|
151
|
+
constructor(o: FieldComponentParams);
|
|
152
|
+
}
|
|
153
|
+
export class ButtonField extends FormField {
|
|
154
|
+
constructor(o: FieldComponentParams);
|
|
155
|
+
}
|
|
156
|
+
export class InputField extends FormField {
|
|
157
|
+
constructor(o: FieldComponentParams);
|
|
158
|
+
}
|
|
159
|
+
export class TextField extends FormField {
|
|
160
|
+
constructor(o: FieldComponentParams);
|
|
161
|
+
}
|
|
162
|
+
export class EmailField extends FormField {
|
|
163
|
+
constructor(o: FieldComponentParams);
|
|
164
|
+
}
|
|
165
|
+
export class ModalEnclosureComponent extends Component {
|
|
166
|
+
name: string;
|
|
167
|
+
tplsource: string;
|
|
168
|
+
cached: boolean;
|
|
169
|
+
basePath: any;
|
|
170
|
+
template: string;
|
|
171
|
+
data: {};
|
|
172
|
+
constructor(o: FieldComponentParams);
|
|
173
|
+
}
|
|
174
|
+
export class ModalComponent extends Component {
|
|
175
|
+
name: string;
|
|
176
|
+
cached: boolean;
|
|
177
|
+
modalEnclosureComponentClass: string;
|
|
178
|
+
controller: null;
|
|
179
|
+
view: null;
|
|
180
|
+
tplsource: string;
|
|
181
|
+
closeOnClickOutside: boolean;
|
|
182
|
+
data: {
|
|
183
|
+
content: string;
|
|
184
|
+
modalId: number;
|
|
185
|
+
};
|
|
186
|
+
submodal: null;
|
|
187
|
+
__instanceID: number;
|
|
188
|
+
basePath: any;
|
|
189
|
+
subcomponents: any;
|
|
190
|
+
body: any;
|
|
191
|
+
templateURI: any;
|
|
192
|
+
constructor(o: FieldComponentParams);
|
|
193
|
+
modal(): void;
|
|
194
|
+
close(): void;
|
|
195
|
+
rebuild(): any;
|
|
196
|
+
}
|
|
197
|
+
export class SwaggerUIComponent extends Component {
|
|
198
|
+
cached: boolean;
|
|
199
|
+
basePath: any;
|
|
200
|
+
tplextension: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
declare module "ts/org.qcobjects.components.grid" {
|
|
205
|
+
import { Component } from "qcobjects";
|
|
206
|
+
export class GridItemComponent extends Component {
|
|
207
|
+
name: string;
|
|
208
|
+
shadowed: boolean;
|
|
209
|
+
tplsource: string;
|
|
210
|
+
template: string;
|
|
211
|
+
cached: boolean;
|
|
212
|
+
}
|
|
213
|
+
export class GridComponent extends Component {
|
|
214
|
+
name: string;
|
|
215
|
+
cached: boolean;
|
|
216
|
+
view: null;
|
|
217
|
+
shadowed: boolean;
|
|
218
|
+
rows: number;
|
|
219
|
+
cols: number;
|
|
220
|
+
templateURI: string;
|
|
221
|
+
data: {};
|
|
222
|
+
tplsource: string;
|
|
223
|
+
template: string;
|
|
224
|
+
body: any;
|
|
225
|
+
constructor(o: any);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
declare module "ts/org.qcobjects.components.list" {
|
|
229
|
+
import { Component } from "qcobjects";
|
|
230
|
+
export class ListItemComponent extends Component {
|
|
231
|
+
shadowed: boolean;
|
|
232
|
+
tplsource: string;
|
|
233
|
+
template: string;
|
|
234
|
+
cached: boolean;
|
|
235
|
+
constructor(o: any);
|
|
236
|
+
}
|
|
237
|
+
export class ListComponent extends Component {
|
|
238
|
+
data: any;
|
|
239
|
+
shadowed: boolean;
|
|
240
|
+
tplsource: string;
|
|
241
|
+
template: string;
|
|
242
|
+
body: any;
|
|
243
|
+
shadowRoot: HTMLElement | undefined;
|
|
244
|
+
rows: string | number | null;
|
|
245
|
+
subcomponents: never[];
|
|
246
|
+
done: any;
|
|
247
|
+
serviceData: any;
|
|
248
|
+
constructor(o: any);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
declare module "ts/org.qcobjects.components.slider" {
|
|
252
|
+
import { Component } from "qcobjects";
|
|
253
|
+
export class SlideListComponent extends Component {
|
|
254
|
+
tplsource: string;
|
|
255
|
+
template: string;
|
|
256
|
+
name: string;
|
|
257
|
+
body: any;
|
|
258
|
+
constructor(o: any);
|
|
259
|
+
}
|
|
260
|
+
export class SlideItemComponent extends Component {
|
|
261
|
+
effectClass: string;
|
|
262
|
+
name: string;
|
|
263
|
+
data: any;
|
|
264
|
+
template: string;
|
|
265
|
+
tplsource: string;
|
|
266
|
+
constructor(o: any);
|
|
267
|
+
}
|
|
268
|
+
export class SliderComponent extends Component {
|
|
269
|
+
name: string;
|
|
270
|
+
template: string;
|
|
271
|
+
tplsource: string;
|
|
272
|
+
shadowed: boolean;
|
|
273
|
+
data: any;
|
|
274
|
+
body: any;
|
|
275
|
+
__instanceID: any;
|
|
276
|
+
constructor(o: any);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
declare module "ts/org.qcobjects.components.notifications" {
|
|
280
|
+
import { Component } from "qcobjects";
|
|
281
|
+
export class NotificationComponent extends Component {
|
|
282
|
+
cached: boolean;
|
|
283
|
+
tplsource: string;
|
|
284
|
+
shadowed: boolean;
|
|
285
|
+
kinds: string[];
|
|
286
|
+
template: string;
|
|
287
|
+
constructor(o: any);
|
|
288
|
+
display(element: HTMLElement): void;
|
|
289
|
+
static success(message: string): void;
|
|
290
|
+
static danger(message: string): void;
|
|
291
|
+
static info(message: string): void;
|
|
292
|
+
static warning(message: string): void;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
declare module "ts/org.qcobjects.components.splashscreen" {
|
|
296
|
+
import { Component } from "qcobjects";
|
|
297
|
+
type SplashScreenParams = {
|
|
298
|
+
name: string;
|
|
299
|
+
basePath: string;
|
|
300
|
+
data: any;
|
|
301
|
+
body: any;
|
|
302
|
+
};
|
|
303
|
+
export class SplashScreenComponent extends Component {
|
|
304
|
+
_enabled_: boolean;
|
|
305
|
+
_bgcolor: string;
|
|
306
|
+
cached: boolean;
|
|
307
|
+
shadowed: boolean;
|
|
308
|
+
body: any;
|
|
309
|
+
shadowRoot: any;
|
|
310
|
+
constructor(component: SplashScreenParams);
|
|
311
|
+
addComponentHelper(arg0: {
|
|
312
|
+
(): void;
|
|
313
|
+
executed: boolean;
|
|
314
|
+
}): void;
|
|
315
|
+
}
|
|
316
|
+
export class VideoSplashScreenComponent extends SplashScreenComponent {
|
|
317
|
+
cached: boolean;
|
|
318
|
+
shadowed: boolean;
|
|
319
|
+
tplsource: string;
|
|
320
|
+
template: string;
|
|
321
|
+
constructor(o: SplashScreenParams);
|
|
322
|
+
}
|
|
323
|
+
export class CubeSplashScreenComponent extends SplashScreenComponent {
|
|
324
|
+
cached: boolean;
|
|
325
|
+
shadowed: boolean;
|
|
326
|
+
tplsource: string;
|
|
327
|
+
template: string;
|
|
328
|
+
constructor(o: SplashScreenParams);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
declare module "ts/org.qcobjects.controllers" {
|
|
332
|
+
import { Controller } from "qcobjects";
|
|
333
|
+
export class GenericController extends Controller {
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
declare module "ts/org.qcobjects.controllers.list" {
|
|
337
|
+
import { Controller } from "qcobjects";
|
|
338
|
+
import { ListComponent } from "ts/org.qcobjects.components.list";
|
|
339
|
+
export type ListControllerParams = {
|
|
340
|
+
component: ListComponent;
|
|
341
|
+
valueField: string | undefined;
|
|
342
|
+
labelField: string | undefined;
|
|
343
|
+
dependencies: any[];
|
|
344
|
+
};
|
|
345
|
+
export class ListController extends Controller {
|
|
346
|
+
__instanceID: number;
|
|
347
|
+
component: ListComponent;
|
|
348
|
+
valueField: string | undefined;
|
|
349
|
+
labelField: string | undefined;
|
|
350
|
+
rows: number | string | null;
|
|
351
|
+
cols: number;
|
|
352
|
+
_componentRoot: HTMLElement | undefined;
|
|
353
|
+
constructor({ component, dependencies, valueField, labelField }: ListControllerParams);
|
|
354
|
+
getPageIndex(page: number, totalPage: number, totalElements: number): number[];
|
|
355
|
+
addSubcomponents(): void;
|
|
356
|
+
cssGrid(): void;
|
|
357
|
+
done(): void;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
declare module "ts/org.qcobjects.controllers.grid" {
|
|
361
|
+
import { Controller, Component } from "qcobjects";
|
|
362
|
+
type DataGridControllerParams = {
|
|
363
|
+
component: Component;
|
|
364
|
+
rows: number | string | null;
|
|
365
|
+
cols: number | string | null;
|
|
366
|
+
};
|
|
367
|
+
export class GridController extends Controller {
|
|
368
|
+
__instanceID: number;
|
|
369
|
+
rows: number | string | null;
|
|
370
|
+
cols: number | string | null;
|
|
371
|
+
component: any;
|
|
372
|
+
constructor(controller: any);
|
|
373
|
+
cssGrid(): void;
|
|
374
|
+
done(): void;
|
|
375
|
+
}
|
|
376
|
+
export class DataGridController extends Controller {
|
|
377
|
+
__instanceID: number;
|
|
378
|
+
rows: number | string | null;
|
|
379
|
+
cols: number | string | null;
|
|
380
|
+
_componentRoot: HTMLElement | ShadowRoot | undefined;
|
|
381
|
+
component: any;
|
|
382
|
+
constructor(controller: DataGridControllerParams);
|
|
383
|
+
getPageIndex(page: number, totalPage: number, totalElements: number): number[];
|
|
384
|
+
addSubcomponents(): void;
|
|
385
|
+
cssGrid(): void;
|
|
386
|
+
done(): void;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
declare module "ts/org.qcobjects.controllers.slider" {
|
|
390
|
+
import { Controller, Component } from "qcobjects";
|
|
391
|
+
type SliderParams = {
|
|
392
|
+
dependencies: any[];
|
|
393
|
+
component: Component;
|
|
394
|
+
duration: number;
|
|
395
|
+
slideIndex: number;
|
|
396
|
+
interval: number | null;
|
|
397
|
+
sliderHandlerName: string | null;
|
|
398
|
+
};
|
|
399
|
+
export class SliderController extends Controller {
|
|
400
|
+
slideIndex: number;
|
|
401
|
+
duration: number;
|
|
402
|
+
interval: any;
|
|
403
|
+
sliderHandlerName: string;
|
|
404
|
+
_componentRoot: HTMLElement | ShadowRoot | undefined;
|
|
405
|
+
component: Component;
|
|
406
|
+
constructor({ component, dependencies, duration, slideIndex, interval, sliderHandlerName }: SliderParams);
|
|
407
|
+
stop(): void;
|
|
408
|
+
plusSlidesAndStop(n: number): void;
|
|
409
|
+
plusSlides(n: number): void;
|
|
410
|
+
currentSlide(n: number): void;
|
|
411
|
+
automate(): void;
|
|
412
|
+
showSlides(n: number): void;
|
|
413
|
+
fillDots(): void;
|
|
414
|
+
done(): void;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
declare module "ts/org.qcobjects.controllers.form" {
|
|
418
|
+
import { Controller } from "qcobjects";
|
|
419
|
+
import { ModalComponent } from "ts/org.qcobjects.components";
|
|
420
|
+
export class FormValidations extends Controller {
|
|
421
|
+
getDefault(): (fieldName: string, dataValue: any, element: HTMLElement) => boolean;
|
|
422
|
+
}
|
|
423
|
+
export class FormController extends Controller {
|
|
424
|
+
validations: any[];
|
|
425
|
+
formValidatorModal: ModalComponent;
|
|
426
|
+
serviceClass: string;
|
|
427
|
+
formSettings: {
|
|
428
|
+
backRouting: string;
|
|
429
|
+
loadingRouting: string;
|
|
430
|
+
nextRouting: string;
|
|
431
|
+
};
|
|
432
|
+
component: any;
|
|
433
|
+
hasValidation(element: HTMLElement): boolean;
|
|
434
|
+
isInvalid(element: HTMLElement): boolean;
|
|
435
|
+
isValid(element: HTMLElement): boolean;
|
|
436
|
+
save(): void;
|
|
437
|
+
formSaveTouchHandler(): void;
|
|
438
|
+
constructor(o: any);
|
|
439
|
+
done(): void;
|
|
440
|
+
onpress(arg0: string, arg1: () => void): void;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
declare module "ts/org.qcobjects.controllers.swagger" {
|
|
444
|
+
import { Controller } from "qcobjects";
|
|
445
|
+
export class SwaggerUIController extends Controller {
|
|
446
|
+
component: any;
|
|
447
|
+
dependencies: any;
|
|
448
|
+
startSwaggerUI(): void;
|
|
449
|
+
done(): void;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
declare module "ts/org.qcobjects.modal.controllers" {
|
|
453
|
+
import { Controller } from "qcobjects";
|
|
454
|
+
export class ModalController extends Controller {
|
|
455
|
+
component: any;
|
|
456
|
+
done(): void;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
declare module "ts/org.qcobjects.views" {
|
|
460
|
+
import { View } from "qcobjects";
|
|
461
|
+
export class GridView extends View {
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
declare module "ts/org.qcobjects.tools.canvas" {
|
|
465
|
+
import { InheritClass } from "qcobjects";
|
|
466
|
+
export class CanvasTool extends InheritClass {
|
|
467
|
+
drawImageFilled(img: HTMLImageElement, canvas: HTMLCanvasElement, zoom?: number, px?: number, py?: number): void;
|
|
468
|
+
getImageResized(img: HTMLImageElement, width: number, height: number, resizedImage: HTMLImageElement, zoom?: number, px?: number, py?: number): HTMLCanvasElement;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
declare module "ts/org.qcobjects.tools.layouts" {
|
|
472
|
+
import { InheritClass } from "qcobjects";
|
|
473
|
+
export class BasicLayout extends InheritClass {
|
|
474
|
+
dependencies: any[];
|
|
475
|
+
constructor({ component, dependencies }: {
|
|
476
|
+
component?: null | undefined;
|
|
477
|
+
dependencies?: never[] | undefined;
|
|
478
|
+
});
|
|
479
|
+
load(): void;
|
|
480
|
+
coloredBorder(): void;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
declare module "ts/org.qcobjects.cloud.auth.session.usertoken" {
|
|
484
|
+
import { ComplexStorageCache, InheritClass } from "qcobjects";
|
|
485
|
+
type TGlobalUser = {
|
|
486
|
+
username: string;
|
|
487
|
+
token: string;
|
|
488
|
+
id: string;
|
|
489
|
+
priority: number;
|
|
490
|
+
};
|
|
491
|
+
export class SessionUserToken extends InheritClass {
|
|
492
|
+
static user: {};
|
|
493
|
+
__cache__: ComplexStorageCache;
|
|
494
|
+
__instanceID: any;
|
|
495
|
+
constructor(o: any);
|
|
496
|
+
static generateIndex(s: any): string;
|
|
497
|
+
static getGlobalUser(...args: any[]): TGlobalUser;
|
|
498
|
+
static getGlobalUserToken(...args: any[]): string;
|
|
499
|
+
static getGlobalUserId(...args: any[]): string;
|
|
500
|
+
static getGlobalUserPriority(...args: any[]): number;
|
|
501
|
+
static getLoginCredentialsToken(username: string, password: string): string;
|
|
502
|
+
static closeGlobalSession(...args: any[]): void;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
declare module "ts/org.qcobjects.cloud.auth.session.data" {
|
|
506
|
+
import { InheritClass } from "qcobjects";
|
|
507
|
+
export class SessionData extends InheritClass {
|
|
508
|
+
__session_container__: any;
|
|
509
|
+
sessionData: any;
|
|
510
|
+
/**
|
|
511
|
+
* Sets the session container
|
|
512
|
+
*
|
|
513
|
+
* @param {*} sessionContainer1, sessionContainer2, ...
|
|
514
|
+
*
|
|
515
|
+
*/
|
|
516
|
+
setSessionContainer(): void;
|
|
517
|
+
/**
|
|
518
|
+
* Gets the session container
|
|
519
|
+
*
|
|
520
|
+
* @return {*} sessionContainer
|
|
521
|
+
*/
|
|
522
|
+
getSessionContainer(): any;
|
|
523
|
+
/**
|
|
524
|
+
* Gets the session data
|
|
525
|
+
*
|
|
526
|
+
* @return {*} sessionData
|
|
527
|
+
*/
|
|
528
|
+
getSessionData(...args: any[]): any;
|
|
529
|
+
/**
|
|
530
|
+
* Returns an index of the session
|
|
531
|
+
*
|
|
532
|
+
* @param {string} valueForIndex
|
|
533
|
+
* @return {string} index
|
|
534
|
+
* @example sessionInstance.index("me@email.com", "myusername")
|
|
535
|
+
*
|
|
536
|
+
*/
|
|
537
|
+
index(...args: any[]): string;
|
|
538
|
+
/**
|
|
539
|
+
* Saves the session instance
|
|
540
|
+
*
|
|
541
|
+
*/
|
|
542
|
+
save(...args: any[]): void;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* Gets the session value
|
|
546
|
+
*
|
|
547
|
+
* @param {*} name
|
|
548
|
+
* @param {*} defaultValue
|
|
549
|
+
* @return {*}
|
|
550
|
+
*/
|
|
551
|
+
get(name: string, defaultValue: any): any;
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* Sets the session value
|
|
555
|
+
*
|
|
556
|
+
* @param {*} name
|
|
557
|
+
* @param {*} value
|
|
558
|
+
*/
|
|
559
|
+
set(name: string, value: any): void;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
declare module "index" {
|
|
563
|
+
/**
|
|
564
|
+
* QCObjects SDK 2.5
|
|
565
|
+
* ________________
|
|
566
|
+
*
|
|
567
|
+
* Author: Jean Machuca <correojean@gmail.com>
|
|
568
|
+
*
|
|
569
|
+
* Cross Browser Javascript Framework for MVC Patterns
|
|
570
|
+
* QuickCorp/QCObjects is licensed under the
|
|
571
|
+
* GNU Lesser General Public License v3.0
|
|
572
|
+
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
573
|
+
*
|
|
574
|
+
* Permissions of this copyleft license are conditioned on making available
|
|
575
|
+
* complete source code of licensed works and modifications under the same
|
|
576
|
+
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
577
|
+
* Contributors provide an express grant of patent rights. However, a larger
|
|
578
|
+
* work using the licensed work through interfaces provided by the licensed
|
|
579
|
+
* work may be distributed under different terms and without source code for
|
|
580
|
+
* the larger work.
|
|
581
|
+
*
|
|
582
|
+
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
583
|
+
*
|
|
584
|
+
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
585
|
+
* license document, but changing it is not allowed.
|
|
586
|
+
*/
|
|
587
|
+
import { _top } from "qcobjects";
|
|
588
|
+
export { i18n_messages } from "ts/org.qcobjects.i18n_messages";
|
|
589
|
+
export { Contact } from "ts/org.qcobjects.models";
|
|
590
|
+
export { ShadowedComponent, ButtonField, InputField, TextField, EmailField, ModalEnclosureComponent, ModalComponent, SwaggerUIComponent } from "ts/org.qcobjects.components";
|
|
591
|
+
export { FormField, FieldComponentParams } from "ts/org.qcobjects.base.components";
|
|
592
|
+
export { GridComponent, GridItemComponent } from "ts/org.qcobjects.components.grid";
|
|
593
|
+
export { ListItemComponent, ListComponent } from "ts/org.qcobjects.components.list";
|
|
594
|
+
export { SlideListComponent, SlideItemComponent, SliderComponent } from "ts/org.qcobjects.components.slider";
|
|
595
|
+
export { NotificationComponent } from "ts/org.qcobjects.components.notifications";
|
|
596
|
+
export { SplashScreenComponent, VideoSplashScreenComponent, CubeSplashScreenComponent } from "ts/org.qcobjects.components.splashscreen";
|
|
597
|
+
export { GenericController } from "ts/org.qcobjects.controllers";
|
|
598
|
+
export { ListController, ListControllerParams } from "ts/org.qcobjects.controllers.list";
|
|
599
|
+
export { GridController, DataGridController } from "ts/org.qcobjects.controllers.grid";
|
|
600
|
+
export { SliderController } from "ts/org.qcobjects.controllers.slider";
|
|
601
|
+
export { FormController, FormValidations } from "ts/org.qcobjects.controllers.form";
|
|
602
|
+
export { SwaggerUIController } from "ts/org.qcobjects.controllers.swagger";
|
|
603
|
+
export { Fade, Move, MoveXInFromRight, MoveXInFromLeft, MoveYInFromBottom, MoveYInFromTop, RotateX, RotateY, RotateZ, Rotate, Radius, Resize, WipeLeft, WipeRight, WipeUp, WipeDown, ModalFade, ModalMoveUp, ModalMoveDown } from "ts/org.qcobjects.effects";
|
|
604
|
+
export { ModalController } from "ts/org.qcobjects.modal.controllers";
|
|
605
|
+
export { GridView } from "ts/org.qcobjects.views";
|
|
606
|
+
export { CanvasTool } from "ts/org.qcobjects.tools.canvas";
|
|
607
|
+
export { BasicLayout } from "ts/org.qcobjects.tools.layouts";
|
|
608
|
+
export { SessionUserToken } from "ts/org.qcobjects.cloud.auth.session.usertoken";
|
|
609
|
+
export { SessionData } from "ts/org.qcobjects.cloud.auth.session.data";
|
|
610
|
+
export default _top;
|
|
611
|
+
}
|
|
612
|
+
declare module "ts/org.qcobjects.tools" { }
|
|
613
|
+
|
|
614
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
"spec_dir": "spec",
|
|
3
3
|
|
|
4
4
|
"spec_files": [
|
|
5
|
-
"**/*[sS]pec.
|
|
6
|
-
"!**/*nospec.
|
|
5
|
+
"**/*[sS]pec.ts",
|
|
6
|
+
"!**/*nospec.ts"
|
|
7
7
|
],
|
|
8
8
|
|
|
9
9
|
"helpers": [
|
|
10
|
-
"helpers/**/*.
|
|
10
|
+
"helpers/**/*.helper.ts"
|
|
11
11
|
],
|
|
12
12
|
|
|
13
|
-
"stopSpecOnExpectationFailure":
|
|
13
|
+
"stopSpecOnExpectationFailure": true,
|
|
14
|
+
"failSpecWithNoExpectations": true,
|
|
15
|
+
|
|
16
|
+
"stopOnSpecFailure": false,
|
|
14
17
|
|
|
15
18
|
"random": false
|
|
16
19
|
}
|