@apexcura/ui-components 0.0.9-Beta14 → 0.0.9-Beta2
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -17,7 +17,10 @@ type ElementType = {
|
|
|
17
17
|
suffix?: React.ReactNode;
|
|
18
18
|
maxLength?: number;
|
|
19
19
|
fieldNames?: any[];
|
|
20
|
-
onChange?: (value: string | number | boolean | any[]
|
|
20
|
+
onChange?: (value: string | number | boolean | any[] | {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
}[]) => void;
|
|
21
24
|
dropDownOptions: any[];
|
|
22
25
|
};
|
|
23
26
|
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,10 @@ type ElementType = {
|
|
|
17
17
|
suffix?: React.ReactNode;
|
|
18
18
|
maxLength?: number;
|
|
19
19
|
fieldNames?: any[];
|
|
20
|
-
onChange?: (value: string | number | boolean | any[]
|
|
20
|
+
onChange?: (value: string | number | boolean | any[] | {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
}[]) => void;
|
|
21
24
|
dropDownOptions: any[];
|
|
22
25
|
};
|
|
23
26
|
|
package/dist/index.js
CHANGED
|
@@ -327,6 +327,7 @@ var import_antd9 = require("antd");
|
|
|
327
327
|
var MultipleSelectElement = (props) => {
|
|
328
328
|
const handleChange = (value) => {
|
|
329
329
|
if (props.onChange) {
|
|
330
|
+
console.log(value);
|
|
330
331
|
props.onChange(value);
|
|
331
332
|
}
|
|
332
333
|
};
|
|
@@ -336,7 +337,7 @@ var MultipleSelectElement = (props) => {
|
|
|
336
337
|
mode: "multiple",
|
|
337
338
|
placeholder: props.placeholder,
|
|
338
339
|
onChange: handleChange,
|
|
339
|
-
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
|
|
340
|
+
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title), id: String(eachOption.id) }))
|
|
340
341
|
}
|
|
341
342
|
);
|
|
342
343
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -281,6 +281,7 @@ import { Select as Select3 } from "antd";
|
|
|
281
281
|
var MultipleSelectElement = (props) => {
|
|
282
282
|
const handleChange = (value) => {
|
|
283
283
|
if (props.onChange) {
|
|
284
|
+
console.log(value);
|
|
284
285
|
props.onChange(value);
|
|
285
286
|
}
|
|
286
287
|
};
|
|
@@ -290,7 +291,7 @@ var MultipleSelectElement = (props) => {
|
|
|
290
291
|
mode: "multiple",
|
|
291
292
|
placeholder: props.placeholder,
|
|
292
293
|
onChange: handleChange,
|
|
293
|
-
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title) }))
|
|
294
|
+
options: props.dropDownOptions?.map((eachOption) => ({ label: String(eachOption.title), value: String(eachOption.title), id: String(eachOption.id) }))
|
|
294
295
|
}
|
|
295
296
|
);
|
|
296
297
|
};
|