@fluxhub/fluxhub-lib 1.0.240 → 1.0.241
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 +22 -38
- 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 +17 -0
- package/docs/components/image_preview.html +41 -65
- 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 -1
- package/esm2015/lib/controls/image_preview.js +18 -43
- package/esm5/lib/controls/image-viewer/image-viewer.component.js +6 -1
- package/esm5/lib/controls/image_preview.js +20 -41
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -41
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +22 -38
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/image-viewer/image-viewer.component.d.ts +1 -0
- package/lib/controls/image_preview.d.ts +1 -25
- package/package.json +1 -1
|
@@ -16027,6 +16027,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16027
16027
|
this.preview = false;
|
|
16028
16028
|
this.indexChange = new EventEmitter();
|
|
16029
16029
|
this.configChange = new EventEmitter();
|
|
16030
|
+
this.init = new EventEmitter();
|
|
16030
16031
|
this.fullScreenEvent = new EventEmitter();
|
|
16031
16032
|
this.style = { transform: '', msTransform: '', oTransform: '', webkitTransform: '' };
|
|
16032
16033
|
this.fullscreen = false;
|
|
@@ -16049,6 +16050,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16049
16050
|
var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
|
|
16050
16051
|
this.config = this.mergeConfig(merged, this.config);
|
|
16051
16052
|
this.triggerConfigBinding();
|
|
16053
|
+
this.init.emit();
|
|
16052
16054
|
};
|
|
16053
16055
|
/**
|
|
16054
16056
|
* @param {?} event
|
|
@@ -16318,6 +16320,7 @@ var ImageViewerComponent = /** @class */ (function () {
|
|
|
16318
16320
|
config: [{ type: Input }],
|
|
16319
16321
|
indexChange: [{ type: Output }],
|
|
16320
16322
|
configChange: [{ type: Output }],
|
|
16323
|
+
init: [{ type: Output }],
|
|
16321
16324
|
fullScreenEvent: [{ type: Output }],
|
|
16322
16325
|
nextImage: [{ type: HostListener, args: ['window:keyup.ArrowRight', ['$event'],] }],
|
|
16323
16326
|
prevImage: [{ type: HostListener, args: ['window:keyup.ArrowLeft', ['$event'],] }],
|
|
@@ -16369,38 +16372,6 @@ var image_preview = /** @class */ (function () {
|
|
|
16369
16372
|
};
|
|
16370
16373
|
this.u = null;
|
|
16371
16374
|
this.already_open = false;
|
|
16372
|
-
this.config_photo = {
|
|
16373
|
-
btnClass: 'default',
|
|
16374
|
-
// The CSS class(es) that will apply to the buttons
|
|
16375
|
-
zoomFactor: 0.1,
|
|
16376
|
-
// The amount that the scale will be increased by
|
|
16377
|
-
containerBackgroundColor: '#ccc',
|
|
16378
|
-
// The color to use for the background. This can provided in hex, or rgb(a).
|
|
16379
|
-
wheelZoom: true,
|
|
16380
|
-
// If true, the mouse wheel can be used to zoom in
|
|
16381
|
-
allowFullscreen: false,
|
|
16382
|
-
// If true, the fullscreen button will be shown, allowing the user to entr fullscreen mode
|
|
16383
|
-
allowKeyboardNavigation: true,
|
|
16384
|
-
// If true, the left / right arrow keys can be used for navigation
|
|
16385
|
-
btnIcons: {
|
|
16386
|
-
// The icon classes that will apply to the buttons. By default, font-awesome is used.
|
|
16387
|
-
zoomIn: 'fa fa-plus',
|
|
16388
|
-
zoomOut: 'fa fa-minus',
|
|
16389
|
-
rotateClockwise: 'fa fa-repeat',
|
|
16390
|
-
rotateCounterClockwise: 'fa fa-undo',
|
|
16391
|
-
next: 'fa fa-arrow-right',
|
|
16392
|
-
prev: 'fa fa-arrow-left',
|
|
16393
|
-
fullscreen: 'fa fa-arrows-alt',
|
|
16394
|
-
},
|
|
16395
|
-
btnShow: {
|
|
16396
|
-
zoomIn: false,
|
|
16397
|
-
zoomOut: false,
|
|
16398
|
-
rotateClockwise: false,
|
|
16399
|
-
rotateCounterClockwise: false,
|
|
16400
|
-
next: false,
|
|
16401
|
-
prev: false
|
|
16402
|
-
}
|
|
16403
|
-
};
|
|
16404
16375
|
this.config_photo_big = {
|
|
16405
16376
|
btnClass: 'default',
|
|
16406
16377
|
// The CSS class(es) that will apply to the buttons
|
|
@@ -16441,8 +16412,10 @@ var image_preview = /** @class */ (function () {
|
|
|
16441
16412
|
* @return {?}
|
|
16442
16413
|
*/
|
|
16443
16414
|
function () {
|
|
16415
|
+
console.log('togglwe up');
|
|
16444
16416
|
this.photo_c.src = [];
|
|
16445
16417
|
this.photo_c.src.push(this.u.image_original[0]);
|
|
16418
|
+
this.photo_c.preview = false;
|
|
16446
16419
|
this.config = this.config_photo_big;
|
|
16447
16420
|
//this.photo_c.toggleFullscreen()
|
|
16448
16421
|
this.already_open = true;
|
|
@@ -16456,7 +16429,7 @@ var image_preview = /** @class */ (function () {
|
|
|
16456
16429
|
function () {
|
|
16457
16430
|
if (this.u != null)
|
|
16458
16431
|
if (this.u.image_thumbnail != null)
|
|
16459
|
-
if (this.u.image_thumbnail.length > 0 && this.preview
|
|
16432
|
+
if (this.u.image_thumbnail.length > 0 && this.photo_c.preview)
|
|
16460
16433
|
this.toggle_up();
|
|
16461
16434
|
};
|
|
16462
16435
|
/**
|
|
@@ -16495,17 +16468,28 @@ var image_preview = /** @class */ (function () {
|
|
|
16495
16468
|
* @return {?}
|
|
16496
16469
|
*/
|
|
16497
16470
|
function () {
|
|
16498
|
-
this.
|
|
16471
|
+
this.init();
|
|
16472
|
+
};
|
|
16473
|
+
/**
|
|
16474
|
+
* @return {?}
|
|
16475
|
+
*/
|
|
16476
|
+
image_preview.prototype.init = /**
|
|
16477
|
+
* @return {?}
|
|
16478
|
+
*/
|
|
16479
|
+
function () {
|
|
16499
16480
|
this._preview_c = false;
|
|
16500
|
-
if (
|
|
16481
|
+
if (this.u != null)
|
|
16501
16482
|
if (this.u.image_thumbnail != null)
|
|
16502
|
-
if (this.u.image_thumbnail
|
|
16503
|
-
this.
|
|
16483
|
+
if (this.u.image_thumbnail.length > 0)
|
|
16484
|
+
if (this.u.image_thumbnail[0] != this.u.image_original[0])
|
|
16485
|
+
this._preview_c = true;
|
|
16486
|
+
if (this.photo_c != null)
|
|
16487
|
+
this.photo_c.preview = this._preview_c;
|
|
16504
16488
|
};
|
|
16505
16489
|
image_preview.decorators = [
|
|
16506
16490
|
{ type: Component, args: [{
|
|
16507
16491
|
selector: 'image_preview',
|
|
16508
|
-
template: "\n \n
|
|
16492
|
+
template: "\n \n<fh-image-viewer (init)=\"init()\" (fullScreenEvent)=\"fullScreenEvent()\" [config]=\"config_photo_big\" #photo_c [src]=\"u.image_thumbnail\" index=\"0\"></fh-image-viewer>\n \n\n",
|
|
16509
16493
|
styles: ["\n\n "]
|
|
16510
16494
|
}] }
|
|
16511
16495
|
];
|