md.mjs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Composables
  2. import { VLigatureIcon } from "../composables/icons.mjs"; // Utilities
  3. import { h } from 'vue';
  4. // Types
  5. const aliases = {
  6. collapse: 'keyboard_arrow_up',
  7. complete: 'check',
  8. cancel: 'cancel',
  9. close: 'close',
  10. delete: 'cancel',
  11. // delete (e.g. v-chip close)
  12. clear: 'cancel',
  13. success: 'check_circle',
  14. info: 'info',
  15. warning: 'priority_high',
  16. error: 'warning',
  17. prev: 'chevron_left',
  18. next: 'chevron_right',
  19. checkboxOn: 'check_box',
  20. checkboxOff: 'check_box_outline_blank',
  21. checkboxIndeterminate: 'indeterminate_check_box',
  22. delimiter: 'fiber_manual_record',
  23. // for carousel
  24. sortAsc: 'arrow_upward',
  25. sortDesc: 'arrow_downward',
  26. expand: 'keyboard_arrow_down',
  27. menu: 'menu',
  28. subgroup: 'arrow_drop_down',
  29. dropdown: 'arrow_drop_down',
  30. radioOn: 'radio_button_checked',
  31. radioOff: 'radio_button_unchecked',
  32. edit: 'edit',
  33. ratingEmpty: 'star_border',
  34. ratingFull: 'star',
  35. ratingHalf: 'star_half',
  36. loading: 'cached',
  37. first: 'first_page',
  38. last: 'last_page',
  39. unfold: 'unfold_more',
  40. file: 'attach_file',
  41. plus: 'add',
  42. minus: 'remove',
  43. calendar: 'event',
  44. treeviewCollapse: 'arrow_drop_down',
  45. treeviewExpand: 'arrow_right',
  46. eyeDropper: 'colorize'
  47. };
  48. const md = {
  49. // Not using mergeProps here, functional components merge props by default (?)
  50. component: props => h(VLigatureIcon, {
  51. ...props,
  52. class: 'material-icons'
  53. })
  54. };
  55. export { aliases, md };
  56. //# sourceMappingURL=md.mjs.map