theme.js 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*!
  2. * bootstrap-fileinput v5.2.2
  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.fileinputThemes['explorer-fas'] = {
  18. layoutTemplates: {
  19. footer: '<div class="file-details-cell">' +
  20. '<div class="explorer-caption" title="{caption}">{caption}</div> ' + '{size}{progress}' +
  21. '</div>' +
  22. '<div class="file-actions-cell">{indicator} {actions}</div>',
  23. actions: '{drag}\n' +
  24. '<div class="file-actions">\n' +
  25. ' <div class="file-footer-buttons">\n' +
  26. ' {upload} {download} {delete} {zoom} {other} ' +
  27. ' </div>\n' +
  28. '</div>',
  29. fileIcon: '<i class="fas fa-file kv-caption-icon"></i> '
  30. },
  31. previewSettings: {
  32. html: {width: '100px', height: '60px'},
  33. text: {width: '100px', height: '60px'},
  34. video: {width: 'auto', height: '60px'},
  35. audio: {width: 'auto', height: '60px'},
  36. flash: {width: '100%', height: '60px'},
  37. object: {width: '100%', height: '60px'},
  38. pdf: {width: '100px', height: '60px'},
  39. other: {width: '100%', height: '60px'}
  40. },
  41. frameClass: 'explorer-frame',
  42. fileActionSettings: {
  43. removeIcon: '<i class="fas fa-trash-alt"></i>',
  44. uploadIcon: '<i class="fas fa-upload"></i>',
  45. uploadRetryIcon: '<i class="fas fa-redo-alt"></i>',
  46. downloadIcon: '<i class="fas fa-download"></i>',
  47. zoomIcon: '<i class="fas fa-search-plus"></i>',
  48. dragIcon: '<i class="fas fa-arrows-alt"></i>',
  49. indicatorNew: '<i class="fas fa-plus-circle text-warning"></i>',
  50. indicatorSuccess: '<i class="fas fa-check-circle text-success"></i>',
  51. indicatorError: '<i class="fas fa-exclamation-circle text-danger"></i>',
  52. indicatorLoading: '<i class="fas fa-hourglass text-muted"></i>',
  53. indicatorPaused: '<i class="fa fa-pause text-info"></i>'
  54. },
  55. previewZoomButtonIcons: {
  56. prev: '<i class="fas fa-caret-left fa-lg"></i>',
  57. next: '<i class="fas fa-caret-right fa-lg"></i>',
  58. toggleheader: '<i class="fas fa-fw fa-arrows-alt-v"></i>',
  59. fullscreen: '<i class="fas fa-fw fa-arrows-alt"></i>',
  60. borderless: '<i class="fas fa-fw fa-external-link-alt"></i>',
  61. close: '<i class="fas fa-fw fa-times"></i>'
  62. },
  63. previewFileIcon: '<i class="fas fa-file"></i>',
  64. browseIcon: '<i class="fas fa-folder-open"></i>',
  65. removeIcon: '<i class="fas fa-trash-alt"></i>',
  66. cancelIcon: '<i class="fas fa-ban"></i>',
  67. pauseIcon: '<i class="fas fa-pause"></i>',
  68. uploadIcon: '<i class="fas fa-upload"></i>',
  69. msgValidationErrorIcon: '<i class="fas fa-exclamation-circle"></i> '
  70. };
  71. })(window.jQuery);