Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

icons.js 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.convertToComponentDeclarations = convertToComponentDeclarations;
  6. exports.default = icons;
  7. // Maps internal Vuetify icon names to actual Material Design icon names.
  8. var ICONS_MATERIAL = {
  9. 'complete': 'check',
  10. 'cancel': 'cancel',
  11. 'close': 'close',
  12. 'delete': 'cancel',
  13. 'clear': 'clear',
  14. 'success': 'check_circle',
  15. 'info': 'info',
  16. 'warning': 'priority_high',
  17. 'error': 'warning',
  18. 'prev': 'chevron_left',
  19. 'next': 'chevron_right',
  20. 'checkboxOn': 'check_box',
  21. 'checkboxOff': 'check_box_outline_blank',
  22. 'checkboxIndeterminate': 'indeterminate_check_box',
  23. 'delimiter': 'fiber_manual_record',
  24. 'sort': 'arrow_upward',
  25. 'expand': 'keyboard_arrow_down',
  26. 'menu': 'menu',
  27. 'subgroup': 'arrow_drop_down',
  28. 'dropdown': 'arrow_drop_down',
  29. 'radioOn': 'radio_button_checked',
  30. 'radioOff': 'radio_button_unchecked',
  31. 'edit': 'edit',
  32. 'ratingEmpty': 'star_border',
  33. 'ratingFull': 'star',
  34. 'ratingHalf': 'star_half',
  35. 'loading': 'cached'
  36. };
  37. // Maps internal Vuetify icon names to actual icons from materialdesignicons.com
  38. var ICONS_MDI = {
  39. 'complete': 'mdi-check',
  40. 'cancel': 'mdi-close-circle',
  41. 'close': 'mdi-close',
  42. 'delete': 'mdi-close-circle',
  43. 'clear': 'mdi-close',
  44. 'success': 'mdi-check-circle',
  45. 'info': 'mdi-information',
  46. 'warning': 'mdi-exclamation',
  47. 'error': 'mdi-alert',
  48. 'prev': 'mdi-chevron-left',
  49. 'next': 'mdi-chevron-right',
  50. 'checkboxOn': 'mdi-checkbox-marked',
  51. 'checkboxOff': 'mdi-checkbox-blank-outline',
  52. 'checkboxIndeterminate': 'mdi-minus-box',
  53. 'delimiter': 'mdi-circle',
  54. 'sort': 'mdi-arrow-up',
  55. 'expand': 'mdi-chevron-down',
  56. 'menu': 'mdi-menu',
  57. 'subgroup': 'mdi-menu-down',
  58. 'dropdown': 'mdi-menu-down',
  59. 'radioOn': 'mdi-radiobox-marked',
  60. 'radioOff': 'mdi-radiobox-blank',
  61. 'edit': 'mdi-pencil',
  62. 'ratingEmpty': 'mdi-star-outline',
  63. 'ratingFull': 'mdi-star',
  64. 'ratingHalf': 'mdi-star-half'
  65. };
  66. // Maps internal Vuetify icon names to actual Font-Awesome 4 icon names.
  67. var ICONS_FONTAWESOME4 = {
  68. 'complete': 'fa fa-check',
  69. 'cancel': 'fa fa-times-circle',
  70. 'close': 'fa fa-times',
  71. 'delete': 'fa fa-times-circle',
  72. 'clear': 'fa fa-times-circle',
  73. 'success': 'fa fa-check-circle',
  74. 'info': 'fa fa-info-circle',
  75. 'warning': 'fa fa-exclamation',
  76. 'error': 'fa fa-exclamation-triangle',
  77. 'prev': 'fa fa-chevron-left',
  78. 'next': 'fa fa-chevron-right',
  79. 'checkboxOn': 'fa fa-check-square',
  80. 'checkboxOff': 'fa fa-square-o',
  81. 'checkboxIndeterminate': 'fa fa-minus-square',
  82. 'delimiter': 'fa fa-circle',
  83. 'sort': 'fa fa-sort-up',
  84. 'expand': 'fa fa-chevron-down',
  85. 'menu': 'fa fa-bars',
  86. 'subgroup': 'fa fa-caret-down',
  87. 'dropdown': 'fa fa-caret-down',
  88. 'radioOn': 'fa fa-dot-circle',
  89. 'radioOff': 'fa fa-circle-o',
  90. 'edit': 'fa fa-pencil',
  91. 'ratingEmpty': 'fa fa-star-o',
  92. 'ratingFull': 'fa fa-star',
  93. 'ratingHalf': 'fa fa-star-half-o'
  94. };
  95. // Maps internal Vuetify icon names to actual Font-Awesome 5+ icon names.
  96. var ICONS_FONTAWESOME = {
  97. 'complete': 'fas fa-check',
  98. 'cancel': 'fas fa-times-circle',
  99. 'close': 'fas fa-times',
  100. 'delete': 'fas fa-times-circle',
  101. 'clear': 'fas fa-times-circle',
  102. 'success': 'fas fa-check-circle',
  103. 'info': 'fas fa-info-circle',
  104. 'warning': 'fas fa-exclamation',
  105. 'error': 'fas fa-exclamation-triangle',
  106. 'prev': 'fas fa-chevron-left',
  107. 'next': 'fas fa-chevron-right',
  108. 'checkboxOn': 'fas fa-check-square',
  109. 'checkboxOff': 'far fa-square',
  110. 'checkboxIndeterminate': 'fas fa-minus-square',
  111. 'delimiter': 'fas fa-circle',
  112. 'sort': 'fas fa-sort-up',
  113. 'expand': 'fas fa-chevron-down',
  114. 'menu': 'fas fa-bars',
  115. 'subgroup': 'fas fa-caret-down',
  116. 'dropdown': 'fas fa-caret-down',
  117. 'radioOn': 'far fa-dot-circle',
  118. 'radioOff': 'far fa-circle',
  119. 'edit': 'fas fa-edit',
  120. 'ratingEmpty': 'far fa-star',
  121. 'ratingFull': 'fas fa-star',
  122. 'ratingHalf': 'fas fa-star-half'
  123. };
  124. function convertToComponentDeclarations(component, iconSet) {
  125. var result = {};
  126. for (var key in iconSet) {
  127. result[key] = {
  128. component: component,
  129. props: {
  130. icon: iconSet[key].split(' fa-')
  131. }
  132. };
  133. }
  134. return result;
  135. }
  136. var iconSets = {
  137. md: ICONS_MATERIAL,
  138. mdi: ICONS_MDI,
  139. fa: ICONS_FONTAWESOME,
  140. fa4: ICONS_FONTAWESOME4,
  141. faSvg: convertToComponentDeclarations('font-awesome-icon', ICONS_FONTAWESOME)
  142. };
  143. function icons() {
  144. var iconfont = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'md';
  145. var icons = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  146. return Object.assign({}, iconSets[iconfont] || iconSets.md, icons);
  147. }
  148. //# sourceMappingURL=icons.js.map