@m4l/components 0.0.5 → 0.0.6
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/DataGrid/dictionary.d.ts +3 -0
- package/dist/components/DataGrid/index.js +35 -2
- package/dist/components/FormActions/index.js +7 -1
- package/dist/components/ObjectLogs/dictionary.d.ts +3 -0
- package/dist/components/ObjectLogs/index.js +18 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/mui_extended/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -7,11 +7,12 @@ import { SvgIcon, Checkbox, InputBase, Skeleton } from "@mui/material";
|
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { voidFunction, useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
9
9
|
import { MenuActions } from "@mui_extended";
|
|
10
|
-
import { P as Pager } from "../mui_extended/Pager/index.js";
|
|
10
|
+
import { P as Pager, g as getPagerComponentsDictionary, d as defaultPagerDictionary } from "../mui_extended/Pager/index.js";
|
|
11
11
|
import { I as IconButton } from "../mui_extended/IconButton/index.js";
|
|
12
12
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
13
13
|
import { M as MenuActions$1 } from "../mui_extended/MenuActions/index.js";
|
|
14
14
|
import { u as useResponsiveDesktop } from "../../vendor.js";
|
|
15
|
+
import { g as getModalDialogComponentsDictionary, d as defaultModalDialogDictionary } from "../ModalDialog/index.js";
|
|
15
16
|
import { format } from "date-fns";
|
|
16
17
|
const WrapperGrid$1 = styled("div")(() => ({
|
|
17
18
|
display: "flex",
|
|
@@ -1585,6 +1586,38 @@ function DataGrid(props) {
|
|
|
1585
1586
|
})
|
|
1586
1587
|
});
|
|
1587
1588
|
}
|
|
1589
|
+
function getGridComponentsDictionary() {
|
|
1590
|
+
return ["grid"].concat(getPagerComponentsDictionary()).concat(getModalDialogComponentsDictionary());
|
|
1591
|
+
}
|
|
1592
|
+
const defaultGridDictionary = {
|
|
1593
|
+
grid: {
|
|
1594
|
+
actions: "Actions",
|
|
1595
|
+
settings_tooltip: "Settings",
|
|
1596
|
+
settings_sel_columns: "Select columns",
|
|
1597
|
+
settings_column_name: "Name",
|
|
1598
|
+
settings_column_position: "Position",
|
|
1599
|
+
settings_column_visible: "Visible",
|
|
1600
|
+
settings_column_frozen: "Frozen",
|
|
1601
|
+
settings_move_first: "Move first",
|
|
1602
|
+
settings_move_up: "Move up",
|
|
1603
|
+
settings_move_last: "Move first",
|
|
1604
|
+
settings_move_down: "Move down",
|
|
1605
|
+
settings_visible_all: "Visible all",
|
|
1606
|
+
settings_no_visible_all: "Invisible all",
|
|
1607
|
+
settings_restore: "Restore",
|
|
1608
|
+
density_tooltip: "Density",
|
|
1609
|
+
density_compact: "Compact",
|
|
1610
|
+
density_standard: "Standard",
|
|
1611
|
+
density_confortable: "Confortable",
|
|
1612
|
+
filter_holder: "Filter",
|
|
1613
|
+
filter_show: "Show filters",
|
|
1614
|
+
filter_hide: "Hide filters",
|
|
1615
|
+
rows: "Rows",
|
|
1616
|
+
rows_per_page: "Rows per page"
|
|
1617
|
+
},
|
|
1618
|
+
...defaultPagerDictionary,
|
|
1619
|
+
...defaultModalDialogDictionary
|
|
1620
|
+
};
|
|
1588
1621
|
function DateFormatter(props) {
|
|
1589
1622
|
const {
|
|
1590
1623
|
presentationType,
|
|
@@ -1620,4 +1653,4 @@ const initialPagerState = {
|
|
|
1620
1653
|
rowsPerPage: 25,
|
|
1621
1654
|
totalRecords: 0
|
|
1622
1655
|
};
|
|
1623
|
-
export { DateFormatter as D, DataGrid as a, initialPagerState as i };
|
|
1656
|
+
export { DateFormatter as D, DataGrid as a, defaultGridDictionary as d, getGridComponentsDictionary as g, initialPagerState as i };
|
|
@@ -41,4 +41,10 @@ const FormActions = (props) => {
|
|
|
41
41
|
function getActionnsComponentsDictionary() {
|
|
42
42
|
return ["actions"];
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
const defaultActionsDictionary = {
|
|
45
|
+
actions: {
|
|
46
|
+
action_cancel: "Cancel",
|
|
47
|
+
action_accept: "Intro"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export { FormActions as F, defaultActionsDictionary as d, getActionnsComponentsDictionary as g };
|
|
@@ -280,4 +280,21 @@ function ObjectLogs(props) {
|
|
|
280
280
|
})]
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
function getObjectLogsComponentsDictionary() {
|
|
284
|
+
return ["object_logs"];
|
|
285
|
+
}
|
|
286
|
+
const defaultObjectLogDictionary = {
|
|
287
|
+
object_logs: {
|
|
288
|
+
start_date: "Start date",
|
|
289
|
+
end_date: "End date",
|
|
290
|
+
search: "Search",
|
|
291
|
+
date_time: "Date time",
|
|
292
|
+
user: "User",
|
|
293
|
+
module: "Module",
|
|
294
|
+
privilege_name: "Privilege",
|
|
295
|
+
log_resume: "Log",
|
|
296
|
+
log_detail: "Detail",
|
|
297
|
+
ip: "Ip"
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
export { ObjectLogs as O, defaultObjectLogDictionary as d, getObjectLogsComponentsDictionary as g };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export * from '../components/mui_extended';
|
|
2
2
|
export * from '../components/DataGrid';
|
|
3
|
+
export * from '../components/DataGrid/dictionary';
|
|
3
4
|
export * from '../components/ObjectLogs';
|
|
5
|
+
export * from '../components/ObjectLogs/dictionary';
|
|
4
6
|
export * from '../components/FormActions';
|
|
7
|
+
export * from '../components/FormActions/dictionary';
|
|
5
8
|
export * from '../components/ModalDialog';
|
|
6
9
|
export * from '../components/ModalDialog/dictionary';
|
|
7
10
|
export * from '../components/Resizeable';
|
|
@@ -6,7 +6,7 @@ export type { TLink } from './Breadcrumbs/types';
|
|
|
6
6
|
export { default as MenuActions } from './MenuActions';
|
|
7
7
|
export type { MenuAction, ComponentActionProps } from './MenuActions/types';
|
|
8
8
|
export { default as Pager } from './Pager';
|
|
9
|
-
export
|
|
9
|
+
export * from './Pager/dicctionary';
|
|
10
10
|
export type { PagerProps } from './Pager/types';
|
|
11
11
|
declare module '@mui/material/styles/createPalette' {
|
|
12
12
|
interface TypeBackground {
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ export { I as IconButton } from "./components/mui_extended/IconButton/index.js";
|
|
|
4
4
|
export { B as Breadcrumbs } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
5
5
|
export { M as MenuActions } from "./components/mui_extended/MenuActions/index.js";
|
|
6
6
|
export { P as Pager, d as defaultPagerDictionary, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
|
|
7
|
-
export { a as DataGrid } from "./components/DataGrid/index.js";
|
|
8
|
-
export { O as ObjectLogs } from "./components/ObjectLogs/index.js";
|
|
9
|
-
export { F as FormActions } from "./components/FormActions/index.js";
|
|
7
|
+
export { a as DataGrid, d as defaultGridDictionary, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
|
|
8
|
+
export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
|
|
9
|
+
export { F as FormActions, d as defaultActionsDictionary, g as getActionnsComponentsDictionary } from "./components/FormActions/index.js";
|
|
10
10
|
export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
|
|
11
11
|
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
12
12
|
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|