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.
Files changed (53) hide show
  1. package/VERSION +1 -1
  2. package/build/Component.js +5 -2
  3. package/build/InheritClass.js +14 -0
  4. package/build/QCObjects.js +18 -7
  5. package/build/WidgetsFactory.js +5 -0
  6. package/build/index.cjs +4 -24
  7. package/build/index.js +17 -7
  8. package/build/index.mjs +1 -1
  9. package/build-esbuild.js +2 -1
  10. package/package.json +4 -5
  11. package/public/browser/QCObjects.js +22 -2
  12. package/public/browser/QCObjects.js.map +2 -2
  13. package/public/cjs/QCObjects.cjs +22 -2
  14. package/public/cjs/QCObjects.cjs.map +2 -2
  15. package/public/esm/QCObjects.mjs +22 -2
  16. package/public/esm/QCObjects.mjs.map +2 -2
  17. package/public/types/index.d.ts +30 -28
  18. package/src/ArrayCollection.ts +1 -1
  19. package/src/CONFIG.ts +1 -1
  20. package/src/Class.ts +1 -1
  21. package/src/ClassFactory.ts +1 -1
  22. package/src/Component.ts +71 -67
  23. package/src/ComponentFactory.ts +1 -1
  24. package/src/Controller.ts +1 -1
  25. package/src/Crypt.ts +1 -1
  26. package/src/DDO.ts +1 -1
  27. package/src/DOMCreateElement.ts +1 -1
  28. package/src/DefaultTemplateHandler.ts +1 -1
  29. package/src/Effect.ts +1 -1
  30. package/src/InheritClass.ts +18 -4
  31. package/src/MainProcess.ts +1 -1
  32. package/src/PrimaryCollections.ts +1 -1
  33. package/src/Processor.ts +1 -1
  34. package/src/QCObjects.ts +2 -2
  35. package/src/Service.ts +1 -1
  36. package/src/SourceCSS.ts +1 -1
  37. package/src/SourceJS.ts +1 -1
  38. package/src/Tag.ts +1 -1
  39. package/src/Timer.ts +1 -1
  40. package/src/TransitionEffect.ts +2 -1
  41. package/src/WidgetsFactory.ts +5 -1
  42. package/src/asyncLoad.ts +1 -1
  43. package/src/componentLoader.ts +1 -1
  44. package/src/defaultProcessors.ts +1 -1
  45. package/src/globalSettings.ts +1 -1
  46. package/src/index.cts +2 -0
  47. package/src/index.mts +2 -0
  48. package/src/routings.ts +1 -1
  49. package/src/serviceLoader.ts +1 -1
  50. package/src/top.ts +1 -1
  51. package/src/types/global/index.d.ts +2 -1
  52. package/tsconfig.d.json +4 -8
  53. package/tsconfig.json +2 -2
@@ -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 { IComponent, ITransitionEffect, TTransitionEffectParams } from "types";
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";
@@ -1,4 +1,4 @@
1
- import { IArrayCollection, IArrayList } from "types";
1
+ import { IArrayCollection, IArrayList } from "./types/global";
2
2
  import { ClassFactory } from "./ClassFactory";
3
3
  import { logger } from "./Logger";
4
4
  import { New } from "./New";
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
 
@@ -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;