@m4l/components 0.1.30 → 0.1.32
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/components/CommonActions/components/ActionCancel/{index.a57fcfae.js → index.641ea102.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.b8215cd2.js → index.3b9e5121.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.591a8195.js → index.d53e0d31.js} +1 -1
- package/components/CommonActions/components/Actions/{index.2ce05d29.js → index.545d7067.js} +24 -26
- package/components/DataGrid/contexts/DataGridContext/index.d.ts +5 -0
- package/components/DataGrid/contexts/{BaseContext → DataGridContext}/types.d.ts +4 -16
- package/components/DataGrid/contexts/FilterContext/types.d.ts +8 -4
- package/components/DataGrid/hooks/useDataGrid.d.ts +3 -0
- package/components/DataGrid/{index.07162c02.js → index.b6a45f67.js} +335 -311
- package/components/DataGrid/{components → subcomponents}/Actions/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Density/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Filter/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/RowsCount/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/styles.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings/ColumnsConfig/components → subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents}/FormatterColumn/index.d.ts +0 -0
- package/components/DataGrid/{components/Actions/components/Settings → subcomponents/Actions/subcomponents/Settings/subcomponents}/ColumnsConfig/types.d.ts +1 -1
- package/components/DataGrid/{components/Actions/components → subcomponents/Actions/subcomponents}/Settings/types.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Actions/types.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/hooks/getDragHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useFocusRef.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/hooks/useSortColumnsRows.d.ts +1 -1
- package/components/DataGrid/{components → subcomponents}/Table/index.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/Table/styles.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/ActionsColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CheckboxFormatter.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/CustomIcons.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/DraggableHeaderRenderer.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SelectColumn.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/index.d.ts +0 -0
- package/components/DataGrid/{components/Table/components → subcomponents/Table/subcomponents}/SkeletonFormatter/styles.d.ts +0 -0
- package/components/DataGrid/{components → subcomponents}/editors/TextEditor/index.d.ts +0 -0
- package/components/DataGrid/types.d.ts +6 -4
- package/components/DataGrid/utils/getDataGridRowsFromSet.d.ts +1 -0
- package/components/DynamicFilter/{index.31876c9f.js → index.b3b19031.js} +13 -14
- package/components/Icon/{index.619c31c4.js → index.619fa9ad.js} +1 -1
- package/components/Loadable/{index.f5518558.js → index.55b8adb7.js} +2 -3
- package/components/ModalDialog/{index.3e5675c4.js → index.81b8e093.js} +6 -6
- package/components/ObjectLogs/{index.35dbf836.js → index.af1c3382.js} +6 -7
- package/components/PaperForm/{index.ec9cb8c9.js → index.9582ff5e.js} +1 -1
- package/components/Period/{index.111600f2.js → index.9ce96aed.js} +3 -3
- package/components/Resizeable/{index.45995d2b.js → index.d27b0310.js} +1 -1
- package/components/SplitLayout/{index.4032673d.js → index.5a8355d8.js} +1 -1
- package/components/animate/LoadingScreen/index.d.ts +2 -2
- package/components/animate/LoadingScreen/types.d.ts +2 -2
- package/components/animate/PropagateLoader/index.d.ts +2 -0
- package/components/animate/PropagateLoader/index.d5c18992.js +94 -0
- package/components/animate/PropagateLoader/syles.d.ts +2 -0
- package/components/animate/index.d.ts +1 -0
- package/components/formatters/BooleanFormatter/{index.ae70b54f.js → index.81f4ea70.js} +21 -18
- package/components/formatters/DateFormatter/{index.ed73f8ae.js → index.8494575f.js} +4 -4
- package/components/formatters/PointsFormatter/index.d.ts +1 -0
- package/components/formatters/PointsFormatter/types.d.ts +3 -2
- package/components/formatters/UncertaintyFormatter/index.d.ts +1 -0
- package/components/formatters/UncertaintyFormatter/types.d.ts +4 -3
- package/components/formatters/{index.9bd10770.js → index.a0309e3a.js} +52 -55
- package/components/formatters/index.d.ts +2 -2
- package/components/hook-form/RHFDateTime/{index.e70d2de3.js → index.7f1cbd85.js} +0 -1
- package/components/hook-form/RHFPeriod/{index.fa8426ac.js → index.116158c4.js} +1 -1
- package/components/hook-form/RHFTextField/{index.f9aaaa90.js → index.3cb4b35f.js} +1 -1
- package/components/index.d.ts +2 -1
- package/components/mui_extended/Accordion/{index.a02ac6ae.js → index.86b97783.js} +2 -2
- package/components/mui_extended/Button/{index.1d13f53b.js → index.bd85b59c.js} +2 -2
- package/components/mui_extended/IconButton/{index.a321e5cb.js → index.25ff14bd.js} +1 -1
- package/components/mui_extended/LinearProgress/index.c92b9ba9.js +13 -0
- package/components/mui_extended/LinearProgress/index.d.ts +3 -0
- package/components/mui_extended/MenuActions/styles.d.ts +1 -1
- package/components/mui_extended/Pager/{index.72b43352.js → index.a98c43cc.js} +1 -1
- package/components/mui_extended/Popover/{index.028756ac.js → index.f38042fc.js} +5 -8
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.cc3690d3.js → index.9a44cced.js} +4 -5
- package/contexts/RHFormContext/{index.f8c00745.js → index.d88e6e27.js} +0 -1
- package/hooks/useModal/{index.78ee58f3.js → index.2a92d33a.js} +1 -1
- package/index.js +60 -52
- package/node_modules.51fc30d1.js +63 -0
- package/package.json +2 -1
- package/react-data-grid.d46d625e.js +1 -1
- package/{react-draggable.20e95c61.js → react-draggable.a09b624f.js} +4 -4
- package/{react-json-view.f56a7f8e.js → react-json-view.57125fcf.js} +2 -2
- package/{react-resizable.5277deaf.js → react-resizable.be53ee35.js} +5 -5
- package/{react-splitter-layout.7810ac1b.js → react-splitter-layout.8b1655c8.js} +2 -2
- package/utils/{index.214d9542.js → index.f3bfdc22.js} +2 -2
- package/components/DataGrid/contexts/BaseContext/index.d.ts +0 -5
- package/components/DataGrid/hooks/useBase.d.ts +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
var cssUnit = {
|
|
3
|
+
cm: true,
|
|
4
|
+
mm: true,
|
|
5
|
+
in: true,
|
|
6
|
+
px: true,
|
|
7
|
+
pt: true,
|
|
8
|
+
pc: true,
|
|
9
|
+
em: true,
|
|
10
|
+
ex: true,
|
|
11
|
+
ch: true,
|
|
12
|
+
rem: true,
|
|
13
|
+
vw: true,
|
|
14
|
+
vh: true,
|
|
15
|
+
vmin: true,
|
|
16
|
+
vmax: true,
|
|
17
|
+
"%": true
|
|
18
|
+
};
|
|
19
|
+
function parseLengthAndUnit(size) {
|
|
20
|
+
if (typeof size === "number") {
|
|
21
|
+
return {
|
|
22
|
+
value: size,
|
|
23
|
+
unit: "px"
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
var value;
|
|
27
|
+
var valueString = (size.match(/^[0-9.]*/) || "").toString();
|
|
28
|
+
if (valueString.includes(".")) {
|
|
29
|
+
value = parseFloat(valueString);
|
|
30
|
+
} else {
|
|
31
|
+
value = parseInt(valueString, 10);
|
|
32
|
+
}
|
|
33
|
+
var unit = (size.match(/[^0-9]*$/) || "").toString();
|
|
34
|
+
if (cssUnit[unit]) {
|
|
35
|
+
return {
|
|
36
|
+
value,
|
|
37
|
+
unit
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
console.warn("React Spinners: ".concat(size, " is not a valid css value. Defaulting to ").concat(value, "px."));
|
|
41
|
+
return {
|
|
42
|
+
value,
|
|
43
|
+
unit: "px"
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
var createAnimation = function(loaderName, frames, suffix) {
|
|
47
|
+
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
|
|
48
|
+
if (typeof window == "undefined" || !window.document) {
|
|
49
|
+
return animationName;
|
|
50
|
+
}
|
|
51
|
+
var styleEl = document.createElement("style");
|
|
52
|
+
document.head.appendChild(styleEl);
|
|
53
|
+
var styleSheet = styleEl.sheet;
|
|
54
|
+
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");
|
|
55
|
+
if (styleSheet) {
|
|
56
|
+
styleSheet.insertRule(keyFrames, 0);
|
|
57
|
+
}
|
|
58
|
+
return animationName;
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
createAnimation as c,
|
|
62
|
+
parseLengthAndUnit as p
|
|
63
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hookform/resolvers": "^2.9.10",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"react-helmet-async": "^1.3.0",
|
|
12
12
|
"react-hook-form": "^7.33.1",
|
|
13
13
|
"react-router-dom": "6.3.0",
|
|
14
|
+
"react-spinners": "^0.13.8",
|
|
14
15
|
"simplebar-react": "2.4.1",
|
|
15
16
|
"yup": "^0.32.11"
|
|
16
17
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { forwardRef,
|
|
1
|
+
import { forwardRef, createContext, useContext, useState, useRef, useMemo, useImperativeHandle, useCallback, useEffect, useLayoutEffect as useLayoutEffect$1, memo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
4
4
|
function styleInject(css, ref) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from "react";
|
|
2
2
|
import require$$1 from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.
|
|
5
|
+
import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.f3bfdc22.js";
|
|
6
6
|
var cjs = { exports: {} };
|
|
7
7
|
var Draggable$1 = {};
|
|
8
8
|
var DraggableCore$2 = {};
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
18
18
|
value: true
|
|
19
19
|
});
|
|
20
20
|
DraggableCore$2.default = void 0;
|
|
21
|
-
var React = _interopRequireWildcard(
|
|
21
|
+
var React = _interopRequireWildcard(React__default);
|
|
22
22
|
var _propTypes = _interopRequireDefault(require$$1);
|
|
23
23
|
var _reactDom = _interopRequireDefault(require$$2);
|
|
24
24
|
var _domFns = domFns;
|
|
@@ -480,7 +480,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
|
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
exports.default = void 0;
|
|
483
|
-
var React2 = _interopRequireWildcard2(
|
|
483
|
+
var React2 = _interopRequireWildcard2(React__default);
|
|
484
484
|
var _propTypes2 = _interopRequireDefault2(require$$1);
|
|
485
485
|
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
486
486
|
var _clsx2 = _interopRequireDefault2(clsx);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./commonjs.565e6834.js";
|
|
2
|
-
import
|
|
2
|
+
import React__default from "react";
|
|
3
3
|
var main = { exports: {} };
|
|
4
4
|
(function(module, exports) {
|
|
5
5
|
!function(e, t) {
|
|
6
|
-
module.exports = t(
|
|
6
|
+
module.exports = t(React__default);
|
|
7
7
|
}(commonjsGlobal, function(e) {
|
|
8
8
|
return function(e2) {
|
|
9
9
|
var t = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as cjs } from "./react-draggable.
|
|
3
|
-
import { u as utils } from "./utils/index.
|
|
1
|
+
import React__default from "react";
|
|
2
|
+
import { c as cjs } from "./react-draggable.a09b624f.js";
|
|
3
|
+
import { u as utils } from "./utils/index.f3bfdc22.js";
|
|
4
4
|
import require$$1 from "prop-types";
|
|
5
5
|
var reactResizable = { exports: {} };
|
|
6
6
|
var Resizable$1 = {};
|
|
@@ -47,7 +47,7 @@ var resizableProps = {
|
|
|
47
47
|
propTypes.resizableProps = resizableProps;
|
|
48
48
|
Resizable$1.__esModule = true;
|
|
49
49
|
Resizable$1.default = void 0;
|
|
50
|
-
var React$1 = _interopRequireWildcard$1(
|
|
50
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
51
51
|
var _reactDraggable = cjs.exports;
|
|
52
52
|
var _utils = utils;
|
|
53
53
|
var _propTypes$1 = propTypes;
|
|
@@ -335,7 +335,7 @@ Resizable.defaultProps = {
|
|
|
335
335
|
var ResizableBox$2 = {};
|
|
336
336
|
ResizableBox$2.__esModule = true;
|
|
337
337
|
ResizableBox$2.default = void 0;
|
|
338
|
-
var React = _interopRequireWildcard(
|
|
338
|
+
var React = _interopRequireWildcard(React__default);
|
|
339
339
|
var _propTypes = _interopRequireDefault(require$$1);
|
|
340
340
|
var _Resizable = _interopRequireDefault(Resizable$1);
|
|
341
341
|
var _propTypes2 = propTypes;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./commonjs.565e6834.js";
|
|
2
2
|
import require$$1 from "prop-types";
|
|
3
|
-
import
|
|
3
|
+
import React__default from "react";
|
|
4
4
|
var lib = { exports: {} };
|
|
5
5
|
(function(module, exports) {
|
|
6
6
|
!function(e, t) {
|
|
7
|
-
module.exports = t(require$$1,
|
|
7
|
+
module.exports = t(require$$1, React__default);
|
|
8
8
|
}(window, function(e, t) {
|
|
9
9
|
return function(e2) {
|
|
10
10
|
var t2 = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from "react";
|
|
2
2
|
const getPaletteColor = function(palette, s) {
|
|
3
3
|
s = s.replace(/\[(\w+)\]/g, ".$1");
|
|
4
4
|
s = s.replace(/^\./, "");
|
|
@@ -518,7 +518,7 @@ function log() {
|
|
|
518
518
|
var utils = {};
|
|
519
519
|
utils.__esModule = true;
|
|
520
520
|
utils.cloneElement = cloneElement;
|
|
521
|
-
var _react = _interopRequireDefault(
|
|
521
|
+
var _react = _interopRequireDefault(React__default);
|
|
522
522
|
function _interopRequireDefault(obj) {
|
|
523
523
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
524
524
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseContextProps, BaseProviderProps } from './types';
|
|
3
|
-
declare const BaseContext: import("react").Context<BaseContextProps>;
|
|
4
|
-
declare function BaseProvider<TRow, TSummaryRow>(props: BaseProviderProps<TRow, TSummaryRow>): JSX.Element;
|
|
5
|
-
export { BaseProvider, BaseContext };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useBase: () => import("../contexts/BaseContext/types").BaseContextProps;
|