@lvce-editor/output-view 1.13.0 → 1.14.0
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.
|
@@ -1148,7 +1148,7 @@ const isEqual$2 = (oldState, newState) => {
|
|
|
1148
1148
|
};
|
|
1149
1149
|
|
|
1150
1150
|
const isEqual$1 = (oldState, newState) => {
|
|
1151
|
-
return oldState.selectedOption === newState.selectedOption && oldState.listItems === newState.listItems;
|
|
1151
|
+
return oldState.selectedOption === newState.selectedOption && oldState.listItems === newState.listItems && oldState.filteredItems === newState.filteredItems;
|
|
1152
1152
|
};
|
|
1153
1153
|
|
|
1154
1154
|
const isEqual = (oldState, newState) => {
|
|
@@ -1604,7 +1604,7 @@ const filterItems = (items, filterValue) => {
|
|
|
1604
1604
|
return items.filter(item => item.includes(filterValue));
|
|
1605
1605
|
};
|
|
1606
1606
|
|
|
1607
|
-
const handleFilterInput = async (state, value) => {
|
|
1607
|
+
const handleFilterInput = async (state, value, inputSource = User) => {
|
|
1608
1608
|
const {
|
|
1609
1609
|
listItems
|
|
1610
1610
|
} = state;
|
|
@@ -1612,7 +1612,8 @@ const handleFilterInput = async (state, value) => {
|
|
|
1612
1612
|
return {
|
|
1613
1613
|
...state,
|
|
1614
1614
|
filterValue: value,
|
|
1615
|
-
filteredItems: filteredItems
|
|
1615
|
+
filteredItems: filteredItems,
|
|
1616
|
+
inputSource
|
|
1616
1617
|
};
|
|
1617
1618
|
};
|
|
1618
1619
|
|
|
@@ -1955,7 +1956,7 @@ const refresh = async state => {
|
|
|
1955
1956
|
};
|
|
1956
1957
|
|
|
1957
1958
|
const renderFilterValue = (oldState, newState) => {
|
|
1958
|
-
return ['Viewlet.setValueByName', Filter, newState.filterValue];
|
|
1959
|
+
return ['Viewlet.setValueByName', newState.parentId, Filter, newState.filterValue];
|
|
1959
1960
|
};
|
|
1960
1961
|
|
|
1961
1962
|
const IconButton = 'IconButton';
|
|
@@ -2107,7 +2108,8 @@ const getFilterVirtualDom = () => {
|
|
|
2107
2108
|
className: 'InputBox FilterInput',
|
|
2108
2109
|
childCount: 0,
|
|
2109
2110
|
placeholder,
|
|
2110
|
-
onInput: HandleFilterInput
|
|
2111
|
+
onInput: HandleFilterInput,
|
|
2112
|
+
name: Filter
|
|
2111
2113
|
}];
|
|
2112
2114
|
};
|
|
2113
2115
|
|