cdom 0.0.1

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 (136) hide show
  1. package/.codacy/codacy.yaml +15 -0
  2. package/.github/instructions/codacy.instructions.md +72 -0
  3. package/.wrangler/tmp/bundle-AF2XYW/checked-fetch.js +30 -0
  4. package/.wrangler/tmp/bundle-AF2XYW/middleware-insertion-facade.js +11 -0
  5. package/.wrangler/tmp/bundle-AF2XYW/middleware-loader.entry.ts +134 -0
  6. package/.wrangler/tmp/dev-CcfZyg/pages-shim.js +252 -0
  7. package/.wrangler/tmp/dev-CcfZyg/pages-shim.js.map +8 -0
  8. package/.wrangler/tmp/dev-CdN289/pages-shim.js +252 -0
  9. package/.wrangler/tmp/dev-CdN289/pages-shim.js.map +8 -0
  10. package/LICENSE +21 -0
  11. package/README.md +607 -0
  12. package/build.js +66 -0
  13. package/examples/dashboard.css +199 -0
  14. package/examples/dashboard.html +219 -0
  15. package/examples/persistence_test.html +91 -0
  16. package/examples/scratch.html +72 -0
  17. package/examples/spreadsheet.cdom +466 -0
  18. package/examples/spreadsheet.css +221 -0
  19. package/examples/spreadsheet.html +36 -0
  20. package/helpers/abs.js +3 -0
  21. package/helpers/add.js +2 -0
  22. package/helpers/and.js +3 -0
  23. package/helpers/assign.js +6 -0
  24. package/helpers/average.js +5 -0
  25. package/helpers/avg.js +2 -0
  26. package/helpers/ceil.js +3 -0
  27. package/helpers/ceiling.js +2 -0
  28. package/helpers/charat.js +3 -0
  29. package/helpers/choose.js +4 -0
  30. package/helpers/clear.js +7 -0
  31. package/helpers/coalesce.js +6 -0
  32. package/helpers/concat.js +3 -0
  33. package/helpers/count.js +3 -0
  34. package/helpers/currency.js +4 -0
  35. package/helpers/datedif.js +13 -0
  36. package/helpers/datediff.js +13 -0
  37. package/helpers/day.js +3 -0
  38. package/helpers/decrement.js +7 -0
  39. package/helpers/divide.js +6 -0
  40. package/helpers/endswith.js +3 -0
  41. package/helpers/eq.js +3 -0
  42. package/helpers/every.js +3 -0
  43. package/helpers/fetch.js +20 -0
  44. package/helpers/filter.js +3 -0
  45. package/helpers/find.js +3 -0
  46. package/helpers/findindex.js +3 -0
  47. package/helpers/first.js +3 -0
  48. package/helpers/fixed.js +2 -0
  49. package/helpers/flat.js +3 -0
  50. package/helpers/floor.js +3 -0
  51. package/helpers/gt.js +3 -0
  52. package/helpers/if.js +3 -0
  53. package/helpers/iferror.js +2 -0
  54. package/helpers/ifs.js +6 -0
  55. package/helpers/includes.js +6 -0
  56. package/helpers/increment.js +7 -0
  57. package/helpers/index.js +5 -0
  58. package/helpers/int.js +2 -0
  59. package/helpers/isarray.js +3 -0
  60. package/helpers/isblank.js +3 -0
  61. package/helpers/isempty.js +5 -0
  62. package/helpers/isnumber.js +3 -0
  63. package/helpers/isstring.js +2 -0
  64. package/helpers/istext.js +3 -0
  65. package/helpers/join.js +3 -0
  66. package/helpers/keys.js +3 -0
  67. package/helpers/last.js +3 -0
  68. package/helpers/left.js +4 -0
  69. package/helpers/len.js +2 -0
  70. package/helpers/length.js +5 -0
  71. package/helpers/lower.js +2 -0
  72. package/helpers/lt.js +3 -0
  73. package/helpers/map.js +3 -0
  74. package/helpers/match.js +2 -0
  75. package/helpers/max.js +4 -0
  76. package/helpers/median.js +6 -0
  77. package/helpers/mid.js +10 -0
  78. package/helpers/min.js +4 -0
  79. package/helpers/month.js +3 -0
  80. package/helpers/multiply.js +3 -0
  81. package/helpers/not.js +3 -0
  82. package/helpers/now.js +3 -0
  83. package/helpers/or.js +3 -0
  84. package/helpers/padend.js +3 -0
  85. package/helpers/padstart.js +3 -0
  86. package/helpers/percent.js +4 -0
  87. package/helpers/pop.js +9 -0
  88. package/helpers/pow.js +3 -0
  89. package/helpers/power.js +2 -0
  90. package/helpers/proper.js +2 -0
  91. package/helpers/push.js +9 -0
  92. package/helpers/rand.js +2 -0
  93. package/helpers/random.js +3 -0
  94. package/helpers/replace.js +3 -0
  95. package/helpers/reverse.js +4 -0
  96. package/helpers/right.js +4 -0
  97. package/helpers/round.js +5 -0
  98. package/helpers/set.js +10 -0
  99. package/helpers/sign.js +3 -0
  100. package/helpers/slice.js +6 -0
  101. package/helpers/some.js +3 -0
  102. package/helpers/sort.js +4 -0
  103. package/helpers/split.js +3 -0
  104. package/helpers/sqrt.js +3 -0
  105. package/helpers/startswith.js +3 -0
  106. package/helpers/stddev.js +4 -0
  107. package/helpers/stdev.js +2 -0
  108. package/helpers/substitute.js +2 -0
  109. package/helpers/substring.js +3 -0
  110. package/helpers/subtract.js +6 -0
  111. package/helpers/sum.js +3 -0
  112. package/helpers/switch.js +6 -0
  113. package/helpers/text.js +2 -0
  114. package/helpers/textjoin.js +4 -0
  115. package/helpers/titlecase.js +3 -0
  116. package/helpers/tocamelcase.js +7 -0
  117. package/helpers/today.js +5 -0
  118. package/helpers/tofixed.js +3 -0
  119. package/helpers/toggle.js +6 -0
  120. package/helpers/tolocalestring.js +3 -0
  121. package/helpers/tolowercase.js +3 -0
  122. package/helpers/toslugcase.js +7 -0
  123. package/helpers/touppercase.js +3 -0
  124. package/helpers/trim.js +3 -0
  125. package/helpers/trunc.js +3 -0
  126. package/helpers/unique.js +3 -0
  127. package/helpers/upper.js +2 -0
  128. package/helpers/var.js +2 -0
  129. package/helpers/variance.js +6 -0
  130. package/helpers/webservice.js +2 -0
  131. package/helpers/weekday.js +3 -0
  132. package/helpers/xlookup.js +5 -0
  133. package/helpers/year.js +3 -0
  134. package/index.js +1291 -0
  135. package/package.json +37 -0
  136. package/wrangler.toml +16 -0
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "cdom",
3
+ "version": "0.0.1",
4
+ "description": "Safe, reactive UIs based on JSON Pointer, XPath, JSON Schema",
5
+ "keywords": [
6
+ "JPRX",
7
+ "JSON",
8
+ "cDOM",
9
+ "XPath"
10
+ ],
11
+ "homepage": "https://github.com/anywhichway/cdom#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/anywhichway/cdom/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/anywhichway/cdom.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": "Simon Y Blackwell",
21
+ "type": "commonjs",
22
+ "main": "index.js",
23
+ "directories": {
24
+ "example": "examples"
25
+ },
26
+ "scripts": {
27
+ "dev": "wrangler pages dev . --port 3001",
28
+ "preview": "npm run build && wrangler pages dev ./dist --port 8788",
29
+ "build": "node build.js",
30
+ "watch": "nodemon --watch index.js --watch helpers --watch examples --ext js,html,css,cdom --exec \"npm run build\"",
31
+ "test": "echo \"Error: no test specified\" && exit 1"
32
+ },
33
+ "devDependencies": {
34
+ "nodemon": "^3.1.11",
35
+ "wrangler": "^4.62.0"
36
+ }
37
+ }
package/wrangler.toml ADDED
@@ -0,0 +1,16 @@
1
+ name = "lightview"
2
+ compatibility_date = "2024-01-01"
3
+
4
+
5
+ # [build]
6
+ # command = "npm run build"
7
+
8
+ # Cloudflare Pages configuration
9
+ # Note: Static asset headers are now defined in _headers file
10
+ # and the build directory is specified in the deploy command or dashboard.
11
+
12
+ # Assets directory is set via the `wrangler pages dev <directory>` command
13
+ # Uncomment below for Workers mode (not Pages mode):
14
+ [assets]
15
+ directory = "./dist"
16
+