jsf.js_next_gen 4.0.0-beta-4 → 4.0.0-beta-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/window/faces-development.js +135 -58
  2. package/dist/window/faces-development.js.br +0 -0
  3. package/dist/window/faces-development.js.gz +0 -0
  4. package/dist/window/faces-development.js.map +1 -1
  5. package/dist/window/faces.js +1 -1
  6. package/dist/window/faces.js.br +0 -0
  7. package/dist/window/faces.js.gz +0 -0
  8. package/dist/window/faces.js.map +1 -1
  9. package/dist/window/jsf-development.js +138 -60
  10. package/dist/window/jsf-development.js.br +0 -0
  11. package/dist/window/jsf-development.js.gz +0 -0
  12. package/dist/window/jsf-development.js.map +1 -1
  13. package/dist/window/jsf.js +1 -1
  14. package/dist/window/jsf.js.br +0 -0
  15. package/dist/window/jsf.js.gz +0 -0
  16. package/dist/window/jsf.js.map +1 -1
  17. package/package.json +2 -2
  18. package/src/main/typescript/api/jsf.ts +3 -2
  19. package/src/main/typescript/impl/AjaxImpl.ts +1 -0
  20. package/src/main/typescript/impl/core/Const.ts +8 -29
  21. package/src/main/typescript/impl/util/ExtDomQuery.ts +78 -4
  22. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +4 -4
  23. package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +5 -3
  24. package/src/main/typescript/impl/xhrCore/Response.ts +6 -4
  25. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +14 -13
  26. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +2 -1
  27. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +4 -4
  28. package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +355 -0
  29. package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +372 -0
  30. package/src/main/typescript/tsconfig-typedoc.json +16 -0
  31. package/src/main/typescript/tsconfig.json +16 -0
  32. package/target/api/Jsf.js +3 -2
  33. package/target/api/Jsf.js.map +1 -1
  34. package/target/impl/AjaxImpl.js.map +1 -1
  35. package/target/impl/core/Const.js +7 -32
  36. package/target/impl/core/Const.js.map +1 -1
  37. package/target/impl/util/ExtDomQuery.js +96 -3
  38. package/target/impl/util/ExtDomQuery.js.map +1 -1
  39. package/target/impl/xhrCore/RequestDataResolver.js +1 -1
  40. package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
  41. package/target/impl/xhrCore/ResonseDataResolver.js +4 -3
  42. package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
  43. package/target/impl/xhrCore/Response.js +5 -4
  44. package/target/impl/xhrCore/Response.js.map +1 -1
  45. package/target/impl/xhrCore/ResponseProcessor.js +12 -12
  46. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  47. package/target/impl/xhrCore/XhrFormData.js +2 -1
  48. package/target/impl/xhrCore/XhrFormData.js.map +1 -1
  49. package/target/test/frameworkBase/_ext/shared/StandardInits.js +1 -3
  50. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  51. package/target/test/xhrCore/RequestTest_23.spec.js +372 -0
  52. package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -0
  53. package/target/test/xhrCore/ResponseTest23.spec.js +283 -0
  54. package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -0
@@ -2417,21 +2417,27 @@ var Config = /** @class */ (function (_super) {
2417
2417
  * in a shared manner
2418
2418
  */
2419
2419
  get: function () {
2420
- return new Config(Stream_1.Stream.ofAssoc(this.value).collect(new SourcesCollectors_1.AssocArrayCollector()));
2420
+ return this.shallowCopy$();
2421
2421
  },
2422
2422
  enumerable: false,
2423
2423
  configurable: true
2424
2424
  });
2425
+ Config.prototype.shallowCopy$ = function () {
2426
+ return new Config(Stream_1.Stream.ofAssoc(this.value).collect(new SourcesCollectors_1.AssocArrayCollector()));
2427
+ };
2425
2428
  Object.defineProperty(Config.prototype, "deepCopy", {
2426
2429
  /**
2427
2430
  * deep copy, copies all config nodes
2428
2431
  */
2429
2432
  get: function () {
2430
- return new Config(objAssign({}, this.value));
2433
+ return this.deepCopy$();
2431
2434
  },
2432
2435
  enumerable: false,
2433
2436
  configurable: true
2434
2437
  });
