@vaadin/vaadin-text-field
Advanced tools
Comparing version 2.0.1-pre.2 to 2.1.0-alpha2
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-text-field", | ||
"version": "2.0.1-pre.2", | ||
"version": "2.1.0-alpha2", | ||
"main": "vaadin-text-field.js", | ||
@@ -26,21 +26,27 @@ "author": "Vaadin Ltd", | ||
"type-detect": "1.0.0", | ||
"@webcomponents/webcomponentsjs": "2.0.0-beta.2" | ||
"@vaadin/vaadin-themable-mixin": "1.2.0-alpha2", | ||
"@vaadin/vaadin-control-state-mixin": "2.1.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "1.1.0-alpha3", | ||
"@vaadin/vaadin-element-mixin": "1.1.0-alpha1", | ||
"@vaadin/vaadin-development-mode-detector": "1.1.0-alpha2", | ||
"@vaadin/vaadin-usage-statistics": "1.1.0-alpha1" | ||
}, | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0-pre.13", | ||
"@vaadin/vaadin-themable-mixin": "^1.1.5-pre.2", | ||
"@vaadin/vaadin-control-state-mixin": "^2.0.3-pre.2", | ||
"@vaadin/vaadin-lumo-styles": "^1.0.0-pre.4", | ||
"@vaadin/vaadin-element-mixin": "^1.0.2-pre.2" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-control-state-mixin": "^2.1.0-alpha2", | ||
"@vaadin/vaadin-element-mixin": "^1.1.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "^1.1.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "^1.1.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "^1.2.0-alpha2" | ||
}, | ||
"devDependencies": { | ||
"@polymer/iron-component-page": "^3.0.0-pre.15", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.15", | ||
"@polymer/iron-form": "^3.0.0-pre.15", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.15", | ||
"@webcomponents/webcomponentsjs": "^2.0.0-beta.2", | ||
"wct-browser-legacy": "^0.0.1-pre.11", | ||
"@vaadin/vaadin-demo-helpers": "^1.2.5-pre.1", | ||
"@vaadin/vaadin-button": "^2.0.0-pre.2" | ||
"@polymer/iron-component-page": "^3.0.0-pre.12", | ||
"@polymer/iron-demo-helpers": "^3.0.0-pre.12", | ||
"@polymer/iron-form": "^3.0.0-pre.12", | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.12", | ||
"@vaadin/vaadin-button": "^2.0.0-pre.3", | ||
"@vaadin/vaadin-demo-helpers": "^2.0.0-alpha2", | ||
"@webcomponents/webcomponentsjs": "^1.0.0", | ||
"wct-browser-legacy": "0.0.1-pre.11" | ||
} | ||
} |
@@ -1,7 +0,10 @@ | ||
![Bower version](https://img.shields.io/bower/v/vaadin-text-field.svg) | ||
[![npm version](https://badge.fury.io/js/%40vaadin%2Fvaadin-text-field.svg)](https://badge.fury.io/js/%40vaadin%2Fvaadin-text-field) | ||
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/vaadin/vaadin-text-field) | ||
[![Build Status](https://travis-ci.org/vaadin/vaadin-text-field.svg?branch=master)](https://travis-ci.org/vaadin/vaadin-text-field) | ||
[![Coverage Status](https://coveralls.io/repos/github/vaadin/vaadin-text-field/badge.svg?branch=master)](https://coveralls.io/github/vaadin/vaadin-text-field?branch=master) | ||
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vaadin/web-components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-text-field) | ||
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/vaadinvaadin-text-field.svg)](https://vaadin.com/directory/component/vaadinvaadin-text-field) | ||
# <vaadin-text-field> | ||
@@ -8,0 +11,0 @@ |
@@ -1,12 +0,6 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import '@polymer/polymer/polymer-element.js'; | ||
import '@polymer/polymer/lib/elements/custom-style.js'; | ||
import { TextFieldElement } from './vaadin-text-field.js'; | ||
import { DomModule } from '@polymer/polymer/lib/elements/dom-module.js'; | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -42,3 +36,3 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); | ||
let memoizedTemplate; | ||
@@ -82,3 +76,3 @@ | ||
static get version() { | ||
return '2.0.1-pre.2'; | ||
return '2.1.0-alpha2'; | ||
} | ||
@@ -85,0 +79,0 @@ |
@@ -1,8 +0,2 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
import { TextFieldMixin } from './vaadin-text-field-mixin.js'; | ||
@@ -20,2 +14,16 @@ import { ElementMixin } from '@vaadin/vaadin-element-mixin/vaadin-element-mixin.js'; | ||
* | ||
* ### Prefixes and suffixes | ||
* | ||
* These are child elements of a `<vaadin-text-area>` that are displayed | ||
* inline with the input, before or after. | ||
* In order for an element to be considered as a prefix, it must have the slot | ||
* attribute set to `prefix` (and similarly for `suffix`). | ||
* | ||
* ```html | ||
* <vaadin-text-area label="Add description"> | ||
* <div slot="prefix">Details:</div> | ||
* <div slot="suffix">The end!</div> | ||
* </vaadin-text-area> | ||
* ``` | ||
* | ||
* ### Styling | ||
@@ -107,3 +115,3 @@ * | ||
static get version() { | ||
return '2.0.1-pre.2'; | ||
return '2.1.0-alpha2'; | ||
} | ||
@@ -110,0 +118,0 @@ |
@@ -1,10 +0,4 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
import { ControlStateMixin } from '@vaadin/vaadin-control-state-mixin/vaadin-control-state-mixin.js'; | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -91,8 +85,4 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); | ||
/** | ||
* @polymerMixin | ||
* @mixes Vaadin.ControlStateMixin | ||
*/ | ||
export const TextFieldMixin = subclass => class VaadinTextFieldMixin extends ControlStateMixin(subclass) { | ||
@@ -99,0 +89,0 @@ static get properties() { |
@@ -1,8 +0,2 @@ | ||
/** | ||
@license | ||
Copyright (c) 2017 Vaadin Ltd. | ||
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
import { TextFieldMixin } from './vaadin-text-field-mixin.js'; | ||
@@ -20,2 +14,16 @@ import { ElementMixin } from '@vaadin/vaadin-element-mixin/vaadin-element-mixin.js'; | ||
* | ||
* ### Prefixes and suffixes | ||
* | ||
* These are child elements of a `<vaadin-text-field>` that are displayed | ||
* inline with the input, before or after. | ||
* In order for an element to be considered as a prefix, it must have the slot | ||
* attribute set to `prefix` (and similarly for `suffix`). | ||
* | ||
* ```html | ||
* <vaadin-text-field label="Email address"> | ||
* <div slot="prefix">Sent to:</div> | ||
* <div slot="suffix">@vaadin.com</div> | ||
* </vaadin-text-area> | ||
* ``` | ||
* | ||
* ### Styling | ||
@@ -60,3 +68,5 @@ * | ||
return html` | ||
<style include="vaadin-text-field-shared-styles"></style> | ||
<style include="vaadin-text-field-shared-styles"> | ||
/* polymer-cli linter breaks with empty line */ | ||
</style> | ||
@@ -88,3 +98,3 @@ <div class="vaadin-text-field-container"> | ||
static get version() { | ||
return '2.0.1-pre.2'; | ||
return '2.1.0-alpha2'; | ||
} | ||
@@ -91,0 +101,0 @@ |
@@ -1,2 +0,2 @@ | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -21,2 +21,2 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); |
import '@vaadin/vaadin-lumo-styles/font-icons.js'; | ||
import '@vaadin/vaadin-lumo-styles/sizing.js'; | ||
import '@vaadin/vaadin-lumo-styles/mixins/field-button.js'; | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -26,2 +26,2 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); |
import '@vaadin/vaadin-lumo-styles/color.js'; | ||
import '@vaadin/vaadin-lumo-styles/sizing.js'; | ||
import '@vaadin/vaadin-lumo-styles/typography.js'; | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -45,3 +45,3 @@ | ||
[part="input-field"] ::slotted(iron-icon) { | ||
margin-top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2) | ||
margin-top: calc((var(--lumo-icon-size-m) - 1em * var(--lumo-line-height-s)) / -2); | ||
} | ||
@@ -57,2 +57,2 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); |
@@ -6,3 +6,3 @@ import '@vaadin/vaadin-lumo-styles/color.js'; | ||
import '@vaadin/vaadin-lumo-styles/typography.js'; | ||
const $_documentContainer = document.createElement('template'); | ||
const $_documentContainer = document.createElement('div'); | ||
$_documentContainer.setAttribute('style', 'display: none;'); | ||
@@ -349,2 +349,2 @@ | ||
document.head.appendChild($_documentContainer.content); | ||
document.head.appendChild($_documentContainer); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
872482
141
1847
140
6
2
3
+ Added@vaadin/vaadin-material-styles@1.3.2(transitive)
Updated@polymer/polymer@^3.0.0