@m4l/components 0.1.60 → 0.1.62
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/CommonActions/components/ActionFormCancel/{index.c4054a25.js → index.2124a98a.js} +11 -11
- package/components/CommonActions/components/ActionIntro/{index.56a0dcf9.js → index.3f75a205.js} +1 -1
- package/components/CommonActions/components/Actions/{index.06b651ab.js → index.6eb24c0b.js} +9 -9
- package/components/DataGrid/{index.b06e687e.js → index.58f35158.js} +12 -12
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +7 -2
- package/components/DynamicFilter/constants.d.ts +1 -1
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +22 -5
- package/components/DynamicFilter/dictionary.d.ts +0 -2
- package/components/DynamicFilter/{index.ceabc6b6.js → index.10f901c6.js} +137 -126
- package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +5 -0
- package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +1 -1
- package/components/DynamicFilter/types.d.ts +16 -2
- package/components/ModalDialog/{index.99cde79e.js → index.dc7ebe06.js} +2 -2
- package/components/ObjectLogs/{index.db704dfe.js → index.38c2ad18.js} +12 -12
- package/components/Period/dictionary.d.ts +6 -5
- package/components/Period/{index.0ffcbec1.js → index.796b3af4.js} +22 -16
- package/components/ScrollBar/{index.35ebe9a1.js → index.b77feabd.js} +8 -5
- package/components/areas/components/AreasAdmin/{index.1a331d66.js → index.645bd2c7.js} +1 -1
- package/components/areas/components/AreasContainer/{index.ff33521a.js → index.3e74c849.js} +2 -2
- package/components/areas/components/GridLayout/{index.c6c8e0d5.js → index.50810712.js} +4 -4
- package/components/areas/components/Window/{index.735d6080.js → index.8040dbe4.js} +21 -21
- package/components/areas/components/WindowPopUp/{index.037ecadd.js → index.4514046e.js} +22 -22
- package/components/areas/components/{index.37fd13b9.js → index.9f62ca8e.js} +7 -7
- package/components/areas/contexts/AreaContext/{index.b67ffbb9.js → index.368adb8d.js} +4 -2
- package/components/areas/contexts/AreasContext/{index.5e4e0c5d.js → index.f3d6e728.js} +1 -1
- package/components/areas/contexts/{index.065f1714.js → index.3623b460.js} +1 -1
- package/components/areas/hooks/{index.75b5ba77.js → index.18982960.js} +1 -1
- package/components/areas/hooks/useArea/{index.59bd8d21.js → index.dab7ce20.js} +2 -2
- package/components/areas/{index.de327843.js → index.a0456f95.js} +5 -5
- package/components/formatters/PeriodFormatter/dictionary.d.ts +16 -7
- package/components/formatters/{index.12ac825b.js → index.acd3dcea.js} +20 -18
- package/components/hook-form/RHFAutocomplete/{index.89e7963b.js → index.bb6cb5df.js} +1 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.89cba5be.js → index.815949a9.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.60c2cc90.js → index.c4944f9c.js} +1 -1
- package/components/hook-form/RHFTextField/{index.b172f4a8.js → index.d3544fa3.js} +1 -1
- package/components/modal/{WindowBase.d1e40422.js → WindowBase.7828e042.js} +1 -1
- package/components/modal/WindowConfirm/dictionary.d.ts +6 -0
- package/components/modal/{WindowConfirm.897eb532.js → WindowConfirm.42ec4dcd.js} +18 -12
- package/components/modal/{index.342c37d1.js → index.3cc54b93.js} +10 -10
- package/contexts/ModalContext/{index.f215bf0b.js → index.b4114066.js} +1 -1
- package/hooks/useModal/{index.e338782f.js → index.77b3415c.js} +1 -1
- package/index.js +36 -37
- package/package.json +1 -2
- package/{vendor.925c029e.js → vendor.29969396.js} +25 -25
package/components/CommonActions/components/ActionFormCancel/{index.c4054a25.js → index.2124a98a.js}
RENAMED
|
@@ -3,28 +3,28 @@ import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { B as Button } from "../../../mui_extended/Button/index.8406ed5b.js";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.77b3415c.js";
|
|
7
7
|
import "../../../../react-draggable.6471b07e.js";
|
|
8
|
-
import "../../../ModalDialog/index.
|
|
8
|
+
import "../../../ModalDialog/index.dc7ebe06.js";
|
|
9
9
|
import "../../../Resizeable/index.04fa8de5.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
import "@m4l/graphics";
|
|
12
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
13
|
-
import "../../../modal/WindowBase.
|
|
12
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.42ec4dcd.js";
|
|
13
|
+
import "../../../modal/WindowBase.7828e042.js";
|
|
14
14
|
import "../../../Icon/index.b29ff2d9.js";
|
|
15
15
|
import "@mui/material/styles";
|
|
16
|
-
import "../../../areas/components/index.
|
|
17
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
16
|
+
import "../../../areas/components/index.9f62ca8e.js";
|
|
17
|
+
import "../../../areas/components/AreasAdmin/index.645bd2c7.js";
|
|
18
18
|
import "../../../mui_extended/IconButton/index.afa201a7.js";
|
|
19
19
|
import "zustand";
|
|
20
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
20
|
+
import "../../../areas/contexts/AreasContext/index.f3d6e728.js";
|
|
21
21
|
import "zustand/shallow";
|
|
22
|
-
import "../../../areas/components/AreasContainer/index.
|
|
22
|
+
import "../../../areas/components/AreasContainer/index.3e74c849.js";
|
|
23
23
|
import "react-grid-layout/css/styles.css";
|
|
24
24
|
import "../../../../react-resizable.b620abed.js";
|
|
25
|
-
import "../../../areas/contexts/index.
|
|
25
|
+
import "../../../areas/contexts/index.3623b460.js";
|
|
26
26
|
import "../../../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
27
|
-
import { u as useWindowToolsMF } from "../../../areas/hooks/index.
|
|
27
|
+
import { u as useWindowToolsMF } from "../../../areas/hooks/index.18982960.js";
|
|
28
28
|
function ActionFormCancel() {
|
|
29
29
|
const {
|
|
30
30
|
getLabel
|
|
@@ -52,7 +52,7 @@ function ActionFormCancel() {
|
|
|
52
52
|
openModal({
|
|
53
53
|
window: /* @__PURE__ */ jsx(WindowConfirm, {
|
|
54
54
|
variant: "warning",
|
|
55
|
-
title: getLabel("
|
|
55
|
+
title: getLabel("common_actions.confirm_quit_title"),
|
|
56
56
|
msg: getLabel("form_provider.confirm_quit_msg"),
|
|
57
57
|
onClickIntro: onConfirmQuit
|
|
58
58
|
})
|
package/components/CommonActions/components/ActionIntro/{index.56a0dcf9.js → index.3f75a205.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { B as Button } from "../../../mui_extended/Button/index.8406ed5b.js";
|
|
3
|
-
import { T as TEST_PROP_ID } from "../../../../vendor.
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../../../vendor.29969396.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
6
6
|
const ActionIntro = (props) => {
|
|
@@ -6,25 +6,25 @@ import "@mui/material/Button";
|
|
|
6
6
|
import "../../../mui_extended/Button/index.8406ed5b.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../../../../contexts/ModalContext/index.
|
|
9
|
+
import "../../../../contexts/ModalContext/index.b4114066.js";
|
|
10
10
|
import "../../../../react-draggable.6471b07e.js";
|
|
11
|
-
import "../../../ModalDialog/index.
|
|
11
|
+
import "../../../ModalDialog/index.dc7ebe06.js";
|
|
12
12
|
import "../../../Resizeable/index.04fa8de5.js";
|
|
13
13
|
import "@m4l/graphics";
|
|
14
14
|
import "@mui/lab";
|
|
15
|
-
import "../../../modal/WindowConfirm.
|
|
15
|
+
import "../../../modal/WindowConfirm.42ec4dcd.js";
|
|
16
16
|
import "../../../Icon/index.b29ff2d9.js";
|
|
17
|
-
import "../../../modal/WindowBase.
|
|
18
|
-
import "../../../areas/components/index.
|
|
19
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
17
|
+
import "../../../modal/WindowBase.7828e042.js";
|
|
18
|
+
import "../../../areas/components/index.9f62ca8e.js";
|
|
19
|
+
import "../../../areas/components/AreasAdmin/index.645bd2c7.js";
|
|
20
20
|
import "../../../mui_extended/IconButton/index.afa201a7.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
22
|
+
import "../../../areas/contexts/AreasContext/index.f3d6e728.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../../../areas/components/AreasContainer/index.
|
|
24
|
+
import "../../../areas/components/AreasContainer/index.3e74c849.js";
|
|
25
25
|
import "react-grid-layout/css/styles.css";
|
|
26
26
|
import "../../../../react-resizable.b620abed.js";
|
|
27
|
-
import "../../../areas/contexts/index.
|
|
27
|
+
import "../../../areas/contexts/index.3623b460.js";
|
|
28
28
|
import "../../../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
29
29
|
const WrapperStandarActions = styled("div")(({
|
|
30
30
|
theme
|
|
@@ -9,34 +9,34 @@ import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByStri
|
|
|
9
9
|
import { M as MenuActions } from "../mui_extended/MenuActions/index.1affe51a.js";
|
|
10
10
|
import { g as getPagerComponentsDictionary, P as Pager } from "../mui_extended/Pager/index.d4d1a1a0.js";
|
|
11
11
|
import { I as IconButton } from "../mui_extended/IconButton/index.afa201a7.js";
|
|
12
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
12
|
+
import { u as useModal } from "../../hooks/useModal/index.77b3415c.js";
|
|
13
13
|
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.a81752ef.js";
|
|
14
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
14
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.3f75a205.js";
|
|
15
15
|
import "../../react-draggable.6471b07e.js";
|
|
16
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
16
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.dc7ebe06.js";
|
|
17
17
|
import "../Resizeable/index.04fa8de5.js";
|
|
18
18
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
19
|
-
import { A as Actions$1 } from "../CommonActions/components/Actions/index.
|
|
19
|
+
import { A as Actions$1 } from "../CommonActions/components/Actions/index.6eb24c0b.js";
|
|
20
20
|
import "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
23
|
-
import "../areas/components/index.
|
|
24
|
-
import "../areas/components/AreasAdmin/index.
|
|
23
|
+
import "../areas/components/index.9f62ca8e.js";
|
|
24
|
+
import "../areas/components/AreasAdmin/index.645bd2c7.js";
|
|
25
25
|
import "zustand";
|
|
26
|
-
import "../areas/contexts/AreasContext/index.
|
|
26
|
+
import "../areas/contexts/AreasContext/index.f3d6e728.js";
|
|
27
27
|
import "zustand/shallow";
|
|
28
|
-
import "../areas/components/AreasContainer/index.
|
|
28
|
+
import "../areas/components/AreasContainer/index.3e74c849.js";
|
|
29
29
|
import "react-grid-layout/css/styles.css";
|
|
30
30
|
import "../../react-resizable.b620abed.js";
|
|
31
|
-
import "../areas/contexts/index.
|
|
31
|
+
import "../areas/contexts/index.3623b460.js";
|
|
32
32
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
33
33
|
import "@mui/lab";
|
|
34
|
-
import "../modal/WindowConfirm.
|
|
34
|
+
import "../modal/WindowConfirm.42ec4dcd.js";
|
|
35
35
|
import "../Icon/index.b29ff2d9.js";
|
|
36
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
36
|
+
import { W as WindowBase } from "../modal/WindowBase.7828e042.js";
|
|
37
37
|
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.bf947220.js";
|
|
38
38
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
39
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
39
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.acd3dcea.js";
|
|
40
40
|
const WrapperGrid = styled("div")(() => ({
|
|
41
41
|
display: "flex",
|
|
42
42
|
flexDirection: "column",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamicFilterClasses } from './types';
|
|
2
2
|
import { OwnerState } from '../contexts/DynamicFilterContext/store';
|
|
3
3
|
export declare const dynamicFilterClasses: DynamicFilterClasses;
|
|
4
|
-
export declare const useUtilityClasses: (ownerState: OwnerState) => Record<"root" | "containerFistRow" | "filterButton" | "containerInputFilter" | "wrapperApplyedFilters" | "containerApplyedFilters" | "applyedFilter" | "
|
|
4
|
+
export declare const useUtilityClasses: (ownerState: OwnerState) => Record<"root" | "containerFistRow" | "filterButton" | "containerInputFilter" | "wrapperApplyedFilters" | "containerApplyedFilters" | "applyedFilter" | "clearFiltersButton" | "popoverMenuFields" | "popoverMenuFieldsPaper" | "popoverMenuFieldsItem" | "popoverFilter" | "popoverFilterPaper" | "popoverFilterHeader" | "containerBooleanFilter" | "containerDateTimeFilter" | "containerNumberFilter" | "containerStringFilter", string>;
|
|
5
5
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -6,17 +6,22 @@ export interface DynamicFilterClasses {
|
|
|
6
6
|
wrapperApplyedFilters: string;
|
|
7
7
|
containerApplyedFilters: string;
|
|
8
8
|
applyedFilter: string;
|
|
9
|
-
|
|
9
|
+
clearFiltersButton: string;
|
|
10
|
+
popoverMenuFields: string;
|
|
11
|
+
popoverMenuFieldsPaper: string;
|
|
10
12
|
popoverMenuFieldsItem: string;
|
|
13
|
+
popoverFilter: string;
|
|
11
14
|
popoverFilterPaper: string;
|
|
12
15
|
popoverFilterHeader: string;
|
|
13
16
|
containerBooleanFilter: string;
|
|
14
17
|
containerDateTimeFilter: string;
|
|
15
18
|
containerNumberFilter: string;
|
|
16
19
|
containerStringFilter: string;
|
|
20
|
+
isSkeleton: string;
|
|
17
21
|
inEdition: string;
|
|
18
|
-
|
|
22
|
+
isInvalid: string;
|
|
19
23
|
isDirty: string;
|
|
20
24
|
isMobile: string;
|
|
25
|
+
noSetted: string;
|
|
21
26
|
}
|
|
22
27
|
export declare type DynamicFilterClassesKey = keyof DynamicFilterClasses;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanOperator, DateTimeOperator, Field, NumberOperator, Operator, StringOperator } from './types';
|
|
2
|
-
export declare const COMPONENT_TEST_ID = "
|
|
2
|
+
export declare const COMPONENT_TEST_ID = "M4LDynamicFilter";
|
|
3
3
|
export declare const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
4
4
|
export declare const ASSETS_URL = "/frontend/components/dynamic_filter/assets/icons/";
|
|
5
5
|
export declare const ASSETS: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetLabelType } from '@m4l/core';
|
|
2
|
-
import { Field, FilterFieldApplyed, FilterToEditApply, InitialFilterApplyed
|
|
2
|
+
import { Field, FilterFieldApplyed, FilterToEditApply, InitialFilterApplyed } from '../../types';
|
|
3
3
|
import { Classes } from '../../classes';
|
|
4
4
|
import { WritableDraft } from 'immer/dist/internal';
|
|
5
5
|
export declare type OpenFor = 'add' | 'edit';
|
|
@@ -38,6 +38,10 @@ export declare type PopoverFilterData = PopoverFilterDataAdd | PopoverFilterData
|
|
|
38
38
|
* @description Interface que define la variables que se van a usar en clases del componente
|
|
39
39
|
*/
|
|
40
40
|
export declare type OwnerState = {
|
|
41
|
+
/**
|
|
42
|
+
* "isSkeleton" indica si el componente está en skeleton.
|
|
43
|
+
*/
|
|
44
|
+
isSkeleton: boolean;
|
|
41
45
|
/**
|
|
42
46
|
* "inEdition" se establece cuando se está en edición.
|
|
43
47
|
*/
|
|
@@ -55,6 +59,12 @@ export declare type OwnerState = {
|
|
|
55
59
|
*/
|
|
56
60
|
isMobile: boolean;
|
|
57
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* @type
|
|
64
|
+
* @name ExternalOwnerState
|
|
65
|
+
* @description Estados que se actulizan por fuera del store, a través de hooks
|
|
66
|
+
*/
|
|
67
|
+
export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
|
|
58
68
|
/**
|
|
59
69
|
* @interface DynamicFilterState
|
|
60
70
|
* @name DynamicFilterState
|
|
@@ -95,8 +105,15 @@ export interface DynamicFilterState {
|
|
|
95
105
|
* @description Campos disponibles para filtrar
|
|
96
106
|
*/
|
|
97
107
|
availableFields: Array<Field>;
|
|
108
|
+
/**
|
|
109
|
+
* "applyedFilters" Filtros aplicados actualmente
|
|
110
|
+
*/
|
|
98
111
|
applyedFilters: Array<FilterFieldApplyed>;
|
|
99
|
-
|
|
112
|
+
/**
|
|
113
|
+
* "countOnChangeFiltersApplyed" Cantid de veces que el filtro se ha aplicado, sirve para suscribirse y aplicar el filtro.
|
|
114
|
+
* Esto se debe hacer porque no se puede lanzar un handler que modifica valores, durante una renderización.
|
|
115
|
+
*/
|
|
116
|
+
countOnChangeFiltersApplyed: number;
|
|
100
117
|
/** popoverFilterData: para emerger el popuup de modificación campos */
|
|
101
118
|
popoverFilterData?: PopoverFilterData;
|
|
102
119
|
classes: Classes;
|
|
@@ -177,11 +194,11 @@ export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
|
177
194
|
*/
|
|
178
195
|
setInEdition: (newInEdition: boolean) => void;
|
|
179
196
|
/**
|
|
180
|
-
* @description Modifica
|
|
197
|
+
* @description Modifica los estados que se actualizan externamente al Store
|
|
181
198
|
* @param newIsMobile
|
|
182
199
|
* @returns
|
|
183
200
|
*/
|
|
184
|
-
|
|
201
|
+
setExternalState: (newExternalState: ExternalOwnerState) => void;
|
|
185
202
|
/**
|
|
186
203
|
* @description Establece la función de apertura del menuu de campos
|
|
187
204
|
* @param anchorEl
|
|
@@ -194,7 +211,7 @@ export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
|
194
211
|
closePopoverMenuFields: (newInEdition?: boolean) => void;
|
|
195
212
|
};
|
|
196
213
|
}
|
|
197
|
-
declare type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | '
|
|
214
|
+
declare type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | 'automatic' | 'fields' | 'withAllField' | 'getLabel' | 'getLabel' | 'allField' | 'ownerState'>;
|
|
198
215
|
/**
|
|
199
216
|
* @description Crea el store de zustand para el componente DynamicFilter
|
|
200
217
|
* @param initProps Variables iniciales que necesita store para poder inicializarlo
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Dictionary } from '@m4l/core';
|
|
2
1
|
export declare const DYNAMICFILTER_DICTIONARY_ID = "dynamic_filter";
|
|
3
2
|
export declare function getDynamicFilterComponentsDictionary(): string[];
|
|
4
|
-
export declare const defaultDynamicFilterDictionary: Dictionary;
|
|
5
3
|
export declare const LABEL_FILTER_BUTTON = "filter_tooltip";
|
|
6
4
|
export declare const DICCTIONARY: {
|
|
7
5
|
readonly input_placeholder: "input_placeholder";
|