mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use shared globalize
This commit is contained in:
parent
3aefabc66b
commit
ec65069323
29 changed files with 390 additions and 274 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-input",
|
||||
"version": "1.1.8",
|
||||
"version": "1.1.9",
|
||||
"description": "Material design text fields",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -47,11 +47,11 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"_release": "1.1.8",
|
||||
"_release": "1.1.9",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.8",
|
||||
"commit": "96efaa0f707870d5a5999120467d67b8da806704"
|
||||
"tag": "v1.1.9",
|
||||
"commit": "4cb91098977573135b74121d6f4a2a301f44ce93"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-input.git",
|
||||
"_target": "^1.0.9",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-input",
|
||||
"version": "1.1.8",
|
||||
"version": "1.1.9",
|
||||
"description": "Material design text fields",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -31,10 +31,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
/**
|
||||
* The function called by `<paper-input-container>` when the input value or validity changes.
|
||||
* @param {{
|
||||
* inputElement: (Node|undefined),
|
||||
* inputElement: (Element|undefined),
|
||||
* value: (string|undefined),
|
||||
* invalid: (boolean|undefined)
|
||||
* }} state All properties are optional -
|
||||
* invalid: boolean
|
||||
* }} state -
|
||||
* inputElement: The input element.
|
||||
* value: The input value.
|
||||
* invalid: True if the input value is invalid.
|
||||
|
|
|
@ -65,6 +65,17 @@ Custom property | Description | Default
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* This overrides the update function in PaperInputAddonBehavior.
|
||||
* @param {{
|
||||
* inputElement: (Element|undefined),
|
||||
* value: (string|undefined),
|
||||
* invalid: boolean
|
||||
* }} state -
|
||||
* inputElement: The input element.
|
||||
* value: The input value.
|
||||
* invalid: True if the input value is invalid.
|
||||
*/
|
||||
update: function(state) {
|
||||
if (!state.inputElement) {
|
||||
return;
|
||||
|
@ -72,7 +83,7 @@ Custom property | Description | Default
|
|||
|
||||
state.value = state.value || '';
|
||||
|
||||
var counter = state.value.length;
|
||||
var counter = state.value.length.toString();
|
||||
|
||||
if (state.inputElement.hasAttribute('maxlength')) {
|
||||
counter += '/' + state.inputElement.getAttribute('maxlength');
|
||||
|
|
|
@ -76,6 +76,17 @@ Custom property | Description | Default
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* This overrides the update function in PaperInputAddonBehavior.
|
||||
* @param {{
|
||||
* inputElement: (Element|undefined),
|
||||
* value: (string|undefined),
|
||||
* invalid: boolean
|
||||
* }} state -
|
||||
* inputElement: The input element.
|
||||
* value: The input value.
|
||||
* invalid: True if the input value is invalid.
|
||||
*/
|
||||
update: function(state) {
|
||||
this._setInvalid(state.invalid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue