arco-support-request 0.0.58 → 0.0.59

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.
@@ -8246,16 +8246,31 @@
8246
8246
  }
8247
8247
  _this.entityTypeSetup.dynamicAPi(jsonItem.rest, _formvalue_1, searchCriteria, SearchText, restData_1.Havecriteria)
8248
8248
  .subscribe(function (ress) {
8249
- var _a;
8250
8249
  var res = ress;
8251
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
8252
- res = ress.entities;
8253
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
8254
- res = ress.Data;
8255
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
8256
- res = ress.templates;
8257
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
8258
- res = ress.Data.Data;
8250
+ if (restData_1.ResponseView) {
8251
+ var _rview = restData_1.ResponseView.split(".");
8252
+ _rview.forEach(function (x) {
8253
+ if (ress) {
8254
+ ress = ress[x];
8255
+ res = ress;
8256
+ }
8257
+ else
8258
+ res = "";
8259
+ });
8260
+ }
8261
+ else {
8262
+ if (ress.Data) {
8263
+ res = ress.Data;
8264
+ if (res.Data)
8265
+ res = res.Data;
8266
+ }
8267
+ if (ress.content)
8268
+ res = ress.content;
8269
+ if (ress.entities)
8270
+ res = ress.entities;
8271
+ if (ress.templates)
8272
+ res = ress.templates;
8273
+ }
8259
8274
  if (RequestorField) {
8260
8275
  var _Sitem = res.filter(function (x) { return x[restData_1.valueField] == _this.RequestorFieldValue; });
8261
8276
  _this.fieldsList.map(function (x) {
@@ -8280,16 +8295,31 @@
8280
8295
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
8281
8296
  var url = jsonItem.api.url;
8282
8297
  _this.entityTypeSetup.getDyamicUrl(url).subscribe(function (ress) {
8283
- var _a;
8284
8298
  var res = ress;
8285
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
8286
- res = ress.entities;
8287
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
8288
- res = ress.Data;
8289
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
8290
- res = ress.templates;
8291
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
8292
- res = ress.Data.Data;
8299
+ if (jsonItem.api && jsonItem.api.ResponseView) {
8300
+ var _rview = jsonItem.api.ResponseView.split(".");
8301
+ _rview.forEach(function (x) {
8302
+ if (ress) {
8303
+ ress = ress[x];
8304
+ res = ress;
8305
+ }
8306
+ else
8307
+ res = "";
8308
+ });
8309
+ }
8310
+ else {
8311
+ if (ress.Data) {
8312
+ res = ress.Data;
8313
+ if (res.Data)
8314
+ res = res.Data;
8315
+ }
8316
+ if (ress.content)
8317
+ res = ress.content;
8318
+ if (ress.entities)
8319
+ res = ress.entities;
8320
+ if (ress.templates)
8321
+ res = ress.templates;
8322
+ }
8293
8323
  if (res && Array.isArray(res) && res.length > 0) {
8294
8324
  obx.next(res.map(function (x) { return Object.assign({
8295
8325
  Id: x[jsonItem.api.valueField],
@@ -8535,8 +8565,8 @@
8535
8565
  if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
8536
8566
  var isDepandancyvalue_2 = true;
8537
8567
  var _formvalue_2 = _this.pageForm.form.value;
8538
- var restData = jsonItem.rest;
8539
- restData.QueryStrings.forEach(function (query) {
8568
+ var restData_2 = jsonItem.rest;
8569
+ restData_2.QueryStrings.forEach(function (query) {
8540
8570
  if (query.Type == 'FieldValue') {
8541
8571
  if (!_formvalue_2[query.Value]) {
8542
8572
  // Swal.fire('please fill ' + query.Value, 'warning');
@@ -8551,19 +8581,33 @@
8551
8581
  if (!isDepandancyvalue_2) {
8552
8582
  return;
8553
8583
  }
8554
- _this.entityTypeSetup
8555
- .dynamicAPi(jsonItem.rest, _formvalue_2)
8584
+ _this.entityTypeSetup.dynamicAPi(jsonItem.rest, _formvalue_2)
8556
8585
  .subscribe(function (ress) {
8557
- var _a;
8558
8586
  var res = ress;
8559
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
8560
- res = ress.entities;
8561
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
8562
- res = ress.Data;
8563
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
8564
- res = ress.templates;
8565
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
8566
- res = ress.Data.Data;
8587
+ if (restData_2.ResponseView) {
8588
+ var _rview = restData_2.ResponseView.split(".");
8589
+ _rview.forEach(function (x) {
8590
+ if (ress) {
8591
+ ress = ress[x];
8592
+ res = ress;
8593
+ }
8594
+ else
8595
+ res = "";
8596
+ });
8597
+ }
8598
+ else {
8599
+ if (ress.Data) {
8600
+ res = ress.Data;
8601
+ if (res.Data)
8602
+ res = res.Data;
8603
+ }
8604
+ if (ress.content)
8605
+ res = ress.content;
8606
+ if (ress.entities)
8607
+ res = ress.entities;
8608
+ if (ress.templates)
8609
+ res = ress.templates;
8610
+ }
8567
8611
  if (res && Array.isArray(res) && res.length > 0) {
8568
8612
  obx.next(res.map(function (x) { return Object.assign({
8569
8613
  Id: x[jsonItem.rest.valueField],
@@ -8584,16 +8628,31 @@
8584
8628
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
8585
8629
  var url = jsonItem.api.url;
8586
8630
  _this.entityTypeSetup.getDyamicUrl(url).subscribe(function (ress) {
8587
- var _a;
8588
8631
  var res = ress;
8589
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.entities))
8590
- res = ress.entities;
8591
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data))
8592
- res = ress.Data;
8593
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.templates))
8594
- res = ress.templates;
8595
- if (ress && (ress === null || ress === void 0 ? void 0 : ress.Data) && ((_a = ress === null || ress === void 0 ? void 0 : ress.Data) === null || _a === void 0 ? void 0 : _a.Data))
8596
- res = ress.Data.Data;
8632
+ if (jsonItem.api && jsonItem.api.ResponseView) {
8633
+ var _rview = jsonItem.api.ResponseView.split(".");
8634
+ _rview.forEach(function (x) {
8635
+ if (ress) {
8636
+ ress = ress[x];
8637
+ res = ress;
8638
+ }
8639
+ else
8640
+ res = "";
8641
+ });
8642
+ }
8643
+ else {
8644
+ if (ress.Data) {
8645
+ res = ress.Data;
8646
+ if (res.Data)
8647
+ res = res.Data;
8648
+ }
8649
+ if (ress.content)
8650
+ res = ress.content;
8651
+ if (ress.entities)
8652
+ res = ress.entities;
8653
+ if (ress.templates)
8654
+ res = ress.templates;
8655
+ }
8597
8656
  if (res && Array.isArray(res) && res.length > 0) {
8598
8657
  obx.next(res.map(function (x) { return Object.assign({
8599
8658
  Id: x[jsonItem.api.valueField],