comand-component-library
Advanced tools
Comparing version 3.1.70 to 3.1.71
{ | ||
"name": "comand-component-library", | ||
"version": "3.1.70", | ||
"version": "3.1.71", | ||
"private": false, | ||
@@ -21,3 +21,3 @@ "scripts": { | ||
"clickout-event": "^1.1.2", | ||
"comand-frontend-framework": "^3.2.59", | ||
"comand-frontend-framework": "^3.2.60", | ||
"core-js": "^3.20.1", | ||
@@ -24,0 +24,0 @@ "prismjs": "^1.27.0", |
@@ -7,3 +7,2 @@ [ | ||
"path": "#", | ||
"target": "", | ||
"tooltip": "Link without text, but tooltip" | ||
@@ -10,0 +9,0 @@ }, |
@@ -23,6 +23,6 @@ import "clickout-event" | ||
export { default as CmdImageZoom } from '@/components/CmdImageZoom' | ||
export { default as CmdInputGroup } from '@/components/CmdInputGroup' | ||
export { default as CmdListOfLinks } from '@/components/CmdListOfLinks' | ||
export { default as CmdLoginForm } from '@/components/CmdLoginForm' | ||
export { default as CmdMainNavigation } from '@/components/CmdMainNavigation' | ||
export { default as CmdMultipleSwitch } from '@/components/CmdMultipleSwitch' | ||
export { default as CmdMultistepFormProgressBar } from '@/components/CmdMultistepFormProgressBar' | ||
@@ -29,0 +29,0 @@ export { default as CmdOpeningHours } from '@/components/CmdOpeningHours' |
@@ -5,3 +5,3 @@ export default { | ||
defaultMessageProperties: { | ||
"cmdformelement.headline.requirement_for_input": "Requirement for input", | ||
"cmdformelement.headline.requirements_for_input": "Requirements for input", | ||
"cmdformelement.validationTooltip.an_error_occurred": "An error occurred!", | ||
@@ -8,0 +8,0 @@ "cmdformelement.validationTooltip.information_is_filled_correctly": "This information is filled correctly!", |
@@ -119,3 +119,3 @@ // import mixins | ||
return { | ||
iconClass: "icon-caps-lock" | ||
iconClass: "icon-caps-lock-circle" | ||
} | ||
@@ -122,0 +122,0 @@ } |
export default { | ||
data() { | ||
return { | ||
defaultMessageProperties: { | ||
fieldValidationDefaultMessageProperties: { | ||
"cmdfieldvalidation.open_detailed_help": "Open detailed help!", | ||
"cmdfieldvalidation.information_not_filled_correctly": "This information is not filled correctly!", | ||
@@ -8,0 +7,0 @@ "cmdfieldvalidation.information_filled_correctly": "This information is filled correctly!", |
@@ -45,6 +45,6 @@ export default { | ||
messages[key] || | ||
(this.defaultMessageProperties && this.defaultMessageProperties[key]) || | ||
this.getDefaultMessageProperty(key) || | ||
key | ||
if (typeof message === "function") { | ||
return message.call(this, params || []) | ||
return message.call(this, params || []); | ||
} | ||
@@ -55,4 +55,14 @@ if (Array.isArray(params) && params.length) { | ||
return message | ||
}, | ||
getDefaultMessageProperty(key) { | ||
if (this.defaultMessageProperties && this.defaultMessageProperties[key]) { | ||
return this.defaultMessageProperties[key] | ||
} | ||
const propertyKey = Object.keys(this).find(p => p.slice(-24) === "DefaultMessageProperties") | ||
if (propertyKey && this[propertyKey]?.[key]) { | ||
return this[propertyKey][key] | ||
} | ||
return null | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
987615
415
3433
16
3
167