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.
- package/esm2020/lib/components/shared/filter/filter.component.mjs +2 -1
- package/esm2020/lib/components/shared/filter/options/options.component.mjs +14 -30
- package/fesm2015/monkey-front-components.mjs +14 -29
- package/fesm2015/monkey-front-components.mjs.map +1 -1
- package/fesm2020/monkey-front-components.mjs +14 -29
- package/fesm2020/monkey-front-components.mjs.map +1 -1
- package/monkey-front-components-0.0.440.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-components-0.0.439.tgz +0 -0
|
@@ -1878,40 +1878,24 @@ class MECXFilterOptionsComponent extends BaseComponent {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
onHandleLoadValues(first = false) {
|
|
1880
1880
|
const { values } = this.option;
|
|
1881
|
-
|
|
1882
|
-
|
|
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
|
-
|
|
1890
|
-
|
|
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
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
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;
|