@ni/nimble-angular 15.1.0 → 16.0.1
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/directives/menu-button/nimble-menu-button.directive.d.ts +4 -5
- package/esm2020/directives/menu-button/nimble-menu-button.directive.mjs +3 -14
- package/fesm2015/ni-nimble-angular.mjs +2 -13
- package/fesm2015/ni-nimble-angular.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular.mjs +2 -13
- package/fesm2020/ni-nimble-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, NgModule, forwardRef, HostListener, Inject, Optional, Host, EventEmitter, Output
|
|
2
|
+
import { Directive, Input, NgModule, forwardRef, HostListener, Inject, Optional, Host, Injectable, EventEmitter, Output } from '@angular/core';
|
|
3
3
|
import { RouterLinkWithHref } from '@angular/router';
|
|
4
4
|
export { AnchorAppearance } from '@ni/nimble-components/dist/esm/anchor/types';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
@@ -6050,7 +6050,6 @@ class NimbleMenuButtonDirective {
|
|
|
6050
6050
|
constructor(renderer, elementRef) {
|
|
6051
6051
|
this.renderer = renderer;
|
|
6052
6052
|
this.elementRef = elementRef;
|
|
6053
|
-
this.openChange = new EventEmitter();
|
|
6054
6053
|
}
|
|
6055
6054
|
get appearance() {
|
|
6056
6055
|
return this.elementRef.nativeElement.appearance;
|
|
@@ -6078,14 +6077,9 @@ class NimbleMenuButtonDirective {
|
|
|
6078
6077
|
set open(value) {
|
|
6079
6078
|
this.renderer.setProperty(this.elementRef.nativeElement, 'open', toBooleanProperty(value));
|
|
6080
6079
|
}
|
|
6081
|
-
onOpenChange($event) {
|
|
6082
|
-
if ($event.target === this.elementRef.nativeElement) {
|
|
6083
|
-
this.openChange.emit(this.open);
|
|
6084
|
-
}
|
|
6085
|
-
}
|
|
6086
6080
|
}
|
|
6087
6081
|
NimbleMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: NimbleMenuButtonDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6088
|
-
NimbleMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: NimbleMenuButtonDirective, selector: "nimble-menu-button", inputs: { appearance: "appearance", disabled: "disabled", contentHidden: ["content-hidden", "contentHidden"], open: "open" },
|
|
6082
|
+
NimbleMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: NimbleMenuButtonDirective, selector: "nimble-menu-button", inputs: { appearance: "appearance", disabled: "disabled", contentHidden: ["content-hidden", "contentHidden"], open: "open" }, ngImport: i0 });
|
|
6089
6083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: NimbleMenuButtonDirective, decorators: [{
|
|
6090
6084
|
type: Directive,
|
|
6091
6085
|
args: [{
|
|
@@ -6100,11 +6094,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
|
6100
6094
|
args: ['content-hidden']
|
|
6101
6095
|
}], open: [{
|
|
6102
6096
|
type: Input
|
|
6103
|
-
}], openChange: [{
|
|
6104
|
-
type: Output
|
|
6105
|
-
}], onOpenChange: [{
|
|
6106
|
-
type: HostListener,
|
|
6107
|
-
args: ['open-change', ['$event']]
|
|
6108
6097
|
}] } });
|
|
6109
6098
|
|
|
6110
6099
|
class NimbleMenuButtonModule {
|