jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-RC.1
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/.mocharc.json +2 -1
- package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.nycrc +2 -1
- package/README.md +78 -24
- package/dist/docs/assets/highlight.css +21 -0
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/assets/style.css +34 -2
- package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +15 -13
- package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +15 -13
- package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +15 -13
- package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +15 -13
- package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +17 -14
- package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +18 -15
- package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +18 -15
- package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +15 -13
- package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +29 -19
- package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +15 -13
- package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +12 -10
- package/dist/docs/functions/myfaces.ab.html +10 -8
- package/dist/docs/index.html +71 -29
- package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +18 -16
- package/dist/docs/modules/faces.html +75 -0
- package/dist/docs/modules/{jsf.push.html → faces.push.html} +16 -14
- package/dist/docs/modules/{jsf.util.html → faces.util.html} +12 -10
- package/dist/docs/modules/myfaces.html +8 -6
- package/dist/docs/modules.html +9 -7
- package/dist/docs/variables/faces.contextpath.html +57 -0
- package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +17 -14
- package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +18 -15
- package/dist/docs/variables/faces.specversion.html +64 -0
- package/dist/docs/variables/myfaces.oam.html +8 -6
- package/dist/window/faces-development.js +7688 -0
- package/dist/window/faces-development.js.br +0 -0
- package/dist/window/faces-development.js.gz +0 -0
- package/dist/window/faces-development.js.map +1 -0
- package/dist/window/faces.js +3 -0
- package/dist/window/faces.js.LICENSE.txt +87 -0
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -0
- package/dist/window/jsf-development.js +3011 -2963
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +2 -1
- package/dist/window/jsf.js.LICENSE.txt +87 -0
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/dist/window/jsf.js.map +1 -1
- package/package.json +12 -12
- package/pom.xml +14 -0
- package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +94 -0
- package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
- package/src/main/java/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.java +57 -0
- package/src/main/java/com/example/jsfs_js_ts/FacesJSMappingDecorator.java +138 -0
- package/src/main/typescript/@types/definitions/index.d.ts +147 -0
- package/src/main/typescript/api/{Jsf.ts → _api.ts} +61 -49
- package/src/main/typescript/api/faces.ts +44 -0
- package/src/main/typescript/api/jsf.ts +43 -0
- package/src/main/typescript/impl/AjaxImpl.ts +39 -42
- package/src/main/typescript/impl/PushImpl.ts +27 -30
- package/src/main/typescript/impl/core/Const.ts +38 -16
- package/src/main/typescript/impl/core/ImplTypes.ts +1 -1
- package/src/main/typescript/impl/i18n/Messages.ts +2 -2
- package/src/main/typescript/impl/util/Assertions.ts +3 -3
- package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
- package/src/main/typescript/impl/util/AsyncRunnable.ts +5 -5
- package/src/main/typescript/impl/util/ExtDomQuery.ts +200 -48
- package/src/main/typescript/impl/util/IListener.ts +1 -1
- package/src/main/typescript/impl/util/Lang.ts +25 -25
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +2 -3
- package/src/main/typescript/impl/xhrCore/EventData.ts +4 -3
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +19 -11
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +15 -14
- package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +15 -11
- package/src/main/typescript/impl/xhrCore/Response.ts +30 -24
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +69 -49
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +9 -7
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +76 -60
- package/src/main/typescript/myfaces/OamSubmit.ts +12 -15
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +277 -65
- package/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/StreamTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test.js +1 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/test2.js +1 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +75 -30
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +44 -4
- package/src/main/typescript/test/impl/ImplTest.spec.ts +18 -22
- package/src/main/typescript/test/impl/ImplTest_23.spec.ts +129 -0
- package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +7 -6
- package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +15 -24
- package/src/main/typescript/test/queue/AsynchronousProbe.ts +1 -1
- package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +4 -4
- package/src/main/typescript/test/xhrCore/EventTests.spec.ts +15 -23
- package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +3 -3
- package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +7 -32
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +16 -37
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +17 -16
- package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +364 -0
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +102 -47
- package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +362 -0
- package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +6 -9
- package/src/main/typescript/test/xhrCore/WebsocketTest.ts +15 -15
- package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +3 -3
- package/{target/main/typescript/impl/util/AsyncRunnable.js → src/main/typescript/test/xhrCore/fixtures/addedViewHead1.js} +4 -6
- package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.css +18 -0
- package/src/main/typescript/test/xhrCore/fixtures/addedViewHead2.js +16 -0
- package/src/main/typescript/test/xhrCore/fixtures/addedViewHead3.js +16 -0
- package/src/main/typescript/test/xhrCore/fixtures/nonce_script.js +16 -0
- package/src/main/typescript/tsconfig-typedoc.json +17 -1
- package/src/main/typescript/tsconfig.json +23 -5
- package/src/test/resources/jsf-development.js +1 -1
- package/src/test.html +75 -0
- package/src/tmp/test.html +92 -0
- package/target/api/{Jsf.js → _api.js} +68 -70
- package/target/api/_api.js.map +1 -0
- package/target/api/faces.js +45 -0
- package/target/api/faces.js.map +1 -0
- package/target/api/jsf.js +45 -0
- package/target/api/jsf.js.map +1 -0
- package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
- package/target/impl/AjaxImpl.js +85 -93
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/PushImpl.js +63 -64
- package/target/impl/PushImpl.js.map +1 -1
- package/target/impl/core/Const.js +38 -19
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/core/ImplTypes.js +10 -15
- package/target/impl/core/ImplTypes.js.map +1 -1
- package/target/impl/i18n/Messages.js +5 -6
- package/target/impl/i18n/Messages.js.map +1 -1
- package/target/impl/util/Assertions.js +12 -21
- package/target/impl/util/Assertions.js.map +1 -1
- package/target/impl/util/AsyncQueue.js +28 -36
- package/target/impl/util/AsyncQueue.js.map +1 -1
- package/target/impl/util/AsyncRunnable.js +1 -1
- package/target/impl/util/ExtDomQuery.js +235 -138
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/util/Lang.js +43 -50
- package/target/impl/util/Lang.js.map +1 -1
- package/target/impl/xhrCore/ErrorData.js +37 -62
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/impl/xhrCore/EventData.js +12 -14
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/impl/xhrCore/RequestDataResolver.js +27 -29
- package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
- package/target/impl/xhrCore/ResonseDataResolver.js +25 -23
- package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
- package/target/impl/xhrCore/Response.js +40 -36
- package/target/impl/xhrCore/Response.js.map +1 -1
- package/target/impl/xhrCore/ResponseProcessor.js +165 -167
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
- package/target/impl/xhrCore/XhrFormData.js +75 -103
- package/target/impl/xhrCore/XhrFormData.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +160 -145
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +4 -0
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +4 -0
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +1 -0
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +1 -0
- package/target/myfaces/OamSubmit.js +32 -20
- package/target/myfaces/OamSubmit.js.map +1 -1
- package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +78 -0
- package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +7 -0
- package/target/test/frameworkBase/LangTest.spec.js +46 -32
- package/target/test/frameworkBase/LangTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +372 -134
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +46 -32
- package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +25 -34
- package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +9 -9
- package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +32 -32
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +51 -49
- package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +277 -124
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +199 -18
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +45 -33
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/impl/ImplTest_23.spec.js +133 -0
- package/target/test/impl/ImplTest_23.spec.js.map +1 -0
- package/target/test/impl/SeparatorCharsTest.spec.js +22 -20
- package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
- package/target/test/myfaces/OamSubmit.spec.js +35 -42
- package/target/test/myfaces/OamSubmit.spec.js.map +1 -1
- package/target/test/queue/AsynchronousProbe.js +24 -30
- package/target/test/queue/AsynchronousProbe.js.map +1 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js +40 -71
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
- package/target/test/xhrCore/EventTests.spec.js +47 -83
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/FakeWebsocket.js +15 -17
- package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +50 -91
- package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +49 -98
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +84 -120
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/{typescript/xhrCore/RequestTest.js → xhrCore/RequestTest_23.spec.js} +142 -127
- package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -0
- package/target/test/xhrCore/ResponseTest.spec.js +183 -105
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +312 -0
- package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -0
- package/target/test/xhrCore/ShadowDomTest.spec.js +33 -66
- package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
- package/target/test/xhrCore/WebsocketTest.js +64 -97
- package/target/test/xhrCore/WebsocketTest.js.map +1 -1
- package/target/test/xhrCore/XhrFormDataTest.spec.js +42 -16
- package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
- package/target/test-classes/jsf-development.js +452 -3674
- package/target/test-classes/jsf.js +1 -1
- package/target/test-classes/jsf.js.br +0 -0
- package/target/test-classes/jsf.js.gz +0 -0
- package/webpack.config.js +7 -4
- package/webpack.config.js.map +1 -1
- package/webpack.config.ts +23 -4
- package/dist/docs/modules/jsf.html +0 -71
- package/dist/docs/variables/jsf.specversion.html +0 -52
- package/integrationdeploy.cmd +0 -4
- package/integrationsdeploy.sh +0 -5
- package/remap.js +0 -44
- package/remap.js.map +0 -1
- package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
- package/src/main/types/typedefs.d.ts +0 -66
- package/target/api/Jsf.js.map +0 -1
- package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
- package/target/impl/util/ListenerQueue.js +0 -3
- package/target/impl/util/ListenerQueue.js.map +0 -1
- package/target/main/typescript/api/Jsf.js +0 -258
- package/target/main/typescript/api/Jsf.js.map +0 -1
- package/target/main/typescript/impl/AjaxImpl.js +0 -569
- package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
- package/target/main/typescript/impl/PushImpl.js +0 -215
- package/target/main/typescript/impl/PushImpl.js.map +0 -1
- package/target/main/typescript/impl/core/Const.js +0 -135
- package/target/main/typescript/impl/core/Const.js.map +0 -1
- package/target/main/typescript/impl/core/ImplTypes.js +0 -43
- package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
- package/target/main/typescript/impl/i18n/Messages.js +0 -114
- package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
- package/target/main/typescript/impl/util/Assertions.js +0 -90
- package/target/main/typescript/impl/util/Assertions.js.map +0 -1
- package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
- package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
- package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
- package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
- package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
- package/target/main/typescript/impl/util/Lang.js +0 -215
- package/target/main/typescript/impl/util/Lang.js.map +0 -1
- package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
- package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
- package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
- package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/Response.js +0 -167
- package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
- package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
- package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
- package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
- package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
- package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
- package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/LangTest.js +0 -112
- package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
- package/target/test/typescript/impl/ImplTest.js +0 -98
- package/target/test/typescript/impl/ImplTest.js.map +0 -1
- package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
- package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
- package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
- package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
- package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
- package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
- package/target/test/typescript/xhrCore/EventTests.js +0 -155
- package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
- package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
- package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
- package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
- package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
- package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
- package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
- package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
- package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
- package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
- package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
- package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
- package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
- package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
- package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
- package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
|
@@ -12,20 +12,16 @@ exports.AsynchronousQueue = void 0;
|
|
|
12
12
|
* This interface can be used as wrapper contract
|
|
13
13
|
* for normal promises if needed.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
class AsynchronousQueue {
|
|
16
|
+
constructor() {
|
|
17
17
|
this.runnableQueue = [];
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
enumerable: false,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
19
|
+
/**
|
|
20
|
+
* simple is empty accessor, returns true if queue is empty atm
|
|
21
|
+
*/
|
|
22
|
+
get isEmpty() {
|
|
23
|
+
return !this.runnableQueue.length;
|
|
24
|
+
}
|
|
29
25
|
/**
|
|
30
26
|
* enqueues an element and starts the
|
|
31
27
|
* asynchronous work loop if not already running
|
|
@@ -33,40 +29,38 @@ var AsynchronousQueue = /** @class */ (function () {
|
|
|
33
29
|
* @param element the element to be queued and processed
|
|
34
30
|
* @param delay possible delay after our usual process or drop if something newer is incoming algorithm
|
|
35
31
|
*/
|
|
36
|
-
|
|
37
|
-
var _this = this;
|
|
38
|
-
if (delay === void 0) { delay = 0; }
|
|
32
|
+
enqueue(element, delay = 0) {
|
|
39
33
|
if (this.delayTimeout) {
|
|
40
34
|
clearTimeout(this.delayTimeout);
|
|
41
35
|
this.delayTimeout = null;
|
|
42
36
|
}
|
|
43
37
|
if (delay) {
|
|
44
|
-
this.delayTimeout = setTimeout(
|
|
45
|
-
|
|
38
|
+
this.delayTimeout = setTimeout(() => {
|
|
39
|
+
this.appendElement(element);
|
|
46
40
|
});
|
|
47
41
|
}
|
|
48
42
|
else {
|
|
49
43
|
this.appendElement(element);
|
|
50
44
|
}
|
|
51
|
-
}
|
|
45
|
+
}
|
|
52
46
|
/**
|
|
53
47
|
* fetches the next element from the queue (first in first out order)
|
|
54
48
|
*/
|
|
55
|
-
|
|
49
|
+
dequeue() {
|
|
56
50
|
return this.runnableQueue.shift();
|
|
57
|
-
}
|
|
51
|
+
}
|
|
58
52
|
/**
|
|
59
53
|
* clears up all elements from the queue
|
|
60
54
|
*/
|
|
61
|
-
|
|
55
|
+
cleanup() {
|
|
62
56
|
this.currentlyRunning = null;
|
|
63
57
|
this.runnableQueue.length = 0;
|
|
64
|
-
}
|
|
58
|
+
}
|
|
65
59
|
/**
|
|
66
60
|
* cancels the currently running element and then cleans up the queue
|
|
67
61
|
* aka cancel the queue entirely
|
|
68
62
|
*/
|
|
69
|
-
|
|
63
|
+
cancel() {
|
|
70
64
|
try {
|
|
71
65
|
if (this.currentlyRunning) {
|
|
72
66
|
this.currentlyRunning.cancel();
|
|
@@ -75,11 +69,11 @@ var AsynchronousQueue = /** @class */ (function () {
|
|
|
75
69
|
finally {
|
|
76
70
|
this.cleanup();
|
|
77
71
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
72
|
+
}
|
|
73
|
+
callForNextElementToProcess() {
|
|
80
74
|
this.runEntry();
|
|
81
|
-
}
|
|
82
|
-
|
|
75
|
+
}
|
|
76
|
+
appendElement(element) {
|
|
83
77
|
//only if the first element is added we start with a trigger
|
|
84
78
|
//otherwise a process already is running and not finished yet at that
|
|
85
79
|
//time
|
|
@@ -87,19 +81,18 @@ var AsynchronousQueue = /** @class */ (function () {
|
|
|
87
81
|
if (!this.currentlyRunning) {
|
|
88
82
|
this.runEntry();
|
|
89
83
|
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
var _this = this;
|
|
84
|
+
}
|
|
85
|
+
runEntry() {
|
|
93
86
|
if (this.isEmpty) {
|
|
94
87
|
this.currentlyRunning = null;
|
|
95
88
|
return;
|
|
96
89
|
}
|
|
97
90
|
this.currentlyRunning = this.dequeue();
|
|
98
91
|
this.currentlyRunning
|
|
99
|
-
.catch(
|
|
92
|
+
.catch((e) => {
|
|
100
93
|
//in case of an error we always clean up the remaining calls
|
|
101
94
|
//to allow a clean recovery of the application
|
|
102
|
-
|
|
95
|
+
this.cleanup();
|
|
103
96
|
throw e;
|
|
104
97
|
})
|
|
105
98
|
.then(
|
|
@@ -109,9 +102,8 @@ var AsynchronousQueue = /** @class */ (function () {
|
|
|
109
102
|
//naturally give we have a DOM, the DOM is the natural event dispatch system
|
|
110
103
|
//which we can use, to decouple the calls from a recursive stack call
|
|
111
104
|
//(the browser engine will take care of that)
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
}());
|
|
105
|
+
() => this.callForNextElementToProcess()).start();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
116
108
|
exports.AsynchronousQueue = AsynchronousQueue;
|
|
117
109
|
//# sourceMappingURL=AsyncQueue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncQueue.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/AsyncQueue.ts"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;GAUG;AACH;
|
|
1
|
+
{"version":3,"file":"AsyncQueue.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/AsyncQueue.ts"],"names":[],"mappings":";;;AAiBA;;;;;;;;;;GAUG;AACH,MAAa,iBAAiB;IAO1B;QALQ,kBAAa,GAAG,EAAE,CAAC;IAM3B,CAAC;IAED;;OAEG;IACH,IAAI,OAAO;QACP,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;IACtC,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,OAAU,EAAE,KAAK,GAAG,CAAC;QACzB,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAChC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC5B;QACD,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,GAAG,EAAE;gBAChC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC,CAAC,CAAC;SACN;aAAM;YACH,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;SAC/B;IACL,CAAC;IAED;;OAEG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;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
"use strict";
|
|
2
|
-
|
|
2
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
3
|
* contributor license agreements. See the NOTICE file distributed with
|
|
4
4
|
* this work for additional information regarding copyright ownership.
|
|
5
5
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ExtDQ = exports.
|
|
19
|
-
|
|
3
|
+
exports.ExtConfig = exports.ExtDQ = exports.ExtDomQuery = void 0;
|
|
4
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
20
5
|
* contributor license agreements. See the NOTICE file distributed with
|
|
21
6
|
* this work for additional information regarding copyright ownership.
|
|
22
7
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -31,155 +16,198 @@ exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
|
31
16
|
* See the License for the specific language governing permissions and
|
|
32
17
|
* limitations under the License.
|
|
33
18
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
const mona_dish_1 = require("mona-dish");
|
|
20
|
+
const Const_1 = require("../core/Const");
|
|
36
21
|
/**
|
|
37
|
-
* detects whether a source is a
|
|
22
|
+
* detects whether a source is a faces.js request
|
|
38
23
|
*
|
|
39
|
-
* @param source the source string for the
|
|
40
|
-
* @return true if a
|
|
24
|
+
* @param source the source string for the faces.js request
|
|
25
|
+
* @return true if a faces.js loading pattern is detected
|
|
41
26
|
* @constructor
|
|
42
27
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
const IS_FACES_SOURCE = (source) => {
|
|
29
|
+
//spec version smaller 4 we have to deal with the jsf namespace
|
|
30
|
+
return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/)) != -1 ||
|
|
31
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-development\.js.*/)) != -1 ||
|
|
32
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-uncompressed\.js.*/)) != -1 ||
|
|
33
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi)) != -1 ||
|
|
34
|
+
//fallback without check for jsf, that way we allow both bookmarks
|
|
35
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/javax\.faces\.resource.*\/jsf\.js.*/)) != -1 ||
|
|
45
36
|
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-development\.js.*/)) != -1 ||
|
|
46
37
|
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-uncompressed\.js.*/)) != -1 ||
|
|
47
38
|
(source === null || source === void 0 ? void 0 : source.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi)) != -1);
|
|
48
39
|
};
|
|
49
40
|
/**
|
|
50
|
-
* namespace myfaces
|
|
51
|
-
* tests, those will be handled similarly to
|
|
52
|
-
* reload blocking on ajax requests
|
|
41
|
+
* namespace myfaces\.testscripts can be used as extension point for internal
|
|
42
|
+
* tests, those will be handled similarly to faces.js, in regard
|
|
43
|
+
* to reload blocking on ajax requests
|
|
44
|
+
*
|
|
45
|
+
* Note: atm not used, used to be used in the old implementation
|
|
46
|
+
* but still is reserved for now
|
|
53
47
|
*
|
|
54
48
|
* @param source the source to check
|
|
55
49
|
* @constructor
|
|
56
50
|
*/
|
|
57
|
-
|
|
58
|
-
return source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
51
|
+
const IS_INTERNAL_SOURCE = (source) => {
|
|
52
|
+
return source.search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1 || source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
59
53
|
};
|
|
60
|
-
|
|
54
|
+
const ATTR_SRC = 'src';
|
|
61
55
|
/**
|
|
62
56
|
* Extension which adds implementation specific
|
|
63
|
-
* meta
|
|
57
|
+
* meta-data to our dom query
|
|
64
58
|
*
|
|
65
59
|
* Usage
|
|
66
60
|
* el = new ExtDQ(oldReference)
|
|
67
61
|
* nonce = el.nonce
|
|
68
62
|
* windowId = el.getWindowId
|
|
69
63
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var windowId = "windowId";
|
|
94
|
-
var regex = new RegExp("[\\?&]" + windowId + "=([^&#\\;]*)");
|
|
95
|
-
var results = regex.exec(href);
|
|
96
|
-
//initial trial over the url and a regexp
|
|
97
|
-
if (results != null)
|
|
98
|
-
return results[1];
|
|
99
|
-
return null;
|
|
100
|
-
};
|
|
101
|
-
//byId ($)
|
|
102
|
-
if (this.value.isPresent()) {
|
|
103
|
-
var result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
|
|
104
|
-
if (result.length > 0) {
|
|
105
|
-
throw Error("Multiple different windowIds found in document");
|
|
106
|
-
}
|
|
107
|
-
return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return fetchWindowIdFromURL();
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
enumerable: false,
|
|
114
|
-
configurable: true
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(ExtDomquery.prototype, "nonce", {
|
|
117
|
-
/*
|
|
118
|
-
* determines the jsf.js nonce and adds them to the namespace
|
|
119
|
-
* this is done once and only lazily
|
|
120
|
-
*/
|
|
121
|
-
get: function () {
|
|
122
|
-
//already processed
|
|
123
|
-
var myfacesConfig = new mona_dish_1.Config(window.myfaces);
|
|
124
|
-
var nonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
|
|
125
|
-
if (nonce.value) {
|
|
126
|
-
return nonce.value;
|
|
127
|
-
}
|
|
128
|
-
var curScript = new mona_dish_1.DQ(document.currentScript);
|
|
129
|
-
//since our baseline atm is ie11 we cannot use document.currentScript globally
|
|
130
|
-
if (curScript.attr("nonce").value != null) {
|
|
131
|
-
// fastpath for modern browsers
|
|
132
|
-
return curScript.attr("nonce").value;
|
|
133
|
-
}
|
|
134
|
-
// fallback if the currentScript method fails, we just search the jsf tags for nonce, this is
|
|
135
|
-
// the last possibility
|
|
136
|
-
var nonceScript = mona_dish_1.DQ
|
|
137
|
-
.querySelectorAll("script[src], link[src]")
|
|
138
|
-
.lazyStream
|
|
139
|
-
.filter(function (item) { return item.attr("nonce").value != null && item.attr(ATTR_SRC) != null; })
|
|
140
|
-
.map(function (item) { return IS_JSF_SOURCE(item.attr(ATTR_SRC).value); })
|
|
141
|
-
.first();
|
|
142
|
-
if (nonceScript.isPresent()) {
|
|
143
|
-
nonce.value = mona_dish_1.DomQuery.byId(nonceScript.value, true).attr("nonce").value;
|
|
64
|
+
class ExtDomQuery extends mona_dish_1.DQ {
|
|
65
|
+
static get windowId() {
|
|
66
|
+
return new ExtDomQuery(document.body).windowId;
|
|
67
|
+
}
|
|
68
|
+
static get nonce() {
|
|
69
|
+
return new ExtDomQuery(document.body).nonce;
|
|
70
|
+
}
|
|
71
|
+
get windowId() {
|
|
72
|
+
const fetchWindowIdFromURL = function () {
|
|
73
|
+
let href = window.location.href;
|
|
74
|
+
let windowId = "windowId";
|
|
75
|
+
let regex = new RegExp("[\\?&]" + windowId + "=([^&#\\;]*)");
|
|
76
|
+
let results = regex.exec(href);
|
|
77
|
+
//initial trial over the url and a regexp
|
|
78
|
+
if (results != null)
|
|
79
|
+
return results[1];
|
|
80
|
+
return null;
|
|
81
|
+
};
|
|
82
|
+
//byId ($)
|
|
83
|
+
if (this.value.isPresent()) {
|
|
84
|
+
let result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
|
|
85
|
+
if (result.length > 1) {
|
|
86
|
+
throw Error("Multiple different windowIds found in document");
|
|
144
87
|
}
|
|
88
|
+
return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return fetchWindowIdFromURL();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/*
|
|
95
|
+
* determines the faces.js nonce and adds them to the namespace
|
|
96
|
+
* this is done once and only lazily
|
|
97
|
+
*/
|
|
98
|
+
get nonce() {
|
|
99
|
+
//already processed
|
|
100
|
+
let myfacesConfig = new ExtConfig(window.myfaces);
|
|
101
|
+
let nonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
|
|
102
|
+
if (nonce.value) {
|
|
145
103
|
return nonce.value;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
104
|
+
}
|
|
105
|
+
let curScript = new mona_dish_1.DQ(document.currentScript);
|
|
106
|
+
//since our baseline atm is ie11 we cannot use document.currentScript globally
|
|
107
|
+
if (!!this.extractNonce(curScript)) {
|
|
108
|
+
// fast-path for modern browsers
|
|
109
|
+
return this.extractNonce(curScript);
|
|
110
|
+
}
|
|
111
|
+
// fallback if the currentScript method fails, we just search the jsf tags for nonce, this is
|
|
112
|
+
// the last possibility
|
|
113
|
+
let nonceScript = mona_dish_1.DQ
|
|
114
|
+
.querySelectorAll("script[src], link[src]")
|
|
115
|
+
.lazyStream
|
|
116
|
+
.filter((item) => this.extractNonce(item) && item.attr(ATTR_SRC) != null)
|
|
117
|
+
.filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))
|
|
118
|
+
.first();
|
|
119
|
+
if (nonceScript.isPresent()) {
|
|
120
|
+
return this.extractNonce(nonceScript.value);
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
static searchJsfJsFor(item) {
|
|
125
|
+
return new ExtDomQuery(document).searchJsfJsFor(item);
|
|
126
|
+
}
|
|
153
127
|
/**
|
|
154
|
-
* searches the embedded
|
|
128
|
+
* searches the embedded faces.js for items like separator char etc.
|
|
155
129
|
* expects a match as variable under position 1 in the result match
|
|
156
|
-
* @param
|
|
130
|
+
* @param regExp
|
|
157
131
|
*/
|
|
158
|
-
|
|
132
|
+
searchJsfJsFor(regExp) {
|
|
159
133
|
//perfect application for lazy stream
|
|
160
134
|
return mona_dish_1.DQ.querySelectorAll("script[src], link[src]").lazyStream
|
|
161
|
-
.filter(
|
|
162
|
-
.map(
|
|
163
|
-
.filter(
|
|
164
|
-
.map(
|
|
135
|
+
.filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))
|
|
136
|
+
.map(item => item.attr(ATTR_SRC).value.match(regExp))
|
|
137
|
+
.filter(item => item != null && item.length > 1)
|
|
138
|
+
.map((result) => {
|
|
165
139
|
return decodeURIComponent(result[1]);
|
|
166
140
|
}).first();
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return new
|
|
170
|
-
}
|
|
141
|
+
}
|
|
142
|
+
globalEval(code, nonce) {
|
|
143
|
+
return new ExtDomQuery(super.globalEval(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce));
|
|
144
|
+
}
|
|
145
|
+
// called from base class runScripts, do not delete
|
|
146
|
+
// noinspection JSUnusedGlobalSymbols
|
|
147
|
+
globalEvalSticky(code, nonce) {
|
|
148
|
+
return new ExtDomQuery(super.globalEvalSticky(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce));
|
|
149
|
+
}
|
|
171
150
|
/**
|
|
172
151
|
* decorated run scripts which takes our jsf extensions into consideration
|
|
173
152
|
* (standard DomQuery will let you pass anything)
|
|
174
|
-
* @param
|
|
153
|
+
* @param sticky if set to true the internally generated element for the script is left in the dom
|
|
154
|
+
* @param whiteListed
|
|
175
155
|
*/
|
|
176
|
-
|
|
177
|
-
|
|
156
|
+
runScripts(sticky = false, whiteListed) {
|
|
157
|
+
const whitelistFunc = (src) => {
|
|
178
158
|
var _a;
|
|
179
|
-
return ((_a =
|
|
159
|
+
return ((_a = whiteListed === null || whiteListed === void 0 ? void 0 : whiteListed(src)) !== null && _a !== void 0 ? _a : true) && !IS_FACES_SOURCE(src) && !IS_INTERNAL_SOURCE(src);
|
|
180
160
|
};
|
|
181
|
-
return
|
|
182
|
-
}
|
|
161
|
+
return super.runScripts(sticky, whitelistFunc);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* adds the elements in this ExtDomQuery to the head
|
|
165
|
+
*
|
|
166
|
+
* @param suppressDoubleIncludes checks for existing elements in the head before running the insert
|
|
167
|
+
*/
|
|
168
|
+
runHeadInserts(suppressDoubleIncludes = true) {
|
|
169
|
+
let head = ExtDomQuery.byId(document.head);
|
|
170
|
+
//automated nonce handling
|
|
171
|
+
let processedScripts = [];
|
|
172
|
+
// the idea is only to run head inserts on resources
|
|
173
|
+
// which do not exist already, that way
|
|
174
|
+
// we can avoid double includes on subsequent resource
|
|
175
|
+
// requests.
|
|
176
|
+
function resourceIsNew(element) {
|
|
177
|
+
if (!suppressDoubleIncludes) {
|
|
178
|
+
return true;
|
|
179
|
+
}
|
|
180
|
+
const tagName = element.tagName.value;
|
|
181
|
+
if (!tagName) {
|
|
182
|
+
// text node they do not have tag names, so we can process them as they are without
|
|
183
|
+
// any further ado
|
|
184
|
+
return true;
|
|
185
|
+
}
|
|
186
|
+
let reference = element.attr("href")
|
|
187
|
+
.orElse(element.attr("src").value)
|
|
188
|
+
.orElse(element.attr("rel").value);
|
|
189
|
+
if (!reference.isPresent()) {
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
return !head.querySelectorAll(`${tagName}[href='${reference.value}']`).length &&
|
|
193
|
+
!head.querySelectorAll(`${tagName}[src='${reference.value}']`).length &&
|
|
194
|
+
!head.querySelectorAll(`${tagName}[rel='${reference.value}']`).length;
|
|
195
|
+
}
|
|
196
|
+
this
|
|
197
|
+
.filter(resourceIsNew)
|
|
198
|
+
.each(element => {
|
|
199
|
+
if (element.tagName.value != "SCRIPT") {
|
|
200
|
+
//we need to run runScripts properly to deal with the rest
|
|
201
|
+
new ExtDomQuery(...processedScripts).runScripts(true);
|
|
202
|
+
processedScripts = [];
|
|
203
|
+
head.append(element);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
processedScripts.push(element);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
new ExtDomQuery(...processedScripts).runScripts(true);
|
|
210
|
+
}
|
|
183
211
|
/**
|
|
184
212
|
* byId producer
|
|
185
213
|
*
|
|
@@ -187,13 +215,82 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
187
215
|
* @param deep whether the search should go into embedded shadow dom elements
|
|
188
216
|
* @return a DomQuery containing the found elements
|
|
189
217
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
218
|
+
static byId(selector, deep = false) {
|
|
219
|
+
const ret = mona_dish_1.DomQuery.byId(selector, deep);
|
|
220
|
+
return new ExtDomQuery(ret);
|
|
221
|
+
}
|
|
222
|
+
extractNonce(curScript) {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
return (_b = (_a = curScript.getAsElem(0).value) === null || _a === void 0 ? void 0 : _a.nonce) !== null && _b !== void 0 ? _b : curScript.attr("nonce").value;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.ExtDomQuery = ExtDomQuery;
|
|
228
|
+
exports.ExtDQ = ExtDomQuery;
|
|
229
|
+
/**
|
|
230
|
+
* in order to reduce the number of interception points for the fallbacks we add
|
|
231
|
+
* the namespace remapping straight to our config accessors
|
|
232
|
+
*/
|
|
233
|
+
class ExtConfig extends mona_dish_1.Config {
|
|
234
|
+
constructor(root) {
|
|
235
|
+
super(root);
|
|
236
|
+
}
|
|
237
|
+
assignIf(condition, ...accessPath) {
|
|
238
|
+
const accessPathMapped = this.remap(accessPath);
|
|
239
|
+
return super.assignIf(condition, ...accessPathMapped);
|
|
240
|
+
}
|
|
241
|
+
assign(...accessPath) {
|
|
242
|
+
const accessPathMapped = this.remap(accessPath);
|
|
243
|
+
return super.assign(...accessPathMapped);
|
|
244
|
+
}
|
|
245
|
+
append(...accessPath) {
|
|
246
|
+
return super.append(...accessPath);
|
|
247
|
+
}
|
|
248
|
+
appendIf(condition, ...accessPath) {
|
|
249
|
+
const accessPathMapped = this.remap(accessPath);
|
|
250
|
+
return super.appendIf(condition, ...accessPathMapped);
|
|
251
|
+
}
|
|
252
|
+
getIf(...accessPath) {
|
|
253
|
+
const accessPathMapped = this.remap(accessPath);
|
|
254
|
+
return super.getIf(...accessPathMapped);
|
|
255
|
+
}
|
|
256
|
+
get(defaultVal) {
|
|
257
|
+
return super.get((0, Const_1.$nsp)(defaultVal));
|
|
258
|
+
}
|
|
259
|
+
delete(key) {
|
|
260
|
+
return super.delete((0, Const_1.$nsp)(key));
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* creates a config from an initial value or null
|
|
264
|
+
* @param value
|
|
265
|
+
*/
|
|
266
|
+
static fromNullable(value) {
|
|
267
|
+
return new ExtConfig(value);
|
|
268
|
+
}
|
|
269
|
+
getClass() {
|
|
270
|
+
return ExtConfig;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* shallow copy getter, copies only the first level, references the deeper nodes
|
|
274
|
+
* in a shared manner
|
|
275
|
+
*/
|
|
276
|
+
shallowCopy$() {
|
|
277
|
+
const ret = super.shallowCopy$();
|
|
278
|
+
return new ExtConfig(ret);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* deep copy, copies all config nodes
|
|
282
|
+
*/
|
|
283
|
+
get deepCopy() {
|
|
284
|
+
return new ExtConfig(super.deepCopy$());
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* helper to remap the namespaces of an array of access paths
|
|
288
|
+
* @param accessPath the access paths to be remapped
|
|
289
|
+
* @private returns an array of access paths with version remapped namespaces
|
|
290
|
+
*/
|
|
291
|
+
remap(accessPath) {
|
|
292
|
+
return mona_dish_1.Stream.of(...accessPath).map(key => (0, Const_1.$nsp)(key)).collect(new mona_dish_1.ArrayCollector());
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.ExtConfig = ExtConfig;
|
|
199
296
|
//# sourceMappingURL=ExtDomQuery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtDomQuery.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/ExtDomQuery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExtDomQuery.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/ExtDomQuery.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAA+F;AAC/F,yCAAgD;AAGhD;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,CAAC,MAAe,EAAW,EAAE;IACjD,+DAA+D;IAE/D,OAAO,MAAM,IA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