@esfaenza/admin-module 11.2.14 → 11.2.17
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/bundles/esfaenza-admin-module.umd.js +8 -5
- package/bundles/esfaenza-admin-module.umd.js.map +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js +2 -2
- package/bundles/esfaenza-admin-module.umd.min.js.map +1 -1
- package/esfaenza-admin-module.metadata.json +1 -1
- package/esm2015/lib/components/dynamic_views/adm_dynamic_views.component.js +8 -6
- package/esm2015/lib/components/dynamic_views/adm_dynamic_views.component.loc.js +2 -1
- package/fesm2015/esfaenza-admin-module.js +8 -5
- package/fesm2015/esfaenza-admin-module.js.map +1 -1
- package/lib/components/dynamic_views/adm_dynamic_views.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1711,6 +1711,7 @@
|
|
|
1711
1711
|
_super.prototype.set.call(_this, "en->it", "Name", ["Nome"]);
|
|
1712
1712
|
_super.prototype.set.call(_this, "en->it", "Loading Application Dynamic Views", ["Carico le Viste Dinamiche Applicative"]);
|
|
1713
1713
|
_super.prototype.set.call(_this, "en->it", "View Name is mandatory for search operations", ["Il nome della vista è obbligatorio per le operazioni di ricerca"]);
|
|
1714
|
+
_super.prototype.set.call(_this, "en->it", "No element found for Dynamic View", ["Nessun elemento trovato per la vista dinamica"]);
|
|
1714
1715
|
return _this;
|
|
1715
1716
|
}
|
|
1716
1717
|
return AdmDynamicViewsLoc;
|
|
@@ -1734,9 +1735,10 @@
|
|
|
1734
1735
|
this.mod = mod;
|
|
1735
1736
|
this.searchView = new DynamicViewsView();
|
|
1736
1737
|
this.Names = [];
|
|
1737
|
-
this.searchInProgress = false;
|
|
1738
1738
|
this.badSearch = false;
|
|
1739
1739
|
this.currentName = "";
|
|
1740
|
+
// Staccato dalla view perché deve essere distrutta e ricreata di continuo
|
|
1741
|
+
this.filterName = "";
|
|
1740
1742
|
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1741
1743
|
}
|
|
1742
1744
|
AdmDynamicViewsComponent.prototype.ngOnInit = function () {
|
|
@@ -1786,9 +1788,10 @@
|
|
|
1786
1788
|
};
|
|
1787
1789
|
AdmDynamicViewsComponent.prototype.sendSearch = function (resetPage) {
|
|
1788
1790
|
if (resetPage === void 0) { resetPage = true; }
|
|
1789
|
-
this.
|
|
1791
|
+
this.searchView.searchinprogress = true;
|
|
1790
1792
|
if (resetPage)
|
|
1791
1793
|
this.searchView.page = 1;
|
|
1794
|
+
this.searchView.filtername = this.filterName;
|
|
1792
1795
|
this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData, this.searchView);
|
|
1793
1796
|
};
|
|
1794
1797
|
AdmDynamicViewsComponent.prototype.POSTGetItems = function (url, data) {
|
|
@@ -1804,12 +1807,12 @@
|
|
|
1804
1807
|
this.badSearch = false;
|
|
1805
1808
|
// Per force-resettare l'estable
|
|
1806
1809
|
if (this.currentName != this.searchView.filtername) {
|
|
1807
|
-
this.searchView = null;
|
|
1808
1810
|
this.currentName = this.searchView.filtername;
|
|
1811
|
+
this.searchView = null;
|
|
1809
1812
|
}
|
|
1810
1813
|
this.http.post(url, data).subscribe(function (t) {
|
|
1811
1814
|
_this.searchView = t;
|
|
1812
|
-
_this.
|
|
1815
|
+
_this.searchView.searchinprogress = false;
|
|
1813
1816
|
_this.localStorage.setItem("HotDinamitato", _this.searchView).subscribe();
|
|
1814
1817
|
});
|
|
1815
1818
|
};
|
|
@@ -1819,7 +1822,7 @@
|
|
|
1819
1822
|
{ type: core.Component, args: [{
|
|
1820
1823
|
selector: "adm_dynamic_views",
|
|
1821
1824
|
viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmDynamicViewsLoc }],
|
|
1822
|
-
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Dynamic Views' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"
|
|
1825
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Dynamic Views' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterName\" name=\"filtername\" [Source]=\"Names\" [SelectLabel]=\"'Name' | localize : lc\"></form-select>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div *ngIf=\"badSearch\" class=\"card card-info app-white-text app-padding-10\">{{'View Name is mandatory for search operations' | localize : lc}}</div>\r\n <ng-container *ngIf=\"!badSearch\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Application Dynamic Views' | localize : lc}}...</em></p>\r\n <div *ngIf=\"searchView && searchView.items.length > 0\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\"></es-table>\r\n </div>\r\n <div *ngIf=\"searchView && searchView.items.length == 0 && !searchView.searchinprogress\" class=\"card card-info app-white-text app-padding-10\">\r\n {{'No element found for Dynamic View' | localize : lc}} <strong>{{filterName}}</strong>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
1823
1826
|
},] }
|
|
1824
1827
|
];
|
|
1825
1828
|
AdmDynamicViewsComponent.ctorParameters = function () { return [
|