2438
+ Config.prototype.deepCopy$ = function () {
2439
+ return new Config(objAssign({}, this.value));
2440
+ };
2435
2441
  /**
2436
2442
  * creates a config from an initial value or null
2437
2443
  * @param value
@@ -4940,7 +4946,7 @@ var PushImpl;
4940
4946
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4941
4947
  exports.CTX_PARAM_RST = exports.CTX_PARAM_TIMEOUT = exports.CTX_PARAM_DELAY = exports.CTX_PARAM_PASS_THR = exports.CTX_PARAM_TR_TYPE = exports.CTX_PARAM_SRC_CTL_ID = exports.CTX_PARAM_SRC_FRM_ID = exports.CTX_PARAM_MF_INTERNAL = exports.TIMEOUT_EVENT = exports.CLIENT_ERROR = exports.SERVER_ERROR = exports.MALFORMEDXML = exports.EMPTY_RESPONSE = exports.HTTPERROR = exports.RESPONSE_XML = exports.RESPONSE_TEXT = exports.ERROR_MESSAGE = exports.ERROR_NAME = exports.STATUS = exports.SOURCE = exports.SUCCESS = exports.COMPLETE = exports.BEGIN = exports.ON_EVENT = exports.ON_ERROR = exports.EVENT = exports.ERROR = exports.WINDOW_ID = exports.RENDER = exports.P_WINDOW_ID = exports.P_RESET_VALUES = exports.P_CLIENT_WINDOW = exports.P_EVT = exports.P_RENDER = exports.P_EXECUTE = exports.P_AJAX = exports.IDENT_FORM = exports.IDENT_THIS = exports.IDENT_NONE = exports.IDENT_ALL = exports.HTML_VIEWSTATE = exports.EMPTY_MAP = exports.EMPTY_STR = exports.EMPTY_FUNC = exports.P_VIEWBODY = exports.P_VIEWHEAD = exports.P_VIEWROOT = exports.P_VIEWSTATE = exports.PARTIAL_ID = exports.P_PARTIAL_SOURCE = void 0;
4942
4948
  exports.RECONNECT_INTERVAL = exports.APPLIED_CLIENT_WINDOW = exports.APPLIED_VST = exports.REASON_EXPIRED = exports.MF_NONE = exports.SEL_SCRIPTS_STYLES = exports.MYFACES = exports.UPDATE_ELEMS = exports.UPDATE_FORMS = exports.CMD_REDIRECT = exports.CMD_EXTENSION = exports.CMD_ATTRIBUTES = exports.CMD_ERROR = exports.CMD_EVAL = exports.CMD_INSERT = exports.CMD_DELETE = exports.CMD_UPDATE = exports.CMD_CHANGES = exports.RESP_PARTIAL = exports.ATTR_ID = exports.ATTR_VALUE = exports.ATTR_NAME = exports.ATTR_URL = exports.ERR_NO_PARTIAL_RESPONSE = exports.PHASE_PROCESS_RESPONSE = exports.SEL_RESPONSE_XML = exports.SEL_CLIENT_WINDOW_ELEM = exports.SEL_VIEWSTATE_ELEM = exports.TAG_ATTR = exports.TAG_AFTER = exports.TAG_BEFORE = exports.TAG_BODY = exports.TAG_FORM = exports.TAG_HEAD = exports.STD_ACCEPT = exports.NO_TIMEOUT = exports.MULTIPART = exports.URL_ENCODED = exports.STATE_EVT_COMPLETE = exports.STATE_EVT_TIMEOUT = exports.STATE_EVT_BEGIN = exports.REQ_TYPE_POST = exports.REQ_TYPE_GET = exports.ENCODED_URL = exports.VAL_AJAX = exports.REQ_ACCEPT = exports.HEAD_FACES_REQ = exports.CONTENT_TYPE = exports.STAGE_DEVELOPMENT = exports.CTX_PARAM_EXECUTE = void 0;
4943
- exports.remapNamespacesFor40 = exports.remapNamespacesFor23 = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
4949
+ exports.$nsp = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
4944
4950
  /*
4945
4951
  * [export const] constants
4946
4952
  */
