@m4l/components 9.68.0 → 9.69.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 (132) hide show
  1. package/@types/types.d.ts +0 -8
  2. package/components/CheckableList/CheckableList.d.ts.map +1 -1
  3. package/components/CheckableList/CheckableList.js +64 -65
  4. package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
  5. package/components/CheckableList/CheckableList.styles.js +8 -3
  6. package/components/CheckableList/constants.d.ts +1 -1
  7. package/components/CheckableList/index.d.ts +3 -0
  8. package/components/CheckableList/index.d.ts.map +1 -1
  9. package/components/CheckableList/types.d.ts +0 -5
  10. package/components/CheckableList/types.d.ts.map +1 -1
  11. package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
  12. package/components/DynamicFilter/DynamicFilter.styles.js +4 -5
  13. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
  14. package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
  15. package/components/HelperError/index.d.ts +1 -0
  16. package/components/HelperError/index.d.ts.map +1 -1
  17. package/components/PropertyValue/PropertyValue.js +1 -1
  18. package/components/extended/mui/Autocomplete/index.d.ts +1 -0
  19. package/components/extended/mui/Autocomplete/index.d.ts.map +1 -1
  20. package/components/extended/mui/AutocompleteAsync/index.d.ts +3 -0
  21. package/components/extended/mui/AutocompleteAsync/index.d.ts.map +1 -1
  22. package/components/extended/mui/AutocompleteAsync/types.js +1 -0
  23. package/components/extended/mui/Select/Select.js +6 -6
  24. package/components/extended/mui/index.d.ts +2 -0
  25. package/components/extended/mui/index.d.ts.map +1 -1
  26. package/components/hook-form/index.d.ts +0 -3
  27. package/components/hook-form/index.d.ts.map +1 -1
  28. package/components/index.d.ts +0 -1
  29. package/components/index.d.ts.map +1 -1
  30. package/hooks/index.d.ts +1 -0
  31. package/hooks/index.d.ts.map +1 -1
  32. package/index.d.ts +0 -2
  33. package/index.d.ts.map +1 -1
  34. package/index.js +794 -823
  35. package/package.json +7 -7
  36. package/components/DevicesPicker/DevicesPicker.d.ts +0 -14
  37. package/components/DevicesPicker/DevicesPicker.d.ts.map +0 -1
  38. package/components/DevicesPicker/DevicesPicker.js +0 -344
  39. package/components/DevicesPicker/DevicesPicker.styles.d.ts +0 -3
  40. package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +0 -1
  41. package/components/DevicesPicker/DevicesPicker.styles.js +0 -510
  42. package/components/DevicesPicker/constants.d.ts +0 -85
  43. package/components/DevicesPicker/constants.d.ts.map +0 -1
  44. package/components/DevicesPicker/constants.js +0 -41
  45. package/components/DevicesPicker/dictionary.d.ts +0 -19
  46. package/components/DevicesPicker/dictionary.d.ts.map +0 -1
  47. package/components/DevicesPicker/dictionary.js +0 -20
  48. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts +0 -11
  49. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts.map +0 -1
  50. package/components/DevicesPicker/helpers/resolveDeviceGroup.js +0 -14
  51. package/components/DevicesPicker/helpers/toDeviceArray.d.ts +0 -7
  52. package/components/DevicesPicker/helpers/toDeviceArray.d.ts.map +0 -1
  53. package/components/DevicesPicker/helpers/toDeviceArray.js +0 -6
  54. package/components/DevicesPicker/hooks/types.d.ts +0 -176
  55. package/components/DevicesPicker/hooks/types.d.ts.map +0 -1
  56. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts +0 -13
  57. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts.map +0 -1
  58. package/components/DevicesPicker/hooks/useDeviceGroups.js +0 -51
  59. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts +0 -13
  60. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts.map +0 -1
  61. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.js +0 -71
  62. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts +0 -12
  63. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts.map +0 -1
  64. package/components/DevicesPicker/hooks/useDevicesSelection.js +0 -26
  65. package/components/DevicesPicker/hooks/usePanelColumns.d.ts +0 -12
  66. package/components/DevicesPicker/hooks/usePanelColumns.d.ts.map +0 -1
  67. package/components/DevicesPicker/hooks/usePanelColumns.js +0 -30
  68. package/components/DevicesPicker/index.d.ts +0 -11
  69. package/components/DevicesPicker/index.d.ts.map +0 -1
  70. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts +0 -77
  71. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts.map +0 -1
  72. package/components/DevicesPicker/slots/DevicesPickerEnum.js +0 -4
  73. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +0 -112
  74. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts.map +0 -1
  75. package/components/DevicesPicker/slots/DevicesPickerSlots.js +0 -163
  76. package/components/DevicesPicker/slots/index.d.ts +0 -3
  77. package/components/DevicesPicker/slots/index.d.ts.map +0 -1
  78. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts +0 -8
  79. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +0 -1
  80. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +0 -77
  81. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts +0 -3
  82. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts.map +0 -1
  83. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts +0 -42
  84. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts.map +0 -1
  85. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts +0 -11
  86. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +0 -1
  87. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +0 -141
  88. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts +0 -3
  89. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts.map +0 -1
  90. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts +0 -68
  91. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts.map +0 -1
  92. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts +0 -10
  93. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts.map +0 -1
  94. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js +0 -35
  95. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts +0 -3
  96. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts.map +0 -1
  97. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts +0 -11
  98. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts.map +0 -1
  99. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts +0 -11
  100. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts.map +0 -1
  101. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.js +0 -61
  102. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts +0 -3
  103. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts.map +0 -1
  104. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts +0 -32
  105. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts.map +0 -1
  106. package/components/DevicesPicker/types.d.ts +0 -171
  107. package/components/DevicesPicker/types.d.ts.map +0 -1
  108. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts +0 -21
  109. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts.map +0 -1
  110. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.js +0 -6
  111. package/components/hook-form/RHFDevicesPicker/index.d.ts +0 -3
  112. package/components/hook-form/RHFDevicesPicker/index.d.ts.map +0 -1
  113. package/components/hook-form/RHFDevicesPicker/types.d.ts +0 -8
  114. package/components/hook-form/RHFDevicesPicker/types.d.ts.map +0 -1
  115. package/components/hook-form/renderAsRegistry.d.ts +0 -33
  116. package/components/hook-form/renderAsRegistry.d.ts.map +0 -1
  117. package/components/hook-form/renderAsRegistry.js +0 -7
  118. package/helpers/resolveDeviceIconSrc/constants.d.ts +0 -14
  119. package/helpers/resolveDeviceIconSrc/constants.d.ts.map +0 -1
  120. package/helpers/resolveDeviceIconSrc/constants.js +0 -6
  121. package/helpers/resolveDeviceIconSrc/index.d.ts +0 -3
  122. package/helpers/resolveDeviceIconSrc/index.d.ts.map +0 -1
  123. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts +0 -14
  124. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts.map +0 -1
  125. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js +0 -8
  126. package/helpers/resolveDeviceLabels/index.d.ts +0 -3
  127. package/helpers/resolveDeviceLabels/index.d.ts.map +0 -1
  128. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts +0 -22
  129. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts.map +0 -1
  130. package/helpers/resolveDeviceLabels/resolveDeviceLabels.js +0 -10
  131. package/helpers/resolveDeviceLabels/types.d.ts +0 -19
  132. package/helpers/resolveDeviceLabels/types.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.68.0",
