From ed7e8c202a712809f1a7ccc6e48623dae5743c8f Mon Sep 17 00:00:00 2001 From: Lionel MUKUNA CIOWELA Date: Wed, 14 Nov 2018 11:47:37 +0100 Subject: [PATCH] corecting ng dropdown in dist --- dist/o-dropdown/o-dropdown.component.js | 2 +- dist/o-dropdown/o-dropdown.component.js.map | 2 +- dist/o-dropdown/o-dropdown.component.metadata.json | 2 +- dist/o-dropdown/o-dropdown.component.ngsummary.json | 2 +- dist/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/o-dropdown/o-dropdown.component.js b/dist/o-dropdown/o-dropdown.component.js index cd7f0f93..f12f7d34 100644 --- a/dist/o-dropdown/o-dropdown.component.js +++ b/dist/o-dropdown/o-dropdown.component.js @@ -23,7 +23,7 @@ var ODropdownComponent = /** @class */ (function () { }; ODropdownComponent.decorators = [ { type: Directive, args: [{ - selector: '[appngbDropdown]' // using same selector as ng-bootsrap NgbDropdown directive + selector: '[ngbDropdown]' // using same selector as ng-bootsrap NgbDropdown directive },] }, ]; /** @nocollapse */ diff --git a/dist/o-dropdown/o-dropdown.component.js.map b/dist/o-dropdown/o-dropdown.component.js.map index 0a4b5ee5..6b396c36 100644 --- a/dist/o-dropdown/o-dropdown.component.js.map +++ b/dist/o-dropdown/o-dropdown.component.js.map @@ -1 +1 @@ -{"version":3,"file":"o-dropdown.component.js","sourceRoot":"","sources":["../../src/o-dropdown/o-dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAEnF;IAMI,4BAAoB,KAAiB;QAAjB,UAAK,GAAL,KAAK,CAAY;IAAI,CAAC;IAEnC,4CAAe,GAAtB;QACI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACvF,CAAC;IAGM,gDAAmB,GAD1B,UAC2B,WAAW;QADtC,iBAOC;QALG,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACd,UAAU,CAAC;gBACP,KAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;YAChD,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;;gBAnBJ,SAAS,SAAE;oBACR,QAAQ,EAAE,kBAAkB,CAAG,2DAA2D;iBAC7F;;;;gBAJiC,UAAU;;;sCAcvC,YAAY,SAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;;IAQzC,yBAAC;CAAA,AApBF,IAoBE;SAjBW,kBAAkB","sourcesContent":["/*!\r\n * --------------------------------------------------------------------------\r\n * Ng-boosted - o-dropdown.component.ts\r\n * copyright 2018 Orange SA\r\n * Licensed under MIT (https://github.com/Orange-OpenSource/ng-boosted/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nimport { Directive, HostListener, ElementRef, AfterViewInit } from '@angular/core';\r\n\r\n@Directive ({\r\n selector: '[appngbDropdown]' // using same selector as ng-bootsrap NgbDropdown directive\r\n})\r\nexport class ODropdownComponent implements AfterViewInit {\r\n private dropdownMenu: any;\r\n\r\n constructor(private elRef: ElementRef) { }\r\n\r\n public ngAfterViewInit() {\r\n this.dropdownMenu = this.elRef.nativeElement.querySelectorAll('.dropdown-menu')[0];\r\n }\r\n\r\n @HostListener('openChange', ['$event'])\r\n public handleDropdownFocus(isOpenEvent) {\r\n if (isOpenEvent) {\r\n setTimeout(() => {\r\n this.dropdownMenu.firstElementChild.focus();\r\n });\r\n }\r\n }\r\n }\r\n"]} \ No newline at end of file +{"version":3,"file":"o-dropdown.component.js","sourceRoot":"","sources":["../../src/o-dropdown/o-dropdown.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAEnF;IAMI,4BAAoB,KAAiB;QAAjB,UAAK,GAAL,KAAK,CAAY;IAAI,CAAC;IAEnC,4CAAe,GAAtB;QACI,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACvF,CAAC;IAGM,gDAAmB,GAD1B,UAC2B,WAAW;QADtC,iBAOC;QALG,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;YACd,UAAU,CAAC;gBACP,KAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;YAChD,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;;gBAnBJ,SAAS,SAAE;oBACR,QAAQ,EAAE,eAAe,CAAG,2DAA2D;iBAC1F;;;;gBAJiC,UAAU;;;sCAcvC,YAAY,SAAC,YAAY,EAAE,CAAC,QAAQ,CAAC;;IAQzC,yBAAC;CAAA,AApBF,IAoBE;SAjBW,kBAAkB","sourcesContent":["/*!\r\n * --------------------------------------------------------------------------\r\n * Ng-boosted - o-dropdown.component.ts\r\n * copyright 2018 Orange SA\r\n * Licensed under MIT (https://github.com/Orange-OpenSource/ng-boosted/blob/master/LICENSE)\r\n * --------------------------------------------------------------------------\r\n */\r\n\r\nimport { Directive, HostListener, ElementRef, AfterViewInit } from '@angular/core';\r\n\r\n@Directive ({\r\n selector: '[ngbDropdown]' // using same selector as ng-bootsrap NgbDropdown directive\r\n})\r\nexport class ODropdownComponent implements AfterViewInit {\r\n private dropdownMenu: any;\r\n\r\n constructor(private elRef: ElementRef) { }\r\n\r\n public ngAfterViewInit() {\r\n this.dropdownMenu = this.elRef.nativeElement.querySelectorAll('.dropdown-menu')[0];\r\n }\r\n\r\n @HostListener('openChange', ['$event'])\r\n public handleDropdownFocus(isOpenEvent) {\r\n if (isOpenEvent) {\r\n setTimeout(() => {\r\n this.dropdownMenu.firstElementChild.focus();\r\n });\r\n }\r\n }\r\n }\r\n"]} \ No newline at end of file diff --git a/dist/o-dropdown/o-dropdown.component.metadata.json b/dist/o-dropdown/o-dropdown.component.metadata.json index c5c1e6aa..90bfacab 100644 --- a/dist/o-dropdown/o-dropdown.component.metadata.json +++ b/dist/o-dropdown/o-dropdown.component.metadata.json @@ -1 +1 @@ -[{"__symbolic":"module","version":4,"metadata":{"ODropdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[appngbDropdown]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":31}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"handleDropdownFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":22,"character":5},"arguments":["openChange",["$event"]]}]}]}}}}] \ No newline at end of file +[{"__symbolic":"module","version":4,"metadata":{"ODropdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[ngbDropdown]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":31}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"handleDropdownFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":22,"character":5},"arguments":["openChange",["$event"]]}]}]}}}}] \ No newline at end of file diff --git a/dist/o-dropdown/o-dropdown.component.ngsummary.json b/dist/o-dropdown/o-dropdown.component.ngsummary.json index c7de2625..bea880c4 100644 --- a/dist/o-dropdown/o-dropdown.component.ngsummary.json +++ b/dist/o-dropdown/o-dropdown.component.ngsummary.json @@ -1 +1 @@ -{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":1,"members":[]}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"handleDropdownFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]},"arguments":["openChange",["$event"]]}]}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}}],"lifecycleHooks":[6]},"isComponent":false,"selector":"[appngbDropdown]","exportAs":null,"inputs":{},"outputs":{},"hostListeners":{"openChange":"handleDropdownFocus($event)"},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":null,"template":null,"componentViewType":null,"rendererType":null,"componentFactory":null}}],"symbols":[{"__symbol":0,"name":"ODropdownComponent","filePath":"./o-dropdown.component"},{"__symbol":1,"name":"ElementRef","filePath":"@angular/core"},{"__symbol":2,"name":"HostListener","filePath":"@angular/core"}]} \ No newline at end of file +{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":1,"members":[]}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"handleDropdownFocus":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]},"arguments":["openChange",["$event"]]}]}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}}],"lifecycleHooks":[6]},"isComponent":false,"selector":"[ngbDropdown]","exportAs":null,"inputs":{},"outputs":{},"hostListeners":{"openChange":"handleDropdownFocus($event)"},"hostProperties":{},"hostAttributes":{},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":null,"template":null,"componentViewType":null,"rendererType":null,"componentFactory":null}}],"symbols":[{"__symbol":0,"name":"ODropdownComponent","filePath":"./o-dropdown.component"},{"__symbol":1,"name":"ElementRef","filePath":"@angular/core"},{"__symbol":2,"name":"HostListener","filePath":"@angular/core"}]} \ No newline at end of file diff --git a/dist/package.json b/dist/package.json index e9643f22..b98380a8 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "ng-boosted", - "version": "3.3.0", + "version": "3.3.1", "description": "Orange Boosted with Angular", "keywords": [ "boosted",