cypress-ag-grid 2.0.1 → 2.0.3
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/.circleci/config.yml +13 -13
- package/README.md +378 -376
- package/app/ag-grid.css +6682 -0
- package/app/ag-theme-alpine.css +338 -0
- package/app/data.json +22 -0
- package/app/grid-basic.js +78 -70
- package/app/grid-grouped.js +71 -71
- package/app/index.html +14 -14
- package/cypress/e2e/ag-grid-data.cy.js +580 -507
- package/cypress/e2e/ag-grid-elements.cy.js +59 -59
- package/cypress/fixtures/cardata.json +21 -21
- package/cypress/plugins/index.js +22 -22
- package/cypress/support/commands.js +25 -25
- package/cypress/support/e2e.js +21 -21
- package/package.json +29 -29
- package/src/agGrid/agGridInteractions.js +543 -537
- package/src/agGrid/agGridValidations.js +38 -37
- package/src/agGrid/filterOperator.enum.js +15 -13
- package/src/agGrid/menuTab.enum.js +6 -6
- package/src/agGrid/sort.enum.js +5 -5
- package/src/index.js +18 -18
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "agGridAlpine";
|
|
3
|
+
src: url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAABGYAAsAAAAAJUAAABFHAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHIh2BmAAixwKpXCfGwE2AiQDgiwLgRgABCAFhEYHhRYbjiBFIbBxQJhBP8IiqifF7P9DAp1DWLRF/YtGkJpOTafDolO66hq923HLpBjtKhEisuawXiIEoOjQaGO9OOdNmM/k7y5DCZMHau317e0FCManAAiSyCaunoRkkLFl1/9/c+VPMsnNEtBMGFedLLAjUjWiUlf3+d7r9jXZ9QR298S0qL4ULfAzmTVNTp0mtPCuUzXkB9rmv+OwOMJMsBBtenrY+GctjprYgZGc8X+zSHSRfcvw1zpZ98C2kVXG2W5VN1e6FQaG8JwEf+HchRXcb/Z2hfQ8dNS65LeVddel9vIEBkLLAG+YnEKJNWojAGE6V6EkgmyIn4SZ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fUrtgtzEmh26BAjP024Pka2cbcuIidIC90FxL7+MIWiQNZwmbqYJINUTeTgODi30+piO9mVi3PXMMdTTmaKOpIKhsx0WOAXbzc19S6ziGQukT7aE2oe1becDAJ2Ubp0wARhQ7m5VjgrDdv2N5JuuSRQBzomCUKV7nW2tS/6FeMhsYy1oDAA==);
|
|
4
|
+
font-weight: normal;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
}
|
|
7
|
+
.ag-theme-alpine, .ag-theme-alpine-dark {
|
|
8
|
+
--ag-alpine-active-color: #2196f3;
|
|
9
|
+
--ag-selected-row-background-color: rgba(33, 150, 243, 0.3);
|
|
10
|
+
--ag-row-hover-color: rgba(33, 150, 243, 0.1);
|
|
11
|
+
--ag-column-hover-color: rgba(33, 150, 243, 0.1);
|
|
12
|
+
--ag-input-focus-border-color: rgba(33, 150, 243, 0.4);
|
|
13
|
+
--ag-range-selection-background-color: rgba(33, 150, 243, 0.2);
|
|
14
|
+
--ag-range-selection-background-color-2: rgba(33, 150, 243, 0.36);
|
|
15
|
+
--ag-range-selection-background-color-3: rgba(33, 150, 243, 0.49);
|
|
16
|
+
--ag-range-selection-background-color-4: rgba(33, 150, 243, 0.59);
|
|
17
|
+
--ag-background-color: #fff;
|
|
18
|
+
--ag-foreground-color: #181d1f;
|
|
19
|
+
--ag-border-color: #babfc7;
|
|
20
|
+
--ag-secondary-border-color: #dde2eb;
|
|
21
|
+
--ag-header-background-color: #f8f8f8;
|
|
22
|
+
--ag-odd-row-background-color: #fcfcfc;
|
|
23
|
+
--ag-control-panel-background-color: #f8f8f8;
|
|
24
|
+
--ag-subheader-background-color: #fff;
|
|
25
|
+
--ag-invalid-color: #e02525;
|
|
26
|
+
--ag-checkbox-unchecked-color: #999;
|
|
27
|
+
--ag-checkbox-background-color: var(--ag-background-color);
|
|
28
|
+
--ag-checkbox-checked-color: var(--ag-alpine-active-color);
|
|
29
|
+
--ag-range-selection-border-color: var(--ag-alpine-active-color);
|
|
30
|
+
--ag-secondary-foreground-color: var(--ag-foreground-color);
|
|
31
|
+
--ag-input-border-color: var(--ag-border-color);
|
|
32
|
+
--ag-input-border-color-invalid: var(--ag-invalid-color);
|
|
33
|
+
--ag-input-focus-box-shadow: 0 0 2px 0.1rem var(--ag-input-focus-border-color);
|
|
34
|
+
--ag-disabled-foreground-color: rgba(24, 29, 31, 0.5);
|
|
35
|
+
--ag-chip-background-color: rgba(24, 29, 31, 0.07);
|
|
36
|
+
--ag-input-disabled-border-color: rgba(186, 191, 199, 0.3);
|
|
37
|
+
--ag-input-disabled-background-color: rgba(186, 191, 199, 0.15);
|
|
38
|
+
--ag-borders: solid 1px;
|
|
39
|
+
--ag-border-radius: 3px;
|
|
40
|
+
--ag-borders-side-button: none;
|
|
41
|
+
--ag-side-button-selected-background-color: transparent;
|
|
42
|
+
--ag-header-column-resize-handle-display: block;
|
|
43
|
+
--ag-header-column-resize-handle-width: 2px;
|
|
44
|
+
--ag-header-column-resize-handle-height: 30%;
|
|
45
|
+
--ag-grid-size: 6px;
|
|
46
|
+
--ag-icon-size: 16px;
|
|
47
|
+
--ag-row-height: calc(var(--ag-grid-size) * 7);
|
|
48
|
+
--ag-header-height: calc(var(--ag-grid-size) * 8);
|
|
49
|
+
--ag-list-item-height: calc(var(--ag-grid-size) * 4);
|
|
50
|
+
--ag-column-select-indent-size: var(--ag-icon-size);
|
|
51
|
+
--ag-cell-horizontal-padding: calc(var(--ag-grid-size) * 3);
|
|
52
|
+
--ag-cell-widget-spacing: calc(var(--ag-grid-size) * 2);
|
|
53
|
+
--ag-widget-container-vertical-padding: calc(var(--ag-grid-size) * 2);
|
|
54
|
+
--ag-widget-container-horizontal-padding: calc(var(--ag-grid-size) * 2);
|
|
55
|
+
--ag-widget-vertical-spacing: calc(var(--ag-grid-size) * 1.5);
|
|
56
|
+
--ag-toggle-button-height: 18px;
|
|
57
|
+
--ag-toggle-button-width: 28px;
|
|
58
|
+
--ag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
59
|
+
--ag-font-size: 13px;
|
|
60
|
+
--ag-icon-font-family: agGridAlpine;
|
|
61
|
+
--ag-selected-tab-underline-color: var(--ag-alpine-active-color);
|
|
62
|
+
--ag-selected-tab-underline-width: 2px;
|
|
63
|
+
--ag-selected-tab-underline-transition-speed: 0.3s;
|
|
64
|
+
--ag-tab-min-width: 240px;
|
|
65
|
+
--ag-card-shadow: 0 1px 4px 1px rgba(186, 191, 199, 0.4);
|
|
66
|
+
--ag-popup-shadow: var(--ag-card-shadow);
|
|
67
|
+
--ag-side-bar-panel-width: 250px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ag-theme-alpine-dark {
|
|
71
|
+
--ag-background-color: #181d1f;
|
|
72
|
+
--ag-foreground-color: #fff;
|
|
73
|
+
--ag-border-color: #68686e;
|
|
74
|
+
--ag-secondary-border-color: rgba(88, 86, 82, 0.5);
|
|
75
|
+
--ag-header-background-color: #222628;
|
|
76
|
+
--ag-odd-row-background-color: #222628;
|
|
77
|
+
--ag-control-panel-background-color: #222628;
|
|
78
|
+
--ag-subheader-background-color: #000;
|
|
79
|
+
--ag-input-disabled-background-color: #282c2f;
|
|
80
|
+
--ag-input-focus-box-shadow:
|
|
81
|
+
0 0 2px 0.5px rgba(255, 255, 255, 0.5),
|
|
82
|
+
0 0 4px 3px var(--ag-input-focus-border-color);
|
|
83
|
+
--ag-card-shadow: 0 1px 20px 1px black;
|
|
84
|
+
--ag-disabled-foreground-color: rgba(255, 255, 255, 0.5);
|
|
85
|
+
--ag-chip-background-color: rgba(255, 255, 255, 0.07);
|
|
86
|
+
--ag-input-disabled-border-color: rgba(104, 104, 110, 0.3);
|
|
87
|
+
--ag-input-disabled-background-color: rgba(104, 104, 110, 0.07);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.ag-theme-alpine .ag-filter-toolpanel-header,
|
|
91
|
+
.ag-theme-alpine .ag-filter-toolpanel-search,
|
|
92
|
+
.ag-theme-alpine .ag-status-bar,
|
|
93
|
+
.ag-theme-alpine .ag-header-row,
|
|
94
|
+
.ag-theme-alpine .ag-panel-title-bar-title,
|
|
95
|
+
.ag-theme-alpine .ag-multi-filter-group-title-bar, .ag-theme-alpine-dark .ag-filter-toolpanel-header,
|
|
96
|
+
.ag-theme-alpine-dark .ag-filter-toolpanel-search,
|
|
97
|
+
.ag-theme-alpine-dark .ag-status-bar,
|
|
98
|
+
.ag-theme-alpine-dark .ag-header-row,
|
|
99
|
+
.ag-theme-alpine-dark .ag-panel-title-bar-title,
|
|
100
|
+
.ag-theme-alpine-dark .ag-multi-filter-group-title-bar {
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
color: var(--ag-header-foreground-color);
|
|
103
|
+
}
|
|
104
|
+
.ag-theme-alpine .ag-row, .ag-theme-alpine-dark .ag-row {
|
|
105
|
+
font-size: calc(var(--ag-font-size) + 1px);
|
|
106
|
+
}
|
|
107
|
+
.ag-theme-alpine input[class^=ag-]:not([type]),
|
|
108
|
+
.ag-theme-alpine input[class^=ag-][type=text],
|
|
109
|
+
.ag-theme-alpine input[class^=ag-][type=number],
|
|
110
|
+
.ag-theme-alpine input[class^=ag-][type=tel],
|
|
111
|
+
.ag-theme-alpine input[class^=ag-][type=date],
|
|
112
|
+
.ag-theme-alpine input[class^=ag-][type=datetime-local],
|
|
113
|
+
.ag-theme-alpine textarea[class^=ag-], .ag-theme-alpine-dark input[class^=ag-]:not([type]),
|
|
114
|
+
.ag-theme-alpine-dark input[class^=ag-][type=text],
|
|
115
|
+
.ag-theme-alpine-dark input[class^=ag-][type=number],
|
|
116
|
+
.ag-theme-alpine-dark input[class^=ag-][type=tel],
|
|
117
|
+
.ag-theme-alpine-dark input[class^=ag-][type=date],
|
|
118
|
+
.ag-theme-alpine-dark input[class^=ag-][type=datetime-local],
|
|
119
|
+
.ag-theme-alpine-dark textarea[class^=ag-] {
|
|
120
|
+
min-height: calc(var(--ag-grid-size) * 4);
|
|
121
|
+
border-radius: var(--ag-border-radius);
|
|
122
|
+
}
|
|
123
|
+
.ag-theme-alpine .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-ltr textarea[class^=ag-], .ag-theme-alpine-dark .ag-ltr input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-ltr input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-ltr textarea[class^=ag-] {
|
|
124
|
+
padding-left: var(--ag-grid-size);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ag-theme-alpine .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine .ag-rtl textarea[class^=ag-], .ag-theme-alpine-dark .ag-rtl input[class^=ag-]:not([type]), .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=text], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=number], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=tel], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=date], .ag-theme-alpine-dark .ag-rtl input[class^=ag-][type=datetime-local], .ag-theme-alpine-dark .ag-rtl textarea[class^=ag-] {
|
|
128
|
+
padding-right: var(--ag-grid-size);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.ag-theme-alpine .ag-tab, .ag-theme-alpine-dark .ag-tab {
|
|
132
|
+
padding: calc(var(--ag-grid-size) * 1.5);
|
|
133
|
+
transition: color 0.4s;
|
|
134
|
+
flex: 1 1 auto;
|
|
135
|
+
}
|
|
136
|
+
.ag-theme-alpine .ag-tab-selected, .ag-theme-alpine-dark .ag-tab-selected {
|
|
137
|
+
color: var(--ag-alpine-active-color);
|
|
138
|
+
}
|
|
139
|
+
.ag-theme-alpine .ag-menu, .ag-theme-alpine-dark .ag-menu {
|
|
140
|
+
background-color: var(--ag-control-panel-background-color);
|
|
141
|
+
}
|
|
142
|
+
.ag-theme-alpine .ag-menu-header, .ag-theme-alpine-dark .ag-menu-header {
|
|
143
|
+
background-color: var(--ag-control-panel-background-color);
|
|
144
|
+
padding-top: 1px;
|
|
145
|
+
}
|
|
146
|
+
.ag-theme-alpine .ag-tabs-header, .ag-theme-alpine-dark .ag-tabs-header {
|
|
147
|
+
border-bottom: var(--ag-borders) var(--ag-border-color);
|
|
148
|
+
}
|
|
149
|
+
.ag-theme-alpine .ag-charts-settings-group-title-bar,
|
|
150
|
+
.ag-theme-alpine .ag-charts-data-group-title-bar,
|
|
151
|
+
.ag-theme-alpine .ag-charts-format-top-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-settings-group-title-bar,
|
|
152
|
+
.ag-theme-alpine-dark .ag-charts-data-group-title-bar,
|
|
153
|
+
.ag-theme-alpine-dark .ag-charts-format-top-level-group-title-bar {
|
|
154
|
+
padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
|
|
155
|
+
line-height: calc(var(--ag-icon-size) + var(--ag-grid-size) - 2px);
|
|
156
|
+
}
|
|
157
|
+
.ag-theme-alpine .ag-chart-mini-thumbnail, .ag-theme-alpine-dark .ag-chart-mini-thumbnail {
|
|
158
|
+
background-color: var(--ag-background-color);
|
|
159
|
+
}
|
|
160
|
+
.ag-theme-alpine .ag-chart-settings-nav-bar, .ag-theme-alpine-dark .ag-chart-settings-nav-bar {
|
|
161
|
+
border-top: var(--ag-borders-secondary) var(--ag-secondary-border-color);
|
|
162
|
+
}
|
|
163
|
+
.ag-theme-alpine .ag-ltr .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-ltr .ag-group-title-bar-icon {
|
|
164
|
+
margin-right: var(--ag-grid-size);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ag-theme-alpine .ag-rtl .ag-group-title-bar-icon, .ag-theme-alpine-dark .ag-rtl .ag-group-title-bar-icon {
|
|
168
|
+
margin-left: var(--ag-grid-size);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ag-theme-alpine .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-charts-format-top-level-group-toolbar {
|
|
172
|
+
margin-top: var(--ag-grid-size);
|
|
173
|
+
}
|
|
174
|
+
.ag-theme-alpine .ag-ltr .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-ltr .ag-charts-format-top-level-group-toolbar {
|
|
175
|
+
padding-left: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ag-theme-alpine .ag-rtl .ag-charts-format-top-level-group-toolbar, .ag-theme-alpine-dark .ag-rtl .ag-charts-format-top-level-group-toolbar {
|
|
179
|
+
padding-right: calc(var(--ag-icon-size) * 0.5 + var(--ag-grid-size) * 2);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ag-theme-alpine .ag-charts-format-sub-level-group, .ag-theme-alpine-dark .ag-charts-format-sub-level-group {
|
|
183
|
+
border-left: dashed 1px;
|
|
184
|
+
border-left-color: var(--ag-border-color);
|
|
185
|
+
padding-left: var(--ag-grid-size);
|
|
186
|
+
margin-bottom: calc(var(--ag-grid-size) * 2);
|
|
187
|
+
}
|
|
188
|
+
.ag-theme-alpine .ag-charts-format-sub-level-group-title-bar, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-title-bar {
|
|
189
|
+
padding-top: 0;
|
|
190
|
+
padding-bottom: 0;
|
|
191
|
+
background: none;
|
|
192
|
+
font-weight: 700;
|
|
193
|
+
}
|
|
194
|
+
.ag-theme-alpine .ag-charts-format-sub-level-group-container, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-container {
|
|
195
|
+
padding-bottom: 0;
|
|
196
|
+
}
|
|
197
|
+
.ag-theme-alpine .ag-charts-format-sub-level-group-item:last-child, .ag-theme-alpine-dark .ag-charts-format-sub-level-group-item:last-child {
|
|
198
|
+
margin-bottom: 0;
|
|
199
|
+
}
|
|
200
|
+
.ag-theme-alpine.ag-dnd-ghost, .ag-theme-alpine-dark.ag-dnd-ghost {
|
|
201
|
+
font-size: calc(var(--ag-font-size) - 1px);
|
|
202
|
+
font-weight: 700;
|
|
203
|
+
}
|
|
204
|
+
.ag-theme-alpine .ag-side-buttons, .ag-theme-alpine-dark .ag-side-buttons {
|
|
205
|
+
width: calc(var(--ag-grid-size) * 5);
|
|
206
|
+
}
|
|
207
|
+
.ag-theme-alpine .ag-standard-button, .ag-theme-alpine-dark .ag-standard-button {
|
|
208
|
+
appearance: none;
|
|
209
|
+
-webkit-appearance: none;
|
|
210
|
+
border-radius: var(--ag-border-radius);
|
|
211
|
+
border: 1px solid;
|
|
212
|
+
border-color: var(--ag-alpine-active-color);
|
|
213
|
+
color: var(--ag-alpine-active-color);
|
|
214
|
+
background-color: var(--ag-background-color);
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
padding: var(--ag-grid-size) calc(var(--ag-grid-size) * 2);
|
|
217
|
+
}
|
|
218
|
+
.ag-theme-alpine .ag-standard-button:hover, .ag-theme-alpine-dark .ag-standard-button:hover {
|
|
219
|
+
border-color: var(--ag-alpine-active-color);
|
|
220
|
+
background-color: var(--ag-row-hover-color);
|
|
221
|
+
}
|
|
222
|
+
.ag-theme-alpine .ag-standard-button:active, .ag-theme-alpine-dark .ag-standard-button:active {
|
|
223
|
+
border-color: var(--ag-alpine-active-color);
|
|
224
|
+
background-color: var(--ag-alpine-active-color);
|
|
225
|
+
color: var(--ag-background-color);
|
|
226
|
+
}
|
|
227
|
+
.ag-theme-alpine .ag-standard-button:disabled, .ag-theme-alpine-dark .ag-standard-button:disabled {
|
|
228
|
+
color: var(--ag-disabled-foreground-color);
|
|
229
|
+
background-color: var(--ag-input-disabled-background-color);
|
|
230
|
+
border-color: var(--ag-input-disabled-border-color);
|
|
231
|
+
}
|
|
232
|
+
.ag-theme-alpine .ag-column-drop-vertical, .ag-theme-alpine-dark .ag-column-drop-vertical {
|
|
233
|
+
min-height: 75px;
|
|
234
|
+
}
|
|
235
|
+
.ag-theme-alpine .ag-column-drop-vertical-title-bar, .ag-theme-alpine-dark .ag-column-drop-vertical-title-bar {
|
|
236
|
+
padding: calc(var(--ag-grid-size) * 2);
|
|
237
|
+
padding-bottom: 0px;
|
|
238
|
+
}
|
|
239
|
+
.ag-theme-alpine .ag-column-drop-vertical-empty-message, .ag-theme-alpine-dark .ag-column-drop-vertical-empty-message {
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
border: dashed 1px;
|
|
243
|
+
border-color: var(--ag-border-color);
|
|
244
|
+
margin: calc(var(--ag-grid-size) * 2);
|
|
245
|
+
padding: calc(var(--ag-grid-size) * 2);
|
|
246
|
+
}
|
|
247
|
+
.ag-theme-alpine .ag-column-drop-empty-message, .ag-theme-alpine-dark .ag-column-drop-empty-message {
|
|
248
|
+
color: var(--ag-foreground-color);
|
|
249
|
+
opacity: 0.75;
|
|
250
|
+
}
|
|
251
|
+
.ag-theme-alpine .ag-status-bar, .ag-theme-alpine-dark .ag-status-bar {
|
|
252
|
+
font-weight: normal;
|
|
253
|
+
}
|
|
254
|
+
.ag-theme-alpine .ag-status-name-value-value, .ag-theme-alpine-dark .ag-status-name-value-value {
|
|
255
|
+
font-weight: 700;
|
|
256
|
+
}
|
|
257
|
+
.ag-theme-alpine .ag-paging-number, .ag-theme-alpine .ag-paging-row-summary-panel-number, .ag-theme-alpine-dark .ag-paging-number, .ag-theme-alpine-dark .ag-paging-row-summary-panel-number {
|
|
258
|
+
font-weight: 700;
|
|
259
|
+
}
|
|
260
|
+
.ag-theme-alpine .ag-column-drop-cell-button, .ag-theme-alpine-dark .ag-column-drop-cell-button {
|
|
261
|
+
opacity: 0.5;
|
|
262
|
+
}
|
|
263
|
+
.ag-theme-alpine .ag-column-drop-cell-button:hover, .ag-theme-alpine-dark .ag-column-drop-cell-button:hover {
|
|
264
|
+
opacity: 0.75;
|
|
265
|
+
}
|
|
266
|
+
.ag-theme-alpine .ag-header-cell-menu-button:hover,
|
|
267
|
+
.ag-theme-alpine .ag-side-button-button:hover,
|
|
268
|
+
.ag-theme-alpine .ag-tab:hover,
|
|
269
|
+
.ag-theme-alpine .ag-panel-title-bar-button:hover,
|
|
270
|
+
.ag-theme-alpine .ag-header-expand-icon:hover,
|
|
271
|
+
.ag-theme-alpine .ag-column-group-icons:hover,
|
|
272
|
+
.ag-theme-alpine .ag-group-expanded .ag-icon:hover,
|
|
273
|
+
.ag-theme-alpine .ag-group-contracted .ag-icon:hover,
|
|
274
|
+
.ag-theme-alpine .ag-chart-settings-prev:hover,
|
|
275
|
+
.ag-theme-alpine .ag-chart-settings-next:hover,
|
|
276
|
+
.ag-theme-alpine .ag-group-title-bar-icon:hover,
|
|
277
|
+
.ag-theme-alpine .ag-column-select-header-icon:hover,
|
|
278
|
+
.ag-theme-alpine .ag-floating-filter-button-button:hover,
|
|
279
|
+
.ag-theme-alpine .ag-filter-toolpanel-expand:hover,
|
|
280
|
+
.ag-theme-alpine .ag-chart-menu-icon:hover, .ag-theme-alpine-dark .ag-header-cell-menu-button:hover,
|
|
281
|
+
.ag-theme-alpine-dark .ag-side-button-button:hover,
|
|
282
|
+
.ag-theme-alpine-dark .ag-tab:hover,
|
|
283
|
+
.ag-theme-alpine-dark .ag-panel-title-bar-button:hover,
|
|
284
|
+
.ag-theme-alpine-dark .ag-header-expand-icon:hover,
|
|
285
|
+
.ag-theme-alpine-dark .ag-column-group-icons:hover,
|
|
286
|
+
.ag-theme-alpine-dark .ag-group-expanded .ag-icon:hover,
|
|
287
|
+
.ag-theme-alpine-dark .ag-group-contracted .ag-icon:hover,
|
|
288
|
+
.ag-theme-alpine-dark .ag-chart-settings-prev:hover,
|
|
289
|
+
.ag-theme-alpine-dark .ag-chart-settings-next:hover,
|
|
290
|
+
.ag-theme-alpine-dark .ag-group-title-bar-icon:hover,
|
|
291
|
+
.ag-theme-alpine-dark .ag-column-select-header-icon:hover,
|
|
292
|
+
.ag-theme-alpine-dark .ag-floating-filter-button-button:hover,
|
|
293
|
+
.ag-theme-alpine-dark .ag-filter-toolpanel-expand:hover,
|
|
294
|
+
.ag-theme-alpine-dark .ag-chart-menu-icon:hover {
|
|
295
|
+
color: var(--ag-alpine-active-color);
|
|
296
|
+
}
|
|
297
|
+
.ag-theme-alpine .ag-chart-settings-card-item.ag-not-selected:hover, .ag-theme-alpine-dark .ag-chart-settings-card-item.ag-not-selected:hover {
|
|
298
|
+
opacity: 0.35;
|
|
299
|
+
}
|
|
300
|
+
.ag-theme-alpine .ag-ltr .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-ltr .ag-panel-title-bar-button {
|
|
301
|
+
margin-left: calc(var(--ag-grid-size) * 2);
|
|
302
|
+
margin-right: var(--ag-grid-size);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.ag-theme-alpine .ag-rtl .ag-panel-title-bar-button, .ag-theme-alpine-dark .ag-rtl .ag-panel-title-bar-button {
|
|
306
|
+
margin-right: calc(var(--ag-grid-size) * 2);
|
|
307
|
+
margin-left: var(--ag-grid-size);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.ag-theme-alpine .ag-filter-toolpanel-group-container, .ag-theme-alpine-dark .ag-filter-toolpanel-group-container {
|
|
311
|
+
padding-left: var(--ag-grid-size);
|
|
312
|
+
}
|
|
313
|
+
.ag-theme-alpine .ag-filter-toolpanel-instance-filter, .ag-theme-alpine-dark .ag-filter-toolpanel-instance-filter {
|
|
314
|
+
border: none;
|
|
315
|
+
background-color: var(--ag-control-panel-background-color);
|
|
316
|
+
border-left: dashed 1px;
|
|
317
|
+
border-left-color: var(--ag-border-color);
|
|
318
|
+
margin-left: calc(var(--ag-icon-size) * 0.5);
|
|
319
|
+
padding-left: calc(var(--ag-icon-size) * 0.5);
|
|
320
|
+
margin-right: calc(var(--ag-grid-size) * 2);
|
|
321
|
+
}
|
|
322
|
+
.ag-theme-alpine .ag-set-filter-list, .ag-theme-alpine-dark .ag-set-filter-list {
|
|
323
|
+
padding-top: calc(var(--ag-grid-size) * 0.5);
|
|
324
|
+
padding-bottom: calc(var(--ag-grid-size) * 0.5);
|
|
325
|
+
}
|
|
326
|
+
.ag-theme-alpine .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine .ag-layout-print .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-auto-height .ag-center-cols-container, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-clipper, .ag-theme-alpine-dark .ag-layout-print .ag-center-cols-container {
|
|
327
|
+
min-height: 150px;
|
|
328
|
+
}
|
|
329
|
+
.ag-theme-alpine .ag-overlay-no-rows-wrapper.ag-layout-auto-height, .ag-theme-alpine-dark .ag-overlay-no-rows-wrapper.ag-layout-auto-height {
|
|
330
|
+
padding-top: 60px;
|
|
331
|
+
}
|
|
332
|
+
.ag-theme-alpine .ag-date-time-list-page-entry-is-current, .ag-theme-alpine-dark .ag-date-time-list-page-entry-is-current {
|
|
333
|
+
background-color: var(--ag-alpine-active-color);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ag-theme-alpine-dark {
|
|
337
|
+
color-scheme: dark;
|
|
338
|
+
}
|
package/app/data.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "year": "2020", "make": "Toyota", "model": "Celica", "condition": "fair", "price": "35000" },
|
|
3
|
+
{ "year": "2020", "make": "Ford", "model": "Mondeo", "condition":"excellent", "price": "32000" },
|
|
4
|
+
{ "year": "2020", "make": "Porsche", "model": "Boxter", "condition": "good", "price": "72000" },
|
|
5
|
+
{ "year": "2020", "make": "BMW", "model": "3-series", "condition": "fair", "price": "45000" },
|
|
6
|
+
{ "year": "2020", "make": "Mercedes", "model": "GLC300", "condition": "good","price": "53000" },
|
|
7
|
+
{ "year": "2020", "make": "Honda", "model": "Civic", "condition": "poor", "price": "22000" },
|
|
8
|
+
{ "year": "2020", "make": "Honda", "model": "Accord", "condition": "poor", "price": "32000" },
|
|
9
|
+
{ "year": "2020", "make": "Ford", "model": "Taurus", "condition":"excellent","price": "19000" },
|
|
10
|
+
{ "year": "2020", "make": "Hyundai", "model": "Elantra", "condition":"good","price": "22000" },
|
|
11
|
+
{ "year": "2020", "make": "Toyota", "model": "Celica", "condition":"poor","price": "5000" },
|
|
12
|
+
{ "year": "2020", "make": "Ford", "model": "Mondeo", "condition":"good","price": "25000" },
|
|
13
|
+
{ "year": "2020", "make": "Porsche", "model": "Boxter", "condition":"good","price": "99000" },
|
|
14
|
+
{ "year": "2020", "make": "BMW", "model": "3-series", "condition":"poor","price": "32000" },
|
|
15
|
+
{ "year": "2020", "make": "Mercedes", "model": "GLC300", "condition":"excellent","price": "35000" },
|
|
16
|
+
{ "year": "2011", "make": "Honda", "model": "Civic", "condition":"good","price": "9000" },
|
|
17
|
+
{ "year": "2020", "make": "Honda", "model": "Accord", "condition":"good","price": "34000" },
|
|
18
|
+
{ "year": "1990", "make": "Ford", "model": "Taurus", "condition":"excellent","price": "900" },
|
|
19
|
+
{ "year": "2020", "make": "Hyundai", "model": "Elantra", "condition":"fair","price": "3000" },
|
|
20
|
+
{ "year": "2020", "make": "BMW", "model": "2002", "condition":"excellent","price": "88001" },
|
|
21
|
+
{ "year": "2023", "make": "Hyundai", "model": "Santa Fe", "condition":"excellent","price": "" }
|
|
22
|
+
]
|
package/app/grid-basic.js
CHANGED
|
@@ -1,70 +1,78 @@
|
|
|
1
|
-
// specify the columns
|
|
2
|
-
const columnDefs = [
|
|
3
|
-
{ field: "year", pinned: "left"},
|
|
4
|
-
{ field: "make", rowGroup: false, pinned: "left" },
|
|
5
|
-
{ field: "model", filter: true },
|
|
6
|
-
{ field: "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
gridOptions.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
1
|
+
// specify the columns
|
|
2
|
+
const columnDefs = [
|
|
3
|
+
{ field: "year", pinned: "left" },
|
|
4
|
+
{ field: "make", rowGroup: false, pinned: "left" },
|
|
5
|
+
{ field: "model", filter: true },
|
|
6
|
+
{ field: "condition",filter: "agTextColumnFilter", filterParams: { numAlwaysVisibleConditions: 2, defaultJoinOperator: 'OR', } },
|
|
7
|
+
{
|
|
8
|
+
field: "price",
|
|
9
|
+
pinned: "right",
|
|
10
|
+
floatingFilter: false,
|
|
11
|
+
sortable: false,
|
|
12
|
+
editable: true,
|
|
13
|
+
cellEditor: "agTextCellEditor",
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
const autoGroupColumnDef = {
|
|
18
|
+
headerName: "Model",
|
|
19
|
+
field: "model",
|
|
20
|
+
cellRenderer: "agGroupCellRenderer",
|
|
21
|
+
cellRendererParams: {
|
|
22
|
+
checkbox: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// let the grid know which columns to use
|
|
27
|
+
const gridOptions = {
|
|
28
|
+
defaultColDef: {
|
|
29
|
+
sortable: true,
|
|
30
|
+
filter: "agTextColumnFilter",
|
|
31
|
+
floatingFilter: true,
|
|
32
|
+
filterParams: {
|
|
33
|
+
buttons: ["reset", "apply"],
|
|
34
|
+
debounceMs: 200,
|
|
35
|
+
},
|
|
36
|
+
animateRows: true,
|
|
37
|
+
resizable: true,
|
|
38
|
+
},
|
|
39
|
+
autoGroupColumnDef: autoGroupColumnDef,
|
|
40
|
+
groupSelectsChildren: true,
|
|
41
|
+
columnDefs: columnDefs,
|
|
42
|
+
rowSelection: "multiple",
|
|
43
|
+
domLayout: "normal",
|
|
44
|
+
pagination: true,
|
|
45
|
+
paginationPageSize: 5,
|
|
46
|
+
sideBar: true,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// lookup the container we want the Grid to use
|
|
50
|
+
const eGridDiv = document.querySelector("#myGrid");
|
|
51
|
+
|
|
52
|
+
// create the grid passing in the div to use together with the columns & data we want to use
|
|
53
|
+
new agGrid.Grid(eGridDiv, gridOptions);
|
|
54
|
+
|
|
55
|
+
// Grab the grid data from the supplied API endpoint
|
|
56
|
+
agGrid
|
|
57
|
+
.simpleHttpRequest({
|
|
58
|
+
url: "./data.json",
|
|
59
|
+
})
|
|
60
|
+
.then((data) => {
|
|
61
|
+
gridOptions.api.setRowData(data);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
function autoSizeAllColumns() {
|
|
65
|
+
var allColumnIds = [];
|
|
66
|
+
gridOptions.columnApi.getAllColumns().forEach(function (column) {
|
|
67
|
+
allColumnIds.push(column.colId);
|
|
68
|
+
});
|
|
69
|
+
gridOptions.columnApi.autoSizeColumns(allColumnIds);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// If the Cypress test is running, ensure all columns fit within the window
|
|
73
|
+
if (window.Cypress) {
|
|
74
|
+
gridOptions.api.sizeColumnsToFit();
|
|
75
|
+
} else {
|
|
76
|
+
// Otherwise auto-size columns the way we wish to view the grid in production.
|
|
77
|
+
autoSizeAllColumns();
|
|
78
|
+
}
|