@m4l/components 0.1.52 → 0.1.53

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.
Files changed (101) hide show
  1. package/components/CommonActions/components/ActionFormCancel/{index.bd0d16d6.js → index.8dedf1d5.js} +15 -15
  2. package/components/CommonActions/components/ActionIntro/{index.d567aebb.js → index.5d5294f2.js} +5 -0
  3. package/components/CommonActions/components/ActionIntro/test/contants.d.ts +1 -0
  4. package/components/CommonActions/components/Actions/{index.f0a3167b.js → index.93c9823a.js} +14 -14
  5. package/components/DataGrid/{index.85390177.js → index.1a6508e2.js} +20 -20
  6. package/components/DynamicFilter/DynamicFilter.d.ts +9 -0
  7. package/components/DynamicFilter/classes/index.d.ts +5 -0
  8. package/components/DynamicFilter/classes/types.d.ts +22 -0
  9. package/components/DynamicFilter/constants.d.ts +14 -0
  10. package/components/DynamicFilter/contexts/DynamicFilterContext/helpers.d.ts +24 -0
  11. package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +18 -0
  12. package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +213 -0
  13. package/components/DynamicFilter/contexts/DynamicFilterContext/types.d.ts +5 -0
  14. package/components/DynamicFilter/dictionary.d.ts +21 -0
  15. package/components/DynamicFilter/hooks/useDynamicFilter.d.ts +2 -0
  16. package/components/DynamicFilter/index.2189989e.js +1808 -0
  17. package/components/DynamicFilter/index.d.ts +4 -6
  18. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +3 -0
  19. package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +1 -1
  20. package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +10 -0
  21. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +6 -0
  22. package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +7 -1
  23. package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +15 -0
  24. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +12 -0
  25. package/components/DynamicFilter/subcomponents/PopoverMenuFields/types.d.ts +6 -0
  26. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/helpers.d.ts +39 -0
  27. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +4 -2
  28. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/helpers.d.ts +42 -0
  29. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/index.d.ts +4 -3
  30. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/helpers.d.ts +36 -0
  31. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/index.d.ts +4 -2
  32. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/helpers.d.ts +39 -0
  33. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/index.d.ts +4 -2
  34. package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +72 -4
  35. package/components/DynamicFilter/subcomponents/fieldstypes/validations.d.ts +25 -6
  36. package/components/DynamicFilter/tests/contants.d.ts +6 -0
  37. package/components/DynamicFilter/tests/types.d.ts +2 -0
  38. package/components/DynamicFilter/tests/utils.d.ts +2 -0
  39. package/components/DynamicFilter/types.d.ts +173 -42
  40. package/components/ErrorLabel/{index.78553a1e.js → index.12994bff.js} +5 -5
  41. package/components/Icon/{index.f6e8d810.js → index.b29ff2d9.js} +1 -1
  42. package/components/LanguagePopover/{index.5047b444.js → index.628fe97f.js} +5 -5
  43. package/components/ModalDialog/{index.5a307e29.js → index.49c40899.js} +5 -5
  44. package/components/ObjectLogs/{index.1315af37.js → index.d7c0092a.js} +23 -23
  45. package/components/PaperForm/{index.0114aa9b.js → index.c04000a9.js} +1 -1
  46. package/components/Period/{index.85fe764a.js → index.4f6e419d.js} +15 -15
  47. package/components/Resizeable/{index.8a442a8b.js → index.04fa8de5.js} +1 -1
  48. package/components/ScrollBar/{index.39eeb2de.js → index.35ebe9a1.js} +8 -3
  49. package/components/areas/components/AreasAdmin/{index.dbab59f1.js → index.25e50e70.js} +6 -6
  50. package/components/areas/components/AreasContainer/{index.f3f921b9.js → index.432b9d4c.js} +3 -3
  51. package/components/areas/components/GridLayout/{index.9953146d.js → index.359e777e.js} +5 -5
  52. package/components/areas/components/Window/{index.e34225ae.js → index.2b9f12fe.js} +35 -36
  53. package/components/areas/components/WindowPopUp/{index.90eb0348.js → index.d5fa0d74.js} +36 -37
  54. package/components/areas/components/{index.6d863764.js → index.912056a0.js} +10 -10
  55. package/components/areas/contexts/AreaContext/{index.f25f7180.js → index.b1439daf.js} +1 -1
  56. package/components/areas/contexts/AreasContext/{index.7406c20f.js → index.fb21af84.js} +1 -1
  57. package/components/areas/contexts/{index.e80d8f0f.js → index.1e46147e.js} +1 -1
  58. package/components/areas/hooks/{index.0fd57f88.js → index.5feefc73.js} +1 -1
  59. package/components/areas/hooks/useArea/{index.7bdbbb79.js → index.6f45f930.js} +2 -2
  60. package/components/areas/index.3df8c6d4.js +21 -0
  61. package/components/formatters/BooleanFormatter/{index.b3fb8a75.js → index.a50933fb.js} +1 -1
  62. package/components/formatters/{index.90a19f9f.js → index.7d2ad9ca.js} +2 -1
  63. package/components/hook-form/RHFAutocomplete/{index.74add0d0.js → index.0ffa2185.js} +69 -59
  64. package/components/hook-form/RHFAutocomplete/test/contants.d.ts +1 -0
  65. package/components/hook-form/RHFAutocompleteAsync/{index.0aa3c224.js → index.2dfbe7aa.js} +1 -1
  66. package/components/hook-form/RHFCheckbox/{index.ca94a050.js → index.1fcf42c8.js} +1 -1
  67. package/components/hook-form/RHFDateTime/{index.7f1cbd85.js → index.6c129ce4.js} +14 -25
  68. package/components/hook-form/RHFPeriod/{index.5d2a2071.js → index.1f6aa4c6.js} +2 -2
  69. package/components/hook-form/RHFTextField/classes/index.d.ts +0 -1
  70. package/components/hook-form/RHFTextField/{index.bef7eced.js → index.a021a2b3.js} +21 -11
  71. package/components/hook-form/RHFTextField/tests/contants.d.ts +2 -0
  72. package/components/index.d.ts +1 -3
  73. package/components/modal/{WindowBase.b5e29758.js → WindowBase.66ef3c9a.js} +3 -3
  74. package/components/modal/{WindowConfirm.cbc7720c.js → WindowConfirm.b31ed329.js} +16 -16
  75. package/components/modal/index.6d5b19ef.js +29 -0
  76. package/components/mui_extended/Accordion/{index.1d513477.js → index.002bad72.js} +2 -2
  77. package/components/mui_extended/IconButton/{index.1318a283.js → index.460c0476.js} +1 -1
  78. package/components/mui_extended/MenuActions/{index.1261168c.js → index.aaafafc3.js} +1 -1
  79. package/components/mui_extended/Pager/{index.984aac44.js → index.458f9f0d.js} +1 -1
  80. package/components/mui_extended/{index.cb9d48d2.js → index.915e84dc.js} +5 -5
  81. package/contexts/ModalContext/{index.3d92d9f9.js → index.d1aaddbc.js} +1 -1
  82. package/contexts/RHFormContext/{index.828b60ad.js → index.3dc6e2f5.js} +1 -0
  83. package/hooks/useModal/{index.4454145e.js → index.f77ab08b.js} +1 -1
  84. package/index.js +196 -225
  85. package/package.json +2 -2
  86. package/{react-draggable.0eef011c.js → react-draggable.6471b07e.js} +1 -1
  87. package/{react-resizable.bb58c8fc.js → react-resizable.b620abed.js} +2 -2
  88. package/test/constants_no_mock.d.ts +1 -0
  89. package/utils/{index.e882b264.js → index.b6ae791a.js} +12 -3
  90. package/utils/index.d.ts +2 -0
  91. package/vendor.d5904857.js +145 -0
  92. package/components/DynamicFilter/contexts/BaseContext/index.d.ts +0 -5
  93. package/components/DynamicFilter/contexts/BaseContext/types.d.ts +0 -45
  94. package/components/DynamicFilter/hooks/useFilter.d.ts +0 -1
  95. package/components/DynamicFilter/index.cddd7472.js +0 -1756
  96. package/components/DynamicFilter/subcomponents/ApplyedFilters/components/ApplyedFilter/index.d.ts +0 -3
  97. package/components/DynamicFilter/subcomponents/PopupEditFilter/index.d.ts +0 -2
  98. package/components/DynamicFilter/utils/Clases/index.d.ts +0 -20
  99. package/components/DynamicFilter/utils/Clases/types.d.ts +0 -17
  100. package/components/areas/index.6f09d168.js +0 -21
  101. package/components/modal/index.f6de895f.js +0 -29
