@dexteel/mesf-core 4.8.6 → 4.8.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.
- package/CHANGELOG.md +2 -0
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -10251,7 +10251,7 @@ var ButtonWithLoading = function (_a) {
|
|
|
10251
10251
|
children));
|
|
10252
10252
|
};
|
|
10253
10253
|
|
|
10254
|
-
var
|
|
10254
|
+
var getIhPath = function () { return localStorage.getItem('ihPath') || "[mssql2022].[IH_100020].[ih]"; };
|
|
10255
10255
|
var saveTagDefaults = function (TagId, Alias, Color, MinScale, MaxScale, Unit) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10256
10256
|
var apiService, parameters, resp;
|
|
10257
10257
|
return __generator(this, function (_a) {
|
|
@@ -10265,7 +10265,7 @@ var saveTagDefaults = function (TagId, Alias, Color, MinScale, MaxScale, Unit) {
|
|
|
10265
10265
|
parameters.push({ name: "MinScale", value: MinScale });
|
|
10266
10266
|
parameters.push({ name: "MaxScale", value: MaxScale });
|
|
10267
10267
|
parameters.push({ name: "Unit", value: Unit });
|
|
10268
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10268
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[SaveTagDefaults]", parameters)];
|
|
10269
10269
|
case 1:
|
|
10270
10270
|
resp = _a.sent();
|
|
10271
10271
|
return [2 /*return*/, resp];
|
|
@@ -10281,7 +10281,7 @@ var getViews = function (Search) { return __awaiter(void 0, void 0, void 0, func
|
|
|
10281
10281
|
apiService = new MESApiService();
|
|
10282
10282
|
parameters = [];
|
|
10283
10283
|
parameters.push({ name: "Search", value: Search });
|
|
10284
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10284
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[GetViews]", parameters)];
|
|
10285
10285
|
case 1:
|
|
10286
10286
|
resp = _a.sent();
|
|
10287
10287
|
return [2 /*return*/, resp];
|
|
@@ -10298,7 +10298,7 @@ var upsertView = function (ViewId, ViewName, isPublic) { return __awaiter(void 0
|
|
|
10298
10298
|
parameters.push({ name: "ViewId", value: ViewId });
|
|
10299
10299
|
parameters.push({ name: "ViewName", value: ViewName });
|
|
10300
10300
|
parameters.push({ name: "isPublic", value: isPublic });
|
|
10301
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10301
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[UpsertView]", parameters)];
|
|
10302
10302
|
case 1:
|
|
10303
10303
|
resp = _a.sent();
|
|
10304
10304
|
return [2 /*return*/, resp];
|
|
@@ -10313,7 +10313,7 @@ var deleteView = function (ViewId) { return __awaiter(void 0, void 0, void 0, fu
|
|
|
10313
10313
|
apiService = new MESApiService();
|
|
10314
10314
|
parameters = [];
|
|
10315
10315
|
parameters.push({ name: "ViewId", value: ViewId });
|
|
10316
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10316
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[DeleteView]", parameters)];
|
|
10317
10317
|
case 1:
|
|
10318
10318
|
resp = _a.sent();
|
|
10319
10319
|
return [2 /*return*/, resp];
|
|
@@ -10329,7 +10329,7 @@ var getViewTags = function (ViewId) { return __awaiter(void 0, void 0, void 0, f
|
|
|
10329
10329
|
apiService = new MESApiService();
|
|
10330
10330
|
parameters = [];
|
|
10331
10331
|
parameters.push({ name: "ViewId", value: ViewId });
|
|
10332
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10332
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[GetViewTags]", parameters)];
|
|
10333
10333
|
case 1:
|
|
10334
10334
|
resp = _a.sent();
|
|
10335
10335
|
return [2 /*return*/, resp];
|
|
@@ -10351,7 +10351,7 @@ var upsertViewTag = function (ViewId, TagId, Color, MinScale, MaxScale, IsVisibl
|
|
|
10351
10351
|
parameters.push({ name: "IsVisible", value: IsVisible });
|
|
10352
10352
|
parameters.push({ name: "IsAutoScale", value: IsAutoScale });
|
|
10353
10353
|
parameters.push({ name: "Unit", value: Unit });
|
|
10354
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10354
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[UpsertViewTag]", parameters)];
|
|
10355
10355
|
case 1:
|
|
10356
10356
|
resp = _a.sent();
|
|
10357
10357
|
return [2 /*return*/, resp];
|
|
@@ -10366,7 +10366,7 @@ var deleteAllViewTagsFromView = function (ViewId) { return __awaiter(void 0, voi
|
|
|
10366
10366
|
apiService = new MESApiService();
|
|
10367
10367
|
parameters = [];
|
|
10368
10368
|
parameters.push({ name: "ViewId", value: ViewId });
|
|
10369
|
-
return [4 /*yield*/, apiService.callV2(
|
|
10369
|
+
return [4 /*yield*/, apiService.callV2(getIhPath() + ".[DeleteAllViewTagsFromView]", parameters)];
|
|
10370
10370
|
case 1:
|
|
10371
10371
|
resp = _a.sent();
|
|
10372
10372
|
return [2 /*return*/, resp];
|