@availity/mui-autocomplete 1.2.5 → 1.2.7
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/CHANGELOG.md +13 -0
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.2.7](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.2.6...@availity/mui-autocomplete@1.2.7) (2025-10-30)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-form-utils` updated to version `1.2.6`
|
|
10
|
+
* `mui-textfield` updated to version `1.2.6`
|
|
11
|
+
* `mui-icon` updated to version `1.2.6`
|
|
12
|
+
* `mui-layout` updated to version `1.2.6`
|
|
13
|
+
## [1.2.6](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.2.5...@availity/mui-autocomplete@1.2.6) (2025-10-09)
|
|
14
|
+
|
|
15
|
+
### Dependency Updates
|
|
16
|
+
|
|
17
|
+
* `@availity/mock` updated to version `1.2.5`
|
|
5
18
|
## [1.2.5](https://github.com/Availity/element/compare/@availity/mui-autocomplete@1.2.4...@availity/mui-autocomplete@1.2.5) (2025-07-17)
|
|
6
19
|
|
|
7
20
|
|
package/dist/index.js
CHANGED
|
@@ -195,7 +195,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
195
195
|
const debouncedInput = useDebounce(inputValue, debounceTimeout);
|
|
196
196
|
const { isLoading, isFetching, data, hasNextPage, fetchNextPage } = (0, import_react_query.useInfiniteQuery)(__spreadValues({
|
|
197
197
|
queryKey: [queryKey, limit, debouncedInput, watchParams],
|
|
198
|
-
queryFn: (_0) => __async(
|
|
198
|
+
queryFn: (_0) => __async(null, [_0], function* ({ pageParam = 0 }) {
|
|
199
199
|
return loadOptions(pageParam, limit, debouncedInput);
|
|
200
200
|
}),
|
|
201
201
|
staleTime: 1e4,
|
|
@@ -222,7 +222,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
222
222
|
loading: isFetching,
|
|
223
223
|
options,
|
|
224
224
|
ListboxProps: __spreadProps(__spreadValues({}, ListboxProps), {
|
|
225
|
-
onScroll: (event) => __async(
|
|
225
|
+
onScroll: (event) => __async(null, null, function* () {
|
|
226
226
|
const listboxNode = event.currentTarget;
|
|
227
227
|
const difference = listboxNode.scrollHeight - (listboxNode.scrollTop + listboxNode.clientHeight);
|
|
228
228
|
if (difference <= 5 && !isLoading && !isFetching && hasNextPage) {
|
|
@@ -237,7 +237,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
237
237
|
// src/lib/CodesAutocomplete.tsx
|
|
238
238
|
var import_api_axios = require("@availity/api-axios");
|
|
239
239
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
240
|
-
var fetchCodes = (config) => __async(
|
|
240
|
+
var fetchCodes = (config) => __async(null, null, function* () {
|
|
241
241
|
const resp = yield import_api_axios.avCodesApi.query(config);
|
|
242
242
|
return {
|
|
243
243
|
options: resp.data.codes,
|
|
@@ -260,7 +260,7 @@ var CodesAutocomplete = (_a) => {
|
|
|
260
260
|
"list",
|
|
261
261
|
"watchParams"
|
|
262
262
|
]);
|
|
263
|
-
const handleLoadOptions = (offset, limit, inputValue) => __async(
|
|
263
|
+
const handleLoadOptions = (offset, limit, inputValue) => __async(null, null, function* () {
|
|
264
264
|
const resp = yield fetchCodes(__spreadProps(__spreadValues({}, apiConfig), {
|
|
265
265
|
params: __spreadProps(__spreadValues({}, apiConfig.params), { list, offset, limit, q: inputValue })
|
|
266
266
|
}));
|
|
@@ -285,7 +285,7 @@ var CodesAutocomplete = (_a) => {
|
|
|
285
285
|
var import_api_axios2 = require("@availity/api-axios");
|
|
286
286
|
var import_qs = __toESM(require("qs"));
|
|
287
287
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
288
|
-
var fetchOrgs = (config) => __async(
|
|
288
|
+
var fetchOrgs = (config) => __async(null, null, function* () {
|
|
289
289
|
const configWithParamsSerializer = __spreadProps(__spreadValues({}, config), {
|
|
290
290
|
paramsSerializer: {
|
|
291
291
|
serialize: (params) => import_qs.default.stringify(params, { arrayFormat: "repeat" })
|
|
@@ -307,7 +307,7 @@ var OrganizationAutocomplete = (_a) => {
|
|
|
307
307
|
"apiConfig",
|
|
308
308
|
"queryKey"
|
|
309
309
|
]);
|
|
310
|
-
const handleLoadOptions = (offset, limit) => __async(
|
|
310
|
+
const handleLoadOptions = (offset, limit) => __async(null, null, function* () {
|
|
311
311
|
const resp = yield fetchOrgs(__spreadProps(__spreadValues({}, apiConfig), { params: __spreadProps(__spreadValues({ dropdown: true }, apiConfig.params), { offset, limit }) }));
|
|
312
312
|
return __spreadProps(__spreadValues({}, resp), {
|
|
313
313
|
options: resp.options
|
|
@@ -327,7 +327,7 @@ var OrganizationAutocomplete = (_a) => {
|
|
|
327
327
|
// src/lib/ProviderAutocomplete.tsx
|
|
328
328
|
var import_api_axios3 = require("@availity/api-axios");
|
|
329
329
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
330
|
-
var fetchProviders = (customerId, config) => __async(
|
|
330
|
+
var fetchProviders = (customerId, config) => __async(null, null, function* () {
|
|
331
331
|
const resp = yield import_api_axios3.avProvidersApi.getProviders(customerId, config);
|
|
332
332
|
return {
|
|
333
333
|
options: resp.data.providers,
|
|
@@ -346,7 +346,7 @@ var ProviderAutocomplete = (_a) => {
|
|
|
346
346
|
"customerId",
|
|
347
347
|
"queryKey"
|
|
348
348
|
]);
|
|
349
|
-
const handleLoadOptions = (offset, limit, inputValue) => __async(
|
|
349
|
+
const handleLoadOptions = (offset, limit, inputValue) => __async(null, null, function* () {
|
|
350
350
|
const resp = yield fetchProviders(customerId, __spreadProps(__spreadValues({}, apiConfig), {
|
|
351
351
|
params: __spreadProps(__spreadValues({}, apiConfig.params), { offset, limit, q: inputValue })
|
|
352
352
|
}));
|
package/dist/index.mjs
CHANGED
|
@@ -153,7 +153,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
153
153
|
const debouncedInput = useDebounce(inputValue, debounceTimeout);
|
|
154
154
|
const { isLoading, isFetching, data, hasNextPage, fetchNextPage } = useInfiniteQuery(__spreadValues({
|
|
155
155
|
queryKey: [queryKey, limit, debouncedInput, watchParams],
|
|
156
|
-
queryFn: (_0) => __async(
|
|
156
|
+
queryFn: (_0) => __async(null, [_0], function* ({ pageParam = 0 }) {
|
|
157
157
|
return loadOptions(pageParam, limit, debouncedInput);
|
|
158
158
|
}),
|
|
159
159
|
staleTime: 1e4,
|
|
@@ -180,7 +180,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
180
180
|
loading: isFetching,
|
|
181
181
|
options,
|
|
182
182
|
ListboxProps: __spreadProps(__spreadValues({}, ListboxProps), {
|
|
183
|
-
onScroll: (event) => __async(
|
|
183
|
+
onScroll: (event) => __async(null, null, function* () {
|
|
184
184
|
const listboxNode = event.currentTarget;
|
|
185
185
|
const difference = listboxNode.scrollHeight - (listboxNode.scrollTop + listboxNode.clientHeight);
|
|
186
186
|
if (difference <= 5 && !isLoading && !isFetching && hasNextPage) {
|
|
@@ -195,7 +195,7 @@ var AsyncAutocomplete = (_a) => {
|
|
|
195
195
|
// src/lib/CodesAutocomplete.tsx
|
|
196
196
|
import { avCodesApi } from "@availity/api-axios";
|
|
197
197
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
198
|
-
var fetchCodes = (config) => __async(
|
|
198
|
+
var fetchCodes = (config) => __async(null, null, function* () {
|
|
199
199
|
const resp = yield avCodesApi.query(config);
|
|
200
200
|
return {
|
|
201
201
|
options: resp.data.codes,
|
|
@@ -218,7 +218,7 @@ var CodesAutocomplete = (_a) => {
|
|
|
218
218
|
"list",
|
|
219
219
|
"watchParams"
|
|
220
220
|
]);
|
|
221
|
-
const handleLoadOptions = (offset, limit, inputValue) => __async(
|
|
221
|
+
const handleLoadOptions = (offset, limit, inputValue) => __async(null, null, function* () {
|
|
222
222
|
const resp = yield fetchCodes(__spreadProps(__spreadValues({}, apiConfig), {
|
|
223
223
|
params: __spreadProps(__spreadValues({}, apiConfig.params), { list, offset, limit, q: inputValue })
|
|
224
224
|
}));
|
|
@@ -243,7 +243,7 @@ var CodesAutocomplete = (_a) => {
|
|
|
243
243
|
import { avOrganizationsApi } from "@availity/api-axios";
|
|
244
244
|
import qs from "qs";
|
|
245
245
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
246
|
-
var fetchOrgs = (config) => __async(
|
|
246
|
+
var fetchOrgs = (config) => __async(null, null, function* () {
|
|
247
247
|
const configWithParamsSerializer = __spreadProps(__spreadValues({}, config), {
|
|
248
248
|
paramsSerializer: {
|
|
249
249
|
serialize: (params) => qs.stringify(params, { arrayFormat: "repeat" })
|
|
@@ -265,7 +265,7 @@ var OrganizationAutocomplete = (_a) => {
|
|
|
265
265
|
"apiConfig",
|
|
266
266
|
"queryKey"
|
|
267
267
|
]);
|
|
268
|
-
const handleLoadOptions = (offset, limit) => __async(
|
|
268
|
+
const handleLoadOptions = (offset, limit) => __async(null, null, function* () {
|
|
269
269
|
const resp = yield fetchOrgs(__spreadProps(__spreadValues({}, apiConfig), { params: __spreadProps(__spreadValues({ dropdown: true }, apiConfig.params), { offset, limit }) }));
|
|
270
270
|
return __spreadProps(__spreadValues({}, resp), {
|
|
271
271
|
options: resp.options
|
|
@@ -285,7 +285,7 @@ var OrganizationAutocomplete = (_a) => {
|
|
|
285
285
|
// src/lib/ProviderAutocomplete.tsx
|
|
286
286
|
import { avProvidersApi } from "@availity/api-axios";
|
|
287
287
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
288
|
-
var fetchProviders = (customerId, config) => __async(
|
|
288
|
+
var fetchProviders = (customerId, config) => __async(null, null, function* () {
|
|
289
289
|
const resp = yield avProvidersApi.getProviders(customerId, config);
|
|
290
290
|
return {
|
|
291
291
|
options: resp.data.providers,
|
|
@@ -304,7 +304,7 @@ var ProviderAutocomplete = (_a) => {
|
|
|
304
304
|
"customerId",
|
|
305
305
|
"queryKey"
|
|
306
306
|
]);
|
|
307
|
-
const handleLoadOptions = (offset, limit, inputValue) => __async(
|
|
307
|
+
const handleLoadOptions = (offset, limit, inputValue) => __async(null, null, function* () {
|
|
308
308
|
const resp = yield fetchProviders(customerId, __spreadProps(__spreadValues({}, apiConfig), {
|
|
309
309
|
params: __spreadProps(__spreadValues({}, apiConfig.params), { offset, limit, q: inputValue })
|
|
310
310
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-autocomplete",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Availity MUI Autocomplete Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@availity/api-axios": "^11.0.0",
|
|
49
|
-
"@availity/mui-form-utils": "^1.3.
|
|
50
|
-
"@availity/mui-icon": "^1.1.
|
|
51
|
-
"@availity/mui-textfield": "^1.3.
|
|
49
|
+
"@availity/mui-form-utils": "^1.3.3",
|
|
50
|
+
"@availity/mui-icon": "^1.1.1",
|
|
51
|
+
"@availity/mui-textfield": "^1.3.2",
|
|
52
52
|
"@mui/material": "^6.4.5",
|
|
53
53
|
"@tanstack/react-query": "^4.36.1",
|
|
54
54
|
"react": "18.2.0",
|
|
@@ -58,13 +58,14 @@
|
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@availity/api-axios": "^8.0.7",
|
|
61
|
-
"@availity/mui-form-utils": "^1.3.
|
|
62
|
-
"@availity/mui-textfield": "^1.3.
|
|
61
|
+
"@availity/mui-form-utils": "^1.3.3",
|
|
62
|
+
"@availity/mui-textfield": "^1.3.2",
|
|
63
63
|
"@mui/material": "^6.4.5",
|
|
64
64
|
"@tanstack/react-query": "^4.36.1",
|
|
65
65
|
"react": ">=16.3.0"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
|
+
"sideEffects": false
|
|
70
71
|
}
|