@povio/ui 3.2.2-rc.6 → 3.2.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.
Files changed (31) hide show
  1. package/dist/components/inputs/DateTime/shared/DateField.js +80 -83
  2. package/dist/components/inputs/File/FileUpload.d.ts +1 -1
  3. package/dist/components/inputs/File/FileUpload.js +6 -1
  4. package/dist/components/inputs/File/fileUpload.types.d.ts +6 -0
  5. package/dist/components/inputs/File/shared/FileCard.d.ts +2 -2
  6. package/dist/components/inputs/File/shared/FileCard.js +46 -40
  7. package/dist/components/inputs/File/shared/FileCardList.d.ts +2 -2
  8. package/dist/components/inputs/File/shared/FileCardList.js +27 -21
  9. package/dist/components/inputs/File/shared/FileUploadContent.d.ts +1 -1
  10. package/dist/components/inputs/File/shared/FileUploadContent.js +98 -84
  11. package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +2 -2
  12. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +157 -121
  13. package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +2 -2
  14. package/dist/components/inputs/File/shared/FileUploadContentError.js +189 -153
  15. package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +2 -2
  16. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +181 -145
  17. package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +2 -2
  18. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +209 -168
  19. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +4 -2
  20. package/dist/components/inputs/Selection/Select/QuerySelect.js +42 -38
  21. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +2 -0
  22. package/dist/components/inputs/Selection/shared/SelectBase.js +35 -32
  23. package/dist/components/inputs/Selection/shared/SelectDesktop.js +212 -191
  24. package/dist/components/inputs/Selection/shared/SelectInput.js +193 -154
  25. package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
  26. package/dist/components/inputs/Selection/shared/select.context.js +4 -2
  27. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +4 -1
  28. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +91 -64
  29. package/dist/config/uiConfig.context.d.ts +5 -1
  30. package/dist/config/uiConfig.context.js +12 -3
  31. package/package.json +1 -1
@@ -12,142 +12,175 @@ import { clsx } from "clsx";
12
12
  import { useTranslation } from "react-i18next";
13
13
  //#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