@@ -1,71 +1,202 @@
1
1
  import { Maybe } from '@m4l/core';
2
- import { OwnerState } from './contexts/BaseContext/types';
3
- export interface WrapperDynamicFilterProps {
4
- ownerState: OwnerState | Record<string, unknown>;
5
- }
6
2
  export declare type FieldType = 'number' | 'string' | 'boolean' | 'datetime';
7
3
  export declare type OperandType = number | string | boolean | Date | [] | object;
8
- export declare type Operator = 'b' | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'c' | 'nc';
9
- export declare const OPERATORS: Array<Operator>;
4
+ export declare type OperandInitialFilterType = number | string | boolean | [] | object;
5
+ export declare type OperatorB = 'b';
6
+ export declare type Operator = OperatorB | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'c' | 'nc';
10
7
  export declare type StringOperator = 'c' | 'nc';
11
- export declare const STRING_OPERATORS: Array<StringOperator>;
12
- export declare type NumberOperator = 'b' | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
13
- export declare const NUMBER_OPERATORS: Array<NumberOperator>;
8
+ export declare type NumberOperator = OperatorB | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
14
9
  export declare type BooleanOperator = 'e' | 'ne';
15
- export declare const BOOLEAN_OPERATORS: Array<BooleanOperator>;
16
- export declare type DateTimeOperator = 'b' | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
17
- export declare const DATE_TIME_OPERATORS: Array<DateTimeOperator>;
10
+ export declare type DateTimeOperator = OperatorB | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
18
11
  export declare type FieldPresence = 'initialized' | 'fixed' | 'optional';
