qcobjects 2.5.119-beta → 2.5.122-beta
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/VERSION +1 -1
- package/build/Component.js +5 -2
- package/build/InheritClass.js +14 -0
- package/build/QCObjects.js +18 -7
- package/build/WidgetsFactory.js +5 -0
- package/build/index.cjs +4 -24
- package/build/index.js +17 -7
- package/build/index.mjs +1 -1
- package/build-esbuild.js +2 -1
- package/package.json +4 -5
- package/public/browser/QCObjects.js +22 -2
- package/public/browser/QCObjects.js.map +2 -2
- package/public/cjs/QCObjects.cjs +22 -2
- package/public/cjs/QCObjects.cjs.map +2 -2
- package/public/esm/QCObjects.mjs +22 -2
- package/public/esm/QCObjects.mjs.map +2 -2
- package/public/types/index.d.ts +30 -28
- package/src/ArrayCollection.ts +1 -1
- package/src/CONFIG.ts +1 -1
- package/src/Class.ts +1 -1
- package/src/ClassFactory.ts +1 -1
- package/src/Component.ts +71 -67
- package/src/ComponentFactory.ts +1 -1
- package/src/Controller.ts +1 -1
- package/src/Crypt.ts +1 -1
- package/src/DDO.ts +1 -1
- package/src/DOMCreateElement.ts +1 -1
- package/src/DefaultTemplateHandler.ts +1 -1
- package/src/Effect.ts +1 -1
- package/src/InheritClass.ts +18 -4
- package/src/MainProcess.ts +1 -1
- package/src/PrimaryCollections.ts +1 -1
- package/src/Processor.ts +1 -1
- package/src/QCObjects.ts +2 -2
- package/src/Service.ts +1 -1
- package/src/SourceCSS.ts +1 -1
- package/src/SourceJS.ts +1 -1
- package/src/Tag.ts +1 -1
- package/src/Timer.ts +1 -1
- package/src/TransitionEffect.ts +2 -1
- package/src/WidgetsFactory.ts +5 -1
- package/src/asyncLoad.ts +1 -1
- package/src/componentLoader.ts +1 -1
- package/src/defaultProcessors.ts +1 -1
- package/src/globalSettings.ts +1 -1
- package/src/index.cts +2 -0
- package/src/index.mts +2 -0
- package/src/routings.ts +1 -1
- package/src/serviceLoader.ts +1 -1
- package/src/top.ts +1 -1
- package/src/types/global/index.d.ts +2 -1
- package/tsconfig.d.json +4 -8
- package/tsconfig.json +2 -2
package/public/types/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare module "Cast" {
|
|
|
60
60
|
export const _CastProps: (obj_source: any, obj_dest: any, _ignoreError?: boolean) => any;
|
|
61
61
|
}
|
|
62
62
|
declare module "DOMCreateElement" {
|
|
63
|
-
import { IQCObjectsElement } from "types";
|
|
63
|
+
import { IQCObjectsElement } from "./types/global";
|
|
64
64
|
export const _DOMCreateElement: (elementName: string, props?: any[], children?: any) => IQCObjectsElement;
|
|
65
65
|
export const _DOMCreateComplexElement: (_type: string | Function, props?: any[], children?: any) => HTMLElement;
|
|
66
66
|
}
|
|
@@ -85,7 +85,7 @@ declare module "Package" {
|
|
|
85
85
|
export const Package: (namespace: string, classes?: any[]) => any[];
|
|
86
86
|
}
|
|
87
87
|
declare module "InheritClass" {
|
|
88
|
-
import { type IInheritClass, type TBody } from "types";
|
|
88
|
+
import { type IInheritClass, type TBody } from "./types/global";
|
|
89
89
|
export class InheritClass implements IInheritClass {
|
|
90
90
|
[key: string]: any;
|
|
91
91
|
__definition: any;
|
|
@@ -138,7 +138,7 @@ declare module "LegacyCopy" {
|
|
|
138
138
|
export const _LegacyCopy: (obj: any, _ignore?: string[]) => any;
|
|
139
139
|
}
|
|
140
140
|
declare module "Class" {
|
|
141
|
-
import { TClass } from "types";
|
|
141
|
+
import { TClass } from "./types/global";
|
|
142
142
|
/**
|
|
143
143
|
* Creates new object class of another object
|
|
144
144
|
*
|
|
@@ -199,7 +199,7 @@ declare module "secretKey" {
|
|
|
199
199
|
export const _secretKey: string;
|
|
200
200
|
}
|
|
201
201
|
declare module "Crypt" {
|
|
202
|
-
import { _ICrypt } from "types";
|
|
202
|
+
import { _ICrypt } from "./types/global";
|
|
203
203
|
import { InheritClass } from "InheritClass";
|
|
204
204
|
export class _Crypt extends InheritClass implements _ICrypt {
|
|
205
205
|
string: string;
|
|
@@ -250,7 +250,7 @@ declare module "ConfigSettings" {
|
|
|
250
250
|
}
|
|
251
251
|
declare module "CONFIG" {
|
|
252
252
|
import { InheritClass } from "InheritClass";
|
|
253
|
-
import { ICONFIG } from "types";
|
|
253
|
+
import { ICONFIG } from "./types/global";
|
|
254
254
|
export class CONFIG extends InheritClass implements ICONFIG {
|
|
255
255
|
get _CONFIG_ENC(): string;
|
|
256
256
|
get _CONFIG(): unknown;
|
|
@@ -263,7 +263,7 @@ declare module "CONFIG" {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
declare module "Processor" {
|
|
266
|
-
import { type IComponent, type IProcessor } from "types";
|
|
266
|
+
import { type IComponent, type IProcessor } from "./types/global";
|
|
267
267
|
import { InheritClass } from "InheritClass";
|
|
268
268
|
export class Processor extends InheritClass implements IProcessor {
|
|
269
269
|
protected static _instance: IProcessor | undefined;
|
|
@@ -282,13 +282,13 @@ declare module "Processor" {
|
|
|
282
282
|
export const GlobalProcessor: IProcessor;
|
|
283
283
|
}
|
|
284
284
|
declare module "routings" {
|
|
285
|
-
import { TComponentRouting } from "types";
|
|
285
|
+
import { TComponentRouting } from "./types/global";
|
|
286
286
|
export const __routing_params__: (routing: TComponentRouting, routingPath: string) => object;
|
|
287
287
|
export const __valid_routings__: (routings: TComponentRouting[], routingPath: string) => TComponentRouting[];
|
|
288
288
|
export const __valid_routing_way__: (validRoutingWays: string[], routingWay: string) => boolean;
|
|
289
289
|
}
|
|
290
290
|
declare module "asyncLoad" {
|
|
291
|
-
import { TAsyncLoadCallback } from "types";
|
|
291
|
+
import { TAsyncLoadCallback } from "./types/global";
|
|
292
292
|
export const _asyncLoad: never[];
|
|
293
293
|
export function asyncLoad(callback: TAsyncLoadCallback, args?: any[]): any;
|
|
294
294
|
export const _fireAsyncLoad: () => void;
|
|
@@ -310,7 +310,7 @@ declare module "ComplexStorageCache" {
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
declare module "serviceLoader" {
|
|
313
|
-
import { IService } from "types";
|
|
313
|
+
import { IService } from "./types/global";
|
|
314
314
|
/**
|
|
315
315
|
* Loads a simple component from a template
|
|
316
316
|
*
|
|
@@ -323,7 +323,7 @@ declare module "tag_filter" {
|
|
|
323
323
|
export const _tag_filter_ = "quick-component:not([loaded]),component:not([loaded])";
|
|
324
324
|
}
|
|
325
325
|
declare module "componentLoader" {
|
|
326
|
-
import { IComponent } from "types";
|
|
326
|
+
import { IComponent } from "./types/global";
|
|
327
327
|
/**
|
|
328
328
|
* Loads a simple component from a template
|
|
329
329
|
*
|
|
@@ -334,7 +334,7 @@ declare module "componentLoader" {
|
|
|
334
334
|
}
|
|
335
335
|
declare module "Component" {
|
|
336
336
|
import { InheritClass } from "InheritClass";
|
|
337
|
-
import { IComponent, IController, IEffect, IProcessor, IQCObjectsElement, IQCObjectsShadowedElement, IView, TBody, TComponentDoneResponse, TComponentParams, TComponentRouting, TComponentRoutings } from "types";
|
|
337
|
+
import { IComponent, IController, IEffect, IProcessor, IQCObjectsElement, IQCObjectsShadowedElement, IView, TBody, TComponentDoneResponse, TComponentParams, TComponentRouting, TComponentRoutings } from "./types/global";
|
|
338
338
|
export class Component extends InheritClass implements IComponent {
|
|
339
339
|
static shadowed: boolean | undefined;
|
|
340
340
|
static cached: any;
|
|
@@ -453,7 +453,7 @@ declare module "Component" {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
declare module "ComponentFactory" {
|
|
456
|
-
import { TComponentURIParams } from "types";
|
|
456
|
+
import { TComponentURIParams } from "./types/global";
|
|
457
457
|
import { Component } from "Component";
|
|
458
458
|
/**
|
|
459
459
|
* Returns a standarized uri for a component
|
|
@@ -469,7 +469,7 @@ declare module "ComponentFactory" {
|
|
|
469
469
|
}
|
|
470
470
|
declare module "Service" {
|
|
471
471
|
import { InheritClass } from "InheritClass";
|
|
472
|
-
import { IJSONService, IService, TServiceDoneResponse, TServiceStandardResponse } from "types";
|
|
472
|
+
import { IJSONService, IService, TServiceDoneResponse, TServiceStandardResponse } from "./types/global";
|
|
473
473
|
export class Service extends InheritClass implements IService {
|
|
474
474
|
options: object;
|
|
475
475
|
withCredentials: boolean;
|
|
@@ -519,7 +519,7 @@ declare module "Service" {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
declare module "globalSettings" {
|
|
522
|
-
import { IGlobalSettings } from "types";
|
|
522
|
+
import { IGlobalSettings } from "./types/global";
|
|
523
523
|
import { InheritClass } from "InheritClass";
|
|
524
524
|
import { Logger } from "Logger";
|
|
525
525
|
export class GlobalSettings extends InheritClass implements IGlobalSettings {
|
|
@@ -537,7 +537,7 @@ declare module "globalSettings" {
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
declare module "top" {
|
|
540
|
-
import { IComplexStorageCache, IComponent, IConfigService } from "types";
|
|
540
|
+
import { IComplexStorageCache, IComponent, IConfigService } from "./types/global";
|
|
541
541
|
type QCObjects = {
|
|
542
542
|
lastCache?: IComplexStorageCache;
|
|
543
543
|
componentsStack: IComponent[];
|
|
@@ -635,7 +635,7 @@ declare module "make_global" {
|
|
|
635
635
|
export const __make_global__: (f: any) => void;
|
|
636
636
|
}
|
|
637
637
|
declare module "PrimaryCollections" {
|
|
638
|
-
import { T_QC_CLASSES, T_QC_PACKAGES } from "types";
|
|
638
|
+
import { T_QC_CLASSES, T_QC_PACKAGES } from "./types/global";
|
|
639
639
|
export var _QC_CLASSES: T_QC_CLASSES;
|
|
640
640
|
export var _QC_PACKAGES: T_QC_PACKAGES;
|
|
641
641
|
export var _QC_PACKAGES_IMPORTED: any[];
|
|
@@ -649,14 +649,14 @@ declare module "PrimaryCollections" {
|
|
|
649
649
|
export const set_QC_PACKAGE: (packageName: string, _qc_packages: any[]) => void;
|
|
650
650
|
}
|
|
651
651
|
declare module "ClassFactory" {
|
|
652
|
-
import { TClassFactory } from "types";
|
|
652
|
+
import { TClassFactory } from "./types/global";
|
|
653
653
|
export const ClassFactory: TClassFactory;
|
|
654
654
|
}
|
|
655
655
|
declare module "mathFunctions" {
|
|
656
656
|
export const __to_number: (value: any) => number;
|
|
657
657
|
}
|
|
658
658
|
declare module "ArrayCollection" {
|
|
659
|
-
import { IArrayCollection, IArrayList } from "types";
|
|
659
|
+
import { IArrayCollection, IArrayList } from "./types/global";
|
|
660
660
|
export class ArrayList extends Array implements IArrayList {
|
|
661
661
|
prototype: any;
|
|
662
662
|
unique(): any[];
|
|
@@ -709,7 +709,7 @@ declare module "BackendMicroservice" {
|
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
declare module "Controller" {
|
|
712
|
-
import { IController, IComponent, TControllerParams } from "types";
|
|
712
|
+
import { IController, IComponent, TControllerParams } from "./types/global";
|
|
713
713
|
import { InheritClass } from "InheritClass";
|
|
714
714
|
export class Controller extends InheritClass implements IController {
|
|
715
715
|
component: IComponent;
|
|
@@ -724,7 +724,7 @@ declare module "Controller" {
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
declare module "DDO" {
|
|
727
|
-
import { TDDOParams } from "types";
|
|
727
|
+
import { TDDOParams } from "./types/global";
|
|
728
728
|
import { InheritClass } from "InheritClass";
|
|
729
729
|
/**
|
|
730
730
|
* Dynamic Data Objects Class
|
|
@@ -753,7 +753,7 @@ declare module "RegisterClass" {
|
|
|
753
753
|
export const RegisterClass: (_class_: any, __namespace?: string) => any;
|
|
754
754
|
}
|
|
755
755
|
declare module "DefaultTemplateHandler" {
|
|
756
|
-
import { DefaultTemplateHandlerParams } from "types";
|
|
756
|
+
import { DefaultTemplateHandlerParams } from "./types/global";
|
|
757
757
|
export class DefaultTemplateHandler {
|
|
758
758
|
template: string;
|
|
759
759
|
__definition: {};
|
|
@@ -767,7 +767,7 @@ declare module "DocumentLayout" {
|
|
|
767
767
|
export const getDocumentLayout: () => string | undefined;
|
|
768
768
|
}
|
|
769
769
|
declare module "Effect" {
|
|
770
|
-
import { IEffect, TEffectParams } from "types";
|
|
770
|
+
import { IEffect, TEffectParams } from "./types/global";
|
|
771
771
|
import { InheritClass } from "InheritClass";
|
|
772
772
|
class Effect extends InheritClass implements IEffect {
|
|
773
773
|
done(...args: any[]): any;
|
|
@@ -828,7 +828,7 @@ declare module "Ready" {
|
|
|
828
828
|
export const _Ready: (e: any) => void;
|
|
829
829
|
}
|
|
830
830
|
declare module "Tag" {
|
|
831
|
-
import { ITagElements } from "types";
|
|
831
|
+
import { ITagElements } from "./types/global";
|
|
832
832
|
import { ArrayList } from "ArrayCollection";
|
|
833
833
|
export class TagElements extends ArrayList implements ITagElements {
|
|
834
834
|
show(): void;
|
|
@@ -872,7 +872,7 @@ declare module "loadSDK" {
|
|
|
872
872
|
declare module "MainProcess" { }
|
|
873
873
|
declare module "assign" { }
|
|
874
874
|
declare module "SourceJS" {
|
|
875
|
-
import { ISourceJS } from "types";
|
|
875
|
+
import { ISourceJS } from "./types/global";
|
|
876
876
|
import { InheritClass } from "InheritClass";
|
|
877
877
|
export class SourceJS extends InheritClass implements ISourceJS {
|
|
878
878
|
domain: string;
|
|
@@ -895,7 +895,7 @@ declare module "SourceJS" {
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
declare module "SourceCSS" {
|
|
898
|
-
import { ISourceCSS } from "types";
|
|
898
|
+
import { ISourceCSS } from "./types/global";
|
|
899
899
|
import { InheritClass } from "InheritClass";
|
|
900
900
|
export class SourceCSS extends InheritClass implements ISourceCSS {
|
|
901
901
|
domain: string;
|
|
@@ -934,7 +934,7 @@ declare module "VO" {
|
|
|
934
934
|
}
|
|
935
935
|
declare module "TransitionEffect" {
|
|
936
936
|
import { Effect } from "Effect";
|
|
937
|
-
import {
|
|
937
|
+
import { ITransitionEffect, IComponent, TTransitionEffectParams } from "./types/global";
|
|
938
938
|
export class TransitionEffect extends Effect implements ITransitionEffect {
|
|
939
939
|
duration: number;
|
|
940
940
|
defaultParams: {
|
|
@@ -955,7 +955,7 @@ declare module "TransitionEffect" {
|
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
declare module "Timer" {
|
|
958
|
-
import { ITimer, TTimerParams } from "types";
|
|
958
|
+
import { ITimer, TTimerParams } from "./types/global";
|
|
959
959
|
import { InheritClass } from "InheritClass";
|
|
960
960
|
export class Timer extends InheritClass implements ITimer {
|
|
961
961
|
duration: number;
|
|
@@ -1047,11 +1047,13 @@ declare module "QCObjects" {
|
|
|
1047
1047
|
export { Toggle } from "Toggle";
|
|
1048
1048
|
export { findPackageNodePath } from "findPackageNodePath";
|
|
1049
1049
|
export { getDocumentLayout } from "DocumentLayout";
|
|
1050
|
-
export { IQCObjectsElement, IQCObjectsShadowedElement } from "types";
|
|
1050
|
+
export { IQCObjectsElement, IQCObjectsShadowedElement } from "./types/global";
|
|
1051
1051
|
export { __to_number } from "mathFunctions";
|
|
1052
1052
|
export { _top as global } from "top";
|
|
1053
1053
|
export { __make_global__ } from "make_global";
|
|
1054
1054
|
export { get, set } from "top";
|
|
1055
|
+
const _default: {};
|
|
1056
|
+
export default _default;
|
|
1055
1057
|
}
|
|
1056
1058
|
declare module "index" {
|
|
1057
1059
|
import * as QCObjects from "QCObjects";
|
package/src/ArrayCollection.ts
CHANGED
package/src/CONFIG.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { GlobalProcessor as Processor } from "./Processor";
|
|
|
7
7
|
import { _secretKey } from "./secretKey";
|
|
8
8
|
import { Package } from "./Package";
|
|
9
9
|
import { InheritClass } from "./InheritClass";
|
|
10
|
-
import { ICONFIG } from "types";
|
|
10
|
+
import { ICONFIG } from "./types/global";
|
|
11
11
|
import { ConfigSettings } from "./ConfigSettings";
|
|
12
12
|
|
|
13
13
|
|
package/src/Class.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { __is__forbidden_name__ } from "./is_forbidden_name";
|
|
|
9
9
|
import { _LegacyCopy } from "./LegacyCopy";
|
|
10
10
|
import { logger } from "./Logger";
|
|
11
11
|
import { isBrowser } from "./platform";
|
|
12
|
-
import { IQCObjectsElement, TBody, TClass } from "types";
|
|
12
|
+
import { IQCObjectsElement, TBody, TClass } from "./types/global";
|
|
13
13
|
import { InheritClass } from "./InheritClass";
|
|
14
14
|
import { _top } from "./top";
|
|
15
15
|
|
package/src/ClassFactory.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { __is_raw_class__ } from "./is_raw_class";
|
|
8
8
|
import { _QC_CLASSES, _QC_PACKAGES, get_QC_CLASS } from "./PrimaryCollections";
|
|
9
|
-
import { TClassFactory } from "types";
|
|
9
|
+
import { TClassFactory } from "./types/global";
|
|
10
10
|
|
|
11
11
|
export const ClassFactory:TClassFactory = (className:string):any => {
|
|
12
12
|
let _classFactory;
|