@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
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
}
|
|
368
368
|
if (x.formatOptions && x.formatOptions.commands) {
|
|
369
369
|
var urlTree = _this.createUrlTree(row, x.formatOptions);
|
|
370
|
-
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
370
|
+
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
371
371
|
}
|
|
372
372
|
return "<a data-name='" + x.name + "' class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
373
373
|
})
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
}
|
|
440
440
|
if (x.commands) {
|
|
441
441
|
var urlTree = _this.createUrlTree(row, x);
|
|
442
|
-
return "<a class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
442
|
+
return "<a class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
443
443
|
}
|
|
444
444
|
return "<a class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
445
445
|
})
|
|
@@ -495,7 +495,7 @@
|
|
|
495
495
|
var defaultAction = actions[0];
|
|
496
496
|
var defaultActionHref = void 0;
|
|
497
497
|
if (defaultAction && defaultAction.commands) {
|
|
498
|
-
defaultActionHref = this.createUrlTree(row, defaultAction).toString();
|
|
498
|
+
defaultActionHref = '#' + this.createUrlTree(row, defaultAction).toString();
|
|
499
499
|
}
|
|
500
500
|
else {
|
|
501
501
|
defaultActionHref = AdvancedColumnFormatter.template(defaultAction.href)(row);
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
}
|
|
507
507
|
if (x.commands) {
|
|
508
508
|
var urlTree = _this.createUrlTree(row, x);
|
|
509
|
-
return "<a class=\"dropdown-item\" href=\"" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
509
|
+
return "<a class=\"dropdown-item\" href=\"#" + urlTree.toString() + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
510
510
|
}
|
|
511
511
|
return "<a class=\"dropdown-item\" href=\"" + AdvancedColumnFormatter.template(x.href)(row) + "\">\n " + _this.injector.get(core.TranslateService).instant(x.title) + "\n </a>";
|
|
512
512
|
})
|
|
@@ -1117,6 +1117,7 @@
|
|
|
1117
1117
|
this.order = new i0.EventEmitter();
|
|
1118
1118
|
this.scroll = new i0.EventEmitter();
|
|
1119
1119
|
this.selectedItems = new i0.EventEmitter();
|
|
1120
|
+
this.loading = new i0.EventEmitter();
|
|
1120
1121
|
this.scrollable = true;
|
|
1121
1122
|
this.serverSide = true;
|
|
1122
1123
|
this.lengthMenu = [50, 100, 200, 500];
|
|
@@ -1536,6 +1537,9 @@
|
|
|
1536
1537
|
this.destroy();
|
|
1537
1538
|
}
|
|
1538
1539
|
if (this.config) {
|
|
1540
|
+
this.loading.emit({
|
|
1541
|
+
target: this
|
|
1542
|
+
});
|
|
1539
1543
|
// parse properties
|
|
1540
1544
|
if (Object.prototype.hasOwnProperty.call(this.config, 'selectable')) {
|
|
1541
1545
|
this.selectable = this.config.selectable;
|
|
@@ -2296,6 +2300,7 @@
|
|
|
2296
2300
|
order: [{ type: i0.Output, args: ['order',] }],
|
|
2297
2301
|
scroll: [{ type: i0.Output, args: ['scroll',] }],
|
|
2298
2302
|
selectedItems: [{ type: i0.Output, args: ['selectedItems',] }],
|
|
2303
|
+
loading: [{ type: i0.Output, args: ['loading',] }],
|
|
2299
2304
|
scrollable: [{ type: i0.Input }],
|
|
2300
2305
|
serverSide: [{ type: i0.Input }],
|
|
2301
2306
|
lengthMenu: [{ type: i0.Input }],
|
|
@@ -2713,8 +2718,9 @@
|
|
|
2713
2718
|
_this._http = _http;
|
|
2714
2719
|
_this.form = {};
|
|
2715
2720
|
_this.refreshForm = new i0.EventEmitter();
|
|
2721
|
+
_this.loading = new i0.EventEmitter();
|
|
2716
2722
|
_this.submission = { data: {} };
|
|
2717
|
-
_this.
|
|
2723
|
+
_this.componentLoading = true;
|
|
2718
2724
|
return _this;
|
|
2719
2725
|
}
|
|
2720
2726
|
AdvancedSearchFormComponent.prototype.ngOnChanges = function (changes) {
|
|
@@ -2760,10 +2766,13 @@
|
|
|
2760
2766
|
this.submission = {
|
|
2761
2767
|
data: this.filter
|
|
2762
2768
|
};
|
|
2769
|
+
this.loading.emit({
|
|
2770
|
+
target: this
|
|
2771
|
+
});
|
|
2763
2772
|
this.refreshForm.emit({
|
|
2764
2773
|
form: this.form
|
|
2765
2774
|
});
|
|
2766
|
-
this.
|
|
2775
|
+
this.componentLoading = false;
|
|
2767
2776
|
this.filterSubscription = this.filterChange.subscribe(function (filter) {
|
|
2768
2777
|
_this.submission.data = filter;
|
|
2769
2778
|
_this.refreshForm.emit({
|
|
@@ -2829,7 +2838,8 @@
|
|
|
2829
2838
|
formComponent: [{ type: i0.ViewChild, args: ['formioComponent',] }],
|
|
2830
2839
|
form: [{ type: i0.Input }],
|
|
2831
2840
|
formSrc: [{ type: i0.Input }],
|
|
2832
|
-
refreshForm: [{ type: i0.Output }]
|
|
2841
|
+
refreshForm: [{ type: i0.Output }],
|
|
2842
|
+
loading: [{ type: i0.Output }]
|
|
2833
2843
|
};
|
|
2834
2844
|
return AdvancedSearchFormComponent;
|
|
2835
2845
|
}(AdvancedTableSearchBaseComponent));
|