@m4l/components 9.54.1 → 9.54.2-beta-m4lcom-764-device-picker.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 (152) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/CheckableList/CheckableList.d.ts.map +1 -1
  3. package/components/CheckableList/CheckableList.js +163 -143
  4. package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
  5. package/components/CheckableList/CheckableList.styles.js +20 -8
  6. package/components/CheckableList/constants.d.ts +1 -1
  7. package/components/CheckableList/constants.d.ts.map +1 -1
  8. package/components/CheckableList/hooks/useCheckableListRender.d.ts +6 -1
  9. package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
  10. package/components/CheckableList/hooks/useCheckableListRender.js +126 -113
  11. package/components/CheckableList/slots/slots.d.ts +1 -0
  12. package/components/CheckableList/slots/slots.d.ts.map +1 -1
  13. package/components/CheckableList/slots/slots.js +1 -1
  14. package/components/CheckableList/slots/styled.d.ts +3 -0
  15. package/components/CheckableList/slots/styled.d.ts.map +1 -1
  16. package/components/CheckableList/slots/styled.js +56 -51
  17. package/components/CheckableList/types.d.ts +20 -0
  18. package/components/CheckableList/types.d.ts.map +1 -1
  19. package/components/ColorPicker/ColorPicker.js +2 -2
  20. package/components/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  21. package/components/DevicesPicker/DevicesPicker.d.ts +14 -0
  22. package/components/DevicesPicker/DevicesPicker.d.ts.map +1 -0
  23. package/components/DevicesPicker/DevicesPicker.js +343 -0
  24. package/components/DevicesPicker/DevicesPicker.styles.d.ts +3 -0
  25. package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +1 -0
  26. package/components/DevicesPicker/DevicesPicker.styles.js +494 -0
  27. package/components/DevicesPicker/constants.d.ts +74 -0
  28. package/components/DevicesPicker/constants.d.ts.map +1 -0
  29. package/components/DevicesPicker/constants.js +39 -0
  30. package/components/DevicesPicker/dictionary.d.ts +19 -0
  31. package/components/DevicesPicker/dictionary.d.ts.map +1 -0
  32. package/components/DevicesPicker/dictionary.js +20 -0
  33. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts +11 -0
  34. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts.map +1 -0
  35. package/components/DevicesPicker/helpers/resolveDeviceGroup.js +14 -0
  36. package/components/DevicesPicker/helpers/toDeviceArray.d.ts +7 -0
  37. package/components/DevicesPicker/helpers/toDeviceArray.d.ts.map +1 -0
  38. package/components/DevicesPicker/helpers/toDeviceArray.js +6 -0
  39. package/components/DevicesPicker/hooks/types.d.ts +176 -0
  40. package/components/DevicesPicker/hooks/types.d.ts.map +1 -0
  41. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts +13 -0
  42. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts.map +1 -0
  43. package/components/DevicesPicker/hooks/useDeviceGroups.js +51 -0
  44. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts +13 -0
  45. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts.map +1 -0
  46. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.js +71 -0
  47. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts +12 -0
  48. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts.map +1 -0
  49. package/components/DevicesPicker/hooks/useDevicesSelection.js +26 -0
  50. package/components/DevicesPicker/hooks/usePanelColumns.d.ts +12 -0
  51. package/components/DevicesPicker/hooks/usePanelColumns.d.ts.map +1 -0
  52. package/components/DevicesPicker/hooks/usePanelColumns.js +30 -0
  53. package/components/DevicesPicker/index.d.ts +11 -0
  54. package/components/DevicesPicker/index.d.ts.map +1 -0
  55. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts +77 -0
  56. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts.map +1 -0
  57. package/components/DevicesPicker/slots/DevicesPickerEnum.js +4 -0
  58. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +112 -0
  59. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts.map +1 -0
  60. package/components/DevicesPicker/slots/DevicesPickerSlots.js +163 -0
  61. package/components/DevicesPicker/slots/index.d.ts +3 -0
  62. package/components/DevicesPicker/slots/index.d.ts.map +1 -0
  63. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts +8 -0
  64. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +1 -0
  65. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +77 -0
  66. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts +3 -0
  67. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts.map +1 -0
  68. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts +42 -0
  69. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts.map +1 -0
  70. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts +11 -0
  71. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +1 -0
  72. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +133 -0
  73. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts +3 -0
  74. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts.map +1 -0
  75. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts +68 -0
  76. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts.map +1 -0
  77. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts +10 -0
  78. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts.map +1 -0
  79. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js +35 -0
  80. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts +3 -0
  81. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts.map +1 -0
  82. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts +11 -0
  83. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts.map +1 -0
  84. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts +11 -0
  85. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts.map +1 -0
  86. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.js +61 -0
  87. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts +3 -0
  88. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts.map +1 -0
  89. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts +32 -0
  90. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts.map +1 -0
  91. package/components/DevicesPicker/types.d.ts +170 -0
  92. package/components/DevicesPicker/types.d.ts.map +1 -0
  93. package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
  94. package/components/DynamicFilter/DynamicFilter.styles.js +41 -33
  95. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
  96. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
  97. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.d.ts.map +1 -1
  98. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +24 -24
  99. package/components/DynamicFilter/types.d.ts +9 -1
  100. package/components/DynamicFilter/types.d.ts.map +1 -1
  101. package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
  102. package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +1 -1
  103. package/components/extended/mui/CheckBox/CheckBox.js +7 -7
  104. package/components/extended/mui/Select/Select.js +6 -6
  105. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts +21 -0
  106. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts.map +1 -0
  107. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.js +6 -0
  108. package/components/hook-form/RHFDevicesPicker/index.d.ts +3 -0
  109. package/components/hook-form/RHFDevicesPicker/index.d.ts.map +1 -0
  110. package/components/hook-form/RHFDevicesPicker/types.d.ts +8 -0
  111. package/components/hook-form/RHFDevicesPicker/types.d.ts.map +1 -0
  112. package/components/hook-form/index.d.ts +3 -0
  113. package/components/hook-form/index.d.ts.map +1 -1
  114. package/components/hook-form/renderAsRegistry.d.ts +33 -0
  115. package/components/hook-form/renderAsRegistry.d.ts.map +1 -0
  116. package/components/hook-form/renderAsRegistry.js +7 -0
  117. package/components/index.d.ts +1 -0
  118. package/components/index.d.ts.map +1 -1
  119. package/helpers/resolveDeviceIconSrc/constants.d.ts +14 -0
  120. package/helpers/resolveDeviceIconSrc/constants.d.ts.map +1 -0
  121. package/helpers/resolveDeviceIconSrc/constants.js +6 -0
  122. package/helpers/resolveDeviceIconSrc/index.d.ts +3 -0
  123. package/helpers/resolveDeviceIconSrc/index.d.ts.map +1 -0
  124. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts +14 -0
  125. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts.map +1 -0
  126. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js +8 -0
  127. package/helpers/resolveDeviceLabels/index.d.ts +3 -0
  128. package/helpers/resolveDeviceLabels/index.d.ts.map +1 -0
  129. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts +22 -0
  130. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts.map +1 -0
  131. package/helpers/resolveDeviceLabels/resolveDeviceLabels.js +10 -0
  132. package/helpers/resolveDeviceLabels/types.d.ts +18 -0
  133. package/helpers/resolveDeviceLabels/types.d.ts.map +1 -0
  134. package/hooks/useChipsOverflow/helpers/calculateVisibleChipsCount.d.ts.map +1 -0
  135. package/hooks/useChipsOverflow/helpers/index.d.ts +2 -0
  136. package/hooks/useChipsOverflow/helpers/index.d.ts.map +1 -0
  137. package/hooks/useChipsOverflow/index.d.ts +3 -0
  138. package/hooks/useChipsOverflow/index.d.ts.map +1 -0
  139. package/hooks/useChipsOverflow/types.d.ts +24 -0
  140. package/hooks/useChipsOverflow/types.d.ts.map +1 -0
  141. package/{components/DynamicFilter/hooks → hooks/useChipsOverflow}/useChipsOverflow.d.ts +6 -5
  142. package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +1 -0
  143. package/hooks/useChipsOverflow/useChipsOverflow.js +108 -0
  144. package/index.d.ts +2 -0
  145. package/index.d.ts.map +1 -1
  146. package/index.js +804 -760
  147. package/package.json +9 -9
  148. package/components/DynamicFilter/helpers/calculateVisibleChipsCount.d.ts.map +0 -1
  149. package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +0 -1
  150. package/components/DynamicFilter/hooks/useChipsOverflow.js +0 -83
  151. /package/{components/DynamicFilter → hooks/useChipsOverflow}/helpers/calculateVisibleChipsCount.d.ts +0 -0
  152. /package/{components/DynamicFilter → hooks/useChipsOverflow}/helpers/calculateVisibleChipsCount.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MA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;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CACtD,sBAAsB,EACtB,OAAO,4BAA4B,EACnC,KAAK,CACN,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/CheckableList/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,C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AE,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CACtD,sBAAsB,EACtB,OAAO,4BAA4B,EACnC,KAAK,CACN,CAAC"}
