@lion/field
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.1.3](https://github.com/ing-bank/lion/compare/@lion/field@0.1.2...@lion/field@0.1.3) (2019-04-28) | ||
### Bug Fixes | ||
* update storybook/linting; adjust story labels, eslint ignores ([8d96f84](https://github.com/ing-bank/lion/commit/8d96f84)) | ||
## [0.1.2](https://github.com/ing-bank/lion/compare/@lion/field@0.1.1...@lion/field@0.1.2) (2019-04-27) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@lion/field", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Fields are the most fundamental building block of the Form System", | ||
@@ -34,12 +34,12 @@ "author": "ing-bank", | ||
"dependencies": { | ||
"@lion/core": "^0.1.2", | ||
"@lion/validate": "^0.1.2" | ||
"@lion/core": "^0.1.3", | ||
"@lion/validate": "^0.1.3" | ||
}, | ||
"devDependencies": { | ||
"@lion/localize": "^0.1.2", | ||
"@open-wc/storybook": "^0.1.5", | ||
"@lion/localize": "^0.1.3", | ||
"@open-wc/demoing-storybook": "^0.2.0", | ||
"@open-wc/testing": "^0.11.1", | ||
"sinon": "^7.2.2" | ||
}, | ||
"gitHead": "6497db62d375612d691f00120daa0cdb2d899dc5" | ||
"gitHead": "bb1d1448b59f5b6579880a521f0695578d09eb73" | ||
} |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable no-underscore-dangle */ | ||
import { dedupeMixin, nothing } from '@lion/core'; | ||
@@ -3,0 +2,0 @@ |
@@ -1,3 +0,1 @@ | ||
/* eslint-disable no-underscore-dangle */ | ||
import { dedupeMixin, DelegateMixin } from '@lion/core'; | ||
@@ -4,0 +2,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable no-underscore-dangle, class-methods-use-this */ | ||
/* eslint-disable class-methods-use-this */ | ||
@@ -57,3 +57,3 @@ import { dedupeMixin } from '@lion/core'; | ||
* - For a number input this would be the String representation of a float ('1234.56' instead | ||
* of 1234.56) // eslint-disable-line max-len | ||
* of 1234.56) | ||
* | ||
@@ -60,0 +60,0 @@ * When no parser is available, the value is usually the same as the formattedValue |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable no-underscore-dangle */ | ||
import { html, css, nothing, dedupeMixin } from '@lion/core'; | ||
@@ -499,3 +498,3 @@ import { ObserverMixin } from '@lion/core/src/ObserverMixin.js'; | ||
this._interactionStateFeedbackCondition() | ||
); // eslint-disable-line max-len | ||
); | ||
} | ||
@@ -502,0 +501,0 @@ |
@@ -16,5 +16,2 @@ import { dedupeMixin } from '@lion/core'; | ||
*/ | ||
/* eslint-disable class-methods-use-this, no-underscore-dangle */ | ||
export const InteractionStateMixin = dedupeMixin( | ||
@@ -21,0 +18,0 @@ superclass => |
@@ -13,4 +13,2 @@ import { DelegateMixin, SlotMixin } from '@lion/core'; | ||
/* eslint-disable max-len, no-underscore-dangle, class-methods-use-this, camelcase, no-param-reassign */ | ||
/** | ||
@@ -56,3 +54,3 @@ * LionField: wraps components input, textarea and select and potentially others | ||
'selectionEnd', | ||
], // eslint-disable-line max-len | ||
], | ||
attributes: [...super.delegations.attributes, 'name', 'type', 'disabled'], | ||
@@ -198,2 +196,3 @@ }; | ||
// eslint-disable-next-line class-methods-use-this | ||
__isRequired(modelValue) { | ||
@@ -200,0 +199,0 @@ return { |
@@ -1,3 +0,1 @@ | ||
/* eslint-env mocha */ | ||
/* eslint-disable class-methods-use-this, no-underscore-dangle, max-len */ | ||
import { expect, fixture, defineCE } from '@open-wc/testing'; | ||
@@ -4,0 +2,0 @@ import { LionField } from '../src/LionField.js'; |
@@ -1,3 +0,1 @@ | ||
/* eslint-env mocha */ | ||
/* eslint-disable class-methods-use-this, no-underscore-dangle */ | ||
import { expect, fixture, html, aTimeout, defineCE, unsafeStatic } from '@open-wc/testing'; | ||
@@ -15,3 +13,2 @@ import sinon from 'sinon'; | ||
/* eslint-disable no-unused-expressions */ | ||
describe('FormatMixin', () => { | ||
@@ -18,0 +15,0 @@ let elem; |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable class-methods-use-this, no-underscore-dangle, no-unused-expressions */ | ||
import { expect, fixture, html, defineCE, unsafeStatic, nextFrame } from '@open-wc/testing'; | ||
@@ -15,3 +14,2 @@ import sinon from 'sinon'; | ||
before(async () => { | ||
// eslint-disable-next-line max-len | ||
const FormControlMixinClass = class extends FormControlMixin(SlotMixin(LionLitElement)) { | ||
@@ -18,0 +16,0 @@ static get properties() { |
@@ -1,6 +0,1 @@ | ||
/* eslint-env mocha */ | ||
/* | ||
eslint-disable class-method-use-this, no-underscore-dangle, | ||
no-unused-expressions, no-new, no-unused-vars | ||
*/ | ||
import { expect, fixture, unsafeStatic, html, defineCE } from '@open-wc/testing'; | ||
@@ -53,3 +48,2 @@ import sinon from 'sinon'; | ||
it('sets touched to true when field left after focus', async () => { | ||
// eslint-disable-next-line max-len | ||
// const formElement = await LionTest.htmlFixture(`<${elem}><input type="text" slot="input"></${elem}>`); | ||
@@ -56,0 +50,0 @@ // await triggerFocusFor(formElement.inputElement); // focus/blur can't be delegated |
@@ -1,3 +0,1 @@ | ||
/* eslint-env mocha */ | ||
/* eslint-disable no-underscore-dangle, no-unused-expressions */ | ||
import { | ||
@@ -141,3 +139,2 @@ expect, | ||
it('preserves the caret position on value change for native text fields (input|textarea)', async () => { | ||
// eslint-disable-line | ||
const lionField = await fixture(`<${tagString}>${inputSlotString}</${tagString}>`); | ||
@@ -144,0 +141,0 @@ await triggerFocusFor(lionField); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159299
2104
Updated@lion/core@^0.1.3
Updated@lion/validate@^0.1.3