@m4l/components 1.0.16 → 1.0.18
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/AccountPopover/{index.97a78be9.js → index.f2226cb9.js} +1 -1
- package/components/AppBar/{index.47dbe6f1.js → index.50d090b7.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.ad1b361f.js → index.03a5915a.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.3e0b387f.js → index.e0dbec18.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.f33eb24e.js → index.671116f2.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.381342ab.js → index.f7b20493.js} +1 -1
- package/components/DataGrid/{index.804af87c.js → index.447c4e44.js} +2 -2
- package/components/DataGrid/subcomponents/Actions/{index.7421063b.js → index.aff74341.js} +6 -6
- package/components/DragResizeWindow/{index.c957a1e6.js → index.132406ef.js} +2 -2
- package/components/DynamicFilter/{constants.1dddd09c.js → constants.095f1dbb.js} +4 -4
- package/components/DynamicFilter/{dictionary.3b52457e.js → dictionary.80fc7baf.js} +1 -1
- package/components/DynamicFilter/{index.107ff9cd.js → index.a7cb7710.js} +106 -3
- package/components/DynamicFilter/slots/{index.1590336a.js → index.e2218307.js} +4 -4
- package/components/DynamicFilter/store/{index.17676a1e.js → index.b9c2fe0b.js} +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.99e063cc.js → index.f0fe22f7.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.883e90f5.js → index.30d89b6c.js} +3 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.909c1836.js → index.edd7ed6f.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.f926af49.js +126 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.2382297a.js +169 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.7b4dccf7.js +151 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.2258fceb.js +145 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.82ca3e32.js +112 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.339d175f.js → index.f4457f31.js} +5 -1
- package/components/DynamicFilter/subcomponents/FilterActions/{index.c549da68.js → index.ba70cf6a.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.ce036c20.js → index.c7d72fb4.js} +5 -5
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.3655469c.js → index.c2014303.js} +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.50fc58b0.js → index.895fbe45.js} +2 -2
- package/components/FieldLabel/{index.e951e11f.js → index.9fd6697a.js} +1 -1
- package/components/Icon/{index.9615b1f6.js → index.5cf594aa.js} +2 -2
- package/components/LoadingError/{index.2cdebf59.js → index.427a569c.js} +1 -1
- package/components/MFLoader/{index.fb82993d.js → index.12ccba1a.js} +1 -1
- package/components/ObjectLogs/{index.6bd7a872.js → index.a3ed9816.js} +5 -5
- package/components/PaperForm/{index.afbd86d1.js → index.9ed65352.js} +1 -1
- package/components/Period/{index.a6ea5000.js → index.78867b45.js} +1 -1
- package/components/PropertyValue/{index.914a6cad.js → index.4f0da54d.js} +2 -2
- package/components/SideBar/{index.a25eaad8.js → index.0298ead4.js} +2 -2
- package/components/ToastContainer/{index.d2064c6b.js → index.e6d48658.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.15bd47d9.js → index.5af510af.js} +5 -5
- package/components/areas/components/AreasViewer/{index.316d5487.js → index.343f0452.js} +7 -7
- package/components/areas/contexts/AreasContext/{index.765faaee.js → index.91e1acfc.js} +2 -2
- package/components/areas/hooks/useAreas/{index.1b499976.js → index.98ea6788.js} +1 -1
- package/components/commercial/TopBar/{index.c55da9c3.js → index.df994f5f.js} +2 -2
- package/components/commercial/{index.1248a029.js → index.73cf794c.js} +2 -2
- package/components/formatters/BooleanFormatter/{index.117465b4.js → index.699e0aee.js} +2 -2
- package/components/formatters/{index.a8f46cab.js → index.8abccc30.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.709756f6.js → index.1efaddc9.js} +2 -2
- package/components/hook-form/RHFAutocompleteAsync/{index.92180d10.js → index.2f123535.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.8c3ed4a0.js → index.a9cf6faf.js} +1 -1
- package/components/hook-form/RHFColorPicker/{index.fe1a3466.js → index.963323e4.js} +2 -2
- package/components/hook-form/RHFDateTime/{index.07030dcc.js → index.b3d0b2de.js} +2 -2
- package/components/hook-form/RHFPeriod/{index.755de1db.js → index.d1f45273.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e1c51719.js → index.97ba17ae.js} +2 -2
- package/components/maps/components/GpsTools/{index.a8ece5d5.js → index.0c6dff10.js} +11 -11
- package/components/maps/components/Map/{index.e4045b3e.js → index.50447504.js} +8 -8
- package/components/modal/{WindowBase.2f606ead.js → WindowBase.bf119f28.js} +2 -2
- package/components/modal/{WindowConfirm.6eea8ea6.js → WindowConfirm.b70c4b0f.js} +1 -1
- package/components/mui_extended/Accordion/{index.c4551873.js → index.427d380a.js} +2 -2
- package/components/mui_extended/{CheckBox.09cbd444.js → CheckBox.84c57702.js} +1 -1
- package/components/mui_extended/IconButton/{index.47be7d35.js → index.ee45bba2.js} +1 -1
- package/components/mui_extended/MenuActions/{index.ab55b9b7.js → index.06aaa091.js} +2 -2
- package/components/mui_extended/Pager/{index.a453d8b5.js → index.c77a7694.js} +2 -2
- package/components/mui_extended/ToggleIconButton/{index.61269519.js → index.50ce11e4.js} +1 -1
- package/components/popups/PopupsProvider/{index.88f09c2a.js → index.7ed83556.js} +1 -1
- package/components/popups/PopupsViewer/{index.e80c69c5.js → index.9b734a0a.js} +4 -4
- package/hooks/useFormAddEdit/{index.d718efd0.js → index.3468c18c.js} +1 -1
- package/index.js +65 -66
- package/package.json +1 -1
- package/components/DynamicFilter/helpers/index.32ea6e4a.js +0 -562
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.b718be41.js +0 -56
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.d44591da.js +0 -53
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.3e5853fd.js +0 -55
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.740042db.js +0 -48
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.636d6e6e.js +0 -40
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useFormContext, useWatch } from "react-hook-form";
|
|
4
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
5
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.3b52457e.js";
|
|
6
|
-
import { N as NUMBER_OPERATORS } from "../../../constants.1dddd09c.js";
|
|
7
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.709756f6.js";
|
|
8
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.e1c51719.js";
|
|
9
|
-
function NumberFilter() {
|
|
10
|
-
const { getLabel } = useModuleDictionary();
|
|
11
|
-
const { control } = useFormContext();
|
|
12
|
-
const operator = useWatch({
|
|
13
|
-
control,
|
|
14
|
-
name: "formValueOperator"
|
|
15
|
-
});
|
|
16
|
-
const operators = useMemo(
|
|
17
|
-
() => NUMBER_OPERATORS.map((o) => ({
|
|
18
|
-
id: o,
|
|
19
|
-
label: getLabel(getDynamicFilterDictionary(`operator_${o}`))
|
|
20
|
-
})),
|
|
21
|
-
[getLabel]
|
|
22
|
-
);
|
|
23
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
24
|
-
/* @__PURE__ */ jsx(
|
|
25
|
-
RHFAutocomplete,
|
|
26
|
-
{
|
|
27
|
-
name: "formValueOperator",
|
|
28
|
-
autoComplete: "off",
|
|
29
|
-
options: operators,
|
|
30
|
-
getOptionLabel: (option) => option.label,
|
|
31
|
-
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
32
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operator_number))
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
36
|
-
RHFTextField,
|
|
37
|
-
{
|
|
38
|
-
name: "formValueOperand1",
|
|
39
|
-
type: "number",
|
|
40
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand1_number))
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
operator && operator.id === "b" && /* @__PURE__ */ jsx(
|
|
44
|
-
RHFTextField,
|
|
45
|
-
{
|
|
46
|
-
name: "formValueOperand2",
|
|
47
|
-
type: "number",
|
|
48
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand2_number))
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
] });
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
NumberFilter as N
|
|
55
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { a as SELECT_OPERATORS } from "../../../constants.1dddd09c.js";
|
|
5
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.3b52457e.js";
|
|
6
|
-
import { u as useDynamicFilterStore } from "../../../store/index.17676a1e.js";
|
|
7
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.709756f6.js";
|
|
8
|
-
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.92180d10.js";
|
|
9
|
-
function SelectFilter() {
|
|
10
|
-
const { getLabel } = useModuleDictionary();
|
|
11
|
-
const field = useDynamicFilterStore((state) => state.popoverFilterData?.field);
|
|
12
|
-
if (!field?.selectOptions?.endPoint) {
|
|
13
|
-
throw new Error("El filtro tipo Select requiere la configuraci\xF3n del Endpoint");
|
|
14
|
-
}
|
|
15
|
-
const autocompleteProps = field?.selectOptions;
|
|
16
|
-
const operators = useMemo(
|
|
17
|
-
() => SELECT_OPERATORS.map((o) => ({
|
|
18
|
-
id: o,
|
|
19
|
-
label: getLabel(getDynamicFilterDictionary(`operator_${o}`))
|
|
20
|
-
})),
|
|
21
|
-
[getLabel]
|
|
22
|
-
);
|
|
23
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
24
|
-
/* @__PURE__ */ jsx(
|
|
25
|
-
RHFAutocomplete,
|
|
26
|
-
{
|
|
27
|
-
name: "formValueOperator",
|
|
28
|
-
autoComplete: "off",
|
|
29
|
-
options: operators,
|
|
30
|
-
getOptionLabel: (option) => option.label,
|
|
31
|
-
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
32
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_select_operator))
|
|
33
|
-
}
|
|
34
|
-
),
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
36
|
-
RHFAutocompleteAsync,
|
|
37
|
-
{
|
|
38
|
-
...autocompleteProps,
|
|
39
|
-
name: "formValueOperandsArray",
|
|
40
|
-
autoComplete: "off",
|
|
41
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_select_operands_array))
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
SelectFilter as S
|
|
48
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { S as STRING_OPERATORS } from "../../../constants.1dddd09c.js";
|
|
5
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.3b52457e.js";
|
|
6
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.709756f6.js";
|
|
7
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.e1c51719.js";
|
|
8
|
-
function StringFilter() {
|
|
9
|
-
const { getLabel } = useModuleDictionary();
|
|
10
|
-
const operators = useMemo(
|
|
11
|
-
() => STRING_OPERATORS.map((o) => ({
|
|
12
|
-
id: o,
|
|
13
|
-
label: getLabel(getDynamicFilterDictionary(`operator_${o}`))
|
|
14
|
-
})),
|
|
15
|
-
[getLabel]
|
|
16
|
-
);
|
|
17
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
18
|
-
/* @__PURE__ */ jsx(
|
|
19
|
-
RHFAutocomplete,
|
|
20
|
-
{
|
|
21
|
-
name: "formValueOperator",
|
|
22
|
-
autoComplete: "off",
|
|
23
|
-
options: operators,
|
|
24
|
-
getOptionLabel: (option) => option.label,
|
|
25
|
-
isOptionEqualToValue: (option, value) => option.id === value.id,
|
|
26
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operator_string))
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
RHFTextField,
|
|
31
|
-
{
|
|
32
|
-
name: "formValueOperand1",
|
|
33
|
-
label: getLabel(getDynamicFilterDictionary(DICCTIONARY.label_operand1_string))
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
StringFilter as S
|
|
40
|
-
};
|