@aemforms/af-core 0.15.0

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 (69) hide show
  1. package/LICENSE +5 -0
  2. package/README.md +34 -0
  3. package/lib/BaseNode.d.ts +117 -0
  4. package/lib/BaseNode.js +368 -0
  5. package/lib/Checkbox.d.ts +80 -0
  6. package/lib/Checkbox.js +49 -0
  7. package/lib/CheckboxGroup.d.ts +30 -0
  8. package/lib/CheckboxGroup.js +40 -0
  9. package/lib/Container.d.ts +336 -0
  10. package/lib/Container.js +279 -0
  11. package/lib/Field.d.ts +185 -0
  12. package/lib/Field.js +432 -0
  13. package/lib/Fieldset.d.ts +31 -0
  14. package/lib/Fieldset.js +97 -0
  15. package/lib/FileObject.d.ts +17 -0
  16. package/lib/FileObject.js +30 -0
  17. package/lib/FileUpload.d.ts +42 -0
  18. package/lib/FileUpload.js +299 -0
  19. package/lib/Form.d.ts +413 -0
  20. package/lib/Form.js +247 -0
  21. package/lib/FormInstance.d.ts +26 -0
  22. package/lib/FormInstance.js +116 -0
  23. package/lib/FormMetaData.d.ts +11 -0
  24. package/lib/FormMetaData.js +28 -0
  25. package/lib/Node.d.ts +12 -0
  26. package/lib/Node.js +27 -0
  27. package/lib/Scriptable.d.ts +27 -0
  28. package/lib/Scriptable.js +216 -0
  29. package/lib/controller/Controller.d.ts +207 -0
  30. package/lib/controller/Controller.js +263 -0
  31. package/lib/controller/EventQueue.d.ts +24 -0
  32. package/lib/controller/EventQueue.js +99 -0
  33. package/lib/controller/index.d.ts +1 -0
  34. package/lib/controller/index.js +24 -0
  35. package/lib/data/DataGroup.d.ts +25 -0
  36. package/lib/data/DataGroup.js +74 -0
  37. package/lib/data/DataValue.d.ts +22 -0
  38. package/lib/data/DataValue.js +50 -0
  39. package/lib/data/EmptyDataValue.d.ts +14 -0
  40. package/lib/data/EmptyDataValue.js +46 -0
  41. package/lib/index.d.ts +27 -0
  42. package/lib/index.js +59 -0
  43. package/lib/rules/FunctionRuntime.d.ts +44 -0
  44. package/lib/rules/FunctionRuntime.js +271 -0
  45. package/lib/rules/RuleEngine.d.ts +23 -0
  46. package/lib/rules/RuleEngine.js +67 -0
  47. package/lib/types/Json.d.ts +126 -0
  48. package/lib/types/Json.js +16 -0
  49. package/lib/types/Model.d.ts +352 -0
  50. package/lib/types/Model.js +20 -0
  51. package/lib/types/index.d.ts +2 -0
  52. package/lib/types/index.js +25 -0
  53. package/lib/utils/DataRefParser.d.ts +30 -0
  54. package/lib/utils/DataRefParser.js +249 -0
  55. package/lib/utils/Fetch.d.ts +7 -0
  56. package/lib/utils/Fetch.js +29 -0
  57. package/lib/utils/FormUtils.d.ts +47 -0
  58. package/lib/utils/FormUtils.js +172 -0
  59. package/lib/utils/JsonUtils.d.ts +55 -0
  60. package/lib/utils/JsonUtils.js +128 -0
  61. package/lib/utils/LogUtils.d.ts +7 -0
  62. package/lib/utils/LogUtils.js +17 -0
  63. package/lib/utils/SchemaUtils.d.ts +16 -0
  64. package/lib/utils/SchemaUtils.js +92 -0
  65. package/lib/utils/TranslationUtils.d.ts +34 -0
  66. package/lib/utils/TranslationUtils.js +156 -0
  67. package/lib/utils/ValidationUtils.d.ts +153 -0
  68. package/lib/utils/ValidationUtils.js +339 -0
  69. package/package.json +60 -0
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@aemforms/af-core",
3
+ "version": "0.15.0",
4
+ "description": "Core Module for Forms Runtime",
5
+ "author": "Adobe Systems",
6
+ "license": "LicenseRef-LICENSE",
7
+ "main": "lib/index.js",
8
+ "directories": {
9
+ "lib": "lib",
10
+ "source": "src",
11
+ "test": "src/__tests__"
12
+ },
13
+ "jest-junit": {
14
+ "suiteName": "core tests",
15
+ "suiteNameTemplate": "{filename}",
16
+ "classNameTemplate": "model-test.{filename}",
17
+ "outputDirectory": "./target/test-reports"
18
+ },
19
+ "files": [
20
+ "lib",
21
+ "LICENSE"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "test": "jest --silent",
28
+ "eslint": "npx eslint src/**",
29
+ "eslint:fix": "npx eslint --fix src/**",
30
+ "test:ci": "jest --silent --coverage",
31
+ "build": "npm run eslint && npx tsc",
32
+ "clean": "rm -rf lib target",
33
+ "prepublishOnly": "npm run build && npm run test",
34
+ "docs": "npx typedoc --options .typedoc.cjs"
35
+ },
36
+ "dependencies": {
37
+ "@adobe/json-formula": "git+https://git@github.com/adobe/json-formula.git#e246367c091948140db6f581806114ee482dcd1a"
38
+ },
39
+ "devDependencies": {
40
+ "@types/jest": "26.0.24",
41
+ "@types/lodash": "^4.14.171",
42
+ "@typescript-eslint/eslint-plugin": "^4.28.2",
43
+ "@typescript-eslint/parser": "^4.28.2",
44
+ "eslint": "^7.30.0",
45
+ "eslint-config-standard": "^16.0.3",
46
+ "eslint-plugin-import": "^2.23.4",
47
+ "eslint-plugin-jest": "^24.3.6",
48
+ "eslint-plugin-node": "^11.1.0",
49
+ "eslint-plugin-promise": "^5.1.0",
50
+ "form-data": "^4.0.0",
51
+ "jest": "26.6.0",
52
+ "jest-junit": "^12.2.0",
53
+ "nock": "^13.1.3",
54
+ "node-fetch": "^2.6.1",
55
+ "ts-jest": "26.5.6",
56
+ "typedoc": "0.22.11",
57
+ "typedoc-plugin-markdown": "3.11.13",
58
+ "typescript": "^4.3.5"
59
+ }
60
+ }