Skip to content

Commit

Permalink
feat(datepicker): upgrade inputmask
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Dec 10, 2018
1 parent 8a02983 commit b1d22d1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,21 @@
"aurelia-authentication": ">=3.8.2",
"aurelia-event-aggregator": ">=1.0.1",
"aurelia-framework": ">=1.3.0",
"aurelia-inputmask": ">=1.0.2",
"aurelia-inputmask": "^1.1.0",
"aurelia-materialize-bridge": ">=1.2.1",
"aurelia-router": ">=1.6.3",
"aurelia-typed-observable-plugin": ">=0.4.2",
"aurelia-validation": ">=1.3.2",
"concurrently": "^3.6.0",
"copyfiles": ">=2.1.0",
"inputmask": ">=4.0.3",
"lodash": ">=4.17.11",
"materialize-css": ">=1.0.0",
"moment": ">=2.22.2",
"numeral": ">=2.0.6",
"standard-version": "^4.4.0",
"typescript": "^3.1.6",
"rimraf": "^2.6.2",
"standard-version": "^4.4.0",
"tslib": ">=1.9.0",
"concurrently": "^3.6.0"
"typescript": "^3.1.6"
}
}
2 changes: 1 addition & 1 deletion src/elements/datepicker/datepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<require from="./datepicker.scss"></require>

<div class="input-field" ref="validationContainer">
<input id="${controlId}" type="text" ref="input" inputmask="mask:datetime; input-format: dd/mm/yyyy; is-value-masked: true; value.bind: value | date: 'DD/MM/YYYY'" readonly.bind="readonly" blur.trigger="blur()" focus.trigger="focus()" />
<input id="${controlId}" type="text" ref="input" inputmask="mask:datetime; options.bind: { inputFormat: 'dd/mm/yyyy' }; is-value-masked: true; value.bind: value | date: 'DD/MM/YYYY'" readonly.bind="readonly" blur.trigger="blur()" focus.trigger="focus()" />
<label for="${controlId}" ref="labelElement">${label}</label>
<i ref="icon" class="material-icons opener" click.delegate="open()">today</i>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/elements/filter/number-filter-line.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<md-input inputmask="mask: decimal; greedy.bind: false; value.bind: valueText" css="display: block; max-width: ${maxWidth}px"></md-input>
<md-input inputmask="mask: decimal; options.bind: { greedy: false }; value.bind: valueText" css="display: block; max-width: ${maxWidth}px"></md-input>
</template>
2 changes: 1 addition & 1 deletion src/elements/variant-editor/variant-editor.number.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<md-input inputmask="mask.bind: '9{1,}'; greedy.bind: false; value.two-way: value | number"></md-input>
<md-input inputmask="mask.bind: '9{1,}'; options.bind: { greedy: false }; value.two-way: value | number"></md-input>
</template>

0 comments on commit b1d22d1

Please sign in to comment.