@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.
Files changed (26) hide show
  1. package/components/DevicesPicker/DevicesPicker.d.ts.map +1 -1
  2. package/components/DevicesPicker/DevicesPicker.js +214 -213
  3. package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +1 -1
  4. package/components/DevicesPicker/DevicesPicker.styles.js +34 -19
  5. package/components/DevicesPicker/constants.d.ts +14 -3
  6. package/components/DevicesPicker/constants.d.ts.map +1 -1
  7. package/components/DevicesPicker/constants.js +15 -13
  8. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +1 -1
  9. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +17 -17
  10. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +1 -1
  11. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +44 -36
  12. package/components/datagrids/views/CardsView/CardsView.d.ts.map +1 -1
  13. package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
  14. package/components/extended/mui/Autocomplete/Autocomplete.js +52 -50
  15. package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
  16. package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +58 -60
  17. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts +14 -0
  18. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts.map +1 -0
  19. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.js +7 -0
  20. package/hooks/useChipsOverflow/helpers/index.d.ts +1 -0
  21. package/hooks/useChipsOverflow/helpers/index.d.ts.map +1 -1
  22. package/hooks/useChipsOverflow/useChipsOverflow.d.ts +1 -0
  23. package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +1 -1
  24. package/hooks/useChipsOverflow/useChipsOverflow.js +44 -42
  25. package/index.js +783 -781
  26. 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":"AAsCA,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,oDAkX7B"}
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 Pe } from "@emotion/react/jsx-runtime";
2
- import { useRef as Ne, useState as Z, useCallback as l, createElement as Ee, useMemo as Le } from "react";
3
- import q from "clsx";
4
- import { useModuleDictionary as _e, useEnvironment as xe } from "@m4l/core";
5
- import { Icon as ke } from "@m4l/base";
6
- import { ConectivityDispositiveOutlined as Fe, ArrowChevronMdUpOutlined as Ae, ArrowChevronMdDownOutlined as Me } from "@m4l/icons";
7
- import { useDevicesAsyncOptions as ze } from "./hooks/useDevicesAsyncOptions.js";
8
- import { useDeviceGroups as We } from "./hooks/useDeviceGroups.js";
9
- import { useDevicesSelection as $e } from "./hooks/useDevicesSelection.js";
10
- import { usePanelColumns as Ge } from "./hooks/usePanelColumns.js";
11
- import { resolveDeviceGroup as Be } from "./helpers/resolveDeviceGroup.js";
12
- import { DEVICES_PICKER_ICON_SIZE as H, DEVICES_PICKER_CLASSES as r } from "./constants.js";
13
- import { DICCTIONARY as E } from "./dictionary.js";
14
- import { resolveDeviceTitle as je, resolveDeviceSubtitle as Ke } from "../../helpers/resolveDeviceLabels/resolveDeviceLabels.js";
15
- import { resolveDeviceIconSrc as Ue } from "../../helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js";
16
- import { useChipsOverflow as Ve } from "../../hooks/useChipsOverflow/useChipsOverflow.js";
17
- import { RootStyled as J, TriggerStyled as Ye, PlaceholderContainerStyled as Ze, PlaceholderIconStyled as qe, PlaceholderStyled as He, CardsContainerStyled as Je, DeviceCardWrapperStyled as Q, PartialCardWrapperStyled as Qe, MeasuringLayerStyled as Xe, OverflowToggleStyled as eo, ChevronButtonStyled as oo } from "./slots/DevicesPickerSlots.js";
18
- import { DevicesPickerSkeleton as ro } from "./subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js";
19
- import { DevicesPanel as to } from "./subcomponents/DevicesPanel/DevicesPanel.js";
20
- import { SelectedDevicesList as no } from "./subcomponents/SelectedDevicesList/SelectedDevicesList.js";
21
- import { Image as ao } from "../Image/Image.js";
22
- import { DeviceCard as L } from "./subcomponents/DeviceCard/DeviceCard.js";
23
- import { Popover as X } from "../extended/mui/Popover/Popover.js";
24
- function Eo(ee) {
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: oe,
27
- timeout: re,
28
- parms: te,
29
- resultField: ne,
30
- isRemote: ae,
31
- isExternalUrl: ie,
32
- responseToCamelCase: le,
33
- shouldFetch: se,
34
- value: ce,
35
- onChange: de,
36
- multiple: s = !0,
37
- disabled: _ = !1,
38
- loading: x = !1,
39
- error: me = !1,
40
- size: c = "medium",
41
- showOverflowToggle: pe = !0,
42
- showDepartments: he,
43
- showIds: ge,
44
- searchable: fe = !0,
45
- placeholder: ue,
46
- className: k,
47
- dataTestid: F,
48
- getOptionLabel: b,
49
- getDeviceGroup: A = Be,
50
- getDeviceSubtitle: D,
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: M
53
- } = ee;
54
- if (s && M)
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: I } = _e(), { hostApiRemote: z } = xe(), w = Ne(null), [d, W] = Z(!1), [$, O] = Z(!1), {
59
- options: y,
60
- loading: G,
61
- onOpen: B,
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: ve
64
- } = ze({
65
- endPoint: oe,
66
- timeout: re,
67
- parms: te,
68
- resultField: ne,
69
- isRemote: ae,
70
- isExternalUrl: ie,
71
- responseToCamelCase: le,
72
- shouldFetch: se,
73
- onChangeFilterParms: M
74
- }), m = l(
75
- (e) => b ? b(e) : je(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
- ), h = l(
81
- (e) => S ? S(e) : Ee(ao, {
82
- src: Ue(z, e.deviceIcon?.iconId),
83
- width: H,
84
- height: H,
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, z]
88
- ), { selectedIds: Ce, selectedDevices: f, handleSelectionChange: be, handleRemove: R } = $e({ value: ce, options: y, multiple: s, onChange: de }), i = Ge({
89
- options: y,
90
- showDepartments: he,
91
- showIds: ge,
92
- getDeviceGroup: A
93
- }), { groups: De, items: Se } = We({
94
- options: y,
95
- grouped: i.showDepartments,
96
- getDeviceGroup: A,
97
- defaultGroupLabel: I(E.label_default_department),
98
- getOptionLabel: m,
99
- getDeviceSubtitle: p,
100
- getDeviceIcon: h
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: j,
103
- overflowFilters: T,
104
- measuringFilters: u,
105
- parentRef: Ie,
106
- containerRef: we,
107
- setChipRef: K,
108
- setMoreChipRef: Oe,
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
- } = Ve(f, { deferMeasurement: !0 }), { visibleCards: Re, partialCard: n, hiddenCards: U } = Le(() => {
111
- const e = new Set(u.map((a) => a.id)), t = T.find((a) => !e.has(a.id));
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: j,
114
- partialCard: t,
115
- hiddenCards: T.filter((a) => a.id !== t?.id)
114
+ visibleCards: T,
115
+ partialCard: q,
116
+ hiddenCards: y.filter((h) => h.id !== q?.id)
116
117
  };
117
- }, [j, T, u]), V = l((e) => {
118
- e?.stopPropagation(), O(!1), W((t) => {
119
- const a = !t;
120
- return a ? B() : g(), a;
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
- }, [B, g]), P = l(() => {
123
- W(!1), g();
124
- }, [g]), N = l((e) => {
125
- e?.stopPropagation(), d && P(), O((t) => !t);
126
- }, [d, P]), Te = l(() => O(!1), []), Y = x || G, v = {
127
- size: c,
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: me,
131
- disabled: _,
132
- loading: Y,
130
+ listOpen: B,
131
+ error: ge,
132
+ disabled: x,
133
+ loading: Z,
133
134
  hasSelection: f.length > 0
134
135
  };
135
- return x ? /* @__PURE__ */ o(
136
- J,
136
+ return k ? /* @__PURE__ */ o(
137
+ ee,
137
138
  {
138
- ownerState: v,
139
- className: q(k, r.root),
140
- "data-testid": F,
141
- children: /* @__PURE__ */ o(ro, { size: c })
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(Pe, { children: [
144
+ ) : /* @__PURE__ */ C(Le, { children: [
144
145
  /* @__PURE__ */ o(
145
- J,
146
+ ee,
146
147
  {
147
- ref: Ie,
148
- ownerState: v,
149
- className: q(k, r.root),
150
- "data-testid": F,
148
+ ref: Pe,
149
+ ownerState: u,
150
+ className: Q(F, t.root),
151
+ "data-testid": M,
151
152
  children: /* @__PURE__ */ C(
152
- Ye,
153
+ Je,
153
154
  {
154
155
  ref: w,
155
- ownerState: v,
156
- className: r.trigger,
157
- onClick: V,
156
+ ownerState: u,
157
+ className: t.trigger,
158
+ onClick: Y,
158
159
  children: [
159
160
  f.length === 0 ? /* @__PURE__ */ C(
160
- Ze,
161
+ Qe,
161
162
  {
162
- className: r.placeholderContainer,
163
+ className: t.placeholderContainer,
163
164
  children: [
164
- /* @__PURE__ */ o(qe, { className: r.placeholderIcon, children: /* @__PURE__ */ o(ke, { src: /* @__PURE__ */ o(Fe, {}), color: "text.secondary" }) }),
165
+ /* @__PURE__ */ o(Xe, { className: t.placeholderIcon, children: /* @__PURE__ */ o(Me, { src: /* @__PURE__ */ o(We, {}), color: "text.secondary" }) }),
165
166
  /* @__PURE__ */ o(
166
- He,
167
+ eo,
167
168
  {
168
- className: r.placeholder,
169
+ className: t.placeholder,
169
170
  variant: "bodyStandard",
170
171
  color: "text.disabled",
171
- children: ue ?? I(E.label_placeholder)
172
+ children: De ?? b(_.label_placeholder)
172
173
  }
173
174
  )
174
175
  ]
175
176
  }
176
177
  ) : /* @__PURE__ */ C(
177
- Je,
178
+ oo,
178
179
  {
179
- ref: we,
180
- className: r.cardsContainer,
180
+ ref: Re,
181
+ className: t.cardsContainer,
181
182
  children: [
182
- Re.map((e) => /* @__PURE__ */ o(
183
- Q,
183
+ Ee.map((e) => /* @__PURE__ */ o(
184
+ oe,
184
185
  {
185
- ref: (t) => K(e.id, t),
186
- className: r.deviceCardWrapper,
186
+ ref: (r) => U(e.id, r),
187
+ className: t.deviceCardWrapper,
187
188
  children: /* @__PURE__ */ o(
188
- L,
189
+ A,
189
190
  {
190
191
  deviceId: e.id,
191
- name: m(e),
192
- subtitle: p(e),
193
- icon: h(e),
194
- disableRemove: !s,
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: `${r.deviceCard}-${e.id}`
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
- Qe,
208
+ to,
208
209
  {
209
- className: r.partialCardWrapper,
210
+ className: t.partialCardWrapper,
210
211
  children: /* @__PURE__ */ o(
211
- L,
212
+ A,
212
213
  {
213
214
  deviceId: n.id,
214
- name: m(n),
215
- subtitle: p(n),
216
- icon: h(n),
217
- disableRemove: !s,
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: `${r.deviceCard}-${n.id}`
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
- u.length > 0 && /* @__PURE__ */ o(
230
- Xe,
230
+ v.length > 0 && /* @__PURE__ */ o(
231
+ ro,
231
232
  {
232
- className: r.measuringLayer,
233
+ className: t.measuringLayer,
233
234
  "aria-hidden": !0,
234
- children: u.map((e) => /* @__PURE__ */ o(
235
- Q,
235
+ children: v.map((e) => /* @__PURE__ */ o(
236
+ oe,
236
237
  {
237
- ref: (t) => K(e.id, t),
238
- className: r.deviceCardWrapper,
238
+ ref: (r) => U(e.id, r),
239
+ className: t.deviceCardWrapper,
239
240
  children: /* @__PURE__ */ o(
240
- L,
241
+ A,
241
242
  {
242
243
  deviceId: e.id,
243
- name: m(e),
244
- subtitle: p(e),
245
- icon: h(e),
246
- disableRemove: !s
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
- pe && U.length > 0 && /* @__PURE__ */ o(
255
- eo,
255
+ fe && H.length > 0 && /* @__PURE__ */ o(
256
+ no,
256
257
  {
257
- ref: Oe,
258
- ownerState: v,
259
- className: r.overflowToggle,
260
- dataTestId: r.overflowToggle,
258
+ ref: Te,
259
+ ownerState: u,
260
+ className: t.overflowToggle,
261
+ dataTestId: t.overflowToggle,
261
262
  variant: "contained",
262
263
  color: "default",
263
- size: c,
264
- label: `+${U.length}`,
264
+ size: s,
265
+ label: `+${H.length}`,
265
266
  onToggle: N
266
267
  }
267
268
  ),
268
269
  /* @__PURE__ */ o(
269
- oo,
270
+ ao,
270
271
  {
271
272
  ref: ye,
272
- className: r.chevronButton,
273
- dataTestId: r.chevronButton,
274
- icon: d ? /* @__PURE__ */ o(Ae, {}) : /* @__PURE__ */ o(Me, {}),
273
+ className: t.chevronButton,
274
+ dataTestId: t.chevronButton,
275
+ icon: d ? /* @__PURE__ */ o(ze, {}) : /* @__PURE__ */ o($e, {}),
275
276
  variant: "text",
276
- size: c,
277
- disabled: _ || Y,
278
- "aria-label": I(E.label_open_panel),
279
- onClick: V
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
- X,
289
+ te,
289
290
  {
290
291
  open: d,
291
292
  anchorEl: w.current,
292
- onClose: P,
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
- to,
298
+ lo,
298
299
  {
299
- groups: De,
300
- items: Se,
301
- selectedIds: Ce,
300
+ groups: we,
301
+ items: Oe,
302
+ selectedIds: Se,
302
303
  onSelectionChange: be,
303
- multiple: s,
304
- loading: G,
305
- searchable: fe,
306
- onSearchChange: ve,
307
- size: c,
308
- showDepartments: i.showDepartments,
309
- showIds: i.showIds,
310
- canShowDepartments: i.canShowDepartments,
311
- canShowIds: i.canShowIds,
312
- onToggleDepartments: i.toggleDepartments,
313
- onToggleIds: i.toggleIds
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
- X,
320
+ te,
320
321
  {
321
- open: $,
322
+ open: B,
322
323
  anchorEl: w.current,
323
- onClose: Te,
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
- no,
329
+ so,
329
330
  {
330
331
  devices: f,
331
- getOptionLabel: m,
332
- getDeviceSubtitle: p,
333
- getDeviceIcon: h,
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
- Eo as DevicesPicker
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":"AAcA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,mBAAmB,EAAE,mBAwejC,CAAC"}
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"}