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.
@@ -1579,13 +1579,20 @@ class MECXFilterOptionsChildrenComponent {
1579
1579
  }
1580
1580
  onHandleChildrenAction(child) {
1581
1581
  const { field, type, action } = child;
1582
- if (type === 'with-action') {
1583
- this.eventHandle.next(JSON.stringify({
1584
- [field]: action()
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
- else {
1588
- this.onShow.next(child);
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
- const { _option } = this;
1951
- const { label } = _option;
1952
- this.onHandleShowMenu();
1953
- this.onHandleSubmit = (event) => {
1954
- this.onSubmit.next({
1955
- [_option.field]: JSON.stringify(event)
1956
- });
1957
- };
1958
- this._option = {
1959
- ...event,
1960
- label
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
- if (changes.model) {
2024
- const { currentValue } = changes.model;
2025
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
2026
- this.onHandleSelectedValue(currentValue);
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
  }