django-handyhelpers 0.3.20__py3-none-any.whl → 0.3.35__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/METADATA +16 -6
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/RECORD +562 -75
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/WHEEL +1 -1
- handyhelpers/__init__.py +6 -6
- handyhelpers/forms.py +9 -1
- handyhelpers/mixins/form_mixins.py +61 -0
- handyhelpers/mixins/model_mixins.py +21 -0
- handyhelpers/mixins/serializer_mixins.py +35 -0
- handyhelpers/mixins/view_mixins.py +5 -2
- handyhelpers/serializers.py +23 -3
- handyhelpers/static/handyhelpers/css/table_sortable.css +17 -0
- handyhelpers/static/handyhelpers/js/sidebar.js +8 -4
- handyhelpers/static/handyhelpers/js/table_sortable.js +119 -0
- handyhelpers/static/node_modules/.bin/acorn +4 -0
- handyhelpers/static/node_modules/.bin/css-b64-images +13 -0
- handyhelpers/static/node_modules/.bin/esbuild +0 -0
- handyhelpers/static/node_modules/.bin/html-minifier-terser +308 -0
- handyhelpers/static/node_modules/.bin/minify +98 -0
- handyhelpers/static/node_modules/.bin/terser +21 -0
- handyhelpers/static/node_modules/.bin/uglifyjs +624 -0
- handyhelpers/static/node_modules/.package-lock.json +750 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/README.md +3 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- handyhelpers/static/node_modules/@esbuild/linux-x64/package.json +20 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +246 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +36 -0
- handyhelpers/static/node_modules/@jridgewell/gen-mapping/package.json +76 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- handyhelpers/static/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/README.md +37 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs +69 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js +83 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +32 -0
- handyhelpers/static/node_modules/@jridgewell/set-array/package.json +65 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/README.md +184 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs +95 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.cjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs +90 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js +1242 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/source-map.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/dist/types/source-map.d.ts +35 -0
- handyhelpers/static/node_modules/@jridgewell/source-map/package.json +71 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +424 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +439 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +49 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +8 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +15 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +6 -0
- handyhelpers/static/node_modules/@jridgewell/sourcemap-codec/package.json +75 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/README.md +257 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +580 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +600 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +79 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +99 -0
- handyhelpers/static/node_modules/@jridgewell/trace-mapping/package.json +77 -0
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/enums.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js +12 -170
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-base.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js +14 -184
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper-lite.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js +14 -197
- handyhelpers/static/node_modules/@popperjs/core/dist/cjs/popper.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/createPopper.js +6 -66
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/arrow.js +1 -12
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js +2 -14
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +0 -4
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/userAgent.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/enums.min.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js +12 -170
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-base.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js +14 -184
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper-lite.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js +14 -197
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js +2 -2
- handyhelpers/static/node_modules/@popperjs/core/dist/umd/popper.min.js.map +1 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js +6 -66
- handyhelpers/static/node_modules/@popperjs/core/lib/createPopper.js.flow +2 -80
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -12
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/arrow.js.flow +0 -22
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -14
- handyhelpers/static/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow +3 -33
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -4
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.flow +0 -12
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/userAgent.js.flow +1 -1
- handyhelpers/static/node_modules/@popperjs/core/package.json +1 -1
- handyhelpers/static/node_modules/@putout/minify/LICENSE +21 -0
- handyhelpers/static/node_modules/@putout/minify/README.md +110 -0
- handyhelpers/static/node_modules/@putout/minify/bundle/minify.min.js +52 -0
- handyhelpers/static/node_modules/@putout/minify/package.json +112 -0
- handyhelpers/static/node_modules/@swc/core/Visitor.d.ts +218 -0
- handyhelpers/static/node_modules/@swc/core/Visitor.js +1407 -0
- handyhelpers/static/node_modules/@swc/core/binding.d.ts +56 -0
- handyhelpers/static/node_modules/@swc/core/binding.js +351 -0
- handyhelpers/static/node_modules/@swc/core/index.d.ts +118 -0
- handyhelpers/static/node_modules/@swc/core/index.js +439 -0
- handyhelpers/static/node_modules/@swc/core/package.json +114 -0
- handyhelpers/static/node_modules/@swc/core/postinstall.js +148 -0
- handyhelpers/static/node_modules/@swc/core/spack.d.ts +51 -0
- handyhelpers/static/node_modules/@swc/core/spack.js +87 -0
- handyhelpers/static/node_modules/@swc/core/util.d.ts +1 -0
- handyhelpers/static/node_modules/@swc/core/util.js +104 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/package.json +45 -0
- handyhelpers/static/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- handyhelpers/static/node_modules/@swc/counter/CHANGELOG.md +7 -0
- handyhelpers/static/node_modules/@swc/counter/README.md +7 -0
- handyhelpers/static/node_modules/@swc/counter/index.js +1 -0
- handyhelpers/static/node_modules/@swc/counter/package.json +27 -0
- handyhelpers/static/node_modules/@swc/types/LICENSE +201 -0
- handyhelpers/static/node_modules/@swc/types/README.md +4 -0
- handyhelpers/static/node_modules/@swc/types/assumptions.d.ts +92 -0
- handyhelpers/static/node_modules/@swc/types/assumptions.js +2 -0
- handyhelpers/static/node_modules/@swc/types/index.d.ts +1977 -0
- handyhelpers/static/node_modules/@swc/types/index.js +2 -0
- handyhelpers/static/node_modules/@swc/types/package.json +39 -0
- handyhelpers/static/node_modules/acorn/CHANGELOG.md +928 -0
- handyhelpers/static/node_modules/acorn/LICENSE +21 -0
- handyhelpers/static/node_modules/acorn/README.md +282 -0
- handyhelpers/static/node_modules/acorn/bin/acorn +4 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.d.mts +866 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.d.ts +866 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.js +6174 -0
- handyhelpers/static/node_modules/acorn/dist/acorn.mjs +6145 -0
- handyhelpers/static/node_modules/acorn/dist/bin.js +90 -0
- handyhelpers/static/node_modules/acorn/package.json +50 -0
- handyhelpers/static/node_modules/buffer-from/LICENSE +21 -0
- handyhelpers/static/node_modules/buffer-from/index.js +72 -0
- handyhelpers/static/node_modules/buffer-from/package.json +19 -0
- handyhelpers/static/node_modules/buffer-from/readme.md +69 -0
- handyhelpers/static/node_modules/camel-case/LICENSE +21 -0
- handyhelpers/static/node_modules/camel-case/README.md +47 -0
- handyhelpers/static/node_modules/camel-case/dist/index.d.ts +5 -0
- handyhelpers/static/node_modules/camel-case/dist/index.js +23 -0
- handyhelpers/static/node_modules/camel-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.js +26 -0
- handyhelpers/static/node_modules/camel-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.js +17 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
- handyhelpers/static/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/camel-case/package.json +89 -0
- handyhelpers/static/node_modules/clean-css/History.md +1504 -0
- handyhelpers/static/node_modules/clean-css/LICENSE +19 -0
- handyhelpers/static/node_modules/clean-css/README.md +987 -0
- handyhelpers/static/node_modules/clean-css/index.js +1 -0
- handyhelpers/static/node_modules/clean-css/package.json +48 -0
- handyhelpers/static/node_modules/commander/LICENSE +22 -0
- handyhelpers/static/node_modules/commander/Readme.md +1134 -0
- handyhelpers/static/node_modules/commander/esm.mjs +16 -0
- handyhelpers/static/node_modules/commander/index.js +27 -0
- handyhelpers/static/node_modules/commander/package-support.json +16 -0
- handyhelpers/static/node_modules/commander/package.json +80 -0
- handyhelpers/static/node_modules/commander/typings/index.d.ts +889 -0
- handyhelpers/static/node_modules/css-b64-images/.npmignore +15 -0
- handyhelpers/static/node_modules/css-b64-images/.travis.yml +5 -0
- handyhelpers/static/node_modules/css-b64-images/README.md +78 -0
- handyhelpers/static/node_modules/css-b64-images/bin/css-b64-images +13 -0
- handyhelpers/static/node_modules/css-b64-images/draft.png +0 -0
- handyhelpers/static/node_modules/css-b64-images/draft.xcf +0 -0
- handyhelpers/static/node_modules/css-b64-images/package.json +30 -0
- handyhelpers/static/node_modules/css-b64-images/test/css-b64-images-test.js +38 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/css/style.css +52 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.eot +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.svg +248 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.ttf +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/callunasansregular-webfont.woff +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.eot +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.svg +245 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.ttf +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/fonts/maven_pro_medium-webfont.woff +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/background-pattern.gif +0 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/dots.svg +6 -0
- handyhelpers/static/node_modules/css-b64-images/test/fixture/img/mixit-banner.png +0 -0
- handyhelpers/static/node_modules/debug/LICENSE +20 -0
- handyhelpers/static/node_modules/debug/README.md +481 -0
- handyhelpers/static/node_modules/debug/package.json +65 -0
- handyhelpers/static/node_modules/debug/src/browser.js +272 -0
- handyhelpers/static/node_modules/debug/src/common.js +292 -0
- handyhelpers/static/node_modules/debug/src/index.js +10 -0
- handyhelpers/static/node_modules/debug/src/node.js +263 -0
- handyhelpers/static/node_modules/dot-case/LICENSE +21 -0
- handyhelpers/static/node_modules/dot-case/README.md +37 -0
- handyhelpers/static/node_modules/dot-case/dist/index.d.ts +3 -0
- handyhelpers/static/node_modules/dot-case/dist/index.js +11 -0
- handyhelpers/static/node_modules/dot-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.js +26 -0
- handyhelpers/static/node_modules/dot-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.js +7 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
- handyhelpers/static/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/dot-case/package.json +89 -0
- handyhelpers/static/node_modules/entities/LICENSE +11 -0
- handyhelpers/static/node_modules/entities/package.json +90 -0
- handyhelpers/static/node_modules/entities/readme.md +122 -0
- handyhelpers/static/node_modules/esbuild/LICENSE.md +21 -0
- handyhelpers/static/node_modules/esbuild/README.md +3 -0
- handyhelpers/static/node_modules/esbuild/bin/esbuild +0 -0
- handyhelpers/static/node_modules/esbuild/install.js +286 -0
- handyhelpers/static/node_modules/esbuild/package.json +47 -0
- handyhelpers/static/node_modules/find-up/index.d.ts +247 -0
- handyhelpers/static/node_modules/find-up/index.js +107 -0
- handyhelpers/static/node_modules/find-up/license +9 -0
- handyhelpers/static/node_modules/find-up/package.json +61 -0
- handyhelpers/static/node_modules/find-up/readme.md +160 -0
- handyhelpers/static/node_modules/fun-effects/LICENSE +674 -0
- handyhelpers/static/node_modules/fun-effects/README.md +10 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/background_icons.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/blur_group.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/fades.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/marquee.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/css/scroller.min.css +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/index.js +15 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/background_icons.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/marquee.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/dist/js/scroller.min.js +1 -0
- handyhelpers/static/node_modules/fun-effects/package.json +39 -0
- handyhelpers/static/node_modules/fun-effects/src/css/background_icons.css +39 -0
- handyhelpers/static/node_modules/fun-effects/src/css/blur_group.css +22 -0
- handyhelpers/static/node_modules/fun-effects/src/css/fades.css +94 -0
- handyhelpers/static/node_modules/fun-effects/src/css/marquee.css +45 -0
- handyhelpers/static/node_modules/fun-effects/src/css/scroller.css +144 -0
- handyhelpers/static/node_modules/fun-effects/src/index.js +15 -0
- handyhelpers/static/node_modules/fun-effects/src/js/background_icons.js +101 -0
- handyhelpers/static/node_modules/fun-effects/src/js/marquee.js +81 -0
- handyhelpers/static/node_modules/fun-effects/src/js/scroller.js +37 -0
- handyhelpers/static/node_modules/html-minifier-terser/LICENSE +22 -0
- handyhelpers/static/node_modules/html-minifier-terser/README.md +168 -0
- handyhelpers/static/node_modules/html-minifier-terser/cli.js +308 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.cjs +1857 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.esm.bundle.js +57509 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.js +57520 -0
- handyhelpers/static/node_modules/html-minifier-terser/dist/htmlminifier.umd.bundle.min.js +9 -0
- handyhelpers/static/node_modules/html-minifier-terser/package.json +105 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/htmlminifier.js +1366 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/htmlparser.js +565 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/tokenchain.js +68 -0
- handyhelpers/static/node_modules/html-minifier-terser/src/utils.js +11 -0
- handyhelpers/static/node_modules/jju/LICENSE +21 -0
- handyhelpers/static/node_modules/jju/Makefile +20 -0
- handyhelpers/static/node_modules/jju/README.md +249 -0
- handyhelpers/static/node_modules/jju/index.js +32 -0
- handyhelpers/static/node_modules/jju/package.json +34 -0
- handyhelpers/static/node_modules/jju/package.yaml +36 -0
- handyhelpers/static/node_modules/locate-path/index.d.ts +92 -0
- handyhelpers/static/node_modules/locate-path/index.js +77 -0
- handyhelpers/static/node_modules/locate-path/license +9 -0
- handyhelpers/static/node_modules/locate-path/package.json +48 -0
- handyhelpers/static/node_modules/locate-path/readme.md +123 -0
- handyhelpers/static/node_modules/lower-case/LICENSE +21 -0
- handyhelpers/static/node_modules/lower-case/README.md +35 -0
- handyhelpers/static/node_modules/lower-case/dist/index.d.ts +8 -0
- handyhelpers/static/node_modules/lower-case/dist/index.js +53 -0
- handyhelpers/static/node_modules/lower-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.js +36 -0
- handyhelpers/static/node_modules/lower-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.js +48 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
- handyhelpers/static/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/lower-case/package.json +87 -0
- handyhelpers/static/node_modules/minify/ChangeLog +1307 -0
- handyhelpers/static/node_modules/minify/LICENSE +22 -0
- handyhelpers/static/node_modules/minify/README.md +177 -0
- handyhelpers/static/node_modules/minify/bin/minify.js +98 -0
- handyhelpers/static/node_modules/minify/deno.json +5 -0
- handyhelpers/static/node_modules/minify/help.json +8 -0
- handyhelpers/static/node_modules/minify/package.json +65 -0
- handyhelpers/static/node_modules/ms/index.js +162 -0
- handyhelpers/static/node_modules/ms/license.md +21 -0
- handyhelpers/static/node_modules/ms/package.json +38 -0
- handyhelpers/static/node_modules/ms/readme.md +59 -0
- handyhelpers/static/node_modules/no-case/LICENSE +21 -0
- handyhelpers/static/node_modules/no-case/README.md +37 -0
- handyhelpers/static/node_modules/no-case/dist/index.d.ts +10 -0
- handyhelpers/static/node_modules/no-case/dist/index.js +35 -0
- handyhelpers/static/node_modules/no-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.js +59 -0
- handyhelpers/static/node_modules/no-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.d.ts +10 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.js +31 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js +57 -0
- handyhelpers/static/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/no-case/package.json +85 -0
- handyhelpers/static/node_modules/p-limit/index.d.ts +40 -0
- handyhelpers/static/node_modules/p-limit/index.js +68 -0
- handyhelpers/static/node_modules/p-limit/license +9 -0
- handyhelpers/static/node_modules/p-limit/package.json +54 -0
- handyhelpers/static/node_modules/p-limit/readme.md +99 -0
- handyhelpers/static/node_modules/p-locate/index.d.ts +49 -0
- handyhelpers/static/node_modules/p-locate/index.js +48 -0
- handyhelpers/static/node_modules/p-locate/license +9 -0
- handyhelpers/static/node_modules/p-locate/package.json +56 -0
- handyhelpers/static/node_modules/p-locate/readme.md +91 -0
- handyhelpers/static/node_modules/param-case/LICENSE +21 -0
- handyhelpers/static/node_modules/param-case/README.md +37 -0
- handyhelpers/static/node_modules/param-case/dist/index.d.ts +3 -0
- handyhelpers/static/node_modules/param-case/dist/index.js +11 -0
- handyhelpers/static/node_modules/param-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.js +24 -0
- handyhelpers/static/node_modules/param-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.d.ts +3 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.js +7 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js +22 -0
- handyhelpers/static/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/param-case/package.json +91 -0
- handyhelpers/static/node_modules/pascal-case/LICENSE +21 -0
- handyhelpers/static/node_modules/pascal-case/README.md +47 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.d.ts +5 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.js +24 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.js +25 -0
- handyhelpers/static/node_modules/pascal-case/dist/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js +18 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
- handyhelpers/static/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
- handyhelpers/static/node_modules/pascal-case/package.json +90 -0
- handyhelpers/static/node_modules/path-exists/index.d.ts +31 -0
- handyhelpers/static/node_modules/path-exists/index.js +19 -0
- handyhelpers/static/node_modules/path-exists/license +9 -0
- handyhelpers/static/node_modules/path-exists/package.json +41 -0
- handyhelpers/static/node_modules/path-exists/readme.md +52 -0
- handyhelpers/static/node_modules/readjson/ChangeLog +110 -0
- handyhelpers/static/node_modules/readjson/LICENSE +21 -0
- handyhelpers/static/node_modules/readjson/README.md +36 -0
- handyhelpers/static/node_modules/readjson/package.json +46 -0
- handyhelpers/static/node_modules/relateurl/README.md +159 -0
- handyhelpers/static/node_modules/relateurl/license +21 -0
- handyhelpers/static/node_modules/relateurl/package.json +46 -0
- handyhelpers/static/node_modules/simport/ChangeLog +77 -0
- handyhelpers/static/node_modules/simport/LICENSE +21 -0
- handyhelpers/static/node_modules/simport/README.md +81 -0
- handyhelpers/static/node_modules/simport/fixture/context.js +3 -0
- handyhelpers/static/node_modules/simport/fixture/default-frozen-function.mjs +2 -0
- handyhelpers/static/node_modules/simport/fixture/default-frozen-object.mjs +2 -0
- handyhelpers/static/node_modules/simport/package.json +65 -0
- handyhelpers/static/node_modules/simport/simport.js +84 -0
- handyhelpers/static/node_modules/simport/simport.mjs +22 -0
- handyhelpers/static/node_modules/source-map/CHANGELOG.md +301 -0
- handyhelpers/static/node_modules/source-map/LICENSE +28 -0
- handyhelpers/static/node_modules/source-map/README.md +742 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.debug.js +3234 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.js +3233 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.min.js +2 -0
- handyhelpers/static/node_modules/source-map/dist/source-map.min.js.map +1 -0
- handyhelpers/static/node_modules/source-map/package.json +73 -0
- handyhelpers/static/node_modules/source-map/source-map.d.ts +98 -0
- handyhelpers/static/node_modules/source-map/source-map.js +8 -0
- handyhelpers/static/node_modules/source-map-support/LICENSE.md +21 -0
- handyhelpers/static/node_modules/source-map-support/README.md +284 -0
- handyhelpers/static/node_modules/source-map-support/browser-source-map-support.js +114 -0
- handyhelpers/static/node_modules/source-map-support/package.json +31 -0
- handyhelpers/static/node_modules/source-map-support/register-hook-require.js +1 -0
- handyhelpers/static/node_modules/source-map-support/register.js +1 -0
- handyhelpers/static/node_modules/source-map-support/source-map-support.js +625 -0
- handyhelpers/static/node_modules/terser/CHANGELOG.md +783 -0
- handyhelpers/static/node_modules/terser/LICENSE +27 -0
- handyhelpers/static/node_modules/terser/PATRONS.md +15 -0
- handyhelpers/static/node_modules/terser/README.md +1421 -0
- handyhelpers/static/node_modules/terser/bin/package.json +10 -0
- handyhelpers/static/node_modules/terser/bin/terser +21 -0
- handyhelpers/static/node_modules/terser/bin/uglifyjs +10 -0
- handyhelpers/static/node_modules/terser/dist/.gitkeep +0 -0
- handyhelpers/static/node_modules/terser/dist/bundle.min.js +32962 -0
- handyhelpers/static/node_modules/terser/dist/package.json +10 -0
- handyhelpers/static/node_modules/terser/main.js +27 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/CHANGELOG.md +419 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/LICENSE +22 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/Readme.md +428 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/index.js +1224 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/package.json +38 -0
- handyhelpers/static/node_modules/terser/node_modules/commander/typings/index.d.ts +310 -0
- handyhelpers/static/node_modules/terser/package.json +153 -0
- handyhelpers/static/node_modules/terser/tools/domprops.js +9026 -0
- handyhelpers/static/node_modules/terser/tools/exit.cjs +7 -0
- handyhelpers/static/node_modules/terser/tools/props.html +68 -0
- handyhelpers/static/node_modules/terser/tools/terser.d.ts +216 -0
- handyhelpers/static/node_modules/tippy.js/LICENSE +21 -0
- handyhelpers/static/node_modules/tippy.js/README.md +63 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/perspective.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/scale.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-away.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward-extreme.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward-subtle.css +1 -0
- handyhelpers/static/node_modules/tippy.js/animations/shift-toward.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/backdrop.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/border.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/svg-arrow.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js +2516 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy-bundle.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js +2497 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.cjs.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.css +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js +2486 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js +2496 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/dist/tippy.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js +2388 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.cjs.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +2377 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.esm.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js +2382 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js +2 -0
- handyhelpers/static/node_modules/tippy.js/headless/dist/tippy-headless.umd.min.js.map +1 -0
- handyhelpers/static/node_modules/tippy.js/headless/package.json +16 -0
- handyhelpers/static/node_modules/tippy.js/index.d.ts +260 -0
- handyhelpers/static/node_modules/tippy.js/package.json +157 -0
- handyhelpers/static/node_modules/tippy.js/themes/light-border.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/light.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/material.css +1 -0
- handyhelpers/static/node_modules/tippy.js/themes/translucent.css +1 -0
- handyhelpers/static/node_modules/try-catch/ChangeLog +55 -0
- handyhelpers/static/node_modules/try-catch/LICENSE +21 -0
- handyhelpers/static/node_modules/try-catch/README.md +38 -0
- handyhelpers/static/node_modules/try-catch/package.json +34 -0
- handyhelpers/static/node_modules/try-to-catch/ChangeLog +64 -0
- handyhelpers/static/node_modules/try-to-catch/LICENSE +21 -0
- handyhelpers/static/node_modules/try-to-catch/README.md +74 -0
- handyhelpers/static/node_modules/try-to-catch/package.json +47 -0
- handyhelpers/static/node_modules/tslib/CopyrightNotice.txt +15 -0
- handyhelpers/static/node_modules/tslib/LICENSE.txt +12 -0
- handyhelpers/static/node_modules/tslib/README.md +164 -0
- handyhelpers/static/node_modules/tslib/SECURITY.md +41 -0
- handyhelpers/static/node_modules/tslib/modules/index.d.ts +38 -0
- handyhelpers/static/node_modules/tslib/modules/index.js +70 -0
- handyhelpers/static/node_modules/tslib/modules/package.json +3 -0
- handyhelpers/static/node_modules/tslib/package.json +47 -0
- handyhelpers/static/node_modules/tslib/tslib.d.ts +460 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.html +1 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.js +402 -0
- handyhelpers/static/node_modules/tslib/tslib.es6.mjs +401 -0
- handyhelpers/static/node_modules/tslib/tslib.html +1 -0
- handyhelpers/static/node_modules/tslib/tslib.js +484 -0
- handyhelpers/static/node_modules/uglify-js/LICENSE +29 -0
- handyhelpers/static/node_modules/uglify-js/README.md +1479 -0
- handyhelpers/static/node_modules/uglify-js/bin/uglifyjs +624 -0
- handyhelpers/static/node_modules/uglify-js/package.json +56 -0
- handyhelpers/static/node_modules/uglify-js/tools/domprops.html +456 -0
- handyhelpers/static/node_modules/uglify-js/tools/domprops.json +8327 -0
- handyhelpers/static/node_modules/uglify-js/tools/exports.js +8 -0
- handyhelpers/static/node_modules/uglify-js/tools/node.js +115 -0
- handyhelpers/static/node_modules/uglify-js/tools/tty.js +22 -0
- handyhelpers/static/node_modules/unicorn-magic/default.js +14 -0
- handyhelpers/static/node_modules/unicorn-magic/index.d.ts +29 -0
- handyhelpers/static/node_modules/unicorn-magic/license +9 -0
- handyhelpers/static/node_modules/unicorn-magic/node.js +7 -0
- handyhelpers/static/node_modules/unicorn-magic/package.json +49 -0
- handyhelpers/static/node_modules/unicorn-magic/readme.md +25 -0
- handyhelpers/static/node_modules/yocto-queue/index.d.ts +61 -0
- handyhelpers/static/node_modules/yocto-queue/index.js +78 -0
- handyhelpers/static/node_modules/yocto-queue/license +9 -0
- handyhelpers/static/node_modules/yocto-queue/package.json +48 -0
- handyhelpers/static/node_modules/yocto-queue/readme.md +70 -0
- handyhelpers/static/package.json +3 -1
- handyhelpers/static/yarn.lock +393 -20
- handyhelpers/templates/handyhelpers/generic/bs5/generic_index.html +5 -8
- handyhelpers/templates/handyhelpers/handyhelpers_base_bs5.htm +5 -1
- handyhelpers/templates/handyhelpers/handyhelpers_with_sidebar.htm +50 -3
- handyhelpers/templates/handyhelpers/htmx/bs5/filter_form/generic_modal_swap.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/form_wrapper.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form.htm +166 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/form/inline_form_disabled.htm +125 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/generic_modal_swap.htm +2 -3
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/content_title.htm +38 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/controls.htm +21 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/card.htm +17 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/list.htm +11 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/examples/table.htm +21 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/filter_form_modal_swap.htm +48 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/full.html +6 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_card.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_list.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_minimal.htm +7 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/htmx_option_multi_filter_view/wrapper_table.htm +18 -0
- handyhelpers/templates/handyhelpers/htmx/bs5/index.htm +34 -0
- handyhelpers/templates/handyhelpers/report/annual_stats.html +6 -0
- handyhelpers/templates/handyhelpers/report/annual_stats_content.htm +43 -0
- handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/annual_progress_content.htm +40 -39
- handyhelpers/templates/handyhelpers/report/chartjs/annual_stats.html +25 -36
- handyhelpers/templates/handyhelpers/report/chartjs/annual_trends_content.htm +35 -34
- handyhelpers/templates/handyhelpers/report/chartjs/day_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/month_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/week_count_chart.htm +1 -1
- handyhelpers/templates/handyhelpers/report/chartjs/year_count_chart.htm +1 -1
- handyhelpers/templatetags/form_tags.py +47 -0
- handyhelpers/templatetags/htmx_tags.py +21 -0
- handyhelpers/views/action.py +3 -1
- handyhelpers/views/calendar.py +33 -14
- handyhelpers/views/htmx.py +396 -4
- handyhelpers/views/report.py +12 -5
- handyhelpers/management/commands/generate_admin.py +0 -110
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/format.js +0 -9
- handyhelpers/static/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js +0 -81
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.d.ts +0 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js +0 -9
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/format.js.flow +0 -5
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.d.ts +0 -1
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js +0 -81
- handyhelpers/static/node_modules/@popperjs/core/lib/utils/validateModifiers.js.flow +0 -151
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/LICENSE +0 -0
- {django_handyhelpers-0.3.20.dist-info → django_handyhelpers-0.3.35.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1407 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Visitor = void 0;
|
4
|
+
/**
|
5
|
+
* @deprecated JavaScript API is deprecated. Please use Wasm plugin instead.
|
6
|
+
*/
|
7
|
+
class Visitor {
|
8
|
+
visitProgram(n) {
|
9
|
+
switch (n.type) {
|
10
|
+
case "Module":
|
11
|
+
return this.visitModule(n);
|
12
|
+
case "Script":
|
13
|
+
return this.visitScript(n);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
visitModule(m) {
|
17
|
+
m.body = this.visitModuleItems(m.body);
|
18
|
+
return m;
|
19
|
+
}
|
20
|
+
visitScript(m) {
|
21
|
+
m.body = this.visitStatements(m.body);
|
22
|
+
return m;
|
23
|
+
}
|
24
|
+
visitModuleItems(items) {
|
25
|
+
return items.map(this.visitModuleItem.bind(this));
|
26
|
+
}
|
27
|
+
visitModuleItem(n) {
|
28
|
+
switch (n.type) {
|
29
|
+
case "ExportDeclaration":
|
30
|
+
case "ExportDefaultDeclaration":
|
31
|
+
case "ExportNamedDeclaration":
|
32
|
+
case "ExportDefaultExpression":
|
33
|
+
case "ImportDeclaration":
|
34
|
+
case "ExportAllDeclaration":
|
35
|
+
case "TsImportEqualsDeclaration":
|
36
|
+
case "TsExportAssignment":
|
37
|
+
case "TsNamespaceExportDeclaration":
|
38
|
+
return this.visitModuleDeclaration(n);
|
39
|
+
default:
|
40
|
+
return this.visitStatement(n);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
visitModuleDeclaration(n) {
|
44
|
+
switch (n.type) {
|
45
|
+
case "ExportDeclaration":
|
46
|
+
return this.visitExportDeclaration(n);
|
47
|
+
case "ExportDefaultDeclaration":
|
48
|
+
return this.visitExportDefaultDeclaration(n);
|
49
|
+
case "ExportNamedDeclaration":
|
50
|
+
return this.visitExportNamedDeclaration(n);
|
51
|
+
case "ExportDefaultExpression":
|
52
|
+
return this.visitExportDefaultExpression(n);
|
53
|
+
case "ImportDeclaration":
|
54
|
+
return this.visitImportDeclaration(n);
|
55
|
+
case "ExportAllDeclaration":
|
56
|
+
return this.visitExportAllDeclaration(n);
|
57
|
+
case "TsImportEqualsDeclaration":
|
58
|
+
return this.visitTsImportEqualsDeclaration(n);
|
59
|
+
case "TsExportAssignment":
|
60
|
+
return this.visitTsExportAssignment(n);
|
61
|
+
case "TsNamespaceExportDeclaration":
|
62
|
+
return this.visitTsNamespaceExportDeclaration(n);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
visitTsNamespaceExportDeclaration(n) {
|
66
|
+
n.id = this.visitBindingIdentifier(n.id);
|
67
|
+
return n;
|
68
|
+
}
|
69
|
+
visitTsExportAssignment(n) {
|
70
|
+
n.expression = this.visitExpression(n.expression);
|
71
|
+
return n;
|
72
|
+
}
|
73
|
+
visitTsImportEqualsDeclaration(n) {
|
74
|
+
n.id = this.visitBindingIdentifier(n.id);
|
75
|
+
n.moduleRef = this.visitTsModuleReference(n.moduleRef);
|
76
|
+
return n;
|
77
|
+
}
|
78
|
+
visitTsModuleReference(n) {
|
79
|
+
switch (n.type) {
|
80
|
+
case "Identifier":
|
81
|
+
return this.visitIdentifierReference(n);
|
82
|
+
case "TsExternalModuleReference":
|
83
|
+
return this.visitTsExternalModuleReference(n);
|
84
|
+
case "TsQualifiedName":
|
85
|
+
return this.visitTsQualifiedName(n);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
visitTsExternalModuleReference(n) {
|
89
|
+
n.expression = this.visitStringLiteral(n.expression);
|
90
|
+
return n;
|
91
|
+
}
|
92
|
+
visitExportAllDeclaration(n) {
|
93
|
+
n.source = this.visitStringLiteral(n.source);
|
94
|
+
return n;
|
95
|
+
}
|
96
|
+
visitExportDefaultExpression(n) {
|
97
|
+
n.expression = this.visitExpression(n.expression);
|
98
|
+
return n;
|
99
|
+
}
|
100
|
+
visitExportNamedDeclaration(n) {
|
101
|
+
n.specifiers = this.visitExportSpecifiers(n.specifiers);
|
102
|
+
n.source = this.visitOptionalStringLiteral(n.source);
|
103
|
+
return n;
|
104
|
+
}
|
105
|
+
visitExportSpecifiers(nodes) {
|
106
|
+
return nodes.map(this.visitExportSpecifier.bind(this));
|
107
|
+
}
|
108
|
+
visitExportSpecifier(n) {
|
109
|
+
switch (n.type) {
|
110
|
+
case "ExportDefaultSpecifier":
|
111
|
+
return this.visitExportDefaultSpecifier(n);
|
112
|
+
case "ExportNamespaceSpecifier":
|
113
|
+
return this.visitExportNamespaceSpecifier(n);
|
114
|
+
case "ExportSpecifier":
|
115
|
+
return this.visitNamedExportSpecifier(n);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
visitNamedExportSpecifier(n) {
|
119
|
+
if (n.exported) {
|
120
|
+
n.exported = this.visitModuleExportName(n.exported);
|
121
|
+
}
|
122
|
+
n.orig = this.visitModuleExportName(n.orig);
|
123
|
+
return n;
|
124
|
+
}
|
125
|
+
visitModuleExportName(n) {
|
126
|
+
switch (n.type) {
|
127
|
+
case "Identifier":
|
128
|
+
return this.visitIdentifier(n);
|
129
|
+
case "StringLiteral":
|
130
|
+
return this.visitStringLiteral(n);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
visitExportNamespaceSpecifier(n) {
|
134
|
+
n.name = this.visitModuleExportName(n.name);
|
135
|
+
return n;
|
136
|
+
}
|
137
|
+
visitExportDefaultSpecifier(n) {
|
138
|
+
n.exported = this.visitBindingIdentifier(n.exported);
|
139
|
+
return n;
|
140
|
+
}
|
141
|
+
visitOptionalStringLiteral(n) {
|
142
|
+
if (n) {
|
143
|
+
return this.visitStringLiteral(n);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
visitExportDefaultDeclaration(n) {
|
147
|
+
n.decl = this.visitDefaultDeclaration(n.decl);
|
148
|
+
return n;
|
149
|
+
}
|
150
|
+
visitDefaultDeclaration(n) {
|
151
|
+
switch (n.type) {
|
152
|
+
case "ClassExpression":
|
153
|
+
return this.visitClassExpression(n);
|
154
|
+
case "FunctionExpression":
|
155
|
+
return this.visitFunctionExpression(n);
|
156
|
+
case "TsInterfaceDeclaration":
|
157
|
+
return this.visitTsInterfaceDeclaration(n);
|
158
|
+
}
|
159
|
+
}
|
160
|
+
visitFunctionExpression(n) {
|
161
|
+
n = this.visitFunction(n);
|
162
|
+
if (n.identifier) {
|
163
|
+
n.identifier = this.visitBindingIdentifier(n.identifier);
|
164
|
+
}
|
165
|
+
return n;
|
166
|
+
}
|
167
|
+
visitClassExpression(n) {
|
168
|
+
n = this.visitClass(n);
|
169
|
+
if (n.identifier) {
|
170
|
+
n.identifier = this.visitBindingIdentifier(n.identifier);
|
171
|
+
}
|
172
|
+
return n;
|
173
|
+
}
|
174
|
+
visitExportDeclaration(n) {
|
175
|
+
n.declaration = this.visitDeclaration(n.declaration);
|
176
|
+
return n;
|
177
|
+
}
|
178
|
+
visitArrayExpression(e) {
|
179
|
+
if (e.elements) {
|
180
|
+
e.elements = e.elements.map(this.visitArrayElement.bind(this));
|
181
|
+
}
|
182
|
+
return e;
|
183
|
+
}
|
184
|
+
visitArrayElement(e) {
|
185
|
+
if (e) {
|
186
|
+
return this.visitExprOrSpread(e);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
visitExprOrSpread(e) {
|
190
|
+
return Object.assign(Object.assign({}, e), { expression: this.visitExpression(e.expression) });
|
191
|
+
}
|
192
|
+
visitExprOrSpreads(nodes) {
|
193
|
+
return nodes.map(this.visitExprOrSpread.bind(this));
|
194
|
+
}
|
195
|
+
visitSpreadElement(e) {
|
196
|
+
e.arguments = this.visitExpression(e.arguments);
|
197
|
+
return e;
|
198
|
+
}
|
199
|
+
visitOptionalExpression(e) {
|
200
|
+
if (e) {
|
201
|
+
return this.visitExpression(e);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
visitArrowFunctionExpression(e) {
|
205
|
+
e.body = this.visitArrowBody(e.body);
|
206
|
+
e.params = this.visitPatterns(e.params);
|
207
|
+
e.returnType = this.visitTsTypeAnnotation(e.returnType);
|
208
|
+
e.typeParameters = this.visitTsTypeParameterDeclaration(e.typeParameters);
|
209
|
+
return e;
|
210
|
+
}
|
211
|
+
visitArrowBody(body) {
|
212
|
+
switch (body.type) {
|
213
|
+
case "BlockStatement":
|
214
|
+
return this.visitBlockStatement(body);
|
215
|
+
default:
|
216
|
+
return this.visitExpression(body);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
visitBlockStatement(block) {
|
220
|
+
block.stmts = this.visitStatements(block.stmts);
|
221
|
+
return block;
|
222
|
+
}
|
223
|
+
visitStatements(stmts) {
|
224
|
+
return stmts.map(this.visitStatement.bind(this));
|
225
|
+
}
|
226
|
+
visitStatement(stmt) {
|
227
|
+
switch (stmt.type) {
|
228
|
+
case "ClassDeclaration":
|
229
|
+
case "FunctionDeclaration":
|
230
|
+
case "TsEnumDeclaration":
|
231
|
+
case "TsInterfaceDeclaration":
|
232
|
+
case "TsModuleDeclaration":
|
233
|
+
case "TsTypeAliasDeclaration":
|
234
|
+
case "VariableDeclaration":
|
235
|
+
return this.visitDeclaration(stmt);
|
236
|
+
case "BreakStatement":
|
237
|
+
return this.visitBreakStatement(stmt);
|
238
|
+
case "BlockStatement":
|
239
|
+
return this.visitBlockStatement(stmt);
|
240
|
+
case "ContinueStatement":
|
241
|
+
return this.visitContinueStatement(stmt);
|
242
|
+
case "DebuggerStatement":
|
243
|
+
return this.visitDebuggerStatement(stmt);
|
244
|
+
case "DoWhileStatement":
|
245
|
+
return this.visitDoWhileStatement(stmt);
|
246
|
+
case "EmptyStatement":
|
247
|
+
return this.visitEmptyStatement(stmt);
|
248
|
+
case "ForInStatement":
|
249
|
+
return this.visitForInStatement(stmt);
|
250
|
+
case "ForOfStatement":
|
251
|
+
return this.visitForOfStatement(stmt);
|
252
|
+
case "ForStatement":
|
253
|
+
return this.visitForStatement(stmt);
|
254
|
+
case "IfStatement":
|
255
|
+
return this.visitIfStatement(stmt);
|
256
|
+
case "LabeledStatement":
|
257
|
+
return this.visitLabeledStatement(stmt);
|
258
|
+
case "ReturnStatement":
|
259
|
+
return this.visitReturnStatement(stmt);
|
260
|
+
case "SwitchStatement":
|
261
|
+
return this.visitSwitchStatement(stmt);
|
262
|
+
case "ThrowStatement":
|
263
|
+
return this.visitThrowStatement(stmt);
|
264
|
+
case "TryStatement":
|
265
|
+
return this.visitTryStatement(stmt);
|
266
|
+
case "WhileStatement":
|
267
|
+
return this.visitWhileStatement(stmt);
|
268
|
+
case "WithStatement":
|
269
|
+
return this.visitWithStatement(stmt);
|
270
|
+
case "ExpressionStatement":
|
271
|
+
return this.visitExpressionStatement(stmt);
|
272
|
+
default:
|
273
|
+
throw new Error(`Unknown statement type: ` + stmt.type);
|
274
|
+
}
|
275
|
+
}
|
276
|
+
visitSwitchStatement(stmt) {
|
277
|
+
stmt.discriminant = this.visitExpression(stmt.discriminant);
|
278
|
+
stmt.cases = this.visitSwitchCases(stmt.cases);
|
279
|
+
return stmt;
|
280
|
+
}
|
281
|
+
visitSwitchCases(cases) {
|
282
|
+
return cases.map(this.visitSwitchCase.bind(this));
|
283
|
+
}
|
284
|
+
visitSwitchCase(c) {
|
285
|
+
c.test = this.visitOptionalExpression(c.test);
|
286
|
+
c.consequent = this.visitStatements(c.consequent);
|
287
|
+
return c;
|
288
|
+
}
|
289
|
+
visitIfStatement(stmt) {
|
290
|
+
stmt.test = this.visitExpression(stmt.test);
|
291
|
+
stmt.consequent = this.visitStatement(stmt.consequent);
|
292
|
+
stmt.alternate = this.visitOptionalStatement(stmt.alternate);
|
293
|
+
return stmt;
|
294
|
+
}
|
295
|
+
visitOptionalStatement(stmt) {
|
296
|
+
if (stmt) {
|
297
|
+
return this.visitStatement(stmt);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
visitBreakStatement(stmt) {
|
301
|
+
if (stmt.label) {
|
302
|
+
stmt.label = this.visitLabelIdentifier(stmt.label);
|
303
|
+
}
|
304
|
+
return stmt;
|
305
|
+
}
|
306
|
+
visitWhileStatement(stmt) {
|
307
|
+
stmt.test = this.visitExpression(stmt.test);
|
308
|
+
stmt.body = this.visitStatement(stmt.body);
|
309
|
+
return stmt;
|
310
|
+
}
|
311
|
+
visitTryStatement(stmt) {
|
312
|
+
stmt.block = this.visitBlockStatement(stmt.block);
|
313
|
+
stmt.handler = this.visitCatchClause(stmt.handler);
|
314
|
+
if (stmt.finalizer) {
|
315
|
+
stmt.finalizer = this.visitBlockStatement(stmt.finalizer);
|
316
|
+
}
|
317
|
+
return stmt;
|
318
|
+
}
|
319
|
+
visitCatchClause(handler) {
|
320
|
+
if (handler) {
|
321
|
+
if (handler.param) {
|
322
|
+
handler.param = this.visitPattern(handler.param);
|
323
|
+
}
|
324
|
+
handler.body = this.visitBlockStatement(handler.body);
|
325
|
+
}
|
326
|
+
return handler;
|
327
|
+
}
|
328
|
+
visitThrowStatement(stmt) {
|
329
|
+
stmt.argument = this.visitExpression(stmt.argument);
|
330
|
+
return stmt;
|
331
|
+
}
|
332
|
+
visitReturnStatement(stmt) {
|
333
|
+
if (stmt.argument) {
|
334
|
+
stmt.argument = this.visitExpression(stmt.argument);
|
335
|
+
}
|
336
|
+
return stmt;
|
337
|
+
}
|
338
|
+
visitLabeledStatement(stmt) {
|
339
|
+
stmt.label = this.visitLabelIdentifier(stmt.label);
|
340
|
+
stmt.body = this.visitStatement(stmt.body);
|
341
|
+
return stmt;
|
342
|
+
}
|
343
|
+
visitForStatement(stmt) {
|
344
|
+
if (stmt.init) {
|
345
|
+
if (stmt.init.type === "VariableDeclaration") {
|
346
|
+
stmt.init = this.visitVariableDeclaration(stmt.init);
|
347
|
+
}
|
348
|
+
else {
|
349
|
+
stmt.init = this.visitOptionalExpression(stmt.init);
|
350
|
+
}
|
351
|
+
}
|
352
|
+
stmt.test = this.visitOptionalExpression(stmt.test);
|
353
|
+
stmt.update = this.visitOptionalExpression(stmt.update);
|
354
|
+
stmt.body = this.visitStatement(stmt.body);
|
355
|
+
return stmt;
|
356
|
+
}
|
357
|
+
visitForOfStatement(stmt) {
|
358
|
+
if (stmt.left.type === "VariableDeclaration") {
|
359
|
+
stmt.left = this.visitVariableDeclaration(stmt.left);
|
360
|
+
}
|
361
|
+
else {
|
362
|
+
stmt.left = this.visitPattern(stmt.left);
|
363
|
+
}
|
364
|
+
stmt.right = this.visitExpression(stmt.right);
|
365
|
+
stmt.body = this.visitStatement(stmt.body);
|
366
|
+
return stmt;
|
367
|
+
}
|
368
|
+
visitForInStatement(stmt) {
|
369
|
+
if (stmt.left.type === "VariableDeclaration") {
|
370
|
+
stmt.left = this.visitVariableDeclaration(stmt.left);
|
371
|
+
}
|
372
|
+
else {
|
373
|
+
stmt.left = this.visitPattern(stmt.left);
|
374
|
+
}
|
375
|
+
stmt.right = this.visitExpression(stmt.right);
|
376
|
+
stmt.body = this.visitStatement(stmt.body);
|
377
|
+
return stmt;
|
378
|
+
}
|
379
|
+
visitEmptyStatement(stmt) {
|
380
|
+
return stmt;
|
381
|
+
}
|
382
|
+
visitDoWhileStatement(stmt) {
|
383
|
+
stmt.body = this.visitStatement(stmt.body);
|
384
|
+
stmt.test = this.visitExpression(stmt.test);
|
385
|
+
return stmt;
|
386
|
+
}
|
387
|
+
visitDebuggerStatement(stmt) {
|
388
|
+
return stmt;
|
389
|
+
}
|
390
|
+
visitWithStatement(stmt) {
|
391
|
+
stmt.object = this.visitExpression(stmt.object);
|
392
|
+
stmt.body = this.visitStatement(stmt.body);
|
393
|
+
return stmt;
|
394
|
+
}
|
395
|
+
visitDeclaration(decl) {
|
396
|
+
switch (decl.type) {
|
397
|
+
case "ClassDeclaration":
|
398
|
+
return this.visitClassDeclaration(decl);
|
399
|
+
case "FunctionDeclaration":
|
400
|
+
return this.visitFunctionDeclaration(decl);
|
401
|
+
case "TsEnumDeclaration":
|
402
|
+
return this.visitTsEnumDeclaration(decl);
|
403
|
+
case "TsInterfaceDeclaration":
|
404
|
+
return this.visitTsInterfaceDeclaration(decl);
|
405
|
+
case "TsModuleDeclaration":
|
406
|
+
return this.visitTsModuleDeclaration(decl);
|
407
|
+
case "TsTypeAliasDeclaration":
|
408
|
+
return this.visitTsTypeAliasDeclaration(decl);
|
409
|
+
case "VariableDeclaration":
|
410
|
+
return this.visitVariableDeclaration(decl);
|
411
|
+
}
|
412
|
+
}
|
413
|
+
visitVariableDeclaration(n) {
|
414
|
+
n.declarations = this.visitVariableDeclarators(n.declarations);
|
415
|
+
return n;
|
416
|
+
}
|
417
|
+
visitVariableDeclarators(nodes) {
|
418
|
+
return nodes.map(this.visitVariableDeclarator.bind(this));
|
419
|
+
}
|
420
|
+
visitVariableDeclarator(n) {
|
421
|
+
n.id = this.visitPattern(n.id);
|
422
|
+
n.init = this.visitOptionalExpression(n.init);
|
423
|
+
return n;
|
424
|
+
}
|
425
|
+
visitTsTypeAliasDeclaration(n) {
|
426
|
+
n.id = this.visitBindingIdentifier(n.id);
|
427
|
+
n.typeAnnotation = this.visitTsType(n.typeAnnotation);
|
428
|
+
n.typeParams = this.visitTsTypeParameterDeclaration(n.typeParams);
|
429
|
+
return n;
|
430
|
+
}
|
431
|
+
visitTsModuleDeclaration(n) {
|
432
|
+
n.id = this.visitTsModuleName(n.id);
|
433
|
+
if (n.body) {
|
434
|
+
n.body = this.visitTsNamespaceBody(n.body);
|
435
|
+
}
|
436
|
+
return n;
|
437
|
+
}
|
438
|
+
visitTsModuleName(n) {
|
439
|
+
switch (n.type) {
|
440
|
+
case "Identifier":
|
441
|
+
return this.visitBindingIdentifier(n);
|
442
|
+
case "StringLiteral":
|
443
|
+
return this.visitStringLiteral(n);
|
444
|
+
}
|
445
|
+
}
|
446
|
+
visitTsNamespaceBody(n) {
|
447
|
+
if (n) {
|
448
|
+
switch (n.type) {
|
449
|
+
case "TsModuleBlock":
|
450
|
+
return this.visitTsModuleBlock(n);
|
451
|
+
case "TsNamespaceDeclaration":
|
452
|
+
return this.visitTsNamespaceDeclaration(n);
|
453
|
+
}
|
454
|
+
}
|
455
|
+
}
|
456
|
+
visitTsNamespaceDeclaration(n) {
|
457
|
+
const body = this.visitTsNamespaceBody(n.body);
|
458
|
+
if (body) {
|
459
|
+
n.body = body;
|
460
|
+
}
|
461
|
+
n.id = this.visitBindingIdentifier(n.id);
|
462
|
+
return n;
|
463
|
+
}
|
464
|
+
visitTsModuleBlock(n) {
|
465
|
+
n.body = this.visitModuleItems(n.body);
|
466
|
+
return n;
|
467
|
+
}
|
468
|
+
visitTsInterfaceDeclaration(n) {
|
469
|
+
n.id = this.visitBindingIdentifier(n.id);
|
470
|
+
n.typeParams = this.visitTsTypeParameterDeclaration(n.typeParams);
|
471
|
+
n.extends = this.visitTsExpressionsWithTypeArguments(n.extends);
|
472
|
+
n.body = this.visitTsInterfaceBody(n.body);
|
473
|
+
return n;
|
474
|
+
}
|
475
|
+
visitTsInterfaceBody(n) {
|
476
|
+
n.body = this.visitTsTypeElements(n.body);
|
477
|
+
return n;
|
478
|
+
}
|
479
|
+
visitTsTypeElements(nodes) {
|
480
|
+
return nodes.map(this.visitTsTypeElement.bind(this));
|
481
|
+
}
|
482
|
+
visitTsTypeElement(n) {
|
483
|
+
switch (n.type) {
|
484
|
+
case "TsCallSignatureDeclaration":
|
485
|
+
return this.visitTsCallSignatureDeclaration(n);
|
486
|
+
case "TsConstructSignatureDeclaration":
|
487
|
+
return this.visitTsConstructSignatureDeclaration(n);
|
488
|
+
case "TsPropertySignature":
|
489
|
+
return this.visitTsPropertySignature(n);
|
490
|
+
case "TsGetterSignature":
|
491
|
+
return this.visitTsGetterSignature(n);
|
492
|
+
case "TsSetterSignature":
|
493
|
+
return this.visitTsSetterSignature(n);
|
494
|
+
case "TsMethodSignature":
|
495
|
+
return this.visitTsMethodSignature(n);
|
496
|
+
case "TsIndexSignature":
|
497
|
+
return this.visitTsIndexSignature(n);
|
498
|
+
}
|
499
|
+
}
|
500
|
+
visitTsCallSignatureDeclaration(n) {
|
501
|
+
n.params = this.visitTsFnParameters(n.params);
|
502
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
503
|
+
return n;
|
504
|
+
}
|
505
|
+
visitTsConstructSignatureDeclaration(n) {
|
506
|
+
n.params = this.visitTsFnParameters(n.params);
|
507
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
508
|
+
return n;
|
509
|
+
}
|
510
|
+
visitTsPropertySignature(n) {
|
511
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
512
|
+
return n;
|
513
|
+
}
|
514
|
+
visitTsGetterSignature(n) {
|
515
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
516
|
+
return n;
|
517
|
+
}
|
518
|
+
visitTsSetterSignature(n) {
|
519
|
+
n.param = this.visitTsFnParameter(n.param);
|
520
|
+
return n;
|
521
|
+
}
|
522
|
+
visitTsMethodSignature(n) {
|
523
|
+
n.params = this.visitTsFnParameters(n.params);
|
524
|
+
n.typeAnn = this.visitTsTypeAnnotation(n.typeAnn);
|
525
|
+
return n;
|
526
|
+
}
|
527
|
+
visitTsEnumDeclaration(n) {
|
528
|
+
n.id = this.visitIdentifier(n.id);
|
529
|
+
n.members = this.visitTsEnumMembers(n.members);
|
530
|
+
return n;
|
531
|
+
}
|
532
|
+
visitTsEnumMembers(nodes) {
|
533
|
+
return nodes.map(this.visitTsEnumMember.bind(this));
|
534
|
+
}
|
535
|
+
visitTsEnumMember(n) {
|
536
|
+
n.id = this.visitTsEnumMemberId(n.id);
|
537
|
+
n.init = this.visitOptionalExpression(n.init);
|
538
|
+
return n;
|
539
|
+
}
|
540
|
+
visitTsEnumMemberId(n) {
|
541
|
+
switch (n.type) {
|
542
|
+
case "Identifier":
|
543
|
+
return this.visitBindingIdentifier(n);
|
544
|
+
case "StringLiteral":
|
545
|
+
return this.visitStringLiteral(n);
|
546
|
+
}
|
547
|
+
}
|
548
|
+
visitFunctionDeclaration(decl) {
|
549
|
+
decl.identifier = this.visitIdentifier(decl.identifier);
|
550
|
+
decl = this.visitFunction(decl);
|
551
|
+
return decl;
|
552
|
+
}
|
553
|
+
visitClassDeclaration(decl) {
|
554
|
+
decl = this.visitClass(decl);
|
555
|
+
decl.identifier = this.visitIdentifier(decl.identifier);
|
556
|
+
return decl;
|
557
|
+
}
|
558
|
+
visitClassBody(members) {
|
559
|
+
return members.map(this.visitClassMember.bind(this));
|
560
|
+
}
|
561
|
+
visitClassMember(member) {
|
562
|
+
switch (member.type) {
|
563
|
+
case "ClassMethod":
|
564
|
+
return this.visitClassMethod(member);
|
565
|
+
case "ClassProperty":
|
566
|
+
return this.visitClassProperty(member);
|
567
|
+
case "Constructor":
|
568
|
+
return this.visitConstructor(member);
|
569
|
+
case "PrivateMethod":
|
570
|
+
return this.visitPrivateMethod(member);
|
571
|
+
case "PrivateProperty":
|
572
|
+
return this.visitPrivateProperty(member);
|
573
|
+
case "TsIndexSignature":
|
574
|
+
return this.visitTsIndexSignature(member);
|
575
|
+
case "EmptyStatement":
|
576
|
+
return this.visitEmptyStatement(member);
|
577
|
+
case "StaticBlock":
|
578
|
+
return this.visitStaticBlock(member);
|
579
|
+
}
|
580
|
+
}
|
581
|
+
visitTsIndexSignature(n) {
|
582
|
+
n.params = this.visitTsFnParameters(n.params);
|
583
|
+
if (n.typeAnnotation)
|
584
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
585
|
+
return n;
|
586
|
+
}
|
587
|
+
visitTsFnParameters(params) {
|
588
|
+
return params.map(this.visitTsFnParameter.bind(this));
|
589
|
+
}
|
590
|
+
visitTsFnParameter(n) {
|
591
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
592
|
+
return n;
|
593
|
+
}
|
594
|
+
visitPrivateProperty(n) {
|
595
|
+
n.decorators = this.visitDecorators(n.decorators);
|
596
|
+
n.key = this.visitPrivateName(n.key);
|
597
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
598
|
+
n.value = this.visitOptionalExpression(n.value);
|
599
|
+
return n;
|
600
|
+
}
|
601
|
+
visitPrivateMethod(n) {
|
602
|
+
n.accessibility = this.visitAccessibility(n.accessibility);
|
603
|
+
n.function = this.visitFunction(n.function);
|
604
|
+
n.key = this.visitPrivateName(n.key);
|
605
|
+
return n;
|
606
|
+
}
|
607
|
+
visitPrivateName(n) {
|
608
|
+
return n;
|
609
|
+
}
|
610
|
+
visitConstructor(n) {
|
611
|
+
n.accessibility = this.visitAccessibility(n.accessibility);
|
612
|
+
n.key = this.visitPropertyName(n.key);
|
613
|
+
n.params = this.visitConstructorParameters(n.params);
|
614
|
+
if (n.body) {
|
615
|
+
n.body = this.visitBlockStatement(n.body);
|
616
|
+
}
|
617
|
+
return n;
|
618
|
+
}
|
619
|
+
visitConstructorParameters(nodes) {
|
620
|
+
return nodes.map(this.visitConstructorParameter.bind(this));
|
621
|
+
}
|
622
|
+
visitConstructorParameter(n) {
|
623
|
+
switch (n.type) {
|
624
|
+
case "TsParameterProperty":
|
625
|
+
return this.visitTsParameterProperty(n);
|
626
|
+
default:
|
627
|
+
return this.visitParameter(n);
|
628
|
+
}
|
629
|
+
}
|
630
|
+
visitStaticBlock(n) {
|
631
|
+
n.body = this.visitBlockStatement(n.body);
|
632
|
+
return n;
|
633
|
+
}
|
634
|
+
visitTsParameterProperty(n) {
|
635
|
+
n.accessibility = this.visitAccessibility(n.accessibility);
|
636
|
+
n.decorators = this.visitDecorators(n.decorators);
|
637
|
+
n.param = this.visitTsParameterPropertyParameter(n.param);
|
638
|
+
return n;
|
639
|
+
}
|
640
|
+
visitTsParameterPropertyParameter(n) {
|
641
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
642
|
+
return n;
|
643
|
+
}
|
644
|
+
visitPropertyName(key) {
|
645
|
+
switch (key.type) {
|
646
|
+
case "Identifier":
|
647
|
+
return this.visitBindingIdentifier(key);
|
648
|
+
case "StringLiteral":
|
649
|
+
return this.visitStringLiteral(key);
|
650
|
+
case "NumericLiteral":
|
651
|
+
return this.visitNumericLiteral(key);
|
652
|
+
case "BigIntLiteral":
|
653
|
+
return this.visitBigIntLiteral(key);
|
654
|
+
default:
|
655
|
+
return this.visitComputedPropertyKey(key);
|
656
|
+
}
|
657
|
+
}
|
658
|
+
visitAccessibility(n) {
|
659
|
+
return n;
|
660
|
+
}
|
661
|
+
visitClassProperty(n) {
|
662
|
+
n.accessibility = this.visitAccessibility(n.accessibility);
|
663
|
+
n.decorators = this.visitDecorators(n.decorators);
|
664
|
+
n.key = this.visitPropertyName(n.key);
|
665
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
666
|
+
n.value = this.visitOptionalExpression(n.value);
|
667
|
+
return n;
|
668
|
+
}
|
669
|
+
visitClassMethod(n) {
|
670
|
+
n.accessibility = this.visitAccessibility(n.accessibility);
|
671
|
+
n.function = this.visitFunction(n.function);
|
672
|
+
n.key = this.visitPropertyName(n.key);
|
673
|
+
return n;
|
674
|
+
}
|
675
|
+
visitComputedPropertyKey(n) {
|
676
|
+
n.expression = this.visitExpression(n.expression);
|
677
|
+
return n;
|
678
|
+
}
|
679
|
+
visitClass(n) {
|
680
|
+
n.decorators = this.visitDecorators(n.decorators);
|
681
|
+
n.superClass = this.visitOptionalExpression(n.superClass);
|
682
|
+
n.superTypeParams = this.visitTsTypeParameterInstantiation(n.superTypeParams);
|
683
|
+
if (n.implements) {
|
684
|
+
n.implements = this.visitTsExpressionsWithTypeArguments(n.implements);
|
685
|
+
}
|
686
|
+
n.body = this.visitClassBody(n.body);
|
687
|
+
return n;
|
688
|
+
}
|
689
|
+
visitFunction(n) {
|
690
|
+
n.decorators = this.visitDecorators(n.decorators);
|
691
|
+
n.params = this.visitParameters(n.params);
|
692
|
+
if (n.body) {
|
693
|
+
n.body = this.visitBlockStatement(n.body);
|
694
|
+
}
|
695
|
+
n.returnType = this.visitTsTypeAnnotation(n.returnType);
|
696
|
+
n.typeParameters = this.visitTsTypeParameterDeclaration(n.typeParameters);
|
697
|
+
return n;
|
698
|
+
}
|
699
|
+
visitTsExpressionsWithTypeArguments(nodes) {
|
700
|
+
return nodes.map(this.visitTsExpressionWithTypeArguments.bind(this));
|
701
|
+
}
|
702
|
+
visitTsExpressionWithTypeArguments(n) {
|
703
|
+
n.expression = this.visitExpression(n.expression);
|
704
|
+
n.typeArguments = this.visitTsTypeParameterInstantiation(n.typeArguments);
|
705
|
+
return n;
|
706
|
+
}
|
707
|
+
visitTsTypeParameterInstantiation(n) {
|
708
|
+
if (n) {
|
709
|
+
n.params = this.visitTsTypes(n.params);
|
710
|
+
}
|
711
|
+
return n;
|
712
|
+
}
|
713
|
+
visitTsTypes(nodes) {
|
714
|
+
return nodes.map(this.visitTsType.bind(this));
|
715
|
+
}
|
716
|
+
visitTsEntityName(n) {
|
717
|
+
switch (n.type) {
|
718
|
+
case "Identifier":
|
719
|
+
return this.visitBindingIdentifier(n);
|
720
|
+
case "TsQualifiedName":
|
721
|
+
return this.visitTsQualifiedName(n);
|
722
|
+
}
|
723
|
+
}
|
724
|
+
visitTsQualifiedName(n) {
|
725
|
+
n.left = this.visitTsEntityName(n.left);
|
726
|
+
n.right = this.visitIdentifier(n.right);
|
727
|
+
return n;
|
728
|
+
}
|
729
|
+
visitDecorators(nodes) {
|
730
|
+
if (nodes) {
|
731
|
+
return nodes.map(this.visitDecorator.bind(this));
|
732
|
+
}
|
733
|
+
}
|
734
|
+
visitDecorator(n) {
|
735
|
+
n.expression = this.visitExpression(n.expression);
|
736
|
+
return n;
|
737
|
+
}
|
738
|
+
visitExpressionStatement(stmt) {
|
739
|
+
stmt.expression = this.visitExpression(stmt.expression);
|
740
|
+
return stmt;
|
741
|
+
}
|
742
|
+
visitContinueStatement(stmt) {
|
743
|
+
if (stmt.label) {
|
744
|
+
stmt.label = this.visitLabelIdentifier(stmt.label);
|
745
|
+
}
|
746
|
+
return stmt;
|
747
|
+
}
|
748
|
+
visitExpression(n) {
|
749
|
+
switch (n.type) {
|
750
|
+
case "ArrayExpression":
|
751
|
+
return this.visitArrayExpression(n);
|
752
|
+
case "ArrowFunctionExpression":
|
753
|
+
return this.visitArrowFunctionExpression(n);
|
754
|
+
case "AssignmentExpression":
|
755
|
+
return this.visitAssignmentExpression(n);
|
756
|
+
case "AwaitExpression":
|
757
|
+
return this.visitAwaitExpression(n);
|
758
|
+
case "BigIntLiteral":
|
759
|
+
return this.visitBigIntLiteral(n);
|
760
|
+
case "BinaryExpression":
|
761
|
+
return this.visitBinaryExpression(n);
|
762
|
+
case "BooleanLiteral":
|
763
|
+
return this.visitBooleanLiteral(n);
|
764
|
+
case "CallExpression":
|
765
|
+
return this.visitCallExpression(n);
|
766
|
+
case "ClassExpression":
|
767
|
+
return this.visitClassExpression(n);
|
768
|
+
case "ConditionalExpression":
|
769
|
+
return this.visitConditionalExpression(n);
|
770
|
+
case "FunctionExpression":
|
771
|
+
return this.visitFunctionExpression(n);
|
772
|
+
case "Identifier":
|
773
|
+
return this.visitIdentifierReference(n);
|
774
|
+
case "JSXElement":
|
775
|
+
return this.visitJSXElement(n);
|
776
|
+
case "JSXEmptyExpression":
|
777
|
+
return this.visitJSXEmptyExpression(n);
|
778
|
+
case "JSXFragment":
|
779
|
+
return this.visitJSXFragment(n);
|
780
|
+
case "JSXMemberExpression":
|
781
|
+
return this.visitJSXMemberExpression(n);
|
782
|
+
case "JSXNamespacedName":
|
783
|
+
return this.visitJSXNamespacedName(n);
|
784
|
+
case "JSXText":
|
785
|
+
return this.visitJSXText(n);
|
786
|
+
case "MemberExpression":
|
787
|
+
return this.visitMemberExpression(n);
|
788
|
+
case "SuperPropExpression":
|
789
|
+
return this.visitSuperPropExpression(n);
|
790
|
+
case "MetaProperty":
|
791
|
+
return this.visitMetaProperty(n);
|
792
|
+
case "NewExpression":
|
793
|
+
return this.visitNewExpression(n);
|
794
|
+
case "NullLiteral":
|
795
|
+
return this.visitNullLiteral(n);
|
796
|
+
case "NumericLiteral":
|
797
|
+
return this.visitNumericLiteral(n);
|
798
|
+
case "ObjectExpression":
|
799
|
+
return this.visitObjectExpression(n);
|
800
|
+
case "ParenthesisExpression":
|
801
|
+
return this.visitParenthesisExpression(n);
|
802
|
+
case "PrivateName":
|
803
|
+
return this.visitPrivateName(n);
|
804
|
+
case "RegExpLiteral":
|
805
|
+
return this.visitRegExpLiteral(n);
|
806
|
+
case "SequenceExpression":
|
807
|
+
return this.visitSequenceExpression(n);
|
808
|
+
case "StringLiteral":
|
809
|
+
return this.visitStringLiteral(n);
|
810
|
+
case "TaggedTemplateExpression":
|
811
|
+
return this.visitTaggedTemplateExpression(n);
|
812
|
+
case "TemplateLiteral":
|
813
|
+
return this.visitTemplateLiteral(n);
|
814
|
+
case "ThisExpression":
|
815
|
+
return this.visitThisExpression(n);
|
816
|
+
case "TsAsExpression":
|
817
|
+
return this.visitTsAsExpression(n);
|
818
|
+
case "TsSatisfiesExpression":
|
819
|
+
return this.visitTsSatisfiesExpression(n);
|
820
|
+
case "TsNonNullExpression":
|
821
|
+
return this.visitTsNonNullExpression(n);
|
822
|
+
case "TsTypeAssertion":
|
823
|
+
return this.visitTsTypeAssertion(n);
|
824
|
+
case "TsConstAssertion":
|
825
|
+
return this.visitTsConstAssertion(n);
|
826
|
+
case "TsInstantiation":
|
827
|
+
return this.visitTsInstantiation(n);
|
828
|
+
case "UnaryExpression":
|
829
|
+
return this.visitUnaryExpression(n);
|
830
|
+
case "UpdateExpression":
|
831
|
+
return this.visitUpdateExpression(n);
|
832
|
+
case "YieldExpression":
|
833
|
+
return this.visitYieldExpression(n);
|
834
|
+
case "OptionalChainingExpression":
|
835
|
+
return this.visitOptionalChainingExpression(n);
|
836
|
+
case "Invalid":
|
837
|
+
return n;
|
838
|
+
}
|
839
|
+
}
|
840
|
+
visitOptionalChainingExpression(n) {
|
841
|
+
n.base = this.visitMemberExpressionOrOptionalChainingCall(n.base);
|
842
|
+
return n;
|
843
|
+
}
|
844
|
+
visitMemberExpressionOrOptionalChainingCall(n) {
|
845
|
+
switch (n.type) {
|
846
|
+
case "MemberExpression":
|
847
|
+
return this.visitMemberExpression(n);
|
848
|
+
case "CallExpression":
|
849
|
+
return this.visitOptionalChainingCall(n);
|
850
|
+
}
|
851
|
+
}
|
852
|
+
visitOptionalChainingCall(n) {
|
853
|
+
n.callee = this.visitExpression(n.callee);
|
854
|
+
n.arguments = this.visitExprOrSpreads(n.arguments);
|
855
|
+
if (n.typeArguments)
|
856
|
+
n.typeArguments = this.visitTsTypeParameterInstantiation(n.typeArguments);
|
857
|
+
return n;
|
858
|
+
}
|
859
|
+
visitAssignmentExpression(n) {
|
860
|
+
n.left = this.visitPatternOrExpression(n.left);
|
861
|
+
n.right = this.visitExpression(n.right);
|
862
|
+
return n;
|
863
|
+
}
|
864
|
+
visitPatternOrExpression(n) {
|
865
|
+
switch (n.type) {
|
866
|
+
case "ObjectPattern":
|
867
|
+
case "ArrayPattern":
|
868
|
+
case "Identifier":
|
869
|
+
case "AssignmentPattern":
|
870
|
+
case "RestElement":
|
871
|
+
return this.visitPattern(n);
|
872
|
+
default:
|
873
|
+
return this.visitExpression(n);
|
874
|
+
}
|
875
|
+
}
|
876
|
+
visitYieldExpression(n) {
|
877
|
+
n.argument = this.visitOptionalExpression(n.argument);
|
878
|
+
return n;
|
879
|
+
}
|
880
|
+
visitUpdateExpression(n) {
|
881
|
+
n.argument = this.visitExpression(n.argument);
|
882
|
+
return n;
|
883
|
+
}
|
884
|
+
visitUnaryExpression(n) {
|
885
|
+
n.argument = this.visitExpression(n.argument);
|
886
|
+
return n;
|
887
|
+
}
|
888
|
+
visitTsTypeAssertion(n) {
|
889
|
+
n.expression = this.visitExpression(n.expression);
|
890
|
+
n.typeAnnotation = this.visitTsType(n.typeAnnotation);
|
891
|
+
return n;
|
892
|
+
}
|
893
|
+
visitTsConstAssertion(n) {
|
894
|
+
n.expression = this.visitExpression(n.expression);
|
895
|
+
return n;
|
896
|
+
}
|
897
|
+
visitTsInstantiation(n) {
|
898
|
+
n.expression = this.visitExpression(n.expression);
|
899
|
+
return n;
|
900
|
+
}
|
901
|
+
visitTsNonNullExpression(n) {
|
902
|
+
n.expression = this.visitExpression(n.expression);
|
903
|
+
return n;
|
904
|
+
}
|
905
|
+
visitTsAsExpression(n) {
|
906
|
+
n.expression = this.visitExpression(n.expression);
|
907
|
+
n.typeAnnotation = this.visitTsType(n.typeAnnotation);
|
908
|
+
return n;
|
909
|
+
}
|
910
|
+
visitTsSatisfiesExpression(n) {
|
911
|
+
n.expression = this.visitExpression(n.expression);
|
912
|
+
n.typeAnnotation = this.visitTsType(n.typeAnnotation);
|
913
|
+
return n;
|
914
|
+
}
|
915
|
+
visitThisExpression(n) {
|
916
|
+
return n;
|
917
|
+
}
|
918
|
+
visitTemplateLiteral(n) {
|
919
|
+
n.expressions = n.expressions.map(this.visitExpression.bind(this));
|
920
|
+
return n;
|
921
|
+
}
|
922
|
+
visitParameters(n) {
|
923
|
+
return n.map(this.visitParameter.bind(this));
|
924
|
+
}
|
925
|
+
visitParameter(n) {
|
926
|
+
n.pat = this.visitPattern(n.pat);
|
927
|
+
return n;
|
928
|
+
}
|
929
|
+
visitTaggedTemplateExpression(n) {
|
930
|
+
n.tag = this.visitExpression(n.tag);
|
931
|
+
const template = this.visitTemplateLiteral(n.template);
|
932
|
+
if (template.type === "TemplateLiteral") {
|
933
|
+
n.template = template;
|
934
|
+
}
|
935
|
+
return n;
|
936
|
+
}
|
937
|
+
visitSequenceExpression(n) {
|
938
|
+
n.expressions = n.expressions.map(this.visitExpression.bind(this));
|
939
|
+
return n;
|
940
|
+
}
|
941
|
+
visitRegExpLiteral(n) {
|
942
|
+
return n;
|
943
|
+
}
|
944
|
+
visitParenthesisExpression(n) {
|
945
|
+
n.expression = this.visitExpression(n.expression);
|
946
|
+
return n;
|
947
|
+
}
|
948
|
+
visitObjectExpression(n) {
|
949
|
+
if (n.properties) {
|
950
|
+
n.properties = this.visitObjectProperties(n.properties);
|
951
|
+
}
|
952
|
+
return n;
|
953
|
+
}
|
954
|
+
visitObjectProperties(nodes) {
|
955
|
+
return nodes.map(this.visitObjectProperty.bind(this));
|
956
|
+
}
|
957
|
+
visitObjectProperty(n) {
|
958
|
+
switch (n.type) {
|
959
|
+
case "SpreadElement":
|
960
|
+
return this.visitSpreadElement(n);
|
961
|
+
default:
|
962
|
+
return this.visitProperty(n);
|
963
|
+
}
|
964
|
+
}
|
965
|
+
visitProperty(n) {
|
966
|
+
switch (n.type) {
|
967
|
+
case "Identifier":
|
968
|
+
return this.visitIdentifier(n);
|
969
|
+
case "AssignmentProperty":
|
970
|
+
return this.visitAssignmentProperty(n);
|
971
|
+
case "GetterProperty":
|
972
|
+
return this.visitGetterProperty(n);
|
973
|
+
case "KeyValueProperty":
|
974
|
+
return this.visitKeyValueProperty(n);
|
975
|
+
case "MethodProperty":
|
976
|
+
return this.visitMethodProperty(n);
|
977
|
+
case "SetterProperty":
|
978
|
+
return this.visitSetterProperty(n);
|
979
|
+
}
|
980
|
+
}
|
981
|
+
visitSetterProperty(n) {
|
982
|
+
n.key = this.visitPropertyName(n.key);
|
983
|
+
n.param = this.visitPattern(n.param);
|
984
|
+
if (n.body) {
|
985
|
+
n.body = this.visitBlockStatement(n.body);
|
986
|
+
}
|
987
|
+
return n;
|
988
|
+
}
|
989
|
+
visitMethodProperty(n) {
|
990
|
+
n.key = this.visitPropertyName(n.key);
|
991
|
+
if (n.body) {
|
992
|
+
n.body = this.visitBlockStatement(n.body);
|
993
|
+
}
|
994
|
+
n.decorators = this.visitDecorators(n.decorators);
|
995
|
+
n.params = this.visitParameters(n.params);
|
996
|
+
n.returnType = this.visitTsTypeAnnotation(n.returnType);
|
997
|
+
n.typeParameters = this.visitTsTypeParameterDeclaration(n.typeParameters);
|
998
|
+
return n;
|
999
|
+
}
|
1000
|
+
visitKeyValueProperty(n) {
|
1001
|
+
n.key = this.visitPropertyName(n.key);
|
1002
|
+
n.value = this.visitExpression(n.value);
|
1003
|
+
return n;
|
1004
|
+
}
|
1005
|
+
visitGetterProperty(n) {
|
1006
|
+
n.key = this.visitPropertyName(n.key);
|
1007
|
+
if (n.body) {
|
1008
|
+
n.body = this.visitBlockStatement(n.body);
|
1009
|
+
}
|
1010
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
1011
|
+
return n;
|
1012
|
+
}
|
1013
|
+
visitAssignmentProperty(n) {
|
1014
|
+
n.key = this.visitIdentifier(n.key);
|
1015
|
+
n.value = this.visitExpression(n.value);
|
1016
|
+
return n;
|
1017
|
+
}
|
1018
|
+
visitNullLiteral(n) {
|
1019
|
+
return n;
|
1020
|
+
}
|
1021
|
+
visitNewExpression(n) {
|
1022
|
+
n.callee = this.visitExpression(n.callee);
|
1023
|
+
if (n.arguments) {
|
1024
|
+
n.arguments = this.visitArguments(n.arguments);
|
1025
|
+
}
|
1026
|
+
n.typeArguments = this.visitTsTypeArguments(n.typeArguments);
|
1027
|
+
return n;
|
1028
|
+
}
|
1029
|
+
visitTsTypeArguments(n) {
|
1030
|
+
if (n) {
|
1031
|
+
n.params = this.visitTsTypes(n.params);
|
1032
|
+
}
|
1033
|
+
return n;
|
1034
|
+
}
|
1035
|
+
visitArguments(nodes) {
|
1036
|
+
return nodes.map(this.visitArgument.bind(this));
|
1037
|
+
}
|
1038
|
+
visitArgument(n) {
|
1039
|
+
n.expression = this.visitExpression(n.expression);
|
1040
|
+
return n;
|
1041
|
+
}
|
1042
|
+
visitMetaProperty(n) {
|
1043
|
+
return n;
|
1044
|
+
}
|
1045
|
+
visitMemberExpression(n) {
|
1046
|
+
n.object = this.visitExpression(n.object);
|
1047
|
+
switch (n.property.type) {
|
1048
|
+
case "Computed": {
|
1049
|
+
n.property = this.visitComputedPropertyKey(n.property);
|
1050
|
+
return n;
|
1051
|
+
}
|
1052
|
+
case "Identifier": {
|
1053
|
+
n.property = this.visitIdentifier(n.property);
|
1054
|
+
return n;
|
1055
|
+
}
|
1056
|
+
case "PrivateName": {
|
1057
|
+
n.property = this.visitPrivateName(n.property);
|
1058
|
+
return n;
|
1059
|
+
}
|
1060
|
+
}
|
1061
|
+
}
|
1062
|
+
visitSuperPropExpression(n) {
|
1063
|
+
switch (n.property.type) {
|
1064
|
+
case "Computed": {
|
1065
|
+
n.property = this.visitComputedPropertyKey(n.property);
|
1066
|
+
return n;
|
1067
|
+
}
|
1068
|
+
case "Identifier": {
|
1069
|
+
n.property = this.visitIdentifier(n.property);
|
1070
|
+
return n;
|
1071
|
+
}
|
1072
|
+
}
|
1073
|
+
}
|
1074
|
+
visitCallee(n) {
|
1075
|
+
if (n.type === "Super" || n.type === "Import") {
|
1076
|
+
return n;
|
1077
|
+
}
|
1078
|
+
return this.visitExpression(n);
|
1079
|
+
}
|
1080
|
+
visitJSXText(n) {
|
1081
|
+
return n;
|
1082
|
+
}
|
1083
|
+
visitJSXNamespacedName(n) {
|
1084
|
+
n.namespace = this.visitIdentifierReference(n.namespace);
|
1085
|
+
n.name = this.visitIdentifierReference(n.name);
|
1086
|
+
return n;
|
1087
|
+
}
|
1088
|
+
visitJSXMemberExpression(n) {
|
1089
|
+
n.object = this.visitJSXObject(n.object);
|
1090
|
+
n.property = this.visitIdentifierReference(n.property);
|
1091
|
+
return n;
|
1092
|
+
}
|
1093
|
+
visitJSXObject(n) {
|
1094
|
+
switch (n.type) {
|
1095
|
+
case "Identifier":
|
1096
|
+
return this.visitIdentifierReference(n);
|
1097
|
+
case "JSXMemberExpression":
|
1098
|
+
return this.visitJSXMemberExpression(n);
|
1099
|
+
}
|
1100
|
+
}
|
1101
|
+
visitJSXFragment(n) {
|
1102
|
+
n.opening = this.visitJSXOpeningFragment(n.opening);
|
1103
|
+
if (n.children) {
|
1104
|
+
n.children = this.visitJSXElementChildren(n.children);
|
1105
|
+
}
|
1106
|
+
n.closing = this.visitJSXClosingFragment(n.closing);
|
1107
|
+
return n;
|
1108
|
+
}
|
1109
|
+
visitJSXClosingFragment(n) {
|
1110
|
+
return n;
|
1111
|
+
}
|
1112
|
+
visitJSXElementChildren(nodes) {
|
1113
|
+
return nodes.map(this.visitJSXElementChild.bind(this));
|
1114
|
+
}
|
1115
|
+
visitJSXElementChild(n) {
|
1116
|
+
switch (n.type) {
|
1117
|
+
case "JSXElement":
|
1118
|
+
return this.visitJSXElement(n);
|
1119
|
+
case "JSXExpressionContainer":
|
1120
|
+
return this.visitJSXExpressionContainer(n);
|
1121
|
+
case "JSXFragment":
|
1122
|
+
return this.visitJSXFragment(n);
|
1123
|
+
case "JSXSpreadChild":
|
1124
|
+
return this.visitJSXSpreadChild(n);
|
1125
|
+
case "JSXText":
|
1126
|
+
return this.visitJSXText(n);
|
1127
|
+
}
|
1128
|
+
}
|
1129
|
+
visitJSXExpressionContainer(n) {
|
1130
|
+
n.expression = this.visitExpression(n.expression);
|
1131
|
+
return n;
|
1132
|
+
}
|
1133
|
+
visitJSXSpreadChild(n) {
|
1134
|
+
n.expression = this.visitExpression(n.expression);
|
1135
|
+
return n;
|
1136
|
+
}
|
1137
|
+
visitJSXOpeningFragment(n) {
|
1138
|
+
return n;
|
1139
|
+
}
|
1140
|
+
visitJSXEmptyExpression(n) {
|
1141
|
+
return n;
|
1142
|
+
}
|
1143
|
+
visitJSXElement(n) {
|
1144
|
+
n.opening = this.visitJSXOpeningElement(n.opening);
|
1145
|
+
n.children = this.visitJSXElementChildren(n.children);
|
1146
|
+
n.closing = this.visitJSXClosingElement(n.closing);
|
1147
|
+
return n;
|
1148
|
+
}
|
1149
|
+
visitJSXClosingElement(n) {
|
1150
|
+
if (n) {
|
1151
|
+
n.name = this.visitJSXElementName(n.name);
|
1152
|
+
}
|
1153
|
+
return n;
|
1154
|
+
}
|
1155
|
+
visitJSXElementName(n) {
|
1156
|
+
switch (n.type) {
|
1157
|
+
case "Identifier":
|
1158
|
+
return this.visitIdentifierReference(n);
|
1159
|
+
case "JSXMemberExpression":
|
1160
|
+
return this.visitJSXMemberExpression(n);
|
1161
|
+
case "JSXNamespacedName":
|
1162
|
+
return this.visitJSXNamespacedName(n);
|
1163
|
+
}
|
1164
|
+
}
|
1165
|
+
visitJSXOpeningElement(n) {
|
1166
|
+
n.name = this.visitJSXElementName(n.name);
|
1167
|
+
n.typeArguments = this.visitTsTypeParameterInstantiation(n.typeArguments);
|
1168
|
+
n.attributes = this.visitJSXAttributeOrSpreads(n.attributes);
|
1169
|
+
return n;
|
1170
|
+
}
|
1171
|
+
visitJSXAttributes(attrs) {
|
1172
|
+
if (attrs)
|
1173
|
+
return attrs.map(this.visitJSXAttributeOrSpread.bind(this));
|
1174
|
+
}
|
1175
|
+
visitJSXAttributeOrSpread(n) {
|
1176
|
+
switch (n.type) {
|
1177
|
+
case "JSXAttribute":
|
1178
|
+
return this.visitJSXAttribute(n);
|
1179
|
+
case "SpreadElement":
|
1180
|
+
return this.visitSpreadElement(n);
|
1181
|
+
}
|
1182
|
+
}
|
1183
|
+
visitJSXAttributeOrSpreads(nodes) {
|
1184
|
+
return nodes.map(this.visitJSXAttributeOrSpread.bind(this));
|
1185
|
+
}
|
1186
|
+
visitJSXAttribute(n) {
|
1187
|
+
n.name = this.visitJSXAttributeName(n.name);
|
1188
|
+
n.value = this.visitJSXAttributeValue(n.value);
|
1189
|
+
return n;
|
1190
|
+
}
|
1191
|
+
visitJSXAttributeValue(n) {
|
1192
|
+
if (!n)
|
1193
|
+
return n;
|
1194
|
+
switch (n.type) {
|
1195
|
+
case "BooleanLiteral":
|
1196
|
+
return this.visitBooleanLiteral(n);
|
1197
|
+
case "NullLiteral":
|
1198
|
+
return this.visitNullLiteral(n);
|
1199
|
+
case "NumericLiteral":
|
1200
|
+
return this.visitNumericLiteral(n);
|
1201
|
+
case "JSXText":
|
1202
|
+
return this.visitJSXText(n);
|
1203
|
+
case "StringLiteral":
|
1204
|
+
return this.visitStringLiteral(n);
|
1205
|
+
case "JSXElement":
|
1206
|
+
return this.visitJSXElement(n);
|
1207
|
+
case "JSXExpressionContainer":
|
1208
|
+
return this.visitJSXExpressionContainer(n);
|
1209
|
+
case "JSXFragment":
|
1210
|
+
return this.visitJSXFragment(n);
|
1211
|
+
}
|
1212
|
+
return n;
|
1213
|
+
}
|
1214
|
+
visitJSXAttributeName(n) {
|
1215
|
+
switch (n.type) {
|
1216
|
+
case "Identifier":
|
1217
|
+
return this.visitIdentifierReference(n);
|
1218
|
+
case "JSXNamespacedName":
|
1219
|
+
return this.visitJSXNamespacedName(n);
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
visitConditionalExpression(n) {
|
1223
|
+
n.test = this.visitExpression(n.test);
|
1224
|
+
n.consequent = this.visitExpression(n.consequent);
|
1225
|
+
n.alternate = this.visitExpression(n.alternate);
|
1226
|
+
return n;
|
1227
|
+
}
|
1228
|
+
visitCallExpression(n) {
|
1229
|
+
n.callee = this.visitCallee(n.callee);
|
1230
|
+
n.typeArguments = this.visitTsTypeParameterInstantiation(n.typeArguments);
|
1231
|
+
if (n.arguments) {
|
1232
|
+
n.arguments = this.visitArguments(n.arguments);
|
1233
|
+
}
|
1234
|
+
return n;
|
1235
|
+
}
|
1236
|
+
visitBooleanLiteral(n) {
|
1237
|
+
return n;
|
1238
|
+
}
|
1239
|
+
visitBinaryExpression(n) {
|
1240
|
+
n.left = this.visitExpression(n.left);
|
1241
|
+
n.right = this.visitExpression(n.right);
|
1242
|
+
return n;
|
1243
|
+
}
|
1244
|
+
visitAwaitExpression(n) {
|
1245
|
+
n.argument = this.visitExpression(n.argument);
|
1246
|
+
return n;
|
1247
|
+
}
|
1248
|
+
visitTsTypeParameterDeclaration(n) {
|
1249
|
+
if (n) {
|
1250
|
+
n.parameters = this.visitTsTypeParameters(n.parameters);
|
1251
|
+
}
|
1252
|
+
return n;
|
1253
|
+
}
|
1254
|
+
visitTsTypeParameters(nodes) {
|
1255
|
+
return nodes.map(this.visitTsTypeParameter.bind(this));
|
1256
|
+
}
|
1257
|
+
visitTsTypeParameter(n) {
|
1258
|
+
if (n.constraint) {
|
1259
|
+
n.constraint = this.visitTsType(n.constraint);
|
1260
|
+
}
|
1261
|
+
if (n.default) {
|
1262
|
+
n.default = this.visitTsType(n.default);
|
1263
|
+
}
|
1264
|
+
n.name = this.visitIdentifierReference(n.name);
|
1265
|
+
return n;
|
1266
|
+
}
|
1267
|
+
visitTsTypeAnnotation(a) {
|
1268
|
+
if (a) {
|
1269
|
+
a.typeAnnotation = this.visitTsType(a.typeAnnotation);
|
1270
|
+
}
|
1271
|
+
return a;
|
1272
|
+
}
|
1273
|
+
visitTsType(n) {
|
1274
|
+
throw new Error("Method visitTsType not implemented.");
|
1275
|
+
}
|
1276
|
+
visitPatterns(nodes) {
|
1277
|
+
return nodes.map(this.visitPattern.bind(this));
|
1278
|
+
}
|
1279
|
+
visitImportDeclaration(n) {
|
1280
|
+
n.source = this.visitStringLiteral(n.source);
|
1281
|
+
n.specifiers = this.visitImportSpecifiers(n.specifiers || []);
|
1282
|
+
return n;
|
1283
|
+
}
|
1284
|
+
visitImportSpecifiers(nodes) {
|
1285
|
+
return nodes.map(this.visitImportSpecifier.bind(this));
|
1286
|
+
}
|
1287
|
+
visitImportSpecifier(node) {
|
1288
|
+
switch (node.type) {
|
1289
|
+
case "ImportDefaultSpecifier":
|
1290
|
+
return this.visitImportDefaultSpecifier(node);
|
1291
|
+
case "ImportNamespaceSpecifier":
|
1292
|
+
return this.visitImportNamespaceSpecifier(node);
|
1293
|
+
case "ImportSpecifier":
|
1294
|
+
return this.visitNamedImportSpecifier(node);
|
1295
|
+
}
|
1296
|
+
}
|
1297
|
+
visitNamedImportSpecifier(node) {
|
1298
|
+
node.local = this.visitBindingIdentifier(node.local);
|
1299
|
+
if (node.imported) {
|
1300
|
+
node.imported = this.visitModuleExportName(node.imported);
|
1301
|
+
}
|
1302
|
+
return node;
|
1303
|
+
}
|
1304
|
+
visitImportNamespaceSpecifier(node) {
|
1305
|
+
node.local = this.visitBindingIdentifier(node.local);
|
1306
|
+
return node;
|
1307
|
+
}
|
1308
|
+
visitImportDefaultSpecifier(node) {
|
1309
|
+
node.local = this.visitBindingIdentifier(node.local);
|
1310
|
+
return node;
|
1311
|
+
}
|
1312
|
+
visitBindingIdentifier(i) {
|
1313
|
+
if (i.typeAnnotation) {
|
1314
|
+
i.typeAnnotation = this.visitTsTypeAnnotation(i.typeAnnotation);
|
1315
|
+
}
|
1316
|
+
return this.visitIdentifier(i);
|
1317
|
+
}
|
1318
|
+
visitIdentifierReference(i) {
|
1319
|
+
return this.visitIdentifier(i);
|
1320
|
+
}
|
1321
|
+
visitLabelIdentifier(label) {
|
1322
|
+
return this.visitIdentifier(label);
|
1323
|
+
}
|
1324
|
+
visitIdentifier(n) {
|
1325
|
+
return n;
|
1326
|
+
}
|
1327
|
+
visitStringLiteral(n) {
|
1328
|
+
return n;
|
1329
|
+
}
|
1330
|
+
visitNumericLiteral(n) {
|
1331
|
+
return n;
|
1332
|
+
}
|
1333
|
+
visitBigIntLiteral(n) {
|
1334
|
+
return n;
|
1335
|
+
}
|
1336
|
+
visitPattern(n) {
|
1337
|
+
switch (n.type) {
|
1338
|
+
case "Identifier":
|
1339
|
+
return this.visitBindingIdentifier(n);
|
1340
|
+
case "ArrayPattern":
|
1341
|
+
return this.visitArrayPattern(n);
|
1342
|
+
case "ObjectPattern":
|
1343
|
+
return this.visitObjectPattern(n);
|
1344
|
+
case "AssignmentPattern":
|
1345
|
+
return this.visitAssignmentPattern(n);
|
1346
|
+
case "RestElement":
|
1347
|
+
return this.visitRestElement(n);
|
1348
|
+
default:
|
1349
|
+
return this.visitExpression(n);
|
1350
|
+
}
|
1351
|
+
}
|
1352
|
+
visitRestElement(n) {
|
1353
|
+
n.argument = this.visitPattern(n.argument);
|
1354
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
1355
|
+
return n;
|
1356
|
+
}
|
1357
|
+
visitAssignmentPattern(n) {
|
1358
|
+
n.left = this.visitPattern(n.left);
|
1359
|
+
n.right = this.visitExpression(n.right);
|
1360
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
1361
|
+
return n;
|
1362
|
+
}
|
1363
|
+
visitObjectPattern(n) {
|
1364
|
+
n.properties = this.visitObjectPatternProperties(n.properties || []);
|
1365
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
1366
|
+
return n;
|
1367
|
+
}
|
1368
|
+
visitObjectPatternProperties(nodes) {
|
1369
|
+
return nodes.map(this.visitObjectPatternProperty.bind(this));
|
1370
|
+
}
|
1371
|
+
visitObjectPatternProperty(n) {
|
1372
|
+
switch (n.type) {
|
1373
|
+
case "AssignmentPatternProperty":
|
1374
|
+
return this.visitAssignmentPatternProperty(n);
|
1375
|
+
case "KeyValuePatternProperty":
|
1376
|
+
return this.visitKeyValuePatternProperty(n);
|
1377
|
+
case "RestElement":
|
1378
|
+
return this.visitRestElement(n);
|
1379
|
+
}
|
1380
|
+
}
|
1381
|
+
visitKeyValuePatternProperty(n) {
|
1382
|
+
n.key = this.visitPropertyName(n.key);
|
1383
|
+
n.value = this.visitPattern(n.value);
|
1384
|
+
return n;
|
1385
|
+
}
|
1386
|
+
visitAssignmentPatternProperty(n) {
|
1387
|
+
n.key = this.visitBindingIdentifier(n.key);
|
1388
|
+
n.value = this.visitOptionalExpression(n.value);
|
1389
|
+
return n;
|
1390
|
+
}
|
1391
|
+
visitArrayPattern(n) {
|
1392
|
+
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
1393
|
+
n.elements = this.visitArrayPatternElements(n.elements);
|
1394
|
+
return n;
|
1395
|
+
}
|
1396
|
+
visitArrayPatternElements(nodes) {
|
1397
|
+
return nodes.map(this.visitArrayPatternElement.bind(this));
|
1398
|
+
}
|
1399
|
+
visitArrayPatternElement(n) {
|
1400
|
+
if (n) {
|
1401
|
+
n = this.visitPattern(n);
|
1402
|
+
}
|
1403
|
+
return n;
|
1404
|
+
}
|
1405
|
+
}
|
1406
|
+
exports.Visitor = Visitor;
|
1407
|
+
exports.default = Visitor;
|