@sumaris-net/ngx-components 1.10.4 → 1.10.7
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 +90 -89
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/core.module.js +3 -5
- package/esm2015/src/app/core/form/entity-editor.class.js +3 -2
- package/esm2015/src/app/core/services/model/entity.model.js +5 -1
- package/esm2015/src/app/core/table/table.class.js +1 -5
- package/fesm2015/sumaris-net.ngx-components.js +8 -8
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/core.module.d.ts +1 -2
- package/src/app/core/services/model/entity.model.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -9253,6 +9253,10 @@ function isInstanceOf(obj, constructor) {
|
|
|
9253
9253
|
}
|
|
9254
9254
|
// @dynamic
|
|
9255
9255
|
class EntityUtils {
|
|
9256
|
+
// Check that the object has a NOT nil attribute (ID by default)
|
|
9257
|
+
static isEntity(obj) {
|
|
9258
|
+
return isNotNil(obj.__typename) && (typeof obj.fromObject === 'function') && (typeof obj.asObject === 'function');
|
|
9259
|
+
}
|
|
9256
9260
|
// Check that the object has a NOT nil attribute (ID by default)
|
|
9257
9261
|
static isNotEmpty(obj, checkedAttribute) {
|
|
9258
9262
|
return !!obj && obj[checkedAttribute] !== null && obj[checkedAttribute] !== undefined;
|
|
@@ -20501,13 +20505,12 @@ AppIconComponent.propDecorators = {
|
|
|
20501
20505
|
};
|
|
20502
20506
|
|
|
20503
20507
|
class CoreModule {
|
|
20504
|
-
static forRoot(
|
|
20508
|
+
static forRoot() {
|
|
20505
20509
|
console.info('[core] Creating module (root)');
|
|
20506
20510
|
return {
|
|
20507
20511
|
ngModule: CoreModule,
|
|
20508
20512
|
providers: [
|
|
20509
|
-
PlatformService
|
|
20510
|
-
{ provide: ENVIRONMENT, useValue: environment }
|
|
20513
|
+
PlatformService
|
|
20511
20514
|
]
|
|
20512
20515
|
};
|
|
20513
20516
|
}
|
|
@@ -22219,10 +22222,6 @@ class AppTable {
|
|
|
22219
22222
|
if (deleted) {
|
|
22220
22223
|
this.visibleRowCount--;
|
|
22221
22224
|
this.totalRowCount--;
|
|
22222
|
-
// Forget is was the edited row
|
|
22223
|
-
if (row === this.editedRow) {
|
|
22224
|
-
this.editedRow = undefined;
|
|
22225
|
-
}
|
|
22226
22225
|
return res;
|
|
22227
22226
|
}
|
|
22228
22227
|
}
|
|
@@ -23581,6 +23580,7 @@ class AppEditorOptions extends AppTabEditorOptions {
|
|
|
23581
23580
|
// eslint-disable-next-line @angular-eslint/directive-class-suffix
|
|
23582
23581
|
class AppEntityEditor extends AppTabEditor {
|
|
23583
23582
|
constructor(injector, dataType, dataService, options) {
|
|
23583
|
+
var _a, _b;
|
|
23584
23584
|
super(injector.get(ActivatedRoute), injector.get(Router), injector.get(AlertController), injector.get(TranslateService), options);
|
|
23585
23585
|
this.dataType = dataType;
|
|
23586
23586
|
this.dataService = dataService;
|
|
@@ -23590,7 +23590,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
23590
23590
|
this.environement = injector.get(ENVIRONMENT);
|
|
23591
23591
|
options = Object.assign({
|
|
23592
23592
|
// Default options
|
|
23593
|
-
enableListenChanges:
|
|
23593
|
+
enableListenChanges: ((_a = this.environement.entityEditor) === null || _a === void 0 ? void 0 : _a.enableListenChanges) || false, listenIntervalInSeconds: toNumber((_b = this.environement.entityEditor) === null || _b === void 0 ? void 0 : _b.listenIntervalInSeconds, 0), pathIdAttribute: 'id', autoLoad: true, autoUpdateRoute: true, i18nPrefix: '' }, options);
|
|
23594
23594
|
this.settings = injector.get(LocalSettingsService);
|
|
23595
23595
|
this.errorTranslator = injector.get(FormErrorTranslator);
|
|
23596
23596
|
this.cd = injector.get(ChangeDetectorRef);
|