@m4l/components 9.54.2-beta-m4lcom-764-device-picker.0 → 9.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +0 -8
- package/components/CheckableList/CheckableList.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.js +143 -163
- package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
- package/components/CheckableList/CheckableList.styles.js +8 -20
- package/components/CheckableList/constants.d.ts +1 -1
- package/components/CheckableList/constants.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.d.ts +1 -6
- package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
- package/components/CheckableList/hooks/useCheckableListRender.js +113 -126
- package/components/CheckableList/slots/slots.d.ts +0 -1
- package/components/CheckableList/slots/slots.d.ts.map +1 -1
- package/components/CheckableList/slots/slots.js +1 -1
- package/components/CheckableList/slots/styled.d.ts +0 -3
- package/components/CheckableList/slots/styled.d.ts.map +1 -1
- package/components/CheckableList/slots/styled.js +51 -56
- package/components/CheckableList/types.d.ts +0 -20
- package/components/CheckableList/types.d.ts.map +1 -1
- package/components/ColorPicker/ColorPicker.js +2 -2
- package/components/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +33 -41
- package/components/DynamicFilter/helpers/calculateVisibleChipsCount.d.ts.map +1 -0
- package/{hooks/useChipsOverflow → components/DynamicFilter/hooks}/useChipsOverflow.d.ts +5 -6
- package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +1 -0
- package/components/DynamicFilter/hooks/useChipsOverflow.js +83 -0
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +24 -24
- package/components/DynamicFilter/types.d.ts +1 -9
- package/components/DynamicFilter/types.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +1 -1
- package/components/datagrids/views/CardsView/CardsView.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/Autocomplete.js +52 -50
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.d.ts.map +1 -1
- package/components/extended/mui/Autocomplete/hooks/useAutocomplete/useAutocomplete.js +58 -60
- package/components/extended/mui/CheckBox/CheckBox.js +7 -7
- package/components/extended/mui/Select/Select.js +6 -6
- package/components/hook-form/index.d.ts +0 -3
- package/components/hook-form/index.d.ts.map +1 -1
- package/components/index.d.ts +0 -1
- package/components/index.d.ts.map +1 -1
- package/index.d.ts +0 -2
- package/index.d.ts.map +1 -1
- package/index.js +760 -804
- package/package.json +8 -8
- package/components/DevicesPicker/DevicesPicker.d.ts +0 -14
- package/components/DevicesPicker/DevicesPicker.d.ts.map +0 -1
- package/components/DevicesPicker/DevicesPicker.js +0 -343
- package/components/DevicesPicker/DevicesPicker.styles.d.ts +0 -3
- package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +0 -1
- package/components/DevicesPicker/DevicesPicker.styles.js +0 -494
- package/components/DevicesPicker/constants.d.ts +0 -74
- package/components/DevicesPicker/constants.d.ts.map +0 -1
- package/components/DevicesPicker/constants.js +0 -39
- package/components/DevicesPicker/dictionary.d.ts +0 -19
- package/components/DevicesPicker/dictionary.d.ts.map +0 -1
- package/components/DevicesPicker/dictionary.js +0 -20
- package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts +0 -11
- package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts.map +0 -1
- package/components/DevicesPicker/helpers/resolveDeviceGroup.js +0 -14
- package/components/DevicesPicker/helpers/toDeviceArray.d.ts +0 -7
- package/components/DevicesPicker/helpers/toDeviceArray.d.ts.map +0 -1
- package/components/DevicesPicker/helpers/toDeviceArray.js +0 -6
- package/components/DevicesPicker/hooks/types.d.ts +0 -176
- package/components/DevicesPicker/hooks/types.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDeviceGroups.d.ts +0 -13
- package/components/DevicesPicker/hooks/useDeviceGroups.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDeviceGroups.js +0 -51
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts +0 -13
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDevicesAsyncOptions.js +0 -71
- package/components/DevicesPicker/hooks/useDevicesSelection.d.ts +0 -12
- package/components/DevicesPicker/hooks/useDevicesSelection.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/useDevicesSelection.js +0 -26
- package/components/DevicesPicker/hooks/usePanelColumns.d.ts +0 -12
- package/components/DevicesPicker/hooks/usePanelColumns.d.ts.map +0 -1
- package/components/DevicesPicker/hooks/usePanelColumns.js +0 -30
- package/components/DevicesPicker/index.d.ts +0 -11
- package/components/DevicesPicker/index.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts +0 -77
- package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerEnum.js +0 -4
- package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +0 -112
- package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts.map +0 -1
- package/components/DevicesPicker/slots/DevicesPickerSlots.js +0 -163
- package/components/DevicesPicker/slots/index.d.ts +0 -3
- package/components/DevicesPicker/slots/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts +0 -8
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +0 -77
- package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts +0 -42
- package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +0 -133
- package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts +0 -68
- package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts +0 -10
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js +0 -35
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts +0 -11
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.js +0 -61
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts +0 -3
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts.map +0 -1
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts +0 -32
- package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts.map +0 -1
- package/components/DevicesPicker/types.d.ts +0 -170
- package/components/DevicesPicker/types.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts +0 -21
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.js +0 -6
- package/components/hook-form/RHFDevicesPicker/index.d.ts +0 -3
- package/components/hook-form/RHFDevicesPicker/index.d.ts.map +0 -1
- package/components/hook-form/RHFDevicesPicker/types.d.ts +0 -8
- package/components/hook-form/RHFDevicesPicker/types.d.ts.map +0 -1
- package/components/hook-form/renderAsRegistry.d.ts +0 -33
- package/components/hook-form/renderAsRegistry.d.ts.map +0 -1
- package/components/hook-form/renderAsRegistry.js +0 -7
- package/helpers/resolveDeviceIconSrc/constants.d.ts +0 -14
- package/helpers/resolveDeviceIconSrc/constants.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/constants.js +0 -6
- package/helpers/resolveDeviceIconSrc/index.d.ts +0 -3
- package/helpers/resolveDeviceIconSrc/index.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts +0 -14
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts.map +0 -1
- package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js +0 -8
- package/helpers/resolveDeviceLabels/index.d.ts +0 -3
- package/helpers/resolveDeviceLabels/index.d.ts.map +0 -1
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts +0 -22
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts.map +0 -1
- package/helpers/resolveDeviceLabels/resolveDeviceLabels.js +0 -10
- package/helpers/resolveDeviceLabels/types.d.ts +0 -18
- package/helpers/resolveDeviceLabels/types.d.ts.map +0 -1
- package/hooks/useChipsOverflow/helpers/calculateVisibleChipsCount.d.ts.map +0 -1
- package/hooks/useChipsOverflow/helpers/index.d.ts +0 -2
- package/hooks/useChipsOverflow/helpers/index.d.ts.map +0 -1
- package/hooks/useChipsOverflow/index.d.ts +0 -3
- package/hooks/useChipsOverflow/index.d.ts.map +0 -1
- package/hooks/useChipsOverflow/types.d.ts +0 -24
- package/hooks/useChipsOverflow/types.d.ts.map +0 -1
- package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +0 -1
- package/hooks/useChipsOverflow/useChipsOverflow.js +0 -108
- /package/{hooks/useChipsOverflow → components/DynamicFilter}/helpers/calculateVisibleChipsCount.d.ts +0 -0
- /package/{hooks/useChipsOverflow → components/DynamicFilter}/helpers/calculateVisibleChipsCount.js +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalizes the picker value into an array.
|
|
3
|
-
* The value mirrors the AutocompleteAsync contract, so it can arrive as an
|
|
4
|
-
* array (multiple), as a single option (single) or as null/undefined.
|
|
5
|
-
*/
|
|
6
|
-
export declare function toDeviceArray<T>(value: T | T[] | null | undefined): T[];
|
|
7
|
-
//# sourceMappingURL=toDeviceArray.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toDeviceArray.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/helpers/toDeviceArray.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,EAAE,CAMvE"}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CheckableListGroup, CheckableListItem } from '../../CheckableList/types';
|
|
3
|
-
import { DevicePickerGroupRef, DevicePickerOption, DevicesPickerProps } from '../types';
|
|
4
|
-
/**
|
|
5
|
-
* Subset of the picker props that configures the async source.
|
|
6
|
-
*/
|
|
7
|
-
export type UseDevicesAsyncOptionsProps<T> = Pick<DevicesPickerProps<T>, 'endPoint' | 'timeout' | 'parms' | 'resultField' | 'isRemote' | 'isExternalUrl' | 'responseToCamelCase' | 'shouldFetch' | 'onChangeFilterParms'>;
|
|
8
|
-
/**
|
|
9
|
-
* Value returned by the async options hook.
|
|
10
|
-
*/
|
|
11
|
-
export interface UseDevicesAsyncOptionsReturn<T> {
|
|
12
|
-
/**
|
|
13
|
-
* Options loaded from the endpoint.
|
|
14
|
-
*/
|
|
15
|
-
options: T[];
|
|
16
|
-
/**
|
|
17
|
-
* A request is in flight.
|
|
18
|
-
*/
|
|
19
|
-
loading: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Notifies the engine that the panel opened, triggering the first fetch.
|
|
22
|
-
*/
|
|
23
|
-
onOpen: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Notifies the engine that the panel closed.
|
|
26
|
-
*/
|
|
27
|
-
onClose: () => void;
|
|
28
|
-
/**
|
|
29
|
-
* Forces a refetch with the current params.
|
|
30
|
-
*/
|
|
31
|
-
refresh: () => void;
|
|
32
|
-
/**
|
|
33
|
-
* Feeds the panel search box into the remote query when the consumer
|
|
34
|
-
* provided `onChangeFilterParms`.
|
|
35
|
-
*/
|
|
36
|
-
onSearchChange: (query: string) => void;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Options accepted by the device grouping hook.
|
|
40
|
-
*/
|
|
41
|
-
export interface UseDeviceGroupsProps<T = DevicePickerOption> {
|
|
42
|
-
/**
|
|
43
|
-
* Devices to organize.
|
|
44
|
-
*/
|
|
45
|
-
options: T[];
|
|
46
|
-
/**
|
|
47
|
-
* Groups the devices by department when enabled.
|
|
48
|
-
*/
|
|
49
|
-
grouped: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Resolves the group of a device; null falls into the default group.
|
|
52
|
-
*/
|
|
53
|
-
getDeviceGroup: (option: T) => DevicePickerGroupRef | null;
|
|
54
|
-
/**
|
|
55
|
-
* Label used for devices with no department.
|
|
56
|
-
*/
|
|
57
|
-
defaultGroupLabel: string;
|
|
58
|
-
/**
|
|
59
|
-
* Resolves the first line of a row.
|
|
60
|
-
*/
|
|
61
|
-
getOptionLabel: (option: T) => string;
|
|
62
|
-
/**
|
|
63
|
-
* Resolves the second line of a row.
|
|
64
|
-
*/
|
|
65
|
-
getDeviceSubtitle: (option: T) => string | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Resolves the icon of a row.
|
|
68
|
-
*/
|
|
69
|
-
getDeviceIcon?: (option: T) => ReactNode;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Value returned by the device grouping hook.
|
|
73
|
-
*/
|
|
74
|
-
export interface UseDeviceGroupsReturn {
|
|
75
|
-
/**
|
|
76
|
-
* Collapsible groups fed to the CheckableList; undefined when flat.
|
|
77
|
-
*/
|
|
78
|
-
groups?: CheckableListGroup[];
|
|
79
|
-
/**
|
|
80
|
-
* Flat items fed to the CheckableList; undefined when grouped.
|
|
81
|
-
*/
|
|
82
|
-
items?: CheckableListItem[];
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Options accepted by the panel columns hook.
|
|
86
|
-
*/
|
|
87
|
-
export interface UsePanelColumnsProps<T = DevicePickerOption> {
|
|
88
|
-
/**
|
|
89
|
-
* Devices used to detect whether each column has data at all.
|
|
90
|
-
*/
|
|
91
|
-
options: T[];
|
|
92
|
-
/**
|
|
93
|
-
* Forces the "Ver departamentos" switch instead of deriving it.
|
|
94
|
-
*/
|
|
95
|
-
showDepartments?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Forces the "Ver ID" switch instead of deriving it.
|
|
98
|
-
*/
|
|
99
|
-
showIds?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Resolves the group of a device, used for the department detection.
|
|
102
|
-
*/
|
|
103
|
-
getDeviceGroup: (option: T) => DevicePickerGroupRef | null;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Value returned by the panel columns hook.
|
|
107
|
-
*/
|
|
108
|
-
export interface UsePanelColumnsReturn {
|
|
109
|
-
/**
|
|
110
|
-
* The list is grouped by department.
|
|
111
|
-
*/
|
|
112
|
-
showDepartments: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Rows render the id line.
|
|
115
|
-
*/
|
|
116
|
-
showIds: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* At least one device has a department, so the switch is offered.
|
|
119
|
-
*/
|
|
120
|
-
canShowDepartments: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* At least one device has an id, so the switch is offered.
|
|
123
|
-
*/
|
|
124
|
-
canShowIds: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Toggles the "Ver departamentos" switch.
|
|
127
|
-
*/
|
|
128
|
-
toggleDepartments: () => void;
|
|
129
|
-
/**
|
|
130
|
-
* Toggles the "Ver ID" switch.
|
|
131
|
-
*/
|
|
132
|
-
toggleIds: () => void;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Options accepted by the selection hook.
|
|
136
|
-
*/
|
|
137
|
-
export interface UseDevicesSelectionProps<T = DevicePickerOption> {
|
|
138
|
-
/**
|
|
139
|
-
* Current picker value, as objects.
|
|
140
|
-
*/
|
|
141
|
-
value: T | T[] | null | undefined;
|
|
142
|
-
/**
|
|
143
|
-
* Options currently loaded from the endpoint.
|
|
144
|
-
*/
|
|
145
|
-
options: T[];
|
|
146
|
-
/**
|
|
147
|
-
* Multiple selection.
|
|
148
|
-
*/
|
|
149
|
-
multiple: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Reports the new value to the consumer.
|
|
152
|
-
*/
|
|
153
|
-
onChange: DevicesPickerProps<T>['onChange'];
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Value returned by the selection hook.
|
|
157
|
-
*/
|
|
158
|
-
export interface UseDevicesSelectionReturn<T = DevicePickerOption> {
|
|
159
|
-
/**
|
|
160
|
-
* Selected ids, the shape the CheckableList works with.
|
|
161
|
-
*/
|
|
162
|
-
selectedIds: (string | number)[];
|
|
163
|
-
/**
|
|
164
|
-
* Currently selected devices, as objects.
|
|
165
|
-
*/
|
|
166
|
-
selectedDevices: T[];
|
|
167
|
-
/**
|
|
168
|
-
* Translates a CheckableList id selection back into device objects.
|
|
169
|
-
*/
|
|
170
|
-
handleSelectionChange: (selectedIds: (string | number)[]) => void;
|
|
171
|
-
/**
|
|
172
|
-
* Removes one device from the selection.
|
|
173
|
-
*/
|
|
174
|
-
handleRemove: (device: T) => void;
|
|
175
|
-
}
|
|
176
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/hooks/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DevicePickerOption } from '../types';
|
|
2
|
-
import { UseDeviceGroupsProps, UseDeviceGroupsReturn } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Builds the CheckableList payload for the panel.
|
|
5
|
-
*
|
|
6
|
-
* The CheckableList consumes groups already built (it only flattens them to
|
|
7
|
-
* filter and virtualize), so the grouping lives here, mirroring what the
|
|
8
|
-
* geofences assignment does: one group per department carrying its color, so
|
|
9
|
-
* the count badge can be tinted with it. Devices with no department fall into a
|
|
10
|
-
* default group rendered last, so a selection is never hidden by the grouping.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useDeviceGroups<T extends DevicePickerOption = DevicePickerOption>(props: UseDeviceGroupsProps<T>): UseDeviceGroupsReturn;
|
|
13
|
-
//# sourceMappingURL=useDeviceGroups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeviceGroups.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/hooks/useDeviceGroups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAC/E,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC7B,qBAAqB,CA6EvB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { useCallback as v, useMemo as p } from "react";
|
|
2
|
-
import { DEVICES_PICKER_DEFAULT_GROUP_ID as c } from "../constants.js";
|
|
3
|
-
function G(f) {
|
|
4
|
-
const {
|
|
5
|
-
options: i,
|
|
6
|
-
grouped: u,
|
|
7
|
-
getDeviceGroup: d,
|
|
8
|
-
defaultGroupLabel: n,
|
|
9
|
-
getOptionLabel: m,
|
|
10
|
-
getDeviceSubtitle: a,
|
|
11
|
-
getDeviceIcon: b
|
|
12
|
-
} = f, o = v(
|
|
13
|
-
(r) => ({
|
|
14
|
-
id: r.id,
|
|
15
|
-
label: m(r),
|
|
16
|
-
// Search matches label and description, so the name stays findable once
|
|
17
|
-
// the alias takes the first line.
|
|
18
|
-
description: a(r),
|
|
19
|
-
value: r,
|
|
20
|
-
icon: b?.(r),
|
|
21
|
-
metadata: {
|
|
22
|
-
subtitle: a(r),
|
|
23
|
-
deviceId: r.id
|
|
24
|
-
}
|
|
25
|
-
}),
|
|
26
|
-
[m, a, b]
|
|
27
|
-
), g = p(() => {
|
|
28
|
-
if (!u)
|
|
29
|
-
return i.map(o);
|
|
30
|
-
}, [u, i, o]);
|
|
31
|
-
return { groups: p(() => {
|
|
32
|
-
if (!u)
|
|
33
|
-
return;
|
|
34
|
-
const r = i.reduce((e, t) => {
|
|
35
|
-
const l = d(t), s = String(l?.id ?? c);
|
|
36
|
-
return e[s] || (e[s] = {
|
|
37
|
-
id: s,
|
|
38
|
-
label: l?.label ?? n,
|
|
39
|
-
color: l?.color,
|
|
40
|
-
items: []
|
|
41
|
-
}), e[s].items.push(o(t)), e;
|
|
42
|
-
}, {});
|
|
43
|
-
return Object.values(r).map((e) => ({
|
|
44
|
-
...e,
|
|
45
|
-
items: [...e.items].sort((t, l) => t.label.localeCompare(l.label))
|
|
46
|
-
})).sort((e, t) => e.id === c ? 1 : t.id === c ? -1 : e.label.localeCompare(t.label));
|
|
47
|
-
}, [u, i, d, n, o]), items: g };
|
|
48
|
-
}
|
|
49
|
-
export {
|
|
50
|
-
G as useDeviceGroups
|
|
51
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UseDevicesAsyncOptionsProps, UseDevicesAsyncOptionsReturn } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Drives the device options using the very same async engine as
|
|
4
|
-
* AutocompleteAsync: the shared reducer decides when to fetch and
|
|
5
|
-
* `useFetchOptions` performs the request with its abort handling.
|
|
6
|
-
* Options are fetched lazily, the first time the panel is opened.
|
|
7
|
-
*
|
|
8
|
-
* `onChangeFilterParms` behaves exactly like in AutocompleteAsync: the panel
|
|
9
|
-
* search box builds the query params, debounced by 300ms, and the request is
|
|
10
|
-
* re-issued so the backend returns the filtered list.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useDevicesAsyncOptions<T>(props: UseDevicesAsyncOptionsProps<T>): UseDevicesAsyncOptionsReturn<T>;
|
|
13
|
-
//# sourceMappingURL=useDevicesAsyncOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDevicesAsyncOptions.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/hooks/useDevicesAsyncOptions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAEpF;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,KAAK,EAAE,2BAA2B,CAAC,CAAC,CAAC,GACpC,4BAA4B,CAAC,CAAC,CAAC,CAoFjC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import S from "lodash-es/debounce";
|
|
2
|
-
import { useRef as g, useReducer as A, useCallback as c, useMemo as O, useEffect as P } from "react";
|
|
3
|
-
import { useFetchOptions as b } from "../../extended/mui/AutocompleteAsync/hooks/useFetchOptions.js";
|
|
4
|
-
import { autocompleteAsyncReducer as T, getInitialStateAutocompleteAsync as x } from "../../extended/mui/AutocompleteAsync/reducer/AutocompleteAsyncReducer.js";
|
|
5
|
-
import { actionsType as r } from "../../extended/mui/AutocompleteAsync/types.js";
|
|
6
|
-
function D(u) {
|
|
7
|
-
const {
|
|
8
|
-
endPoint: l,
|
|
9
|
-
timeout: m = 5e3,
|
|
10
|
-
parms: i,
|
|
11
|
-
resultField: d = "data",
|
|
12
|
-
isRemote: f = !0,
|
|
13
|
-
isExternalUrl: h = !1,
|
|
14
|
-
responseToCamelCase: R,
|
|
15
|
-
shouldFetch: t,
|
|
16
|
-
onChangeFilterParms: n
|
|
17
|
-
} = u, p = g(""), [a, o] = A(
|
|
18
|
-
T(n),
|
|
19
|
-
x({ parms: i, onChangeFilterParms: n })
|
|
20
|
-
);
|
|
21
|
-
b({
|
|
22
|
-
state: a,
|
|
23
|
-
dispatch: o,
|
|
24
|
-
endPoint: l,
|
|
25
|
-
timeout: m,
|
|
26
|
-
isExternalUrl: h,
|
|
27
|
-
parms: i,
|
|
28
|
-
responseToCamelCase: R,
|
|
29
|
-
isRemote: f,
|
|
30
|
-
resultField: d
|
|
31
|
-
});
|
|
32
|
-
const E = c(() => {
|
|
33
|
-
const e = !t || t(p.current);
|
|
34
|
-
o({ type: r.OPEN, noFetch: !e });
|
|
35
|
-
}, [t]), F = c(() => o({ type: r.CLOSE }), []), y = c(() => o({ type: r.REFRESH }), []), s = O(
|
|
36
|
-
() => S(
|
|
37
|
-
(e) => {
|
|
38
|
-
o({
|
|
39
|
-
type: r.SET_QUERY_PARAMS,
|
|
40
|
-
payload: e
|
|
41
|
-
});
|
|
42
|
-
},
|
|
43
|
-
300,
|
|
44
|
-
{ trailing: !0 }
|
|
45
|
-
),
|
|
46
|
-
[o]
|
|
47
|
-
);
|
|
48
|
-
P(
|
|
49
|
-
() => () => {
|
|
50
|
-
s.cancel();
|
|
51
|
-
},
|
|
52
|
-
[s]
|
|
53
|
-
);
|
|
54
|
-
const C = c(
|
|
55
|
-
(e) => {
|
|
56
|
-
p.current = e, n && (!t || t(e)) && s(n(e));
|
|
57
|
-
},
|
|
58
|
-
[n, s, t]
|
|
59
|
-
);
|
|
60
|
-
return {
|
|
61
|
-
options: a.options,
|
|
62
|
-
loading: a.loading,
|
|
63
|
-
onOpen: E,
|
|
64
|
-
onClose: F,
|
|
65
|
-
refresh: y,
|
|
66
|
-
onSearchChange: C
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export {
|
|
70
|
-
D as useDevicesAsyncOptions
|
|
71
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DevicePickerOption } from '../types';
|
|
2
|
-
import { UseDevicesSelectionProps, UseDevicesSelectionReturn } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Bridges the picker value with the CheckableList selection.
|
|
5
|
-
*
|
|
6
|
-
* The picker reports device objects, mirroring the AutocompleteAsync contract
|
|
7
|
-
* and what the DynamicFilter stores, while the CheckableList works with ids.
|
|
8
|
-
* Already-selected devices are kept even when they are not in the latest
|
|
9
|
-
* options, so a selection made before a param change never disappears.
|
|
10
|
-
*/
|
|
11
|
-
export declare function useDevicesSelection<T extends DevicePickerOption = DevicePickerOption>(props: UseDevicesSelectionProps<T>): UseDevicesSelectionReturn<T>;
|
|
12
|
-
//# sourceMappingURL=useDevicesSelection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDevicesSelection.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/hooks/useDevicesSelection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAE9E;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EACnF,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACjC,yBAAyB,CAAC,CAAC,CAAC,CAwC9B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useMemo as u, useCallback as d } from "react";
|
|
2
|
-
import { toDeviceArray as h } from "../helpers/toDeviceArray.js";
|
|
3
|
-
function D(m) {
|
|
4
|
-
const { value: i, options: r, multiple: c, onChange: l } = m, t = u(() => h(i), [i]), p = u(
|
|
5
|
-
() => t.map((n) => n.id),
|
|
6
|
-
[t]
|
|
7
|
-
), v = d(
|
|
8
|
-
(n) => {
|
|
9
|
-
const o = /* @__PURE__ */ new Map();
|
|
10
|
-
t.forEach((e) => o.set(e.id, e)), r.forEach((e) => o.set(e.id, e));
|
|
11
|
-
const s = n.map((e) => o.get(e)).filter((e) => !!e), a = c ? s : s[0] ?? null;
|
|
12
|
-
l({ target: { value: a } }, a, "selectOption");
|
|
13
|
-
},
|
|
14
|
-
[t, r, c, l]
|
|
15
|
-
), f = d(
|
|
16
|
-
(n) => {
|
|
17
|
-
const o = t.filter((a) => a.id !== n.id), s = c ? o : null;
|
|
18
|
-
l({ target: { value: s } }, s, "removeOption");
|
|
19
|
-
},
|
|
20
|
-
[t, c, l]
|
|
21
|
-
);
|
|
22
|
-
return { selectedIds: p, selectedDevices: t, handleSelectionChange: v, handleRemove: f };
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
D as useDevicesSelection
|
|
26
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DevicePickerOption } from '../types';
|
|
2
|
-
import { UsePanelColumnsProps, UsePanelColumnsReturn } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Drives the two column switches of the panel.
|
|
5
|
-
*
|
|
6
|
-
* A switch is only offered when the data behind it exists: grouping by
|
|
7
|
-
* department is pointless if no device has one, and the id line would render an
|
|
8
|
-
* empty column. When the consumer passes the prop explicitly it wins over the
|
|
9
|
-
* detection.
|
|
10
|
-
*/
|
|
11
|
-
export declare function usePanelColumns<T extends DevicePickerOption = DevicePickerOption>(props: UsePanelColumnsProps<T>): UsePanelColumnsReturn;
|
|
12
|
-
//# sourceMappingURL=usePanelColumns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePanelColumns.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/hooks/usePanelColumns.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEtE;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAC/E,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAC7B,qBAAqB,CA8CvB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useMemo as m, useState as r, useEffect as i, useCallback as u } from "react";
|
|
2
|
-
function g(p) {
|
|
3
|
-
const { options: s, showDepartments: t, showIds: o, getDeviceGroup: d } = p, n = m(
|
|
4
|
-
() => s.some((e) => d(e) !== null),
|
|
5
|
-
[s, d]
|
|
6
|
-
), a = m(
|
|
7
|
-
() => s.some((e) => e.id !== void 0 && e.id !== null),
|
|
8
|
-
[s]
|
|
9
|
-
), [f, l] = r(t ?? !1), [h, c] = r(o ?? !1);
|
|
10
|
-
i(() => {
|
|
11
|
-
t === void 0 && l(n);
|
|
12
|
-
}, [n, t]), i(() => {
|
|
13
|
-
o === void 0 && c(a);
|
|
14
|
-
}, [a, o]);
|
|
15
|
-
const w = u(
|
|
16
|
-
() => l((e) => !e),
|
|
17
|
-
[]
|
|
18
|
-
), D = u(() => c((e) => !e), []);
|
|
19
|
-
return {
|
|
20
|
-
showDepartments: (t ?? f) && n,
|
|
21
|
-
showIds: (o ?? h) && a,
|
|
22
|
-
canShowDepartments: n,
|
|
23
|
-
canShowIds: a,
|
|
24
|
-
toggleDepartments: w,
|
|
25
|
-
toggleIds: D
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
g as usePanelColumns
|
|
30
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './DevicesPicker';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './constants';
|
|
4
|
-
export * from './dictionary';
|
|
5
|
-
export * from './helpers/resolveDeviceGroup';
|
|
6
|
-
export * from './helpers/toDeviceArray';
|
|
7
|
-
export * from './subcomponents/DeviceCard';
|
|
8
|
-
export * from './subcomponents/DevicesPanel';
|
|
9
|
-
export * from './subcomponents/DevicesPickerSkeleton';
|
|
10
|
-
export * from './subcomponents/SelectedDevicesList';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/components/DevicesPicker/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare enum DevicesPickerSlots {
|
|
2
|
-
/** Full-width wrapper: its size is the space the trigger can grow into. */
|
|
3
|
-
root = "root",
|
|
4
|
-
/** Trigger row: hugs its content (cards + overflow toggle + chevron). */
|
|
5
|
-
trigger = "trigger",
|
|
6
|
-
/** Horizontal container that holds the visible device cards. */
|
|
7
|
-
cardsContainer = "cardsContainer",
|
|
8
|
-
/** Row holding the leading icon and the placeholder text. */
|
|
9
|
-
placeholderContainer = "placeholderContainer",
|
|
10
|
-
/** Leading icon shown next to the placeholder. */
|
|
11
|
-
placeholderIcon = "placeholderIcon",
|
|
12
|
-
/** Placeholder text shown when there is no selection. */
|
|
13
|
-
placeholder = "placeholder",
|
|
14
|
-
/** ToggleButton showing the number of hidden cards (+N). */
|
|
15
|
-
overflowToggle = "overflowToggle",
|
|
16
|
-
/** IconButton that opens/closes the selection panel. */
|
|
17
|
-
chevronButton = "chevronButton",
|
|
18
|
-
/** Element that carries the measuring ref of each card. */
|
|
19
|
-
deviceCardWrapper = "deviceCardWrapper",
|
|
20
|
-
/** Off-layout container where pending cards are measured. */
|
|
21
|
-
measuringLayer = "measuringLayer",
|
|
22
|
-
/** Wrapper of the truncated card that fills the leftover space. */
|
|
23
|
-
partialCardWrapper = "partialCardWrapper",
|
|
24
|
-
/** Device card built on top of the system Card. */
|
|
25
|
-
deviceCard = "deviceCard",
|
|
26
|
-
/** Device icon wrapper inside the card. */
|
|
27
|
-
deviceCardIcon = "deviceCardIcon",
|
|
28
|
-
/** Column holding name, subtitle and id inside the card. */
|
|
29
|
-
deviceCardContent = "deviceCardContent",
|
|
30
|
-
/** Device name (first line of the card). */
|
|
31
|
-
deviceCardName = "deviceCardName",
|
|
32
|
-
/** Device plate/alias (second line of the card). */
|
|
33
|
-
deviceCardSubtitle = "deviceCardSubtitle",
|
|
34
|
-
/** Device id (third line of the card). */
|
|
35
|
-
deviceCardId = "deviceCardId",
|
|
36
|
-
/** Remove action of the card. */
|
|
37
|
-
deviceCardRemove = "deviceCardRemove",
|
|
38
|
-
/** Selection panel surface (Popover paper). */
|
|
39
|
-
panel = "panel",
|
|
40
|
-
/** Row holding the "Ver departamentos" and "Ver ID" switches. */
|
|
41
|
-
panelHeader = "panelHeader",
|
|
42
|
-
/** Each column switch inside the panel header. */
|
|
43
|
-
panelSwitch = "panelSwitch",
|
|
44
|
-
/** Wrapper of the CheckableList inside the panel. */
|
|
45
|
-
panelList = "panelList",
|
|
46
|
-
/** Device name inside a panel row. */
|
|
47
|
-
rowName = "rowName",
|
|
48
|
-
/** Device plate/alias inside a panel row. */
|
|
49
|
-
rowSubtitle = "rowSubtitle",
|
|
50
|
-
/** Device id inside a panel row, toggled by the "Ver ID" switch. */
|
|
51
|
-
rowId = "rowId",
|
|
52
|
-
/** Row that lays out the group header label and its count badge. */
|
|
53
|
-
groupRow = "groupRow",
|
|
54
|
-
/** Group header label inside the panel. */
|
|
55
|
-
groupLabel = "groupLabel",
|
|
56
|
-
/** Group count badge, tinted with the department color. */
|
|
57
|
-
groupBadge = "groupBadge",
|
|
58
|
-
/** Selected-devices list surface, opened from the +N toggle. */
|
|
59
|
-
selectedList = "selectedList",
|
|
60
|
-
/** Header of the selected-devices list. */
|
|
61
|
-
selectedListHeader = "selectedListHeader",
|
|
62
|
-
/** Icon and label group at the start of the selected-devices header. */
|
|
63
|
-
selectedListTitle = "selectedListTitle",
|
|
64
|
-
/** Count chip at the end of the selected-devices header. */
|
|
65
|
-
selectedListCount = "selectedListCount",
|
|
66
|
-
/** Scrollable body of the selected-devices list. */
|
|
67
|
-
selectedListItems = "selectedListItems",
|
|
68
|
-
/** Ghost card rendered while the devices are loading. */
|
|
69
|
-
skeletonCard = "skeletonCard",
|
|
70
|
-
/** Ghost icon inside the loading card. */
|
|
71
|
-
skeletonIcon = "skeletonIcon",
|
|
72
|
-
/** Ghost text bar inside the loading card. */
|
|
73
|
-
skeletonLine = "skeletonLine",
|
|
74
|
-
/** Ghost chevron of the loading trigger. */
|
|
75
|
-
skeletonChevron = "skeletonChevron"
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=DevicesPickerEnum.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevicesPickerEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DevicesPicker/slots/DevicesPickerEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,2EAA2E;IAC3E,IAAI,SAAS;IACb,yEAAyE;IACzE,OAAO,YAAY;IACnB,gEAAgE;IAChE,cAAc,mBAAmB;IACjC,6DAA6D;IAC7D,oBAAoB,yBAAyB;IAC7C,kDAAkD;IAClD,eAAe,oBAAoB;IACnC,yDAAyD;IACzD,WAAW,gBAAgB;IAC3B,4DAA4D;IAC5D,cAAc,mBAAmB;IACjC,wDAAwD;IACxD,aAAa,kBAAkB;IAC/B,2DAA2D;IAC3D,iBAAiB,sBAAsB;IACvC,6DAA6D;IAC7D,cAAc,mBAAmB;IACjC,mEAAmE;IACnE,kBAAkB,uBAAuB;IACzC,mDAAmD;IACnD,UAAU,eAAe;IACzB,2CAA2C;IAC3C,cAAc,mBAAmB;IACjC,4DAA4D;IAC5D,iBAAiB,sBAAsB;IACvC,4CAA4C;IAC5C,cAAc,mBAAmB;IACjC,oDAAoD;IACpD,kBAAkB,uBAAuB;IACzC,0CAA0C;IAC1C,YAAY,iBAAiB;IAC7B,iCAAiC;IACjC,gBAAgB,qBAAqB;IACrC,+CAA+C;IAC/C,KAAK,UAAU;IACf,iEAAiE;IACjE,WAAW,gBAAgB;IAC3B,kDAAkD;IAClD,WAAW,gBAAgB;IAC3B,qDAAqD;IACrD,SAAS,cAAc;IACvB,sCAAsC;IACtC,OAAO,YAAY;IACnB,6CAA6C;IAC7C,WAAW,gBAAgB;IAC3B,oEAAoE;IACpE,KAAK,UAAU;IACf,oEAAoE;IACpE,QAAQ,aAAa;IACrB,2CAA2C;IAC3C,UAAU,eAAe;IACzB,2DAA2D;IAC3D,UAAU,eAAe;IACzB,gEAAgE;IAChE,YAAY,iBAAiB;IAC7B,2CAA2C;IAC3C,kBAAkB,uBAAuB;IACzC,wEAAwE;IACxE,iBAAiB,sBAAsB;IACvC,4DAA4D;IAC5D,iBAAiB,sBAAsB;IACvC,oDAAoD;IACpD,iBAAiB,sBAAsB;IACvC,yDAAyD;IACzD,YAAY,iBAAiB;IAC7B,0CAA0C;IAC1C,YAAY,iBAAiB;IAC7B,8CAA8C;IAC9C,YAAY,iBAAiB;IAC7B,4CAA4C;IAC5C,eAAe,oBAAoB;CACpC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var d = /* @__PURE__ */ ((a) => (a.root = "root", a.trigger = "trigger", a.cardsContainer = "cardsContainer", a.placeholderContainer = "placeholderContainer", a.placeholderIcon = "placeholderIcon", a.placeholder = "placeholder", a.overflowToggle = "overflowToggle", a.chevronButton = "chevronButton", a.deviceCardWrapper = "deviceCardWrapper", a.measuringLayer = "measuringLayer", a.partialCardWrapper = "partialCardWrapper", a.deviceCard = "deviceCard", a.deviceCardIcon = "deviceCardIcon", a.deviceCardContent = "deviceCardContent", a.deviceCardName = "deviceCardName", a.deviceCardSubtitle = "deviceCardSubtitle", a.deviceCardId = "deviceCardId", a.deviceCardRemove = "deviceCardRemove", a.panel = "panel", a.panelHeader = "panelHeader", a.panelSwitch = "panelSwitch", a.panelList = "panelList", a.rowName = "rowName", a.rowSubtitle = "rowSubtitle", a.rowId = "rowId", a.groupRow = "groupRow", a.groupLabel = "groupLabel", a.groupBadge = "groupBadge", a.selectedList = "selectedList", a.selectedListHeader = "selectedListHeader", a.selectedListTitle = "selectedListTitle", a.selectedListCount = "selectedListCount", a.selectedListItems = "selectedListItems", a.skeletonCard = "skeletonCard", a.skeletonIcon = "skeletonIcon", a.skeletonLine = "skeletonLine", a.skeletonChevron = "skeletonChevron", a))(d || {});
|
|
2
|
-
export {
|
|
3
|
-
d as DevicesPickerSlots
|
|
4
|
-
};
|