3
+ "version": "9.69.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,22 +53,22 @@
53
53
  "@hookform/resolvers": "2.9.11",
54
54
  "nprogress": "0.2.0",
55
55
  "react-transition-group": "4.4.5",
56
+ "react-color": "2.19.3",
57
+ "react-draggable": "4.5.0",
56
58
  "@tanstack/react-virtual": "3.13.23",
57
59
  "@mui/x-date-pickers": "6.20.2",
58
60
  "react-spinners": "0.13.8",
59
- "react-draggable": "4.5.0",
60
- "react-color": "2.19.3",
61
- "react-rnd": "10.5.2",
62
61
  "react-dropzone": "14.4.1",
63
- "simplebar-react": "3.2.6",
62
+ "react-rnd": "10.5.2",
64
63
  "chart.js": "4.5.1",
65
64
  "chartjs-chart-error-bars": "4.4.5",
66
65
  "qrcode.react": "3.2.0",
66
+ "simplebar-react": "3.2.6",
67
+ "react-resizable-panels": "2.1.9",
68
+ "react-simple-code-editor": "0.14.1",
67
69
  "react-data-grid": "7.0.0-beta.47",
68
70
  "react-dnd": "16.0.1",
69
71
  "react-dnd-html5-backend": "16.0.1",
70
- "react-resizable-panels": "2.1.9",
71
- "react-simple-code-editor": "0.14.1",
72
72
  "date-fns": "2.30.0",
