comand-component-library 3.1.70 → 3.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/dist/comand-component-library.css +1 -1
  2. package/dist/comand-component-library.umd.min.js +1 -1
  3. package/package.json +2 -2
  4. package/src/App.vue +356 -225
  5. package/src/assets/data/list-of-links.json +0 -1
  6. package/src/assets/styles/global-styles.scss +26 -0
  7. package/src/components/CmdBox.vue +12 -6
  8. package/src/components/CmdCompanyLogo.vue +3 -3
  9. package/src/components/CmdCookieDisclaimer.vue +20 -4
  10. package/src/components/CmdFakeSelect.vue +17 -12
  11. package/src/components/CmdFormElement.vue +85 -81
  12. package/src/components/CmdInputGroup.vue +31 -7
  13. package/src/components/CmdProgressBar.vue +2 -2
  14. package/src/components/CmdTable.vue +1 -1
  15. package/src/components/CmdToggleDarkMode.vue +30 -10
  16. package/src/components/CmdTooltip.vue +1 -1
  17. package/src/documentation/generated/CmdAddressDataPropertyDescriptions.json +32 -0
  18. package/src/documentation/generated/CmdBackToTopButtonPropertyDescriptions.json +12 -0
  19. package/src/documentation/generated/CmdBankAccountDataPropertyDescriptions.json +34 -0
  20. package/src/documentation/generated/CmdBoxPropertyDescriptions.json +96 -0
  21. package/src/documentation/generated/CmdBoxSiteSearchPropertyDescriptions.json +79 -0
  22. package/src/documentation/generated/CmdBoxWrapperPropertyDescriptions.json +47 -0
  23. package/src/documentation/generated/CmdBreadcrumbsPropertyDescriptions.json +17 -0
  24. package/src/documentation/generated/CmdCompanyLogoPropertyDescriptions.json +27 -0
  25. package/src/documentation/generated/CmdCookieDisclaimerPropertyDescriptions.json +32 -0
  26. package/src/documentation/generated/CmdCustomHeadlinePropertyDescriptions.json +22 -0
  27. package/src/documentation/generated/CmdFakeSelectPropertyDescriptions.json +84 -0
  28. package/src/documentation/generated/CmdFancyBoxPropertyDescriptions.json +62 -0
  29. package/src/documentation/generated/CmdFormElementPropertyDescriptions.json +253 -0
  30. package/src/documentation/generated/CmdFormFiltersPropertyDescriptions.json +32 -0
  31. package/src/documentation/generated/CmdFormPropertyDescriptions.json +40 -0
  32. package/src/documentation/generated/CmdGoogleMapsPropertyDescriptions.json +7 -0
  33. package/src/documentation/generated/CmdImageGalleryPropertyDescriptions.json +22 -0
  34. package/src/documentation/generated/CmdImageZoomPropertyDescriptions.json +12 -0
  35. package/src/documentation/generated/CmdInputGroupPropertyDescriptions.json +86 -0
  36. package/src/documentation/generated/CmdListOfLinksPropertyDescriptions.json +60 -0
  37. package/src/documentation/generated/CmdLoginFormPropertyDescriptions.json +90 -0
  38. package/src/documentation/generated/CmdMainNavigationPropertyDescriptions.json +62 -0
  39. package/src/documentation/generated/CmdMultistepFormProgressBarPropertyDescriptions.json +17 -0
  40. package/src/documentation/generated/CmdOpeningHoursPropertyDescriptions.json +42 -0
  41. package/src/documentation/generated/CmdPagerPropertyDescriptions.json +37 -0
  42. package/src/documentation/generated/CmdProgressBarPropertyDescriptions.json +32 -0
  43. package/src/documentation/generated/CmdShareButtonsPropertyDescriptions.json +34 -0
  44. package/src/documentation/generated/CmdSiteHeaderPropertyDescriptions.json +27 -0
  45. package/src/documentation/generated/CmdSlideButtonPropertyDescriptions.json +25 -0
  46. package/src/documentation/generated/CmdSlideshowPropertyDescriptions.json +42 -0
  47. package/src/documentation/generated/CmdSwitchLanguagePropertyDescriptions.json +7 -0
  48. package/src/documentation/generated/CmdSystemMessagePropertyDescriptions.json +40 -0
  49. package/src/documentation/generated/CmdTablePropertyDescriptions.json +72 -0
  50. package/src/documentation/generated/CmdTabsPropertyDescriptions.json +27 -0
  51. package/src/documentation/generated/CmdThumbnailScrollerPropertyDescriptions.json +32 -0
  52. package/src/documentation/generated/CmdTooltipPropertyDescriptions.json +17 -0
  53. package/src/documentation/generated/CmdUploadFormPropertyDescriptions.json +175 -0
  54. package/src/documentation/generated/CmdWidthLimitationWrapperPropertyDescriptions.json +41 -0
  55. package/src/index.js +1 -1
  56. package/src/mixins/CmdFormElement/DefaultMessageProperties.js +1 -1
  57. package/src/mixins/FieldValidation.js +1 -1
  58. package/src/mixins/GlobalDefaultMessageProperties.js +1 -2
  59. package/src/mixins/I18n.js +12 -2
@@ -116,7 +116,7 @@ export default {
116
116
  type: Object,
117
117
  default() {
118
118
  return {
119
- iconClass: "icon-caps-lock"
119
+ iconClass: "icon-caps-lock-circle"
120
120
  }
121
121
  }
122
122
  },
@@ -1,9 +1,8 @@
1
1
  export default {
2
2
  data() {
3
3
  return {
4
- defaultMessageProperties: {
4
+ fieldValidationDefaultMessageProperties: {
5
5
  "cmdfieldvalidation.open_detailed_help": "Open detailed help!",
6
-
7
6
  "cmdfieldvalidation.information_not_filled_correctly": "This information is not filled correctly!",
8
7
  "cmdfieldvalidation.information_filled_correctly": "This information is filled correctly!",
9
8
  "cmdfieldvalidation.caps_lock_is_activated": "Attention: Caps lock is activated!",
@@ -42,15 +42,25 @@ export default {
42
42
  }
43
43
  let message =
44
44
  messages[key] ||
45
- (this.defaultMessageProperties && this.defaultMessageProperties[key]) ||
45
+ this.getDefaultMessageProperty(key) ||
46
46
  key
47
47
  if (typeof message === "function") {
48
- return message.call(this, params || [])
48
+ return message.call(this, params || []);
49
49
  }
50
50
  if (Array.isArray(params) && params.length) {
51
51
  params.forEach((param, index) => (message = message.replace("{" + index + "}", param)))
52
52
  }
53
53
  return message
54
+ },
55
+ getDefaultMessageProperty(key) {
56
+ if (this.defaultMessageProperties && this.defaultMessageProperties[key]) {
57
+ return this.defaultMessageProperties[key]
58
+ }
59
+ const propertyKey = Object.keys(this).find(p => p.slice(-24) === "DefaultMessageProperties")
60
+ if (propertyKey && this[propertyKey]?.[key]) {
61
+ return this[propertyKey][key]
62
+ }
63
+ return null
54
64
  }
55
65
  }
56
66
  }