@m4l/components 9.2.38 → 9.2.39-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/components/DataGrid/dictionary.js +2 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +6 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/ColumnChipStatusFormatter.js +2 -2
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatusFormatter.js +3 -3
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +2 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +2 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +3 -1
- package/components/DynamicFilter/helpers/frontEndHelpers.js +2 -2
- package/components/DynamicFilter/helpers/getRawFiltersForNetwork.d.ts +14 -0
- package/components/DynamicFilter/helpers/getRawFiltersForNetwork.js +19 -0
- package/components/DynamicFilter/index.d.ts +3 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/types.d.ts +9 -9
- package/components/DynamicSort/helpers/getRawSortsForNetwork.d.ts +12 -0
- package/components/DynamicSort/helpers/getRawSortsForNetwork.js +20 -0
- package/components/DynamicSort/index.d.ts +2 -1
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/DynamicSort/types.d.ts +0 -1
- package/components/MenuActions/MenuActions.js +16 -14
- package/components/MenuActions/dictionary.js +2 -2
- package/components/SideBar/SideBar.js +7 -2
- package/components/SideBar/constants.js +3 -3
- package/components/SideBar/context/sideBarContext/index.js +4 -2
- package/components/SideBar/subcomponents/ContentComponent/index.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +3 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/SideBar/types.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +2 -0
- package/components/hook-form/RHFAutocompleteAsync/types.d.ts +1 -0
- package/index.js +77 -73
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { g as getMenuActionsComponentsDictionary } from "../MenuActions/dictionary.js";
|
|
1
2
|
import { g as getModalDictionary } from "../ModalDialog/dictionary.js";
|
|
2
3
|
import { g as getPagerComponentsDictionary } from "../Pager/dicctionary.js";
|
|
3
4
|
function getDataGridComponentsDictionary() {
|
|
4
|
-
return ["data_grid"].concat(getPagerComponentsDictionary()).concat(getModalDictionary());
|
|
5
|
+
return ["data_grid"].concat(getPagerComponentsDictionary()).concat(getMenuActionsComponentsDictionary()).concat(getModalDictionary());
|
|
5
6
|
}
|
|
6
7
|
const dictionary = {
|
|
7
8
|
LABEL_ACTIONS: "actions",
|
|
@@ -3,9 +3,11 @@ import { C as ColumnBooleanFormatter } from "./formatter.js";
|
|
|
3
3
|
import { useModuleDictionary, getPropertyByString } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
5
5
|
import { deepEqual } from "fast-equals";
|
|
6
|
+
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
6
7
|
const getCustomBooleanFilter = (props, getLabel) => {
|
|
7
8
|
return (row, value) => {
|
|
8
|
-
const
|
|
9
|
+
const keyWiouthRow = getColumnKey(props.fieldValue);
|
|
10
|
+
const valueMaybeString = getPropertyByString(row, keyWiouthRow);
|
|
9
11
|
let fixedValue;
|
|
10
12
|
if (typeof valueMaybeString === "boolean") {
|
|
11
13
|
fixedValue = valueMaybeString;
|
|
@@ -21,8 +23,9 @@ const getCustomBooleanFilter = (props, getLabel) => {
|
|
|
21
23
|
};
|
|
22
24
|
const getCustomBooleanSort = (props, getLabel) => {
|
|
23
25
|
return (a, b) => {
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
+
const keyWiouthRow = getColumnKey(props.fieldValue);
|
|
27
|
+
const valueMaybeStringA = getPropertyByString(a, keyWiouthRow);
|
|
28
|
+
const valueMaybeStringB = getPropertyByString(b, keyWiouthRow);
|
|
26
29
|
let fixedValueA;
|
|
27
30
|
let fixedValueB;
|
|
28
31
|
if (typeof valueMaybeStringA === "boolean") {
|
package/components/DataGrid/formatters/ColumnChipStatusFormatter/ColumnChipStatusFormatter.js
CHANGED
|
@@ -4,8 +4,8 @@ import { C as ChipStatusFormatter } from "../../../formatters/ChipStatusFormatte
|
|
|
4
4
|
const ColumnChipStatusFormatter = (props) => {
|
|
5
5
|
const { uriStatus, uriLabel, component, statusesColors, fallbackColor, opacity } = props;
|
|
6
6
|
return (obProps) => {
|
|
7
|
-
const label = typeof uriLabel === "string" ? getPropertyByString(obProps, uriStatus.toString()) : uriLabel(obProps, uriStatus);
|
|
8
|
-
const status = getPropertyByString(obProps, uriStatus.toString());
|
|
7
|
+
const label = typeof uriLabel === "string" ? getPropertyByString(obProps, uriStatus.toString(), "") : uriLabel(obProps, uriStatus);
|
|
8
|
+
const status = getPropertyByString(obProps, uriStatus.toString(), "");
|
|
9
9
|
return /* @__PURE__ */ jsx(
|
|
10
10
|
ChipStatusFormatter,
|
|
11
11
|
{
|
package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatusFormatter.js
CHANGED
|
@@ -6,14 +6,14 @@ import { useState, useRef, useEffect, useMemo } from "react";
|
|
|
6
6
|
const getCustomChipStatusFilter = (props) => {
|
|
7
7
|
const { uriLabel } = props;
|
|
8
8
|
return (row, value) => {
|
|
9
|
-
const valueMaybeString = typeof uriLabel === "string" ? getPropertyByString(row, getColumnKey(uriLabel)) : uriLabel(row, props.uriStatus);
|
|
9
|
+
const valueMaybeString = typeof uriLabel === "string" ? getPropertyByString(row, getColumnKey(uriLabel), "") : uriLabel(row, props.uriStatus);
|
|
10
10
|
return valueMaybeString.includes(value.toString());
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
const getCustomChipStatusSort = (props) => {
|
|
14
14
|
return (a, b) => {
|
|
15
|
-
const valueA = typeof props.uriLabel === "string" ? getPropertyByString(a, getColumnKey(props.uriLabel)) : props.uriLabel(a, props.uriStatus);
|
|
16
|
-
const valueB = typeof props.uriLabel === "string" ? getPropertyByString(b, getColumnKey(props.uriLabel)) : props.uriLabel(b, props.uriStatus);
|
|
15
|
+
const valueA = typeof props.uriLabel === "string" ? getPropertyByString(a, getColumnKey(props.uriLabel), "") : props.uriLabel(a, props.uriStatus);
|
|
16
|
+
const valueB = typeof props.uriLabel === "string" ? getPropertyByString(b, getColumnKey(props.uriLabel), "") : props.uriLabel(b, props.uriStatus);
|
|
17
17
|
return valueA > valueB ? 1 : valueA < valueB ? -1 : 0;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
3
|
import React from "react";
|
|
4
|
+
import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
4
5
|
function ColumnNestedValueFormatter(props) {
|
|
5
6
|
const { fieldValue, Component = React.Fragment } = props;
|
|
6
7
|
return (obProps) => {
|
|
7
|
-
const property = getPropertyByString(obProps, fieldValue);
|
|
8
|
+
const property = getNullGuard(getPropertyByString(obProps, fieldValue));
|
|
8
9
|
const value = typeof property === "object" ? JSON.stringify(property) : property;
|
|
9
10
|
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
10
11
|
};
|
|
@@ -5,6 +5,6 @@ import { ColumnNestedValueFormatterProps } from './types';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const useColumnNestedValue: <TRow>(props: ColumnNestedValueFormatterProps) => {
|
|
7
7
|
formatter: (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
customFilter: (row: TRow, value: string) =>
|
|
8
|
+
customFilter: (row: TRow, value: string) => any;
|
|
9
9
|
customSort: (a: TRow, b: TRow) => 0 | 1 | -1;
|
|
10
10
|
};
|
|
@@ -3,10 +3,11 @@ import { useState, useRef, useEffect, useMemo } from "react";
|
|
|
3
3
|
import { deepEqual } from "fast-equals";
|
|
4
4
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
5
5
|
import { C as ColumnNestedValueFormatter } from "./formatter.js";
|
|
6
|
+
import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
6
7
|
const getCustomNestedValueFilter = (props) => {
|
|
7
8
|
return (row, value) => {
|
|
8
9
|
const keyWiouthRow = getColumnKey(props.fieldValue);
|
|
9
|
-
const property = getPropertyByString(row, keyWiouthRow)
|
|
10
|
+
const property = getNullGuard(getPropertyByString(row, keyWiouthRow));
|
|
10
11
|
if (typeof property === "object") {
|
|
11
12
|
return Object.values(property).includes(value);
|
|
12
13
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
3
|
import { deepEqual } from "fast-equals";
|
|
4
|
+
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
4
5
|
import { C as ColumnSetCheckFormatter } from "./formatter.js";
|
|
5
6
|
const getCustomFilter = (props) => {
|
|
6
7
|
return (row, value) => {
|
|
7
|
-
const
|
|
8
|
+
const keyWiouthRow = getColumnKey(props.field);
|
|
9
|
+
const valueCheck = getPropertyByString(row, keyWiouthRow);
|
|
8
10
|
return valueCheck === value;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RawFilterFieldApply } from '../types';
|
|
2
|
+
type FieldNameTransform = 'none' | 'snakeCase' | 'camelCase';
|
|
3
|
+
/**
|
|
4
|
+
* Transforma los filtros de rawFilter para ser enviados a la red,
|
|
5
|
+
* depurando los campos que no son necesarios y convirtiendo los nombres de los campos a snake_case, camelCase si es necesario
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRawFiltersForNetwork: (rawFilters: RawFilterFieldApply[] | undefined, fieldNameTransform?: FieldNameTransform) => {
|
|
8
|
+
n: string;
|
|
9
|
+
o: import('../types').Operator;
|
|
10
|
+
o1: import('@m4l/core').Maybe<import('../types').OperandType>;
|
|
11
|
+
o2?: import('@m4l/core').Maybe<import('../types').OperandType>;
|
|
12
|
+
oa?: import('@m4l/core').Maybe<import('../types').OperandType[]>;
|
|
13
|
+
}[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import snakeCase from "lodash-es/snakeCase";
|
|
2
|
+
import camelCase from "lodash-es/camelCase";
|
|
3
|
+
const getRawFiltersForNetwork = (rawFilters, fieldNameTransform = "none") => {
|
|
4
|
+
if (!rawFilters) {
|
|
5
|
+
return [];
|
|
6
|
+
}
|
|
7
|
+
return rawFilters.map((rawFilter) => {
|
|
8
|
+
const { ft, ...fieldObject } = rawFilter;
|
|
9
|
+
if (fieldNameTransform === "snakeCase") {
|
|
10
|
+
fieldObject.n = snakeCase(fieldObject.n);
|
|
11
|
+
} else if (fieldNameTransform === "camelCase") {
|
|
12
|
+
fieldObject.n = camelCase(fieldObject.n);
|
|
13
|
+
}
|
|
14
|
+
return fieldObject;
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
getRawFiltersForNetwork as g
|
|
19
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { getDynamicFilterComponentsDictionary } from './dictionary';
|
|
2
2
|
export * from './DynamicFilter';
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
3
|
+
export type { FieldType, FilterFieldApplied as FilterFieldApply, RawFilterFieldApply, InitialFilterApplied, FilterField, } from './types';
|
|
4
|
+
export { getIsIfInDynamicFilter, getFilterGroupFieldsByName } from './helpers/frontEndHelpers';
|
|
5
|
+
export { getRawFiltersForNetwork } from './helpers/getRawFiltersForNetwork';
|
|
@@ -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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -25,13 +25,13 @@ export type OperandsSelectAsyncArrayValues = Array<FormOperandSelectAsync>;
|
|
|
25
25
|
export type OperandsSelectArrayValues = Array<FormOperandSelect>;
|
|
26
26
|
export type FieldTypeOperator<T extends FieldType> = T extends 'boolean' ? BooleanOperator : T extends 'datetime' ? DateTimeOperator : T extends 'number' ? NumberOperator : T extends 'select' ? SelectOperator : T extends 'string' ? StringOperator : T;
|
|
27
27
|
export type FieldTypeOperand<T extends FieldType> = T extends 'boolean' ? boolean : T extends 'datetime' ? Date : T extends 'number' ? number : T extends 'string' ? string : T extends 'select' ? OperandsSelectArrayValues : T extends 'selectAsync' ? OperandsSelectAsyncArrayValues : FieldType;
|
|
28
|
-
type SelectAsyncOptions = Pick<RHFAutocompleteAsyncBaseProps<{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
getOptionId: (option:
|
|
28
|
+
type SelectAsyncOptions<TOption = any> = Pick<RHFAutocompleteAsyncBaseProps<TOption>, 'type' | 'endPoint' | 'responseToCamelCase' | 'multiple' | 'autoComplete' | 'autoCapitalize' | 'parms' | 'timeout'> & {
|
|
29
|
+
getOptionLabel: (option: TOption) => string;
|
|
30
|
+
isOptionEqualToValue: (options: TOption | TOption[], value: TOption) => boolean;
|
|
31
|
+
getOptionId: (option: TOption) => string | number;
|
|
32
32
|
};
|
|
33
33
|
type SelectOptions = Omit<RHFSelectProps<any, true>, 'name'>;
|
|
34
|
-
export interface FieldBase<T extends FieldType = FieldType> {
|
|
34
|
+
export interface FieldBase<T extends FieldType = FieldType, TOption = any> {
|
|
35
35
|
name: string;
|
|
36
36
|
type: T;
|
|
37
37
|
multiple?: boolean;
|
|
@@ -42,10 +42,10 @@ export interface FieldBase<T extends FieldType = FieldType> {
|
|
|
42
42
|
defaultOperand2?: Maybe<FieldTypeOperand<T>>;
|
|
43
43
|
defaultOperandsArray?: Maybe<FieldTypeOperand<T>>;
|
|
44
44
|
selectOptions?: SelectOptions;
|
|
45
|
-
selectAsyncOptions?: SelectAsyncOptions
|
|
45
|
+
selectAsyncOptions?: SelectAsyncOptions<TOption>;
|
|
46
46
|
}
|
|
47
|
-
export interface FieldWithSelectAsync<T extends 'selectAsync'> extends FieldBase<T> {
|
|
48
|
-
selectAsyncOptions: SelectAsyncOptions
|
|
47
|
+
export interface FieldWithSelectAsync<T extends 'selectAsync', TOption = any> extends FieldBase<T, TOption> {
|
|
48
|
+
selectAsyncOptions: SelectAsyncOptions<TOption>;
|
|
49
49
|
}
|
|
50
50
|
export interface FieldWithSelect<T extends 'select'> extends FieldBase<T> {
|
|
51
51
|
selectOptions: SelectOptions;
|
|
@@ -58,7 +58,7 @@ export interface Label<T extends FieldType = FieldType> extends FieldBase<T> {
|
|
|
58
58
|
label: string;
|
|
59
59
|
dictionaryId?: undefined;
|
|
60
60
|
}
|
|
61
|
-
export type FilterField<T extends FieldType = FieldType> = T extends 'selectAsync' ? FieldWithSelectAsync<T> & (FieldDictionaryId<T> | Label<T>) : T extends 'select' ? FieldWithSelect<T> & (FieldDictionaryId<T> | Label<T>) : FieldDictionaryId<T> | Label<T>;
|
|
61
|
+
export type FilterField<T extends FieldType = FieldType, TOption = any> = T extends 'selectAsync' ? FieldWithSelectAsync<T, TOption> & (FieldDictionaryId<T> | Label<T>) : T extends 'select' ? FieldWithSelect<T> & (FieldDictionaryId<T> | Label<T>) : FieldDictionaryId<T> | Label<T>;
|
|
62
62
|
export interface BaseApplyFilter<T extends FieldType = FieldType> {
|
|
63
63
|
id: number;
|
|
64
64
|
field: FilterField<T>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RawSortFieldApply } from '../types';
|
|
2
|
+
type FieldNameTransform = 'none' | 'snakeCase' | 'camelCase';
|
|
3
|
+
/**
|
|
4
|
+
* Transforma los filtros de rawFilter para ser enviados a la red,
|
|
5
|
+
* depurando los campos que no son necesarios y convirtiendo los nombres de los campos a snake_case, camelCase si es necesario
|
|
6
|
+
*/
|
|
7
|
+
export declare const getRawSortsForNetwork: (rawSorts: RawSortFieldApply[] | undefined, fieldNameTransform?: FieldNameTransform) => {
|
|
8
|
+
n: string;
|
|
9
|
+
o: import('../types').SortOperator;
|
|
10
|
+
ft: import('../types').SortFieldType;
|
|
11
|
+
}[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import snakeCase from "lodash-es/snakeCase";
|
|
2
|
+
import camelCase from "lodash-es/camelCase";
|
|
3
|
+
const getRawSortsForNetwork = (rawSorts, fieldNameTransform = "none") => {
|
|
4
|
+
if (!rawSorts) {
|
|
5
|
+
return [];
|
|
6
|
+
}
|
|
7
|
+
const ret = rawSorts.map((rawSort) => {
|
|
8
|
+
const { ...fieldObject } = rawSort;
|
|
9
|
+
if (fieldNameTransform === "snakeCase") {
|
|
10
|
+
fieldObject.n = snakeCase(fieldObject.n);
|
|
11
|
+
} else if (fieldNameTransform === "camelCase") {
|
|
12
|
+
fieldObject.n = camelCase(fieldObject.n);
|
|
13
|
+
}
|
|
14
|
+
return fieldObject;
|
|
15
|
+
});
|
|
16
|
+
return ret;
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
getRawSortsForNetwork as g
|
|
20
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { getDynamicSortComponentsDictionary } from './dictionary';
|
|
2
2
|
export * from './DynamicSort';
|
|
3
|
-
export { SortCompareValues } from './helpers/frontEndHelpers';
|
|
4
3
|
export type { InitialSortApplied, RawSortFieldApply, SortField, SortFieldApplied, SortFieldType, SortOperator, } from './types';
|
|
4
|
+
export { SortCompareValues } from './helpers/frontEndHelpers';
|
|
5
|
+
export { getRawSortsForNetwork } from './helpers/getRawSortsForNetwork';
|
|
@@ -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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<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<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -5,7 +5,7 @@ import { u as useComponentSize } from "../../hooks/useComponentSize/useComponent
|
|
|
5
5
|
import { P as Popover } from "../mui_extended/Popover/Popover.js";
|
|
6
6
|
import { M as MenuItem } from "../mui_extended/MenuItem/MenuItem.js";
|
|
7
7
|
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_ } from "./constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
|
|
9
9
|
import { M as MenuDivider } from "../mui_extended/MenuDivider/MenuDivider.js";
|
|
10
10
|
import { M as MenuListStyled, a as MenuLoaderStyled, R as RootStyled, I as IconButtonStyled, H as HeaderMenuActionsStyled, F as FooterMenuActionsStyled } from "./slots/MenuActionsSlots.js";
|
|
11
11
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/CircularProgress.js";
|
|
@@ -74,18 +74,20 @@ function MenuActions(props) {
|
|
|
74
74
|
onOpen(true);
|
|
75
75
|
}
|
|
76
76
|
}, [onOpen]);
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
const renderMenuContent = useCallback(() => {
|
|
78
|
+
let processedActions = [];
|
|
79
|
+
let finalActions = [];
|
|
80
|
+
if (menuActions) {
|
|
81
|
+
if (typeof menuActions === "function") {
|
|
82
|
+
processedActions = menuActions(objItem);
|
|
83
|
+
} else {
|
|
84
|
+
processedActions = menuActions;
|
|
85
|
+
}
|
|
80
86
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return [];
|
|
87
|
+
if (Array.isArray(processedActions)) {
|
|
88
|
+
finalActions = processedActions;
|
|
84
89
|
}
|
|
85
|
-
|
|
86
|
-
}, [menuActions, objItem]);
|
|
87
|
-
const renderMenuContent = useCallback(() => {
|
|
88
|
-
if (!finalActions.length) {
|
|
90
|
+
if (finalActions.length === 0) {
|
|
89
91
|
return /* @__PURE__ */ jsx(MenuItem, { disabled: true, role: "menu-no-actions", label: getLabel(getMenuActionsDictionary(DICTIONARY.no_actions_label)) });
|
|
90
92
|
}
|
|
91
93
|
const RenderHeader = () => {
|
|
@@ -105,7 +107,7 @@ function MenuActions(props) {
|
|
|
105
107
|
case "loader":
|
|
106
108
|
return /* @__PURE__ */ jsx(MenuLoaderStyled, { size, ownerState: {}, children: /* @__PURE__ */ jsx(CircularProgress, { size }) }, `loader-${key}`);
|
|
107
109
|
case "customNode":
|
|
108
|
-
return
|
|
110
|
+
return menuAction.customNode;
|
|
109
111
|
case "menuItem":
|
|
110
112
|
return /* @__PURE__ */ jsx(
|
|
111
113
|
MenuItem,
|
|
@@ -125,7 +127,7 @@ function MenuActions(props) {
|
|
|
125
127
|
footer && /* @__PURE__ */ jsx(RenderFooter, {}),
|
|
126
128
|
endListElement && endListElement
|
|
127
129
|
] });
|
|
128
|
-
}, [
|
|
130
|
+
}, [menuActions, header, size, footer, endListElement, objItem, getLabel, actionKey, handleClick]);
|
|
129
131
|
return /* @__PURE__ */ jsxs(RootStyled, { className, ownerState: { ownerState }, children: [
|
|
130
132
|
/* @__PURE__ */ jsx(
|
|
131
133
|
IconButtonStyled,
|
|
@@ -155,7 +157,7 @@ function MenuActions(props) {
|
|
|
155
157
|
...other,
|
|
156
158
|
slots: { ...slots },
|
|
157
159
|
slotProps: { paper: { ...paperProps } },
|
|
158
|
-
children:
|
|
160
|
+
children: renderMenuContent()
|
|
159
161
|
}
|
|
160
162
|
)
|
|
161
163
|
] });
|
|
@@ -6,7 +6,10 @@ import { memo, useMemo } from "react";
|
|
|
6
6
|
import { g as getMenuDataWithState } from "./helpers/getMenuDataWithState/index.js";
|
|
7
7
|
import { useIsMobile } from "@m4l/graphics";
|
|
8
8
|
import { g as getDataToSkeleton } from "./helpers/getDataToSkeleton/index.js";
|
|
9
|
+
import { P as PATH_ICONS } from "./constants.js";
|
|
10
|
+
import { useEnvironment } from "@m4l/core";
|
|
9
11
|
const SideBar = memo((props) => {
|
|
12
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
13
|
const {
|
|
11
14
|
anchored,
|
|
12
15
|
visible,
|
|
@@ -19,7 +22,8 @@ const SideBar = memo((props) => {
|
|
|
19
22
|
moduleSelectedId,
|
|
20
23
|
expandedWidth = "230px",
|
|
21
24
|
companyName,
|
|
22
|
-
companySlogan
|
|
25
|
+
companySlogan,
|
|
26
|
+
urlIconPrefix = `${host_static_assets}/${environment_assets}${PATH_ICONS}`
|
|
23
27
|
} = props;
|
|
24
28
|
const menuDataWithState = useMemo(() => getMenuDataWithState({ menuData: menuData ?? getDataToSkeleton(), moduleSelectedId }), [menuData, moduleSelectedId]);
|
|
25
29
|
const isMobile = useIsMobile();
|
|
@@ -39,7 +43,8 @@ const SideBar = memo((props) => {
|
|
|
39
43
|
moduleSelectedId,
|
|
40
44
|
expandedWidth,
|
|
41
45
|
companyName,
|
|
42
|
-
companySlogan
|
|
46
|
+
companySlogan,
|
|
47
|
+
urlIconPrefix
|
|
43
48
|
},
|
|
44
49
|
children: !isMobile ? /* @__PURE__ */ jsx(SideBarDesktop, {}) : /* @__PURE__ */ jsx(SideBarMobile, {})
|
|
45
50
|
}
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
CONTAINER_BTN_ANCHORED as C,
|
|
11
11
|
ITEM_ACTIVE as I,
|
|
12
12
|
LIST_MENU_ITEM as L,
|
|
13
|
-
|
|
13
|
+
PATH_ICONS as P,
|
|
14
14
|
SIDEBAR_KEY_COMPONENT as S,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
PATH_ARROW_RIGHT_ICON as a,
|
|
16
|
+
ITEM_IN_TREE_ACTIVE as b,
|
|
17
17
|
PATH_ARROW_DOWN_ICON as c
|
|
18
18
|
};
|
|
@@ -31,7 +31,8 @@ const SideBarProvider = (props) => {
|
|
|
31
31
|
expandedWidth,
|
|
32
32
|
moduleSelectedId,
|
|
33
33
|
companyName,
|
|
34
|
-
companySlogan
|
|
34
|
+
companySlogan,
|
|
35
|
+
urlIconPrefix
|
|
35
36
|
} = value;
|
|
36
37
|
return (
|
|
37
38
|
// Proporcionar el contexto con las propiedades desestructuradas
|
|
@@ -50,7 +51,8 @@ const SideBarProvider = (props) => {
|
|
|
50
51
|
moduleSelectedId,
|
|
51
52
|
expandedWidth,
|
|
52
53
|
companyName,
|
|
53
|
-
companySlogan
|
|
54
|
+
companySlogan,
|
|
55
|
+
urlIconPrefix
|
|
54
56
|
},
|
|
55
57
|
children
|
|
56
58
|
}
|
|
@@ -7,7 +7,7 @@ import { C as ContentGroups } from "../ContentGroups/index.js";
|
|
|
7
7
|
import { F as FooterSidebar } from "../FooterSidebar/index.js";
|
|
8
8
|
import { H as HeaderSidebar } from "../HeaderSidebar/index.js";
|
|
9
9
|
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
10
|
-
import {
|
|
10
|
+
import { a as PATH_ARROW_RIGHT_ICON, C as CONTAINER_BTN_ANCHORED } from "../../constants.js";
|
|
11
11
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
12
12
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
13
13
|
const ContentComponent = () => {
|
package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js
CHANGED
|
@@ -9,17 +9,15 @@ import { g as getNameDataTestId } from "../../../../tests/utils.js";
|
|
|
9
9
|
import { A as ArrowIcon } from "./subcomponents/ArrowIcon/index.js";
|
|
10
10
|
import { h as ContainerMenuItemsStyled } from "../../../../slots/SideBarSlots.js";
|
|
11
11
|
import { a as getComponentSlotRoot } from "../../../../../../utils/getComponentSlotRoot.js";
|
|
12
|
-
import { I as ITEM_ACTIVE,
|
|
13
|
-
import { useEnvironment } from "@m4l/core";
|
|
12
|
+
import { I as ITEM_ACTIVE, b as ITEM_IN_TREE_ACTIVE, L as LIST_MENU_ITEM } from "../../../../constants.js";
|
|
14
13
|
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
15
14
|
import { M as MenuItem } from "../../../../../mui_extended/MenuItem/MenuItem.js";
|
|
16
15
|
function ContainerMenuItemsMain(props) {
|
|
17
16
|
const { item, size } = props;
|
|
18
|
-
const { onMenuItemClick, onToggleVisible } = useSideBar();
|
|
17
|
+
const { onMenuItemClick, onToggleVisible, urlIconPrefix } = useSideBar();
|
|
19
18
|
const [openSub, setOpenSub] = useState(props.openSubItem ?? false);
|
|
20
19
|
const hasChildren = item.children && Array.isArray(item.children) && item.children.length > 0;
|
|
21
20
|
const isMobile = useIsMobile();
|
|
22
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
23
21
|
const { currentSize } = useComponentSize(size);
|
|
24
22
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
25
23
|
const ownerState = {
|
|
@@ -49,7 +47,7 @@ function ContainerMenuItemsMain(props) {
|
|
|
49
47
|
className: clsx(item.active ? ITEM_ACTIVE : ITEM_IN_TREE_ACTIVE),
|
|
50
48
|
label: item.title,
|
|
51
49
|
selected: item.active || item.itemInTreeActive,
|
|
52
|
-
startIcon: `${
|
|
50
|
+
startIcon: `${urlIconPrefix}${item.iconUrl}`,
|
|
53
51
|
endIcon: hasChildren ? /* @__PURE__ */ jsx(ArrowIcon, { openState: openSub, active: item.active }) : null,
|
|
54
52
|
onClick: () => handlerClick(),
|
|
55
53
|
size: adjustedSize
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as getHeightSizeStyles } from "../../../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as ITEM_IN_TREE_ACTIVE, I as ITEM_ACTIVE } from "../../../../constants.js";
|
|
3
3
|
const containerMenuItemsMainStyles = {
|
|
4
4
|
/**
|
|
5
5
|
* Style aplicado al contenedor de los items del menú
|
|
@@ -68,6 +68,10 @@ export interface SideBarProps {
|
|
|
68
68
|
* Tamaño del componente, puede ser uno de los valores definidos en 'small' , 'medium'
|
|
69
69
|
*/
|
|
70
70
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
71
|
+
/**
|
|
72
|
+
* Prefijo de la url de los iconos
|
|
73
|
+
*/
|
|
74
|
+
urlIconPrefix?: string;
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
77
|
* Interface que representa el estado de un elemento de menú en la barra lateral.
|
|
@@ -31,7 +31,7 @@ export interface RHFAutocompleteProps<T, Multiple extends boolean | undefined =
|
|
|
31
31
|
dataTestid?: string;
|
|
32
32
|
options: T[];
|
|
33
33
|
getOptionLabel: (option: T | AutocompleteFreeSoloValueMapping<FreeSolo>) => string;
|
|
34
|
-
isOptionEqualToValue: (
|
|
34
|
+
isOptionEqualToValue: (options: T | T[], value: T) => boolean;
|
|
35
35
|
skeletonWidth?: string | number;
|
|
36
36
|
loading?: boolean;
|
|
37
37
|
refresh?: () => void;
|
|
@@ -7,6 +7,7 @@ function RHFAutocompleteAsync(props) {
|
|
|
7
7
|
const {
|
|
8
8
|
name,
|
|
9
9
|
endPoint,
|
|
10
|
+
responseToCamelCase,
|
|
10
11
|
label,
|
|
11
12
|
timeout = 5e3,
|
|
12
13
|
parms,
|
|
@@ -78,6 +79,7 @@ function RHFAutocompleteAsync(props) {
|
|
|
78
79
|
timeout,
|
|
79
80
|
isExternalUrl,
|
|
80
81
|
parms: { ...parms, ...filterParms },
|
|
82
|
+
responseToCamelCase,
|
|
81
83
|
isRemote
|
|
82
84
|
}).then((response) => {
|
|
83
85
|
if (cancel) {
|
|
@@ -5,6 +5,7 @@ import { RHFAutocompleteAsyncSlots } from './slots';
|
|
|
5
5
|
import { Theme } from '@mui/material';
|
|
6
6
|
export interface RHFAutocompleteAsyncBaseProps<T extends any = unknown> extends Omit<RHFAutocompleteProps<T>, 'options'> {
|
|
7
7
|
endPoint: string;
|
|
8
|
+
responseToCamelCase?: boolean;
|
|
8
9
|
timeout?: number;
|
|
9
10
|
parms?: Record<string, any>;
|
|
10
11
|
isExternalUrl?: boolean;
|
package/index.js
CHANGED
|
@@ -58,10 +58,12 @@ import { u as u12 } from "./components/DataGrid/formatters/ColumnChipStatusForma
|
|
|
58
58
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
59
59
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
60
60
|
import { a as a4 } from "./components/DynamicFilter/dictionary.js";
|
|
61
|
-
import {
|
|
61
|
+
import { a as a5, g as g7 } from "./components/DynamicFilter/helpers/frontEndHelpers.js";
|
|
62
|
+
import { g as g8 } from "./components/DynamicFilter/helpers/getRawFiltersForNetwork.js";
|
|
62
63
|
import { D as D4 } from "./components/DynamicFilter/DynamicFilter.js";
|
|
63
64
|
import { a as a6 } from "./components/DynamicSort/dictionary.js";
|
|
64
65
|
import { S as S2 } from "./components/DynamicSort/helpers/frontEndHelpers.js";
|
|
66
|
+
import { g as g9 } from "./components/DynamicSort/helpers/getRawSortsForNetwork.js";
|
|
65
67
|
import { D as D5 } from "./components/DynamicSort/DynamicSort.js";
|
|
66
68
|
import { R } from "./components/extended/React-Resizable/Resizable/Resizable.js";
|
|
67
69
|
import { R as R2 } from "./components/extended/React-Resizable/ResizableBox/ResizableBox.js";
|
|
@@ -78,7 +80,7 @@ import { L as L3 } from "./components/mui_extended/LinearProgress/index.js";
|
|
|
78
80
|
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
79
81
|
import { L as L5 } from "./components/mui_extended/LoadingButton/LoadingButton.js";
|
|
80
82
|
import { P as P2 } from "./components/Pager/Pager.js";
|
|
81
|
-
import { g as
|
|
83
|
+
import { g as g10 } from "./components/Pager/dicctionary.js";
|
|
82
84
|
import { A as A15 } from "./components/mui_extended/Accordion/Accordion.js";
|
|
83
85
|
import { T as T3 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
84
86
|
import { I as I2 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
@@ -107,15 +109,15 @@ import { N as N2 } from "./components/mui_extended/NavLink/NavLink.js";
|
|
|
107
109
|
import { D as D6 } from "./components/mui_extended/Dialog/Dialog.js";
|
|
108
110
|
import { B as B6 } from "./components/formatters/BooleanFormatter/BooleanFormatter.js";
|
|
109
111
|
import { C as C15 } from "./components/formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
110
|
-
import { D as D7, g as
|
|
111
|
-
import { U, g as
|
|
112
|
-
import { P as P4, g as
|
|
113
|
-
import { C as C16, g as
|
|
112
|
+
import { D as D7, g as g11 } from "./components/formatters/DateFormatter/DateFormatter.js";
|
|
113
|
+
import { U, g as g12 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
114
|
+
import { P as P4, g as g13 } from "./components/formatters/PointsFormatter/PointsFormatter.js";
|
|
115
|
+
import { C as C16, g as g14 } from "./components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
114
116
|
import { P as P5, u as u13 } from "./components/formatters/PeriodFormatter/PeriodFormatter.js";
|
|
115
|
-
import { P as P6, g as
|
|
116
|
-
import { g as
|
|
117
|
+
import { P as P6, g as g15 } from "./components/formatters/PriceFormatter/PriceFormatter.js";
|
|
118
|
+
import { g as g16 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
117
119
|
import { D as D8 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
118
|
-
import { g as
|
|
120
|
+
import { g as g17 } from "./components/formatters/dictionary.js";
|
|
119
121
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
120
122
|
import { R as R3 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
121
123
|
import { c as c2, d as d3, e } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
@@ -124,9 +126,9 @@ import { w } from "./components/GridLayout/subcomponents/withSizeProvider/index.
|
|
|
124
126
|
import { H as H2 } from "./components/HelmetPage/index.js";
|
|
125
127
|
import { H as H3 } from "./components/HelperError/HelperError.js";
|
|
126
128
|
import { R as R4 } from "./components/hook-form/RHFAutocomplete/RHFAutocomplete.js";
|
|
127
|
-
import { g as
|
|
129
|
+
import { g as g18 } from "./components/hook-form/RHFAutocomplete/dictionary.js";
|
|
128
130
|
import { R as R5 } from "./components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js";
|
|
129
|
-
import { g as
|
|
131
|
+
import { g as g19 } from "./components/hook-form/RHFAutocompleteAsync/dictionary.js";
|
|
130
132
|
import { R as R6 } from "./components/hook-form/RHFDateTime/RHFDateTime.js";
|
|
131
133
|
import { R as R7 } from "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
132
134
|
import { R as R8 } from "./components/hook-form/RHFSelect/RHFSelect.js";
|
|
@@ -138,7 +140,7 @@ import { R as R13 } from "./components/hook-form/RHFColorPicker/RFHColorPicker.j
|
|
|
138
140
|
import { R as R14 } from "./components/hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
139
141
|
import { R as R15 } from "./components/hook-form/RHFTextField/RHFTextField.js";
|
|
140
142
|
import { R as R16 } from "./components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js";
|
|
141
|
-
import { g as
|
|
143
|
+
import { g as g20 } from "./components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js";
|
|
142
144
|
import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
143
145
|
import { R as R17 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
144
146
|
import { R as R18 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
@@ -152,20 +154,20 @@ import { L as L7 } from "./components/LanguagePopover/LanguagePopover.js";
|
|
|
152
154
|
import { L as L8 } from "./components/LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
153
155
|
import { L as L9 } from "./components/Loadable/index.js";
|
|
154
156
|
import { L as L10 } from "./components/LoadingError/LoadingError.js";
|
|
155
|
-
import { g as
|
|
156
|
-
import {
|
|
157
|
-
import { a as
|
|
157
|
+
import { g as g21 } from "./components/LoadingError/dictionary.js";
|
|
158
|
+
import { g as g22 } from "./components/MenuActions/dictionary.js";
|
|
159
|
+
import { a as a8, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
158
160
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
159
161
|
import { M as M5 } from "./components/MFLoader/MFLoader.js";
|
|
160
|
-
import { g as
|
|
162
|
+
import { g as g23 } from "./components/MFLoader/dictionary.js";
|
|
161
163
|
import { N as N3 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
162
|
-
import { g as
|
|
164
|
+
import { g as g24 } from "./components/NoItemSelected/dictionary.js";
|
|
163
165
|
import { O } from "./components/ObjectLogs/ObjectLogs.js";
|
|
164
|
-
import { d as d4, g as
|
|
166
|
+
import { d as d4, g as g25 } from "./components/ObjectLogs/dictionary.js";
|
|
165
167
|
import { P as P8 } from "./components/PaperForm/PaperForm.js";
|
|
166
168
|
import { P as P9 } from "./components/PDFViewer/PDFViewer.js";
|
|
167
169
|
import { u as u14 } from "./components/popups/components/PopupsProvider/hooks/usePopupsStore.js";
|
|
168
|
-
import { a as
|
|
170
|
+
import { a as a9, P as P10 } from "./components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
169
171
|
import { P as P11 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
170
172
|
import { P as P12 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
171
173
|
import { P as P13 } from "./components/PropertyValue/PropertyValue.js";
|
|
@@ -175,43 +177,43 @@ import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
|
175
177
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
176
178
|
import { W } from "./components/WindowBase/WindowBase.js";
|
|
177
179
|
import { u as u15 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
178
|
-
import { a as
|
|
179
|
-
import { M as M6, W as W2, a as
|
|
180
|
+
import { a as a10, u as u16 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
181
|
+
import { M as M6, W as W2, a as a11 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
180
182
|
import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
181
|
-
import { D as D9, a as
|
|
183
|
+
import { D as D9, a as a12, M as M7 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
182
184
|
import { W as W3 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
183
|
-
import { a as
|
|
185
|
+
import { a as a13, g as g26 } from "./components/ModalDialog/dictionary.js";
|
|
184
186
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
185
187
|
import { F as F2, R as R22, u as u17 } from "./components/hook-form/RHFormContext/index.js";
|
|
186
|
-
import { g as
|
|
188
|
+
import { g as g27 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
187
189
|
import { u as u18 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
188
190
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
189
|
-
import { a as
|
|
191
|
+
import { a as a14, M as M9 } from "./contexts/ModalContext/index.js";
|
|
190
192
|
import { u as u19 } from "./hooks/useFormAddEdit/index.js";
|
|
191
193
|
import { u as u20 } from "./hooks/useModal/index.js";
|
|
192
194
|
import { u as u21 } from "./hooks/useTab/index.js";
|
|
193
|
-
import { g as
|
|
195
|
+
import { g as g28 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
194
196
|
import { u as u22 } from "./hooks/useFormFocus/index.js";
|
|
195
197
|
import { u as u23 } from "./hooks/useInterval/index.js";
|
|
196
198
|
import { u as u24 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
197
199
|
import { u as u25 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
198
200
|
import { u as u26 } from "./hooks/useStateRef/index.js";
|
|
199
|
-
import { a as
|
|
201
|
+
import { a as a15 } from "./hooks/useSvgColor/constants.js";
|
|
200
202
|
import { u as u27 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
201
203
|
import { u as u28 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
202
204
|
import { u as u29 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
203
205
|
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
204
206
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
205
|
-
import { g as
|
|
206
|
-
import { g as
|
|
207
|
-
import { g as
|
|
208
|
-
import { g as
|
|
209
|
-
import { a as
|
|
207
|
+
import { g as g29 } from "./utils/getComponentUtilityClass.js";
|
|
208
|
+
import { g as g30 } from "./utils/getPaletteColor.js";
|
|
209
|
+
import { g as g31 } from "./utils/getTypographyStyles.js";
|
|
210
|
+
import { g as g32 } from "./utils/getIconColor.js";
|
|
211
|
+
import { a as a16 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
210
212
|
import { O as O2 } from "./utils/ObjectQueue.js";
|
|
211
|
-
import { g as
|
|
213
|
+
import { g as g33, a as a17 } from "./utils/getComponentSlotRoot.js";
|
|
212
214
|
import { f } from "./utils/formatDistanceToNow/formatDistanteToNow.js";
|
|
213
|
-
import { g as
|
|
214
|
-
import { g as
|
|
215
|
+
import { g as g34 } from "./utils/getValidDate.js";
|
|
216
|
+
import { g as g35 } from "./utils/getNullGuard.js";
|
|
215
217
|
export {
|
|
216
218
|
A7 as AREAS_DICCTIONARY,
|
|
217
219
|
a3 as AREAS_DICTIONARY_ID,
|
|
@@ -261,7 +263,7 @@ export {
|
|
|
261
263
|
D3 as DragResizeWindowRND,
|
|
262
264
|
D4 as DynamicFilter,
|
|
263
265
|
D9 as DynamicMFParmsContext,
|
|
264
|
-
|
|
266
|
+
a12 as DynamicMFParmsProvider,
|
|
265
267
|
D5 as DynamicSort,
|
|
266
268
|
F as FixedSizeList,
|
|
267
269
|
F2 as FormProviderCustom,
|
|
@@ -287,10 +289,10 @@ export {
|
|
|
287
289
|
M4 as MFIsolationApp,
|
|
288
290
|
M5 as MFLoader,
|
|
289
291
|
M7 as MemonizedDynamicMFParmsProvider,
|
|
290
|
-
|
|
292
|
+
a8 as MemonizedMenuActions,
|
|
291
293
|
M6 as MemonizedWindowToolsMFContext,
|
|
292
294
|
M3 as MenuActions,
|
|
293
|
-
|
|
295
|
+
a14 as ModalContext,
|
|
294
296
|
M8 as ModalDialog,
|
|
295
297
|
M9 as ModalProvider,
|
|
296
298
|
M as MotionContainer,
|
|
@@ -307,7 +309,7 @@ export {
|
|
|
307
309
|
P7 as PeriodRootStyled,
|
|
308
310
|
P4 as PointsFormatter,
|
|
309
311
|
P3 as Popover,
|
|
310
|
-
|
|
312
|
+
a9 as PopupsContext,
|
|
311
313
|
P10 as PopupsProvider,
|
|
312
314
|
P11 as PopupsViewer,
|
|
313
315
|
P6 as PriceFormatter,
|
|
@@ -336,7 +338,7 @@ export {
|
|
|
336
338
|
R as Resizable,
|
|
337
339
|
R2 as ResizableBox,
|
|
338
340
|
R3 as Responsive,
|
|
339
|
-
|
|
341
|
+
a15 as SKELETON_SVG_ICON,
|
|
340
342
|
S7 as ScrollBar,
|
|
341
343
|
S as SectionCommercial,
|
|
342
344
|
S6 as SelectStyled,
|
|
@@ -370,7 +372,7 @@ export {
|
|
|
370
372
|
W as WindowBase,
|
|
371
373
|
W3 as WindowConfirm,
|
|
372
374
|
W2 as WindowToolsMFContext,
|
|
373
|
-
|
|
375
|
+
a11 as WindowToolsMFProvider,
|
|
374
376
|
c2 as addLayoutItemToBreakPointIfNoExists,
|
|
375
377
|
d3 as addLayoutItemToBreakPoints,
|
|
376
378
|
c4 as capitalizeFirstLetter,
|
|
@@ -386,41 +388,43 @@ export {
|
|
|
386
388
|
b2 as getAreasComponentsDictionary,
|
|
387
389
|
g3 as getAreasDictionary,
|
|
388
390
|
g4 as getCommonActionsDictionary,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
391
|
+
g33 as getComponentClasses,
|
|
392
|
+
a17 as getComponentSlotRoot,
|
|
393
|
+
g29 as getComponentUtilityClass,
|
|
392
394
|
g5 as getDataGridComponentsDictionary,
|
|
393
395
|
g6 as getDataGridRowsFromSet,
|
|
394
|
-
|
|
396
|
+
g16 as getDistanceToNowFormatterComponentsDictionary,
|
|
395
397
|
a4 as getDynamicFilterComponentsDictionary,
|
|
396
398
|
a6 as getDynamicSortComponentsDictionary,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
g31 as
|
|
423
|
-
|
|
399
|
+
a5 as getFilterGroupFieldsByName,
|
|
400
|
+
g27 as getFormComponentsDictionary,
|
|
401
|
+
g14 as getFormatConcatenated,
|
|
402
|
+
g11 as getFormatDate,
|
|
403
|
+
g13 as getFormatPoints,
|
|
404
|
+
g15 as getFormatPrice,
|
|
405
|
+
g17 as getFormattersComponentsDictionary,
|
|
406
|
+
a16 as getHeightSizeStyles,
|
|
407
|
+
g32 as getIconColor,
|
|
408
|
+
g7 as getIsIfInDynamicFilter,
|
|
409
|
+
g21 as getLoadingErrorComponentsDictionary,
|
|
410
|
+
g23 as getMFLoaderComponentsDictionary,
|
|
411
|
+
g22 as getMenuActionsComponentsDictionary,
|
|
412
|
+
a13 as getModalDialogComponentsDictionary,
|
|
413
|
+
g26 as getModalDictionary,
|
|
414
|
+
g24 as getNoItemSelectedComponentsDictionary,
|
|
415
|
+
g35 as getNullGuard,
|
|
416
|
+
g25 as getObjectLogsComponentsDictionary,
|
|
417
|
+
g10 as getPagerComponentsDictionary,
|
|
418
|
+
g30 as getPaletteColor,
|
|
419
|
+
g20 as getPeriodComponetsDictionary,
|
|
420
|
+
g19 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
421
|
+
g18 as getRHFAutocompleteComponentsDictionary,
|
|
422
|
+
g8 as getRawFiltersForNetwork,
|
|
423
|
+
g9 as getRawSortsForNetwork,
|
|
424
|
+
g31 as getTypographyStyles,
|
|
425
|
+
g12 as getUncertaintyFormat,
|
|
426
|
+
g34 as getValidDate,
|
|
427
|
+
g28 as getformAddEditDictionary,
|
|
424
428
|
i as isEqualLayout,
|
|
425
429
|
k as isEqualLayouts,
|
|
426
430
|
i2 as isValidDate,
|
|
@@ -443,7 +447,7 @@ export {
|
|
|
443
447
|
u17 as useCustomForm,
|
|
444
448
|
u29 as useDataGridPersistence,
|
|
445
449
|
u28 as useDynamicFilterAndSort,
|
|
446
|
-
|
|
450
|
+
a10 as useDynamicMFParameters,
|
|
447
451
|
u16 as useDynamicMFParametersStore,
|
|
448
452
|
u19 as useFormAddEdit,
|
|
449
453
|
u22 as useFormFocus,
|