@@ -4,11 +4,11 @@ import { clsx as Y } from "clsx";
4
4
  import { useComponentSize as $ } from "../../hooks/useComponentSize/index.js";
5
5
  import { getPropDataTestId as c } from "../../test/getNameDataTestId.js";
6
6
  import { getComponentClasses as j } from "../../utils/getComponentSlotRoot.js";
7
- import { COLOR_PICKER_DEFAULT_EMPTY_VALUE_LABEL as G, COLOR_PICKER_DEFAULT_QUICK_COLORS as q, COLOR_PICKER_FIELD_TRIGGER_OPEN_KEYS as H, COLOR_PICKER_KEY_COMPONENT as t } from "./constants.js";
7
+ import { COLOR_PICKER_DEFAULT_EMPTY_VALUE_LABEL as G, COLOR_PICKER_KEY_COMPONENT as t, COLOR_PICKER_DEFAULT_QUICK_COLORS as q, COLOR_PICKER_FIELD_TRIGGER_OPEN_KEYS as H } from "./constants.js";
8
+ import { ColorPickerSlots as l } from "./slots/ColorPickerEnum.js";
8
9
  import { useColorPicker as J } from "./hooks/useColorPicker/useColorPicker.js";
9
10
  import { RootStyled as W, TextFieldTriggerStyled as X, QuickColorsStyled as Z, IconButtonStyled as b, PopoverStyled as ee, SketchPickerStyled as oe } from "./slots/ColorPickerSlots.js";
