angular-custom-tour
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"license": "MIT", | ||
@@ -11,0 +11,0 @@ "main": "bundles/angular-custom-tour.umd.min.js", |
@@ -87,8 +87,5 @@ [![Build Status](https://img.shields.io/travis/miraxes/angular-custom-tour.svg?style=flat-square)](https://travis-ci.org/miraxes/angular-custom-tour) | ||
```typescript | ||
startTour() { | ||
this.hintService.initialize({elementsDisabled: false}); // HintOptions | ||
} | ||
} | ||
``` | ||
@@ -105,5 +102,13 @@ | ||
| defaultLayer: number | 15 | Distance between highlightedElement and step in px | | ||
| applyRelative: boolean | true | Applying position:relative to highlightedElement (disable in case you want to highligh absolute positioned elements) | | ||
| applyRelative: boolean | true | Applying position:relative to highlightedElement (disable in case you want to highlight absolute positioned elements) | | ||
This module in active development mode, if you have any suggestions fell free to contact me. | ||
## Hint service events | ||
| event | Description | | ||
| ------------- | ------------ | | ||
| finish$ | When tour is finished | | ||
| showingStep$ | On each step show (Params > CurrentStep) | | ||
This module in active development mode, if you have any suggestions feel free to contact me. |
@@ -25,2 +25,3 @@ "use strict"; | ||
core_1.Component({ | ||
// tslint:disable-next-line | ||
selector: 'tour-overlay', | ||
@@ -27,0 +28,0 @@ template: "<div class=\"hint-overlay\" *ngIf=\"show\" (click)=\"dismiss()\"></div>", |
@@ -17,2 +17,4 @@ import { Subject } from 'rxjs/Subject'; | ||
registration$: Subject<boolean>; | ||
finish$: Subject<boolean>; | ||
showingStep$: Subject<Step>; | ||
/** | ||
@@ -19,0 +21,0 @@ * Initialize hint service |
@@ -19,2 +19,4 @@ "use strict"; | ||
this.registration$ = new Subject_1.Subject(); | ||
this.finish$ = new Subject_1.Subject(); | ||
this.showingStep$ = new Subject_1.Subject(); | ||
} | ||
@@ -125,2 +127,3 @@ /** | ||
anchor.hideStep(); | ||
this.finish$.next(true); | ||
}; | ||
@@ -127,0 +130,0 @@ /** |
@@ -22,2 +22,3 @@ "use strict"; | ||
TourComponent.prototype.showStep = function () { | ||
this.hintService.showingStep$.next(this); | ||
this.position = this.position || this.hintService.hintOptions.defaultPosition; | ||
@@ -112,3 +113,3 @@ this.order = +this.order || this.hintService.hintOptions.defaultOrder; | ||
selector: variables_1.HintConfig.HINT_TAG, | ||
template: "<div class=\"intro-tour-hint-wrapper {{transformClass}} step{{order}} {{position}}\" *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>", | ||
template: "<div class=\"intro-tour-hint-wrapper {{transformClass}} step{{order}} {{position}}\"\n *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>", | ||
}), | ||
@@ -115,0 +116,0 @@ __metadata('design:paramtypes', [hint_service_1.HintService]) |
@@ -11,47 +11,6 @@ { | ||
}, | ||
"files": [ | ||
"index.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
"node_modules", | ||
"**/*.spec.ts" | ||
] | ||
} | ||
/*{ | ||
"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
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
42777
33
748
113