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
@@ -2,7 +2,7 @@ import { logger } from "./Logger";
2
2
  import { GlobalProcessor as Processor } from "./Processor";
3
3
  import { _top } from "./top";
4
4
  import { range } from "./range";
5
- import { IComponent } from "types";
5
+ import { IComponent } from "./types/global";
6
6
 
7
7
  // Set Processors
8
8
  export const setDefaultProcessors = () => {
@@ -1,4 +1,4 @@
1
- import { IGlobalSettings } from "types";
1
+ import { IGlobalSettings } from "./types/global";
2
2
  import { CONFIG } from "./CONFIG";
3
3
  import { InheritClass } from "./InheritClass";
4
4
  import { Logger, logger } from "./Logger";
package/src/index.cts ADDED
@@ -0,0 +1,2 @@
1
+ import QCObjects from "./QCObjects.js";
2
+ module.exports = QCObjects;
package/src/index.mts ADDED
@@ -0,0 +1,2 @@
1
+ import QCObjects from "./QCObjects.js";
2
+ export default QCObjects;
package/src/routings.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TComponentRouting } from "types";
1
+ import { TComponentRouting } from "./types/global";
2
2
 
3
3
  export const __routing_params__ = function (routing:TComponentRouting, routingPath:string):object {
4
4
  const standardRoutingPath = routing.path.replace(/{(.*?)}/g, "(?<$1>.*)"); // allowing {param}
@@ -1,4 +1,4 @@
1
- import { IService, TCacheController } from "types";
1
+ import { IService, TCacheController } from "./types/global";
2
2
  import { asyncLoad } from "./asyncLoad";
3
3
  import { ComplexStorageCache } from "./ComplexStorageCache";
4
4
  import { _DataStringify } from "./DataStringify";
package/src/top.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IComplexStorageCache, IComponent, IConfigService, IQCObjectsElement } from "types";
1
+ import { IComplexStorageCache, IComponent, IConfigService, IQCObjectsElement } from "./types/global";
2
2
  import { buildComponents } from "./ComponentFactory";
3
3
  import { _CastProps } from "./Cast";
4
4
  import { GlobalSettings } from "./globalSettings";
@@ -221,9 +221,10 @@ export interface IComplexStorageCache {
221
221
  new(cache: TComplexCacheParams): IComplexStorageCache;
222
222
 
223
223
  }
224
+ export type I_ComponentWidget_ = HTMLElement;
225
+
224
226
 
225
227
  export type TComponentURIParams = { COMPONENTS_BASE_PATH: string, COMPONENT_NAME: string, TPLEXTENSION: string, TPL_SOURCE: string };
226
- export type I_ComponentWidget_ = HTMLElement;
227
228
 
228
229
  export type TasyncLoad = (callback: Function, args: Array<any>) => any;
229
230
  export type TRegisterClass = (_class_: any, namespace: string) => void;
package/tsconfig.d.json CHANGED
@@ -19,17 +19,15 @@
19
19
  "baseUrl": ".",
20
20
  "typeRoots": ["./node_modules/@types"],
21
21
  "paths": {
22
- "types": ["src/types/global"]
22
+ "types": ["types/global"]
23
23
  }
24
24
  },
25
25
  "include": [
26
26
  "src/**/*",
27
27
  "src/types/**/*"
28
28
  ],
29
- "exclude": ["src/**/*.mts", "src/**/*.cts", "node_modules/**/*"],
30
- "ts-node": {
31
- // It is faster to skip typechecking.
32
- // Remove if you want ts-node to do typechecking.
29
+ "exclude": ["src/**/*.mts", "src/**/*.cts", "node_modules", "node_modules/**/*"],
30
+ "ts-node": {
33
31
  "transpileOnly": true,
34
32
  "files": true,
35
33
  "compilerOptions": {
@@ -37,9 +35,7 @@
37
35
  "baseUrl": ".",
38
36
  "paths": {
39
37
  "types": ["types/global"]
40
-
41
38
  }
42
-
43
39
  }
44
40
  }
45
- }
41
+ }
package/tsconfig.json CHANGED
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "paths": {
27
27
  "types": [
28
- "src/types/global"
29
- ]
28
+ "types/global"
29
+ ],
30
30
  }
31
31
  },
32
32
  "include": [