@fluxhub/fluxhub-lib 1.0.230 → 1.0.232
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/fluxhub-fluxhub-lib.umd.js +29 -10
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/ImageViewerComponent.html +1 -1
- package/docs/components/image_preview.html +112 -5
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/image-viewer/image-viewer.component.js +6 -5
- package/esm2015/lib/controls/image_preview.js +29 -8
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +6 -5
- package/esm5/lib/controls/image_preview.js +33 -8
- package/fesm2015/fluxhub-fluxhub-lib.js +27 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +32 -11
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image_preview.d.ts +3 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteM
|
|
|
34
34
|
import { __read, __assign, __extends } from 'tslib';
|
|
35
35
|
import { enabled, request, exit } from 'screenfull';
|
|
36
36
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
37
|
-
import { Injectable,
|
|
37
|
+
import { Injectable, Component, Directive, Input, ElementRef, Inject, PLATFORM_ID, Output, EventEmitter, ViewChild, forwardRef, Pipe, ViewContainerRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
38
38
|
import { Http } from '@angular/http';
|
|
39
39
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
40
40
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -16019,7 +16019,8 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16019
16019
|
this.customEvent = new EventEmitter();
|
|
16020
16020
|
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
16021
16021
|
this.fullscreen = false;
|
|
16022
|
-
this.loading = true;
|
|
16022
|
+
this.loading = false; // true;
|
|
16023
|
+
// true;
|
|
16023
16024
|
this.scale = 1;
|
|
16024
16025
|
this.rotation = 0;
|
|
16025
16026
|
this.translateX = 0;
|
|
@@ -16048,7 +16049,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16048
16049
|
*/
|
|
16049
16050
|
function (event) {
|
|
16050
16051
|
if (this.canNavigate(event) && this.index < this.src.length - 1) {
|
|
16051
|
-
this.loading = true;
|
|
16052
|
+
this.loading = false; //true;
|
|
16052
16053
|
this.index++;
|
|
16053
16054
|
this.triggerIndexBinding();
|
|
16054
16055
|
this.reset();
|
|
@@ -16064,7 +16065,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16064
16065
|
*/
|
|
16065
16066
|
function (event) {
|
|
16066
16067
|
if (this.canNavigate(event) && this.index > 0) {
|
|
16067
|
-
this.loading = true;
|
|
16068
|
+
this.loading = false; // true;
|
|
16068
16069
|
this.index--;
|
|
16069
16070
|
this.triggerIndexBinding();
|
|
16070
16071
|
this.reset();
|
|
@@ -16142,7 +16143,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16142
16143
|
* @return {?}
|
|
16143
16144
|
*/
|
|
16144
16145
|
function () {
|
|
16145
|
-
this.loading = true;
|
|
16146
|
+
this.loading = false; //true;
|
|
16146
16147
|
};
|
|
16147
16148
|
/**
|
|
16148
16149
|
* @param {?} evt
|
|
@@ -16330,7 +16331,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16330
16331
|
*/
|
|
16331
16332
|
var image_preview = /** @class */ (function () {
|
|
16332
16333
|
function image_preview() {
|
|
16333
|
-
this.
|
|
16334
|
+
this._preview = true;
|
|
16334
16335
|
this.u = null;
|
|
16335
16336
|
this.already_open = false;
|
|
16336
16337
|
this.config_photo = {
|
|
@@ -16421,6 +16422,27 @@ var image_preview = /** @class */ (function () {
|
|
|
16421
16422
|
*/
|
|
16422
16423
|
function (event) {
|
|
16423
16424
|
};
|
|
16425
|
+
Object.defineProperty(image_preview.prototype, "preview", {
|
|
16426
|
+
get: /**
|
|
16427
|
+
* @return {?}
|
|
16428
|
+
*/
|
|
16429
|
+
function () {
|
|
16430
|
+
return this._preview;
|
|
16431
|
+
},
|
|
16432
|
+
set: /**
|
|
16433
|
+
* @param {?} preview
|
|
16434
|
+
* @return {?}
|
|
16435
|
+
*/
|
|
16436
|
+
function (preview) {
|
|
16437
|
+
if (!preview)
|
|
16438
|
+
this.config = this.config_photo_big;
|
|
16439
|
+
else
|
|
16440
|
+
this.config = this.config_photo;
|
|
16441
|
+
this._preview = preview;
|
|
16442
|
+
},
|
|
16443
|
+
enumerable: true,
|
|
16444
|
+
configurable: true
|
|
16445
|
+
});
|
|
16424
16446
|
/**
|
|
16425
16447
|
* @return {?}
|
|
16426
16448
|
*/
|
|
@@ -16428,20 +16450,19 @@ var image_preview = /** @class */ (function () {
|
|
|
16428
16450
|
* @return {?}
|
|
16429
16451
|
*/
|
|
16430
16452
|
function () {
|
|
16431
|
-
|
|
16432
|
-
this.photo_c.config = this.config_photo_big;
|
|
16453
|
+
this.config = this.config_photo;
|
|
16433
16454
|
};
|
|
16434
16455
|
image_preview.decorators = [
|
|
16435
16456
|
{ type: Component, args: [{
|
|
16436
16457
|
selector: 'image_preview',
|
|
16437
|
-
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0 && preview\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"
|
|
16458
|
+
template: "\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" [hidden]=\"already_open\"> \n \n <button type=\"button\" class=\"default\" (click)=\"toggle_up()\" *ngIf=\"u?.image_thumbnail?.length>0 && preview\">\n <span class=\"fa fa-arrows-alt\"></span>\n </button>\n\n </div>\n\n <div style=\"max-width:460px\"><ngx-image-viewer [config]=\"config\" *ngIf=\"u?.image_thumbnail?.length>0\" #photo_c (customEvent)=\"handleEvent($event)\" [src]=\"u.image_thumbnail\" index=\"0\"></ngx-image-viewer>\n \n </div>\n",
|
|
16438
16459
|
styles: ["\n\n "]
|
|
16439
16460
|
}] }
|
|
16440
16461
|
];
|
|
16441
16462
|
image_preview.propDecorators = {
|
|
16442
|
-
preview: [{ type: Input }],
|
|
16443
16463
|
u: [{ type: Input }],
|
|
16444
|
-
photo_c: [{ type: ViewChild, args: ['photo_c',] }]
|
|
16464
|
+
photo_c: [{ type: ViewChild, args: ['photo_c',] }],
|
|
16465
|
+
preview: [{ type: Input }]
|
|
16445
16466
|
};
|
|
16446
16467
|
return image_preview;
|
|
16447
16468
|
}());
|