sccoreui 6.5.14 → 6.5.16
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/App.scss
CHANGED
|
@@ -846,11 +846,11 @@ div:has(ul.date_filter) .p-datepicker-footer {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
-
.errorField {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
}
|
|
849
|
+
// .errorField {
|
|
850
|
+
// color: var(--red-500);
|
|
851
|
+
// height: auto;
|
|
852
|
+
// line-height: 20px;
|
|
853
|
+
// }
|
|
854
854
|
|
|
855
855
|
.full_form_field {
|
|
856
856
|
// width: 37.125rem;
|
|
@@ -2054,7 +2054,8 @@ div:has(ul.date_filter) .p-datepicker-footer {
|
|
|
2054
2054
|
|
|
2055
2055
|
.errorField {
|
|
2056
2056
|
color: var(--red-500);
|
|
2057
|
-
height:
|
|
2057
|
+
max-height: 50px;
|
|
2058
|
+
padding-block: 6px;
|
|
2058
2059
|
}
|
|
2059
2060
|
|
|
2060
2061
|
.full_form_field {
|
|
@@ -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
|
|
@@ -38,11 +38,10 @@ function RowVirtualizerDynamic(props) {
|
|
|
38
38
|
return;
|
|
39
39
|
const scrollOffset = el.scrollTop + el.clientHeight;
|
|
40
40
|
const threshold = el.scrollHeight - 100;
|
|
41
|
-
const checCount = allCount.current
|
|
41
|
+
const checCount = allCount.current != null
|
|
42
42
|
? allCount.current > totalRecordsCount.current
|
|
43
43
|
: true;
|
|
44
|
-
if (scrollOffset >= threshold && !loadingRef.current && checCount) {
|
|
45
|
-
setLoading(true);
|
|
44
|
+
if (el.scrollHeight > el.clientHeight && scrollOffset >= threshold && !loadingRef.current && checCount) {
|
|
46
45
|
loadingRef.current = true;
|
|
47
46
|
fetchMoreData(Object.assign(Object.assign({}, initialFetch), { pageIndex: pageIndex.current }));
|
|
48
47
|
}
|
|
@@ -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;
|