@@ -5060,38 +5066,13 @@ exports.UNKNOWN = "UNKNOWN";
5060
5066
  * from 2.3 to 4.0 every javax namespace has been changed
5061
5067
  * to faces
5062
5068
  */
5063
- function remapNamespacesFor23() {
5064
- exports.P_PARTIAL_SOURCE = "javax.faces.source";
5065
- exports.P_VIEWSTATE = "javax.faces.ViewState";
5066
- exports.P_VIEWROOT = "javax.faces.ViewRoot";
5067
- exports.P_VIEWHEAD = "javax.faces.ViewHead";
5068
- exports.P_VIEWBODY = "javax.faces.ViewBody";
5069
- exports.P_AJAX = "javax.faces.partial.ajax";
5070
- exports.P_EXECUTE = "javax.faces.partial.execute";
5071
- exports.P_RENDER = "javax.faces.partial.render";
5072
- exports.P_EVT = "javax.faces.partial.event";
5073
- exports.P_CLIENT_WINDOW = "javax.faces.ClientWindow";
5074
- exports.P_RESET_VALUES = "javax.faces.partial.resetValues";
5075
- exports.P_WINDOW_ID = "javax.faces.windowId";
5076
- exports.ENCODED_URL = "javax.faces.encodedURL";
5077
- }
5078
- exports.remapNamespacesFor23 = remapNamespacesFor23;
5079
- function remapNamespacesFor40() {
5080
- exports.P_PARTIAL_SOURCE = "jakarta.faces.source";
5081
- exports.P_VIEWSTATE = "jakarta.faces.ViewState";
5082
- exports.P_VIEWROOT = "jakarta.faces.ViewRoot";
5083
- exports.P_VIEWHEAD = "jakarta.faces.ViewHead";
5084
- exports.P_VIEWBODY = "jakarta.faces.ViewBody";
5085
- exports.P_AJAX = "jakarta.faces.partial.ajax";
5086
- exports.P_EXECUTE = "jakarta.faces.partial.execute";
5087
- exports.P_RENDER = "jakarta.faces.partial.render";
5088
- exports.P_EVT = "jakarta.faces.partial.event";
5089
- exports.P_CLIENT_WINDOW = "jakarta.faces.ClientWindow";
5090
- exports.P_RESET_VALUES = "jakarta.faces.partial.resetValues";
5091
- exports.P_WINDOW_ID = "jakarta.faces.windowId";
5092
- exports.ENCODED_URL = "jakarta.faces.encodedURL";
5069
+ function $nsp(inputNamespace) {
5070
+ if (!(inputNamespace === null || inputNamespace === void 0 ? void 0 : inputNamespace.replace)) {
5071
+ return inputNamespace;
5072
+ }
5073
+ return (!!(window === null || window === void 0 ? void 0 : window.faces)) ? inputNamespace.replace(/javax\.faces/gi, "jakarta.faces") : inputNamespace.replace(/jakarta\.faces/gi, "javax.faces");
5093
5074
  }
5094
- exports.remapNamespacesFor40 = remapNamespacesFor40;
5075
+ exports.$nsp = $nsp;
5095
5076
 
5096
5077
 
5097
5078
  /***/ }),
@@ -5533,8 +5514,17 @@ var __extends = (this && this.__extends) || (function () {
5533
5514
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5534
5515
  };
5535
5516
  })();
