theme.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*!
  2. * bootstrap-fileinput v5.2.3
  3. * http://plugins.krajee.com/file-input
  4. *
  5. * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
  6. * Load this theme file after loading `fileinput.js`. Ensure that
  7. * font awesome assets and CSS are loaded on the page as well.
  8. *
  9. * Author: Kartik Visweswaran
  10. * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
  11. *
  12. * Licensed under the BSD-3-Clause
  13. * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
  14. */
  15. (function ($) {
  16. 'use strict';
  17. $.fn.fileinput.defaults.theme = 'explorer-fas';
  18. $.fn.fileinputThemes['explorer-fas'] = {
  19. layoutTemplates: {
  20. footer: '<div class="file-details-cell">' +
  21. '<div class="explorer-caption" title="{caption}">{caption}</div> ' + '{size}{progress}' +
  22. '</div>' +
  23. '<div class="file-actions-cell">{indicator} {actions}</div>',
  24. actions: '{drag}\n' +
  25. '<div class="file-actions">\n' +
  26. ' <div class="file-footer-buttons">\n' +
  27. ' {upload} {download} {delete} {zoom} {other} ' +
  28. ' </div>\n' +
  29. '</div>',
  30. fileIcon: '<i class="fas fa-file kv-caption-icon"></i> '
  31. },
  32. previewSettings: {
  33. html: {width: '100px', height: '60px'},
  34. text: {width: '100px', height: '60px'},
  35. video: {width: 'auto', height: '60px'},
  36. audio: {width: 'auto', height: '60px'},
  37. flash: {width: '100%', height: '60px'},
  38. object: {width: '100%', height: '60px'},
  39. pdf: {width: '100px', height: '60px'},
  40. other: {width: '100%', height: '60px'}
  41. },
  42. frameClass: 'explorer-frame',
  43. fileActionSettings: {
  44. removeIcon: '<i class="fas fa-trash-alt"></i>',
  45. uploadIcon: '<i class="fas fa-upload"></i>',
  46. uploadRetryIcon: '<i class="fas fa-redo-alt"></i>',
  47. downloadIcon: '<i class="fas fa-download"></i>',
  48. zoomIcon: '<i class="fas fa-search-plus"></i>',
  49. dragIcon: '<i class="fas fa-arrows-alt"></i>',
  50. indicatorNew: '<i class="fas fa-plus-circle text-warning"></i>',
  51. indicatorSuccess: '<i class="fas fa-check-circle text-success"></i>',
  52. indicatorError: '<i class="fas fa-exclamation-circle text-danger"></i>',
  53. indicatorLoading: '<i class="fas fa-hourglass text-muted"></i>',
  54. indicatorPaused: '<i class="fa fa-pause text-info"></i>'
  55. },
  56. previewZoomButtonIcons: {
  57. prev: '<i class="fas fa-chevron-left"></i>',
  58. next: '<i class="fas fa-chevron-right"></i>',
  59. toggleheader: '<i class="fas fa-fw fa-arrows-alt-v"></i>',
  60. fullscreen: '<i class="fas fa-fw fa-arrows-alt"></i>',
  61. borderless: '<i class="fas fa-fw fa-external-link-alt"></i>',
  62. close: '<i class="fas fa-fw fa-times"></i>'
  63. },
  64. previewFileIcon: '<i class="fas fa-file"></i>',
  65. browseIcon: '<i class="fas fa-folder-open"></i>',
  66. removeIcon: '<i class="fas fa-trash-alt"></i>',
  67. cancelIcon: '<i class="fas fa-ban"></i>',
  68. pauseIcon: '<i class="fas fa-pause"></i>',
  69. uploadIcon: '<i class="fas fa-upload"></i>',
  70. msgValidationErrorIcon: '<i class="fas fa-exclamation-circle"></i> '
  71. };
  72. })(window.jQuery);