@m4l/components 0.1.33 → 0.1.34

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.
@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback, useMemo } from "react";
2
2
  import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
3
3
  import { styled } from "@mui/material/styles";
4
4
  import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.b6a45f67.js";
5
- import { D as DateFormatter } from "../formatters/DateFormatter/index.199172d2.js";
5
+ import { D as DateFormatter } from "../formatters/DateFormatter/index.e676b096.js";
6
6
  import { Tooltip, IconButton } from "@mui/material";
7
7
  import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { R as ReactJson } from "../../react-json-view.57125fcf.js";
@@ -1,7 +1,7 @@
1
1
  import { useModuleDictionary, useEnvironment, getPropertyByString } from "@m4l/core";
2
2
  import { useMemo } from "react";
3
3
  import { I as Icon } from "../../Icon/index.619fa9ad.js";
4
- import { F as FragmentJSXComponent } from "../index.e154f663.js";
4
+ import { F as FragmentJSXComponent } from "../index.29626867.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import "@m4l/graphics";
7
7
  function BooleanFormatter(props) {
@@ -4,7 +4,7 @@ import "../../Icon/index.619fa9ad.js";
4
4
  import "@mui/material/styles";
5
5
  import { jsx, Fragment } from "react/jsx-runtime";
6
6
  import { useFormatter } from "@m4l/graphics";
7
- import { F as FragmentJSXComponent } from "../index.e154f663.js";
7
+ import { F as FragmentJSXComponent } from "../index.29626867.js";
8
8
  function DateFormatter(props) {
9
9
  const {
10
10
  presentationType,
@@ -15,9 +15,9 @@ function FragmentJSXComponent(props) {
15
15
  function getUncertaintyFormat(obProps, fieldValue, fieldSymbol, fieldUnit) {
16
16
  let result = "";
17
17
  const ranges = getPropertyByString(obProps, fieldValue);
18
- const symbol = getPropertyByString(obProps, fieldSymbol) || "";
19
- const unit = getPropertyByString(obProps, fieldUnit) || "";
20
- if (ranges === void 0 || ranges === null || !Array.isArray(ranges)) {
18
+ const symbol = getPropertyByString(obProps, fieldSymbol);
19
+ const unit = getPropertyByString(obProps, fieldUnit);
20
+ if (ranges === void 0 || ranges === null || !Array.isArray(ranges) || typeof symbol !== "string" || typeof unit !== "string") {
21
21
  return "[]";
22
22
  }
23
23
  ranges.map((obj, idx) => {
package/index.js CHANGED
@@ -47,7 +47,7 @@ import "./react-draggable.a09b624f.js";
47
47
  import { M as M3, d as d3, g as g7 } from "./components/ModalDialog/index.81b8e093.js";
48
48
  import { R as R8 } from "./components/Resizeable/index.d27b0310.js";
49
49
  import { N as N2, d as d4, g as g8 } from "./components/NoItemSelected/index.46d2f632.js";
50
- import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.ca9cd589.js";
50
+ import { O, d as d5, g as g9 } from "./components/ObjectLogs/index.0da69eed.js";
51
51
  import "./react-json-view.57125fcf.js";
52
52
  import { P as P5 } from "./components/PaperForm/index.9582ff5e.js";
53
53
  import { H } from "./components/Page/index.4237c241.js";
@@ -70,9 +70,9 @@ import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js"
70
70
  import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
71
71
  import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
72
72
  import { T as T3 } from "./components/mui_extended/Typography/index.e5494696.js";
73
- import { B as B4, c } from "./components/formatters/BooleanFormatter/index.224d5c4e.js";
74
- import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.199172d2.js";
75
- import { P as P7, b as b4, U, h, f, e, d as d6, a as a5, c as c3, g as g11 } from "./components/formatters/index.e154f663.js";
73
+ import { B as B4, c } from "./components/formatters/BooleanFormatter/index.90c29656.js";
74
+ import { D as D3, c as c2 } from "./components/formatters/DateFormatter/index.e676b096.js";
75
+ import { P as P7, b as b4, U, h, f, e, d as d6, a as a5, c as c3, g as g11 } from "./components/formatters/index.29626867.js";
76
76
  import { A as A3 } from "./components/CommonActions/components/ActionCancel/index.641ea102.js";
77
77
  import { A as A4 } from "./components/CommonActions/components/ActionIntro/index.d53e0d31.js";
78
78
  import { A as A5 } from "./components/CommonActions/components/ActionFormCancel/index.3b9e5121.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@hookform/resolvers": "^2.9.10",