5517
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
5518
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
5519
+ if (ar || !(i in from)) {
5520
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5521
+ ar[i] = from[i];
5522
+ }
5523
+ }
5524
+ return to.concat(ar || Array.prototype.slice.call(from));
5525
+ };
5536
5526
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5537
- exports.ExtDQ = exports.ExtDomquery = void 0;
5527
+ exports.ExtConfig = exports.ExtDQ = exports.ExtDomquery = void 0;
5538
5528
  /*! Licensed to the Apache Software Foundation (ASF) under one or more
5539
5529
  * contributor license agreements. See the NOTICE file distributed with
5540
5530
  * this work for additional information regarding copyright ownership.
@@ -5650,7 +5640,7 @@ var ExtDomquery = /** @class */ (function (_super) {
5650
5640
  */
5651
5641
  get: function () {
5652
5642
  //already processed
5653
- var myfacesConfig = new mona_dish_1.Config(window.myfaces);
5643
+ var myfacesConfig = new ExtConfig(window.myfaces);
5654
5644
  var nonce = myfacesConfig.getIf("config", "cspMeta", "nonce");
5655
5645
  if (nonce.value) {
5656
5646
  return nonce.value;
@@ -5725,7 +5715,91 @@ var ExtDomquery = /** @class */ (function (_super) {
5725
5715
  return ExtDomquery;
5726
5716
  }(mona_dish_1.DQ));
5727
5717
  exports.ExtDomquery = ExtDomquery;
5728
- exports.ExtDQ = mona_dish_1.DQ;
5718
+ exports.ExtDQ = ExtDomquery;
5719
+ var ExtConfig = /** @class */ (function (_super) {
5720
+ __extends(ExtConfig, _super);
5721
+ function ExtConfig(root) {
5722
+ return _super.call(this, root) || this;
5723
+ }
5724
+ ExtConfig.prototype.assignIf = function (condition) {
5725
+ var accessPath = [];
5726
+ for (var _i = 1; _i < arguments.length; _i++) {
5727
+ accessPath[_i - 1] = arguments[_i];
5728
+ }
5729
+ var acessPathMapped = this.remap(accessPath);
5730
+ return _super.prototype.assignIf.apply(this, __spreadArray([condition], acessPathMapped, false));
5731
+ };
5732
+ ExtConfig.prototype.assign = function () {
5733
+ var accessPath = [];
5734
+ for (var _i = 0; _i < arguments.length; _i++) {
5735
+ accessPath[_i] = arguments[_i];
5736
+ }
5737
+ var acessPathMapped = this.remap(accessPath);
5738
+ return _super.prototype.assign.apply(this, acessPathMapped);
5739
+ };
5740
+ ExtConfig.prototype.append = function () {
5741
+ var accessPath = [];
5742
+ for (var _i = 0; _i < arguments.length; _i++) {
5743
+ accessPath[_i] = arguments[_i];
5744
+ }
5745
+ return _super.prototype.append.apply(this, accessPath);
5746
+ };
5747
+ ExtConfig.prototype.appendIf = function (condition) {
5748
+ var accessPath = [];
5749
+ for (var _i = 1; _i < arguments.length; _i++) {
5750
+ accessPath[_i - 1] = arguments[_i];
5751
+ }
5752
+ var acessPathMapped = this.remap(accessPath);
5753
+ return _super.prototype.appendIf.apply(this, __spreadArray([condition], acessPathMapped, false));
5754
+ };
5755
+ ExtConfig.prototype.getIf = function () {
5756
+ var accessPath = [];
5757
+ for (var _i = 0; _i < arguments.length; _i++) {
5758
+ accessPath[_i] = arguments[_i];
5759
+ }
5760
+ var acessPathMapped = this.remap(accessPath);
5761
+ return _super.prototype.getIf.apply(this, acessPathMapped);
5762
+ };
5763
+ ExtConfig.prototype.get = function (defaultVal) {
5764
+ return _super.prototype.get.call(this, (0, Const_1.$nsp)(defaultVal));
5765
+ };
5766
+ ExtConfig.prototype.delete = function (key) {
5767
+ return _super.prototype.delete.call(this, (0, Const_1.$nsp)(key));
5768
+ };
5769
+ /**
5770
+ * creates a config from an initial value or null
5771
+ * @param value
5772
+ */
5773
+ ExtConfig.fromNullable = function (value) {
5774
+ return new ExtConfig(value);
5775
+ };
5776
+ ExtConfig.prototype.getClass = function () {
5777
+ return ExtConfig;
5778
+ };
5779
+ /**
5780
+ * shallow copy getter, copies only the first level, references the deeper nodes
5781
+ * in a shared manner
5782
+ */
5783
+ ExtConfig.prototype.shallowCopy$ = function () {
5784
+ var ret = _super.prototype.shallowCopy$.call(this);
5785
+ return new ExtConfig(ret);
5786
+ };
5787
+ Object.defineProperty(ExtConfig.prototype, "deepCopy", {
5788
+ /**
5789
+ * deep copy, copies all config nodes
5790
+ */
5791
+ get: function () {
5792
+ return new ExtConfig(_super.prototype.deepCopy$.call(this));
5793
+ },
5794
+ enumerable: false,
5795
+ configurable: true
5796
+ });
5797
+ ExtConfig.prototype.remap = function (accessPath) {
5798
+ return mona_dish_1.Stream.of.apply(mona_dish_1.Stream, accessPath).map(function (key) { return (0, Const_1.$nsp)(key); }).collect(new mona_dish_1.ArrayCollector());
5799
+ };
5800
+ return ExtConfig;
5801
+ }(mona_dish_1.Config));
5802
+ exports.ExtConfig = ExtConfig;
5729
5803
 
5730
5804
 
5731
5805
  /***/ }),
@@ -6268,7 +6342,7 @@ function resolveDefaults(event, opts, el) {
6268
6342
  if (opts === void 0) { opts = {}; }
6269
6343
  if (el === void 0) { el = null; }
6270
6344
  //deep copy the options, so that further transformations to not backfire into the callers
6271
- var resolvedEvent = event, options = new mona_dish_1.Config(opts).deepCopy, elem = mona_dish_1.DQ.byId(el || resolvedEvent.target, true), elementId = elem.id.value, requestCtx = new mona_dish_1.Config({}), internalCtx = new mona_dish_1.Config({}), windowId = resolveWindowId(options), isResetValues = true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues);
6345
+ var resolvedEvent = event, options = new ExtDomQuery_1.ExtConfig(opts).deepCopy, elem = mona_dish_1.DQ.byId(el || resolvedEvent.target, true), elementId = elem.id.value, requestCtx = new ExtDomQuery_1.ExtConfig({}), internalCtx = new ExtDomQuery_1.ExtConfig({}), windowId = resolveWindowId(options), isResetValues = true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues);
6272
6346
  return { resolvedEvent: resolvedEvent, options: options, elem: elem, elementId: elementId, requestCtx: requestCtx, internalCtx: internalCtx, windowId: windowId, isResetValues: isResetValues };
6273
6347
  }
