@sumaris-net/ngx-components 1.13.1 → 1.13.2
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 +10 -5
- 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/doc/changelog.md +2 -0
- package/esm2015/src/app/core/auth/form/form-auth.js +2 -2
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +3 -3
- package/esm2015/src/app/core/services/base-entity-service.class.js +6 -3
- package/esm2015/src/app/core/services/platform.service.js +4 -1
- package/fesm2015/sumaris-net.ngx-components.js +10 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/platform.service.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -17632,6 +17632,9 @@
|
|
|
17632
17632
|
PlatformService.prototype.isApp = function () {
|
|
17633
17633
|
return this._cordova && (this._android || this._ios);
|
|
17634
17634
|
};
|
|
17635
|
+
PlatformService.prototype.isMobileWeb = function () {
|
|
17636
|
+
return isMobile(window) && this.isWeb();
|
|
17637
|
+
};
|
|
17635
17638
|
Object.defineProperty(PlatformService.prototype, "canDownload", {
|
|
17636
17639
|
get: function () {
|
|
17637
17640
|
return !!this.downloader && this.isAndroidCordova();
|
|
@@ -20467,7 +20470,7 @@
|
|
|
20467
20470
|
_this.showPwd = false;
|
|
20468
20471
|
_this.onCancel = new i0.EventEmitter();
|
|
20469
20472
|
_this.onSubmit = new i0.EventEmitter();
|
|
20470
|
-
_this.mobile =
|
|
20473
|
+
_this.mobile = settings.mobile;
|
|
20471
20474
|
_this.canWorkOffline = _this.settings.hasOfflineFeature();
|
|
20472
20475
|
_this._enable = true;
|
|
20473
20476
|
return _this;
|
|
@@ -22925,10 +22928,10 @@
|
|
|
22925
22928
|
};
|
|
22926
22929
|
AppInstallUpgradeCard.prototype.getCompatibleInstallLinks = function (installLinks) {
|
|
22927
22930
|
// Cordova already running: not need to install
|
|
22928
|
-
if (this.platform.
|
|
22931
|
+
if (this.platform.isCordova())
|
|
22929
22932
|
return undefined;
|
|
22930
22933
|
// If mobile web: return all
|
|
22931
|
-
if (this.platform.
|
|
22934
|
+
if (this.platform.isMobileWeb()) {
|
|
22932
22935
|
return installLinks;
|
|
22933
22936
|
}
|
|
22934
22937
|
return undefined;
|
|
@@ -24312,8 +24315,10 @@
|
|
|
24312
24315
|
var _this = this;
|
|
24313
24316
|
if (isNil(id))
|
|
24314
24317
|
throw Error('Missing argument \'id\' ');
|
|
24315
|
-
if (!this.subscriptions.listenChanges)
|
|
24316
|
-
|
|
24318
|
+
if (!this.subscriptions.listenChanges) {
|
|
24319
|
+
console.warn(this.constructor.name + ".listenChanges() not implemented yet. Will empty observable");
|
|
24320
|
+
return rxjs.of();
|
|
24321
|
+
}
|
|
24317
24322
|
var variables = opts && opts.variables || {
|
|
24318
24323
|
id: id,
|
|
24319
24324
|
interval: toNumber(opts && opts.interval, 0) // no timer by default
|