19
- export interface Field {
12
+ export declare type FieldTypeOperator<T extends FieldType> = T extends 'boolean' ? BooleanOperator : T extends 'datetime' ? DateTimeOperator : T extends 'number' ? NumberOperator : T extends 'string' ? StringOperator : T;
13
+ export declare type FieldTypeOperand<T extends FieldType> = T extends 'boolean' ? boolean : T extends 'datetime' ? Date : T extends 'number' ? number : T extends 'string' ? string : FieldType;
14
+ export interface Field<T extends FieldType = FieldType> {
20
15
  name: string;
21
- label: string;
22
- type: FieldType;
16
+ dictionaryId: string;
17
+ type: T;
23
18
  multiple?: boolean;
24
19
  presence?: FieldPresence;
25
20
  urlIcon: string;
26
- defaultOperand1?: Maybe<OperandType>;
27
- defaultOperand2?: Maybe<OperandType>;
28
- }
29
- export interface OptionOperator<T> {
30
- id: T;
31
- label: string;
21
+ defaultOperator?: Maybe<FieldTypeOperator<T>>;
22
+ defaultOperand1?: Maybe<FieldTypeOperand<T>>;
23
+ defaultOperand2?: Maybe<FieldTypeOperand<T>>;
32
24
  }
33
- export interface BaseApplyFilter {
25
+ export interface BaseApplyFilter<T extends FieldType = FieldType> {
34
26
  id: number;
35
- n: string;
27
+ field: Field<T>;
36
28
  isSetted: boolean;
37
29
  fixed: boolean;
38
30
  }
39
- export interface ValuesFilter {
40
- o: Operator;
41
- labelOperator: string;
42
- labelOperands: string | number;
43
- o1?: Maybe<OperandType>;
44
- o2?: Maybe<OperandType>;
31
+ /**
32
+ * @interface FilterValueBase Base para el tipado de overloading de los valor de un filtro
33
+ */
34
+ export interface FilterValueBase {
35
+ fieldType: FieldType;
36
+ operator: Operator;
37
+ operand1: Maybe<OperandType>;
38
+ operand2?: Maybe<OperandType>;
39
+ }
40
+ export interface FilterValueBoolean extends FilterValueBase {
41
+ fieldType: 'boolean';
42
+ operator: BooleanOperator;
43
+ operand1: boolean;
44
+ }
45
+ export interface FilterValueDateTimeNoB extends FilterValueBase {
46
+ fieldType: 'datetime';
47
+ operator: Exclude<DateTimeOperator, OperatorB>;
48
+ operand1: Date;
49
+ }
50
+ export interface FilterValueDateTimeB extends FilterValueBase {
51
+ fieldType: 'datetime';
52
+ operator: OperatorB;
53
+ operand1: Date;
54
+ operand2: Date;
55
+ }
56
+ export declare type FilterValueDateTime = FilterValueDateTimeNoB | FilterValueDateTimeB;
57
+ export interface FilterValueNumberNoB extends FilterValueBase {
58
+ fieldType: 'number';
59
+ operator: Exclude<NumberOperator, OperatorB>;
60
+ operand1: Maybe<number>;
45
61
  }
46
- export interface FormValuesFilter<T> {
47
- valueOperator?: Maybe<OptionOperator<T>>;
48
- valueOperand1?: Maybe<any>;
49
- valueOperand2?: Maybe<any>;
62
+ export interface FilterValueNumberB extends FilterValueBase {
63
+ fieldType: 'number';
64
+ operator: OperatorB;
65
+ operand1: Maybe<number>;
66
+ operand2: Maybe<number>;
50
67
  }
68
+ export declare type FilterValueNumber = FilterValueNumberNoB | FilterValueNumberB;
69
+ export interface FilterValueString extends FilterValueBase {
70
+ fieldType: 'string';
71
+ operator: StringOperator;
72
+ operand1: string;
73
+ }
74
+ /**
75
+ * @type FilterValue Valor de un filtro sobrecargado para cada tipo de dato
76
+ */
77
+ export declare type FilterValue = FilterValueBoolean | FilterValueDateTime | FilterValueNumber | FilterValueString;
78
+ /**
79
+ * @type FilterFieldApplyed Estado del Filtro + Valor valor del filtro.
80
+ */
81
+ export declare type FilterFieldApplyed<T extends FieldType = FieldType> = BaseApplyFilter<T> & FilterValue;
82
+ /**
83
+ * @interface RawFilterFieldApply Formato para enviar los filtros a las APIs.
84
+ */
51
85
  export interface RawFilterFieldApply {
52
86
  n: string;
53
87
  o: Operator;
54
88
  o1: Maybe<OperandType>;
55
89
  o2: Maybe<OperandType>;
56
90
  }
57
- export declare type FilterFieldApply = BaseApplyFilter & ValuesFilter;
58
- export declare type InitialFilterFieldApply = Omit<FilterFieldApply, 'id' | 'fixed' | 'isSetted' | 'labelOperator'>;
59
- export declare type FilterToAddApply = Omit<FilterFieldApply, 'id' | 'labelOperator'>;
60
- export declare type FilterToEditApply = Omit<FilterFieldApply, 'labelOperator'>;
61
- export interface FilterFormFieldApply extends BaseApplyFilter, ValuesFilter, FormValuesFilter<Operator> {
91
+ export declare type FilterToAddApplyed = Omit<FilterFieldApplyed, 'id'> & {
92
+ isSetted: true;
93
+ };
94
+ export declare type FilterToEditApply = FilterFieldApplyed;
95
+ export interface DataTypeFilerLabels {
96
+ labelField: string;
97
+ labelOperator: string;
98
+ labelOperands: string;
99
+ }
100
+ /**
101
+ * @interface
102
+ * @name InitialFilterApplyed
103
+ * @description Tipado de los filtros a inicializar el componente DynamicFilter
104
+ */
105
+ export declare type InitialFilterApplyed = {
106
+ name: string;
107
+ operator: Operator;
108
+ operand1?: Maybe<OperandInitialFilterType>;
109
+ operand2?: Maybe<OperandInitialFilterType>;
110
+ };
111
+ export declare type FormOperator<T extends Operator = Operator> = {
112
+ id: T;
113
+ label: string;
114
+ };
115
+ export declare type FormOperandBoolean = {
116
+ value: boolean;
117
+ label: string;
118
+ };
119
+ export declare type FormOperandDateTime = Date;
120
+ export declare type FormOperandNumber = number;
121
+ export declare type FormOperandString = string;
122
+ export declare type FormOperand = FormOperandBoolean | FormOperandDateTime | FormOperandNumber | FormOperandString;
123
+ /**
124
+ * @interface FilterValueBase Base para el tipado de overloading de los valor de un filtro
125
+ */
126
+ export interface FormFilterValueBase {
127
+ fieldType: FieldType;
128
+ formValueOperator: FormOperator;
129
+ formValueOperand1: Maybe<FormOperand>;
130
+ }
131
+ export interface FormFilterValueBoolean extends FormFilterValueBase {
132
+ fieldType: 'boolean';
133
+ formValueOperator: FormOperator<BooleanOperator>;
134
+ formValueOperand1: Maybe<FormOperandBoolean>;
135
+ }
136
+ export interface FormFilterValueDateTime extends FormFilterValueBase {
137
+ fieldType: 'datetime';
138
+ formValueOperator: FormOperator<DateTimeOperator>;
139
+ formValueOperand1: Date;
140
+ formValueOperand2: Date;
141
+ }
142
+ export interface FormFilterValueNumber {
143
+ fieldType: 'number';
144
+ formValueOperator: FormOperator<NumberOperator>;
145
+ formValueOperand1: Maybe<number>;
146
+ formValueOperand2: Maybe<number>;
147
+ }
148
+ export interface FormFilterValueString extends FormFilterValueBase {
149
+ fieldType: 'string';
150
+ formValueOperator: FormOperator<StringOperator>;
151
+ formValueOperand1: string;
62
152
  }
63
- export declare const ALL_FIELDS: Field;
153
+ /**
154
+ * @type FormFilterValue Valor de un filtro sobrecargado para cada tipo de dato
155
+ */
156
+ export declare type FormFilterValue = FormFilterValueBoolean | FormFilterValueDateTime | FormFilterValueNumber | FormFilterValueString;
157
+ /**
158
+ * @type FilterFieldApplyed Estado del Filtro + Valor valor del filtro.
159
+ */
160
+ export declare type FormFilterFieldApplyed<T extends FieldType = FieldType> = BaseApplyFilter<T> & FormFilterValue;
161
+ /**
162
+ * @interface
163
+ * @name OnChangeFilters
164
+ * @description Tipado del handler cuando se ejecuta el filtro
165
+ */
166
+ export declare type OnChangeFilters = (
167
+ /**
168
+ * "filters" Vector de filtros aplicados, los cuales pueden servir como entrada del campo "i"nitialApplyedFilters" en un refresh,
169
+ */
170
+ filters: Array<InitialFilterApplyed>,
171
+ /**
172
+ * "rawFilters" Vector de filtros aplicados, en el formato que puede ser llevado a un endpoint.
173
+ * ver: https://www.notion.so/made4labs/Filtrado-de-listas-55afdd8ac92e483abd34e5365b74ee29
174
+ */
175
+ rawFilters: Array<RawFilterFieldApply>) => void;
176
+ /**
177
+ * @interface
178
+ * @name DynamicFilterProps
179
+ * @description Interface que define los props que puede recibir el componente DynamiFilter
180
+ */
64
181
  export interface DynamicFilterProps {
65
- isSkeleton?: boolean;
182
+ /**
183
+ * "automatic" Configura si el filtro se ejecuta automaticamente cuando se agrega o se modifica un filtro. (Default true)
184
+ */
66
185
  automatic?: boolean;
186
+ /**
187
+ * "withAllField" indica si permite o no filtrar por todos los campos (Default true)
188
+ */
67
189
  withAllField?: boolean;
190
+ /**
191
+ * "fields" Campos por los que se puede filtrar
192
+ */
68
193
  fields: Array<Field>;
69
- initialFilters?: Array<InitialFilterFieldApply>;
70
- onChangeFilter: (initialFilters: Array<InitialFilterFieldApply>, rawFilters: Array<RawFilterFieldApply>) => void;
194
+ /**
195
+ * "initialApplyedFilters" filtros iniciales que pueden venir de un almacenamiento local o remoto
196
+ */
197
+ initialApplyedFilters?: Array<InitialFilterApplyed>;
198
+ /**
199
+ * "onChangeFilters" Handler que se dispara cuando el filtro cambia en automatico, o cuando es manual y se presion a el boton de filtrar
200
+ */
201
+ onChangeFilters: OnChangeFilters;
71
202
  }
@@ -1,11 +1,11 @@
1
1
  import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
2
  import "react";
3
3
  import "@m4l/core";
4
- import "../Icon/index.f6e8d810.js";
4
+ import "../Icon/index.b29ff2d9.js";
5
5
  import "@mui/material/styles";
6
6
  import { jsx } from "react/jsx-runtime";
7
- import "../mui_extended/IconButton/index.1318a283.js";
8
- import "../mui_extended/Accordion/index.1d513477.js";
7
+ import "../mui_extended/IconButton/index.460c0476.js";
8
+ import "../mui_extended/Accordion/index.002bad72.js";
9
9
  import "../mui_extended/Avatar/index.fe06afd7.js";
10
10
  import "react-router-dom";
11
11
  import "@mui/material/Button";
@@ -13,8 +13,8 @@ import "../mui_extended/Button/index.8406ed5b.js";
13
13
  import "../Image/index.aa24e982.js";
14
14
  import "@mui/lab";
15
15
  import "../mui_extended/Popover/index.58c49cc0.js";
16
- import "../mui_extended/MenuActions/index.1261168c.js";
17
- import "../mui_extended/Pager/index.984aac44.js";
16
+ import "../mui_extended/MenuActions/index.aaafafc3.js";
17
+ import "../mui_extended/Pager/index.458f9f0d.js";
18
18
  import "../mui_extended/Tab/index.e0653a0a.js";
19
19
  import { t as typographyClasses, T as Typography } from "../mui_extended/Typography/index.be3a279a.js";
20
20
  import { unstable_composeClasses } from "@mui/base";
@@ -3,7 +3,7 @@ import { forwardRef, useState, useMemo, useEffect } from "react";
3
3
  import { IconButton, Box, styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { useTheme } from "@mui/material/styles";
6
- import { g as getPaletteColor } from "../../utils/index.e882b264.js";
6
+ import { a as getPaletteColor } from "../../utils/index.b6ae791a.js";
7
7
  import { unstable_composeClasses } from "@mui/base";
8
8
  const varSmall = {
9
9
  hover: {
@@ -3,11 +3,11 @@ import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem }
3
3
  import { I as Image } from "../Image/index.aa24e982.js";
4
4
  import { useLocales } from "@m4l/graphics";
5
5
  import { useEnvironment, useNetwork } from "@m4l/core";
6
- import "../Icon/index.f6e8d810.js";
6
+ import "../Icon/index.b29ff2d9.js";
7
7
  import "@mui/material/styles";
8
8
  import { jsxs, jsx } from "react/jsx-runtime";
9
- import "../mui_extended/IconButton/index.1318a283.js";
10
- import "../mui_extended/Accordion/index.1d513477.js";
9
+ import "../mui_extended/IconButton/index.460c0476.js";
10
+ import "../mui_extended/Accordion/index.002bad72.js";
11
11
  import "../mui_extended/Avatar/index.fe06afd7.js";
12
12
  import "react-router-dom";
13
13
  import "@mui/material/Button";
@@ -15,8 +15,8 @@ import { I as ImageButton } from "../mui_extended/Button/index.8406ed5b.js";
15
15
  import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
16
16
  import "@mui/lab";
17
17
  import { P as Popover } from "../mui_extended/Popover/index.58c49cc0.js";
18
- import "../mui_extended/MenuActions/index.1261168c.js";
19
- import "../mui_extended/Pager/index.984aac44.js";
18
+ import "../mui_extended/MenuActions/index.aaafafc3.js";
19
+ import "../mui_extended/Pager/index.458f9f0d.js";
20
20
  import "../mui_extended/Tab/index.e0653a0a.js";
21
21
  import "../mui_extended/Typography/index.be3a279a.js";
22
22
  import { unstable_composeClasses } from "@mui/base";
@@ -1,12 +1,12 @@
1
1
  import { Dialog, Paper } from "@mui/material";
2
- import { c as cjs } from "../../react-draggable.0eef011c.js";
3
- import { u as useModal } from "../../hooks/useModal/index.4454145e.js";
2
+ import { c as cjs } from "../../react-draggable.6471b07e.js";
3
+ import { u as useModal } from "../../hooks/useModal/index.f77ab08b.js";
4
4
  import { styled } from "@mui/material/styles";
5
- import { a as getThemeVariantColor } from "../../utils/index.e882b264.js";
6
- import { R as ResizeableWindow } from "../Resizeable/index.8a442a8b.js";
5
+ import { b as getThemeVariantColor } from "../../utils/index.b6ae791a.js";
6
+ import { R as ResizeableWindow } from "../Resizeable/index.04fa8de5.js";
7
7
  import { useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f0a3167b.js";
9
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.93c9823a.js";
10
10
  const WrapperDialog = styled(Dialog)(() => ({}));
11
11
  const Container = styled("div")(({ theme }) => ({
12
12
  display: "flex",
@@ -1,36 +1,36 @@
1
1
  import { useState, useEffect, useCallback, useMemo } from "react";
2
2
  import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
3
3
  import { styled } from "@mui/material/styles";
4
- import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.85390177.js";
4
+ import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.1a6508e2.js";
5
5
  import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
6
6
  import { Tooltip, IconButton } from "@mui/material";
7
7
  import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
8
8
  import { R as ReactJson } from "../../react-json-view.57125fcf.js";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
- import { u as useModal } from "../../hooks/useModal/index.4454145e.js";
11
- import { I as Icon } from "../Icon/index.f6e8d810.js";
12
- import "../../react-draggable.0eef011c.js";
13
- import "../ModalDialog/index.5a307e29.js";
14
- import "../Resizeable/index.8a442a8b.js";
15
- import "../CommonActions/components/Actions/index.f0a3167b.js";
10
+ import { u as useModal } from "../../hooks/useModal/index.f77ab08b.js";
11
+ import { I as Icon } from "../Icon/index.b29ff2d9.js";
12
+ import "../../react-draggable.6471b07e.js";
13
+ import "../ModalDialog/index.49c40899.js";
14
+ import "../Resizeable/index.04fa8de5.js";
15
+ import "../CommonActions/components/Actions/index.93c9823a.js";
16
16
  import "@mui/material/Button";
17
17
  import "../mui_extended/Button/index.8406ed5b.js";
18
18
  import "react-hook-form";
19
- import "../areas/components/index.6d863764.js";
20
- import "../areas/components/AreasAdmin/index.dbab59f1.js";
21
- import "../mui_extended/IconButton/index.1318a283.js";
19
+ import "../areas/components/index.912056a0.js";
20
+ import "../areas/components/AreasAdmin/index.25e50e70.js";
21
+ import "../mui_extended/IconButton/index.460c0476.js";
22
22
  import "zustand";
23
- import "../areas/contexts/AreasContext/index.7406c20f.js";
23
+ import "../areas/contexts/AreasContext/index.fb21af84.js";
24
24
  import "zustand/shallow";
25
- import "../areas/components/AreasContainer/index.f3f921b9.js";
25
+ import "../areas/components/AreasContainer/index.432b9d4c.js";
26
26
  import "react-grid-layout/css/styles.css";
27
- import "../../react-resizable.bb58c8fc.js";
28
- import "../areas/contexts/index.e80d8f0f.js";
27
+ import "../../react-resizable.b620abed.js";
28
+ import "../areas/contexts/index.1e46147e.js";
29
29
  import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
30
30
  import "@mui/lab";
31
- import "../modal/WindowConfirm.cbc7720c.js";
32
- import { W as WindowBase } from "../modal/WindowBase.b5e29758.js";
33
- import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.cddd7472.js";
31
+ import "../modal/WindowConfirm.b31ed329.js";
32
+ import { W as WindowBase } from "../modal/WindowBase.66ef3c9a.js";
33
+ import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.2189989e.js";
34
34
  const Container$1 = styled("div")(() => ({
35
35
  height: "100%",
36
36
  width: "100%",
@@ -237,38 +237,38 @@ function ObjectLogs(props) {
237
237
  id: "objectLogsActions",
238
238
  children: /* @__PURE__ */ jsx(DynamicFilter, {
239
239
  withAllField: true,
240
- onChangeFilter,
240
+ onChangeFilters: onChangeFilter,
241
241
  automatic: false,
242
242
  fields: [{
243
243
  name: "user_logs.created_at",
244
- label: getLabel("object_logs.created_at"),
244
+ dictionaryId: getLabel("object_logs.created_at"),
245
245
  type: "datetime",
246
246
  multiple: false,
247
247
  presence: "fixed",
248
248
  urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`
249
249
  }, {
250
250
  name: "users.email",
251
- label: getLabel("object_logs.email"),
251
+ dictionaryId: getLabel("object_logs.email"),
252
252
  type: "string",
253
253
  multiple: true,
254
254
  presence: "optional",
255
255
  urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/email.svg`
256
256
  }, {
257
257
  name: "user_logs.log_preview",
258
- label: getLabel("object_logs.log_preview"),
258
+ dictionaryId: getLabel("object_logs.log_preview"),
259
259
  type: "string",
260
260
  multiple: true,
261
261
  presence: "optional",
262
262
  urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_preview.svg`
263
263
  }, {
264
264
  name: "user_logs.log_detail",
265
- label: getLabel("object_logs.log_detail"),
265
+ dictionaryId: getLabel("object_logs.log_detail"),
266
266
  type: "string",
267
267
  multiple: true,
268
268
  presence: "optional",
269
269
  urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/object_logs/assets/icons/log_detail.svg`
270
270
  }],
271
- initialFilters: []
271
+ initialApplyedFilters: []
272
272
  })
273
273
  }), /* @__PURE__ */ jsx(GridWrapper, {
274
274
  id: "GridWrapper",
@@ -1,7 +1,7 @@
1
1
  import { styled } from "@mui/material/styles";
2
2
  import { useModuleSkeleton } from "@m4l/core";
3
3
  import { Skeleton } from "@mui/material";
4
- import { I as Icon } from "../Icon/index.f6e8d810.js";
4
+ import { I as Icon } from "../Icon/index.b29ff2d9.js";
5
5
  import { jsxs, jsx } from "react/jsx-runtime";
6
6
  const WrapperPaper = styled("div")(({
7
7
  theme
@@ -1,30 +1,30 @@
1
1
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
3
3
  import { useMemo } from "react";
4
- import { I as Icon } from "../Icon/index.f6e8d810.js";
4
+ import { I as Icon } from "../Icon/index.b29ff2d9.js";
5
5
  import { jsxs, jsx } from "react/jsx-runtime";
6
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f0a3167b.js";
6
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.93c9823a.js";
7
7
  import "@mui/material/Button";
8
8
  import "../mui_extended/Button/index.8406ed5b.js";
9
9
  import "react-hook-form";
10
- import "../../contexts/ModalContext/index.3d92d9f9.js";
11
- import "../../react-draggable.0eef011c.js";
12
- import "../ModalDialog/index.5a307e29.js";
13
- import "../Resizeable/index.8a442a8b.js";
10
+ import "../../contexts/ModalContext/index.d1aaddbc.js";
11
+ import "../../react-draggable.6471b07e.js";
12
+ import "../ModalDialog/index.49c40899.js";
13
+ import "../Resizeable/index.04fa8de5.js";
14
14
  import "@m4l/graphics";
15
- import "../modal/WindowConfirm.cbc7720c.js";
15
+ import "../modal/WindowConfirm.b31ed329.js";
16
16
  import "@mui/material/styles";
17
- import "../modal/WindowBase.b5e29758.js";
18
- import "../areas/components/index.6d863764.js";
19
- import "../areas/components/AreasAdmin/index.dbab59f1.js";
20
- import "../mui_extended/IconButton/index.1318a283.js";
17
+ import "../modal/WindowBase.66ef3c9a.js";
18
+ import "../areas/components/index.912056a0.js";
19
+ import "../areas/components/AreasAdmin/index.25e50e70.js";
20
+ import "../mui_extended/IconButton/index.460c0476.js";
21
21
  import "zustand";
22
- import "../areas/contexts/AreasContext/index.7406c20f.js";
22
+ import "../areas/contexts/AreasContext/index.fb21af84.js";
23
23
  import "zustand/shallow";
24
- import "../areas/components/AreasContainer/index.f3f921b9.js";
24
+ import "../areas/components/AreasContainer/index.432b9d4c.js";
25
25
  import "react-grid-layout/css/styles.css";
26
- import "../../react-resizable.bb58c8fc.js";
27
- import "../areas/contexts/index.e80d8f0f.js";
26
+ import "../../react-resizable.b620abed.js";
27
+ import "../areas/contexts/index.1e46147e.js";
28
28
  import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
29
29
  import "@mui/lab";
30
30
  const ContainerPeriod = styled("div")(({
@@ -1,5 +1,5 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { R as ResizableBox } from "../../react-resizable.bb58c8fc.js";
2
+ import { R as ResizableBox } from "../../react-resizable.b620abed.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  const WrapperResizeable = styled(ResizableBox)(({
5
5
  theme
@@ -1,11 +1,15 @@
1
- import SimpleBarReact from "simplebar-react";
2
- import { styled, alpha } from "@mui/material/styles";
3
1
  import { Box } from "@mui/material";
2
+ import { styled, css, alpha } from "@mui/material/styles";
3
+ import SimpleBarReact from "simplebar-react";
4
+ import simpleBarCss from "simplebar/dist/simplebar.min.css?used";
4
5
  import { jsx } from "react/jsx-runtime";
5
6
  const RootStyle = styled("div")(() => ({
6
7
  flexGrow: 1,
7
8
  height: "100%",
8
- overflow: "hidden"
9
+ overflow: "hidden",
10
+ ...css`
11
+ ${simpleBarCss}
12
+ `
9
13
  }));
10
14
  const SimpleBarStyle = styled(SimpleBarReact)(({
11
15
  theme
@@ -43,6 +47,7 @@ function ScrollBar({
43
47
  });
44
48
  }
45
49
  return /* @__PURE__ */ jsx(RootStyle, {
50
+ id: "RootStyle",
46
51
  children: /* @__PURE__ */ jsx(SimpleBarStyle, {
47
52
  autoHide: false,
48
53
  children
@@ -1,12 +1,12 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { I as IconButton } from "../../../mui_extended/IconButton/index.1318a283.js";
3
- import { u as useAreasStore } from "../../hooks/useArea/index.7bdbbb79.js";
2
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.460c0476.js";
3
+ import { u as useAreasStore } from "../../hooks/useArea/index.6f45f930.js";
4
4
  import { useEnvironment } from "@m4l/core";
5
5
  import "@mui/material";
6
- import "../../../Icon/index.f6e8d810.js";
6
+ import "../../../Icon/index.b29ff2d9.js";
7
7
  import "react";
8
8
  import { jsxs, jsx } from "react/jsx-runtime";
9
- import "../../../mui_extended/Accordion/index.1d513477.js";
9
+ import "../../../mui_extended/Accordion/index.002bad72.js";
10
10
  import "../../../mui_extended/Avatar/index.fe06afd7.js";
11
11
  import "react-router-dom";
12
12
  import "@mui/material/Button";
@@ -14,8 +14,8 @@ import "../../../mui_extended/Button/index.8406ed5b.js";
14
14
  import "../../../Image/index.aa24e982.js";
15
15
  import "@mui/lab";
16
16
  import "../../../mui_extended/Popover/index.58c49cc0.js";
17
- import "../../../mui_extended/MenuActions/index.1261168c.js";
18
- import "../../../mui_extended/Pager/index.984aac44.js";
17
+ import "../../../mui_extended/MenuActions/index.aaafafc3.js";
18
+ import "../../../mui_extended/Pager/index.458f9f0d.js";
19
19
  import "../../../mui_extended/Tab/index.e0653a0a.js";
20
20
  import "../../../mui_extended/Typography/index.be3a279a.js";
21
21
  import { shallow } from "zustand/shallow";
@@ -1,8 +1,8 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { A as Area } from "../index.6d863764.js";
2
+ import { A as Area } from "../index.912056a0.js";
3
3
  import "react-grid-layout/css/styles.css";
4
- import "../../../../react-resizable.bb58c8fc.js";
5
- import { u as useAreasStore } from "../../hooks/useArea/index.7bdbbb79.js";
4
+ import "../../../../react-resizable.b620abed.js";
5
+ import { u as useAreasStore } from "../../hooks/useArea/index.6f45f930.js";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  const ContainerAreas = styled("div")(({
8
8
  theme
@@ -1,12 +1,12 @@
1
1
  import { WidthProvider, Responsive } from "react-grid-layout";
2
- import { a as useAreaStore } from "../../hooks/useArea/index.7bdbbb79.js";
2
+ import { a as useAreaStore } from "../../hooks/useArea/index.6f45f930.js";
3
3
  import { styled } from "@mui/material/styles";
4
- import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.90eb0348.js";
5
- import { M as MemonizedWindow, a as MemonizedWindowModal } from "../Window/index.e34225ae.js";
4
+ import { M as MemonizedWindowPopUp } from "../WindowPopUp/index.d5fa0d74.js";
5
+ import { M as MemonizedWindow, a as MemonizedWindowModal } from "../Window/index.2b9f12fe.js";
6
6
  import "react-grid-layout/css/styles.css";
7
- import "../../../../react-resizable.bb58c8fc.js";
7
+ import "../../../../react-resizable.b620abed.js";
8
8
  import { shallow } from "zustand/shallow";
9
- import { R as ROW_HEIGTH_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT } from "../../contexts/AreaContext/index.f25f7180.js";
9
+ import { R as ROW_HEIGTH_GRIDLAYOUT, C as CONTAINER_PADDING_GRIDLAYOUT } from "../../contexts/AreaContext/index.b1439daf.js";
10
10
  import { jsxs, jsx } from "react/jsx-runtime";
11
11
  const WrapperPoups = styled("div")(() => ({
12
12
  zIndex: 1,