6274
6348
  exports.resolveDefaults = resolveDefaults;
@@ -6304,6 +6378,7 @@ var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish
6304
6378
  var Assertions_1 = __webpack_require__(/*! ../util/Assertions */ "./src/main/typescript/impl/util/Assertions.ts");
6305
6379
  var mona_dish_2 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
6306
6380
  var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
6381
+ var ExtDomQuery_1 = __webpack_require__(/*! ../util/ExtDomQuery */ "./src/main/typescript/impl/util/ExtDomQuery.ts");
6307
6382
  /**
6308
6383
  * Resolver functions for various aspects of the response data
6309
6384
  *
@@ -6320,7 +6395,7 @@ var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/im
6320
6395
  *
6321
6396
  */
6322
6397
  function resolveResponseXML(request) {
6323
- var ret = new mona_dish_1.XMLQuery(request.getIf(Const_1.SEL_RESPONSE_XML).value);
6398
+ var ret = new mona_dish_1.XMLQuery((0, Const_1.$nsp)(request.getIf(Const_1.SEL_RESPONSE_XML).value));
6324
6399
  Assertions_1.Assertions.assertValidXMLResponse(ret);
6325
6400
  return ret;
6326
6401
  }
@@ -6337,10 +6412,10 @@ function resolveContexts(context) {
6337
6412
  * we split the context apart into the external one and
6338
6413
  * some internal values
6339
6414
  */
6340
- var externalContext = mona_dish_1.Config.fromNullable(context);
6415
+ var externalContext = ExtDomQuery_1.ExtConfig.fromNullable(context);
6341
6416
  var internalContext = externalContext.getIf(Const_1.CTX_PARAM_MF_INTERNAL);
6342
6417
  if (!internalContext.isPresent()) {
6343
- internalContext = mona_dish_1.Config.fromNullable({});
6418
+ internalContext = ExtDomQuery_1.ExtConfig.fromNullable({});
6344
6419
  }
6345
6420
  /**
6346
6421
  * prepare storage for some deferred operations
@@ -6416,6 +6491,7 @@ var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish
6416
6491
  var ResponseProcessor_1 = __webpack_require__(/*! ./ResponseProcessor */ "./src/main/typescript/impl/xhrCore/ResponseProcessor.ts");