14
14
  var FileUploadContentLoading = (t0) => {
15
- const $ = c(57);
16
- const { index, variant, as, state, isDisabled, singleFile, onCancel } = t0;
15
+ const $ = c(72);
16
+ const { index, variant, as, state, isDisabled, singleFile, onCancel, cancelButtonProps } = t0;
17
17
  const { t } = useTranslation("ui");
18
- const t1 = variant === "vertical";
19
- const t2 = variant === "horizontal";
20
- const t3 = as === "button";
18
+ let t1;
19
+ if ($[0] !== cancelButtonProps) {
20
+ t1 = cancelButtonProps ?? {};
21
+ $[0] = cancelButtonProps;
22
+ $[1] = t1;
23
+ } else t1 = $[1];
24
+ let cancelButtonClassName;
25
+ let cancelButtonRestProps;
26
+ let t2;
27
+ let t3;
21
28
  let t4;
22
- if ($[0] !== t1 || $[1] !== t2 || $[2] !== t3) {
23
- t4 = clsx("flex w-full flex-col items-center", {
24
- "flex-col": t1,
25
- "flex-row": t2,
26
- "gap-file-upload-content-gap-content-to-button": t3
29
+ let t5;
30
+ if ($[2] !== t1) {
31
+ ({className: cancelButtonClassName, color: t2, size: t3, variant: t4, width: t5, ...cancelButtonRestProps} = t1);
32
+ $[2] = t1;
33
+ $[3] = cancelButtonClassName;
34
+ $[4] = cancelButtonRestProps;
35
+ $[5] = t2;
36
+ $[6] = t3;
37
+ $[7] = t4;
38
+ $[8] = t5;
39
+ } else {
40
+ cancelButtonClassName = $[3];
41
+ cancelButtonRestProps = $[4];
42
+ t2 = $[5];
43
+ t3 = $[6];
44
+ t4 = $[7];
45
+ t5 = $[8];
46
+ }
47
+ const cancelButtonColor = t2 === void 0 ? "secondary" : t2;
48
+ const cancelButtonSize = t3 === void 0 ? "xs" : t3;
49
+ const cancelButtonVariant = t4 === void 0 ? "outlined" : t4;
50
+ const cancelButtonWidth = t5 === void 0 ? "hug" : t5;
51
+ const t6 = variant === "vertical";
52
+ const t7 = variant === "horizontal";
53
+ const t8 = as === "button";
54
+ let t9;
55
+ if ($[9] !== t6 || $[10] !== t7 || $[11] !== t8) {
56
+ t9 = clsx("flex w-full flex-col items-center", {
57
+ "flex-col": t6,
58
+ "flex-row": t7,
59
+ "gap-file-upload-content-gap-content-to-button": t8
27
60
  });
28
- $[0] = t1;
29
- $[1] = t2;
30
- $[2] = t3;
31
- $[3] = t4;
32
- } else t4 = $[3];
33
- const t5 = variant === "vertical";
34
- const t6 = variant === "horizontal";
35
- let t7;
36
- if ($[4] !== isDisabled || $[5] !== t5 || $[6] !== t6) {
37
- t7 = clsx("flex w-full items-center justify-between", {
38
- "flex-col gap-file-upload-content-gap-text-to-progress": t5,
39
- "flex-row gap-file-upload-content-gap-left-to-right-content": t6,
61
+ $[9] = t6;
62
+ $[10] = t7;
63
+ $[11] = t8;
64
+ $[12] = t9;
65
+ } else t9 = $[12];
66
+ const t10 = variant === "vertical";
67
+ const t11 = variant === "horizontal";
68
+ let t12;
69
+ if ($[13] !== isDisabled || $[14] !== t10 || $[15] !== t11) {
70
+ t12 = clsx("flex w-full items-center justify-between", {
71
+ "flex-col gap-file-upload-content-gap-text-to-progress": t10,
72
+ "flex-row gap-file-upload-content-gap-left-to-right-content": t11,
40
73
  "opacity-50": isDisabled
41
74
  });
42
- $[4] = isDisabled;
43
- $[5] = t5;
44
- $[6] = t6;
45
- $[7] = t7;
46
- } else t7 = $[7];
47
- const t8 = variant === "vertical";
48
- const t9 = variant === "horizontal";
49
- let t10;
50
- if ($[8] !== t8 || $[9] !== t9) {
51
- t10 = clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
52
- "w-full flex-col": t8,
53
- "w-1/2": t9
75
+ $[13] = isDisabled;
76
+ $[14] = t10;
77
+ $[15] = t11;
78
+ $[16] = t12;
79
+ } else t12 = $[16];
80
+ const t13 = variant === "vertical";
81
+ const t14 = variant === "horizontal";
82
+ let t15;
83
+ if ($[17] !== t13 || $[18] !== t14) {
84
+ t15 = clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
85
+ "w-full flex-col": t13,
86
+ "w-1/2": t14
54
87
  });
55
- $[8] = t8;
56
- $[9] = t9;
57
- $[10] = t10;
58
- } else t10 = $[10];
59
- let t11;
60
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
61
- t11 = /* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" });
62
- $[11] = t11;
63
- } else t11 = $[11];
64
- const t12 = variant === "vertical";
65
- const t13 = variant === "horizontal";
66
- let t14;
67
- if ($[12] !== t12 || $[13] !== t13) {
68
- t14 = clsx("flex flex-col", {
69
- "max-w-full gap-file-upload-content-gap-icon-to-content text-center": t12,
70
- "max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": t13
71
- });
72
- $[12] = t12;
73
- $[13] = t13;
74
- $[14] = t14;
75
- } else t14 = $[14];
76
- const t15 = state.file?.name ?? state.displayName ?? "";
88
+ $[17] = t13;
89
+ $[18] = t14;
90
+ $[19] = t15;
91
+ } else t15 = $[19];
77
92
  let t16;
78
- if ($[15] !== t15) {
79
- t16 = /* @__PURE__ */ jsx(Typography, {
93
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
94
+ t16 = /* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" });
95
+ $[20] = t16;
96
+ } else t16 = $[20];
97
+ const t17 = variant === "vertical";
98
+ const t18 = variant === "horizontal";
99
+ let t19;
100
+ if ($[21] !== t17 || $[22] !== t18) {
101
+ t19 = clsx("flex flex-col", {
102
+ "max-w-full gap-file-upload-content-gap-icon-to-content text-center": t17,
103
+ "max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": t18
104
+ });
105
+ $[21] = t17;
106
+ $[22] = t18;
107
+ $[23] = t19;
108
+ } else t19 = $[23];
109
+ const t20 = state.file?.name ?? state.displayName ?? "";
110
+ let t21;
111
+ if ($[24] !== t20) {
112
+ t21 = /* @__PURE__ */ jsx(Typography, {
80
113
  variant: "prominent-1",
81
114
  size: "label-1",
82
115
  as: "span",
83
116
  className: "self-stretch truncate text-center text-text-default-1",
84
- children: t15
117
+ children: t20
85
118
  });
86
- $[15] = t15;
87
- $[16] = t16;
88
- } else t16 = $[16];
89
- const t17 = singleFile ? "label-2" : "label-3";
90
- let t18;
91
- if ($[17] !== state) {
92
- t18 = FileUtils.getFileDisplaySize(state);
93
- $[17] = state;
94
- $[18] = t18;
95
- } else t18 = $[18];
96
- let t19;
97
- if ($[19] !== t17 || $[20] !== t18) {
98
- t19 = /* @__PURE__ */ jsx(Typography, {
119
+ $[24] = t20;
120
+ $[25] = t21;
121
+ } else t21 = $[25];
122
+ const t22 = singleFile ? "label-2" : "label-3";
123
+ let t23;
124
+ if ($[26] !== state) {
125
+ t23 = FileUtils.getFileDisplaySize(state);
126
+ $[26] = state;
127
+ $[27] = t23;
128
+ } else t23 = $[27];
129
+ let t24;
130
+ if ($[28] !== t22 || $[29] !== t23) {
131
+ t24 = /* @__PURE__ */ jsx(Typography, {
99
132
  variant: "default",
100
- size: t17,
133
+ size: t22,
101
134
  as: "span",
102
135
  className: "text-text-default-2",
103
- children: t18
136
+ children: t23
104
137
  });
105
- $[19] = t17;
106
- $[20] = t18;
107
- $[21] = t19;
108
- } else t19 = $[21];
109
- let t20;
110
- if ($[22] !== t14 || $[23] !== t16 || $[24] !== t19) {
111
- t20 = /* @__PURE__ */ jsxs("div", {
112
- className: t14,
113
- children: [t16, t19]
138
+ $[28] = t22;
139
+ $[29] = t23;
140
+ $[30] = t24;
141
+ } else t24 = $[30];
142
+ let t25;
143
+ if ($[31] !== t19 || $[32] !== t21 || $[33] !== t24) {
144
+ t25 = /* @__PURE__ */ jsxs("div", {
145
+ className: t19,
146
+ children: [t21, t24]
114
147
  });
115
- $[22] = t14;
116
- $[23] = t16;
117
- $[24] = t19;
118
- $[25] = t20;
119
- } else t20 = $[25];
120
- let t21;
121
- if ($[26] !== t10 || $[27] !== t20) {
122
- t21 = /* @__PURE__ */ jsxs("div", {
123
- className: t10,
124
- children: [t11, t20]
148
+ $[31] = t19;
149
+ $[32] = t21;
150
+ $[33] = t24;
151
+ $[34] = t25;
152
+ } else t25 = $[34];
153
+ let t26;
154
+ if ($[35] !== t15 || $[36] !== t25) {
155
+ t26 = /* @__PURE__ */ jsxs("div", {
156
+ className: t15,
157
+ children: [t16, t25]
125
158
  });
126
- $[26] = t10;
127
- $[27] = t20;
128
- $[28] = t21;
129
- } else t21 = $[28];
130
- const t22 = variant === "horizontal";
131
- const t23 = variant === "vertical";
132
- let t24;
133
- if ($[29] !== t22 || $[30] !== t23) {
134
- t24 = clsx("flex items-center gap-1", {
135
- "w-1/2": t22,
136
- "w-full": t23
159
+ $[35] = t15;
160
+ $[36] = t25;
161
+ $[37] = t26;
162
+ } else t26 = $[37];
163
+ const t27 = variant === "horizontal";
164
+ const t28 = variant === "vertical";
165
+ let t29;
166
+ if ($[38] !== t27 || $[39] !== t28) {
167
+ t29 = clsx("flex items-center gap-1", {
168
+ "w-1/2": t27,
169
+ "w-full": t28
137
170
  });
138
- $[29] = t22;
139
- $[30] = t23;
140
- $[31] = t24;
141
- } else t24 = $[31];
142
- let t25;
143
- if ($[32] !== state.progress) {
144
- t25 = /* @__PURE__ */ jsx(ProgressBar, { progress: state.progress });
145
- $[32] = state.progress;
146
- $[33] = t25;
147
- } else t25 = $[33];
148
- let t26;
149
- if ($[34] !== as || $[35] !== index || $[36] !== onCancel || $[37] !== variant) {
150
- t26 = (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
171
+ $[38] = t27;
172
+ $[39] = t28;
173
+ $[40] = t29;
174
+ } else t29 = $[40];
175
+ let t30;
176
+ if ($[41] !== state.progress) {
177
+ t30 = /* @__PURE__ */ jsx(ProgressBar, { progress: state.progress });
178
+ $[41] = state.progress;
179
+ $[42] = t30;
180
+ } else t30 = $[42];
181
+ let t31;
182
+ if ($[43] !== as || $[44] !== index || $[45] !== onCancel || $[46] !== variant) {
183
+ t31 = (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
151
184
  label: "Cancel",
152
185
  color: "secondary",
153
186
  onPress: () => {
@@ -155,65 +188,73 @@ var FileUploadContentLoading = (t0) => {
155
188
  },
156
189
  icon: CloseIcon
157
190
  });
158
- $[34] = as;
159
- $[35] = index;
160
- $[36] = onCancel;
161
- $[37] = variant;
162
- $[38] = t26;
163
- } else t26 = $[38];
164
- let t27;
165
- if ($[39] !== t24 || $[40] !== t25 || $[41] !== t26) {
166
- t27 = /* @__PURE__ */ jsxs("div", {
167
- className: t24,
168
- children: [t25, t26]
191
+ $[43] = as;
192
+ $[44] = index;
193
+ $[45] = onCancel;
194
+ $[46] = variant;
195
+ $[47] = t31;
196
+ } else t31 = $[47];
197
+ let t32;
198
+ if ($[48] !== t29 || $[49] !== t30 || $[50] !== t31) {
199
+ t32 = /* @__PURE__ */ jsxs("div", {
200
+ className: t29,
201
+ children: [t30, t31]
169
202
  });
170
- $[39] = t24;
171
- $[40] = t25;
172
- $[41] = t26;
173
- $[42] = t27;
174
- } else t27 = $[42];
175
- let t28;
176
- if ($[43] !== t21 || $[44] !== t27 || $[45] !== t7) {
177
- t28 = /* @__PURE__ */ jsxs("div", {
178
- className: t7,
179
- children: [t21, t27]
203
+ $[48] = t29;
204
+ $[49] = t30;
205
+ $[50] = t31;
206
+ $[51] = t32;
207
+ } else t32 = $[51];
208
+ let t33;
209
+ if ($[52] !== t12 || $[53] !== t26 || $[54] !== t32) {
210
+ t33 = /* @__PURE__ */ jsxs("div", {
211
+ className: t12,
212
+ children: [t26, t32]
180
213
  });
181
- $[43] = t21;
182
- $[44] = t27;
183
- $[45] = t7;
184
- $[46] = t28;
185
- } else t28 = $[46];
186
- let t29;
187
- if ($[47] !== as || $[48] !== index || $[49] !== onCancel || $[50] !== t || $[51] !== variant) {
188
- t29 = as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
189
- variant: "outlined",
190
- size: "xs",
191
- color: "secondary",
192
- width: "hug",
214
+ $[52] = t12;
215
+ $[53] = t26;
216
+ $[54] = t32;
217
+ $[55] = t33;
218
+ } else t33 = $[55];
219
+ let t34;
220
+ if ($[56] !== as || $[57] !== cancelButtonClassName || $[58] !== cancelButtonColor || $[59] !== cancelButtonRestProps || $[60] !== cancelButtonSize || $[61] !== cancelButtonVariant || $[62] !== cancelButtonWidth || $[63] !== index || $[64] !== onCancel || $[65] !== t || $[66] !== variant) {
221
+ t34 = as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
222
+ ...cancelButtonRestProps,
223
+ variant: cancelButtonVariant,
224
+ size: cancelButtonSize,
225
+ color: cancelButtonColor,
226
+ width: cancelButtonWidth,
193
227
  onPress: () => {
194
228
  onCancel(index);
195
229
  },
230
+ className: cancelButtonClassName,
196
231
  children: t(_temp)
197
232
  });
198
- $[47] = as;
199
- $[48] = index;
200
- $[49] = onCancel;
201
- $[50] = t;
202
- $[51] = variant;
203
- $[52] = t29;
204
- } else t29 = $[52];
205
- let t30;
206
- if ($[53] !== t28 || $[54] !== t29 || $[55] !== t4) {
207
- t30 = /* @__PURE__ */ jsxs("div", {
208
- className: t4,
209
- children: [t28, t29]
233
+ $[56] = as;
234
+ $[57] = cancelButtonClassName;
235
+ $[58] = cancelButtonColor;
236
+ $[59] = cancelButtonRestProps;
237
+ $[60] = cancelButtonSize;
238
+ $[61] = cancelButtonVariant;
239
+ $[62] = cancelButtonWidth;
240
+ $[63] = index;
241
+ $[64] = onCancel;
242
+ $[65] = t;
243
+ $[66] = variant;
244
+ $[67] = t34;
245
+ } else t34 = $[67];
246
+ let t35;
247
+ if ($[68] !== t33 || $[69] !== t34 || $[70] !== t9) {
248
+ t35 = /* @__PURE__ */ jsxs("div", {
249
+ className: t9,
250
+ children: [t33, t34]
210
251
  });
211
- $[53] = t28;
212
- $[54] = t29;
213
- $[55] = t4;
214
- $[56] = t30;
215
- } else t30 = $[56];
216
- return t30;
252
+ $[68] = t33;
253
+ $[69] = t34;
254
+ $[70] = t9;
255
+ $[71] = t35;
256
+ } else t35 = $[71];
257
+ return t35;
217
258
  };
218
259
  function _temp($) {
219
260
  return $.ui.fileUpload.cancel;
@@ -19,14 +19,15 @@ var QueryAutocompleteContent = ({ query, queryParams, queryOptions, queryMap, re
19
19
  value,
20
20
  mapInitialToSelectItem: props.mapInitialToSelectItem
21
21
  });
22
+ const shouldEnableInitialQuery = selectedIdsToResolve.count > 0;
22
23
  const { items, totalItems, isLoading, handleEnableQuery, hasNextPage, fetchNextPage } = useQueryAutocomplete({
23
24
  query,
24
25
  queryParams,
25
26
  queryOptions,
26
27
  mapItems: (data) => getQueryItems(data, queryMap),
27
- resolveSelectedItemsWithIds,
28
+ resolveSelectedItemsWithIds: resolveSelectedItemsWithIds ?? ui.queryAutocomplete?.resolveSelectedItemsWithIds,
28
29
  search,
29
- initialQueryState: selectedIdsToResolve.count > 0 ? false : props.isInitialQueryDisabled ?? ui.queryAutocomplete?.isInitialQueryDisabled,
30
+ initialQueryState: shouldEnableInitialQuery ? false : props.isInitialQueryDisabled ?? ui.queryAutocomplete?.isInitialQueryDisabled,
30
31
  selectedIdsToResolve: selectedIdsToResolve.items
31
32
  });
32
33
  const handleChange = (value_0) => {
@@ -46,6 +47,7 @@ var QueryAutocompleteContent = ({ query, queryParams, queryOptions, queryMap, re
46
47
  isClientSearchDisabled: true,
47
48
  isLoading,
48
49
  onChange: handleChange,
50
+ searchDebounceDelay: props.searchDebounceDelay ?? ui.queryAutocomplete?.searchDebounceDelay,
49
51
  onMouseEnter: handleEnableQuery,
50
52
  onFocusCapture: handleEnableQuery,
51
53
  leadingContent,
@@ -9,7 +9,7 @@ import { mergeRefs } from "@react-aria/utils";
9
9
  import { Controller } from "react-hook-form";
10
10
  //#region src/components/inputs/Selection/Select/QuerySelect.tsx
11
11
  var QuerySelectContent = (t0) => {
12
- const $ = c(30);
12
+ const $ = c(31);
13
13
  const { query, queryParams, queryOptions, queryMap, resolveSelectedItemsWithIds, ...props } = t0;
14
14
  const ui = UIConfig.useConfig();
15
15
  const [search, setSearch] = useState("");
@@ -27,37 +27,38 @@ var QuerySelectContent = (t0) => {
27
27
  $[0] = queryMap;
28
28
  $[1] = t1;
29
29
  } else t1 = $[1];
30
- const t2 = isSearchable ? search : void 0;
31
- const t3 = shouldEnableInitialQuery ? false : props.isInitialQueryDisabled ?? ui.querySelect?.isInitialQueryDisabled;
32
- let t4;
33
- if ($[2] !== query || $[3] !== queryOptions || $[4] !== queryParams || $[5] !== resolveSelectedItemsWithIds || $[6] !== selectedIdsToResolve.items || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
34
- t4 = {
30
+ const t2 = resolveSelectedItemsWithIds ?? ui.querySelect?.resolveSelectedItemsWithIds;
31
+ const t3 = isSearchable ? search : void 0;
32
+ const t4 = shouldEnableInitialQuery ? false : props.isInitialQueryDisabled ?? ui.querySelect?.isInitialQueryDisabled;
33
+ let t5;
34
+ if ($[2] !== query || $[3] !== queryOptions || $[4] !== queryParams || $[5] !== selectedIdsToResolve.items || $[6] !== t1 || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
35
+ t5 = {
35
36
  query,
36
37
  queryParams,
37
38
  queryOptions,
38
39
  mapItems: t1,
39
- resolveSelectedItemsWithIds,
40
- search: t2,
41
- initialQueryState: t3,
40
+ resolveSelectedItemsWithIds: t2,
41
+ search: t3,
42
+ initialQueryState: t4,
42
43
  selectedIdsToResolve: selectedIdsToResolve.items
43
44
  };
44
45
  $[2] = query;
45
46
  $[3] = queryOptions;
46
47
  $[4] = queryParams;
47
- $[5] = resolveSelectedItemsWithIds;
48
- $[6] = selectedIdsToResolve.items;
49
- $[7] = t1;
50
- $[8] = t2;
51
- $[9] = t3;
52
- $[10] = t4;
53
- } else t4 = $[10];
54
- const { items, totalItems, isLoading, handleEnableQuery, hasNextPage, fetchNextPage } = useQueryAutocomplete(t4);
48
+ $[5] = selectedIdsToResolve.items;
49
+ $[6] = t1;
50
+ $[7] = t2;
51
+ $[8] = t3;
52
+ $[9] = t4;
53
+ $[10] = t5;
54
+ } else t5 = $[10];
55
+ const { items, totalItems, isLoading, handleEnableQuery, hasNextPage, fetchNextPage } = useQueryAutocomplete(t5);
55
56
  let onSearchChange;
56
57
  let selectProps;
57
58
  if ($[11] !== props) {
58
- const { isInitialQueryDisabled: _, onSearchChange: t5, ...t6 } = props;
59
- onSearchChange = t5;
60
- selectProps = t6;
59
+ const { isInitialQueryDisabled: _, onSearchChange: t6, ...t7 } = props;
60
+ onSearchChange = t6;
61
+ selectProps = t7;
61
62
  $[11] = props;
62
63
  $[12] = onSearchChange;
63
64
  $[13] = selectProps;
@@ -65,9 +66,9 @@ var QuerySelectContent = (t0) => {
65
66
  onSearchChange = $[12];
66
67
  selectProps = $[13];
67
68
  }
68
- let t5;
69
+ let t6;
69
70
  if ($[14] !== handleEnableQuery || $[15] !== onSearchChange || $[16] !== setSearch) {
70
- t5 = (value_0) => {
71
+ t6 = (value_0) => {
71
72
  setSearch(value_0);
72
73
  handleEnableQuery();
73
74
  onSearchChange?.(value_0);
@@ -75,31 +76,33 @@ var QuerySelectContent = (t0) => {
75
76
  $[14] = handleEnableQuery;
76
77
  $[15] = onSearchChange;
77
78
  $[16] = setSearch;
78
- $[17] = t5;
79
- } else t5 = $[17];
80
- const handleSearchChange = t5;
81
- let t6;
79
+ $[17] = t6;
80
+ } else t6 = $[17];
81
+ const handleSearchChange = t6;
82
+ const t7 = props.searchDebounceDelay ?? ui.querySelect?.searchDebounceDelay;
83
+ let t8;
82
84
  if ($[18] !== handleSearchChange || $[19] !== isSearchable) {
83
- t6 = isSearchable && {
85
+ t8 = isSearchable && {
84
86
  isClientSearchDisabled: true,
85
87
  onSearchChange: handleSearchChange
86
88
  };
87
89
  $[18] = handleSearchChange;
88
90
  $[19] = isSearchable;
89
- $[20] = t6;
90
- } else t6 = $[20];
91
- let t7;
92
- if ($[21] !== fetchNextPage || $[22] !== handleEnableQuery || $[23] !== hasNextPage || $[24] !== isLoading || $[25] !== items || $[26] !== selectProps || $[27] !== t6 || $[28] !== totalItems) {
93
- t7 = /* @__PURE__ */ jsx(Select, {
91
+ $[20] = t8;
92
+ } else t8 = $[20];
93
+ let t9;
94
+ if ($[21] !== fetchNextPage || $[22] !== handleEnableQuery || $[23] !== hasNextPage || $[24] !== isLoading || $[25] !== items || $[26] !== selectProps || $[27] !== t7 || $[28] !== t8 || $[29] !== totalItems) {
95
+ t9 = /* @__PURE__ */ jsx(Select, {
94
96
  ...selectProps,
95
97
  items,
96
98
  isLoading,
97
99
  totalItems,
98
100
  hasLoadMore: hasNextPage,
99
101
  onLoadMore: fetchNextPage,
102
+ searchDebounceDelay: t7,
100
103
  onMouseEnter: handleEnableQuery,
101
104
  onFocusCapture: handleEnableQuery,
102
- ...t6
105
+ ...t8
103
106
  });
104
107
  $[21] = fetchNextPage;
105
108
  $[22] = handleEnableQuery;
@@ -107,11 +110,12 @@ var QuerySelectContent = (t0) => {
107
110
  $[24] = isLoading;
108
111
  $[25] = items;
109
112
  $[26] = selectProps;
110
- $[27] = t6;
111
- $[28] = totalItems;
112
- $[29] = t7;
113
- } else t7 = $[29];
114
- return t7;
113
+ $[27] = t7;
114
+ $[28] = t8;
115
+ $[29] = totalItems;
116
+ $[30] = t9;
117
+ } else t9 = $[30];
118
+ return t9;
115
119
  };
116
120
  var QuerySelect = (props) => {
117
121
  const $ = c(16);
@@ -26,6 +26,8 @@ export type SelectBaseProps<TKey extends Key = Key, TInitialSelectItem = Default
26
26
  selectedTagsType?: "tags" | "list";
27
27
  collapseAfter?: number;
28
28
  fireBlurOnChange?: boolean;
29
+ searchDebounceDelay?: number;
30
+ multiSelectAutoConfirm?: boolean;
29
31
  onInputChange?: (value: string) => void;
30
32
  onSearchChange?: (value: string) => void;
31
33
  mapInitialToSelectItem?: (item: TInitialSelectItem) => SelectItem<TKey>;