1
|
|
|
/*! |
2
|
|
|
backgrid 0.3.7 |
3
|
|
|
http://github.com/wyuenho/backgrid |
4
|
|
|
|
5
|
|
|
Copyright (c) 2016 Jimmy Yuen Ho Wong and contributors <[email protected]> |
6
|
|
|
Licensed under the MIT license. |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
import { |
|
|
|
|
10
|
|
|
lpad, |
|
|
|
|
11
|
|
|
Backgrid |
12
|
|
|
} from './backgrid_modules/core.js'; |
13
|
|
|
|
14
|
|
|
import { |
15
|
|
|
Command |
16
|
|
|
} from './backgrid_modules/command.js'; |
17
|
|
|
import { |
18
|
|
|
CellFormatter |
19
|
|
|
} from './backgrid_modules/formatters/cell.js'; |
20
|
|
|
import { |
21
|
|
|
NumberFormatter |
22
|
|
|
} from './backgrid_modules/formatters/number.js'; |
23
|
|
|
import { |
24
|
|
|
PercentFormatter |
25
|
|
|
} from './backgrid_modules/formatters/percent.js'; |
26
|
|
|
import { |
27
|
|
|
DatetimeFormatter |
28
|
|
|
} from './backgrid_modules/formatters/datetime.js'; |
29
|
|
|
import { |
30
|
|
|
StringFormatter |
31
|
|
|
} from './backgrid_modules/formatters/string.js'; |
32
|
|
|
import { |
33
|
|
|
EmailFormatter |
34
|
|
|
} from './backgrid_modules/formatters/email.js'; |
35
|
|
|
import { |
36
|
|
|
SelectFormatter |
37
|
|
|
} from './backgrid_modules/formatters/select.js'; |
38
|
|
|
import { |
39
|
|
|
CellEditor |
40
|
|
|
} from './backgrid_modules/editors/cell.js'; |
41
|
|
|
import { |
42
|
|
|
SelectCellEditor |
43
|
|
|
} from './backgrid_modules/editors/select_cell.js'; |
44
|
|
|
import { |
45
|
|
|
InputCellEditor |
46
|
|
|
} from './backgrid_modules/editors/input_cell.js'; |
47
|
|
|
import { |
48
|
|
|
BooleanCellEditor |
49
|
|
|
} from './backgrid_modules/editors/boolean_cell.js'; |
50
|
|
|
|
51
|
|
|
import { |
52
|
|
|
Cell |
53
|
|
|
} from './backgrid_modules/celltypes/cell.js'; |
54
|
|
|
import { |
55
|
|
|
HeaderCell |
56
|
|
|
} from './backgrid_modules/celltypes/header.js'; |
57
|
|
|
import { |
58
|
|
|
BooleanCell |
59
|
|
|
} from './backgrid_modules/celltypes/boolean.js'; |
60
|
|
|
import { |
61
|
|
|
SelectCell |
62
|
|
|
} from './backgrid_modules/celltypes/select.js'; |
63
|
|
|
import { |
64
|
|
|
DatetimeCell |
65
|
|
|
} from './backgrid_modules/celltypes/datetime.js'; |
66
|
|
|
import { |
67
|
|
|
UriCell |
68
|
|
|
} from './backgrid_modules/celltypes/uri.js'; |
69
|
|
|
import { |
70
|
|
|
NumberCell |
71
|
|
|
} from './backgrid_modules/celltypes/number.js'; |
72
|
|
|
import { |
73
|
|
|
EmailCell |
74
|
|
|
} from './backgrid_modules/celltypes/email.js'; |
75
|
|
|
import { |
76
|
|
|
IntegerCell |
77
|
|
|
} from './backgrid_modules/celltypes/integer.js'; |
78
|
|
|
import { |
79
|
|
|
StringCell |
80
|
|
|
} from './backgrid_modules/celltypes/string.js'; |
81
|
|
|
import { |
82
|
|
|
PercentCell |
83
|
|
|
} from './backgrid_modules/celltypes/percent.js'; |
84
|
|
|
import { |
85
|
|
|
DateCell |
86
|
|
|
} from './backgrid_modules/celltypes/date.js'; |
87
|
|
|
import { |
88
|
|
|
TimeCell |
89
|
|
|
} from './backgrid_modules/celltypes/time.js'; |
90
|
|
|
|
91
|
|
|
import { |
92
|
|
|
Column |
93
|
|
|
} from './backgrid_modules/column.js'; |
94
|
|
|
import { |
95
|
|
|
Header |
96
|
|
|
} from './backgrid_modules/header.js'; |
97
|
|
|
import { |
98
|
|
|
Body |
99
|
|
|
} from './backgrid_modules/body.js'; |
100
|
|
|
import { |
101
|
|
|
Footer |
102
|
|
|
} from './backgrid_modules/footer.js'; |
103
|
|
|
import { |
104
|
|
|
Grid |
105
|
|
|
} from './backgrid_modules/grid.js'; |
106
|
|
|
import { |
107
|
|
|
Columns |
108
|
|
|
} from './backgrid_modules/columns.js'; |
109
|
|
|
import { |
110
|
|
|
Row |
111
|
|
|
} from './backgrid_modules/row.js'; |
112
|
|
|
import { |
113
|
|
|
EmptyRow |
114
|
|
|
} from './backgrid_modules/empty_row.js'; |
115
|
|
|
import { |
116
|
|
|
HeaderRow |
117
|
|
|
} from './backgrid_modules/header_row.js'; |
118
|
|
|
|
119
|
|
|
"use strict"; |
|
|
|
|
120
|
|
|
|
121
|
|
|
Backgrid.Command = Command; |
122
|
|
|
|
123
|
|
|
Backgrid.CellFormatter = CellFormatter; |
124
|
|
|
Backgrid.NumberFormatter = NumberFormatter; |
125
|
|
|
Backgrid.PercentFormatter = PercentFormatter; |
126
|
|
|
Backgrid.DatetimeFormatter = DatetimeFormatter; |
127
|
|
|
Backgrid.StringFormatter = StringFormatter; |
128
|
|
|
Backgrid.EmailFormatter = EmailFormatter; |
129
|
|
|
Backgrid.SelectFormatter = SelectFormatter; |
130
|
|
|
|
131
|
|
|
Backgrid.CellEditor = CellEditor; |
132
|
|
|
Backgrid.InputCellEditor = InputCellEditor; |
133
|
|
|
Backgrid.BooleanCellEditor = BooleanCellEditor; |
134
|
|
|
Backgrid.SelectCellEditor = SelectCellEditor; |
135
|
|
|
|
136
|
|
|
Backgrid.Cell = Cell; |
137
|
|
|
Backgrid.StringCell = StringCell; |
138
|
|
|
Backgrid.UriCell = UriCell; |
139
|
|
|
Backgrid.EmailCell = EmailCell; |
140
|
|
|
Backgrid.NumberCell = NumberCell; |
141
|
|
|
Backgrid.IntegerCell = IntegerCell; |
142
|
|
|
Backgrid.PercentCell = PercentCell; |
143
|
|
|
Backgrid.DatetimeCell = DatetimeCell; |
144
|
|
|
Backgrid.DateCell = DateCell; |
145
|
|
|
Backgrid.TimeCell = TimeCell; |
146
|
|
|
Backgrid.BooleanCell = BooleanCell; |
147
|
|
|
Backgrid.SelectCell = SelectCell; |
148
|
|
|
Backgrid.HeaderCell = HeaderCell; |
149
|
|
|
|
150
|
|
|
Backgrid.Column = Column; |
151
|
|
|
Backgrid.Columns = Columns; |
152
|
|
|
Backgrid.Row = Row; |
153
|
|
|
Backgrid.EmptyRow = EmptyRow; |
154
|
|
|
|
155
|
|
|
Backgrid.HeaderRow = HeaderRow; |
156
|
|
|
Backgrid.Header = Header; |
157
|
|
|
Backgrid.Body = Body; |
158
|
|
|
Backgrid.Footer = Footer; |
159
|
|
|
|
160
|
|
|
Backgrid.Grid = Grid; |
161
|
|
|
|
162
|
|
|
export { |
163
|
|
|
Backgrid |
164
|
|
|
}; |
165
|
|
|
|