@elvia/elvis-dropdown
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -6,2 +6,12 @@ { | ||
"date": "18.09.23", | ||
"version": "8.0.2", | ||
"changelog": [ | ||
{ | ||
"type": "patch", | ||
"changes": ["Deprecation warnings removed for old props deprecated more than 6 months ago."] | ||
} | ||
] | ||
}, | ||
{ | ||
"date": "18.09.23", | ||
"version": "8.0.1", | ||
@@ -8,0 +18,0 @@ "changelog": [ |
@@ -6,3 +6,3 @@ /* | ||
export var config={name:"Dropdown",attributes:[{name:"items",type:"object"},{name:"isFullWidth",type:"boolean"},{name:"isSearchable",type:"boolean"},{name:"allOptionsSelectedLabel",type:"string"},{name:"errorOptions",type:"object"},{name:"label",type:"string"},{name:"menuPosition",type:"string"},{name:"placeholder",type:"string"},{name:"placeholderIcon",type:"string"},{name:"value",type:"string"},{name:"size",type:"string"},{name:"isDisabled",type:"boolean"},{name:"isMulti",type:"boolean"},{name:"hasSelectAllOption",type:"boolean"},{name:"selectAllOption",type:"string"},{name:"noOptionsMessage",type:"string"},{name:"hasLoadMoreItemsButton",type:"boolean"},{name:"isLoadingMoreItems",type:"boolean"},{name:"className",type:"string"},{name:"inlineStyle",type:"object"},// Deprecated attributes | ||
{name:"isCompact",type:"boolean",deprecatedDetails:{version:"7.0.0",newProp:"size",isDirectReplacement:!1}},{name:"errorMessage",type:"string",deprecatedDetails:{version:"6.0.0",newProp:"errorOptions.text",isDirectReplacement:!0}},{name:"options",type:"object",deprecatedDetails:{version:"3.0.0",newProp:"value",isDirectReplacement:!0}},{name:"defaultValue",type:"object",deprecatedDetails:{version:"3.0.0",newProp:"items",isDirectReplacement:!0}}]}; | ||
{name:"isCompact",type:"boolean",deprecatedDetails:{version:"7.0.0",newProp:"size",isDirectReplacement:!1}}]}; | ||
//# sourceMappingURL=config.js.map |
@@ -6,18 +6,6 @@ import { FormFieldSizes, BaseProps, HasValue, HasError } from '@elvia/elvis-toolbox'; | ||
export interface DropdownProps extends BaseProps, HasValue<DropdownValue>, HasError { | ||
/** | ||
* @deprecated Removed in version 3.0.0. Replaced by `items`. | ||
*/ | ||
options?: never; | ||
items: DropdownItem[]; | ||
/** | ||
* @deprecated Removed in version 3.0.0. Replaced by `value`. | ||
*/ | ||
defaultValue?: never; | ||
isFullWidth?: boolean; | ||
isSearchable?: boolean; | ||
allOptionsSelectedLabel?: string; | ||
/** | ||
* @deprecated Removed in version 6.0.0. Replaced by `errorOptions.text`. | ||
*/ | ||
errorMessage?: string; | ||
label?: string; | ||
@@ -24,0 +12,0 @@ menuPosition?: DropdownMenuPosition; |
@@ -9,3 +9,3 @@ /* | ||
static get observedAttributes() { | ||
return ["items", "isfullwidth", "issearchable", "alloptionsselectedlabel", "erroroptions", "label", "menuposition", "placeholder", "placeholdericon", "value", "size", "isdisabled", "ismulti", "hasselectalloption", "selectalloption", "nooptionsmessage", "hasloadmoreitemsbutton", "isloadingmoreitems", "classname", "inlinestyle", "iscompact", "errormessage", "options", "defaultvalue"]; | ||
return ["items", "isfullwidth", "issearchable", "alloptionsselectedlabel", "erroroptions", "label", "menuposition", "placeholder", "placeholdericon", "value", "size", "isdisabled", "ismulti", "hasselectalloption", "selectalloption", "nooptionsmessage", "hasloadmoreitemsbutton", "isloadingmoreitems", "classname", "inlinestyle", "iscompact"]; | ||
} | ||
@@ -83,26 +83,2 @@ static getComponentData() { | ||
} | ||
}, { | ||
"name": "errorMessage", | ||
"type": "string", | ||
"deprecatedDetails": { | ||
"version": "6.0.0", | ||
"newProp": "errorOptions.text", | ||
"isDirectReplacement": true | ||
} | ||
}, { | ||
"name": "options", | ||
"type": "object", | ||
"deprecatedDetails": { | ||
"version": "3.0.0", | ||
"newProp": "value", | ||
"isDirectReplacement": true | ||
} | ||
}, { | ||
"name": "defaultValue", | ||
"type": "object", | ||
"deprecatedDetails": { | ||
"version": "3.0.0", | ||
"newProp": "items", | ||
"isDirectReplacement": true | ||
} | ||
}] | ||
@@ -407,42 +383,2 @@ }; | ||
} | ||
set errorMessage(newValue) { | ||
super.setProps({ | ||
'errormessage': newValue | ||
}); | ||
} | ||
get errorMessage() { | ||
return super.getProps()['errormessage']; | ||
} | ||
set errormessage(newValue) { | ||
super.setProps({ | ||
'errormessage': newValue | ||
}); | ||
} | ||
get errormessage() { | ||
return super.getProps()['errormessage']; | ||
} | ||
set options(newValue) { | ||
super.setProps({ | ||
'options': newValue | ||
}); | ||
} | ||
get options() { | ||
return super.getProps()['options']; | ||
} | ||
set defaultValue(newValue) { | ||
super.setProps({ | ||
'defaultvalue': newValue | ||
}); | ||
} | ||
get defaultValue() { | ||
return super.getProps()['defaultvalue']; | ||
} | ||
set defaultvalue(newValue) { | ||
super.setProps({ | ||
'defaultvalue': newValue | ||
}); | ||
} | ||
get defaultvalue() { | ||
return super.getProps()['defaultvalue']; | ||
} | ||
constructor() { | ||
@@ -449,0 +385,0 @@ super(ElviaComponent, ReactComponent['Dropdown']); |
{ | ||
"name": "@elvia/elvis-dropdown", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"main": "web_component.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
202022
1893