@m4l/components 9.54.2-beta-m4lcom-764-device-picker.0 → 9.54.2
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/@types/types.d.ts +0 -8
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +143 -163
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +8 -20
- package/components/CheckableList/constants.d.ts +1 -1
- package/components/CheckableList/constants.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.d.ts +1 -6
- package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +113 -126
- package/components/CheckableList/slots/slots.d.ts +0 -1
- package/components/CheckableList/slots/slots.d.ts.map +1 -1
- package/components/CheckableList/slots/slots.js +1 -1
- package/components/CheckableList/slots/styled.d.ts +0 -3
- package/components/CheckableList/slots/styled.d.ts.map +1 -1
- package/components/CheckableList/slots/styled.js +51 -56
- package/components/CheckableList/types.d.ts +0 -20
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +2 -2
- package/components/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +33 -41
- package/components/DynamicFilter/helpers/calculateVisibleChipsCount.d.ts.map +1 -0
- package/{hooks/useChipsOverflow → components/DynamicFilter/hooks}/useChipsOverflow.d.ts +5 -6
- package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +1 -0
- package/components/DynamicFilter/hooks/useChipsOverflow.js +83 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +24 -24
- package/components/DynamicFilter/types.d.ts +1 -9
- package/components/DynamicFilter/types.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +1 -1
- package/components/datagrids/views/CardsView/CardsView.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +52 -50
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +58 -60
- package/components/extended/mui/CheckBox/CheckBox.js +7 -7
- package/components/extended/mui/Select/Select.js +6 -6
- package/components/hook-form/index.d.ts +0 -3
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/index.d.ts +0 -1
- package/components/index.d.ts.map +1 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +1 -1
- package/index.js +760 -804
- package/package.json +8 -8
- package/components/DevicesPicker/DevicesPicker.d.ts +0 -14
- package/components/DevicesPicker/DevicesPicker.d.ts.map +0 -1
- package/components/DevicesPicker/DevicesPicker.js +0 -343
- package/components/DevicesPicker/DevicesPicker.styles.d.ts +0 -3
- package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +0 -1
- package/components/DevicesPicker/DevicesPicker.styles.js +0 -494
- package/components/DevicesPicker/constants.d.ts +0 -74
- package/components/DevicesPicker/constants.d.ts.map +0 -1
- package/components/DevicesPicker/constants.js +0 -39
- package/components/DevicesPicker/dictionary.d.ts +0 -19
- package/components/DevicesPicker/dictionary.d.ts.map +0 -1
- package/components/DevicesPicker/dictionary.js +0 -20
- package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts +0 -11
- package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts.map +0 -1
- package/components/DevicesPicker/helpers/resolveDeviceGroup.js +0 -14
- package/components/DevicesPicker/helpers/toDeviceArray.d.ts +0 -7
- package/components/DevicesPicker/helpers/toDeviceArray.d.ts.map +0 -1
- package/components/DevicesPicker/helpers/toDeviceArray.js +0 -6
- package/components/DevicesPicker/hooks/types.d.ts +0 -176
- package/components/DevicesPicker/hooks/types.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDeviceGroups.d.ts +0 -13
- package/components/DevicesPicker/hooks/useDeviceGroups.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDeviceGroups.js +0 -51
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts +0 -13
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.js +0 -71
- package/components/DevicesPicker/hooks/useDevicesSelection.d.ts +0 -12
- package/components/DevicesPicker/hooks/useDevicesSelection.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDevicesSelection.js +0 -26
- package/components/DevicesPicker/hooks/usePanelColumns.d.ts +0 -12
- package/components/DevicesPicker/hooks/usePanelColumns.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/usePanelColumns.js +0 -30
- package/components/DevicesPicker/index.d.ts +0 -11
- package/components/DevicesPicker/index.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts +0 -77
- package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerEnum.js +0 -4
- package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +0 -112
- package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerSlots.js +0 -163
- package/components/DevicesPicker/slots/index.d.ts +0 -3
- package/components/DevicesPicker/slots/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts +0 -8
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +0 -77
- package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts +0 -42
- package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +0 -133
- package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts +0 -68
- package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts +0 -10
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js +0 -35
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.js +0 -61
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts +0 -32
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts.map +0 -1
- package/components/DevicesPicker/types.d.ts +0 -170
- package/components/DevicesPicker/types.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts +0 -21
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.js +0 -6
- package/components/hook-form/RHFDevicesPicker/index.d.ts +0 -3
- package/components/hook-form/RHFDevicesPicker/index.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/types.d.ts +0 -8
- package/components/hook-form/RHFDevicesPicker/types.d.ts.map +0 -1
- package/components/hook-form/renderAsRegistry.d.ts +0 -33
- package/components/hook-form/renderAsRegistry.d.ts.map +0 -1
- package/components/hook-form/renderAsRegistry.js +0 -7
- package/helpers/resolveDeviceIconSrc/constants.d.ts +0 -14
- package/helpers/resolveDeviceIconSrc/constants.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/constants.js +0 -6
- package/helpers/resolveDeviceIconSrc/index.d.ts +0 -3
- package/helpers/resolveDeviceIconSrc/index.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts +0 -14
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js +0 -8
- package/helpers/resolveDeviceLabels/index.d.ts +0 -3
- package/helpers/resolveDeviceLabels/index.d.ts.map +0 -1
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts +0 -22
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts.map +0 -1
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.js +0 -10
- package/helpers/resolveDeviceLabels/types.d.ts +0 -18
- package/helpers/resolveDeviceLabels/types.d.ts.map +0 -1
- package/hooks/useChipsOverflow/helpers/calculateVisibleChipsCount.d.ts.map +0 -1
- package/hooks/useChipsOverflow/helpers/index.d.ts +0 -2
- package/hooks/useChipsOverflow/helpers/index.d.ts.map +0 -1
- package/hooks/useChipsOverflow/index.d.ts +0 -3
- package/hooks/useChipsOverflow/index.d.ts.map +0 -1
- package/hooks/useChipsOverflow/types.d.ts +0 -24
- package/hooks/useChipsOverflow/types.d.ts.map +0 -1
- package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +0 -1
- package/hooks/useChipsOverflow/useChipsOverflow.js +0 -108
- /package/{hooks/useChipsOverflow → components/DynamicFilter}/helpers/calculateVisibleChipsCount.d.ts +0 -0
- /package/{hooks/useChipsOverflow → components/DynamicFilter}/helpers/calculateVisibleChipsCount.js +0 -0
|
@@ -1,146 +1,133 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { CHECKABLE_LIST_ICON_COMPONENTS as
|
|
4
|
-
import { LegacyS3NoItemSelectedNoSelectedOutlined as
|
|
5
|
-
import { ItemLabelTypografyStyled as
|
|
6
|
-
const
|
|
7
|
-
isItemSelected:
|
|
8
|
-
disabled:
|
|
9
|
-
size:
|
|
10
|
-
variant:
|
|
11
|
-
checkboxSize:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
renderItem: P,
|
|
1
|
+
import { jsxs as s, Fragment as q, jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useCallback as k } from "react";
|
|
3
|
+
import { CHECKABLE_LIST_ICON_COMPONENTS as E, ICONS as L } from "../icons.js";
|
|
4
|
+
import { LegacyS3NoItemSelectedNoSelectedOutlined as F } from "@m4l/icons";
|
|
5
|
+
import { ItemLabelTypografyStyled as J, ItemDescriptionTypografyStyled as Q, ItemWrapperStyled as U, ItemCheckboxStyled as Y, ItemIconStyled as Z, ItemContentWrapperStyled as $, GroupLabelCountWrapperStyled as v, GroupLabelTypografyStyled as z, ChipCountTypografyStyled as ee, GroupWrapperStyled as te, GroupHeaderStyled as oe, GroupCheckboxStyled as ne, GroupIconStyled as le, GroupToggleButtonStyled as de } from "../slots/styled.js";
|
|
6
|
+
const pe = ({
|
|
7
|
+
isItemSelected: p,
|
|
8
|
+
disabled: C = !1,
|
|
9
|
+
size: n = "medium",
|
|
10
|
+
variant: d = "standard",
|
|
11
|
+
checkboxSize: u = "medium",
|
|
12
|
+
handleItemToggle: y,
|
|
13
|
+
renderItem: g,
|
|
15
14
|
expandedGroups: x,
|
|
16
|
-
isGroupFullySelected:
|
|
17
|
-
isGroupPartiallySelected:
|
|
18
|
-
getGroupItems:
|
|
19
|
-
indeterminateBehavior:
|
|
20
|
-
renderGroup:
|
|
15
|
+
isGroupFullySelected: T,
|
|
16
|
+
isGroupPartiallySelected: N,
|
|
17
|
+
getGroupItems: P,
|
|
18
|
+
indeterminateBehavior: w = "indicate-some",
|
|
19
|
+
renderGroup: D,
|
|
21
20
|
groupable: S = !0,
|
|
22
|
-
showCheckboxOnGroup:
|
|
23
|
-
handleGroupExpandToggle:
|
|
24
|
-
handleGroupToggle:
|
|
21
|
+
showCheckboxOnGroup: O = !0,
|
|
22
|
+
handleGroupExpandToggle: W,
|
|
23
|
+
handleGroupToggle: _
|
|
25
24
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
(
|
|
28
|
-
const o =
|
|
29
|
-
item:
|
|
25
|
+
const A = E[L.EXPANDED_LIST], B = E[L.COMPACT_LIST], R = E[L.SEARCH], j = /* @__PURE__ */ l(F, {}), b = k(
|
|
26
|
+
(e, i) => {
|
|
27
|
+
const o = p(e.id), t = !!(C || e.disabled), f = g?.({
|
|
28
|
+
item: e,
|
|
30
29
|
checked: o,
|
|
31
|
-
index:
|
|
32
|
-
disabled:
|
|
33
|
-
size:
|
|
34
|
-
variant:
|
|
35
|
-
}), h = /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
30
|
+
index: i,
|
|
31
|
+
disabled: t,
|
|
32
|
+
size: n,
|
|
33
|
+
variant: d
|
|
34
|
+
}), h = /* @__PURE__ */ s(q, { children: [
|
|
35
|
+
/* @__PURE__ */ l(
|
|
36
|
+
J,
|
|
38
37
|
{
|
|
39
|
-
ownerState: { size:
|
|
38
|
+
ownerState: { size: n, variant: d, disabled: t },
|
|
40
39
|
variant: "bodyStandard",
|
|
41
40
|
color: "text.primary",
|
|
42
|
-
disabled:
|
|
43
|
-
children:
|
|
41
|
+
disabled: t,
|
|
42
|
+
children: e.label
|
|
44
43
|
}
|
|
45
44
|
),
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
e.description && /* @__PURE__ */ l(
|
|
46
|
+
Q,
|
|
48
47
|
{
|
|
49
|
-
ownerState: { size:
|
|
48
|
+
ownerState: { size: n, variant: d },
|
|
50
49
|
variant: "bodyStandard",
|
|
51
50
|
color: "text.secondary",
|
|
52
|
-
disabled:
|
|
53
|
-
children:
|
|
51
|
+
disabled: t,
|
|
52
|
+
children: e.description
|
|
54
53
|
}
|
|
55
54
|
)
|
|
56
55
|
] });
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
56
|
+
return /* @__PURE__ */ s(
|
|
57
|
+
U,
|
|
59
58
|
{
|
|
60
|
-
ownerState: { size:
|
|
59
|
+
ownerState: { size: n, variant: d, disabled: t, selected: o },
|
|
61
60
|
role: "option",
|
|
62
61
|
"aria-label": "item",
|
|
63
62
|
"aria-selected": o,
|
|
64
|
-
"aria-disabled":
|
|
65
|
-
onClick: () => !
|
|
63
|
+
"aria-disabled": t,
|
|
64
|
+
onClick: () => !t && y(e.id),
|
|
66
65
|
children: [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
{
|
|
70
|
-
checked: o,
|
|
71
|
-
disabled: e,
|
|
72
|
-
size: i,
|
|
73
|
-
onChange: (r) => {
|
|
74
|
-
r.stopPropagation(), u(t.id);
|
|
75
|
-
},
|
|
76
|
-
onClick: (r) => r.stopPropagation()
|
|
77
|
-
}
|
|
78
|
-
) : /* @__PURE__ */ n(
|
|
79
|
-
$,
|
|
66
|
+
/* @__PURE__ */ l(
|
|
67
|
+
Y,
|
|
80
68
|
{
|
|
81
69
|
checked: o,
|
|
82
|
-
disabled:
|
|
83
|
-
size:
|
|
70
|
+
disabled: t,
|
|
71
|
+
size: u,
|
|
84
72
|
onChange: (r) => {
|
|
85
|
-
r.stopPropagation(),
|
|
73
|
+
r.stopPropagation(), y(e.id);
|
|
86
74
|
},
|
|
87
75
|
onClick: (r) => r.stopPropagation()
|
|
88
76
|
}
|
|
89
77
|
),
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */
|
|
78
|
+
e.icon && /* @__PURE__ */ l(Z, { children: e.icon }),
|
|
79
|
+
/* @__PURE__ */ l($, { children: f ?? h })
|
|
92
80
|
]
|
|
93
81
|
}
|
|
94
82
|
);
|
|
95
83
|
},
|
|
96
84
|
[
|
|
85
|
+
p,
|
|
97
86
|
C,
|
|
98
|
-
|
|
99
|
-
|
|
87
|
+
g,
|
|
88
|
+
n,
|
|
100
89
|
d,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
L,
|
|
104
|
-
u
|
|
90
|
+
u,
|
|
91
|
+
y
|
|
105
92
|
]
|
|
106
|
-
),
|
|
107
|
-
(
|
|
108
|
-
const o = x.has(
|
|
93
|
+
), m = k(
|
|
94
|
+
(e, i) => {
|
|
95
|
+
const o = x.has(e.id), t = !!(C || e.disabled), f = T(e), h = N(e), r = P(e);
|
|
109
96
|
let c = !1;
|
|
110
|
-
|
|
111
|
-
const I = (
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
97
|
+
f ? c = !0 : h && w === "indicate-some" && (c = "indeterminate");
|
|
98
|
+
const I = (a) => {
|
|
99
|
+
a.stopPropagation(), !(t || !S) && W(e.id);
|
|
100
|
+
}, G = (a) => {
|
|
101
|
+
a.stopPropagation(), _(e);
|
|
115
102
|
}, H = r.filter(
|
|
116
|
-
(
|
|
117
|
-
).length,
|
|
118
|
-
group:
|
|
103
|
+
(a) => p(a.id)
|
|
104
|
+
).length, K = D?.({
|
|
105
|
+
group: e,
|
|
119
106
|
items: r,
|
|
120
|
-
index:
|
|
107
|
+
index: i,
|
|
121
108
|
expanded: o,
|
|
122
|
-
disabled:
|
|
123
|
-
size:
|
|
124
|
-
variant:
|
|
109
|
+
disabled: t,
|
|
110
|
+
size: n,
|
|
111
|
+
variant: d,
|
|
125
112
|
checkboxState: c,
|
|
126
113
|
onToggleExpand: I,
|
|
127
|
-
onToggleGroup:
|
|
114
|
+
onToggleGroup: G,
|
|
128
115
|
selectedCount: H,
|
|
129
116
|
totalCount: r.length
|
|
130
|
-
}),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
117
|
+
}), V = /* @__PURE__ */ s(v, { children: [
|
|
118
|
+
/* @__PURE__ */ l(
|
|
119
|
+
z,
|
|
133
120
|
{
|
|
134
|
-
ownerState: { size:
|
|
121
|
+
ownerState: { size: n, variant: d, disabled: t },
|
|
135
122
|
ellipsis: !0,
|
|
136
123
|
variant: "captionDens",
|
|
137
|
-
children:
|
|
124
|
+
children: e.label
|
|
138
125
|
}
|
|
139
126
|
),
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
127
|
+
/* @__PURE__ */ s(
|
|
128
|
+
ee,
|
|
142
129
|
{
|
|
143
|
-
ownerState: { size:
|
|
130
|
+
ownerState: { size: n, variant: d, disabled: t, color: e.color },
|
|
144
131
|
children: [
|
|
145
132
|
H,
|
|
146
133
|
"/",
|
|
@@ -148,42 +135,42 @@ const yt = ({
|
|
|
148
135
|
]
|
|
149
136
|
}
|
|
150
137
|
)
|
|
151
|
-
] }),
|
|
138
|
+
] }), X = K ?? V;
|
|
152
139
|
return (
|
|
153
140
|
// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
141
|
+
/* @__PURE__ */ l(
|
|
142
|
+
te,
|
|
156
143
|
{
|
|
157
|
-
ownerState: { size:
|
|
144
|
+
ownerState: { size: n, variant: d, grouped: !0, selected: c === !0 },
|
|
158
145
|
role: "group",
|
|
159
|
-
"aria-label":
|
|
146
|
+
"aria-label": e.label,
|
|
160
147
|
"aria-expanded": o,
|
|
161
|
-
"aria-disabled":
|
|
162
|
-
children: /* @__PURE__ */
|
|
163
|
-
|
|
148
|
+
"aria-disabled": t,
|
|
149
|
+
children: /* @__PURE__ */ s(
|
|
150
|
+
oe,
|
|
164
151
|
{
|
|
165
|
-
ownerState: { size:
|
|
152
|
+
ownerState: { size: n, variant: d, disabled: t },
|
|
166
153
|
onClick: I,
|
|
167
154
|
children: [
|
|
168
|
-
|
|
169
|
-
|
|
155
|
+
O && /* @__PURE__ */ l(
|
|
156
|
+
ne,
|
|
170
157
|
{
|
|
171
158
|
checked: c === !0,
|
|
172
159
|
indeterminate: c === "indeterminate",
|
|
173
|
-
disabled:
|
|
174
|
-
size:
|
|
175
|
-
onChange:
|
|
176
|
-
onClick: (
|
|
160
|
+
disabled: t,
|
|
161
|
+
size: u,
|
|
162
|
+
onChange: G,
|
|
163
|
+
onClick: (a) => a.stopPropagation()
|
|
177
164
|
}
|
|
178
165
|
),
|
|
179
|
-
|
|
180
|
-
/* @__PURE__ */
|
|
181
|
-
S && /* @__PURE__ */
|
|
182
|
-
|
|
166
|
+
e.icon && /* @__PURE__ */ l(le, { children: e.icon }),
|
|
167
|
+
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, children: X }),
|
|
168
|
+
S && /* @__PURE__ */ l(
|
|
169
|
+
de,
|
|
183
170
|
{
|
|
184
|
-
size:
|
|
171
|
+
size: n,
|
|
185
172
|
variant: "text",
|
|
186
|
-
icon: o ?
|
|
173
|
+
icon: o ? B : A,
|
|
187
174
|
onClick: I,
|
|
188
175
|
"aria-label": o ? "Colapsar grupo" : "Expandir grupo"
|
|
189
176
|
}
|
|
@@ -195,22 +182,22 @@ const yt = ({
|
|
|
195
182
|
)
|
|
196
183
|
);
|
|
197
184
|
},
|
|
198
|
-
[x,
|
|
199
|
-
),
|
|
200
|
-
({ index:
|
|
201
|
-
const o =
|
|
202
|
-
return o ? o.type === "group" ?
|
|
185
|
+
[x, C, T, N, P, w, D, n, d, O, u, S, B, A, W, _, p]
|
|
186
|
+
), M = k(
|
|
187
|
+
({ index: e, virtualizedItems: i }) => {
|
|
188
|
+
const o = i[e];
|
|
189
|
+
return o ? o.type === "group" ? m(o.data, e) : b(o.data, e) : null;
|
|
203
190
|
},
|
|
204
|
-
[
|
|
191
|
+
[m, b]
|
|
205
192
|
);
|
|
206
193
|
return {
|
|
207
194
|
renderItemContent: b,
|
|
208
|
-
renderGroupContent:
|
|
209
|
-
renderVirtualizedItem:
|
|
210
|
-
urlIconSearch:
|
|
211
|
-
urlIconNoResults:
|
|
195
|
+
renderGroupContent: m,
|
|
196
|
+
renderVirtualizedItem: M,
|
|
197
|
+
urlIconSearch: R,
|
|
198
|
+
urlIconNoResults: j
|
|
212
199
|
};
|
|
213
200
|
};
|
|
214
201
|
export {
|
|
215
|
-
|
|
202
|
+
pe as useCheckableListRender
|
|
216
203
|
};
|
|
@@ -10,7 +10,6 @@ export declare enum CheckableListSlots {
|
|
|
10
10
|
virtualRow = "virtualRow",
|
|
11
11
|
itemWrapper = "itemWrapper",
|
|
12
12
|
itemCheckbox = "itemCheckbox",
|
|
13
|
-
itemRadio = "itemRadio",
|
|
14
13
|
itemContentWrapper = "itemContentWrapper",
|
|
15
14
|
itemLabel = "itemLabel",
|
|
16
15
|
itemDescription = "itemDescription",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/slots.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/slots.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAsB;IACxC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAE/B,sBAAsB,2BAA2B;IACjD,UAAU,eAAe;IACzB,SAAS,cAAY;IAGrB,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;CACtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var p = /* @__PURE__ */ ((r) => (r.root = "root", r.searchContainer = "searchContainer", r.searchInput = "searchInput", r.selectAllContainer = "selectAllContainer", r.selectAllCheckbox = "selectAllCheckbox", r.listContainer = "listContainer", r.virtualizedList = "virtualizedList", r.virtualContainer = "virtualContainer", r.virtualRow = "virtualRow", r.itemWrapper = "itemWrapper", r.itemCheckbox = "itemCheckbox", r.
|
|
1
|
+
var p = /* @__PURE__ */ ((r) => (r.root = "root", r.searchContainer = "searchContainer", r.searchInput = "searchInput", r.selectAllContainer = "selectAllContainer", r.selectAllCheckbox = "selectAllCheckbox", r.listContainer = "listContainer", r.virtualizedList = "virtualizedList", r.virtualContainer = "virtualContainer", r.virtualRow = "virtualRow", r.itemWrapper = "itemWrapper", r.itemCheckbox = "itemCheckbox", r.itemContentWrapper = "itemContentWrapper", r.itemLabel = "itemLabel", r.itemDescription = "itemDescription", r.itemIcon = "itemIcon", r.groupWrapper = "groupWrapper", r.groupHeader = "groupHeader", r.groupCheckbox = "groupCheckbox", r.groupLabelCountWrapper = "groupLabelCountWrapper", r.groupLabel = "groupLabel", r.chipCount = "chipCount", r.groupIcon = "groupIcon", r.groupToggleButton = "groupToggleButton", r.groupItems = "groupItems", r.emptyMessageWrapper = "emptyMessageWrapper", r.loadingContainer = "loadingContainer", r))(p || {});
|
|
2
2
|
export {
|
|
3
3
|
p as CheckableListSlots
|
|
4
4
|
};
|
|
@@ -31,9 +31,6 @@ export declare const ItemWrapperStyled: import('@emotion/styled').StyledComponen
|
|
|
31
31
|
export declare const ItemCheckboxStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/CheckBox/types').CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "symbol" | "color" | "content" | "translate" | "error" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "indeterminate" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "skeletonWidth" | "htmlFor" | keyof import('react').RefAttributes<HTMLButtonElement> | "mandatory" | "required" | "readOnly" | "inputProps" | "inputRef" | "helperMessage" | "mandatoryMessage" | "checkedIcon" | "indeterminateIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
32
32
|
ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
|
|
33
33
|
}, {}, {}>;
|
|
34
|
-
export declare const ItemRadioStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/Radio/types').RadioProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "error" | "action" | "classes" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | keyof import('react').RefAttributes<HTMLButtonElement> | "required" | "readOnly" | "inputProps" | "inputRef" | "checkedIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
35
|
-
ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
|
|
36
|
-
}, {}, {}>;
|
|
37
34
|
export declare const ItemContentWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
38
35
|
ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
|
|
39
36
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/styled.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/styled.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;6NAGM,CAAC;AAE9B,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,iBAAiB;;UAGM,CAAC;AAErC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;6NAGM,CAAC;AAEvC,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,sBAAsB;;6NAGM,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,kBAAkB;;UAGM,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,8BAA8B;;UAGH,CAAC;AAEzC,eAAO,MAAM,cAAc;;6NAGM,CAAC;AAElC,eAAO,MAAM,kBAAkB;;6NAGM,CAAC;AAEtC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,mBAAmB;;UAGM,CAAC;AAEvC,eAAO,MAAM,4BAA4B;;6NAGM,CAAC;AAEhD,eAAO,MAAM,yBAAyB;;UAGH,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,eAAe;;6NAGM,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,yBAAyB;;6NAGM,CAAC;AAE7C,eAAO,MAAM,sBAAsB;;6NAGM,CAAC"}
|
|
@@ -5,78 +5,74 @@ import { CheckableListSlots as o } from "./slots.js";
|
|
|
5
5
|
import { checkableListStyles as n } from "../CheckableList.styles.js";
|
|
6
6
|
import { TextField as a } from "../../extended/mui/TextField/TextField.js";
|
|
7
7
|
import { CheckBox as l } from "../../extended/mui/CheckBox/CheckBox.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const v = t("div", {
|
|
8
|
+
import { IconButton as i } from "../../extended/mui/IconButton/IconButton.js";
|
|
9
|
+
const g = t("div", {
|
|
11
10
|
name: e,
|
|
12
11
|
slot: o.root
|
|
13
|
-
})(n?.root),
|
|
12
|
+
})(n?.root), S = t("div", {
|
|
14
13
|
name: e,
|
|
15
14
|
slot: o.searchContainer
|
|
16
|
-
})(n?.searchContainer),
|
|
15
|
+
})(n?.searchContainer), v = t(a, {
|
|
17
16
|
name: e,
|
|
18
17
|
slot: o.searchInput
|
|
19
|
-
})(n?.searchInput),
|
|
18
|
+
})(n?.searchInput), h = t("div", {
|
|
20
19
|
name: e,
|
|
21
20
|
slot: o.selectAllContainer
|
|
22
|
-
})(n?.selectAllContainer),
|
|
21
|
+
})(n?.selectAllContainer), b = t(l, {
|
|
23
22
|
name: e,
|
|
24
23
|
slot: o.selectAllCheckbox
|
|
25
|
-
})(n?.selectAllCheckbox),
|
|
24
|
+
})(n?.selectAllCheckbox), I = t("div", {
|
|
26
25
|
name: e,
|
|
27
26
|
slot: o.listContainer
|
|
28
|
-
})(n?.listContainer),
|
|
27
|
+
})(n?.listContainer), L = t("div", {
|
|
29
28
|
name: e,
|
|
30
29
|
slot: o.virtualizedList
|
|
31
|
-
})(n?.virtualizedList),
|
|
30
|
+
})(n?.virtualizedList), W = t("div", {
|
|
32
31
|
name: e,
|
|
33
32
|
slot: o.virtualContainer
|
|
34
|
-
})(n?.virtualContainer),
|
|
33
|
+
})(n?.virtualContainer), f = t("div", {
|
|
35
34
|
name: e,
|
|
36
35
|
slot: o.virtualRow
|
|
37
|
-
})(n?.virtualRow),
|
|
36
|
+
})(n?.virtualRow), k = t("div", {
|
|
38
37
|
name: e,
|
|
39
38
|
slot: o.itemWrapper
|
|
40
|
-
})(n?.itemWrapper),
|
|
39
|
+
})(n?.itemWrapper), x = t(l, {
|
|
41
40
|
name: e,
|
|
42
41
|
slot: o.itemCheckbox
|
|
43
|
-
})(n?.itemCheckbox),
|
|
44
|
-
name: e,
|
|
45
|
-
slot: o.itemRadio
|
|
46
|
-
})(n?.itemRadio), G = t("div", {
|
|
42
|
+
})(n?.itemCheckbox), T = t("div", {
|
|
47
43
|
name: e,
|
|
48
44
|
slot: o.itemContentWrapper
|
|
49
|
-
})(n?.itemContentWrapper),
|
|
45
|
+
})(n?.itemContentWrapper), A = t(r, {
|
|
50
46
|
name: e,
|
|
51
47
|
slot: o.itemLabel
|
|
52
|
-
})(n?.itemLabel),
|
|
48
|
+
})(n?.itemLabel), G = t(r, {
|
|
53
49
|
name: e,
|
|
54
50
|
slot: o.itemDescription
|
|
55
|
-
})(n?.itemDescription),
|
|
51
|
+
})(n?.itemDescription), B = t("div", {
|
|
56
52
|
name: e,
|
|
57
53
|
slot: o.itemIcon
|
|
58
|
-
})(n?.itemIcon),
|
|
54
|
+
})(n?.itemIcon), E = t("div", {
|
|
59
55
|
name: e,
|
|
60
56
|
slot: o.groupWrapper
|
|
61
|
-
})(n?.groupWrapper),
|
|
57
|
+
})(n?.groupWrapper), H = t("div", {
|
|
62
58
|
name: e,
|
|
63
59
|
slot: o.groupHeader
|
|
64
|
-
})(n?.groupHeader),
|
|
60
|
+
})(n?.groupHeader), M = t(l, {
|
|
65
61
|
name: e,
|
|
66
62
|
slot: o.groupCheckbox
|
|
67
|
-
})(n?.groupCheckbox),
|
|
63
|
+
})(n?.groupCheckbox), R = t("div", {
|
|
68
64
|
name: e,
|
|
69
65
|
slot: o.groupLabelCountWrapper
|
|
70
|
-
})(n?.groupLabelCountWrapper),
|
|
66
|
+
})(n?.groupLabelCountWrapper), w = t(r, {
|
|
71
67
|
name: e,
|
|
72
68
|
slot: o.groupLabel
|
|
73
|
-
})(n?.groupLabel),
|
|
69
|
+
})(n?.groupLabel), z = t(r, {
|
|
74
70
|
name: e,
|
|
75
71
|
slot: o.chipCount
|
|
76
|
-
})(n?.chipCount),
|
|
72
|
+
})(n?.chipCount), D = t("div", {
|
|
77
73
|
name: e,
|
|
78
74
|
slot: o.groupIcon
|
|
79
|
-
})(n?.groupIcon),
|
|
75
|
+
})(n?.groupIcon), V = t(i, {
|
|
80
76
|
name: e,
|
|
81
77
|
slot: o.groupToggleButton
|
|
82
78
|
})(n?.groupToggleButton);
|
|
@@ -84,38 +80,37 @@ t("div", {
|
|
|
84
80
|
name: e,
|
|
85
81
|
slot: o.groupItems
|
|
86
82
|
})(n?.groupItems);
|
|
87
|
-
const
|
|
83
|
+
const _ = t("div", {
|
|
88
84
|
name: e,
|
|
89
85
|
slot: o.emptyMessageWrapper
|
|
90
|
-
})(n?.emptyMessageWrapper),
|
|
86
|
+
})(n?.emptyMessageWrapper), K = t("div", {
|
|
91
87
|
name: e,
|
|
92
88
|
slot: o.loadingContainer
|
|
93
89
|
})(n?.loadingContainer);
|
|
94
90
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
b as
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
f as VirtualizedListStyled
|
|
91
|
+
z as ChipCountTypografyStyled,
|
|
92
|
+
_ as EmptyMessageWrapperStyled,
|
|
93
|
+
M as GroupCheckboxStyled,
|
|
94
|
+
H as GroupHeaderStyled,
|
|
95
|
+
D as GroupIconStyled,
|
|
96
|
+
R as GroupLabelCountWrapperStyled,
|
|
97
|
+
w as GroupLabelTypografyStyled,
|
|
98
|
+
V as GroupToggleButtonStyled,
|
|
99
|
+
E as GroupWrapperStyled,
|
|
100
|
+
x as ItemCheckboxStyled,
|
|
101
|
+
T as ItemContentWrapperStyled,
|
|
102
|
+
G as ItemDescriptionTypografyStyled,
|
|
103
|
+
B as ItemIconStyled,
|
|
104
|
+
A as ItemLabelTypografyStyled,
|
|
105
|
+
k as ItemWrapperStyled,
|
|
106
|
+
I as ListContainerStyled,
|
|
107
|
+
K as LoadingContainerStyled,
|
|
108
|
+
g as RootStyled,
|
|
109
|
+
S as SearchContainerStyled,
|
|
110
|
+
v as SearchInputStyled,
|
|
111
|
+
b as SelectAllCheckboxStyled,
|
|
112
|
+
h as SelectAllContainerStyled,
|
|
113
|
+
W as VirtualContainerStyled,
|
|
114
|
+
f as VirtualRowStyled,
|
|
115
|
+
L as VirtualizedListStyled
|
|
121
116
|
};
|
|
@@ -166,16 +166,6 @@ export interface CheckableListProps {
|
|
|
166
166
|
* Mostrar botón "Seleccionar todo" (default: false)
|
|
167
167
|
*/
|
|
168
168
|
selectAll?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Texto de la fila "Seleccionar todo".
|
|
171
|
-
* Por defecto usa la etiqueta del diccionario de CheckableList.
|
|
172
|
-
*/
|
|
173
|
-
selectAllLabel?: string;
|
|
174
|
-
/**
|
|
175
|
-
* Número mostrado junto a "Seleccionar todo".
|
|
176
|
-
* Por defecto muestra la cantidad de items seleccionados.
|
|
177
|
-
*/
|
|
178
|
-
selectAllCount?: number;
|
|
179
169
|
/**
|
|
180
170
|
* Hacer los grupos expandibles/colapsables (default: true)
|
|
181
171
|
*/
|
|
@@ -192,11 +182,6 @@ export interface CheckableListProps {
|
|
|
192
182
|
* Función personalizada de filtrado
|
|
193
183
|
*/
|
|
194
184
|
filterFn?: (item: CheckableListItem, query: string) => boolean;
|
|
195
|
-
/**
|
|
196
|
-
* Notifica el texto escrito en el buscador, para que el consumidor pueda
|
|
197
|
-
* lanzar además una búsqueda remota.
|
|
198
|
-
*/
|
|
199
|
-
onSearchChange?: (query: string) => void;
|
|
200
185
|
/**
|
|
201
186
|
* Tamaño del componente
|
|
202
187
|
*/
|
|
@@ -205,11 +190,6 @@ export interface CheckableListProps {
|
|
|
205
190
|
* Variante del componente
|
|
206
191
|
*/
|
|
207
192
|
variant?: 'standard' | 'outlined' | 'compact';
|
|
208
|
-
/**
|
|
209
|
-
* Aplica la primera medida del contenedor sin esperar al throttle de 200ms,
|
|
210
|
-
* evitando el hueco en blanco al montar. Por defecto mantiene la espera.
|
|
211
|
-
*/
|
|
212
|
-
measureImmediately?: boolean;
|
|
213
193
|
/**
|
|
214
194
|
* Altura estimada de cada item para la virtualización.
|
|
215
195
|
* La altura final la mide TanStack Virtual sobre el DOM real.
|