funda-ui 4.7.105 → 4.7.108
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/Chatbox/index.js +2 -2
- package/MultipleSelect/index.d.ts +1 -1
- package/MultipleSelect/index.js +3 -1
- package/lib/cjs/Chatbox/index.js +2 -2
- package/lib/cjs/MultipleSelect/index.d.ts +1 -1
- package/lib/cjs/MultipleSelect/index.js +3 -1
- package/lib/esm/Chatbox/index.tsx +2 -2
- package/lib/esm/MultipleSelect/index.tsx +5 -2
- package/package.json +1 -1
package/Chatbox/index.js
CHANGED
|
@@ -5692,9 +5692,9 @@ var Chatbox = function Chatbox(props) {
|
|
|
5692
5692
|
handleClickSafe();
|
|
5693
5693
|
}
|
|
5694
5694
|
},
|
|
5695
|
-
onChange: function onChange(e) {
|
|
5695
|
+
onChange: function onChange(e, el, value) {
|
|
5696
5696
|
var _args$onInputChange, _args16;
|
|
5697
|
-
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current,
|
|
5697
|
+
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, value);
|
|
5698
5698
|
},
|
|
5699
5699
|
onFocus: function onFocus() {
|
|
5700
5700
|
setFocused(true);
|
|
@@ -9,7 +9,7 @@ export interface OptionConfig {
|
|
|
9
9
|
depth?: number;
|
|
10
10
|
children?: OptionConfig[];
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
extendedContent?: React.ReactNode;
|
|
12
|
+
extendedContent?: (isSelected: boolean) => React.ReactNode | React.ReactNode;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
15
|
export declare type MultipleSelectProps = {
|
package/MultipleSelect/index.js
CHANGED
|
@@ -3282,13 +3282,15 @@ var MultipleSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
3282
3282
|
var dragdropListDataInit = function dragdropListDataInit(data) {
|
|
3283
3283
|
// Add appendControl to list
|
|
3284
3284
|
data.forEach(function (item, index) {
|
|
3285
|
-
|
|
3285
|
+
var _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(true) : item.extendedContent;
|
|
3286
|
+
item.appendControl = getExtControll(index, item.id, item.value, _extendedContent, tempDefaultValue);
|
|
3286
3287
|
});
|
|
3287
3288
|
return data;
|
|
3288
3289
|
};
|
|
3289
3290
|
var dragdropListDefaultDataInit = function dragdropListDefaultDataInit(data) {
|
|
3290
3291
|
// Update appendControl to list
|
|
3291
3292
|
data.forEach(function (item, index) {
|
|
3293
|
+
var _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(false) : item.extendedContent;
|
|
3292
3294
|
item.appendControl = getExtControll(index, item.id, item.value, item.extendedContent, tempDefaultValue, false);
|
|
3293
3295
|
});
|
|
3294
3296
|
return data;
|
package/lib/cjs/Chatbox/index.js
CHANGED
|
@@ -5692,9 +5692,9 @@ var Chatbox = function Chatbox(props) {
|
|
|
5692
5692
|
handleClickSafe();
|
|
5693
5693
|
}
|
|
5694
5694
|
},
|
|
5695
|
-
onChange: function onChange(e) {
|
|
5695
|
+
onChange: function onChange(e, el, value) {
|
|
5696
5696
|
var _args$onInputChange, _args16;
|
|
5697
|
-
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current,
|
|
5697
|
+
(_args$onInputChange = (_args16 = args()).onInputChange) === null || _args$onInputChange === void 0 ? void 0 : _args$onInputChange.call(_args16, inputContentRef.current, value);
|
|
5698
5698
|
},
|
|
5699
5699
|
onFocus: function onFocus() {
|
|
5700
5700
|
setFocused(true);
|
|
@@ -9,7 +9,7 @@ export interface OptionConfig {
|
|
|
9
9
|
depth?: number;
|
|
10
10
|
children?: OptionConfig[];
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
extendedContent?: React.ReactNode;
|
|
12
|
+
extendedContent?: (isSelected: boolean) => React.ReactNode | React.ReactNode;
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}
|
|
15
15
|
export declare type MultipleSelectProps = {
|
|
@@ -3282,13 +3282,15 @@ var MultipleSelect = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonj
|
|
|
3282
3282
|
var dragdropListDataInit = function dragdropListDataInit(data) {
|
|
3283
3283
|
// Add appendControl to list
|
|
3284
3284
|
data.forEach(function (item, index) {
|
|
3285
|
-
|
|
3285
|
+
var _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(true) : item.extendedContent;
|
|
3286
|
+
item.appendControl = getExtControll(index, item.id, item.value, _extendedContent, tempDefaultValue);
|
|
3286
3287
|
});
|
|
3287
3288
|
return data;
|
|
3288
3289
|
};
|
|
3289
3290
|
var dragdropListDefaultDataInit = function dragdropListDefaultDataInit(data) {
|
|
3290
3291
|
// Update appendControl to list
|
|
3291
3292
|
data.forEach(function (item, index) {
|
|
3293
|
+
var _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(false) : item.extendedContent;
|
|
3292
3294
|
item.appendControl = getExtControll(index, item.id, item.value, item.extendedContent, tempDefaultValue, false);
|
|
3293
3295
|
});
|
|
3294
3296
|
return data;
|
|
@@ -1496,8 +1496,8 @@ const Chatbox = (props: ChatboxProps) => {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
1498
|
}}
|
|
1499
|
-
onChange={(e) => {
|
|
1500
|
-
args().onInputChange?.(inputContentRef.current,
|
|
1499
|
+
onChange={(e: React.MouseEvent, el: any, value: string) => {
|
|
1500
|
+
args().onInputChange?.(inputContentRef.current, value);
|
|
1501
1501
|
}}
|
|
1502
1502
|
onFocus={() => {
|
|
1503
1503
|
setFocused(true);
|
|
@@ -33,7 +33,7 @@ export interface OptionConfig {
|
|
|
33
33
|
depth?: number;
|
|
34
34
|
children?: OptionConfig[];
|
|
35
35
|
disabled?: boolean;
|
|
36
|
-
extendedContent?: React.ReactNode;
|
|
36
|
+
extendedContent?: (isSelected: boolean) => React.ReactNode | React.ReactNode;
|
|
37
37
|
[key: string]: any;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -253,15 +253,18 @@ const MultipleSelect = forwardRef((props: MultipleSelectProps, externalRef: any)
|
|
|
253
253
|
const dragdropListDataInit = (data: any[]) => {
|
|
254
254
|
// Add appendControl to list
|
|
255
255
|
data.forEach((item: any, index: number) => {
|
|
256
|
-
|
|
256
|
+
const _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(true) : item.extendedContent;
|
|
257
|
+
item.appendControl = getExtControll(index, item.id, item.value, _extendedContent, tempDefaultValue);
|
|
257
258
|
});
|
|
258
259
|
|
|
260
|
+
|
|
259
261
|
|
|
260
262
|
return data;
|
|
261
263
|
};
|
|
262
264
|
const dragdropListDefaultDataInit = (data: any[]) => {
|
|
263
265
|
// Update appendControl to list
|
|
264
266
|
data.forEach((item: any, index: number) => {
|
|
267
|
+
const _extendedContent = typeof item.extendedContent === 'function' ? item.extendedContent(false) : item.extendedContent;
|
|
265
268
|
item.appendControl = getExtControll(index, item.id, item.value, item.extendedContent, tempDefaultValue, false);
|
|
266
269
|
});
|
|
267
270
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.7.
|
|
5
|
+
"version": "4.7.108",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|