From d7f7ffa2214c0b503c8584b986111b3956d5ad71 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Mon, 15 Jul 2019 15:00:02 +0200 Subject: [PATCH] chore(field): small cleanup LionField --- packages/field/src/LionField.js | 92 +++++++++++++------------- packages/field/test/lion-field.test.js | 36 +++++----- 2 files changed, 65 insertions(+), 63 deletions(-) diff --git a/packages/field/src/LionField.js b/packages/field/src/LionField.js index 9b06e0c0f..05cd34c81 100644 --- a/packages/field/src/LionField.js +++ b/packages/field/src/LionField.js @@ -1,39 +1,43 @@ -import { DelegateMixin, SlotMixin } from '@lion/core'; -import { LionLitElement } from '@lion/core/src/LionLitElement.js'; +import { DelegateMixin, SlotMixin, LitElement } from '@lion/core'; import { ElementMixin } from '@lion/core/src/ElementMixin.js'; import { CssClassMixin } from '@lion/core/src/CssClassMixin.js'; import { ObserverMixin } from '@lion/core/src/ObserverMixin.js'; import { ValidateMixin } from '@lion/validate'; - import { FormControlMixin } from './FormControlMixin.js'; import { InteractionStateMixin } from './InteractionStateMixin.js'; // applies FocusMixin import { FormatMixin } from './FormatMixin.js'; import { FocusMixin } from './FocusMixin.js'; +/* eslint-disable wc/guard-super-call */ + +// TODO: +// - Consider exporting as FieldMixin +// - Add submitted prop to InteractionStateMixin +// - Find a better way to do value delegation via attr + /** - * LionField: wraps components input, textarea and select and potentially others - * (checkbox group, radio group) + * `LionField`: wraps ,