@mintplayer/ng-bootstrap 15.12.0 → 15.13.0

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.
Files changed (29) hide show
  1. package/esm2020/navbar/src/nav-link/nav-link.directive.mjs +10 -5
  2. package/esm2020/navigation-lock/index.mjs +2 -0
  3. package/esm2020/navigation-lock/mintplayer-ng-bootstrap-navigation-lock.mjs +5 -0
  4. package/esm2020/navigation-lock/src/directive/navigation-lock.directive.mjs +94 -0
  5. package/esm2020/navigation-lock/src/guard/navigation-lock.guard.mjs +22 -0
  6. package/esm2020/navigation-lock/src/index.mjs +5 -0
  7. package/esm2020/navigation-lock/src/interface/has-navigation-lock.mjs +2 -0
  8. package/esm2020/navigation-lock/src/navigation-lock.module.mjs +28 -0
  9. package/esm2020/offcanvas/src/directives/offcanvas-push/offcanvas-push.directive.mjs +1 -2
  10. package/fesm2015/mintplayer-ng-bootstrap-navbar.mjs +9 -4
  11. package/fesm2015/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  12. package/fesm2015/mintplayer-ng-bootstrap-navigation-lock.mjs +148 -0
  13. package/fesm2015/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -0
  14. package/fesm2015/mintplayer-ng-bootstrap-offcanvas.mjs +0 -1
  15. package/fesm2015/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  16. package/fesm2020/mintplayer-ng-bootstrap-navbar.mjs +9 -4
  17. package/fesm2020/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
  18. package/fesm2020/mintplayer-ng-bootstrap-navigation-lock.mjs +145 -0
  19. package/fesm2020/mintplayer-ng-bootstrap-navigation-lock.mjs.map +1 -0
  20. package/fesm2020/mintplayer-ng-bootstrap-offcanvas.mjs +0 -1
  21. package/fesm2020/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
  22. package/navbar/src/nav-link/nav-link.directive.d.ts +2 -1
  23. package/navigation-lock/index.d.ts +1 -0
  24. package/navigation-lock/src/directive/navigation-lock.directive.d.ts +34 -0
  25. package/navigation-lock/src/guard/navigation-lock.guard.d.ts +8 -0
  26. package/navigation-lock/src/index.d.ts +4 -0
  27. package/navigation-lock/src/interface/has-navigation-lock.d.ts +15 -0
  28. package/navigation-lock/src/navigation-lock.module.d.ts +9 -0
  29. package/package.json +9 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, HostListener, ViewChild, Input, Optional, ContentChildren, forwardRef, SkipSelf, Host, Inject, Directive, PLATFORM_ID, HostBinding, EventEmitter, Output, NgModule } from '@angular/core';
2
+ import { Component, HostListener, ViewChild, Input, Optional, ContentChildren, forwardRef, SkipSelf, Host, Inject, Directive, HostBinding, PLATFORM_ID, EventEmitter, Output, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { DOCUMENT, isPlatformServer, CommonModule } from '@angular/common';
5
5
  import * as i2$1 from '@mintplayer/ng-click-outside';
@@ -369,6 +369,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
369
369
  class NavLinkDirective {
370
370
  constructor(elementRef, parentDropdown) {
371
371
  this.elementRef = elementRef;
372
+ this.cursorPointer = true;
372
373
  if (parentDropdown == null) {
373
374
  this.elementRef.nativeElement.classList.add('nav-link');
374
375
  }
@@ -378,18 +379,22 @@ class NavLinkDirective {
378
379
  }
379
380
  }
380
381
  NavLinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavLinkDirective, deps: [{ token: i0.ElementRef }, { token: forwardRef(() => BsNavbarDropdownComponent), optional: true }], target: i0.ɵɵFactoryTarget.Directive });
381
- NavLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: NavLinkDirective, selector: "bs-navbar-item > a[routerLink]", ngImport: i0 });
382
+ NavLinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: NavLinkDirective, selector: "bs-navbar-item:first-child > a", host: { properties: { "class.cursor-pointer": "this.cursorPointer" } }, ngImport: i0 });
382
383
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NavLinkDirective, decorators: [{
383
384
  type: Directive,
384
385
  args: [{
385
- selector: 'bs-navbar-item > a[routerLink]'
386
+ // selector: 'bs-navbar-item > a[routerLink]'
387
+ selector: 'bs-navbar-item:first-child > a'
386
388
  }]
387
389
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: BsNavbarDropdownComponent, decorators: [{
388
390
  type: Optional
389
391
  }, {
390
392
  type: Inject,
391
393
  args: [forwardRef(() => BsNavbarDropdownComponent)]
392
- }] }]; } });
394
+ }] }]; }, propDecorators: { cursorPointer: [{
395
+ type: HostBinding,
396
+ args: ['class.cursor-pointer']
397
+ }] } });
393
398
 
394
399
  class BsNavbarContentDirective {
395
400
  constructor(element, platformId) {