6417
6492
  var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
6418
6493
  var ResonseDataResolver_1 = __webpack_require__(/*! ./ResonseDataResolver */ "./src/main/typescript/impl/xhrCore/ResonseDataResolver.ts");
6494
+ var ExtDomQuery_1 = __webpack_require__(/*! ../util/ExtDomQuery */ "./src/main/typescript/impl/util/ExtDomQuery.ts");
6419
6495
  var Response;
6420
6496
  (function (Response) {
6421
6497
  /**
@@ -6430,7 +6506,7 @@ var Response;
6430
6506
  *
6431
6507
  */
6432
6508
  function processResponse(request, context) {
6433
- var req = mona_dish_1.Config.fromNullable(request);
6509
+ var req = ExtDomQuery_1.ExtConfig.fromNullable(request);
6434
6510
  var _a = (0, ResonseDataResolver_1.resolveContexts)(context), externalContext = _a.externalContext, internalContext = _a.internalContext;
6435
6511
  var responseXML = (0, ResonseDataResolver_1.resolveResponseXML)(req);
6436
6512
  var responseProcessor = new ResponseProcessor_1.ResponseProcessor(req, externalContext, internalContext);
@@ -6545,13 +6621,13 @@ var Response;
6545
6621
  function handleElementUpdate(node, responseProcessor) {
6546
6622
  var cdataBlock = node.cDATAAsString;
6547
6623
  switch (node.id.value) {
6548
- case Const_1.P_VIEWROOT:
6624
+ case (0, Const_1.$nsp)(Const_1.P_VIEWROOT):
6549
6625
  responseProcessor.replaceViewRoot(mona_dish_1.DQ.fromMarkup(cdataBlock.substring(cdataBlock.indexOf("<html"))));
6550
6626
  break;
6551
- case Const_1.P_VIEWHEAD:
6627
+ case (0, Const_1.$nsp)(Const_1.P_VIEWHEAD):
6552
6628
  responseProcessor.replaceHead(mona_dish_1.DQ.fromMarkup(cdataBlock));
6553
6629
  break;
6554
- case Const_1.P_VIEWBODY:
6630
+ case (0, Const_1.$nsp)(Const_1.P_VIEWBODY):
6555
6631
  responseProcessor.replaceBody(mona_dish_1.DQ.fromMarkup(cdataBlock));
6556
6632
  break;
6557
6633
  default: //htmlItem replacement
@@ -6685,7 +6761,7 @@ var ResponseProcessor = /** @class */ (function () {
6685
6761
  * <error-message><![CDATA[message]]></error-message>
6686
6762
  * <error>
6687
6763
  */
6688
- var mergedErrorData = new mona_dish_1.Config({});
6764
+ var mergedErrorData = new ExtDomQuery_1.ExtConfig({});
6689
6765
  mergedErrorData.assign(Const_1.SOURCE).value = this.externalContext.getIf(Const_1.P_PARTIAL_SOURCE).get(0).value;
6690
6766
  mergedErrorData.assign(Const_1.ERROR_NAME).value = node.querySelectorAll(Const_1.ERROR_NAME).textContent(Const_1.EMPTY_STR);
6691
6767
  mergedErrorData.assign(Const_1.ERROR_MESSAGE).value = node.querySelectorAll(Const_1.ERROR_MESSAGE).cDATAAsString;
@@ -6803,7 +6879,7 @@ var ResponseProcessor = /** @class */ (function () {
6803
6879
  ResponseProcessor.prototype.processViewState = function (node) {
6804
6880
  if (ResponseProcessor.isViewStateNode(node)) {
6805
6881
  var state = node.cDATAAsString;
6806
- this.internalContext.assign(Const_1.APPLIED_VST, node.id.value).value = new ImplTypes_1.StateHolder(node.id.value, state);
6882
+ this.internalContext.assign(Const_1.APPLIED_VST, node.id.value).value = new ImplTypes_1.StateHolder((0, Const_1.$nsp)(node.id.value), state);
6807
6883
  return true;
6808
6884
  }
6809
6885
  return false;
@@ -6811,7 +6887,7 @@ var ResponseProcessor = /** @class */ (function () {
6811
6887
  ResponseProcessor.prototype.processClientWindow = function (node) {
6812
6888
  if (ResponseProcessor.isClientWindowNode(node)) {
6813
6889
  var state = node.cDATAAsString;
6814
- this.internalContext.assign(Const_1.APPLIED_CLIENT_WINDOW, node.id.value).value = new ImplTypes_1.StateHolder(node.id.value, state);
6890
+ this.internalContext.assign(Const_1.APPLIED_CLIENT_WINDOW, node.id.value).value = new ImplTypes_1.StateHolder((0, Const_1.$nsp)(node.id.value), state);
6815
6891
  return true;
6816
6892
  }
6817
6893
  };
@@ -6872,7 +6948,7 @@ var ResponseProcessor = /** @class */ (function () {
6872
6948
  * @param viewState the final viewstate
6873
6949
  */
6874
6950
  ResponseProcessor.prototype.appendViewStateToForms = function (forms, viewState) {
6875
- this.assignState(forms, Const_1.SEL_VIEWSTATE_ELEM, viewState);
6951
+ this.assignState(forms, (0, Const_1.$nsp)(Const_1.SEL_VIEWSTATE_ELEM), viewState);
6876
6952
  };
6877
6953
  /**
6878
6954
  * proper clientwindow -> form assignment
@@ -6881,7 +6957,7 @@ var ResponseProcessor = /** @class */ (function () {
6881
6957
  * @param clientWindow the final viewstate
6882
6958
  */
6883
6959
  ResponseProcessor.prototype.appendClientWindowToForms = function (forms, clientWindow) {
6884
- this.assignState(forms, Const_1.SEL_CLIENT_WINDOW_ELEM, clientWindow);
6960
+ this.assignState(forms, (0, Const_1.$nsp)(Const_1.SEL_CLIENT_WINDOW_ELEM), clientWindow);
6885
6961
  };
6886
6962
  /**
6887
6963
  * generic append state which appends a certain state as hidden element to an existing set of forms
@@ -6906,7 +6982,7 @@ var ResponseProcessor = /** @class */ (function () {
6906
6982
  * (usually a form node)
6907
6983
  */
6908
6984
  ResponseProcessor.newViewStateElement = function (parent) {
6909
- var newViewState = mona_dish_1.DQ.fromMarkup(Const_1.HTML_VIEWSTATE);
6985
+ var newViewState = mona_dish_1.DQ.fromMarkup((0, Const_1.$nsp)(Const_1.HTML_VIEWSTATE));
6910
6986
  newViewState.appendTo(parent);
6911
6987
  return newViewState;
6912
6988
  };
@@ -6945,9 +7021,9 @@ var ResponseProcessor = /** @class */ (function () {
6945
7021
  ResponseProcessor.isViewStateNode = function (node) {
6946
7022
  var _a, _b, _c, _d, _e, _f, _g;
6947
7023
  var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
6948
- return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_VIEWSTATE ||
6949
- ((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_VIEWSTATE].join(Const_1.EMPTY_STR))) != -1 ||
6950
- ((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_VIEWSTATE, separatorChar].join(Const_1.EMPTY_STR))) != -1);
7024
+ return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == (0, Const_1.$nsp)(Const_1.P_VIEWSTATE) ||
7025
+ ((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, (0, Const_1.$nsp)(Const_1.P_VIEWSTATE)].join(Const_1.EMPTY_STR))) != -1 ||
7026
+ ((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([(0, Const_1.$nsp)(Const_1.P_VIEWSTATE), separatorChar].join(Const_1.EMPTY_STR))) != -1);
6951
7027
  };
6952
7028
  /**
6953
7029
  * incoming client window node also needs special processing
@@ -6958,9 +7034,9 @@ var ResponseProcessor = /** @class */ (function () {
6958
7034
  ResponseProcessor.isClientWindowNode = function (node) {
6959
7035
  var _a, _b, _c, _d, _e, _f, _g;
6960
7036
  var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
6961
- return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_CLIENT_WINDOW ||
6962
- ((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_CLIENT_WINDOW].join(Const_1.EMPTY_STR))) != -1 ||
6963
- ((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_CLIENT_WINDOW, separatorChar].join(Const_1.EMPTY_STR))) != -1);
7037
+ return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == (0, Const_1.$nsp)(Const_1.P_CLIENT_WINDOW) ||
7038
+ ((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, (0, Const_1.$nsp)(Const_1.P_CLIENT_WINDOW)].join(Const_1.EMPTY_STR))) != -1 ||
7039
+ ((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([(0, Const_1.$nsp)(Const_1.P_CLIENT_WINDOW), separatorChar].join(Const_1.EMPTY_STR))) != -1);
6964
7040
  };
6965
7041
  ResponseProcessor.prototype.triggerOnError = function (errorData) {
6966
7042
  this.externalContext.getIf(Const_1.ON_ERROR).orElse(this.internalContext.getIf(Const_1.ON_ERROR).value).orElse(Const_1.EMPTY_FUNC).value(errorData);
@@ -7023,6 +7099,7 @@ exports.XhrFormData = void 0;
7023
7099
  var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
7024
7100
  var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
7025
7101
  var isString = mona_dish_1.Lang.isString;
7102
+ var ExtDomQuery_1 = __webpack_require__(/*! ../util/ExtDomQuery */ "./src/main/typescript/impl/util/ExtDomQuery.ts");
7026
7103
  /**
7027
7104
  * A unified form data class
7028
7105
  * which builds upon our configuration.
@@ -7129,7 +7206,7 @@ var XhrFormData = /** @class */ (function (_super) {
7129
7206
  * @param keyValueEntries
7130
7207
  */
7131
7208
  XhrFormData.prototype.assignString = function (keyValueEntries) {
7132
- var toMerge = new mona_dish_1.Config({});
7209
+ var toMerge = new ExtDomQuery_1.ExtConfig({});
7133
7210
  function splitToKeyVal(line) {
7134
7211
  return line.split(/=(.*)/gi);
7135
7212
  }
Binary file
Binary file