jsf.js_next_gen 4.0.1-beta.6 → 4.0.1-beta.7

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.
Files changed (175) hide show
  1. package/dist/docs/assets/style.css +4 -5
  2. package/dist/window/faces-development.js +19 -28
  3. package/dist/window/faces-development.js.br +0 -0
  4. package/dist/window/faces-development.js.gz +0 -0
  5. package/dist/window/faces-development.js.map +1 -1
  6. package/dist/window/faces.js +1 -1
  7. package/dist/window/faces.js.br +0 -0
  8. package/dist/window/faces.js.gz +0 -0
  9. package/dist/window/faces.js.map +1 -1
  10. package/dist/window/jsf-development.js +19 -28
  11. package/dist/window/jsf-development.js.br +0 -0
  12. package/dist/window/jsf-development.js.gz +0 -0
  13. package/dist/window/jsf-development.js.map +1 -1
  14. package/dist/window/jsf.js +1 -1
  15. package/dist/window/jsf.js.br +0 -0
  16. package/dist/window/jsf.js.gz +0 -0
  17. package/dist/window/jsf.js.map +1 -1
  18. package/package.json +10 -10
  19. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +1 -1
  20. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -1
  21. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +86 -0
  22. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +53 -0
  23. package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/css/bootstrap-icons.css +15 -0
  24. package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/css/tobago.css +15 -0
  25. package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +15 -0
  26. package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +23 -0
  27. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +1 -1
  28. package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +18 -0
  29. package/target/AssocArray.js +281 -0
  30. package/target/AssocArray.js.map +1 -0
  31. package/target/Config.js +235 -0
  32. package/target/Config.js.map +1 -0
  33. package/target/CryptoExtensions.js +112 -0
  34. package/target/CryptoExtensions.js.map +1 -0
  35. package/target/DomQuery.js +1963 -0
  36. package/target/DomQuery.js.map +1 -0
  37. package/target/Es2019Array.js +117 -0
  38. package/target/Es2019Array.js.map +1 -0
  39. package/target/Global.js +38 -0
  40. package/target/Global.js.map +1 -0
  41. package/target/IDomQuery.js +3 -0
  42. package/target/IDomQuery.js.map +1 -0
  43. package/target/Lang.js +183 -0
  44. package/target/Lang.js.map +1 -0
  45. package/target/Messaging.js +645 -0
  46. package/target/Messaging.js.map +1 -0
  47. package/target/Monad.js +330 -0
  48. package/target/Monad.js.map +1 -0
  49. package/target/Promise.js +296 -0
  50. package/target/Promise.js.map +1 -0
  51. package/target/PromiseShim.js +30 -0
  52. package/target/PromiseShim.js.map +1 -0
  53. package/target/SourcesCollectors.js +444 -0
  54. package/target/SourcesCollectors.js.map +1 -0
  55. package/target/Stream.js +562 -0
  56. package/target/Stream.js.map +1 -0
  57. package/target/TagBuilder.js +178 -0
  58. package/target/TagBuilder.js.map +1 -0
  59. package/target/XmlQuery.js +84 -0
  60. package/target/XmlQuery.js.map +1 -0
  61. package/target/index.js +80 -0
  62. package/target/index.js.map +1 -0
  63. package/target/index_core.js +76 -0
  64. package/target/index_core.js.map +1 -0
  65. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +1 -1
  66. package/target/test/frameworkBase/_ext/shared/StandardInits.js +85 -0
  67. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  68. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +53 -1
  69. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  70. package/target/test/xhrCore/ErrorChainTest.spec.js +21 -0
  71. package/target/test/xhrCore/ErrorChainTest.spec.js.map +1 -1
  72. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  73. package/target/test/xhrCore/ResponseTest23.spec.js +13 -0
  74. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
  75. package/target/types/main/typescript/AssocArray.d.ts +86 -0
  76. package/target/types/main/typescript/Config.d.ts +94 -0
  77. package/target/types/main/typescript/CryptoExtensions.d.ts +87 -0
  78. package/target/types/main/typescript/DomQuery.d.ts +587 -0
  79. package/target/types/main/typescript/Es2019Array.d.ts +30 -0
  80. package/target/types/main/typescript/Global.d.ts +23 -0
  81. package/target/types/main/typescript/IDomQuery.d.ts +480 -0
  82. package/target/types/main/typescript/Lang.d.ts +97 -0
  83. package/target/types/main/typescript/Messaging.d.ts +285 -0
  84. package/target/types/main/typescript/Monad.d.ts +161 -0
  85. package/target/types/main/typescript/Promise.d.ts +58 -0
  86. package/target/types/main/typescript/PromiseShim.d.ts +22 -0
  87. package/target/types/main/typescript/SourcesCollectors.d.ts +280 -0
  88. package/target/types/main/typescript/Stream.d.ts +284 -0
  89. package/target/types/main/typescript/TagBuilder.d.ts +50 -0
  90. package/target/types/main/typescript/XmlQuery.d.ts +31 -0
  91. package/target/types/main/typescript/api/_api.d.ts +182 -0
  92. package/target/types/main/typescript/api/faces.d.ts +17 -0
  93. package/target/types/main/typescript/api/jsf.d.ts +17 -0
  94. package/target/types/main/typescript/impl/AjaxImpl.d.ts +164 -0
  95. package/target/types/main/typescript/impl/PushImpl.d.ts +38 -0
  96. package/target/types/main/typescript/impl/core/Const.d.ts +138 -0
  97. package/target/types/main/typescript/impl/core/ImplTypes.d.ts +16 -0
  98. package/target/types/main/typescript/impl/i18n/Messages.d.ts +102 -0
  99. package/target/types/main/typescript/impl/util/Assertions.d.ts +46 -0
  100. package/target/types/main/typescript/impl/util/AsyncRunnable.d.ts +112 -0
  101. package/target/types/main/typescript/impl/util/ExtDomQuery.d.ts +100 -0
  102. package/target/types/main/typescript/impl/util/FileUtils.d.ts +25 -0
  103. package/target/types/main/typescript/impl/util/HiddenInputBuilder.d.ts +37 -0
  104. package/target/types/main/typescript/impl/util/IListener.d.ts +18 -0
  105. package/target/types/main/typescript/impl/util/Lang.d.ts +138 -0
  106. package/target/types/main/typescript/impl/util/XhrQueueController.d.ts +51 -0
  107. package/target/types/main/typescript/impl/xhrCore/ErrorData.d.ts +37 -0
  108. package/target/types/main/typescript/impl/xhrCore/EventData.d.ts +25 -0
  109. package/target/types/main/typescript/impl/xhrCore/IResponseProcessor.d.ts +136 -0
  110. package/target/types/main/typescript/impl/xhrCore/RequestDataResolver.d.ts +84 -0
  111. package/target/types/main/typescript/impl/xhrCore/ResonseDataResolver.d.ts +60 -0
  112. package/target/types/main/typescript/impl/xhrCore/Response.d.ts +29 -0
  113. package/target/types/main/typescript/impl/xhrCore/ResponseProcessor.d.ts +208 -0
  114. package/target/types/main/typescript/impl/xhrCore/XhrFormData.d.ts +83 -0
  115. package/target/types/main/typescript/impl/xhrCore/XhrRequest.d.ts +102 -0
  116. package/target/types/main/typescript/index.d.ts +34 -0
  117. package/target/types/main/typescript/index_core.d.ts +29 -0
  118. package/target/types/main/typescript/myfaces/OamSubmit.d.ts +53 -0
  119. package/target/types/main/typescript/test/frameworkBase/LangTest.spec.d.ts +1 -0
  120. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.d.ts +1 -0
  121. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.d.ts +16 -0
  122. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.d.ts +39 -0
  123. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.d.ts +16 -0
  124. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.d.ts +16 -0
  125. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.d.ts +0 -0
  126. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.d.ts +1 -0
  127. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.d.ts +1 -0
  128. package/target/types/main/typescript/test/frameworkBase/_ext/shared/StandardInits.d.ts +63 -0
  129. package/target/types/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.d.ts +23 -0
  130. package/target/types/main/typescript/test/impl/ImplTest.spec.d.ts +16 -0
  131. package/target/types/main/typescript/test/impl/ImplTest_23.spec.d.ts +16 -0
  132. package/target/types/main/typescript/test/impl/SeparatorCharsTest.spec.d.ts +16 -0
  133. package/target/types/main/typescript/test/myfaces/OamSubmit.spec.d.ts +16 -0
  134. package/target/types/main/typescript/test/myfaces/OnLoad.spec.d.ts +16 -0
  135. package/target/types/main/typescript/test/queue/AsynchronousProbe.d.ts +38 -0
  136. package/target/types/main/typescript/test/queue/AsynchronousQueueTest.spec.d.ts +16 -0
  137. package/target/types/main/typescript/test/xhrCore/ClientWindow.spec.d.ts +1 -0
  138. package/target/types/main/typescript/test/xhrCore/ErrorChainTest.spec.d.ts +16 -0
  139. package/target/types/main/typescript/test/xhrCore/EventTests.spec.d.ts +16 -0
  140. package/target/types/main/typescript/test/xhrCore/FakeWebsocket.d.ts +24 -0
  141. package/target/types/main/typescript/test/xhrCore/FileUploadTest.spec.d.ts +1 -0
  142. package/target/types/main/typescript/test/xhrCore/NamespacesRequestTest.spec.d.ts +16 -0
  143. package/target/types/main/typescript/test/xhrCore/OamSubmitTest.spec.d.ts +16 -0
  144. package/target/types/main/typescript/test/xhrCore/RequestParamsTest.spec.d.ts +1 -0
  145. package/target/types/main/typescript/test/xhrCore/RequestTest.spec.d.ts +16 -0
  146. package/target/types/main/typescript/test/xhrCore/RequestTest_23.spec.d.ts +16 -0
  147. package/target/types/main/typescript/test/xhrCore/ResponseTest.spec.d.ts +16 -0
  148. package/target/types/main/typescript/test/xhrCore/ResponseTest23.spec.d.ts +16 -0
  149. package/target/types/main/typescript/test/xhrCore/ShadowDomTest.spec.d.ts +16 -0
  150. package/target/types/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.d.ts +1 -0
  151. package/target/types/main/typescript/test/xhrCore/WebsocketTest.d.ts +1 -0
  152. package/target/types/main/typescript/test/xhrCore/XhrFormDataTest.spec.d.ts +16 -0
  153. package/target/types/test/typescript/AssocArrayTest.spec.d.ts +1 -0
  154. package/target/types/test/typescript/DomQueryTest.spec.d.ts +1 -0
  155. package/target/types/test/typescript/ExtendedArrayTest.spec.d.ts +1 -0
  156. package/target/types/test/typescript/LangTest.spec.d.ts +1 -0
  157. package/target/types/test/typescript/MappingProbes.d.ts +24 -0
  158. package/target/types/test/typescript/MappingTest.spec.d.ts +1 -0
  159. package/target/types/test/typescript/MessagingTest.spec.d.ts +1 -0
  160. package/target/types/test/typescript/MonadTest.spec.d.ts +16 -0
  161. package/target/types/test/typescript/PromiseTest.spec.d.ts +1 -0
  162. package/target/types/test/typescript/StreamTest.spec.d.ts +1 -0
  163. package/target/types/test/typescript/XmlQueryTest.spec.d.ts +1 -0
  164. package/target/types/test/typescript/markups/tobago-with-header.d.ts +1 -0
  165. package/target/types/test/typescript/markups/tobago-without-header.d.ts +1 -0
  166. package/webpack.config.js +1 -1
  167. package/webpack.config.js.map +1 -1
  168. package/.nyc_output/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +0 -1
  169. package/.nyc_output/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +0 -1
  170. package/.nyc_output/processinfo/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +0 -1
  171. package/.nyc_output/processinfo/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +0 -1
  172. package/.nyc_output/processinfo/index.json +0 -1
  173. package/src/test.html +0 -75
  174. package/src/tmp/test.html +0 -16
  175. package/tmp.xml +0 -36
