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.
Files changed (197) hide show
  1. package/.hintrc +5 -0
  2. package/VERSION +1 -1
  3. package/build/ArrayCollection.js +136 -0
  4. package/build/BackendMicroservice.js +211 -0
  5. package/build/Base64.js +100 -0
  6. package/build/CONFIG.js +85 -0
  7. package/build/Cast.js +53 -0
  8. package/build/Class.js +284 -0
  9. package/build/ClassFactory.js +38 -0
  10. package/build/ComplexStorageCache.js +91 -0
  11. package/build/Component.js +1133 -0
  12. package/build/ComponentFactory.js +113 -0
  13. package/build/ConfigSettings.js +39 -0
  14. package/build/Controller.js +81 -0
  15. package/build/Crypt.js +87 -0
  16. package/build/DDO.js +81 -0
  17. package/build/DOMCreateElement.js +15 -0
  18. package/build/DataStringify.js +22 -0
  19. package/build/DefaultTemplateHandler.js +57 -0
  20. package/build/DocumentLayout.js +20 -0
  21. package/build/Effect.js +46 -0
  22. package/build/Export.js +11 -0
  23. package/build/Import.js +140 -0
  24. package/build/IncrementInstanceID.js +11 -0
  25. package/build/InheritClass.js +194 -0
  26. package/build/LegacyCopy.js +31 -0
  27. package/build/Logger.js +33 -0
  28. package/build/MainProcess.js +549 -0
  29. package/build/NamespaceRef.js +29 -0
  30. package/build/New.js +17 -0
  31. package/build/ObjectName.js +22 -0
  32. package/build/Package.js +67 -0
  33. package/build/PrimaryCollections.js +7 -0
  34. package/build/Processor.js +81 -0
  35. package/build/QCObjects.js +182 -4843
  36. package/build/Ready.js +49 -0
  37. package/build/RegisterClass.js +28 -0
  38. package/build/Service.js +112 -0
  39. package/build/SourceCSS.js +56 -0
  40. package/build/SourceJS.js +73 -0
  41. package/build/Tag.js +77 -0
  42. package/build/Timer.js +30 -0
  43. package/build/Toggle.js +59 -0
  44. package/build/TransitionEffect.js +65 -0
  45. package/build/VO.js +11 -0
  46. package/build/View.js +18 -0
  47. package/build/WidgetsFactory.js +537 -0
  48. package/build/assign.js +32 -0
  49. package/build/asyncLoad.js +43 -0
  50. package/build/basePath.js +32 -0
  51. package/build/captureFalseTouch.js +32 -0
  52. package/build/componentLoader.js +258 -0
  53. package/build/defaultProcessors.js +130 -0
  54. package/build/domain.js +4 -0
  55. package/build/findPackageNodePath.js +47 -0
  56. package/build/getType.js +38 -0
  57. package/build/globalSettings.js +115 -0
  58. package/build/index.d.ts +1045 -0
  59. package/build/index.js +24 -4
  60. package/build/index.mjs +1 -1
  61. package/build/introspection.js +86 -0
  62. package/build/isQCObjects.js +20 -0
  63. package/build/is_a.js +19 -0
  64. package/build/is_forbidden_name.js +15 -0
  65. package/build/is_raw_class.js +7 -0
  66. package/build/loadSDK.js +63 -0
  67. package/build/localStorage.js +19 -0
  68. package/build/make_global.js +24 -0
  69. package/build/mathFunctions.js +7 -0
  70. package/build/platform.js +28 -0
  71. package/build/range.js +17 -0
  72. package/build/routings.js +21 -0
  73. package/build/secretKey.js +5 -0
  74. package/build/serviceLoader.js +300 -0
  75. package/build/shortCode.js +14 -0
  76. package/build/subelements.js +8 -0
  77. package/build/super.js +20 -0
  78. package/build/tag_filter.js +4 -0
  79. package/build/top.js +23 -0
  80. package/build/uniqueID.js +5 -0
  81. package/build/waitUntil.js +31 -0
  82. package/build-esbuild.js +62 -0
  83. package/eslint.config.mjs +87 -0
  84. package/package.json +26 -23
  85. package/public/browser/index.js +6502 -0
  86. package/public/browser/index.js.map +7 -0
  87. package/public/cjs/index.cjs +6586 -0
  88. package/public/cjs/index.cjs.map +7 -0
  89. package/public/esm/index.mjs +6494 -0
  90. package/public/esm/index.mjs.map +7 -0
  91. package/spec/helpers/mock-sdk.helper.ts +5 -0
  92. package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
  93. package/spec/support/jasmine.json +3 -3
  94. package/spec/testsClassFactorySpec.ts +40 -0
  95. package/spec/{testsConfigSpec.js → testsConfigSpec.ts} +2 -2
  96. package/spec/{testsGlobalFeaturesSpec.js → testsGlobalFeaturesSpec.ts} +10 -8
  97. package/spec/{testsSpec.js → testsSpec.ts} +11 -10
  98. package/spec/{testsTypeSpec.js → testsTypeSpec.ts} +5 -3
  99. package/src/ArrayCollection.ts +143 -0
  100. package/src/BackendMicroservice.ts +229 -0
  101. package/src/Base64.ts +92 -0
  102. package/src/CONFIG.ts +96 -0
  103. package/src/Cast.ts +46 -0
  104. package/src/Class.ts +303 -0
  105. package/src/ClassFactory.ts +34 -0
  106. package/src/ComplexStorageCache.ts +97 -0
  107. package/src/Component.ts +1222 -0
  108. package/src/ComponentFactory.ts +122 -0
  109. package/src/ConfigSettings.ts +62 -0
  110. package/src/Controller.ts +90 -0
  111. package/src/Crypt.ts +87 -0
  112. package/src/DDO.ts +93 -0
  113. package/src/DOMCreateElement.ts +12 -0
  114. package/src/DataStringify.ts +19 -0
  115. package/src/DefaultTemplateHandler.ts +55 -0
  116. package/src/DocumentLayout.ts +16 -0
  117. package/src/Effect.ts +56 -0
  118. package/src/Export.ts +8 -0
  119. package/src/Import.ts +135 -0
  120. package/src/IncrementInstanceID.ts +8 -0
  121. package/src/InheritClass.ts +210 -0
  122. package/src/LegacyCopy.ts +27 -0
  123. package/src/Logger.ts +32 -0
  124. package/src/MainProcess.ts +629 -0
  125. package/src/NamespaceRef.ts +26 -0
  126. package/src/New.ts +15 -0
  127. package/src/ObjectName.ts +16 -0
  128. package/src/Package.ts +67 -0
  129. package/src/PrimaryCollections.ts +7 -0
  130. package/src/Processor.ts +93 -0
  131. package/src/QCObjects.ts +100 -0
  132. package/src/Ready.ts +44 -0
  133. package/src/RegisterClass.ts +26 -0
  134. package/src/Service.ts +127 -0
  135. package/src/SourceCSS.ts +59 -0
  136. package/src/SourceJS.ts +76 -0
  137. package/src/Tag.ts +76 -0
  138. package/src/Timer.ts +42 -0
  139. package/src/Toggle.ts +65 -0
  140. package/src/TransitionEffect.ts +80 -0
  141. package/src/VO.ts +8 -0
  142. package/src/View.ts +17 -0
  143. package/src/WidgetsFactory.ts +543 -0
  144. package/src/assign.ts +33 -0
  145. package/src/asyncLoad.ts +42 -0
  146. package/src/basePath.ts +29 -0
  147. package/src/captureFalseTouch.ts +29 -0
  148. package/src/componentLoader.ts +252 -0
  149. package/src/defaultProcessors.ts +145 -0
  150. package/src/domain.ts +1 -0
  151. package/src/findPackageNodePath.ts +43 -0
  152. package/src/getType.ts +36 -0
  153. package/src/globalSettings.ts +118 -0
  154. package/src/index.mts +1 -1
  155. package/src/index.ts +1 -1
  156. package/src/introspection.ts +80 -0
  157. package/src/isQCObjects.ts +19 -0
  158. package/src/is_a.ts +16 -0
  159. package/src/is_forbidden_name.ts +12 -0
  160. package/src/is_raw_class.ts +3 -0
  161. package/src/loadSDK.ts +59 -0
  162. package/src/localStorage.ts +17 -0
  163. package/src/make_global.ts +19 -0
  164. package/src/mathFunctions.ts +3 -0
  165. package/src/platform.ts +30 -0
  166. package/src/range.ts +15 -0
  167. package/src/routings.ts +18 -0
  168. package/src/secretKey.ts +3 -0
  169. package/src/serviceLoader.ts +306 -0
  170. package/src/shortCode.ts +11 -0
  171. package/src/subelements.ts +4 -0
  172. package/src/super.ts +17 -0
  173. package/src/tag_filter.ts +1 -0
  174. package/src/top.ts +111 -0
  175. package/src/types/global/index.d.ts +597 -0
  176. package/src/uniqueID.ts +3 -0
  177. package/src/waitUntil.ts +26 -0
  178. package/tsconfig.d.json +35 -8
  179. package/tsconfig.jasmine.json +39 -0
  180. package/tsconfig.json +46 -12
  181. package/.eslintignore +0 -5
  182. package/.eslintrc.cjs +0 -21
  183. package/.eslintrc.json +0 -24
  184. package/browser/QCObjects.js +0 -2
  185. package/browser/QCObjects.js.map +0 -7
  186. package/browser/chunks/chunk-O2PFFZVJ.js +0 -713
  187. package/browser/chunks/chunk-O2PFFZVJ.js.map +0 -7
  188. package/browser/chunks/chunk-TBLBK5VV.js +0 -713
  189. package/browser/chunks/chunk-TBLBK5VV.js.map +0 -7
  190. package/browser/chunks/chunk-ZYLXOA35.js +0 -713
  191. package/browser/chunks/chunk-ZYLXOA35.js.map +0 -7
  192. package/browser/index.js +0 -2
  193. package/browser/index.js.map +0 -7
  194. package/spec/testsClassFactorySpec.js +0 -41
  195. package/src/QCObjects.js +0 -5247
  196. package/src/index.d.ts +0 -8
  197. package/types/index.d.ts +0 -472