73
73
  "react-resizable": "3.1.3",
74
74
  "react-window": "1.8.11"
@@ -1,14 +0,0 @@
1
- import { DevicePickerOption, DevicesPickerProps } from './types';
2
- /**
3
- * DevicesPicker: device selector with a card-based trigger and a grouped
4
- * selection panel.
5
- *
6
- * It reuses the AutocompleteAsync engine (same reducer and `useFetchOptions`)
7
- * so the fetch contract — lazy first load, param changes, abort — behaves
8
- * exactly like the async autocomplete, while rendering its own UI.
9
- *
10
- * The trigger hugs its content: it shows the cards that fit and reports the
11
- * rest through the +N toggle instead of clipping them silently.
12
- */
13
- export declare function DevicesPicker<T extends DevicePickerOption = DevicePickerOption>(props: DevicesPickerProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
14
- //# sourceMappingURL=DevicesPicker.d.ts.map
@@ -1 +0,0 @@
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,344 +0,0 @@
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
- const {
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
- getDeviceIcon: S,
52
- onChangeFilterParms: z
53
- } = re;
54
- if (l && z)
55
- throw new Error(
56
- "multiple cannot be enabled when onChangeFilterParms is defined; define the filter in parms if needed."
57
- );
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
- onClose: g,
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),
76
- [D]
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
- enableIntersectionObserver: !1
86
- }),
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
- }), {
102
- visibleFilters: T,
103
- overflowFilters: y,
104
- measuringFilters: v,
105
- leftoverWidth: j,
106
- parentRef: Pe,
107
- containerRef: Re,
108
- setChipRef: U,
109
- setMoreChipRef: Te,
110
- setActionsRef: ye
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;
113
- return {
114
- visibleCards: T,
115
- partialCard: q,
116
- hiddenCards: y.filter((h) => h.id !== q?.id)
117
- };
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;
122
- });
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,
129
- panelOpen: d,
130
- listOpen: B,
131
- error: ge,
132
- disabled: x,
133
- loading: Z,
134
- hasSelection: f.length > 0
135
- };
136
- return k ? /* @__PURE__ */ o(
137
- ee,
138
- {
139
- ownerState: u,
140
- className: Q(F, t.root),
141
- "data-testid": M,
142
- children: /* @__PURE__ */ o(io, { size: s })
143
- }
144
- ) : /* @__PURE__ */ C(Le, { children: [
145
- /* @__PURE__ */ o(
146
- ee,
147
- {
148
- ref: Pe,
149
- ownerState: u,
150
- className: Q(F, t.root),
151
- "data-testid": M,
152
- children: /* @__PURE__ */ C(
153
- Je,
154
- {
155
- ref: w,
156
- ownerState: u,
157
- className: t.trigger,
158
- onClick: Y,
159
- children: [
160
- f.length === 0 ? /* @__PURE__ */ C(
161
- Qe,
162
- {
163
- className: t.placeholderContainer,
164
- children: [
165
- /* @__PURE__ */ o(Xe, { className: t.placeholderIcon, children: /* @__PURE__ */ o(Me, { src: /* @__PURE__ */ o(We, {}), color: "text.secondary" }) }),
166
- /* @__PURE__ */ o(
167
- eo,
168
- {
169
- className: t.placeholder,
170
- variant: "bodyStandard",
171
- color: "text.disabled",
172
- children: De ?? b(_.label_placeholder)
173
- }
174
- )
175
- ]
176
- }
177
- ) : /* @__PURE__ */ C(
178
- oo,
179
- {
180
- ref: Re,
181
- className: t.cardsContainer,
182
- children: [
183
- Ee.map((e) => /* @__PURE__ */ o(
184
- oe,
185
- {
186
- ref: (r) => U(e.id, r),
187
- className: t.deviceCardWrapper,
188
- children: /* @__PURE__ */ o(
189
- A,
190
- {
191
- deviceId: e.id,
192
- name: c(e),
193
- subtitle: m(e),
194
- icon: p(e),
195
- disableRemove: !l,
196
- onRemove: () => R(e),
197
- onClick: N,
198
- dataTestid: `${t.deviceCard}-${e.id}`
199
- }
200
- )
201
- },
202
- e.id
203
- )),
204
- n && // No lleva ref de medición a propósito: su ancho natural ya se
205
- // cacheó en la pasada inicial y aquí sale encogido, así que
206
- // registrarlo corrompería el cálculo del overflow.
207
- /* @__PURE__ */ o(
208
- to,
209
- {
210
- className: t.partialCardWrapper,
211
- children: /* @__PURE__ */ o(
212
- A,
213
- {
214
- deviceId: n.id,
215
- name: c(n),
216
- subtitle: m(n),
217
- icon: p(n),
218
- disableRemove: !l,
219
- onRemove: () => R(n),
220
- onClick: N,
221
- dataTestid: `${t.deviceCard}-${n.id}`
222
- }
223
- )
224
- },
225
- n.id
226
- )
227
- ]
228
- }
229
- ),
230
- v.length > 0 && /* @__PURE__ */ o(
231
- ro,
232
- {
233
- className: t.measuringLayer,
234
- "aria-hidden": !0,
235
- children: v.map((e) => /* @__PURE__ */ o(
236
- oe,
237
- {
238
- ref: (r) => U(e.id, r),
239
- className: t.deviceCardWrapper,
240
- children: /* @__PURE__ */ o(
241
- A,
242
- {
243
- deviceId: e.id,
244
- name: c(e),
245
- subtitle: m(e),
246
- icon: p(e),
247
- disableRemove: !l
248
- }
249
- )
250
- },
251
- e.id
252
- ))
253
- }
254
- ),
255
- fe && H.length > 0 && /* @__PURE__ */ o(
256
- no,
257
- {
258
- ref: Te,
259
- ownerState: u,
260
- className: t.overflowToggle,
261
- dataTestId: t.overflowToggle,
262
- variant: "contained",
263
- color: "default",
264
- size: s,
265
- label: `+${H.length}`,
266
- onToggle: N
267
- }
268
- ),
269
- /* @__PURE__ */ o(
270
- ao,
271
- {
272
- ref: ye,
273
- className: t.chevronButton,
274
- dataTestId: t.chevronButton,
275
- icon: d ? /* @__PURE__ */ o(ze, {}) : /* @__PURE__ */ o($e, {}),
276
- variant: "text",
277
- size: s,
278
- disabled: x || Z,
279
- "aria-label": b(_.label_open_panel),
280
- onClick: Y
281
- }
282
- )
283
- ]
284
- }
285
- )
286
- }
287
- ),
288
- /* @__PURE__ */ o(
289
- te,
290
- {
291
- open: d,
292
- anchorEl: w.current,
293
- onClose: E,
294
- arrowType: "no-arrow",
295
- anchorOrigin: { vertical: "bottom", horizontal: "right" },
296
- transformOrigin: { vertical: "top", horizontal: "right" },
297
- children: /* @__PURE__ */ o(
298
- lo,
299
- {
300
- groups: we,
301
- items: Oe,
302
- selectedIds: Se,
303
- onSelectionChange: be,
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
315
- }
316
- )
317
- }
318
- ),
319
- /* @__PURE__ */ o(
320
- te,
321
- {
322
- open: B,
323
- anchorEl: w.current,
324
- onClose: Ne,
325
- arrowType: "no-arrow",
326
- anchorOrigin: { vertical: "bottom", horizontal: "right" },
327
- transformOrigin: { vertical: -3, horizontal: "right" },
328
- children: /* @__PURE__ */ o(
329
- so,
330
- {
331
- devices: f,
332
- getOptionLabel: c,
333
- getDeviceSubtitle: m,
334
- getDeviceIcon: p,
335
- onRemove: R
336
- }
337
- )
338
- }
339
- )
340
- ] });
341
- }
342
- export {
343
- xo as DevicesPicker
344
- };
@@ -1,3 +0,0 @@
1
- import { DevicesPickerStyles } from './types';
2
- export declare const devicesPickerStyles: DevicesPickerStyles;
3
- //# sourceMappingURL=DevicesPicker.styles.d.ts.map
@@ -1 +0,0 @@
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"}