@sumaris-net/ngx-components 1.9.0 → 1.9.1
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/sumaris-net.ngx-components.umd.js +28 -44
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/admin/users/list/users.js +5 -22
- package/esm2015/src/app/core/table/memory-table.class.js +2 -7
- package/esm2015/src/app/core/table/table.class.js +21 -24
- package/esm2015/src/app/social/list/user-events.table.js +3 -8
- package/fesm2015/sumaris-net.ngx-components.js +27 -44
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/admin/users/list/users.d.ts +1 -12
- package/src/app/core/table/memory-table.class.d.ts +0 -1
- package/src/app/core/table/table.class.d.ts +7 -9
- package/src/app/social/list/user-events.table.d.ts +0 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -24616,13 +24616,8 @@
|
|
|
24616
24616
|
// @dynamic
|
|
24617
24617
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
24618
24618
|
var AppTable = /** @class */ (function () {
|
|
24619
|
-
function AppTable(
|
|
24620
|
-
|
|
24621
|
-
this.router = router;
|
|
24622
|
-
this.platform = platform;
|
|
24623
|
-
this.location = location;
|
|
24624
|
-
this.modalCtrl = modalCtrl;
|
|
24625
|
-
this.settings = settings;
|
|
24619
|
+
function AppTable(injector, columns, _dataSource, _filter) {
|
|
24620
|
+
var _this = this;
|
|
24626
24621
|
this.columns = columns;
|
|
24627
24622
|
this._dataSource = _dataSource;
|
|
24628
24623
|
this._filter = _filter;
|
|
@@ -24665,13 +24660,19 @@
|
|
|
24665
24660
|
this.onDirty = new i0.EventEmitter();
|
|
24666
24661
|
this.onError = new i0.EventEmitter();
|
|
24667
24662
|
this._paginator = null;
|
|
24668
|
-
this.
|
|
24669
|
-
this.
|
|
24670
|
-
this.
|
|
24671
|
-
this.
|
|
24672
|
-
this.
|
|
24663
|
+
this.route = injector.get(i3.ActivatedRoute);
|
|
24664
|
+
this.router = injector.get(i3.Router);
|
|
24665
|
+
this.location = injector.get(i1$4.Location);
|
|
24666
|
+
this.settings = injector.get(LocalSettingsService);
|
|
24667
|
+
this.translate = injector.get(i1$2.TranslateService);
|
|
24668
|
+
this.modalCtrl = injector.get(i1$5.ModalController);
|
|
24669
|
+
this.alertCtrl = injector.get(i1$5.AlertController);
|
|
24670
|
+
this.toastController = injector.get(i1$5.ToastController);
|
|
24671
|
+
this.formErrorAdapter = injector.get(FormErrorTranslator);
|
|
24672
|
+
this.mobile = this.settings.mobile;
|
|
24673
|
+
// Autocomplete fields
|
|
24673
24674
|
this._autocompleteConfigHolder = new MatAutocompleteConfigHolder({
|
|
24674
|
-
getUserAttributes: function (a, b) { return settings.getFieldDisplayAttributes(a, b); }
|
|
24675
|
+
getUserAttributes: function (a, b) { return _this.settings.getFieldDisplayAttributes(a, b); }
|
|
24675
24676
|
});
|
|
24676
24677
|
this.autocompleteFields = this._autocompleteConfigHolder.fields;
|
|
24677
24678
|
}
|
|
@@ -26109,9 +26110,12 @@
|
|
|
26109
26110
|
return (this.i18nColumnPrefix || '') + changeCaseToUnderscore(columnName).toUpperCase();
|
|
26110
26111
|
};
|
|
26111
26112
|
AppTable.prototype.generateTableId = function () {
|
|
26112
|
-
|
|
26113
|
+
var id = this.location.path(true)
|
|
26114
|
+
.replace(/[?].*$/g, '')
|
|
26115
|
+
.replace(/\/[\d]+/g, '_id')
|
|
26116
|
+
+ '_' + this.constructor.name;
|
|
26113
26117
|
//if (this.debug) console.debug("[table] id = " + id);
|
|
26114
|
-
|
|
26118
|
+
return id;
|
|
26115
26119
|
};
|
|
26116
26120
|
AppTable.prototype.addRowToTable = function (insertAt) {
|
|
26117
26121
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -26406,16 +26410,10 @@
|
|
|
26406
26410
|
{ type: i0.Directive }
|
|
26407
26411
|
];
|
|
26408
26412
|
AppTable.ctorParameters = function () { return [
|
|
26409
|
-
{ type:
|
|
26410
|
-
{ type: i3.Router },
|
|
26411
|
-
{ type: undefined },
|
|
26412
|
-
{ type: i1$4.Location },
|
|
26413
|
-
{ type: i1$5.ModalController },
|
|
26414
|
-
{ type: LocalSettingsService },
|
|
26413
|
+
{ type: i0.Injector },
|
|
26415
26414
|
{ type: Array },
|
|
26416
26415
|
{ type: EntitiesTableDataSource },
|
|
26417
|
-
{ type: undefined }
|
|
26418
|
-
{ type: i0.Injector }
|
|
26416
|
+
{ type: undefined }
|
|
26419
26417
|
]; };
|
|
26420
26418
|
AppTable.propDecorators = {
|
|
26421
26419
|
settingsId: [{ type: i0.Input }],
|
|
@@ -27960,8 +27958,7 @@
|
|
|
27960
27958
|
var AppInMemoryTable = /** @class */ (function (_super) {
|
|
27961
27959
|
__extends(AppInMemoryTable, _super);
|
|
27962
27960
|
function AppInMemoryTable(injector, columns, dataType, memoryDataService, validatorService, options, filter) {
|
|
27963
|
-
var _this = _super.call(this, injector
|
|
27964
|
-
_this.injector = injector;
|
|
27961
|
+
var _this = _super.call(this, injector, columns, new EntitiesTableDataSource(dataType, memoryDataService, validatorService, options), filter) || this;
|
|
27965
27962
|
_this.columns = columns;
|
|
27966
27963
|
_this.dataType = dataType;
|
|
27967
27964
|
_this.memoryDataService = memoryDataService;
|
|
@@ -28470,7 +28467,7 @@
|
|
|
28470
28467
|
var UserEventsTable = /** @class */ (function (_super) {
|
|
28471
28468
|
__extends(UserEventsTable, _super);
|
|
28472
28469
|
function UserEventsTable(injector, accountService, service, entities, cd, environment) {
|
|
28473
|
-
var _this = _super.call(this, injector
|
|
28470
|
+
var _this = _super.call(this, injector,
|
|
28474
28471
|
// columns
|
|
28475
28472
|
RESERVED_START_COLUMNS
|
|
28476
28473
|
.concat([
|
|
@@ -28479,8 +28476,7 @@
|
|
|
28479
28476
|
'eventType',
|
|
28480
28477
|
'message'
|
|
28481
28478
|
])
|
|
28482
|
-
.concat(RESERVED_END_COLUMNS), null, null
|
|
28483
|
-
_this.injector = injector;
|
|
28479
|
+
.concat(RESERVED_END_COLUMNS), null, null) || this;
|
|
28484
28480
|
_this.accountService = accountService;
|
|
28485
28481
|
_this.service = service;
|
|
28486
28482
|
_this.entities = entities;
|
|
@@ -28878,8 +28874,8 @@
|
|
|
28878
28874
|
|
|
28879
28875
|
var UsersPage = /** @class */ (function (_super) {
|
|
28880
28876
|
__extends(UsersPage, _super);
|
|
28881
|
-
function UsersPage(
|
|
28882
|
-
var _this = _super.call(this,
|
|
28877
|
+
function UsersPage(injector, accountService, validatorService, configService, dataService, cd, formBuilder, environment) {
|
|
28878
|
+
var _this = _super.call(this, injector, RESERVED_START_COLUMNS
|
|
28883
28879
|
.concat([
|
|
28884
28880
|
'avatar',
|
|
28885
28881
|
'lastName',
|
|
@@ -28898,14 +28894,8 @@
|
|
|
28898
28894
|
dataServiceOptions: {
|
|
28899
28895
|
saveOnlyDirtyRows: true
|
|
28900
28896
|
}
|
|
28901
|
-
}), null
|
|
28902
|
-
_this.route = route;
|
|
28903
|
-
_this.router = router;
|
|
28904
|
-
_this.platform = platform;
|
|
28905
|
-
_this.location = location;
|
|
28906
|
-
_this.modalCtrl = modalCtrl;
|
|
28897
|
+
}), null) || this;
|
|
28907
28898
|
_this.accountService = accountService;
|
|
28908
|
-
_this.settings = settings;
|
|
28909
28899
|
_this.validatorService = validatorService;
|
|
28910
28900
|
_this.configService = configService;
|
|
28911
28901
|
_this.dataService = dataService;
|
|
@@ -29044,19 +29034,13 @@
|
|
|
29044
29034
|
},] }
|
|
29045
29035
|
];
|
|
29046
29036
|
UsersPage.ctorParameters = function () { return [
|
|
29047
|
-
{ type:
|
|
29048
|
-
{ type: i3.Router },
|
|
29049
|
-
{ type: PlatformService },
|
|
29050
|
-
{ type: i1$4.Location },
|
|
29051
|
-
{ type: i1$5.ModalController },
|
|
29037
|
+
{ type: i0.Injector },
|
|
29052
29038
|
{ type: AccountService },
|
|
29053
|
-
{ type: LocalSettingsService },
|
|
29054
29039
|
{ type: ngxMaterialTable.ValidatorService },
|
|
29055
29040
|
{ type: ConfigService },
|
|
29056
29041
|
{ type: PersonService },
|
|
29057
29042
|
{ type: i0.ChangeDetectorRef },
|
|
29058
29043
|
{ type: i1.FormBuilder },
|
|
29059
|
-
{ type: i0.Injector },
|
|
29060
29044
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
29061
29045
|
]; };
|
|
29062
29046
|
UsersPage.propDecorators = {
|