10
11
  import { Color as O } from "../Color/Color.js";
11
- import { ColorPickerSlots as l } from "./slots/ColorPickerEnum.js";
12
12
  import { ActionsContainer as re } from "../CommonActions/components/ActionsContainer/ActionsContainer.js";
13
13
  import { ActionCancel as te } from "../CommonActions/components/ActionCancel/ActionCancel.js";
14
14
  import { ActionIntro as le } from "../CommonActions/components/ActionIntro/ActionIntro.js";
@@ -6,7 +6,7 @@ import { forwardRef as we, useRef as h } from "react";
6
6
  import { useForkRef as V } from "@mui/material/utils";
7
7
  import { DateRangeCalendarPicker as Ue } from "../DateRangeCalendarPicker/DateRangeCalendarPicker.js";
8
8
  import { TextField as $e } from "../extended/mui/TextField/TextField.js";
9
- import { DATE_TIME_RANGE_PICKER_RANGE_SEPARATOR as w, DATE_TIME_RANGE_PICKER_KEY_COMPONENT as t, DATE_TIME_RANGE_PICKER_OPEN_BUTTON_LABEL as ze, DATE_TIME_RANGE_PICKER_CANCEL_LABEL as He, DATE_TIME_RANGE_PICKER_CONFIRM_LABEL as je, DATE_TIME_RANGE_PICKER_ENTER_SHORTCUT_IGNORE_TARGET_SELECTOR as Ye, DATE_TIME_RANGE_PICKER_ENTER_SHORTCUT_CONFIRM_TARGET_SELECTOR as Je } from "./constants.js";
9
+ import { DATE_TIME_RANGE_PICKER_KEY_COMPONENT as t, DATE_TIME_RANGE_PICKER_RANGE_SEPARATOR as w, DATE_TIME_RANGE_PICKER_OPEN_BUTTON_LABEL as ze, DATE_TIME_RANGE_PICKER_CANCEL_LABEL as He, DATE_TIME_RANGE_PICKER_CONFIRM_LABEL as je, DATE_TIME_RANGE_PICKER_ENTER_SHORTCUT_IGNORE_TARGET_SELECTOR as Ye, DATE_TIME_RANGE_PICKER_ENTER_SHORTCUT_CONFIRM_TARGET_SELECTOR as Je } from "./constants.js";
10
10
  import { resolveDateTimeRangePickerDictionaryLabel as C, DICTIONARY as R } from "./dictionary.js";
