django-handyhelpers 0.3.20__py3-none-any.whl → 0.3.36__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (571) hide show
  1. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/METADATA +16 -6
  2. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/RECORD +562 -75
  3. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/WHEEL +1 -1
  4. handyhelpers/__init__.py +6 -6
  5. handyhelpers/forms.py +9 -1
  6. handyhelpers/mixins/form_mixins.py +61 -0
  7. handyhelpers/mixins/model_mixins.py +21 -0
  8. handyhelpers/mixins/serializer_mixins.py +35 -0
  9. handyhelpers/mixins/view_mixins.py +5 -2
  10. handyhelpers/serializers.py +23 -3
  11. handyhelpers/static/handyhelpers/css/table_sortable.css +17 -0
  12. handyhelpers/static/handyhelpers/js/sidebar.js +8 -4
  13. handyhelpers/static/handyhelpers/js/table_sortable.js +119 -0
  14. handyhelpers/static/node_modules/.bin/acorn +4 -0
  15. handyhelpers/static/node_modules/.bin/css-b64-images +13 -0
  16. handyhelpers/static/node_modules/.bin/esbuild +0 -0
  17. handyhelpers/static/node_modules/.bin/html-minifier-terser +308 -0
  18. handyhelpers/static/node_modules/.bin/minify +98 -0
  19. handyhelpers/static/node_modules/.bin/terser +21 -0
  20. handyhelpers/static/node_modules/.bin/uglifyjs +624 -0
  21. handyhelpers/static/node_modules/.package-lock.json +750 -0
  22. handyhelpers/static/node_modules/@esbuild/linux-x64/README.md +3 -0
  23. handyhelpers/static/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  24. handyhelpers/static/node_modules/@esbuild/linux-x64/package.json +20 -0
  25. handyhelpers/static/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
  26. handyhelpers/static/node_modules/@jridgewell/gen-mapping/README.md +227 -0
  27. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
  28. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
  29. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
  30. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
  31. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
  32. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  33. handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
  34. handyhelpers/static/node_modules/@jridgewell/gen-mapping/package.json +76 -0
  35. handyhelpers/static/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
  36. handyhelpers/static/node_modules/@jridgewell/resolve-uri/README.md +40 -0
  37. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
  38. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
  39. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
  40. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
  41. handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
  42. handyhelpers/static/node_modules/@jridgewell/resolve-uri/package.json +69 -0
  43. handyhelpers/static/node_modules/@jridgewell/set-array/LICENSE +19 -0
  44. handyhelpers/static/node_modules/@jridgewell/set-array/README.md +37 -0
  45. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
  46. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
  47. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
  48. handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
  49. handyhelpers/static/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
  50. handyhelpers/static/node_modules/@jridgewell/set-array/package.json +65 -0
  51. handyhelpers/static/node_modules/@jridgewell/source-map/LICENSE +19 -0
  52. handyhelpers/static/node_modules/@jridgewell/source-map/README.md +184 -0
  53. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs +95 -0
  54. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs.map +1 -0
  55. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs +90 -0
  56. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs.map +1 -0
  57. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js +1242 -0
  58. handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js.map +1 -0
  59. handyhelpers/static/node_modules/@jridgewell/source-map/dist/types/source-map.d.ts +35 -0
  60. handyhelpers/static/node_modules/@jridgewell/source-map/package.json +71 -0
  61. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
  62. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
  63. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
  64. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  65. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
  66. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  67. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
  68. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
  69. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
  70. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
  71. handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
  72. handyhelpers/static/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
  73. handyhelpers/static/node_modules/@jridgewell/trace-mapping/README.md +257 -0
  74. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
  75. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
  76. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
  77. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
  78. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
  79. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
  80. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
  81. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
  82. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
  83. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  84. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
  85. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
  86. handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
  87. handyhelpers/static/node_modules/@jridgewell/trace-mapping/package.json +77 -0
  88. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/enums.js +1 -1
  89. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js +12 -170
  90. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js.map +1 -1
  91. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js +14 -184
  92. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js.map +1 -1
  93. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js +14 -197
  94. handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js.map +1 -1
  95. handyhelpers/static/node_modules/@popperjs/core/dist/esm/createPopper.js +6 -66
  96. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/arrow.js +1 -12
  97. handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js +2 -14
  98. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +0 -4
  99. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/userAgent.js +1 -1
  100. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.js +1 -1
  101. handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.min.js +1 -1
  102. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js +12 -170
  103. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js.map +1 -1
  104. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js +2 -2
  105. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js.map +1 -1
  106. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js +14 -184
  107. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js.map +1 -1
  108. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js +2 -2
  109. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.map +1 -1
  110. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js +14 -197
  111. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js.map +1 -1
  112. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js +2 -2
  113. handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js.map +1 -1
  114. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js +6 -66
  115. handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js.flow +2 -80
  116. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -12
  117. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js.flow +0 -22
  118. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -14
  119. handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow +3 -33
  120. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -4
  121. handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.flow +0 -12
  122. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
  123. handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js.flow +1 -1
  124. handyhelpers/static/node_modules/@popperjs/core/package.json +1 -1
  125. handyhelpers/static/node_modules/@putout/minify/LICENSE +21 -0
  126. handyhelpers/static/node_modules/@putout/minify/README.md +110 -0
  127. handyhelpers/static/node_modules/@putout/minify/bundle/minify.min.js +52 -0
  128. handyhelpers/static/node_modules/@putout/minify/package.json +112 -0
  129. handyhelpers/static/node_modules/@swc/core/Visitor.d.ts +218 -0
  130. handyhelpers/static/node_modules/@swc/core/Visitor.js +1407 -0
  131. handyhelpers/static/node_modules/@swc/core/binding.d.ts +56 -0
  132. handyhelpers/static/node_modules/@swc/core/binding.js +351 -0
  133. handyhelpers/static/node_modules/@swc/core/index.d.ts +118 -0
  134. handyhelpers/static/node_modules/@swc/core/index.js +439 -0
  135. handyhelpers/static/node_modules/@swc/core/package.json +114 -0
  136. handyhelpers/static/node_modules/@swc/core/postinstall.js +148 -0
  137. handyhelpers/static/node_modules/@swc/core/spack.d.ts +51 -0
  138. handyhelpers/static/node_modules/@swc/core/spack.js +87 -0
  139. handyhelpers/static/node_modules/@swc/core/util.d.ts +1 -0
  140. handyhelpers/static/node_modules/@swc/core/util.js +104 -0
  141. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
  142. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/package.json +45 -0
  143. handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
  144. handyhelpers/static/node_modules/@swc/counter/CHANGELOG.md +7 -0
  145. handyhelpers/static/node_modules/@swc/counter/README.md +7 -0
  146. handyhelpers/static/node_modules/@swc/counter/index.js +1 -0
  147. handyhelpers/static/node_modules/@swc/counter/package.json +27 -0
  148. handyhelpers/static/node_modules/@swc/types/LICENSE +201 -0
  149. handyhelpers/static/node_modules/@swc/types/README.md +4 -0
  150. handyhelpers/static/node_modules/@swc/types/assumptions.d.ts +92 -0
  151. handyhelpers/static/node_modules/@swc/types/assumptions.js +2 -0
  152. handyhelpers/static/node_modules/@swc/types/index.d.ts +1977 -0
  153. handyhelpers/static/node_modules/@swc/types/index.js +2 -0
  154. handyhelpers/static/node_modules/@swc/types/package.json +39 -0
  155. handyhelpers/static/node_modules/acorn/CHANGELOG.md +928 -0
  156. handyhelpers/static/node_modules/acorn/LICENSE +21 -0
  157. handyhelpers/static/node_modules/acorn/README.md +282 -0
  158. handyhelpers/static/node_modules/acorn/bin/acorn +4 -0
  159. handyhelpers/static/node_modules/acorn/dist/acorn.d.mts +866 -0
  160. handyhelpers/static/node_modules/acorn/dist/acorn.d.ts +866 -0
  161. handyhelpers/static/node_modules/acorn/dist/acorn.js +6174 -0
  162. handyhelpers/static/node_modules/acorn/dist/acorn.mjs +6145 -0
  163. handyhelpers/static/node_modules/acorn/dist/bin.js +90 -0
  164. handyhelpers/static/node_modules/acorn/package.json +50 -0
  165. handyhelpers/static/node_modules/buffer-from/LICENSE +21 -0
  166. handyhelpers/static/node_modules/buffer-from/index.js +72 -0
  167. handyhelpers/static/node_modules/buffer-from/package.json +19 -0
  168. handyhelpers/static/node_modules/buffer-from/readme.md +69 -0
  169. handyhelpers/static/node_modules/camel-case/LICENSE +21 -0
  170. handyhelpers/static/node_modules/camel-case/README.md +47 -0
  171. handyhelpers/static/node_modules/camel-case/dist/index.d.ts +5 -0
  172. handyhelpers/static/node_modules/camel-case/dist/index.js +23 -0
  173. handyhelpers/static/node_modules/camel-case/dist/index.js.map +1 -0
  174. handyhelpers/static/node_modules/camel-case/dist/index.spec.d.ts +1 -0
  175. handyhelpers/static/node_modules/camel-case/dist/index.spec.js +26 -0
  176. handyhelpers/static/node_modules/camel-case/dist/index.spec.js.map +1 -0
  177. handyhelpers/static/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
  178. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js +17 -0
  179. handyhelpers/static/node_modules/camel-case/dist.es2015/index.js.map +1 -0
  180. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
  181. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
  182. handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
  183. handyhelpers/static/node_modules/camel-case/package.json +89 -0
  184. handyhelpers/static/node_modules/clean-css/History.md +1504 -0
  185. handyhelpers/static/node_modules/clean-css/LICENSE +19 -0
  186. handyhelpers/static/node_modules/clean-css/README.md +987 -0
  187. handyhelpers/static/node_modules/clean-css/index.js +1 -0
  188. handyhelpers/static/node_modules/clean-css/package.json +48 -0
  189. handyhelpers/static/node_modules/commander/LICENSE +22 -0
  190. handyhelpers/static/node_modules/commander/Readme.md +1134 -0
  191. handyhelpers/static/node_modules/commander/esm.mjs +16 -0
  192. handyhelpers/static/node_modules/commander/index.js +27 -0
  193. handyhelpers/static/node_modules/commander/package-support.json +16 -0
  194. handyhelpers/static/node_modules/commander/package.json +80 -0
  195. handyhelpers/static/node_modules/commander/typings/index.d.ts +889 -0
  196. handyhelpers/static/node_modules/css-b64-images/.npmignore +15 -0
  197. handyhelpers/static/node_modules/css-b64-images/.travis.yml +5 -0
  198. handyhelpers/static/node_modules/css-b64-images/README.md +78 -0
  199. handyhelpers/static/node_modules/css-b64-images/bin/css-b64-images +13 -0
  200. handyhelpers/static/node_modules/css-b64-images/draft.png +0 -0
  201. handyhelpers/static/node_modules/css-b64-images/draft.xcf +0 -0
  202. handyhelpers/static/node_modules/css-b64-images/package.json +30 -0
  203. handyhelpers/static/node_modules/css-b64-images/test/css-b64-images-test.js +38 -0
  204. handyhelpers/static/node_modules/css-b64-images/test/fixture/css/style.css +52 -0
  205. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.eot +0 -0
  206. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.svg +248 -0
  207. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.ttf +0 -0
  208. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.woff +0 -0
  209. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.eot +0 -0
  210. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.svg +245 -0
  211. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.ttf +0 -0
  212. handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.woff +0 -0
  213. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/background-pattern.gif +0 -0
  214. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/dots.svg +6 -0
  215. handyhelpers/static/node_modules/css-b64-images/test/fixture/img/mixit-banner.png +0 -0
  216. handyhelpers/static/node_modules/debug/LICENSE +20 -0
  217. handyhelpers/static/node_modules/debug/README.md +481 -0
  218. handyhelpers/static/node_modules/debug/package.json +65 -0
  219. handyhelpers/static/node_modules/debug/src/browser.js +272 -0
  220. handyhelpers/static/node_modules/debug/src/common.js +292 -0
  221. handyhelpers/static/node_modules/debug/src/index.js +10 -0
  222. handyhelpers/static/node_modules/debug/src/node.js +263 -0
  223. handyhelpers/static/node_modules/dot-case/LICENSE +21 -0
  224. handyhelpers/static/node_modules/dot-case/README.md +37 -0
  225. handyhelpers/static/node_modules/dot-case/dist/index.d.ts +3 -0
  226. handyhelpers/static/node_modules/dot-case/dist/index.js +11 -0
  227. handyhelpers/static/node_modules/dot-case/dist/index.js.map +1 -0
  228. handyhelpers/static/node_modules/dot-case/dist/index.spec.d.ts +1 -0
  229. handyhelpers/static/node_modules/dot-case/dist/index.spec.js +26 -0
  230. handyhelpers/static/node_modules/dot-case/dist/index.spec.js.map +1 -0
  231. handyhelpers/static/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
  232. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js +7 -0
  233. handyhelpers/static/node_modules/dot-case/dist.es2015/index.js.map +1 -0
  234. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
  235. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
  236. handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
  237. handyhelpers/static/node_modules/dot-case/package.json +89 -0
  238. handyhelpers/static/node_modules/entities/LICENSE +11 -0
  239. handyhelpers/static/node_modules/entities/package.json +90 -0
  240. handyhelpers/static/node_modules/entities/readme.md +122 -0
  241. handyhelpers/static/node_modules/esbuild/LICENSE.md +21 -0
  242. handyhelpers/static/node_modules/esbuild/README.md +3 -0
  243. handyhelpers/static/node_modules/esbuild/bin/esbuild +0 -0
  244. handyhelpers/static/node_modules/esbuild/install.js +286 -0
  245. handyhelpers/static/node_modules/esbuild/package.json +47 -0
  246. handyhelpers/static/node_modules/find-up/index.d.ts +247 -0
  247. handyhelpers/static/node_modules/find-up/index.js +107 -0
  248. handyhelpers/static/node_modules/find-up/license +9 -0
  249. handyhelpers/static/node_modules/find-up/package.json +61 -0
  250. handyhelpers/static/node_modules/find-up/readme.md +160 -0
  251. handyhelpers/static/node_modules/fun-effects/LICENSE +674 -0
  252. handyhelpers/static/node_modules/fun-effects/README.md +10 -0
  253. handyhelpers/static/node_modules/fun-effects/dist/css/background_icons.min.css +1 -0
  254. handyhelpers/static/node_modules/fun-effects/dist/css/blur_group.min.css +1 -0
  255. handyhelpers/static/node_modules/fun-effects/dist/css/fades.min.css +1 -0
  256. handyhelpers/static/node_modules/fun-effects/dist/css/marquee.min.css +1 -0
  257. handyhelpers/static/node_modules/fun-effects/dist/css/scroller.min.css +1 -0
  258. handyhelpers/static/node_modules/fun-effects/dist/index.js +15 -0
  259. handyhelpers/static/node_modules/fun-effects/dist/js/background_icons.min.js +1 -0
  260. handyhelpers/static/node_modules/fun-effects/dist/js/marquee.min.js +1 -0
  261. handyhelpers/static/node_modules/fun-effects/dist/js/scroller.min.js +1 -0
  262. handyhelpers/static/node_modules/fun-effects/package.json +39 -0
  263. handyhelpers/static/node_modules/fun-effects/src/css/background_icons.css +39 -0
  264. handyhelpers/static/node_modules/fun-effects/src/css/blur_group.css +22 -0
  265. handyhelpers/static/node_modules/fun-effects/src/css/fades.css +94 -0
  266. handyhelpers/static/node_modules/fun-effects/src/css/marquee.css +45 -0
  267. handyhelpers/static/node_modules/fun-effects/src/css/scroller.css +144 -0
  268. handyhelpers/static/node_modules/fun-effects/src/index.js +15 -0
  269. handyhelpers/static/node_modules/fun-effects/src/js/background_icons.js +101 -0
  270. handyhelpers/static/node_modules/fun-effects/src/js/marquee.js +81 -0
  271. handyhelpers/static/node_modules/fun-effects/src/js/scroller.js +37 -0
  272. handyhelpers/static/node_modules/html-minifier-terser/LICENSE +22 -0
  273. handyhelpers/static/node_modules/html-minifier-terser/README.md +168 -0
  274. handyhelpers/static/node_modules/html-minifier-terser/cli.js +308 -0
  275. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.cjs +1857 -0
  276. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.esm.bundle.js +57509 -0
  277. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.js +57520 -0
  278. handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js +9 -0
  279. handyhelpers/static/node_modules/html-minifier-terser/package.json +105 -0
  280. handyhelpers/static/node_modules/html-minifier-terser/src/htmlminifier.js +1366 -0
  281. handyhelpers/static/node_modules/html-minifier-terser/src/htmlparser.js +565 -0
  282. handyhelpers/static/node_modules/html-minifier-terser/src/tokenchain.js +68 -0
  283. handyhelpers/static/node_modules/html-minifier-terser/src/utils.js +11 -0
  284. handyhelpers/static/node_modules/jju/LICENSE +21 -0
  285. handyhelpers/static/node_modules/jju/Makefile +20 -0
  286. handyhelpers/static/node_modules/jju/README.md +249 -0
  287. handyhelpers/static/node_modules/jju/index.js +32 -0
  288. handyhelpers/static/node_modules/jju/package.json +34 -0
  289. handyhelpers/static/node_modules/jju/package.yaml +36 -0
  290. handyhelpers/static/node_modules/locate-path/index.d.ts +92 -0
  291. handyhelpers/static/node_modules/locate-path/index.js +77 -0
  292. handyhelpers/static/node_modules/locate-path/license +9 -0
  293. handyhelpers/static/node_modules/locate-path/package.json +48 -0
  294. handyhelpers/static/node_modules/locate-path/readme.md +123 -0
  295. handyhelpers/static/node_modules/lower-case/LICENSE +21 -0
  296. handyhelpers/static/node_modules/lower-case/README.md +35 -0
  297. handyhelpers/static/node_modules/lower-case/dist/index.d.ts +8 -0
  298. handyhelpers/static/node_modules/lower-case/dist/index.js +53 -0
  299. handyhelpers/static/node_modules/lower-case/dist/index.js.map +1 -0
  300. handyhelpers/static/node_modules/lower-case/dist/index.spec.d.ts +1 -0
  301. handyhelpers/static/node_modules/lower-case/dist/index.spec.js +36 -0
  302. handyhelpers/static/node_modules/lower-case/dist/index.spec.js.map +1 -0
  303. handyhelpers/static/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
  304. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js +48 -0
  305. handyhelpers/static/node_modules/lower-case/dist.es2015/index.js.map +1 -0
  306. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
  307. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
  308. handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
  309. handyhelpers/static/node_modules/lower-case/package.json +87 -0
  310. handyhelpers/static/node_modules/minify/ChangeLog +1307 -0
  311. handyhelpers/static/node_modules/minify/LICENSE +22 -0
  312. handyhelpers/static/node_modules/minify/README.md +177 -0
  313. handyhelpers/static/node_modules/minify/bin/minify.js +98 -0
  314. handyhelpers/static/node_modules/minify/deno.json +5 -0
  315. handyhelpers/static/node_modules/minify/help.json +8 -0
  316. handyhelpers/static/node_modules/minify/package.json +65 -0
  317. handyhelpers/static/node_modules/ms/index.js +162 -0
  318. handyhelpers/static/node_modules/ms/license.md +21 -0
  319. handyhelpers/static/node_modules/ms/package.json +38 -0
  320. handyhelpers/static/node_modules/ms/readme.md +59 -0
  321. handyhelpers/static/node_modules/no-case/LICENSE +21 -0
  322. handyhelpers/static/node_modules/no-case/README.md +37 -0
  323. handyhelpers/static/node_modules/no-case/dist/index.d.ts +10 -0
  324. handyhelpers/static/node_modules/no-case/dist/index.js +35 -0
  325. handyhelpers/static/node_modules/no-case/dist/index.js.map +1 -0
  326. handyhelpers/static/node_modules/no-case/dist/index.spec.d.ts +1 -0
  327. handyhelpers/static/node_modules/no-case/dist/index.spec.js +59 -0
  328. handyhelpers/static/node_modules/no-case/dist/index.spec.js.map +1 -0
  329. handyhelpers/static/node_modules/no-case/dist.es2015/index.d.ts +10 -0
  330. handyhelpers/static/node_modules/no-case/dist.es2015/index.js +31 -0
  331. handyhelpers/static/node_modules/no-case/dist.es2015/index.js.map +1 -0
  332. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
  333. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js +57 -0
  334. handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
  335. handyhelpers/static/node_modules/no-case/package.json +85 -0
  336. handyhelpers/static/node_modules/p-limit/index.d.ts +40 -0
  337. handyhelpers/static/node_modules/p-limit/index.js +68 -0
  338. handyhelpers/static/node_modules/p-limit/license +9 -0
  339. handyhelpers/static/node_modules/p-limit/package.json +54 -0
  340. handyhelpers/static/node_modules/p-limit/readme.md +99 -0
  341. handyhelpers/static/node_modules/p-locate/index.d.ts +49 -0
  342. handyhelpers/static/node_modules/p-locate/index.js +48 -0
  343. handyhelpers/static/node_modules/p-locate/license +9 -0
  344. handyhelpers/static/node_modules/p-locate/package.json +56 -0
  345. handyhelpers/static/node_modules/p-locate/readme.md +91 -0
  346. handyhelpers/static/node_modules/param-case/LICENSE +21 -0
  347. handyhelpers/static/node_modules/param-case/README.md +37 -0
  348. handyhelpers/static/node_modules/param-case/dist/index.d.ts +3 -0
  349. handyhelpers/static/node_modules/param-case/dist/index.js +11 -0
  350. handyhelpers/static/node_modules/param-case/dist/index.js.map +1 -0
  351. handyhelpers/static/node_modules/param-case/dist/index.spec.d.ts +1 -0
  352. handyhelpers/static/node_modules/param-case/dist/index.spec.js +24 -0
  353. handyhelpers/static/node_modules/param-case/dist/index.spec.js.map +1 -0
  354. handyhelpers/static/node_modules/param-case/dist.es2015/index.d.ts +3 -0
  355. handyhelpers/static/node_modules/param-case/dist.es2015/index.js +7 -0
  356. handyhelpers/static/node_modules/param-case/dist.es2015/index.js.map +1 -0
  357. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
  358. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js +22 -0
  359. handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
  360. handyhelpers/static/node_modules/param-case/package.json +91 -0
  361. handyhelpers/static/node_modules/pascal-case/LICENSE +21 -0
  362. handyhelpers/static/node_modules/pascal-case/README.md +47 -0
  363. handyhelpers/static/node_modules/pascal-case/dist/index.d.ts +5 -0
  364. handyhelpers/static/node_modules/pascal-case/dist/index.js +24 -0
  365. handyhelpers/static/node_modules/pascal-case/dist/index.js.map +1 -0
  366. handyhelpers/static/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
  367. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js +25 -0
  368. handyhelpers/static/node_modules/pascal-case/dist/index.spec.js.map +1 -0
  369. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
  370. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js +18 -0
  371. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
  372. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
  373. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
  374. handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
  375. handyhelpers/static/node_modules/pascal-case/package.json +90 -0
  376. handyhelpers/static/node_modules/path-exists/index.d.ts +31 -0
  377. handyhelpers/static/node_modules/path-exists/index.js +19 -0
  378. handyhelpers/static/node_modules/path-exists/license +9 -0
  379. handyhelpers/static/node_modules/path-exists/package.json +41 -0
  380. handyhelpers/static/node_modules/path-exists/readme.md +52 -0
  381. handyhelpers/static/node_modules/readjson/ChangeLog +110 -0
  382. handyhelpers/static/node_modules/readjson/LICENSE +21 -0
  383. handyhelpers/static/node_modules/readjson/README.md +36 -0
  384. handyhelpers/static/node_modules/readjson/package.json +46 -0
  385. handyhelpers/static/node_modules/relateurl/README.md +159 -0
  386. handyhelpers/static/node_modules/relateurl/license +21 -0
  387. handyhelpers/static/node_modules/relateurl/package.json +46 -0
  388. handyhelpers/static/node_modules/simport/ChangeLog +77 -0
  389. handyhelpers/static/node_modules/simport/LICENSE +21 -0
  390. handyhelpers/static/node_modules/simport/README.md +81 -0
  391. handyhelpers/static/node_modules/simport/fixture/context.js +3 -0
  392. handyhelpers/static/node_modules/simport/fixture/default-frozen-function.mjs +2 -0
  393. handyhelpers/static/node_modules/simport/fixture/default-frozen-object.mjs +2 -0
  394. handyhelpers/static/node_modules/simport/package.json +65 -0
  395. handyhelpers/static/node_modules/simport/simport.js +84 -0
  396. handyhelpers/static/node_modules/simport/simport.mjs +22 -0
  397. handyhelpers/static/node_modules/source-map/CHANGELOG.md +301 -0
  398. handyhelpers/static/node_modules/source-map/LICENSE +28 -0
  399. handyhelpers/static/node_modules/source-map/README.md +742 -0
  400. handyhelpers/static/node_modules/source-map/dist/source-map.debug.js +3234 -0
  401. handyhelpers/static/node_modules/source-map/dist/source-map.js +3233 -0
  402. handyhelpers/static/node_modules/source-map/dist/source-map.min.js +2 -0
  403. handyhelpers/static/node_modules/source-map/dist/source-map.min.js.map +1 -0
  404. handyhelpers/static/node_modules/source-map/package.json +73 -0
  405. handyhelpers/static/node_modules/source-map/source-map.d.ts +98 -0
  406. handyhelpers/static/node_modules/source-map/source-map.js +8 -0
  407. handyhelpers/static/node_modules/source-map-support/LICENSE.md +21 -0
  408. handyhelpers/static/node_modules/source-map-support/README.md +284 -0
  409. handyhelpers/static/node_modules/source-map-support/browser-source-map-support.js +114 -0
  410. handyhelpers/static/node_modules/source-map-support/package.json +31 -0
  411. handyhelpers/static/node_modules/source-map-support/register-hook-require.js +1 -0
  412. handyhelpers/static/node_modules/source-map-support/register.js +1 -0
  413. handyhelpers/static/node_modules/source-map-support/source-map-support.js +625 -0
  414. handyhelpers/static/node_modules/terser/CHANGELOG.md +783 -0
  415. handyhelpers/static/node_modules/terser/LICENSE +27 -0
  416. handyhelpers/static/node_modules/terser/PATRONS.md +15 -0
  417. handyhelpers/static/node_modules/terser/README.md +1421 -0
  418. handyhelpers/static/node_modules/terser/bin/package.json +10 -0
  419. handyhelpers/static/node_modules/terser/bin/terser +21 -0
  420. handyhelpers/static/node_modules/terser/bin/uglifyjs +10 -0
  421. handyhelpers/static/node_modules/terser/dist/.gitkeep +0 -0
  422. handyhelpers/static/node_modules/terser/dist/bundle.min.js +32962 -0
  423. handyhelpers/static/node_modules/terser/dist/package.json +10 -0
  424. handyhelpers/static/node_modules/terser/main.js +27 -0
  425. handyhelpers/static/node_modules/terser/node_modules/commander/CHANGELOG.md +419 -0
  426. handyhelpers/static/node_modules/terser/node_modules/commander/LICENSE +22 -0
  427. handyhelpers/static/node_modules/terser/node_modules/commander/Readme.md +428 -0
  428. handyhelpers/static/node_modules/terser/node_modules/commander/index.js +1224 -0
  429. handyhelpers/static/node_modules/terser/node_modules/commander/package.json +38 -0
  430. handyhelpers/static/node_modules/terser/node_modules/commander/typings/index.d.ts +310 -0
  431. handyhelpers/static/node_modules/terser/package.json +153 -0
  432. handyhelpers/static/node_modules/terser/tools/domprops.js +9026 -0
  433. handyhelpers/static/node_modules/terser/tools/exit.cjs +7 -0
  434. handyhelpers/static/node_modules/terser/tools/props.html +68 -0
  435. handyhelpers/static/node_modules/terser/tools/terser.d.ts +216 -0
  436. handyhelpers/static/node_modules/tippy.js/LICENSE +21 -0
  437. handyhelpers/static/node_modules/tippy.js/README.md +63 -0
  438. handyhelpers/static/node_modules/tippy.js/animations/perspective-extreme.css +1 -0
  439. handyhelpers/static/node_modules/tippy.js/animations/perspective-subtle.css +1 -0
  440. handyhelpers/static/node_modules/tippy.js/animations/perspective.css +1 -0
  441. handyhelpers/static/node_modules/tippy.js/animations/scale-extreme.css +1 -0
  442. handyhelpers/static/node_modules/tippy.js/animations/scale-subtle.css +1 -0
  443. handyhelpers/static/node_modules/tippy.js/animations/scale.css +1 -0
  444. handyhelpers/static/node_modules/tippy.js/animations/shift-away-extreme.css +1 -0
  445. handyhelpers/static/node_modules/tippy.js/animations/shift-away-subtle.css +1 -0
  446. handyhelpers/static/node_modules/tippy.js/animations/shift-away.css +1 -0
  447. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-extreme.css +1 -0
  448. handyhelpers/static/node_modules/tippy.js/animations/shift-toward-subtle.css +1 -0
  449. handyhelpers/static/node_modules/tippy.js/animations/shift-toward.css +1 -0
  450. handyhelpers/static/node_modules/tippy.js/dist/backdrop.css +1 -0
  451. handyhelpers/static/node_modules/tippy.js/dist/border.css +1 -0
  452. handyhelpers/static/node_modules/tippy.js/dist/svg-arrow.css +1 -0
  453. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js +2516 -0
  454. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js.map +1 -0
  455. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js +2 -0
  456. handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js.map +1 -0
  457. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js +2497 -0
  458. handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js.map +1 -0
  459. handyhelpers/static/node_modules/tippy.js/dist/tippy.css +1 -0
  460. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js +2486 -0
  461. handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
  462. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js +2496 -0
  463. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js.map +1 -0
  464. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js +2 -0
  465. handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js.map +1 -0
  466. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js +2388 -0
  467. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js.map +1 -0
  468. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +2377 -0
  469. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js.map +1 -0
  470. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js +2382 -0
  471. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js.map +1 -0
  472. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js +2 -0
  473. handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js.map +1 -0
  474. handyhelpers/static/node_modules/tippy.js/headless/package.json +16 -0
  475. handyhelpers/static/node_modules/tippy.js/index.d.ts +260 -0
  476. handyhelpers/static/node_modules/tippy.js/package.json +157 -0
  477. handyhelpers/static/node_modules/tippy.js/themes/light-border.css +1 -0
  478. handyhelpers/static/node_modules/tippy.js/themes/light.css +1 -0
  479. handyhelpers/static/node_modules/tippy.js/themes/material.css +1 -0
  480. handyhelpers/static/node_modules/tippy.js/themes/translucent.css +1 -0
  481. handyhelpers/static/node_modules/try-catch/ChangeLog +55 -0
  482. handyhelpers/static/node_modules/try-catch/LICENSE +21 -0
  483. handyhelpers/static/node_modules/try-catch/README.md +38 -0
  484. handyhelpers/static/node_modules/try-catch/package.json +34 -0
  485. handyhelpers/static/node_modules/try-to-catch/ChangeLog +64 -0
  486. handyhelpers/static/node_modules/try-to-catch/LICENSE +21 -0
  487. handyhelpers/static/node_modules/try-to-catch/README.md +74 -0
  488. handyhelpers/static/node_modules/try-to-catch/package.json +47 -0
  489. handyhelpers/static/node_modules/tslib/CopyrightNotice.txt +15 -0
  490. handyhelpers/static/node_modules/tslib/LICENSE.txt +12 -0
  491. handyhelpers/static/node_modules/tslib/README.md +164 -0
  492. handyhelpers/static/node_modules/tslib/SECURITY.md +41 -0
  493. handyhelpers/static/node_modules/tslib/modules/index.d.ts +38 -0
  494. handyhelpers/static/node_modules/tslib/modules/index.js +70 -0
  495. handyhelpers/static/node_modules/tslib/modules/package.json +3 -0
  496. handyhelpers/static/node_modules/tslib/package.json +47 -0
  497. handyhelpers/static/node_modules/tslib/tslib.d.ts +460 -0
  498. handyhelpers/static/node_modules/tslib/tslib.es6.html +1 -0
  499. handyhelpers/static/node_modules/tslib/tslib.es6.js +402 -0
  500. handyhelpers/static/node_modules/tslib/tslib.es6.mjs +401 -0
  501. handyhelpers/static/node_modules/tslib/tslib.html +1 -0
  502. handyhelpers/static/node_modules/tslib/tslib.js +484 -0
  503. handyhelpers/static/node_modules/uglify-js/LICENSE +29 -0
  504. handyhelpers/static/node_modules/uglify-js/README.md +1479 -0
  505. handyhelpers/static/node_modules/uglify-js/bin/uglifyjs +624 -0
  506. handyhelpers/static/node_modules/uglify-js/package.json +56 -0
  507. handyhelpers/static/node_modules/uglify-js/tools/domprops.html +456 -0
  508. handyhelpers/static/node_modules/uglify-js/tools/domprops.json +8327 -0
  509. handyhelpers/static/node_modules/uglify-js/tools/exports.js +8 -0
  510. handyhelpers/static/node_modules/uglify-js/tools/node.js +115 -0
  511. handyhelpers/static/node_modules/uglify-js/tools/tty.js +22 -0
  512. handyhelpers/static/node_modules/unicorn-magic/default.js +14 -0
  513. handyhelpers/static/node_modules/unicorn-magic/index.d.ts +29 -0
  514. handyhelpers/static/node_modules/unicorn-magic/license +9 -0
  515. handyhelpers/static/node_modules/unicorn-magic/node.js +7 -0
  516. handyhelpers/static/node_modules/unicorn-magic/package.json +49 -0
  517. handyhelpers/static/node_modules/unicorn-magic/readme.md +25 -0
  518. handyhelpers/static/node_modules/yocto-queue/index.d.ts +61 -0
  519. handyhelpers/static/node_modules/yocto-queue/index.js +78 -0
  520. handyhelpers/static/node_modules/yocto-queue/license +9 -0
  521. handyhelpers/static/node_modules/yocto-queue/package.json +48 -0
  522. handyhelpers/static/node_modules/yocto-queue/readme.md +70 -0
  523. handyhelpers/static/package.json +3 -1
  524. handyhelpers/static/yarn.lock +393 -20
  525. handyhelpers/templates/handyhelpers/generic/bs5/generic_index.html +5 -8
  526. handyhelpers/templates/handyhelpers/handyhelpers_base_bs5.htm +5 -1
  527. handyhelpers/templates/handyhelpers/handyhelpers_with_sidebar.htm +50 -3
  528. handyhelpers/templates/handyhelpers/htmx/bs5/filter_form/generic_modal_swap.htm +48 -0
  529. handyhelpers/templates/handyhelpers/htmx/bs5/form/form_wrapper.htm +48 -0
  530. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form.htm +166 -0
  531. handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form_disabled.htm +125 -0
  532. handyhelpers/templates/handyhelpers/htmx/bs5/generic_modal_swap.htm +2 -3
  533. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm +38 -0
  534. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm +21 -0
  535. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm +17 -0
  536. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm +11 -0
  537. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm +21 -0
  538. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/filter_form_modal_swap.htm +48 -0
  539. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html +6 -0
  540. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm +7 -0
  541. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm +7 -0
  542. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm +7 -0
  543. handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_table.htm +18 -0
  544. handyhelpers/templates/handyhelpers/htmx/bs5/index.htm +34 -0
  545. handyhelpers/templates/handyhelpers/report/annual_stats.html +6 -0
  546. handyhelpers/templates/handyhelpers/report/annual_stats_content.htm +43 -0
  547. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_chart.htm +1 -1
  548. handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_content.htm +40 -39
  549. handyhelpers/templates/handyhelpers/report/chartjs/annual_stats.html +25 -36
  550. handyhelpers/templates/handyhelpers/report/chartjs/annual_trends_content.htm +35 -34
  551. handyhelpers/templates/handyhelpers/report/chartjs/day_count_chart.htm +1 -1
  552. handyhelpers/templates/handyhelpers/report/chartjs/month_count_chart.htm +1 -1
  553. handyhelpers/templates/handyhelpers/report/chartjs/week_count_chart.htm +1 -1
  554. handyhelpers/templates/handyhelpers/report/chartjs/year_count_chart.htm +1 -1
  555. handyhelpers/templatetags/form_tags.py +47 -0
  556. handyhelpers/templatetags/htmx_tags.py +21 -0
  557. handyhelpers/views/action.py +3 -1
  558. handyhelpers/views/calendar.py +33 -14
  559. handyhelpers/views/htmx.py +396 -4
  560. handyhelpers/views/report.py +12 -5
  561. handyhelpers/management/commands/generate_admin.py +0 -110
  562. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/format.js +0 -9
  563. handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js +0 -81
  564. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.d.ts +0 -1
  565. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js +0 -9
  566. handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js.flow +0 -5
  567. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.d.ts +0 -1
  568. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -81
  569. handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js.flow +0 -151
  570. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/LICENSE +0 -0
  571. {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.36.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1977 @@
1
+ import { Assumptions } from "./assumptions";
2
+ export interface Plugin {
3
+ (module: Program): Program;
4
+ }
5
+ export type ParseOptions = ParserConfig & {
6
+ comments?: boolean;
7
+ script?: boolean;
8
+ /**
9
+ * Defaults to es3.
10
+ */
11
+ target?: JscTarget;
12
+ };
13
+ export type TerserEcmaVersion = 5 | 2015 | 2016 | string | number;
14
+ export interface JsMinifyOptions {
15
+ compress?: TerserCompressOptions | boolean;
16
+ format?: JsFormatOptions & ToSnakeCaseProperties<JsFormatOptions>;
17
+ mangle?: TerserMangleOptions | boolean;
18
+ ecma?: TerserEcmaVersion;
19
+ keep_classnames?: boolean;
20
+ keep_fnames?: boolean;
21
+ module?: boolean | "unknown";
22
+ safari10?: boolean;
23
+ toplevel?: boolean;
24
+ sourceMap?: boolean;
25
+ outputPath?: string;
26
+ inlineSourcesContent?: boolean;
27
+ }
28
+ /**
29
+ * @example ToSnakeCase<'indentLevel'> == 'indent_level'
30
+ */
31
+ type ToSnakeCase<T extends string> = T extends `${infer A}${infer B}` ? `${A extends Lowercase<A> ? A : `_${Lowercase<A>}`}${ToSnakeCase<B>}` : T;
32
+ /**
33
+ * @example ToSnakeCaseProperties<{indentLevel: 3}> == {indent_level: 3}
34
+ */
35
+ type ToSnakeCaseProperties<T> = {
36
+ [K in keyof T as K extends string ? ToSnakeCase<K> : K]: T[K];
37
+ };
38
+ /**
39
+ * These properties are mostly not implemented yet,
40
+ * but it exists to support passing terser config to swc minify
41
+ * without modification.
42
+ */
43
+ export interface JsFormatOptions {
44
+ /**
45
+ * Currently noop.
46
+ * @default false
47
+ * @alias ascii_only
48
+ */
49
+ asciiOnly?: boolean;
50
+ /**
51
+ * Currently noop.
52
+ * @default false
53
+ */
54
+ beautify?: boolean;
55
+ /**
56
+ * Currently noop.
57
+ * @default false
58
+ */
59
+ braces?: boolean;
60
+ /**
61
+ * - `false`: removes all comments
62
+ * - `'some'`: preserves some comments
63
+ * - `'all'`: preserves all comments
64
+ * @default false
65
+ */
66
+ comments?: false | "some" | "all";
67
+ /**
68
+ * Currently noop.
69
+ * @default 5
70
+ */
71
+ ecma?: TerserEcmaVersion;
72
+ /**
73
+ * Currently noop.
74
+ * @alias indent_level
75
+ */
76
+ indentLevel?: number;
77
+ /**
78
+ * Currently noop.
79
+ * @alias indent_start
80
+ */
81
+ indentStart?: number;
82
+ /**
83
+ * Currently noop.
84
+ * @alias inline_script
85
+ */
86
+ inlineScript?: boolean;
87
+ /**
88
+ * Currently noop.
89
+ * @alias keep_numbers
90
+ */
91
+ keepNumbers?: number;
92
+ /**
93
+ * Currently noop.
94
+ * @alias keep_quoted_props
95
+ */
96
+ keepQuotedProps?: boolean;
97
+ /**
98
+ * Currently noop.
99
+ * @alias max_line_len
100
+ */
101
+ maxLineLen?: number | false;
102
+ /**
103
+ * Currently noop.
104
+ */
105
+ preamble?: string;
106
+ /**
107
+ * Currently noop.
108
+ * @alias quote_keys
109
+ */
110
+ quoteKeys?: boolean;
111
+ /**
112
+ * Currently noop.
113
+ * @alias quote_style
114
+ */
115
+ quoteStyle?: boolean;
116
+ /**
117
+ * Currently noop.
118
+ * @alias preserve_annotations
119
+ */
120
+ preserveAnnotations?: boolean;
121
+ /**
122
+ * Currently noop.
123
+ */
124
+ safari10?: boolean;
125
+ /**
126
+ * Currently noop.
127
+ */
128
+ semicolons?: boolean;
129
+ /**
130
+ * Currently noop.
131
+ */
132
+ shebang?: boolean;
133
+ /**
134
+ * Currently noop.
135
+ */
136
+ webkit?: boolean;
137
+ /**
138
+ * Currently noop.
139
+ * @alias wrap_iife
140
+ */
141
+ wrapIife?: boolean;
142
+ /**
143
+ * Currently noop.
144
+ * @alias wrap_func_args
145
+ */
146
+ wrapFuncArgs?: boolean;
147
+ }
148
+ export interface TerserCompressOptions {
149
+ arguments?: boolean;
150
+ arrows?: boolean;
151
+ booleans?: boolean;
152
+ booleans_as_integers?: boolean;
153
+ collapse_vars?: boolean;
154
+ comparisons?: boolean;
155
+ computed_props?: boolean;
156
+ conditionals?: boolean;
157
+ dead_code?: boolean;
158
+ defaults?: boolean;
159
+ directives?: boolean;
160
+ drop_console?: boolean;
161
+ drop_debugger?: boolean;
162
+ ecma?: TerserEcmaVersion;
163
+ evaluate?: boolean;
164
+ expression?: boolean;
165
+ global_defs?: any;
166
+ hoist_funs?: boolean;
167
+ hoist_props?: boolean;
168
+ hoist_vars?: boolean;
169
+ ie8?: boolean;
170
+ if_return?: boolean;
171
+ inline?: 0 | 1 | 2 | 3;
172
+ join_vars?: boolean;
173
+ keep_classnames?: boolean;
174
+ keep_fargs?: boolean;
175
+ keep_fnames?: boolean;
176
+ keep_infinity?: boolean;
177
+ loops?: boolean;
178
+ negate_iife?: boolean;
179
+ passes?: number;
180
+ properties?: boolean;
181
+ pure_getters?: any;
182
+ pure_funcs?: string[];
183
+ reduce_funcs?: boolean;
184
+ reduce_vars?: boolean;
185
+ sequences?: any;
186
+ side_effects?: boolean;
187
+ switches?: boolean;
188
+ top_retain?: any;
189
+ toplevel?: any;
190
+ typeofs?: boolean;
191
+ unsafe?: boolean;
192
+ unsafe_passes?: boolean;
193
+ unsafe_arrows?: boolean;
194
+ unsafe_comps?: boolean;
195
+ unsafe_function?: boolean;
196
+ unsafe_math?: boolean;
197
+ unsafe_symbols?: boolean;
198
+ unsafe_methods?: boolean;
199
+ unsafe_proto?: boolean;
200
+ unsafe_regexp?: boolean;
201
+ unsafe_undefined?: boolean;
202
+ unused?: boolean;
203
+ const_to_let?: boolean;
204
+ module?: boolean;
205
+ }
206
+ export interface TerserMangleOptions {
207
+ props?: TerserManglePropertiesOptions;
208
+ /**
209
+ * Pass `true` to mangle names declared in the top level scope.
210
+ */
211
+ topLevel?: boolean;
212
+ /**
213
+ * @deprecated An alias for compatibility with terser.
214
+ */
215
+ toplevel?: boolean;
216
+ /**
217
+ * Pass `true` to not mangle class names.
218
+ */
219
+ keepClassNames?: boolean;
220
+ /**
221
+ * @deprecated An alias for compatibility with terser.
222
+ */
223
+ keep_classnames?: boolean;
224
+ /**
225
+ * Pass `true` to not mangle function names.
226
+ */
227
+ keepFnNames?: boolean;
228
+ /**
229
+ * @deprecated An alias for compatibility with terser.
230
+ */
231
+ keep_fnames?: boolean;
232
+ /**
233
+ * Pass `true` to not mangle private props.
234
+ */
235
+ keepPrivateProps?: boolean;
236
+ /**
237
+ * @deprecated An alias for compatibility with terser.
238
+ */
239
+ keep_private_props?: boolean;
240
+ ie8?: boolean;
241
+ safari10?: boolean;
242
+ reserved?: string[];
243
+ }
244
+ export interface TerserManglePropertiesOptions {
245
+ }
246
+ /**
247
+ * Programmatic options.
248
+ */
249
+ export interface Options extends Config {
250
+ /**
251
+ * If true, a file is parsed as a script instead of module.
252
+ */
253
+ script?: boolean;
254
+ /**
255
+ * The working directory that all paths in the programmatic
256
+ * options will be resolved relative to.
257
+ *
258
+ * Defaults to `process.cwd()`.
259
+ */
260
+ cwd?: string;
261
+ caller?: CallerOptions;
262
+ /** The filename associated with the code currently being compiled,
263
+ * if there is one. The filename is optional, but not all of Swc's
264
+ * functionality is available when the filename is unknown, because a
265
+ * subset of options rely on the filename for their functionality.
266
+ *
267
+ * The three primary cases users could run into are:
268
+ *
269
+ * - The filename is exposed to plugins. Some plugins may require the
270
+ * presence of the filename.
271
+ * - Options like "test", "exclude", and "ignore" require the filename
272
+ * for string/RegExp matching.
273
+ * - .swcrc files are loaded relative to the file being compiled.
274
+ * If this option is omitted, Swc will behave as if swcrc: false has been set.
275
+ */
276
+ filename?: string;
277
+ /**
278
+ * The initial path that will be processed based on the "rootMode" to
279
+ * determine the conceptual root folder for the current Swc project.
280
+ * This is used in two primary cases:
281
+ *
282
+ * - The base directory when checking for the default "configFile" value
283
+ * - The default value for "swcrcRoots".
284
+ *
285
+ * Defaults to `opts.cwd`
286
+ */
287
+ root?: string;
288
+ /**
289
+ * This option, combined with the "root" value, defines how Swc chooses
290
+ * its project root. The different modes define different ways that Swc
291
+ * can process the "root" value to get the final project root.
292
+ *
293
+ * "root" - Passes the "root" value through as unchanged.
294
+ * "upward" - Walks upward from the "root" directory, looking for a directory
295
+ * containing a swc.config.js file, and throws an error if a swc.config.js
296
+ * is not found.
297
+ * "upward-optional" - Walk upward from the "root" directory, looking for
298
+ * a directory containing a swc.config.js file, and falls back to "root"
299
+ * if a swc.config.js is not found.
300
+ *
301
+ *
302
+ * "root" is the default mode because it avoids the risk that Swc
303
+ * will accidentally load a swc.config.js that is entirely outside
304
+ * of the current project folder. If you use "upward-optional",
305
+ * be aware that it will walk up the directory structure all the
306
+ * way to the filesystem root, and it is always possible that someone
307
+ * will have a forgotten swc.config.js in their home directory,
308
+ * which could cause unexpected errors in your builds.
309
+ *
310
+ *
311
+ * Users with monorepo project structures that run builds/tests on a
312
+ * per-package basis may well want to use "upward" since monorepos
313
+ * often have a swc.config.js in the project root. Running Swc
314
+ * in a monorepo subdirectory without "upward", will cause Swc
315
+ * to skip loading any swc.config.js files in the project root,
316
+ * which can lead to unexpected errors and compilation failure.
317
+ */
318
+ rootMode?: "root" | "upward" | "upward-optional";
319
+ /**
320
+ * The current active environment used during configuration loading.
321
+ * This value is used as the key when resolving "env" configs,
322
+ * and is also available inside configuration functions, plugins,
323
+ * and presets, via the api.env() function.
324
+ *
325
+ * Defaults to `process.env.SWC_ENV || process.env.NODE_ENV || "development"`
326
+ */
327
+ envName?: string;
328
+ /**
329
+ * Defaults to searching for a default `.swcrc` file, but can
330
+ * be passed the path of any JS or JSON5 config file.
331
+ *
332
+ *
333
+ * NOTE: This option does not affect loading of .swcrc files,
334
+ * so while it may be tempting to do configFile: "./foo/.swcrc",
335
+ * it is not recommended. If the given .swcrc is loaded via the
336
+ * standard file-relative logic, you'll end up loading the same
337
+ * config file twice, merging it with itself. If you are linking
338
+ * a specific config file, it is recommended to stick with a
339
+ * naming scheme that is independent of the "swcrc" name.
340
+ *
341
+ * Defaults to `path.resolve(opts.root, ".swcrc")`
342
+ */
343
+ configFile?: string | boolean;
344
+ /**
345
+ * true will enable searching for configuration files relative to the "filename" provided to Swc.
346
+ *
347
+ * A swcrc value passed in the programmatic options will override one set within a configuration file.
348
+ *
349
+ * Note: .swcrc files are only loaded if the current "filename" is inside of
350
+ * a package that matches one of the "swcrcRoots" packages.
351
+ *
352
+ *
353
+ * Defaults to true as long as the filename option has been specified
354
+ */
355
+ swcrc?: boolean;
356
+ /**
357
+ * By default, Babel will only search for .babelrc files within the "root" package
358
+ * because otherwise Babel cannot know if a given .babelrc is meant to be loaded,
359
+ * or if it's "plugins" and "presets" have even been installed, since the file
360
+ * being compiled could be inside node_modules, or have been symlinked into the project.
361
+ *
362
+ *
363
+ * This option allows users to provide a list of other packages that should be
364
+ * considered "root" packages when considering whether to load .babelrc files.
365
+ *
366
+ *
367
+ * For example, a monorepo setup that wishes to allow individual packages
368
+ * to have their own configs might want to do
369
+ *
370
+ *
371
+ *
372
+ * Defaults to `opts.root`
373
+ */
374
+ swcrcRoots?: boolean | MatchPattern | MatchPattern[];
375
+ /**
376
+ * `true` will attempt to load an input sourcemap from the file itself, if it
377
+ * contains a //# sourceMappingURL=... comment. If no map is found, or the
378
+ * map fails to load and parse, it will be silently discarded.
379
+ *
380
+ * If an object is provided, it will be treated as the source map object itself.
381
+ *
382
+ * Defaults to `true`.
383
+ */
384
+ inputSourceMap?: boolean | string;
385
+ /**
386
+ * The name to use for the file inside the source map object.
387
+ *
388
+ * Defaults to `path.basename(opts.filenameRelative)` when available, or `"unknown"`.
389
+ */
390
+ sourceFileName?: string;
391
+ /**
392
+ * The sourceRoot fields to set in the generated source map, if one is desired.
393
+ */
394
+ sourceRoot?: string;
395
+ plugin?: Plugin;
396
+ isModule?: boolean | "unknown";
397
+ /**
398
+ * Destination path. Note that this value is used only to fix source path
399
+ * of source map files and swc does not write output to this path.
400
+ */
401
+ outputPath?: string;
402
+ }
403
+ export interface CallerOptions {
404
+ name: string;
405
+ [key: string]: any;
406
+ }
407
+ export type Swcrc = Config | Config[];
408
+ /**
409
+ * .swcrc
410
+ */
411
+ export interface Config {
412
+ /**
413
+ * Note: The type is string because it follows rust's regex syntax.
414
+ */
415
+ test?: string | string[];
416
+ /**
417
+ * Note: The type is string because it follows rust's regex syntax.
418
+ */
419
+ exclude?: string | string[];
420
+ env?: EnvConfig;
421
+ jsc?: JscConfig;
422
+ module?: ModuleConfig;
423
+ minify?: boolean;
424
+ /**
425
+ * - true to generate a sourcemap for the code and include it in the result object.
426
+ * - "inline" to generate a sourcemap and append it as a data URL to the end of the code, but not include it in the result object.
427
+ *
428
+ * `swc-cli` overloads some of these to also affect how maps are written to disk:
429
+ *
430
+ * - true will write the map to a .map file on disk
431
+ * - "inline" will write the file directly, so it will have a data: containing the map
432
+ * - Note: These options are bit weird, so it may make the most sense to just use true
433
+ * and handle the rest in your own code, depending on your use case.
434
+ */
435
+ sourceMaps?: boolean | "inline";
436
+ inlineSourcesContent?: boolean;
437
+ }
438
+ /**
439
+ * Configuration ported from babel-preset-env
440
+ */
441
+ export interface EnvConfig {
442
+ mode?: "usage" | "entry";
443
+ debug?: boolean;
444
+ dynamicImport?: boolean;
445
+ loose?: boolean;
446
+ /**
447
+ * Transpiles the broken syntax to the closest non-broken modern syntax
448
+ *
449
+ * Defaults to false.
450
+ */
451
+ bugfixes?: boolean;
452
+ skip?: string[];
453
+ include?: string[];
454
+ exclude?: string[];
455
+ /**
456
+ * The version of the used core js.
457
+ *
458
+ */
459
+ coreJs?: string;
460
+ targets?: any;
461
+ path?: string;
462
+ shippedProposals?: boolean;
463
+ /**
464
+ * Enable all transforms
465
+ */
466
+ forceAllTransforms?: boolean;
467
+ }
468
+ export interface JscConfig {
469
+ assumptions?: Assumptions;
470
+ loose?: boolean;
471
+ /**
472
+ * Defaults to EsParserConfig
473
+ */
474
+ parser?: ParserConfig;
475
+ transform?: TransformConfig;
476
+ /**
477
+ * Use `@swc/helpers` instead of inline helpers.
478
+ */
479
+ externalHelpers?: boolean;
480
+ /**
481
+ * Defaults to `es3` (which enabled **all** pass).
482
+ */
483
+ target?: JscTarget;
484
+ /**
485
+ * Keep class names.
486
+ */
487
+ keepClassNames?: boolean;
488
+ /**
489
+ * This is experimental, and can be removed without a major version bump.
490
+ */
491
+ experimental?: {
492
+ optimizeHygiene?: boolean;
493
+ /**
494
+ * Preserve `with` in imports and exports.
495
+ *
496
+ * @deprecated Use `keepImportAssertions` instead.
497
+ */
498
+ keepImportAttributes?: boolean;
499
+ /**
500
+ * Use `assert` instead of `with` for imports and exports.
501
+ * This option only works when `keepImportAttributes` is `true`.
502
+ */
503
+ emitAssertForImportAttributes?: boolean;
504
+ /**
505
+ * Specify the location where SWC stores its intermediate cache files.
506
+ * Currently only transform plugin uses this. If not specified, SWC will
507
+ * create `.swc` directories.
508
+ */
509
+ cacheRoot?: string;
510
+ /**
511
+ * List of custom transform plugins written in WebAssembly.
512
+ * First parameter of tuple indicates the name of the plugin - it can be either
513
+ * a name of the npm package can be resolved, or absolute path to .wasm binary.
514
+ *
515
+ * Second parameter of tuple is JSON based configuration for the plugin.
516
+ */
517
+ plugins?: Array<[string, Record<string, any>]>;
518
+ /**
519
+ * Run Wasm plugins before stripping TypeScript or decorators.
520
+ *
521
+ * See https://github.com/swc-project/swc/issues/9132 for more details.
522
+ */
523
+ runPluginFirst?: boolean;
524
+ /**
525
+ * Disable builtin transforms. If enabled, only Wasm plugins are used.
526
+ */
527
+ disableBuiltinTransformsForInternalTesting?: boolean;
528
+ /**
529
+ * Emit isolated dts files for each module.
530
+ */
531
+ emitIsolatedDts?: boolean;
532
+ /**
533
+ * Disable all lint rules.
534
+ */
535
+ disableAllLints?: boolean;
536
+ /**
537
+ * Keep import assertions.
538
+ */
539
+ keepImportAssertions?: boolean;
540
+ };
541
+ baseUrl?: string;
542
+ paths?: {
543
+ [from: string]: string[];
544
+ };
545
+ minify?: JsMinifyOptions;
546
+ preserveAllComments?: boolean;
547
+ }
548
+ export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "esnext";
549
+ export type ParserConfig = TsParserConfig | EsParserConfig;
550
+ export interface TsParserConfig {
551
+ syntax: "typescript";
552
+ /**
553
+ * Defaults to `false`.
554
+ */
555
+ tsx?: boolean;
556
+ /**
557
+ * Defaults to `false`.
558
+ */
559
+ decorators?: boolean;
560
+ /**
561
+ * @deprecated Always true because it's in ecmascript spec.
562
+ */
563
+ dynamicImport?: boolean;
564
+ }
565
+ export interface EsParserConfig {
566
+ syntax: "ecmascript";
567
+ /**
568
+ * Defaults to false.
569
+ */
570
+ jsx?: boolean;
571
+ /**
572
+ * @deprecated Always true because it's in ecmascript spec.
573
+ */
574
+ numericSeparator?: boolean;
575
+ /**
576
+ * @deprecated Always true because it's in ecmascript spec.
577
+ */
578
+ classPrivateProperty?: boolean;
579
+ /**
580
+ * @deprecated Always true because it's in ecmascript spec.
581
+ */
582
+ privateMethod?: boolean;
583
+ /**
584
+ * @deprecated Always true because it's in ecmascript spec.
585
+ */
586
+ classProperty?: boolean;
587
+ /**
588
+ * Defaults to `false`
589
+ */
590
+ functionBind?: boolean;
591
+ /**
592
+ * Defaults to `false`
593
+ */
594
+ decorators?: boolean;
595
+ /**
596
+ * Defaults to `false`
597
+ */
598
+ decoratorsBeforeExport?: boolean;
599
+ /**
600
+ * Defaults to `false`
601
+ */
602
+ exportDefaultFrom?: boolean;
603
+ /**
604
+ * @deprecated Always true because it's in ecmascript spec.
605
+ */
606
+ exportNamespaceFrom?: boolean;
607
+ /**
608
+ * @deprecated Always true because it's in ecmascript spec.
609
+ */
610
+ dynamicImport?: boolean;
611
+ /**
612
+ * @deprecated Always true because it's in ecmascript spec.
613
+ */
614
+ nullishCoalescing?: boolean;
615
+ /**
616
+ * @deprecated Always true because it's in ecmascript spec.
617
+ */
618
+ optionalChaining?: boolean;
619
+ /**
620
+ * @deprecated Always true because it's in ecmascript spec.
621
+ */
622
+ importMeta?: boolean;
623
+ /**
624
+ * @deprecated Always true because it's in ecmascript spec.
625
+ */
626
+ topLevelAwait?: boolean;
627
+ /**
628
+ * @deprecated An alias of `importAttributes`
629
+ */
630
+ importAssertions?: boolean;
631
+ /**
632
+ * Defaults to `false`
633
+ */
634
+ importAttributes?: boolean;
635
+ /**
636
+ * Defaults to `false`
637
+ */
638
+ allowSuperOutsideMethod?: boolean;
639
+ /**
640
+ * Defaults to `false`
641
+ */
642
+ allowReturnOutsideFunction?: boolean;
643
+ /**
644
+ * Defaults to `false`
645
+ */
646
+ autoAccessors?: boolean;
647
+ /**
648
+ * Defaults to `false`
649
+ */
650
+ explicitResourceManagement?: boolean;
651
+ }
652
+ /**
653
+ * Options for transform.
654
+ */
655
+ export interface TransformConfig {
656
+ /**
657
+ * Effective only if `syntax` supports ƒ.
658
+ */
659
+ react?: ReactConfig;
660
+ constModules?: ConstModulesConfig;
661
+ /**
662
+ * Defaults to null, which skips optimizer pass.
663
+ */
664
+ optimizer?: OptimizerConfig;
665
+ /**
666
+ * https://swc.rs/docs/configuring-swc.html#jsctransformlegacydecorator
667
+ */
668
+ legacyDecorator?: boolean;
669
+ /**
670
+ * https://swc.rs/docs/configuring-swc.html#jsctransformdecoratormetadata
671
+ */
672
+ decoratorMetadata?: boolean;
673
+ /**
674
+ * https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion
675
+ */
676
+ decoratorVersion?: "2021-12" | "2022-03";
677
+ treatConstEnumAsEnum?: boolean;
678
+ useDefineForClassFields?: boolean;
679
+ }
680
+ export interface ReactConfig {
681
+ /**
682
+ * Replace the function used when compiling JSX expressions.
683
+ *
684
+ * Defaults to `React.createElement`.
685
+ */
686
+ pragma?: string;
687
+ /**
688
+ * Replace the component used when compiling JSX fragments.
689
+ *
690
+ * Defaults to `React.Fragment`
691
+ */
692
+ pragmaFrag?: string;
693
+ /**
694
+ * Toggles whether or not to throw an error if a XML namespaced tag name is used. For example:
695
+ * `<f:image />`
696
+ *
697
+ * Though the JSX spec allows this, it is disabled by default since React's
698
+ * JSX does not currently have support for it.
699
+ *
700
+ */
701
+ throwIfNamespace?: boolean;
702
+ /**
703
+ * Toggles plugins that aid in development, such as @swc/plugin-transform-react-jsx-self
704
+ * and @swc/plugin-transform-react-jsx-source.
705
+ *
706
+ * Defaults to `false`,
707
+ *
708
+ */
709
+ development?: boolean;
710
+ /**
711
+ * Use `Object.assign()` instead of `_extends`. Defaults to false.
712
+ * @deprecated
713
+ */
714
+ useBuiltins?: boolean;
715
+ /**
716
+ * Enable fast refresh feature for React app
717
+ */
718
+ refresh?: boolean;
719
+ /**
720
+ * jsx runtime
721
+ */
722
+ runtime?: "automatic" | "classic";
723
+ /**
724
+ * Declares the module specifier to be used for importing the `jsx` and `jsxs` factory functions when using `runtime` 'automatic'
725
+ */
726
+ importSource?: string;
727
+ }
728
+ /**
729
+ * - `import { DEBUG } from '@ember/env-flags';`
730
+ * - `import { FEATURE_A, FEATURE_B } from '@ember/features';`
731
+ *
732
+ * See: https://github.com/swc-project/swc/issues/18#issuecomment-466272558
733
+ */
734
+ export interface ConstModulesConfig {
735
+ globals?: {
736
+ [module: string]: {
737
+ [name: string]: string;
738
+ };
739
+ };
740
+ }
741
+ export interface OptimizerConfig {
742
+ simplify?: boolean;
743
+ globals?: GlobalPassOption;
744
+ jsonify?: {
745
+ minCost: number;
746
+ };
747
+ }
748
+ /**
749
+ * Options for inline-global pass.
750
+ */
751
+ export interface GlobalPassOption {
752
+ /**
753
+ * Global variables that should be inlined with passed value.
754
+ *
755
+ * e.g. `{ __DEBUG__: true }`
756
+ */
757
+ vars?: Record<string, string>;
758
+ /**
759
+ * Names of environment variables that should be inlined with the value of corresponding env during build.
760
+ *
761
+ * Defaults to `["NODE_ENV", "SWC_ENV"]`
762
+ */
763
+ envs?: string[] | Record<string, string>;
764
+ /**
765
+ * Replaces typeof calls for passed variables with corresponding value
766
+ *
767
+ * e.g. `{ window: 'object' }`
768
+ */
769
+ typeofs?: Record<string, string>;
770
+ }
771
+ export type ModuleConfig = Es6Config | CommonJsConfig | UmdConfig | AmdConfig | NodeNextConfig | SystemjsConfig;
772
+ export interface BaseModuleConfig {
773
+ /**
774
+ * By default, when using exports with babel a non-enumerable `__esModule`
775
+ * property is exported. In some cases this property is used to determine
776
+ * if the import is the default export or if it contains the default export.
777
+ *
778
+ * In order to prevent the __esModule property from being exported, you
779
+ * can set the strict option to true.
780
+ *
781
+ * Defaults to `false`.
782
+ */
783
+ strict?: boolean;
784
+ /**
785
+ * Emits 'use strict' directive.
786
+ *
787
+ * Defaults to `true`.
788
+ */
789
+ strictMode?: boolean;
790
+ /**
791
+ * Changes Babel's compiled import statements to be lazily evaluated when their imported bindings are used for the first time.
792
+ *
793
+ * This can improve initial load time of your module because evaluating dependencies up
794
+ * front is sometimes entirely un-necessary. This is especially the case when implementing
795
+ * a library module.
796
+ *
797
+ *
798
+ * The value of `lazy` has a few possible effects:
799
+ *
800
+ * - `false` - No lazy initialization of any imported module.
801
+ * - `true` - Do not lazy-initialize local `./foo` imports, but lazy-init `foo` dependencies.
802
+ *
803
+ * Local paths are much more likely to have circular dependencies, which may break if loaded lazily,
804
+ * so they are not lazy by default, whereas dependencies between independent modules are rarely cyclical.
805
+ *
806
+ * - `Array<string>` - Lazy-initialize all imports with source matching one of the given strings.
807
+ *
808
+ * -----
809
+ *
810
+ * The two cases where imports can never be lazy are:
811
+ *
812
+ * - `import "foo";`
813
+ *
814
+ * Side-effect imports are automatically non-lazy since their very existence means
815
+ * that there is no binding to later kick off initialization.
816
+ *
817
+ * - `export * from "foo"`
818
+ *
819
+ * Re-exporting all names requires up-front execution because otherwise there is no
820
+ * way to know what names need to be exported.
821
+ *
822
+ * Defaults to `false`.
823
+ */
824
+ lazy?: boolean | string[];
825
+ /**
826
+ * @deprecated Use the `importInterop` option instead.
827
+ *
828
+ * By default, when using exports with swc a non-enumerable __esModule property is exported.
829
+ * This property is then used to determine if the import is the default export or if
830
+ * it contains the default export.
831
+ *
832
+ * In cases where the auto-unwrapping of default is not needed, you can set the noInterop option
833
+ * to true to avoid the usage of the interopRequireDefault helper (shown in inline form above).
834
+ *
835
+ * Defaults to `false`.
836
+ */
837
+ noInterop?: boolean;
838
+ /**
839
+ * Defaults to `swc`.
840
+ *
841
+ * CommonJS modules and ECMAScript modules are not fully compatible.
842
+ * However, compilers, bundlers and JavaScript runtimes developed different strategies
843
+ * to make them work together as well as possible.
844
+ *
845
+ * - `swc` (alias: `babel`)
846
+ *
847
+ * When using exports with `swc` a non-enumerable `__esModule` property is exported
848
+ * This property is then used to determine if the import is the default export
849
+ * or if it contains the default export.
850
+ *
851
+ * ```javascript
852
+ * import foo from "foo";
853
+ * import { bar } from "bar";
854
+ * foo;
855
+ * bar;
856
+ *
857
+ * // Is compiled to ...
858
+ *
859
+ * "use strict";
860
+ *
861
+ * function _interop_require_default(obj) {
862
+ * return obj && obj.__esModule ? obj : { default: obj };
863
+ * }
864
+ *
865
+ * var _foo = _interop_require_default(require("foo"));
866
+ * var _bar = require("bar");
867
+ *
868
+ * _foo.default;
869
+ * _bar.bar;
870
+ * ```
871
+ *
872
+ * When this import interop is used, if both the imported and the importer module are compiled
873
+ * with swc they behave as if none of them was compiled.
874
+ *
875
+ * This is the default behavior.
876
+ *
877
+ * - `node`
878
+ *
879
+ * When importing CommonJS files (either directly written in CommonJS, or generated with a compiler)
880
+ * Node.js always binds the `default` export to the value of `module.exports`.
881
+ *
882
+ * ```javascript
883
+ * import foo from "foo";
884
+ * import { bar } from "bar";
885
+ * foo;
886
+ * bar;
887
+ *
888
+ * // Is compiled to ...
889
+ *
890
+ * "use strict";
891
+ *
892
+ * var _foo = require("foo");
893
+ * var _bar = require("bar");
894
+ *
895
+ * _foo;
896
+ * _bar.bar;
897
+ * ```
898
+ * This is not exactly the same as what Node.js does since swc allows accessing any property of `module.exports`
899
+ * as a named export, while Node.js only allows importing statically analyzable properties of `module.exports`.
900
+ * However, any import working in Node.js will also work when compiled with swc using `importInterop: "node"`.
901
+ *
902
+ * - `none`
903
+ *
904
+ * If you know that the imported file has been transformed with a compiler that stores the `default` export on
905
+ * `exports.default` (such as swc or Babel), you can safely omit the `_interop_require_default` helper.
906
+ *
907
+ * ```javascript
908
+ * import foo from "foo";
909
+ * import { bar } from "bar";
910
+ * foo;
911
+ * bar;
912
+ *
913
+ * // Is compiled to ...
914
+ *
915
+ * "use strict";
916
+ *
917
+ * var _foo = require("foo");
918
+ * var _bar = require("bar");
919
+ *
920
+ * _foo.default;
921
+ * _bar.bar;
922
+ * ```
923
+ */
924
+ importInterop?: "swc" | "babel" | "node" | "none";
925
+ /**
926
+ * Emits `cjs-module-lexer` annotation
927
+ * `cjs-module-lexer` is used in Node.js core for detecting the named exports available when importing a CJS module into ESM.
928
+ * swc will emit `cjs-module-lexer` detectable annotation with this option enabled.
929
+ *
930
+ * Defaults to `true` if import_interop is Node, else `false`
931
+ */
932
+ exportInteropAnnotation?: boolean;
933
+ /**
934
+ * If set to true, dynamic imports will be preserved.
935
+ */
936
+ ignoreDynamic?: boolean;
937
+ allowTopLevelThis?: boolean;
938
+ preserveImportMeta?: boolean;
939
+ }
940
+ export interface Es6Config extends BaseModuleConfig {
941
+ type: "es6";
942
+ }
943
+ export interface NodeNextConfig extends BaseModuleConfig {
944
+ type: "nodenext";
945
+ }
946
+ export interface CommonJsConfig extends BaseModuleConfig {
947
+ type: "commonjs";
948
+ }
949
+ export interface UmdConfig extends BaseModuleConfig {
950
+ type: "umd";
951
+ globals?: {
952
+ [key: string]: string;
953
+ };
954
+ }
955
+ export interface AmdConfig extends BaseModuleConfig {
956
+ type: "amd";
957
+ moduleId?: string;
958
+ }
959
+ export interface SystemjsConfig {
960
+ type: "systemjs";
961
+ allowTopLevelThis?: boolean;
962
+ }
963
+ export interface Output {
964
+ /**
965
+ * Transformed code
966
+ */
967
+ code: string;
968
+ /**
969
+ * Sourcemap (**not** base64 encoded)
970
+ */
971
+ map?: string;
972
+ }
973
+ export interface MatchPattern {
974
+ }
975
+ export interface Span {
976
+ start: number;
977
+ end: number;
978
+ ctxt: number;
979
+ }
980
+ export interface Node {
981
+ type: string;
982
+ }
983
+ export interface HasSpan {
984
+ span: Span;
985
+ }
986
+ export interface HasDecorator {
987
+ decorators?: Decorator[];
988
+ }
989
+ export interface Class extends HasSpan, HasDecorator {
990
+ body: ClassMember[];
991
+ superClass?: Expression;
992
+ isAbstract: boolean;
993
+ typeParams?: TsTypeParameterDeclaration;
994
+ superTypeParams?: TsTypeParameterInstantiation;
995
+ implements: TsExpressionWithTypeArguments[];
996
+ }
997
+ export type ClassMember = Constructor | ClassMethod | PrivateMethod | ClassProperty | PrivateProperty | TsIndexSignature | EmptyStatement | StaticBlock;
998
+ export interface ClassPropertyBase extends Node, HasSpan, HasDecorator {
999
+ value?: Expression;
1000
+ typeAnnotation?: TsTypeAnnotation;
1001
+ isStatic: boolean;
1002
+ accessibility?: Accessibility;
1003
+ isOptional: boolean;
1004
+ isOverride: boolean;
1005
+ readonly: boolean;
1006
+ definite: boolean;
1007
+ }
1008
+ export interface ClassProperty extends ClassPropertyBase {
1009
+ type: "ClassProperty";
1010
+ key: PropertyName;
1011
+ isAbstract: boolean;
1012
+ declare: boolean;
1013
+ }
1014
+ export interface PrivateProperty extends ClassPropertyBase {
1015
+ type: "PrivateProperty";
1016
+ key: PrivateName;
1017
+ }
1018
+ export interface Param extends Node, HasSpan, HasDecorator {
1019
+ type: "Parameter";
1020
+ pat: Pattern;
1021
+ }
1022
+ export interface Constructor extends Node, HasSpan {
1023
+ type: "Constructor";
1024
+ key: PropertyName;
1025
+ params: (TsParameterProperty | Param)[];
1026
+ body?: BlockStatement;
1027
+ accessibility?: Accessibility;
1028
+ isOptional: boolean;
1029
+ }
1030
+ export interface ClassMethodBase extends Node, HasSpan {
1031
+ function: Fn;
1032
+ kind: MethodKind;
1033
+ isStatic: boolean;
1034
+ accessibility?: Accessibility;
1035
+ isAbstract: boolean;
1036
+ isOptional: boolean;
1037
+ isOverride: boolean;
1038
+ }
1039
+ export interface ClassMethod extends ClassMethodBase {
1040
+ type: "ClassMethod";
1041
+ key: PropertyName;
1042
+ }
1043
+ export interface PrivateMethod extends ClassMethodBase {
1044
+ type: "PrivateMethod";
1045
+ key: PrivateName;
1046
+ }
1047
+ export interface StaticBlock extends Node, HasSpan {
1048
+ type: "StaticBlock";
1049
+ body: BlockStatement;
1050
+ }
1051
+ export interface Decorator extends Node, HasSpan {
1052
+ type: "Decorator";
1053
+ expression: Expression;
1054
+ }
1055
+ export type MethodKind = "method" | "getter" | "setter";
1056
+ export type Declaration = ClassDeclaration | FunctionDeclaration | VariableDeclaration | TsInterfaceDeclaration | TsTypeAliasDeclaration | TsEnumDeclaration | TsModuleDeclaration;
1057
+ export interface FunctionDeclaration extends Fn {
1058
+ type: "FunctionDeclaration";
1059
+ identifier: Identifier;
1060
+ declare: boolean;
1061
+ }
1062
+ export interface ClassDeclaration extends Class, Node {
1063
+ type: "ClassDeclaration";
1064
+ identifier: Identifier;
1065
+ declare: boolean;
1066
+ }
1067
+ export interface VariableDeclaration extends Node, HasSpan {
1068
+ type: "VariableDeclaration";
1069
+ kind: VariableDeclarationKind;
1070
+ declare: boolean;
1071
+ declarations: VariableDeclarator[];
1072
+ }
1073
+ export type VariableDeclarationKind = "var" | "let" | "const";
1074
+ export interface VariableDeclarator extends Node, HasSpan {
1075
+ type: "VariableDeclarator";
1076
+ id: Pattern;
1077
+ init?: Expression;
1078
+ definite: boolean;
1079
+ }
1080
+ export type Expression = ThisExpression | ArrayExpression | ObjectExpression | FunctionExpression | UnaryExpression | UpdateExpression | BinaryExpression | AssignmentExpression | MemberExpression | SuperPropExpression | ConditionalExpression | CallExpression | NewExpression | SequenceExpression | Identifier | Literal | TemplateLiteral | TaggedTemplateExpression | ArrowFunctionExpression | ClassExpression | YieldExpression | MetaProperty | AwaitExpression | ParenthesisExpression | JSXMemberExpression | JSXNamespacedName | JSXEmptyExpression | JSXElement | JSXFragment | TsTypeAssertion | TsConstAssertion | TsNonNullExpression | TsAsExpression | TsSatisfiesExpression | TsInstantiation | PrivateName | OptionalChainingExpression | Invalid;
1081
+ interface ExpressionBase extends Node, HasSpan {
1082
+ }
1083
+ export interface Identifier extends ExpressionBase {
1084
+ type: "Identifier";
1085
+ value: string;
1086
+ optional: boolean;
1087
+ }
1088
+ export interface OptionalChainingExpression extends ExpressionBase {
1089
+ type: "OptionalChainingExpression";
1090
+ questionDotToken: Span;
1091
+ /**
1092
+ * Call expression or member expression.
1093
+ */
1094
+ base: MemberExpression | OptionalChainingCall;
1095
+ }
1096
+ export interface OptionalChainingCall extends ExpressionBase {
1097
+ type: "CallExpression";
1098
+ callee: Expression;
1099
+ arguments: ExprOrSpread[];
1100
+ typeArguments?: TsTypeParameterInstantiation;
1101
+ }
1102
+ export interface ThisExpression extends ExpressionBase {
1103
+ type: "ThisExpression";
1104
+ }
1105
+ export interface ArrayExpression extends ExpressionBase {
1106
+ type: "ArrayExpression";
1107
+ elements: (ExprOrSpread | undefined)[];
1108
+ }
1109
+ export interface ExprOrSpread {
1110
+ spread?: Span;
1111
+ expression: Expression;
1112
+ }
1113
+ export interface ObjectExpression extends ExpressionBase {
1114
+ type: "ObjectExpression";
1115
+ properties: (SpreadElement | Property)[];
1116
+ }
1117
+ export interface Argument {
1118
+ spread?: Span;
1119
+ expression: Expression;
1120
+ }
1121
+ export interface SpreadElement extends Node {
1122
+ type: "SpreadElement";
1123
+ spread: Span;
1124
+ arguments: Expression;
1125
+ }
1126
+ export interface UnaryExpression extends ExpressionBase {
1127
+ type: "UnaryExpression";
1128
+ operator: UnaryOperator;
1129
+ argument: Expression;
1130
+ }
1131
+ export interface UpdateExpression extends ExpressionBase {
1132
+ type: "UpdateExpression";
1133
+ operator: UpdateOperator;
1134
+ prefix: boolean;
1135
+ argument: Expression;
1136
+ }
1137
+ export interface BinaryExpression extends ExpressionBase {
1138
+ type: "BinaryExpression";
1139
+ operator: BinaryOperator;
1140
+ left: Expression;
1141
+ right: Expression;
1142
+ }
1143
+ export interface FunctionExpression extends Fn, ExpressionBase {
1144
+ type: "FunctionExpression";
1145
+ identifier?: Identifier;
1146
+ }
1147
+ export interface ClassExpression extends Class, ExpressionBase {
1148
+ type: "ClassExpression";
1149
+ identifier?: Identifier;
1150
+ }
1151
+ export interface AssignmentExpression extends ExpressionBase {
1152
+ type: "AssignmentExpression";
1153
+ operator: AssignmentOperator;
1154
+ left: Expression | Pattern;
1155
+ right: Expression;
1156
+ }
1157
+ export interface MemberExpression extends ExpressionBase {
1158
+ type: "MemberExpression";
1159
+ object: Expression;
1160
+ property: Identifier | PrivateName | ComputedPropName;
1161
+ }
1162
+ export interface SuperPropExpression extends ExpressionBase {
1163
+ type: "SuperPropExpression";
1164
+ obj: Super;
1165
+ property: Identifier | ComputedPropName;
1166
+ }
1167
+ export interface ConditionalExpression extends ExpressionBase {
1168
+ type: "ConditionalExpression";
1169
+ test: Expression;
1170
+ consequent: Expression;
1171
+ alternate: Expression;
1172
+ }
1173
+ export interface Super extends Node, HasSpan {
1174
+ type: "Super";
1175
+ }
1176
+ export interface Import extends Node, HasSpan {
1177
+ type: "Import";
1178
+ }
1179
+ export interface CallExpression extends ExpressionBase {
1180
+ type: "CallExpression";
1181
+ callee: Super | Import | Expression;
1182
+ arguments: Argument[];
1183
+ typeArguments?: TsTypeParameterInstantiation;
1184
+ }
1185
+ export interface NewExpression extends ExpressionBase {
1186
+ type: "NewExpression";
1187
+ callee: Expression;
1188
+ arguments?: Argument[];
1189
+ typeArguments?: TsTypeParameterInstantiation;
1190
+ }
1191
+ export interface SequenceExpression extends ExpressionBase {
1192
+ type: "SequenceExpression";
1193
+ expressions: Expression[];
1194
+ }
1195
+ export interface ArrowFunctionExpression extends ExpressionBase {
1196
+ type: "ArrowFunctionExpression";
1197
+ params: Pattern[];
1198
+ body: BlockStatement | Expression;
1199
+ async: boolean;
1200
+ generator: boolean;
1201
+ typeParameters?: TsTypeParameterDeclaration;
1202
+ returnType?: TsTypeAnnotation;
1203
+ }
1204
+ export interface YieldExpression extends ExpressionBase {
1205
+ type: "YieldExpression";
1206
+ argument?: Expression;
1207
+ delegate: boolean;
1208
+ }
1209
+ export interface MetaProperty extends Node, HasSpan {
1210
+ type: "MetaProperty";
1211
+ kind: "new.target" | "import.meta";
1212
+ }
1213
+ export interface AwaitExpression extends ExpressionBase {
1214
+ type: "AwaitExpression";
1215
+ argument: Expression;
1216
+ }
1217
+ export interface TemplateLiteral extends ExpressionBase {
1218
+ type: "TemplateLiteral";
1219
+ expressions: Expression[];
1220
+ quasis: TemplateElement[];
1221
+ }
1222
+ export interface TaggedTemplateExpression extends ExpressionBase {
1223
+ type: "TaggedTemplateExpression";
1224
+ tag: Expression;
1225
+ typeParameters?: TsTypeParameterInstantiation;
1226
+ template: TemplateLiteral;
1227
+ }
1228
+ export interface TemplateElement extends ExpressionBase {
1229
+ type: "TemplateElement";
1230
+ tail: boolean;
1231
+ cooked?: string;
1232
+ raw: string;
1233
+ }
1234
+ export interface ParenthesisExpression extends ExpressionBase {
1235
+ type: "ParenthesisExpression";
1236
+ expression: Expression;
1237
+ }
1238
+ export interface Fn extends HasSpan, HasDecorator {
1239
+ params: Param[];
1240
+ body?: BlockStatement;
1241
+ generator: boolean;
1242
+ async: boolean;
1243
+ typeParameters?: TsTypeParameterDeclaration;
1244
+ returnType?: TsTypeAnnotation;
1245
+ }
1246
+ interface PatternBase extends Node, HasSpan {
1247
+ typeAnnotation?: TsTypeAnnotation;
1248
+ }
1249
+ export interface PrivateName extends ExpressionBase {
1250
+ type: "PrivateName";
1251
+ id: Identifier;
1252
+ }
1253
+ export type JSXObject = JSXMemberExpression | Identifier;
1254
+ export interface JSXMemberExpression extends Node {
1255
+ type: "JSXMemberExpression";
1256
+ object: JSXObject;
1257
+ property: Identifier;
1258
+ }
1259
+ /**
1260
+ * XML-based namespace syntax:
1261
+ */
1262
+ export interface JSXNamespacedName extends Node {
1263
+ type: "JSXNamespacedName";
1264
+ namespace: Identifier;
1265
+ name: Identifier;
1266
+ }
1267
+ export interface JSXEmptyExpression extends Node, HasSpan {
1268
+ type: "JSXEmptyExpression";
1269
+ }
1270
+ export interface JSXExpressionContainer extends Node, HasSpan {
1271
+ type: "JSXExpressionContainer";
1272
+ expression: JSXExpression;
1273
+ }
1274
+ export type JSXExpression = JSXEmptyExpression | Expression;
1275
+ export interface JSXSpreadChild extends Node, HasSpan {
1276
+ type: "JSXSpreadChild";
1277
+ expression: Expression;
1278
+ }
1279
+ export type JSXElementName = Identifier | JSXMemberExpression | JSXNamespacedName;
1280
+ export interface JSXOpeningElement extends Node, HasSpan {
1281
+ type: "JSXOpeningElement";
1282
+ name: JSXElementName;
1283
+ attributes: JSXAttributeOrSpread[];
1284
+ selfClosing: boolean;
1285
+ typeArguments?: TsTypeParameterInstantiation;
1286
+ }
1287
+ export type JSXAttributeOrSpread = JSXAttribute | SpreadElement;
1288
+ export interface JSXClosingElement extends Node, HasSpan {
1289
+ type: "JSXClosingElement";
1290
+ name: JSXElementName;
1291
+ }
1292
+ export interface JSXAttribute extends Node, HasSpan {
1293
+ type: "JSXAttribute";
1294
+ name: JSXAttributeName;
1295
+ value?: JSXAttrValue;
1296
+ }
1297
+ export type JSXAttributeName = Identifier | JSXNamespacedName;
1298
+ export type JSXAttrValue = Literal | JSXExpressionContainer | JSXElement | JSXFragment;
1299
+ export interface JSXText extends Node, HasSpan {
1300
+ type: "JSXText";
1301
+ value: string;
1302
+ raw: string;
1303
+ }
1304
+ export interface JSXElement extends Node, HasSpan {
1305
+ type: "JSXElement";
1306
+ opening: JSXOpeningElement;
1307
+ children: JSXElementChild[];
1308
+ closing?: JSXClosingElement;
1309
+ }
1310
+ export type JSXElementChild = JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment;
1311
+ export interface JSXFragment extends Node, HasSpan {
1312
+ type: "JSXFragment";
1313
+ opening: JSXOpeningFragment;
1314
+ children: JSXElementChild[];
1315
+ closing: JSXClosingFragment;
1316
+ }
1317
+ export interface JSXOpeningFragment extends Node, HasSpan {
1318
+ type: "JSXOpeningFragment";
1319
+ }
1320
+ export interface JSXClosingFragment extends Node, HasSpan {
1321
+ type: "JSXClosingFragment";
1322
+ }
1323
+ export type Literal = StringLiteral | BooleanLiteral | NullLiteral | NumericLiteral | BigIntLiteral | RegExpLiteral | JSXText;
1324
+ export interface StringLiteral extends Node, HasSpan {
1325
+ type: "StringLiteral";
1326
+ value: string;
1327
+ raw?: string;
1328
+ }
1329
+ export interface BooleanLiteral extends Node, HasSpan {
1330
+ type: "BooleanLiteral";
1331
+ value: boolean;
1332
+ }
1333
+ export interface NullLiteral extends Node, HasSpan {
1334
+ type: "NullLiteral";
1335
+ }
1336
+ export interface RegExpLiteral extends Node, HasSpan {
1337
+ type: "RegExpLiteral";
1338
+ pattern: string;
1339
+ flags: string;
1340
+ }
1341
+ export interface NumericLiteral extends Node, HasSpan {
1342
+ type: "NumericLiteral";
1343
+ value: number;
1344
+ raw?: string;
1345
+ }
1346
+ export interface BigIntLiteral extends Node, HasSpan {
1347
+ type: "BigIntLiteral";
1348
+ value: bigint;
1349
+ raw?: string;
1350
+ }
1351
+ export type ModuleDeclaration = ImportDeclaration | ExportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportDefaultExpression | ExportAllDeclaration | TsImportEqualsDeclaration | TsExportAssignment | TsNamespaceExportDeclaration;
1352
+ export interface ExportDefaultExpression extends Node, HasSpan {
1353
+ type: "ExportDefaultExpression";
1354
+ expression: Expression;
1355
+ }
1356
+ export interface ExportDeclaration extends Node, HasSpan {
1357
+ type: "ExportDeclaration";
1358
+ declaration: Declaration;
1359
+ }
1360
+ export interface ImportDeclaration extends Node, HasSpan {
1361
+ type: "ImportDeclaration";
1362
+ specifiers: ImportSpecifier[];
1363
+ source: StringLiteral;
1364
+ typeOnly: boolean;
1365
+ asserts?: ObjectExpression;
1366
+ }
1367
+ export interface ExportAllDeclaration extends Node, HasSpan {
1368
+ type: "ExportAllDeclaration";
1369
+ source: StringLiteral;
1370
+ asserts?: ObjectExpression;
1371
+ }
1372
+ /**
1373
+ * - `export { foo } from 'mod'`
1374
+ * - `export { foo as bar } from 'mod'`
1375
+ */
1376
+ export interface ExportNamedDeclaration extends Node, HasSpan {
1377
+ type: "ExportNamedDeclaration";
1378
+ specifiers: ExportSpecifier[];
1379
+ source?: StringLiteral;
1380
+ typeOnly: boolean;
1381
+ asserts?: ObjectExpression;
1382
+ }
1383
+ export interface ExportDefaultDeclaration extends Node, HasSpan {
1384
+ type: "ExportDefaultDeclaration";
1385
+ decl: DefaultDecl;
1386
+ }
1387
+ export type DefaultDecl = ClassExpression | FunctionExpression | TsInterfaceDeclaration;
1388
+ export type ImportSpecifier = NamedImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
1389
+ /**
1390
+ * e.g. `import foo from 'mod.js'`
1391
+ */
1392
+ export interface ImportDefaultSpecifier extends Node, HasSpan {
1393
+ type: "ImportDefaultSpecifier";
1394
+ local: Identifier;
1395
+ }
1396
+ /**
1397
+ * e.g. `import * as foo from 'mod.js'`.
1398
+ */
1399
+ export interface ImportNamespaceSpecifier extends Node, HasSpan {
1400
+ type: "ImportNamespaceSpecifier";
1401
+ local: Identifier;
1402
+ }
1403
+ /**
1404
+ * e.g. - `import { foo } from 'mod.js'`
1405
+ *
1406
+ * local = foo, imported = None
1407
+ *
1408
+ * e.g. `import { foo as bar } from 'mod.js'`
1409
+ *
1410
+ * local = bar, imported = Some(foo) for
1411
+ */
1412
+ export interface NamedImportSpecifier extends Node, HasSpan {
1413
+ type: "ImportSpecifier";
1414
+ local: Identifier;
1415
+ imported?: ModuleExportName;
1416
+ isTypeOnly: boolean;
1417
+ }
1418
+ export type ModuleExportName = Identifier | StringLiteral;
1419
+ export type ExportSpecifier = ExportNamespaceSpecifier | ExportDefaultSpecifier | NamedExportSpecifier;
1420
+ /**
1421
+ * `export * as foo from 'src';`
1422
+ */
1423
+ export interface ExportNamespaceSpecifier extends Node, HasSpan {
1424
+ type: "ExportNamespaceSpecifier";
1425
+ name: ModuleExportName;
1426
+ }
1427
+ export interface ExportDefaultSpecifier extends Node, HasSpan {
1428
+ type: "ExportDefaultSpecifier";
1429
+ exported: Identifier;
1430
+ }
1431
+ export interface NamedExportSpecifier extends Node, HasSpan {
1432
+ type: "ExportSpecifier";
1433
+ orig: ModuleExportName;
1434
+ /**
1435
+ * `Some(bar)` in `export { foo as bar }`
1436
+ */
1437
+ exported?: ModuleExportName;
1438
+ isTypeOnly: boolean;
1439
+ }
1440
+ interface HasInterpreter {
1441
+ /**
1442
+ * e.g. `/usr/bin/node` for `#!/usr/bin/node`
1443
+ */
1444
+ interpreter: string;
1445
+ }
1446
+ export type Program = Module | Script;
1447
+ export interface Module extends Node, HasSpan, HasInterpreter {
1448
+ type: "Module";
1449
+ body: ModuleItem[];
1450
+ }
1451
+ export interface Script extends Node, HasSpan, HasInterpreter {
1452
+ type: "Script";
1453
+ body: Statement[];
1454
+ }
1455
+ export type ModuleItem = ModuleDeclaration | Statement;
1456
+ export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "||" | "&&" | "in" | "instanceof" | "**" | "??";
1457
+ export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "&&=" | "||=" | "??=";
1458
+ export type UpdateOperator = "++" | "--";
1459
+ export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete";
1460
+ export type Pattern = BindingIdentifier | ArrayPattern | RestElement | ObjectPattern | AssignmentPattern | Invalid | Expression;
1461
+ export interface BindingIdentifier extends PatternBase {
1462
+ type: "Identifier";
1463
+ value: string;
1464
+ optional: boolean;
1465
+ }
1466
+ export interface ArrayPattern extends PatternBase {
1467
+ type: "ArrayPattern";
1468
+ elements: (Pattern | undefined)[];
1469
+ optional: boolean;
1470
+ }
1471
+ export interface ObjectPattern extends PatternBase {
1472
+ type: "ObjectPattern";
1473
+ properties: ObjectPatternProperty[];
1474
+ optional: boolean;
1475
+ }
1476
+ export interface AssignmentPattern extends PatternBase {
1477
+ type: "AssignmentPattern";
1478
+ left: Pattern;
1479
+ right: Expression;
1480
+ }
1481
+ export interface RestElement extends PatternBase {
1482
+ type: "RestElement";
1483
+ rest: Span;
1484
+ argument: Pattern;
1485
+ }
1486
+ export type ObjectPatternProperty = KeyValuePatternProperty | AssignmentPatternProperty | RestElement;
1487
+ /**
1488
+ * `{key: value}`
1489
+ */
1490
+ export interface KeyValuePatternProperty extends Node {
1491
+ type: "KeyValuePatternProperty";
1492
+ key: PropertyName;
1493
+ value: Pattern;
1494
+ }
1495
+ /**
1496
+ * `{key}` or `{key = value}`
1497
+ */
1498
+ export interface AssignmentPatternProperty extends Node, HasSpan {
1499
+ type: "AssignmentPatternProperty";
1500
+ key: Identifier;
1501
+ value?: Expression;
1502
+ }
1503
+ /** Identifier is `a` in `{ a, }` */
1504
+ export type Property = Identifier | KeyValueProperty | AssignmentProperty | GetterProperty | SetterProperty | MethodProperty;
1505
+ interface PropBase extends Node {
1506
+ key: PropertyName;
1507
+ }
1508
+ export interface KeyValueProperty extends PropBase {
1509
+ type: "KeyValueProperty";
1510
+ value: Expression;
1511
+ }
1512
+ export interface AssignmentProperty extends Node {
1513
+ type: "AssignmentProperty";
1514
+ key: Identifier;
1515
+ value: Expression;
1516
+ }
1517
+ export interface GetterProperty extends PropBase, HasSpan {
1518
+ type: "GetterProperty";
1519
+ typeAnnotation?: TsTypeAnnotation;
1520
+ body?: BlockStatement;
1521
+ }
1522
+ export interface SetterProperty extends PropBase, HasSpan {
1523
+ type: "SetterProperty";
1524
+ param: Pattern;
1525
+ body?: BlockStatement;
1526
+ }
1527
+ export interface MethodProperty extends PropBase, Fn {
1528
+ type: "MethodProperty";
1529
+ }
1530
+ export type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropName | BigIntLiteral;
1531
+ export interface ComputedPropName extends Node, HasSpan {
1532
+ type: "Computed";
1533
+ expression: Expression;
1534
+ }
1535
+ export interface BlockStatement extends Node, HasSpan {
1536
+ type: "BlockStatement";
1537
+ stmts: Statement[];
1538
+ }
1539
+ export interface ExpressionStatement extends Node, HasSpan {
1540
+ type: "ExpressionStatement";
1541
+ expression: Expression;
1542
+ }
1543
+ export type Statement = BlockStatement | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | Declaration | ExpressionStatement;
1544
+ export interface EmptyStatement extends Node, HasSpan {
1545
+ type: "EmptyStatement";
1546
+ }
1547
+ export interface DebuggerStatement extends Node, HasSpan {
1548
+ type: "DebuggerStatement";
1549
+ }
1550
+ export interface WithStatement extends Node, HasSpan {
1551
+ type: "WithStatement";
1552
+ object: Expression;
1553
+ body: Statement;
1554
+ }
1555
+ export interface ReturnStatement extends Node, HasSpan {
1556
+ type: "ReturnStatement";
1557
+ argument?: Expression;
1558
+ }
1559
+ export interface LabeledStatement extends Node, HasSpan {
1560
+ type: "LabeledStatement";
1561
+ label: Identifier;
1562
+ body: Statement;
1563
+ }
1564
+ export interface BreakStatement extends Node, HasSpan {
1565
+ type: "BreakStatement";
1566
+ label?: Identifier;
1567
+ }
1568
+ export interface ContinueStatement extends Node, HasSpan {
1569
+ type: "ContinueStatement";
1570
+ label?: Identifier;
1571
+ }
1572
+ export interface IfStatement extends Node, HasSpan {
1573
+ type: "IfStatement";
1574
+ test: Expression;
1575
+ consequent: Statement;
1576
+ alternate?: Statement;
1577
+ }
1578
+ export interface SwitchStatement extends Node, HasSpan {
1579
+ type: "SwitchStatement";
1580
+ discriminant: Expression;
1581
+ cases: SwitchCase[];
1582
+ }
1583
+ export interface ThrowStatement extends Node, HasSpan {
1584
+ type: "ThrowStatement";
1585
+ argument: Expression;
1586
+ }
1587
+ export interface TryStatement extends Node, HasSpan {
1588
+ type: "TryStatement";
1589
+ block: BlockStatement;
1590
+ handler?: CatchClause;
1591
+ finalizer?: BlockStatement;
1592
+ }
1593
+ export interface WhileStatement extends Node, HasSpan {
1594
+ type: "WhileStatement";
1595
+ test: Expression;
1596
+ body: Statement;
1597
+ }
1598
+ export interface DoWhileStatement extends Node, HasSpan {
1599
+ type: "DoWhileStatement";
1600
+ test: Expression;
1601
+ body: Statement;
1602
+ }
1603
+ export interface ForStatement extends Node, HasSpan {
1604
+ type: "ForStatement";
1605
+ init?: VariableDeclaration | Expression;
1606
+ test?: Expression;
1607
+ update?: Expression;
1608
+ body: Statement;
1609
+ }
1610
+ export interface ForInStatement extends Node, HasSpan {
1611
+ type: "ForInStatement";
1612
+ left: VariableDeclaration | Pattern;
1613
+ right: Expression;
1614
+ body: Statement;
1615
+ }
1616
+ export interface ForOfStatement extends Node, HasSpan {
1617
+ type: "ForOfStatement";
1618
+ /**
1619
+ * Span of the await token.
1620
+ *
1621
+ * es2018 for-await-of statements, e.g., `for await (const x of xs) {`
1622
+ */
1623
+ await?: Span;
1624
+ left: VariableDeclaration | Pattern;
1625
+ right: Expression;
1626
+ body: Statement;
1627
+ }
1628
+ export interface SwitchCase extends Node, HasSpan {
1629
+ type: "SwitchCase";
1630
+ /**
1631
+ * Undefined for default case
1632
+ */
1633
+ test?: Expression;
1634
+ consequent: Statement[];
1635
+ }
1636
+ export interface CatchClause extends Node, HasSpan {
1637
+ type: "CatchClause";
1638
+ /**
1639
+ * The param is `undefined` if the catch binding is omitted. E.g., `try { foo() } catch {}`
1640
+ */
1641
+ param?: Pattern;
1642
+ body: BlockStatement;
1643
+ }
1644
+ export interface TsTypeAnnotation extends Node, HasSpan {
1645
+ type: "TsTypeAnnotation";
1646
+ typeAnnotation: TsType;
1647
+ }
1648
+ export interface TsTypeParameterDeclaration extends Node, HasSpan {
1649
+ type: "TsTypeParameterDeclaration";
1650
+ parameters: TsTypeParameter[];
1651
+ }
1652
+ export interface TsTypeParameter extends Node, HasSpan {
1653
+ type: "TsTypeParameter";
1654
+ name: Identifier;
1655
+ in: boolean;
1656
+ out: boolean;
1657
+ constraint?: TsType;
1658
+ default?: TsType;
1659
+ }
1660
+ export interface TsTypeParameterInstantiation extends Node, HasSpan {
1661
+ type: "TsTypeParameterInstantiation";
1662
+ params: TsType[];
1663
+ }
1664
+ export interface TsParameterProperty extends Node, HasSpan, HasDecorator {
1665
+ type: "TsParameterProperty";
1666
+ accessibility?: Accessibility;
1667
+ override: boolean;
1668
+ readonly: boolean;
1669
+ param: TsParameterPropertyParameter;
1670
+ }
1671
+ export type TsParameterPropertyParameter = BindingIdentifier | AssignmentPattern;
1672
+ export interface TsQualifiedName extends Node {
1673
+ type: "TsQualifiedName";
1674
+ left: TsEntityName;
1675
+ right: Identifier;
1676
+ }
1677
+ export type TsEntityName = TsQualifiedName | Identifier;
1678
+ export type TsTypeElement = TsCallSignatureDeclaration | TsConstructSignatureDeclaration | TsPropertySignature | TsGetterSignature | TsSetterSignature | TsMethodSignature | TsIndexSignature;
1679
+ export interface TsCallSignatureDeclaration extends Node, HasSpan {
1680
+ type: "TsCallSignatureDeclaration";
1681
+ params: TsFnParameter[];
1682
+ typeAnnotation?: TsTypeAnnotation;
1683
+ typeParams?: TsTypeParameterDeclaration;
1684
+ }
1685
+ export interface TsConstructSignatureDeclaration extends Node, HasSpan {
1686
+ type: "TsConstructSignatureDeclaration";
1687
+ params: TsFnParameter[];
1688
+ typeAnnotation?: TsTypeAnnotation;
1689
+ typeParams?: TsTypeParameterDeclaration;
1690
+ }
1691
+ export interface TsPropertySignature extends Node, HasSpan {
1692
+ type: "TsPropertySignature";
1693
+ readonly: boolean;
1694
+ key: Expression;
1695
+ computed: boolean;
1696
+ optional: boolean;
1697
+ typeAnnotation?: TsTypeAnnotation;
1698
+ }
1699
+ export interface TsGetterSignature extends Node, HasSpan {
1700
+ type: "TsGetterSignature";
1701
+ readonly: boolean;
1702
+ key: Expression;
1703
+ computed: boolean;
1704
+ optional: boolean;
1705
+ typeAnnotation?: TsTypeAnnotation;
1706
+ }
1707
+ export interface TsSetterSignature extends Node, HasSpan {
1708
+ type: "TsSetterSignature";
1709
+ readonly: boolean;
1710
+ key: Expression;
1711
+ computed: boolean;
1712
+ optional: boolean;
1713
+ param: TsFnParameter;
1714
+ }
1715
+ export interface TsMethodSignature extends Node, HasSpan {
1716
+ type: "TsMethodSignature";
1717
+ readonly: boolean;
1718
+ key: Expression;
1719
+ computed: boolean;
1720
+ optional: boolean;
1721
+ params: TsFnParameter[];
1722
+ typeAnn?: TsTypeAnnotation;
1723
+ typeParams?: TsTypeParameterDeclaration;
1724
+ }
1725
+ export interface TsIndexSignature extends Node, HasSpan {
1726
+ type: "TsIndexSignature";
1727
+ params: TsFnParameter[];
1728
+ typeAnnotation?: TsTypeAnnotation;
1729
+ readonly: boolean;
1730
+ static: boolean;
1731
+ }
1732
+ export type TsType = TsKeywordType | TsThisType | TsFnOrConstructorType | TsTypeReference | TsTypeQuery | TsTypeLiteral | TsArrayType | TsTupleType | TsOptionalType | TsRestType | TsUnionOrIntersectionType | TsConditionalType | TsInferType | TsParenthesizedType | TsTypeOperator | TsIndexedAccessType | TsMappedType | TsLiteralType | TsTypePredicate | TsImportType;
1733
+ export type TsFnOrConstructorType = TsFunctionType | TsConstructorType;
1734
+ export interface TsKeywordType extends Node, HasSpan {
1735
+ type: "TsKeywordType";
1736
+ kind: TsKeywordTypeKind;
1737
+ }
1738
+ export type TsKeywordTypeKind = "any" | "unknown" | "number" | "object" | "boolean" | "bigint" | "string" | "symbol" | "void" | "undefined" | "null" | "never" | "intrinsic";
1739
+ export interface TsThisType extends Node, HasSpan {
1740
+ type: "TsThisType";
1741
+ }
1742
+ export type TsFnParameter = BindingIdentifier | ArrayPattern | RestElement | ObjectPattern;
1743
+ export interface TsFunctionType extends Node, HasSpan {
1744
+ type: "TsFunctionType";
1745
+ params: TsFnParameter[];
1746
+ typeParams?: TsTypeParameterDeclaration;
1747
+ typeAnnotation: TsTypeAnnotation;
1748
+ }
1749
+ export interface TsConstructorType extends Node, HasSpan {
1750
+ type: "TsConstructorType";
1751
+ params: TsFnParameter[];
1752
+ typeParams?: TsTypeParameterDeclaration;
1753
+ typeAnnotation: TsTypeAnnotation;
1754
+ isAbstract: boolean;
1755
+ }
1756
+ export interface TsTypeReference extends Node, HasSpan {
1757
+ type: "TsTypeReference";
1758
+ typeName: TsEntityName;
1759
+ typeParams?: TsTypeParameterInstantiation;
1760
+ }
1761
+ export interface TsTypePredicate extends Node, HasSpan {
1762
+ type: "TsTypePredicate";
1763
+ asserts: boolean;
1764
+ paramName: TsThisTypeOrIdent;
1765
+ typeAnnotation?: TsTypeAnnotation;
1766
+ }
1767
+ export type TsThisTypeOrIdent = TsThisType | Identifier;
1768
+ export interface TsImportType extends Node, HasSpan {
1769
+ type: "TsImportType";
1770
+ argument: StringLiteral;
1771
+ qualifier?: TsEntityName;
1772
+ typeArguments?: TsTypeParameterInstantiation;
1773
+ }
1774
+ /**
1775
+ * `typeof` operator
1776
+ */
1777
+ export interface TsTypeQuery extends Node, HasSpan {
1778
+ type: "TsTypeQuery";
1779
+ exprName: TsTypeQueryExpr;
1780
+ typeArguments?: TsTypeParameterInstantiation;
1781
+ }
1782
+ export type TsTypeQueryExpr = TsEntityName | TsImportType;
1783
+ export interface TsTypeLiteral extends Node, HasSpan {
1784
+ type: "TsTypeLiteral";
1785
+ members: TsTypeElement[];
1786
+ }
1787
+ export interface TsArrayType extends Node, HasSpan {
1788
+ type: "TsArrayType";
1789
+ elemType: TsType;
1790
+ }
1791
+ export interface TsTupleType extends Node, HasSpan {
1792
+ type: "TsTupleType";
1793
+ elemTypes: TsTupleElement[];
1794
+ }
1795
+ export interface TsTupleElement extends Node, HasSpan {
1796
+ type: "TsTupleElement";
1797
+ label?: Pattern;
1798
+ ty: TsType;
1799
+ }
1800
+ export interface TsOptionalType extends Node, HasSpan {
1801
+ type: "TsOptionalType";
1802
+ typeAnnotation: TsType;
1803
+ }
1804
+ export interface TsRestType extends Node, HasSpan {
1805
+ type: "TsRestType";
1806
+ typeAnnotation: TsType;
1807
+ }
1808
+ export type TsUnionOrIntersectionType = TsUnionType | TsIntersectionType;
1809
+ export interface TsUnionType extends Node, HasSpan {
1810
+ type: "TsUnionType";
1811
+ types: TsType[];
1812
+ }
1813
+ export interface TsIntersectionType extends Node, HasSpan {
1814
+ type: "TsIntersectionType";
1815
+ types: TsType[];
1816
+ }
1817
+ export interface TsConditionalType extends Node, HasSpan {
1818
+ type: "TsConditionalType";
1819
+ checkType: TsType;
1820
+ extendsType: TsType;
1821
+ trueType: TsType;
1822
+ falseType: TsType;
1823
+ }
1824
+ export interface TsInferType extends Node, HasSpan {
1825
+ type: "TsInferType";
1826
+ typeParam: TsTypeParameter;
1827
+ }
1828
+ export interface TsParenthesizedType extends Node, HasSpan {
1829
+ type: "TsParenthesizedType";
1830
+ typeAnnotation: TsType;
1831
+ }
1832
+ export interface TsTypeOperator extends Node, HasSpan {
1833
+ type: "TsTypeOperator";
1834
+ op: TsTypeOperatorOp;
1835
+ typeAnnotation: TsType;
1836
+ }
1837
+ export type TsTypeOperatorOp = "keyof" | "unique" | "readonly";
1838
+ export interface TsIndexedAccessType extends Node, HasSpan {
1839
+ type: "TsIndexedAccessType";
1840
+ readonly: boolean;
1841
+ objectType: TsType;
1842
+ indexType: TsType;
1843
+ }
1844
+ export type TruePlusMinus = true | "+" | "-";
1845
+ export interface TsMappedType extends Node, HasSpan {
1846
+ type: "TsMappedType";
1847
+ readonly?: TruePlusMinus;
1848
+ typeParam: TsTypeParameter;
1849
+ nameType?: TsType;
1850
+ optional?: TruePlusMinus;
1851
+ typeAnnotation?: TsType;
1852
+ }
1853
+ export interface TsLiteralType extends Node, HasSpan {
1854
+ type: "TsLiteralType";
1855
+ literal: TsLiteral;
1856
+ }
1857
+ export type TsLiteral = NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | TsTemplateLiteralType;
1858
+ export interface TsTemplateLiteralType extends Node, HasSpan {
1859
+ type: "TemplateLiteral";
1860
+ types: TsType[];
1861
+ quasis: TemplateElement[];
1862
+ }
1863
+ export interface TsInterfaceDeclaration extends Node, HasSpan {
1864
+ type: "TsInterfaceDeclaration";
1865
+ id: Identifier;
1866
+ declare: boolean;
1867
+ typeParams?: TsTypeParameterDeclaration;
1868
+ extends: TsExpressionWithTypeArguments[];
1869
+ body: TsInterfaceBody;
1870
+ }
1871
+ export interface TsInterfaceBody extends Node, HasSpan {
1872
+ type: "TsInterfaceBody";
1873
+ body: TsTypeElement[];
1874
+ }
1875
+ export interface TsExpressionWithTypeArguments extends Node, HasSpan {
1876
+ type: "TsExpressionWithTypeArguments";
1877
+ expression: Expression;
1878
+ typeArguments?: TsTypeParameterInstantiation;
1879
+ }
1880
+ export interface TsTypeAliasDeclaration extends Node, HasSpan {
1881
+ type: "TsTypeAliasDeclaration";
1882
+ declare: boolean;
1883
+ id: Identifier;
1884
+ typeParams?: TsTypeParameterDeclaration;
1885
+ typeAnnotation: TsType;
1886
+ }
1887
+ export interface TsEnumDeclaration extends Node, HasSpan {
1888
+ type: "TsEnumDeclaration";
1889
+ declare: boolean;
1890
+ isConst: boolean;
1891
+ id: Identifier;
1892
+ members: TsEnumMember[];
1893
+ }
1894
+ export interface TsEnumMember extends Node, HasSpan {
1895
+ type: "TsEnumMember";
1896
+ id: TsEnumMemberId;
1897
+ init?: Expression;
1898
+ }
1899
+ export type TsEnumMemberId = Identifier | StringLiteral;
1900
+ export interface TsModuleDeclaration extends Node, HasSpan {
1901
+ type: "TsModuleDeclaration";
1902
+ declare: boolean;
1903
+ global: boolean;
1904
+ id: TsModuleName;
1905
+ body?: TsNamespaceBody;
1906
+ }
1907
+ /**
1908
+ * `namespace A.B { }` is a namespace named `A` with another TsNamespaceDecl as its body.
1909
+ */
1910
+ export type TsNamespaceBody = TsModuleBlock | TsNamespaceDeclaration;
1911
+ export interface TsModuleBlock extends Node, HasSpan {
1912
+ type: "TsModuleBlock";
1913
+ body: ModuleItem[];
1914
+ }
1915
+ export interface TsNamespaceDeclaration extends Node, HasSpan {
1916
+ type: "TsNamespaceDeclaration";
1917
+ declare: boolean;
1918
+ global: boolean;
1919
+ id: Identifier;
1920
+ body: TsNamespaceBody;
1921
+ }
1922
+ export type TsModuleName = Identifier | StringLiteral;
1923
+ export interface TsImportEqualsDeclaration extends Node, HasSpan {
1924
+ type: "TsImportEqualsDeclaration";
1925
+ declare: boolean;
1926
+ isExport: boolean;
1927
+ isTypeOnly: boolean;
1928
+ id: Identifier;
1929
+ moduleRef: TsModuleReference;
1930
+ }
1931
+ export type TsModuleReference = TsEntityName | TsExternalModuleReference;
1932
+ export interface TsExternalModuleReference extends Node, HasSpan {
1933
+ type: "TsExternalModuleReference";
1934
+ expression: StringLiteral;
1935
+ }
1936
+ export interface TsExportAssignment extends Node, HasSpan {
1937
+ type: "TsExportAssignment";
1938
+ expression: Expression;
1939
+ }
1940
+ export interface TsNamespaceExportDeclaration extends Node, HasSpan {
1941
+ type: "TsNamespaceExportDeclaration";
1942
+ id: Identifier;
1943
+ }
1944
+ export interface TsAsExpression extends ExpressionBase {
1945
+ type: "TsAsExpression";
1946
+ expression: Expression;
1947
+ typeAnnotation: TsType;
1948
+ }
1949
+ export interface TsSatisfiesExpression extends ExpressionBase {
1950
+ type: "TsSatisfiesExpression";
1951
+ expression: Expression;
1952
+ typeAnnotation: TsType;
1953
+ }
1954
+ export interface TsInstantiation extends Node, HasSpan {
1955
+ type: "TsInstantiation";
1956
+ expression: Expression;
1957
+ typeArguments: TsTypeParameterInstantiation;
1958
+ }
1959
+ export interface TsTypeAssertion extends ExpressionBase {
1960
+ type: "TsTypeAssertion";
1961
+ expression: Expression;
1962
+ typeAnnotation: TsType;
1963
+ }
1964
+ export interface TsConstAssertion extends ExpressionBase {
1965
+ type: "TsConstAssertion";
1966
+ expression: Expression;
1967
+ }
1968
+ export interface TsNonNullExpression extends ExpressionBase {
1969
+ type: "TsNonNullExpression";
1970
+ expression: Expression;
1971
+ }
1972
+ export type Accessibility = "public" | "protected" | "private";
1973
+ export interface Invalid extends Node, HasSpan {
1974
+ type: "Invalid";
1975
+ }
1976
+ export {};
1977
+ //# sourceMappingURL=index.d.ts.map