@@ -0,0 +1,26 @@
1
+ import { logger } from "./Logger";
2
+
3
+ export const waitUntil = function (func:()=>void, exp:()=>any) {
4
+ const _waitUntil = function (func:()=>void, exp:()=>any) {
5
+ const maxWaitCycles = 2000;
6
+ let _w = 0;
7
+ var _t = setInterval(function () {
8
+ if (exp()) {
9
+ clearInterval(_t);
10
+ func();
11
+ logger.debug("Ejecuting " + func.name + " after wait");
12
+ } else {
13
+ if (_w < maxWaitCycles) {
14
+ _w += 1;
15
+ logger.debug("WAIT UNTIL " + func.name + " is true, " + _w.toString() + " cycles");
16
+ } else {
17
+ logger.debug("Max execution time for " + func.name + " expression until true");
18
+ clearInterval(_t);
19
+ }
20
+ }
21
+ }, 1);
22
+ };
23
+ setTimeout(function () {
24
+ _waitUntil(func, exp);
25
+ }, 1);
26
+ };
package/tsconfig.d.json CHANGED
@@ -1,18 +1,45 @@
1
1
  {
2
- "extends": "qcobjects-tsconfig/tsconfig.d.json",
2
+ "extends": [
3
+ "./tsconfig.json"
4
+ ],
3
5
  "compilerOptions": {
4
- "strict": true, // Enables all strict type-checking options
6
+ "strict": true,
5
7
  "noImplicitAny": true,
6
8
  "strictNullChecks": true,
7
9
  "strictFunctionTypes": true,
8
10
  "strictPropertyInitialization": true,
9
11
  "noImplicitThis": true,
10
12
  "alwaysStrict": true,
11
- "outFile": "src/index.d.ts",
12
- "typeRoots": ["types", "node_modules/@types", "@typescript-eslint"],
13
- "allowSyntheticDefaultImports":true,
14
- "esModuleInterop": true
13
+ "rootDir": "./src",
14
+ "outFile": "build/index.d.ts",
15
+ "allowSyntheticDefaultImports": true,
16
+ "esModuleInterop": true,
17
+ "declaration": true,
18
+ "emitDeclarationOnly": true,
19
+ "baseUrl": ".",
20
+ "typeRoots": ["./node_modules/@types"],
21
+ "paths": {
22
+ "types": ["src/types/global"]
23
+ }
15
24
  },
16
- "include": ["src/**/*.ts", "src/static/js/packages/components/*.d.ts", "types/*.d.ts"],
17
- "exclude": ["src/**/*.spec.js", "src/*.js", "src/*.d.ts", "src/**/*.d.ts"]
25
+ "include": [
26
+ "src/**/*",
27
+ "src/types/**/*"
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.
33
+ "transpileOnly": true,
34
+ "files": true,
35
+ "compilerOptions": {
36
+ "rootDir": "./src",
37
+ "baseUrl": ".",
38
+ "paths": {
39
+ "types": ["types/global"]
40
+
41
+ }
42
+
43
+ }
44
+ }
18
45
  }
