sccoreui 6.5.14 → 6.5.15
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.
|
@@ -16,7 +16,7 @@ const ListBoxDropdown = (props) => {
|
|
|
16
16
|
// onSelectAll,
|
|
17
17
|
onSelectionChange, onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className, scrollElementId, optionsMenuRef = boxRef,
|
|
18
18
|
// buttonClassName,
|
|
19
|
-
showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, emptyFilterMessage, emptyMessage, dataLabel, onFilterValueChange, virtualScrollerOptions, virtualScroll, fetchData, } = props;
|
|
19
|
+
showChips, chipTemplate, chipClassName, chipsParentClassName, showRemoveIcon, removeIconSize, removeIconClassName, onRemoveItem, isDraggable, onDranghandle, onShow, onHide, onFocus, confirmationOption, selectedOptionNone, type, emptyFilterMessage, emptyMessage, dataLabel, onFilterValueChange, filterBy, virtualScrollerOptions, virtualScroll, fetchData, } = props;
|
|
20
20
|
const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
|
|
21
21
|
// const [inpValue, setInpValue] = useState<any>();
|
|
22
22
|
// const [checked, setChecked] = useState<boolean>(false);
|
|
@@ -128,7 +128,7 @@ const ListBoxDropdown = (props) => {
|
|
|
128
128
|
" list_box_dropdown border-round-lg border-1 overflow-hidden border-gray-200"
|
|
129
129
|
: "list_box_dropdown" }, { children: [headerTemplate && (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: headerTemplate() }), virtualScroll ? ((0, jsx_runtime_1.jsx)(virtualization_component_1.default, { emptyFilterMessage: emptyFilterMessage, listBoxclassName: listBoxclassName, emptyMessage: emptyMessage, multiple: multiple, onSelectionChange: onSelectionChange, listClassName: listClassName, filterPlaceholder: filterPlaceholder, optionTemplate: optionTemplate, optionLabel: optionLabel, values: values, fetchData: fetchData })) : ((0, jsx_runtime_1.jsx)(listbox_1.ListBox, { type: "sectionHeader", itemTemplate: (option) => ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: optionTemplate ? (optionTemplate(option)) : ((0, jsx_runtime_1.jsx)("span", { children: option[`${optionLabel}`] })) })), listClassName: `${selectedOptionNone ? "selected-none" : ""} ${listClassName
|
|
130
130
|
? listClassName
|
|
131
|
-
: " h-18rem overflow-auto "} ${selectAll && ""}`, filter: filter ? true : false, multiple: multiple ? true : false, value: selectedItems, onChange: (e) => onSelectOption(e), onFilterValueChange: onFilterValueChange, virtualScrollerOptions: virtualScrollerOptions, options: selectedOptionNone
|
|
131
|
+
: " h-18rem overflow-auto "} ${selectAll && ""}`, filter: filter ? true : false, filterBy: filterBy, multiple: multiple ? true : false, value: selectedItems, onChange: (e) => onSelectOption(e), onFilterValueChange: onFilterValueChange, virtualScrollerOptions: virtualScrollerOptions, options: selectedOptionNone
|
|
132
132
|
? listItems.length === selectedItems.length
|
|
133
133
|
? []
|
|
134
134
|
: listItems
|
|
@@ -268,6 +268,7 @@ export interface ListBoxDropdownTypes {
|
|
|
268
268
|
optionsMenuRef?: any;
|
|
269
269
|
dataLabel?: any;
|
|
270
270
|
onFilterValueChange?: (payload: any) => void;
|
|
271
|
+
filterBy?: string;
|
|
271
272
|
virtualScrollerOptions?: any;
|
|
272
273
|
virtualScroll?: boolean;
|
|
273
274
|
onSelectionChange?: (data: any) => void;
|