ngx-wapp-components 1.9.1 → 1.9.2
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/misc/w-filter-panel/w-filter-panel.component.mjs +9 -1
- package/esm2020/lib/tables/w-table-lazy/w-table-lazy.component.mjs +1 -4
- package/fesm2015/ngx-wapp-components.mjs +8 -3
- package/fesm2015/ngx-wapp-components.mjs.map +1 -1
- package/fesm2020/ngx-wapp-components.mjs +8 -3
- package/fesm2020/ngx-wapp-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1238,9 +1238,6 @@ class WTableLazyComponent {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
this.lastQuery = adaptedQuery;
|
|
1240
1240
|
this.queryElements.emit(adaptedQuery);
|
|
1241
|
-
setTimeout(() => {
|
|
1242
|
-
this.loading = false;
|
|
1243
|
-
}, 1000);
|
|
1244
1241
|
}
|
|
1245
1242
|
reloadElements() {
|
|
1246
1243
|
this.lastQuery.rows = this.rowsPerPage;
|
|
@@ -2913,6 +2910,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImpor
|
|
|
2913
2910
|
args: ['segmentationApiToken']
|
|
2914
2911
|
}] } });
|
|
2915
2912
|
|
|
2913
|
+
const dateFormatRegExp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/;
|
|
2916
2914
|
class WFilterPanelComponent {
|
|
2917
2915
|
constructor(formBuilder, apiService, sessionStorage) {
|
|
2918
2916
|
this.formBuilder = formBuilder;
|
|
@@ -2999,6 +2997,13 @@ class WFilterPanelComponent {
|
|
|
2999
2997
|
advanced: this.storedQuery?.advancedQueryValue ? Object.assign({}, this.storedQuery?.advancedQueryValue) : null,
|
|
3000
2998
|
grouped: this.isAdvancedSearch && this.filterPanelObject.allowGrouped && this.groupedQueryCtrl ? Object.assign({}, this.groupedQueryCtrl?.value) : null
|
|
3001
2999
|
};
|
|
3000
|
+
//Detectar las fechas en string y convertirlas a Date
|
|
3001
|
+
const datesIndexes = this.storedQuery.basicQueryValue.rules
|
|
3002
|
+
.map((rule, index) => (dateFormatRegExp.test(rule.value) ? index : -1))
|
|
3003
|
+
.filter((index) => index !== -1);
|
|
3004
|
+
datesIndexes.forEach(dateIndex => {
|
|
3005
|
+
this.storedQuery.basicQueryValue.rules[dateIndex].value = new Date(this.storedQuery.basicQueryValue.rules[dateIndex].value);
|
|
3006
|
+
});
|
|
3002
3007
|
lastQuery = this.deleteFieldsWithoutValue(lastQuery);
|
|
3003
3008
|
lastQuery = this.handleEmptyFieldsQuery(lastQuery);
|
|
3004
3009
|
this.lastQuery.emit(lastQuery);
|