@sumaris-net/ngx-components 1.19.5-rc1 → 1.19.5-rc2
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 +36 -26
- 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 +4 -1
- package/esm2015/src/app/core/install/install-upgrade-card.component.js +4 -18
- package/esm2015/src/app/core/offline/update-offline-mode-card.component.js +26 -0
- package/esm2015/src/app/core/services/platform.service.js +1 -1
- package/esm2015/sumaris-net.ngx-components.js +8 -7
- package/fesm2015/sumaris-net.ngx-components.js +29 -17
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/install/install-upgrade-card.component.d.ts +1 -5
- package/src/app/core/offline/update-offline-mode-card.component.d.ts +8 -0
- package/sumaris-net.ngx-components.d.ts +7 -6
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -23269,7 +23269,6 @@
|
|
|
23269
23269
|
this.network = network;
|
|
23270
23270
|
this.environment = environment;
|
|
23271
23271
|
this._subscription = new rxjs.Subscription();
|
|
23272
|
-
this._showUpdateOfflineFeature = false;
|
|
23273
23272
|
this.loading = true;
|
|
23274
23273
|
this.hasDownloader = false;
|
|
23275
23274
|
this.downloading = false;
|
|
@@ -23277,21 +23276,7 @@
|
|
|
23277
23276
|
this.showUpgradeWarning = true;
|
|
23278
23277
|
this.showOfflineWarning = true;
|
|
23279
23278
|
this.showInstallButton = false;
|
|
23280
|
-
this.onUpdateOfflineModeClick = new i0.EventEmitter();
|
|
23281
23279
|
}
|
|
23282
|
-
Object.defineProperty(AppInstallUpgradeCard.prototype, "showUpdateOfflineFeature", {
|
|
23283
|
-
get: function () {
|
|
23284
|
-
return this._showUpdateOfflineFeature;
|
|
23285
|
-
},
|
|
23286
|
-
set: function (value) {
|
|
23287
|
-
if (value === this._showUpdateOfflineFeature)
|
|
23288
|
-
return; // Skip
|
|
23289
|
-
this._showUpdateOfflineFeature = value;
|
|
23290
|
-
this.markForCheck();
|
|
23291
|
-
},
|
|
23292
|
-
enumerable: false,
|
|
23293
|
-
configurable: true
|
|
23294
|
-
});
|
|
23295
23280
|
AppInstallUpgradeCard.prototype.ngOnInit = function () {
|
|
23296
23281
|
var _this = this;
|
|
23297
23282
|
this.offline = this.network.offline;
|
|
@@ -23315,7 +23300,6 @@
|
|
|
23315
23300
|
AppInstallUpgradeCard.prototype.ngOnDestroy = function () {
|
|
23316
23301
|
this._subscription.unsubscribe();
|
|
23317
23302
|
this._subscription = null;
|
|
23318
|
-
this.onUpdateOfflineModeClick.complete();
|
|
23319
23303
|
this.installLinks = null;
|
|
23320
23304
|
this.upgradeLinks = null;
|
|
23321
23305
|
};
|
|
@@ -23662,7 +23646,7 @@
|
|
|
23662
23646
|
AppInstallUpgradeCard.decorators = [
|
|
23663
23647
|
{ type: i0.Component, args: [{
|
|
23664
23648
|
selector: 'app-install-upgrade-card',
|
|
23665
|
-
template: "\n\n<!-- Offline mode card-->\n<ion-card *ngIf=\"showOfflineWarning && (!loading && offline || waitingNetwork)\"\n color=\"accent\"\n class=\"main ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row>\n <ion-col>\n <ion-text class=\"ion-text-wrap\" *ngIf=\"!waitingNetwork; else waitingNetworkText\">\n <h4>\n <b *ngIf=\"isLogin; else notLogin\" [innerHTML]=\"'NETWORK.INFO.OFFLINE_OR_UNAUTHORIZED'| translate\"></b>\n <ng-template #notLogin>\n <b [innerHTML]=\"'NETWORK.INFO.OFFLINE'| translate\"></b>\n </ng-template>\n </h4>\n <h3>\n <small [innerHTML]=\"'NETWORK.INFO.OFFLINE_HELP'|translate\"></small>\n </h3>\n </ion-text>\n <ng-template #waitingNetworkText>\n <ion-text class=\"ion-text-wrap\" [innerHTML]=\"'NETWORK.INFO.RETRY_TO_CONNECT'| translate\"></ion-text>\n </ng-template>\n </ion-col>\n <ion-col size=\"auto\">\n\n <!-- Retry button -->\n <ion-button *ngIf=\"!waitingNetwork; else waitingSpinner\" color=\"tertiary\" class=\"ion-float-end\"\n (click)=\"tryOnline()\">\n <span translate>NETWORK.BTN_CHECK_ALIVE</span>\n </ion-button>\n\n </ion-col>\n </ion-row>\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!-- Upgrade links -->\n<ion-card *ngIf=\"showUpgradeWarning && !loading && !offline && upgradeLinks\"\n color=\"accent\"\n class=\"ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row *ngFor=\"let link of upgradeLinks; last as last\">\n <ion-col>\n <ion-text class=\"ion-text-wrap\">\n <h3>\n <span *ngIf=\"link.version\" [innerHTML]=\"'INFO.UPDATE_APP_TO_VERSION'| translate: link\"></span>\n <span *ngIf=\"!link.version\" [innerHTML]=\"'INFO.UPDATE_APP'| translate: link\"></span>\n </h3>\n <h4>\n <small *ngIf=\"last\" [innerHTML]=\"'INFO.UPDATE_APP_HELP'|translate\"></small>\n </h4>\n </ion-text>\n </ion-col>\n\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"downloadButton; context: { $implicit: link }\"></ng-container>\n </ion-col>\n </ion-row>\n\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!-- Install links -->\n<ion-card *ngIf=\"showInstallButton && !loading && !offline && installLinks\"\n color=\"secondary\"\n class=\"ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row *ngFor=\"let link of installLinks; last as last\">\n <ion-col>\n <ion-text class=\"ion-text-wrap\">\n <h3 [innerHTML]=\"'INFO.DOWNLOAD_APP_TITLE'| translate: {name: link.name, platform: getPlatformName(link.platform) }\"></h3>\n <h4><small *ngIf=\"last\" [innerHTML]=\"'INFO.DOWNLOAD_APP_HELP'|translate\"></small></h4>\n </ion-text>\n </ion-col>\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"downloadButton; context: { $implicit: link }\"></ng-container>\n </ion-col>\n </ion-row>\n\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!--
|
|
23649
|
+
template: "\n\n<!-- Offline mode card-->\n<ion-card *ngIf=\"showOfflineWarning && (!loading && offline || waitingNetwork)\"\n color=\"accent\"\n class=\"main ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row>\n <ion-col>\n <ion-text class=\"ion-text-wrap\" *ngIf=\"!waitingNetwork; else waitingNetworkText\">\n <h4>\n <b *ngIf=\"isLogin; else notLogin\" [innerHTML]=\"'NETWORK.INFO.OFFLINE_OR_UNAUTHORIZED'| translate\"></b>\n <ng-template #notLogin>\n <b [innerHTML]=\"'NETWORK.INFO.OFFLINE'| translate\"></b>\n </ng-template>\n </h4>\n <h3>\n <small [innerHTML]=\"'NETWORK.INFO.OFFLINE_HELP'|translate\"></small>\n </h3>\n </ion-text>\n <ng-template #waitingNetworkText>\n <ion-text class=\"ion-text-wrap\" [innerHTML]=\"'NETWORK.INFO.RETRY_TO_CONNECT'| translate\"></ion-text>\n </ng-template>\n </ion-col>\n <ion-col size=\"auto\">\n\n <!-- Retry button -->\n <ion-button *ngIf=\"!waitingNetwork; else waitingSpinner\" color=\"tertiary\" class=\"ion-float-end\"\n (click)=\"tryOnline()\">\n <span translate>NETWORK.BTN_CHECK_ALIVE</span>\n </ion-button>\n\n </ion-col>\n </ion-row>\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!-- Upgrade links -->\n<ion-card *ngIf=\"showUpgradeWarning && !loading && !offline && upgradeLinks\"\n color=\"accent\"\n class=\"ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row *ngFor=\"let link of upgradeLinks; last as last\">\n <ion-col>\n <ion-text class=\"ion-text-wrap\">\n <h3>\n <span *ngIf=\"link.version\" [innerHTML]=\"'INFO.UPDATE_APP_TO_VERSION'| translate: link\"></span>\n <span *ngIf=\"!link.version\" [innerHTML]=\"'INFO.UPDATE_APP'| translate: link\"></span>\n </h3>\n <h4>\n <small *ngIf=\"last\" [innerHTML]=\"'INFO.UPDATE_APP_HELP'|translate\"></small>\n </h4>\n </ion-text>\n </ion-col>\n\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"downloadButton; context: { $implicit: link }\"></ng-container>\n </ion-col>\n </ion-row>\n\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!-- Install links -->\n<ion-card *ngIf=\"showInstallButton && !loading && !offline && installLinks\"\n color=\"secondary\"\n class=\"ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row *ngFor=\"let link of installLinks; last as last\">\n <ion-col>\n <ion-text class=\"ion-text-wrap\">\n <h3 [innerHTML]=\"'INFO.DOWNLOAD_APP_TITLE'| translate: {name: link.name, platform: getPlatformName(link.platform) }\"></h3>\n <h4><small *ngIf=\"last\" [innerHTML]=\"'INFO.DOWNLOAD_APP_HELP'|translate\"></small></h4>\n </ion-text>\n </ion-col>\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"downloadButton; context: { $implicit: link }\"></ng-container>\n </ion-col>\n </ion-row>\n\n </ion-grid>\n\n </ion-card-content>\n</ion-card>\n\n<!-- Display a download button, depending on the link URL, and the device platform -->\n<ng-template #downloadButton let-link>\n\n <ng-container *ngIf=\"link.filename; else redirectButton\">\n\n <ng-container *ngIf=\"hasDownloader; else webDownloadButton\">\n <!-- Download using platform -->\n <ion-button (click)=\"download($event, asLink(link))\"\n *ngIf=\"!link.location; else openButton\"\n [disabled]=\"link.downloading\"\n color=\"tertiary\" class=\"ion-float-end\">\n <ion-icon slot=\"start\" *ngIf=\"!link.downloading\" name=\"download\"></ion-icon>\n <ion-spinner slot=\"start\" class=\"ion-no-padding\" *ngIf=\"link.downloading\"></ion-spinner>\n <ion-label translate>COMMON.BTN_DOWNLOAD</ion-label>\n </ion-button>\n\n <!-- Open APK button -->\n <ng-template #openButton>\n <ion-button *ngIf=\"link.location\"\n (click)=\"openFile($event, link)\"\n color=\"tertiary\" class=\"ion-float-end\" >\n <ion-label translate>COMMON.BTN_INSTALL</ion-label>\n </ion-button>\n </ng-template>\n </ng-container>\n\n <!-- Web download button -->\n <ng-template #webDownloadButton>\n <ion-button [download]=\"link.downloadFilename\"\n [href]=\"link.url\"\n color=\"tertiary\" class=\"ion-float-end\" >\n <ion-label translate>COMMON.BTN_DOWNLOAD</ion-label>\n </ion-button>\n </ng-template>\n </ng-container>\n\n <!-- Web redirect button -->\n <ng-template #redirectButton>\n <ion-button [href]=\"link.url\" rel=\"external\" color=\"tertiary\" class=\"ion-float-end\" target=\"_blank\">\n <ion-label translate>COMMON.BTN_SHOW_MORE</ion-label>\n </ion-button>\n </ng-template>\n</ng-template>\n\n\n<!-- Waiting spinner -->\n<ng-template #waitingSpinner>\n <ion-spinner color=\"light\"></ion-spinner>\n</ng-template>\n",
|
|
23666
23650
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
23667
23651
|
animations: [slideUpDownAnimation],
|
|
23668
23652
|
styles: ["ion-text small{font-size:85%}"]
|
|
@@ -23683,9 +23667,7 @@
|
|
|
23683
23667
|
isLogin: [{ type: i0.Input }],
|
|
23684
23668
|
showUpgradeWarning: [{ type: i0.Input }],
|
|
23685
23669
|
showOfflineWarning: [{ type: i0.Input }],
|
|
23686
|
-
showInstallButton: [{ type: i0.Input }]
|
|
23687
|
-
showUpdateOfflineFeature: [{ type: i0.Input }],
|
|
23688
|
-
onUpdateOfflineModeClick: [{ type: i0.Output }]
|
|
23670
|
+
showInstallButton: [{ type: i0.Input }]
|
|
23689
23671
|
};
|
|
23690
23672
|
|
|
23691
23673
|
var IsLoginAccountPipe = /** @class */ (function () {
|
|
@@ -24223,6 +24205,31 @@
|
|
|
24223
24205
|
ref: [{ type: i0.Input }]
|
|
24224
24206
|
};
|
|
24225
24207
|
|
|
24208
|
+
var AppUpdateOfflineModeCard = /** @class */ (function () {
|
|
24209
|
+
function AppUpdateOfflineModeCard() {
|
|
24210
|
+
this.onUpdateClick = new i0.EventEmitter();
|
|
24211
|
+
}
|
|
24212
|
+
AppUpdateOfflineModeCard.prototype.ngOnDestroy = function () {
|
|
24213
|
+
this.onUpdateClick.complete();
|
|
24214
|
+
};
|
|
24215
|
+
return AppUpdateOfflineModeCard;
|
|
24216
|
+
}());
|
|
24217
|
+
AppUpdateOfflineModeCard.decorators = [
|
|
24218
|
+
{ type: i0.Component, args: [{
|
|
24219
|
+
selector: 'app-update-offline-mode-card',
|
|
24220
|
+
template: "\n<!-- Update offline feature card-->\n<ion-card color=\"accent\"\n class=\"main ion-no-margin\"\n @slideUpDownAnimation>\n <ion-card-content class=\"ion-no-padding\">\n <ion-grid>\n <ion-row *ngIf=\"!progressionValue; else progression\">\n <ion-col>\n <ion-text class=\"ion-text-wrap\" >\n <h4>\n <b [innerHTML]=\"'NETWORK.INFO.UPDATE_OFFLINE_MODE'| translate\"></b>\n </h4>\n <h3>\n <small [innerHTML]=\"'NETWORK.INFO.UPDATE_OFFLINE_MODE_HELP'|translate\"></small>\n </h3>\n </ion-text>\n </ion-col>\n\n <!-- Update button -->\n <ion-col size=\"auto\">\n <ion-button color=\"tertiary\" class=\"ion-float-end\"\n (click)=\"onUpdateClick.emit($event)\">\n <span translate>NETWORK.BTN_UPDATE</span>\n </ion-button>\n </ion-col>\n </ion-row>\n\n <ng-template #progression>\n <ion-row>\n <ion-col>\n <ion-text class=\"ion-text-wrap\" [innerHTML]=\"progressionMessage\"></ion-text>\n </ion-col>\n </ion-row>\n <ion-row>\n <ion-col>\n <ion-progress-bar [value]=\"progressionValue / 100\"></ion-progress-bar>\n </ion-col>\n </ion-row>\n </ng-template>\n </ion-grid>\n\n\n </ion-card-content>\n</ion-card>\n",
|
|
24221
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
24222
|
+
animations: [slideUpDownAnimation],
|
|
24223
|
+
styles: ["ion-text small{font-size:85%}"]
|
|
24224
|
+
},] }
|
|
24225
|
+
];
|
|
24226
|
+
AppUpdateOfflineModeCard.ctorParameters = function () { return []; };
|
|
24227
|
+
AppUpdateOfflineModeCard.propDecorators = {
|
|
24228
|
+
progressionMessage: [{ type: i0.Input }],
|
|
24229
|
+
progressionValue: [{ type: i0.Input }],
|
|
24230
|
+
onUpdateClick: [{ type: i0.Output }]
|
|
24231
|
+
};
|
|
24232
|
+
|
|
24226
24233
|
var CoreModule = /** @class */ (function () {
|
|
24227
24234
|
function CoreModule() {
|
|
24228
24235
|
}
|
|
@@ -24272,6 +24279,7 @@
|
|
|
24272
24279
|
// Network
|
|
24273
24280
|
SelectPeerModal,
|
|
24274
24281
|
AppInstallUpgradeCard,
|
|
24282
|
+
AppUpdateOfflineModeCard,
|
|
24275
24283
|
// Other components
|
|
24276
24284
|
TableSelectColumnsComponent,
|
|
24277
24285
|
ActionsColumnComponent,
|
|
@@ -24307,6 +24315,7 @@
|
|
|
24307
24315
|
AppPropertiesForm,
|
|
24308
24316
|
AppListForm,
|
|
24309
24317
|
AppInstallUpgradeCard,
|
|
24318
|
+
AppUpdateOfflineModeCard,
|
|
24310
24319
|
DepartmentToStringPipe,
|
|
24311
24320
|
AppIconComponent,
|
|
24312
24321
|
TextPopover,
|
|
@@ -32246,12 +32255,13 @@
|
|
|
32246
32255
|
exports.ɵf = RegisterModal;
|
|
32247
32256
|
exports.ɵg = UserSettingsValidatorService;
|
|
32248
32257
|
exports.ɵh = LocalSettingsValidatorService;
|
|
32249
|
-
exports.ɵi =
|
|
32250
|
-
exports.ɵj =
|
|
32251
|
-
exports.ɵk =
|
|
32252
|
-
exports.ɵl =
|
|
32253
|
-
exports.ɵm =
|
|
32254
|
-
exports.ɵn =
|
|
32258
|
+
exports.ɵi = AppUpdateOfflineModeCard;
|
|
32259
|
+
exports.ɵj = AppIconComponent;
|
|
32260
|
+
exports.ɵk = DateTestPage;
|
|
32261
|
+
exports.ɵl = NumpadTestPage;
|
|
32262
|
+
exports.ɵm = MatBadgeIconTestPage;
|
|
32263
|
+
exports.ɵn = ToastTestingModule;
|
|
32264
|
+
exports.ɵo = ToastTestingPage;
|
|
32255
32265
|
|
|
32256
32266
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
32257
32267
|
|