@m4l/components 9.54.2 → 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 (155) 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 +344 -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 +510 -0
  27. package/components/DevicesPicker/constants.d.ts +85 -0
  28. package/components/DevicesPicker/constants.d.ts.map +1 -0
  29. package/components/DevicesPicker/constants.js +41 -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 +141 -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 +171 -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 +19 -0
  133. package/helpers/resolveDeviceLabels/types.d.ts.map +1 -0
  134. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts +14 -0
  135. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.d.ts.map +1 -0
  136. package/hooks/useChipsOverflow/helpers/calculateLeftoverWidth.js +7 -0
  137. package/hooks/useChipsOverflow/helpers/calculateVisibleChipsCount.d.ts.map +1 -0
  138. package/hooks/useChipsOverflow/helpers/index.d.ts +3 -0
  139. package/hooks/useChipsOverflow/helpers/index.d.ts.map +1 -0
  140. package/hooks/useChipsOverflow/index.d.ts +3 -0
  141. package/hooks/useChipsOverflow/index.d.ts.map +1 -0
  142. package/hooks/useChipsOverflow/types.d.ts +24 -0
  143. package/hooks/useChipsOverflow/types.d.ts.map +1 -0
  144. package/{components/DynamicFilter/hooks → hooks/useChipsOverflow}/useChipsOverflow.d.ts +7 -5
  145. package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +1 -0
  146. package/hooks/useChipsOverflow/useChipsOverflow.js +110 -0
  147. package/index.d.ts +2 -0
  148. package/index.d.ts.map +1 -1
  149. package/index.js +803 -757
  150. package/package.json +10 -10
  151. package/components/DynamicFilter/helpers/calculateVisibleChipsCount.d.ts.map +0 -1
  152. package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +0 -1
  153. package/components/DynamicFilter/hooks/useChipsOverflow.js +0 -83
  154. /package/{components/DynamicFilter → hooks/useChipsOverflow}/helpers/calculateVisibleChipsCount.d.ts +0 -0
  155. /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,CAA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E,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"}
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;IA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AAO,CAAC;IACtE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAE,CAAC;IAC3C;;OAEG;IACH,OAAO,CAAC,EAAE,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":"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"}
@@ -0,0 +1,344 @@
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
+ };
@@ -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":"AAgBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,mBAAmB,EAAE,mBAufjC,CAAC"}