@@ -0,0 +1,39 @@
1
+ {
2
+ "compilerOptions": {
3
+ "noEmit": true,
4
+ "forceConsistentCasingInFileNames": true,
5
+ "strict": true,
6
+ "noImplicitAny": true,
7
+ "strictNullChecks": true,
8
+ "strictFunctionTypes": true,
9
+ "strictPropertyInitialization": true,
10
+ "noImplicitThis": true,
11
+ "alwaysStrict": true,
12
+ "target": "ESNext",
13
+ "lib": [
14
+ "ESNext",
15
+ "DOM"
16
+ ],
17
+ "module": "NodeNext",
18
+ "rootDir": "./",
19
+ "allowJs": true,
20
+ "outDir": "build/spec",
21
+ "allowSyntheticDefaultImports": true,
22
+ "esModuleInterop": true,
23
+ "baseUrl": ".",
24
+ "typeRoots": [
25
+ "./node_modules/@types"
26
+ ],
27
+ "paths": {
28
+ "types": [
29
+ "src/types/global"
30
+ ],
31
+ "qcobjects-sdk": ["spec/mocks/qcobjects-sdk.mock.ts"]
32
+ }
33
+ },
34
+ "include": [
35
+ "spec/**/*"
36
+ ],
37
+ "exclude": ["src/**/*"]
38
+
39
+ }
package/tsconfig.json CHANGED
@@ -1,17 +1,51 @@
1
1
  {
2
- "extends": ["qcobjects-tsconfig/tsconfig.json"],
3
2
  "compilerOptions": {
4
- "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
5
- "lib": ["ESNext", "DOM"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
6
- "module": "NodeNext", /* Specify what module code is generated. */
7
- "rootDir": "src", /* Specify the root folder within your source files. */
8
- "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
9
- "outDir": "build", /* Specify an output folder for all emitted files. */
10
- "allowSyntheticDefaultImports":true,
3
+ "forceConsistentCasingInFileNames": true,
4
+ "strict": true,
5
+ "noImplicitAny": true,
6
+ "strictNullChecks": true,
7
+ "strictFunctionTypes": true,
8
+ "strictPropertyInitialization": true,
9
+ "noImplicitThis": true,
10
+ "alwaysStrict": true,
11
+ "target": "ESNext",
12
+ "lib": [
13
+ "ESNext",
14
+ "DOM"
15
+ ],
16
+ "module": "NodeNext",
17
+ "rootDir": "./src",
18
+ "allowJs": true,
19
+ "outDir": "build",
20
+ "allowSyntheticDefaultImports": true,
11
21
  "esModuleInterop": true,
12
22
  "baseUrl": ".",
13
- "typeRoots": ["types", "node_modules/@types", "@typescript-eslint"]
23
+ "typeRoots": [
24
+ "./node_modules/@types"
25
+ ],
26
+ "paths": {
27
+ "types": [
28
+ "src/types/global"
29
+ ]
30
+ }
14
31
  },
15
- "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts"],
16
- "exclude": ["src/**/*.spec.js", "src/*.js","src/*.d.ts", "src/**/*.d.ts"]
17
- }
32
+ "include": [
33
+ "src/**/*",
34
+ "src/types/**/*"
35
+ ],
36
+ "ts-node": {
37
+ // It is faster to skip typechecking.
38
+ // Remove if you want ts-node to do typechecking.
39
+ "transpileOnly": true,
40
+ "files": true,
41
+ "compilerOptions": {
42
+ "rootDir": "./src",
43
+ "baseUrl": ".",
44
+ "paths": {
45
+ "types": [
46
+ "types/global"
47
+ ]
48
+ }
49
+ }
50
+ }
51
+ }
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- *.js
2
- src/*.js
3
- src/**/*.js
4
- node_modules/**/*
5
- node_modules
package/.eslintrc.cjs DELETED
@@ -1,21 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- node: true,
5
- es2021: true,
6
- es2020: true,
7
- es2017: true,
8
- es6: true
9
- },
10
-
11
- extends: [
12
- "semistandard",
13
- "standard",
14
- "prettier",
15
- "eslint:recommended", "plugin:@typescript-eslint/recommended"
16
-
17
- ],
18
- parser: "@typescript-eslint/parser",
19
- plugins: ["@typescript-eslint"],
20
- root: true
21
- };
package/.eslintrc.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "node": true,
5
- "es2021": true,
6
- "es2020": true,
7
- "es2017": true,
8
- "es6": true
9
- },
10
- "extends": "eslint:recommended",
11
- "globals": {
12
- "Atomics": "readonly",
13
- "SharedArrayBuffer": "readonly"
14
- },
15
- "parserOptions": {
16
- "sourceType":"module",
17
- "ecmaVersion": "latest",
18
- "ecmaFeatures": {}
19
- },
20
- "rules": {
21
- "semi": ["error", "always"],
22
- "quotes": ["error", "double"]
23
- }
24
- }
@@ -1,2 +0,0 @@
1
- import{b as a}from"./chunks/chunk-ZYLXOA35.js";export default a();
2
- //# sourceMappingURL=QCObjects.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }