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.
- package/bundles/arco-support-request.umd.js +99 -40
- package/bundles/arco-support-request.umd.js.map +1 -1
- package/bundles/arco-support-request.umd.min.js +1 -1
- package/bundles/arco-support-request.umd.min.js.map +1 -1
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +98 -39
- package/fesm2015/arco-support-request.js +97 -38
- package/fesm2015/arco-support-request.js.map +1 -1
- package/lib/ticket/_ticket-services/ticket-api.service.d.ts +81 -0
- package/package.json +1 -1
|
@@ -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 (
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
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 (
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
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
|
|
8539
|
-
|
|
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 (
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
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 (
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
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],
|