qcobjects 2.4.107-ts → 2.4.108-ts
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/.hintrc +5 -0
- package/VERSION +1 -1
- package/build/ArrayCollection.js +136 -0
- package/build/BackendMicroservice.js +211 -0
- package/build/Base64.js +100 -0
- package/build/CONFIG.js +85 -0
- package/build/Cast.js +53 -0
- package/build/Class.js +284 -0
- package/build/ClassFactory.js +38 -0
- package/build/ComplexStorageCache.js +91 -0
- package/build/Component.js +1133 -0
- package/build/ComponentFactory.js +113 -0
- package/build/ConfigSettings.js +39 -0
- package/build/Controller.js +81 -0
- package/build/Crypt.js +87 -0
- package/build/DDO.js +81 -0
- package/build/DOMCreateElement.js +15 -0
- package/build/DataStringify.js +22 -0
- package/build/DefaultTemplateHandler.js +57 -0
- package/build/DocumentLayout.js +20 -0
- package/build/Effect.js +46 -0
- package/build/Export.js +11 -0
- package/build/Import.js +140 -0
- package/build/IncrementInstanceID.js +11 -0
- package/build/InheritClass.js +194 -0
- package/build/LegacyCopy.js +31 -0
- package/build/Logger.js +33 -0
- package/build/MainProcess.js +549 -0
- package/build/NamespaceRef.js +29 -0
- package/build/New.js +17 -0
- package/build/ObjectName.js +22 -0
- package/build/Package.js +67 -0
- package/build/PrimaryCollections.js +7 -0
- package/build/Processor.js +81 -0
- package/build/QCObjects.js +182 -4843
- package/build/Ready.js +49 -0
- package/build/RegisterClass.js +28 -0
- package/build/Service.js +112 -0
- package/build/SourceCSS.js +56 -0
- package/build/SourceJS.js +73 -0
- package/build/Tag.js +77 -0
- package/build/Timer.js +30 -0
- package/build/Toggle.js +59 -0
- package/build/TransitionEffect.js +65 -0
- package/build/VO.js +11 -0
- package/build/View.js +18 -0
- package/build/WidgetsFactory.js +537 -0
- package/build/assign.js +32 -0
- package/build/asyncLoad.js +43 -0
- package/build/basePath.js +32 -0
- package/build/captureFalseTouch.js +32 -0
- package/build/componentLoader.js +258 -0
- package/build/defaultProcessors.js +130 -0
- package/build/domain.js +4 -0
- package/build/findPackageNodePath.js +47 -0
- package/build/getType.js +38 -0
- package/build/globalSettings.js +115 -0
- package/build/index.d.ts +1045 -0
- package/build/index.js +24 -4
- package/build/index.mjs +1 -1
- package/build/introspection.js +86 -0
- package/build/isQCObjects.js +20 -0
- package/build/is_a.js +19 -0
- package/build/is_forbidden_name.js +15 -0
- package/build/is_raw_class.js +7 -0
- package/build/loadSDK.js +63 -0
- package/build/localStorage.js +19 -0
- package/build/make_global.js +24 -0
- package/build/mathFunctions.js +7 -0
- package/build/platform.js +28 -0
- package/build/range.js +17 -0
- package/build/routings.js +21 -0
- package/build/secretKey.js +5 -0
- package/build/serviceLoader.js +300 -0
- package/build/shortCode.js +14 -0
- package/build/subelements.js +8 -0
- package/build/super.js +20 -0
- package/build/tag_filter.js +4 -0
- package/build/top.js +23 -0
- package/build/uniqueID.js +5 -0
- package/build/waitUntil.js +31 -0
- package/build-esbuild.js +62 -0
- package/eslint.config.mjs +87 -0
- package/package.json +26 -23
- package/public/browser/index.js +6502 -0
- package/public/browser/index.js.map +7 -0
- package/public/cjs/index.cjs +6586 -0
- package/public/cjs/index.cjs.map +7 -0
- package/public/esm/index.mjs +6494 -0
- package/public/esm/index.mjs.map +7 -0
- package/spec/helpers/mock-sdk.helper.ts +5 -0
- package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
- package/spec/support/jasmine.json +3 -3
- package/spec/testsClassFactorySpec.ts +40 -0
- package/spec/{testsConfigSpec.js → testsConfigSpec.ts} +2 -2
- package/spec/{testsGlobalFeaturesSpec.js → testsGlobalFeaturesSpec.ts} +10 -8
- package/spec/{testsSpec.js → testsSpec.ts} +11 -10
- package/spec/{testsTypeSpec.js → testsTypeSpec.ts} +5 -3
- package/src/ArrayCollection.ts +143 -0
- package/src/BackendMicroservice.ts +229 -0
- package/src/Base64.ts +92 -0
- package/src/CONFIG.ts +96 -0
- package/src/Cast.ts +46 -0
- package/src/Class.ts +303 -0
- package/src/ClassFactory.ts +34 -0
- package/src/ComplexStorageCache.ts +97 -0
- package/src/Component.ts +1222 -0
- package/src/ComponentFactory.ts +122 -0
- package/src/ConfigSettings.ts +62 -0
- package/src/Controller.ts +90 -0
- package/src/Crypt.ts +87 -0
- package/src/DDO.ts +93 -0
- package/src/DOMCreateElement.ts +12 -0
- package/src/DataStringify.ts +19 -0
- package/src/DefaultTemplateHandler.ts +55 -0
- package/src/DocumentLayout.ts +16 -0
- package/src/Effect.ts +56 -0
- package/src/Export.ts +8 -0
- package/src/Import.ts +135 -0
- package/src/IncrementInstanceID.ts +8 -0
- package/src/InheritClass.ts +210 -0
- package/src/LegacyCopy.ts +27 -0
- package/src/Logger.ts +32 -0
- package/src/MainProcess.ts +629 -0
- package/src/NamespaceRef.ts +26 -0
- package/src/New.ts +15 -0
- package/src/ObjectName.ts +16 -0
- package/src/Package.ts +67 -0
- package/src/PrimaryCollections.ts +7 -0
- package/src/Processor.ts +93 -0
- package/src/QCObjects.ts +100 -0
- package/src/Ready.ts +44 -0
- package/src/RegisterClass.ts +26 -0
- package/src/Service.ts +127 -0
- package/src/SourceCSS.ts +59 -0
- package/src/SourceJS.ts +76 -0
- package/src/Tag.ts +76 -0
- package/src/Timer.ts +42 -0
- package/src/Toggle.ts +65 -0
- package/src/TransitionEffect.ts +80 -0
- package/src/VO.ts +8 -0
- package/src/View.ts +17 -0
- package/src/WidgetsFactory.ts +543 -0
- package/src/assign.ts +33 -0
- package/src/asyncLoad.ts +42 -0
- package/src/basePath.ts +29 -0
- package/src/captureFalseTouch.ts +29 -0
- package/src/componentLoader.ts +252 -0
- package/src/defaultProcessors.ts +145 -0
- package/src/domain.ts +1 -0
- package/src/findPackageNodePath.ts +43 -0
- package/src/getType.ts +36 -0
- package/src/globalSettings.ts +118 -0
- package/src/index.mts +1 -1
- package/src/index.ts +1 -1
- package/src/introspection.ts +80 -0
- package/src/isQCObjects.ts +19 -0
- package/src/is_a.ts +16 -0
- package/src/is_forbidden_name.ts +12 -0
- package/src/is_raw_class.ts +3 -0
- package/src/loadSDK.ts +59 -0
- package/src/localStorage.ts +17 -0
- package/src/make_global.ts +19 -0
- package/src/mathFunctions.ts +3 -0
- package/src/platform.ts +30 -0
- package/src/range.ts +15 -0
- package/src/routings.ts +18 -0
- package/src/secretKey.ts +3 -0
- package/src/serviceLoader.ts +306 -0
- package/src/shortCode.ts +11 -0
- package/src/subelements.ts +4 -0
- package/src/super.ts +17 -0
- package/src/tag_filter.ts +1 -0
- package/src/top.ts +111 -0
- package/src/types/global/index.d.ts +597 -0
- package/src/uniqueID.ts +3 -0
- package/src/waitUntil.ts +26 -0
- package/tsconfig.d.json +35 -8
- package/tsconfig.jasmine.json +39 -0
- package/tsconfig.json +46 -12
- package/.eslintignore +0 -5
- package/.eslintrc.cjs +0 -21
- package/.eslintrc.json +0 -24
- package/browser/QCObjects.js +0 -2
- package/browser/QCObjects.js.map +0 -7
- package/browser/chunks/chunk-O2PFFZVJ.js +0 -713
- package/browser/chunks/chunk-O2PFFZVJ.js.map +0 -7
- package/browser/chunks/chunk-TBLBK5VV.js +0 -713
- package/browser/chunks/chunk-TBLBK5VV.js.map +0 -7
- package/browser/chunks/chunk-ZYLXOA35.js +0 -713
- package/browser/chunks/chunk-ZYLXOA35.js.map +0 -7
- package/browser/index.js +0 -2
- package/browser/index.js.map +0 -7
- package/spec/testsClassFactorySpec.js +0 -41
- package/src/QCObjects.js +0 -5247
- package/src/index.d.ts +0 -8
- package/types/index.d.ts +0 -472
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,1045 @@
|
|
|
1
|
+
declare module "is_raw_class" {
|
|
2
|
+
export const __is_raw_class__: (o_c: any) => boolean;
|
|
3
|
+
}
|
|
4
|
+
declare module "PrimaryCollections" {
|
|
5
|
+
import { T_QC_CLASSES, T_QC_PACKAGES } from "types";
|
|
6
|
+
export var _QC_CLASSES: T_QC_CLASSES;
|
|
7
|
+
export var _QC_PACKAGES: T_QC_PACKAGES;
|
|
8
|
+
export var _QC_PACKAGES_IMPORTED: any[];
|
|
9
|
+
export var _QC_READY_LISTENERS: any[];
|
|
10
|
+
}
|
|
11
|
+
declare module "ClassFactory" {
|
|
12
|
+
import { TClassFactory } from "types";
|
|
13
|
+
export const ClassFactory: TClassFactory;
|
|
14
|
+
}
|
|
15
|
+
declare module "platform" {
|
|
16
|
+
export const isDeno: boolean;
|
|
17
|
+
export const isBrowser: boolean;
|
|
18
|
+
export const isNodeCommonJS: boolean;
|
|
19
|
+
export const deno_require: (name: string) => void;
|
|
20
|
+
export const _require_: (name: string) => any;
|
|
21
|
+
export const is_phonegap: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare module "Logger" {
|
|
24
|
+
export class Logger {
|
|
25
|
+
debugEnabled: boolean;
|
|
26
|
+
infoEnabled: boolean;
|
|
27
|
+
warnEnabled: boolean;
|
|
28
|
+
debug(message: string): void;
|
|
29
|
+
info(message: string): void;
|
|
30
|
+
warn(message: string): void;
|
|
31
|
+
}
|
|
32
|
+
export const logger: Logger;
|
|
33
|
+
}
|
|
34
|
+
declare module "New" {
|
|
35
|
+
/**
|
|
36
|
+
* Creates an object from a Class definition
|
|
37
|
+
*
|
|
38
|
+
* @param {QC_Object} o
|
|
39
|
+
* @param {Object} args
|
|
40
|
+
*/
|
|
41
|
+
export const New: (__class__: any, args?: {}) => any;
|
|
42
|
+
}
|
|
43
|
+
declare module "mathFunctions" {
|
|
44
|
+
export const __to_number: (value: any) => number;
|
|
45
|
+
}
|
|
46
|
+
declare module "ArrayCollection" {
|
|
47
|
+
import { IArrayCollection, IArrayList } from "types";
|
|
48
|
+
export class ArrayList extends Array implements IArrayList {
|
|
49
|
+
prototype: any;
|
|
50
|
+
unique(): any[];
|
|
51
|
+
table(): void;
|
|
52
|
+
sum(): number;
|
|
53
|
+
avg(): number;
|
|
54
|
+
min(): number;
|
|
55
|
+
max(): number;
|
|
56
|
+
sortBy(propName: string, sortAsc?: boolean): any[];
|
|
57
|
+
matrix(length: number, fillValue?: number): any[];
|
|
58
|
+
matrix2d(length: number, fillValue?: number): any[][];
|
|
59
|
+
matrix3d(length: number, fillValue?: number): any[][][];
|
|
60
|
+
}
|
|
61
|
+
export class ArrayCollection implements IArrayCollection {
|
|
62
|
+
source: ArrayList;
|
|
63
|
+
changed(prop: string, value: any): void;
|
|
64
|
+
push(value: any): void;
|
|
65
|
+
pop(): void;
|
|
66
|
+
_new_(source: ArrayList): void;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
declare module "basePath" {
|
|
70
|
+
export var _basePath_: string;
|
|
71
|
+
export const setBasePath: (value: string) => void;
|
|
72
|
+
}
|
|
73
|
+
declare module "LegacyCopy" {
|
|
74
|
+
export const _LegacyCopy: (obj: any, _ignore?: string[]) => any;
|
|
75
|
+
}
|
|
76
|
+
declare module "DataStringify" {
|
|
77
|
+
export const _DataStringify: (data: any) => string;
|
|
78
|
+
}
|
|
79
|
+
declare module "domain" {
|
|
80
|
+
export const _domain_: string;
|
|
81
|
+
}
|
|
82
|
+
declare module "IncrementInstanceID" {
|
|
83
|
+
/**
|
|
84
|
+
* Primary instance ID of all objects
|
|
85
|
+
*/
|
|
86
|
+
export var __instanceID: number;
|
|
87
|
+
export const IncrementInstanceID: () => void;
|
|
88
|
+
}
|
|
89
|
+
declare module "Cast" {
|
|
90
|
+
/**
|
|
91
|
+
* Casts an object to another object class type
|
|
92
|
+
*
|
|
93
|
+
* @param {Object} obj_source
|
|
94
|
+
* @param {Object} obj_dest
|
|
95
|
+
*/
|
|
96
|
+
export const _Cast: (obj_source: any, obj_dest: any) => any;
|
|
97
|
+
/**
|
|
98
|
+
* Casts an object to another object class type. Only properties
|
|
99
|
+
*
|
|
100
|
+
* @param {Object} obj_source
|
|
101
|
+
* @param {Object} obj_dest
|
|
102
|
+
*/
|
|
103
|
+
export const _CastProps: (obj_source: any, obj_dest: any) => any;
|
|
104
|
+
}
|
|
105
|
+
declare module "DOMCreateElement" {
|
|
106
|
+
import { IQCObjectsElement } from "types";
|
|
107
|
+
export const _DOMCreateElement: (elementName: string) => IQCObjectsElement;
|
|
108
|
+
}
|
|
109
|
+
declare module "ObjectName" {
|
|
110
|
+
/**
|
|
111
|
+
* Returns the object or function name
|
|
112
|
+
*
|
|
113
|
+
* @param Object or function
|
|
114
|
+
*/
|
|
115
|
+
export const ObjectName: (o: any) => string;
|
|
116
|
+
}
|
|
117
|
+
declare module "getType" {
|
|
118
|
+
/**
|
|
119
|
+
* Determine the type of the Object for any QCObjects Object
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} object
|
|
122
|
+
*/
|
|
123
|
+
export const __getType__: (o_c: any) => any;
|
|
124
|
+
}
|
|
125
|
+
declare module "introspection" {
|
|
126
|
+
export const _protected_code_: (_: any) => void;
|
|
127
|
+
export const _methods_: <T>(_: any) => T[];
|
|
128
|
+
}
|
|
129
|
+
declare module "isQCObjects" {
|
|
130
|
+
export const isQCObjects_Object: (_: any) => boolean;
|
|
131
|
+
export const isQCObjects_Class: (_: any) => boolean;
|
|
132
|
+
}
|
|
133
|
+
declare module "is_a" {
|
|
134
|
+
/**
|
|
135
|
+
* Returns if a class or object is from a determinated type
|
|
136
|
+
* @param {Object} object
|
|
137
|
+
* @param {String} typeName
|
|
138
|
+
*/
|
|
139
|
+
export const is_a: (obj: any, typeName: string) => boolean;
|
|
140
|
+
}
|
|
141
|
+
declare module "is_forbidden_name" {
|
|
142
|
+
/**
|
|
143
|
+
* Internal use to determine the forbidden names for classes
|
|
144
|
+
* Reserved words
|
|
145
|
+
*
|
|
146
|
+
* @param {String} name
|
|
147
|
+
* @param {Object} type
|
|
148
|
+
* @param {Object} definition
|
|
149
|
+
*/
|
|
150
|
+
export const __is__forbidden_name__: (name: string) => boolean;
|
|
151
|
+
}
|
|
152
|
+
declare module "Class" {
|
|
153
|
+
import { TClass } from "types";
|
|
154
|
+
/**
|
|
155
|
+
* Creates new object class of another object
|
|
156
|
+
*
|
|
157
|
+
* @param {String} name
|
|
158
|
+
* @param {Object} type
|
|
159
|
+
* @param {Object} definition
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* Class (name, type, definition)
|
|
163
|
+
* Class (name, type)
|
|
164
|
+
* Class (name, definition)
|
|
165
|
+
* Class ()
|
|
166
|
+
*
|
|
167
|
+
*
|
|
168
|
+
* const MyClass = Class ("MyComponent", Component, {
|
|
169
|
+
* name: "one_component",
|
|
170
|
+
* method1 : () => {console.log ("done") }
|
|
171
|
+
* })
|
|
172
|
+
* const myClassInstance = new MyClass ({name: "one_component"})
|
|
173
|
+
*
|
|
174
|
+
* const MyClass = Class ("MyService",{
|
|
175
|
+
* name: "myservice",
|
|
176
|
+
* })
|
|
177
|
+
*
|
|
178
|
+
* const myClassInstance = new MyClass ({name: "myservice"})
|
|
179
|
+
*/
|
|
180
|
+
export const Class: TClass;
|
|
181
|
+
}
|
|
182
|
+
declare module "Base64" {
|
|
183
|
+
export const Base64: {
|
|
184
|
+
_keyStr: string;
|
|
185
|
+
encode(e: string): string;
|
|
186
|
+
decode(e: string): string;
|
|
187
|
+
_utf8_encode(e: string): string;
|
|
188
|
+
_utf8_decode(e: string): string;
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
declare module "secretKey" {
|
|
192
|
+
export const _secretKey: string;
|
|
193
|
+
}
|
|
194
|
+
declare module "Crypt" {
|
|
195
|
+
import { _ICrypt } from "types";
|
|
196
|
+
import { InheritClass } from "InheritClass";
|
|
197
|
+
export class _Crypt extends InheritClass implements _ICrypt {
|
|
198
|
+
string: string;
|
|
199
|
+
key: string;
|
|
200
|
+
encrypt(_string_: string, key: string): string;
|
|
201
|
+
decrypt(_string_: string, key: string): string;
|
|
202
|
+
last_string: string;
|
|
203
|
+
last_key: string;
|
|
204
|
+
construct: boolean;
|
|
205
|
+
_new_(o: {
|
|
206
|
+
string?: string;
|
|
207
|
+
key: string;
|
|
208
|
+
}): void;
|
|
209
|
+
_encrypt(): string;
|
|
210
|
+
_decrypt(): string;
|
|
211
|
+
static encrypt(string: string, key: string): string;
|
|
212
|
+
static decrypt(string: string, key: string): string;
|
|
213
|
+
}
|
|
214
|
+
export const _CryptObject: (o: any) => string;
|
|
215
|
+
export const _DecryptObject: (s: string) => any;
|
|
216
|
+
}
|
|
217
|
+
declare module "ConfigSettings" {
|
|
218
|
+
import { InheritClass } from "InheritClass";
|
|
219
|
+
type TConfigSettings = {
|
|
220
|
+
[key: string]: any;
|
|
221
|
+
relativeImportPath: string;
|
|
222
|
+
remoteImportsPath: string;
|
|
223
|
+
remoteSDKPath: string;
|
|
224
|
+
asynchronousImportsLoad: boolean;
|
|
225
|
+
removePackageScriptAfterLoading: boolean;
|
|
226
|
+
componentsBasePath: string;
|
|
227
|
+
delayForReady: number;
|
|
228
|
+
preserveComponentBodyTag: false;
|
|
229
|
+
useConfigService: false;
|
|
230
|
+
routingWay: string;
|
|
231
|
+
useSDK: boolean;
|
|
232
|
+
useLocalSDK: boolean;
|
|
233
|
+
basePath: string;
|
|
234
|
+
};
|
|
235
|
+
export class ConfigSettings extends InheritClass {
|
|
236
|
+
_CONFIG: TConfigSettings;
|
|
237
|
+
protected static _instance: ConfigSettings;
|
|
238
|
+
_CONFIG_ENC: string;
|
|
239
|
+
set(name: string, value: any): void;
|
|
240
|
+
get(name: string, _defaultValue?: any): any;
|
|
241
|
+
static get instance(): ConfigSettings;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
declare module "CONFIG" {
|
|
245
|
+
import { InheritClass } from "InheritClass";
|
|
246
|
+
import { ICONFIG } from "types";
|
|
247
|
+
export class CONFIG extends InheritClass implements ICONFIG {
|
|
248
|
+
get _CONFIG_ENC(): string;
|
|
249
|
+
get _CONFIG(): unknown;
|
|
250
|
+
set(name: string, value: unknown): void;
|
|
251
|
+
get(name: string, _default?: unknown): any;
|
|
252
|
+
private static _instance;
|
|
253
|
+
static get instance(): CONFIG;
|
|
254
|
+
static set(name: string, value: unknown): void;
|
|
255
|
+
static get(name: string, value?: unknown): any;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
declare module "Processor" {
|
|
259
|
+
import { type IComponent, type IProcessor } from "types";
|
|
260
|
+
import { InheritClass } from "InheritClass";
|
|
261
|
+
export class Processor extends InheritClass implements IProcessor {
|
|
262
|
+
protected static _instance: IProcessor | undefined;
|
|
263
|
+
constructor({ component, processors }: {
|
|
264
|
+
component: IComponent | null;
|
|
265
|
+
processors?: any;
|
|
266
|
+
});
|
|
267
|
+
processors: any;
|
|
268
|
+
static get instance(): IProcessor;
|
|
269
|
+
setProcessor(_proc_: Function): void;
|
|
270
|
+
component: IComponent | null;
|
|
271
|
+
execute(component: IComponent, processorName: string, args: string): string;
|
|
272
|
+
process(template: string, component?: IComponent | null): string;
|
|
273
|
+
processObject(obj: any, component?: IComponent | null): any;
|
|
274
|
+
}
|
|
275
|
+
export const GlobalProcessor: IProcessor;
|
|
276
|
+
}
|
|
277
|
+
declare module "routings" {
|
|
278
|
+
import { TComponentRouting } from "types";
|
|
279
|
+
export const __routing_params__: (routing: TComponentRouting, routingPath: string) => object;
|
|
280
|
+
export const __valid_routings__: (routings: TComponentRouting[], routingPath: string) => TComponentRouting[];
|
|
281
|
+
export const __valid_routing_way__: (validRoutingWays: string[], routingWay: string) => boolean;
|
|
282
|
+
}
|
|
283
|
+
declare module "Export" {
|
|
284
|
+
export const Export: (f: any) => void;
|
|
285
|
+
}
|
|
286
|
+
declare module "asyncLoad" {
|
|
287
|
+
import { TAsyncLoadCallback } from "types";
|
|
288
|
+
export const _asyncLoad: never[];
|
|
289
|
+
export function asyncLoad(callback: TAsyncLoadCallback, args?: any[]): any;
|
|
290
|
+
export const _fireAsyncLoad: () => void;
|
|
291
|
+
}
|
|
292
|
+
declare module "ComplexStorageCache" {
|
|
293
|
+
export class ComplexStorageCache {
|
|
294
|
+
constructor(params: {
|
|
295
|
+
index: any;
|
|
296
|
+
load: any;
|
|
297
|
+
alternate: any;
|
|
298
|
+
});
|
|
299
|
+
getItem(cachedObjectID: string): any;
|
|
300
|
+
setItem(cachedObjectID: string, value: any): void;
|
|
301
|
+
isEmpty(object: string | number | null): boolean;
|
|
302
|
+
getID(object: any): string | undefined;
|
|
303
|
+
save(object: any, cachedNewResponse: any): void;
|
|
304
|
+
getCached(object: any): any;
|
|
305
|
+
clear(): void;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
declare module "serviceLoader" {
|
|
309
|
+
import { IService } from "types";
|
|
310
|
+
/**
|
|
311
|
+
* Loads a simple component from a template
|
|
312
|
+
*
|
|
313
|
+
* @author: Jean Machuca <correojean@gmail.com>
|
|
314
|
+
* @param service a Service object
|
|
315
|
+
*/
|
|
316
|
+
export const serviceLoader: (service: IService, _async?: boolean) => Promise<unknown> | undefined;
|
|
317
|
+
}
|
|
318
|
+
declare module "tag_filter" {
|
|
319
|
+
export const _tag_filter_ = "quick-component:not([loaded]),component:not([loaded])";
|
|
320
|
+
}
|
|
321
|
+
declare module "componentLoader" {
|
|
322
|
+
import { IComponent } from "types";
|
|
323
|
+
/**
|
|
324
|
+
* Loads a simple component from a template
|
|
325
|
+
*
|
|
326
|
+
* @author: Jean Machuca <correojean@gmail.com>
|
|
327
|
+
* @param component a Component object
|
|
328
|
+
*/
|
|
329
|
+
export const componentLoader: (component: IComponent, _async: boolean) => Promise<any>;
|
|
330
|
+
}
|
|
331
|
+
declare module "Component" {
|
|
332
|
+
import { InheritClass } from "InheritClass";
|
|
333
|
+
import { IComponent, IController, IEffect, IProcessor, IQCObjectsElement, IQCObjectsShadowedElement, IView, TBody, TComponentDoneResponse, TComponentParams, TComponentRouting, TComponentRoutings } from "types";
|
|
334
|
+
export class Component extends InheritClass implements IComponent {
|
|
335
|
+
static shadowed: boolean | undefined;
|
|
336
|
+
static cached: any;
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
name: string;
|
|
339
|
+
templateURI: string;
|
|
340
|
+
url: string;
|
|
341
|
+
tplsource: string;
|
|
342
|
+
tplextension: string;
|
|
343
|
+
template: string;
|
|
344
|
+
validRoutingWays: string[];
|
|
345
|
+
basePath: string;
|
|
346
|
+
domain: string;
|
|
347
|
+
templateHandler: string;
|
|
348
|
+
processorHandler?: IProcessor;
|
|
349
|
+
routingWay: string | null;
|
|
350
|
+
routingNodes: (IQCObjectsElement | HTMLElement)[];
|
|
351
|
+
routings: TComponentRoutings;
|
|
352
|
+
routingPath: string;
|
|
353
|
+
routingPaths: string[];
|
|
354
|
+
_componentHelpers: any[];
|
|
355
|
+
subcomponents: any[];
|
|
356
|
+
splashScreenComponent?: IComponent;
|
|
357
|
+
controller?: IController;
|
|
358
|
+
routingController?: IController;
|
|
359
|
+
view?: IView;
|
|
360
|
+
effect?: IEffect;
|
|
361
|
+
effectClass: string;
|
|
362
|
+
method: string;
|
|
363
|
+
cached?: boolean;
|
|
364
|
+
__promise__?: Promise<any> | null;
|
|
365
|
+
data: any;
|
|
366
|
+
__namespace?: string;
|
|
367
|
+
protected _parsedAssignmentText: string;
|
|
368
|
+
protected __shadowRoot: any;
|
|
369
|
+
protected _serviceClassName: string | null;
|
|
370
|
+
enableServiceClass?: boolean | undefined;
|
|
371
|
+
serviceInstance: any;
|
|
372
|
+
serviceData: any;
|
|
373
|
+
shadowed?: boolean;
|
|
374
|
+
container: any;
|
|
375
|
+
innerHTML: any;
|
|
376
|
+
reload: any;
|
|
377
|
+
static subcomponents: any;
|
|
378
|
+
assignRoutingParams?: boolean;
|
|
379
|
+
responseTo?: string | undefined;
|
|
380
|
+
static responseTo?: string | undefined;
|
|
381
|
+
constructor({ __parent__, templateURI, template, tplsource, tplextension, url, name, method, data, reload, shadowed, cached, enableServiceClass, assignRoutingParams, _body, __promise__, __shadowRoot, body, shadowRoot, splashScreenComponent, controller, view }: TComponentParams);
|
|
382
|
+
set cacheIndex(value: string);
|
|
383
|
+
get cacheIndex(): string;
|
|
384
|
+
set parsedAssignmentText(value: string);
|
|
385
|
+
get parsedAssignmentText(): string;
|
|
386
|
+
set shadowRoot(value: IQCObjectsShadowedElement);
|
|
387
|
+
get shadowRoot(): IQCObjectsShadowedElement;
|
|
388
|
+
set routingSelected(value: TComponentRouting[]);
|
|
389
|
+
get routingSelected(): TComponentRouting[];
|
|
390
|
+
set routingParams(value: object);
|
|
391
|
+
get routingParams(): object;
|
|
392
|
+
set serviceClassName(_serviceClassName: string);
|
|
393
|
+
get serviceClassName(): string | null;
|
|
394
|
+
protected get responseToData(): boolean;
|
|
395
|
+
protected get responseToTemplate(): boolean;
|
|
396
|
+
createServiceInstance(): Promise<JSON | string | null>;
|
|
397
|
+
_bindroute_(): void;
|
|
398
|
+
done(standardResponse?: TComponentDoneResponse): Promise<TComponentDoneResponse>;
|
|
399
|
+
createControllerInstance(): Promise<{
|
|
400
|
+
component: IComponent;
|
|
401
|
+
controller: IController;
|
|
402
|
+
}>;
|
|
403
|
+
createEffectInstance(): Promise<{
|
|
404
|
+
component: Component;
|
|
405
|
+
effect: IEffect;
|
|
406
|
+
}>;
|
|
407
|
+
createViewInstance(): Promise<{
|
|
408
|
+
component: Component;
|
|
409
|
+
view: IView;
|
|
410
|
+
}>;
|
|
411
|
+
__done__(): Promise<unknown>;
|
|
412
|
+
hostElements(tagFilter: string): (IQCObjectsElement | HTMLElement | IQCObjectsShadowedElement)[];
|
|
413
|
+
get subtags(): (HTMLElement | IQCObjectsElement | IQCObjectsShadowedElement)[];
|
|
414
|
+
get bodyAttributes(): {
|
|
415
|
+
[x: string]: string | null;
|
|
416
|
+
};
|
|
417
|
+
get dataAttributes(): {};
|
|
418
|
+
__buildSubComponents__(rebuildObjects?: boolean): any;
|
|
419
|
+
fail(standardResponse: {
|
|
420
|
+
error: any;
|
|
421
|
+
component: Component;
|
|
422
|
+
}): Promise<{
|
|
423
|
+
error: any;
|
|
424
|
+
component: Component;
|
|
425
|
+
}>;
|
|
426
|
+
set(key: string, value: any): void;
|
|
427
|
+
get(key: string, _defaultValue?: string): any;
|
|
428
|
+
feedComponent(): Promise<any>;
|
|
429
|
+
rebuild(): Promise<{
|
|
430
|
+
request?: XMLHttpRequest;
|
|
431
|
+
component: Component;
|
|
432
|
+
}>;
|
|
433
|
+
Cast(oClass: any): any;
|
|
434
|
+
route(): Promise<void>;
|
|
435
|
+
static route(): Promise<void>;
|
|
436
|
+
fullscreen(): void;
|
|
437
|
+
closefullscreen(): void;
|
|
438
|
+
_generateRoutingPaths(componentBody: TBody): Promise<void>;
|
|
439
|
+
parseTemplate(template: any): string;
|
|
440
|
+
_reroute_(): Promise<Component>;
|
|
441
|
+
lazyLoadImages(): null;
|
|
442
|
+
applyTransitionEffect(effectClassName: string): void;
|
|
443
|
+
applyObserveTransitionEffect(effectClassName: any): void;
|
|
444
|
+
get componentRoot(): TBody;
|
|
445
|
+
scrollIntoHash(): void;
|
|
446
|
+
i18n_translate(): void;
|
|
447
|
+
addComponentHelper(componentHelper: any): void;
|
|
448
|
+
runComponentHelpers(): void;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
declare module "ComponentFactory" {
|
|
452
|
+
import { TComponentURIParams } from "types";
|
|
453
|
+
import { Component } from "Component";
|
|
454
|
+
/**
|
|
455
|
+
* Returns a standarized uri for a component
|
|
456
|
+
* @example
|
|
457
|
+
* templateURI = ComponentURI({'COMPONENTS_BASE_PATH':'','COMPONENT_NAME':'','TPLEXTENSION':'','TPL_SOURCE':''})
|
|
458
|
+
* @author: Jean Machuca <correojean@gmail.com>
|
|
459
|
+
* @param params an object with the params to build the uri path
|
|
460
|
+
*/
|
|
461
|
+
export const ComponentURI: ({ TPL_SOURCE, COMPONENTS_BASE_PATH, COMPONENT_NAME, TPLEXTENSION }: TComponentURIParams) => string;
|
|
462
|
+
export const _buildComponentFromElement_: (element: Element, __parent__: any) => Component;
|
|
463
|
+
export const _buildComponentsFromElements_: (elements: HTMLElement[], __parent__: Component | null) => Component[];
|
|
464
|
+
export const buildComponents: (element: HTMLElement) => Component[];
|
|
465
|
+
}
|
|
466
|
+
declare module "top" {
|
|
467
|
+
import { IComplexStorageCache, IComponent, IConfigService } from "types";
|
|
468
|
+
type QCObjects = {
|
|
469
|
+
lastCache?: IComplexStorageCache;
|
|
470
|
+
componentsStack: IComponent[];
|
|
471
|
+
Microservice: any;
|
|
472
|
+
Route: any;
|
|
473
|
+
BackendMicroservice: any;
|
|
474
|
+
QCObjectsElement: any;
|
|
475
|
+
QCObjectsShadowedElement: any;
|
|
476
|
+
Logger: any;
|
|
477
|
+
Class: any;
|
|
478
|
+
_Crypt: any;
|
|
479
|
+
TagElements: any;
|
|
480
|
+
DefaultTemplateHandler: any;
|
|
481
|
+
SourceJS: any;
|
|
482
|
+
SourceCSS: any;
|
|
483
|
+
ArrayList: any;
|
|
484
|
+
ArrayCollection: any;
|
|
485
|
+
GlobalSettings: any;
|
|
486
|
+
GLOBAL: any;
|
|
487
|
+
DDO: any;
|
|
488
|
+
CacheController: any;
|
|
489
|
+
ComplexCacheParams: any;
|
|
490
|
+
ComplexStorageCache: any;
|
|
491
|
+
ComponentWidget: any;
|
|
492
|
+
asyncLoad: any;
|
|
493
|
+
RegisterClass: any;
|
|
494
|
+
ComponentURI: any;
|
|
495
|
+
waitUntil: any;
|
|
496
|
+
super: any;
|
|
497
|
+
_DOMCreateElement: any;
|
|
498
|
+
shortCode: any;
|
|
499
|
+
getType: any;
|
|
500
|
+
is_a: any;
|
|
501
|
+
_DataStringify: any;
|
|
502
|
+
serviceLoader: any;
|
|
503
|
+
componentLoader: any;
|
|
504
|
+
ObjectName: any;
|
|
505
|
+
isQCObjects_Class: any;
|
|
506
|
+
isQCObjects_Object: any;
|
|
507
|
+
NamespaceRef: any;
|
|
508
|
+
RegisterWidget: any;
|
|
509
|
+
RegisterWidgets: any;
|
|
510
|
+
range: any;
|
|
511
|
+
getDocumentLayout: any;
|
|
512
|
+
Export: any;
|
|
513
|
+
New: any;
|
|
514
|
+
Tag: any;
|
|
515
|
+
Ready: any;
|
|
516
|
+
methods: any;
|
|
517
|
+
set: (name: string, value: any) => void;
|
|
518
|
+
get: (name: string, _default?: any) => any;
|
|
519
|
+
start: any;
|
|
520
|
+
InheritClass: any;
|
|
521
|
+
Processor: any;
|
|
522
|
+
ComponentParams: any;
|
|
523
|
+
ComponentDoneResponse: any;
|
|
524
|
+
Component: any;
|
|
525
|
+
CONFIG: any;
|
|
526
|
+
ControllerParams: any;
|
|
527
|
+
Controller: any;
|
|
528
|
+
ViewParams: any;
|
|
529
|
+
View: any;
|
|
530
|
+
Service: any;
|
|
531
|
+
JSONService: any;
|
|
532
|
+
ConfigService: any;
|
|
533
|
+
VO: any;
|
|
534
|
+
EffectParams: any;
|
|
535
|
+
Effect: any;
|
|
536
|
+
TransitionEffect: any;
|
|
537
|
+
TimerParams: any;
|
|
538
|
+
Timer: any;
|
|
539
|
+
Toggle: any;
|
|
540
|
+
logger: any;
|
|
541
|
+
sdk: any;
|
|
542
|
+
global: any;
|
|
543
|
+
ClassFactory: any;
|
|
544
|
+
Package: any;
|
|
545
|
+
Import: any;
|
|
546
|
+
_sdk_: any;
|
|
547
|
+
ClassesList: any[];
|
|
548
|
+
PackagesList: any[];
|
|
549
|
+
PackagesNameList: any[];
|
|
550
|
+
ClassesNameList: any[];
|
|
551
|
+
} & typeof self & typeof global;
|
|
552
|
+
export var _top: QCObjects;
|
|
553
|
+
export let componentsStack: IComponent[];
|
|
554
|
+
export const resetTop: (_top_: QCObjects) => void;
|
|
555
|
+
export const buildComponentsStack: () => void;
|
|
556
|
+
export let configService: IConfigService;
|
|
557
|
+
export const setConfigService: (_configService: IConfigService) => void;
|
|
558
|
+
}
|
|
559
|
+
declare module "make_global" {
|
|
560
|
+
export const __make_global__: (f: any) => void;
|
|
561
|
+
}
|
|
562
|
+
declare module "RegisterClass" {
|
|
563
|
+
export const __register_class__: (_class_: any, __namespace?: string) => any;
|
|
564
|
+
export const RegisterClass: (_class_: any, __namespace?: string) => any;
|
|
565
|
+
}
|
|
566
|
+
declare module "Package" {
|
|
567
|
+
/**
|
|
568
|
+
* Defines a package for Class classification
|
|
569
|
+
*
|
|
570
|
+
* @param {Object} namespace
|
|
571
|
+
* @param {Object} classes
|
|
572
|
+
*/
|
|
573
|
+
export const Package: (namespace: string, classes?: any[]) => any[] | undefined;
|
|
574
|
+
}
|
|
575
|
+
declare module "InheritClass" {
|
|
576
|
+
import { type IInheritClass, type TBody } from "types";
|
|
577
|
+
export class InheritClass implements IInheritClass {
|
|
578
|
+
[key: string]: any;
|
|
579
|
+
__definition: any;
|
|
580
|
+
private _body;
|
|
581
|
+
get body(): TBody;
|
|
582
|
+
set body(value: TBody);
|
|
583
|
+
childs: any;
|
|
584
|
+
__instanceID: number;
|
|
585
|
+
constructor(_o_?: any);
|
|
586
|
+
static get __classType(): any;
|
|
587
|
+
get __classType(): string;
|
|
588
|
+
static hierarchy(__class__: any): any[];
|
|
589
|
+
__namespace?: string | undefined;
|
|
590
|
+
__new__(_o_: any): void;
|
|
591
|
+
_new_(_o_?: any): void;
|
|
592
|
+
static getParentClass(): any;
|
|
593
|
+
getParentClass(): any;
|
|
594
|
+
static getClass(): any;
|
|
595
|
+
getClass(): any;
|
|
596
|
+
css(_css: any): any;
|
|
597
|
+
hierarchy(): any;
|
|
598
|
+
append(_child?: any): void;
|
|
599
|
+
attachIn(tag: any): void;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
declare module "BackendMicroservice" {
|
|
603
|
+
import { Http2Stream } from "http2";
|
|
604
|
+
import { Stream } from "stream";
|
|
605
|
+
import { InheritClass } from "InheritClass";
|
|
606
|
+
export class BackendMicroservice extends InheritClass {
|
|
607
|
+
stream: any;
|
|
608
|
+
route: any;
|
|
609
|
+
headers: any;
|
|
610
|
+
request: any;
|
|
611
|
+
constructor({ domain, basePath, body, stream, request }: {
|
|
612
|
+
domain?: string | undefined;
|
|
613
|
+
basePath?: string | undefined;
|
|
614
|
+
body?: null | undefined;
|
|
615
|
+
stream?: null | undefined;
|
|
616
|
+
request?: null | undefined;
|
|
617
|
+
});
|
|
618
|
+
cors(): void;
|
|
619
|
+
head(formData: any): void;
|
|
620
|
+
get(formData: any): void;
|
|
621
|
+
post(formData: any): void;
|
|
622
|
+
put(formData: any): void;
|
|
623
|
+
delete(formData: any): void;
|
|
624
|
+
connect(formData: any): void;
|
|
625
|
+
options(formData: any): void;
|
|
626
|
+
trace(formData: any): void;
|
|
627
|
+
patch(formData: any): void;
|
|
628
|
+
finishWithBody(stream?: Http2Stream | Stream): void;
|
|
629
|
+
done(): void;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
declare module "Controller" {
|
|
633
|
+
import { IController, IComponent, TControllerParams } from "types";
|
|
634
|
+
import { InheritClass } from "InheritClass";
|
|
635
|
+
export class Controller extends InheritClass implements IController {
|
|
636
|
+
component: IComponent;
|
|
637
|
+
dependencies?: any[];
|
|
638
|
+
constructor({ component, dependencies }: TControllerParams);
|
|
639
|
+
fail?(...args: [...args: any[]]): void;
|
|
640
|
+
routingSelectedAttr(attrName: string): any;
|
|
641
|
+
isTouchable(): boolean;
|
|
642
|
+
onpress(subelementSelector: string, handler: Function): void;
|
|
643
|
+
createRoutingController(): void;
|
|
644
|
+
done(): void;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
declare module "DDO" {
|
|
648
|
+
import { TDDOParams } from "types";
|
|
649
|
+
import { InheritClass } from "InheritClass";
|
|
650
|
+
/**
|
|
651
|
+
* Dynamic Data Objects Class
|
|
652
|
+
* Usage:
|
|
653
|
+
* Class('TestDDO',{
|
|
654
|
+
* data: {},
|
|
655
|
+
* _new_ (){
|
|
656
|
+
* this.ddo = New(DDO,{
|
|
657
|
+
* instance:this,
|
|
658
|
+
* name:'data',
|
|
659
|
+
* value:{},
|
|
660
|
+
* fget (value){
|
|
661
|
+
* logger.debug('returned value '+ value );
|
|
662
|
+
* }
|
|
663
|
+
* })
|
|
664
|
+
* }
|
|
665
|
+
* });
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
668
|
+
export class DDO extends InheritClass {
|
|
669
|
+
constructor({ instance, name, fget, fset, value }: TDDOParams);
|
|
670
|
+
_new_({ instance, name, fget, fset }: TDDOParams): void;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
declare module "DefaultTemplateHandler" {
|
|
674
|
+
import { DefaultTemplateHandlerParams } from "types";
|
|
675
|
+
export class DefaultTemplateHandler {
|
|
676
|
+
template: string;
|
|
677
|
+
__definition: {};
|
|
678
|
+
static __definition: {};
|
|
679
|
+
component: import("types").IComponent;
|
|
680
|
+
constructor({ component, template }: DefaultTemplateHandlerParams);
|
|
681
|
+
assign(data: any): string;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
declare module "DocumentLayout" {
|
|
685
|
+
export const getDocumentLayout: () => string | undefined;
|
|
686
|
+
}
|
|
687
|
+
declare module "Effect" {
|
|
688
|
+
import { IEffect, TEffectParams } from "types";
|
|
689
|
+
import { InheritClass } from "InheritClass";
|
|
690
|
+
export class Effect extends InheritClass implements IEffect {
|
|
691
|
+
done(...args: any[]): any;
|
|
692
|
+
apply(...args: any[]): void;
|
|
693
|
+
duration: number;
|
|
694
|
+
animate({ timing, draw, duration }: TEffectParams): void;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
declare module "findPackageNodePath" {
|
|
698
|
+
export const findPackageNodePath: (packagename: string) => string | null;
|
|
699
|
+
}
|
|
700
|
+
declare module "Import" {
|
|
701
|
+
/**
|
|
702
|
+
* Imports a script with the package nomenclature
|
|
703
|
+
*
|
|
704
|
+
* @param {Object} packagename
|
|
705
|
+
* @param {Object} ready
|
|
706
|
+
* @param {Boolean} external
|
|
707
|
+
*/
|
|
708
|
+
export const Import: (packagename: string, ready?: Function, external?: boolean) => Promise<{
|
|
709
|
+
_imported_?: any;
|
|
710
|
+
_package_name_?: string;
|
|
711
|
+
}> | undefined;
|
|
712
|
+
}
|
|
713
|
+
declare module "captureFalseTouch" {
|
|
714
|
+
export let supportsPassive: boolean;
|
|
715
|
+
export const captureFalseTouch: () => false | {
|
|
716
|
+
passive: boolean;
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
declare module "range" {
|
|
720
|
+
export const range: (start: number, stop?: number, step?: number) => number[];
|
|
721
|
+
}
|
|
722
|
+
declare module "defaultProcessors" {
|
|
723
|
+
export const setDefaultProcessors: () => void;
|
|
724
|
+
}
|
|
725
|
+
declare module "NamespaceRef" {
|
|
726
|
+
/**
|
|
727
|
+
* Declare Namespace
|
|
728
|
+
*
|
|
729
|
+
* @param {String} packageName
|
|
730
|
+
* @param {Object} package
|
|
731
|
+
*/
|
|
732
|
+
export const NamespaceRef: (namespace: string) => any;
|
|
733
|
+
}
|
|
734
|
+
declare module "Ready" {
|
|
735
|
+
/**
|
|
736
|
+
* Defines a Custom Ready listener
|
|
737
|
+
*/
|
|
738
|
+
export const Ready: (e: any) => void;
|
|
739
|
+
export const ready: (e: any) => void;
|
|
740
|
+
/**
|
|
741
|
+
* Default Ready event function for window. Executes all micro ready events of Import calls
|
|
742
|
+
*
|
|
743
|
+
* @param {Object} e
|
|
744
|
+
*/
|
|
745
|
+
export const _Ready: (e: any) => void;
|
|
746
|
+
}
|
|
747
|
+
declare module "Tag" {
|
|
748
|
+
import { ITagElements } from "types";
|
|
749
|
+
import { ArrayList } from "ArrayCollection";
|
|
750
|
+
export class TagElements extends ArrayList implements ITagElements {
|
|
751
|
+
show(): void;
|
|
752
|
+
hide(): void;
|
|
753
|
+
effect<T>(...args: T[]): void;
|
|
754
|
+
findElements(elementName: any): any;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Gets the element of DOM found by tag name
|
|
758
|
+
*
|
|
759
|
+
* @param {Object} tagname
|
|
760
|
+
* @param {Object} innerHTML
|
|
761
|
+
*/
|
|
762
|
+
export const Tag: <T>(tagname: string, innerHTML?: string) => T[];
|
|
763
|
+
}
|
|
764
|
+
declare module "shortCode" {
|
|
765
|
+
export const shortCode: () => string;
|
|
766
|
+
}
|
|
767
|
+
declare module "super" {
|
|
768
|
+
/**
|
|
769
|
+
* Returns a method from a superior QCObjects Class
|
|
770
|
+
* It is useful for Class Inheritance in the _new_ and __new__ method constructors
|
|
771
|
+
* @example _super_('MySuperClass','MySuperMethod').call(this,params) #where this is the current instance and params are method parameters
|
|
772
|
+
*
|
|
773
|
+
* @param {String} className
|
|
774
|
+
* @param {String} classMethodName
|
|
775
|
+
* @param {Object} params
|
|
776
|
+
*/
|
|
777
|
+
export const _super_: <T>(className: string, classMethodName: string) => T;
|
|
778
|
+
}
|
|
779
|
+
declare module "waitUntil" {
|
|
780
|
+
export const waitUntil: (func: () => void, exp: () => any) => void;
|
|
781
|
+
}
|
|
782
|
+
declare module "subelements" {
|
|
783
|
+
export const subelements: <T>(this: any, query: string) => T[];
|
|
784
|
+
}
|
|
785
|
+
declare module "Service" {
|
|
786
|
+
import { InheritClass } from "InheritClass";
|
|
787
|
+
import { IJSONService, IService, TServiceDoneResponse, TServiceStandardResponse } from "types";
|
|
788
|
+
export class Service extends InheritClass implements IService {
|
|
789
|
+
options: object;
|
|
790
|
+
withCredentials: boolean;
|
|
791
|
+
useHTTP2: any;
|
|
792
|
+
mockup({ request, service }: TServiceStandardResponse): void;
|
|
793
|
+
name: string;
|
|
794
|
+
responseHeaders: any;
|
|
795
|
+
local({ request, service }: TServiceStandardResponse): void;
|
|
796
|
+
kind: string;
|
|
797
|
+
domain: string;
|
|
798
|
+
basePath: string;
|
|
799
|
+
url: string;
|
|
800
|
+
method: string;
|
|
801
|
+
data: {};
|
|
802
|
+
reload: boolean;
|
|
803
|
+
cached: boolean;
|
|
804
|
+
headers: any;
|
|
805
|
+
template: unknown;
|
|
806
|
+
done({ request, service }: TServiceDoneResponse): void;
|
|
807
|
+
fail(...args: any[]): void;
|
|
808
|
+
set(name: string, value: never): void;
|
|
809
|
+
get(name: string, _default?: never): never;
|
|
810
|
+
}
|
|
811
|
+
export class JSONService extends Service implements IJSONService {
|
|
812
|
+
method: string;
|
|
813
|
+
cached: boolean;
|
|
814
|
+
headers: {
|
|
815
|
+
"Content-Type": string;
|
|
816
|
+
charset: string;
|
|
817
|
+
};
|
|
818
|
+
JSONresponse?: JSON;
|
|
819
|
+
done(result: TServiceDoneResponse): void;
|
|
820
|
+
}
|
|
821
|
+
export class ConfigService extends JSONService {
|
|
822
|
+
method: string;
|
|
823
|
+
cached: boolean;
|
|
824
|
+
configFileName: string;
|
|
825
|
+
headers: {
|
|
826
|
+
"Content-Type": string;
|
|
827
|
+
charset: string;
|
|
828
|
+
};
|
|
829
|
+
configLoaded(): Promise<void>;
|
|
830
|
+
JSONresponse?: JSON;
|
|
831
|
+
done(result: TServiceDoneResponse): void;
|
|
832
|
+
fail(): void;
|
|
833
|
+
constructor();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
declare module "globalSettings" {
|
|
837
|
+
import { IGlobalSettings } from "types";
|
|
838
|
+
import { InheritClass } from "InheritClass";
|
|
839
|
+
export class GlobalSettings extends InheritClass implements IGlobalSettings {
|
|
840
|
+
static __start__(): Promise<any>;
|
|
841
|
+
[key: string]: any;
|
|
842
|
+
_GLOBAL: any;
|
|
843
|
+
private static _instance;
|
|
844
|
+
static get instance(): GlobalSettings;
|
|
845
|
+
set(name: string, value: any): void;
|
|
846
|
+
get(name: string, _default?: any): any;
|
|
847
|
+
__start__(): Promise<any>;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
declare module "loadSDK" {
|
|
851
|
+
function loadSDK(): void;
|
|
852
|
+
export default loadSDK;
|
|
853
|
+
}
|
|
854
|
+
declare module "MainProcess" { }
|
|
855
|
+
declare module "assign" { }
|
|
856
|
+
declare module "SourceJS" {
|
|
857
|
+
import { ISourceJS } from "types";
|
|
858
|
+
import { InheritClass } from "InheritClass";
|
|
859
|
+
export class SourceJS extends InheritClass implements ISourceJS {
|
|
860
|
+
domain: string;
|
|
861
|
+
basePath: string;
|
|
862
|
+
type: string;
|
|
863
|
+
containerTag: string;
|
|
864
|
+
url: string;
|
|
865
|
+
data: {};
|
|
866
|
+
async: boolean;
|
|
867
|
+
external: boolean;
|
|
868
|
+
constructor(o: any);
|
|
869
|
+
set(name: string, value: any): void;
|
|
870
|
+
get(name: string, _default?: any): any;
|
|
871
|
+
status: boolean;
|
|
872
|
+
done(): void;
|
|
873
|
+
fail(): void;
|
|
874
|
+
rebuild(): void;
|
|
875
|
+
Cast(o: any): any;
|
|
876
|
+
_new_(properties: any): void;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
declare module "SourceCSS" {
|
|
880
|
+
import { ISourceCSS } from "types";
|
|
881
|
+
import { InheritClass } from "InheritClass";
|
|
882
|
+
export class SourceCSS extends InheritClass implements ISourceCSS {
|
|
883
|
+
domain: string;
|
|
884
|
+
basePath: string;
|
|
885
|
+
url: string;
|
|
886
|
+
data: {};
|
|
887
|
+
async: boolean;
|
|
888
|
+
external: boolean;
|
|
889
|
+
constructor(o: any);
|
|
890
|
+
fail(): void;
|
|
891
|
+
Cast(o: any): any;
|
|
892
|
+
set(name: string, value: any): void;
|
|
893
|
+
get(name: string, _default?: any): any;
|
|
894
|
+
done(): void;
|
|
895
|
+
rebuild(): void;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
declare module "WidgetsFactory" {
|
|
899
|
+
export let _ComponentWidget_: CustomElementConstructor;
|
|
900
|
+
export const RegisterWidget: (widgetName: string) => void;
|
|
901
|
+
export const RegisterWidgets: (...args: string[]) => void;
|
|
902
|
+
}
|
|
903
|
+
declare module "View" {
|
|
904
|
+
import { InheritClass } from "InheritClass";
|
|
905
|
+
export class View extends InheritClass {
|
|
906
|
+
constructor({ component, dependencies }: {
|
|
907
|
+
component?: undefined;
|
|
908
|
+
dependencies?: never[] | undefined;
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
declare module "VO" {
|
|
913
|
+
import { InheritClass } from "InheritClass";
|
|
914
|
+
export class VO extends InheritClass {
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
declare module "TransitionEffect" {
|
|
918
|
+
import { Effect } from "Effect";
|
|
919
|
+
import { IComponent, ITransitionEffect, TTransitionEffectParams } from "types";
|
|
920
|
+
export class TransitionEffect extends Effect implements ITransitionEffect {
|
|
921
|
+
duration: number;
|
|
922
|
+
defaultParams: {
|
|
923
|
+
alphaFrom: number;
|
|
924
|
+
alphaTo: number;
|
|
925
|
+
angleFrom: number;
|
|
926
|
+
angleTo: number;
|
|
927
|
+
radiusFrom: number;
|
|
928
|
+
radiusTo: number;
|
|
929
|
+
scaleFrom: number;
|
|
930
|
+
scaleTo: number;
|
|
931
|
+
};
|
|
932
|
+
fitToHeight: boolean;
|
|
933
|
+
fitToWidth: boolean;
|
|
934
|
+
component: IComponent;
|
|
935
|
+
effects: string[];
|
|
936
|
+
apply({ alphaFrom, alphaTo, angleFrom, angleTo, radiusFrom, radiusTo, scaleFrom, scaleTo }: TTransitionEffectParams): void;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
declare module "Timer" {
|
|
940
|
+
import { ITimer, TTimerParams } from "types";
|
|
941
|
+
import { InheritClass } from "InheritClass";
|
|
942
|
+
export class Timer extends InheritClass implements ITimer {
|
|
943
|
+
duration: number;
|
|
944
|
+
alive: boolean;
|
|
945
|
+
thread({ timing, intervalInterceptor, duration }: TTimerParams): void;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
declare module "Toggle" {
|
|
949
|
+
import { InheritClass } from "InheritClass";
|
|
950
|
+
export class Toggle extends InheritClass {
|
|
951
|
+
_toggle: boolean;
|
|
952
|
+
_inverse: boolean;
|
|
953
|
+
_positive: Function | null;
|
|
954
|
+
_negative: Function | null;
|
|
955
|
+
_dispatched: Function | null;
|
|
956
|
+
_args: {};
|
|
957
|
+
constructor(positive: Function, negative: Function, args: Array<any>);
|
|
958
|
+
changeToggle(): void;
|
|
959
|
+
_new_({ positive, negative, args }: {
|
|
960
|
+
positive: Function;
|
|
961
|
+
negative: Function;
|
|
962
|
+
args: Array<any>;
|
|
963
|
+
}): void;
|
|
964
|
+
fire(): Promise<Toggle>;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
declare module "QCObjects" {
|
|
968
|
+
export * as AssignPolyfill from "assign";
|
|
969
|
+
export { _top, resetTop } from "top";
|
|
970
|
+
export { _QC_CLASSES, _QC_PACKAGES, _QC_PACKAGES_IMPORTED, _QC_READY_LISTENERS } from "PrimaryCollections";
|
|
971
|
+
export { _DataStringify } from "DataStringify";
|
|
972
|
+
export { _DOMCreateElement } from "DOMCreateElement";
|
|
973
|
+
export { _methods_, _protected_code_ } from "introspection";
|
|
974
|
+
export { logger, Logger } from "Logger";
|
|
975
|
+
export { _require_, is_phonegap, isBrowser, isNodeCommonJS } from "platform";
|
|
976
|
+
export { subelements } from "subelements";
|
|
977
|
+
export { __is_raw_class__ } from "is_raw_class";
|
|
978
|
+
export { _LegacyCopy } from "LegacyCopy";
|
|
979
|
+
export { _fireAsyncLoad, asyncLoad } from "asyncLoad";
|
|
980
|
+
export { __instanceID } from "IncrementInstanceID";
|
|
981
|
+
export { ObjectName } from "ObjectName";
|
|
982
|
+
export { __getType__ } from "getType";
|
|
983
|
+
export { is_a } from "is_a";
|
|
984
|
+
export { ComplexStorageCache } from "ComplexStorageCache";
|
|
985
|
+
export { waitUntil } from "waitUntil";
|
|
986
|
+
export { _Cast, _CastProps } from "Cast";
|
|
987
|
+
export { isQCObjects_Class, isQCObjects_Object } from "isQCObjects";
|
|
988
|
+
export { Package } from "Package";
|
|
989
|
+
export { ClassFactory } from "ClassFactory";
|
|
990
|
+
export { Export } from "Export";
|
|
991
|
+
export { Class } from "Class";
|
|
992
|
+
export { InheritClass } from "InheritClass";
|
|
993
|
+
export { _super_ } from "super";
|
|
994
|
+
export { shortCode } from "shortCode";
|
|
995
|
+
export { Processor } from "Processor";
|
|
996
|
+
export { New } from "New";
|
|
997
|
+
export { _Ready, ready, Ready } from "Ready";
|
|
998
|
+
export { captureFalseTouch } from "captureFalseTouch";
|
|
999
|
+
export { serviceLoader } from "serviceLoader";
|
|
1000
|
+
export { componentLoader } from "componentLoader";
|
|
1001
|
+
export { _buildComponentsFromElements_, ComponentURI } from "ComponentFactory";
|
|
1002
|
+
export { NamespaceRef } from "NamespaceRef";
|
|
1003
|
+
export { setDefaultProcessors } from "defaultProcessors";
|
|
1004
|
+
export { Tag, TagElements } from "Tag";
|
|
1005
|
+
export { Import } from "Import";
|
|
1006
|
+
export { BackendMicroservice } from "BackendMicroservice";
|
|
1007
|
+
export { Component } from "Component";
|
|
1008
|
+
export { _Crypt } from "Crypt";
|
|
1009
|
+
export { DefaultTemplateHandler } from "DefaultTemplateHandler";
|
|
1010
|
+
export { SourceJS } from "SourceJS";
|
|
1011
|
+
export { SourceCSS } from "SourceCSS";
|
|
1012
|
+
export { GlobalSettings } from "globalSettings";
|
|
1013
|
+
export { RegisterClass } from "RegisterClass";
|
|
1014
|
+
export { _ComponentWidget_, RegisterWidget, RegisterWidgets } from "WidgetsFactory";
|
|
1015
|
+
export { CONFIG } from "CONFIG";
|
|
1016
|
+
export { Controller } from "Controller";
|
|
1017
|
+
export { View } from "View";
|
|
1018
|
+
export { ConfigService, JSONService, Service } from "Service";
|
|
1019
|
+
export { VO } from "VO";
|
|
1020
|
+
export { Effect } from "Effect";
|
|
1021
|
+
export { TransitionEffect } from "TransitionEffect";
|
|
1022
|
+
export { Timer } from "Timer";
|
|
1023
|
+
export { _tag_filter_ } from "tag_filter";
|
|
1024
|
+
export { range } from "range";
|
|
1025
|
+
export { ArrayCollection, ArrayList } from "ArrayCollection";
|
|
1026
|
+
export { DDO } from "DDO";
|
|
1027
|
+
export { Toggle } from "Toggle";
|
|
1028
|
+
export { findPackageNodePath } from "findPackageNodePath";
|
|
1029
|
+
export { getDocumentLayout } from "DocumentLayout";
|
|
1030
|
+
export { IQCObjectsElement, IQCObjectsShadowedElement } from "types";
|
|
1031
|
+
export { __to_number } from "mathFunctions";
|
|
1032
|
+
export { _top as global } from "top";
|
|
1033
|
+
export { __make_global__ } from "make_global";
|
|
1034
|
+
export * as QCObjects from "MainProcess";
|
|
1035
|
+
}
|
|
1036
|
+
declare module "index" {
|
|
1037
|
+
import * as QCObjects from "QCObjects";
|
|
1038
|
+
export default QCObjects;
|
|
1039
|
+
}
|
|
1040
|
+
declare module "localStorage" {
|
|
1041
|
+
export var localStorage: any;
|
|
1042
|
+
}
|
|
1043
|
+
declare module "uniqueID" {
|
|
1044
|
+
export const uniqueId: () => string;
|
|
1045
|
+
}
|