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,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.myfaces = exports.faces = void 0;
|
|
4
1
|
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5
2
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6
3
|
* this work for additional information regarding copyright ownership.
|
|
@@ -16,14 +13,53 @@ exports.myfaces = exports.faces = void 0;
|
|
|
16
13
|
* See the License for the specific language governing permissions and
|
|
17
14
|
* limitations under the License.
|
|
18
15
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
|
|
17
|
+
declare namespace jsf {
|
|
18
|
+
/**
|
|
19
|
+
* Project stage values, mirroring jakarta.faces.application.ProjectStage.
|
|
20
|
+
*/
|
|
21
|
+
export type ProjectStage = "Development" | "UnitTest" | "SystemTest" | "Production";
|
|
22
|
+
/**
|
|
23
|
+
* Status values sent to ajax event callbacks.
|
|
24
|
+
*/
|
|
25
|
+
export type AjaxEventStatus = "begin" | "complete" | "success";
|
|
26
|
+
/**
|
|
27
|
+
* Status values sent to ajax error callbacks.
|
|
28
|
+
*/
|
|
29
|
+
export type AjaxErrorStatus = "httpError" | "emptyResponse" | "malformedXML" | "serverError";
|
|
30
|
+
/**
|
|
31
|
+
* Common shape for the data passed to ajax callbacks.
|
|
32
|
+
*/
|
|
33
|
+
export interface AjaxData {
|
|
34
|
+
source?: Element;
|
|
35
|
+
responseCode?: number;
|
|
36
|
+
responseText?: string;
|
|
37
|
+
responseXML?: XMLDocument;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Data passed to ajax event callbacks.
|
|
41
|
+
*/
|
|
42
|
+
export interface AjaxEvent extends AjaxData {
|
|
43
|
+
type: "event";
|
|
44
|
+
status: AjaxEventStatus;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Data passed to ajax error callbacks.
|
|
48
|
+
*/
|
|
49
|
+
export interface AjaxError extends AjaxData {
|
|
50
|
+
type: "error";
|
|
51
|
+
status: AjaxErrorStatus | "clientError" | "timeout";
|
|
52
|
+
errorName?: string;
|
|
53
|
+
errorMessage?: string;
|
|
54
|
+
/** @deprecated MyFaces compatibility alias. */
|
|
55
|
+
serverErrorName?: string;
|
|
56
|
+
/** @deprecated MyFaces compatibility alias. */
|
|
57
|
+
serverErrorMessage?: string;
|
|
58
|
+
/** MyFaces compatibility detail. */
|
|
59
|
+
description?: string;
|
|
60
|
+
/** MyFaces compatibility detail. */
|
|
61
|
+
typeDetails?: unknown;
|
|
62
|
+
}
|
|
27
63
|
/**
|
|
28
64
|
* Version of the implementation for the faces.ts.
|
|
29
65
|
* <p />
|
|
@@ -34,7 +70,7 @@ var faces;
|
|
|
34
70
|
* <li>right two digits bug release number</li>
|
|
35
71
|
* </ul>
|
|
36
72
|
*/
|
|
37
|
-
|
|
73
|
+
export const specversion: number;
|
|
38
74
|
/**
|
|
39
75
|
* Implementation version as specified within the jsf specification.
|
|
40
76
|
* <p />
|
|
@@ -42,17 +78,15 @@ var faces;
|
|
|
42
78
|
* and reset by moving to a new spec release number
|
|
43
79
|
*
|
|
44
80
|
*/
|
|
45
|
-
|
|
81
|
+
export const implversion: number;
|
|
46
82
|
/**
|
|
47
83
|
* SeparatorChar as defined by facesContext.getNamingContainerSeparatorChar()
|
|
48
84
|
*/
|
|
49
|
-
|
|
50
|
-
// noinspection JSUnusedGlobalSymbols
|
|
85
|
+
export const separatorchar: string;
|
|
51
86
|
/**
|
|
52
87
|
* Context Path as defined externalContext.requestContextPath
|
|
53
88
|
*/
|
|
54
|
-
|
|
55
|
-
// we do not have a fallback here, for now
|
|
89
|
+
export const contextpath: string;
|
|
56
90
|
/**
|
|
57
91
|
* This method is responsible for the return of a given project stage as defined
|
|
58
92
|
* by the jsf specification.
|
|
@@ -68,10 +102,7 @@ var faces;
|
|
|
68
102
|
* @return {String} the current project state emitted by the server side method:
|
|
69
103
|
* <i>jakarta.faces.application.Application.getProjectStage()</i>
|
|
70
104
|
*/
|
|
71
|
-
function getProjectStage()
|
|
72
|
-
return AjaxImpl_1.Implementation.getProjectStage();
|
|
73
|
-
}
|
|
74
|
-
faces.getProjectStage = getProjectStage;
|
|
105
|
+
export function getProjectStage(): ProjectStage;
|
|
75
106
|
/**
|
|
76
107
|
* collect and encode data for a given form element (must be of type form)
|
|
77
108
|
* find the jakarta.faces.ViewState element and encode its value as well!
|
|
@@ -80,30 +111,46 @@ var faces;
|
|
|
80
111
|
* @throws an exception in case of the given element not being of type form!
|
|
81
112
|
* https://issues.apache.org/jira/browse/MYFACES-2110
|
|
82
113
|
*/
|
|
83
|
-
function getViewState(formElement)
|
|
84
|
-
return AjaxImpl_1.Implementation.getViewState(formElement);
|
|
85
|
-
}
|
|
86
|
-
faces.getViewState = getViewState;
|
|
114
|
+
export function getViewState(formElement: Element | string): string;
|
|
87
115
|
/**
|
|
88
116
|
* returns the window identifier for the given node / window
|
|
89
117
|
* @return the window identifier or null if none is found
|
|
90
118
|
* @param rootNode
|
|
91
119
|
*/
|
|
92
|
-
function getClientWindow(rootNode)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
120
|
+
export function getClientWindow(rootNode?: Element | string): string | null;
|
|
121
|
+
export namespace ajax {
|
|
122
|
+
/**
|
|
123
|
+
* Callback signature for ajax lifecycle events.
|
|
124
|
+
*/
|
|
125
|
+
export type OnEventCallback = (data: AjaxEvent) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Callback signature for ajax errors.
|
|
128
|
+
*/
|
|
129
|
+
export type OnErrorCallback = (data: AjaxError) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Options object for jsf.ajax.request.
|
|
132
|
+
*/
|
|
133
|
+
export interface RequestOptions {
|
|
134
|
+
execute?: string;
|
|
135
|
+
render?: string;
|
|
136
|
+
onevent?: OnEventCallback;
|
|
137
|
+
onerror?: OnErrorCallback;
|
|
138
|
+
params?: Record<string, string | number | boolean>;
|
|
139
|
+
delay?: number | "none";
|
|
140
|
+
resetValues?: boolean;
|
|
141
|
+
/** MyFaces extension/pass-through compatibility. */
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Per-request context object passed to jsf.ajax.response.
|
|
146
|
+
*/
|
|
147
|
+
export interface RequestContext {
|
|
148
|
+
sourceid?: string;
|
|
149
|
+
onerror?: OnErrorCallback;
|
|
150
|
+
onevent?: OnEventCallback;
|
|
151
|
+
/** MyFaces extension/pass-through compatibility. */
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
}
|
|
107
154
|
/**
|
|
108
155
|
* this function has to send the ajax requests
|
|
109
156
|
*
|
|
@@ -119,20 +166,14 @@ var faces;
|
|
|
119
166
|
* @param {EVENT} event: any javascript event supported by that object
|
|
120
167
|
* @param {Map} options : map of options being pushed into the ajax cycle
|
|
121
168
|
*/
|
|
122
|
-
function request(element, event, options)
|
|
123
|
-
AjaxImpl_1.Implementation.request(element, event, options);
|
|
124
|
-
}
|
|
125
|
-
ajax.request = request;
|
|
169
|
+
export function request(element: Element | string, event?: Event | null, options?: RequestOptions): void;
|
|
126
170
|
/**
|
|
127
171
|
* response handler
|
|
128
172
|
* @param request the request object having triggered this response
|
|
129
173
|
* @param context the request context
|
|
130
174
|
*
|
|
131
175
|
*/
|
|
132
|
-
function response(request, context)
|
|
133
|
-
AjaxImpl_1.Implementation.response(request, context);
|
|
134
|
-
}
|
|
135
|
-
ajax.response = response;
|
|
176
|
+
export function response(request: XMLHttpRequest, context?: RequestContext): void;
|
|
136
177
|
/**
|
|
137
178
|
* Adds an error handler to our global error queue.
|
|
138
179
|
* the error handler must be of the format <i>function errorListener(<errorData>)</i>
|
|
@@ -150,23 +191,16 @@ var faces;
|
|
|
150
191
|
*
|
|
151
192
|
* @param errorFunc error handler must be of the format <i>function errorListener(<errorData>)</i>
|
|
152
193
|
*/
|
|
153
|
-
function addOnError(errorFunc)
|
|
154
|
-
AjaxImpl_1.Implementation.addOnError(errorFunc);
|
|
155
|
-
}
|
|
156
|
-
ajax.addOnError = addOnError;
|
|
194
|
+
export function addOnError(errorFunc: OnErrorCallback): void;
|
|
157
195
|
/**
|
|
158
196
|
* Adds a global event listener to the ajax event queue. The event listener must be a function
|
|
159
197
|
* of following format: <i>function eventListener(<eventData>)</i>
|
|
160
198
|
*
|
|
161
199
|
* @param eventFunc event must be of the format <i>function eventListener(<eventData>)</i>
|
|
162
200
|
*/
|
|
163
|
-
function addOnEvent(eventFunc)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
ajax.addOnEvent = addOnEvent;
|
|
167
|
-
})(ajax = faces.ajax || (faces.ajax = {}));
|
|
168
|
-
let util;
|
|
169
|
-
(function (util) {
|
|
201
|
+
export function addOnEvent(eventFunc: OnEventCallback): void;
|
|
202
|
+
}
|
|
203
|
+
export namespace util {
|
|
170
204
|
/**
|
|
171
205
|
* varargs function which executes a chain of code (functions or any other code)
|
|
172
206
|
*
|
|
@@ -178,50 +212,52 @@ var faces;
|
|
|
178
212
|
* @param funcs ... arbitrary array of functions or strings
|
|
179
213
|
* @returns true if the chain has succeeded false otherwise
|
|
180
214
|
*/
|
|
181
|
-
function chain(source, event, ...funcs)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
215
|
+
export function chain(source: HTMLElement | string, event?: Event | null, ...funcs: Array<Function | string>): boolean;
|
|
216
|
+
}
|
|
217
|
+
export namespace push {
|
|
218
|
+
/**
|
|
219
|
+
* Invoked when the websocket is opened.
|
|
220
|
+
*/
|
|
221
|
+
export type OnOpenHandler = (channel: string) => void;
|
|
222
|
+
/**
|
|
223
|
+
* Invoked when a message is received from the server.
|
|
224
|
+
*/
|
|
225
|
+
export type OnMessageHandler = (message: unknown, channel: string, event: MessageEvent) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Invoked when a connection error occurs and the websocket will attempt to reconnect.
|
|
228
|
+
*/
|
|
229
|
+
export type OnErrorHandler = (code: number, channel: string, event: CloseEvent) => void;
|
|
230
|
+
/**
|
|
231
|
+
* Invoked when the websocket is closed and will not attempt to reconnect.
|
|
232
|
+
*/
|
|
233
|
+
export type OnCloseHandler = (code: number, channel: string, event: CloseEvent) => void;
|
|
188
234
|
/**
|
|
189
235
|
* @param socketClientId the sockets client identifier
|
|
190
236
|
* @param url the uri to reach the socket
|
|
191
237
|
* @param channel the channel name/id
|
|
192
238
|
* @param onopen The function to be invoked when the web socket is opened.
|
|
193
239
|
* @param onmessage The function to be invoked when a message is received.
|
|
194
|
-
* @param onerror The function to be invoked when an error occurs.
|
|
195
240
|
* @param onclose The function to be invoked when the web socket is closed.
|
|
196
241
|
* @param behaviors functions which are invoked whenever a message is received
|
|
197
242
|
* @param autoConnect Whether or not to automatically open the socket. Defaults to <code>false</code>.
|
|
198
243
|
*/
|
|
199
|
-
function init(socketClientId, url, channel, onopen, onmessage
|
|
200
|
-
PushImpl_1.PushImpl.init(socketClientId, url, channel, onopen, onmessage, onerror, onclose, behaviors, autoConnect);
|
|
201
|
-
}
|
|
202
|
-
push.init = init;
|
|
244
|
+
export function init(socketClientId: string, url: string, channel: string, onopen: OnOpenHandler | string | null, onmessage: OnMessageHandler | string | null, onclose: OnCloseHandler | string | null, behaviors: Record<string, Array<() => void>>, autoConnect: boolean): void;
|
|
203
245
|
/**
|
|
204
246
|
* Open the web socket on the given channel.
|
|
205
247
|
* @param socketClientId The name of the web socket channel.
|
|
206
248
|
* @throws Error is thrown, if the channel is unknown.
|
|
207
249
|
*/
|
|
208
|
-
function open(socketClientId)
|
|
209
|
-
PushImpl_1.PushImpl.open(socketClientId);
|
|
210
|
-
}
|
|
211
|
-
push.open = open;
|
|
250
|
+
export function open(socketClientId: string): void;
|
|
212
251
|
/**
|
|
213
252
|
* Close the web socket on the given channel.
|
|
214
253
|
* @param socketClientId The id of the web socket client.
|
|
215
254
|
* @throws Error is thrown, if the channel is unknown.
|
|
216
255
|
*/
|
|
217
|
-
function close(socketClientId)
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
})(faces || (exports.faces = faces = {}));
|
|
223
|
-
var myfaces;
|
|
224
|
-
(function (myfaces) {
|
|
256
|
+
export function close(socketClientId: string): void;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
declare namespace myfaces {
|
|
225
261
|
/**
|
|
226
262
|
* AB function similar to mojarra and Primefaces
|
|
227
263
|
* not part of the spec but a convenience accessor method
|
|
@@ -230,42 +266,12 @@ var myfaces;
|
|
|
230
266
|
* @param source the event source
|
|
231
267
|
* @param event the event
|
|
232
268
|
* @param eventName event name for java.jakarta.faces.behavior.event
|
|
233
|
-
* @param execute execute list as passed down in
|
|
269
|
+
* @param execute execute list as passed down in jsf.ajax.request
|
|
234
270
|
* @param render the render list as string
|
|
235
271
|
* @param options the options which need to be merged in
|
|
236
272
|
* @param userParameters a set of user parameters which go into the final options under params, they can override whatever is passed via options
|
|
237
273
|
*/
|
|
238
|
-
function ab(source, event, eventName, execute, render, options
|
|
239
|
-
var _a, _b;
|
|
240
|
-
if (!options) {
|
|
241
|
-
options = {};
|
|
242
|
-
}
|
|
243
|
-
if (!userParameters) {
|
|
244
|
-
userParameters = {};
|
|
245
|
-
}
|
|
246
|
-
if (eventName) {
|
|
247
|
-
options[Const_1.CTX_OPTIONS_PARAMS] = (_a = options === null || options === void 0 ? void 0 : options[Const_1.CTX_OPTIONS_PARAMS]) !== null && _a !== void 0 ? _a : {};
|
|
248
|
-
options[Const_1.CTX_OPTIONS_PARAMS][(0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)] = eventName;
|
|
249
|
-
}
|
|
250
|
-
if (execute) {
|
|
251
|
-
options[Const_1.CTX_OPTIONS_EXECUTE] = execute;
|
|
252
|
-
}
|
|
253
|
-
if (render) {
|
|
254
|
-
options[Const_1.CTX_PARAM_RENDER] = render;
|
|
255
|
-
}
|
|
256
|
-
//we push the users parameters in
|
|
257
|
-
if (!options["params"]) {
|
|
258
|
-
options["params"] = {};
|
|
259
|
-
}
|
|
260
|
-
for (let key in userParameters) {
|
|
261
|
-
options["params"][key] = userParameters[key];
|
|
262
|
-
}
|
|
263
|
-
((_b = window === null || window === void 0 ? void 0 : window.faces) !== null && _b !== void 0 ? _b : window.jsf).ajax.request(source, event, options);
|
|
264
|
-
}
|
|
265
|
-
myfaces.ab = ab;
|
|
266
|
-
const onReadyChain = [];
|
|
267
|
-
let readyStateListener = null;
|
|
268
|
-
// noinspection JSUnusedGlobalSymbols
|
|
274
|
+
export function ab(source: Element, event: Event, eventName: string, execute: string, render: string, options?: jsf.ajax.RequestOptions, userParameters?: jsf.ajax.RequestOptions): void;
|
|
269
275
|
/**
|
|
270
276
|
* Helper function in the myfaces namespace to handle document ready properly for the load case
|
|
271
277
|
* the ajax case, does not need proper treatment, since it is deferred anyway.
|
|
@@ -273,48 +279,14 @@ var myfaces;
|
|
|
273
279
|
*
|
|
274
280
|
* @param executionFunc the function to be executed upon ready
|
|
275
281
|
*/
|
|
276
|
-
function onDomReady(executionFunc)
|
|
277
|
-
if (document.readyState !== "complete") {
|
|
278
|
-
onReadyChain.push(executionFunc);
|
|
279
|
-
if (!readyStateListener) {
|
|
280
|
-
readyStateListener = () => {
|
|
281
|
-
window.removeEventListener("DOMContentLoaded", readyStateListener);
|
|
282
|
-
readyStateListener = null;
|
|
283
|
-
try {
|
|
284
|
-
onReadyChain.forEach(func => func());
|
|
285
|
-
}
|
|
286
|
-
finally {
|
|
287
|
-
//done we clear now the ready chain
|
|
288
|
-
onReadyChain.length = 0;
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
window.addEventListener("DOMContentLoaded", readyStateListener);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
if (readyStateListener) {
|
|
296
|
-
readyStateListener();
|
|
297
|
-
}
|
|
298
|
-
executionFunc();
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
myfaces.onDomReady = onDomReady;
|
|
282
|
+
export function onDomReady(executionFunc: () => void): void;
|
|
302
283
|
/**
|
|
303
284
|
* reserve a namespace for the given string
|
|
304
285
|
* @param namespace the namespace to reserve with '.' as separator
|
|
305
286
|
*/
|
|
306
|
-
function reserveNamespace(namespace)
|
|
307
|
-
let current = window;
|
|
308
|
-
const namespaces = namespace.split(".");
|
|
309
|
-
for (const part of namespaces) {
|
|
310
|
-
current[part] = current[part] || {};
|
|
311
|
-
current = current[part];
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
myfaces.reserveNamespace = reserveNamespace;
|
|
287
|
+
export function reserveNamespace(namespace: string): void;
|
|
315
288
|
/**
|
|
316
289
|
* legacy oam functions
|
|
317
290
|
*/
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
//# sourceMappingURL=_api.js.map
|
|
291
|
+
export const oam: typeof oam;
|
|
292
|
+
}
|