@m4l/components 0.0.31 → 0.0.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.
- package/dist/components/DynamicFilter/index.js +2 -2
- package/dist/components/ScrollBar/index.d.ts +2 -2
- package/dist/components/ScrollBar/index.js +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/simplebar.js +1 -1
- package/dist/vendor.js +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { S as ScrollBar } from "../ScrollBar/index.js";
|
|
1
2
|
import { styled } from "@mui/material/styles";
|
|
2
3
|
import { useRef, useState, useMemo, useCallback, useEffect, createContext, useContext } from "react";
|
|
3
4
|
import { useModuleDictionary, voidFunction, useHostTools, useEnvironment, useFlagsPresent } from "@m4l/core";
|
|
@@ -23,7 +24,6 @@ import { format } from "date-fns";
|
|
|
23
24
|
import { I as IconButton } from "../mui_extended/IconButton/index.js";
|
|
24
25
|
import { I as Icon } from "../Icon/index.js";
|
|
25
26
|
import "../../simplebar.js";
|
|
26
|
-
import { S as Scrollbar } from "../ScrollBar/index.js";
|
|
27
27
|
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.js";
|
|
28
28
|
import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
|
|
29
29
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -937,7 +937,7 @@ function ApplyedFilters() {
|
|
|
937
937
|
style: {
|
|
938
938
|
width: "100%"
|
|
939
939
|
},
|
|
940
|
-
children: /* @__PURE__ */ jsx(
|
|
940
|
+
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
941
941
|
children: /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
942
942
|
id: "WrapperApplyedFilters",
|
|
943
943
|
children: [...applyedFilters].sort((a, b) => a.isSetted === b.isSetted ? 0 : a.isSetted ? -1 : 1).reverse().map((filter) => /* @__PURE__ */ jsx(ApplyedFilter, {
|
|
@@ -2,5 +2,5 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
children?: ReactElement;
|
|
4
4
|
}
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export declare function ScrollBar({ children }: Props): JSX.Element;
|
|
6
|
+
export default ScrollBar;
|
|
@@ -29,7 +29,7 @@ const SimpleBarStyle = styled(SimpleBar)(({
|
|
|
29
29
|
zIndex: "inherit"
|
|
30
30
|
}
|
|
31
31
|
}));
|
|
32
|
-
function
|
|
32
|
+
function ScrollBar({
|
|
33
33
|
children
|
|
34
34
|
}) {
|
|
35
35
|
const userAgent = typeof navigator === "undefined" ? "SSR" : navigator.userAgent;
|
|
@@ -49,4 +49,4 @@ function Scrollbar({
|
|
|
49
49
|
})
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
export {
|
|
52
|
+
export { ScrollBar as S };
|
|
@@ -8,6 +8,7 @@ export type { Column } from 'react-data-grid';
|
|
|
8
8
|
export type { RowKey } from '../components/DataGrid/types';
|
|
9
9
|
export { getGridComponentsDictionary } from '../components/DataGrid/dictionary';
|
|
10
10
|
export * from '../components/DynamicFilter';
|
|
11
|
+
export type { FilterFieldApply, RawFilterFieldApply } from '../components/DynamicFilter/types';
|
|
11
12
|
export * from '../components/FormActions';
|
|
12
13
|
export * from '../components/FormActions/dictionary';
|
|
13
14
|
export * from '../components/Icon';
|
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsCom
|
|
|
41
41
|
export { P as PaperForm } from "./components/PaperForm/index.js";
|
|
42
42
|
export { P as PropertyValue } from "./components/PropertyValue/index.js";
|
|
43
43
|
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
44
|
-
|
|
44
|
+
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
45
45
|
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|
|
46
46
|
export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
|
|
47
47
|
export { u as useModal } from "./hooks/useModal/index.js";
|
package/dist/simplebar.js
CHANGED
|
@@ -5,7 +5,6 @@ import { l as lodash_throttle, a as lodash_debounce, b as lodash_memoize } from
|
|
|
5
5
|
import { R as ResizeObserver } from "./juggle.js";
|
|
6
6
|
import { c as canUseDom } from "./can-use-dom.js";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
const simplebar_min = /* @__PURE__ */ (() => '[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}\n')();
|
|
9
8
|
function getElementWindow(element) {
|
|
10
9
|
if (!element || !element.ownerDocument || !element.ownerDocument.defaultView) {
|
|
11
10
|
return window;
|
|
@@ -847,4 +846,5 @@ SimpleBar.propTypes = {
|
|
|
847
846
|
scrollableNodeProps: PropTypes.object,
|
|
848
847
|
tag: PropTypes.string
|
|
849
848
|
};
|
|
849
|
+
const simplebar_min = /* @__PURE__ */ (() => '[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}\n')();
|
|
850
850
|
export { SimpleBar as S };
|
package/dist/vendor.js
CHANGED
|
@@ -30,10 +30,10 @@ import "./components/DataGrid/index.js";
|
|
|
30
30
|
import "react-dnd";
|
|
31
31
|
import "react-dnd-html5-backend";
|
|
32
32
|
import "date-fns";
|
|
33
|
+
import "./components/ScrollBar/index.js";
|
|
33
34
|
import "./components/DynamicFilter/index.js";
|
|
34
35
|
import "./components/Icon/index.js";
|
|
35
36
|
import "./simplebar.js";
|
|
36
|
-
import "./components/ScrollBar/index.js";
|
|
37
37
|
import "yup";
|
|
38
38
|
import "./components/FormActions/index.js";
|
|
39
39
|
import "./react-draggable.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.34",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"@hookform/resolvers": "^2.9.5",
|
|
23
23
|
"@m4l/core": "^0.0.32",
|
|
24
|
-
"@m4l/graphics": "^0.0.
|
|
24
|
+
"@m4l/graphics": "^0.0.24",
|
|
25
25
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
26
26
|
"@mui/material": "^5.8.7",
|
|
27
27
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@emotion/styled": "^11.9.3",
|
|
44
44
|
"@hookform/resolvers": "^2.9.5",
|
|
45
45
|
"@m4l/core": "^0.0.32",
|
|
46
|
-
"@m4l/graphics": "^0.0.
|
|
46
|
+
"@m4l/graphics": "^0.0.24",
|
|
47
47
|
"@mui/lab": "^5.0.0-alpha.89",
|
|
48
48
|
"@mui/material": "^5.8.7",
|
|
49
49
|
"@mui/x-date-pickers": "^5.0.0-beta.0",
|