angular-custom-tour
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -11,0 +11,0 @@ "main": "bundles/angular-custom-tour.umd.min.js", |
@@ -77,2 +77,3 @@ import { Subject } from 'rxjs/Subject'; | ||
private initSteps(nodes); | ||
private putOverlay(); | ||
} |
@@ -140,2 +140,5 @@ "use strict"; | ||
}; | ||
HintService.prototype.putOverlay = function () { | ||
document.getElementsByTagName('body'); | ||
}; | ||
HintService = __decorate([ | ||
@@ -142,0 +145,0 @@ core_1.Injectable(), |
@@ -25,2 +25,3 @@ import { OnInit } from '@angular/core'; | ||
private disableClick(element); | ||
private enableClick(element); | ||
} |
@@ -30,4 +30,3 @@ "use strict"; | ||
if (this.hintService.hintOptions.applyRelative) { | ||
highlightedElement.style.position = 'relative'; | ||
highlightedElement.style.backgroundColor = '#fff'; | ||
highlightedElement.classList.add('hint-relative'); | ||
} | ||
@@ -66,2 +65,4 @@ this.showme = true; | ||
this.showme = false; | ||
this.enableClick(highlightedElement); | ||
highlightedElement.classList.remove('hint-relative'); | ||
}; | ||
@@ -82,2 +83,5 @@ TourComponent.prototype.exit = function () { | ||
}; | ||
TourComponent.prototype.enableClick = function (element) { | ||
element.classList.remove('hint-disabled'); | ||
}; | ||
__decorate([ | ||
@@ -102,3 +106,3 @@ core_1.Input(), | ||
selector: variables_1.HintConfig.HINT_TAG, | ||
template: "<div class=\"intro-tour-hint-wrapper {{transformClass}}\" *ngIf=\"showme\" [ngStyle]=\"{'top': topPos+'px', 'left': leftPos+'px'}\" >\n <div class=\"header\" *ngIf=\"title\">{{title}}</div>\n <div class=\"content\"><ng-content></ng-content></div>\n <div class=\"footer\">\n <a class=\"navigate-btn\" *ngIf=\"hasPrev\" (click)=\"prev()\"> << </a>\n <a class=\"navigate-btn\" *ngIf=\"hasNext\" (click)=\"next()\"> >> </a>\n <a class=\"navigate-btn\" (click)=\"exit()\"> X </a>\n </div>\n </div>", | ||
template: "<div class=\"intro-tour-hint-wrapper {{transformClass}}\" *ngIf=\"showme\" [ngStyle]=\"{'top': topPos+'px', 'left': leftPos+'px'}\" >\n <div class=\"header\" *ngIf=\"title\">{{title}}</div>\n <div class=\"content\"><ng-content></ng-content></div>\n <div class=\"footer\">\n <a class=\"navigate-btn\" *ngIf=\"hasPrev\" (click)=\"prev()\">←</a>\n <a class=\"navigate-btn\" *ngIf=\"hasNext\" (click)=\"next()\">→</a>\n <a class=\"navigate-btn\" (click)=\"exit()\">✖</a>\n </div>\n </div>", | ||
}), | ||
@@ -105,0 +109,0 @@ __metadata('design:paramtypes', [hint_service_1.HintService]) |
export declare class HintOptions { | ||
elementsDisabled: boolean; | ||
defaultPosition: string; | ||
defaultOrder: number; | ||
defaultLayer: number; | ||
applyRelative: boolean; | ||
elementsDisabled?: boolean; | ||
defaultPosition?: string; | ||
defaultOrder?: number; | ||
defaultLayer?: number; | ||
applyRelative?: boolean; | ||
} |
@@ -18,1 +18,40 @@ { | ||
} | ||
/*{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "es2015", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"sourceMap": true, | ||
"noUnusedLocals": true, | ||
"moduleResolution": "node", | ||
"baseUrl": "./src", | ||
"paths": {}, | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
], | ||
"types": [ | ||
"core-js", | ||
"node", | ||
"webpack", | ||
"simplemde" | ||
] | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"awesomeTypescriptLoaderOptions": { | ||
"forkChecker": true, | ||
"useWebpackText": true | ||
}, | ||
"angularCompilerOptions": { | ||
"strictMetadataEmit": true, | ||
"skipTemplateCodegen": true | ||
}, | ||
"compileOnSave": false, | ||
"buildOnSave": false, | ||
"atom": { | ||
"rewriteTsconfig": false | ||
} | ||
}*/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36730
697