From eb1e29557601c538aaa1e5836e2984cb8b65400e Mon Sep 17 00:00:00 2001 From: gerjanvangeest Date: Fri, 2 Aug 2019 13:29:06 +0200 Subject: [PATCH] chore: removed super.properties everywhere --- packages/choice-input/src/ChoiceInputMixin.js | 1 - packages/field/src/FieldCustomMixin.js | 1 - packages/field/src/FormControlMixin.js | 1 - packages/field/src/FormatMixin.js | 2 -- packages/field/src/InteractionStateMixin.js | 1 - packages/field/test/FieldCustomMixin.test.js | 1 - packages/field/test/FormControlMixin.test.js | 1 - packages/input-amount/src/LionInputAmount.js | 1 - packages/input-datepicker/src/LionInputDatepicker.js | 1 - packages/input/src/LionInput.js | 1 - packages/select-rich/src/LionSelectRich.js | 1 - packages/textarea/src/LionTextarea.js | 1 - packages/validate/src/ValidateMixin.js | 1 - packages/validate/test/ValidateMixin.test.js | 6 +----- 14 files changed, 1 insertion(+), 19 deletions(-) diff --git a/packages/choice-input/src/ChoiceInputMixin.js b/packages/choice-input/src/ChoiceInputMixin.js index b0479a186..01927ee58 100644 --- a/packages/choice-input/src/ChoiceInputMixin.js +++ b/packages/choice-input/src/ChoiceInputMixin.js @@ -8,7 +8,6 @@ export const ChoiceInputMixin = superclass => class ChoiceInputMixin extends FormatMixin(superclass) { static get properties() { return { - ...super.properties, /** * Boolean indicating whether or not this element is checked by the end user. */ diff --git a/packages/field/src/FieldCustomMixin.js b/packages/field/src/FieldCustomMixin.js index a0f315bb7..46777495c 100644 --- a/packages/field/src/FieldCustomMixin.js +++ b/packages/field/src/FieldCustomMixin.js @@ -13,7 +13,6 @@ export const FieldCustomMixin = dedupeMixin( class FieldCustomMixin extends superclass { static get properties() { return { - ...super.properties, /** * When no light dom defined and prop set */ diff --git a/packages/field/src/FormControlMixin.js b/packages/field/src/FormControlMixin.js index 470836c51..a33b52c12 100644 --- a/packages/field/src/FormControlMixin.js +++ b/packages/field/src/FormControlMixin.js @@ -18,7 +18,6 @@ export const FormControlMixin = dedupeMixin( class FormControlMixin extends FormRegisteringMixin(ObserverMixin(SlotMixin(superclass))) { static get properties() { return { - ...super.properties, /** * A list of ids that will be put on the inputElement as a serialized string */ diff --git a/packages/field/src/FormatMixin.js b/packages/field/src/FormatMixin.js index 1a9b48d0c..e321aafd9 100644 --- a/packages/field/src/FormatMixin.js +++ b/packages/field/src/FormatMixin.js @@ -53,8 +53,6 @@ export const FormatMixin = dedupeMixin( class FormatMixin extends ObserverMixin(superclass) { static get properties() { return { - ...super.properties, - /** * The model value is the result of the parser function(when available). * It should be considered as the internal value used for validation and reasoning/logic. diff --git a/packages/field/src/InteractionStateMixin.js b/packages/field/src/InteractionStateMixin.js index 9e7deb32d..3abac16aa 100644 --- a/packages/field/src/InteractionStateMixin.js +++ b/packages/field/src/InteractionStateMixin.js @@ -18,7 +18,6 @@ export const InteractionStateMixin = dedupeMixin( class InteractionStateMixin extends ObserverMixin(superclass) { static get properties() { return { - ...super.properties, /** * True when user has focused and left(blurred) the field. */ diff --git a/packages/field/test/FieldCustomMixin.test.js b/packages/field/test/FieldCustomMixin.test.js index 2b0750b5c..369f1f0da 100644 --- a/packages/field/test/FieldCustomMixin.test.js +++ b/packages/field/test/FieldCustomMixin.test.js @@ -11,7 +11,6 @@ describe('FieldCustomMixin', () => { const FieldCustomMixinClass = class extends FieldCustomMixin(LionField) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, diff --git a/packages/field/test/FormControlMixin.test.js b/packages/field/test/FormControlMixin.test.js index d2e58560f..616449832 100644 --- a/packages/field/test/FormControlMixin.test.js +++ b/packages/field/test/FormControlMixin.test.js @@ -13,7 +13,6 @@ describe('FormControlMixin', () => { const FormControlMixinClass = class extends FormControlMixin(SlotMixin(LionLitElement)) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, diff --git a/packages/input-amount/src/LionInputAmount.js b/packages/input-amount/src/LionInputAmount.js index 69d93e9cf..75550ae89 100644 --- a/packages/input-amount/src/LionInputAmount.js +++ b/packages/input-amount/src/LionInputAmount.js @@ -16,7 +16,6 @@ import { formatAmount } from './formatters.js'; export class LionInputAmount extends FieldCustomMixin(LocalizeMixin(ObserverMixin(LionInput))) { static get properties() { return { - ...super.properties, currency: { type: String, }, diff --git a/packages/input-datepicker/src/LionInputDatepicker.js b/packages/input-datepicker/src/LionInputDatepicker.js index f6b6c16c6..012b77b86 100644 --- a/packages/input-datepicker/src/LionInputDatepicker.js +++ b/packages/input-datepicker/src/LionInputDatepicker.js @@ -12,7 +12,6 @@ import './lion-calendar-overlay-frame.js'; export class LionInputDatepicker extends LionInputDate { static get properties() { return { - ...super.properties, /** * The heading to be added on top of the calendar overlay. * Naming chosen from an Application Developer perspective. diff --git a/packages/input/src/LionInput.js b/packages/input/src/LionInput.js index 31b9905b9..ba28a423f 100644 --- a/packages/input/src/LionInput.js +++ b/packages/input/src/LionInput.js @@ -9,7 +9,6 @@ import { LionField } from '@lion/field'; export class LionInput extends LionField { static get properties() { return { - ...super.properties, /** * A Boolean attribute which, if present, indicates that the user should not be able to edit * the value of the input. The difference between disabled and readonly is that read-only diff --git a/packages/select-rich/src/LionSelectRich.js b/packages/select-rich/src/LionSelectRich.js index e888264d2..2a05e9388 100644 --- a/packages/select-rich/src/LionSelectRich.js +++ b/packages/select-rich/src/LionSelectRich.js @@ -30,7 +30,6 @@ export class LionSelectRich extends FormRegistrarMixin( ) { static get properties() { return { - ...super.properties, checkedValue: { type: Object, }, diff --git a/packages/textarea/src/LionTextarea.js b/packages/textarea/src/LionTextarea.js index 7420df5eb..9692dcc77 100644 --- a/packages/textarea/src/LionTextarea.js +++ b/packages/textarea/src/LionTextarea.js @@ -12,7 +12,6 @@ import { ObserverMixin } from '@lion/core/src/ObserverMixin.js'; export class LionTextarea extends ObserverMixin(LionInput) { static get properties() { return { - ...super.properties, maxRows: { type: Number, attribute: 'max-rows', diff --git a/packages/validate/src/ValidateMixin.js b/packages/validate/src/ValidateMixin.js index eba027f29..dd3b9b83d 100644 --- a/packages/validate/src/ValidateMixin.js +++ b/packages/validate/src/ValidateMixin.js @@ -110,7 +110,6 @@ export const ValidateMixin = dedupeMixin( static get properties() { return { - ...super.properties, /** * List of validators that should set the input to invalid */ diff --git a/packages/validate/test/ValidateMixin.test.js b/packages/validate/test/ValidateMixin.test.js index f58896071..326e747d0 100644 --- a/packages/validate/test/ValidateMixin.test.js +++ b/packages/validate/test/ValidateMixin.test.js @@ -19,7 +19,6 @@ const tagString = defineCE( class extends ValidateMixin(LionLitElement) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, @@ -658,7 +657,6 @@ describe('ValidateMixin', () => { class extends ValidateMixin(LionLitElement) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, @@ -782,7 +780,6 @@ describe('ValidateMixin', () => { class extends ValidateMixin(LionLitElement) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, @@ -934,7 +931,6 @@ describe('ValidateMixin', () => { class extends ValidateMixin(LionLitElement) { static get properties() { return { - ...super.properties, modelValue: { type: String, }, @@ -1220,7 +1216,7 @@ describe('ValidateMixin', () => { const orderName = defineCE( class extends ValidateMixin(LionLitElement) { static get properties() { - return { ...super.properties, modelValue: { type: String } }; + return { modelValue: { type: String } }; } static get localizeNamespaces() {