monkey-front-components 0.0.433 → 0.0.434
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/esm2020/lib/components/shared/filter/filter.component.mjs +4 -1
- package/esm2020/lib/components/shared/filter/options/children/children.component.mjs +14 -7
- package/esm2020/lib/components/shared/filter/selected/item/item.component.mjs +19 -13
- package/esm2020/lib/components/shared/filter/selected/selected.component.mjs +15 -5
- package/fesm2015/monkey-front-components.mjs +45 -19
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +48 -22
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.434.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-components-0.0.433.tgz +0 -0
|
@@ -1579,13 +1579,20 @@ class MECXFilterOptionsChildrenComponent {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
onHandleChildrenAction(child) {
|
|
1581
1581
|
const { field, type, action } = child;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1582
|
+
try {
|
|
1583
|
+
if (type === 'with-action') {
|
|
1584
|
+
this.eventHandle.next(JSON.stringify({
|
|
1585
|
+
[field]: action()
|
|
1586
|
+
}));
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
this.onShow.next(child);
|
|
1590
|
+
}
|
|
1586
1591
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1592
|
+
catch (e) {
|
|
1593
|
+
console.log('=====7');
|
|
1594
|
+
console.log(e);
|
|
1595
|
+
console.log(action);
|
|
1589
1596
|
}
|
|
1590
1597
|
}
|
|
1591
1598
|
onHandleValidateSelected({ field, getValue }) {
|
|
@@ -1947,18 +1954,24 @@ class MECXFilterSelectedItemComponent {
|
|
|
1947
1954
|
this.onSubmit.next({ [field]: null });
|
|
1948
1955
|
}
|
|
1949
1956
|
onHandleShowFromChildren(event) {
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
this.
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1957
|
+
try {
|
|
1958
|
+
const { _option } = this;
|
|
1959
|
+
const { label } = _option;
|
|
1960
|
+
this.onHandleShowMenu();
|
|
1961
|
+
this.onHandleSubmit = (event) => {
|
|
1962
|
+
this.onSubmit.next({
|
|
1963
|
+
[_option.field]: JSON.stringify(event)
|
|
1964
|
+
});
|
|
1965
|
+
};
|
|
1966
|
+
this._option = {
|
|
1967
|
+
...event,
|
|
1968
|
+
label
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
catch (e) {
|
|
1972
|
+
console.log('=====9');
|
|
1973
|
+
console.log(e);
|
|
1974
|
+
}
|
|
1962
1975
|
}
|
|
1963
1976
|
}
|
|
1964
1977
|
MECXFilterSelectedItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MECXFilterSelectedItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1995,6 +2008,9 @@ class MECXFilterSelectedComponent {
|
|
|
1995
2008
|
}
|
|
1996
2009
|
catch (e) {
|
|
1997
2010
|
// not to do
|
|
2011
|
+
console.log('=====8');
|
|
2012
|
+
console.log(e);
|
|
2013
|
+
console.log(value);
|
|
1998
2014
|
}
|
|
1999
2015
|
return false;
|
|
2000
2016
|
}
|
|
@@ -2020,12 +2036,19 @@ class MECXFilterSelectedComponent {
|
|
|
2020
2036
|
});
|
|
2021
2037
|
}
|
|
2022
2038
|
ngOnChanges(changes) {
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2039
|
+
try {
|
|
2040
|
+
if (changes.model) {
|
|
2041
|
+
const { currentValue } = changes.model;
|
|
2042
|
+
if (currentValue && JSON.stringify(currentValue) !== '{}') {
|
|
2043
|
+
this.onHandleSelectedValue(currentValue);
|
|
2044
|
+
}
|
|
2027
2045
|
}
|
|
2028
2046
|
}
|
|
2047
|
+
catch (e) {
|
|
2048
|
+
console.log('=====9');
|
|
2049
|
+
console.log(e);
|
|
2050
|
+
console.log(changes);
|
|
2051
|
+
}
|
|
2029
2052
|
}
|
|
2030
2053
|
onHandleClose() {
|
|
2031
2054
|
this.onClose.next();
|
|
@@ -2227,6 +2250,9 @@ class MECXFilterComponent {
|
|
|
2227
2250
|
}
|
|
2228
2251
|
catch (e) {
|
|
2229
2252
|
// not to do
|
|
2253
|
+
console.log('=====6');
|
|
2254
|
+
console.log(e);
|
|
2255
|
+
console.log(value);
|
|
2230
2256
|
}
|
|
2231
2257
|
return false;
|
|
2232
2258
|
}
|