gina 0.7.4 → 0.7.5
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 +79 -8
- package/CONTRIBUTING.md +1 -1
- package/INSTALL.md +3 -42
- package/README.md +56 -50
- package/ROADMAP.md +18 -4
- package/bin/cli +13 -6
- package/bin/gina +8 -0
- package/bin/gina-container +92 -11
- package/bin/gina-init +49 -4
- package/framework/v0.7.5/VERSION +1 -0
- package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.js +1062 -139
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js +744 -0
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.5/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/{v0.7.4 → v0.7.5}/core/config.js +27 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/index.js +36 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v3.js +63 -13
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.v4.js +56 -11
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/duckdb/lib/connector.js +27 -3
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/connector.js +4 -3
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/index.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/connector.js +10 -5
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/job-store.js +2 -2
- package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/kv-store.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.js +79 -8
- package/framework/{v0.7.4 → v0.7.5}/core/gna.js +11 -3
- package/framework/{v0.7.4 → v0.7.5}/core/model/index.js +19 -12
- package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/form-validator.js +95 -8
- package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/src/main.js +574 -64
- package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/index.js +3 -1
- package/framework/{v0.7.4 → v0.7.5}/helpers/context.js +17 -1
- package/framework/{v0.7.4 → v0.7.5}/helpers/data/src/main.js +74 -4
- package/framework/{v0.7.4 → v0.7.5}/helpers/index.js +7 -1
- package/framework/v0.7.5/helpers/json/src/main.js +340 -0
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/list.js +4 -2
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/restart.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/start.js +52 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/status.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/add.js +17 -3
- package/framework/v0.7.5/lib/cmd/framework/inc/child-failure.js +77 -0
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/init.js +31 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link.js +6 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/start.js +6 -6
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/helper.js +165 -16
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/add.js +79 -27
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rename.js +1 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restore.js +4 -4
- package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/status.js +2 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/collection/src/main.js +59 -9
- package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/src/main.js +52 -1
- package/framework/{v0.7.4 → v0.7.5}/lib/model.js +35 -11
- package/framework/{v0.7.4 → v0.7.5}/lib/proc.js +95 -31
- package/framework/{v0.7.4 → v0.7.5}/lib/routing/src/main.js +260 -54
- package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/src/main.js +107 -12
- package/framework/{v0.7.4 → v0.7.5}/package.json +2 -2
- package/gna.js +4 -4
- package/llms.txt +35 -28
- package/package.json +6 -6
- package/schema/connectors.json +3 -3
- package/schema/settings.json +3 -3
- package/script/post_install.js +36 -9
- package/script/pre_install.js +9 -5
- package/script/smoke_in_container.js +4 -4
- package/types/globals.d.ts +7 -1
- package/types/index.d.ts +3 -3
- package/framework/v0.7.4/VERSION +0 -1
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -736
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.7.4/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/v0.7.4/helpers/json/src/main.js +0 -187
- /package/framework/{v0.7.4 → v0.7.5}/AUTHORS +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/html/static.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/config.requirements-anchor.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/couchbase/lib/storage-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mongodb/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/param-redact.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/connector.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/kv-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/scylladb/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/settle-once.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/content.encoding +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-json.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks-async.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-nunjucks.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig-async.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-swig.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/controller.render-xml.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/inline-script.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/inspector-window-emit.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/preload-hints.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/controller/release-banner.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/currency.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/locales/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/mime.types +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/entity.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/model/template/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/csrf/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/session/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/router.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.express.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.isaac.rapid-reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/server.route-candidates.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/status.codes +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/_gitignore +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle/locales/en.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_public/sw.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/env.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/console.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/data/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/json/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/path.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/prototypes.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/task.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/helpers/text.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/admin/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/admin/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/async/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/async/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/audit-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/lockout.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authn/src/totp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/authz-gate/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/audit/verify.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/boot-lines.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/inc/start-status.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp-start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/mcp.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/bundle/types.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/clear.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/infer.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/migrate.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/models.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/connector/test.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/ps.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/container/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/args.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/namespace.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/reference-scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/inc/scaffold.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rename.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/controller/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/listen-error.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/inc/ps-titles.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/export.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/import.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/i18n/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/_host.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/image/run.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/man-render.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/kill.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/minion/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/backup.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/inc/name.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/check.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/secrets/scan.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/list.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/man.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/service/start.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/arguments.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/gc.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/help.txt +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/stats.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/storage/verify.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cmd-status-format/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/collection/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/conf-view/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/config.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-config/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-error/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/connector-registry/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-pipe/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/dto-types/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/duration/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/duration/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/error-ref/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/generator/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/i18n/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/idempotency/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/image-build/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-events/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/inspector-redact/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/instrument/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/job-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/json-config-header/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/kv-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/lane/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/lane/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/loading-state/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/logger/src/redact.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/maintenance/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/math/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-dispatch/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-http/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/mcp-server/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/message-validator/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/metrics/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/money/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/money/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/multipart/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/net-locality/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-filters/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/nunjucks-resolver/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/priority/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/priority/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/push/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/push/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/rate-limit/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/release-watch/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/render-cache-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/build.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/routing-introspect/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/env.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/exec.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/backends/file.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/declaration.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/env-file.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/secrets/src/sources.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/security-headers-emitter/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-lifetime/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/session-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/shell.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sqlite-driver.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sri/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/sri/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/state.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-cas.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local-stream.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/local.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/meta-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/s3.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage/src/util.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/storage-store.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/swig-resolver/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/http.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/loaders/memory.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/template-loaders/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/README.md +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/index.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/url/routing.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/validator.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/watcher/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-framing/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-query/src/main.js +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/package.json +0 -0
- /package/framework/{v0.7.4 → v0.7.5}/lib/ws-session/src/main.js +0 -0
|
@@ -2303,9 +2303,18 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2303
2303
|
* @param {object} errors
|
|
2304
2304
|
* @param {object|null} data
|
|
2305
2305
|
* @param {string|null} [fieldName] - restricts the pass to one field (the per-field / live-check path)
|
|
2306
|
+
* @param {boolean} [isSubmitTriggerLeftToFormPass=false] - #B922: the caller's whole-form pass writes the
|
|
2307
|
+
* submit trigger, so a field without errors does not mark the form ready here
|
|
2308
|
+
* @returns {void}
|
|
2309
|
+
*
|
|
2310
|
+
* @example
|
|
2311
|
+
* // a live-check field pass that found no error; the whole-form pass that follows writes the trigger
|
|
2312
|
+
* handleErrorsDisplay($formNode, {}, result.data, 'email', true);
|
|
2313
|
+
*
|
|
2314
|
+
* @inner
|
|
2306
2315
|
*/
|
|
2307
2316
|
var liveCheckErrors = {}; // Per Form & Per Element
|
|
2308
|
-
var handleErrorsDisplay = function($form, errors, data, fieldName) {
|
|
2317
|
+
var handleErrorsDisplay = function($form, errors, data, fieldName, isSubmitTriggerLeftToFormPass) {
|
|
2309
2318
|
|
|
2310
2319
|
// Toolbar errors display
|
|
2311
2320
|
if ( envIsDev )
|
|
@@ -2388,7 +2397,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2388
2397
|
&& !instance.$forms[formId].errors
|
|
2389
2398
|
) {
|
|
2390
2399
|
// update submit trigger state
|
|
2391
|
-
|
|
2400
|
+
// #B922 — unless the caller's whole-form pass writes it: there, the `true` of a
|
|
2401
|
+
// field without errors reached the show branch, which clears native `disabled`,
|
|
2402
|
+
// before that pass gated the form.
|
|
2403
|
+
// was: updateSubmitTriggerState( $form, true );
|
|
2404
|
+
if ( !isSubmitTriggerLeftToFormPass ) {
|
|
2405
|
+
updateSubmitTriggerState( $form, true );
|
|
2406
|
+
}
|
|
2392
2407
|
}
|
|
2393
2408
|
|
|
2394
2409
|
if ( typeof(liveCheckErrors[formId]) != 'undefined' && liveCheckErrors[formId].count() == 0 ) {
|
|
@@ -2879,7 +2894,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2879
2894
|
* Values are placed VERBATIM — no url-decode, no `"true"`/`"false"`/`"null"`
|
|
2880
2895
|
* coercion — because the non-binary body is posted as `application/json` and the
|
|
2881
2896
|
* server keeps JSON keys/values as sent (#B28). A numeric next segment makes the
|
|
2882
|
-
* current level an array.
|
|
2897
|
+
* current level an array. A level that mixes indexes and names is an object keyed
|
|
2898
|
+
* by both, whatever came first (#B596): a name reaching a level that already holds
|
|
2899
|
+
* an array copies the array into an object before the walk goes on.
|
|
2883
2900
|
*
|
|
2884
2901
|
* @inner
|
|
2885
2902
|
* @param {(object|Array)} obj - accumulator, mutated in place and returned
|
|
@@ -2891,6 +2908,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2891
2908
|
* @example
|
|
2892
2909
|
* // 'item[0][id]' -> ['item','0','id']
|
|
2893
2910
|
* nestBracketNotationKey({}, ['item','0','id'], 0, 'x'); // { item: [ { id: 'x' } ] }
|
|
2911
|
+
*
|
|
2912
|
+
* @example
|
|
2913
|
+
* // 'list[0][id]' then 'list[name]': one object, nothing lost
|
|
2914
|
+
* var o = nestBracketNotationKey({}, ['list','0','id'], 0, 'x');
|
|
2915
|
+
* nestBracketNotationKey(o, ['list','name'], 0, 'y'); // { list: { 0: { id: 'x' }, name: 'y' } }
|
|
2894
2916
|
*/
|
|
2895
2917
|
var nestBracketNotationKey = function(obj, key, k, value) {
|
|
2896
2918
|
|
|
@@ -2952,6 +2974,18 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
2952
2974
|
obj[ _key ] = null;
|
|
2953
2975
|
}
|
|
2954
2976
|
|
|
2977
|
+
// #B596 — a segment that is not an index (`list[name]`) reaching an
|
|
2978
|
+
// existing array: that level mixes indexes and names, so it becomes an
|
|
2979
|
+
// OBJECT keyed by both (`"0"`, `"1"`, `"name"`), whatever came first.
|
|
2980
|
+
// Before, the name was read as index 0 (`~~'name'`): a fresh `{}`
|
|
2981
|
+
// replaced the first element, and the name became an array property
|
|
2982
|
+
// that JSON drops. A level whose segments are all indexes stays an
|
|
2983
|
+
// array. Identical in helpers/data `parseLocalObj` and the validator
|
|
2984
|
+
// twin `nestBracketNotationKey` (pinned byte for byte).
|
|
2985
|
+
if ( Array.isArray(obj[ _key ]) && !/^\d+$/.test(key[k+1]) ) {
|
|
2986
|
+
obj[ _key ] = Object.assign({}, obj[ _key ]);
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2955
2989
|
nestBracketNotationKey(obj[ _key ], key, k+1, value);
|
|
2956
2990
|
}
|
|
2957
2991
|
}
|
|
@@ -7410,6 +7444,58 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7410
7444
|
Object.defineProperty($el, 'value', descriptor);
|
|
7411
7445
|
}
|
|
7412
7446
|
|
|
7447
|
+
/**
|
|
7448
|
+
* isCaseConditionTarget
|
|
7449
|
+
* #B884 — tells whether a `_case_<driver>` block of a rule set names `field` in the `rules` of
|
|
7450
|
+
* one of its conditions, i.e. whether a case can make that field required (or give it any rule)
|
|
7451
|
+
* while it has no rule of its own. An exact field-name key counts, and since #B921 a RegExp key
|
|
7452
|
+
* (`"/^item[/"`) that matches `field` counts too, read as `forEachField`'s expandCaseRegExpKeys reads
|
|
7453
|
+
* it (`[` and `]` literal, the flags kept, the block's driver left out, an invalid pattern skipped).
|
|
7454
|
+
* Before #B921 only exact keys counted: the live case merge skipped a RegExp key, so it never
|
|
7455
|
+
* applied there.
|
|
7456
|
+
*
|
|
7457
|
+
* @inner
|
|
7458
|
+
* @param {object} rules - the form's bound rule set (`$form.rules`)
|
|
7459
|
+
* @param {string} field - a control's name
|
|
7460
|
+
*
|
|
7461
|
+
* @returns {boolean} true when at least one condition's `rules` names `field`
|
|
7462
|
+
*
|
|
7463
|
+
* @example
|
|
7464
|
+
* isCaseConditionTarget({ _case_kind: { conditions: [{ case: 'b', rules: { extra: { isRequired: true } } }] } }, 'extra'); // true
|
|
7465
|
+
* isCaseConditionTarget({ ref: { isRequired: true } }, 'ref'); // false: a rule of its own, no case names it
|
|
7466
|
+
* isCaseConditionTarget({ _case_kind: { conditions: [{ case: 'b', rules: { '/^item[/': { isRequired: true } } }] } }, 'item[0][id]'); // true
|
|
7467
|
+
*/
|
|
7468
|
+
var isCaseConditionTarget = function(rules, field) {
|
|
7469
|
+
if ( !rules || typeof(rules) != 'object' || typeof(field) != 'string' || field == '' ) {
|
|
7470
|
+
return false;
|
|
7471
|
+
}
|
|
7472
|
+
for (var c in rules) {
|
|
7473
|
+
if ( !/^\_case\_/.test(c) || !rules[c] || !Array.isArray(rules[c].conditions) ) continue;
|
|
7474
|
+
for (var i = 0, len = rules[c].conditions.length; i < len; ++i) {
|
|
7475
|
+
var condition = rules[c].conditions[i];
|
|
7476
|
+
if ( !condition || !condition.rules || typeof(condition.rules) != 'object' ) continue;
|
|
7477
|
+
if ( Object.prototype.hasOwnProperty.call(condition.rules, field) ) {
|
|
7478
|
+
return true;
|
|
7479
|
+
}
|
|
7480
|
+
// #B921 — a RegExp key that matches the field, as forEachField expands it
|
|
7481
|
+
if ( c.replace(/^\_case\_/, '') == field ) continue;
|
|
7482
|
+
for (var key in condition.rules) {
|
|
7483
|
+
if ( !/^\//.test(key) ) continue;
|
|
7484
|
+
try {
|
|
7485
|
+
var keyPattern = key.match(/\/(.*)\//).pop();
|
|
7486
|
+
var keyRe = new RegExp(keyPattern.replace(/\[/g, '\\[').replace(/\]/g, '\\]'), key.replace('/'+ keyPattern +'/', ''));
|
|
7487
|
+
if ( keyRe.test(field) ) {
|
|
7488
|
+
return true;
|
|
7489
|
+
}
|
|
7490
|
+
} catch (err) {
|
|
7491
|
+
// a pattern the engine rejects is skipped (forEachField warns about it)
|
|
7492
|
+
}
|
|
7493
|
+
}
|
|
7494
|
+
}
|
|
7495
|
+
}
|
|
7496
|
+
return false;
|
|
7497
|
+
}
|
|
7498
|
+
|
|
7413
7499
|
/**
|
|
7414
7500
|
* addLiveForInput
|
|
7415
7501
|
* Wires one form control for live checking: registers the gina event
|
|
@@ -7421,6 +7507,12 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7421
7507
|
* form-level change proxy is the only dispatcher that fires on a user
|
|
7422
7508
|
* pick and it only dispatches names that are registered.
|
|
7423
7509
|
*
|
|
7510
|
+
* A control is wired when it has a rule, or — since #B884 — when a `_case_` condition names it
|
|
7511
|
+
* (`isCaseConditionTarget`): its field pass finds no rule, and only the whole-form pass writes the
|
|
7512
|
+
* submit trigger for it (#B922). Admitted input types (#B886): radio,
|
|
7513
|
+
* checkbox, text, hidden, password, number, email, tel, url, search, and the date/time family
|
|
7514
|
+
* (date, time, datetime-local, month, week).
|
|
7515
|
+
*
|
|
7424
7516
|
* @inner
|
|
7425
7517
|
* @param {object} $form - form instance record (`instance.$forms[id]` shape: `.rules`, `.target`)
|
|
7426
7518
|
* @param {object} $el - control to wire (DOMObject)
|
|
@@ -7450,18 +7542,28 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7450
7542
|
isDisabled = false;
|
|
7451
7543
|
}
|
|
7452
7544
|
// allowedLiveInputTypes
|
|
7453
|
-
|
|
7545
|
+
// #B886 — tel, url, search and the date/time family were left out, so a field of such a
|
|
7546
|
+
// type got no live listener even with a rule: typing never re-evaluated the submit trigger.
|
|
7547
|
+
// range and color stay out (not measured).
|
|
7548
|
+
// was: /^(radio|checkbox|text|hidden|password|number|date|email)$/i
|
|
7549
|
+
if ( /^(radio|checkbox|text|hidden|password|number|date|email|tel|url|search|time|datetime-local|month|week)$/i.test($el.type) && !isDisabled || isOtherTagAllowed && !isDisabled ) {
|
|
7454
7550
|
var field = $el.name;
|
|
7455
7551
|
var localRule = rules[field] || null;
|
|
7552
|
+
// #B884 — a field with no rule of its own that a `_case_` condition names is wired too:
|
|
7553
|
+
// the case writes its rule into the store later (forEachField), and without a listener
|
|
7554
|
+
// typing into it never re-evaluated the submit trigger.
|
|
7555
|
+
var isCaseTarget = ( !localRule ) ? isCaseConditionTarget(rules, field) : false;
|
|
7456
7556
|
if ( !localRule ) {
|
|
7457
7557
|
checkForRuleAlias(rules, $el);
|
|
7458
7558
|
|
|
7459
|
-
if ( typeof(rules[field]) == 'undefined' )
|
|
7559
|
+
// was: if ( typeof(rules[field]) == 'undefined' )
|
|
7560
|
+
if ( typeof(rules[field]) == 'undefined' && !isCaseTarget )
|
|
7460
7561
|
return;
|
|
7461
7562
|
}
|
|
7462
7563
|
// data-gina-form-live-check-enabled
|
|
7463
|
-
// with local rule
|
|
7464
|
-
if ( $form.target.dataset.ginaFormLiveCheckEnabled && localRule)
|
|
7564
|
+
// with local rule (or, #B884, named by a `_case_` condition)
|
|
7565
|
+
// was: if ( $form.target.dataset.ginaFormLiveCheckEnabled && localRule)
|
|
7566
|
+
if ( $form.target.dataset.ginaFormLiveCheckEnabled && (localRule || isCaseTarget) ) {
|
|
7465
7567
|
|
|
7466
7568
|
var eventsList = [], _evt = null, _e = 0;
|
|
7467
7569
|
if ( !/^(radio|checkbox)$/i.test($el.type) ) {
|
|
@@ -7585,7 +7687,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
7585
7687
|
//console.debug('onSilentPreGlobalLiveValidation: '+ isFormValid, result);
|
|
7586
7688
|
if (isFormValid) {
|
|
7587
7689
|
//resetting error display
|
|
7588
|
-
|
|
7690
|
+
// #B922 — a field wired only because a `_case_` condition names it (#B884)
|
|
7691
|
+
// has no rule in this pass, which therefore reads valid: its `true` cleared
|
|
7692
|
+
// the native `disabled` a page script had set, before the whole-form pass
|
|
7693
|
+
// below gated the form. For such a field the whole-form pass alone writes
|
|
7694
|
+
// the submit trigger.
|
|
7695
|
+
// was: handleErrorsDisplay(event.target.form, {}, result.data, event.target.name);
|
|
7696
|
+
handleErrorsDisplay(event.target.form, {}, result.data, event.target.name, isCaseTarget);
|
|
7589
7697
|
} else {
|
|
7590
7698
|
handleErrorsDisplay(event.target.form, result.error, result.data, event.target.name);
|
|
7591
7699
|
}
|
|
@@ -8401,8 +8509,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8401
8509
|
* .getFormById('my-form-id')
|
|
8402
8510
|
* .reBind();
|
|
8403
8511
|
*
|
|
8404
|
-
* @param {string} [formId]
|
|
8405
|
-
* @param {string} [rules]
|
|
8512
|
+
* @param {string} [formId] - ignored when called as a handle method (`$forms[id].reBind()`)
|
|
8513
|
+
* @param {string|object} [rules] - a rule-set name (dot or slash path) or a rule object, applied
|
|
8514
|
+
* whenever it is given (#B802: it used to apply only once some validation on the page had found
|
|
8515
|
+
* an error). Without it, the form is re-bound with the rule set a no-rule bind resolves:
|
|
8516
|
+
* `data-gina-form-rule`, then the form's id (#B879).
|
|
8406
8517
|
* @param {callback} [cb]
|
|
8407
8518
|
*/
|
|
8408
8519
|
var reBindForm = function(formId, rules, cb) {
|
|
@@ -8429,7 +8540,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8429
8540
|
// Unbind form
|
|
8430
8541
|
unbindForm($form.target);
|
|
8431
8542
|
// Bind
|
|
8432
|
-
|
|
8543
|
+
// #B802 — test the `rules` argument. `rule` named no variable in scope: it read a GLOBAL that
|
|
8544
|
+
// the validator leaked on its first validation error (#B880), so the rules handed in applied
|
|
8545
|
+
// only after such an error.
|
|
8546
|
+
// was: if ( typeof(rule) != 'undefined' )
|
|
8547
|
+
if ( typeof(rules) != 'undefined' ) {
|
|
8433
8548
|
bindForm($form.target, rules);
|
|
8434
8549
|
} else {
|
|
8435
8550
|
bindForm($form.target);
|
|
@@ -8537,7 +8652,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8537
8652
|
* Handlers registered through `.on()` (the declarative `data-gina-form-event-on-*` hooks
|
|
8538
8653
|
* included) are left in place — they belong to the form, and `destroy()` removes them.
|
|
8539
8654
|
*
|
|
8540
|
-
* @param {object} $target - the `<form>` element, or the form record (`$forms[id]`)
|
|
8655
|
+
* @param {object} [$target] - the `<form>` element, or the form record (`$forms[id]`). Omitted
|
|
8656
|
+
* when called as a handle method (`$forms[id].unbind()`): the handle's own form is unbound
|
|
8657
|
+
* (#B881: that call threw before 0.7.5).
|
|
8541
8658
|
*
|
|
8542
8659
|
* @returns {object} $form - the record, `binded` false
|
|
8543
8660
|
*
|
|
@@ -8550,6 +8667,19 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8550
8667
|
, _id = null
|
|
8551
8668
|
;
|
|
8552
8669
|
|
|
8670
|
+
// #B881 — called as a handle method with no argument (`$forms[id].unbind()`), unbind the
|
|
8671
|
+
// handle's own form, as bindForm and reBindForm do. It read `$target.getAttribute` on
|
|
8672
|
+
// undefined and threw « could not unbind form `undefined` ».
|
|
8673
|
+
if (
|
|
8674
|
+
typeof($target) == 'undefined'
|
|
8675
|
+
&& this
|
|
8676
|
+
&& typeof(this.target) != 'undefined'
|
|
8677
|
+
&& this.target
|
|
8678
|
+
&& /FORM/i.test(this.target.tagName)
|
|
8679
|
+
) {
|
|
8680
|
+
$target = this.target;
|
|
8681
|
+
}
|
|
8682
|
+
|
|
8553
8683
|
try {
|
|
8554
8684
|
if ( $target.getAttribute && $target.getAttribute('id') ) {
|
|
8555
8685
|
_id = $target.getAttribute('id');
|
|
@@ -8562,7 +8692,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8562
8692
|
$form = $target;
|
|
8563
8693
|
_id = ( $target.getAttribute && $target.getAttribute('id') ) ? $form.getAttribute('id') : $form.id;
|
|
8564
8694
|
} else {
|
|
8565
|
-
|
|
8695
|
+
// #B881 — no `err` exists in this branch: the old message raised a ReferenceError
|
|
8696
|
+
// that the catch below rewrapped.
|
|
8697
|
+
// was: throw new Error('Validator::unbindForm($target): `$target` must be a DOM element\n'+err.stack )
|
|
8698
|
+
throw new Error('Validator::unbindForm($target): `$target` must be a DOM element')
|
|
8566
8699
|
}
|
|
8567
8700
|
} catch(err) {
|
|
8568
8701
|
throw new Error('Validator::unbindForm($target) could not unbind form `'+ $target +'`\n'+err.stack )
|
|
@@ -8688,8 +8821,21 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8688
8821
|
/**
|
|
8689
8822
|
* bindForm
|
|
8690
8823
|
*
|
|
8824
|
+
* Binds a form record: resolves its rule set, wires the live check, the submit trigger and
|
|
8825
|
+
* the form-level listeners, then runs the bind-time silent validation.
|
|
8826
|
+
*
|
|
8827
|
+
* The rule set comes from, in order: the `customRule` the caller passes (a rule object, or the
|
|
8828
|
+
* name of a known rule set); else the form's `data-gina-form-rule`, when it names a known rule
|
|
8829
|
+
* set (#B879 — how `reBind()`, `.bind()` and `getFormById()` re-bind a form whose id names no
|
|
8830
|
+
* rule set); else the form's id, `-` and `/` read as `.`. A form matching none of them is
|
|
8831
|
+
* bound with an empty rule set.
|
|
8832
|
+
*
|
|
8833
|
+
* The record's rules are its own copy of the resolved set (#B931): what this binding and the
|
|
8834
|
+
* form's checks write into them — `exclude` on its grouped fields, `isBoolean` on a boolean
|
|
8835
|
+
* checkbox, a RegExp key's alias — never reaches another form bound to the same rule set.
|
|
8836
|
+
*
|
|
8691
8837
|
* @param {object} [$target] - DOM element
|
|
8692
|
-
* @param {object|string} [customRule]
|
|
8838
|
+
* @param {object|string} [customRule] - a rule object, or the name of a known rule set
|
|
8693
8839
|
*
|
|
8694
8840
|
* @return {object} bindedForm
|
|
8695
8841
|
* */
|
|
@@ -8800,6 +8946,18 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8800
8946
|
// console.debug('binding for: '+ _id);
|
|
8801
8947
|
var withRules = false, rule = null, evt = '', proceed = null;
|
|
8802
8948
|
|
|
8949
|
+
// #B879 — a bind given no rule resolves it as the first bind does: the form's
|
|
8950
|
+
// `data-gina-form-rule` first, when it names a known rule set, then the form's id (the
|
|
8951
|
+
// branch below). By the id alone, a re-bind — `reBind()`, `.bind()`, or `getFormById()` on
|
|
8952
|
+
// an unbound form — gave a form whose id names no rule set an empty rule set: no field was
|
|
8953
|
+
// live-checked and the submit trigger kept the gated mark of the previous bind.
|
|
8954
|
+
if ( typeof(customRule) == 'undefined' && $target.getAttribute('data-gina-form-rule') ) {
|
|
8955
|
+
var attrRule = $target.getAttribute('data-gina-form-rule').replace(/\-|\//g, '.');
|
|
8956
|
+
if ( typeof(rules[attrRule]) != 'undefined' ) {
|
|
8957
|
+
customRule = attrRule;
|
|
8958
|
+
}
|
|
8959
|
+
}
|
|
8960
|
+
|
|
8803
8961
|
if (
|
|
8804
8962
|
typeof(customRule) != 'undefined'
|
|
8805
8963
|
||
|
|
@@ -8820,7 +8978,24 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
8820
8978
|
rule = getRuleObjByName(_id.replace(/\-|\//g, '.'))
|
|
8821
8979
|
}
|
|
8822
8980
|
|
|
8823
|
-
|
|
8981
|
+
// #B931 — the record holds its OWN copy of the rule set. `rule` is a shared object
|
|
8982
|
+
// whichever way it came: `getRuleObjByName` caches the object it builds and returns
|
|
8983
|
+
// it to every caller, and the boot scan passes `instance.rules[name]`, which `init`
|
|
8984
|
+
// chains from one form to the next through `merge`. What this binding and the form's
|
|
8985
|
+
// own checks write into the rules — `exclude` on its grouped fields (below and in
|
|
8986
|
+
// the group handlers), the collector's `isBoolean` on a boolean checkbox, a RegExp
|
|
8987
|
+
// key's alias — is this form's state, derived from its own markup; shared, it
|
|
8988
|
+
// reached every form bound to the same rule set: a form posted without a ticked
|
|
8989
|
+
// value-carrying checkbox because another form's hidden field of that name had been
|
|
8990
|
+
// excluded first, or posted a boolean in place of a value. The submit and click
|
|
8991
|
+
// passes read the record's copy too.
|
|
8992
|
+
// was: $form.rules = rule;
|
|
8993
|
+
$form.rules = JSON.clone(rule);
|
|
8994
|
+
// where validateFormById set the singular `rule`, it keeps naming the form's own
|
|
8995
|
+
// rules object, as it did
|
|
8996
|
+
if ( typeof($form.rule) != 'undefined' ) {
|
|
8997
|
+
$form.rule = $form.rules;
|
|
8998
|
+
}
|
|
8824
8999
|
if ( envIsDev && isGFFCtx && typeof(window.ginaToolbar) != 'undefined' && window.ginaToolbar ) {
|
|
8825
9000
|
// update toolbar
|
|
8826
9001
|
if (!gina.forms.rules)
|
|
@@ -9620,7 +9795,8 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9620
9795
|
/**
|
|
9621
9796
|
* Live-checks a <select> after its `change`: validates the select alone, then, in that
|
|
9622
9797
|
* pass's callback, the whole form, and displays each pass's error for this select only.
|
|
9623
|
-
* The element is always `$el`, never the global `event` (#B781).
|
|
9798
|
+
* The element is always `$el`, never the global `event` (#B781). The whole-form pass
|
|
9799
|
+
* collects and validates with the form's own rules (#B915).
|
|
9624
9800
|
*
|
|
9625
9801
|
* @inner
|
|
9626
9802
|
* @private
|
|
@@ -9675,10 +9851,17 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9675
9851
|
|
|
9676
9852
|
// Global check required: on all fields
|
|
9677
9853
|
var $gForm = $localForm, gFields = null, $gFields = null, gRules = null;
|
|
9678
|
-
var
|
|
9854
|
+
var formId = $gForm.getAttribute('id');
|
|
9855
|
+
// #B915 — collect with the form's own rules, the rule set the pass below validates
|
|
9856
|
+
// with. `rules` here is bindForm's: the rule REGISTRY, keyed by rule-set name, so
|
|
9857
|
+
// `rules[<field>]` was undefined for every field and #B221's arm never collected an
|
|
9858
|
+
// unchecked required radio group: the pass read valid and the submit trigger opened
|
|
9859
|
+
// after a select change. addLiveForInput's pass collects with the form's rules (its
|
|
9860
|
+
// own `var rules = $form.rules`).
|
|
9861
|
+
// was: var gValidatorInfos = excludeWithheldAutofill(getFormValidationInfos($gForm, rules)); // #B478
|
|
9862
|
+
var gValidatorInfos = excludeWithheldAutofill(getFormValidationInfos($gForm, instance.$forms[formId].rules)); // #B478
|
|
9679
9863
|
gFields = gValidatorInfos.fields;
|
|
9680
9864
|
$gFields = gValidatorInfos.$fields;
|
|
9681
|
-
var formId = $gForm.getAttribute('id');
|
|
9682
9865
|
gRules = instance.$forms[formId].rules;
|
|
9683
9866
|
// Don't be tempted to revome fields that has already been validated
|
|
9684
9867
|
instance.$forms[formId].isValidating = true;
|
|
@@ -9796,6 +9979,22 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9796
9979
|
}// EO binding select
|
|
9797
9980
|
|
|
9798
9981
|
// group dependencies handling
|
|
9982
|
+
/**
|
|
9983
|
+
* Sets the fields whose `data-gina-form-element-group` holds the checkbox `elId` (as one of its
|
|
9984
|
+
* space-separated ids, #B923; radios and checkboxes among them are skipped) to the checkbox's state:
|
|
9985
|
+
* enabled and included while it is ticked, disabled and excluded otherwise. Called when a
|
|
9986
|
+
* grouped checkbox is clicked (`excluded` decides) and, through updateGroupChildrenState, for
|
|
9987
|
+
* each checkbox grouped under a master (`isCalledHasDependency`: the checkbox's own state
|
|
9988
|
+
* decides, and a disabled checkbox counts as unticked, #B919).
|
|
9989
|
+
*
|
|
9990
|
+
* @inner
|
|
9991
|
+
* @param {string} elId - the checkbox's id; it must be a grouped element of the form
|
|
9992
|
+
* @param {string} group - the checkbox's own group
|
|
9993
|
+
* @param {boolean} excluded - the state applied when `isCalledHasDependency` is false
|
|
9994
|
+
* @param {boolean} [isCalledHasDependency=false] - true when the checkbox's own state decides
|
|
9995
|
+
* @returns {undefined}
|
|
9996
|
+
* @throws {Error} when `elId` is not a grouped element of the form
|
|
9997
|
+
*/
|
|
9799
9998
|
var updateReletadItems = function(elId, group, excluded, isCalledHasDependency) {
|
|
9800
9999
|
|
|
9801
10000
|
if ( typeof(isCalledHasDependency) == 'undefined' ) {
|
|
@@ -9808,11 +10007,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9808
10007
|
|
|
9809
10008
|
var elIdIsChecked = null
|
|
9810
10009
|
, re = null
|
|
9811
|
-
|
|
9812
|
-
, namedId = elId.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&')
|
|
10010
|
+
// #B929 — every regexp character of the id is escaped (`- _ @ # . [ ]` were): `a+b` matched `ab`, `a(b` threw.
|
|
10011
|
+
// was: , namedId = elId.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&')
|
|
10012
|
+
, namedId = elId.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
9813
10013
|
//, name = $el.getAttribute('name').replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&')
|
|
9814
10014
|
;
|
|
9815
|
-
|
|
10015
|
+
// #B919 — a checkbox that is disabled counts as unticked: when its own master is switched
|
|
10016
|
+
// off (handleGroupDependencies disables it), the fields that name it follow it off, though
|
|
10017
|
+
// it may still be ticked. The branch #B919 removed from handleGroupDependencies hid this.
|
|
10018
|
+
// was: elIdIsChecked = allFormGroupedElements[elId].target.checked;
|
|
10019
|
+
elIdIsChecked = allFormGroupedElements[elId].target.checked && !allFormGroupedElements[elId].target.disabled;
|
|
9816
10020
|
//console.debug('current id ', elId, excluded);
|
|
9817
10021
|
for (let id in allFormGroupedElements) {
|
|
9818
10022
|
// ignore triggers
|
|
@@ -9820,14 +10024,15 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9820
10024
|
continue;
|
|
9821
10025
|
|
|
9822
10026
|
let hasBeenUpdated = false;
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9830
|
-
)
|
|
10027
|
+
// #B923 — a group lists whole ids separated by spaces, so `elId` is matched as one of
|
|
10028
|
+
// them, never inside a longer id: the checkbox `doc` drove the fields of `doc-2`.
|
|
10029
|
+
// was: re = new RegExp(namedId);
|
|
10030
|
+
re = new RegExp('(^|\\s)' + namedId + '(\\s|$)');
|
|
10031
|
+
// #B929 — the second test is gone: its result never mattered (`re && re2 || re` is `re`), and
|
|
10032
|
+
// building it from the raw group threw for a master id holding `(`.
|
|
10033
|
+
// was: re2 = new RegExp(group);
|
|
10034
|
+
// was: if ( re.test(allFormGroupedElements[id].group) && re2.test(allFormGroupedElements[id].group) || re.test(allFormGroupedElements[id].group) )
|
|
10035
|
+
if ( re.test(allFormGroupedElements[id].group) ) {
|
|
9831
10036
|
// init default state: disable all;
|
|
9832
10037
|
allFormGroupedElements[id].target.disabled = true;
|
|
9833
10038
|
// adding custom rule for this case
|
|
@@ -9936,7 +10141,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9936
10141
|
var checked = $el.checked;
|
|
9937
10142
|
|
|
9938
10143
|
var checkBoxGroup = $el.getAttribute('data-gina-form-element-group') || null;
|
|
9939
|
-
|
|
10144
|
+
// #B923 — matched as one whole id of a group, never inside a longer one (`cb-1` drove `cb-10`'s fields).
|
|
10145
|
+
// was: var re = new RegExp($el.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&'));
|
|
10146
|
+
// #B929 — every regexp character of the id is escaped.
|
|
10147
|
+
// was: var re = new RegExp('(^|\\s)' + $el.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') + '(\\s|$)');
|
|
10148
|
+
var re = new RegExp('(^|\\s)' + $el.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(\\s|$)');
|
|
9940
10149
|
// set to checked if not checked: false -> true
|
|
9941
10150
|
if ( !checked || checked == 'null' || checked == 'false' || checked == '' ) {
|
|
9942
10151
|
|
|
@@ -9988,7 +10197,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
9988
10197
|
};
|
|
9989
10198
|
|
|
9990
10199
|
var updateGroupChildrenState = function($groupMaster) {
|
|
9991
|
-
|
|
10200
|
+
// #B923 — matched as one whole id of a group, never inside a longer one.
|
|
10201
|
+
// was: var re = new RegExp($groupMaster.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&'));
|
|
10202
|
+
// #B929 — every regexp character of the id is escaped.
|
|
10203
|
+
// was: var re = new RegExp('(^|\\s)' + $groupMaster.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') + '(\\s|$)');
|
|
10204
|
+
var re = new RegExp('(^|\\s)' + $groupMaster.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(\\s|$)');
|
|
9992
10205
|
// Handle extended groups
|
|
9993
10206
|
for (let id in allFormGroupedElements) {
|
|
9994
10207
|
if (
|
|
@@ -10001,29 +10214,54 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10001
10214
|
}
|
|
10002
10215
|
}
|
|
10003
10216
|
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10217
|
+
/**
|
|
10218
|
+
* Applies the radio `$el`'s state to the fields that depend on it: every grouped element
|
|
10219
|
+
* whose `data-gina-form-element-group` holds `$el`'s id (as one of its space-separated ids, #B923) is
|
|
10220
|
+
* enabled and included while `$el` is checked, disabled and excluded otherwise; then each
|
|
10221
|
+
* checkbox among them passes its own state on to the fields that name it
|
|
10222
|
+
* (updateGroupChildrenState). updateRadio runs it for every radio at bind, for the clicked
|
|
10223
|
+
* radio, and for each peer a checked radio unchecks. The fields of other masters, and a
|
|
10224
|
+
* field whose group names no element, are left as they are (#B919).
|
|
10225
|
+
*
|
|
10226
|
+
* A dependent field names the master's id, not its name: the name groups the radios.
|
|
10227
|
+
*
|
|
10228
|
+
* @example
|
|
10229
|
+
* <input type="radio" id="plan-annual" name="plan" value="annual">
|
|
10230
|
+
* <input type="hidden" name="discountCode" value="A10" data-gina-form-element-group="plan-annual">
|
|
10231
|
+
*
|
|
10232
|
+
* @inner
|
|
10233
|
+
* @param {HTMLInputElement} $el - the radio
|
|
10234
|
+
* @param {boolean} [isOnResetMode] - passed for a peer the click unchecked; not otherwise used
|
|
10235
|
+
* @returns {undefined}
|
|
10236
|
+
*/
|
|
10008
10237
|
var handleGroupDependencies = function($el, isOnResetMode) {
|
|
10009
10238
|
isOnResetMode = ( typeof(isOnResetMode) != 'undefined' && isOnResetMode) ? true: false;
|
|
10010
10239
|
|
|
10011
10240
|
//console.debug('reset: '+isOnResetMode, $el.id, $el.checked);
|
|
10012
|
-
|
|
10241
|
+
// #B929 — every regexp character of the id is escaped.
|
|
10242
|
+
// was: var extendedGroupName = $el.id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&')
|
|
10243
|
+
var extendedGroupName = $el.id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
10013
10244
|
, re = null
|
|
10014
10245
|
;
|
|
10015
10246
|
// parse grouped elements: allFormGroupedElements
|
|
10016
10247
|
// init
|
|
10017
|
-
|
|
10248
|
+
// #B923 — matched as one whole id of a group, never inside a longer one (`opt` drove `opt-2`'s fields).
|
|
10249
|
+
// was: re = new RegExp(extendedGroupName);
|
|
10250
|
+
re = new RegExp('(^|\\s)' + extendedGroupName + '(\\s|$)');
|
|
10018
10251
|
for (let id in allFormGroupedElements) {
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10252
|
+
// #B919 — was: the branch below disabled, and excluded, EVERY grouped field that is
|
|
10253
|
+
// not a radio or a checkbox, whichever radio this runs for; only the next branch
|
|
10254
|
+
// re-enabled the fields of $el's own group. So a radio click, or the bind of a later
|
|
10255
|
+
// radio, turned off the fields of every other checked master (a checkbox master's too)
|
|
10256
|
+
// and of a group naming no element. A field now changes only with a master it names.
|
|
10257
|
+
// if (!/checkbox|radio/i.test(allFormGroupedElements[id].target.type)) {
|
|
10258
|
+
// allFormGroupedElements[id].target.disabled = true;
|
|
10259
|
+
// // adding custom rule for this case
|
|
10260
|
+
// if ( typeof($form.rules[ allFormGroupedElements[id].name ]) == 'undefined' ) {
|
|
10261
|
+
// $form.rules[ allFormGroupedElements[id].name ] = {}
|
|
10262
|
+
// }
|
|
10263
|
+
// $form.rules[ allFormGroupedElements[id].name ].exclude = true;
|
|
10264
|
+
// }
|
|
10027
10265
|
|
|
10028
10266
|
if (
|
|
10029
10267
|
re.test(allFormGroupedElements[id].group)
|
|
@@ -10154,7 +10392,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10154
10392
|
&& allFormGroupNames.indexOf($inputs[i].id) > -1
|
|
10155
10393
|
) {
|
|
10156
10394
|
// updateGroupChildrenState($inputs[i]);
|
|
10157
|
-
|
|
10395
|
+
// #B923 — matched as one whole id of a group, never inside a longer one.
|
|
10396
|
+
// was: let re = new RegExp( $inputs[i].id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') );
|
|
10397
|
+
// #B929 — every regexp character of the id is escaped.
|
|
10398
|
+
// was: let re = new RegExp( '(^|\\s)' + $inputs[i].id.replace(/\-|\_|\@|\#|\.|\[|\]/g, '\\$&') + '(\\s|$)' );
|
|
10399
|
+
let re = new RegExp( '(^|\\s)' + $inputs[i].id.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '(\\s|$)' );
|
|
10158
10400
|
for (let childElement in allFormGroupedElements ) {
|
|
10159
10401
|
if ( re.test(allFormGroupedElements[childElement].group) ) {
|
|
10160
10402
|
allFormGroupedElements[childElement].target.disabled = true;
|
|
@@ -10886,10 +11128,19 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
10886
11128
|
} else {
|
|
10887
11129
|
// update rule in case the current event is triggered outside the main sequence
|
|
10888
11130
|
// e.g.: form `id` attribute rewritten on the fly
|
|
11131
|
+
// #B931 — the record's own copy first: that is where this form's checks and
|
|
11132
|
+
// its binding wrote the state they derived from its markup (`exclude` on
|
|
11133
|
+
// grouped fields, `isBoolean` on a boolean checkbox). Resolving by name read
|
|
11134
|
+
// the registry object instead, which every form bound to the rule set used
|
|
11135
|
+
// to share and which the copy no longer feeds. By name only when no record
|
|
11136
|
+
// answers to the current id.
|
|
10889
11137
|
_id = $target.getAttribute('id');
|
|
10890
11138
|
var customRule = $target.getAttribute('data-gina-form-rule');
|
|
10891
11139
|
|
|
10892
|
-
if ( customRule ) {
|
|
11140
|
+
// was: if ( customRule ) { rule = getRuleObjByName(<the attribute, dotted>) } else { rule = getRuleObjByName(<_id, dotted>) }
|
|
11141
|
+
if ( typeof(instance.$forms[_id]) != 'undefined' && typeof(instance.$forms[_id].rules) != 'undefined' ) {
|
|
11142
|
+
rule = instance.$forms[_id].rules;
|
|
11143
|
+
} else if ( customRule ) { // 'data-gina-form-rule'
|
|
10893
11144
|
rule = getRuleObjByName(customRule.replace(/\-|\//g, '.'))
|
|
10894
11145
|
} else {
|
|
10895
11146
|
rule = getRuleObjByName(_id.replace(/\-/g, '.'))
|
|
@@ -11184,7 +11435,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11184
11435
|
// an unchecked non-boolean radio group with a truthy isRequired
|
|
11185
11436
|
// is collected as an empty value so the submit-path validation
|
|
11186
11437
|
// can adjudicate it (see the twin arm there for the rationale).
|
|
11187
|
-
|
|
11438
|
+
// #B926 — and an unticked value-carrying checkbox whose own rule says
|
|
11439
|
+
// isRequired, as there (« must be ticked »).
|
|
11440
|
+
// was: $target[i].type == 'radio'
|
|
11441
|
+
/^(radio|checkbox)$/i.test($target[i].type)
|
|
11188
11442
|
&& rules
|
|
11189
11443
|
&& typeof(rules[name]) != 'undefined'
|
|
11190
11444
|
&& /^true$/i.test(rules[name].isRequired)
|
|
@@ -11231,9 +11485,14 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11231
11485
|
} else {
|
|
11232
11486
|
// update rule in case the current event is triggered outside the main sequence
|
|
11233
11487
|
// e.g.: form `id` attribute rewritten on the fly
|
|
11488
|
+
// #B931 — the record's own copy first, by name only when no record answers to
|
|
11489
|
+
// the current id: see the click proxy above for the reason.
|
|
11234
11490
|
var customRule = $target.getAttribute('data-gina-form-rule');
|
|
11235
11491
|
|
|
11236
|
-
if ( customRule ) {
|
|
11492
|
+
// was: if ( customRule ) { rule = getRuleObjByName(<the attribute, dotted>) } else { rule = getRuleObjByName(<id, dotted>) }
|
|
11493
|
+
if ( $formInstance && typeof($formInstance.rules) != 'undefined' ) {
|
|
11494
|
+
rule = $formInstance.rules;
|
|
11495
|
+
} else if ( customRule ) { // 'data-gina-form-rule'
|
|
11237
11496
|
rule = getRuleObjByName(customRule.replace(/\-|\//g, '.'))
|
|
11238
11497
|
} else {
|
|
11239
11498
|
rule = getRuleObjByName(id.replace(/\-/g, '.'))
|
|
@@ -11875,7 +12134,10 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
11875
12134
|
* unchecked non-boolean group whose rule declares a truthy `isRequired`
|
|
11876
12135
|
* is collected as an empty string (#B221) so the rule engine can
|
|
11877
12136
|
* adjudicate it; any other unchecked group stays absent (native parity;
|
|
11878
|
-
* boolean-declared groups are owned by the force-false arm).
|
|
12137
|
+
* boolean-declared groups are owned by the force-false arm). An unticked
|
|
12138
|
+
* value-carrying checkbox whose own rule declares a truthy `isRequired` is
|
|
12139
|
+
* collected as an empty string the same way (#B926): `isRequired` on it
|
|
12140
|
+
* means « must be ticked ». A boolean checkbox posts its live state instead.
|
|
11879
12141
|
*
|
|
11880
12142
|
* @param {object} $form - form target (DOMObject), not the instance
|
|
11881
12143
|
* @param {object} [rules]
|
|
@@ -12049,7 +12311,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12049
12311
|
// absent-when-unchecked shape (boolean groups are owned by
|
|
12050
12312
|
// the force-false arm above; optional groups bypass on
|
|
12051
12313
|
// empty anyway, so their wire shape stays byte-identical).
|
|
12052
|
-
|
|
12314
|
+
// #B926 — an unticked value-carrying CHECKBOX whose own rule says
|
|
12315
|
+
// isRequired is collected the same way: `isRequired` on it means
|
|
12316
|
+
// « must be ticked » (several boxes under one name: at least one;
|
|
12317
|
+
// distinct names: each), as it does for a radio group. A boolean box
|
|
12318
|
+
// never reaches this arm (the isBooleanCheckbox arm above owns it), and
|
|
12319
|
+
// an unticked box with no rule, `isRequired: false` or an `isBoolean`
|
|
12320
|
+
// rule stays absent, as before. Until now no arm admitted the shape, so
|
|
12321
|
+
// the form posted without the box and no rule judged it, on either side.
|
|
12322
|
+
// was: $form[i].type == 'radio'
|
|
12323
|
+
/^(radio|checkbox)$/i.test($form[i].type)
|
|
12053
12324
|
&& rules
|
|
12054
12325
|
&& typeof(rules[name]) != 'undefined'
|
|
12055
12326
|
&& /^true$/i.test(rules[name].isRequired)
|
|
@@ -12333,7 +12604,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12333
12604
|
* @param {object} $formOrElement - ${form|element}.target (DOMObject)
|
|
12334
12605
|
* @param {object} fields
|
|
12335
12606
|
* @param {object} $fields
|
|
12336
|
-
* @param {object} rules
|
|
12607
|
+
* @param {object} rules - the rule set to apply. The pass works on a copy of it (#B885): a
|
|
12608
|
+
* `_case_` application, an exclusion or a RegExp alias found during the pass never reaches
|
|
12609
|
+
* the object the caller holds
|
|
12337
12610
|
* @param {callback} cb
|
|
12338
12611
|
* @param {string} [culture] // #i18n — server form-body path only; forwarded to FormValidator
|
|
12339
12612
|
*/
|
|
@@ -12356,6 +12629,20 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12356
12629
|
&& /true/i.test($formOrElement.form.dataset.ginaFormLiveCheckEnabled)
|
|
12357
12630
|
) ? true : false;
|
|
12358
12631
|
rules = getDynamisedRules(stringifiedRules, fields, $fields, isLiveCheckingOnASingleElement)
|
|
12632
|
+
} else {
|
|
12633
|
+
// #B885 — a pass works on its own copy of the rules, as the `$` branch above already
|
|
12634
|
+
// does (getDynamisedRules parses one from the string). forEachField writes into the
|
|
12635
|
+
// rule set it is handed: a matching `_case_` condition's rules over the field's own
|
|
12636
|
+
// (`rules[_r] = …`, three sites), `{ exclude: true }` over an unchecked optional
|
|
12637
|
+
// checkbox, a RegExp alias under the field's name — and merge() mutates its first
|
|
12638
|
+
// argument, the condition's own rule object. Written into the caller's object, those
|
|
12639
|
+
// outlived the pass: a case rule stayed applied after its driver changed back and the
|
|
12640
|
+
// form refused a valid submit; a checkbox ticked after a pass stayed excluded from the
|
|
12641
|
+
// data (#B913); and through the registry object the click and submit passes read,
|
|
12642
|
+
// one form's state reached another form bound to the same rule set. JSON.clone
|
|
12643
|
+
// copies plain objects and arrays and keeps anything else (a RegExp condition) by
|
|
12644
|
+
// reference.
|
|
12645
|
+
rules = JSON.clone(rules);
|
|
12359
12646
|
}
|
|
12360
12647
|
var id = null
|
|
12361
12648
|
, evt = null
|
|
@@ -12860,6 +13147,30 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12860
13147
|
}
|
|
12861
13148
|
|
|
12862
13149
|
var allRules = ( typeof(rules) != 'undefined' ) ? JSON.clone(rules) : {};
|
|
13150
|
+
/**
|
|
13151
|
+
* Adjudicate the collected fields of one pass against `rules`, applying the `_case_`
|
|
13152
|
+
* conditions on the way; a driver's matching condition recurses with that condition's
|
|
13153
|
+
* own rules. It writes into `rules` (a matching condition's rules over a field's own,
|
|
13154
|
+
* `{ exclude: true }` over a disabled checkbox or an unticked value-carrying one whose
|
|
13155
|
+
* rule says isRequired: false), which is why validate() hands it a copy (#B885). An
|
|
13156
|
+
* unticked boolean checkbox keeps its own rule and posts `false` (#B916). A radio or
|
|
13157
|
+
* checkbox group that a matching condition requires and the pass never collected is
|
|
13158
|
+
* entered as '' and adjudicated once (#B914). Every condition of a block is matched
|
|
13159
|
+
* against its driver's value (#B920); a `case` written `/pattern/flags` is a regular
|
|
13160
|
+
* expression tested against that value (#B918).
|
|
13161
|
+
*
|
|
13162
|
+
* @inner
|
|
13163
|
+
* @param {object} $formOrElement - the form, or the element of a single-element pass
|
|
13164
|
+
* @param {object} allFields - every collected value of the form; the drivers' values are read here
|
|
13165
|
+
* @param {object} allRules - the pass-entry copy of the rules, unchanged by a recursion
|
|
13166
|
+
* @param {object} fields - the collected values this level walks
|
|
13167
|
+
* @param {object} $fields - the controls by name (a group's first member); null on the server path
|
|
13168
|
+
* @param {object} rules - the rules this level applies (a condition's own rules inside a recursion)
|
|
13169
|
+
* @param {function} [cb] - the pass callback, dispatched with `validated.<id>`
|
|
13170
|
+
* @param {number} i - recursion depth, 0 at the top level
|
|
13171
|
+
* @returns {{isValid: function, error: object, data: object}|undefined} the result, when the
|
|
13172
|
+
* last level runs with no callback
|
|
13173
|
+
*/
|
|
12863
13174
|
var forEachField = function($formOrElement, allFields, allRules, fields, $fields, rules, cb, i) {
|
|
12864
13175
|
|
|
12865
13176
|
|
|
@@ -12870,10 +13181,137 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12870
13181
|
var localFieldType = null;
|
|
12871
13182
|
var caseValueBackup = null; // #B229 — see the `caseName == field` arm below
|
|
12872
13183
|
var baseValueBackup = null; // #B230 — see the base-rule restore below
|
|
13184
|
+
var caseRegExp = null; // #B918 — see getCaseRegExp and the condition filter below
|
|
13185
|
+
var caseRegExpKeyNames = null; // #B921 — see expandCaseRegExpKeys and the direct-case loop below
|
|
13186
|
+
|
|
13187
|
+
/**
|
|
13188
|
+
* expandCaseRegExpKeys
|
|
13189
|
+
* #B921 — gives each control a RegExp KEY of a `_case_` condition's `rules` matches
|
|
13190
|
+
* (`"/^item[/": { isRequired: true }`) a literal key of its own in that condition, holding a
|
|
13191
|
+
* copy of the key's rules, so the condition applies to it as it does to a field it names, in
|
|
13192
|
+
* every block position and for every case shape. The condition scan below skips a key that
|
|
13193
|
+
* names no control (`!$fields[_r]`), so a RegExp key was skipped there, and only the
|
|
13194
|
+
* direct-case recursion of a driver that is not the last `_case_` key expanded it: a RegExp
|
|
13195
|
+
* key applied only when its block was not the last. The key is read as a top-level RegExp
|
|
13196
|
+
* key is (`checkForRuleAlias`): `[` and `]` literal, the flags kept. A literal key of the
|
|
13197
|
+
* condition wins, then the first RegExp key that matches; the block's driver is left out;
|
|
13198
|
+
* a pattern the engine rejects warns and is skipped. It writes into `levelRules`, which is
|
|
13199
|
+
* the pass's own copy (#B885), once per level, and returns the names it added, which the
|
|
13200
|
+
* direct-case loop below skips because its own RegExp branch covers them, as before.
|
|
13201
|
+
* Without controls (the server path) nothing is added. Declared here, inside forEachField,
|
|
13202
|
+
* so the function stays self-contained.
|
|
13203
|
+
*
|
|
13204
|
+
* @inner
|
|
13205
|
+
* @param {object} levelRules - the rules this level applies (written in place)
|
|
13206
|
+
* @param {object} $levelFields - the controls by name; null on the server path
|
|
13207
|
+
* @returns {object} the names added, keyed `<_case_ key>|<condition index>`, then by name
|
|
13208
|
+
*
|
|
13209
|
+
* @example
|
|
13210
|
+
* // levelRules: { _case_kind: { conditions: [{ case: 'pro', rules: { '/^item[/': { isRequired: true } } }] } }
|
|
13211
|
+
* // controls: item[0][amount], item[1][amount], kind
|
|
13212
|
+
* expandCaseRegExpKeys(levelRules, $fields);
|
|
13213
|
+
* // -> { '_case_kind|0': { 'item[0][amount]': true, 'item[1][amount]': true } }, and the condition's
|
|
13214
|
+
* // rules now also hold 'item[0][amount]' and 'item[1][amount]', each { isRequired: true }
|
|
13215
|
+
*/
|
|
13216
|
+
var expandCaseRegExpKeys = function(levelRules, $levelFields) {
|
|
13217
|
+
var added = {};
|
|
13218
|
+
// a copy of plain rule data (objects and arrays); anything else is kept as it is
|
|
13219
|
+
var copyRuleValue = function(value) {
|
|
13220
|
+
var copy = null, k = null;
|
|
13221
|
+
if ( Array.isArray(value) ) {
|
|
13222
|
+
copy = [];
|
|
13223
|
+
for (k = 0; k < value.length; ++k) {
|
|
13224
|
+
copy[k] = copyRuleValue(value[k]);
|
|
13225
|
+
}
|
|
13226
|
+
return copy;
|
|
13227
|
+
}
|
|
13228
|
+
if ( value && typeof(value) == 'object' && Object.prototype.toString.call(value) == '[object Object]' ) {
|
|
13229
|
+
copy = {};
|
|
13230
|
+
for (k in value) {
|
|
13231
|
+
if ( Object.prototype.hasOwnProperty.call(value, k) ) {
|
|
13232
|
+
copy[k] = copyRuleValue(value[k]);
|
|
13233
|
+
}
|
|
13234
|
+
}
|
|
13235
|
+
return copy;
|
|
13236
|
+
}
|
|
13237
|
+
return value;
|
|
13238
|
+
};
|
|
13239
|
+
if ( !levelRules || typeof(levelRules) != 'object' || !$levelFields ) {
|
|
13240
|
+
return added;
|
|
13241
|
+
}
|
|
13242
|
+
for (var ck in levelRules) {
|
|
13243
|
+
if ( !/^\_case\_/.test(ck) || !levelRules[ck] || !Array.isArray(levelRules[ck].conditions) ) continue;
|
|
13244
|
+
var driver = ck.replace(/^\_case\_/, '');
|
|
13245
|
+
for (var ci = 0, ciLen = levelRules[ck].conditions.length; ci < ciLen; ++ci) {
|
|
13246
|
+
var condRules = ( levelRules[ck].conditions[ci] ) ? levelRules[ck].conditions[ci].rules : null;
|
|
13247
|
+
if ( !condRules || typeof(condRules) != 'object' ) continue;
|
|
13248
|
+
var keys = Object.keys(condRules);
|
|
13249
|
+
for (var ki = 0, kiLen = keys.length; ki < kiLen; ++ki) {
|
|
13250
|
+
if ( !/^\//.test(keys[ki]) ) continue;
|
|
13251
|
+
var keyRe = null;
|
|
13252
|
+
try {
|
|
13253
|
+
var keyPattern = keys[ki].match(/\/(.*)\//).pop();
|
|
13254
|
+
keyRe = new RegExp(keyPattern.replace(/\[/g, '\\[').replace(/\]/g, '\\]'), keys[ki].replace('/'+ keyPattern +'/', ''));
|
|
13255
|
+
} catch (err) {
|
|
13256
|
+
console.warn('[ ginaFormValidator ] the rule key `'+ keys[ki] +'` of `'+ ck +'` cannot be read as a regular expression ('+ err.message +'): it is skipped');
|
|
13257
|
+
continue;
|
|
13258
|
+
}
|
|
13259
|
+
for (var name in $levelFields) {
|
|
13260
|
+
keyRe.lastIndex = 0;
|
|
13261
|
+
if ( name == driver || typeof(condRules[name]) != 'undefined' || !keyRe.test(name) ) continue;
|
|
13262
|
+
condRules[name] = copyRuleValue(condRules[keys[ki]]);
|
|
13263
|
+
if ( !added[ck +'|'+ ci] ) {
|
|
13264
|
+
added[ck +'|'+ ci] = {};
|
|
13265
|
+
}
|
|
13266
|
+
added[ck +'|'+ ci][name] = true;
|
|
13267
|
+
}
|
|
13268
|
+
}
|
|
13269
|
+
}
|
|
13270
|
+
}
|
|
13271
|
+
return added;
|
|
13272
|
+
};
|
|
13273
|
+
|
|
13274
|
+
/**
|
|
13275
|
+
* getCaseRegExp
|
|
13276
|
+
* #B918 — reads a condition's `case` written `/pattern/flags` (e.g. `"/^individual$/"`)
|
|
13277
|
+
* and returns the regular expression it describes; any other `case` (a value, an Array of
|
|
13278
|
+
* values, a string without a closing slash) returns null and is compared as a value. The
|
|
13279
|
+
* pattern is taken as written: unlike a RegExp rule KEY, whose square brackets are escaped
|
|
13280
|
+
* because it matches field names such as `items[0]`, a case pattern matches the driver's
|
|
13281
|
+
* value, so `[ab]` stays a character class. A pattern the browser rejects warns and
|
|
13282
|
+
* returns null, so it is compared as a value, as every slash-delimited case was before.
|
|
13283
|
+
* Declared here, inside forEachField, so the function stays self-contained.
|
|
13284
|
+
*
|
|
13285
|
+
* @inner
|
|
13286
|
+
* @param {*} caseDef - a condition's `case`
|
|
13287
|
+
* @returns {RegExp|null} the regular expression, or null when `caseDef` is not one
|
|
13288
|
+
*
|
|
13289
|
+
* @example
|
|
13290
|
+
* getCaseRegExp('/^(a|b)$/i').test('A'); // true
|
|
13291
|
+
* getCaseRegExp('a'); // null: compared as a value
|
|
13292
|
+
*/
|
|
13293
|
+
var getCaseRegExp = function(caseDef) {
|
|
13294
|
+
if ( typeof(caseDef) != 'string' ) {
|
|
13295
|
+
return null;
|
|
13296
|
+
}
|
|
13297
|
+
var m = caseDef.match(/^\/(.*)\/([a-z]*)$/);
|
|
13298
|
+
if ( !m ) {
|
|
13299
|
+
return null;
|
|
13300
|
+
}
|
|
13301
|
+
try {
|
|
13302
|
+
return new RegExp(m[1], m[2]);
|
|
13303
|
+
} catch (err) {
|
|
13304
|
+
console.warn('[ ginaFormValidator ] the `_case_` condition `'+ caseDef +'` is not a valid regular expression ('+ err.message +'): it is compared as a value');
|
|
13305
|
+
return null;
|
|
13306
|
+
}
|
|
13307
|
+
};
|
|
12873
13308
|
|
|
12874
13309
|
//console.debug('parsing ', fields, $fields, rules);
|
|
12875
13310
|
if ( typeof(rules) != 'undefined' ) {
|
|
12876
13311
|
|
|
13312
|
+
// #B921 — see expandCaseRegExpKeys
|
|
13313
|
+
caseRegExpKeyNames = expandCaseRegExpKeys(rules, $fields);
|
|
13314
|
+
|
|
12877
13315
|
for (var field in fields) {
|
|
12878
13316
|
|
|
12879
13317
|
// `$fields` is null on the server auto path (backendInit), and a rule
|
|
@@ -12908,11 +13346,15 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
12908
13346
|
&& $fields[field].tagName.toLowerCase() == 'input'
|
|
12909
13347
|
&& /^(checkbox)$/i.test(localFieldType)
|
|
12910
13348
|
) {
|
|
13349
|
+
// #B916: an unticked boolean checkbox keeps its own rule, so it posts its
|
|
13350
|
+
// live state, `false` (#49). Only a disabled box, or an unticked value-carrying
|
|
13351
|
+
// one whose rule says isRequired: false, is left out of the data.
|
|
12911
13352
|
if (
|
|
12912
13353
|
!$fields[field].checked
|
|
12913
13354
|
&& typeof(rules[field]) != 'undefined'
|
|
12914
13355
|
&& typeof(rules[field].isRequired) != 'undefined'
|
|
12915
13356
|
&& /^(false)$/i.test(rules[field].isRequired)
|
|
13357
|
+
&& !isBooleanCheckbox($fields[field], rules[field])
|
|
12916
13358
|
||
|
|
12917
13359
|
$fields[field].disabled
|
|
12918
13360
|
) {
|
|
@@ -13135,13 +13577,29 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13135
13577
|
// filtering conditions
|
|
13136
13578
|
for (var _c = 0, _cLen = rules[c].conditions.length; _c < _cLen; ++_c) {
|
|
13137
13579
|
|
|
13580
|
+
// #B918 — a `case` written `/pattern/flags` is tested against the
|
|
13581
|
+
// driver's value. It was compared as a string, so it never matched
|
|
13582
|
+
// and neither its requirements nor its excludes applied. A value or
|
|
13583
|
+
// an Array of values is compared as before.
|
|
13584
|
+
// was:
|
|
13585
|
+
// if (
|
|
13586
|
+
// Array.isArray(rules[c].conditions[_c].case)
|
|
13587
|
+
// && rules[c].conditions[_c].case.indexOf(caseValue) == -1
|
|
13588
|
+
// ||
|
|
13589
|
+
// !Array.isArray(rules[c].conditions[_c].case)
|
|
13590
|
+
// && rules[c].conditions[_c].case != caseValue
|
|
13591
|
+
// ) {
|
|
13592
|
+
caseRegExp = getCaseRegExp(rules[c].conditions[_c].case);
|
|
13138
13593
|
if (
|
|
13139
13594
|
Array.isArray(rules[c].conditions[_c].case)
|
|
13140
13595
|
&& rules[c].conditions[_c].case.indexOf(caseValue) == -1
|
|
13141
13596
|
||
|
|
13597
|
+
caseRegExp
|
|
13598
|
+
&& !caseRegExp.test(caseValue)
|
|
13599
|
+
||
|
|
13142
13600
|
!Array.isArray(rules[c].conditions[_c].case)
|
|
13601
|
+
&& !caseRegExp
|
|
13143
13602
|
&& rules[c].conditions[_c].case != caseValue
|
|
13144
|
-
|
|
13145
13603
|
) {
|
|
13146
13604
|
continue;
|
|
13147
13605
|
}
|
|
@@ -13150,6 +13608,9 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13150
13608
|
for (var _r in rules[c].conditions[_c].rules) {
|
|
13151
13609
|
if (/^_comment$/i.test(_r)) continue;
|
|
13152
13610
|
// ignore if we are testing on caseField or if $field does not exist
|
|
13611
|
+
// (#B921: a RegExp key never passes this guard, no control bears its name; each
|
|
13612
|
+
// control it matches has its own literal key since expandCaseRegExpKeys, so the
|
|
13613
|
+
// RegExp branch below is not reached)
|
|
13153
13614
|
if (_r == caseName || !$fields[_r]) continue;
|
|
13154
13615
|
//if (_r == caseName || !$fields[caseName]) continue;
|
|
13155
13616
|
// ok, not the current case but still,
|
|
@@ -13207,7 +13668,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13207
13668
|
// depending on the case value, replace/merge original rule with condition rule
|
|
13208
13669
|
//caseField = c.replace(/^\_case\_/, '');
|
|
13209
13670
|
caseField = _r;
|
|
13210
|
-
caseValue
|
|
13671
|
+
// #B920 — this branch no longer writes `caseValue`. It stored
|
|
13672
|
+
// the named field's value there (a boolean when that field's
|
|
13673
|
+
// rule says isBoolean) and nothing here read it: the next reader
|
|
13674
|
+
// was the filter of the block's NEXT condition, which then
|
|
13675
|
+
// compared its `case` with this field's value instead of the
|
|
13676
|
+
// driver's, so a later condition whose case equalled it
|
|
13677
|
+
// applied. `caseValue` keeps the driver's value for every
|
|
13678
|
+
// condition of the block.
|
|
13679
|
+
// was:
|
|
13680
|
+
// caseValue = fields[caseField];
|
|
13211
13681
|
|
|
13212
13682
|
if ( typeof($fields[caseField]) == 'undefined' ) {
|
|
13213
13683
|
console.warn('ignoring case `'+ caseField +'`: field `'+ +'` not found in your DOM');
|
|
@@ -13219,15 +13689,16 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13219
13689
|
// }
|
|
13220
13690
|
// caseValue = allFields[caseField];
|
|
13221
13691
|
// boolean caseValue
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
)
|
|
13229
|
-
|
|
13230
|
-
|
|
13692
|
+
// #B920 — was (the coercion of the value written above):
|
|
13693
|
+
// if (
|
|
13694
|
+
// isGFFCtx
|
|
13695
|
+
// && /^(true|false)$/i.test(caseValue)
|
|
13696
|
+
// && typeof(rules[caseField]) != 'undefined'
|
|
13697
|
+
// && typeof(rules[caseField].isBoolean) != 'undefined'
|
|
13698
|
+
// && /^(true)$/i.test(rules[caseField].isBoolean)
|
|
13699
|
+
// ) {
|
|
13700
|
+
// caseValue = ( /^(true)$/i.test(caseValue) ) ? true : false;
|
|
13701
|
+
// }
|
|
13231
13702
|
|
|
13232
13703
|
if (
|
|
13233
13704
|
//rules[c].conditions[_c].case == caseValue
|
|
@@ -13242,6 +13713,34 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13242
13713
|
rules[_r] = localRuleObj;
|
|
13243
13714
|
}
|
|
13244
13715
|
|
|
13716
|
+
// #B914 — a radio or checkbox group this matching condition
|
|
13717
|
+
// requires, which the pass never collected: the collector leaves
|
|
13718
|
+
// an unchecked group out unless the field's OWN rule says
|
|
13719
|
+
// isRequired (#B221), so a group required only through the case
|
|
13720
|
+
// reached the check below with no value and was never refused on
|
|
13721
|
+
// the pass. It was refused from the second pass on, once the case
|
|
13722
|
+
// rule had been written into the stored rules (the #B885
|
|
13723
|
+
// persistence) and the collector read it there; a `$`-bearing
|
|
13724
|
+
// rule set, which always worked on a copy, never refused it. Enter
|
|
13725
|
+
// it as '', the value #B221 collects, so isRequired adjudicates it
|
|
13726
|
+
// here, once per pass: a group the engine already holds (`d[_r]`:
|
|
13727
|
+
// collected, or entered by an earlier field's scan) is left alone.
|
|
13728
|
+
// A staged file input is also uncollected and is left out: its
|
|
13729
|
+
// data travels in its hidden fields. A condition that does not
|
|
13730
|
+
// match, or does not require the group, enters nothing, so the
|
|
13731
|
+
// posted data is unchanged. The guard above already skips the
|
|
13732
|
+
// driver and a name with no control in `$fields`.
|
|
13733
|
+
if (
|
|
13734
|
+
typeof(fields[_r]) == 'undefined'
|
|
13735
|
+
&& typeof(d[_r]) == 'undefined'
|
|
13736
|
+
&& /^(radio|checkbox)$/i.test($fields[_r].type)
|
|
13737
|
+
&& localRuleObj
|
|
13738
|
+
&& /^true$/i.test(localRuleObj.isRequired)
|
|
13739
|
+
) {
|
|
13740
|
+
fields[_r] = '';
|
|
13741
|
+
d.addField(_r, fields[_r]);
|
|
13742
|
+
}
|
|
13743
|
+
|
|
13245
13744
|
// check each field against rule only if rule exists 2/3
|
|
13246
13745
|
//if ( caseName != _r && typeof(rules[_r]) != 'undefined' ) {
|
|
13247
13746
|
if ( caseName != _r && typeof(rules[_r]) != 'undefined' && typeof(fields[_r]) != 'undefined' ) {
|
|
@@ -13373,6 +13872,13 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13373
13872
|
}
|
|
13374
13873
|
for (var f in conditions[c]['rules']) {
|
|
13375
13874
|
if (/^_comment$/i.test(f)) continue;
|
|
13875
|
+
// #B921 — a name expandCaseRegExpKeys added for a RegExp key of this
|
|
13876
|
+
// condition: the RegExp branch below covers it, as it did before
|
|
13877
|
+
if (
|
|
13878
|
+
caseRegExpKeyNames
|
|
13879
|
+
&& caseRegExpKeyNames['_case_' + field + '|' + c]
|
|
13880
|
+
&& caseRegExpKeyNames['_case_' + field + '|' + c][f]
|
|
13881
|
+
) continue;
|
|
13376
13882
|
//console.debug('F: ', f, '\nrule: '+ JSON.stringify(conditions[c]['rules'][f], null, 2));
|
|
13377
13883
|
if ( /^\//.test(f) ) { // RegExp found
|
|
13378
13884
|
|
|
@@ -13482,7 +13988,11 @@ function ValidatorPlugin(rules, data, formId, culture) {
|
|
|
13482
13988
|
var errors = d['getErrors']();
|
|
13483
13989
|
// adding data attribute to handle display refresh
|
|
13484
13990
|
for (var field in errors) {
|
|
13485
|
-
|
|
13991
|
+
// #B880 — declared: the undeclared loop variable wrote a GLOBAL `rule` (sloppy
|
|
13992
|
+
// mode) on the first validation that found an error, which reBindForm then read
|
|
13993
|
+
// (#B802). Block-scoped, it shadows nothing else in forEachField.
|
|
13994
|
+
// was: for (rule in errors[field])
|
|
13995
|
+
for (let rule in errors[field]) {
|
|
13486
13996
|
if (!fieldErrorsAttributes[field]) {
|
|
13487
13997
|
fieldErrorsAttributes[field] = ''
|
|
13488
13998
|
}
|