jsf.js_next_gen 4.1.0-beta.2 → 4.1.0-beta.21
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/AI_CONTRIBUTIONS.md +71 -0
- package/README.md +254 -78
- package/api-extractor.faces.json +38 -0
- package/dist/docs/assets/hierarchy.js +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/functions/faces.ajax.addOnError.html +2 -2
- package/dist/docs/functions/faces.ajax.addOnEvent.html +2 -2
- package/dist/docs/functions/faces.ajax.request.html +2 -2
- package/dist/docs/functions/faces.ajax.response.html +2 -2
- package/dist/docs/functions/faces.getClientWindow.html +2 -2
- package/dist/docs/functions/faces.getProjectStage.html +2 -2
- package/dist/docs/functions/faces.getViewState.html +1 -1
- package/dist/docs/functions/faces.push.close.html +1 -1
- package/dist/docs/functions/faces.push.init.html +6 -6
- package/dist/docs/functions/faces.push.open.html +1 -1
- package/dist/docs/functions/faces.util.chain.html +2 -2
- package/dist/docs/functions/myfaces.ab.html +3 -3
- package/dist/docs/functions/myfaces.onDomReady.html +1 -1
- package/dist/docs/functions/myfaces.reserveNamespace.html +1 -1
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +292 -71
- package/dist/docs/interfaces/faces.AjaxData.html +6 -0
- package/dist/docs/interfaces/faces.AjaxError.html +18 -0
- package/dist/docs/interfaces/faces.AjaxEvent.html +8 -0
- package/dist/docs/interfaces/faces.ajax.RequestContext.html +6 -0
- package/dist/docs/interfaces/faces.ajax.RequestOptions.html +10 -0
- package/dist/docs/modules/faces.ajax.html +1 -1
- package/dist/docs/modules/faces.html +1 -1
- package/dist/docs/modules/faces.push.html +1 -1
- package/dist/docs/modules/faces.util.html +1 -1
- package/dist/docs/modules/myfaces.html +1 -1
- package/dist/docs/modules.html +1 -1
- package/dist/docs/types/faces.AjaxErrorStatus.html +2 -0
- package/dist/docs/types/faces.AjaxEventStatus.html +2 -0
- package/dist/docs/types/faces.ProjectStage.html +2 -0
- package/dist/docs/types/faces.ajax.OnErrorCallback.html +2 -0
- package/dist/docs/types/faces.ajax.OnEventCallback.html +2 -0
- package/dist/docs/types/faces.push.OnCloseHandler.html +2 -0
- package/dist/docs/types/faces.push.OnErrorHandler.html +2 -0
- package/dist/docs/types/faces.push.OnMessageHandler.html +2 -0
- package/dist/docs/types/faces.push.OnOpenHandler.html +2 -0
- package/dist/docs/variables/faces.contextpath.html +1 -1
- package/dist/docs/variables/faces.implversion.html +1 -1
- package/dist/docs/variables/faces.separatorchar.html +1 -1
- package/dist/docs/variables/faces.specversion.html +1 -1
- package/dist/docs/variables/myfaces.oam.html +1 -1
- package/dist/window/faces-development.js +1801 -499
- package/dist/window/faces-development.js.map +1 -1
- package/{target/api/_api.js → dist/window/faces.d.ts} +124 -151
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.LICENSE.txt +0 -17
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +1806 -513
- package/dist/window/jsf-development.js.map +1 -1
- package/{target/src/main/typescript/api/_api.js → dist/window/jsf.d.ts} +125 -153
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.LICENSE.txt +0 -17
- package/dist/window/jsf.js.map +1 -1
- package/package.json +22 -18
- package/scripts/build-dts.mjs +239 -0
- package/src/main/typescript/@types/definitions/index.d.ts +22 -122
- package/{target/test/frameworkBase/_ext/monadish/fixtures/test2.js → src/main/typescript/@types/definitions/modules.d.ts} +18 -2
- package/src/main/typescript/api/_api.ts +132 -29
- package/{target/test/frameworkBase/_ext/monadish/fixtures/test.js → src/main/typescript/api/_api_ae_stub.d.ts} +6 -2
- package/src/main/typescript/api/faces.ts +2 -2
- package/src/main/typescript/api/jsf.ts +15 -23
- package/src/main/typescript/impl/AjaxImpl.ts +15 -15
- package/src/main/typescript/impl/PushImpl.ts +139 -69
- package/src/main/typescript/impl/core/Const.ts +2 -2
- package/src/main/typescript/impl/i18n/Messages.ts +1 -1
- package/src/main/typescript/impl/util/Assertions.ts +1 -2
- package/src/main/typescript/impl/util/AsyncRunnable.ts +3 -4
- package/src/main/typescript/impl/util/ExtDomQuery.ts +19 -19
- package/src/main/typescript/impl/util/FileUtils.ts +30 -14
- package/src/main/typescript/impl/util/HiddenInputBuilder.ts +34 -34
- package/src/main/typescript/impl/util/Lang.ts +19 -22
- package/src/main/typescript/impl/util/XhrQueueController.ts +25 -3
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +17 -12
- package/src/main/typescript/impl/xhrCore/EventData.ts +8 -7
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +3 -3
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +7 -6
- package/src/main/typescript/impl/xhrCore/Response.ts +3 -3
- package/src/main/typescript/impl/xhrCore/ResponseDataResolver.ts +0 -38
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +17 -15
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +72 -63
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +80 -134
- package/src/main/typescript/mona_dish_shim.ts +6 -2
- package/src/main/typescript/myfaces/OamSubmit.ts +10 -6
- package/src/main/typescript/test/api/JsfPushShimTest.spec.ts +126 -0
- package/src/main/typescript/test/api/MyFacesABTest.spec.ts +16 -0
- package/src/main/typescript/test/api/PushTypeCompatibility.ts +65 -0
- package/src/main/typescript/test/frameworkBase/LangTest.spec.ts +16 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.ts +16 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.ts +16 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.ts +16 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +55 -9
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +16 -0
- package/src/main/typescript/test/impl/AssertionsTest.spec.ts +168 -0
- package/src/main/typescript/test/impl/FileUtilsTest.spec.ts +126 -0
- package/src/main/typescript/test/impl/ImplTest.spec.ts +75 -1
- package/src/main/typescript/test/impl/ResponseDataResolverTest.spec.ts +62 -0
- package/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.ts +91 -1
- package/src/main/typescript/test/impl/util/ExtLangTest.spec.ts +110 -0
- package/src/main/typescript/test/impl/util/HiddenInputBuilderTest.spec.ts +74 -0
- package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +61 -1
- package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +191 -2
- package/src/main/typescript/test/xhrCore/ClientWindow.spec.ts +16 -0
- package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +14 -0
- package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +21 -5
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +363 -4
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +218 -4
- package/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/WebsocketTest.spec.ts +764 -0
- package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +265 -62
- package/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.ts +16 -0
- package/{target/src/main/typescript/test/xhrCore/FakeWebsocket.js → src/main/typescript/tsconfig.ae.json} +16 -23
- package/src/main/typescript/{tsconfig.json → tsconfig.dts.json} +11 -27
- package/src/main/typescript/tsconfig.test.json +17 -0
- package/tsconfig.api-extractor.json +17 -0
- package/.claude/settings.local.json +0 -16
- package/.github/workflows/codeql-analysis.yml +0 -83
- package/.github/workflows/nodejs.yml +0 -26
- package/.mocharc.json +0 -10
- package/.nyc_output/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
- package/.nyc_output/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
- package/.nyc_output/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
- package/.nyc_output/processinfo/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
- package/.nyc_output/processinfo/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
- package/.nyc_output/processinfo/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.nycrc +0 -6
- package/build.cmd +0 -1
- package/build.sh +0 -3
- package/mvnw +0 -286
- package/mvnw.cmd +0 -161
- package/plans for 4.0.1.txt +0 -8
- package/remap.ts +0 -51
- package/src/main/typescript/test/xhrCore/WebsocketTest.ts +0 -221
- package/target/api/_api.js.map +0 -1
- package/target/api/faces.js +0 -45
- package/target/api/faces.js.map +0 -1
- package/target/api/jsf.js +0 -56
- package/target/api/jsf.js.map +0 -1
- package/target/impl/AjaxImpl.js +0 -748
- package/target/impl/AjaxImpl.js.map +0 -1
- package/target/impl/PushImpl.js +0 -265
- package/target/impl/PushImpl.js.map +0 -1
- package/target/impl/core/Const.js +0 -177
- package/target/impl/core/Const.js.map +0 -1
- package/target/impl/core/ImplTypes.js +0 -38
- package/target/impl/core/ImplTypes.js.map +0 -1
- package/target/impl/i18n/Messages.js +0 -113
- package/target/impl/i18n/Messages.js.map +0 -1
- package/target/impl/util/Assertions.js +0 -101
- package/target/impl/util/Assertions.js.map +0 -1
- package/target/impl/util/AsyncRunnable.js +0 -78
- package/target/impl/util/AsyncRunnable.js.map +0 -1
- package/target/impl/util/ExtDomQuery.js +0 -306
- package/target/impl/util/ExtDomQuery.js.map +0 -1
- package/target/impl/util/FileUtils.js +0 -98
- package/target/impl/util/FileUtils.js.map +0 -1
- package/target/impl/util/HiddenInputBuilder.js +0 -83
- package/target/impl/util/HiddenInputBuilder.js.map +0 -1
- package/target/impl/util/IListener.js +0 -3
- package/target/impl/util/IListener.js.map +0 -1
- package/target/impl/util/Lang.js +0 -263
- package/target/impl/util/Lang.js.map +0 -1
- package/target/impl/util/XhrQueueController.js +0 -92
- package/target/impl/util/XhrQueueController.js.map +0 -1
- package/target/impl/xhrCore/ErrorData.js +0 -87
- package/target/impl/xhrCore/ErrorData.js.map +0 -1
- package/target/impl/xhrCore/EventData.js +0 -52
- package/target/impl/xhrCore/EventData.js.map +0 -1
- package/target/impl/xhrCore/IResponseProcessor.js +0 -3
- package/target/impl/xhrCore/IResponseProcessor.js.map +0 -1
- package/target/impl/xhrCore/RequestDataResolver.js +0 -186
- package/target/impl/xhrCore/RequestDataResolver.js.map +0 -1
- package/target/impl/xhrCore/ResonseDataResolver.js +0 -104
- package/target/impl/xhrCore/ResonseDataResolver.js.map +0 -1
- package/target/impl/xhrCore/Response.js +0 -186
- package/target/impl/xhrCore/Response.js.map +0 -1
- package/target/impl/xhrCore/ResponseDataResolver.js +0 -104
- package/target/impl/xhrCore/ResponseDataResolver.js.map +0 -1
- package/target/impl/xhrCore/ResponseProcessor.js +0 -468
- package/target/impl/xhrCore/ResponseProcessor.js.map +0 -1
- package/target/impl/xhrCore/XhrFormData.js +0 -163
- package/target/impl/xhrCore/XhrFormData.js.map +0 -1
- package/target/impl/xhrCore/XhrRequest.js +0 -433
- package/target/impl/xhrCore/XhrRequest.js.map +0 -1
- package/target/mona_dish_shim.js +0 -70
- package/target/mona_dish_shim.js.map +0 -1
- package/target/myfaces/OamSubmit.js +0 -128
- package/target/myfaces/OamSubmit.js.map +0 -1
- package/target/src/main/typescript/api/_api.js.map +0 -1
- package/target/src/main/typescript/api/faces.js +0 -45
- package/target/src/main/typescript/api/faces.js.map +0 -1
- package/target/src/main/typescript/api/jsf.js +0 -56
- package/target/src/main/typescript/api/jsf.js.map +0 -1
- package/target/src/main/typescript/impl/AjaxImpl.js +0 -748
- package/target/src/main/typescript/impl/AjaxImpl.js.map +0 -1
- package/target/src/main/typescript/impl/PushImpl.js +0 -265
- package/target/src/main/typescript/impl/PushImpl.js.map +0 -1
- package/target/src/main/typescript/impl/core/Const.js +0 -177
- package/target/src/main/typescript/impl/core/Const.js.map +0 -1
- package/target/src/main/typescript/impl/core/ImplTypes.js +0 -38
- package/target/src/main/typescript/impl/core/ImplTypes.js.map +0 -1
- package/target/src/main/typescript/impl/i18n/Messages.js +0 -113
- package/target/src/main/typescript/impl/i18n/Messages.js.map +0 -1
- package/target/src/main/typescript/impl/util/Assertions.js +0 -101
- package/target/src/main/typescript/impl/util/Assertions.js.map +0 -1
- package/target/src/main/typescript/impl/util/AsyncRunnable.js +0 -78
- package/target/src/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
- package/target/src/main/typescript/impl/util/ExtDomQuery.js +0 -306
- package/target/src/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
- package/target/src/main/typescript/impl/util/FileUtils.js +0 -98
- package/target/src/main/typescript/impl/util/FileUtils.js.map +0 -1
- package/target/src/main/typescript/impl/util/HiddenInputBuilder.js +0 -83
- package/target/src/main/typescript/impl/util/HiddenInputBuilder.js.map +0 -1
- package/target/src/main/typescript/impl/util/IListener.js +0 -3
- package/target/src/main/typescript/impl/util/IListener.js.map +0 -1
- package/target/src/main/typescript/impl/util/Lang.js +0 -263
- package/target/src/main/typescript/impl/util/Lang.js.map +0 -1
- package/target/src/main/typescript/impl/util/XhrQueueController.js +0 -92
- package/target/src/main/typescript/impl/util/XhrQueueController.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/ErrorData.js +0 -87
- package/target/src/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/EventData.js +0 -52
- package/target/src/main/typescript/impl/xhrCore/EventData.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
- package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -186
- package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/Response.js +0 -186
- package/target/src/main/typescript/impl/xhrCore/Response.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js +0 -104
- package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -468
- package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/XhrFormData.js +0 -163
- package/target/src/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
- package/target/src/main/typescript/impl/xhrCore/XhrRequest.js +0 -433
- package/target/src/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
- package/target/src/main/typescript/mona_dish_shim.js +0 -70
- package/target/src/main/typescript/mona_dish_shim.js.map +0 -1
- package/target/src/main/typescript/myfaces/OamSubmit.js +0 -128
- package/target/src/main/typescript/myfaces/OamSubmit.js.map +0 -1
- package/target/src/main/typescript/test/api/MyFacesABTest.spec.js +0 -117
- package/target/src/main/typescript/test/api/MyFacesABTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js +0 -123
- package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -2
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
- package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
- package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
- package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
- package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
- package/target/src/main/typescript/test/impl/ImplTest.spec.js +0 -225
- package/target/src/main/typescript/test/impl/ImplTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/impl/ImplTest_23.spec.js +0 -143
- package/target/src/main/typescript/test/impl/ImplTest_23.spec.js.map +0 -1
- package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js +0 -106
- package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js +0 -77
- package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js +0 -118
- package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js.map +0 -1
- package/target/src/main/typescript/test/myfaces/OnLoad.spec.js +0 -57
- package/target/src/main/typescript/test/myfaces/OnLoad.spec.js.map +0 -1
- package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js +0 -60
- package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js.map +0 -1
- package/target/src/main/typescript/test/queue/AsynchronousProbe.js +0 -93
- package/target/src/main/typescript/test/queue/AsynchronousProbe.js.map +0 -1
- package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js +0 -133
- package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js +0 -101
- package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js +0 -175
- package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/EventTests.spec.js +0 -184
- package/target/src/main/typescript/test/xhrCore/EventTests.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/FakeWebsocket.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js +0 -181
- package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
- package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js +0 -199
- package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js +0 -567
- package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js +0 -845
- package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js +0 -382
- package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js +0 -667
- package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js +0 -367
- package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js +0 -123
- package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
- package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/WebsocketTest.js +0 -207
- package/target/src/main/typescript/test/xhrCore/WebsocketTest.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js +0 -149
- package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
- package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js +0 -130
- package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
- package/target/test/api/MyFacesABTest.spec.js +0 -117
- package/target/test/api/MyFacesABTest.spec.js.map +0 -1
- package/target/test/frameworkBase/LangTest.spec.js +0 -123
- package/target/test/frameworkBase/LangTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
- package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
- package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
- package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/fixtures/test.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/fixtures/test2.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
- package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +0 -16
- package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js.map +0 -1
- package/target/test/impl/ImplTest.spec.js +0 -225
- package/target/test/impl/ImplTest.spec.js.map +0 -1
- package/target/test/impl/ImplTest_23.spec.js +0 -143
- package/target/test/impl/ImplTest_23.spec.js.map +0 -1
- package/target/test/impl/SeparatorCharsTest.spec.js +0 -106
- package/target/test/impl/SeparatorCharsTest.spec.js.map +0 -1
- package/target/test/impl/util/ExtDomQueryTest.spec.js +0 -77
- package/target/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
- package/target/test/myfaces/OamSubmit.spec.js +0 -118
- package/target/test/myfaces/OamSubmit.spec.js.map +0 -1
- package/target/test/myfaces/OnLoad.spec.js +0 -57
- package/target/test/myfaces/OnLoad.spec.js.map +0 -1
- package/target/test/myfaces/ReserveNamespace.spec.js +0 -60
- package/target/test/myfaces/ReserveNamespace.spec.js.map +0 -1
- package/target/test/queue/AsynchronousProbe.js +0 -93
- package/target/test/queue/AsynchronousProbe.js.map +0 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js +0 -133
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
- package/target/test/xhrCore/ClientWindow.spec.js +0 -101
- package/target/test/xhrCore/ClientWindow.spec.js.map +0 -1
- package/target/test/xhrCore/ErrorChainTest.spec.js +0 -175
- package/target/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
- package/target/test/xhrCore/EventTests.spec.js +0 -184
- package/target/test/xhrCore/EventTests.spec.js.map +0 -1
- package/target/test/xhrCore/FakeWebsocket.js +0 -38
- package/target/test/xhrCore/FakeWebsocket.js.map +0 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +0 -181
- package/target/test/xhrCore/FileUploadTest.spec.js.map +0 -1
- package/target/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
- package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
- package/target/test/xhrCore/OamSubmitTest.spec.js +0 -199
- package/target/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +0 -567
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
- package/target/test/xhrCore/RequestTest.spec.js +0 -845
- package/target/test/xhrCore/RequestTest.spec.js.map +0 -1
- package/target/test/xhrCore/RequestTest_23.spec.js +0 -382
- package/target/test/xhrCore/RequestTest_23.spec.js.map +0 -1
- package/target/test/xhrCore/ResponseTest.spec.js +0 -667
- package/target/test/xhrCore/ResponseTest.spec.js.map +0 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +0 -367
- package/target/test/xhrCore/ResponseTest23.spec.js.map +0 -1
- package/target/test/xhrCore/ShadowDomTest.spec.js +0 -123
- package/target/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
- package/target/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
- package/target/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
- package/target/test/xhrCore/WebsocketTest.js +0 -207
- package/target/test/xhrCore/WebsocketTest.js.map +0 -1
- package/target/test/xhrCore/XhrFormDataTest.spec.js +0 -149
- package/target/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
- package/target/test/xhrCore/XhrRequestProgress.spec.js +0 -130
- package/target/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
- package/target/test/xhrCore/fixtures/addedViewHead1.js +0 -17
- package/target/test/xhrCore/fixtures/addedViewHead1.js.map +0 -1
- package/target/test/xhrCore/fixtures/addedViewHead2.js +0 -17
- package/target/test/xhrCore/fixtures/addedViewHead2.js.map +0 -1
- package/target/test/xhrCore/fixtures/addedViewHead3.js +0 -17
- package/target/test/xhrCore/fixtures/addedViewHead3.js.map +0 -1
- package/target/test/xhrCore/fixtures/nonce_script.js +0 -17
- package/target/test/xhrCore/fixtures/nonce_script.js.map +0 -1
- package/tsconfig.json +0 -9
- package/webpack.config.ts +0 -54
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
-
* this work for additional information regarding copyright ownership.
|
|
5
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6
|
-
* (the "License"); you may not use this file except in compliance with
|
|
7
|
-
* the License. You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Messages = void 0;
|
|
19
|
-
class Messages {
|
|
20
|
-
constructor() {
|
|
21
|
-
this.MSG_TEST = "Testmessage";
|
|
22
|
-
/*Messages*/
|
|
23
|
-
/** @constant */
|
|
24
|
-
this.MSG_DEV_MODE = "Note, this message is only sent, because project stage is development and no " +
|
|
25
|
-
"other error listeners are registered.";
|
|
26
|
-
/** @constant */
|
|
27
|
-
this.MSG_AFFECTED_CLASS = "Affected Class=";
|
|
28
|
-
/** @constant */
|
|
29
|
-
this.MSG_AFFECTED_METHOD = "Affected Method=";
|
|
30
|
-
/** @constant */
|
|
31
|
-
this.MSG_ERROR_NAME = "Error Name=";
|
|
32
|
-
/** @constant */
|
|
33
|
-
this.MSG_ERROR_MESSAGE = "Error Message=";
|
|
34
|
-
/** @constant */
|
|
35
|
-
this.MSG_SERVER_ERROR_NAME = "Server Error Name=";
|
|
36
|
-
/** @constant */
|
|
37
|
-
this.MSG_ERROR_DESC = "Error Description=";
|
|
38
|
-
/** @constant */
|
|
39
|
-
this.MSG_ERROR_NO = "Error Number=";
|
|
40
|
-
/** @constant */
|
|
41
|
-
this.MSG_ERROR_LINENO = "Error Line Number=";
|
|
42
|
-
/*Errors and messages*/
|
|
43
|
-
/** @constant */
|
|
44
|
-
this.ERR_FORM = "Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing";
|
|
45
|
-
/** @constant */
|
|
46
|
-
this.ERR_VIEWSTATE = "faces.viewState= param value not of type form!";
|
|
47
|
-
/** @constant */
|
|
48
|
-
this.ERR_TRANSPORT = "Transport type {0} does not exist";
|
|
49
|
-
/** @constant */
|
|
50
|
-
this.ERR_EVT_PASS = "an event must be passed down (either a an event object null or undefined) ";
|
|
51
|
-
/** @constant */
|
|
52
|
-
this.ERR_CONSTRUCT = "Parts of the response couldn't be retrieved when constructing the event data= {0} ";
|
|
53
|
-
/** @constant */
|
|
54
|
-
this.ERR_MALFORMEDXML = "The server response could not be parsed, the server has returned with a response which is not xml !";
|
|
55
|
-
/** @constant */
|
|
56
|
-
this.ERR_SOURCE_FUNC = "source cannot be a function (probably source and event were not defined or set to null";
|
|
57
|
-
/** @constant */
|
|
58
|
-
this.ERR_EV_OR_UNKNOWN = "An event object or unknown must be passed as second parameter";
|
|
59
|
-
/** @constant */
|
|
60
|
-
this.ERR_SOURCE_NOSTR = "source cannot be a string";
|
|
61
|
-
/** @constant */
|
|
62
|
-
this.ERR_SOURCE_DEF_NULL = "source must be defined or null";
|
|
63
|
-
//_Lang.js
|
|
64
|
-
/** @constant */
|
|
65
|
-
this.ERR_MUST_STRING = "{0}: {1} namespace must be of type String";
|
|
66
|
-
/** @constant */
|
|
67
|
-
this.ERR_REF_OR_ID = "{0}: {1} a reference node or identifier must be provided";
|
|
68
|
-
/** @constant */
|
|
69
|
-
this.ERR_PARAM_GENERIC = "{0}: parameter {1} must be of type {2}";
|
|
70
|
-
/** @constant */
|
|
71
|
-
this.ERR_PARAM_STR = "{0}: {1} param must be of type string";
|
|
72
|
-
/** @constant */
|
|
73
|
-
this.ERR_PARAM_STR_RE = "{0}: {1} param must be of type string or a regular expression";
|
|
74
|
-
/** @constant */
|
|
75
|
-
this.ERR_PARAM_MIXMAPS = "{0}: both a source as well as a destination map must be provided";
|
|
76
|
-
/** @constant */
|
|
77
|
-
this.ERR_MUST_BE_PROVIDED = "{0}: an {1} and a {2} must be provided";
|
|
78
|
-
/** @constant */
|
|
79
|
-
this.ERR_MUST_BE_PROVIDED1 = "{0}: {1} must be set";
|
|
80
|
-
/** @constant */
|
|
81
|
-
this.ERR_REPLACE_EL = "replaceElements called while evalNodes is not an array";
|
|
82
|
-
/** @constant */
|
|
83
|
-
this.ERR_EMPTY_RESPONSE = "{0}: The response cannot be null or empty!";
|
|
84
|
-
/** @constant */
|
|
85
|
-
this.ERR_ITEM_ID_NOTFOUND = "{0}: item with identifier {1} could not be found";
|
|
86
|
-
/** @constant */
|
|
87
|
-
this.ERR_PPR_IDREQ = "{0}: Error in PPR Insert, id must be present";
|
|
88
|
-
/** @constant */
|
|
89
|
-
this.ERR_PPR_INSERTBEFID = "{0}: Error in PPR Insert, before id or after id must be present";
|
|
90
|
-
/** @constant */
|
|
91
|
-
this.ERR_PPR_INSERTBEFID_1 = "{0}: Error in PPR Insert, before node of id {1} does not exist in document";
|
|
92
|
-
/** @constant */
|
|
93
|
-
this.ERR_PPR_INSERTBEFID_2 = "{0}: Error in PPR Insert, after node of id {1} does not exist in document";
|
|
94
|
-
/** @constant */
|
|
95
|
-
this.ERR_PPR_DELID = "{0}: Error in delete, id not in xml markup";
|
|
96
|
-
/** @constant */
|
|
97
|
-
this.ERR_PPR_UNKNOWNCID = "{0}: Unknown Html-Component-ID= {1}";
|
|
98
|
-
/** @constant */
|
|
99
|
-
this.ERR_NO_VIEWROOTATTR = "{0}: Changing of ViewRoot attributes is not supported";
|
|
100
|
-
/** @constant */
|
|
101
|
-
this.ERR_NO_HEADATTR = "{0}: Changing of Head attributes is not supported";
|
|
102
|
-
/** @constant */
|
|
103
|
-
this.ERR_RED_URL = "{0}: Redirect without url";
|
|
104
|
-
/** @constant */
|
|
105
|
-
this.ERR_REQ_FAILED_UNKNOWN = "Request failed with unknown status";
|
|
106
|
-
/** @constant */
|
|
107
|
-
this.ERR_REQU_FAILED = "Request failed with status {0} and reason {1}";
|
|
108
|
-
/** @constant */
|
|
109
|
-
this.UNKNOWN = "UNKNOWN";
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exports.Messages = Messages;
|
|
113
|
-
//# sourceMappingURL=Messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Messages.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/i18n/Messages.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,MAAa,QAAQ;IAArB;QACI,aAAQ,GAAG,aAAa,CAAC;QAEzB,YAAY;QACZ,gBAAgB;QAChB,iBAAY,GAAG,+EAA+E;YAC1F,uCAAuC,CAAC;QAC5C,gBAAgB;QAChB,uBAAkB,GAAG,iBAAiB,CAAC;QACvC,gBAAgB;QAChB,wBAAmB,GAAG,kBAAkB,CAAC;QACzC,gBAAgB;QAChB,mBAAc,GAAG,aAAa,CAAC;QAC/B,gBAAgB;QAChB,sB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;QAClE,gBAAgB;QAChB,yBAAoB,GAAG,kDAAkD,CAAC;QAC1E,gBAAgB;QAChB,kBAAa,GAAG,8CAA8C,CAAC;QAC/D,gBAAgB;QAChB,wBAAmB,GAAG,iEAAiE,CAAC;QACxF,gBAAgB;QAChB,0BAAqB,GAAG,6EAA6E,CAAC;QACtG,gBAAgB;QAChB,0BAAqB,GAAG,4EAA4E,CAAC;QAErG,gBAAgB;QAChB,kBAAa,GAAG,4CAA4C,CAAC;QAC7D,gBAAgB;QAChB,uBAAkB,GAAG,sCAAsC,CAAC;QAE5D,gBAAgB;QAChB,wBAAmB,GAAG,uDAAuD,CAAC;QAC9E,gBAAgB;QAChB,oBAAe,GAAG,mDAAmD,CAAC;QACtE,gBAAgB;QAChB,gBAAW,GAAG,2BAA2B,CAAC;QAE1C,gBAAgB;QAChB,2BAAsB,GAAG,oCAAoC,CAAC;QAE9D,gBAAgB;QAChB,oBAAe,GAAG,+CAA+C,CAAC;QAElE,gBAAgB;QAChB,YAAO,GAAG,SAAS,CAAC;IACxB,CAAC;CAAA;AArGD,4BAqGC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Assertions = void 0;
|
|
4
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
6
|
-
* this work for additional information regarding copyright ownership.
|
|
7
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
8
|
-
* (the "License"); you may not use this file except in compliance with
|
|
9
|
-
* the License. You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
const mona_dish_1 = require("mona-dish");
|
|
20
|
-
const Const_1 = require("../core/Const");
|
|
21
|
-
const Lang_1 = require("./Lang");
|
|
22
|
-
/**
|
|
23
|
-
* a set of internal code assertions
|
|
24
|
-
* which raise an error
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
var Assertions;
|
|
28
|
-
(function (Assertions) {
|
|
29
|
-
function assertRequestIntegrity(options, elem) {
|
|
30
|
-
/*assert if the onerror is set and once if it is set it must be of type function*/
|
|
31
|
-
assertFunction(options.getIf(Const_1.ON_ERROR).value);
|
|
32
|
-
/*assert if the onevent is set and once if it is set it must be of type function*/
|
|
33
|
-
assertFunction(options.getIf(Const_1.ON_EVENT).value);
|
|
34
|
-
//improve the error messages if an empty elem is passed
|
|
35
|
-
//Assertions.assertElementExists(elem);
|
|
36
|
-
assert(elem.isPresent(), Lang_1.ExtLang.getMessage("ERR_MUST_BE_PROVIDED1", "{0}: source must be provided or exist", "source element id"), "faces.ajax.request", "ArgNotSet");
|
|
37
|
-
}
|
|
38
|
-
Assertions.assertRequestIntegrity = assertRequestIntegrity;
|
|
39
|
-
function assertUrlExists(node) {
|
|
40
|
-
if (node.attr(Const_1.ATTR_URL).isAbsent()) {
|
|
41
|
-
throw Assertions.raiseError(new Error(), Lang_1.ExtLang.getMessage("ERR_RED_URL", null, "processRedirect"), "processRedirect");
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
Assertions.assertUrlExists = assertUrlExists;
|
|
45
|
-
/**
|
|
46
|
-
* checks the xml for various issues which can occur
|
|
47
|
-
* and prevent a proper processing
|
|
48
|
-
*/
|
|
49
|
-
function assertValidXMLResponse(responseXML) {
|
|
50
|
-
assert(!responseXML.isAbsent(), Const_1.EMPTY_RESPONSE, Const_1.PHASE_PROCESS_RESPONSE);
|
|
51
|
-
assert(!responseXML.isXMLParserError(), responseXML.parserErrorText(Const_1.EMPTY_STR), Const_1.PHASE_PROCESS_RESPONSE);
|
|
52
|
-
assert(responseXML.querySelectorAll(Const_1.XML_TAG_PARTIAL_RESP).isPresent(), Const_1.ERR_NO_PARTIAL_RESPONSE, Const_1.PHASE_PROCESS_RESPONSE);
|
|
53
|
-
}
|
|
54
|
-
Assertions.assertValidXMLResponse = assertValidXMLResponse;
|
|
55
|
-
/**
|
|
56
|
-
* internal helper which raises an error in the
|
|
57
|
-
* format we need for further processing
|
|
58
|
-
*
|
|
59
|
-
* @param error
|
|
60
|
-
* @param message the message
|
|
61
|
-
* @param caller
|
|
62
|
-
* @param title the title of the error (optional)
|
|
63
|
-
* @param name the name of the error (optional)
|
|
64
|
-
*/
|
|
65
|
-
function raiseError(error, message, caller, title, name) {
|
|
66
|
-
let finalTitle = title !== null && title !== void 0 ? title : Const_1.MALFORMEDXML;
|
|
67
|
-
let finalName = name !== null && name !== void 0 ? name : Const_1.MALFORMEDXML;
|
|
68
|
-
let finalMessage = message !== null && message !== void 0 ? message : Const_1.EMPTY_STR;
|
|
69
|
-
//TODO clean up the messy makeException, this is a perfect case for encapsulation and sane defaults
|
|
70
|
-
return Lang_1.ExtLang.makeException(error, finalTitle, finalName, "Response", caller || ((arguments.caller) ? arguments.caller.toString() : "_raiseError"), finalMessage);
|
|
71
|
-
}
|
|
72
|
-
Assertions.raiseError = raiseError;
|
|
73
|
-
/*
|
|
74
|
-
* using the new typescript 3.7 compiler assertion functionality to improve compiler hinting
|
|
75
|
-
* we are not fully there yet, but soon
|
|
76
|
-
*/
|
|
77
|
-
function assert(value, msg = Const_1.EMPTY_STR, caller = Const_1.EMPTY_STR, title = "Assertion Error") {
|
|
78
|
-
if (!value) {
|
|
79
|
-
throw Assertions.raiseError(new Error(), msg, caller, title);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
Assertions.assert = assert;
|
|
83
|
-
function assertType(value, theType, msg = Const_1.EMPTY_STR, caller = Const_1.EMPTY_STR, title = "Type Assertion Error") {
|
|
84
|
-
if ((!!value) && !mona_dish_1.Lang.assertType(value, theType)) {
|
|
85
|
-
throw Assertions.raiseError(new Error(), msg, caller, title);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
Assertions.assertType = assertType;
|
|
89
|
-
function assertFunction(value, msg = Const_1.EMPTY_STR, caller = Const_1.EMPTY_STR, title = "Assertion Error") {
|
|
90
|
-
assertType(value, "function", msg, caller, title);
|
|
91
|
-
}
|
|
92
|
-
Assertions.assertFunction = assertFunction;
|
|
93
|
-
function assertDelay(value) {
|
|
94
|
-
if (!(value >= 0)) { // >= 0 abbreviation which covers all cases of non positive values,
|
|
95
|
-
// including NaN and non numeric strings, no type equality is deliberate here,
|
|
96
|
-
throw new Error("Invalid delay value: " + value);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
Assertions.assertDelay = assertDelay;
|
|
100
|
-
})(Assertions || (exports.Assertions = Assertions = {}));
|
|
101
|
-
//# sourceMappingURL=Assertions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Assertions.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/util/Assertions.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAiD;AAGjD,yCAQuB;AACvB,iCAA+B;AAG/B;;;;GAIG;AACH,IAAiB,UAAU,CA8E1B;AA9ED,WAAiB,UAAU;IAIvB,SAAgB,sBAAsB,CAAC,OAAe,EAAE,IAAQ;QAC5D,kFAAkF;QAClF,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9C,kFAAkF;QAClF,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,gBAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9C,uDAAuD;QACvD,uCAAuC;QACvC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,cAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,w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E,CAAC,CAAC,mEAAmE;YACnF,8EAA8E;YAC9E,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,KAAK,CAAC,CAAC;QACrD,CAAC;IACL,CAAC;IALe,sBAAW,cAK1B,CAAA;AACL,CAAC,EA9EgB,UAAU,0BAAV,UAAU,QA8E1B"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
-
* this work for additional information regarding copyright ownership.
|
|
5
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6
|
-
* (the "License"); you may not use this file except in compliance with
|
|
7
|
-
* the License. You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.AsyncRunnable = void 0;
|
|
19
|
-
/**
|
|
20
|
-
* pretty much the same as cancellable Promise, but given
|
|
21
|
-
* we do not have that on browser level yet this is sort
|
|
22
|
-
* of a non - intrusive Shim!
|
|
23
|
-
*/
|
|
24
|
-
class AsyncRunnable {
|
|
25
|
-
constructor() {
|
|
26
|
-
/**
|
|
27
|
-
* helper support so that we do not have to drag in Promise shims
|
|
28
|
-
*/
|
|
29
|
-
this.catchFunctions = [];
|
|
30
|
-
this.thenFunctions = [];
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* resolve handler function which calls the then chain
|
|
34
|
-
* and after that finally
|
|
35
|
-
* @param data
|
|
36
|
-
*/
|
|
37
|
-
resolve(data) {
|
|
38
|
-
this.thenFunctions.reduce((inputVal, thenFunc) => {
|
|
39
|
-
return thenFunc(inputVal);
|
|
40
|
-
}, data);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* reject handler function which triggers the catch chain
|
|
44
|
-
* @param data
|
|
45
|
-
*/
|
|
46
|
-
reject(data) {
|
|
47
|
-
this.catchFunctions.reduce((inputVal, catchFunc) => {
|
|
48
|
-
return catchFunc(inputVal);
|
|
49
|
-
}, data);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* register a catch functor
|
|
53
|
-
* @param func the functor for the catch monad
|
|
54
|
-
*/
|
|
55
|
-
catch(func) {
|
|
56
|
-
this.catchFunctions.push(func);
|
|
57
|
-
return this;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* registers a finally functor
|
|
61
|
-
* @param func the functor for the finally handling chanin
|
|
62
|
-
*/
|
|
63
|
-
finally(func) {
|
|
64
|
-
// no ie11 support we probably are going to revert to shims for that one
|
|
65
|
-
this.catchFunctions.push(func);
|
|
66
|
-
this.thenFunctions.push(func);
|
|
67
|
-
return this;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @param func then functor similar to promise
|
|
71
|
-
*/
|
|
72
|
-
then(func) {
|
|
73
|
-
this.thenFunctions.push(func);
|
|
74
|
-
return this;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.AsyncRunnable = AsyncRunnable;
|
|
78
|
-
//# sourceMappingURL=AsyncRunnable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncRunnable.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/util/AsyncRunnable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AA4DH;;;;GAIG;AACH,MAAsB,aAAa;IAAnC;QACI;;WAEG;QACK,mBAAc,GAAoB,EAAE,CAAC;QACrC,kBAAa,GAAoB,EAAE,CAAC;IA6DhD,CAAC;IAhDG;;;;OAIG;IACH,OAAO,CAAC,IAAS;QACb,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,QAAa,EAAE,QAAa,EAAE,EAAE;YACvD,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,EAAE,IAAI,CAAC,CAAA;IACZ,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,IAAS;QACZ,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,QAAa,EAAE,SAAc,EAAE,EAAE;YACzD,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAwB;QAC1B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,IAAgB;QACpB,wEAAwE;QACxE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAwB;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC9B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAlED,sCAkEC"}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExtConfig = exports.ExtDQ = exports.ExtDomQuery = void 0;
|
|
4
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
6
|
-
* this work for additional information regarding copyright ownership.
|
|
7
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
8
|
-
* (the "License"); you may not use this file except in compliance with
|
|
9
|
-
* the License. You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*/
|
|
19
|
-
const mona_dish_1 = require("mona-dish");
|
|
20
|
-
const Const_1 = require("../core/Const");
|
|
21
|
-
/**
|
|
22
|
-
* detects whether a source is a faces.js request
|
|
23
|
-
*
|
|
24
|
-
* @param source the source string for the faces.js request
|
|
25
|
-
* @return true if a faces.js loading pattern is detected
|
|
26
|
-
* @constructor
|
|
27
|
-
*/
|
|
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 ||
|
|
36
|
-
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-development\.js.*/)) != -1 ||
|
|
37
|
-
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-uncompressed\.js.*/)) != -1 ||
|
|
38
|
-
(source === null || source === void 0 ? void 0 : source.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi)) != -1);
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
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
|
|
47
|
-
*
|
|
48
|
-
* @param source the source to check
|
|
49
|
-
* @constructor
|
|
50
|
-
*/
|
|
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;
|
|
53
|
-
};
|
|
54
|
-
const ATTR_SRC = 'src';
|
|
55
|
-
/**
|
|
56
|
-
* Extension which adds implementation specific
|
|
57
|
-
* meta-data to our dom query
|
|
58
|
-
*
|
|
59
|
-
* Usage
|
|
60
|
-
* el = new ExtDQ(oldReference)
|
|
61
|
-
* nonce = el.nonce
|
|
62
|
-
* windowId = el.getWindowId
|
|
63
|
-
*/
|
|
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");
|
|
87
|
-
}
|
|
88
|
-
return mona_dish_1.Optional.fromNullable((result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL());
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return mona_dish_1.Optional.fromNullable(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
|
-
var _a;
|
|
100
|
-
//already processed
|
|
101
|
-
let myfacesConfig = new ExtConfig(window.myfaces);
|
|
102
|
-
let globalNonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
|
|
103
|
-
if (!!globalNonce.value) {
|
|
104
|
-
return mona_dish_1.ValueEmbedder.fromNullable(globalNonce);
|
|
105
|
-
}
|
|
106
|
-
let curScript = new mona_dish_1.DQ(document.currentScript);
|
|
107
|
-
//since our baseline atm is ie11 we cannot use document.currentScript globally
|
|
108
|
-
let nonce = curScript.nonce;
|
|
109
|
-
if (nonce.isPresent()) {
|
|
110
|
-
// fast-path for modern browsers
|
|
111
|
-
return mona_dish_1.ValueEmbedder.fromNullable(nonce);
|
|
112
|
-
}
|
|
113
|
-
// fallback if the currentScript method fails, we just search the jsf tags for nonce, this is
|
|
114
|
-
// the last possibility
|
|
115
|
-
let nonceScript = mona_dish_1.Optional.fromNullable((_a = mona_dish_1.DQ
|
|
116
|
-
.querySelectorAll("script[src], link[src]").asArray
|
|
117
|
-
.filter((item) => item.nonce.isPresent() && item.attr(ATTR_SRC) != null)
|
|
118
|
-
.filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))) === null || _a === void 0 ? void 0 : _a[0]);
|
|
119
|
-
if (!(nonceScript === null || nonceScript === void 0 ? void 0 : nonceScript.value)) {
|
|
120
|
-
return mona_dish_1.ValueEmbedder.absent;
|
|
121
|
-
}
|
|
122
|
-
return new mona_dish_1.DomQuery(nonceScript.value).nonce;
|
|
123
|
-
}
|
|
124
|
-
static searchJsfJsFor(item) {
|
|
125
|
-
return new ExtDomQuery(document).searchJsfJsFor(item);
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* searches the embedded faces.js for items like separator char etc.
|
|
129
|
-
* expects a match as variable under position 1 in the result match
|
|
130
|
-
* @param regExp
|
|
131
|
-
*/
|
|
132
|
-
searchJsfJsFor(regExp) {
|
|
133
|
-
var _a;
|
|
134
|
-
//perfect application for lazy stream
|
|
135
|
-
return mona_dish_1.Optional.fromNullable((_a = mona_dish_1.DQ.querySelectorAll("script[src], link[src]").asArray
|
|
136
|
-
.filter(item => IS_FACES_SOURCE(item.attr(ATTR_SRC).value))
|
|
137
|
-
.map(item => item.attr(ATTR_SRC).value.match(regExp))
|
|
138
|
-
.filter(item => item != null && item.length > 1)
|
|
139
|
-
.map((result) => {
|
|
140
|
-
return decodeURIComponent(result[1]);
|
|
141
|
-
})) === null || _a === void 0 ? void 0 : _a[0]);
|
|
142
|
-
}
|
|
143
|
-
globalEval(code, nonce) {
|
|
144
|
-
return new ExtDomQuery(super.globalEval(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce.value));
|
|
145
|
-
}
|
|
146
|
-
// called from base class runScripts, do not delete
|
|
147
|
-
// noinspection JSUnusedGlobalSymbols
|
|
148
|
-
globalEvalSticky(code, nonce) {
|
|
149
|
-
return new ExtDomQuery(super.globalEvalSticky(code, nonce !== null && nonce !== void 0 ? nonce : this.nonce.value));
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* decorated run scripts which takes our jsf extensions into consideration
|
|
153
|
-
* (standard DomQuery will let you pass anything)
|
|
154
|
-
* @param sticky if set to true the internally generated element for the script is left in the dom
|
|
155
|
-
* @param whiteListed
|
|
156
|
-
*/
|
|
157
|
-
runScripts(sticky = false, whiteListed) {
|
|
158
|
-
const whitelistFunc = (src) => {
|
|
159
|
-
var _a;
|
|
160
|
-
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);
|
|
161
|
-
};
|
|
162
|
-
return super.runScripts(sticky, whitelistFunc);
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* adds the elements in this ExtDomQuery to the head
|
|
166
|
-
*
|
|
167
|
-
* @param suppressDoubleIncludes checks for existing elements in the head before running the insert
|
|
168
|
-
*/
|
|
169
|
-
runHeadInserts(suppressDoubleIncludes = true) {
|
|
170
|
-
let head = ExtDomQuery.byId(document.head);
|
|
171
|
-
//automated nonce handling
|
|
172
|
-
let processedScripts = [];
|
|
173
|
-
// the idea is only to run head inserts on resources
|
|
174
|
-
// which do not exist already, that way
|
|
175
|
-
// we can avoid double includes on subsequent resource
|
|
176
|
-
// requests.
|
|
177
|
-
function resourceIsNew(element) {
|
|
178
|
-
if (!suppressDoubleIncludes) {
|
|
179
|
-
return true;
|
|
180
|
-
}
|
|
181
|
-
const tagName = element.tagName.value;
|
|
182
|
-
if (!tagName) {
|
|
183
|
-
// text node they do not have tag names, so we can process them as they are without
|
|
184
|
-
// any further ado
|
|
185
|
-
return true;
|
|
186
|
-
}
|
|
187
|
-
let reference = element.attr("href")
|
|
188
|
-
.orElseLazy(() => element.attr("src").value)
|
|
189
|
-
.orElseLazy(() => element.attr("rel").value);
|
|
190
|
-
if (!reference.isPresent()) {
|
|
191
|
-
return true;
|
|
192
|
-
}
|
|
193
|
-
return !head.querySelectorAll(`${tagName}[href='${reference.value}']`).length &&
|
|
194
|
-
!head.querySelectorAll(`${tagName}[src='${reference.value}']`).length &&
|
|
195
|
-
!head.querySelectorAll(`${tagName}[rel='${reference.value}']`).length;
|
|
196
|
-
}
|
|
197
|
-
this
|
|
198
|
-
.filter(resourceIsNew)
|
|
199
|
-
.each(element => {
|
|
200
|
-
if (element.tagName.value != "SCRIPT") {
|
|
201
|
-
//we need to run runScripts properly to deal with the rest
|
|
202
|
-
new ExtDomQuery(...processedScripts).runScripts(true);
|
|
203
|
-
processedScripts = [];
|
|
204
|
-
head.append(element);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
processedScripts.push(element);
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
new ExtDomQuery(...processedScripts).runScripts(true);
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* byId producer
|
|
214
|
-
*
|
|
215
|
-
* @param selector id
|
|
216
|
-
* @param deep whether the search should go into embedded shadow dom elements
|
|
217
|
-
* @return a DomQuery containing the found elements
|
|
218
|
-
*/
|
|
219
|
-
static byId(selector, deep = false) {
|
|
220
|
-
var _a, _b, _c;
|
|
221
|
-
const ret = mona_dish_1.DomQuery.byId(selector, deep);
|
|
222
|
-
if ((0, Const_1.$faces)().getProjectStage().toLowerCase() == "development" &&
|
|
223
|
-
(window === null || window === void 0 ? void 0 : window.console) && ret.isAbsent() && selector) {
|
|
224
|
-
let identifier = (_c = (_b = (_a = selector === null || selector === void 0 ? void 0 : selector.id) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : selector === null || selector === void 0 ? void 0 : selector.id) !== null && _c !== void 0 ? _c : selector.toString();
|
|
225
|
-
console.error("Element " + identifier + "not found");
|
|
226
|
-
}
|
|
227
|
-
return new ExtDomQuery(ret);
|
|
228
|
-
}
|
|
229
|
-
filter(func) {
|
|
230
|
-
return new ExtDomQuery(super.filter(func));
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
exports.ExtDomQuery = ExtDomQuery;
|
|
234
|
-
exports.ExtDQ = ExtDomQuery;
|
|
235
|
-
/**
|
|
236
|
-
* in order to reduce the number of interception points for the fallbacks we add
|
|
237
|
-
* the namespace remapping straight to our config accessors
|
|
238
|
-
*/
|
|
239
|
-
class ExtConfig extends mona_dish_1.Config {
|
|
240
|
-
constructor(root) {
|
|
241
|
-
super(root);
|
|
242
|
-
this.$nspEnabled = true;
|
|
243
|
-
}
|
|
244
|
-
assignIf(condition, ...accessPath) {
|
|
245
|
-
const accessPathMapped = this.remap(accessPath);
|
|
246
|
-
return super.assignIf(condition, ...accessPathMapped);
|
|
247
|
-
}
|
|
248
|
-
assign(...accessPath) {
|
|
249
|
-
const accessPathMapped = this.remap(accessPath);
|
|
250
|
-
return super.assign(...accessPathMapped);
|
|
251
|
-
}
|
|
252
|
-
append(...accessPath) {
|
|
253
|
-
return super.append(...accessPath);
|
|
254
|
-
}
|
|
255
|
-
appendIf(condition, ...accessPath) {
|
|
256
|
-
const accessPathMapped = this.remap(accessPath);
|
|
257
|
-
return super.appendIf(condition, ...accessPathMapped);
|
|
258
|
-
}
|
|
259
|
-
getIf(...accessPath) {
|
|
260
|
-
const accessPathMapped = this.remap(accessPath);
|
|
261
|
-
return super.getIf(...accessPathMapped);
|
|
262
|
-
}
|
|
263
|
-
get(defaultVal) {
|
|
264
|
-
return super.get((0, Const_1.$nsp)(defaultVal));
|
|
265
|
-
}
|
|
266
|
-
delete(key) {
|
|
267
|
-
return super.delete((0, Const_1.$nsp)(key));
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* creates a config from an initial value or null
|
|
271
|
-
* @param value
|
|
272
|
-
*/
|
|
273
|
-
static fromNullable(value) {
|
|
274
|
-
return new ExtConfig(value);
|
|
275
|
-
}
|
|
276
|
-
getClass() {
|
|
277
|
-
return ExtConfig;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* shallow copy getter, copies only the first level, references the deeper nodes
|
|
281
|
-
* in a shared manner
|
|
282
|
-
*/
|
|
283
|
-
shallowCopy$() {
|
|
284
|
-
const ret = super.shallowCopy$();
|
|
285
|
-
return new ExtConfig(ret);
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* deep copy, copies all config nodes
|
|
289
|
-
*/
|
|
290
|
-
get deepCopy() {
|
|
291
|
-
return new ExtConfig(super.deepCopy$());
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* helper to remap the namespaces of an array of access paths
|
|
295
|
-
* @param accessPath the access paths to be remapped
|
|
296
|
-
* @private returns an array of access paths with version remapped namespaces
|
|
297
|
-
*/
|
|
298
|
-
remap(accessPath) {
|
|
299
|
-
if (!this.$nspEnabled) {
|
|
300
|
-
return accessPath;
|
|
301
|
-
}
|
|
302
|
-
return new mona_dish_1.Es2019Array(...accessPath).map(key => (0, Const_1.$nsp)(key));
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
exports.ExtConfig = ExtConfig;
|
|
306
|
-
//# sourceMappingURL=ExtDomQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExtDomQuery.js","sourceRoot":"","sources":["../../../../../../src/main/typescript/impl/util/ExtDomQuery.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAmG;AACnG,yCAAwD;AAGxD;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,CAAC,MAAe,EAAW,EAAE;IACjD,+DAA+D;IAE/D,OAAO,MAAM,IAAI,CAAC,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,2CAA2C,CAAC,KAAI,CAAC,CAAC;QACjF,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,2BAA2B,CAAC,KAAI,CAAC,CAAC;QACjD,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,4BAA4B,CAAC,KAAI,CAAC,CAAC;QAClD,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAC,wCAAwC,CAAC,KAAI,CAAC,CAAC;QAC9D,kEAAkE;QAClE,CAAA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