Skip to content

Commit

Permalink
fix(md-datepicker): fix tab index of datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
acamilleri committed Jun 28, 2016
1 parent ed2664d commit 36b4ee4
Show file tree
Hide file tree
Showing 16 changed files with 619 additions and 568 deletions.
71 changes: 36 additions & 35 deletions dist/amd/aurelia-materialize-bridge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ declare module 'aurelia-materialize-bridge' {
import {
inject
} from 'aurelia-dependency-injection';
import {
Router
} from 'aurelia-router';
import {
bindingMode,
observable,
BindingEngine,
ObserverLocator
} from 'aurelia-binding';
import {
Router
} from 'aurelia-router';
import {
TaskQueue
} from 'aurelia-task-queue';
Expand Down Expand Up @@ -104,12 +104,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}
export class MdBox {
caption: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
Expand All @@ -121,16 +115,11 @@ declare module 'aurelia-materialize-bridge' {
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdButton {
disabled: any;
flat: any;
floating: any;
large: any;
export class MdBox {
caption: any;
constructor(element: any);
attached(): any;
detached(): any;
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}
export class MdCard {
mdImage: any;
Expand All @@ -140,6 +129,17 @@ declare module 'aurelia-materialize-bridge' {
constructor(element: any);
attached(): any;
}
export class MdButton {
disabled: any;
flat: any;
floating: any;
large: any;
constructor(element: any);
attached(): any;
detached(): any;
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}

// @customElement('md-carousel-item')
export class MdCarouselItem {
Expand All @@ -159,10 +159,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}
export class MdChip {
mdClose: any;
attached(): any;
}
export class MdCheckbox {
static id: any;
mdChecked: any;
Expand All @@ -175,13 +171,25 @@ declare module 'aurelia-materialize-bridge' {
mdCheckedChanged(newValue: any): any;
mdDisabledChanged(newValue: any): any;
}
export class MdChip {
mdClose: any;
attached(): any;
}
export class MdCollapsible {
constructor(element: any);
attached(): any;
detached(): any;
refresh(): any;
accordionChanged(): any;
}

/* eslint-enable */
export class DarkenValueConverter {
toView(value: any, steps: any): any;
}
export class LightenValueConverter {
toView(value: any, steps: any): any;
}
export class MdCollectionHeader {
constructor(element: any);
}
Expand Down Expand Up @@ -235,14 +243,6 @@ declare module 'aurelia-materialize-bridge' {
* @param data Addition data to attach to an event
*/
export function fireMaterializeEvent(element: Element, name: string, data?: any): any;

/* eslint-enable */
export class DarkenValueConverter {
toView(value: any, steps: any): any;
}
export class LightenValueConverter {
toView(value: any, steps: any): any;
}
export class MdDatePicker {
container: any;
translation: any;
Expand All @@ -252,6 +252,7 @@ declare module 'aurelia-materialize-bridge' {
options: any;
constructor(element: any, taskQueue: any);
bind(): any;
movePickerCloserToSrc(): any;
detached(): any;
openDatePicker(): any;
closeDatePicker(): any;
Expand Down Expand Up @@ -393,6 +394,13 @@ declare module 'aurelia-materialize-bridge' {
}

// destroy handler not available
export class MdRange {
mdMin: any;
mdMax: any;
mdStep: any;
mdValue: any;
constructor(element: any);
}
export class MdRadio {
static id: any;
mdChecked: any;
Expand Down Expand Up @@ -421,13 +429,6 @@ declare module 'aurelia-materialize-bridge' {
// }
mdDisabledChanged(newValue: any): any;
}
export class MdRange {
mdMin: any;
mdMax: any;
mdStep: any;
mdValue: any;
constructor(element: any);
}

/* eslint no-new-func:0 */
export class ScrollfirePatch {
Expand Down
7 changes: 6 additions & 1 deletion dist/amd/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-task-queue'
_this.openDatePicker();
});
}

if (this.options.showIcon) {
this.element.classList.add('left');
var calendarIcon = document.createElement('i');
Expand All @@ -146,6 +145,12 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-task-queue'
this.element.parentNode.insertBefore(calendarIcon, this.element.nextSibling);
$(calendarIcon).on('click', this.onCalendarIconClick.bind(this));
}

this.movePickerCloserToSrc();
};

MdDatePicker.prototype.movePickerCloserToSrc = function movePickerCloserToSrc() {
$(this.picker.$root).appendTo($(this.element).parent());
};

MdDatePicker.prototype.detached = function detached() {
Expand Down
71 changes: 36 additions & 35 deletions dist/aurelia-materialize-bridge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ declare module 'aurelia-materialize-bridge' {
import {
inject
} from 'aurelia-dependency-injection';
import {
Router
} from 'aurelia-router';
import {
bindingMode,
observable,
BindingEngine,
ObserverLocator
} from 'aurelia-binding';
import {
Router
} from 'aurelia-router';
import {
TaskQueue
} from 'aurelia-task-queue';
Expand Down Expand Up @@ -104,12 +104,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}
export class MdBox {
caption: any;
constructor(element: any);
attached(): any;
detached(): any;
}

// taken from: https://github.com/heruan/aurelia-breadcrumbs
export class MdBreadcrumbs {
Expand All @@ -121,16 +115,11 @@ declare module 'aurelia-materialize-bridge' {
export class InstructionFilterValueConverter {
toView(navigationInstructions: any): any;
}
export class MdButton {
disabled: any;
flat: any;
floating: any;
large: any;
export class MdBox {
caption: any;
constructor(element: any);
attached(): any;
detached(): any;
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}
export class MdCard {
mdImage: any;
Expand All @@ -140,6 +129,17 @@ declare module 'aurelia-materialize-bridge' {
constructor(element: any);
attached(): any;
}
export class MdButton {
disabled: any;
flat: any;
floating: any;
large: any;
constructor(element: any);
attached(): any;
detached(): any;
disabledChanged(newValue: any): any;
flatChanged(newValue: any): any;
}

// @customElement('md-carousel-item')
export class MdCarouselItem {
Expand All @@ -159,10 +159,6 @@ declare module 'aurelia-materialize-bridge' {
attached(): any;
detached(): any;
}
export class MdChip {
mdClose: any;
attached(): any;
}
export class MdCheckbox {
static id: any;
mdChecked: any;
Expand All @@ -175,13 +171,25 @@ declare module 'aurelia-materialize-bridge' {
mdCheckedChanged(newValue: any): any;
mdDisabledChanged(newValue: any): any;
}
export class MdChip {
mdClose: any;
attached(): any;
}
export class MdCollapsible {
constructor(element: any);
attached(): any;
detached(): any;
refresh(): any;
accordionChanged(): any;
}

/* eslint-enable */
export class DarkenValueConverter {
toView(value: any, steps: any): any;
}
export class LightenValueConverter {
toView(value: any, steps: any): any;
}
export class MdCollectionHeader {
constructor(element: any);
}
Expand Down Expand Up @@ -235,14 +243,6 @@ declare module 'aurelia-materialize-bridge' {
* @param data Addition data to attach to an event
*/
export function fireMaterializeEvent(element: Element, name: string, data?: any): any;

/* eslint-enable */
export class DarkenValueConverter {
toView(value: any, steps: any): any;
}
export class LightenValueConverter {
toView(value: any, steps: any): any;
}
export class MdDatePicker {
container: any;
translation: any;
Expand All @@ -252,6 +252,7 @@ declare module 'aurelia-materialize-bridge' {
options: any;
constructor(element: any, taskQueue: any);
bind(): any;
movePickerCloserToSrc(): any;
detached(): any;
openDatePicker(): any;
closeDatePicker(): any;
Expand Down Expand Up @@ -393,6 +394,13 @@ declare module 'aurelia-materialize-bridge' {
}

// destroy handler not available
export class MdRange {
mdMin: any;
mdMax: any;
mdStep: any;
mdValue: any;
constructor(element: any);
}
export class MdRadio {
static id: any;
mdChecked: any;
Expand Down Expand Up @@ -421,13 +429,6 @@ declare module 'aurelia-materialize-bridge' {
// }
mdDisabledChanged(newValue: any): any;
}
export class MdRange {
mdMin: any;
mdMax: any;
mdStep: any;
mdValue: any;
constructor(element: any);
}

/* eslint no-new-func:0 */
export class ScrollfirePatch {
Expand Down
Loading

0 comments on commit 36b4ee4

Please sign in to comment.