iage.brochure
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "iage.brochure", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Brochure component for IAGE", | ||
@@ -38,3 +38,3 @@ "main": "app.js", | ||
"html-loader": "^0.5.5", | ||
"ivy.angular.turn-js": "^1.0.2", | ||
"ivy.angular.turn-js": "^1.0.3", | ||
"jasmine": "^3.1.0", | ||
@@ -41,0 +41,0 @@ "jasmine-core": "^3.1.0", |
@@ -0,3 +1,7 @@ | ||
import { DomSanitizer } from '@angular/platform-browser'; | ||
import '../../../libs/turn.js'; | ||
export declare class IageBrochureComponent { | ||
private sanitizer; | ||
sources: string[]; | ||
constructor(sanitizer: DomSanitizer); | ||
optOverrides: { | ||
@@ -4,0 +8,0 @@ page: number; |
@@ -8,7 +8,18 @@ "use strict"; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var platform_browser_1 = require("@angular/platform-browser"); | ||
var core_1 = require("@angular/core"); | ||
require("../../../libs/turn.js"); | ||
var IageBrochureComponent = /** @class */ (function () { | ||
function IageBrochureComponent() { | ||
function IageBrochureComponent(sanitizer) { | ||
this.sanitizer = sanitizer; | ||
this.sources = [ | ||
// We double up on this one because it acts as both | ||
// 1) The closed cover that is never seen | ||
// 2) The "cover" front page | ||
require('../../../img/Brochure/0.jpg'), | ||
require('../../../img/Brochure/0.jpg'), | ||
require('../../../img/Brochure/1.jpg'), | ||
@@ -23,2 +34,3 @@ require('../../../img/Brochure/2.jpg'), | ||
]; | ||
// https://github.com/blasten/turn.js/issues/138 | ||
this.optOverrides = { | ||
@@ -42,3 +54,4 @@ page: 2, | ||
templateUrl: './brochure.component.html' | ||
}) | ||
}), | ||
__metadata("design:paramtypes", [platform_browser_1.DomSanitizer]) | ||
], IageBrochureComponent); | ||
@@ -45,0 +58,0 @@ return IageBrochureComponent; |
declare var require: any; | ||
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; | ||
import { Component } from '@angular/core'; | ||
import '../../../libs/turn.js'; | ||
@Component({ | ||
@@ -12,2 +15,8 @@ selector: 'iage-brochure', | ||
sources: string[] = [ | ||
// We double up on this one because it acts as both | ||
// 1) The closed cover that is never seen | ||
// 2) The "cover" front page | ||
require('../../../img/Brochure/0.jpg'), | ||
require('../../../img/Brochure/0.jpg'), | ||
require('../../../img/Brochure/1.jpg'), | ||
@@ -23,2 +32,9 @@ require('../../../img/Brochure/2.jpg'), | ||
constructor( | ||
private sanitizer: DomSanitizer) { | ||
} | ||
// https://github.com/blasten/turn.js/issues/138 | ||
optOverrides = { | ||
@@ -25,0 +41,0 @@ page: 2, |
@@ -33,3 +33,5 @@ import 'jasmine'; | ||
expect(sut).not.toBeNull(); | ||
fixture.detectChanges(); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
675239
37
1781
2