jsl-ui 9.18.3 → 9.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/IntervalComponent.d.ts +17 -0
- package/lib/components/IntervalComponent.js +68 -0
- package/lib/components/auto-suggest/AutoSuggestComponent.d.ts +22 -0
- package/lib/components/auto-suggest/AutoSuggestComponent.js +49 -0
- package/lib/components/button/ButtonComponent.d.ts +18 -0
- package/lib/components/button/ButtonComponent.js +46 -0
- package/lib/components/checkbox/CheckBoxComponent.d.ts +28 -0
- package/lib/components/checkbox/CheckBoxComponent.js +94 -0
- package/lib/components/checkbox/CheckBoxStyle.scss +86 -0
- package/lib/components/date/DateComponent.d.ts +32 -0
- package/lib/components/date/DateComponent.js +106 -0
- package/lib/components/date-range/DateRangeComponent.d.ts +35 -0
- package/lib/components/date-range/DateRangeComponent.js +136 -0
- package/lib/components/date-range/DateRangeStyle.scss +12 -0
- package/lib/components/date-time/DateTimeComponent.d.ts +15 -0
- package/lib/components/date-time/DateTimeComponent.js +53 -0
- package/lib/components/date-time/DateTimeStyle.scss +7 -0
- package/lib/components/dialog/DialogComponent.d.ts +67 -0
- package/lib/components/dialog/DialogComponent.js +242 -0
- package/lib/components/drop-down/DropDownComponent.d.ts +27 -0
- package/lib/components/drop-down/DropDownComponent.js +74 -0
- package/lib/components/expander/ExpanderComponent.d.ts +27 -0
- package/lib/components/expander/ExpanderComponent.js +90 -0
- package/lib/components/expander/ExpanderStyle.scss +47 -0
- package/lib/components/expander/OldExpanderStyle.scss +37 -0
- package/lib/components/form-field/FormComponent.d.ts +12 -0
- package/lib/components/form-field/FormComponent.js +26 -0
- package/lib/components/form-field/FormFieldComponent.d.ts +38 -0
- package/lib/components/form-field/FormFieldComponent.js +139 -0
- package/lib/components/form-field/FormFieldStyle.scss +87 -0
- package/lib/components/grid/GridComponent.d.ts +26 -0
- package/lib/components/grid/GridComponent.js +116 -0
- package/lib/components/input/InputComponent.d.ts +33 -0
- package/lib/components/input/InputComponent.js +144 -0
- package/lib/components/loading/LoadingComponent.d.ts +8 -0
- package/lib/components/loading/LoadingComponent.js +22 -0
- package/lib/components/loading/LoadingStyle.css +29 -0
- package/lib/components/navigation/NavigationComponent.d.ts +34 -0
- package/lib/components/navigation/NavigationComponent.js +70 -0
- package/lib/components/navigation/NavigationStyle.scss +226 -0
- package/lib/components/notification/Notification.d.ts +17 -0
- package/lib/components/notification/Notification.js +56 -0
- package/lib/components/notification/Notification.scss +19 -0
- package/lib/components/number/NumberComponent.d.ts +25 -0
- package/lib/components/number/NumberComponent.js +87 -0
- package/lib/components/overlay/OverlayComponent.d.ts +27 -0
- package/lib/components/overlay/OverlayComponent.js +149 -0
- package/lib/components/overlay/overlay.css +57 -0
- package/lib/components/progress/ProgressComponent.d.ts +18 -0
- package/lib/components/progress/ProgressComponent.js +42 -0
- package/lib/components/progress/ProgressStyle.scss +15 -0
- package/lib/components/ribbon-menu/RibbonMenuComponent.d.ts +12 -0
- package/lib/components/ribbon-menu/RibbonMenuComponent.js +34 -0
- package/lib/components/ribbon-menu/RibbonMenuStyle.scss +76 -0
- package/lib/components/select/SelectComponent.d.ts +79 -0
- package/lib/components/select/SelectComponent.js +362 -0
- package/lib/components/select/SelectDDAreaComponent.d.ts +32 -0
- package/lib/components/select/SelectDDAreaComponent.js +317 -0
- package/lib/components/select/SelectStyle.scss +187 -0
- package/lib/components/slider/nouislider.css +310 -0
- package/lib/components/slider/nouislider.d.ts +44 -0
- package/lib/components/slider/nouislider.js +2158 -0
- package/lib/components/stack-panel/SplitterComponent.d.ts +21 -0
- package/lib/components/stack-panel/SplitterComponent.js +126 -0
- package/lib/components/stack-panel/SplitterStyle.scss +45 -0
- package/lib/components/stack-panel/StackPanelComponent.d.ts +20 -0
- package/lib/components/stack-panel/StackPanelComponent.js +64 -0
- package/lib/components/stack-panel/StackPanelStyle.scss +53 -0
- package/lib/components/tabs/TabsComponent.d.ts +39 -0
- package/lib/components/tabs/TabsComponent.js +177 -0
- package/lib/components/tabs/TabsStyle.scss +76 -0
- package/lib/components/time/TimeComponent.d.ts +29 -0
- package/lib/components/time/TimeComponent.js +113 -0
- package/lib/components/time/TimeComponent.scss +4 -0
- package/lib/components/tree-view/TreeViewComponent.d.ts +23 -0
- package/lib/components/tree-view/TreeViewComponent.js +45 -0
- package/lib/components/tree-view/TreeViewStyle.scss +96 -0
- package/lib/components/virtual-render/VirtualRenderComponent.d.ts +30 -0
- package/lib/components/virtual-render/VirtualRenderComponent.js +104 -0
- package/lib/components/virtual-render/VirtualRenderStyle.scss +9 -0
- package/lib/core/culture.d.ts +5 -0
- package/lib/core/culture.js +385 -0
- package/lib/core/date.d.ts +14 -0
- package/lib/core/date.js +350 -0
- package/lib/core/helper.d.ts +12 -0
- package/lib/core/helper.js +101 -0
- package/lib/core/jq.d.ts +37 -0
- package/lib/core/jq.js +371 -0
- package/lib/core/lang.d.ts +24 -0
- package/lib/core/lang.js +28 -0
- package/lib/core/numeric.d.ts +7 -0
- package/lib/core/numeric.js +143 -0
- package/lib/core/polyfills.d.ts +0 -0
- package/lib/core/polyfills.js +22 -0
- package/lib/core.d.ts +6 -0
- package/lib/core.js +6 -0
- package/lib/grid/controls/slick.columnpicker.css +46 -0
- package/lib/grid/controls/slick.draggablegrouping.css +52 -0
- package/lib/grid/controls/slick.gridmenu.css +127 -0
- package/lib/grid/controls/slick.pager.css +41 -0
- package/lib/grid/examples/examples.css +203 -0
- package/lib/grid/filterDialogs/dateRangeFilter.d.ts +7 -0
- package/lib/grid/filterDialogs/dateRangeFilter.js +156 -0
- package/lib/grid/filterDialogs/excelFilter.d.ts +9 -0
- package/lib/grid/filterDialogs/excelFilter.js +313 -0
- package/lib/grid/plugins/ext.overlay.css +28 -0
- package/lib/grid/plugins/ext.overlay.d.ts +2 -0
- package/lib/grid/plugins/ext.overlay.js +291 -0
- package/lib/grid/plugins/slick.cellrangedecorator.d.ts +12 -0
- package/lib/grid/plugins/slick.cellrangedecorator.js +68 -0
- package/lib/grid/plugins/slick.cellrangeselector.d.ts +1 -0
- package/lib/grid/plugins/slick.cellrangeselector.js +144 -0
- package/lib/grid/plugins/slick.cellselectionmodel.d.ts +1 -0
- package/lib/grid/plugins/slick.cellselectionmodel.js +194 -0
- package/lib/grid/plugins/slick.headerbuttons.css +40 -0
- package/lib/grid/plugins/slick.headerbuttons.d.ts +55 -0
- package/lib/grid/plugins/slick.headerbuttons.js +156 -0
- package/lib/grid/plugins/slick.headermenu.css +101 -0
- package/lib/grid/plugins/slick.headermenu.d.ts +74 -0
- package/lib/grid/plugins/slick.headermenu.js +260 -0
- package/lib/grid/plugins/slick.rowdetailview.css +37 -0
- package/lib/grid/plugins/slick.rowmovemanager.css +8 -0
- package/lib/grid/plugins/slick.rowmovemanager.d.ts +18 -0
- package/lib/grid/plugins/slick.rowmovemanager.js +249 -0
- package/lib/grid/plugins/slick.rowselectionmodel.d.ts +1 -0
- package/lib/grid/plugins/slick.rowselectionmodel.js +167 -0
- package/lib/grid/slick-default-theme.css +154 -0
- package/lib/grid/slick.core.d.ts +90 -0
- package/lib/grid/slick.core.js +574 -0
- package/lib/grid/slick.creator.d.ts +80 -0
- package/lib/grid/slick.creator.js +723 -0
- package/lib/grid/slick.dataview.d.ts +71 -0
- package/lib/grid/slick.dataview.js +1080 -0
- package/lib/grid/slick.editors.core.d.ts +4 -0
- package/lib/grid/slick.editors.core.js +232 -0
- package/lib/grid/slick.editors.date.d.ts +2 -0
- package/lib/grid/slick.editors.date.js +125 -0
- package/lib/grid/slick.editors.lookup.d.ts +14 -0
- package/lib/grid/slick.editors.lookup.js +353 -0
- package/lib/grid/slick.editors.nav.d.ts +6 -0
- package/lib/grid/slick.editors.nav.js +22 -0
- package/lib/grid/slick.formatters.d.ts +17 -0
- package/lib/grid/slick.formatters.js +137 -0
- package/lib/grid/slick.grid.css +325 -0
- package/lib/grid/slick.grid.d.ts +284 -0
- package/lib/grid/slick.grid.js +5395 -0
- package/lib/grid/slick.groupitemmetadataprovider.d.ts +39 -0
- package/lib/grid/slick.groupitemmetadataprovider.js +165 -0
- package/lib/grid/slick.tree.css +20 -0
- package/lib/grid/slick.tree.d.ts +33 -0
- package/lib/grid/slick.tree.js +220 -0
- package/lib/grid.d.ts +13 -0
- package/lib/grid.js +13 -0
- package/lib/index.css +2576 -0
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +56 -0
- package/lib/index.js +61 -10198
- package/lib/index.js.map +1 -1
- package/lib/interaction/dataconverter.d.ts +4 -0
- package/lib/interaction/dataconverter.js +1 -0
- package/lib/interaction/eventhandler.d.ts +13 -0
- package/lib/interaction/eventhandler.js +42 -0
- package/lib/interaction/moveable.css +0 -0
- package/lib/interaction/moveable.d.ts +39 -0
- package/lib/interaction/moveable.js +172 -0
- package/lib/interaction/resizable.css +33 -0
- package/lib/interaction/resizable.d.ts +37 -0
- package/lib/interaction/resizable.js +123 -0
- package/lib/ui/auto.suggest.css +14 -0
- package/lib/ui/auto.suggest.d.ts +17 -0
- package/lib/ui/auto.suggest.js +255 -0
- package/lib/ui/base.css +150 -0
- package/lib/ui/date.picker/css/date-range-picker.css +87 -0
- package/lib/ui/date.picker/css/tiny-date-picker.css +326 -0
- package/lib/ui/date.picker/date-picker-options.d.ts +11 -0
- package/lib/ui/date.picker/date-picker-options.js +76 -0
- package/lib/ui/date.picker/lib/date-manip.d.ts +74 -0
- package/lib/ui/date.picker/lib/date-manip.js +120 -0
- package/lib/ui/date.picker/lib/dom.d.ts +23 -0
- package/lib/ui/date.picker/lib/dom.js +28 -0
- package/lib/ui/date.picker/lib/emitter.d.ts +13 -0
- package/lib/ui/date.picker/lib/emitter.js +49 -0
- package/lib/ui/date.picker/lib/fns.d.ts +23 -0
- package/lib/ui/date.picker/lib/fns.js +43 -0
- package/lib/ui/date.picker/mode/base-mode.d.ts +26 -0
- package/lib/ui/date.picker/mode/base-mode.js +248 -0
- package/lib/ui/date.picker/mode/dropdown-mode.d.ts +28 -0
- package/lib/ui/date.picker/mode/dropdown-mode.js +50 -0
- package/lib/ui/date.picker/mode/index.d.ts +28 -0
- package/lib/ui/date.picker/mode/index.js +18 -0
- package/lib/ui/date.picker/mode/modal-mode.d.ts +25 -0
- package/lib/ui/date.picker/mode/modal-mode.js +17 -0
- package/lib/ui/date.picker/mode/permanent-mode.d.ts +29 -0
- package/lib/ui/date.picker/mode/permanent-mode.js +19 -0
- package/lib/ui/date.picker/views/day-picker.d.ts +40 -0
- package/lib/ui/date.picker/views/day-picker.js +155 -0
- package/lib/ui/date.picker/views/month-picker.d.ts +26 -0
- package/lib/ui/date.picker/views/month-picker.js +65 -0
- package/lib/ui/date.picker/views/year-picker.d.ts +20 -0
- package/lib/ui/date.picker/views/year-picker.js +66 -0
- package/lib/ui/date.picker.d.ts +66 -0
- package/lib/ui/date.picker.js +32 -0
- package/lib/ui/dialog.css +109 -0
- package/lib/ui/dialog.d.ts +22 -0
- package/lib/ui/dialog.js +113 -0
- package/lib/ui/drop.down.css +472 -0
- package/lib/ui/drop.down.d.ts +52 -0
- package/lib/ui/drop.down.js +2112 -0
- package/lib/ui/number.input.css +3 -0
- package/lib/ui/number.input.d.ts +12 -0
- package/lib/ui/number.input.js +64 -0
- package/lib/ui/tabs.css +53 -0
- package/package.json +1 -1
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/*
|
|
2
|
+
IMPORTANT:
|
|
3
|
+
In order to preserve the uniform grid appearance, all cell styles need to have padding, margin and border sizes.
|
|
4
|
+
No built-in (selected, editable, highlight, flashing, invalid, loading, :focus) or user-specified CSS
|
|
5
|
+
classes should alter those!
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.slick-header.ui-state-default, .slick-headerrow.ui-state-default, .slick-footerrow.ui-state-default, .slick-top-panel-scroller.ui-state-default, .slick-group-header.ui-state-default {
|
|
9
|
+
width: 100%;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
position: relative;
|
|
12
|
+
border-left: 0px !important;
|
|
13
|
+
background: white;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.slick-header.ui-state-default {
|
|
17
|
+
overflow: inherit;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.slick-header::-webkit-scrollbar, .slick-headerrow::-webkit-scrollbar, .slick-footerrow::-webkit-scrollbar {
|
|
21
|
+
display: none
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.slick-header-columns, .slick-headerrow-columns, .slick-footerrow-columns, .slick-group-header-columns {
|
|
25
|
+
position: relative;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
cursor: default;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.slick-header-column.ui-state-default, .slick-group-header-column.ui-state-default {
|
|
32
|
+
position: relative;
|
|
33
|
+
/* display: inline-block; */
|
|
34
|
+
box-sizing: content-box !important; /* this here only for Firefox! */
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
-o-text-overflow: ellipsis;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
height: 20px;
|
|
39
|
+
line-height: 20px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 4px;
|
|
42
|
+
border-right: 1px solid silver;
|
|
43
|
+
border-left: 0px !important;
|
|
44
|
+
border-top: 1px solid silver;
|
|
45
|
+
border-bottom: 0px !important;
|
|
46
|
+
float: left;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.slick-footerrow-column.ui-state-default {
|
|
50
|
+
-o-text-overflow: ellipsis;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
margin: 0;
|
|
53
|
+
padding: 4px;
|
|
54
|
+
border-right: 1px solid silver;
|
|
55
|
+
border-left: 0px;
|
|
56
|
+
border-top: 0px;
|
|
57
|
+
border-bottom: 0px;
|
|
58
|
+
float: left;
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
vertical-align: middle;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.slick-headerrow-column.ui-state-default, .slick-footerrow-column.ui-state-default {
|
|
64
|
+
padding: 4px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.slick-header-column-sorted {
|
|
68
|
+
font-style: italic;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.slick-sort-indicator {
|
|
72
|
+
/* display: inline-block; */
|
|
73
|
+
width: 8px;
|
|
74
|
+
height: 5px;
|
|
75
|
+
margin-left: 4px;
|
|
76
|
+
margin-top: 6px;
|
|
77
|
+
float: left;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.slick-sort-indicator-numbered {
|
|
81
|
+
/* display: inline-block; */
|
|
82
|
+
width: 8px;
|
|
83
|
+
height: 5px;
|
|
84
|
+
margin-left: 4px;
|
|
85
|
+
margin-top: 0;
|
|
86
|
+
line-height: 20px;
|
|
87
|
+
float: left;
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
color: #6190CD;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/* TODO TODOFIX */
|
|
95
|
+
/* .slick-sort-indicator-desc {
|
|
96
|
+
background: url(images/sort-desc.gif);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.slick-sort-indicator-asc {
|
|
100
|
+
background: url(images/sort-asc.gif);
|
|
101
|
+
} */
|
|
102
|
+
|
|
103
|
+
/* .slick-resizable-handle {
|
|
104
|
+
position: absolute;
|
|
105
|
+
font-size: 0.1px;
|
|
106
|
+
display: block;
|
|
107
|
+
cursor: col-resize;
|
|
108
|
+
width: 9px;
|
|
109
|
+
right: -5px;
|
|
110
|
+
top: 0;
|
|
111
|
+
height: 100%;
|
|
112
|
+
z-index: 1;
|
|
113
|
+
} */
|
|
114
|
+
|
|
115
|
+
.slick-sortable-placeholder {
|
|
116
|
+
background: silver;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.grid-canvas {
|
|
120
|
+
position: relative;
|
|
121
|
+
outline: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.slick-row.ui-widget-content, .slick-row.ui-state-active {
|
|
125
|
+
position: absolute;
|
|
126
|
+
border: 0px;
|
|
127
|
+
width: 100%;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.slick-cell, .slick-headerrow-column , .slick-footerrow-column{
|
|
131
|
+
position: absolute;
|
|
132
|
+
border: 1px solid transparent;
|
|
133
|
+
/*border-right: 1px dotted silver;
|
|
134
|
+
border-bottom-color: silver; */
|
|
135
|
+
border-right: 1px dotted silver;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
-o-text-overflow: ellipsis;
|
|
138
|
+
text-overflow: ellipsis;
|
|
139
|
+
vertical-align: middle;
|
|
140
|
+
z-index: 1;
|
|
141
|
+
padding: 1px 2px 2px 1px;
|
|
142
|
+
margin: 0;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
cursor: default;
|
|
145
|
+
}
|
|
146
|
+
/*.slick-cell, */.slick-headerrow-column{
|
|
147
|
+
border-bottom-color: silver;
|
|
148
|
+
}
|
|
149
|
+
.slick-footerrow-column {
|
|
150
|
+
border-top-color: silver;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.slick-group-toggle {
|
|
154
|
+
display: inline-block;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.slick-cell.highlighted {
|
|
158
|
+
background: lightskyblue;
|
|
159
|
+
background: rgba(0, 0, 255, 0.2);
|
|
160
|
+
-webkit-transition: all 0.5s;
|
|
161
|
+
-moz-transition: all 0.5s;
|
|
162
|
+
-o-transition: all 0.5s;
|
|
163
|
+
transition: all 0.5s;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.slick-cell.flashing {
|
|
167
|
+
border: 1px solid red !important;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.slick-cell.editable {
|
|
171
|
+
z-index: 11;
|
|
172
|
+
overflow: visible;
|
|
173
|
+
/* background: white;
|
|
174
|
+
border-color: black;
|
|
175
|
+
border-style: solid; */
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.slick-cell:focus {
|
|
179
|
+
outline: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.slick-reorder-proxy {
|
|
183
|
+
display: inline-block;
|
|
184
|
+
background: blue;
|
|
185
|
+
opacity: 0.15;
|
|
186
|
+
filter: alpha(opacity = 15);
|
|
187
|
+
cursor: move;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.slick-reorder-guide {
|
|
191
|
+
display: inline-block;
|
|
192
|
+
height: 2px;
|
|
193
|
+
background: blue;
|
|
194
|
+
opacity: 0.7;
|
|
195
|
+
filter: alpha(opacity = 70);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.slick-selection {
|
|
199
|
+
z-index: 10;
|
|
200
|
+
position: absolute;
|
|
201
|
+
border: 2px dashed black;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.slick-pane {
|
|
205
|
+
position: absolute;
|
|
206
|
+
outline: 0;
|
|
207
|
+
overflow: hidden;
|
|
208
|
+
width: 100%;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.slick-pane-header {
|
|
212
|
+
display: block;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.slick-header, .slick-headerrow, .slick-top-panel-scroller {
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
position: relative;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.slick-top-panel {
|
|
221
|
+
width: 10000px
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.slick-viewport {
|
|
225
|
+
position: relative;
|
|
226
|
+
outline: 0;
|
|
227
|
+
width: 100%;
|
|
228
|
+
background: white;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.slick-wrap {
|
|
232
|
+
white-space: normal;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* Slick.Editors.Text, Slick.Editors.Date */
|
|
236
|
+
input.editor-text, textarea.editor-text {
|
|
237
|
+
width: 100%;
|
|
238
|
+
height: 100%;
|
|
239
|
+
border: 0;
|
|
240
|
+
margin: 0;
|
|
241
|
+
background: transparent;
|
|
242
|
+
outline: 0;
|
|
243
|
+
padding: 0;
|
|
244
|
+
resize: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.slick-cell .jsl-container {
|
|
248
|
+
position: absolute;
|
|
249
|
+
left:0;
|
|
250
|
+
right:0;
|
|
251
|
+
bottom:0;
|
|
252
|
+
top:0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.slick-cell .jsl-container .jsl-selected {
|
|
256
|
+
padding: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.slickgrid {
|
|
260
|
+
box-sizing: border-box;
|
|
261
|
+
border: solid 1px #b0b0b0;
|
|
262
|
+
border-radius: 3px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.slick-col-ghost {
|
|
266
|
+
box-sizing: content-box;
|
|
267
|
+
position: absolute;
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.slick-ghost-content {
|
|
272
|
+
border: solid 2px #bbbbbb;
|
|
273
|
+
background: rgba(200,200,200,0.5);
|
|
274
|
+
position: absolute;
|
|
275
|
+
left: 0;
|
|
276
|
+
right: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.editor-text {
|
|
280
|
+
font-size: 100%;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.slick-filtered-header {
|
|
284
|
+
color: #3B99FF;
|
|
285
|
+
background: #e7e7e7;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.slick-preheader-panel .slick-column-name {
|
|
289
|
+
text-align: center;
|
|
290
|
+
float: none;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.slick-header-column.resizable > .rs-r {
|
|
294
|
+
background: none;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* .slick-header-column:hover.resizable > .rs-r {
|
|
298
|
+
background: rgba(20,20,20,0.3);
|
|
299
|
+
} */
|
|
300
|
+
|
|
301
|
+
.js-touch .slick-header-column > .slick-header-menubutton {
|
|
302
|
+
display: inline-block;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.js-touch .slick-header-column.resizable>.rs-r {
|
|
306
|
+
/* background: rgba(20,20,20,.3);
|
|
307
|
+
background-size: 0.9em 0.5em;
|
|
308
|
+
background-position: center center; */
|
|
309
|
+
|
|
310
|
+
background: rgba(0,0,0,0.04);
|
|
311
|
+
background-size: 0.5em 0.3em;
|
|
312
|
+
background-position: right center;
|
|
313
|
+
|
|
314
|
+
background: transparent;
|
|
315
|
+
background-size: 0.5em 0.3em;
|
|
316
|
+
background-position: right center;
|
|
317
|
+
|
|
318
|
+
width: 1.2rem;
|
|
319
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAMNSURBVEhLxVY7i1NBGM3NwzyMINiIjSKoC9tIBEG02FgkIeSxpJBlS7sV1s5fIRZqYWFhtYssEggJ5IEaFxERYdXWam1EkQVh82Lz8pzJl3jvzb1JjK8DA/lOZuacO/PNN+Po9/tT29LSktuKt2vov4B2xeo/c3M6piASiawHg8G9eDweEmoi2A/936G9wNg1oW2h0YUdKB4IBO45nU5Ht9s9ACLFYnFb/h4DxT0ez2uXy3WIca/XczQajZuVSuW+6mABWwPRaPSa3+9/DHFNKEe73a7XarWj1Wq1I5QByWQyBwMpCRVoAubL4K9ns9nPQo9guQVW4pwIK7BuJ05AZK3T6exIqMDVAx8Fn89kMieEHmHMQCwWuwrxTbM4l7JcLj8SyhL8QrfbncRKbXGMHuBDMLFtNmHYAor7fL4KxF1CKWDCcj6fj0k4EyR/7uo/hICJXZi5PNyO0Qowgbxeb8ksjgEfuH8SzgwmXrPZXMFKGJIM4qeQE+/T6fRJxmoFwuHwcRybjxA6onoJzG7ngeQTt9TwYcin3Xq9fkZLJBLnEL+C02MQG/wLaJr2HYMWf0d8CJyON5jrooQK/HC0r1oqlarh3B4W/p/D+T/Fiaml+G9jZIB7guwctT8NzNnTz48E5/Het80BZOnbQqFgSJx5wMIDsWdI8AWhFCiOsn6WK7AIR3sD+icwIIQjlJFwLoh43iyOE9eFgWWU9S/OXC73CdwFmPg2+HsAnluc3yc8x0L9MiBymx8ioQLFW61WpFQqPWescoAmsA3nWXgYDwETGi8lllWhZgbfAphzVUIFVkVUx9WhOGG4C2TJXsL1aaEUMJCJs4lKeWuWwmRzm1J8BRfallAKY+8B3b6NvYDA74BPTjKBCy2OC61gEudtegP3wwOhRhirA5ycIrwBOVAPmgL/UEJLYJU2LMT5KhoTJywLEU3w+uVAvQn8ZvbekdASWKVlbNeBhNy68qQnmaWBITiQJiBK4Y4+e+3ANyP6XkLbR3s69SqXW2li4xN71mf2sKG/z4o3tr7jB/mDdb4DhXtsAAAAAElFTkSuQmCC');
|
|
320
|
+
background-repeat: no-repeat;
|
|
321
|
+
}
|
|
322
|
+
.js-touch .slick-header-menubutton.resize-offset {
|
|
323
|
+
right: 1.2rem;
|
|
324
|
+
width: 1.2rem;
|
|
325
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* (c) 2009-2016 Michael Leibman
|
|
4
|
+
* michael{dot}leibman{at}gmail{dot}com
|
|
5
|
+
* http://github.com/mleibman/slickgrid
|
|
6
|
+
*
|
|
7
|
+
* Distributed under MIT license.
|
|
8
|
+
* All rights reserved.
|
|
9
|
+
*
|
|
10
|
+
* SlickGrid v2.4
|
|
11
|
+
*/
|
|
12
|
+
import { ISlickColumn, ISlickFormatter, ISlickEvent } from "./slick.core";
|
|
13
|
+
import "./slick.grid.css";
|
|
14
|
+
import "./slick-default-theme.css";
|
|
15
|
+
export interface ISlickGridOptions {
|
|
16
|
+
syncColumnCellResize?: boolean;
|
|
17
|
+
alwaysShowVerticalScroll?: boolean;
|
|
18
|
+
alwaysShowHorizontalScroll?: boolean;
|
|
19
|
+
alwaysAllowHorizontalScroll?: boolean;
|
|
20
|
+
explicitInitialization?: boolean;
|
|
21
|
+
rowHeight?: number;
|
|
22
|
+
defaultColumnWidth?: number;
|
|
23
|
+
enableAddRow?: boolean;
|
|
24
|
+
leaveSpaceForNewRows?: boolean;
|
|
25
|
+
editable?: boolean;
|
|
26
|
+
autoEdit?: boolean;
|
|
27
|
+
suppressActiveCellChangeOnEdit?: boolean;
|
|
28
|
+
enableCellNavigation?: boolean;
|
|
29
|
+
enableColumnReorder?: boolean;
|
|
30
|
+
asyncEditorLoading?: boolean;
|
|
31
|
+
asyncEditorLoadDelay?: number;
|
|
32
|
+
forceFitColumns?: boolean;
|
|
33
|
+
enableAsyncPostRender?: boolean;
|
|
34
|
+
asyncPostRenderDelay?: number;
|
|
35
|
+
enableAsyncPostRenderCleanup?: boolean;
|
|
36
|
+
asyncPostRenderCleanupDelay?: number;
|
|
37
|
+
autoHeight?: boolean;
|
|
38
|
+
editorLock?: any;
|
|
39
|
+
showHeaderRow?: boolean;
|
|
40
|
+
headerRowHeight?: number;
|
|
41
|
+
createFooterRow?: boolean;
|
|
42
|
+
showFooterRow?: boolean;
|
|
43
|
+
footerRowHeight?: number;
|
|
44
|
+
createPreHeaderPanel?: boolean;
|
|
45
|
+
showPreHeaderPanel?: boolean;
|
|
46
|
+
preHeaderPanelHeight?: number;
|
|
47
|
+
showTopPanel?: boolean;
|
|
48
|
+
topPanelHeight?: number;
|
|
49
|
+
formatterFactory?: {
|
|
50
|
+
getFormatter: (column: ISlickColumn, row?: number) => ISlickFormatter;
|
|
51
|
+
};
|
|
52
|
+
editorFactory?: {
|
|
53
|
+
getEditor: (column: ISlickColumn, row?: number) => any;
|
|
54
|
+
};
|
|
55
|
+
cellFlashingCssClass?: string;
|
|
56
|
+
selectedCellCssClass?: string;
|
|
57
|
+
multiSelect?: boolean;
|
|
58
|
+
enableTextSelectionOnCells?: boolean;
|
|
59
|
+
dataItemColumnValueExtractor?: (item: any, columnDef: ISlickColumn) => any;
|
|
60
|
+
frozenBottom?: boolean;
|
|
61
|
+
frozenColumn?: number;
|
|
62
|
+
frozenRow?: number;
|
|
63
|
+
fullWidthRows?: boolean;
|
|
64
|
+
multiColumnSort?: boolean;
|
|
65
|
+
numberedMultiColumnSort?: boolean;
|
|
66
|
+
tristateMultiColumnSort?: boolean;
|
|
67
|
+
sortColNumberInSeparateSpan?: boolean;
|
|
68
|
+
defaultFormatter?: ISlickFormatter;
|
|
69
|
+
forceSyncScrolling?: boolean;
|
|
70
|
+
addNewRowCssClass?: string;
|
|
71
|
+
preserveCopiedSelectionOnPaste?: boolean;
|
|
72
|
+
showCellSelection?: boolean;
|
|
73
|
+
viewportClass?: string;
|
|
74
|
+
minRowBuffer?: number;
|
|
75
|
+
emulatePagingWhenScrolling?: boolean;
|
|
76
|
+
editorCellNavOnLRKeys?: boolean;
|
|
77
|
+
doPaging?: boolean;
|
|
78
|
+
resizeHandleWidth?: string;
|
|
79
|
+
variableRowHeight?: boolean;
|
|
80
|
+
editCommandHandler?: (item: any, column: ISlickColumn, editCommand: any) => void;
|
|
81
|
+
resizeDelta?: number;
|
|
82
|
+
dragDelta?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ISlickGrid<T> {
|
|
85
|
+
"slickGridVersion": string;
|
|
86
|
+
"onScroll": ISlickEvent<{
|
|
87
|
+
scrollLeft: number;
|
|
88
|
+
scrollTop: number;
|
|
89
|
+
}>;
|
|
90
|
+
"onSort": ISlickEvent<{
|
|
91
|
+
multiColumnSort: boolean;
|
|
92
|
+
columnId?: string;
|
|
93
|
+
sortCol?: ISlickColumn;
|
|
94
|
+
sortAsc?: boolean;
|
|
95
|
+
sortCols?: Array<{
|
|
96
|
+
columnId?: string;
|
|
97
|
+
sortCol?: ISlickColumn;
|
|
98
|
+
sortAsc?: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
}>;
|
|
101
|
+
"onAppendRow": ISlickEvent<{
|
|
102
|
+
row: number;
|
|
103
|
+
item: T;
|
|
104
|
+
}>;
|
|
105
|
+
"onBeforeRemoveRow": ISlickEvent<{
|
|
106
|
+
row: number;
|
|
107
|
+
dom: HTMLDivElement;
|
|
108
|
+
}>;
|
|
109
|
+
"onClick": ISlickEvent<{
|
|
110
|
+
row: number;
|
|
111
|
+
cell: number;
|
|
112
|
+
}>;
|
|
113
|
+
"onDblClick": ISlickEvent<{
|
|
114
|
+
row: number;
|
|
115
|
+
cell: number;
|
|
116
|
+
}>;
|
|
117
|
+
"onColumnsResized": ISlickEvent<{
|
|
118
|
+
cell: number;
|
|
119
|
+
width: number;
|
|
120
|
+
previousWidth: number;
|
|
121
|
+
column: ISlickColumn;
|
|
122
|
+
}[]>;
|
|
123
|
+
"onAppendCell": ISlickEvent<{
|
|
124
|
+
row: number;
|
|
125
|
+
cell: number;
|
|
126
|
+
value: any;
|
|
127
|
+
item: T;
|
|
128
|
+
column: ISlickColumn;
|
|
129
|
+
dom: HTMLDivElement;
|
|
130
|
+
}>;
|
|
131
|
+
"onCellChange": ISlickEvent<{
|
|
132
|
+
row: number;
|
|
133
|
+
cell: number;
|
|
134
|
+
item: T;
|
|
135
|
+
value: any;
|
|
136
|
+
}>;
|
|
137
|
+
"onAddNewRow": ISlickEvent<{
|
|
138
|
+
item: T;
|
|
139
|
+
column: ISlickColumn;
|
|
140
|
+
}>;
|
|
141
|
+
"onHeaderRowCellRendered": ISlickEvent<{
|
|
142
|
+
node: HTMLElement;
|
|
143
|
+
column: ISlickColumn;
|
|
144
|
+
grid: ISlickGrid<T>;
|
|
145
|
+
}>;
|
|
146
|
+
"onFooterRowCellRendered": ISlickEvent<{
|
|
147
|
+
node: HTMLElement;
|
|
148
|
+
column: ISlickColumn;
|
|
149
|
+
grid: ISlickGrid<T>;
|
|
150
|
+
}>;
|
|
151
|
+
"onHeaderCellRendered": ISlickEvent<{
|
|
152
|
+
node: HTMLElement;
|
|
153
|
+
column: ISlickColumn;
|
|
154
|
+
grid: ISlickGrid<T>;
|
|
155
|
+
}>;
|
|
156
|
+
"onBeforeEditCell": ISlickEvent<{
|
|
157
|
+
row: number;
|
|
158
|
+
cell: number;
|
|
159
|
+
item: T;
|
|
160
|
+
column: ISlickColumn;
|
|
161
|
+
}>;
|
|
162
|
+
"onSelectedRowsChanged": ISlickEvent<{
|
|
163
|
+
rows: number[];
|
|
164
|
+
}>;
|
|
165
|
+
"onBeforeDestroy": ISlickEvent<any>;
|
|
166
|
+
"onColumnsReordered": ISlickEvent<any>;
|
|
167
|
+
"onViewportChanged": ISlickEvent<any>;
|
|
168
|
+
"onActiveCellChanged": ISlickEvent<{
|
|
169
|
+
row: number;
|
|
170
|
+
cell: number;
|
|
171
|
+
}>;
|
|
172
|
+
"onDragInit": ISlickEvent<any>;
|
|
173
|
+
"onDragStart": ISlickEvent<any>;
|
|
174
|
+
"onDrag": ISlickEvent<any>;
|
|
175
|
+
"onDragEnd": ISlickEvent<any>;
|
|
176
|
+
"registerPlugin": (plugin: any) => void;
|
|
177
|
+
"init": () => void;
|
|
178
|
+
"resizeCanvas": () => void;
|
|
179
|
+
"invalidate": () => void;
|
|
180
|
+
"invalidateAllRows": () => void;
|
|
181
|
+
"updateRow": (row: number) => void;
|
|
182
|
+
"getColumns": () => ISlickColumn[];
|
|
183
|
+
"setColumns": (columns: ISlickColumn[]) => void;
|
|
184
|
+
"getSelectedRows": () => number[];
|
|
185
|
+
"setSelectedRows": (rows: number[]) => void;
|
|
186
|
+
"invalidateRows": (rows: number[]) => void;
|
|
187
|
+
"render": () => void;
|
|
188
|
+
"updateRowCount": () => void;
|
|
189
|
+
"getColumnIndex": (columnId: string) => number;
|
|
190
|
+
"scrollRowIntoView": (row: number, doPaging?: boolean) => void;
|
|
191
|
+
"flashCell": (row: number, cell: number, speed?: number, times?: number) => void;
|
|
192
|
+
"getActiveCell": () => {
|
|
193
|
+
row: number;
|
|
194
|
+
cell: number;
|
|
195
|
+
};
|
|
196
|
+
"setActiveCell": (row: number, cell: number, opt_editMode?: boolean, preClickModeOn?: boolean, suppressActiveCellChangedEvent?: boolean) => void;
|
|
197
|
+
"gotoCell": (row: number, cell: number, forceEdit?: boolean, e?: any) => void;
|
|
198
|
+
"destroy": () => void;
|
|
199
|
+
"getColumnById": (id: string) => ISlickColumn;
|
|
200
|
+
"getHeaderColumnWidthDiff": () => number;
|
|
201
|
+
"getPreHeaderPanel": () => HTMLDivElement;
|
|
202
|
+
"getPreHeaderPanelRight": () => HTMLDivElement;
|
|
203
|
+
"getHeadersWidth": () => number;
|
|
204
|
+
"getViewportNode": () => HTMLDivElement;
|
|
205
|
+
"updateColumnHeader": (columnId: string, title: string, toolTip: string) => void;
|
|
206
|
+
"setSortColumn": (columnId: string, ascending?: boolean) => void;
|
|
207
|
+
"setSortColumns": (columns: Array<{
|
|
208
|
+
columnId: string;
|
|
209
|
+
ascending?: boolean;
|
|
210
|
+
}>) => void;
|
|
211
|
+
"getSortColumns": () => Array<{
|
|
212
|
+
columnId: string;
|
|
213
|
+
ascending?: boolean;
|
|
214
|
+
}>;
|
|
215
|
+
"autosizeColumns": () => void;
|
|
216
|
+
"setOptions": (args: ISlickGridOptions, supressRender?: boolean) => void;
|
|
217
|
+
"getOptions": () => ISlickGridOptions;
|
|
218
|
+
"scrollRowToTop": (row: number) => void;
|
|
219
|
+
"scrollCellIntoView": (row: number, cell: number, doPaging?: boolean) => void;
|
|
220
|
+
"scrollColumnIntoView": (cell: number) => void;
|
|
221
|
+
"getCellFromPoint": (x: number, y: number) => {
|
|
222
|
+
row: number;
|
|
223
|
+
cell: number;
|
|
224
|
+
};
|
|
225
|
+
"getCellFromEvent": (e: any, dd: any) => {
|
|
226
|
+
row: number;
|
|
227
|
+
cell: number;
|
|
228
|
+
};
|
|
229
|
+
"getActiveCellNode": () => HTMLElement;
|
|
230
|
+
"getDataLength": () => number;
|
|
231
|
+
"getDataItem": (idx: number) => T;
|
|
232
|
+
"getSelectionModel": () => any;
|
|
233
|
+
"setSelectionModel": (model: any) => void;
|
|
234
|
+
"getContainerNode": () => HTMLDivElement;
|
|
235
|
+
"getDataItemValueForColumn": (item: T, columnDef: ISlickColumn) => any;
|
|
236
|
+
"getViewport": (viewPortTop?: number, viewPortLeft?: number) => {
|
|
237
|
+
top: number;
|
|
238
|
+
bottom: number;
|
|
239
|
+
leftPx: number;
|
|
240
|
+
rightPx: number;
|
|
241
|
+
};
|
|
242
|
+
"getRenderedRange": (viewportTop?: number, viewportLeft?: number) => {
|
|
243
|
+
top: number;
|
|
244
|
+
bottom: number;
|
|
245
|
+
leftPx: number;
|
|
246
|
+
rightPx: number;
|
|
247
|
+
};
|
|
248
|
+
"getEditController": () => {
|
|
249
|
+
commitCurrentEdit: () => boolean;
|
|
250
|
+
cancelCurrentEdit: () => boolean;
|
|
251
|
+
};
|
|
252
|
+
"invalidateRow": (row: number) => void;
|
|
253
|
+
"getCanvasNode": (columnIdOrIdx?: number, rowIndex?: number) => HTMLElement;
|
|
254
|
+
"focus": () => void;
|
|
255
|
+
"getActiveCellPosition": () => {
|
|
256
|
+
top: number;
|
|
257
|
+
left: number;
|
|
258
|
+
bottom: number;
|
|
259
|
+
right: number;
|
|
260
|
+
width: number;
|
|
261
|
+
height: number;
|
|
262
|
+
visible: boolean;
|
|
263
|
+
};
|
|
264
|
+
"resetActiveCell": () => void;
|
|
265
|
+
"getCellNodeBox": (row: number, cell: number) => {
|
|
266
|
+
bottom: number;
|
|
267
|
+
left: number;
|
|
268
|
+
top: number;
|
|
269
|
+
right: number;
|
|
270
|
+
height: number;
|
|
271
|
+
width: number;
|
|
272
|
+
};
|
|
273
|
+
"canCellBeSelected": (row: number, cell: number) => boolean;
|
|
274
|
+
"getGridPosition": () => {
|
|
275
|
+
top: number;
|
|
276
|
+
left: number;
|
|
277
|
+
bottom: number;
|
|
278
|
+
right: number;
|
|
279
|
+
width: number;
|
|
280
|
+
height: number;
|
|
281
|
+
visible: boolean;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export declare function SlickGrid(container: HTMLDivElement | string, data: any, columns: ISlickColumn[], options: ISlickGridOptions): void;
|