@m4l/components 0.0.51 → 0.0.52
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.
|
@@ -20,7 +20,7 @@ import "../hook-form/RHFUpload.js";
|
|
|
20
20
|
import { I as IconButton } from "../mui_extended/IconButton/index.js";
|
|
21
21
|
import { I as Icon } from "../Icon/index.js";
|
|
22
22
|
import "../../simplebar.js";
|
|
23
|
-
import { L as LabelMemuItem, b as Actions } from "../CommonActions/components/Actions/index.js";
|
|
23
|
+
import { L as LabelMemuItem, b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.js";
|
|
24
24
|
import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
|
|
25
25
|
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.js";
|
|
26
26
|
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.js";
|
|
@@ -1605,4 +1605,29 @@ const DynamicFilter = (props) => {
|
|
|
1605
1605
|
})
|
|
1606
1606
|
});
|
|
1607
1607
|
};
|
|
1608
|
-
|
|
1608
|
+
function getDynamicFilterComponentsDictionary() {
|
|
1609
|
+
return ["dynamic_filter"].concat(getCommonActionsDictionary());
|
|
1610
|
+
}
|
|
1611
|
+
const defaultDynamicFilterDictionary = {
|
|
1612
|
+
dynamic_filter: {
|
|
1613
|
+
filter_tooltip: "Search",
|
|
1614
|
+
operator_b: "between",
|
|
1615
|
+
operator_e: "=",
|
|
1616
|
+
operator_ne: "!=",
|
|
1617
|
+
operator_gt: ">",
|
|
1618
|
+
operator_gte: ">=",
|
|
1619
|
+
operator_lt: "<",
|
|
1620
|
+
operator_lte: "<=",
|
|
1621
|
+
operator_c: "contains",
|
|
1622
|
+
operator_nc: "not contains",
|
|
1623
|
+
all_fields: "all_fields",
|
|
1624
|
+
operand_true: "true",
|
|
1625
|
+
operand_false: "false",
|
|
1626
|
+
error_operator_required: "Operator required",
|
|
1627
|
+
error_operand_required: "Operand required",
|
|
1628
|
+
error_invalid_date: "Invalid date",
|
|
1629
|
+
error_operand_mustbe_number: "Invalid number",
|
|
1630
|
+
error_filters_no_setted: "Filters not yet set"
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
export { DynamicFilter as D, defaultDynamicFilterDictionary as d, getDynamicFilterComponentsDictionary as g };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
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
|
-
import { D as DataGrid } from "../DataGrid/index.js";
|
|
4
|
+
import { D as DataGrid, g as getGridComponentsDictionary } from "../DataGrid/index.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { R as ReactJson } from "../../react-json-view.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
10
10
|
import { I as Icon } from "../Icon/index.js";
|
|
11
|
-
import { D as DynamicFilter } from "../DynamicFilter/index.js";
|
|
11
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.js";
|
|
12
12
|
const Container$1 = styled("div")(() => ({
|
|
13
13
|
height: "100%",
|
|
14
14
|
width: "100%",
|
|
@@ -264,7 +264,7 @@ function ObjectLogs(props) {
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
function getObjectLogsComponentsDictionary() {
|
|
267
|
-
return ["object_logs"];
|
|
267
|
+
return ["object_logs"].concat(getGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
268
268
|
}
|
|
269
269
|
const defaultObjectLogDictionary = {
|
|
270
270
|
object_logs: {
|
|
@@ -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 * from '../components/DynamicFilter/dictionary';
|
|
11
12
|
export type { FilterFieldApply, RawFilterFieldApply } from '../components/DynamicFilter/types';
|
|
12
13
|
export * from './CommonActions/';
|
|
13
14
|
export * from './CommonActions/dictionary';
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export { C as CompanyLogo } from "./components/CompanyLogo/index.js";
|
|
|
29
29
|
export { B as BooleanFormatter } from "./components/formatters/BooleanFormatter/index.js";
|
|
30
30
|
export { D as DateFormatter } from "./components/formatters/DateFormatter/index.js";
|
|
31
31
|
export { D as DataGrid, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
|
|
32
|
-
export { D as DynamicFilter } from "./components/DynamicFilter/index.js";
|
|
32
|
+
export { D as DynamicFilter, d as defaultDynamicFilterDictionary, g as getDynamicFilterComponentsDictionary } from "./components/DynamicFilter/index.js";
|
|
33
33
|
export { A as ActionCancel } from "./components/CommonActions/components/ActionCancel/index.js";
|
|
34
34
|
export { A as ActionIntro } from "./components/CommonActions/components/ActionIntro/index.js";
|
|
35
35
|
export { A as ActionFormCancel } from "./components/CommonActions/components/ActionFormCancel/index.js";
|