From 4bce0a31c73e1885f872e045c31aa33054c65d1f Mon Sep 17 00:00:00 2001 From: dvelluto Date: Wed, 31 Jul 2024 13:26:39 +0200 Subject: [PATCH] fix(SUPX-244): add missing properties to checkbox --- scripts/generateWrappers/consts.js | 32 ++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/scripts/generateWrappers/consts.js b/scripts/generateWrappers/consts.js index 21dadf5..c340fe8 100644 --- a/scripts/generateWrappers/consts.js +++ b/scripts/generateWrappers/consts.js @@ -96,7 +96,7 @@ const ComponentsEventsMapV3 = { VwcTextField: ['input'], VwcCheckbox: ['change'], VwcCombobox: ['change'], - VwcDatePicker: ['change', 'input'], + VwcDatePicker: ['change', 'input'] } const ComponentsReadOnlyPropertiesMap = { @@ -174,8 +174,8 @@ const ComponentsBindablePropertiesMap = { const ComponentsExtraPropertiesMap = { VwcIconButton: [ { - 'name': 'value', - 'type': 'string' + name: 'value', + type: 'string' } ] } @@ -204,13 +204,33 @@ const Vivid3ComponentsExtraPropertiesMap = { } ], Checkbox: [ + { + name: 'onClick', + type: { text: 'any' } + }, + { + name: 'label', + type: { text: 'string | undefined' } + }, + { + name: 'value', + type: { text: 'string | undefined' } + }, { name: 'checked', - type: { text: 'boolean' } + type: { text: 'boolean | undefined' } }, { - name: 'onClick', - type: { text: 'any' } + name: 'indeterminate', + type: { text: 'boolean | undefined' } + }, + { + name: 'disabled', + type: { text: 'boolean | undefined' } + }, + { + name: 'readonly', + type: { text: 'boolean | undefined' } } ], Button: [