@twintag/twintag-core 0.2.277 → 0.2.278-TTPL-2133-21f0c0eb2e9cf75d2ddfa61063a0c29c21a90be0
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/dist/cjs/twintag-offline-support.cjs.entry.js +14 -6
- package/dist/collection/components/twintag-offline-support/LocalArrowData.service.js +7 -2
- package/dist/collection/version.js +1 -1
- package/dist/components/twintag-offline-support.js +14 -6
- package/dist/esm/twintag-offline-support.entry.js +14 -6
- package/dist/stencil-web-components/p-aa62efc7.entry.js +1 -0
- package/dist/stencil-web-components/stencil-web-components.esm.js +1 -1
- package/dist/types/drone/src/libs/stencil-web-components/.stencil/libs/twintag-sdk/src/lib/version.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/twintag-sdk/src/lib/listObject.js +6 -3
- package/twintag-sdk/src/lib/version.js +1 -1
- package/dist/stencil-web-components/p-5c9af93d.entry.js +0 -1
|
@@ -206,7 +206,7 @@ class IndexedDbService {
|
|
|
206
206
|
/**
|
|
207
207
|
* The SDK version.
|
|
208
208
|
*/
|
|
209
|
-
const VERSION = '0.
|
|
209
|
+
const VERSION = '0.2.278-TTPL-2133-21f0c0eb2e9cf75d2ddfa61063a0c29c21a90be0';
|
|
210
210
|
|
|
211
211
|
class TwintagErrorValue {
|
|
212
212
|
}
|
|
@@ -609,7 +609,7 @@ class ListObject {
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
else {
|
|
612
|
-
url = this.dataUrl(id);
|
|
612
|
+
url = this.dataUrl(id, null, true);
|
|
613
613
|
}
|
|
614
614
|
url += `${url.indexOf('?') < 0 ? '?' : '&'}language=${lang === 'all' ? '*' : lang}`;
|
|
615
615
|
const [res, err] = await this._client.get(url, offlineOptions);
|
|
@@ -879,7 +879,7 @@ class ListObject {
|
|
|
879
879
|
*
|
|
880
880
|
* @internal
|
|
881
881
|
*/
|
|
882
|
-
dataUrl(instanceId, fp) {
|
|
882
|
+
dataUrl(instanceId, fp, idAsQueryParam = false) {
|
|
883
883
|
let url = '';
|
|
884
884
|
if (this.viewId === '') {
|
|
885
885
|
url = environment.adminHost + '/api/v1/data/' + this.objectApiName;
|
|
@@ -893,7 +893,10 @@ class ListObject {
|
|
|
893
893
|
this.objectApiName;
|
|
894
894
|
}
|
|
895
895
|
if (instanceId) {
|
|
896
|
-
|
|
896
|
+
if (idAsQueryParam)
|
|
897
|
+
url += '/?id=' + encodeURIComponent(instanceId);
|
|
898
|
+
else
|
|
899
|
+
url += '/' + encodeURIComponent(instanceId);
|
|
897
900
|
}
|
|
898
901
|
if (fp) {
|
|
899
902
|
url += `?${fp}`;
|
|
@@ -18408,8 +18411,13 @@ class LocalArrowDataService {
|
|
|
18408
18411
|
arrowTable = objData;
|
|
18409
18412
|
}
|
|
18410
18413
|
else {
|
|
18411
|
-
|
|
18412
|
-
|
|
18414
|
+
if (Array.isArray(objData)) {
|
|
18415
|
+
// convert the json response data to an arrow table
|
|
18416
|
+
arrowTable = Arrow_dom.tableFromJSON(objData);
|
|
18417
|
+
}
|
|
18418
|
+
else {
|
|
18419
|
+
arrowTable = Arrow_dom.tableFromJSON([objData]);
|
|
18420
|
+
}
|
|
18413
18421
|
}
|
|
18414
18422
|
// convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
|
|
18415
18423
|
const ipcData = Arrow_dom.tableToIPC(arrowTable);
|
|
@@ -116,8 +116,13 @@ export class LocalArrowDataService {
|
|
|
116
116
|
arrowTable = objData;
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
if (Array.isArray(objData)) {
|
|
120
|
+
// convert the json response data to an arrow table
|
|
121
|
+
arrowTable = tableFromJSON(objData);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
arrowTable = tableFromJSON([objData]);
|
|
125
|
+
}
|
|
121
126
|
}
|
|
122
127
|
// convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
|
|
123
128
|
const ipcData = tableToIPC(arrowTable);
|
|
@@ -223,7 +223,7 @@ class IndexedDbService {
|
|
|
223
223
|
/**
|
|
224
224
|
* The SDK version.
|
|
225
225
|
*/
|
|
226
|
-
const VERSION = '0.
|
|
226
|
+
const VERSION = '0.2.278-TTPL-2133-21f0c0eb2e9cf75d2ddfa61063a0c29c21a90be0';
|
|
227
227
|
|
|
228
228
|
class TwintagErrorValue {
|
|
229
229
|
}
|
|
@@ -626,7 +626,7 @@ class ListObject {
|
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
else {
|
|
629
|
-
url = this.dataUrl(id);
|
|
629
|
+
url = this.dataUrl(id, null, true);
|
|
630
630
|
}
|
|
631
631
|
url += `${url.indexOf('?') < 0 ? '?' : '&'}language=${lang === 'all' ? '*' : lang}`;
|
|
632
632
|
const [res, err] = await this._client.get(url, offlineOptions);
|
|
@@ -896,7 +896,7 @@ class ListObject {
|
|
|
896
896
|
*
|
|
897
897
|
* @internal
|
|
898
898
|
*/
|
|
899
|
-
dataUrl(instanceId, fp) {
|
|
899
|
+
dataUrl(instanceId, fp, idAsQueryParam = false) {
|
|
900
900
|
let url = '';
|
|
901
901
|
if (this.viewId === '') {
|
|
902
902
|
url = environment.adminHost + '/api/v1/data/' + this.objectApiName;
|
|
@@ -910,7 +910,10 @@ class ListObject {
|
|
|
910
910
|
this.objectApiName;
|
|
911
911
|
}
|
|
912
912
|
if (instanceId) {
|
|
913
|
-
|
|
913
|
+
if (idAsQueryParam)
|
|
914
|
+
url += '/?id=' + encodeURIComponent(instanceId);
|
|
915
|
+
else
|
|
916
|
+
url += '/' + encodeURIComponent(instanceId);
|
|
914
917
|
}
|
|
915
918
|
if (fp) {
|
|
916
919
|
url += `?${fp}`;
|
|
@@ -18425,8 +18428,13 @@ class LocalArrowDataService {
|
|
|
18425
18428
|
arrowTable = objData;
|
|
18426
18429
|
}
|
|
18427
18430
|
else {
|
|
18428
|
-
|
|
18429
|
-
|
|
18431
|
+
if (Array.isArray(objData)) {
|
|
18432
|
+
// convert the json response data to an arrow table
|
|
18433
|
+
arrowTable = Arrow_dom.tableFromJSON(objData);
|
|
18434
|
+
}
|
|
18435
|
+
else {
|
|
18436
|
+
arrowTable = Arrow_dom.tableFromJSON([objData]);
|
|
18437
|
+
}
|
|
18430
18438
|
}
|
|
18431
18439
|
// convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
|
|
18432
18440
|
const ipcData = Arrow_dom.tableToIPC(arrowTable);
|
|
@@ -202,7 +202,7 @@ class IndexedDbService {
|
|
|
202
202
|
/**
|
|
203
203
|
* The SDK version.
|
|
204
204
|
*/
|
|
205
|
-
const VERSION = '0.
|
|
205
|
+
const VERSION = '0.2.278-TTPL-2133-21f0c0eb2e9cf75d2ddfa61063a0c29c21a90be0';
|
|
206
206
|
|
|
207
207
|
class TwintagErrorValue {
|
|
208
208
|
}
|
|
@@ -605,7 +605,7 @@ class ListObject {
|
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
else {
|
|
608
|
-
url = this.dataUrl(id);
|
|
608
|
+
url = this.dataUrl(id, null, true);
|
|
609
609
|
}
|
|
610
610
|
url += `${url.indexOf('?') < 0 ? '?' : '&'}language=${lang === 'all' ? '*' : lang}`;
|
|
611
611
|
const [res, err] = await this._client.get(url, offlineOptions);
|
|
@@ -875,7 +875,7 @@ class ListObject {
|
|
|
875
875
|
*
|
|
876
876
|
* @internal
|
|
877
877
|
*/
|
|
878
|
-
dataUrl(instanceId, fp) {
|
|
878
|
+
dataUrl(instanceId, fp, idAsQueryParam = false) {
|
|
879
879
|
let url = '';
|
|
880
880
|
if (this.viewId === '') {
|
|
881
881
|
url = environment.adminHost + '/api/v1/data/' + this.objectApiName;
|
|
@@ -889,7 +889,10 @@ class ListObject {
|
|
|
889
889
|
this.objectApiName;
|
|
890
890
|
}
|
|
891
891
|
if (instanceId) {
|
|
892
|
-
|
|
892
|
+
if (idAsQueryParam)
|
|
893
|
+
url += '/?id=' + encodeURIComponent(instanceId);
|
|
894
|
+
else
|
|
895
|
+
url += '/' + encodeURIComponent(instanceId);
|
|
893
896
|
}
|
|
894
897
|
if (fp) {
|
|
895
898
|
url += `?${fp}`;
|
|
@@ -18404,8 +18407,13 @@ class LocalArrowDataService {
|
|
|
18404
18407
|
arrowTable = objData;
|
|
18405
18408
|
}
|
|
18406
18409
|
else {
|
|
18407
|
-
|
|
18408
|
-
|
|
18410
|
+
if (Array.isArray(objData)) {
|
|
18411
|
+
// convert the json response data to an arrow table
|
|
18412
|
+
arrowTable = Arrow_dom.tableFromJSON(objData);
|
|
18413
|
+
}
|
|
18414
|
+
else {
|
|
18415
|
+
arrowTable = Arrow_dom.tableFromJSON([objData]);
|
|
18416
|
+
}
|
|
18409
18417
|
}
|
|
18410
18418
|
// convert the arrow table to ipc format as we cannot save an arrow table object to indexeddb directly
|
|
18411
18419
|
const ipcData = Arrow_dom.tableToIPC(arrowTable);
|