仰望星辰工作室

better-staridc-MNBT

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