@@ -483,10 +483,9 @@ blockquote {
483
483
  .has-menu .col-menu {
484
484
  visibility: visible;
485
485
  transform: translate(0, 0);
486
- display: grid;
487
- align-items: center;
488
- grid-template-rows: auto 1fr;
489
- grid-gap: 1.5rem;
486
+ display: flex;
487
+ flex-direction: column;
488
+ gap: 1.5rem;
490
489
  max-height: 100vh;
491
490
  padding: 1rem 2rem;
492
491
  }
@@ -911,7 +910,7 @@ a.tsd-index-link {
911
910
  margin-right: 0.8rem;
912
911
  }
913
912
 
914
- @media (min-width: 1024px) {
913
+ @media (min-width: 1025px) {
915
914
  .col-content {
916
915
  margin: 2rem auto;
917
916
  }
@@ -248,7 +248,7 @@ function simpleShallowMerge(...assocArrays) {
248
248
  }
249
249
  exports.simpleShallowMerge = simpleShallowMerge;
250
250
  /**
251
- * Shallow merge as in config
251
+ * Shallow merge as in config, but on raw associative arrays
252
252
  *
253
253
  * @param overwrite
254
254
  * @param withAppend
@@ -1859,33 +1859,19 @@ class DomQuery {
1859
1859
  const execCss = (toReplace) => {
1860
1860
  const _toReplace = DomQuery.byId(toReplace);
1861
1861
  const tagName = _toReplace.tagName.orElse("").value;
1862
- const head = DomQuery.byTagName("head");
1863
- if (tagName && eqi(tagName, "link") && eqi(toReplace.getAttribute("rel"), "stylesheet")) {
1864
- const rel = toReplace.getAttribute("rel");
1865
- //if possible we are now replacing the existing elements where we reference this stylesheet
1866
- const matches = head.querySelectorAll(`link[rel='stylesheet'][href='${rel}']`);
1867
- if (matches.length) {
1868
- matches.replace(_toReplace);
1869
- }
1870
- else {
1871
- head.append(_toReplace);
1872
- }
1873
- }
1874
- else if (tagName && eqi(tagName, "style")) {
1875
- let innerText = _toReplace.innerHTML.replace(/\s+/gi, "");
1876
- let styles = head.querySelectorAll("style");
1877
- let filteredStyles = styles.asArray.filter(style => {
1878
- return style.innerHTML.replace(/\s+/gi, "") == innerText;
1879
- });
1880
- styles = new DomQuery(...filteredStyles);
1881
- if (!styles.length) { //already present
1882
- head.append(_toReplace);
1883
- }
1884
- }
1862
+ let newElement = DomQuery.fromMarkup(`<${tagName.toLowerCase()} />`);
1863
+ newElement = newElement.copyAttrs(_toReplace);
1864
+ newElement.innerHTML = toReplace.innerHTML;
1865
+ // css suffices a simple replace to get it eval-ed, no need
1866
+ // for a full head replace
1867
+ _toReplace.replace(newElement);
1885
1868
  };
1886
1869
  const scriptElements = new DomQuery(this.filterSelector("link, style"), this.querySelectorAll("link, style"));
1887
1870
  scriptElements.asArray
1888
1871
  .flatMap(item => [...item.values])
1872
+ // sort to make sure the execution order is correct
1873
+ // this is needed because we mix 2 queries together
1874
+ // -3 is needed due to the compareDocumentPosition return value
1889
1875
  .sort((node1, node2) => node1.compareDocumentPosition(node2) - 3)
1890
1876
  .forEach(item => execCss(item));
1891
1877
  return this;
@@ -2482,12 +2468,12 @@ class DomQuery {
2482
2468
  }
2483
2469
  }
2484
2470
  }
2485
- exports.DomQuery = DomQuery;
2486
2471
  DomQuery.absent = new DomQuery();
2487
2472
  /**
2488
2473
  * reference to the environmental global object
2489
2474
  */
2490
2475
  DomQuery.global = Global_1._global$;
2476
+ exports.DomQuery = DomQuery;
2491
2477
  /**
2492
2478
  * Various collectors
2493
2479
  * which can be used in conjunction with Streams
@@ -2642,7 +2628,12 @@ exports._Es2019Array = _Es2019Array;
2642
2628
  * does not yet have flatMap support on arrays
2643
2629
  */
2644
2630
  exports.Es2019Array = (Array.prototype.flatMap) ? function (...data) {
2645
- return data;
2631
+ // sometimes the typescript compiler produces
2632
+ // an array without flatmap between boundaries (the result produces True for Array.isArray
2633
+ // but has no flatMap function, could be a node issue also or Typescript!
2634
+ // we remap that (could be related to: https://github.com/microsoft/TypeScript/issues/31033
2635
+ // the check and remap fixes the issue which should not exist in the first place
2636
+ return (data === null || data === void 0 ? void 0 : data.flatMap) ? data : _Es2019Array(...data);
2646
2637
  } : _Es2019Array;
2647
2638
 
2648
2639
 
@@ -3164,9 +3155,9 @@ class Optional extends Monad {
3164
3155
  });
3165
3156
  }
3166
3157
  }
3167
- exports.Optional = Optional;
3168
3158
  /*default value for absent*/
3169
3159
  Optional.absent = Optional.fromNullable(null);
3160
+ exports.Optional = Optional;
3170
3161
  // --------------------- From here onwards we break out the side effect free limits ------------
3171
3162
  /**
3172
3163
  * ValueEmbedder is the writeable version
@@ -3219,9 +3210,9 @@ class ValueEmbedder extends Optional {
3219
3210
  return new ValueEmbedder(value, valueKey);
3220
3211
  }
3221
3212
  }
3222
- exports.ValueEmbedder = ValueEmbedder;
3223
3213
  /*default value for absent*/
3224
3214
  ValueEmbedder.absent = ValueEmbedder.fromNullable(null);
3215
+ exports.ValueEmbedder = ValueEmbedder;
3225
3216
 
3226
3217
 
3227
3218
  /***/ }),
Binary file
Binary file