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,247 @@
|
|
1
|
+
import {type Options as LocatePathOptions} from 'locate-path';
|
2
|
+
|
3
|
+
/**
|
4
|
+
Return this in a `matcher` function to stop the search and force `findUp` to immediately return `undefined`.
|
5
|
+
*/
|
6
|
+
export const findUpStop: unique symbol;
|
7
|
+
|
8
|
+
export type Match = string | typeof findUpStop | undefined;
|
9
|
+
|
10
|
+
export type Options = {
|
11
|
+
/**
|
12
|
+
A directory path where the search halts if no matches are found before reaching this point.
|
13
|
+
|
14
|
+
Default: Root directory
|
15
|
+
*/
|
16
|
+
readonly stopAt?: string;
|
17
|
+
} & LocatePathOptions;
|
18
|
+
|
19
|
+
/**
|
20
|
+
Find a file or directory by walking up parent directories.
|
21
|
+
|
22
|
+
@param name - The name of the file or directory to find. Can be multiple.
|
23
|
+
@returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found.
|
24
|
+
|
25
|
+
@example
|
26
|
+
```
|
27
|
+
// /
|
28
|
+
// └── Users
|
29
|
+
// └── sindresorhus
|
30
|
+
// ├── unicorn.png
|
31
|
+
// └── foo
|
32
|
+
// └── bar
|
33
|
+
// ├── baz
|
34
|
+
// └── example.js
|
35
|
+
|
36
|
+
// example.js
|
37
|
+
import {findUp} from 'find-up';
|
38
|
+
|
39
|
+
console.log(await findUp('unicorn.png'));
|
40
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
41
|
+
|
42
|
+
console.log(await findUp(['rainbow.png', 'unicorn.png']));
|
43
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
44
|
+
```
|
45
|
+
*/
|
46
|
+
export function findUp(name: string | readonly string[], options?: Options): Promise<string | undefined>;
|
47
|
+
|
48
|
+
/**
|
49
|
+
Find a file or directory by walking up parent directories.
|
50
|
+
|
51
|
+
@param matcher - Called for each directory in the search. Return a path or `findUpStop` to stop the search.
|
52
|
+
@returns The first path found or `undefined` if none could be found.
|
53
|
+
|
54
|
+
@example
|
55
|
+
```
|
56
|
+
import path from 'node:path';
|
57
|
+
import {findUp, pathExists} from 'find-up';
|
58
|
+
|
59
|
+
console.log(await findUp(async directory => {
|
60
|
+
const hasUnicorns = await pathExists(path.join(directory, 'unicorn.png'));
|
61
|
+
return hasUnicorns && directory;
|
62
|
+
}, {type: 'directory'}));
|
63
|
+
//=> '/Users/sindresorhus'
|
64
|
+
```
|
65
|
+
*/
|
66
|
+
export function findUp(matcher: (directory: string) => (Match | Promise<Match>), options?: Options): Promise<string | undefined>;
|
67
|
+
|
68
|
+
/**
|
69
|
+
Synchronously find a file or directory by walking up parent directories.
|
70
|
+
|
71
|
+
@param name - The name of the file or directory to find. Can be multiple.
|
72
|
+
@returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found.
|
73
|
+
|
74
|
+
@example
|
75
|
+
```
|
76
|
+
// /
|
77
|
+
// └── Users
|
78
|
+
// └── sindresorhus
|
79
|
+
// ├── unicorn.png
|
80
|
+
// └── foo
|
81
|
+
// └── bar
|
82
|
+
// ├── baz
|
83
|
+
// └── example.js
|
84
|
+
|
85
|
+
// example.js
|
86
|
+
import {findUpSync} from 'find-up';
|
87
|
+
|
88
|
+
console.log(findUpSync('unicorn.png'));
|
89
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
90
|
+
|
91
|
+
console.log(findUpSync(['rainbow.png', 'unicorn.png']));
|
92
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
93
|
+
```
|
94
|
+
*/
|
95
|
+
export function findUpSync(name: string | readonly string[], options?: Options): string | undefined;
|
96
|
+
|
97
|
+
/**
|
98
|
+
Synchronously find a file or directory by walking up parent directories.
|
99
|
+
|
100
|
+
@param matcher - Called for each directory in the search. Return a path or `findUpStop` to stop the search.
|
101
|
+
@returns The first path found or `undefined` if none could be found.
|
102
|
+
|
103
|
+
@example
|
104
|
+
```
|
105
|
+
import path from 'node:path';
|
106
|
+
import {findUpSync, pathExistsSync} from 'find-up';
|
107
|
+
|
108
|
+
console.log(findUpSync(directory => {
|
109
|
+
const hasUnicorns = pathExistsSync(path.join(directory, 'unicorn.png'));
|
110
|
+
return hasUnicorns && directory;
|
111
|
+
}, {type: 'directory'}));
|
112
|
+
//=> '/Users/sindresorhus'
|
113
|
+
```
|
114
|
+
*/
|
115
|
+
export function findUpSync(matcher: (directory: string) => Match, options?: Options): string | undefined;
|
116
|
+
|
117
|
+
/**
|
118
|
+
Find files or directories by walking up parent directories.
|
119
|
+
|
120
|
+
@param name - The name of the file or directory to find. Can be multiple.
|
121
|
+
@returns All paths found (by respecting the order of `name`s) or an empty array if none could be found.
|
122
|
+
|
123
|
+
@example
|
124
|
+
```
|
125
|
+
// /
|
126
|
+
// └── Users
|
127
|
+
// └── sindresorhus
|
128
|
+
// ├── unicorn.png
|
129
|
+
// └── foo
|
130
|
+
// ├── unicorn.png
|
131
|
+
// └── bar
|
132
|
+
// ├── baz
|
133
|
+
// └── example.js
|
134
|
+
|
135
|
+
// example.js
|
136
|
+
import {findUpMultiple} from 'find-up';
|
137
|
+
|
138
|
+
console.log(await findUpMultiple('unicorn.png'));
|
139
|
+
//=> ['/Users/sindresorhus/foo/unicorn.png', '/Users/sindresorhus/unicorn.png']
|
140
|
+
|
141
|
+
console.log(await findUpMultiple(['rainbow.png', 'unicorn.png']));
|
142
|
+
//=> ['/Users/sindresorhus/foo/unicorn.png', '/Users/sindresorhus/unicorn.png']
|
143
|
+
```
|
144
|
+
*/
|
145
|
+
export function findUpMultiple(name: string | readonly string[], options?: Options): Promise<string[]>;
|
146
|
+
|
147
|
+
/**
|
148
|
+
Find files or directories by walking up parent directories.
|
149
|
+
|
150
|
+
@param matcher - Called for each directory in the search. Return a path or `findUpStop` to stop the search.
|
151
|
+
@returns All paths found or an empty array if none could be found.
|
152
|
+
|
153
|
+
@example
|
154
|
+
```
|
155
|
+
import path from 'node:path';
|
156
|
+
import {findUpMultiple, pathExists} from 'find-up';
|
157
|
+
|
158
|
+
console.log(await findUpMultiple(async directory => {
|
159
|
+
const hasUnicorns = await pathExists(path.join(directory, 'unicorn.png'));
|
160
|
+
return hasUnicorns && directory;
|
161
|
+
}, {type: 'directory'}));
|
162
|
+
//=> ['/Users/sindresorhus/foo', '/Users/sindresorhus']
|
163
|
+
```
|
164
|
+
*/
|
165
|
+
export function findUpMultiple(matcher: (directory: string) => (Match | Promise<Match>), options?: Options): Promise<string[]>;
|
166
|
+
|
167
|
+
/**
|
168
|
+
Synchronously find files or directories by walking up parent directories.
|
169
|
+
|
170
|
+
@param name - The name of the file or directory to find. Can be multiple.
|
171
|
+
@returns All paths found (by respecting the order of `name`s) or an empty array if none could be found.
|
172
|
+
|
173
|
+
@example
|
174
|
+
```
|
175
|
+
// /
|
176
|
+
// └── Users
|
177
|
+
// └── sindresorhus
|
178
|
+
// ├── unicorn.png
|
179
|
+
// └── foo
|
180
|
+
// ├── unicorn.png
|
181
|
+
// └── bar
|
182
|
+
// ├── baz
|
183
|
+
// └── example.js
|
184
|
+
|
185
|
+
// example.js
|
186
|
+
import {findUpMultipleSync} from 'find-up';
|
187
|
+
|
188
|
+
console.log(findUpMultipleSync('unicorn.png'));
|
189
|
+
//=> ['/Users/sindresorhus/foo/unicorn.png', '/Users/sindresorhus/unicorn.png']
|
190
|
+
|
191
|
+
console.log(findUpMultipleSync(['rainbow.png', 'unicorn.png']));
|
192
|
+
//=> ['/Users/sindresorhus/foo/unicorn.png', '/Users/sindresorhus/unicorn.png']
|
193
|
+
```
|
194
|
+
*/
|
195
|
+
export function findUpMultipleSync(name: string | readonly string[], options?: Options): string[];
|
196
|
+
|
197
|
+
/**
|
198
|
+
Synchronously find files or directories by walking up parent directories.
|
199
|
+
|
200
|
+
@param matcher - Called for each directory in the search. Return a path or `findUpStop` to stop the search.
|
201
|
+
@returns All paths found or an empty array if none could be found.
|
202
|
+
|
203
|
+
@example
|
204
|
+
```
|
205
|
+
import path from 'node:path';
|
206
|
+
import {findUpMultipleSync, pathExistsSync} from 'find-up';
|
207
|
+
|
208
|
+
console.log(findUpMultipleSync(directory => {
|
209
|
+
const hasUnicorns = pathExistsSync(path.join(directory, 'unicorn.png'));
|
210
|
+
return hasUnicorns && directory;
|
211
|
+
}, {type: 'directory'}));
|
212
|
+
//=> ['/Users/sindresorhus/foo', '/Users/sindresorhus']
|
213
|
+
```
|
214
|
+
*/
|
215
|
+
export function findUpMultipleSync(matcher: (directory: string) => Match, options?: Options): string[];
|
216
|
+
|
217
|
+
/**
|
218
|
+
Check if a path exists.
|
219
|
+
|
220
|
+
@param path - The path to a file or directory.
|
221
|
+
@returns Whether the path exists.
|
222
|
+
|
223
|
+
@example
|
224
|
+
```
|
225
|
+
import {pathExists} from 'find-up';
|
226
|
+
|
227
|
+
console.log(await pathExists('/Users/sindresorhus/unicorn.png'));
|
228
|
+
//=> true
|
229
|
+
```
|
230
|
+
*/
|
231
|
+
export function pathExists(path: string): Promise<boolean>;
|
232
|
+
|
233
|
+
/**
|
234
|
+
Synchronously check if a path exists.
|
235
|
+
|
236
|
+
@param path - Path to the file or directory.
|
237
|
+
@returns Whether the path exists.
|
238
|
+
|
239
|
+
@example
|
240
|
+
```
|
241
|
+
import {pathExistsSync} from 'find-up';
|
242
|
+
|
243
|
+
console.log(pathExistsSync('/Users/sindresorhus/unicorn.png'));
|
244
|
+
//=> true
|
245
|
+
```
|
246
|
+
*/
|
247
|
+
export function pathExistsSync(path: string): boolean;
|
@@ -0,0 +1,107 @@
|
|
1
|
+
import path from 'node:path';
|
2
|
+
import {locatePath, locatePathSync} from 'locate-path';
|
3
|
+
import {toPath} from 'unicorn-magic';
|
4
|
+
|
5
|
+
export const findUpStop = Symbol('findUpStop');
|
6
|
+
|
7
|
+
export async function findUpMultiple(name, options = {}) {
|
8
|
+
let directory = path.resolve(toPath(options.cwd) ?? '');
|
9
|
+
const {root} = path.parse(directory);
|
10
|
+
const stopAt = path.resolve(directory, toPath(options.stopAt ?? root));
|
11
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
12
|
+
const paths = [name].flat();
|
13
|
+
|
14
|
+
const runMatcher = async locateOptions => {
|
15
|
+
if (typeof name !== 'function') {
|
16
|
+
return locatePath(paths, locateOptions);
|
17
|
+
}
|
18
|
+
|
19
|
+
const foundPath = await name(locateOptions.cwd);
|
20
|
+
if (typeof foundPath === 'string') {
|
21
|
+
return locatePath([foundPath], locateOptions);
|
22
|
+
}
|
23
|
+
|
24
|
+
return foundPath;
|
25
|
+
};
|
26
|
+
|
27
|
+
const matches = [];
|
28
|
+
// eslint-disable-next-line no-constant-condition
|
29
|
+
while (true) {
|
30
|
+
// eslint-disable-next-line no-await-in-loop
|
31
|
+
const foundPath = await runMatcher({...options, cwd: directory});
|
32
|
+
|
33
|
+
if (foundPath === findUpStop) {
|
34
|
+
break;
|
35
|
+
}
|
36
|
+
|
37
|
+
if (foundPath) {
|
38
|
+
matches.push(path.resolve(directory, foundPath));
|
39
|
+
}
|
40
|
+
|
41
|
+
if (directory === stopAt || matches.length >= limit) {
|
42
|
+
break;
|
43
|
+
}
|
44
|
+
|
45
|
+
directory = path.dirname(directory);
|
46
|
+
}
|
47
|
+
|
48
|
+
return matches;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function findUpMultipleSync(name, options = {}) {
|
52
|
+
let directory = path.resolve(toPath(options.cwd) ?? '');
|
53
|
+
const {root} = path.parse(directory);
|
54
|
+
const stopAt = path.resolve(directory, toPath(options.stopAt) ?? root);
|
55
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
56
|
+
const paths = [name].flat();
|
57
|
+
|
58
|
+
const runMatcher = locateOptions => {
|
59
|
+
if (typeof name !== 'function') {
|
60
|
+
return locatePathSync(paths, locateOptions);
|
61
|
+
}
|
62
|
+
|
63
|
+
const foundPath = name(locateOptions.cwd);
|
64
|
+
if (typeof foundPath === 'string') {
|
65
|
+
return locatePathSync([foundPath], locateOptions);
|
66
|
+
}
|
67
|
+
|
68
|
+
return foundPath;
|
69
|
+
};
|
70
|
+
|
71
|
+
const matches = [];
|
72
|
+
// eslint-disable-next-line no-constant-condition
|
73
|
+
while (true) {
|
74
|
+
const foundPath = runMatcher({...options, cwd: directory});
|
75
|
+
|
76
|
+
if (foundPath === findUpStop) {
|
77
|
+
break;
|
78
|
+
}
|
79
|
+
|
80
|
+
if (foundPath) {
|
81
|
+
matches.push(path.resolve(directory, foundPath));
|
82
|
+
}
|
83
|
+
|
84
|
+
if (directory === stopAt || matches.length >= limit) {
|
85
|
+
break;
|
86
|
+
}
|
87
|
+
|
88
|
+
directory = path.dirname(directory);
|
89
|
+
}
|
90
|
+
|
91
|
+
return matches;
|
92
|
+
}
|
93
|
+
|
94
|
+
export async function findUp(name, options = {}) {
|
95
|
+
const matches = await findUpMultiple(name, {...options, limit: 1});
|
96
|
+
return matches[0];
|
97
|
+
}
|
98
|
+
|
99
|
+
export function findUpSync(name, options = {}) {
|
100
|
+
const matches = findUpMultipleSync(name, {...options, limit: 1});
|
101
|
+
return matches[0];
|
102
|
+
}
|
103
|
+
|
104
|
+
export {
|
105
|
+
pathExists,
|
106
|
+
pathExistsSync,
|
107
|
+
} from 'path-exists';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"name": "find-up",
|
3
|
+
"version": "7.0.0",
|
4
|
+
"description": "Find a file or directory by walking up parent directories",
|
5
|
+
"license": "MIT",
|
6
|
+
"repository": "sindresorhus/find-up",
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
8
|
+
"author": {
|
9
|
+
"name": "Sindre Sorhus",
|
10
|
+
"email": "sindresorhus@gmail.com",
|
11
|
+
"url": "https://sindresorhus.com"
|
12
|
+
},
|
13
|
+
"type": "module",
|
14
|
+
"exports": {
|
15
|
+
"types": "./index.d.ts",
|
16
|
+
"default": "./index.js"
|
17
|
+
},
|
18
|
+
"sideEffects": false,
|
19
|
+
"engines": {
|
20
|
+
"node": ">=18"
|
21
|
+
},
|
22
|
+
"scripts": {
|
23
|
+
"test": "xo && ava && tsd"
|
24
|
+
},
|
25
|
+
"files": [
|
26
|
+
"index.js",
|
27
|
+
"index.d.ts"
|
28
|
+
],
|
29
|
+
"keywords": [
|
30
|
+
"find",
|
31
|
+
"up",
|
32
|
+
"find-up",
|
33
|
+
"findup",
|
34
|
+
"look-up",
|
35
|
+
"look",
|
36
|
+
"file",
|
37
|
+
"search",
|
38
|
+
"match",
|
39
|
+
"package",
|
40
|
+
"resolve",
|
41
|
+
"parent",
|
42
|
+
"parents",
|
43
|
+
"folder",
|
44
|
+
"directory",
|
45
|
+
"walk",
|
46
|
+
"walking",
|
47
|
+
"path"
|
48
|
+
],
|
49
|
+
"dependencies": {
|
50
|
+
"locate-path": "^7.2.0",
|
51
|
+
"path-exists": "^5.0.0",
|
52
|
+
"unicorn-magic": "^0.1.0"
|
53
|
+
},
|
54
|
+
"devDependencies": {
|
55
|
+
"ava": "^5.3.1",
|
56
|
+
"is-path-inside": "^4.0.0",
|
57
|
+
"tempy": "^3.1.0",
|
58
|
+
"tsd": "^0.29.0",
|
59
|
+
"xo": "^0.56.0"
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
# find-up
|
2
|
+
|
3
|
+
> Find a file or directory by walking up parent directories
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```sh
|
8
|
+
npm install find-up
|
9
|
+
```
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
```
|
14
|
+
/
|
15
|
+
└── Users
|
16
|
+
└── sindresorhus
|
17
|
+
├── unicorn.png
|
18
|
+
└── foo
|
19
|
+
└── bar
|
20
|
+
├── baz
|
21
|
+
└── example.js
|
22
|
+
```
|
23
|
+
|
24
|
+
`example.js`
|
25
|
+
|
26
|
+
```js
|
27
|
+
import path from 'node:path';
|
28
|
+
import {findUp, pathExists} from 'find-up';
|
29
|
+
|
30
|
+
console.log(await findUp('unicorn.png'));
|
31
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
32
|
+
|
33
|
+
console.log(await findUp(['rainbow.png', 'unicorn.png']));
|
34
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
35
|
+
|
36
|
+
console.log(await findUp(async directory => {
|
37
|
+
const hasUnicorns = await pathExists(path.join(directory, 'unicorn.png'));
|
38
|
+
return hasUnicorns && directory;
|
39
|
+
}, {type: 'directory'}));
|
40
|
+
//=> '/Users/sindresorhus'
|
41
|
+
```
|
42
|
+
|
43
|
+
## API
|
44
|
+
|
45
|
+
### findUp(name, options?)
|
46
|
+
### findUp(matcher, options?)
|
47
|
+
|
48
|
+
Returns a `Promise` for either the path or `undefined` if it could not be found.
|
49
|
+
|
50
|
+
### findUp([...name], options?)
|
51
|
+
|
52
|
+
Returns a `Promise` for either the first path found (by respecting the order of the array) or `undefined` if none could be found.
|
53
|
+
|
54
|
+
### findUpMultiple(name, options?)
|
55
|
+
### findUpMultiple(matcher, options?)
|
56
|
+
|
57
|
+
Returns a `Promise` for either an array of paths or an empty array if none could be found.
|
58
|
+
|
59
|
+
### findUpMultiple([...name], options?)
|
60
|
+
|
61
|
+
Returns a `Promise` for either an array of the first paths found (by respecting the order of the array) or an empty array if none could be found.
|
62
|
+
|
63
|
+
### findUpSync(name, options?)
|
64
|
+
### findUpSync(matcher, options?)
|
65
|
+
|
66
|
+
Returns a path or `undefined` if it could not be found.
|
67
|
+
|
68
|
+
### findUpSync([...name], options?)
|
69
|
+
|
70
|
+
Returns the first path found (by respecting the order of the array) or `undefined` if none could be found.
|
71
|
+
|
72
|
+
### findUpMultipleSync(name, options?)
|
73
|
+
### findUpMultipleSync(matcher, options?)
|
74
|
+
|
75
|
+
Returns an array of paths or an empty array if none could be found.
|
76
|
+
|
77
|
+
### findUpMultipleSync([...name], options?)
|
78
|
+
|
79
|
+
Returns an array of the first paths found (by respecting the order of the array) or an empty array if none could be found.
|
80
|
+
|
81
|
+
#### name
|
82
|
+
|
83
|
+
Type: `string`
|
84
|
+
|
85
|
+
The name of the file or directory to find.
|
86
|
+
|
87
|
+
#### matcher
|
88
|
+
|
89
|
+
Type: `Function`
|
90
|
+
|
91
|
+
A function that will be called with each directory until it returns a `string` with the path, which stops the search, or the root directory has been reached and nothing was found. Useful if you want to match files with certain patterns, set of permissions, or other advanced use-cases.
|
92
|
+
|
93
|
+
When using async mode, the `matcher` may optionally be an async or promise-returning function that returns the path.
|
94
|
+
|
95
|
+
#### options
|
96
|
+
|
97
|
+
Type: `object`
|
98
|
+
|
99
|
+
##### cwd
|
100
|
+
|
101
|
+
Type: `URL | string`\
|
102
|
+
Default: `process.cwd()`
|
103
|
+
|
104
|
+
The directory to start from.
|
105
|
+
|
106
|
+
##### type
|
107
|
+
|
108
|
+
Type: `string`\
|
109
|
+
Default: `'file'`\
|
110
|
+
Values: `'file' | 'directory'`
|
111
|
+
|
112
|
+
The type of path to match.
|
113
|
+
|
114
|
+
##### allowSymlinks
|
115
|
+
|
116
|
+
Type: `boolean`\
|
117
|
+
Default: `true`
|
118
|
+
|
119
|
+
Allow symbolic links to match if they point to the chosen path type.
|
120
|
+
|
121
|
+
##### stopAt
|
122
|
+
|
123
|
+
Type: `URL | string`\
|
124
|
+
Default: Root directory
|
125
|
+
|
126
|
+
A directory path where the search halts if no matches are found before reaching this point.
|
127
|
+
|
128
|
+
### pathExists(path)
|
129
|
+
|
130
|
+
Returns a `Promise<boolean>` of whether the path exists.
|
131
|
+
|
132
|
+
### pathExistsSync(path)
|
133
|
+
|
134
|
+
Returns a `boolean` of whether the path exists.
|
135
|
+
|
136
|
+
#### path
|
137
|
+
|
138
|
+
Type: `string`
|
139
|
+
|
140
|
+
The path to a file or directory.
|
141
|
+
|
142
|
+
### findUpStop
|
143
|
+
|
144
|
+
A [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) that can be returned by a `matcher` function to stop the search and cause `findUp` to immediately return `undefined`. Useful as a performance optimization in case the current working directory is deeply nested in the filesystem.
|
145
|
+
|
146
|
+
```js
|
147
|
+
import path from 'node:path';
|
148
|
+
import {findUp, findUpStop} from 'find-up';
|
149
|
+
|
150
|
+
await findUp(directory => {
|
151
|
+
return path.basename(directory) === 'work' ? findUpStop : 'logo.png';
|
152
|
+
});
|
153
|
+
```
|
154
|
+
|
155
|
+
## Related
|
156
|
+
|
157
|
+
- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module
|
158
|
+
- [package-up](https://github.com/sindresorhus/package-up) - Find the closest package.json file
|
159
|
+
- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
|
160
|
+
- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path
|