Surround <input is="iron-input"> with <iron-input>
Type extension does not work anymore in Polymer 2: https://polymer-library.polymer-project.org/2.0/docs/about_20#type-extension Recommendation by Polyer expert was: Most of the time, you can do <iron-input params...> <input is="iron-input" thoseSameParams...> </iron-input> id attributes were kept at the <input> element, not moved to the <iron-input> element. This may mean that in Polymer 2 some still tests are still failing that look up input elements by id. Will fix this in a follow-up change. The goal was to create a simple non-breaking change across the entire code base. There might still be some issues running this with Polymer 2. This change also clean ups iron-input html imports. Some could be removed, some had to be added. Change-Id: I48361ff465990246622ec8ad23d80b75f40cc055
This commit is contained in:
@@ -100,12 +100,17 @@ limitations under the License.
|
||||
<iron-icon id="icon" icon="gr-icons:create"></iron-icon>
|
||||
</gr-button>
|
||||
</div>
|
||||
<input
|
||||
id="editRefInput"
|
||||
<iron-input
|
||||
bind-value="{{section.id}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
on-input="_handleValueChange">
|
||||
<input
|
||||
id="editRefInput"
|
||||
bind-value="{{section.id}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
on-input="_handleValueChange">
|
||||
</iron-input>
|
||||
<gr-button
|
||||
link
|
||||
id="deleteBtn"
|
||||
|
@@ -18,7 +18,6 @@ limitations under the License.
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
|
||||
<link rel="import" href="../../../behaviors/gr-list-view-behavior/gr-list-view-behavior.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-table-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
|
||||
|
@@ -69,23 +69,33 @@ limitations under the License.
|
||||
<section class$="[[_computeBranchClass(baseChange)]]">
|
||||
<span class="title">Provide base commit sha1 for change</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="baseCommitInput"
|
||||
<iron-input
|
||||
maxlength="40"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{baseCommit}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="baseCommitInput"
|
||||
maxlength="40"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{baseCommit}}">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Enter topic for new change</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="tagNameInput"
|
||||
<iron-input
|
||||
maxlength="1024"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{topic}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="tagNameInput"
|
||||
maxlength="1024"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{topic}}">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section id="description">
|
||||
|
@@ -39,10 +39,13 @@ limitations under the License.
|
||||
<div id="form">
|
||||
<section>
|
||||
<span class="title">Group name</span>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="groupNameInput"
|
||||
<iron-input
|
||||
bind-value="{{_name}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="groupNameInput"
|
||||
bind-value="{{_name}}">
|
||||
</iron-input>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -44,27 +44,39 @@ limitations under the License.
|
||||
<div id="form">
|
||||
<section>
|
||||
<span class="title">[[detailType]] name</span>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemNameInput"
|
||||
<iron-input
|
||||
placeholder="[[detailType]] Name"
|
||||
bind-value="{{_itemName}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemNameInput"
|
||||
placeholder="[[detailType]] Name"
|
||||
bind-value="{{_itemName}}">
|
||||
</iron-input>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Initial Revision</span>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemRevisionInput"
|
||||
<iron-input
|
||||
placeholder="Revision (Branch or SHA-1)"
|
||||
bind-value="{{_itemRevision}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemRevisionInput"
|
||||
placeholder="Revision (Branch or SHA-1)"
|
||||
bind-value="{{_itemRevision}}">
|
||||
</iron-input>
|
||||
</section>
|
||||
<section class$="[[_computeHideItemClass(itemDetail)]]">
|
||||
<span class="title">Annotation</span>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemAnnotationInput"
|
||||
<iron-input
|
||||
placeholder="Annotation (Optional)"
|
||||
bind-value="{{_itemAnnotation}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="itemAnnotationInput"
|
||||
placeholder="Annotation (Optional)"
|
||||
bind-value="{{_itemAnnotation}}">
|
||||
</iron-input>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -54,10 +54,13 @@ limitations under the License.
|
||||
<div id="form">
|
||||
<section>
|
||||
<span class="title">Repository name</span>
|
||||
<input is="iron-input"
|
||||
id="repoNameInput"
|
||||
autocomplete="on"
|
||||
bind-value="{{_repoConfig.name}}">
|
||||
<iron-input autocomplete="on"
|
||||
bind-value="{{_repoConfig.name}}">
|
||||
<input is="iron-input"
|
||||
id="repoNameInput"
|
||||
autocomplete="on"
|
||||
bind-value="{{_repoConfig.name}}">
|
||||
</iron-input>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Rights inherit from</span>
|
||||
|
@@ -19,7 +19,6 @@ limitations under the License.
|
||||
<link rel="import" href="../../../behaviors/gr-url-encoding-behavior/gr-url-encoding-behavior.html">
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-form-styles.html">
|
||||
<link rel="import" href="../../../styles/gr-subpage-styles.html">
|
||||
<link rel="import" href="../../../styles/gr-table-styles.html">
|
||||
|
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-form-styles.html">
|
||||
<link rel="import" href="../../../styles/gr-subpage-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
|
@@ -83,11 +83,15 @@ limitations under the License.
|
||||
<div class="row placeholder">None configured.</div>
|
||||
</template>
|
||||
<div class$="row [[_computeShowInputRow(disabled)]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="input"
|
||||
<iron-input
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newValue}}"/>
|
||||
bind-value="{{_newValue}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="input"
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newValue}}">
|
||||
</iron-input>
|
||||
<gr-button
|
||||
id="addButton"
|
||||
disabled$="[[!_newValue.length]]"
|
||||
|
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-form-styles.html">
|
||||
<link rel="import" href="../../../styles/gr-subpage-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
|
@@ -124,10 +124,14 @@ limitations under the License.
|
||||
class="editBtn">
|
||||
edit
|
||||
</gr-button>
|
||||
<input
|
||||
is=iron-input
|
||||
<iron-input
|
||||
bind-value="{{_revisedRef}}"
|
||||
class="editItem">
|
||||
<input
|
||||
is=iron-input
|
||||
bind-value="{{_revisedRef}}"
|
||||
class="editItem">
|
||||
</iron-input>
|
||||
<gr-button
|
||||
link
|
||||
on-tap="_handleCancelRevision"
|
||||
|
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
|
||||
<link rel="import" href="../../../behaviors/gr-list-view-behavior/gr-list-view-behavior.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-table-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../shared/gr-dialog/gr-dialog.html">
|
||||
|
@@ -87,12 +87,18 @@ limitations under the License.
|
||||
</gr-select>
|
||||
</template>
|
||||
<template is="dom-if" if="[[_isString(option.info.type)]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
value="[[option.info.value]]"
|
||||
on-input="_handleStringChange"
|
||||
data-option-key$="[[option._key]]"
|
||||
disabled$="[[_computeDisabled(option.info.editable)]]"></input>
|
||||
disabled$="[[_computeDisabled(option.info.editable)]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
value="[[option.info.value]]"
|
||||
on-input="_handleStringChange"
|
||||
data-option-key$="[[option._key]]"
|
||||
disabled$="[[_computeDisabled(option.info.editable)]]">
|
||||
</iron-input>
|
||||
</template>
|
||||
<template is="dom-if" if="[[option.info.inherited_value]]">
|
||||
<span class="inherited">
|
||||
|
@@ -270,12 +270,17 @@ limitations under the License.
|
||||
<section>
|
||||
<span class="title">Maximum Git object size limit</span>
|
||||
<span class="value">
|
||||
<input
|
||||
id="maxGitObjSizeInput"
|
||||
<iron-input
|
||||
bind-value="{{_repoConfig.max_object_size_limit.configured_value}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
disabled$="[[_readOnly]]">
|
||||
<input
|
||||
id="maxGitObjSizeInput"
|
||||
bind-value="{{_repoConfig.max_object_size_limit.configured_value}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
disabled$="[[_readOnly]]">
|
||||
</iron-input>
|
||||
<template is="dom-if" if="[[_repoConfig.max_object_size_limit.value]]">
|
||||
effective: [[_repoConfig.max_object_size_limit.value]] bytes
|
||||
</template>
|
||||
|
@@ -19,7 +19,6 @@ limitations under the License.
|
||||
|
||||
<link rel="import" href="../../../behaviors/gr-patch-set-behavior/gr-patch-set-behavior.html">
|
||||
<link rel="import" href="../../../behaviors/rest-client-behavior/rest-client-behavior.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../admin/gr-create-change-dialog/gr-create-change-dialog.html">
|
||||
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
|
||||
<link rel="import" href="../../core/gr-reporting/gr-reporting.html">
|
||||
|
@@ -15,8 +15,9 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html">
|
||||
<link rel="import" href="../../shared/gr-dialog/gr-dialog.html">
|
||||
@@ -77,12 +78,17 @@ limitations under the License.
|
||||
<label for="baseInput">
|
||||
Provide base commit sha1 for cherry-pick
|
||||
</label>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="baseCommitInput"
|
||||
<iron-input
|
||||
maxlength="40"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{baseCommit}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="baseCommitInput"
|
||||
maxlength="40"
|
||||
placeholder="(optional)"
|
||||
bind-value="{{baseCommit}}">
|
||||
</iron-input>
|
||||
<label for="messageInput">
|
||||
Cherry Pick Commit Message
|
||||
</label>
|
||||
|
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
||||
|
||||
@@ -77,11 +78,15 @@ limitations under the License.
|
||||
link
|
||||
on-tap="_handleCloseTap">Close</gr-button>
|
||||
</span>
|
||||
<input
|
||||
id="filterInput"
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
placeholder="Filter"
|
||||
on-bind-value-changed="_onFilterChanged">
|
||||
<input
|
||||
id="filterInput"
|
||||
is="iron-input"
|
||||
placeholder="Filter"
|
||||
on-bind-value-changed="_onFilterChanged">
|
||||
</iron-input>
|
||||
</header>
|
||||
<div class$="[[_computeLoadingClass(_loaded)]]">Loading...</div>
|
||||
<template
|
||||
|
@@ -16,7 +16,6 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../shared/gr-account-chip/gr-account-chip.html">
|
||||
<link rel="import" href="../../shared/gr-button/gr-button.html">
|
||||
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
||||
|
@@ -21,6 +21,7 @@ limitations under the License.
|
||||
<link rel="import" href="../../../behaviors/keyboard-shortcut-behavior/keyboard-shortcut-behavior.html">
|
||||
<link rel="import" href="../../../behaviors/rest-client-behavior/rest-client-behavior.html">
|
||||
<link rel="import" href="/bower_components/iron-dropdown/iron-dropdown.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
|
||||
<link rel="import" href="../../core/gr-reporting/gr-reporting.html">
|
||||
@@ -303,7 +304,9 @@ limitations under the License.
|
||||
<gr-endpoint-decorator name="annotation-toggler">
|
||||
<span hidden id="annotation-span">
|
||||
<label for="annotation-checkbox" id="annotation-label"></label>
|
||||
<input is="iron-input" type="checkbox" id="annotation-checkbox" disabled>
|
||||
<iron-input type="checkbox" disabled>
|
||||
<input is="iron-input" type="checkbox" id="annotation-checkbox" disabled>
|
||||
</iron-input>
|
||||
</span>
|
||||
</gr-endpoint-decorator>
|
||||
</div>
|
||||
|
@@ -18,7 +18,6 @@ limitations under the License.
|
||||
|
||||
<link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html">
|
||||
<link rel="import" href="../../../behaviors/gr-list-view-behavior/gr-list-view-behavior.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-table-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../shared/gr-list-view/gr-list-view.html">
|
||||
|
@@ -132,11 +132,16 @@ limitations under the License.
|
||||
placeholder="Enter an existing full file path."
|
||||
query="[[_query]]"
|
||||
text="{{_path}}"></gr-autocomplete>
|
||||
<input
|
||||
class="newPathInput"
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
class="newPathIronInput"
|
||||
bind-value="{{_newPath}}"
|
||||
placeholder="Enter the new path."/>
|
||||
placeholder="Enter the new path.">
|
||||
<input
|
||||
class="newPathInput"
|
||||
is="iron-input"
|
||||
bind-value="{{_newPath}}"
|
||||
placeholder="Enter the new path.">
|
||||
</iron-input>
|
||||
</div>
|
||||
</gr-dialog>
|
||||
<gr-dialog
|
||||
@@ -148,10 +153,14 @@ limitations under the License.
|
||||
on-cancel="_handleDialogCancel">
|
||||
<div class="header" slot="header">Restore this file?</div>
|
||||
<div class="main" slot="main">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
disabled
|
||||
bind-value="{{_path}}"/>
|
||||
bind-value="{{_path}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
disabled
|
||||
bind-value="{{_path}}">
|
||||
</iron-input>
|
||||
</div>
|
||||
</gr-dialog>
|
||||
</gr-overlay>
|
||||
|
@@ -191,6 +191,9 @@ suite('gr-edit-controls tests', () => {
|
||||
let navStub;
|
||||
let renameStub;
|
||||
let renameAutocomplete;
|
||||
const inputSelector = Polymer.Element ?
|
||||
'.newPathIronInput' :
|
||||
'.newPathInput';
|
||||
|
||||
setup(() => {
|
||||
navStub = sandbox.stub(Gerrit.Nav, 'navigateToChange');
|
||||
@@ -210,7 +213,7 @@ suite('gr-edit-controls tests', () => {
|
||||
assert.isTrue(queryStub.called);
|
||||
assert.isTrue(element.$.renameDialog.disabled);
|
||||
|
||||
element.$.renameDialog.querySelector('.newPathInput').bindValue =
|
||||
element.$.renameDialog.querySelector(inputSelector).bindValue =
|
||||
'src/test.newPath';
|
||||
|
||||
assert.isFalse(element.$.renameDialog.disabled);
|
||||
@@ -238,7 +241,7 @@ suite('gr-edit-controls tests', () => {
|
||||
assert.isTrue(queryStub.called);
|
||||
assert.isTrue(element.$.renameDialog.disabled);
|
||||
|
||||
element.$.renameDialog.querySelector('.newPathInput').bindValue =
|
||||
element.$.renameDialog.querySelector(inputSelector).bindValue =
|
||||
'src/test.newPath';
|
||||
|
||||
assert.isFalse(element.$.renameDialog.disabled);
|
||||
@@ -260,7 +263,7 @@ suite('gr-edit-controls tests', () => {
|
||||
assert.isTrue(element.$.renameDialog.disabled);
|
||||
element.$.renameDialog.querySelector('gr-autocomplete').text =
|
||||
'src/test.cpp';
|
||||
element.$.renameDialog.querySelector('.newPathInput').bindValue =
|
||||
element.$.renameDialog.querySelector(inputSelector).bindValue =
|
||||
'src/test.newPath';
|
||||
assert.isFalse(element.$.renameDialog.disabled);
|
||||
MockInteractions.tap(element.$.renameDialog.$$('gr-button'));
|
||||
|
@@ -79,12 +79,17 @@ limitations under the License.
|
||||
<span
|
||||
hidden$="[[!usernameMutable]]"
|
||||
class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="usernameInput"
|
||||
<iron-input
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_username}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="usernameInput"
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_username}}">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section id="nameSection">
|
||||
@@ -95,24 +100,34 @@ limitations under the License.
|
||||
<span
|
||||
hidden$="[[!nameMutable]]"
|
||||
class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="nameInput"
|
||||
<iron-input
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_account.name}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="nameInput"
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_account.name}}">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Status (e.g. "Vacation")</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="statusInput"
|
||||
<iron-input
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_account.status}}">
|
||||
</span>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="statusInput"
|
||||
disabled="[[_saving]]"
|
||||
on-keydown="_handleKeydown"
|
||||
bind-value="{{_account.status}}">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
</div>
|
||||
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
|
||||
|
@@ -16,7 +16,6 @@ limitations under the License.
|
||||
-->
|
||||
<link rel="import" href="../../../behaviors/gr-change-table-behavior/gr-change-table-behavior.html">
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../shared/gr-button/gr-button.html">
|
||||
<link rel="import" href="../../shared/gr-date-formatter/gr-date-formatter.html">
|
||||
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
||||
|
@@ -95,7 +95,13 @@ limitations under the License.
|
||||
</div>
|
||||
<div class$="agreementsTextBox [[_computeHideAgreementClass(_agreementName, _serverConfig.auth.contributor_agreements)]]">
|
||||
<h3 class="smallHeading">Complete the agreement:</h3>
|
||||
<input id="input-agreements" is="iron-input" bind-value="{{_agreementsText}}" placeholder="Enter 'I agree' here" />
|
||||
<iron-input bind-value="{{_agreementsText}}"
|
||||
placeholder="Enter 'I agree' here">
|
||||
<input id="input-agreements"
|
||||
is="iron-input"
|
||||
bind-value="{{_agreementsText}}"
|
||||
placeholder="Enter 'I agree' here">
|
||||
</iron-input>
|
||||
<gr-button on-tap="_handleSaveAgreements" disabled="[[_disableAgreementsText(_agreementsText)]]">
|
||||
Submit
|
||||
</gr-button>
|
||||
|
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-form-styles.html">
|
||||
<link rel="import" href="../../../styles/shared-styles.html">
|
||||
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
||||
@@ -29,40 +30,64 @@ limitations under the License.
|
||||
<section>
|
||||
<span class="title">Tab width</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.tab_size}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.tab_size}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Columns</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.line_length}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.line_length}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Indent unit</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.indent_unit}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{editPrefs.indent_unit}}"
|
||||
on-keypress="_handleEditPrefsChanged"
|
||||
on-change="_handleEditPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
|
@@ -63,14 +63,22 @@ limitations under the License.
|
||||
<tr>
|
||||
<td class="emailColumn">[[item.email]]</td>
|
||||
<td class="preferredControl" on-tap="_handlePreferredControlTap">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
class="preferredRadio"
|
||||
type="radio"
|
||||
on-change="_handlePreferredChange"
|
||||
name="preferred"
|
||||
value="[[item.email]]"
|
||||
checked$="[[item.preferred]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
class="preferredRadio"
|
||||
type="radio"
|
||||
on-change="_handlePreferredChange"
|
||||
name="preferred"
|
||||
value="[[item.email]]"
|
||||
checked$="[[item.preferred]]">
|
||||
</iron-input>
|
||||
</td>
|
||||
<td>
|
||||
<gr-button
|
||||
|
@@ -85,19 +85,30 @@ limitations under the License.
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th>
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
placeholder="New Title"
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newName}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
placeholder="New Title"
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newName}}">
|
||||
</iron-input>
|
||||
</th>
|
||||
<th>
|
||||
<input
|
||||
<iron-input
|
||||
class="newUrlInput"
|
||||
is="iron-input"
|
||||
placeholder="New URL"
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newUrl}}">
|
||||
<input
|
||||
class="newUrlInput"
|
||||
is="iron-input"
|
||||
placeholder="New URL"
|
||||
on-keydown="_handleInputKeydown"
|
||||
bind-value="{{_newUrl}}">
|
||||
</iron-input>
|
||||
</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
|
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../../styles/gr-form-styles.html">
|
||||
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
|
||||
<link rel="import" href="../../shared/gr-button/gr-button.html">
|
||||
@@ -81,19 +82,27 @@ limitations under the License.
|
||||
<hr>
|
||||
<section>
|
||||
<div class="title">Full Name</div>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="name"
|
||||
<iron-input
|
||||
bind-value="{{_account.name}}"
|
||||
disabled="[[_saving]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="name"
|
||||
bind-value="{{_account.name}}"
|
||||
disabled="[[_saving]]">
|
||||
</iron-input>
|
||||
</section>
|
||||
<section class$="[[_computeUsernameClass(_usernameMutable)]]">
|
||||
<div class="title">Username</div>
|
||||
<input
|
||||
is="iron-input"
|
||||
id="username"
|
||||
<iron-input
|
||||
bind-value="{{_account.username}}"
|
||||
disabled="[[_saving]]">
|
||||
<input
|
||||
is="iron-input"
|
||||
id="username"
|
||||
bind-value="{{_account.username}}"
|
||||
disabled="[[_saving]]">
|
||||
</iron-input>
|
||||
</section>
|
||||
<section>
|
||||
<div class="title">Preferred Email</div>
|
||||
|
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
-->
|
||||
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
|
||||
<link rel="import" href="../../../behaviors/docs-url-behavior/docs-url-behavior.html">
|
||||
<link rel="import" href="/bower_components/paper-toggle-button/paper-toggle-button.html">
|
||||
@@ -49,7 +50,7 @@ limitations under the License.
|
||||
:host {
|
||||
color: var(--primary-text-color);
|
||||
}
|
||||
#newEmailInput {
|
||||
.newEmailInput {
|
||||
width: 20em;
|
||||
}
|
||||
#email {
|
||||
@@ -365,14 +366,22 @@ limitations under the License.
|
||||
<section>
|
||||
<span class="title">New email address</span>
|
||||
<span class="value">
|
||||
<input
|
||||
id="newEmailInput"
|
||||
<iron-input
|
||||
class="newEmailInput"
|
||||
bind-value="{{_newEmail}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
disabled="[[_addingEmail]]"
|
||||
on-keydown="_handleNewEmailKeydown"
|
||||
placeholder="email@example.com">
|
||||
<input
|
||||
class="newEmailInput"
|
||||
bind-value="{{_newEmail}}"
|
||||
is="iron-input"
|
||||
type="text"
|
||||
disabled="[[_addingEmail]]"
|
||||
on-keydown="_handleNewEmailKeydown"
|
||||
placeholder="email@example.com">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section
|
||||
|
@@ -15,6 +15,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
<link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html">
|
||||
<link rel="import" href="../../shared/gr-button/gr-button.html">
|
||||
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
||||
@@ -103,11 +104,15 @@ limitations under the License.
|
||||
placeholder="Repo"></gr-autocomplete>
|
||||
</th>
|
||||
<th colspan$="[[_getTypeCount()]]">
|
||||
<input
|
||||
id="newFilter"
|
||||
<iron-input
|
||||
class="newFilterInput"
|
||||
is="iron-input"
|
||||
placeholder="branch:name, or other search expression">
|
||||
<input
|
||||
id="newFilter"
|
||||
class="newFilterInput"
|
||||
is="iron-input"
|
||||
placeholder="branch:name, or other search expression">
|
||||
</iron-input>
|
||||
</th>
|
||||
<th>
|
||||
<gr-button link on-tap="_handleAddProject">Add</gr-button>
|
||||
|
@@ -47,20 +47,29 @@ limitations under the License.
|
||||
}
|
||||
</style>
|
||||
<div class="text">
|
||||
<input id="input" is="iron-input"
|
||||
<iron-input
|
||||
class$="copyText [[_computeInputClass(hideInput)]]"
|
||||
type="text"
|
||||
bind-value="[[text]]"
|
||||
on-tap="_handleInputTap"
|
||||
readonly>
|
||||
<input
|
||||
id="input"
|
||||
is="iron-input"
|
||||
class$="copyText [[_computeInputClass(hideInput)]]"
|
||||
type="text"
|
||||
bind-value="[[text]]"
|
||||
on-tap="_handleInputTap"
|
||||
readonly>
|
||||
<gr-button id="button"
|
||||
link
|
||||
has-tooltip="[[hasTooltip]]"
|
||||
class="copyToClipboard"
|
||||
title="[[buttonTitle]]"
|
||||
on-tap="_copyToClipboard">
|
||||
<iron-icon id="icon" icon="gr-icons:content-copy"></iron-icon>
|
||||
</gr-button>
|
||||
</iron-input>
|
||||
<gr-button id="button"
|
||||
link
|
||||
has-tooltip="[[hasTooltip]]"
|
||||
class="copyToClipboard"
|
||||
title="[[buttonTitle]]"
|
||||
on-tap="_copyToClipboard">
|
||||
<iron-icon id="icon" icon="gr-icons:content-copy"></iron-icon>
|
||||
</gr-button>
|
||||
</div>
|
||||
</template>
|
||||
<script src="gr-copy-clipboard.js"></script>
|
||||
|
@@ -60,43 +60,67 @@ limitations under the License.
|
||||
<section>
|
||||
<span class="title">Diff width</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
id="columnsInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.line_length}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
id="columnsInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.line_length}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
<span class="title">Tab width</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
id="tabSizeInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.tab_size}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
id="tabSizeInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.tab_size}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section hidden$="[[!diffPrefs.font_size]]">
|
||||
<span class="title">Font size</span>
|
||||
<span class="value">
|
||||
<input
|
||||
is="iron-input"
|
||||
<iron-input
|
||||
type="number"
|
||||
id="fontSizeInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.font_size}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="number"
|
||||
id="fontSizeInput"
|
||||
prevent-invalid-input
|
||||
allowed-pattern="[0-9]"
|
||||
bind-value="{{diffPrefs.font_size}}"
|
||||
on-keypress="_handleDiffPrefsChanged"
|
||||
on-change="_handleDiffPrefsChanged">
|
||||
</iron-input>
|
||||
</span>
|
||||
</section>
|
||||
<section>
|
||||
|
@@ -30,7 +30,9 @@ limitations under the License.
|
||||
<template>
|
||||
<span hidden id="annotation-span">
|
||||
<label for="annotation-checkbox" id="annotation-label"></label>
|
||||
<input is="iron-input" type="checkbox" id="annotation-checkbox" disabled>
|
||||
<iron-input type="checkbox" disabled>
|
||||
<input is="iron-input" type="checkbox" id="annotation-checkbox" disabled>
|
||||
</iron-input>
|
||||
</span>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
@@ -15,6 +15,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<link rel="import" href="/bower_components/polymer/polymer.html">
|
||||
<link rel="import" href="/bower_components/iron-input/iron-input.html">
|
||||
|
||||
<link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html">
|
||||
<link rel="import" href="../../../behaviors/gr-url-encoding-behavior/gr-url-encoding-behavior.html">
|
||||
@@ -68,10 +69,15 @@ limitations under the License.
|
||||
<div id="topContainer">
|
||||
<div class="filterContainer">
|
||||
<label>Filter:</label>
|
||||
<input is="iron-input"
|
||||
<iron-input
|
||||
type="text"
|
||||
id="filter"
|
||||
bind-value="{{filter}}">
|
||||
<input
|
||||
is="iron-input"
|
||||
type="text"
|
||||
id="filter"
|
||||
bind-value="{{filter}}">
|
||||
</iron-input>
|
||||
</div>
|
||||
<div id="createNewContainer"
|
||||
class$="[[_computeCreateClass(createNew)]]">
|
||||
|
Reference in New Issue
Block a user