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
|
@@ -2789,11 +2789,24 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2789
2789
|
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Reset fields
|
|
2792
|
+
* Restores each bound control to the value it had when the form was bound, then runs the one pass of
|
|
2793
|
+
* a reset: the error display and the `errors` store are cleared, nothing is painted, and the submit
|
|
2794
|
+
* trigger is re-read (#B1037). With live check off, `resetFields()` runs no pass; a master checkbox's
|
|
2795
|
+
* timer reads the form once more, its group applied. While the values are written the live check stays
|
|
2796
|
+
* out of it (`isBeingReseted`, read by the live listeners), and `resetCount` tells a pass already on its way
|
|
2797
|
+
* that the form it was checking is gone. A control removed from the page since the bind is skipped,
|
|
2798
|
+
* and each control is looked for among the form's own, should its id be shared (#B1036).
|
|
2792
2799
|
*
|
|
2793
2800
|
* @param {object|string} [$form|formId]
|
|
2801
|
+
* @param {boolean} [isOnResetMode=false] - the path of a `reset` event: `text` and `hidden` inputs
|
|
2802
|
+
* then end on their `defaultValue`, as a native reset leaves them, and not on their value at bind
|
|
2794
2803
|
*
|
|
2804
|
+
* @returns {object} the form's record
|
|
2805
|
+
*
|
|
2806
|
+
* @example
|
|
2807
|
+
* gina.validator.$forms['signup'].resetFields();
|
|
2795
2808
|
* */
|
|
2796
|
-
var resetFields = function($form) {
|
|
2809
|
+
var resetFields = function($form, isOnResetMode) {
|
|
2797
2810
|
var _id = null;
|
|
2798
2811
|
if ( typeof($form) == 'undefined' ) {
|
|
2799
2812
|
if ( typeof(this.target) != 'undefined' ) {
|
|
@@ -2823,40 +2836,92 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2823
2836
|
, value = null // current value
|
|
2824
2837
|
, defaultValue = null
|
|
2825
2838
|
;
|
|
2839
|
+
var resetInfo = null;
|
|
2826
2840
|
$form.isBeingReseted = true;
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2841
|
+
$form.resetCount = ( $form.resetCount || 0 ) + 1;
|
|
2842
|
+
// the flag must come down whatever happens here: left up, it would silence the form's live
|
|
2843
|
+
// check for good
|
|
2844
|
+
try {
|
|
2845
|
+
for (var f in $form.fieldsSet) {
|
|
2846
|
+
|
|
2847
|
+
$element = document.getElementById(f);
|
|
2848
|
+
// #B1036 — getElementById answers the first holder of the id in the page, here not
|
|
2849
|
+
// one of this form's controls: look among the form's own
|
|
2850
|
+
if ( $element && $element.form != $form.target && $form.target.elements ) {
|
|
2851
|
+
$element = null;
|
|
2852
|
+
for (var e = 0, eLen = $form.target.elements.length; e < eLen; ++e) {
|
|
2853
|
+
if ( $form.target.elements[e].id === f ) {
|
|
2854
|
+
$element = $form.target.elements[e];
|
|
2855
|
+
break;
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
// a field removed from the page since the bind has nothing to restore
|
|
2860
|
+
if ( !$element ) { continue; }
|
|
2861
|
+
type = $element.tagName.toLowerCase();
|
|
2862
|
+
tagName = $element.tagName;
|
|
2843
2863
|
|
|
2844
|
-
if (
|
|
2845
|
-
|
|
2846
|
-
} else if ( !/^(checkbox|radio)$/i.test($element.type) ) {
|
|
2864
|
+
if ( /textarea/i.test(tagName) ) {
|
|
2865
|
+
defaultValue = $form.fieldsSet[f].defaultValue;
|
|
2847
2866
|
$element.value = defaultValue;
|
|
2867
|
+
triggerEvent(gina, $element, 'change');
|
|
2868
|
+
continue;
|
|
2848
2869
|
}
|
|
2849
|
-
triggerEvent(gina, $element, 'change');
|
|
2850
2870
|
|
|
2851
|
-
|
|
2852
|
-
defaultValue = $form.fieldsSet[f].selectedIndex || 0;
|
|
2853
|
-
$element.selectedIndex = defaultValue;
|
|
2854
|
-
$element.dataset.value = $element.options[ $element.selectedIndex ].value;
|
|
2855
|
-
triggerEvent(gina, $element, 'change');
|
|
2856
|
-
}
|
|
2871
|
+
if (type == 'input') {
|
|
2857
2872
|
|
|
2873
|
+
defaultValue = $form.fieldsSet[f].defaultValue;
|
|
2874
|
+
|
|
2875
|
+
if ( /^(checkbox|radio)$/i.test($element.type) ) {
|
|
2876
|
+
$element.checked = $form.fieldsSet[f].defaultChecked;
|
|
2877
|
+
} else if ( !/^(checkbox|radio)$/i.test($element.type) ) {
|
|
2878
|
+
$element.value = defaultValue;
|
|
2879
|
+
}
|
|
2880
|
+
triggerEvent(gina, $element, 'change');
|
|
2881
|
+
|
|
2882
|
+
} else if ( type == 'select' ) {
|
|
2883
|
+
defaultValue = $form.fieldsSet[f].selectedIndex || 0;
|
|
2884
|
+
$element.selectedIndex = defaultValue;
|
|
2885
|
+
// an empty select has no option to read
|
|
2886
|
+
$element.dataset.value = ( $element.options[ $element.selectedIndex ] ) ? $element.options[ $element.selectedIndex ].value : '';
|
|
2887
|
+
triggerEvent(gina, $element, 'change');
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
}
|
|
2891
|
+
// On reset mode the collector writes `text` and `hidden` values too: still under the flag
|
|
2892
|
+
resetInfo = ( isOnResetMode === true )
|
|
2893
|
+
? getFormValidationInfos($form.target, $form.rules, true)
|
|
2894
|
+
: getFormValidationInfos($form.target, $form.rules);
|
|
2895
|
+
} finally {
|
|
2896
|
+
delete $form.isBeingReseted;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
// The one pass of a reset: it stores and paints nothing (`isSilentPass`, read by validate's
|
|
2900
|
+
// `query` waiter), it only re-reads the gate. `ginaFormIsResetting` is one-shot, consumed by the
|
|
2901
|
+
// call that follows it.
|
|
2902
|
+
$form.target.dataset.ginaFormIsResetting = true;
|
|
2903
|
+
$form.errors = {};
|
|
2904
|
+
handleErrorsDisplay($form.target, {});
|
|
2905
|
+
var onSilentResetValidation = function(result) {
|
|
2906
|
+
var isFormValid = result.isValid();
|
|
2907
|
+
console.debug('silent reset validation result[isValid:'+isFormValid+']: ', result);
|
|
2908
|
+
// a request in flight holds the trigger, and its settle releases it: the `true` branch
|
|
2909
|
+
// would clear that lock
|
|
2910
|
+
if ( isFormValid && /^true$/i.test($form.isSending) ) {
|
|
2911
|
+
return;
|
|
2912
|
+
}
|
|
2913
|
+
updateSubmitTriggerState( $form.target , isFormValid );
|
|
2914
|
+
};
|
|
2915
|
+
onSilentResetValidation.isSilentPass = true;
|
|
2916
|
+
// The rescue of a clean verdict on a `query` field not last (#B348): this pass writes neither
|
|
2917
|
+
// `isSubmitting` nor `isValidating` either, so no other branch of the waiter would call it back.
|
|
2918
|
+
onSilentResetValidation.isRevealCompletion = true;
|
|
2919
|
+
// Live check off: the trigger is never gated, so `resetFields()` has nothing to re-read, and the
|
|
2920
|
+
// pass would send its `query` and clear a native `disabled` the page set. A `reset` event keeps
|
|
2921
|
+
// its pass, as it always had.
|
|
2922
|
+
if ( isOnResetMode === true || !/^false$/i.test($form.target.dataset.ginaFormLiveCheckEnabled) ) {
|
|
2923
|
+
validate($form.target, resetInfo.fields, resetInfo.$fields, $form.rules, onSilentResetValidation);
|
|
2858
2924
|
}
|
|
2859
|
-
delete $form.isBeingReseted;
|
|
2860
2925
|
}
|
|
2861
2926
|
|
|
2862
2927
|
return $form
|
|
@@ -5429,7 +5494,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
5429
5494
|
// announcing a placeholder.
|
|
5430
5495
|
$img.alt = files[f].originalFilename || '';
|
|
5431
5496
|
$img.style.display = 'none';
|
|
5432
|
-
|
|
5497
|
+
// #B1027 — a file the staging answer did not name is not named « undefined »
|
|
5498
|
+
if ( files[f].originalFilename ) {
|
|
5499
|
+
$img.setAttribute('data-upload-original-filename', files[f].originalFilename);
|
|
5500
|
+
}
|
|
5433
5501
|
$img.setAttribute('data-upload-reset-link-id', $resetLink.id);
|
|
5434
5502
|
|
|
5435
5503
|
// TODO - Remove this; we don't want it by default, the dev can force it by hand if needed
|
|
@@ -5571,8 +5639,15 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
5571
5639
|
$img.style.display = 'none';
|
|
5572
5640
|
// retrieve img `originalFilename` (not the preview img[key] `originalFilename`)
|
|
5573
5641
|
// these 2 metadatas will be used to remove files from the server
|
|
5574
|
-
|
|
5575
|
-
|
|
5642
|
+
// #B1027 — a file the staging answer did not name is not named « undefined »
|
|
5643
|
+
if ( files[f].originalFilename ) {
|
|
5644
|
+
$img.setAttribute('data-upload-original-filename', files[f].originalFilename);
|
|
5645
|
+
}
|
|
5646
|
+
// #B1027 — a preview the staging answer did not name (the guide's `preview` example carries
|
|
5647
|
+
// no `originalFilename`) wrote the text « undefined », which its reset then sent for removal
|
|
5648
|
+
if ( files[f][key].originalFilename ) {
|
|
5649
|
+
$img.setAttribute('data-upload-preview-original-filename', files[f][key].originalFilename);
|
|
5650
|
+
}
|
|
5576
5651
|
// in order to retrieve and remove reset link
|
|
5577
5652
|
$img.setAttribute('data-upload-reset-link-id', $resetLink.id);
|
|
5578
5653
|
|
|
@@ -5683,6 +5758,33 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
5683
5758
|
return fileNodes;
|
|
5684
5759
|
};
|
|
5685
5760
|
|
|
5761
|
+
/**
|
|
5762
|
+
* hasLiveStagedFiles — #B990: whether a file input still shows files it staged. Its entries
|
|
5763
|
+
* (`customFiles`) are then the files of its last successful staging — a staged file's entry
|
|
5764
|
+
* carries no `deleteLinkId`, a saved file's does — and the reset control of one of them,
|
|
5765
|
+
* `<input id>-<index>-reset-trigger`, is on the page. A re-bind leaves such an input's entries
|
|
5766
|
+
* as they are rather than reading its preview container as saved files; once the page has
|
|
5767
|
+
* replaced the container (a saved file shown after a save), the controls are gone and the
|
|
5768
|
+
* container is read again.
|
|
5769
|
+
*
|
|
5770
|
+
* @inner
|
|
5771
|
+
* @private
|
|
5772
|
+
* @param {HTMLElement} $uploadTrigger - the file input
|
|
5773
|
+
* @returns {boolean} true while a staged file of the input has its reset control on the page
|
|
5774
|
+
*
|
|
5775
|
+
* @example
|
|
5776
|
+
* hasLiveStagedFiles(document.getElementById('avatar')); // true after a staging, false after its reset
|
|
5777
|
+
*/
|
|
5778
|
+
var hasLiveStagedFiles = function($uploadTrigger) {
|
|
5779
|
+
var entries = $uploadTrigger.customFiles || [];
|
|
5780
|
+
for (var i = 0, len = entries.length; i < len; ++i) {
|
|
5781
|
+
if ( entries[i] && !entries[i].deleteLinkId && document.getElementById($uploadTrigger.id + '-' + i + '-reset-trigger') ) {
|
|
5782
|
+
return true;
|
|
5783
|
+
}
|
|
5784
|
+
}
|
|
5785
|
+
return false;
|
|
5786
|
+
};
|
|
5787
|
+
|
|
5686
5788
|
/**
|
|
5687
5789
|
* removeUploadEntryFields — #B858/#B862: removes from a file input's form the controls of one
|
|
5688
5790
|
* of its files, `<prefix>[index]…` (except those marked `data-gina-form-upload-is-locked`), and
|
|
@@ -6055,7 +6157,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
6055
6157
|
// the names the staging answer gave — the ones its <img> preview carries
|
|
6056
6158
|
childNodeFile = ( stagedFiles[f] && stagedFiles[f].originalFilename )
|
|
6057
6159
|
? stagedFiles[f].originalFilename
|
|
6058
|
-
: ( entry.nodes.length ) ? entry.nodes[0].getAttribute('data-upload-original-filename') : files[f].name;
|
|
6160
|
+
: ( entry.nodes.length && entry.nodes[0].getAttribute('data-upload-original-filename') ) ? entry.nodes[0].getAttribute('data-upload-original-filename') : files[f].name;
|
|
6059
6161
|
childNodeFilePreview = ( stagedFiles[f] && stagedFiles[f].preview && stagedFiles[f].preview.originalFilename )
|
|
6060
6162
|
? stagedFiles[f].preview.originalFilename
|
|
6061
6163
|
: ( entry.nodes.length ) ? entry.nodes[0].getAttribute('data-upload-preview-original-filename') : null;
|
|
@@ -7505,7 +7607,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7505
7607
|
|
|
7506
7608
|
if ( typeof(gina.events[_evt]) != 'undefined' ) {
|
|
7507
7609
|
console.debug('trigger event on: ', this.name, _evt);
|
|
7610
|
+
// #B1035 — a script's write is nobody's touch: read synchronously by the live listener
|
|
7611
|
+
this.ginaFormIsScriptWrite = true;
|
|
7508
7612
|
triggerEvent(gina, this, _evt, val);
|
|
7613
|
+
delete this.ginaFormIsScriptWrite;
|
|
7509
7614
|
}
|
|
7510
7615
|
//changing back to custom setter
|
|
7511
7616
|
Object.defineProperty(this, 'value', descriptor);
|
|
@@ -7702,6 +7807,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7702
7807
|
addListener(gina, $el, eventsList, function(event) {
|
|
7703
7808
|
event.preventDefault();
|
|
7704
7809
|
clearTimeout(liveCheckTimer);
|
|
7810
|
+
// #B1037 — a reset restores values, it touches nothing: `resetFields` ends with the
|
|
7811
|
+
// one pass of a reset. Read before the radio and checkbox `once` logic: their pass is
|
|
7812
|
+
// deferred, so it would run after the reset has cleared the display.
|
|
7813
|
+
var $liveForm = instance.$forms[event.target.form.getAttribute('id')];
|
|
7814
|
+
if ( $liveForm.isBeingReseted ) {
|
|
7815
|
+
return false;
|
|
7816
|
+
}
|
|
7705
7817
|
if ( !once && /^changed\./i.test(event.type) || !once && /^(radio|checkbox)$/i.test(event.target.type) ) {
|
|
7706
7818
|
once = true;
|
|
7707
7819
|
} else if (once && /^changed\./i.test(event.type) || once && /^(radio|checkbox)$/i.test(event.target.type) ) {
|
|
@@ -7715,12 +7827,32 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7715
7827
|
return false;
|
|
7716
7828
|
}
|
|
7717
7829
|
|
|
7830
|
+
// #B1035 — a script's write re-checks the form and updates the gate and the store, but
|
|
7831
|
+
// paints only what already shows: a message may change or clear, a new one waits for a
|
|
7832
|
+
// touch. Same box as handleErrorsDisplay: the classes sit on the wrapper's parent.
|
|
7833
|
+
var $errorBox = ( /form\-item\-wrapper$/.test(event.target.parentNode.className) ) ? event.target.parentNode.parentNode : event.target.parentNode;
|
|
7834
|
+
// A radio stays out: `updateRadio` writes a boolean pair's value through the setter on the
|
|
7835
|
+
// user's own pick, and that dispatch is the pick's live check.
|
|
7836
|
+
var isQuietWrite = !!event.target.ginaFormIsScriptWrite && !/^radio$/i.test(event.target.type) && !/form\-item\-(error|warning)/.test($errorBox.className);
|
|
7837
|
+
|
|
7838
|
+
// #B1037 — a pass that started before a reset (an async `query` verdict, a deferred
|
|
7839
|
+
// radio pass, the keyup timer) must not paint the restored form; it leaves the
|
|
7840
|
+
// flags its end would have left
|
|
7841
|
+
var resetCountAtStart = $liveForm.resetCount || 0;
|
|
7842
|
+
var isStaleAfterReset = function() {
|
|
7843
|
+
if ( ( $liveForm.resetCount || 0 ) == resetCountAtStart ) {
|
|
7844
|
+
return false;
|
|
7845
|
+
}
|
|
7846
|
+
$liveForm.isValidating = false;
|
|
7847
|
+
once = false;
|
|
7848
|
+
return true;
|
|
7849
|
+
};
|
|
7850
|
+
|
|
7718
7851
|
var processEvent = function() {
|
|
7719
7852
|
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
// }
|
|
7853
|
+
if ( isStaleAfterReset() ) {
|
|
7854
|
+
return;
|
|
7855
|
+
}
|
|
7724
7856
|
|
|
7725
7857
|
if ( !/^(password)$/i.test(event.target.type) ) {
|
|
7726
7858
|
console.debug('processing: ' + event.target.name+ '/'+ event.target.id);
|
|
@@ -7739,7 +7871,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7739
7871
|
if (!errors || errors.count() == 0) {
|
|
7740
7872
|
handleErrorsDisplay(event.target.form, {}, null, event.target.name);
|
|
7741
7873
|
return cancelEvent(event);
|
|
7742
|
-
} else {
|
|
7874
|
+
} else if ( !isQuietWrite ) {
|
|
7743
7875
|
handleErrorsDisplay(event.target.form, errors, null, event.target.name);
|
|
7744
7876
|
}
|
|
7745
7877
|
}
|
|
@@ -7750,23 +7882,29 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7750
7882
|
$localField[event.target.name] = event.target;
|
|
7751
7883
|
|
|
7752
7884
|
instance.$forms[event.target.form.getAttribute('id')].isValidating = true;
|
|
7753
|
-
|
|
7885
|
+
var onLiveValidation = function(result){
|
|
7886
|
+
if ( isStaleAfterReset() ) {
|
|
7887
|
+
return;
|
|
7888
|
+
}
|
|
7754
7889
|
// instance.$forms[event.target.form.getAttribute('id')].isValidating = false;
|
|
7755
7890
|
//console.debug('validation on processEvent(...) ', result);
|
|
7756
7891
|
|
|
7757
7892
|
var isFormValid = result.isValid();
|
|
7758
7893
|
//console.debug('onSilentPreGlobalLiveValidation: '+ isFormValid, result);
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7894
|
+
// #B1035 — a quiet write paints nothing new; a valid verdict still clears
|
|
7895
|
+
if ( isFormValid || !isQuietWrite ) {
|
|
7896
|
+
if (isFormValid) {
|
|
7897
|
+
//resetting error display
|
|
7898
|
+
// #B922 — a field wired only because a `_case_` condition names it (#B884)
|
|
7899
|
+
// has no rule in this pass, which therefore reads valid: its `true` cleared
|
|
7900
|
+
// the native `disabled` a page script had set, before the whole-form pass
|
|
7901
|
+
// below gated the form. For such a field the whole-form pass alone writes
|
|
7902
|
+
// the submit trigger.
|
|
7903
|
+
// was: handleErrorsDisplay(event.target.form, {}, result.data, event.target.name);
|
|
7904
|
+
handleErrorsDisplay(event.target.form, {}, result.data, event.target.name, isCaseTarget);
|
|
7905
|
+
} else {
|
|
7906
|
+
handleErrorsDisplay(event.target.form, result.error, result.data, event.target.name);
|
|
7907
|
+
}
|
|
7770
7908
|
}
|
|
7771
7909
|
//updateSubmitTriggerState( event.target.form, isFormValid );
|
|
7772
7910
|
// data-gina-form-required-before-submit
|
|
@@ -7781,8 +7919,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7781
7919
|
gRules = instance.$forms[formId].rules;
|
|
7782
7920
|
// Don't be tempted to revome fields that has already been validated
|
|
7783
7921
|
instance.$forms[formId].isValidating = true;
|
|
7784
|
-
|
|
7922
|
+
var onSilentGlobalLiveValidation = function(gResult){
|
|
7785
7923
|
instance.$forms[formId].isValidating = false;
|
|
7924
|
+
if ( isStaleAfterReset() ) {
|
|
7925
|
+
return;
|
|
7926
|
+
}
|
|
7786
7927
|
console.debug('['+ formId +'] onSilentGlobalLiveValidation: '+ gResult.isValid(), gResult, gFields);
|
|
7787
7928
|
// var isFormValid = ( gResult.isValid() && instance.$forms[formId].errors && instance.$forms[formId].errors.count() == 0 )? true : false;
|
|
7788
7929
|
var isFormValid = gResult.isValid();
|
|
@@ -7809,7 +7950,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7809
7950
|
// submit button state; untouched fields should not show errors
|
|
7810
7951
|
// until the user interacts with them or submits.
|
|
7811
7952
|
var _touchedField = event.target.name;
|
|
7812
|
-
if ( typeof(gResult.error[_touchedField]) != 'undefined' ) {
|
|
7953
|
+
if ( typeof(gResult.error[_touchedField]) != 'undefined' && !isQuietWrite ) {
|
|
7813
7954
|
refreshWarning($gFields[_touchedField]);
|
|
7814
7955
|
handleErrorsDisplay($gForm, gResult.error, gResult.data, _touchedField);
|
|
7815
7956
|
}
|
|
@@ -7847,9 +7988,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7847
7988
|
updateSubmitTriggerState( $gForm, isFormValid);
|
|
7848
7989
|
|
|
7849
7990
|
once = false;
|
|
7850
|
-
}
|
|
7991
|
+
};
|
|
7992
|
+
onSilentGlobalLiveValidation.isSilentPass = isQuietWrite;
|
|
7993
|
+
validate($gForm, gFields, $gFields, gRules, onSilentGlobalLiveValidation);
|
|
7851
7994
|
|
|
7852
|
-
}
|
|
7995
|
+
};
|
|
7996
|
+
onLiveValidation.isSilentPass = isQuietWrite;
|
|
7997
|
+
validate(event.target, localField, $localField, $form.rules, onLiveValidation);
|
|
7853
7998
|
|
|
7854
7999
|
|
|
7855
8000
|
return;
|
|
@@ -7997,138 +8142,43 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7997
8142
|
|
|
7998
8143
|
|
|
7999
8144
|
|
|
8000
|
-
var setSelectionRange = function($el, selectionStart, selectionEnd) {
|
|
8001
|
-
if ($el.setSelectionRange) {
|
|
8002
|
-
$el.focus();
|
|
8003
|
-
$el.setSelectionRange(selectionStart, selectionEnd);
|
|
8004
|
-
}
|
|
8005
|
-
else if ($el.createTextRange) {
|
|
8006
|
-
var range = $el.createTextRange();
|
|
8007
|
-
range.collapse(true);
|
|
8008
|
-
range.moveEnd ('character', selectionEnd );
|
|
8009
|
-
range.moveStart('character', selectionStart);
|
|
8010
|
-
range.select();
|
|
8011
|
-
}
|
|
8012
|
-
}
|
|
8013
8145
|
/**
|
|
8014
|
-
*
|
|
8015
|
-
*
|
|
8146
|
+
* autoCompleteReadonlyMark
|
|
8147
|
+
* The value handleAutoComplete writes into a field's `readonly` attribute. It tells gina's
|
|
8148
|
+
* own mark from a `readonly` the page wrote (`""` or `readonly`, in its markup or from a
|
|
8149
|
+
* script), and a clone of a bound field carries it, which an expando would not.
|
|
8016
8150
|
*
|
|
8017
|
-
* @
|
|
8018
|
-
* @
|
|
8019
|
-
|
|
8020
|
-
var setCaretToPos = function ($el, pos) {
|
|
8021
|
-
setSelectionRange($el, pos, pos);
|
|
8022
|
-
}
|
|
8023
|
-
/**
|
|
8024
|
-
* commitCaret
|
|
8025
|
-
* #B389 — commits the caret SYNCHRONOUSLY after a programmatic value
|
|
8026
|
-
* rebuild and records the position on the element. Assigning `.value`
|
|
8027
|
-
* collapses the selection to the END of the field (measured on WebKit
|
|
8028
|
-
* and Chromium), and the deferred restore of the transient-readonly
|
|
8029
|
-
* dance only runs two macrotasks later — so without a synchronous
|
|
8030
|
-
* commit, any keystroke arriving inside that window reads a stale
|
|
8031
|
-
* `selectionStart` and inserts at the wrong offset (scrambled fast
|
|
8032
|
-
* input). The recorded position (`_ginaAcCaret`) is what the keydown
|
|
8033
|
-
* interception trusts while a deferred restore is still in flight.
|
|
8034
|
-
*
|
|
8035
|
-
* @param {object} $el - HTMLElement
|
|
8036
|
-
* @param {number} pos - caret position to commit
|
|
8037
|
-
*/
|
|
8038
|
-
var commitCaret = function ($el, pos) {
|
|
8039
|
-
setCaretToPos($el, pos);
|
|
8040
|
-
$el._ginaAcCaret = pos;
|
|
8041
|
-
}
|
|
8042
|
-
/**
|
|
8043
|
-
* queueCaretRestore
|
|
8044
|
-
* #B389 — re-applies the transient readonly (the Safari autofill/
|
|
8045
|
-
* autosuggest suppression — mechanism kept identical to the original
|
|
8046
|
-
* dance) and queues the deferred caret restore. The restore re-asserts
|
|
8047
|
-
* the LATEST committed caret (`_ginaAcCaret`) rather than the position
|
|
8048
|
-
* captured at its own keystroke: a later keystroke may have advanced
|
|
8049
|
-
* the caret while this restore sat in the queue, and re-applying a
|
|
8050
|
-
* stale capture is what scrambled fast typing. `_ginaAcPending` counts
|
|
8051
|
-
* restores in flight so the keydown interception knows when the
|
|
8052
|
-
* element's own selection can be trusted again; the tracker is handed
|
|
8053
|
-
* back (nulled) once the last pending restore has fired.
|
|
8054
|
-
*
|
|
8055
|
-
* @param {object} $el - HTMLElement
|
|
8151
|
+
* @constant
|
|
8152
|
+
* @inner
|
|
8153
|
+
* @type {string}
|
|
8056
8154
|
*/
|
|
8057
|
-
var
|
|
8058
|
-
$el._ginaAcPending = ($el._ginaAcPending || 0) + 1;
|
|
8059
|
-
$el.setAttribute('readonly', 'readonly');
|
|
8060
|
-
setTimeout(() => {
|
|
8061
|
-
$el.removeAttribute('readonly');
|
|
8062
|
-
setTimeout(() => {
|
|
8063
|
-
// Guard on typeof — never truthiness: 0 is a valid caret
|
|
8064
|
-
// position, and the cleared tracker is null.
|
|
8065
|
-
if ( typeof($el._ginaAcCaret) == 'number' ) {
|
|
8066
|
-
setCaretToPos($el, $el._ginaAcCaret);
|
|
8067
|
-
}
|
|
8068
|
-
$el._ginaAcPending--;
|
|
8069
|
-
if ( $el._ginaAcPending <= 0 ) {
|
|
8070
|
-
$el._ginaAcPending = 0;
|
|
8071
|
-
$el._ginaAcCaret = null;
|
|
8072
|
-
}
|
|
8073
|
-
}, 0);
|
|
8074
|
-
}, 0);
|
|
8075
|
-
}
|
|
8155
|
+
var autoCompleteReadonlyMark = 'gina';
|
|
8076
8156
|
|
|
8077
|
-
var isElementVisible = function($el) {
|
|
8078
|
-
return ($el.offsetWidth > 0 || $el.offsetHeight > 0 || $el === document.activeElement) ? true : false;
|
|
8079
|
-
}
|
|
8080
|
-
|
|
8081
|
-
var focusNextElement = function($el, isGoingBackward) {
|
|
8082
|
-
// Add all elements we want to include in our selection
|
|
8083
|
-
// Checkboxes and radios are just ignored: like for the default behavior
|
|
8084
|
-
var focussableElements = 'a:not([disabled]), button:not([disabled]), input[type=text]:not([disabled]), select:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])';
|
|
8085
|
-
if (document.activeElement && document.activeElement.form) {
|
|
8086
|
-
var focussable = Array.prototype.filter.call(document.activeElement.form.querySelectorAll(focussableElements),
|
|
8087
|
-
function (element) {
|
|
8088
|
-
//Check for visibility while always include the current activeElement
|
|
8089
|
-
return element.offsetWidth > 0 || element.offsetHeight > 0 || element === document.activeElement
|
|
8090
|
-
});
|
|
8091
|
-
var index = focussable.indexOf(document.activeElement);
|
|
8092
|
-
if(index > -1) {
|
|
8093
|
-
var direcion = focussable[index + 1]; // By default, going forward
|
|
8094
|
-
if (isGoingBackward) {
|
|
8095
|
-
direcion = focussable[index - 1]
|
|
8096
|
-
}
|
|
8097
|
-
var nextElement = direcion || focussable[0];
|
|
8098
|
-
nextElement.focus();
|
|
8099
|
-
}
|
|
8100
|
-
}
|
|
8101
|
-
}
|
|
8102
8157
|
/**
|
|
8103
8158
|
* handleAutoComplete
|
|
8104
|
-
*
|
|
8105
|
-
*
|
|
8106
|
-
*
|
|
8107
|
-
*
|
|
8108
|
-
*
|
|
8109
|
-
* and offers no autofill/autosuggest. Modifier chords (metaKey/ctrlKey)
|
|
8110
|
-
* are deliberately NOT intercepted (#B134): they return before
|
|
8111
|
-
* preventDefault so the native select-all/copy/paste/cut/undo defaults
|
|
8112
|
-
* run — the rebuild cannot reproduce them.
|
|
8159
|
+
* Keeps a field with `autocomplete="off"` out of Safari's AutoFill, which ignores
|
|
8160
|
+
* the attribute but skips a readonly control when it fills a form: the field stays
|
|
8161
|
+
* `readonly` except while it has focus. Every key stays native (#B1055, #B1063,
|
|
8162
|
+
* #B1064: a keydown rebuild here reversed text on `email` and `number`, trapped Tab,
|
|
8163
|
+
* dropped Enter, `maxlength` and the `input` event, and did not stop Safari's list).
|
|
8113
8164
|
*
|
|
8114
8165
|
* Gated to REAL Safari at the registerForLiveChecking call site (#B135):
|
|
8115
8166
|
* Chromium UAs carry the Safari token but were never this workaround's
|
|
8116
|
-
* target — they get native behavior.
|
|
8117
|
-
*
|
|
8118
|
-
*
|
|
8119
|
-
*
|
|
8120
|
-
*
|
|
8121
|
-
*
|
|
8122
|
-
* keydown handler trusts the recorded caret over the element's own
|
|
8123
|
-
* selection — a `.value` assignment parks the selection at the end of
|
|
8124
|
-
* the field, so a fast next keystroke would otherwise read a stale
|
|
8125
|
-
* position and compose scrambled text.
|
|
8167
|
+
* target — they get native behavior. A `readonly` the page wrote stays the page's: the
|
|
8168
|
+
* call site skips a field that binds with one, and focus lifts only gina's own mark. A field
|
|
8169
|
+
* that already has focus when it binds takes the mark on blur (#B1067), and unbindForm lifts
|
|
8170
|
+
* the mark with the binding (#B1068).
|
|
8171
|
+
*
|
|
8172
|
+
* @inner
|
|
8126
8173
|
* @param {object} $el HTMLElement
|
|
8127
|
-
* @
|
|
8174
|
+
* @returns {void}
|
|
8128
8175
|
*/
|
|
8129
|
-
var handleAutoComplete = function($el
|
|
8176
|
+
var handleAutoComplete = function($el) {
|
|
8130
8177
|
|
|
8131
|
-
|
|
8178
|
+
// #B1067 — a field that already has focus gets no `focusin` to lift the mark: it takes it on blur
|
|
8179
|
+
if ( $el !== document.activeElement ) {
|
|
8180
|
+
$el.setAttribute('readonly', autoCompleteReadonlyMark);
|
|
8181
|
+
}
|
|
8132
8182
|
// #B585 — the form that owns the field carries the ledger unbindForm drains; resolved
|
|
8133
8183
|
// tolerantly, so a harness that hands the handler a bare element still runs it
|
|
8134
8184
|
var $ownerForm = ( $el.form && typeof(instance) != 'undefined' && instance && instance.$forms )
|
|
@@ -8139,256 +8189,53 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8139
8189
|
ledger.push({ el: $el, evt: 'focusout.'+ $el.id, fn:
|
|
8140
8190
|
addListener(gina, $el, 'focusout.'+ $el.id, function(event) {
|
|
8141
8191
|
event.preventDefault();
|
|
8142
|
-
clearTimeout(liveCheckTimer);
|
|
8143
8192
|
|
|
8144
8193
|
var $_el = event.currentTarget;
|
|
8145
8194
|
triggerEvent(gina, $_el, 'change.'+ $_el.id);
|
|
8146
|
-
|
|
8195
|
+
// a `readonly` the page set while the field had focus stays as the page wrote it
|
|
8196
|
+
if ( !$_el.hasAttribute('readonly') ) {
|
|
8197
|
+
$_el.setAttribute('readonly', autoCompleteReadonlyMark);
|
|
8198
|
+
}
|
|
8147
8199
|
}) });
|
|
8148
8200
|
ledger.push({ el: $el, evt: 'focusin.'+ $el.id, fn:
|
|
8149
8201
|
addListener(gina, $el, 'focusin.'+ $el.id, function(event) {
|
|
8150
8202
|
event.preventDefault();
|
|
8151
|
-
event.currentTarget.
|
|
8152
|
-
|
|
8153
|
-
var evtName = 'keydown.'+ event.currentTarget.id;
|
|
8154
|
-
// add once — judged by what is ATTACHED (the ledger) when the owner form is known:
|
|
8155
|
-
// unbind detaches the handler, and a consumer belt restoring the registry key must
|
|
8156
|
-
// not leave the field without its interception (#B585)
|
|
8157
|
-
var isKeydownBound = false;
|
|
8158
|
-
for (let _b = 0, _bLen = ledger.length; _b < _bLen; _b++) {
|
|
8159
|
-
if ( ledger[_b].el === event.currentTarget && ledger[_b].evt === evtName ) { isKeydownBound = true; break; }
|
|
8160
|
-
}
|
|
8161
|
-
if ( ( $ownerForm ) ? !isKeydownBound : typeof(gina.events[evtName]) == 'undefined' ) {
|
|
8162
|
-
ledger.push({ el: event.currentTarget, evt: evtName, fn:
|
|
8163
|
-
addListener(gina, event.currentTarget, evtName, function(e) {
|
|
8164
|
-
// #B134 — modifier chords are NOT intercepted: return before
|
|
8165
|
-
// preventDefault so the native select-all/copy/paste/cut/undo
|
|
8166
|
-
// defaults run. The rebuild below cannot reproduce them — the
|
|
8167
|
-
// printable branch typed the chord letter into the field
|
|
8168
|
-
// (Cmd+A appended "a") and execCommand("paste") is inert in
|
|
8169
|
-
// unprivileged web content. The field is not readonly here
|
|
8170
|
-
// (focusin removed it), so the native edit lands and the
|
|
8171
|
-
// live-check picks it up on the keyup that follows.
|
|
8172
|
-
if ( e.metaKey || e.ctrlKey ) {
|
|
8173
|
-
return;
|
|
8174
|
-
}
|
|
8175
|
-
e.preventDefault();
|
|
8176
|
-
clearTimeout(liveCheckTimer);
|
|
8177
|
-
|
|
8178
|
-
var $_el = e.currentTarget;
|
|
8179
|
-
var str = e.currentTarget.value;
|
|
8180
|
-
var posStart = $_el.selectionStart, posEnd = $_el.selectionEnd;
|
|
8181
|
-
// #B389 — while a deferred caret restore is in flight, the
|
|
8182
|
-
// element's own selection is NOT trustworthy: the last
|
|
8183
|
-
// rebuild parked the caret at the end of the field and the
|
|
8184
|
-
// restore only runs two macrotasks later. Trust the
|
|
8185
|
-
// committed caret instead, so consecutive fast keystrokes
|
|
8186
|
-
// compose the same string a native field would.
|
|
8187
|
-
if ( ($_el._ginaAcPending || 0) > 0 && typeof($_el._ginaAcCaret) == 'number' ) {
|
|
8188
|
-
posStart = posEnd = $_el._ginaAcCaret;
|
|
8189
|
-
}
|
|
8190
|
-
$_el.removeAttribute('readonly');
|
|
8191
|
-
//console.debug('pressed: '+ e.key+'('+ e.keyCode+')', ' S:'+posStart, ' E:'+posEnd, ' MAP: '+ JSON.stringify(keyboardMapping));
|
|
8192
|
-
switch (e.keyCode) {
|
|
8193
|
-
case 46: //Delete
|
|
8194
|
-
if (posStart != posEnd) {
|
|
8195
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd);
|
|
8196
|
-
// #B391 — the posStart == 0 override below ate one
|
|
8197
|
-
// char MORE than the selection (native Delete
|
|
8198
|
-
// removes the selection only): "XY" with [0,1)
|
|
8199
|
-
// selected must give "Y", not "". The generic
|
|
8200
|
-
// rebuild above is already correct at position 0.
|
|
8201
|
-
// if (posStart == 0) {
|
|
8202
|
-
// $_el.value = str.substring(posEnd+1);
|
|
8203
|
-
// }
|
|
8204
|
-
} else if (posStart == 0) {
|
|
8205
|
-
$_el.value = str.substring(posStart+1);
|
|
8206
|
-
} else {
|
|
8207
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd+1);
|
|
8208
|
-
}
|
|
8209
|
-
|
|
8210
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
8211
|
-
// restore (the retired tail below re-applied a stale
|
|
8212
|
-
// per-keystroke capture two macrotasks later; its
|
|
8213
|
-
// if/else chain always resolved to posStart anyway).
|
|
8214
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
8215
|
-
// setTimeout(() => {
|
|
8216
|
-
// $_el.removeAttribute('readonly');
|
|
8217
|
-
// setTimeout(() => {
|
|
8218
|
-
// if (posStart != posEnd) {
|
|
8219
|
-
// setCaretToPos($_el, posStart);
|
|
8220
|
-
// } else if (posStart == 0) {
|
|
8221
|
-
// setCaretToPos($_el, posStart);
|
|
8222
|
-
// } else {
|
|
8223
|
-
// setCaretToPos($_el, posStart);
|
|
8224
|
-
// }
|
|
8225
|
-
// }, 0)
|
|
8226
|
-
//
|
|
8227
|
-
// }, 0);
|
|
8228
|
-
commitCaret($_el, posStart);
|
|
8229
|
-
queueCaretRestore($_el);
|
|
8230
|
-
break
|
|
8231
|
-
case 8: //Backspace
|
|
8232
|
-
if (posStart != posEnd) {
|
|
8233
|
-
$_el.value = str.substring(0, posStart) + str.substring(posEnd);
|
|
8234
|
-
if (posStart == 0) {
|
|
8235
|
-
$_el.value = str.substring(posEnd);
|
|
8236
|
-
}
|
|
8237
|
-
} else if (posStart == 0) {
|
|
8238
|
-
// #B390 — native Backspace at position 0 is a
|
|
8239
|
-
// NO-OP: nothing sits before the caret. The
|
|
8240
|
-
// retired rebuild below deleted the FIRST
|
|
8241
|
-
// character instead. No value change, no caret
|
|
8242
|
-
// move, no restore to queue.
|
|
8243
|
-
// $_el.value = str.substring(posStart+1);
|
|
8244
|
-
break;
|
|
8245
|
-
} else {
|
|
8246
|
-
$_el.value = str.substring(0, posStart-1) + str.substring(posEnd);
|
|
8247
|
-
}
|
|
8248
|
-
|
|
8249
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
8250
|
-
// restore (the retired tail below re-applied a stale
|
|
8251
|
-
// per-keystroke capture two macrotasks later).
|
|
8252
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
8253
|
-
// setTimeout(() => {
|
|
8254
|
-
// $_el.removeAttribute('readonly');
|
|
8255
|
-
// setTimeout(() => {
|
|
8256
|
-
// if (posStart != posEnd) {
|
|
8257
|
-
// setCaretToPos($_el, posStart);
|
|
8258
|
-
// } else if (posStart == 0) {
|
|
8259
|
-
// setCaretToPos($_el, posStart);
|
|
8260
|
-
// } else {
|
|
8261
|
-
// setCaretToPos($_el, posStart-1);
|
|
8262
|
-
// }
|
|
8263
|
-
// }, 0)
|
|
8264
|
-
//
|
|
8265
|
-
// }, 0);
|
|
8266
|
-
commitCaret($_el, (posStart != posEnd) ? posStart : posStart-1);
|
|
8267
|
-
queueCaretRestore($_el);
|
|
8268
|
-
break;
|
|
8269
|
-
case 9: // Tab
|
|
8270
|
-
if (keyboardMapping[16] && keyboardMapping[9]) {
|
|
8271
|
-
focusNextElement($_el, true);
|
|
8272
|
-
} else {
|
|
8273
|
-
focusNextElement($_el);
|
|
8274
|
-
}
|
|
8275
|
-
break;
|
|
8276
|
-
case 13: // Enter
|
|
8277
|
-
case 16: // Shift
|
|
8278
|
-
break;
|
|
8279
|
-
case 37: // ArrowLeft
|
|
8280
|
-
console.debug('moving left ', posStart-1);
|
|
8281
|
-
// #B392 — setCaretToPos(-1) at position 0 coerces to
|
|
8282
|
-
// the unsigned maximum and clamps to the END of the
|
|
8283
|
-
// field (measured on WebKit and Chromium): floor at
|
|
8284
|
-
// 0. #B389 — commit through the tracker so a pending
|
|
8285
|
-
// deferred restore cannot undo the arrow move.
|
|
8286
|
-
// setCaretToPos($_el, posStart-1);
|
|
8287
|
-
commitCaret($_el, (posStart > 0) ? posStart-1 : 0);
|
|
8288
|
-
break;
|
|
8289
|
-
case 39: // ArrowRight
|
|
8290
|
-
if (posStart+1 < str.length+1) {
|
|
8291
|
-
// #B389 — through the tracker (see ArrowLeft).
|
|
8292
|
-
// setCaretToPos($_el, posStart+1);
|
|
8293
|
-
commitCaret($_el, posStart+1);
|
|
8294
|
-
}
|
|
8295
|
-
break;
|
|
8296
|
-
// Shortcuts
|
|
8297
|
-
// #B134 — the modifier-chord cases below are unreachable
|
|
8298
|
-
// since the e.metaKey/e.ctrlKey bail at the top of this
|
|
8299
|
-
// handler: chords now run natively, and the native
|
|
8300
|
-
// copy/cut/paste/select-all/undo defaults are correct
|
|
8301
|
-
// where these re-implementations were not (the paste
|
|
8302
|
-
// re-implementation was inert in unprivileged web
|
|
8303
|
-
// content, and undo-to-defaultValue wiped user input).
|
|
8304
|
-
// Kept commented for the record.
|
|
8305
|
-
// case 17: // CTRL
|
|
8306
|
-
// case 91: // CMD
|
|
8307
|
-
// console.debug("CMD, CTRL hit");
|
|
8308
|
-
// e.preventDefault();
|
|
8309
|
-
// break;
|
|
8310
|
-
// case 67: // to handle CMD+C (copy)
|
|
8311
|
-
// if (
|
|
8312
|
-
// keyboardMapping[67] && keyboardMapping[91] // mac osx
|
|
8313
|
-
// ||
|
|
8314
|
-
// keyboardMapping[67] && keyboardMapping[17] // windows
|
|
8315
|
-
// ) {
|
|
8316
|
-
// $_el.setSelectionRange(posStart, posEnd);
|
|
8317
|
-
// document.execCommand("copy");
|
|
8318
|
-
// break;
|
|
8319
|
-
// }
|
|
8320
|
-
// case 86: // to handle CMD+V (paste)
|
|
8321
|
-
// if (
|
|
8322
|
-
// keyboardMapping[86] && keyboardMapping[91] // mac osx
|
|
8323
|
-
// ||
|
|
8324
|
-
// keyboardMapping[86] && keyboardMapping[17] // windows
|
|
8325
|
-
// ) {
|
|
8326
|
-
// if (posStart != posEnd) {
|
|
8327
|
-
// $_el.value = $_el.value.replace(str.substring(posStart, posEnd), '');
|
|
8328
|
-
// }
|
|
8329
|
-
// setCaretToPos($_el, posStart);
|
|
8330
|
-
// document.execCommand("paste");
|
|
8331
|
-
// break;
|
|
8332
|
-
// }
|
|
8333
|
-
// case 88: // to handle CMD+X (cut)
|
|
8334
|
-
// if (
|
|
8335
|
-
// keyboardMapping[88] && keyboardMapping[91] // mac osx
|
|
8336
|
-
// ||
|
|
8337
|
-
// keyboardMapping[88] && keyboardMapping[17] // windows
|
|
8338
|
-
// ) {
|
|
8339
|
-
// $_el.setSelectionRange(posStart, posEnd);
|
|
8340
|
-
// document.execCommand("cut");
|
|
8341
|
-
// break;
|
|
8342
|
-
// }
|
|
8343
|
-
// case 90: // to handle CMD+Z (undo)
|
|
8344
|
-
// if (
|
|
8345
|
-
// keyboardMapping[90] && keyboardMapping[91] // mac osx
|
|
8346
|
-
// ||
|
|
8347
|
-
// keyboardMapping[90] && keyboardMapping[17] // windows
|
|
8348
|
-
// ) {
|
|
8349
|
-
// $_el.value = $_el.defaultValue;
|
|
8350
|
-
// break;
|
|
8351
|
-
// }
|
|
8352
|
-
default:
|
|
8353
|
-
// Replace selection
|
|
8354
|
-
if (e.key.length > 1) {
|
|
8355
|
-
break;
|
|
8356
|
-
}
|
|
8357
|
-
if (posStart != posEnd) {
|
|
8358
|
-
$_el.value = str.substring(0, posStart) + e.key;
|
|
8359
|
-
if (posEnd-1 < str.length) {
|
|
8360
|
-
$_el.value += str.substring(posEnd)
|
|
8361
|
-
}
|
|
8362
|
-
} else if (posStart == 0) {
|
|
8363
|
-
$_el.value = e.key + str.substring(posStart);
|
|
8364
|
-
} else {
|
|
8365
|
-
$_el.value = str.substring(0, posStart) + e.key + str.substring(posEnd);
|
|
8366
|
-
}
|
|
8367
|
-
// #B389 — synchronous caret commit + guarded deferred
|
|
8368
|
-
// restore. The retired tail below only restored the
|
|
8369
|
-
// caret two macrotasks after the `.value` assignment
|
|
8370
|
-
// (which parks it at the end of the field), so a fast
|
|
8371
|
-
// second keystroke read a stale selectionStart and
|
|
8372
|
-
// inserted at the wrong offset — text landed at the
|
|
8373
|
-
// end instead of the caret (gh issue #63).
|
|
8374
|
-
// e.currentTarget.setAttribute('readonly', 'readonly');
|
|
8375
|
-
// // Force restore last caret position
|
|
8376
|
-
// setTimeout(() => {
|
|
8377
|
-
// $_el.removeAttribute('readonly');
|
|
8378
|
-
// setTimeout(() => {
|
|
8379
|
-
// setCaretToPos($_el, posStart+1);
|
|
8380
|
-
// }, 0);
|
|
8381
|
-
//
|
|
8382
|
-
// }, 0);
|
|
8383
|
-
commitCaret($_el, posStart+1);
|
|
8384
|
-
queueCaretRestore($_el);
|
|
8385
|
-
break;
|
|
8386
|
-
} //EO Switch
|
|
8387
|
-
}) });
|
|
8203
|
+
if ( event.currentTarget.getAttribute('readonly') == autoCompleteReadonlyMark ) {
|
|
8204
|
+
event.currentTarget.removeAttribute('readonly');
|
|
8388
8205
|
}
|
|
8389
|
-
|
|
8390
8206
|
}) });
|
|
8207
|
+
}
|
|
8391
8208
|
|
|
8209
|
+
/**
|
|
8210
|
+
* warnSharedFieldId
|
|
8211
|
+
* #B1036 — `gina.events['registered.<id>']`, `change.<id>` and `keyup.<id>` are global and keyed by
|
|
8212
|
+
* the id, so of two controls that share an id only the first gets a value setter and a live listener.
|
|
8213
|
+
* Nothing else would say so: the second field shows no error and its form's submit control stays
|
|
8214
|
+
* gated while the user types. Warns once per form and id; never throws, this runs inside a bind.
|
|
8215
|
+
*
|
|
8216
|
+
* @inner
|
|
8217
|
+
* @param {object} $form - the form's record
|
|
8218
|
+
* @param {object} $el - the control whose registration was refused
|
|
8219
|
+
* @returns {void}
|
|
8220
|
+
*
|
|
8221
|
+
* @example
|
|
8222
|
+
* warnSharedFieldId(instance.$forms['second'], document.querySelector('#second [name="ref"]'));
|
|
8223
|
+
*/
|
|
8224
|
+
var warnedSharedFieldIds = {};
|
|
8225
|
+
var warnSharedFieldId = function($form, $el) {
|
|
8226
|
+
var formId = ( $form.target ) ? $form.target.getAttribute('id') : '';
|
|
8227
|
+
var key = formId + '#' + $el.id;
|
|
8228
|
+
if ( warnedSharedFieldIds[key] ) {
|
|
8229
|
+
return;
|
|
8230
|
+
}
|
|
8231
|
+
try {
|
|
8232
|
+
if ( document.querySelectorAll('[id="'+ $el.id.replace(/["\\]/g, '\\$&') +'"]').length > 1 ) {
|
|
8233
|
+
warnedSharedFieldIds[key] = true;
|
|
8234
|
+
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.');
|
|
8235
|
+
}
|
|
8236
|
+
} catch (err) {
|
|
8237
|
+
// an id no selector can quote: nothing to say about it
|
|
8238
|
+
}
|
|
8392
8239
|
}
|
|
8393
8240
|
|
|
8394
8241
|
var registerForLiveChecking = function($form, $el) {
|
|
@@ -8401,11 +8248,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8401
8248
|
// `change` per the author contract, and gina has no `input` proxy for native inputs).
|
|
8402
8249
|
var isCustomEl = ( $el.tagName.indexOf('-') > -1 );
|
|
8403
8250
|
// Filter supported elements
|
|
8404
|
-
if (
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8251
|
+
if ( !isCustomEl && !/^(input|textarea)$/i.test($el.tagName) ) {
|
|
8252
|
+
return
|
|
8253
|
+
}
|
|
8254
|
+
if ( typeof(gina.events['registered.' + $el.id]) != 'undefined' ) {
|
|
8255
|
+
warnSharedFieldId($form, $el);
|
|
8409
8256
|
return
|
|
8410
8257
|
}
|
|
8411
8258
|
// Mutation obeserver - all but type == files, and custom elements (hazard a)
|
|
@@ -8433,14 +8280,17 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8433
8280
|
// handleAutoComplete header). WebKit-on-iOS third-party
|
|
8434
8281
|
// browsers (CriOS/FxiOS/EdgiOS — no "Chrome"/"Chromium"
|
|
8435
8282
|
// token) stay matched on purpose: they run Safari's engine.
|
|
8283
|
+
// A `readonly` the page wrote stays (#B1064); gina's own mark comes back on
|
|
8284
|
+
// a re-bind, and in a clone of a bound field.
|
|
8436
8285
|
var isAutoCompleteField = $el.getAttribute('autocomplete');
|
|
8437
8286
|
if (
|
|
8438
8287
|
/safari/i.test(navigator.userAgent)
|
|
8439
8288
|
&& !/chrom(e|ium)/i.test(navigator.userAgent)
|
|
8440
8289
|
&& isAutoCompleteField
|
|
8441
8290
|
&& /^(off|false)/i.test(isAutoCompleteField)
|
|
8291
|
+
&& ( !$el.hasAttribute('readonly') || $el.getAttribute('readonly') == autoCompleteReadonlyMark )
|
|
8442
8292
|
) {
|
|
8443
|
-
handleAutoComplete($el
|
|
8293
|
+
handleAutoComplete($el)
|
|
8444
8294
|
}
|
|
8445
8295
|
}
|
|
8446
8296
|
break;
|
|
@@ -8734,7 +8584,8 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8734
8584
|
* Detaches what the form's current binding attached and marks the record unbound. Since
|
|
8735
8585
|
* #B585 this is the exact inverse of `bindForm`: the per-form ledger (`$form.boundListeners`)
|
|
8736
8586
|
* and the reassociated-control side-table are drained by reference, the registry keys the
|
|
8737
|
-
* binding wrote are released, the live-check registration flags
|
|
8587
|
+
* binding wrote are released, the live-check registration flags and gina's own `readonly` mark
|
|
8588
|
+
* on a Safari `autocomplete="off"` field are cleared (#B1068), and the submit
|
|
8738
8589
|
* trigger's marks (`data-gina-form-submit-trigger-for`, the `__ginaSubmitBoundFor` expando)
|
|
8739
8590
|
* are released with the record's `submitTrigger` claim, so the next bind — on this record,
|
|
8740
8591
|
* or on a fresh same-id record after `destroy()` — claims and binds the trigger again.
|
|
@@ -8851,6 +8702,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8851
8702
|
if ( ownedId && typeof(gina.events['registered.' + ownedId]) != 'undefined' ) {
|
|
8852
8703
|
delete gina.events['registered.' + ownedId];
|
|
8853
8704
|
}
|
|
8705
|
+
// #B1068 — gina's own `readonly` (autoCompleteReadonlyMark) goes with the binding: no
|
|
8706
|
+
// `focusin` listener is left to lift it. A `readonly` the page wrote stays.
|
|
8707
|
+
if ( $owned[i].getAttribute && $owned[i].getAttribute('readonly') == 'gina' ) {
|
|
8708
|
+
$owned[i].removeAttribute('readonly');
|
|
8709
|
+
}
|
|
8854
8710
|
}
|
|
8855
8711
|
|
|
8856
8712
|
// [HTML5 form-reassociation support] Drain per-control listeners attached to
|
|
@@ -9489,6 +9345,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9489
9345
|
&& !/none/i.test(window.getComputedStyle($previewContainer).display)
|
|
9490
9346
|
// for safety
|
|
9491
9347
|
&& !/none/i.test($previewContainer.parentElement.style.display)
|
|
9348
|
+
// #B990 — a re-bind (`reBind()`, `.bind()`, a bind after `destroy()`) while the input
|
|
9349
|
+
// showed files it had staged read their previews as saved files: an image became a
|
|
9350
|
+
// saved entry and warned about a delete link the page never had, and a file shown
|
|
9351
|
+
// without an image left no entry, so its reset did nothing and the form saved the
|
|
9352
|
+
// file. The input's entries stand while its staged files are on the page.
|
|
9353
|
+
&& !hasLiveStagedFiles($uploadTrigger)
|
|
9492
9354
|
) {
|
|
9493
9355
|
|
|
9494
9356
|
var $deleteLink = null, index = 0, bindingType = 'delete';
|
|
@@ -9927,7 +9789,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9927
9789
|
// was: /^(true)$/i.test($form.target.dataset.ginaFormLiveCheckEnabled && $form.rules.count() > 0)
|
|
9928
9790
|
if (
|
|
9929
9791
|
/^(true)$/i.test($form.target.dataset.ginaFormLiveCheckEnabled) && $form.rules.count() > 0
|
|
9930
|
-
//
|
|
9792
|
+
// #B1037 — a reset restores values, it touches nothing: `resetFields` ends with the one
|
|
9793
|
+
// pass of a reset
|
|
9794
|
+
&& !instance.$forms[$el.form.getAttribute('id')].isBeingReseted
|
|
9931
9795
|
) {
|
|
9932
9796
|
var localField = {}, $localField = {}, $localForm = null;
|
|
9933
9797
|
// #B781 — the select is read from `$el`, the element this function is given. It
|
|
@@ -9941,9 +9805,18 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9941
9805
|
localField[$el.name] = $el.value;
|
|
9942
9806
|
$localField[$el.name] = $el;
|
|
9943
9807
|
|
|
9808
|
+
// #B1037 — same stale pass as processEvent's (keep the two copies in sync)
|
|
9809
|
+
var resetCountAtStart = instance.$forms[$localForm.getAttribute('id')].resetCount || 0;
|
|
9810
|
+
var isStaleAfterReset = function() {
|
|
9811
|
+
return ( instance.$forms[$localForm.getAttribute('id')].resetCount || 0 ) != resetCountAtStart;
|
|
9812
|
+
};
|
|
9813
|
+
|
|
9944
9814
|
instance.$forms[$localForm.getAttribute('id')].isValidating = true;
|
|
9945
9815
|
validate($el, localField, $localField, $form.rules, function onLiveValidation(result){
|
|
9946
9816
|
instance.$forms[$localForm.getAttribute('id')].isValidating = false;
|
|
9817
|
+
if ( isStaleAfterReset() ) {
|
|
9818
|
+
return;
|
|
9819
|
+
}
|
|
9947
9820
|
var isFormValid = result.isValid();
|
|
9948
9821
|
//console.debug('onSilentPreGlobalLiveValidation: '+ isFormValid, result);
|
|
9949
9822
|
if (isFormValid) {
|
|
@@ -9974,6 +9847,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9974
9847
|
instance.$forms[formId].isValidating = true;
|
|
9975
9848
|
validate($gForm, gFields, $gFields, gRules, function onSilentGlobalLiveValidation(gResult){
|
|
9976
9849
|
instance.$forms[formId].isValidating = false;
|
|
9850
|
+
if ( isStaleAfterReset() ) {
|
|
9851
|
+
return;
|
|
9852
|
+
}
|
|
9977
9853
|
console.debug('[updateSelect]: onSilentGlobalLiveValidation: '+ gResult.isValid(), gResult);
|
|
9978
9854
|
// Fixed on 2025-03-16
|
|
9979
9855
|
var isFormValid = gResult.isValid();
|
|
@@ -10253,6 +10129,22 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10253
10129
|
// #B929 — every regexp character of the id is escaped.
|
|
10254
10130
|
// was: var re = new RegExp('(^|\\s)' + $el.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') + '(\\s|$)');
|
|
10255
10131
|
var re = new RegExp('(^|\\s)' + $el.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(\\s|$)');
|
|
10132
|
+
// #B1037 — during a reset, a master's group is applied on the timer below, after the reset's
|
|
10133
|
+
// pass has read the form with the group's old state: that timer reads it again.
|
|
10134
|
+
var isGroupReadAfterReset = false;
|
|
10135
|
+
if ( !isInit && $form.isBeingReseted ) {
|
|
10136
|
+
for (let id in allFormGroupedElements) {
|
|
10137
|
+
if ( re.test(allFormGroupedElements[id].group) ) {
|
|
10138
|
+
isGroupReadAfterReset = true;
|
|
10139
|
+
break;
|
|
10140
|
+
}
|
|
10141
|
+
}
|
|
10142
|
+
}
|
|
10143
|
+
var readGroupAfterReset = function() {
|
|
10144
|
+
if ( isGroupReadAfterReset && instance.$forms[$form.id] ) {
|
|
10145
|
+
revalidateSilently(instance.$forms[$form.id]);
|
|
10146
|
+
}
|
|
10147
|
+
};
|
|
10256
10148
|
// set to checked if not checked: false -> true
|
|
10257
10149
|
if ( !checked || checked == 'null' || checked == 'false' || checked == '' ) {
|
|
10258
10150
|
|
|
@@ -10263,6 +10155,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10263
10155
|
// means that the checkbox is member of another group
|
|
10264
10156
|
triggerHandleCheckBoxGroupDependencies($el, checkBoxGroup, true);
|
|
10265
10157
|
updateGroupChildrenState($el);
|
|
10158
|
+
readGroupAfterReset();
|
|
10266
10159
|
}, 0);
|
|
10267
10160
|
} else {
|
|
10268
10161
|
updateGroupChildrenState($el);
|
|
@@ -10287,6 +10180,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10287
10180
|
// means that the checkbox is member of another group
|
|
10288
10181
|
triggerHandleCheckBoxGroupDependencies($el, checkBoxGroup, false);
|
|
10289
10182
|
updateGroupChildrenState($el);
|
|
10183
|
+
readGroupAfterReset();
|
|
10290
10184
|
}, 0);
|
|
10291
10185
|
$el.setAttribute('checked', 'checked');
|
|
10292
10186
|
} else {
|
|
@@ -10978,22 +10872,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10978
10872
|
|
|
10979
10873
|
var _id = e.currentTarget.id || e.target.id
|
|
10980
10874
|
var $form = instance.$forms[_id];
|
|
10981
|
-
$form
|
|
10982
|
-
resetFields($form);
|
|
10983
|
-
// forcing it
|
|
10984
|
-
var validationInfo = getFormValidationInfos($form.target, $form.rules, true);
|
|
10985
|
-
var fields = validationInfo.fields;
|
|
10986
|
-
var $fields = validationInfo.$fields;
|
|
10987
|
-
|
|
10988
|
-
validate($form.target, fields, $fields, $form.rules, function onSilentResetValidation(result){
|
|
10989
|
-
var isFormValid = result.isValid();
|
|
10990
|
-
console.debug('silent reset validation result[isValid:'+isFormValid+']: ', result);
|
|
10991
|
-
//resetting error display
|
|
10992
|
-
handleErrorsDisplay($form.target, {});
|
|
10993
|
-
|
|
10994
|
-
updateSubmitTriggerState( $form.target , isFormValid );
|
|
10995
|
-
$form.target.dataset.ginaFormIsResetting = false;
|
|
10996
|
-
});
|
|
10875
|
+
resetFields($form, true);
|
|
10997
10876
|
}) })
|
|
10998
10877
|
}
|
|
10999
10878
|
// Form-level proxies: capture bubbled events from in-tree controls.
|
|
@@ -11254,7 +11133,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11254
11133
|
}
|
|
11255
11134
|
instance.$forms[id].isSubmitting = true;
|
|
11256
11135
|
instance.$forms[id].isSending = false;
|
|
11136
|
+
var resetCountAtClick = instance.$forms[id].resetCount || 0;
|
|
11257
11137
|
validate($target, fields, $fields, rule, function onClickValidation(result){
|
|
11138
|
+
if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtClick, result) ) {
|
|
11139
|
+
return;
|
|
11140
|
+
}
|
|
11258
11141
|
triggerEvent(gina, $target, 'validate.' + _id, result)
|
|
11259
11142
|
})
|
|
11260
11143
|
}
|
|
@@ -11635,8 +11518,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11635
11518
|
instance.$forms[id].isSending = false;
|
|
11636
11519
|
}
|
|
11637
11520
|
instance.$forms[id].isValidating = true;
|
|
11521
|
+
var resetCountAtSubmit = instance.$forms[id].resetCount || 0;
|
|
11638
11522
|
validate($target, fields, $fields, rule, function onSubmitValidation(result){
|
|
11639
11523
|
instance.$forms[id].isValidating = false;
|
|
11524
|
+
if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtSubmit, result) ) {
|
|
11525
|
+
return;
|
|
11526
|
+
}
|
|
11640
11527
|
// var isFormValid = result.isValid();
|
|
11641
11528
|
// if (isFormValid) {
|
|
11642
11529
|
// //resetting error display
|
|
@@ -11704,6 +11591,34 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11704
11591
|
|
|
11705
11592
|
} // EO bindForm()
|
|
11706
11593
|
|
|
11594
|
+
/**
|
|
11595
|
+
* releaseSubmitRefusedAfterReset
|
|
11596
|
+
*
|
|
11597
|
+
* #B1037 — a submit that waited for its `query` verdict while the form was reset: a refusal judged
|
|
11598
|
+
* values that are gone, so it paints nothing and moves no focus on the restored form; only what the
|
|
11599
|
+
* refusal would have released is released. A valid verdict still sends: the user asked for those
|
|
11600
|
+
* values, and a script that submits then resets must not lose its request.
|
|
11601
|
+
*
|
|
11602
|
+
* @inner
|
|
11603
|
+
* @param {object} $formInstance - the form's record
|
|
11604
|
+
* @param {number} resetCountAtStart - the record's `resetCount` when the submit pass started
|
|
11605
|
+
* @param {object} result - the pass's result (`isValid()`)
|
|
11606
|
+
* @returns {boolean} true when the refusal was dropped: the caller stops there
|
|
11607
|
+
*
|
|
11608
|
+
* @example
|
|
11609
|
+
* if ( releaseSubmitRefusedAfterReset(instance.$forms[id], resetCountAtClick, result) ) { return; }
|
|
11610
|
+
*/
|
|
11611
|
+
var releaseSubmitRefusedAfterReset = function($formInstance, resetCountAtStart, result) {
|
|
11612
|
+
if ( !$formInstance || ( $formInstance.resetCount || 0 ) == resetCountAtStart || result.isValid() ) {
|
|
11613
|
+
return false;
|
|
11614
|
+
}
|
|
11615
|
+
$formInstance.isSubmitting = false;
|
|
11616
|
+
if ( !/^true$/i.test($formInstance.isSending) ) {
|
|
11617
|
+
disarmSubmitLoading($formInstance);
|
|
11618
|
+
}
|
|
11619
|
+
return true;
|
|
11620
|
+
};
|
|
11621
|
+
|
|
11707
11622
|
/**
|
|
11708
11623
|
* updateSubmitTriggerState
|
|
11709
11624
|
*
|
|
@@ -11938,9 +11853,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11938
11853
|
return;
|
|
11939
11854
|
}
|
|
11940
11855
|
var validationInfo = excludeWithheldAutofill(getFormValidationInfos($formInstance.target, $formInstance.rules));
|
|
11941
|
-
|
|
11856
|
+
var onSilentAutofillValidation = function(result) {
|
|
11942
11857
|
updateSubmitTriggerState($formInstance, result.isValid());
|
|
11943
|
-
}
|
|
11858
|
+
};
|
|
11859
|
+
// #B1037 — a `query` verdict of this pass is neither stored nor painted either
|
|
11860
|
+
onSilentAutofillValidation.isSilentPass = true;
|
|
11861
|
+
validate($formInstance.target, validationInfo.fields, validationInfo.$fields, $formInstance.rules, onSilentAutofillValidation);
|
|
11944
11862
|
};
|
|
11945
11863
|
|
|
11946
11864
|
/**
|
|
@@ -12714,7 +12632,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12714
12632
|
* @param {object} rules - the rule set to apply. The pass works on a copy of it (#B885): a
|
|
12715
12633
|
* `_case_` application, an exclusion or a RegExp alias found during the pass never reaches
|
|
12716
12634
|
* the object the caller holds
|
|
12717
|
-
* @param {callback} cb
|
|
12635
|
+
* @param {callback} cb - with `cb.isSilentPass` (#B1037) a `query` verdict is neither stored nor
|
|
12636
|
+
* painted here, and the pass waits for the answer to its own value: the caller reads the result.
|
|
12637
|
+
* With `cb.judgedQueries` (#B1039), a map of the fields whose `query` verdict is in: this pass does
|
|
12638
|
+
* not ask them again
|
|
12718
12639
|
* @param {string} [culture] // #i18n — server form-body path only; forwarded to FormValidator
|
|
12719
12640
|
*/
|
|
12720
12641
|
var validate = function($formOrElement, fields, $fields, rules, cb, culture) {
|
|
@@ -12770,6 +12691,8 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12770
12691
|
// a sync-only verdict and send() fired while the query XHR was in
|
|
12771
12692
|
// flight). Pass-local by construction, so only the first case matches.
|
|
12772
12693
|
, armedAsyncFields = {}
|
|
12694
|
+
// #B1037 — the form's reset count when this pass started, read by the `query` waiter
|
|
12695
|
+
, resetCountAtPassStart = 0
|
|
12773
12696
|
;
|
|
12774
12697
|
|
|
12775
12698
|
|
|
@@ -12921,6 +12844,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12921
12844
|
} else {
|
|
12922
12845
|
// query rule case
|
|
12923
12846
|
if ( /^query$/.test(rule) ) {
|
|
12847
|
+
// #B1039 — the pass a clean verdict starts (below) does not ask again a field
|
|
12848
|
+
// whose verdict is in: it would answer at once, and its clean verdict would
|
|
12849
|
+
// start the same pass, with no end.
|
|
12850
|
+
if ( cb && cb.judgedQueries && cb.judgedQueries[field] ) {
|
|
12851
|
+
continue;
|
|
12852
|
+
}
|
|
12924
12853
|
$asyncField = $fields[field];
|
|
12925
12854
|
$asyncFieldId = $asyncField.getAttribute('id');
|
|
12926
12855
|
asyncEvt = 'asyncCompleted.'+ $asyncFieldId;
|
|
@@ -12954,6 +12883,17 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12954
12883
|
//console.debug('Adding listner '+asyncEvt);
|
|
12955
12884
|
addListener(gina, $asyncField, asyncEvt, function onasyncCompleted(event) {
|
|
12956
12885
|
event.preventDefault();
|
|
12886
|
+
// #B1037 — the answer to another value (the request of an earlier pass; each
|
|
12887
|
+
// settle wakes every waiter of the field). A silent pass has no later pass to
|
|
12888
|
+
// correct it: it waits for the answer to its own value. The engine lowercases
|
|
12889
|
+
// the value it answers for.
|
|
12890
|
+
if (
|
|
12891
|
+
cb && cb.isSilentPass
|
|
12892
|
+
&& event.detail && d[field]
|
|
12893
|
+
&& String(event.detail.value).toLowerCase() != String(d[field].value).toLowerCase()
|
|
12894
|
+
) {
|
|
12895
|
+
return;
|
|
12896
|
+
}
|
|
12957
12897
|
// #B332/#B334 — one settle per waiter. Waiters stack per pass
|
|
12958
12898
|
// now, so each must consume exactly one wake-up and leave the
|
|
12959
12899
|
// node: the registry-only `removeListener` in the completion
|
|
@@ -12986,6 +12926,14 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12986
12926
|
}
|
|
12987
12927
|
var formId = $currentForm.getAttribute('id');
|
|
12988
12928
|
var isFormValid = null;
|
|
12929
|
+
// #B1037 — the form was reset since this pass started, so the value it
|
|
12930
|
+
// judged is gone: nothing of this verdict is stored, painted or given to
|
|
12931
|
+
// the gate. The pass still completes for its caller.
|
|
12932
|
+
var isStaleVerdict = ( instance.$forms[formId].resetCount || 0 ) != resetCountAtPassStart;
|
|
12933
|
+
// A silent pass (the one of a reset) stores and paints nothing either; its
|
|
12934
|
+
// caller reads the result. A flag on the callback, as `isRevealCompletion`
|
|
12935
|
+
// is: it lives and dies with the pass, so it cannot stay up.
|
|
12936
|
+
var isDisplayHeld = isStaleVerdict || !!( cb && cb.isSilentPass );
|
|
12989
12937
|
|
|
12990
12938
|
if (
|
|
12991
12939
|
hasParsedAllRules
|
|
@@ -13023,14 +12971,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13023
12971
|
instance.$forms[formId].errors = {}
|
|
13024
12972
|
}
|
|
13025
12973
|
// Fixed on 2025-03-16
|
|
13026
|
-
if ( typeof(cb._errors[field]) != 'undefined' ) {
|
|
12974
|
+
if ( typeof(cb._errors[field]) != 'undefined' && !isDisplayHeld ) {
|
|
13027
12975
|
instance.$forms[formId].errors[field] = cb._errors[field];
|
|
13028
12976
|
}
|
|
13029
12977
|
console.debug('[A] Refreshing warning/error on field '+ field);
|
|
13030
12978
|
if (
|
|
13031
|
-
!
|
|
13032
|
-
|
|
13033
|
-
|
|
12979
|
+
!isDisplayHeld
|
|
12980
|
+
&& (
|
|
12981
|
+
!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating)
|
|
12982
|
+
|| d[field].target.value != ''
|
|
12983
|
+
)
|
|
13034
12984
|
) {
|
|
13035
12985
|
refreshWarning($allFields[field]);
|
|
13036
12986
|
handleErrorsDisplay($currentForm, cb._errors, cb._data, field);
|
|
@@ -13124,7 +13074,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13124
13074
|
if (isFormValid) {
|
|
13125
13075
|
needsGlobalReValidation = true;
|
|
13126
13076
|
}
|
|
13127
|
-
if (!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating)) {
|
|
13077
|
+
if (!isFormValid && /^true|false$/i.test(instance.$forms[formId].isValidating) && !isDisplayHeld) {
|
|
13128
13078
|
console.debug('[1] Should update error display now ', cb._errors);
|
|
13129
13079
|
instance.$forms[formId].errors = merge(cb._errors, instance.$forms[formId].errors);
|
|
13130
13080
|
refreshWarning($allFields[field]);
|
|
@@ -13164,8 +13114,25 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13164
13114
|
triggerEvent(gina, $formOrElement, 'validated.' + formId, cb);
|
|
13165
13115
|
}
|
|
13166
13116
|
|
|
13117
|
+
// #B1037 — a stale verdict starts no pass, and leaves the flag that pass's end
|
|
13118
|
+
// would have put down
|
|
13119
|
+
if (isStaleVerdict && needsGlobalReValidation) {
|
|
13120
|
+
instance.$forms[formId].isValidating = false;
|
|
13121
|
+
}
|
|
13122
|
+
if (isStaleVerdict) {
|
|
13123
|
+
needsGlobalReValidation = false;
|
|
13124
|
+
}
|
|
13125
|
+
|
|
13167
13126
|
if (needsGlobalReValidation) {
|
|
13168
|
-
|
|
13127
|
+
// #B1039 — this arm leaves its field in the pass's input, and a `_case_`
|
|
13128
|
+
// driver stays there whatever its rules (#B230). The field has to stay: a
|
|
13129
|
+
// driver's entry is its case value, and without it a radio group reads its
|
|
13130
|
+
// first radio, whichever is checked. So the pass is told not to ask it again.
|
|
13131
|
+
// A copy per pass, since each `query` field of a form starts a chain of its
|
|
13132
|
+
// own; the set only grows along a chain, so the chain ends.
|
|
13133
|
+
var judgedQueries = ( cb && cb.judgedQueries ) ? JSON.clone(cb.judgedQueries) : {};
|
|
13134
|
+
judgedQueries[field] = true;
|
|
13135
|
+
var onSilentQueryGlobalLiveValidation = function(gResult){
|
|
13169
13136
|
instance.$forms[formId].isValidating = false;
|
|
13170
13137
|
// console.debug('['+ formId +'] onSilentQueryGlobalLiveValidation: '+ gResult.isValid(), gResult);
|
|
13171
13138
|
isFormValid = gResult.isValid();
|
|
@@ -13182,9 +13149,14 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13182
13149
|
window.ginaToolbar.update('forms', objCallback);
|
|
13183
13150
|
}
|
|
13184
13151
|
|
|
13185
|
-
|
|
13152
|
+
if ( !isDisplayHeld ) {
|
|
13153
|
+
handleErrorsDisplay($currentForm, gResult.error, gResult.data, field);
|
|
13154
|
+
}
|
|
13186
13155
|
updateSubmitTriggerState( $currentForm, isFormValid);
|
|
13187
|
-
}
|
|
13156
|
+
};
|
|
13157
|
+
onSilentQueryGlobalLiveValidation.isSilentPass = isDisplayHeld;
|
|
13158
|
+
onSilentQueryGlobalLiveValidation.judgedQueries = judgedQueries;
|
|
13159
|
+
validate($currentForm, allFields, $allFields, rules, onSilentQueryGlobalLiveValidation);
|
|
13188
13160
|
}
|
|
13189
13161
|
|
|
13190
13162
|
});
|
|
@@ -13235,6 +13207,7 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13235
13207
|
instance.$forms[id].fields = fields;
|
|
13236
13208
|
d = new FormValidator(fields, $fields, xhrOptions, instance.$forms[id].fieldsSet);
|
|
13237
13209
|
}
|
|
13210
|
+
resetCountAtPassStart = instance.$forms[id].resetCount || 0;
|
|
13238
13211
|
} else {
|
|
13239
13212
|
d = new FormValidator(fields, null, xhrOptions, undefined, culture);
|
|
13240
13213
|
}
|