@m4l/components 9.2.53 → 9.2.54-beta.1
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/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
- package/components/Chip/ChipStyles.js +1 -1
- package/components/DataGrid/constants.js +2 -2
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +3 -0
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +0 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +1 -0
- package/components/DynamicFilter/dictionary.js +12 -0
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/dictionary.js +5 -0
- package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
- package/components/DynamicSort/store/DynamicSortContext.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/ObjectLogs/dictionary.js +3 -0
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -1
- package/components/Pager/Pager.styles.js +8 -0
- package/components/Pager/dicctionary.js +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
- package/components/areas/contexts/AreasContext/store.js +5 -5
- package/components/areas/icons.js +8 -0
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFAutocompleteAsync/types.js +6 -0
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +3 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Autocomplete/Autocomplete.js +11 -2
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +4 -4
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +5 -1
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/Tooltip/Tooltip.js +2 -2
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsViewer/icons.js +1 -0
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +19 -19
- package/package.json +3 -3
|
@@ -55,7 +55,7 @@ export declare const colorsLight: {
|
|
|
55
55
|
readonly backdrop: string;
|
|
56
56
|
readonly base: string;
|
|
57
57
|
readonly blur: string;
|
|
58
|
-
readonly paper: "#
|
|
58
|
+
readonly paper: "#fff";
|
|
59
59
|
};
|
|
60
60
|
readonly chips: {
|
|
61
61
|
readonly error: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
|
|
@@ -288,7 +288,7 @@ export declare const colorsLight: {
|
|
|
288
288
|
readonly border: {
|
|
289
289
|
readonly main: string;
|
|
290
290
|
readonly dens: string;
|
|
291
|
-
readonly default: string
|
|
291
|
+
readonly default: string;
|
|
292
292
|
readonly secondary: string;
|
|
293
293
|
readonly disabled: string;
|
|
294
294
|
readonly error: string;
|
|
@@ -440,7 +440,7 @@ export declare const colorsDark: {
|
|
|
440
440
|
readonly backdrop: string;
|
|
441
441
|
readonly base: string;
|
|
442
442
|
readonly blur: string;
|
|
443
|
-
readonly paper: "#
|
|
443
|
+
readonly paper: "#fff";
|
|
444
444
|
};
|
|
445
445
|
readonly chips: {
|
|
446
446
|
readonly error: Record<import('@m4l/styles').ChipColorVariant, import('@m4l/styles').ChipColor>;
|
|
@@ -673,7 +673,7 @@ export declare const colorsDark: {
|
|
|
673
673
|
readonly border: {
|
|
674
674
|
readonly main: string;
|
|
675
675
|
readonly dens: string;
|
|
676
|
-
readonly default: string
|
|
676
|
+
readonly default: string;
|
|
677
677
|
readonly secondary: string;
|
|
678
678
|
readonly disabled: string;
|
|
679
679
|
readonly error: string;
|
|
@@ -26,6 +26,6 @@ var DATAGRID_SEMANTIC_WIDTHS = /* @__PURE__ */ ((DATAGRID_SEMANTIC_WIDTHS2) => {
|
|
|
26
26
|
export {
|
|
27
27
|
DATAGRID_PREFIX_NAME as D,
|
|
28
28
|
DATAGRID_SELECT_COLUMN_KEY as a,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
DATAGRID_ACTIONS_COLUMN_KEY as b,
|
|
30
|
+
DATAGRID_SEMANTIC_WIDTHS as c
|
|
31
31
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useMemo, useEffect, useCallback
|
|
2
|
+
import { createContext, useState, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { c as castMapColumnsWidthToRecord } from "../../helpers/castMapColumnsWidthToRecord.js";
|
|
4
4
|
import { useFirstRender } from "@m4l/graphics";
|
|
5
5
|
const DataGridContext = createContext(null);
|
|
@@ -5,6 +5,9 @@ function getDataGridComponentsDictionary() {
|
|
|
5
5
|
return ["data_grid"].concat(getPagerComponentsDictionary()).concat(getMenuActionsComponentsDictionary()).concat(getModalDictionary());
|
|
6
6
|
}
|
|
7
7
|
const dictionary = {
|
|
8
|
+
LABEL_ACTIONS: "actions",
|
|
9
|
+
LABEL_ROWS_PER_PAGE: "pager.rows_per_page",
|
|
10
|
+
LABEL_OF: "pager.of",
|
|
8
11
|
DENSITY_COMPACT: `${getDataGridComponentsDictionary()[0]}.density_compact`,
|
|
9
12
|
DENSITY_STANDARD: `${getDataGridComponentsDictionary()[0]}.density_standard`,
|
|
10
13
|
DENSITY_CONFORTABLE: `${getDataGridComponentsDictionary()[0]}.density_confortable`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { InputBase } from "@mui/material";
|
|
3
3
|
import { D as DATAGRID_PREFIX_NAME } from "../constants.js";
|
|
4
|
-
import { D as DataGridSlots,
|
|
4
|
+
import { D as DataGridSlots, A as ActionsSlots, R as RowsCountSlots, C as ColumnsConfigSlots, T as TableSlots, a as TextEditorSlots } from "./DataGridEnum.js";
|
|
5
5
|
import { d as dataGridStyles } from "../styles.js";
|
|
6
6
|
const DataGridRootStyled = styled("div", {
|
|
7
7
|
name: DATAGRID_PREFIX_NAME,
|
|
@@ -17,7 +17,6 @@ function getComparator(columns, sortColumn) {
|
|
|
17
17
|
return column.customSort;
|
|
18
18
|
}
|
|
19
19
|
switch (typeOrder) {
|
|
20
|
-
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
21
20
|
case "number":
|
|
22
21
|
return (a, b) => {
|
|
23
22
|
try {
|
|
@@ -26,7 +25,6 @@ function getComparator(columns, sortColumn) {
|
|
|
26
25
|
return -1;
|
|
27
26
|
}
|
|
28
27
|
};
|
|
29
|
-
//Por defecto retorna una función de ordenamiento de string
|
|
30
28
|
default:
|
|
31
29
|
return (a, b) => {
|
|
32
30
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { u as useDataGrid } from "../../../hooks/useDataGrid.js";
|
|
3
3
|
import { useTheme } from "@mui/material";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as DATAGRID_ACTIONS_COLUMN_KEY, c as DATAGRID_SEMANTIC_WIDTHS } from "../../../constants.js";
|
|
5
5
|
import { M as MenuActions } from "../../../../MenuActions/MenuActions.js";
|
|
6
6
|
function ActionsFormatter(props) {
|
|
7
7
|
const { rowActionsGetter } = useDataGrid();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as CheckboxIcon, a as CheckboxCheckedIcon, b as CheckboxIndeterminateIcon } from "./CustomIcons.js";
|
|
4
4
|
import { Checkbox } from "@mui/material";
|
|
5
5
|
const CheckboxFormatter = forwardRef(
|
|
6
6
|
function CheckboxFormatter2({ onChange, checked, ...props }, _ref) {
|
|
@@ -10,7 +10,7 @@ function CheckboxIndeterminateIcon(props) {
|
|
|
10
10
|
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm-1.75 8h-6.5a.75.75 0 00-.75.75v.5c0 .414.336.75.75.75h6.5a.75.75 0 00.75-.75v-.5a.75.75 0 00-.75-.75z" }) });
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
CheckboxIcon as C,
|
|
14
14
|
CheckboxCheckedIcon as a,
|
|
15
|
-
|
|
15
|
+
CheckboxIndeterminateIcon as b
|
|
16
16
|
};
|
|
@@ -14,6 +14,17 @@ const DICCTIONARY = {
|
|
|
14
14
|
filter_tooltip_dirty: `${DYNAMIC_FILTER_DICTIONARY_ID}.filter_tooltip_dirty`,
|
|
15
15
|
filter_tooltip_invalid: `${DYNAMIC_FILTER_DICTIONARY_ID}.filter_tooltip_invalid`,
|
|
16
16
|
tooltip_clear_filters: `${DYNAMIC_FILTER_DICTIONARY_ID}.tooltip_clear_filters`,
|
|
17
|
+
operator_b: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_b`,
|
|
18
|
+
operator_e: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_e`,
|
|
19
|
+
operator_ne: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_ne`,
|
|
20
|
+
operator_gt: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_gt`,
|
|
21
|
+
operator_gte: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_gte`,
|
|
22
|
+
operator_lt: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_lt`,
|
|
23
|
+
operator_lte: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_lte`,
|
|
24
|
+
operator_c: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_c`,
|
|
25
|
+
operator_nc: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_nc`,
|
|
26
|
+
operator_in: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_in`,
|
|
27
|
+
operator_nin: `${DYNAMIC_FILTER_DICTIONARY_ID}.operator_nin`,
|
|
17
28
|
//Labels de los formularios de los filtros
|
|
18
29
|
label_boolean_operator: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_boolean_operator`,
|
|
19
30
|
label_boolean_operand1: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_boolean_operand1`,
|
|
@@ -28,6 +39,7 @@ const DICCTIONARY = {
|
|
|
28
39
|
label_select_operator: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_operator`,
|
|
29
40
|
label_select_operands_array: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_operands_array`,
|
|
30
41
|
label_select_operand1: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_operand1`,
|
|
42
|
+
label_select_operand2: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_operand2`,
|
|
31
43
|
label_select_async_operand1: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_async_operand1`,
|
|
32
44
|
label_select_async_operands_array: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_select_async_operands_array`,
|
|
33
45
|
label_no_fields_available: `${DYNAMIC_FILTER_DICTIONARY_ID}.label_no_fields_available`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useRef, useImperativeHandle, useEffect
|
|
2
|
+
import { createContext, forwardRef, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { useStore } from "zustand";
|
|
4
4
|
import { shallow } from "zustand/shallow";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
@@ -4,11 +4,11 @@ import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoo
|
|
|
4
4
|
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
import { u as useDynamicFilterBase } from "./useDynamicFilterBase.js";
|
|
6
6
|
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots.js";
|
|
7
|
+
import { D as DynamicFilterSlots } from "../../slots/SlotsEnum.js";
|
|
7
8
|
import { I as InputFilter } from "../InputFilter/InputFilter.js";
|
|
8
9
|
import { A as AppliedFilters } from "../AppliedFilters/AppliedFilters.js";
|
|
9
10
|
import { F as FilterActions } from "../FilterActions/FilterActions.js";
|
|
10
11
|
import { P as PopoverFilter } from "../PopoverFilter/PopoverFilter.js";
|
|
11
|
-
import { D as DynamicFilterSlots } from "../../slots/SlotsEnum.js";
|
|
12
12
|
function DynamicFilterBase() {
|
|
13
13
|
const { ownerState, dataTestId } = useDynamicFilterBase();
|
|
14
14
|
const classRoot = getComponentSlotRoot(DYNAMIC_FILTER_KEY_COMPONENT);
|
|
@@ -17,11 +17,11 @@ declare function usePopoverFilter(): {
|
|
|
17
17
|
filterFormValue: FormFilterValue;
|
|
18
18
|
formFilter: FormFilterFieldApplied;
|
|
19
19
|
popupValidationSchema: import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ObjectSchema<{
|
|
20
|
-
[x: string]: import('yup').ObjectSchema
|
|
20
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
21
21
|
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema
|
|
22
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -8,10 +8,15 @@ function getDynamicSortComponentsDictionary() {
|
|
|
8
8
|
}
|
|
9
9
|
const DICCTIONARY = {
|
|
10
10
|
input_placeholder: "input_placeholder",
|
|
11
|
+
label_ascending: "Ascending",
|
|
12
|
+
label_descending: "Descending",
|
|
11
13
|
sort_tooltip_refresh: "sort_tooltip_refresh",
|
|
12
14
|
sort_tooltip_dirty: "sort_tooltip_dirty",
|
|
13
15
|
sort_tooltip_invalid: "sort_tooltip_invalid",
|
|
14
16
|
tooltip_clear_sort: "tooltip_clear_sort",
|
|
17
|
+
operator_asc: "operator_asc",
|
|
18
|
+
operator_desc: "operator_desc",
|
|
19
|
+
label_boolean_operand1: "label_boolean_operand1",
|
|
15
20
|
label_no_fields_available: "label_no_fields_available"
|
|
16
21
|
};
|
|
17
22
|
const getDynamicSortDictionary = (key) => {
|
|
@@ -2,10 +2,10 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { d as dynamicSortStyles } from "../DynamicSort.styles.js";
|
|
3
3
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { D as DynamicSortSlots } from "./SlotsEnum.js";
|
|
5
|
-
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
6
5
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
7
6
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
7
|
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
8
|
+
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
9
9
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
10
10
|
const RootStyled = styled("div", {
|
|
11
11
|
name: DYNAMIC_SORT_KEY_COMPONENT,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { forwardRef, useRef, useImperativeHandle, useEffect
|
|
3
|
+
import { createContext, forwardRef, useRef, useImperativeHandle, useEffect } from "react";
|
|
4
4
|
import { useStore } from "zustand";
|
|
5
5
|
import { shallow } from "zustand/shallow";
|
|
6
6
|
import { f as formatToInitialSorts } from "../helpers/formatToInitialSorts.js";
|
|
@@ -4,11 +4,11 @@ import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoo
|
|
|
4
4
|
import { D as DYNAMIC_SORT_KEY_COMPONENT } from "../../constants.js";
|
|
5
5
|
import { u as useDynamicSortBase } from "./useDynamicSortBase.js";
|
|
6
6
|
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/DynamicSortSlots.js";
|
|
7
|
+
import { D as DynamicSortSlots } from "../../slots/SlotsEnum.js";
|
|
7
8
|
import { I as InputSort } from "../InputSort/InputSort.js";
|
|
8
9
|
import { A as AppliedSorts } from "../AppliedSorts/AppliedSorts.js";
|
|
9
10
|
import { S as SortActions } from "../SortActions/SortActions.js";
|
|
10
11
|
import { P as PopoverSort } from "../PopoverSort/PopoverSort.js";
|
|
11
|
-
import { D as DynamicSortSlots } from "../../slots/SlotsEnum.js";
|
|
12
12
|
function DynamicSortBase() {
|
|
13
13
|
const { ownerState, dataTestId } = useDynamicSortBase();
|
|
14
14
|
const classRoot = getComponentSlotRoot(DYNAMIC_SORT_KEY_COMPONENT);
|
|
@@ -17,11 +17,11 @@ declare function usePopoverSort(): {
|
|
|
17
17
|
sortFormValue: import('../../types').FormSortValueBase;
|
|
18
18
|
formSort: FormSortFieldApplied;
|
|
19
19
|
popupValidationSchema: import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ObjectSchema<{
|
|
20
|
-
[x: string]: import('yup').ObjectSchema
|
|
20
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
21
21
|
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema
|
|
22
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema</*elided*/ any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape</*elided*/ any>, import('yup/lib/object').AssertsShape</*elided*/ any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo, useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { i as isEqualLayout, c as cloneLayout, g as getLayoutItem, a as cloneLayoutItem, b as getLayoutItemH, m as moveElement, d as compact, w as withLayoutItem, e as bottom, n as noop, f as getAllCollisions } from "./utils.js";
|
|
5
5
|
import { M as MemonizedGridItem } from "./subcomponents/GridItem/index.js";
|
|
6
6
|
import { G as GridLayoutRoot } from "./styles.js";
|
|
7
7
|
import { D as DEFAULT_COLS, a as DEFAULT_CONTAINER_PADDING, b as DEFAULT_MARGIN, c as DEFAULT_ROW_HEIGHT, d as DEFAULT_COLAPSED_HEIGHT, e as DEFAULT_CONTAINER_WIDTH, f as DEFAULT_CONTAINER_HEIGHT, g as DEFAULT_TRANSFORM_SCALE } from "./constants.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
3
3
|
import { DraggableCore } from "react-draggable";
|
|
4
|
-
import { h as getH,
|
|
4
|
+
import { h as getH, p as perc, s as setTransform, j as setTopLeft } from "../../utils.js";
|
|
5
5
|
import { c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition } from "../../calculateUtils.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { deepEqual } from "fast-equals";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as DEFAULT_COLAPSED_HEIGHT, h as DEFAULT_RESPONSIVE_BREAKPOINTS, a as DEFAULT_CONTAINER_PADDING, b as DEFAULT_MARGIN, i as DEFAULT_RESPONSIVE_COLS, c as DEFAULT_ROW_HEIGHT } from "../../constants.js";
|
|
2
2
|
import { i as isEqualLayout } from "../../utils.js";
|
|
3
3
|
import { g as getBreakpointFromWidth, a as getColsFromBreakpoint, f as findOrGenerateResponsiveLayout, b as getIndentationValue } from "./responsiveUtils.js";
|
|
4
4
|
function generateInitialState(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { k as isEqualLayouts, c as cloneLayout, n as noop } from "../../utils.js";
|
|
3
3
|
import { g as getBreakpointFromWidth, a as getColsFromBreakpoint, b as getIndentationValue, f as findOrGenerateResponsiveLayout } from "./responsiveUtils.js";
|
|
4
4
|
import { forwardRef, useState, useRef, useEffect, useCallback } from "react";
|
|
5
5
|
import { useFirstRender } from "@m4l/graphics";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as cloneLayoutItem, c as cloneLayout, d as compact, l as correctBounds } from "../../utils.js";
|
|
2
2
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
3
3
|
const sorted = sortBreakpoints(breakpoints);
|
|
4
4
|
let matching = sorted[0];
|
|
@@ -143,8 +143,8 @@ export {
|
|
|
143
143
|
getColsFromBreakpoint as a,
|
|
144
144
|
getIndentationValue as b,
|
|
145
145
|
addLayoutItemToBreakPointIfNoExists as c,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
addLayoutItemToBreakPoints as d,
|
|
147
|
+
cloneLayouts as e,
|
|
148
148
|
findOrGenerateResponsiveLayout as f,
|
|
149
149
|
getBreakpointFromWidth as g
|
|
150
150
|
};
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useRef, useState, useMemo, useCallback, useEffect } from "r
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import throttle from "lodash-es/throttle";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { e as DEFAULT_CONTAINER_WIDTH, f as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../constants.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
const WithSizeProvider = forwardRef((props, ref) => {
|
|
9
9
|
const { measureBeforeMount = true, ...rest } = props;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
|
-
import { I as
|
|
5
|
+
import { I as ICON_KEY_COMPONENT, a as ICON_PREFIX } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses, a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
8
8
|
import { I as IconSlots } from "./slots/IconEnum.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { I as IconSlots } from "./IconEnum.js";
|
|
3
|
-
import {
|
|
3
|
+
import { I as ICON_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { i as iconStyles } from "../Icon.styles.js";
|
|
5
5
|
import { T as Tooltip } from "../../mui_extended/Tooltip/Tooltip.js";
|
|
6
6
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -5,7 +5,7 @@ import clsx from "clsx";
|
|
|
5
5
|
import { L as LazyLoadComponent } from "./subcomponents/LazyLoadComponent/index.js";
|
|
6
6
|
import { D as DivContainerSkeletonStyled, I as ImgSkeleton, a as ImgStyled } from "./slots/ImageSlots.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
|
-
import { s as svgDataUriSkeleton, I as
|
|
8
|
+
import { s as svgDataUriSkeleton, I as IMAGE_KEY_COMPONENT, a as IMAGE_CLASSES } from "./constant.js";
|
|
9
9
|
import { I as ImageSlots } from "./slots/ImageEnum.js";
|
|
10
10
|
function Image(props) {
|
|
11
11
|
const {
|
|
@@ -4,7 +4,7 @@ const IMAGE_KEY_COMPONENT = "M4LImage";
|
|
|
4
4
|
const svgDataUriSkeleton = `data:image/svg+xml,%3Csvg width='36' height='37' viewBox='0 0 36 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Union'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.0001 14.7416C24.26 15.2361 23.39 15.5 22.5 15.5C21.3065 15.5 20.1619 15.0259 19.318 14.182C18.4741 13.3381 18 12.1935 18 11C18 10.11 18.2639 9.23996 18.7584 8.49994C19.2529 7.75992 19.9557 7.18314 20.7779 6.84254C21.6002 6.50195 22.505 6.41283 23.3779 6.58647C24.2508 6.7601 25.0526 7.18868 25.682 7.81802C26.3113 8.44736 26.7399 9.24918 26.9135 10.1221C27.0872 10.995 26.9981 11.8998 26.6575 12.7221C26.3169 13.5443 25.7401 14.2471 25.0001 14.7416ZM23.3334 9.7528C23.0867 9.58798 22.7967 9.5 22.5 9.5C22.1022 9.5 21.7206 9.65804 21.4393 9.93934C21.158 10.2206 21 10.6022 21 11C21 11.2967 21.088 11.5867 21.2528 11.8334C21.4176 12.08 21.6519 12.2723 21.926 12.3858C22.2001 12.4994 22.5017 12.5291 22.7926 12.4712C23.0836 12.4133 23.3509 12.2704 23.5607 12.0607C23.7704 11.8509 23.9133 11.5836 23.9712 11.2926C24.0291 11.0017 23.9994 10.7001 23.8858 10.426C23.7723 10.1519 23.58 9.91762 23.3334 9.7528Z' fill='%23091E42' fill-opacity='0.08'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0.5H33C33.7957 0.5 34.5587 0.81607 35.1213 1.37868C35.6839 1.94129 36 2.70435 36 3.5V33.5C36 34.2957 35.6839 35.0587 35.1213 35.6213C34.5587 36.1839 33.7957 36.5 33 36.5H3C2.20435 36.5 1.44129 36.1839 0.87868 35.6213C0.31607 35.0587 0 34.2957 0 33.5V3.5C0 2.70435 0.31607 1.94129 0.87868 1.37868C1.44129 0.81607 2.20435 0.5 3 0.5ZM3 24.5V33.5H33V30.5L25.5 23L23.115 25.385C22.5529 25.9438 21.7926 26.2574 21 26.2574C20.2074 26.2574 19.4471 25.9438 18.885 25.385L10.5 17L3 24.5ZM27.615 20.87L33 26.255V3.5H3V20.255L8.385 14.87C8.94709 14.3112 9.70744 13.9976 10.5 13.9976C11.2926 13.9976 12.0529 14.3112 12.615 14.87L21 23.255L23.385 20.87C23.9471 20.3112 24.7074 19.9976 25.5 19.9976C26.2926 19.9976 27.0529 20.3112 27.615 20.87Z' fill='%23091E42' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E%0A`;
|
|
5
5
|
const IMAGE_CLASSES = getComponentClasses(IMAGE_KEY_COMPONENT, ImageSlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
IMAGE_KEY_COMPONENT as I,
|
|
8
|
+
IMAGE_CLASSES as a,
|
|
9
9
|
svgDataUriSkeleton as s
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { I as IMAGE_KEY_COMPONENT } from "../constant.js";
|
|
3
3
|
import { I as ImageSlots } from "./ImageEnum.js";
|
|
4
4
|
import { i as imageStyles } from "../image.styles.js";
|
|
5
5
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { b as IntersectComponentStyled } from "../../slots/ImageSlots.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
|
-
import {
|
|
5
|
+
import { I as IMAGE_KEY_COMPONENT } from "../../constant.js";
|
|
6
6
|
import { I as ImageSlots } from "../../slots/ImageEnum.js";
|
|
7
7
|
const checkIntersections = (entries) => {
|
|
8
8
|
entries.forEach((entry) => {
|
|
@@ -5,7 +5,7 @@ import { useEnvironment, useNetwork } from "@m4l/core";
|
|
|
5
5
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { I as Image } from "../Image/Image.js";
|
|
8
|
-
import { L as LanguagePopoverRootStyled,
|
|
8
|
+
import { L as LanguagePopoverRootStyled, I as ImageStyled, P as PaperStyled } from "./slots/LanguagePopoverSlots.js";
|
|
9
9
|
import { L as LANGUAGE_POPOVER_KEY_COMPONENT } from "./constants.js";
|
|
10
10
|
import { L as LanguagePopoverSlots } from "./slots/LanguagePopoverEnum.js";
|
|
11
11
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -8,8 +8,8 @@ import clsx from "clsx";
|
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
9
9
|
import { useRef, useState, useEffect } from "react";
|
|
10
10
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { T as Typography } from "../mui_extended/Typography/Typography.js";
|
|
12
11
|
import { L as LoadingErrorSlots } from "./slots/LoadingErrorEnum.js";
|
|
12
|
+
import { T as Typography } from "../mui_extended/Typography/Typography.js";
|
|
13
13
|
import { B as Button } from "../mui_extended/Button/Button.js";
|
|
14
14
|
const LoadingError = (props) => {
|
|
15
15
|
const { status, action, title, description, recommendation, introMessage, errorIcon, className, dataTestId, size = "medium" } = props;
|
|
@@ -2,8 +2,8 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { L as LOADING_ERROR_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { L as LoadingErrorSlots } from "./LoadingErrorEnum.js";
|
|
4
4
|
import { l as loadingErrorStyles } from "../LoadingError.styles.js";
|
|
5
|
-
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
5
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
|
+
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
7
7
|
import { I as Image } from "../../Image/Image.js";
|
|
8
8
|
const LoadingErrorRootStyled = styled("div", {
|
|
9
9
|
name: LOADING_ERROR_KEY_COMPONENT,
|
|
@@ -3,7 +3,7 @@ import { useEffect } from "react";
|
|
|
3
3
|
import { format } from "date-fns";
|
|
4
4
|
import { useAuth, DomainCountryProvider } from "@m4l/core";
|
|
5
5
|
import { HostThemeProvider, FormatterProvider } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { getUserThemeOptions, fnComponentsOverrides } from "@m4l/styles";
|
|
7
7
|
function MFAuthApp(props) {
|
|
8
8
|
const { children, user, pwd } = props;
|
|
9
9
|
const { isAuthenticated, isInitialized, login, user: authUser } = useAuth();
|
|
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
4
4
|
import { W as WrapperNoItemSelectedStyled, N as NoItemSelectedContainer, I as ImgStyled, a as WrapperTpography, T as TypographyStyledTitle, b as TypographyStyledDetail, L as LabelDetail } from "./slots/NoItemSelectedSlots.js";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { N as NO_ITEM_SELECT_KEY_COMPONENT, c as classNoItemSelected } from "./constant.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { N as NoItemSelectedSlots } from "./slots/NoItemSelectedEnum.js";
|
|
9
9
|
import { D as DICTIONARY } from "./dictionary.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as clampStepwise, i as isNumber } from "../../utils.js";
|
|
2
2
|
import { N as NumberInputActionTypes } from "./NumberInputActions.js";
|
|
3
3
|
function getClampedValues(rawValue, context) {
|
|
4
4
|
const { min, max, step, withDecimal } = context;
|
|
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
60
59
|
case "numberInput:inputChange":
|
|
61
60
|
onChange?.(event, fieldValue);
|
|
62
61
|
break;
|
|
63
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
64
62
|
case "numberInput:clamp":
|
|
65
63
|
onChange?.(event, fieldValue);
|
|
66
64
|
break;
|
|
@@ -5,10 +5,13 @@ function getObjectLogsComponentsDictionary() {
|
|
|
5
5
|
return [DICTIONARY_OBJECT_LOGS_ID].concat(getDataGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
6
6
|
}
|
|
7
7
|
const DICTIONARY = {
|
|
8
|
+
LABEL_RESOURCE_TYPE_ID: `${DICTIONARY_OBJECT_LOGS_ID}.resource_type_id`,
|
|
9
|
+
LABEL_RESOURCE_SERIAL_ID: `${DICTIONARY_OBJECT_LOGS_ID}.resource_serial_id`,
|
|
8
10
|
LABEL_CREATED_AT: `${DICTIONARY_OBJECT_LOGS_ID}.created_at`,
|
|
9
11
|
LABEL_USER: `${DICTIONARY_OBJECT_LOGS_ID}.email`,
|
|
10
12
|
LABEL_RESOURCE_NAME: `${DICTIONARY_OBJECT_LOGS_ID}.resource_name`,
|
|
11
13
|
LABEL_SERVICE_ID: `${DICTIONARY_OBJECT_LOGS_ID}.service_id`,
|
|
14
|
+
LABEL_PRIVILEGE_NAME: `${DICTIONARY_OBJECT_LOGS_ID}.privilege_name`,
|
|
12
15
|
LABEL_LOG_PREVIEW: `${DICTIONARY_OBJECT_LOGS_ID}.log_preview`,
|
|
13
16
|
LABEL_LOG_DETAIL: `${DICTIONARY_OBJECT_LOGS_ID}.log_detail`,
|
|
14
17
|
LABEL_IP: `${DICTIONARY_OBJECT_LOGS_ID}.ip`
|
|
@@ -10,7 +10,7 @@ import { usePaginate } from "@m4l/graphics";
|
|
|
10
10
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
11
11
|
import { a as OBJECT_LOGS_M4L_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
12
12
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
13
|
-
import {
|
|
13
|
+
import { startOfMonth, endOfDay } from "date-fns";
|
|
14
14
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
15
15
|
function ObjectLogsByM4L(props) {
|
|
16
16
|
const { resourceId, objectId, dataTestId = "" } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { startOfDay, endOfDay } from "date-fns";
|
|
4
4
|
import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
6
|
import { D as DynamicFilter } from "../../../DynamicFilter/DynamicFilter.js";
|
|
@@ -25,6 +25,14 @@ const pagerStyles = {
|
|
|
25
25
|
height: theme.vars.size.baseSpacings.sp8
|
|
26
26
|
}
|
|
27
27
|
}),
|
|
28
|
+
/**
|
|
29
|
+
* Rows Per Page Container Styles
|
|
30
|
+
*/
|
|
31
|
+
rowsPerPageContainer: () => ({
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "row",
|
|
34
|
+
alignItems: "center"
|
|
35
|
+
}),
|
|
28
36
|
/**
|
|
29
37
|
* Label Select Container Styles
|
|
30
38
|
*/
|