Skip to content

Commit

Permalink
chore(all): dist build
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Jan 9, 2017
1 parent cb51641 commit 5ef88ae
Show file tree
Hide file tree
Showing 254 changed files with 2,670 additions and 2,069 deletions.
89 changes: 16 additions & 73 deletions dist/amd/aurelia-materialize-bridge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,10 @@ export declare class MdBox {
export declare class MdBreadcrumbs {
router: any;
constructor(element?: any, router?: any);

// this._childRouter = router;
// while (router.parent) {
// router = router.parent;
// }
// this.router = router;
bind(): any;
routerChanged(): any;
navigate(navigationInstruction?: any): any;
}

// this.router.navigate(navigationInstruction.config.name);
export declare class InstructionFilterValueConverter {
toView(navigationInstructions?: any): any;
}
Expand Down Expand Up @@ -195,18 +187,13 @@ export declare class MdCheckbox {
mdMatcher: any;
mdModel: any;
constructor(element?: any);

// this.handleChange = this.handleChange.bind(this);
attached(): any;

// this.checkbox.checked = getBooleanFromAttributeValue(this.mdChecked);
// this.checkbox.addEventListener('change', this.handleChange);
// blur() {
// fireEvent(this.element, 'blur');
// }
detached(): any;

// this.checkbox.removeEventListener('change', this.handleChange);
// handleChange() {
// this.mdChecked = this.checkbox.checked;
// fireEvent(this.element, 'blur');
Expand Down Expand Up @@ -234,18 +221,10 @@ export declare class MdChips {
constructor(element?: any);
attached(): any;
detached(): any;

//
onChipAdd(e?: any, chip?: any): any;

// fireEvent(this.element, 'change');
onChipDelete(e?: any, chip?: any): any;

// fireEvent(this.element, 'change');
onChipSelect(e?: any, chip?: any): any;
}

// fireEvent(this.element, 'change');
export declare class MdCollapsible {
constructor(element?: any);
attached(): any;
Expand Down Expand Up @@ -349,11 +328,7 @@ export declare class MdDatePicker {
onClose(): any;
onCalendarIconClick(event?: any): any;
onSet(value?: any): any;

// this.value = new Date(value.select);
valueChanged(newValue?: any): any;

// });
showErrortextChanged(): any;
setErrorTextAttribute(): any;
}
Expand Down Expand Up @@ -394,21 +369,22 @@ export declare class MdFab {
constructor(element?: any);
attached(): any;
}
export declare class MdFooter {
constructor(element?: any);
bind(): any;
unbind(): any;
}
export declare class MdFileInput {
mdCaption: any;
mdMultiple: any;
mdLabelValue: any;
disabled: any;
files: any;
constructor(element?: any);
attached(): any;
detached(): any;
handleChangeFromNativeInput(): any;
}
export declare class MdFooter {
constructor(element?: any);
bind(): any;
unbind(): any;
}
export declare class MdPrefix {
constructor(element?: any);
bind(): any;
Expand All @@ -422,6 +398,7 @@ export declare class MdInputUpdateService {
export declare class MdInput {
static id: any;
mdLabel: any;
mdBlurOnEnter: any;
mdDisabled: any;
mdPlaceholder: any;
mdTextArea: any;
Expand All @@ -435,8 +412,13 @@ export declare class MdInput {
constructor(element?: any, taskQueue?: any, updateService?: any);
bind(): any;
attached(): any;
detached(): any;
blur(): any;
focus(): any;
mdValueChanged(): any;
attachEventHandlers(): any;
detachEventHandlers(): any;
blurOnEnter(e?: any): any;
}
export declare class MdModalTrigger {
dismissible: any;
Expand Down Expand Up @@ -491,8 +473,6 @@ export declare class MdParallax {
attached(): any;
detached(): any;
}

// destroy handler not available
export declare class MdProgress {
mdColor: any;
mdPixelSize: any;
Expand All @@ -505,9 +485,6 @@ export declare class MdProgress {
// console.log('mdValueChanged, newValue:', JSON.stringify(newValue), 'oldValue:', JSON.stringify(oldValue));
// }
bind(): any;

// This disables property changed callbacks for any bindable properties during initialization
// Prevents mdPixelSize getting cleared by the mdSizeChanged event during binding
attached(): any;
mdSizeChanged(newValue?: any): any;
mdPixelSizeChanged(newValue?: any): any;
Expand All @@ -520,8 +497,6 @@ export declare class MdPushpin {
attached(): any;
detached(): any;
}

// destroy handler not available
export declare class MdRadio {
static id: any;
mdChecked: any;
Expand All @@ -531,15 +506,9 @@ export declare class MdRadio {
mdName: any;
mdValue: any;
constructor(element?: any);

// this.handleChange = this.handleChange.bind(this);
attached(): any;

// this.radio.checked = getBooleanFromAttributeValue(this.mdChecked);
// this.radio.addEventListener('change', this.handleChange);
detached(): any;

// this.radio.removeEventListener('change', this.handleChange);
// handleChange() {
// this.mdChecked = this.radio.checked;
// }
Expand Down Expand Up @@ -579,8 +548,6 @@ export declare class MdScrollSpy {
attached(): any;
detached(): any;
}

// destroy handler not available
export declare class MdSelect {
disabled: any;
label: any;
Expand Down Expand Up @@ -608,26 +575,9 @@ export declare class MdSidenavCollapse {
constructor(element?: any, observerLocator?: any);
attached(): any;
detached(): any;
show(): any;
hide(): any;
}

// this.widthSubscription.unsubscribe();
// fixedChanged() {
// this.log.debug('fixedChanged');
// $(this.element).sideNav({
// edge: this.ref.edge || 'left',
// closeOnClick: this.ref.closeOnClick,
// menuWidth: parseInt(this.ref.mdWidth, 10)
// });
// }
//
// widthChanged() {
// this.log.debug('widthChanged');
// $(this.element).sideNav({
// edge: this.ref.edge || 'left',
// closeOnClick: this.ref.closeOnClick,
// menuWidth: parseInt(this.ref.mdWidth, 10)
// });
// }
export declare class MdSidenav {
static id: any;
mdCloseOnClick: any;
Expand Down Expand Up @@ -656,15 +606,6 @@ export declare class MdSlider {
refresh(): any;
mdIndicatorsChanged(): any;
}

// commented since that leads to strange effects
// mdIntervalChanged() {
// this.refresh();
// }
//
// mdTransitionChanged() {
// this.refresh();
// }
export declare class MdSwitch {
mdChecked: any;
mdDisabled: any;
Expand All @@ -685,6 +626,7 @@ export declare class MdTabs {
constructor(element?: any, taskQueue?: any);
attached(): any;
detached(): any;
refresh(): any;
fixedChanged(newValue?: any): any;
transparentChanged(newValue?: any): any;
fireTabSelectedEvent(e?: any): any;
Expand Down Expand Up @@ -728,6 +670,7 @@ export declare class MaterializeFormValidationRenderer {
className: any;
classNameFirst: any;
render(instruction?: any): any;
underlineInput(element?: any): any;
add(element?: any, result?: any): any;
remove(element?: any, result?: any): any;
addMessage(element?: any, result?: any): any;
Expand Down
4 changes: 1 addition & 3 deletions dist/amd/breadcrumbs/breadcrumbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ define(['exports', 'aurelia-templating', 'aurelia-dependency-injection', 'aureli
this.router = router;
};

MdBreadcrumbs.prototype.routerChanged = function routerChanged() {
console.log('[breadcrumbs]', this.router);
};
MdBreadcrumbs.prototype.routerChanged = function routerChanged() {};

MdBreadcrumbs.prototype.navigate = function navigate(navigationInstruction) {
this._childRouter.navigateToRoute(navigationInstruction.config.name);
Expand Down
6 changes: 6 additions & 0 deletions dist/amd/colors/md-colors.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@
.picker__footer button:focus {
background-color: ${mdAccentColor | lighten:2};
}
[md-datepicker] + i.material-icons.std-icon-fixup {
margin-left: -24px;
line-height: 1;
margin-top: 12px;
cursor: pointer;
}

/* text input */
md-input .input-field label {
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/common/attributeManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ define(['exports'], function (exports) {
return _this3.element.classList.contains(cc);
}).length > 0;
if (_this3._colorClasses.indexOf(c) > -1 && classListHasColor) {} else {
if (!_this3.element.classList.contains(c)) {
_this3.addedClasses.push(c);
_this3.element.classList.add(c);
}
if (!_this3.element.classList.contains(c)) {
_this3.addedClasses.push(c);
_this3.element.classList.add(c);
}
}
});
};

Expand Down
4 changes: 2 additions & 2 deletions dist/amd/common/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ define(['exports', './constants'], function (exports, _constants) {
exports.fireEvent = fireEvent;
exports.fireMaterializeEvent = fireMaterializeEvent;
function fireEvent(element, name) {
var data = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

var event = new CustomEvent(name, {
detail: data,
Expand All @@ -19,7 +19,7 @@ define(['exports', './constants'], function (exports, _constants) {
}

function fireMaterializeEvent(element, name) {
var data = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

return fireEvent(element, '' + _constants.constants.eventPrefix + name, data);
}
Expand Down
3 changes: 3 additions & 0 deletions dist/amd/datepicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-task-queue'
calendarIcon.textContent = 'today';
this.element.parentNode.insertBefore(calendarIcon, this.element.nextSibling);
$(calendarIcon).on('click', this.onCalendarIconClick.bind(this));

options.iconClass = options.iconClass || 'std-icon-fixup';
calendarIcon.classList.add(options.iconClass);
}

this.movePickerCloserToSrc();
Expand Down
44 changes: 22 additions & 22 deletions dist/amd/dropdown/dropdown-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,31 +194,31 @@ define(['exports'], function (exports) {
});
})();
} else {
origin.unbind('click.' + origin.attr('id'));
origin.bind('click.' + origin.attr('id'), function (e) {
if (!isFocused) {
if (origin[0] === e.currentTarget && !origin.hasClass('active') && $(e.target).closest('.dropdown-content').length === 0) {
e.preventDefault();
if (currentOptions.stopPropagation) {
e.stopPropagation();
}
placeDropdown('click');
} else if (origin.hasClass('active')) {
hideDropdown();
$(document).unbind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'));
origin.unbind('click.' + origin.attr('id'));
origin.bind('click.' + origin.attr('id'), function (e) {
if (!isFocused) {
if (origin[0] === e.currentTarget && !origin.hasClass('active') && $(e.target).closest('.dropdown-content').length === 0) {
e.preventDefault();
if (currentOptions.stopPropagation) {
e.stopPropagation();
}
placeDropdown('click');
} else if (origin.hasClass('active')) {
hideDropdown();
$(document).unbind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'));
}

if (activates.hasClass('active')) {
$(document).bind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'), function (e2) {
if (!activates.is(e2.target) && !origin.is(e2.target) && !origin.find(e2.target).length) {
hideDropdown();
$(document).unbind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'));
}
});
}
if (activates.hasClass('active')) {
$(document).bind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'), function (e2) {
if (!activates.is(e2.target) && !origin.is(e2.target) && !origin.find(e2.target).length) {
hideDropdown();
$(document).unbind('click.' + activates.attr('id') + ' touchstart.' + activates.attr('id'));
}
});
}
});
}
}
});
}
origin.on('open', function (e, eventType) {
placeDropdown(eventType);
});
Expand Down
Loading

0 comments on commit 5ef88ae

Please sign in to comment.