monkey-front-components 0.0.439 → 0.0.440

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.
@@ -1878,40 +1878,24 @@ class MECXFilterOptionsComponent extends BaseComponent {
1878
1878
  }
1879
1879
  onHandleLoadValues(first = false) {
1880
1880
  const { values } = this.option;
1881
- try {
1882
- if (!values?.length && first) {
1883
- this.option?.loadValues?.();
1884
- }
1885
- else if (!first) {
1886
- this.option?.loadMoreValues?.();
1887
- }
1881
+ if (!values?.length && first) {
1882
+ this.option?.loadValues?.();
1888
1883
  }
1889
- catch (e) {
1890
- console.log('====asdaosdioaisdoa');
1891
- console.log(e);
1884
+ else if (!first) {
1885
+ this.option?.loadMoreValues?.();
1892
1886
  }
1893
1887
  }
1894
1888
  ngOnInit() {
1895
1889
  const { option } = this;
1896
- try {
1897
- console.log('option?.values$');
1898
- console.log(option?.values$);
1899
- option?.values$()?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1900
- console.log('!@@@@@@@@@@@@@@@@@@@@');
1901
- console.log(data);
1902
- this.option.values = data;
1903
- });
1904
- option?.pagination$?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1905
- this._hasMoreValues = !!(data?.next);
1906
- });
1907
- option?.control$?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1908
- this.onHandleLoading(data?.isLoading);
1909
- });
1910
- }
1911
- catch (e) {
1912
- console.log('=====1');
1913
- console.log(e);
1914
- }
1890
+ option?.values$()?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1891
+ this.option.values = data;
1892
+ });
1893
+ option?.pagination$()?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1894
+ this._hasMoreValues = !!(data?.next);
1895
+ });
1896
+ option?.control$()?.pipe(takeUntil(this.__unsubscribeAll)).subscribe((data) => {
1897
+ this.onHandleLoading(data?.isLoading);
1898
+ });
1915
1899
  }
1916
1900
  ngAfterViewInit() {
1917
1901
  this.onHandleLoadValues(true);
@@ -2271,6 +2255,7 @@ class MECXFilterComponent {
2271
2255
  this._showOrder = false;
2272
2256
  };
2273
2257
  // not to do
2258
+ console.log('veio aqui no filtro do batman');
2274
2259
  }
2275
2260
  set search(value) {
2276
2261
  this._search = value;