11
11
  import { DateTimeRangePickerSlots as o } from "./slots/DateTimeRangePickerEnum.js";
12
12
  import { getPropDataTestId as a } from "../../test/getNameDataTestId.js";
@@ -0,0 +1,14 @@
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
@@ -0,0 +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"}
@@ -0,0 +1,343 @@
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) {
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,
51
+ getDeviceIcon: S,
52
+ onChangeFilterParms: M
53
+ } = ee;
54
+ if (s && M)
55
+ throw new Error(
56
+ "multiple cannot be enabled when onChangeFilterParms is defined; define the filter in parms if needed."
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,
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),
79
+ [D]
80
+ ), h = l(
81
+ (e) => S ? S(e) : Ee(ao, {
82
+ src: Ue(z, e.deviceIcon?.iconId),
83
+ width: H,
84
+ height: H,
85
+ enableIntersectionObserver: !1
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
101
+ }), {
102
+ visibleFilters: j,
103
+ overflowFilters: T,
104
+ measuringFilters: u,
105
+ parentRef: Ie,
106
+ containerRef: we,
107
+ setChipRef: K,
108
+ setMoreChipRef: Oe,
109
+ 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));
112
+ return {
113
+ visibleCards: j,
114
+ partialCard: t,
115
+ hiddenCards: T.filter((a) => a.id !== t?.id)
116
+ };
117
+ }, [j, T, u]), V = l((e) => {
118
+ e?.stopPropagation(), O(!1), W((t) => {
119
+ const a = !t;
120
+ return a ? B() : g(), a;
121
+ });
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,
128
+ panelOpen: d,
129
+ listOpen: $,
130
+ error: me,
131
+ disabled: _,
132
+ loading: Y,
133
+ hasSelection: f.length > 0
134
+ };
135
+ return x ? /* @__PURE__ */ o(
136
+ J,
137
+ {
138
+ ownerState: v,
139
+ className: q(k, r.root),
140
+ "data-testid": F,
141
+ children: /* @__PURE__ */ o(ro, { size: c })
142
+ }
143
+ ) : /* @__PURE__ */ C(Pe, { children: [
144
+ /* @__PURE__ */ o(
145
+ J,
146
+ {
147
+ ref: Ie,
148
+ ownerState: v,
149
+ className: q(k, r.root),
150
+ "data-testid": F,
151
+ children: /* @__PURE__ */ C(
152
+ Ye,
153
+ {
154
+ ref: w,
155
+ ownerState: v,
156
+ className: r.trigger,
157
+ onClick: V,
158
+ children: [
159
+ f.length === 0 ? /* @__PURE__ */ C(
160
+ Ze,
161
+ {
162
+ className: r.placeholderContainer,
163
+ children: [
164
+ /* @__PURE__ */ o(qe, { className: r.placeholderIcon, children: /* @__PURE__ */ o(ke, { src: /* @__PURE__ */ o(Fe, {}), color: "text.secondary" }) }),
165
+ /* @__PURE__ */ o(
166
+ He,
167
+ {
168
+ className: r.placeholder,
169
+ variant: "bodyStandard",
170
+ color: "text.disabled",
171
+ children: ue ?? I(E.label_placeholder)
172
+ }
173
+ )
174
+ ]
175
+ }
176
+ ) : /* @__PURE__ */ C(
177
+ Je,
178
+ {
179
+ ref: we,
180
+ className: r.cardsContainer,
181
+ children: [
182
+ Re.map((e) => /* @__PURE__ */ o(
183
+ Q,
184
+ {
185
+ ref: (t) => K(e.id, t),
186
+ className: r.deviceCardWrapper,
187
+ children: /* @__PURE__ */ o(
188
+ L,
189
+ {
190
+ deviceId: e.id,
191
+ name: m(e),
192
+ subtitle: p(e),
193
+ icon: h(e),
194
+ disableRemove: !s,
195
+ onRemove: () => R(e),
196
+ onClick: N,
197
+ dataTestid: `${r.deviceCard}-${e.id}`
198
+ }
199
+ )
200
+ },
201
+ e.id
202
+ )),
203
+ n && // No lleva ref de medición a propósito: su ancho natural ya se
204
+ // cacheó en la pasada inicial y aquí sale encogido, así que
205
+ // registrarlo corrompería el cálculo del overflow.
206
+ /* @__PURE__ */ o(
207
+ Qe,
208
+ {
209
+ className: r.partialCardWrapper,
210
+ children: /* @__PURE__ */ o(
211
+ L,
212
+ {
213
+ deviceId: n.id,
214
+ name: m(n),
215
+ subtitle: p(n),
216
+ icon: h(n),
217
+ disableRemove: !s,
218
+ onRemove: () => R(n),
219
+ onClick: N,
220
+ dataTestid: `${r.deviceCard}-${n.id}`
221
+ }
222
+ )
223
+ },
224
+ n.id
225
+ )
226
+ ]
227
+ }
228
+ ),
229
+ u.length > 0 && /* @__PURE__ */ o(
230
+ Xe,
231
+ {
232
+ className: r.measuringLayer,
233
+ "aria-hidden": !0,
234
+ children: u.map((e) => /* @__PURE__ */ o(
235
+ Q,
236
+ {
237
+ ref: (t) => K(e.id, t),
238
+ className: r.deviceCardWrapper,
239
+ children: /* @__PURE__ */ o(
240
+ L,
241
+ {
242
+ deviceId: e.id,
243
+ name: m(e),
244
+ subtitle: p(e),
245
+ icon: h(e),
246
+ disableRemove: !s
247
+ }
248
+ )
249
+ },
250
+ e.id
251
+ ))
252
+ }
253
+ ),
254
+ pe && U.length > 0 && /* @__PURE__ */ o(
255
+ eo,
256
+ {
257
+ ref: Oe,
258
+ ownerState: v,
259
+ className: r.overflowToggle,
260
+ dataTestId: r.overflowToggle,
261
+ variant: "contained",
262
+ color: "default",
263
+ size: c,
264
+ label: `+${U.length}`,
265
+ onToggle: N
266
+ }
267
+ ),
268
+ /* @__PURE__ */ o(
269
+ oo,
270
+ {
271
+ ref: ye,
272
+ className: r.chevronButton,
273
+ dataTestId: r.chevronButton,
274
+ icon: d ? /* @__PURE__ */ o(Ae, {}) : /* @__PURE__ */ o(Me, {}),
275
+ variant: "text",
276
+ size: c,
277
+ disabled: _ || Y,
278
+ "aria-label": I(E.label_open_panel),
279
+ onClick: V
280
+ }
281
+ )
282
+ ]
283
+ }
284
+ )
285
+ }
286
+ ),
287
+ /* @__PURE__ */ o(
288
+ X,
289
+ {
290
+ open: d,
291
+ anchorEl: w.current,
292
+ onClose: P,
293
+ arrowType: "no-arrow",
294
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
295
+ transformOrigin: { vertical: "top", horizontal: "right" },
296
+ children: /* @__PURE__ */ o(
297
+ to,
298
+ {
299
+ groups: De,
300
+ items: Se,
301
+ selectedIds: Ce,
302
+ 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
314
+ }
315
+ )
316
+ }
317
+ ),
318
+ /* @__PURE__ */ o(
319
+ X,
320
+ {
321
+ open: $,
322
+ anchorEl: w.current,
323
+ onClose: Te,
324
+ arrowType: "no-arrow",
325
+ anchorOrigin: { vertical: "bottom", horizontal: "right" },
326
+ transformOrigin: { vertical: -3, horizontal: "right" },
327
+ children: /* @__PURE__ */ o(
328
+ no,
329
+ {
330
+ devices: f,
331
+ getOptionLabel: m,
332
+ getDeviceSubtitle: p,
333
+ getDeviceIcon: h,
334
+ onRemove: R
335
+ }
336
+ )
337
+ }
338
+ )
339
+ ] });
340
+ }
341
+ export {
342
+ Eo as DevicesPicker
343
+ };
@@ -0,0 +1,3 @@
1
+ import { DevicesPickerStyles } from './types';
2
+ export declare const devicesPickerStyles: DevicesPickerStyles;
3
+ //# sourceMappingURL=DevicesPicker.styles.d.ts.map
@@ -0,0 +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,mBAuejC,CAAC"}