@dexteel/mesf-core 4.11.2 → 4.12.0
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
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## [4.12.0](https://github.com/dexteel/mesf-core-frontend/compare/v4.11.1...v4.12.0) (2024-05-14)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
###
|
|
8
|
+
### Features
|
|
9
9
|
|
|
10
|
-
* **
|
|
10
|
+
* **Time Zones:** expose timezone from TimeService ([a3ca37c](https://github.com/dexteel/mesf-core-frontend/commit/a3ca37c12f7cadf5357de9eeba30caa59d6071a4))
|
|
11
11
|
|
|
12
12
|
### [4.11.1](https://github.com/dexteel/mesf-core-frontend/compare/v4.11.0...v4.11.1) (2024-05-05)
|
|
13
13
|
|
package/dist/index.esm.js
CHANGED
|
@@ -4704,29 +4704,28 @@ var useAssetCodes = function () {
|
|
|
4704
4704
|
}
|
|
4705
4705
|
// Use our mapping to locate the parent element in our data array
|
|
4706
4706
|
var parentEl = nodes[idMapping[el.parentId]];
|
|
4707
|
-
// Handle the case where the element has no parent
|
|
4708
|
-
if (!parentEl) {
|
|
4709
|
-
console.log(el);
|
|
4710
|
-
return;
|
|
4711
|
-
}
|
|
4712
4707
|
// Add our current el to its parent's `children` array
|
|
4713
|
-
|
|
4714
|
-
parentEl['children'] = [];
|
|
4715
|
-
}
|
|
4716
|
-
parentEl['children'] = __spreadArray(__spreadArray([], (parentEl['children'] || []), true), [el], false);
|
|
4708
|
+
parentEl.children = __spreadArray(__spreadArray([], (parentEl.children || []), true), [el], false);
|
|
4717
4709
|
});
|
|
4718
4710
|
setAssetCodes(root);
|
|
4719
4711
|
};
|
|
4720
4712
|
var loadFilterAssets = function () {
|
|
4721
|
-
var
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4713
|
+
var mydataSource = [];
|
|
4714
|
+
allAssets.forEach(function (row) {
|
|
4715
|
+
var code = TransformAssetCodeModel(row);
|
|
4716
|
+
mydataSource = __spreadArray(__spreadArray([], mydataSource, true), [code], false);
|
|
4717
|
+
});
|
|
4718
|
+
buildTreeAssets(mydataSource);
|
|
4719
|
+
};
|
|
4720
|
+
var TransformAssetCodeModel = function (data) {
|
|
4721
|
+
var model = {
|
|
4722
|
+
id: data.AssetId,
|
|
4723
|
+
parentId: data.ParentAssetId,
|
|
4724
|
+
name: data.AssetName,
|
|
4725
|
+
isLeaf: data.isLeaf,
|
|
4726
|
+
isActive: true
|
|
4727
|
+
};
|
|
4728
|
+
return model;
|
|
4730
4729
|
};
|
|
4731
4730
|
return { loadFilterAssets: loadFilterAssets };
|
|
4732
4731
|
};
|
|
@@ -7351,8 +7350,12 @@ var TimeService = /** @class */ (function () {
|
|
|
7351
7350
|
return '';
|
|
7352
7351
|
}
|
|
7353
7352
|
};
|
|
7353
|
+
TimeService.prototype.getServerTimeZone = function () {
|
|
7354
|
+
return this.timeZone;
|
|
7355
|
+
};
|
|
7354
7356
|
return TimeService;
|
|
7355
7357
|
}());
|
|
7358
|
+
var dxtServerTimeZone = function () { return TimeService.getInstance().getServerTimeZone; };
|
|
7356
7359
|
var dxtToUTC = TimeService.getInstance().toUTC;
|
|
7357
7360
|
var dxtToLocalServerTime = TimeService.getInstance().toLocalServerTime;
|
|
7358
7361
|
|
|
@@ -11355,5 +11358,5 @@ var areaSelector = /*#__PURE__*/Object.freeze({
|
|
|
11355
11358
|
AreaSelector: AreaSelector
|
|
11356
11359
|
});
|
|
11357
11360
|
|
|
11358
|
-
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HorizontalTextControl, IntegerFormatter, Login, Logout, LongFilterPanel, MESApiService, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, NumericTextControl, SimplePasswordControl, SimpleSelectorControl, SimpleTextAreaControl, SimpleTextControl, TimeFormatter, TimeService, TreePickerControl, TrendingsPage, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, deleteUser, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getProfiles, getShiftStyle, getTokenFromLS, getUsers, renewToken, setPassword, setProfilesToUser, upsertUser, useAssetContext, useToken, useUTLSettingsContext, useUserContext };
|
|
11361
|
+
export { Account, AssetProvider, AuthContext, AuthProvider, BarChartControl, ButtonWithLoading, ChangePassword, CheckBoxControl, Configuration$1 as Configuration, CurrencyFormatter, DataGridControl, DateFormatter, DateTimeFormatter, ErrorModal, FetchError, FilterPanel, GenericPanel, GenericTable, GetCrewColor, GetShiftColor, HorizontalTextControl, IntegerFormatter, Login, Logout, LongFilterPanel, MESApiService, MESFMain, MESSAGE_API, MESSAGE_ERRORS, MasterDetailPanel, MesfModal, ModalTreeFilterControl, MultipleSelectorControl, NumberFormatter, NumericTextControl, SimplePasswordControl, SimpleSelectorControl, SimpleTextAreaControl, SimpleTextControl, TimeFormatter, TimeService, TreePickerControl, TrendingsPage, USER_LABELS, UTLSettingsProvider, UploadFileControl, UserProvider, axiosInstance, deleteUser, dxtServerTimeZone, dxtToLocalServerTime, dxtToUTC, formatNumber, getAuthTypes, getCrewStyle, getDataUser, getError, getProfiles, getShiftStyle, getTokenFromLS, getUsers, renewToken, setPassword, setProfilesToUser, upsertUser, useAssetContext, useToken, useUTLSettingsContext, useUserContext };
|
|
11359
11362
|
//# sourceMappingURL=index.esm.js.map
|