Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Update NPM dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieujabbour committed Jun 20, 2021
1 parent 6557d9f commit c411cd2
Show file tree
Hide file tree
Showing 6 changed files with 222 additions and 270 deletions.
2 changes: 1 addition & 1 deletion library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"basx": "^1.3.4",
"diox": "^4.0.1",
"localforage": "^1.9.0",
"sonar-ui": "^0.0.36"
"sonar-ui": "^0.0.37"
},
"engines": {
"node": ">= 10.0.0",
Expand Down
10 changes: 7 additions & 3 deletions library/src/scripts/react/components/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,24 @@ const builtInComponents: Components = {
name={field.id}
label={field.label}
value={field.value}
onChange={onUserAction}
min={field.options.min}
max={field.options.max}
onChange={onUserAction}
step={field.options.step}
icon={field.options.icon}
size={field.options.size}
type={field.options.type}
onBlur={field.options.onBlur}
onFocus={field.options.onFocus}
autocomplete={field.options.autocomplete}
readonly={field.options.readonly || field.active === false}
maxlength={field.options.maxlength}
transform={field.options.transform}
placeholder={field.options.placeholder}
onIconClick={field.options.onIconClick}
autocomplete={field.options.autocomplete}
iconPosition={field.options.iconPosition}
helper={field.message || field.options.helper}
debounceTimeout={field.options.debounceTimeout}
readonly={field.options.readonly || field.active === false}
modifiers={`${field.status} ${field.options.modifiers || ''}`}
/>
),
Expand All @@ -91,9 +93,11 @@ const builtInComponents: Components = {
onBlur={field.options.onBlur}
onFocus={field.options.onFocus}
maxlength={field.options.maxlength}
transform={field.options.transform}
placeholder={field.options.placeholder}
autocomplete={field.options.autocomplete}
helper={field.message || field.options.helper}
debounceTimeout={field.options.debounceTimeout}
readonly={field.options.readonly || field.active === false}
modifiers={`${field.status} ${field.options.modifiers || ''}`}
/>
Expand Down
2 changes: 1 addition & 1 deletion library/src/scripts/react/components/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const propTypes = {
label: PropTypes.string,
modifiers: PropTypes.string,
id: PropTypes.string.isRequired,
variables: PropTypes.objectOf(PropTypes.string.isRequired),
variables: PropTypes.objectOf(PropTypes.any.isRequired),
};

const defaultProps = {
Expand Down
4 changes: 4 additions & 0 deletions library/src/scripts/vue/components/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,12 @@ const builtInComponents: Components = {
size: field.options.size,
type: field.options.type,
readonly: field.options.readonly || field.active === false,
transform: field.options.transform,
maxlength: field.options.maxlength,
placeholder: field.options.placeholder,
iconPosition: field.options.iconPosition,
helper: field.message || field.options.helper,
debounceTimeout: field.options.debounceTimeout,
modifiers: `${field.status} ${field.options.modifiers || ''} `,
},
events: {
Expand All @@ -173,10 +175,12 @@ const builtInComponents: Components = {
value: field.value,
cols: field.options.cols,
rows: field.options.rows,
transform: field.options.transform,
maxlength: field.options.maxlength,
placeholder: field.options.placeholder,
autocomplete: field.options.autocomplete,
helper: field.message || field.options.helper,
debounceTimeout: field.options.debounceTimeout,
readonly: field.options.readonly || field.active === false,
modifiers: `${field.status} ${field.options.modifiers || ''}`,
},
Expand Down
Loading

0 comments on commit c411cd2

Please sign in to comment.