@m4l/components 9.54.2-beta-m4lcom-764-device-picker.1 → 9.55.0
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/DevicesPicker/DevicesPicker.d.ts.map +1 -1
- package/components/DevicesPicker/DevicesPicker.js +214 -213
- package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +1 -1
- package/components/DevicesPicker/DevicesPicker.styles.js +34 -19
- package/components/DevicesPicker/constants.d.ts +14 -3
- package/components/DevicesPicker/constants.d.ts.map +1 -1
- package/components/DevicesPicker/constants.js +15 -13
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +1 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +17 -17
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +1 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +44 -36
- 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/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts +14 -0
- package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts.map +1 -0
- package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.js +7 -0
- package/hooks/useChipsOverflow/helpers/index.d.ts +1 -0
- package/hooks/useChipsOverflow/helpers/index.d.ts.map +1 -1
- package/hooks/useChipsOverflow/useChipsOverflow.d.ts +1 -0
- package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +1 -1
- package/hooks/useChipsOverflow/useChipsOverflow.js +44 -42
- package/index.js +783 -781
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevicesPicker.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DevicesPicker/DevicesPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevicesPicker.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DevicesPicker/DevicesPicker.tsx"],"names":[],"mappings":"AA0CA,OAAO,EAAE,kBAAkB,EAA2B,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE1F;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAC7E,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,oDAwX7B"}
|
|
@@ -1,200 +1,201 @@
|
|
|
1
|
-
import { jsx as o, jsxs as C, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import { useModuleDictionary as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { ConectivityDispositiveOutlined as
|
|
7
|
-
import { useDevicesAsyncOptions as
|
|
8
|
-
import { useDeviceGroups as
|
|
9
|
-
import { useDevicesSelection as
|
|
10
|
-
import { usePanelColumns as
|
|
11
|
-
import { resolveDeviceGroup as
|
|
12
|
-
import { DEVICES_PICKER_ICON_SIZE as
|
|
13
|
-
import { DICCTIONARY as
|
|
14
|
-
import { resolveDeviceTitle as
|
|
15
|
-
import { resolveDeviceIconSrc as
|
|
16
|
-
import { useChipsOverflow as
|
|
17
|
-
import { RootStyled as
|
|
18
|
-
import { DevicesPickerSkeleton as
|
|
19
|
-
import { DevicesPanel as
|
|
20
|
-
import { SelectedDevicesList as
|
|
21
|
-
import { Image as
|
|
22
|
-
import { DeviceCard as
|
|
23
|
-
import { Popover as
|
|
24
|
-
function
|
|
1
|
+
import { jsx as o, jsxs as C, Fragment as Le } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useRef as _e, useState as J, useCallback as i, createElement as Ae, useMemo as xe } from "react";
|
|
3
|
+
import Q from "clsx";
|
|
4
|
+
import { useModuleDictionary as ke, useEnvironment as Fe } from "@m4l/core";
|
|
5
|
+
import { Icon as Me } from "@m4l/base";
|
|
6
|
+
import { ConectivityDispositiveOutlined as We, ArrowChevronMdUpOutlined as ze, ArrowChevronMdDownOutlined as $e } from "@m4l/icons";
|
|
7
|
+
import { useDevicesAsyncOptions as Ge } from "./hooks/useDevicesAsyncOptions.js";
|
|
8
|
+
import { useDeviceGroups as Be } from "./hooks/useDeviceGroups.js";
|
|
9
|
+
import { useDevicesSelection as Ke } from "./hooks/useDevicesSelection.js";
|
|
10
|
+
import { usePanelColumns as Ve } from "./hooks/usePanelColumns.js";
|
|
11
|
+
import { resolveDeviceGroup as je } from "./helpers/resolveDeviceGroup.js";
|
|
12
|
+
import { DEVICES_PICKER_ICON_SIZE as X, DEVICES_PICKER_PARTIAL_CARD_MIN_WIDTH as Ue, DEVICES_PICKER_CLASSES as t } from "./constants.js";
|
|
13
|
+
import { DICCTIONARY as _ } from "./dictionary.js";
|
|
14
|
+
import { resolveDeviceTitle as He, resolveDeviceSubtitle as Ye } from "../../helpers/resolveDeviceLabels/resolveDeviceLabels.js";
|
|
15
|
+
import { resolveDeviceIconSrc as Ze } from "../../helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js";
|
|
16
|
+
import { useChipsOverflow as qe } from "../../hooks/useChipsOverflow/useChipsOverflow.js";
|
|
17
|
+
import { RootStyled as ee, TriggerStyled as Je, PlaceholderContainerStyled as Qe, PlaceholderIconStyled as Xe, PlaceholderStyled as eo, CardsContainerStyled as oo, DeviceCardWrapperStyled as oe, PartialCardWrapperStyled as to, MeasuringLayerStyled as ro, OverflowToggleStyled as no, ChevronButtonStyled as ao } from "./slots/DevicesPickerSlots.js";
|
|
18
|
+
import { DevicesPickerSkeleton as io } from "./subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js";
|
|
19
|
+
import { DevicesPanel as lo } from "./subcomponents/DevicesPanel/DevicesPanel.js";
|
|
20
|
+
import { SelectedDevicesList as so } from "./subcomponents/SelectedDevicesList/SelectedDevicesList.js";
|
|
21
|
+
import { Image as co } from "../Image/Image.js";
|
|
22
|
+
import { DeviceCard as A } from "./subcomponents/DeviceCard/DeviceCard.js";
|
|
23
|
+
import { Popover as te } from "../extended/mui/Popover/Popover.js";
|
|
24
|
+
function xo(re) {
|
|
25
25
|
const {
|
|
26
|
-
endPoint:
|
|
27
|
-
timeout:
|
|
28
|
-
parms:
|
|
29
|
-
resultField:
|
|
30
|
-
isRemote:
|
|
31
|
-
isExternalUrl:
|
|
32
|
-
responseToCamelCase:
|
|
33
|
-
shouldFetch:
|
|
34
|
-
value:
|
|
35
|
-
onChange:
|
|
36
|
-
multiple:
|
|
37
|
-
disabled:
|
|
38
|
-
loading:
|
|
39
|
-
error:
|
|
40
|
-
size:
|
|
41
|
-
showOverflowToggle:
|
|
42
|
-
showDepartments:
|
|
43
|
-
showIds:
|
|
44
|
-
searchable:
|
|
45
|
-
placeholder:
|
|
46
|
-
className:
|
|
47
|
-
dataTestid:
|
|
48
|
-
getOptionLabel:
|
|
49
|
-
getDeviceGroup:
|
|
50
|
-
getDeviceSubtitle:
|
|
26
|
+
endPoint: ne,
|
|
27
|
+
timeout: ae,
|
|
28
|
+
parms: ie,
|
|
29
|
+
resultField: le,
|
|
30
|
+
isRemote: se,
|
|
31
|
+
isExternalUrl: de,
|
|
32
|
+
responseToCamelCase: ce,
|
|
33
|
+
shouldFetch: me,
|
|
34
|
+
value: pe,
|
|
35
|
+
onChange: he,
|
|
36
|
+
multiple: l = !0,
|
|
37
|
+
disabled: x = !1,
|
|
38
|
+
loading: k = !1,
|
|
39
|
+
error: ge = !1,
|
|
40
|
+
size: s = "medium",
|
|
41
|
+
showOverflowToggle: fe = !0,
|
|
42
|
+
showDepartments: ve,
|
|
43
|
+
showIds: ue,
|
|
44
|
+
searchable: Ce = !0,
|
|
45
|
+
placeholder: De,
|
|
46
|
+
className: F,
|
|
47
|
+
dataTestid: M,
|
|
48
|
+
getOptionLabel: D,
|
|
49
|
+
getDeviceGroup: W = je,
|
|
50
|
+
getDeviceSubtitle: I,
|
|
51
51
|
getDeviceIcon: S,
|
|
52
|
-
onChangeFilterParms:
|
|
53
|
-
} =
|
|
54
|
-
if (
|
|
52
|
+
onChangeFilterParms: z
|
|
53
|
+
} = re;
|
|
54
|
+
if (l && z)
|
|
55
55
|
throw new Error(
|
|
56
56
|
"multiple cannot be enabled when onChangeFilterParms is defined; define the filter in parms if needed."
|
|
57
57
|
);
|
|
58
|
-
const { getLabel:
|
|
59
|
-
options:
|
|
60
|
-
loading:
|
|
61
|
-
onOpen:
|
|
58
|
+
const { getLabel: b } = ke(), { hostApiRemote: $ } = Fe(), w = _e(null), [d, G] = J(!1), [B, O] = J(!1), {
|
|
59
|
+
options: P,
|
|
60
|
+
loading: K,
|
|
61
|
+
onOpen: V,
|
|
62
62
|
onClose: g,
|
|
63
|
-
onSearchChange:
|
|
64
|
-
} =
|
|
65
|
-
endPoint:
|
|
66
|
-
timeout:
|
|
67
|
-
parms:
|
|
68
|
-
resultField:
|
|
69
|
-
isRemote:
|
|
70
|
-
isExternalUrl:
|
|
71
|
-
responseToCamelCase:
|
|
72
|
-
shouldFetch:
|
|
73
|
-
onChangeFilterParms:
|
|
74
|
-
}),
|
|
75
|
-
(e) =>
|
|
76
|
-
[b]
|
|
77
|
-
), p = l(
|
|
78
|
-
(e) => D ? D(e) : Ke(e),
|
|
63
|
+
onSearchChange: Ie
|
|
64
|
+
} = Ge({
|
|
65
|
+
endPoint: ne,
|
|
66
|
+
timeout: ae,
|
|
67
|
+
parms: ie,
|
|
68
|
+
resultField: le,
|
|
69
|
+
isRemote: se,
|
|
70
|
+
isExternalUrl: de,
|
|
71
|
+
responseToCamelCase: ce,
|
|
72
|
+
shouldFetch: me,
|
|
73
|
+
onChangeFilterParms: z
|
|
74
|
+
}), c = i(
|
|
75
|
+
(e) => D ? D(e) : He(e),
|
|
79
76
|
[D]
|
|
80
|
-
),
|
|
81
|
-
(e) =>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
), m = i(
|
|
78
|
+
(e) => I ? I(e) : Ye(e),
|
|
79
|
+
[I]
|
|
80
|
+
), p = i(
|
|
81
|
+
(e) => S ? S(e) : Ae(co, {
|
|
82
|
+
src: Ze($, e.deviceIcon?.iconId),
|
|
83
|
+
width: X,
|
|
84
|
+
height: X,
|
|
85
85
|
enableIntersectionObserver: !1
|
|
86
86
|
}),
|
|
87
|
-
[S,
|
|
88
|
-
), { selectedIds:
|
|
89
|
-
options:
|
|
90
|
-
showDepartments:
|
|
91
|
-
showIds:
|
|
92
|
-
getDeviceGroup:
|
|
93
|
-
}), { groups:
|
|
94
|
-
options:
|
|
95
|
-
grouped:
|
|
96
|
-
getDeviceGroup:
|
|
97
|
-
defaultGroupLabel:
|
|
98
|
-
getOptionLabel:
|
|
99
|
-
getDeviceSubtitle:
|
|
100
|
-
getDeviceIcon:
|
|
87
|
+
[S, $]
|
|
88
|
+
), { selectedIds: Se, selectedDevices: f, handleSelectionChange: be, handleRemove: R } = Ke({ value: pe, options: P, multiple: l, onChange: he }), a = Ve({
|
|
89
|
+
options: P,
|
|
90
|
+
showDepartments: ve,
|
|
91
|
+
showIds: ue,
|
|
92
|
+
getDeviceGroup: W
|
|
93
|
+
}), { groups: we, items: Oe } = Be({
|
|
94
|
+
options: P,
|
|
95
|
+
grouped: a.showDepartments,
|
|
96
|
+
getDeviceGroup: W,
|
|
97
|
+
defaultGroupLabel: b(_.label_default_department),
|
|
98
|
+
getOptionLabel: c,
|
|
99
|
+
getDeviceSubtitle: m,
|
|
100
|
+
getDeviceIcon: p
|
|
101
101
|
}), {
|
|
102
|
-
visibleFilters:
|
|
103
|
-
overflowFilters:
|
|
104
|
-
measuringFilters:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
visibleFilters: T,
|
|
103
|
+
overflowFilters: y,
|
|
104
|
+
measuringFilters: v,
|
|
105
|
+
leftoverWidth: j,
|
|
106
|
+
parentRef: Pe,
|
|
107
|
+
containerRef: Re,
|
|
108
|
+
setChipRef: U,
|
|
109
|
+
setMoreChipRef: Te,
|
|
109
110
|
setActionsRef: ye
|
|
110
|
-
} =
|
|
111
|
-
const e = new Set(
|
|
111
|
+
} = qe(f, { deferMeasurement: !0 }), { visibleCards: Ee, partialCard: n, hiddenCards: H } = xe(() => {
|
|
112
|
+
const e = new Set(v.map((h) => h.id)), r = y.find((h) => !e.has(h.id)), q = j >= Ue || T.length === 0 ? r : void 0;
|
|
112
113
|
return {
|
|
113
|
-
visibleCards:
|
|
114
|
-
partialCard:
|
|
115
|
-
hiddenCards:
|
|
114
|
+
visibleCards: T,
|
|
115
|
+
partialCard: q,
|
|
116
|
+
hiddenCards: y.filter((h) => h.id !== q?.id)
|
|
116
117
|
};
|
|
117
|
-
}, [
|
|
118
|
-
e?.stopPropagation(), O(!1),
|
|
119
|
-
const
|
|
120
|
-
return
|
|
118
|
+
}, [T, y, v, j]), Y = i((e) => {
|
|
119
|
+
e?.stopPropagation(), O(!1), G((r) => {
|
|
120
|
+
const L = !r;
|
|
121
|
+
return L ? V() : g(), L;
|
|
121
122
|
});
|
|
122
|
-
}, [
|
|
123
|
-
|
|
124
|
-
}, [g]), N =
|
|
125
|
-
e?.stopPropagation(), d &&
|
|
126
|
-
}, [d,
|
|
127
|
-
size:
|
|
123
|
+
}, [V, g]), E = i(() => {
|
|
124
|
+
G(!1), g();
|
|
125
|
+
}, [g]), N = i((e) => {
|
|
126
|
+
e?.stopPropagation(), d && E(), O((r) => !r);
|
|
127
|
+
}, [d, E]), Ne = i(() => O(!1), []), Z = k || K, u = {
|
|
128
|
+
size: s,
|
|
128
129
|
panelOpen: d,
|
|
129
|
-
listOpen:
|
|
130
|
-
error:
|
|
131
|
-
disabled:
|
|
132
|
-
loading:
|
|
130
|
+
listOpen: B,
|
|
131
|
+
error: ge,
|
|
132
|
+
disabled: x,
|
|
133
|
+
loading: Z,
|
|
133
134
|
hasSelection: f.length > 0
|
|
134
135
|
};
|
|
135
|
-
return
|
|
136
|
-
|
|
136
|
+
return k ? /* @__PURE__ */ o(
|
|
137
|
+
ee,
|
|
137
138
|
{
|
|
138
|
-
ownerState:
|
|
139
|
-
className:
|
|
140
|
-
"data-testid":
|
|
141
|
-
children: /* @__PURE__ */ o(
|
|
139
|
+
ownerState: u,
|
|
140
|
+
className: Q(F, t.root),
|
|
141
|
+
"data-testid": M,
|
|
142
|
+
children: /* @__PURE__ */ o(io, { size: s })
|
|
142
143
|
}
|
|
143
|
-
) : /* @__PURE__ */ C(
|
|
144
|
+
) : /* @__PURE__ */ C(Le, { children: [
|
|
144
145
|
/* @__PURE__ */ o(
|
|
145
|
-
|
|
146
|
+
ee,
|
|
146
147
|
{
|
|
147
|
-
ref:
|
|
148
|
-
ownerState:
|
|
149
|
-
className:
|
|
150
|
-
"data-testid":
|
|
148
|
+
ref: Pe,
|
|
149
|
+
ownerState: u,
|
|
150
|
+
className: Q(F, t.root),
|
|
151
|
+
"data-testid": M,
|
|
151
152
|
children: /* @__PURE__ */ C(
|
|
152
|
-
|
|
153
|
+
Je,
|
|
153
154
|
{
|
|
154
155
|
ref: w,
|
|
155
|
-
ownerState:
|
|
156
|
-
className:
|
|
157
|
-
onClick:
|
|
156
|
+
ownerState: u,
|
|
157
|
+
className: t.trigger,
|
|
158
|
+
onClick: Y,
|
|
158
159
|
children: [
|
|
159
160
|
f.length === 0 ? /* @__PURE__ */ C(
|
|
160
|
-
|
|
161
|
+
Qe,
|
|
161
162
|
{
|
|
162
|
-
className:
|
|
163
|
+
className: t.placeholderContainer,
|
|
163
164
|
children: [
|
|
164
|
-
/* @__PURE__ */ o(
|
|
165
|
+
/* @__PURE__ */ o(Xe, { className: t.placeholderIcon, children: /* @__PURE__ */ o(Me, { src: /* @__PURE__ */ o(We, {}), color: "text.secondary" }) }),
|
|
165
166
|
/* @__PURE__ */ o(
|
|
166
|
-
|
|
167
|
+
eo,
|
|
167
168
|
{
|
|
168
|
-
className:
|
|
169
|
+
className: t.placeholder,
|
|
169
170
|
variant: "bodyStandard",
|
|
170
171
|
color: "text.disabled",
|
|
171
|
-
children:
|
|
172
|
+
children: De ?? b(_.label_placeholder)
|
|
172
173
|
}
|
|
173
174
|
)
|
|
174
175
|
]
|
|
175
176
|
}
|
|
176
177
|
) : /* @__PURE__ */ C(
|
|
177
|
-
|
|
178
|
+
oo,
|
|
178
179
|
{
|
|
179
|
-
ref:
|
|
180
|
-
className:
|
|
180
|
+
ref: Re,
|
|
181
|
+
className: t.cardsContainer,
|
|
181
182
|
children: [
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
Ee.map((e) => /* @__PURE__ */ o(
|
|
184
|
+
oe,
|
|
184
185
|
{
|
|
185
|
-
ref: (
|
|
186
|
-
className:
|
|
186
|
+
ref: (r) => U(e.id, r),
|
|
187
|
+
className: t.deviceCardWrapper,
|
|
187
188
|
children: /* @__PURE__ */ o(
|
|
188
|
-
|
|
189
|
+
A,
|
|
189
190
|
{
|
|
190
191
|
deviceId: e.id,
|
|
191
|
-
name:
|
|
192
|
-
subtitle:
|
|
193
|
-
icon:
|
|
194
|
-
disableRemove: !
|
|
192
|
+
name: c(e),
|
|
193
|
+
subtitle: m(e),
|
|
194
|
+
icon: p(e),
|
|
195
|
+
disableRemove: !l,
|
|
195
196
|
onRemove: () => R(e),
|
|
196
197
|
onClick: N,
|
|
197
|
-
dataTestid: `${
|
|
198
|
+
dataTestid: `${t.deviceCard}-${e.id}`
|
|
198
199
|
}
|
|
199
200
|
)
|
|
200
201
|
},
|
|
@@ -204,20 +205,20 @@ function Eo(ee) {
|
|
|
204
205
|
// cacheó en la pasada inicial y aquí sale encogido, así que
|
|
205
206
|
// registrarlo corrompería el cálculo del overflow.
|
|
206
207
|
/* @__PURE__ */ o(
|
|
207
|
-
|
|
208
|
+
to,
|
|
208
209
|
{
|
|
209
|
-
className:
|
|
210
|
+
className: t.partialCardWrapper,
|
|
210
211
|
children: /* @__PURE__ */ o(
|
|
211
|
-
|
|
212
|
+
A,
|
|
212
213
|
{
|
|
213
214
|
deviceId: n.id,
|
|
214
|
-
name:
|
|
215
|
-
subtitle:
|
|
216
|
-
icon:
|
|
217
|
-
disableRemove: !
|
|
215
|
+
name: c(n),
|
|
216
|
+
subtitle: m(n),
|
|
217
|
+
icon: p(n),
|
|
218
|
+
disableRemove: !l,
|
|
218
219
|
onRemove: () => R(n),
|
|
219
220
|
onClick: N,
|
|
220
|
-
dataTestid: `${
|
|
221
|
+
dataTestid: `${t.deviceCard}-${n.id}`
|
|
221
222
|
}
|
|
222
223
|
)
|
|
223
224
|
},
|
|
@@ -226,24 +227,24 @@ function Eo(ee) {
|
|
|
226
227
|
]
|
|
227
228
|
}
|
|
228
229
|
),
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
v.length > 0 && /* @__PURE__ */ o(
|
|
231
|
+
ro,
|
|
231
232
|
{
|
|
232
|
-
className:
|
|
233
|
+
className: t.measuringLayer,
|
|
233
234
|
"aria-hidden": !0,
|
|
234
|
-
children:
|
|
235
|
-
|
|
235
|
+
children: v.map((e) => /* @__PURE__ */ o(
|
|
236
|
+
oe,
|
|
236
237
|
{
|
|
237
|
-
ref: (
|
|
238
|
-
className:
|
|
238
|
+
ref: (r) => U(e.id, r),
|
|
239
|
+
className: t.deviceCardWrapper,
|
|
239
240
|
children: /* @__PURE__ */ o(
|
|
240
|
-
|
|
241
|
+
A,
|
|
241
242
|
{
|
|
242
243
|
deviceId: e.id,
|
|
243
|
-
name:
|
|
244
|
-
subtitle:
|
|
245
|
-
icon:
|
|
246
|
-
disableRemove: !
|
|
244
|
+
name: c(e),
|
|
245
|
+
subtitle: m(e),
|
|
246
|
+
icon: p(e),
|
|
247
|
+
disableRemove: !l
|
|
247
248
|
}
|
|
248
249
|
)
|
|
249
250
|
},
|
|
@@ -251,32 +252,32 @@ function Eo(ee) {
|
|
|
251
252
|
))
|
|
252
253
|
}
|
|
253
254
|
),
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
fe && H.length > 0 && /* @__PURE__ */ o(
|
|
256
|
+
no,
|
|
256
257
|
{
|
|
257
|
-
ref:
|
|
258
|
-
ownerState:
|
|
259
|
-
className:
|
|
260
|
-
dataTestId:
|
|
258
|
+
ref: Te,
|
|
259
|
+
ownerState: u,
|
|
260
|
+
className: t.overflowToggle,
|
|
261
|
+
dataTestId: t.overflowToggle,
|
|
261
262
|
variant: "contained",
|
|
262
263
|
color: "default",
|
|
263
|
-
size:
|
|
264
|
-
label: `+${
|
|
264
|
+
size: s,
|
|
265
|
+
label: `+${H.length}`,
|
|
265
266
|
onToggle: N
|
|
266
267
|
}
|
|
267
268
|
),
|
|
268
269
|
/* @__PURE__ */ o(
|
|
269
|
-
|
|
270
|
+
ao,
|
|
270
271
|
{
|
|
271
272
|
ref: ye,
|
|
272
|
-
className:
|
|
273
|
-
dataTestId:
|
|
274
|
-
icon: d ? /* @__PURE__ */ o(
|
|
273
|
+
className: t.chevronButton,
|
|
274
|
+
dataTestId: t.chevronButton,
|
|
275
|
+
icon: d ? /* @__PURE__ */ o(ze, {}) : /* @__PURE__ */ o($e, {}),
|
|
275
276
|
variant: "text",
|
|
276
|
-
size:
|
|
277
|
-
disabled:
|
|
278
|
-
"aria-label":
|
|
279
|
-
onClick:
|
|
277
|
+
size: s,
|
|
278
|
+
disabled: x || Z,
|
|
279
|
+
"aria-label": b(_.label_open_panel),
|
|
280
|
+
onClick: Y
|
|
280
281
|
}
|
|
281
282
|
)
|
|
282
283
|
]
|
|
@@ -285,52 +286,52 @@ function Eo(ee) {
|
|
|
285
286
|
}
|
|
286
287
|
),
|
|
287
288
|
/* @__PURE__ */ o(
|
|
288
|
-
|
|
289
|
+
te,
|
|
289
290
|
{
|
|
290
291
|
open: d,
|
|
291
292
|
anchorEl: w.current,
|
|
292
|
-
onClose:
|
|
293
|
+
onClose: E,
|
|
293
294
|
arrowType: "no-arrow",
|
|
294
295
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
295
296
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
296
297
|
children: /* @__PURE__ */ o(
|
|
297
|
-
|
|
298
|
+
lo,
|
|
298
299
|
{
|
|
299
|
-
groups:
|
|
300
|
-
items:
|
|
301
|
-
selectedIds:
|
|
300
|
+
groups: we,
|
|
301
|
+
items: Oe,
|
|
302
|
+
selectedIds: Se,
|
|
302
303
|
onSelectionChange: be,
|
|
303
|
-
multiple:
|
|
304
|
-
loading:
|
|
305
|
-
searchable:
|
|
306
|
-
onSearchChange:
|
|
307
|
-
size:
|
|
308
|
-
showDepartments:
|
|
309
|
-
showIds:
|
|
310
|
-
canShowDepartments:
|
|
311
|
-
canShowIds:
|
|
312
|
-
onToggleDepartments:
|
|
313
|
-
onToggleIds:
|
|
304
|
+
multiple: l,
|
|
305
|
+
loading: K,
|
|
306
|
+
searchable: Ce,
|
|
307
|
+
onSearchChange: Ie,
|
|
308
|
+
size: s,
|
|
309
|
+
showDepartments: a.showDepartments,
|
|
310
|
+
showIds: a.showIds,
|
|
311
|
+
canShowDepartments: a.canShowDepartments,
|
|
312
|
+
canShowIds: a.canShowIds,
|
|
313
|
+
onToggleDepartments: a.toggleDepartments,
|
|
314
|
+
onToggleIds: a.toggleIds
|
|
314
315
|
}
|
|
315
316
|
)
|
|
316
317
|
}
|
|
317
318
|
),
|
|
318
319
|
/* @__PURE__ */ o(
|
|
319
|
-
|
|
320
|
+
te,
|
|
320
321
|
{
|
|
321
|
-
open:
|
|
322
|
+
open: B,
|
|
322
323
|
anchorEl: w.current,
|
|
323
|
-
onClose:
|
|
324
|
+
onClose: Ne,
|
|
324
325
|
arrowType: "no-arrow",
|
|
325
326
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
326
327
|
transformOrigin: { vertical: -3, horizontal: "right" },
|
|
327
328
|
children: /* @__PURE__ */ o(
|
|
328
|
-
|
|
329
|
+
so,
|
|
329
330
|
{
|
|
330
331
|
devices: f,
|
|
331
|
-
getOptionLabel:
|
|
332
|
-
getDeviceSubtitle:
|
|
333
|
-
getDeviceIcon:
|
|
332
|
+
getOptionLabel: c,
|
|
333
|
+
getDeviceSubtitle: m,
|
|
334
|
+
getDeviceIcon: p,
|
|
334
335
|
onRemove: R
|
|
335
336
|
}
|
|
336
337
|
)
|
|
@@ -339,5 +340,5 @@ function Eo(ee) {
|
|
|
339
340
|
] });
|
|
340
341
|
}
|
|
341
342
|
export {
|
|
342
|
-
|
|
343
|
+
xo as DevicesPicker
|
|
343
344
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevicesPicker.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DevicesPicker/DevicesPicker.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevicesPicker.styles.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DevicesPicker/DevicesPicker.styles.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,mBAAmB,EAAE,mBAufjC,CAAC"}
|