Nenhuma descrição

main.esm.js 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*!
  2. FullCalendar Bootstrap Plugin v4.3.0
  3. Docs & License: https://fullcalendar.io/
  4. (c) 2019 Adam Shaw
  5. */
  6. import { createPlugin, Theme } from '@fullcalendar/core';
  7. /*! *****************************************************************************
  8. Copyright (c) Microsoft Corporation. All rights reserved.
  9. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  10. this file except in compliance with the License. You may obtain a copy of the
  11. License at http://www.apache.org/licenses/LICENSE-2.0
  12. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  13. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  14. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  15. MERCHANTABLITY OR NON-INFRINGEMENT.
  16. See the Apache Version 2.0 License for specific language governing permissions
  17. and limitations under the License.
  18. ***************************************************************************** */
  19. /* global Reflect, Promise */
  20. var extendStatics = function(d, b) {
  21. extendStatics = Object.setPrototypeOf ||
  22. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  23. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  24. return extendStatics(d, b);
  25. };
  26. function __extends(d, b) {
  27. extendStatics(d, b);
  28. function __() { this.constructor = d; }
  29. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  30. }
  31. var BootstrapTheme = /** @class */ (function (_super) {
  32. __extends(BootstrapTheme, _super);
  33. function BootstrapTheme() {
  34. return _super !== null && _super.apply(this, arguments) || this;
  35. }
  36. return BootstrapTheme;
  37. }(Theme));
  38. BootstrapTheme.prototype.classes = {
  39. widget: 'fc-bootstrap',
  40. tableGrid: 'table-bordered',
  41. tableList: 'table',
  42. tableListHeading: 'table-active',
  43. buttonGroup: 'btn-group',
  44. button: 'btn btn-primary',
  45. buttonActive: 'active',
  46. today: 'alert alert-info',
  47. popover: 'card card-primary',
  48. popoverHeader: 'card-header',
  49. popoverContent: 'card-body',
  50. // day grid
  51. // for left/right border color when border is inset from edges (all-day in timeGrid view)
  52. // avoid `table` class b/c don't want margins/padding/structure. only border color.
  53. headerRow: 'table-bordered',
  54. dayRow: 'table-bordered',
  55. // list view
  56. listView: 'card card-primary'
  57. };
  58. BootstrapTheme.prototype.baseIconClass = 'fa';
  59. BootstrapTheme.prototype.iconClasses = {
  60. close: 'fa-times',
  61. prev: 'fa-chevron-left',
  62. next: 'fa-chevron-right',
  63. prevYear: 'fa-angle-double-left',
  64. nextYear: 'fa-angle-double-right'
  65. };
  66. BootstrapTheme.prototype.iconOverrideOption = 'bootstrapFontAwesome';
  67. BootstrapTheme.prototype.iconOverrideCustomButtonOption = 'bootstrapFontAwesome';
  68. BootstrapTheme.prototype.iconOverridePrefix = 'fa-';
  69. var main = createPlugin({
  70. themeClasses: {
  71. bootstrap: BootstrapTheme
  72. }
  73. });
  74. export default main;
  75. export { BootstrapTheme };