@universis/ngx-tables 0.7.27 → 0.7.29
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/universis-ngx-tables.umd.js +17 -7
- package/bundles/universis-ngx-tables.umd.js.map +1 -1
- package/bundles/universis-ngx-tables.umd.min.js +1 -1
- package/bundles/universis-ngx-tables.umd.min.js.map +1 -1
- package/esm2015/lib/components/advanced-search-form/advanced-search-form.component.js +9 -4
- package/esm2015/lib/components/advanced-table/advanced-table.component.js +6 -1
- package/esm2015/lib/components/advanced-table/advanced-table.formatters.js +5 -5
- package/esm5/lib/components/advanced-search-form/advanced-search-form.component.js +9 -4
- package/esm5/lib/components/advanced-table/advanced-table.component.js +6 -1
- package/esm5/lib/components/advanced-table/advanced-table.formatters.js +5 -5
- package/fesm2015/universis-ngx-tables.js +18 -8
- package/fesm2015/universis-ngx-tables.js.map +1 -1
- package/fesm5/universis-ngx-tables.js +17 -7
- package/fesm5/universis-ngx-tables.js.map +1 -1
- package/lib/components/advanced-search-form/advanced-search-form.component.d.ts +4 -1
- package/lib/components/advanced-table/advanced-table.component.d.ts +3 -0
- package/package.json +1 -1
- package/universis-ngx-tables.metadata.json +1 -1
|
@@ -210,7 +210,7 @@ var ActionLinkFormatter = /** @class */ (function (_super) {
|
|
|
210
210
|
}
|
|
211
211
|
if (x.formatOptions && x.formatOptions.commands) {
|
|
212
212
|
var urlTree = _this.createUrlTree(row, x.formatOptions);
|
|
213
|
-
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
213
|
+
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
214
214
|
}
|
|
215
215
|
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
216
216
|
})
|
|
@@ -276,7 +276,7 @@ var ActionButtonFormatter = /** @class */ (function (_super) {
|
|
|
276
276
|
}
|
|
277
277
|
if (x.commands) {
|
|
278
278
|
var urlTree = _this.createUrlTree(row, x);
|
|
279
|
-
return "<a class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
279
|
+
return "<a class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
280
280
|
}
|
|
281
281
|
return "<a class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
282
282
|
})
|
|
@@ -326,7 +326,7 @@ var ActionSplitButtonFormatter = /** @class */ (function (_super) {
|
|
|
326
326
|
var defaultAction = actions[0];
|
|
327
327
|
var defaultActionHref = void 0;
|
|
328
328
|
if (defaultAction && defaultAction.commands) {
|
|
329
|
-
defaultActionHref = this.createUrlTree(row, defaultAction).toString();
|
|
329
|
+
defaultActionHref = '#' + this.createUrlTree(row, defaultAction).toString();
|
|
330
330
|
}
|
|
331
331
|
else {
|
|
332
332
|
defaultActionHref = AdvancedColumnFormatter.template(defaultAction.href)(row);
|
|
@@ -337,7 +337,7 @@ var ActionSplitButtonFormatter = /** @class */ (function (_super) {
|
|
|
337
337
|
}
|
|
338
338
|
if (x.commands) {
|
|
339
339
|
var urlTree = _this.createUrlTree(row, x);
|
|
340
|
-
return "<a class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
340
|
+
return "<a class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
341
341
|
}
|
|
342
342
|
return "<a class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(TranslateService).instant(x.title) + "\n </a>";
|
|
343
343
|
})
|
|
@@ -907,6 +907,7 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
907
907
|
this.order = new EventEmitter();
|
|
908
908
|
this.scroll = new EventEmitter();
|
|
909
909
|
this.selectedItems = new EventEmitter();
|
|
910
|
+
this.loading = new EventEmitter();
|
|
910
911
|
this.scrollable = true;
|
|
911
912
|
this.serverSide = true;
|
|
912
913
|
this.lengthMenu = [50, 100, 200, 500];
|
|
@@ -1326,6 +1327,9 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
1326
1327
|
this.destroy();
|
|
1327
1328
|
}
|
|
1328
1329
|
if (this.config) {
|
|
1330
|
+
this.loading.emit({
|
|
1331
|
+
target: this
|
|
1332
|
+
});
|
|
1329
1333
|
// parse properties
|
|
1330
1334
|
if (Object.prototype.hasOwnProperty.call(this.config, 'selectable')) {
|
|
1331
1335
|
this.selectable = this.config.selectable;
|
|
@@ -2084,6 +2088,7 @@ var AdvancedTableComponent = /** @class */ (function () {
|
|
|
2084
2088
|
order: [{ type: Output, args: ['order',] }],
|
|
2085
2089
|
scroll: [{ type: Output, args: ['scroll',] }],
|
|
2086
2090
|
selectedItems: [{ type: Output, args: ['selectedItems',] }],
|
|
2091
|
+
loading: [{ type: Output, args: ['loading',] }],
|
|
2087
2092
|
scrollable: [{ type: Input }],
|
|
2088
2093
|
serverSide: [{ type: Input }],
|
|
2089
2094
|
lengthMenu: [{ type: Input }],
|
|
@@ -2497,8 +2502,9 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
|
|
|
2497
2502
|
_this._http = _http;
|
|
2498
2503
|
_this.form = {};
|
|
2499
2504
|
_this.refreshForm = new EventEmitter();
|
|
2505
|
+
_this.loading = new EventEmitter();
|
|
2500
2506
|
_this.submission = { data: {} };
|
|
2501
|
-
_this.
|
|
2507
|
+
_this.componentLoading = true;
|
|
2502
2508
|
return _this;
|
|
2503
2509
|
}
|
|
2504
2510
|
AdvancedSearchFormComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -2544,10 +2550,13 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
|
|
|
2544
2550
|
this.submission = {
|
|
2545
2551
|
data: this.filter
|
|
2546
2552
|
};
|
|
2553
|
+
this.loading.emit({
|
|
2554
|
+
target: this
|
|
2555
|
+
});
|
|
2547
2556
|
this.refreshForm.emit({
|
|
2548
2557
|
form: this.form
|
|
2549
2558
|
});
|
|
2550
|
-
this.
|
|
2559
|
+
this.componentLoading = false;
|
|
2551
2560
|
this.filterSubscription = this.filterChange.subscribe(function (filter$$1) {
|
|
2552
2561
|
_this.submission.data = filter$$1;
|
|
2553
2562
|
_this.refreshForm.emit({
|
|
@@ -2611,7 +2620,8 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
|
|
|
2611
2620
|
formComponent: [{ type: ViewChild, args: ['formioComponent',] }],
|
|
2612
2621
|
form: [{ type: Input }],
|
|
2613
2622
|
formSrc: [{ type: Input }],
|
|
2614
|
-
refreshForm: [{ type: Output }]
|
|
2623
|
+
refreshForm: [{ type: Output }],
|
|
2624
|
+
loading: [{ type: Output }]
|
|
2615
2625
|
};
|
|
2616
2626
|
return AdvancedSearchFormComponent;
|
|
2617
2627
|
}(AdvancedTableSearchBaseComponent));
|