@dexteel/mesf-core 7.15.1 → 7.15.3

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "7.15.1"
2
+ ".": "7.15.3"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.15.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.15.2...@dexteel/mesf-core-v7.15.3) (2026-03-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Tags Tree:** Use ParentTagFolderId or ParentTagId. ([9528fdc](https://github.com/dexteel/mesf-core-frontend/commit/9528fdcc1a8aa865780ddda0dd6ad9946def2674))
9
+ * **Trending V2:** Fix infinite loading when views is empty. ([84a79b8](https://github.com/dexteel/mesf-core-frontend/commit/84a79b8cd53608c0e39bff01e01efb01c82fa5d8))
10
+
11
+ ## [7.15.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.15.1...@dexteel/mesf-core-v7.15.2) (2026-03-06)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * **Context Menu:** Fix zIndex to show it above modals. ([7e9b905](https://github.com/dexteel/mesf-core-frontend/commit/7e9b9051079cfe3bd6e193713bc89c524ed5b10d))
17
+
3
18
  ## [7.15.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v7.15.0...@dexteel/mesf-core-v7.15.1) (2026-03-04)
4
19
 
5
20
 
package/dist/index.esm.js CHANGED
@@ -269,7 +269,7 @@ const ContextMenu$1 = ({ show, position, options }) => {
269
269
  width: "auto",
270
270
  height: "auto",
271
271
  margin: "0",
272
- zIndex: 1,
272
+ zIndex: (theme) => theme.zIndex.modal + 1,
273
273
  listStyle: "none",
274
274
  boxShadow: "0 0 20px 0 #ccc",
275
275
  "& .MuiMenuItem-root": {
@@ -11801,9 +11801,10 @@ const NotificationSnackBar = ({ message, onHide = () => { }, severity = "success
11801
11801
  function buildTagsTreeV2(data) {
11802
11802
  const tagsForTree = [];
11803
11803
  data.forEach((el) => {
11804
+ var _a, _b;
11804
11805
  const tagForTree = {
11805
11806
  id: el.TagId,
11806
- parent: el.ParentTagFolderId || 0,
11807
+ parent: (_b = (_a = el.ParentTagFolderId) !== null && _a !== void 0 ? _a : el.ParentTagId) !== null && _b !== void 0 ? _b : 0,
11807
11808
  text: el.TagName,
11808
11809
  data: el,
11809
11810
  droppable: el.TagTypeCode === "F",
@@ -13153,6 +13154,12 @@ const TagsTableV2 = () => {
13153
13154
  // Handler for context menu on the table
13154
13155
  const handleContextMenu = useCallback((e) => {
13155
13156
  var _a;
13157
+ if (tagsTreeModalOpen ||
13158
+ bitSelectorModalOpen ||
13159
+ saveAsViewModalOpen ||
13160
+ loadViewOpen) {
13161
+ return;
13162
+ }
13156
13163
  e.preventDefault();
13157
13164
  // Find the closest row element
13158
13165
  const target = e.target;
@@ -13174,7 +13181,13 @@ const TagsTableV2 = () => {
13174
13181
  }
13175
13182
  // Right-clicked on empty table area - pass null to show only general options
13176
13183
  showContextMenu(e, null, "chartContextV2");
13177
- }, [showContextMenu]);
13184
+ }, [
13185
+ showContextMenu,
13186
+ tagsTreeModalOpen,
13187
+ bitSelectorModalOpen,
13188
+ saveAsViewModalOpen,
13189
+ loadViewOpen,
13190
+ ]);
13178
13191
  // Calculate cursor data values for each tag
13179
13192
  const cursorValues = useMemo(() => {
13180
13193
  var _a, _b;
@@ -15075,7 +15088,7 @@ const TrendingsPageV2 = () => {
15075
15088
  // Fetch views
15076
15089
  const { data: views, isLoading: viewsLoading, isError: viewsIsError, error: viewsError, isSuccess: viewSuccess, } = useSearchViews({ autoRefresh });
15077
15090
  // Fetch view tags
15078
- const { data: viewTagsData, isLoading: viewTagsLoading, isError: viewTagsIsError, error: viewTagsError, isSuccess: viewTagsSuccess, } = useSearchViewTags({ viewId });
15091
+ const { data: viewTagsData, isLoading: viewTagsLoading, isFetching: viewTagsFetching, isError: viewTagsIsError, error: viewTagsError, isSuccess: viewTagsSuccess, } = useSearchViewTags({ viewId });
15079
15092
  // Memoize tagIds for series query
15080
15093
  // Tags are sorted in DESCENDING order to match TrendingChartV2 processing
15081
15094
  const tagIds = useMemo(() => Object.values(viewTags)
@@ -15112,7 +15125,7 @@ const TrendingsPageV2 = () => {
15112
15125
  return stableTagIdsRef.current;
15113
15126
  }, [realTagIds, timeScopeStart, timeScopeEnd]);
15114
15127
  // Fetch series data using stable query key
15115
- const { data: series, isLoading: seriesLoading, isError: seriesIsError, error: seriesError, } = useSearchSeries({
15128
+ const { data: series, isLoading: seriesLoading, isFetching: seriesFetching, isError: seriesIsError, error: seriesError, } = useSearchSeries({
15116
15129
  start: timeScopeStart.getTime(),
15117
15130
  end: timeScopeEnd.getTime(),
15118
15131
  tagIds: queryTagIds,
@@ -15316,7 +15329,7 @@ const TrendingsPageV2 = () => {
15316
15329
  seriesError,
15317
15330
  seriesIsError,
15318
15331
  ]);
15319
- const isLoading = viewsLoading || viewTagsLoading;
15332
+ const isLoading = viewsLoading || (viewTagsLoading && viewTagsFetching);
15320
15333
  return (React__default.createElement(React__default.Fragment, null,
15321
15334
  React__default.createElement(HelmetDexteel, { title: "Trendings" }),
15322
15335
  React__default.createElement("div", { style: {
@@ -15353,7 +15366,7 @@ const TrendingsPageV2 = () => {
15353
15366
  React__default.createElement(Group$1, { orientation: "vertical", style: { width: "100%", height: "100%" } },
15354
15367
  React__default.createElement(Panel, { defaultSize: 80, minSize: 20 },
15355
15368
  React__default.createElement("div", { style: { height: "100%", width: "100%" } },
15356
- React__default.createElement(TrendingChartV2, { customOptions: chartOptions, series: filteredSeries, isLoading: seriesLoading, onChartReady: setChartInstance, dataLoadedTrigger: dataLoadedTrigger }))),
15369
+ React__default.createElement(TrendingChartV2, { customOptions: chartOptions, series: filteredSeries, isLoading: seriesLoading && seriesFetching, onChartReady: setChartInstance, dataLoadedTrigger: dataLoadedTrigger }))),
15357
15370
  React__default.createElement(Separator, { style: {
15358
15371
  height: "10px",
15359
15372
  background: "#f0f0f0",