qcobjects-sdk 2.5.105-beta → 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/VERSION +1 -1
- package/build/index.js +137 -35
- package/build/{js → ts}/org.qcobjects.effects.base.js +3 -19
- package/build/{js → ts}/org.qcobjects.effects.extended.js +10 -58
- package/package.json +1 -1
- package/public/browser/index.js +41 -114
- package/public/browser/index.js.map +3 -3
- package/public/cjs/index.cjs +100 -115
- package/public/cjs/index.cjs.map +3 -3
- package/public/esm/index.mjs +97 -172
- package/public/esm/index.mjs.map +3 -3
- package/public/types/index.d.ts +57 -141
- package/src/index.ts +127 -2
- package/src/{js → ts}/org.qcobjects.effects.base.ts +9 -25
- package/src/{js → ts}/org.qcobjects.effects.extended.ts +30 -78
- 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/src/QCObjects-SDK.ts +0 -127
- /package/build/{js → ts}/org.qcobjects.base.components.js +0 -0
- /package/build/{js → ts}/org.qcobjects.cloud.auth.session.data.js +0 -0
- /package/build/{js → ts}/org.qcobjects.cloud.auth.session.usertoken.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.grid.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.list.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.notifications.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.slider.js +0 -0
- /package/build/{js → ts}/org.qcobjects.components.splashscreen.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.form.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.grid.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.list.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.slider.js +0 -0
- /package/build/{js → ts}/org.qcobjects.controllers.swagger.js +0 -0
- /package/build/{js → ts}/org.qcobjects.effects.js +0 -0
- /package/build/{js → ts}/org.qcobjects.i18n_messages.js +0 -0
- /package/build/{js → ts}/org.qcobjects.modal.controllers.js +0 -0
- /package/build/{js → ts}/org.qcobjects.modal.effects.js +0 -0
- /package/build/{js → ts}/org.qcobjects.models.js +0 -0
- /package/build/{js → ts}/org.qcobjects.tools.canvas.js +0 -0
- /package/build/{js → ts}/org.qcobjects.tools.js +0 -0
- /package/build/{js → ts}/org.qcobjects.tools.layouts.js +0 -0
- /package/build/{js → ts}/org.qcobjects.views.js +0 -0
- /package/src/{js → ts}/org.qcobjects.base.components.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.cloud.auth.session.data.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.cloud.auth.session.usertoken.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.grid.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.list.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.notifications.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.slider.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.splashscreen.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.components.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.form.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.grid.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.list.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.slider.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.swagger.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.controllers.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.effects.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.i18n_messages.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.modal.controllers.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.modal.effects.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.models.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.tools.canvas.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.tools.layouts.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.tools.ts +0 -0
- /package/src/{js → ts}/org.qcobjects.views.ts +0 -0
|
@@ -65,13 +65,13 @@ export class MoveXInFromRight extends Move {
|
|
|
65
65
|
|
|
66
66
|
static apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
67
67
|
const da = angleTo - angleFrom;
|
|
68
|
-
|
|
68
|
+
super.animate({
|
|
69
69
|
duration: this.duration,
|
|
70
|
-
timing(timeFraction) {
|
|
70
|
+
timing(timeFraction: number) {
|
|
71
71
|
|
|
72
72
|
return timeFraction;
|
|
73
73
|
},
|
|
74
|
-
draw(progress) {
|
|
74
|
+
draw(progress: number) {
|
|
75
75
|
logger.debug("animation progress: " + progress.toString());
|
|
76
76
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
77
77
|
logger.debug("angle: " + angle.toString());
|
|
@@ -79,14 +79,6 @@ export class MoveXInFromRight extends Move {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
// eslint-disable-next-line no-unused-vars
|
|
83
|
-
static animate(arg0: { duration: any; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
84
|
-
throw new Error("Method not implemented.");
|
|
85
|
-
}
|
|
86
|
-
// eslint-disable-next-line no-unused-vars
|
|
87
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
88
|
-
throw new Error("Method not implemented.");
|
|
89
|
-
}
|
|
90
82
|
|
|
91
83
|
}
|
|
92
84
|
|
|
@@ -96,13 +88,13 @@ export class MoveXInFromRight extends Move {
|
|
|
96
88
|
|
|
97
89
|
static apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
98
90
|
const da = angleTo - angleFrom;
|
|
99
|
-
|
|
91
|
+
super.animate({
|
|
100
92
|
duration: this.duration,
|
|
101
|
-
timing(timeFraction) {
|
|
93
|
+
timing(timeFraction: number) {
|
|
102
94
|
|
|
103
95
|
return timeFraction;
|
|
104
96
|
},
|
|
105
|
-
draw(progress) {
|
|
97
|
+
draw(progress: number) {
|
|
106
98
|
logger.debug("animation progress: " + progress.toString());
|
|
107
99
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
108
100
|
logger.debug("angle: " + angle.toString());
|
|
@@ -110,14 +102,6 @@ export class MoveXInFromRight extends Move {
|
|
|
110
102
|
}
|
|
111
103
|
});
|
|
112
104
|
}
|
|
113
|
-
// eslint-disable-next-line no-unused-vars
|
|
114
|
-
static animate(arg0: { duration: any; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
115
|
-
throw new Error("Method not implemented.");
|
|
116
|
-
}
|
|
117
|
-
// eslint-disable-next-line no-unused-vars
|
|
118
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
119
|
-
throw new Error("Method not implemented.");
|
|
120
|
-
}
|
|
121
105
|
}
|
|
122
106
|
|
|
123
107
|
export class RotateZ extends Effect {
|
|
@@ -125,13 +109,13 @@ export class MoveXInFromRight extends Move {
|
|
|
125
109
|
|
|
126
110
|
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
127
111
|
const da = angleTo - angleFrom;
|
|
128
|
-
|
|
112
|
+
super.animate({
|
|
129
113
|
duration: this.duration,
|
|
130
|
-
timing(timeFraction) {
|
|
114
|
+
timing(timeFraction: number) {
|
|
131
115
|
|
|
132
116
|
return timeFraction;
|
|
133
117
|
},
|
|
134
|
-
draw(progress) {
|
|
118
|
+
draw(progress: number) {
|
|
135
119
|
logger.debug("animation progress: " + progress.toString());
|
|
136
120
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
137
121
|
logger.debug("angle: " + angle.toString());
|
|
@@ -139,10 +123,6 @@ export class MoveXInFromRight extends Move {
|
|
|
139
123
|
}
|
|
140
124
|
});
|
|
141
125
|
}
|
|
142
|
-
// eslint-disable-next-line no-unused-vars
|
|
143
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
144
|
-
throw new Error("Method not implemented.");
|
|
145
|
-
}
|
|
146
126
|
|
|
147
127
|
}
|
|
148
128
|
|
|
@@ -151,13 +131,13 @@ export class MoveXInFromRight extends Move {
|
|
|
151
131
|
|
|
152
132
|
apply(element:HTMLElement, angleFrom:number, angleTo:number) {
|
|
153
133
|
const da = angleTo - angleFrom;
|
|
154
|
-
|
|
134
|
+
super.animate({
|
|
155
135
|
duration: this.duration,
|
|
156
|
-
timing(timeFraction) {
|
|
136
|
+
timing(timeFraction: number) {
|
|
157
137
|
|
|
158
138
|
return timeFraction;
|
|
159
139
|
},
|
|
160
|
-
draw(progress) {
|
|
140
|
+
draw(progress: number) {
|
|
161
141
|
logger.debug("animation progress: " + progress.toString());
|
|
162
142
|
const angle = Math.round(angleFrom + (progress * da / 100));
|
|
163
143
|
logger.debug("angle: " + angle.toString());
|
|
@@ -165,10 +145,6 @@ export class MoveXInFromRight extends Move {
|
|
|
165
145
|
}
|
|
166
146
|
});
|
|
167
147
|
}
|
|
168
|
-
// eslint-disable-next-line no-unused-vars
|
|
169
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
170
|
-
throw new Error("Method not implemented.");
|
|
171
|
-
}
|
|
172
148
|
}
|
|
173
149
|
|
|
174
150
|
export class Radius extends Effect {
|
|
@@ -176,13 +152,13 @@ export class MoveXInFromRight extends Move {
|
|
|
176
152
|
|
|
177
153
|
apply(element:HTMLElement, radiusFrom:number, radiusTo:number) {
|
|
178
154
|
const dr = radiusTo - radiusFrom;
|
|
179
|
-
|
|
155
|
+
super.animate({
|
|
180
156
|
duration: this.duration,
|
|
181
|
-
timing(timeFraction) {
|
|
157
|
+
timing(timeFraction: number) {
|
|
182
158
|
|
|
183
159
|
return timeFraction;
|
|
184
160
|
},
|
|
185
|
-
draw(progress) {
|
|
161
|
+
draw(progress: number) {
|
|
186
162
|
logger.debug("animation progress: " + progress.toString());
|
|
187
163
|
const radius = radiusFrom + (progress * dr / 100);
|
|
188
164
|
logger.debug("radius: " + radius.toString());
|
|
@@ -190,10 +166,6 @@ export class MoveXInFromRight extends Move {
|
|
|
190
166
|
}
|
|
191
167
|
});
|
|
192
168
|
}
|
|
193
|
-
// eslint-disable-next-line no-unused-vars
|
|
194
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
195
|
-
throw new Error("Method not implemented.");
|
|
196
|
-
}
|
|
197
169
|
|
|
198
170
|
}
|
|
199
171
|
|
|
@@ -202,13 +174,13 @@ export class MoveXInFromRight extends Move {
|
|
|
202
174
|
|
|
203
175
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
204
176
|
const ds = scaleTo - scaleFrom;
|
|
205
|
-
|
|
177
|
+
super.animate({
|
|
206
178
|
duration: this.duration,
|
|
207
|
-
timing(timeFraction) {
|
|
179
|
+
timing(timeFraction: number) {
|
|
208
180
|
|
|
209
181
|
return timeFraction;
|
|
210
182
|
},
|
|
211
|
-
draw(progress) {
|
|
183
|
+
draw(progress: number) {
|
|
212
184
|
logger.debug("animation progress: " + progress.toString());
|
|
213
185
|
const scale = scaleFrom + (progress * ds / 100);
|
|
214
186
|
logger.debug("resize: " + scale.toString());
|
|
@@ -217,10 +189,6 @@ export class MoveXInFromRight extends Move {
|
|
|
217
189
|
}
|
|
218
190
|
});
|
|
219
191
|
}
|
|
220
|
-
// eslint-disable-next-line no-unused-vars
|
|
221
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
222
|
-
throw new Error("Method not implemented.");
|
|
223
|
-
}
|
|
224
192
|
|
|
225
193
|
}
|
|
226
194
|
|
|
@@ -229,13 +197,13 @@ export class MoveXInFromRight extends Move {
|
|
|
229
197
|
|
|
230
198
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
231
199
|
const ds = scaleTo - scaleFrom;
|
|
232
|
-
|
|
200
|
+
super.animate({
|
|
233
201
|
duration: this.duration,
|
|
234
|
-
timing(timeFraction) {
|
|
202
|
+
timing(timeFraction: number) {
|
|
235
203
|
|
|
236
204
|
return timeFraction;
|
|
237
205
|
},
|
|
238
|
-
draw(progress) {
|
|
206
|
+
draw(progress: number) {
|
|
239
207
|
logger.debug("animation progress: " + progress.toString());
|
|
240
208
|
const scale = scaleFrom + (progress * ds / 100);
|
|
241
209
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -244,10 +212,6 @@ export class MoveXInFromRight extends Move {
|
|
|
244
212
|
}
|
|
245
213
|
});
|
|
246
214
|
}
|
|
247
|
-
// eslint-disable-next-line no-unused-vars
|
|
248
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
249
|
-
throw new Error("Method not implemented.");
|
|
250
|
-
}
|
|
251
215
|
|
|
252
216
|
}
|
|
253
217
|
|
|
@@ -256,13 +220,13 @@ export class MoveXInFromRight extends Move {
|
|
|
256
220
|
|
|
257
221
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
258
222
|
const ds = scaleTo - scaleFrom;
|
|
259
|
-
|
|
223
|
+
super.animate({
|
|
260
224
|
duration: this.duration,
|
|
261
|
-
timing(timeFraction) {
|
|
225
|
+
timing(timeFraction: number) {
|
|
262
226
|
|
|
263
227
|
return timeFraction;
|
|
264
228
|
},
|
|
265
|
-
draw(progress) {
|
|
229
|
+
draw(progress: number) {
|
|
266
230
|
logger.debug("animation progress: " + progress.toString());
|
|
267
231
|
const scale = scaleFrom + (progress * ds / 100);
|
|
268
232
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -271,10 +235,6 @@ export class MoveXInFromRight extends Move {
|
|
|
271
235
|
}
|
|
272
236
|
});
|
|
273
237
|
}
|
|
274
|
-
// eslint-disable-next-line no-unused-vars
|
|
275
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
276
|
-
throw new Error("Method not implemented.");
|
|
277
|
-
}
|
|
278
238
|
|
|
279
239
|
}
|
|
280
240
|
|
|
@@ -284,13 +244,13 @@ export class MoveXInFromRight extends Move {
|
|
|
284
244
|
|
|
285
245
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
286
246
|
const ds = scaleTo - scaleFrom;
|
|
287
|
-
|
|
247
|
+
super.animate({
|
|
288
248
|
duration: this.duration,
|
|
289
|
-
timing(timeFraction) {
|
|
249
|
+
timing(timeFraction: number) {
|
|
290
250
|
|
|
291
251
|
return timeFraction;
|
|
292
252
|
},
|
|
293
|
-
draw(progress) {
|
|
253
|
+
draw(progress: number) {
|
|
294
254
|
logger.debug("animation progress: " + progress.toString());
|
|
295
255
|
const scale = scaleFrom + (progress * ds / 100);
|
|
296
256
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -299,10 +259,6 @@ export class MoveXInFromRight extends Move {
|
|
|
299
259
|
}
|
|
300
260
|
});
|
|
301
261
|
}
|
|
302
|
-
// eslint-disable-next-line no-unused-vars
|
|
303
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
304
|
-
throw new Error("Method not implemented.");
|
|
305
|
-
}
|
|
306
262
|
|
|
307
263
|
}
|
|
308
264
|
|
|
@@ -311,13 +267,13 @@ export class MoveXInFromRight extends Move {
|
|
|
311
267
|
|
|
312
268
|
apply(element:HTMLElement, scaleFrom:number, scaleTo:number) {
|
|
313
269
|
const ds = scaleTo - scaleFrom;
|
|
314
|
-
|
|
270
|
+
super.animate({
|
|
315
271
|
duration: this.duration,
|
|
316
|
-
timing(timeFraction) {
|
|
272
|
+
timing(timeFraction: number) {
|
|
317
273
|
|
|
318
274
|
return timeFraction;
|
|
319
275
|
},
|
|
320
|
-
draw(progress) {
|
|
276
|
+
draw(progress: number) {
|
|
321
277
|
logger.debug("animation progress: " + progress.toString());
|
|
322
278
|
const scale = scaleFrom + (progress * ds / 100);
|
|
323
279
|
logger.debug("wipe: " + scale.toString());
|
|
@@ -326,10 +282,6 @@ export class MoveXInFromRight extends Move {
|
|
|
326
282
|
}
|
|
327
283
|
});
|
|
328
284
|
}
|
|
329
|
-
// eslint-disable-next-line no-unused-vars
|
|
330
|
-
animate(arg0: { duration: number; timing(timeFraction: any): any; draw(progress: any): void; }) {
|
|
331
|
-
throw new Error("Method not implemented.");
|
|
332
|
-
}
|
|
333
285
|
}
|
|
334
286
|
Package("org.qcobjects.effects.extended", [
|
|
335
287
|
MoveXInFromRight,
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Publish Beta version
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- 'v*.*-beta'
|
|
10
|
-
tags:
|
|
11
|
-
- 'v*.*.*-beta'
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v3.3.0
|
|
18
|
-
- uses: actions/setup-node@v3.6.0
|
|
19
|
-
with:
|
|
20
|
-
node-version: 22
|
|
21
|
-
- run: npm config set legacy-peer-deps true=true
|
|
22
|
-
- run: npm ci
|
|
23
|
-
- run: npm test
|
|
24
|
-
|
|
25
|
-
publish-npm:
|
|
26
|
-
needs: build
|
|
27
|
-
runs-on: ubuntu-latest
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v3.3.0
|
|
30
|
-
- uses: actions/setup-node@v3.6.0
|
|
31
|
-
with:
|
|
32
|
-
node-version: 22
|
|
33
|
-
registry-url: https://registry.npmjs.org/
|
|
34
|
-
- name: Set up NPM authentication
|
|
35
|
-
run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
|
|
36
|
-
- run: npm config set legacy-peer-deps true=true
|
|
37
|
-
- run: npm ci
|
|
38
|
-
- run: npm publish --tag ${GITHUB_REF##*/}
|
|
39
|
-
env:
|
|
40
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Publish LTS version
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- 'v*.*-lts'
|
|
10
|
-
tags:
|
|
11
|
-
- 'v*.*.*-lts'
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v3.3.0
|
|
18
|
-
- uses: actions/setup-node@v3.6.0
|
|
19
|
-
with:
|
|
20
|
-
node-version: 22
|
|
21
|
-
- run: npm config set legacy-peer-deps true=true
|
|
22
|
-
- run: npm ci
|
|
23
|
-
- run: npm test
|
|
24
|
-
|
|
25
|
-
publish-npm:
|
|
26
|
-
needs: build
|
|
27
|
-
runs-on: ubuntu-latest
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v3.3.0
|
|
30
|
-
- uses: actions/setup-node@v3.6.0
|
|
31
|
-
with:
|
|
32
|
-
node-version: 22
|
|
33
|
-
registry-url: https://registry.npmjs.org/
|
|
34
|
-
- name: Set up NPM authentication
|
|
35
|
-
run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
|
|
36
|
-
- run: npm config set legacy-peer-deps true=true
|
|
37
|
-
- run: npm ci
|
|
38
|
-
- run: npm publish --tag ${GITHUB_REF##*/}
|
|
39
|
-
env:
|
|
40
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Publish Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
tags:
|
|
11
|
-
- 'v*.*.*'
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
build:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v3.3.0
|
|
18
|
-
- uses: actions/setup-node@v3.6.0
|
|
19
|
-
with:
|
|
20
|
-
node-version: 22
|
|
21
|
-
- run: npm config set legacy-peer-deps true=true
|
|
22
|
-
- run: npm ci
|
|
23
|
-
- run: npm test
|
|
24
|
-
|
|
25
|
-
publish-npm:
|
|
26
|
-
needs: build
|
|
27
|
-
runs-on: ubuntu-latest
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v3.3.0
|
|
30
|
-
- uses: actions/setup-node@v3.6.0
|
|
31
|
-
with:
|
|
32
|
-
node-version: 22
|
|
33
|
-
registry-url: https://registry.npmjs.org/
|
|
34
|
-
- name: Set up NPM authentication
|
|
35
|
-
run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
|
|
36
|
-
- run: npm config set legacy-peer-deps true=true
|
|
37
|
-
- run: npm ci
|
|
38
|
-
- run: npm publish
|
|
39
|
-
env:
|
|
40
|
-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
package/build/QCObjects-SDK.js
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
3
|
-
/**
|
|
4
|
-
* QCObjects SDK 2.5
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.ModalController = exports.ModalMoveDown = exports.ModalMoveUp = exports.ModalFade = exports.WipeDown = exports.WipeUp = exports.WipeRight = exports.WipeLeft = exports.Resize = exports.Radius = exports.Rotate = exports.RotateZ = exports.RotateY = exports.RotateX = exports.MoveYInFromTop = exports.MoveYInFromBottom = exports.MoveXInFromLeft = exports.MoveXInFromRight = exports.Move = exports.Fade = exports.SwaggerUIController = exports.FormValidations = exports.FormController = exports.SliderController = exports.DataGridController = exports.GridController = exports.ListController = exports.GenericController = exports.CubeSplashScreenComponent = exports.VideoSplashScreenComponent = exports.SplashScreenComponent = exports.NotificationComponent = exports.SliderComponent = exports.SlideItemComponent = exports.SlideListComponent = exports.ListComponent = exports.ListItemComponent = exports.GridItemComponent = exports.GridComponent = exports.FormField = exports.SwaggerUIComponent = exports.ModalComponent = exports.ModalEnclosureComponent = exports.EmailField = exports.TextField = exports.InputField = exports.ButtonField = exports.ShadowedComponent = exports.Contact = exports.i18n_messages = void 0;
|
|
29
|
-
exports.SessionData = exports.SessionUserToken = exports.BasicLayout = exports.CanvasTool = exports.GridView = void 0;
|
|
30
|
-
const qcobjects_1 = require("qcobjects");
|
|
31
|
-
var org_qcobjects_i18n_messages_1 = require("./js/org.qcobjects.i18n_messages");
|
|
32
|
-
Object.defineProperty(exports, "i18n_messages", { enumerable: true, get: function () { return org_qcobjects_i18n_messages_1.i18n_messages; } });
|
|
33
|
-
var org_qcobjects_models_1 = require("./js/org.qcobjects.models");
|
|
34
|
-
Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return org_qcobjects_models_1.Contact; } });
|
|
35
|
-
var org_qcobjects_components_1 = require("./js/org.qcobjects.components");
|
|
36
|
-
Object.defineProperty(exports, "ShadowedComponent", { enumerable: true, get: function () { return org_qcobjects_components_1.ShadowedComponent; } });
|
|
37
|
-
Object.defineProperty(exports, "ButtonField", { enumerable: true, get: function () { return org_qcobjects_components_1.ButtonField; } });
|
|
38
|
-
Object.defineProperty(exports, "InputField", { enumerable: true, get: function () { return org_qcobjects_components_1.InputField; } });
|
|
39
|
-
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return org_qcobjects_components_1.TextField; } });
|
|
40
|
-
Object.defineProperty(exports, "EmailField", { enumerable: true, get: function () { return org_qcobjects_components_1.EmailField; } });
|
|
41
|
-
Object.defineProperty(exports, "ModalEnclosureComponent", { enumerable: true, get: function () { return org_qcobjects_components_1.ModalEnclosureComponent; } });
|
|
42
|
-
Object.defineProperty(exports, "ModalComponent", { enumerable: true, get: function () { return org_qcobjects_components_1.ModalComponent; } });
|
|
43
|
-
Object.defineProperty(exports, "SwaggerUIComponent", { enumerable: true, get: function () { return org_qcobjects_components_1.SwaggerUIComponent; } });
|
|
44
|
-
var org_qcobjects_base_components_1 = require("./js/org.qcobjects.base.components");
|
|
45
|
-
Object.defineProperty(exports, "FormField", { enumerable: true, get: function () { return org_qcobjects_base_components_1.FormField; } });
|
|
46
|
-
var org_qcobjects_components_grid_1 = require("./js/org.qcobjects.components.grid");
|
|
47
|
-
Object.defineProperty(exports, "GridComponent", { enumerable: true, get: function () { return org_qcobjects_components_grid_1.GridComponent; } });
|
|
48
|
-
Object.defineProperty(exports, "GridItemComponent", { enumerable: true, get: function () { return org_qcobjects_components_grid_1.GridItemComponent; } });
|
|
49
|
-
var org_qcobjects_components_list_1 = require("./js/org.qcobjects.components.list");
|
|
50
|
-
Object.defineProperty(exports, "ListItemComponent", { enumerable: true, get: function () { return org_qcobjects_components_list_1.ListItemComponent; } });
|
|
51
|
-
Object.defineProperty(exports, "ListComponent", { enumerable: true, get: function () { return org_qcobjects_components_list_1.ListComponent; } });
|
|
52
|
-
var org_qcobjects_components_slider_1 = require("./js/org.qcobjects.components.slider");
|
|
53
|
-
Object.defineProperty(exports, "SlideListComponent", { enumerable: true, get: function () { return org_qcobjects_components_slider_1.SlideListComponent; } });
|
|
54
|
-
Object.defineProperty(exports, "SlideItemComponent", { enumerable: true, get: function () { return org_qcobjects_components_slider_1.SlideItemComponent; } });
|
|
55
|
-
Object.defineProperty(exports, "SliderComponent", { enumerable: true, get: function () { return org_qcobjects_components_slider_1.SliderComponent; } });
|
|
56
|
-
var org_qcobjects_components_notifications_1 = require("./js/org.qcobjects.components.notifications");
|
|
57
|
-
Object.defineProperty(exports, "NotificationComponent", { enumerable: true, get: function () { return org_qcobjects_components_notifications_1.NotificationComponent; } });
|
|
58
|
-
var org_qcobjects_components_splashscreen_1 = require("./js/org.qcobjects.components.splashscreen");
|
|
59
|
-
Object.defineProperty(exports, "SplashScreenComponent", { enumerable: true, get: function () { return org_qcobjects_components_splashscreen_1.SplashScreenComponent; } });
|
|
60
|
-
Object.defineProperty(exports, "VideoSplashScreenComponent", { enumerable: true, get: function () { return org_qcobjects_components_splashscreen_1.VideoSplashScreenComponent; } });
|
|
61
|
-
Object.defineProperty(exports, "CubeSplashScreenComponent", { enumerable: true, get: function () { return org_qcobjects_components_splashscreen_1.CubeSplashScreenComponent; } });
|
|
62
|
-
var org_qcobjects_controllers_1 = require("./js/org.qcobjects.controllers");
|
|
63
|
-
Object.defineProperty(exports, "GenericController", { enumerable: true, get: function () { return org_qcobjects_controllers_1.GenericController; } });
|
|
64
|
-
var org_qcobjects_controllers_list_1 = require("./js/org.qcobjects.controllers.list");
|
|
65
|
-
Object.defineProperty(exports, "ListController", { enumerable: true, get: function () { return org_qcobjects_controllers_list_1.ListController; } });
|
|
66
|
-
var org_qcobjects_controllers_grid_1 = require("./js/org.qcobjects.controllers.grid");
|
|
67
|
-
Object.defineProperty(exports, "GridController", { enumerable: true, get: function () { return org_qcobjects_controllers_grid_1.GridController; } });
|
|
68
|
-
Object.defineProperty(exports, "DataGridController", { enumerable: true, get: function () { return org_qcobjects_controllers_grid_1.DataGridController; } });
|
|
69
|
-
var org_qcobjects_controllers_slider_1 = require("./js/org.qcobjects.controllers.slider");
|
|
70
|
-
Object.defineProperty(exports, "SliderController", { enumerable: true, get: function () { return org_qcobjects_controllers_slider_1.SliderController; } });
|
|
71
|
-
var org_qcobjects_controllers_form_1 = require("./js/org.qcobjects.controllers.form");
|
|
72
|
-
Object.defineProperty(exports, "FormController", { enumerable: true, get: function () { return org_qcobjects_controllers_form_1.FormController; } });
|
|
73
|
-
Object.defineProperty(exports, "FormValidations", { enumerable: true, get: function () { return org_qcobjects_controllers_form_1.FormValidations; } });
|
|
74
|
-
var org_qcobjects_controllers_swagger_1 = require("./js/org.qcobjects.controllers.swagger");
|
|
75
|
-
Object.defineProperty(exports, "SwaggerUIController", { enumerable: true, get: function () { return org_qcobjects_controllers_swagger_1.SwaggerUIController; } });
|
|
76
|
-
var org_qcobjects_effects_1 = require("./js/org.qcobjects.effects");
|
|
77
|
-
Object.defineProperty(exports, "Fade", { enumerable: true, get: function () { return org_qcobjects_effects_1.Fade; } });
|
|
78
|
-
Object.defineProperty(exports, "Move", { enumerable: true, get: function () { return org_qcobjects_effects_1.Move; } });
|
|
79
|
-
Object.defineProperty(exports, "MoveXInFromRight", { enumerable: true, get: function () { return org_qcobjects_effects_1.MoveXInFromRight; } });
|
|
80
|
-
Object.defineProperty(exports, "MoveXInFromLeft", { enumerable: true, get: function () { return org_qcobjects_effects_1.MoveXInFromLeft; } });
|
|
81
|
-
Object.defineProperty(exports, "MoveYInFromBottom", { enumerable: true, get: function () { return org_qcobjects_effects_1.MoveYInFromBottom; } });
|
|
82
|
-
Object.defineProperty(exports, "MoveYInFromTop", { enumerable: true, get: function () { return org_qcobjects_effects_1.MoveYInFromTop; } });
|
|
83
|
-
Object.defineProperty(exports, "RotateX", { enumerable: true, get: function () { return org_qcobjects_effects_1.RotateX; } });
|
|
84
|
-
Object.defineProperty(exports, "RotateY", { enumerable: true, get: function () { return org_qcobjects_effects_1.RotateY; } });
|
|
85
|
-
Object.defineProperty(exports, "RotateZ", { enumerable: true, get: function () { return org_qcobjects_effects_1.RotateZ; } });
|
|
86
|
-
Object.defineProperty(exports, "Rotate", { enumerable: true, get: function () { return org_qcobjects_effects_1.Rotate; } });
|
|
87
|
-
Object.defineProperty(exports, "Radius", { enumerable: true, get: function () { return org_qcobjects_effects_1.Radius; } });
|
|
88
|
-
Object.defineProperty(exports, "Resize", { enumerable: true, get: function () { return org_qcobjects_effects_1.Resize; } });
|
|
89
|
-
Object.defineProperty(exports, "WipeLeft", { enumerable: true, get: function () { return org_qcobjects_effects_1.WipeLeft; } });
|
|
90
|
-
Object.defineProperty(exports, "WipeRight", { enumerable: true, get: function () { return org_qcobjects_effects_1.WipeRight; } });
|
|
91
|
-
Object.defineProperty(exports, "WipeUp", { enumerable: true, get: function () { return org_qcobjects_effects_1.WipeUp; } });
|
|
92
|
-
Object.defineProperty(exports, "WipeDown", { enumerable: true, get: function () { return org_qcobjects_effects_1.WipeDown; } });
|
|
93
|
-
Object.defineProperty(exports, "ModalFade", { enumerable: true, get: function () { return org_qcobjects_effects_1.ModalFade; } });
|
|
94
|
-
Object.defineProperty(exports, "ModalMoveUp", { enumerable: true, get: function () { return org_qcobjects_effects_1.ModalMoveUp; } });
|
|
95
|
-
Object.defineProperty(exports, "ModalMoveDown", { enumerable: true, get: function () { return org_qcobjects_effects_1.ModalMoveDown; } });
|
|
96
|
-
var org_qcobjects_modal_controllers_1 = require("./js/org.qcobjects.modal.controllers");
|
|
97
|
-
Object.defineProperty(exports, "ModalController", { enumerable: true, get: function () { return org_qcobjects_modal_controllers_1.ModalController; } });
|
|
98
|
-
var org_qcobjects_views_1 = require("./js/org.qcobjects.views");
|
|
99
|
-
Object.defineProperty(exports, "GridView", { enumerable: true, get: function () { return org_qcobjects_views_1.GridView; } });
|
|
100
|
-
var org_qcobjects_tools_canvas_1 = require("./js/org.qcobjects.tools.canvas");
|
|
101
|
-
Object.defineProperty(exports, "CanvasTool", { enumerable: true, get: function () { return org_qcobjects_tools_canvas_1.CanvasTool; } });
|
|
102
|
-
var org_qcobjects_tools_layouts_1 = require("./js/org.qcobjects.tools.layouts");
|
|
103
|
-
Object.defineProperty(exports, "BasicLayout", { enumerable: true, get: function () { return org_qcobjects_tools_layouts_1.BasicLayout; } });
|
|
104
|
-
var org_qcobjects_cloud_auth_session_usertoken_1 = require("./js/org.qcobjects.cloud.auth.session.usertoken");
|
|
105
|
-
Object.defineProperty(exports, "SessionUserToken", { enumerable: true, get: function () { return org_qcobjects_cloud_auth_session_usertoken_1.SessionUserToken; } });
|
|
106
|
-
var org_qcobjects_cloud_auth_session_data_1 = require("./js/org.qcobjects.cloud.auth.session.data");
|
|
107
|
-
Object.defineProperty(exports, "SessionData", { enumerable: true, get: function () { return org_qcobjects_cloud_auth_session_data_1.SessionData; } });
|
|
108
|
-
// eslint-disable-next-line camelcase
|
|
109
|
-
(function __qcobjects_sdk__(_top) {
|
|
110
|
-
"use strict";
|
|
111
|
-
if (typeof Object.defineProperty !== "undefined" && typeof _top !== "undefined") {
|
|
112
|
-
try {
|
|
113
|
-
Object.defineProperty(_top, "__qcobjects_sdk__", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
configurable: false,
|
|
116
|
-
writable: false,
|
|
117
|
-
// eslint-disable-next-line camelcase
|
|
118
|
-
value: __qcobjects_sdk__,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
catch (e) {
|
|
122
|
-
if (typeof _top.__qcobjects_sdk__ !== "undefined") {
|
|
123
|
-
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (typeof _top.__qcobjects_sdk__.__loaded__ === "undefined") {
|
|
128
|
-
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
129
|
-
if (typeof _top === "undefined") {
|
|
130
|
-
throw Error("Top context empty: It should either global, module or window");
|
|
131
|
-
}
|
|
132
|
-
const __start__ = qcobjects_1.GlobalSettings.__start__.bind(_top);
|
|
133
|
-
_top._sdk_ = Promise.resolve().then(() => {
|
|
134
|
-
qcobjects_1.CONFIG.set("useSDK", true);
|
|
135
|
-
__start__();
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
})(qcobjects_1._top);
|
|
139
|
-
exports.default = qcobjects_1._top;
|
package/src/QCObjects-SDK.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
|
-
/**
|
|
3
|
-
* QCObjects SDK 2.5
|
|
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
|
-
|
|
27
|
-
import { CONFIG, GlobalSettings, _top } from "qcobjects";
|
|
28
|
-
export {i18n_messages} from "./js/org.qcobjects.i18n_messages";
|
|
29
|
-
export {Contact} from "./js/org.qcobjects.models";
|
|
30
|
-
export {
|
|
31
|
-
ShadowedComponent,
|
|
32
|
-
ButtonField,
|
|
33
|
-
InputField,
|
|
34
|
-
TextField,
|
|
35
|
-
EmailField,
|
|
36
|
-
ModalEnclosureComponent,
|
|
37
|
-
ModalComponent,
|
|
38
|
-
SwaggerUIComponent
|
|
39
|
-
} from "./js/org.qcobjects.components";
|
|
40
|
-
export {FormField, FieldComponentParams} from "./js/org.qcobjects.base.components";
|
|
41
|
-
export {
|
|
42
|
-
GridComponent,
|
|
43
|
-
GridItemComponent
|
|
44
|
-
} from "./js/org.qcobjects.components.grid";
|
|
45
|
-
export {
|
|
46
|
-
ListItemComponent,
|
|
47
|
-
ListComponent
|
|
48
|
-
} from "./js/org.qcobjects.components.list";
|
|
49
|
-
export {
|
|
50
|
-
SlideListComponent,
|
|
51
|
-
SlideItemComponent,
|
|
52
|
-
SliderComponent
|
|
53
|
-
} from "./js/org.qcobjects.components.slider";
|
|
54
|
-
export { NotificationComponent } from "./js/org.qcobjects.components.notifications";
|
|
55
|
-
export {
|
|
56
|
-
SplashScreenComponent,
|
|
57
|
-
VideoSplashScreenComponent,
|
|
58
|
-
CubeSplashScreenComponent
|
|
59
|
-
} from "./js/org.qcobjects.components.splashscreen";
|
|
60
|
-
export { GenericController } from "./js/org.qcobjects.controllers";
|
|
61
|
-
export { ListController, ListControllerParams } from "./js/org.qcobjects.controllers.list";
|
|
62
|
-
export { GridController, DataGridController } from "./js/org.qcobjects.controllers.grid";
|
|
63
|
-
export { SliderController } from "./js/org.qcobjects.controllers.slider";
|
|
64
|
-
export { FormController, FormValidations } from "./js/org.qcobjects.controllers.form";
|
|
65
|
-
export { SwaggerUIController } from "./js/org.qcobjects.controllers.swagger";
|
|
66
|
-
export {
|
|
67
|
-
Fade, Move, MoveXInFromRight,
|
|
68
|
-
MoveXInFromLeft,
|
|
69
|
-
MoveYInFromBottom,
|
|
70
|
-
MoveYInFromTop,
|
|
71
|
-
RotateX,
|
|
72
|
-
RotateY,
|
|
73
|
-
RotateZ,
|
|
74
|
-
Rotate,
|
|
75
|
-
Radius,
|
|
76
|
-
Resize,
|
|
77
|
-
WipeLeft,
|
|
78
|
-
WipeRight,
|
|
79
|
-
WipeUp,
|
|
80
|
-
WipeDown,
|
|
81
|
-
ModalFade, ModalMoveUp, ModalMoveDown
|
|
82
|
-
} from "./js/org.qcobjects.effects";
|
|
83
|
-
export { ModalController } from "./js/org.qcobjects.modal.controllers";
|
|
84
|
-
export { GridView } from "./js/org.qcobjects.views";
|
|
85
|
-
export { CanvasTool } from "./js/org.qcobjects.tools.canvas";
|
|
86
|
-
export { BasicLayout } from "./js/org.qcobjects.tools.layouts";
|
|
87
|
-
export { SessionUserToken } from "./js/org.qcobjects.cloud.auth.session.usertoken";
|
|
88
|
-
export { SessionData } from "./js/org.qcobjects.cloud.auth.session.data";
|
|
89
|
-
|
|
90
|
-
// eslint-disable-next-line camelcase
|
|
91
|
-
(function __qcobjects_sdk__(_top: any) {
|
|
92
|
-
"use strict";
|
|
93
|
-
if (typeof Object.defineProperty !== "undefined" && typeof _top !== "undefined") {
|
|
94
|
-
try {
|
|
95
|
-
Object.defineProperty(_top, "__qcobjects_sdk__", {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
configurable: false,
|
|
98
|
-
writable: false,
|
|
99
|
-
// eslint-disable-next-line camelcase
|
|
100
|
-
value: __qcobjects_sdk__,
|
|
101
|
-
});
|
|
102
|
-
} catch (e) {
|
|
103
|
-
if (typeof _top.__qcobjects_sdk__ !== "undefined") {
|
|
104
|
-
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (typeof _top.__qcobjects_sdk__.__loaded__ === "undefined") {
|
|
110
|
-
_top.__qcobjects_sdk__.__loaded__ = true;
|
|
111
|
-
if (typeof _top === "undefined") {
|
|
112
|
-
throw Error("Top context empty: It should either global, module or window");
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
const __start__ = GlobalSettings.__start__.bind(_top);
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
_top._sdk_ = Promise.resolve().then(() => {
|
|
119
|
-
CONFIG.set("useSDK", true);
|
|
120
|
-
__start__();
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
})(_top);
|
|
126
|
-
|
|
127
|
-
export default _top;
|
|
File without changes
|