@algorithm-shift/design-system 1.3.119 → 1.3.120
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -450,7 +450,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
|
|
|
450
450
|
axiosInstance?: any;
|
|
451
451
|
outputFormat?: 'array' | 'comma' | 'semicolon';
|
|
452
452
|
}
|
|
453
|
-
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className,
|
|
453
|
+
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
|
|
454
454
|
|
|
455
455
|
interface PageChangeProps {
|
|
456
456
|
page: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -450,7 +450,7 @@ interface LazyMultiSelectDropdownProps extends Omit<any, 'lazyLoad'> {
|
|
|
450
450
|
axiosInstance?: any;
|
|
451
451
|
outputFormat?: 'array' | 'comma' | 'semicolon';
|
|
452
452
|
}
|
|
453
|
-
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className,
|
|
453
|
+
declare function LazyMultiSelectDropdown({ value, onChange, placeholder, className, disabled, readOnly, source, apiUrl, pageSize, dataKey, dataLabel, errorMessage, axiosInstance, outputFormat, ...props }: LazyMultiSelectDropdownProps): react_jsx_runtime.JSX.Element;
|
|
454
454
|
|
|
455
455
|
interface PageChangeProps {
|
|
456
456
|
page: number;
|
package/dist/index.js
CHANGED
|
@@ -3468,7 +3468,6 @@ function LazyMultiSelectDropdown({
|
|
|
3468
3468
|
onChange,
|
|
3469
3469
|
placeholder,
|
|
3470
3470
|
className,
|
|
3471
|
-
id,
|
|
3472
3471
|
disabled,
|
|
3473
3472
|
readOnly,
|
|
3474
3473
|
source,
|
|
@@ -3534,10 +3533,10 @@ function LazyMultiSelectDropdown({
|
|
|
3534
3533
|
}
|
|
3535
3534
|
};
|
|
3536
3535
|
const selectedOptions = (0, import_react30.useMemo)(() => {
|
|
3537
|
-
return normalizedValue.map((
|
|
3538
|
-
const fromLazy = lazyOptions.find((opt) => opt.value ===
|
|
3536
|
+
return normalizedValue.map((id) => {
|
|
3537
|
+
const fromLazy = lazyOptions.find((opt) => opt.value === id);
|
|
3539
3538
|
if (fromLazy) return fromLazy;
|
|
3540
|
-
return { value:
|
|
3539
|
+
return { value: id, label: id };
|
|
3541
3540
|
});
|
|
3542
3541
|
}, [normalizedValue, lazyOptions]);
|
|
3543
3542
|
(0, import_react30.useEffect)(() => {
|
|
@@ -3572,11 +3571,11 @@ function LazyMultiSelectDropdown({
|
|
|
3572
3571
|
} else {
|
|
3573
3572
|
updated = ensureUnique([...normalizedValue, val]);
|
|
3574
3573
|
}
|
|
3575
|
-
onChange?.(convertOutput(updated),
|
|
3574
|
+
onChange?.(convertOutput(updated), props.name ?? "");
|
|
3576
3575
|
};
|
|
3577
3576
|
const removeTag = (val) => {
|
|
3578
3577
|
const updated = normalizedValue.filter((v) => v !== val);
|
|
3579
|
-
onChange?.(convertOutput(updated),
|
|
3578
|
+
onChange?.(convertOutput(updated), props.name ?? "");
|
|
3580
3579
|
};
|
|
3581
3580
|
const handleFocus = () => {
|
|
3582
3581
|
if (!disabled) {
|