gina 0.7.7 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -1
- package/README.md +44 -36
- package/ROADMAP.md +1 -0
- package/framework/v0.7.8/VERSION +1 -0
- package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/js/gina.js +546 -461
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js +754 -0
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.8/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.js +180 -13
- package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-swig.js +16 -9
- package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/validator/src/main.js +421 -448
- package/framework/{v0.7.7 → v0.7.8}/core/server.js +114 -4
- package/framework/{v0.7.7 → v0.7.8}/core/template/conf/settings.json +1 -1
- package/framework/{v0.7.7 → v0.7.8}/helpers/path.js +292 -43
- package/framework/{v0.7.7 → v0.7.8}/lib/collection/src/main.js +15 -1
- package/framework/{v0.7.7 → v0.7.8}/lib/merge/src/main.js +48 -3
- package/framework/{v0.7.7 → v0.7.8}/lib/nunjucks-filters/src/main.js +12 -0
- package/framework/{v0.7.7 → v0.7.8}/lib/swig-filters/src/main.js +26 -1
- package/framework/{v0.7.7 → v0.7.8}/package.json +2 -2
- package/gna.js +4 -4
- package/llms.txt +15 -15
- package/package.json +5 -5
- package/schema/settings.json +1 -1
- package/utils/prototypes.json_clone.js +12 -5
- package/framework/v0.7.7/VERSION +0 -1
- package/framework/v0.7.7/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -751
- package/framework/v0.7.7/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.7/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/AUTHORS +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/LICENSE +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/config.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/duckdb/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/duckdb/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mongodb/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/scylladb/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/scylladb/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sqlite/lib/job-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sqlite/lib/kv-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/content.encoding +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-json.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-nunjucks.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-swig-async.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/render-data.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/controller/render-session.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/dev/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/gna.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/locales/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/mime.types +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/model/entity.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/model/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/router.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/server.express.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/server.isaac.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/status.codes +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/console.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/context.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/task.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/helpers/text.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/async/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/start.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/inc/child-failure.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/restore.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/config.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-config/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/job/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/job-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/math/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/model.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/money/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/proc.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/push/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/render-cache/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/session-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/shell.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/sqlite-driver.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/state.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/swig-resolver/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/url/README.md +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/url/index.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/validator.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.7 → v0.7.8}/lib/ws-session/src/main.js +0 -0
|
@@ -2154,7 +2154,11 @@ define("requireLib", function(){});
|
|
|
2154
2154
|
*
|
|
2155
2155
|
* - Objects are merged recursively.
|
|
2156
2156
|
* - Missing keys are always filled from `source`; on a CONFLICTING key the
|
|
2157
|
-
* `target` value is preserved by default.
|
|
2157
|
+
* `target` value is preserved by default. A key the target holds only through
|
|
2158
|
+
* `Object.prototype` (`toString`, `valueOf`, `hasOwnProperty`, `count`…) is a
|
|
2159
|
+
* MISSING key and is filled (#B845); a key the target owns, or inherits from
|
|
2160
|
+
* any other prototype (an entity's query methods, a class's own `toString`),
|
|
2161
|
+
* is a conflict.
|
|
2158
2162
|
* - Pass `true` as the last argument (`override`) to make `source` win instead.
|
|
2159
2163
|
* - Arrays of primitives merge as an ordered union: the target's elements first,
|
|
2160
2164
|
* then every source element the result lacks. A number the source repeats more
|
|
@@ -2206,6 +2210,27 @@ function Merge() {
|
|
|
2206
2210
|
return k === '__proto__' || k === 'constructor' || k === 'prototype';
|
|
2207
2211
|
};
|
|
2208
2212
|
|
|
2213
|
+
var hasOwn = Object.prototype.hasOwnProperty;
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* #B845 — true when `value`, already read as `target[name]`, is not the target's
|
|
2217
|
+
* own property and is exactly what Object.prototype supplies for that name: the
|
|
2218
|
+
* target holds it only THROUGH Object.prototype (`toString`, `valueOf`,
|
|
2219
|
+
* `hasOwnProperty`, gina's installed `count`…). For the fill-only rule such a key
|
|
2220
|
+
* is a MISSING key. A value inherited from any other prototype (an entity's
|
|
2221
|
+
* `.sql`-derived query methods, a class's own `toString`) is not matched, so the
|
|
2222
|
+
* documented target-wins rule still applies to it.
|
|
2223
|
+
*
|
|
2224
|
+
* @param {object} target - the object being filled
|
|
2225
|
+
* @param {string} name - the key under test
|
|
2226
|
+
* @param {*} value - `target[name]`, as read through the prototype chain
|
|
2227
|
+
* @returns {boolean} true when the key counts as missing on `target`
|
|
2228
|
+
* @private
|
|
2229
|
+
*/
|
|
2230
|
+
var isHeldThroughObjectPrototype = function(target, name, value) {
|
|
2231
|
+
return !hasOwn.call(target, name) && value === Object.prototype[name];
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2209
2234
|
var newTarget = []
|
|
2210
2235
|
, originalValueshasBeenCached = false
|
|
2211
2236
|
//, keyComparison = 'id' // use for collections merging [{ id: 'val1' }, { id: 'val2' }, {id: 'val3' }, ...]
|
|
@@ -2233,6 +2258,7 @@ function Merge() {
|
|
|
2233
2258
|
* merge([1, 2], [3, 4], true) // [3, 4]
|
|
2234
2259
|
* merge({ a: [null, 'x'] }, { a: [null, 'x'] }) // { a: [null, 'x'] } — null elements are preserved (#B226)
|
|
2235
2260
|
* merge({ ports: [8080, 8124] }, { ports: [8124] }) // { ports: [8080, 8124] } — a value already present is not pushed again (#B436)
|
|
2261
|
+
* merge({}, { toString: 'x' }) // { toString: 'x' } — a key held only through Object.prototype is missing, so it is filled (#B845)
|
|
2236
2262
|
*/
|
|
2237
2263
|
var browse = function (_target, _source) {
|
|
2238
2264
|
|
|
@@ -2440,10 +2466,20 @@ function Merge() {
|
|
|
2440
2466
|
|
|
2441
2467
|
} else if (copy !== undefined) {
|
|
2442
2468
|
//[proposal] Don't override existing if prop defined or override @ false
|
|
2469
|
+
// #B845 — `src` is read THROUGH the prototype chain (`src = target[ name ]`
|
|
2470
|
+
// above), so on a plain target a key named after an Object.prototype
|
|
2471
|
+
// member (`toString`, `hasOwnProperty`, gina's `count`…) read as an
|
|
2472
|
+
// existing value, and the inherited FUNCTION was written back here as an
|
|
2473
|
+
// own key over the source's value — a PUT form field so named reached
|
|
2474
|
+
// the action as nothing. A value the target holds only through
|
|
2475
|
+
// Object.prototype is not the target's: it is filled. Any other
|
|
2476
|
+
// inherited value keeps the target-wins rule (see the helper).
|
|
2477
|
+
// was: if ( typeof(src) != 'undefined' && src != null && src !== copy && !override ) {
|
|
2443
2478
|
if (
|
|
2444
2479
|
typeof(src) != 'undefined'
|
|
2445
2480
|
&& src != null
|
|
2446
2481
|
&& src !== copy && !override
|
|
2482
|
+
&& !isHeldThroughObjectPrototype(target, name, src)
|
|
2447
2483
|
) {
|
|
2448
2484
|
target[ name ] = src;
|
|
2449
2485
|
} else {
|
|
@@ -2478,7 +2514,9 @@ function Merge() {
|
|
|
2478
2514
|
* rules path.
|
|
2479
2515
|
*
|
|
2480
2516
|
* An OBJECT element of `options` fills a HOLE of `target` (an index the
|
|
2481
|
-
* target lacks) by copying
|
|
2517
|
+
* target lacks) by copying the keys the slot lacks — ownership is tested
|
|
2518
|
+
* through the built-in `hasOwnProperty`, which an own key of that name
|
|
2519
|
+
* cannot shadow (#B849); an occupied index — an existing
|
|
2482
2520
|
* object, a primitive or `null` — is never written into. That guard is
|
|
2483
2521
|
* #B437: the hole test runs on the deduped rebuild, whose indexes shift
|
|
2484
2522
|
* against a target carrying duplicate primitives, so the key write used to
|
|
@@ -2736,7 +2774,14 @@ function Merge() {
|
|
|
2736
2774
|
// #B446
|
|
2737
2775
|
if ( isUnsafeMergeKey(k) ) { continue }
|
|
2738
2776
|
|
|
2739
|
-
|
|
2777
|
+
// #B849 — the own-key test goes through the built-in, which no own key
|
|
2778
|
+
// can shadow: an element whose own `hasOwnProperty` is data (a PUT body
|
|
2779
|
+
// `list[0][hasOwnProperty]=1&list[0][b]=2`) threw « newTarget[a].hasOwnProperty
|
|
2780
|
+
// is not a function » on the next key, and on the first key when the
|
|
2781
|
+
// element IS the source object (pushed by reference above), so the
|
|
2782
|
+
// whole request answered 500.
|
|
2783
|
+
// was: if (!newTarget[a].hasOwnProperty(k)) {
|
|
2784
|
+
if (!Object.prototype.hasOwnProperty.call(newTarget[a], k)) {
|
|
2740
2785
|
newTarget[a][k] = options[a][k]
|
|
2741
2786
|
}
|
|
2742
2787
|
}
|
|
@@ -9416,10 +9461,17 @@ function setupXhr(options) {
|
|
|
9416
9461
|
* `\"` and `\\` unescaped). Returns an empty string when the header is
|
|
9417
9462
|
* missing or carries no `filename` parameter (e.g. a bare `attachment`), so
|
|
9418
9463
|
* the caller can hand the browser an empty `download` attribute and let it
|
|
9419
|
-
* derive a name instead of throwing mid-handler.
|
|
9420
|
-
*
|
|
9421
|
-
*
|
|
9422
|
-
*
|
|
9464
|
+
* derive a name instead of throwing mid-handler.
|
|
9465
|
+
*
|
|
9466
|
+
* #B1073 — the extended RFC 8187 parameter (`filename` followed by a star,
|
|
9467
|
+
* e.g. `UTF-8''l%E2%80%99offre.pdf`) carries a name the plain parameter
|
|
9468
|
+
* cannot, and the server now sends it, beside a Latin-1 fallback, for any
|
|
9469
|
+
* name above U+00FF. Browsers prefer it, so this parse does too: a UTF-8 or
|
|
9470
|
+
* ISO-8859-1 extended value is decoded and returned. Any other charset, a
|
|
9471
|
+
* malformed percent-encoding or an empty value falls back to the plain
|
|
9472
|
+
* parameter. The two values are never folded together: the plain-parameter
|
|
9473
|
+
* expression cannot match the starred name, because the star breaks the
|
|
9474
|
+
* `filename=` adjacency.
|
|
9423
9475
|
*
|
|
9424
9476
|
* @function getFilenameFromContentDisposition
|
|
9425
9477
|
* @param {string|null} contentDisposition - raw header value, e.g. from `xhr.getResponseHeader('Content-Disposition')`
|
|
@@ -9429,6 +9481,9 @@ function setupXhr(options) {
|
|
|
9429
9481
|
* getFilenameFromContentDisposition('attachment; filename="monthly report.pdf"');
|
|
9430
9482
|
* // -> 'monthly report.pdf'
|
|
9431
9483
|
* @example
|
|
9484
|
+
* getFilenameFromContentDisposition('attachment; filename="l?offre.pdf"; filename*=UTF-8\'\'l%E2%80%99offre.pdf');
|
|
9485
|
+
* // -> 'l’offre.pdf'
|
|
9486
|
+
* @example
|
|
9432
9487
|
* getFilenameFromContentDisposition('attachment');
|
|
9433
9488
|
* // -> ''
|
|
9434
9489
|
*/
|
|
@@ -9436,6 +9491,24 @@ function getFilenameFromContentDisposition(contentDisposition) {
|
|
|
9436
9491
|
if (!contentDisposition) {
|
|
9437
9492
|
return '';
|
|
9438
9493
|
}
|
|
9494
|
+
var extended = contentDisposition.match(/filename\*\s*=\s*"?([^'";\s]*)'[^']*'([^;\s"]*)/i);
|
|
9495
|
+
if (extended) {
|
|
9496
|
+
var charset = extended[1].toLowerCase(), decoded = '';
|
|
9497
|
+
try {
|
|
9498
|
+
if (charset === 'utf-8') {
|
|
9499
|
+
decoded = decodeURIComponent(extended[2]);
|
|
9500
|
+
} else if (charset === 'iso-8859-1') {
|
|
9501
|
+
decoded = extended[2].replace(/%([0-9A-Fa-f][0-9A-Fa-f])/g, function (match, hex) {
|
|
9502
|
+
return String.fromCharCode(parseInt(hex, 16));
|
|
9503
|
+
});
|
|
9504
|
+
}
|
|
9505
|
+
} catch (extendedErr) {
|
|
9506
|
+
decoded = ''; // malformed percent-encoding: the plain parameter names the file
|
|
9507
|
+
}
|
|
9508
|
+
if (decoded) {
|
|
9509
|
+
return decoded;
|
|
9510
|
+
}
|
|
9511
|
+
}
|
|
9439
9512
|
var found = contentDisposition.match(/filename\s*=\s*(?:"((?:[^"\\]|\\.)*)"|([^;]+))/i);
|
|
9440
9513
|
if (!found) {
|
|
9441
9514
|
return '';
|
|
@@ -16358,11 +16431,24 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
16358
16431
|
|
|
16359
16432
|
/**
|
|
16360
16433
|
* Reset fields
|
|
16434
|
+
* Restores each bound control to the value it had when the form was bound, then runs the one pass of
|
|
16435
|
+
* a reset: the error display and the `errors` store are cleared, nothing is painted, and the submit
|
|
16436
|
+
* trigger is re-read (#B1037). With live check off, `resetFields()` runs no pass; a master checkbox's
|
|
16437
|
+
* timer reads the form once more, its group applied. While the values are written the live check stays
|
|
16438
|
+
* out of it (`isBeingReseted`, read by the live listeners), and `resetCount` tells a pass already on its way
|
|
16439
|
+
* that the form it was checking is gone. A control removed from the page since the bind is skipped,
|
|
16440
|
+
* and each control is looked for among the form's own, should its id be shared (#B1036).
|
|
16361
16441
|
*
|
|
16362
16442
|
* @param {object|string} [$form|formId]
|
|
16443
|
+
* @param {boolean} [isOnResetMode=false] - the path of a `reset` event: `text` and `hidden` inputs
|
|
16444
|
+
* then end on their `defaultValue`, as a native reset leaves them, and not on their value at bind
|
|
16363
16445
|
*
|
|
16446
|
+
* @returns {object} the form's record
|
|
16447
|
+
*
|
|
16448
|
+
* @example
|
|
16449
|
+
* gina.validator.$forms['signup'].resetFields();
|
|
16364
16450
|
* */
|
|
16365
|
-
var resetFields = function($form) {
|
|
16451
|
+
var resetFields = function($form, isOnResetMode) {
|
|
16366
16452
|
var _id = null;
|
|
16367
16453
|
if ( typeof($form) == 'undefined' ) {
|
|
16368
16454
|
if ( typeof(this.target) != 'undefined' ) {
|
|
@@ -16392,40 +16478,92 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
16392
16478
|
, value = null // current value
|
|
16393
16479
|
, defaultValue = null
|
|
16394
16480
|
;
|
|
16481
|
+
var resetInfo = null;
|
|
16395
16482
|
$form.isBeingReseted = true;
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16483
|
+
$form.resetCount = ( $form.resetCount || 0 ) + 1;
|
|
16484
|
+
// the flag must come down whatever happens here: left up, it would silence the form's live
|
|
16485
|
+
// check for good
|
|
16486
|
+
try {
|
|
16487
|
+
for (var f in $form.fieldsSet) {
|
|
16488
|
+
|
|
16489
|
+
$element = document.getElementById(f);
|
|
16490
|
+
// #B1036 — getElementById answers the first holder of the id in the page, here not
|
|
16491
|
+
// one of this form's controls: look among the form's own
|
|
16492
|
+
if ( $element && $element.form != $form.target && $form.target.elements ) {
|
|
16493
|
+
$element = null;
|
|
16494
|
+
for (var e = 0, eLen = $form.target.elements.length; e < eLen; ++e) {
|
|
16495
|
+
if ( $form.target.elements[e].id === f ) {
|
|
16496
|
+
$element = $form.target.elements[e];
|
|
16497
|
+
break;
|
|
16498
|
+
}
|
|
16499
|
+
}
|
|
16500
|
+
}
|
|
16501
|
+
// a field removed from the page since the bind has nothing to restore
|
|
16502
|
+
if ( !$element ) { continue; }
|
|
16503
|
+
type = $element.tagName.toLowerCase();
|
|
16504
|
+
tagName = $element.tagName;
|
|
16412
16505
|
|
|
16413
|
-
if (
|
|
16414
|
-
|
|
16415
|
-
} else if ( !/^(checkbox|radio)$/i.test($element.type) ) {
|
|
16506
|
+
if ( /textarea/i.test(tagName) ) {
|
|
16507
|
+
defaultValue = $form.fieldsSet[f].defaultValue;
|
|
16416
16508
|
$element.value = defaultValue;
|
|
16509
|
+
triggerEvent(gina, $element, 'change');
|
|
16510
|
+
continue;
|
|
16417
16511
|
}
|
|
16418
|
-
triggerEvent(gina, $element, 'change');
|
|
16419
16512
|
|
|
16420
|
-
|
|
16421
|
-
defaultValue = $form.fieldsSet[f].selectedIndex || 0;
|
|
16422
|
-
$element.selectedIndex = defaultValue;
|
|
16423
|
-
$element.dataset.value = $element.options[ $element.selectedIndex ].value;
|
|
16424
|
-
triggerEvent(gina, $element, 'change');
|
|
16425
|
-
}
|
|
16513
|
+
if (type == 'input') {
|
|
16426
16514
|
|
|
16515
|
+
defaultValue = $form.fieldsSet[f].defaultValue;
|
|
16516
|
+
|
|
16517
|
+
if ( /^(checkbox|radio)$/i.test($element.type) ) {
|
|
16518
|
+
$element.checked = $form.fieldsSet[f].defaultChecked;
|
|
16519
|
+
} else if ( !/^(checkbox|radio)$/i.test($element.type) ) {
|
|
16520
|
+
$element.value = defaultValue;
|
|
16521
|
+
}
|
|
16522
|
+
triggerEvent(gina, $element, 'change');
|
|
16523
|
+
|
|
16524
|
+
} else if ( type == 'select' ) {
|
|
16525
|
+
defaultValue = $form.fieldsSet[f].selectedIndex || 0;
|
|
16526
|
+
$element.selectedIndex = defaultValue;
|
|
16527
|
+
// an empty select has no option to read
|
|
16528
|
+
$element.dataset.value = ( $element.options[ $element.selectedIndex ] ) ? $element.options[ $element.selectedIndex ].value : '';
|
|
16529
|
+
triggerEvent(gina, $element, 'change');
|
|
16530
|
+
}
|
|
16531
|
+
|
|
16532
|
+
}
|
|
16533
|
+
// On reset mode the collector writes `text` and `hidden` values too: still under the flag
|
|
16534
|
+
resetInfo = ( isOnResetMode === true )
|
|
16535
|
+
? getFormValidationInfos($form.target, $form.rules, true)
|
|
16536
|
+
: getFormValidationInfos($form.target, $form.rules);
|
|
16537
|
+
} finally {
|
|
16538
|
+
delete $form.isBeingReseted;
|
|
16539
|
+
}
|
|
16540
|
+
|
|
16541
|
+
// The one pass of a reset: it stores and paints nothing (`isSilentPass`, read by validate's
|
|
16542
|
+
// `query` waiter), it only re-reads the gate. `ginaFormIsResetting` is one-shot, consumed by the
|
|
16543
|
+
// call that follows it.
|
|
16544
|
+
$form.target.dataset.ginaFormIsResetting = true;
|
|
16545
|
+
$form.errors = {};
|
|
16546
|
+
handleErrorsDisplay($form.target, {});
|
|
16547
|
+
var onSilentResetValidation = function(result) {
|
|
16548
|
+
var isFormValid = result.isValid();
|
|
16549
|
+
console.debug('silent reset validation result[isValid:'+isFormValid+']: ', result);
|
|
16550
|
+
// a request in flight holds the trigger, and its settle releases it: the `true` branch
|
|
16551
|
+
// would clear that lock
|
|
16552
|
+
if ( isFormValid && /^true$/i.test($form.isSending) ) {
|
|
16553
|
+
return;
|
|
16554
|
+
}
|
|
16555
|
+
updateSubmitTriggerState( $form.target , isFormValid );
|
|
16556
|
+
};
|
|
16557
|
+
onSilentResetValidation.isSilentPass = true;
|
|
16558
|
+
// The rescue of a clean verdict on a `query` field not last (#B348): this pass writes neither
|
|
16559
|
+
// `isSubmitting` nor `isValidating` either, so no other branch of the waiter would call it back.
|
|
16560
|
+
onSilentResetValidation.isRevealCompletion = true;
|
|
16561
|
+
// Live check off: the trigger is never gated, so `resetFields()` has nothing to re-read, and the
|
|
16562
|
+
// pass would send its `query` and clear a native `disabled` the page set. A `reset` event keeps
|
|
16563
|
+
// its pass, as it always had.
|
|
16564
|
+
if ( isOnResetMode === true || !/^false$/i.test($form.target.dataset.ginaFormLiveCheckEnabled) ) {
|
|
16565
|
+
validate($form.target, resetInfo.fields, resetInfo.$fields, $form.rules, onSilentResetValidation);
|
|
16427
16566
|
}
|
|
16428
|
-
delete $form.isBeingReseted;
|
|
16429
16567
|
}
|
|
16430
16568
|
|
|
16431
16569
|
return $form
|
|
@@ -18998,7 +19136,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
18998
19136
|
// announcing a placeholder.
|
|
18999
19137
|
$img.alt = files[f].originalFilename || '';
|
|
19000
19138
|
$img.style.display = 'none';
|
|
19001
|
-
|
|
19139
|
+
// #B1027 — a file the staging answer did not name is not named « undefined »
|
|
19140
|
+
if ( files[f].originalFilename ) {
|
|
19141
|
+
$img.setAttribute('data-upload-original-filename', files[f].originalFilename);
|
|
19142
|
+
}
|
|
19002
19143
|
$img.setAttribute('data-upload-reset-link-id', $resetLink.id);
|
|
19003
19144
|
|
|
19004
19145
|
// TODO - Remove this; we don't want it by default, the dev can force it by hand if needed
|
|
@@ -19140,8 +19281,15 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
19140
19281
|
$img.style.display = 'none';
|
|
19141
19282
|
// retrieve img `originalFilename` (not the preview img[key] `originalFilename`)
|
|
19142
19283
|
// these 2 metadatas will be used to remove files from the server
|
|
19143
|
-
|
|
19144
|
-
|
|
19284
|
+
// #B1027 — a file the staging answer did not name is not named « undefined »
|
|
19285
|
+
if ( files[f].originalFilename ) {
|
|
19286
|
+
$img.setAttribute('data-upload-original-filename', files[f].originalFilename);
|
|
19287
|
+
}
|
|
19288
|
+
// #B1027 — a preview the staging answer did not name (the guide's `preview` example carries
|
|
19289
|
+
// no `originalFilename`) wrote the text « undefined », which its reset then sent for removal
|
|
19290
|
+
if ( files[f][key].originalFilename ) {
|
|
19291
|
+
$img.setAttribute('data-upload-preview-original-filename', files[f][key].originalFilename);
|
|
19292
|
+
}
|
|
19145
19293
|
// in order to retrieve and remove reset link
|
|
19146
19294
|
$img.setAttribute('data-upload-reset-link-id', $resetLink.id);
|
|
19147
19295
|
|
|
@@ -19252,6 +19400,33 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
19252
19400
|
return fileNodes;
|
|
19253
19401
|
};
|
|
19254
19402
|
|
|
19403
|
+
/**
|
|
19404
|
+
* hasLiveStagedFiles — #B990: whether a file input still shows files it staged. Its entries
|
|
19405
|
+
* (`customFiles`) are then the files of its last successful staging — a staged file's entry
|
|
19406
|
+
* carries no `deleteLinkId`, a saved file's does — and the reset control of one of them,
|
|
19407
|
+
* `<input id>-<index>-reset-trigger`, is on the page. A re-bind leaves such an input's entries
|
|
19408
|
+
* as they are rather than reading its preview container as saved files; once the page has
|
|
19409
|
+
* replaced the container (a saved file shown after a save), the controls are gone and the
|
|
19410
|
+
* container is read again.
|
|
19411
|
+
*
|
|
19412
|
+
* @inner
|
|
19413
|
+
* @private
|
|
19414
|
+
* @param {HTMLElement} $uploadTrigger - the file input
|
|
19415
|
+
* @returns {boolean} true while a staged file of the input has its reset control on the page
|
|
19416
|
+
*
|
|
19417
|
+
* @example
|
|
19418
|
+
* hasLiveStagedFiles(document.getElementById('avatar')); // true after a staging, false after its reset
|
|
19419
|
+
*/
|
|
19420
|
+
var hasLiveStagedFiles = function($uploadTrigger) {
|
|
19421
|
+
var entries = $uploadTrigger.customFiles || [];
|
|
19422
|
+
for (var i = 0, len = entries.length; i < len; ++i) {
|
|
19423
|
+
if ( entries[i] && !entries[i].deleteLinkId && document.getElementById($uploadTrigger.id + '-' + i + '-reset-trigger') ) {
|
|
19424
|
+
return true;
|
|
19425
|
+
}
|
|
19426
|
+
}
|
|
19427
|
+
return false;
|
|
19428
|
+
};
|
|
19429
|
+
|
|
19255
19430
|
/**
|
|
19256
19431
|
* removeUploadEntryFields — #B858/#B862: removes from a file input's form the controls of one
|
|
19257
19432
|
* of its files, `<prefix>[index]…` (except those marked `data-gina-form-upload-is-locked`), and
|
|
@@ -19624,7 +19799,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
19624
19799
|
// the names the staging answer gave — the ones its <img> preview carries
|
|
19625
19800
|
childNodeFile = ( stagedFiles[f] && stagedFiles[f].originalFilename )
|
|
19626
19801
|
? stagedFiles[f].originalFilename
|
|
19627
|
-
: ( entry.nodes.length ) ? entry.nodes[0].getAttribute('data-upload-original-filename') : files[f].name;
|
|
19802
|
+
: ( entry.nodes.length && entry.nodes[0].getAttribute('data-upload-original-filename') ) ? entry.nodes[0].getAttribute('data-upload-original-filename') : files[f].name;
|
|
19628
19803
|
childNodeFilePreview = ( stagedFiles[f] && stagedFiles[f].preview && stagedFiles[f].preview.originalFilename )
|
|
19629
19804
|
? stagedFiles[f].preview.originalFilename
|
|
19630
19805
|
: ( entry.nodes.length ) ? entry.nodes[0].getAttribute('data-upload-preview-original-filename') : null;
|
|
@@ -21074,7 +21249,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21074
21249
|
|
|
21075
21250
|
if ( typeof(gina.events[_evt]) != 'undefined' ) {
|
|
21076
21251
|
console.debug('trigger event on: ', this.name, _evt);
|
|
21252
|
+
// #B1035 — a script's write is nobody's touch: read synchronously by the live listener
|
|
21253
|
+
this.ginaFormIsScriptWrite = true;
|
|
21077
21254
|
triggerEvent(gina, this, _evt, val);
|
|
21255
|
+
delete this.ginaFormIsScriptWrite;
|
|
21078
21256
|
}
|
|
21079
21257
|
//changing back to custom setter
|
|
21080
21258
|
Object.defineProperty(this, 'value', descriptor);
|
|
@@ -21271,6 +21449,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21271
21449
|
addListener(gina, $el, eventsList, function(event) {
|
|
21272
21450
|
event.preventDefault();
|
|
21273
21451
|
clearTimeout(liveCheckTimer);
|
|
21452
|
+
// #B1037 — a reset restores values, it touches nothing: `resetFields` ends with the
|
|
21453
|
+
// one pass of a reset. Read before the radio and checkbox `once` logic: their pass is
|
|
21454
|
+
// deferred, so it would run after the reset has cleared the display.
|
|
21455
|
+
var $liveForm = instance.$forms[event.target.form.getAttribute('id')];
|
|
21456
|
+
if ( $liveForm.isBeingReseted ) {
|
|
21457
|
+
return false;
|
|
21458
|
+
}
|
|
21274
21459
|
if ( !once && /^changed\./i.test(event.type) || !once && /^(radio|checkbox)$/i.test(event.target.type) ) {
|
|
21275
21460
|
once = true;
|
|
21276
21461
|
} else if (once && /^changed\./i.test(event.type) || once && /^(radio|checkbox)$/i.test(event.target.type) ) {
|
|
@@ -21284,12 +21469,32 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21284
21469
|
return false;
|
|
21285
21470
|
}
|
|
21286
21471
|
|
|
21472
|
+
// #B1035 — a script's write re-checks the form and updates the gate and the store, but
|
|
21473
|
+
// paints only what already shows: a message may change or clear, a new one waits for a
|
|
21474
|
+
// touch. Same box as handleErrorsDisplay: the classes sit on the wrapper's parent.
|
|
21475
|
+
var $errorBox = ( /form\-item\-wrapper$/.test(event.target.parentNode.className) ) ? event.target.parentNode.parentNode : event.target.parentNode;
|
|
21476
|
+
// A radio stays out: `updateRadio` writes a boolean pair's value through the setter on the
|
|
21477
|
+
// user's own pick, and that dispatch is the pick's live check.
|
|
21478
|
+
var isQuietWrite = !!event.target.ginaFormIsScriptWrite && !/^radio$/i.test(event.target.type) && !/form\-item\-(error|warning)/.test($errorBox.className);
|
|
21479
|
+
|
|
21480
|
+
// #B1037 — a pass that started before a reset (an async `query` verdict, a deferred
|
|
21481
|
+
// radio pass, the keyup timer) must not paint the restored form; it leaves the
|
|
21482
|
+
// flags its end would have left
|
|
21483
|
+
var resetCountAtStart = $liveForm.resetCount || 0;
|
|
21484
|
+
var isStaleAfterReset = function() {
|
|
21485
|
+
if ( ( $liveForm.resetCount || 0 ) == resetCountAtStart ) {
|
|
21486
|
+
return false;
|
|
21487
|
+
}
|
|
21488
|
+
$liveForm.isValidating = false;
|
|
21489
|
+
once = false;
|
|
21490
|
+
return true;
|
|
21491
|
+
};
|
|
21492
|
+
|
|
21287
21493
|
var processEvent = function() {
|
|
21288
21494
|
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
21292
|
-
// }
|
|
21495
|
+
if ( isStaleAfterReset() ) {
|
|
21496
|
+
return;
|
|
21497
|
+
}
|
|
21293
21498
|
|
|
21294
21499
|
if ( !/^(password)$/i.test(event.target.type) ) {
|
|
21295
21500
|
console.debug('processing: ' + event.target.name+ '/'+ event.target.id);
|
|
@@ -21308,7 +21513,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21308
21513
|
if (!errors || errors.count() == 0) {
|
|
21309
21514
|
handleErrorsDisplay(event.target.form, {}, null, event.target.name);
|
|
21310
21515
|
return cancelEvent(event);
|
|
21311
|
-
} else {
|
|
21516
|
+
} else if ( !isQuietWrite ) {
|
|
21312
21517
|
handleErrorsDisplay(event.target.form, errors, null, event.target.name);
|
|
21313
21518
|
}
|
|
21314
21519
|
}
|
|
@@ -21319,23 +21524,29 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21319
21524
|
$localField[event.target.name] = event.target;
|
|
21320
21525
|
|
|
21321
21526
|
instance.$forms[event.target.form.getAttribute('id')].isValidating = true;
|
|
21322
|
-
|
|
21527
|
+
var onLiveValidation = function(result){
|
|
21528
|
+
if ( isStaleAfterReset() ) {
|
|
21529
|
+
return;
|
|
21530
|
+
}
|
|
21323
21531
|
// instance.$forms[event.target.form.getAttribute('id')].isValidating = false;
|
|
21324
21532
|
//console.debug('validation on processEvent(...) ', result);
|
|
21325
21533
|
|
|
21326
21534
|
var isFormValid = result.isValid();
|
|
21327
21535
|
//console.debug('onSilentPreGlobalLiveValidation: '+ isFormValid, result);
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21536
|
+
// #B1035 — a quiet write paints nothing new; a valid verdict still clears
|
|
21537
|
+
if ( isFormValid || !isQuietWrite ) {
|
|
21538
|
+
if (isFormValid) {
|
|
21539
|
+
//resetting error display
|
|
21540
|
+
// #B922 — a field wired only because a `_case_` condition names it (#B884)
|
|
21541
|
+
// has no rule in this pass, which therefore reads valid: its `true` cleared
|
|
21542
|
+
// the native `disabled` a page script had set, before the whole-form pass
|
|
21543
|
+
// below gated the form. For such a field the whole-form pass alone writes
|
|
21544
|
+
// the submit trigger.
|
|
21545
|
+
// was: handleErrorsDisplay(event.target.form, {}, result.data, event.target.name);
|
|
21546
|
+
handleErrorsDisplay(event.target.form, {}, result.data, event.target.name, isCaseTarget);
|
|
21547
|
+
} else {
|
|
21548
|
+
handleErrorsDisplay(event.target.form, result.error, result.data, event.target.name);
|
|
21549
|
+
}
|
|
21339
21550
|
}
|
|
21340
21551
|
//updateSubmitTriggerState( event.target.form, isFormValid );
|
|
21341
21552
|
// data-gina-form-required-before-submit
|
|
@@ -21350,8 +21561,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21350
21561
|
gRules = instance.$forms[formId].rules;
|
|
21351
21562
|
// Don't be tempted to revome fields that has already been validated
|
|
21352
21563
|
instance.$forms[formId].isValidating = true;
|
|
21353
|
-
|
|
21564
|
+
var onSilentGlobalLiveValidation = function(gResult){
|
|
21354
21565
|
instance.$forms[formId].isValidating = false;
|
|
21566
|
+
if ( isStaleAfterReset() ) {
|
|
21567
|
+
return;
|
|
21568
|
+
}
|
|
21355
21569
|
console.debug('['+ formId +'] onSilentGlobalLiveValidation: '+ gResult.isValid(), gResult, gFields);
|
|
21356
21570
|
// var isFormValid = ( gResult.isValid() && instance.$forms[formId].errors && instance.$forms[formId].errors.count() == 0 )? true : false;
|
|
21357
21571
|
var isFormValid = gResult.isValid();
|
|
@@ -21378,7 +21592,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21378
21592
|
// submit button state; untouched fields should not show errors
|
|
21379
21593
|
// until the user interacts with them or submits.
|
|
21380
21594
|
var _touchedField = event.target.name;
|
|
21381
|
-
if ( typeof(gResult.error[_touchedField]) != 'undefined' ) {
|
|
21595
|
+
if ( typeof(gResult.error[_touchedField]) != 'undefined' && !isQuietWrite ) {
|
|
21382
21596
|
refreshWarning($gFields[_touchedField]);
|
|
21383
21597
|
handleErrorsDisplay($gForm, gResult.error, gResult.data, _touchedField);
|
|
21384
21598
|
}
|
|
@@ -21416,9 +21630,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21416
21630
|
updateSubmitTriggerState( $gForm, isFormValid);
|
|
21417
21631
|
|
|
21418
21632
|
once = false;
|
|
21419
|
-
}
|
|
21633
|
+
};
|
|
21634
|
+
onSilentGlobalLiveValidation.isSilentPass = isQuietWrite;
|
|
21635
|
+
validate($gForm, gFields, $gFields, gRules, onSilentGlobalLiveValidation);
|
|
21420
21636
|
|
|
21421
|
-
}
|
|
21637
|
+
};
|
|
21638
|
+
onLiveValidation.isSilentPass = isQuietWrite;
|
|
21639
|
+
validate(event.target, localField, $localField, $form.rules, onLiveValidation);
|
|
21422
21640
|
|
|
21423
21641
|
|
|
21424
21642
|
return;
|
|
@@ -21566,138 +21784,43 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21566
21784
|
|
|
21567
21785
|
|
|
21568
21786
|
|
|
21569
|
-
var setSelectionRange = function($el, selectionStart, selectionEnd) {
|
|
21570
|
-
if ($el.setSelectionRange) {
|
|
21571
|
-
$el.focus();
|
|
21572
|
-
$el.setSelectionRange(selectionStart, selectionEnd);
|
|
21573
|
-
}
|
|
21574
|
-
else if ($el.createTextRange) {
|
|
21575
|
-
var range = $el.createTextRange();
|
|
21576
|
-
range.collapse(true);
|
|
21577
|
-
range.moveEnd ('character', selectionEnd );
|
|
21578
|
-
range.moveStart('character', selectionStart);
|
|
21579
|
-
range.select();
|
|
21580
|
-
}
|
|
21581
|
-
}
|
|
21582
21787
|
/**
|
|
21583
|
-
*
|
|
21584
|
-
*
|
|
21788
|
+
* autoCompleteReadonlyMark
|
|
21789
|
+
* The value handleAutoComplete writes into a field's `readonly` attribute. It tells gina's
|
|
21790
|
+
* own mark from a `readonly` the page wrote (`""` or `readonly`, in its markup or from a
|
|
21791
|
+
* script), and a clone of a bound field carries it, which an expando would not.
|
|
21585
21792
|
*
|
|
21586
|
-
* @
|
|
21587
|
-
* @
|
|
21588
|
-
|
|
21589
|
-
var setCaretToPos = function ($el, pos) {
|
|
21590
|
-
setSelectionRange($el, pos, pos);
|
|
21591
|
-
}
|
|
21592
|
-
/**
|
|
21593
|
-
* commitCaret
|
|
21594
|
-
* #B389 — commits the caret SYNCHRONOUSLY after a programmatic value
|
|
21595
|
-
* rebuild and records the position on the element. Assigning `.value`
|
|
21596
|
-
* collapses the selection to the END of the field (measured on WebKit
|
|
21597
|
-
* and Chromium), and the deferred restore of the transient-readonly
|
|
21598
|
-
* dance only runs two macrotasks later — so without a synchronous
|
|
21599
|
-
* commit, any keystroke arriving inside that window reads a stale
|
|
21600
|
-
* `selectionStart` and inserts at the wrong offset (scrambled fast
|
|
21601
|
-
* input). The recorded position (`_ginaAcCaret`) is what the keydown
|
|
21602
|
-
* interception trusts while a deferred restore is still in flight.
|
|
21603
|
-
*
|
|
21604
|
-
* @param {object} $el - HTMLElement
|
|
21605
|
-
* @param {number} pos - caret position to commit
|
|
21606
|
-
*/
|
|
21607
|
-
var commitCaret = function ($el, pos) {
|
|
21608
|
-
setCaretToPos($el, pos);
|
|
21609
|
-
$el._ginaAcCaret = pos;
|
|
21610
|
-
}
|
|
21611
|
-
/**
|
|
21612
|
-
* queueCaretRestore
|
|
21613
|
-
* #B389 — re-applies the transient readonly (the Safari autofill/
|
|
21614
|
-
* autosuggest suppression — mechanism kept identical to the original
|
|
21615
|
-
* dance) and queues the deferred caret restore. The restore re-asserts
|
|
21616
|
-
* the LATEST committed caret (`_ginaAcCaret`) rather than the position
|
|
21617
|
-
* captured at its own keystroke: a later keystroke may have advanced
|
|
21618
|
-
* the caret while this restore sat in the queue, and re-applying a
|
|
21619
|
-
* stale capture is what scrambled fast typing. `_ginaAcPending` counts
|
|
21620
|
-
* restores in flight so the keydown interception knows when the
|
|
21621
|
-
* element's own selection can be trusted again; the tracker is handed
|
|
21622
|
-
* back (nulled) once the last pending restore has fired.
|
|
21623
|
-
*
|
|
21624
|
-
* @param {object} $el - HTMLElement
|
|
21793
|
+
* @constant
|
|
21794
|
+
* @inner
|
|
21795
|
+
* @type {string}
|
|
21625
21796
|
*/
|
|
21626
|
-
var
|
|
21627
|
-
$el._ginaAcPending = ($el._ginaAcPending || 0) + 1;
|
|
21628
|
-
$el.setAttribute('readonly', 'readonly');
|
|
21629
|
-
setTimeout(() => {
|
|
21630
|
-
$el.removeAttribute('readonly');
|
|
21631
|
-
setTimeout(() => {
|
|
21632
|
-
// Guard on typeof — never truthiness: 0 is a valid caret
|
|
21633
|
-
// position, and the cleared tracker is null.
|
|
21634
|
-
if ( typeof($el._ginaAcCaret) == 'number' ) {
|
|
21635
|
-
setCaretToPos($el, $el._ginaAcCaret);
|
|
21636
|
-
}
|
|
21637
|
-
$el._ginaAcPending--;
|
|
21638
|
-
if ( $el._ginaAcPending <= 0 ) {
|
|
21639
|
-
$el._ginaAcPending = 0;
|
|
21640
|
-
$el._ginaAcCaret = null;
|
|
21641
|
-
}
|
|
21642
|
-
}, 0);
|
|
21643
|
-
}, 0);
|
|
21644
|
-
}
|
|
21797
|
+
var autoCompleteReadonlyMark = 'gina';
|
|
21645
21798
|
|
|
21646
|
-
var isElementVisible = function($el) {
|
|
21647
|
-
return ($el.offsetWidth > 0 || $el.offsetHeight > 0 || $el === document.activeElement) ? true : false;
|
|
21648
|
-
}
|
|
21649
|
-
|
|
21650
|
-
var focusNextElement = function($el, isGoingBackward) {
|
|
21651
|
-
// Add all elements we want to include in our selection
|
|
21652
|
-
// Checkboxes and radios are just ignored: like for the default behavior
|
|
21653
|
-
var focussableElements = 'a:not([disabled]), button:not([disabled]), input[type=text]:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])';
|
|
21654
|
-
if (document.activeElement && document.activeElement.form) {
|
|
21655
|
-
var focussable = Array.prototype.filter.call(document.activeElement.form.querySelectorAll(focussableElements),
|
|
21656
|
-
function (element) {
|
|
21657
|
-
//Check for visibility while always include the current activeElement
|
|
21658
|
-
return element.offsetWidth > 0 || element.offsetHeight > 0 || element === document.activeElement
|
|
21659
|
-
});
|
|
21660
|
-
var index = focussable.indexOf(document.activeElement);
|
|
21661
|
-
if(index > -1) {
|
|
21662
|
-
var direcion = focussable[index + 1]; // By default, going forward
|
|
21663
|
-
if (isGoingBackward) {
|
|
21664
|
-
direcion = focussable[index - 1]
|
|
21665
|
-
}
|
|
21666
|
-
var nextElement = direcion || focussable[0];
|
|
21667
|
-
nextElement.focus();
|
|
21668
|
-
}
|
|
21669
|
-
}
|
|
21670
|
-
}
|
|
21671
21799
|
/**
|
|
21672
21800
|
* handleAutoComplete
|
|
21673
|
-
*
|
|
21674
|
-
*
|
|
21675
|
-
*
|
|
21676
|
-
*
|
|
21677
|
-
*
|
|
21678
|
-
* and offers no autofill/autosuggest. Modifier chords (metaKey/ctrlKey)
|
|
21679
|
-
* are deliberately NOT intercepted (#B134): they return before
|
|
21680
|
-
* preventDefault so the native select-all/copy/paste/cut/undo defaults
|
|
21681
|
-
* run — the rebuild cannot reproduce them.
|
|
21801
|
+
* Keeps a field with `autocomplete="off"` out of Safari's AutoFill, which ignores
|
|
21802
|
+
* the attribute but skips a readonly control when it fills a form: the field stays
|
|
21803
|
+
* `readonly` except while it has focus. Every key stays native (#B1055, #B1063,
|
|
21804
|
+
* #B1064: a keydown rebuild here reversed text on `email` and `number`, trapped Tab,
|
|
21805
|
+
* dropped Enter, `maxlength` and the `input` event, and did not stop Safari's list).
|
|
21682
21806
|
*
|
|
21683
21807
|
* Gated to REAL Safari at the registerForLiveChecking call site (#B135):
|
|
21684
21808
|
* Chromium UAs carry the Safari token but were never this workaround's
|
|
21685
|
-
* target — they get native behavior.
|
|
21686
|
-
*
|
|
21687
|
-
*
|
|
21688
|
-
*
|
|
21689
|
-
*
|
|
21690
|
-
*
|
|
21691
|
-
* keydown handler trusts the recorded caret over the element's own
|
|
21692
|
-
* selection — a `.value` assignment parks the selection at the end of
|
|
21693
|
-
* the field, so a fast next keystroke would otherwise read a stale
|
|
21694
|
-
* position and compose scrambled text.
|
|
21809
|
+
* target — they get native behavior. A `readonly` the page wrote stays the page's: the
|
|
21810
|
+
* call site skips a field that binds with one, and focus lifts only gina's own mark. A field
|
|
21811
|
+
* that already has focus when it binds takes the mark on blur (#B1067), and unbindForm lifts
|
|
21812
|
+
* the mark with the binding (#B1068).
|
|
21813
|
+
*
|
|
21814
|
+
* @inner
|
|
21695
21815
|
* @param {object} $el HTMLElement
|
|
21696
|
-
* @
|
|
21816
|
+
* @returns {void}
|
|
21697
21817
|
*/
|
|
21698
|
-
var handleAutoComplete = function($el
|
|
21818
|
+
var handleAutoComplete = function($el) {
|
|
21699
21819
|
|
|
21700
|
-
|
|
21820
|
+
// #B1067 — a field that already has focus gets no `focusin` to lift the mark: it takes it on blur
|
|
21821
|
+
if ( $el !== document.activeElement ) {
|
|
21822
|
+
$el.setAttribute('readonly', autoCompleteReadonlyMark);
|
|
21823
|
+
}
|
|
21701
21824
|
// #B585 — the form that owns the field carries the ledger unbindForm drains; resolved
|
|
21702
21825
|
// tolerantly, so a harness that hands the handler a bare element still runs it
|
|
21703
21826
|
var $ownerForm = ( $el.form && typeof(instance) != 'undefined' && instance && instance.$forms )
|
|
@@ -21708,256 +21831,53 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21708
21831
|
ledger.push({ el: $el, evt: 'focusout.'+ $el.id, fn:
|
|
21709
21832
|
addListener(gina, $el, 'focusout.'+ $el.id, function(event) {
|
|
21710
21833
|
event.preventDefault();
|
|
21711
|
-
clearTimeout(liveCheckTimer);
|
|
21712
21834
|
|
|
21713
21835
|
var $_el = event.currentTarget;
|
|
21714
21836
|
triggerEvent(gina, $_el, 'change.'+ $_el.id);
|
|
21715
|
-
|
|
21837
|
+
// a `readonly` the page set while the field had focus stays as the page wrote it
|
|
21838
|
+
if ( !$_el.hasAttribute('readonly') ) {
|
|
21839
|
+
$_el.setAttribute('readonly', autoCompleteReadonlyMark);
|
|
21840
|
+
}
|
|
21716
21841
|
}) });
|
|
21717
21842
|
ledger.push({ el: $el, evt: 'focusin.'+ $el.id, fn:
|
|
21718
21843
|
addListener(gina, $el, 'focusin.'+ $el.id, function(event) {
|
|
21719
21844
|
event.preventDefault();
|
|
21720
|
-
event.currentTarget.
|
|
21721
|
-
|
|
21722
|
-
var evtName = 'keydown.'+ event.currentTarget.id;
|
|
21723
|
-
// add once — judged by what is ATTACHED (the ledger) when the owner form is known:
|
|
21724
|
-
// unbind detaches the handler, and a consumer belt restoring the registry key must
|
|
21725
|
-
// not leave the field without its interception (#B585)
|
|
21726
|
-
var isKeydownBound = false;
|
|
21727
|
-
for (let _b = 0, _bLen = ledger.length; _b < _bLen; _b++) {
|
|
21728
|
-
if ( ledger[_b].el === event.currentTarget && ledger[_b].evt === evtName ) { isKeydownBound = true; break; }
|
|
21729
|
-
}
|
|
21730
|
-
if ( ( $ownerForm ) ? !isKeydownBound : typeof(gina.events[evtName]) == 'undefined' ) {
|
|
21731
|
-
ledger.push({ el: event.currentTarget, evt: evtName, fn:
|
|
21732
|
-
addListener(gina, event.currentTarget, evtName, function(e) {
|
|
21733
|
-
// #B134 — modifier chords are NOT intercepted: return before
|
|
21734
|
-
// preventDefault so the native select-all/copy/paste/cut/undo
|
|
21735
|
-
// defaults run. The rebuild below cannot reproduce them — the
|
|
21736
|
-
// printable branch typed the chord letter into the field
|
|
21737
|
-
// (Cmd+A appended "a") and execCommand("paste") is inert in
|
|
21738
|
-
// unprivileged web content. The field is not readonly here
|
|
21739
|
-
// (focusin removed it), so the native edit lands and the
|
|
21740
|
-
// live-check picks it up on the keyup that follows.
|
|
21741
|
-
if ( e.metaKey || e.ctrlKey ) {
|
|
21742
|
-
return;
|
|
21743
|
-
}
|
|
21744
|
-
e.preventDefault();
|
|
21745
|
-
clearTimeout(liveCheckTimer);
|
|
21746
|
-
|
|
21747
|
-
var $_el = e.currentTarget;
|
|
21748
|
-
var str = e.currentTarget.value;
|
|
21749
|
-
var posStart = $_el.selectionStart, posEnd = $_el.selectionEnd;
|
|
21750
|
-
// #B389 — while a deferred caret restore is in flight, the
|
|
21751
|
-
// element's own selection is NOT trustworthy: the last
|
|
21752
|
-
// rebuild parked the caret at the end of the field and the
|
|
21753
|
-
// restore only runs two macrotasks later. Trust the
|
|
21754
|
-
// committed caret instead, so consecutive fast keystrokes
|
|
21755
|
-
// compose the same string a native field would.
|
|
21756
|
-
if ( ($_el._ginaAcPending || 0) > 0 && typeof($_el._ginaAcCaret) == 'number' ) {
|
|
21757
|
-
posStart = posEnd = $_el._ginaAcCaret;
|
|
21758
|
-
}
|
|
21759
|
-
$_el.removeAttribute('readonly');
|
|
21760
|
-
//console.debug('pressed: '+ e.key+'('+ e.keyCode+')', ' S:'+posStart, ' E:'+posEnd, ' MAP: '+ JSON.stringify(keyboardMapping));
|
|
21761
|
-
switch (e.keyCode) {
|
|
21762
|
-
case 46: //Delete
|
|
21763
|
-
if (posStart != posEnd) {
|
|
21764
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd);
|
|
21765
|
-
// #B391 — the posStart == 0 override below ate one
|
|
21766
|
-
// char MORE than the selection (native Delete
|
|
21767
|
-
// removes the selection only): "XY" with [0,1)
|
|
21768
|
-
// selected must give "Y", not "". The generic
|
|
21769
|
-
// rebuild above is already correct at position 0.
|
|
21770
|
-
// if (posStart == 0) {
|
|
21771
|
-
// $_el.value = str.substring(posEnd+1);
|
|
21772
|
-
// }
|
|
21773
|
-
} else if (posStart == 0) {
|
|
21774
|
-
$_el.value = str.substring(posStart+1);
|
|
21775
|
-
} else {
|
|
21776
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd+1);
|
|
21777
|
-
}
|
|
21778
|
-
|
|
21779
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
21780
|
-
// restore (the retired tail below re-applied a stale
|
|
21781
|
-
// per-keystroke capture two macrotasks later; its
|
|
21782
|
-
// if/else chain always resolved to posStart anyway).
|
|
21783
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
21784
|
-
// setTimeout(() => {
|
|
21785
|
-
// $_el.removeAttribute('readonly');
|
|
21786
|
-
// setTimeout(() => {
|
|
21787
|
-
// if (posStart != posEnd) {
|
|
21788
|
-
// setCaretToPos($_el, posStart);
|
|
21789
|
-
// } else if (posStart == 0) {
|
|
21790
|
-
// setCaretToPos($_el, posStart);
|
|
21791
|
-
// } else {
|
|
21792
|
-
// setCaretToPos($_el, posStart);
|
|
21793
|
-
// }
|
|
21794
|
-
// }, 0)
|
|
21795
|
-
//
|
|
21796
|
-
// }, 0);
|
|
21797
|
-
commitCaret($_el, posStart);
|
|
21798
|
-
queueCaretRestore($_el);
|
|
21799
|
-
break
|
|
21800
|
-
case 8: //Backspace
|
|
21801
|
-
if (posStart != posEnd) {
|
|
21802
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd);
|
|
21803
|
-
if (posStart == 0) {
|
|
21804
|
-
$_el.value = str.substring(posEnd);
|
|
21805
|
-
}
|
|
21806
|
-
} else if (posStart == 0) {
|
|
21807
|
-
// #B390 — native Backspace at position 0 is a
|
|
21808
|
-
// NO-OP: nothing sits before the caret. The
|
|
21809
|
-
// retired rebuild below deleted the FIRST
|
|
21810
|
-
// character instead. No value change, no caret
|
|
21811
|
-
// move, no restore to queue.
|
|
21812
|
-
// $_el.value = str.substring(posStart+1);
|
|
21813
|
-
break;
|
|
21814
|
-
} else {
|
|
21815
|
-
$_el.value = str.substring(0, posStart-1) + str.substring(posEnd);
|
|
21816
|
-
}
|
|
21817
|
-
|
|
21818
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
21819
|
-
// restore (the retired tail below re-applied a stale
|
|
21820
|
-
// per-keystroke capture two macrotasks later).
|
|
21821
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
21822
|
-
// setTimeout(() => {
|
|
21823
|
-
// $_el.removeAttribute('readonly');
|
|
21824
|
-
// setTimeout(() => {
|
|
21825
|
-
// if (posStart != posEnd) {
|
|
21826
|
-
// setCaretToPos($_el, posStart);
|
|
21827
|
-
// } else if (posStart == 0) {
|
|
21828
|
-
// setCaretToPos($_el, posStart);
|
|
21829
|
-
// } else {
|
|
21830
|
-
// setCaretToPos($_el, posStart-1);
|
|
21831
|
-
// }
|
|
21832
|
-
// }, 0)
|
|
21833
|
-
//
|
|
21834
|
-
// }, 0);
|
|
21835
|
-
commitCaret($_el, (posStart != posEnd) ? posStart : posStart-1);
|
|
21836
|
-
queueCaretRestore($_el);
|
|
21837
|
-
break;
|
|
21838
|
-
case 9: // Tab
|
|
21839
|
-
if (keyboardMapping[16] && keyboardMapping[9]) {
|
|
21840
|
-
focusNextElement($_el, true);
|
|
21841
|
-
} else {
|
|
21842
|
-
focusNextElement($_el);
|
|
21843
|
-
}
|
|
21844
|
-
break;
|
|
21845
|
-
case 13: // Enter
|
|
21846
|
-
case 16: // Shift
|
|
21847
|
-
break;
|
|
21848
|
-
case 37: // ArrowLeft
|
|
21849
|
-
console.debug('moving left ', posStart-1);
|
|
21850
|
-
// #B392 — setCaretToPos(-1) at position 0 coerces to
|
|
21851
|
-
// the unsigned maximum and clamps to the END of the
|
|
21852
|
-
// field (measured on WebKit and Chromium): floor at
|
|
21853
|
-
// 0. #B389 — commit through the tracker so a pending
|
|
21854
|
-
// deferred restore cannot undo the arrow move.
|
|
21855
|
-
// setCaretToPos($_el, posStart-1);
|
|
21856
|
-
commitCaret($_el, (posStart > 0) ? posStart-1 : 0);
|
|
21857
|
-
break;
|
|
21858
|
-
case 39: // ArrowRight
|
|
21859
|
-
if (posStart+1 < str.length+1) {
|
|
21860
|
-
// #B389 — through the tracker (see ArrowLeft).
|
|
21861
|
-
// setCaretToPos($_el, posStart+1);
|
|
21862
|
-
commitCaret($_el, posStart+1);
|
|
21863
|
-
}
|
|
21864
|
-
break;
|
|
21865
|
-
// Shortcuts
|
|
21866
|
-
// #B134 — the modifier-chord cases below are unreachable
|
|
21867
|
-
// since the e.metaKey/e.ctrlKey bail at the top of this
|
|
21868
|
-
// handler: chords now run natively, and the native
|
|
21869
|
-
// copy/cut/paste/select-all/undo defaults are correct
|
|
21870
|
-
// where these re-implementations were not (the paste
|
|
21871
|
-
// re-implementation was inert in unprivileged web
|
|
21872
|
-
// content, and undo-to-defaultValue wiped user input).
|
|
21873
|
-
// Kept commented for the record.
|
|
21874
|
-
// case 17: // CTRL
|
|
21875
|
-
// case 91: // CMD
|
|
21876
|
-
// console.debug("CMD, CTRL hit");
|
|
21877
|
-
// e.preventDefault();
|
|
21878
|
-
// break;
|
|
21879
|
-
// case 67: // to handle CMD+C (copy)
|
|
21880
|
-
// if (
|
|
21881
|
-
// keyboardMapping[67] && keyboardMapping[91] // mac osx
|
|
21882
|
-
// ||
|
|
21883
|
-
// keyboardMapping[67] && keyboardMapping[17] // windows
|
|
21884
|
-
// ) {
|
|
21885
|
-
// $_el.setSelectionRange(posStart, posEnd);
|
|
21886
|
-
// document.execCommand("copy");
|
|
21887
|
-
// break;
|
|
21888
|
-
// }
|
|
21889
|
-
// case 86: // to handle CMD+V (paste)
|
|
21890
|
-
// if (
|
|
21891
|
-
// keyboardMapping[86] && keyboardMapping[91] // mac osx
|
|
21892
|
-
// ||
|
|
21893
|
-
// keyboardMapping[86] && keyboardMapping[17] // windows
|
|
21894
|
-
// ) {
|
|
21895
|
-
// if (posStart != posEnd) {
|
|
21896
|
-
// $_el.value = $_el.value.replace(str.substring(posStart, posEnd), '');
|
|
21897
|
-
// }
|
|
21898
|
-
// setCaretToPos($_el, posStart);
|
|
21899
|
-
// document.execCommand("paste");
|
|
21900
|
-
// break;
|
|
21901
|
-
// }
|
|
21902
|
-
// case 88: // to handle CMD+X (cut)
|
|
21903
|
-
// if (
|
|
21904
|
-
// keyboardMapping[88] && keyboardMapping[91] // mac osx
|
|
21905
|
-
// ||
|
|
21906
|
-
// keyboardMapping[88] && keyboardMapping[17] // windows
|
|
21907
|
-
// ) {
|
|
21908
|
-
// $_el.setSelectionRange(posStart, posEnd);
|
|
21909
|
-
// document.execCommand("cut");
|
|
21910
|
-
// break;
|
|
21911
|
-
// }
|
|
21912
|
-
// case 90: // to handle CMD+Z (undo)
|
|
21913
|
-
// if (
|
|
21914
|
-
// keyboardMapping[90] && keyboardMapping[91] // mac osx
|
|
21915
|
-
// ||
|
|
21916
|
-
// keyboardMapping[90] && keyboardMapping[17] // windows
|
|
21917
|
-
// ) {
|
|
21918
|
-
// $_el.value = $_el.defaultValue;
|
|
21919
|
-
// break;
|
|
21920
|
-
// }
|
|
21921
|
-
default:
|
|
21922
|
-
// Replace selection
|
|
21923
|
-
if (e.key.length > 1) {
|
|
21924
|
-
break;
|
|
21925
|
-
}
|
|
21926
|
-
if (posStart != posEnd) {
|
|
21927
|
-
$_el.value = str.substring(0, posStart) + e.key;
|
|
21928
|
-
if (posEnd-1 < str.length) {
|
|
21929
|
-
$_el.value += str.substring(posEnd)
|
|
21930
|
-
}
|
|
21931
|
-
} else if (posStart == 0) {
|
|
21932
|
-
$_el.value = e.key + str.substring(posStart);
|
|
21933
|
-
} else {
|
|
21934
|
-
$_el.value = str.substring(0, posStart) + e.key + str.substring(posEnd);
|
|
21935
|
-
}
|
|
21936
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
21937
|
-
// restore. The retired tail below only restored the
|
|
21938
|
-
// caret two macrotasks after the `.value` assignment
|
|
21939
|
-
// (which parks it at the end of the field), so a fast
|
|
21940
|
-
// second keystroke read a stale selectionStart and
|
|
21941
|
-
// inserted at the wrong offset — text landed at the
|
|
21942
|
-
// end instead of the caret (gh issue #63).
|
|
21943
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
21944
|
-
// // Force restore last caret position
|
|
21945
|
-
// setTimeout(() => {
|
|
21946
|
-
// $_el.removeAttribute('readonly');
|
|
21947
|
-
// setTimeout(() => {
|
|
21948
|
-
// setCaretToPos($_el, posStart+1);
|
|
21949
|
-
// }, 0);
|
|
21950
|
-
//
|
|
21951
|
-
// }, 0);
|
|
21952
|
-
commitCaret($_el, posStart+1);
|
|
21953
|
-
queueCaretRestore($_el);
|
|
21954
|
-
break;
|
|
21955
|
-
} //EO Switch
|
|
21956
|
-
}) });
|
|
21845
|
+
if ( event.currentTarget.getAttribute('readonly') == autoCompleteReadonlyMark ) {
|
|
21846
|
+
event.currentTarget.removeAttribute('readonly');
|
|
21957
21847
|
}
|
|
21958
|
-
|
|
21959
21848
|
}) });
|
|
21849
|
+
}
|
|
21960
21850
|
|
|
21851
|
+
/**
|
|
21852
|
+
* warnSharedFieldId
|
|
21853
|
+
* #B1036 — `gina.events['registered.<id>']`, `change.<id>` and `keyup.<id>` are global and keyed by
|
|
21854
|
+
* the id, so of two controls that share an id only the first gets a value setter and a live listener.
|
|
21855
|
+
* Nothing else would say so: the second field shows no error and its form's submit control stays
|
|
21856
|
+
* gated while the user types. Warns once per form and id; never throws, this runs inside a bind.
|
|
21857
|
+
*
|
|
21858
|
+
* @inner
|
|
21859
|
+
* @param {object} $form - the form's record
|
|
21860
|
+
* @param {object} $el - the control whose registration was refused
|
|
21861
|
+
* @returns {void}
|
|
21862
|
+
*
|
|
21863
|
+
* @example
|
|
21864
|
+
* warnSharedFieldId(instance.$forms['second'], document.querySelector('#second [name="ref"]'));
|
|
21865
|
+
*/
|
|
21866
|
+
var warnedSharedFieldIds = {};
|
|
21867
|
+
var warnSharedFieldId = function($form, $el) {
|
|
21868
|
+
var formId = ( $form.target ) ? $form.target.getAttribute('id') : '';
|
|
21869
|
+
var key = formId + '#' + $el.id;
|
|
21870
|
+
if ( warnedSharedFieldIds[key] ) {
|
|
21871
|
+
return;
|
|
21872
|
+
}
|
|
21873
|
+
try {
|
|
21874
|
+
if ( document.querySelectorAll('[id="'+ $el.id.replace(/["\\]/g, '\\$&') +'"]').length > 1 ) {
|
|
21875
|
+
warnedSharedFieldIds[key] = true;
|
|
21876
|
+
console.warn('[FormValidator] form `#'+ formId +'`: the id `'+ $el.id +'` is used more than once in this page, so this field gets no live check: give each control its own id.');
|
|
21877
|
+
}
|
|
21878
|
+
} catch (err) {
|
|
21879
|
+
// an id no selector can quote: nothing to say about it
|
|
21880
|
+
}
|
|
21961
21881
|
}
|
|
21962
21882
|
|
|
21963
21883
|
var registerForLiveChecking = function($form, $el) {
|
|
@@ -21970,11 +21890,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
21970
21890
|
// `change` per the author contract, and gina has no `input` proxy for native inputs).
|
|
21971
21891
|
var isCustomEl = ( $el.tagName.indexOf('-') > -1 );
|
|
21972
21892
|
// Filter supported elements
|
|
21973
|
-
if (
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
21893
|
+
if ( !isCustomEl && !/^(input|textarea)$/i.test($el.tagName) ) {
|
|
21894
|
+
return
|
|
21895
|
+
}
|
|
21896
|
+
if ( typeof(gina.events['registered.' + $el.id]) != 'undefined' ) {
|
|
21897
|
+
warnSharedFieldId($form, $el);
|
|
21978
21898
|
return
|
|
21979
21899
|
}
|
|
21980
21900
|
// Mutation obeserver - all but type == files, and custom elements (hazard a)
|
|
@@ -22002,14 +21922,17 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
22002
21922
|
// handleAutoComplete header). WebKit-on-iOS third-party
|
|
22003
21923
|
// browsers (CriOS/FxiOS/EdgiOS — no "Chrome"/"Chromium"
|
|
22004
21924
|
// token) stay matched on purpose: they run Safari's engine.
|
|
21925
|
+
// A `readonly` the page wrote stays (#B1064); gina's own mark comes back on
|
|
21926
|
+
// a re-bind, and in a clone of a bound field.
|
|
22005
21927
|
var isAutoCompleteField = $el.getAttribute('autocomplete');
|
|
22006
21928
|
if (
|
|
22007
21929
|
/safari/i.test(navigator.userAgent)
|
|
22008
21930
|
&& !/chrom(e|ium)/i.test(navigator.userAgent)
|
|
22009
21931
|
&& isAutoCompleteField
|
|
22010
21932
|
&& /^(off|false)/i.test(isAutoCompleteField)
|
|
21933
|
+
&& ( !$el.hasAttribute('readonly') || $el.getAttribute('readonly') == autoCompleteReadonlyMark )
|
|
22011
21934
|
) {
|
|
22012
|
-
handleAutoComplete($el
|
|
21935
|
+
handleAutoComplete($el)
|
|
22013
21936
|
}
|
|
22014
21937
|
}
|
|
22015
21938
|
break;
|
|
@@ -22303,7 +22226,8 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
22303
22226
|
* Detaches what the form's current binding attached and marks the record unbound. Since
|
|
22304
22227
|
* #B585 this is the exact inverse of `bindForm`: the per-form ledger (`$form.boundListeners`)
|
|
22305
22228
|
* and the reassociated-control side-table are drained by reference, the registry keys the
|
|
22306
|
-
* binding wrote are released, the live-check registration flags
|
|
22229
|
+
* binding wrote are released, the live-check registration flags and gina's own `readonly` mark
|
|
22230
|
+
* on a Safari `autocomplete="off"` field are cleared (#B1068), and the submit
|
|
22307
22231
|
* trigger's marks (`data-gina-form-submit-trigger-for`, the `__ginaSubmitBoundFor` expando)
|
|
22308
22232
|
* are released with the record's `submitTrigger` claim, so the next bind — on this record,
|
|
22309
22233
|
* or on a fresh same-id record after `destroy()` — claims and binds the trigger again.
|
|
@@ -22420,6 +22344,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
22420
22344
|
if ( ownedId && typeof(gina.events['registered.' + ownedId]) != 'undefined' ) {
|
|
22421
22345
|
delete gina.events['registered.' + ownedId];
|
|
22422
22346
|
}
|
|
22347
|
+
// #B1068 — gina's own `readonly` (autoCompleteReadonlyMark) goes with the binding: no
|
|
22348
|
+
// `focusin` listener is left to lift it. A `readonly` the page wrote stays.
|
|
22349
|
+
if ( $owned[i].getAttribute && $owned[i].getAttribute('readonly') == 'gina' ) {
|
|
22350
|
+
$owned[i].removeAttribute('readonly');
|
|
22351
|
+
}
|
|
22423
22352
|
}
|
|
22424
22353
|
|
|
22425
22354
|
// [HTML5 form-reassociation support] Drain per-control listeners attached to
|
|
@@ -23058,6 +22987,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23058
22987
|
&& !/none/i.test(window.getComputedStyle($previewContainer).display)
|
|
23059
22988
|
// for safety
|
|
23060
22989
|
&& !/none/i.test($previewContainer.parentElement.style.display)
|
|
22990
|
+
// #B990 — a re-bind (`reBind()`, `.bind()`, a bind after `destroy()`) while the input
|
|
22991
|
+
// showed files it had staged read their previews as saved files: an image became a
|
|
22992
|
+
// saved entry and warned about a delete link the page never had, and a file shown
|
|
22993
|
+
// without an image left no entry, so its reset did nothing and the form saved the
|
|
22994
|
+
// file. The input's entries stand while its staged files are on the page.
|
|
22995
|
+
&& !hasLiveStagedFiles($uploadTrigger)
|
|
23061
22996
|
) {
|
|
23062
22997
|
|
|
23063
22998
|
var $deleteLink = null, index = 0, bindingType = 'delete';
|
|
@@ -23496,7 +23431,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23496
23431
|
// was: /^(true)$/i.test($form.target.dataset.ginaFormLiveCheckEnabled && $form.rules.count() > 0)
|
|
23497
23432
|
if (
|
|
23498
23433
|
/^(true)$/i.test($form.target.dataset.ginaFormLiveCheckEnabled) && $form.rules.count() > 0
|
|
23499
|
-
//
|
|
23434
|
+
// #B1037 — a reset restores values, it touches nothing: `resetFields` ends with the one
|
|
23435
|
+
// pass of a reset
|
|
23436
|
+
&& !instance.$forms[$el.form.getAttribute('id')].isBeingReseted
|
|
23500
23437
|
) {
|
|
23501
23438
|
var localField = {}, $localField = {}, $localForm = null;
|
|
23502
23439
|
// #B781 — the select is read from `$el`, the element this function is given. It
|
|
@@ -23510,9 +23447,18 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23510
23447
|
localField[$el.name] = $el.value;
|
|
23511
23448
|
$localField[$el.name] = $el;
|
|
23512
23449
|
|
|
23450
|
+
// #B1037 — same stale pass as processEvent's (keep the two copies in sync)
|
|
23451
|
+
var resetCountAtStart = instance.$forms[$localForm.getAttribute('id')].resetCount || 0;
|
|
23452
|
+
var isStaleAfterReset = function() {
|
|
23453
|
+
return ( instance.$forms[$localForm.getAttribute('id')].resetCount || 0 ) != resetCountAtStart;
|
|
23454
|
+
};
|
|
23455
|
+
|
|
23513
23456
|
instance.$forms[$localForm.getAttribute('id')].isValidating = true;
|
|
23514
23457
|
validate($el, localField, $localField, $form.rules, function onLiveValidation(result){
|
|
23515
23458
|
instance.$forms[$localForm.getAttribute('id')].isValidating = false;
|
|
23459
|
+
if ( isStaleAfterReset() ) {
|
|
23460
|
+
return;
|
|
23461
|
+
}
|
|
23516
23462
|
var isFormValid = result.isValid();
|
|
23517
23463
|
//console.debug('onSilentPreGlobalLiveValidation: '+ isFormValid, result);
|
|
23518
23464
|
if (isFormValid) {
|
|
@@ -23543,6 +23489,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23543
23489
|
instance.$forms[formId].isValidating = true;
|
|
23544
23490
|
validate($gForm, gFields, $gFields, gRules, function onSilentGlobalLiveValidation(gResult){
|
|
23545
23491
|
instance.$forms[formId].isValidating = false;
|
|
23492
|
+
if ( isStaleAfterReset() ) {
|
|
23493
|
+
return;
|
|
23494
|
+
}
|
|
23546
23495
|
console.debug('[updateSelect]: onSilentGlobalLiveValidation: '+ gResult.isValid(), gResult);
|
|
23547
23496
|
// Fixed on 2025-03-16
|
|
23548
23497
|
var isFormValid = gResult.isValid();
|
|
@@ -23822,6 +23771,22 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23822
23771
|
// #B929 — every regexp character of the id is escaped.
|
|
23823
23772
|
// was: var re = new RegExp('(^|\\s)' + $el.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') + '(\\s|$)');
|
|
23824
23773
|
var re = new RegExp('(^|\\s)' + $el.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(\\s|$)');
|
|
23774
|
+
// #B1037 — during a reset, a master's group is applied on the timer below, after the reset's
|
|
23775
|
+
// pass has read the form with the group's old state: that timer reads it again.
|
|
23776
|
+
var isGroupReadAfterReset = false;
|
|
23777
|
+
if ( !isInit && $form.isBeingReseted ) {
|
|
23778
|
+
for (let id in allFormGroupedElements) {
|
|
23779
|
+
if ( re.test(allFormGroupedElements[id].group) ) {
|
|
23780
|
+
isGroupReadAfterReset = true;
|
|
23781
|
+
break;
|
|
23782
|
+
}
|
|
23783
|
+
}
|
|
23784
|
+
}
|
|
23785
|
+
var readGroupAfterReset = function() {
|
|
23786
|
+
if ( isGroupReadAfterReset && instance.$forms[$form.id] ) {
|
|
23787
|
+
revalidateSilently(instance.$forms[$form.id]);
|
|
23788
|
+
}
|
|
23789
|
+
};
|
|
23825
23790
|
// set to checked if not checked: false -> true
|
|
23826
23791
|
if ( !checked || checked == 'null' || checked == 'false' || checked == '' ) {
|
|
23827
23792
|
|
|
@@ -23832,6 +23797,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23832
23797
|
// means that the checkbox is member of another group
|
|
23833
23798
|
triggerHandleCheckBoxGroupDependencies($el, checkBoxGroup, true);
|
|
23834
23799
|
updateGroupChildrenState($el);
|
|
23800
|
+
readGroupAfterReset();
|
|
23835
23801
|
}, 0);
|
|
23836
23802
|
} else {
|
|
23837
23803
|
updateGroupChildrenState($el);
|
|
@@ -23856,6 +23822,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
23856
23822
|
// means that the checkbox is member of another group
|
|
23857
23823
|
triggerHandleCheckBoxGroupDependencies($el, checkBoxGroup, false);
|
|
23858
23824
|
updateGroupChildrenState($el);
|
|
23825
|
+
readGroupAfterReset();
|
|
23859
23826
|
}, 0);
|
|
23860
23827
|
$el.setAttribute('checked', 'checked');
|
|
23861
23828
|
} else {
|
|
@@ -24547,22 +24514,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
24547
24514
|
|
|
24548
24515
|
var _id = e.currentTarget.id || e.target.id
|
|
24549
24516
|
var $form = instance.$forms[_id];
|
|
24550
|
-
$form
|
|
24551
|
-
resetFields($form);
|
|
24552
|
-
// forcing it
|
|
24553
|
-
var validationInfo = getFormValidationInfos($form.target, $form.rules, true);
|
|
24554
|
-
var fields = validationInfo.fields;
|
|
24555
|
-
var $fields = validationInfo.$fields;
|
|
24556
|
-
|
|
24557
|
-
validate($form.target, fields, $fields, $form.rules, function onSilentResetValidation(result){
|
|
24558
|
-
var isFormValid = result.isValid();
|
|
24559
|
-
console.debug('silent reset validation result[isValid:'+isFormValid+']: ', result);
|
|
24560
|
-
//resetting error display
|
|
24561
|
-
handleErrorsDisplay($form.target, {});
|
|
24562
|
-
|
|
24563
|
-
updateSubmitTriggerState( $form.target , isFormValid );
|
|
24564
|
-
$form.target.dataset.ginaFormIsResetting = false;
|
|
24565
|
-
});
|
|
24517
|
+
resetFields($form, true);
|
|
24566
24518
|
}) })
|
|
24567
24519
|
}
|
|
24568
24520
|
// Form-level proxies: capture bubbled events from in-tree controls.
|
|
@@ -24823,7 +24775,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
24823
24775
|
}
|
|
24824
24776
|
instance.$forms[id].isSubmitting = true;
|
|
24825
24777
|
instance.$forms[id].isSending = false;
|
|
24778
|
+
var resetCountAtClick = instance.$forms[id].resetCount || 0;
|
|
24826
24779
|
validate($target, fields, $fields, rule, function onClickValidation(result){
|
|
24780
|
+
if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtClick, result) ) {
|
|
24781
|
+
return;
|
|
24782
|
+
}
|
|
24827
24783
|
triggerEvent(gina, $target, 'validate.' + _id, result)
|
|
24828
24784
|
})
|
|
24829
24785
|
}
|
|
@@ -25204,8 +25160,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
25204
25160
|
instance.$forms[id].isSending = false;
|
|
25205
25161
|
}
|
|
25206
25162
|
instance.$forms[id].isValidating = true;
|
|
25163
|
+
var resetCountAtSubmit = instance.$forms[id].resetCount || 0;
|
|
25207
25164
|
validate($target, fields, $fields, rule, function onSubmitValidation(result){
|
|
25208
25165
|
instance.$forms[id].isValidating = false;
|
|
25166
|
+
if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtSubmit, result) ) {
|
|
25167
|
+
return;
|
|
25168
|
+
}
|
|
25209
25169
|
// var isFormValid = result.isValid();
|
|
25210
25170
|
// if (isFormValid) {
|
|
25211
25171
|
// //resetting error display
|
|
@@ -25273,6 +25233,34 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
25273
25233
|
|
|
25274
25234
|
} // EO bindForm()
|
|
25275
25235
|
|
|
25236
|
+
/**
|
|
25237
|
+
* releaseSubmitRefusedAfterReset
|
|
25238
|
+
*
|
|
25239
|
+
* #B1037 — a submit that waited for its `query` verdict while the form was reset: a refusal judged
|
|
25240
|
+
* values that are gone, so it paints nothing and moves no focus on the restored form; only what the
|
|
25241
|
+
* refusal would have released is released. A valid verdict still sends: the user asked for those
|
|
25242
|
+
* values, and a script that submits then resets must not lose its request.
|
|
25243
|
+
*
|
|
25244
|
+
* @inner
|
|
25245
|
+
* @param {object} $formInstance - the form's record
|
|
25246
|
+
* @param {number} resetCountAtStart - the record's `resetCount` when the submit pass started
|
|
25247
|
+
* @param {object} result - the pass's result (`isValid()`)
|
|
25248
|
+
* @returns {boolean} true when the refusal was dropped: the caller stops there
|
|
25249
|
+
*
|
|
25250
|
+
* @example
|
|
25251
|
+
* if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtClick, result) ) { return; }
|
|
25252
|
+
*/
|
|
25253
|
+
var releaseSubmitRefusedAfterReset = function($formInstance, resetCountAtStart, result) {
|
|
25254
|
+
if ( !$formInstance || ( $formInstance.resetCount || 0 ) == resetCountAtStart || result.isValid() ) {
|
|
25255
|
+
return false;
|
|
25256
|
+
}
|
|
25257
|
+
$formInstance.isSubmitting = false;
|
|
25258
|
+
if ( !/^true$/i.test($formInstance.isSending) ) {
|
|
25259
|
+
disarmSubmitLoading($formInstance);
|
|
25260
|
+
}
|
|
25261
|
+
return true;
|
|
25262
|
+
};
|
|
25263
|
+
|
|
25276
25264
|
/**
|
|
25277
25265
|
* updateSubmitTriggerState
|
|
25278
25266
|
*
|
|
@@ -25507,9 +25495,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
25507
25495
|
return;
|
|
25508
25496
|
}
|
|
25509
25497
|
var validationInfo = excludeWithheldAutofill(getFormValidationInfos($formInstance.target, $formInstance.rules));
|
|
25510
|
-
|
|
25498
|
+
var onSilentAutofillValidation = function(result) {
|
|
25511
25499
|
updateSubmitTriggerState($formInstance, result.isValid());
|
|
25512
|
-
}
|
|
25500
|
+
};
|
|
25501
|
+
// #B1037 — a `query` verdict of this pass is neither stored nor painted either
|
|
25502
|
+
onSilentAutofillValidation.isSilentPass = true;
|
|
25503
|
+
validate($formInstance.target, validationInfo.fields, validationInfo.$fields, $formInstance.rules, onSilentAutofillValidation);
|
|
25513
25504
|
};
|
|
25514
25505
|
|
|
25515
25506
|
/**
|
|
@@ -26283,7 +26274,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26283
26274
|
* @param {object} rules - the rule set to apply. The pass works on a copy of it (#B885): a
|
|
26284
26275
|
* `_case_` application, an exclusion or a RegExp alias found during the pass never reaches
|
|
26285
26276
|
* the object the caller holds
|
|
26286
|
-
* @param {callback} cb
|
|
26277
|
+
* @param {callback} cb - with `cb.isSilentPass` (#B1037) a `query` verdict is neither stored nor
|
|
26278
|
+
* painted here, and the pass waits for the answer to its own value: the caller reads the result.
|
|
26279
|
+
* With `cb.judgedQueries` (#B1039), a map of the fields whose `query` verdict is in: this pass does
|
|
26280
|
+
* not ask them again
|
|
26287
26281
|
* @param {string} [culture] // #i18n — server form-body path only; forwarded to FormValidator
|
|
26288
26282
|
*/
|
|
26289
26283
|
var validate = function($formOrElement, fields, $fields, rules, cb, culture) {
|
|
@@ -26339,6 +26333,8 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26339
26333
|
// a sync-only verdict and send() fired while the query XHR was in
|
|
26340
26334
|
// flight). Pass-local by construction, so only the first case matches.
|
|
26341
26335
|
, armedAsyncFields = {}
|
|
26336
|
+
// #B1037 — the form's reset count when this pass started, read by the `query` waiter
|
|
26337
|
+
, resetCountAtPassStart = 0
|
|
26342
26338
|
;
|
|
26343
26339
|
|
|
26344
26340
|
|
|
@@ -26490,6 +26486,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26490
26486
|
} else {
|
|
26491
26487
|
// query rule case
|
|
26492
26488
|
if ( /^query$/.test(rule) ) {
|
|
26489
|
+
// #B1039 — the pass a clean verdict starts (below) does not ask again a field
|
|
26490
|
+
// whose verdict is in: it would answer at once, and its clean verdict would
|
|
26491
|
+
// start the same pass, with no end.
|
|
26492
|
+
if ( cb && cb.judgedQueries && cb.judgedQueries[field] ) {
|
|
26493
|
+
continue;
|
|
26494
|
+
}
|
|
26493
26495
|
$asyncField = $fields[field];
|
|
26494
26496
|
$asyncFieldId = $asyncField.getAttribute('id');
|
|
26495
26497
|
asyncEvt = 'asyncCompleted.'+ $asyncFieldId;
|
|
@@ -26523,6 +26525,17 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26523
26525
|
//console.debug('Adding listner '+asyncEvt);
|
|
26524
26526
|
addListener(gina, $asyncField, asyncEvt, function onasyncCompleted(event) {
|
|
26525
26527
|
event.preventDefault();
|
|
26528
|
+
// #B1037 — the answer to another value (the request of an earlier pass; each
|
|
26529
|
+
// settle wakes every waiter of the field). A silent pass has no later pass to
|
|
26530
|
+
// correct it: it waits for the answer to its own value. The engine lowercases
|
|
26531
|
+
// the value it answers for.
|
|
26532
|
+
if (
|
|
26533
|
+
cb && cb.isSilentPass
|
|
26534
|
+
&& event.detail && d[field]
|
|
26535
|
+
&& String(event.detail.value).toLowerCase() != String(d[field].value).toLowerCase()
|
|
26536
|
+
) {
|
|
26537
|
+
return;
|
|
26538
|
+
}
|
|
26526
26539
|
// #B332/#B334 — one settle per waiter. Waiters stack per pass
|
|
26527
26540
|
// now, so each must consume exactly one wake-up and leave the
|
|
26528
26541
|
// node: the registry-only `removeListener` in the completion
|
|
@@ -26555,6 +26568,14 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26555
26568
|
}
|
|
26556
26569
|
var formId = $currentForm.getAttribute('id');
|
|
26557
26570
|
var isFormValid = null;
|
|
26571
|
+
// #B1037 — the form was reset since this pass started, so the value it
|
|
26572
|
+
// judged is gone: nothing of this verdict is stored, painted or given to
|
|
26573
|
+
// the gate. The pass still completes for its caller.
|
|
26574
|
+
var isStaleVerdict = ( instance.$forms[formId].resetCount || 0 ) != resetCountAtPassStart;
|
|
26575
|
+
// A silent pass (the one of a reset) stores and paints nothing either; its
|
|
26576
|
+
// caller reads the result. A flag on the callback, as `isRevealCompletion`
|
|
26577
|
+
// is: it lives and dies with the pass, so it cannot stay up.
|
|
26578
|
+
var isDisplayHeld = isStaleVerdict || !!( cb && cb.isSilentPass );
|
|
26558
26579
|
|
|
26559
26580
|
if (
|
|
26560
26581
|
hasParsedAllRules
|
|
@@ -26592,14 +26613,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26592
26613
|
instance.$forms[formId].errors = {}
|
|
26593
26614
|
}
|
|
26594
26615
|
// Fixed on 2025-03-16
|
|
26595
|
-
if ( typeof(cb._errors[field]) != 'undefined' ) {
|
|
26616
|
+
if ( typeof(cb._errors[field]) != 'undefined' && !isDisplayHeld ) {
|
|
26596
26617
|
instance.$forms[formId].errors[field] = cb._errors[field];
|
|
26597
26618
|
}
|
|
26598
26619
|
console.debug('[A] Refreshing warning/error on field '+ field);
|
|
26599
26620
|
if (
|
|
26600
|
-
!
|
|
26601
|
-
|
|
26602
|
-
|
|
26621
|
+
!isDisplayHeld
|
|
26622
|
+
&& (
|
|
26623
|
+
!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating)
|
|
26624
|
+
|| d[field].target.value != ''
|
|
26625
|
+
)
|
|
26603
26626
|
) {
|
|
26604
26627
|
refreshWarning($allFields[field]);
|
|
26605
26628
|
handleErrorsDisplay($currentForm, cb._errors, cb._data, field);
|
|
@@ -26693,7 +26716,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26693
26716
|
if (isFormValid) {
|
|
26694
26717
|
needsGlobalReValidation = true;
|
|
26695
26718
|
}
|
|
26696
|
-
if (!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating)) {
|
|
26719
|
+
if (!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating) && !isDisplayHeld) {
|
|
26697
26720
|
console.debug('[1] Should update error display now ', cb._errors);
|
|
26698
26721
|
instance.$forms[formId].errors = merge(cb._errors, instance.$forms[formId].errors);
|
|
26699
26722
|
refreshWarning($allFields[field]);
|
|
@@ -26733,8 +26756,25 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26733
26756
|
triggerEvent(gina, $formOrElement, 'validated.' + formId, cb);
|
|
26734
26757
|
}
|
|
26735
26758
|
|
|
26759
|
+
// #B1037 — a stale verdict starts no pass, and leaves the flag that pass's end
|
|
26760
|
+
// would have put down
|
|
26761
|
+
if (isStaleVerdict && needsGlobalReValidation) {
|
|
26762
|
+
instance.$forms[formId].isValidating = false;
|
|
26763
|
+
}
|
|
26764
|
+
if (isStaleVerdict) {
|
|
26765
|
+
needsGlobalReValidation = false;
|
|
26766
|
+
}
|
|
26767
|
+
|
|
26736
26768
|
if (needsGlobalReValidation) {
|
|
26737
|
-
|
|
26769
|
+
// #B1039 — this arm leaves its field in the pass's input, and a `_case_`
|
|
26770
|
+
// driver stays there whatever its rules (#B230). The field has to stay: a
|
|
26771
|
+
// driver's entry is its case value, and without it a radio group reads its
|
|
26772
|
+
// first radio, whichever is checked. So the pass is told not to ask it again.
|
|
26773
|
+
// A copy per pass, since each `query` field of a form starts a chain of its
|
|
26774
|
+
// own; the set only grows along a chain, so the chain ends.
|
|
26775
|
+
var judgedQueries = ( cb && cb.judgedQueries ) ? JSON.clone(cb.judgedQueries) : {};
|
|
26776
|
+
judgedQueries[field] = true;
|
|
26777
|
+
var onSilentQueryGlobalLiveValidation = function(gResult){
|
|
26738
26778
|
instance.$forms[formId].isValidating = false;
|
|
26739
26779
|
// console.debug('['+ formId +'] onSilentQueryGlobalLiveValidation: '+ gResult.isValid(), gResult);
|
|
26740
26780
|
isFormValid = gResult.isValid();
|
|
@@ -26751,9 +26791,14 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26751
26791
|
window.ginaToolbar.update('forms', objCallback);
|
|
26752
26792
|
}
|
|
26753
26793
|
|
|
26754
|
-
|
|
26794
|
+
if ( !isDisplayHeld ) {
|
|
26795
|
+
handleErrorsDisplay($currentForm, gResult.error, gResult.data, field);
|
|
26796
|
+
}
|
|
26755
26797
|
updateSubmitTriggerState( $currentForm, isFormValid);
|
|
26756
|
-
}
|
|
26798
|
+
};
|
|
26799
|
+
onSilentQueryGlobalLiveValidation.isSilentPass = isDisplayHeld;
|
|
26800
|
+
onSilentQueryGlobalLiveValidation.judgedQueries = judgedQueries;
|
|
26801
|
+
validate($currentForm, allFields, $allFields, rules, onSilentQueryGlobalLiveValidation);
|
|
26757
26802
|
}
|
|
26758
26803
|
|
|
26759
26804
|
});
|
|
@@ -26804,6 +26849,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
26804
26849
|
instance.$forms[id].fields = fields;
|
|
26805
26850
|
d = new FormValidator(fields, $fields, xhrOptions, instance.$forms[id].fieldsSet);
|
|
26806
26851
|
}
|
|
26852
|
+
resetCountAtPassStart = instance.$forms[id].resetCount || 0;
|
|
26807
26853
|
} else {
|
|
26808
26854
|
d = new FormValidator(fields, null, xhrOptions, undefined, culture);
|
|
26809
26855
|
}
|
|
@@ -32820,10 +32866,9 @@ if ( typeof(JSON.clone) == 'undefined' ) {
|
|
|
32820
32866
|
* JSON.clone
|
|
32821
32867
|
* Clone JSON object
|
|
32822
32868
|
*
|
|
32823
|
-
* Changes made here must be reflected in
|
|
32824
|
-
*
|
|
32825
|
-
* - gina/
|
|
32826
|
-
* - gina/framework/version/core/asset/plugin/src/vendor/gina/js/utils/polyfill.js
|
|
32869
|
+
* This is the browser copy. Changes made here must be reflected in the server
|
|
32870
|
+
* implementation:
|
|
32871
|
+
* - gina/utils/prototypes.json_clone.js
|
|
32827
32872
|
*
|
|
32828
32873
|
* @param {object} source
|
|
32829
32874
|
* @param {object} [target]
|
|
@@ -32844,7 +32889,11 @@ if ( typeof(JSON.clone) == 'undefined' ) {
|
|
|
32844
32889
|
;
|
|
32845
32890
|
|
|
32846
32891
|
while (i<len) {
|
|
32847
|
-
|
|
32892
|
+
// #B849 — fill when the target has no OWN value for the key: read through the prototype
|
|
32893
|
+
// chain, a fresh target "had" `toString`, `valueOf`, `hasOwnProperty` or `count`, and the
|
|
32894
|
+
// inherited function was written back over the source's value (see the server copy).
|
|
32895
|
+
// was: target[keys[i]] = (typeof target[keys[i]] == 'undefined') ? clone(source[keys[i]], null) : target[keys[i]];
|
|
32896
|
+
target[keys[i]] = (typeof target[keys[i]] == 'undefined' || !Object.prototype.hasOwnProperty.call(target, keys[i])) ? clone(source[keys[i]], null) : target[keys[i]];
|
|
32848
32897
|
i++;
|
|
32849
32898
|
}
|
|
32850
32899
|
i = null; len = null; keys = null;
|
|
@@ -33036,6 +33085,10 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
|
33036
33085
|
* defined). An explicitly empty `{}` filter is legal and matches every
|
|
33037
33086
|
* record; `null` is a legal needle comparing strictly against stored values.
|
|
33038
33087
|
*
|
|
33088
|
+
* `notIn` and `delete` return the searched rows without the rows they
|
|
33089
|
+
* exclude, so on an empty collection, or an empty query result, they
|
|
33090
|
+
* return `[]`.
|
|
33091
|
+
*
|
|
33039
33092
|
* A key holding a dot is a property path (`'address.city'`), also inside an
|
|
33040
33093
|
* array of objects (`'reviews[*].ratings.score'`). A dotted key that is not a
|
|
33041
33094
|
* property path matches nothing. A single field after `[*]` (`'tags[*].label'`)
|
|
@@ -34043,6 +34096,12 @@ function Collection(content, options) {
|
|
|
34043
34096
|
* rows that come from elsewhere (the array form), are compared by key as
|
|
34044
34097
|
* before: such rows must carry the named key, a `_uuid` or an `id`.
|
|
34045
34098
|
*
|
|
34099
|
+
* #B1029 — an empty source returns an empty result: there is no row to
|
|
34100
|
+
* keep. Until 0.7.7 the array form, `notIn(rows, key)`, returned `rows`
|
|
34101
|
+
* itself when the searched array was empty (a new Collection over `[]`, or
|
|
34102
|
+
* an empty query result chained into `notIn`), so the call handed back the
|
|
34103
|
+
* very rows it excludes. `delete()` delegates here and returns `[]` too.
|
|
34104
|
+
*
|
|
34046
34105
|
* @param {object|array} filters|arrayToFilter - works like find filterss
|
|
34047
34106
|
* @param {string} [key] - unique id for comparison; faster when provided
|
|
34048
34107
|
* @returns {array} result - a copy of the searched rows without the rows found (chainable)
|
|
@@ -34175,8 +34234,12 @@ function Collection(content, options) {
|
|
|
34175
34234
|
}
|
|
34176
34235
|
}
|
|
34177
34236
|
} else if ( typeof(currentResult[c]) == 'undefined' ) { //empty source case
|
|
34237
|
+
// #B1029 — an empty source holds no row to keep, so the result is
|
|
34238
|
+
// that empty clone. This branch used to return the rows found
|
|
34239
|
+
// (« current === found »): the very rows `notIn` excludes, none
|
|
34240
|
+
// of which belong to the source.
|
|
34178
34241
|
// means that since we don't have a source to compare, current === found
|
|
34179
|
-
currentResult = JSON.clone(foundResults);
|
|
34242
|
+
// currentResult = JSON.clone(foundResults);
|
|
34180
34243
|
|
|
34181
34244
|
} else { // search based on provided filters
|
|
34182
34245
|
// for every single result found
|
|
@@ -35687,6 +35750,19 @@ function getDependencies(gina, cb) {
|
|
|
35687
35750
|
// Creating a custom event
|
|
35688
35751
|
var depsEventBus = new EventTarget();
|
|
35689
35752
|
|
|
35753
|
+
/**
|
|
35754
|
+
* Fetches a mandatory client dependency and dispatches `deps.loaded` once, with the failure if there is
|
|
35755
|
+
* one. When no answer was read, it asks again after 300 ms, 1 s and 2.5 s before calling that a failure
|
|
35756
|
+
* (#B1044): a navigation can have cut the fetch, and the page may stay. An answer from the server (an
|
|
35757
|
+
* HTTP error, a body that is not JSON) fails at once.
|
|
35758
|
+
*
|
|
35759
|
+
* @inner
|
|
35760
|
+
* @param {string} name - the key of `gina.config` that receives the parsed body
|
|
35761
|
+
* @param {object} opt
|
|
35762
|
+
* @param {string} opt.url
|
|
35763
|
+
* @param {number} [opt.attempt] - the retries spent so far; this function counts them
|
|
35764
|
+
* @returns {Promise<void>}
|
|
35765
|
+
*/
|
|
35690
35766
|
async function loadRoutingConf(name, opt) {
|
|
35691
35767
|
|
|
35692
35768
|
var filenameOrUrl = opt.url;
|
|
@@ -35727,6 +35803,15 @@ function getDependencies(gina, cb) {
|
|
|
35727
35803
|
);
|
|
35728
35804
|
|
|
35729
35805
|
} catch (RoutingLoadErr) {
|
|
35806
|
+
// #B1044 — no answer was read: a navigation may have cut this fetch. WebKit rejects it when the
|
|
35807
|
+
// navigation starts and refuses a new fetch until that navigation ends, and the page is still
|
|
35808
|
+
// there if it answers a 204 or a download. Ask again before calling it a failure: a page really
|
|
35809
|
+
// left never gets to the end of this, and a page that stays gets its table.
|
|
35810
|
+
opt.attempt = opt.attempt || 0;
|
|
35811
|
+
if ( result === null && !( response && !response.ok ) && opt.attempt < 3 ) {
|
|
35812
|
+
setTimeout(function() { loadRoutingConf(name, opt); }, [300, 1000, 2500][opt.attempt++]);
|
|
35813
|
+
return;
|
|
35814
|
+
}
|
|
35730
35815
|
// There was an error
|
|
35731
35816
|
err = new Error('[ROUTING] Could not load routing\n'+ (RoutingLoadErr.stack || RoutingLoadErr.message || RoutingLoadErr) );
|
|
35732
35817
|
|