@hrforte/react-pivottable 1.0.0 → 1.0.1

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.
@@ -0,0 +1,377 @@
1
+ .pvtUi {
2
+ color: #2a3f5f;
3
+ font-family: Verdana;
4
+ border-collapse: collapse;
5
+ }
6
+ .pvtUi select {
7
+ user-select: none;
8
+ -webkit-user-select: none;
9
+ -moz-user-select: none;
10
+ -khtml-user-select: none;
11
+ -ms-user-select: none;
12
+ }
13
+
14
+ .pvtUi td.pvtOutput {
15
+ vertical-align: top;
16
+ }
17
+
18
+ table.pvtTable {
19
+ font-size: 8pt;
20
+ text-align: left;
21
+ border-collapse: collapse;
22
+ margin-top: 3px;
23
+ margin-left: 3px;
24
+ font-family: Verdana;
25
+ }
26
+ table.pvtTable thead tr th,
27
+ table.pvtTable tbody tr th {
28
+ background-color: #ebf0f8;
29
+ border: 1px solid #c8d4e3;
30
+ font-size: 8pt;
31
+ padding: 5px;
32
+ }
33
+
34
+ table.pvtTable .pvtColLabel {
35
+ text-align: center;
36
+ }
37
+ table.pvtTable .pvtTotalLabel {
38
+ text-align: right;
39
+ }
40
+
41
+ table.pvtTable tbody tr td {
42
+ color: #2a3f5f;
43
+ padding: 5px;
44
+ background-color: #fff;
45
+ border: 1px solid #c8d4e3;
46
+ vertical-align: top;
47
+ text-align: right;
48
+ }
49
+
50
+ .pvtTotal,
51
+ .pvtGrandTotal {
52
+ font-weight: bold;
53
+ }
54
+
55
+ .pvtRowOrder,
56
+ .pvtColOrder {
57
+ cursor: pointer;
58
+ width: 15px;
59
+ margin-left: 5px;
60
+ display: inline-block;
61
+ user-select: none;
62
+ text-decoration: none !important;
63
+ -webkit-user-select: none;
64
+ -moz-user-select: none;
65
+ -khtml-user-select: none;
66
+ -ms-user-select: none;
67
+ }
68
+
69
+ .pvtAxisContainer,
70
+ .pvtVals {
71
+ border: 1px solid #a2b1c6;
72
+ background: #f2f5fa;
73
+ padding: 5px;
74
+ min-width: 20px;
75
+ min-height: 20px;
76
+ }
77
+
78
+ .pvtRenderers {
79
+ padding-left: 5px;
80
+ user-select: none;
81
+ }
82
+
83
+ .pvtDropdown {
84
+ display: inline-block;
85
+ position: relative;
86
+ -webkit-user-select: none;
87
+ -moz-user-select: none;
88
+ -khtml-user-select: none;
89
+ -ms-user-select: none;
90
+ margin: 3px;
91
+ }
92
+
93
+ .pvtDropdownIcon {
94
+ float: right;
95
+ color: #a2b1c6;
96
+ }
97
+ .pvtDropdownCurrent {
98
+ text-align: left;
99
+ border: 1px solid #a2b1c6;
100
+ border-radius: 4px;
101
+ display: inline-block;
102
+ position: relative;
103
+ width: 210px;
104
+ box-sizing: border-box;
105
+ background: white;
106
+ }
107
+
108
+ .pvtDropdownCurrentOpen {
109
+ border-radius: 4px 4px 0 0;
110
+ }
111
+
112
+ .pvtDropdownMenu {
113
+ background: white;
114
+ position: absolute;
115
+ width: 100%;
116
+ margin-top: -1px;
117
+ border-radius: 0 0 4px 4px;
118
+ border: 1px solid #a2b1c6;
119
+ border-top: 1px solid #dfe8f3;
120
+ box-sizing: border-box;
121
+ }
122
+
123
+ .pvtDropdownChecklist {
124
+ max-height: 240px;
125
+ overflow-y: auto;
126
+ }
127
+
128
+ .pvtDropdownChecklistItem {
129
+ display: flex;
130
+ align-items: center;
131
+ gap: 6px;
132
+ }
133
+
134
+ .pvtDropdownChecklistItem input {
135
+ margin: 0;
136
+ }
137
+
138
+ .pvtAggregatorRow {
139
+ display: flex;
140
+ flex-wrap: wrap;
141
+ align-items: center;
142
+ gap: 6px;
143
+ margin-bottom: 6px;
144
+ }
145
+
146
+ .pvtAggregatorVals .pvtDropdown {
147
+ margin: 3px 3px 0 0;
148
+ }
149
+
150
+ .pvtAddAggregator {
151
+ width: 100%;
152
+ margin-top: 4px;
153
+ }
154
+
155
+ .pvtRemoveAggregator {
156
+ margin-left: auto;
157
+ }
158
+
159
+ .pvtDropdownValue {
160
+ padding: 2px 5px;
161
+ font-size: 12px;
162
+ text-align: left;
163
+ }
164
+ .pvtDropdownActiveValue {
165
+ background: #ebf0f8;
166
+ }
167
+
168
+ .pvtVals {
169
+ text-align: center;
170
+ white-space: nowrap;
171
+ vertical-align: top;
172
+ padding-bottom: 12px;
173
+ }
174
+
175
+ .pvtRows {
176
+ height: 35px;
177
+ }
178
+
179
+ .pvtAxisContainer li {
180
+ padding: 8px 6px;
181
+ list-style-type: none;
182
+ cursor: move;
183
+ }
184
+ .pvtAxisContainer li.pvtPlaceholder {
185
+ -webkit-border-radius: 5px;
186
+ padding: 3px 15px;
187
+ -moz-border-radius: 5px;
188
+ border-radius: 5px;
189
+ border: 1px dashed #a2b1c6;
190
+ }
191
+ .pvtAxisContainer li.pvtPlaceholder span.pvtAttr {
192
+ display: none;
193
+ }
194
+
195
+ .pvtAxisContainer li span.pvtAttr {
196
+ -webkit-text-size-adjust: 100%;
197
+ background: #f3f6fa;
198
+ border: 1px solid #c8d4e3;
199
+ padding: 2px 5px;
200
+ white-space: nowrap;
201
+ -webkit-border-radius: 5px;
202
+ -moz-border-radius: 5px;
203
+ border-radius: 5px;
204
+ user-select: none;
205
+ -webkit-user-select: none;
206
+ -moz-user-select: none;
207
+ -khtml-user-select: none;
208
+ -ms-user-select: none;
209
+ }
210
+
211
+ .pvtTriangle {
212
+ cursor: pointer;
213
+ color: #506784;
214
+ }
215
+
216
+ .pvtHorizList li {
217
+ display: inline-block;
218
+ }
219
+ .pvtVertList {
220
+ vertical-align: top;
221
+ }
222
+
223
+ .pvtFilteredAttribute {
224
+ font-style: italic;
225
+ }
226
+
227
+ .sortable-chosen .pvtFilterBox {
228
+ display: none !important;
229
+ }
230
+
231
+ .pvtCloseX {
232
+ position: absolute;
233
+ right: 5px;
234
+ top: 5px;
235
+ font-size: 18px;
236
+ cursor: pointer;
237
+ text-decoration: none !important;
238
+ }
239
+
240
+ .pvtDragHandle {
241
+ position: absolute;
242
+ left: 5px;
243
+ top: 5px;
244
+ font-size: 18px;
245
+ cursor: move;
246
+ color: #a2b1c6;
247
+ }
248
+
249
+ .pvtButton {
250
+ color: #506784;
251
+ border-radius: 5px;
252
+ padding: 3px 6px;
253
+ background: #f2f5fa;
254
+ border: 1px solid;
255
+ border-color: #c8d4e3;
256
+ font-size: 14px;
257
+ margin: 3px;
258
+ transition: 0.34s all cubic-bezier(0.19, 1, 0.22, 1);
259
+ text-decoration: none !important;
260
+ }
261
+
262
+ .pvtButton:hover {
263
+ background: #e2e8f0;
264
+ border-color: #a2b1c6;
265
+ }
266
+
267
+ .pvtButton:active {
268
+ background: #d1dae6;
269
+ }
270
+
271
+ .pvtFilterBox input {
272
+ border: 1px solid #c8d4e3;
273
+ border-radius: 5px;
274
+ color: #506784;
275
+ padding: 0 3px;
276
+ font-size: 14px;
277
+ }
278
+
279
+ .pvtFilterBox input:focus {
280
+ border-color: #119dff;
281
+ outline: none;
282
+ }
283
+
284
+ .pvtFilterBox {
285
+ z-index: 100;
286
+ width: 300px;
287
+ border: 1px solid #506784;
288
+ background-color: #fff;
289
+ position: absolute;
290
+ text-align: center;
291
+ user-select: none;
292
+ min-height: 100px;
293
+ -webkit-user-select: none;
294
+ -moz-user-select: none;
295
+ -khtml-user-select: none;
296
+ -ms-user-select: none;
297
+ }
298
+
299
+ .pvtFilterBox h4 {
300
+ margin: 15px;
301
+ }
302
+ .pvtFilterBox p {
303
+ margin: 10px auto;
304
+ }
305
+ .pvtFilterBox button {
306
+ color: #2a3f5f;
307
+ }
308
+ .pvtFilterBox input[type='text'] {
309
+ width: 230px;
310
+ color: #2a3f5f;
311
+ margin-bottom: 5px;
312
+ }
313
+
314
+ .pvtCheckContainer {
315
+ text-align: left;
316
+ font-size: 14px;
317
+ white-space: nowrap;
318
+ overflow-y: scroll;
319
+ width: 100%;
320
+ max-height: 30vh;
321
+ border-top: 1px solid #dfe8f3;
322
+ }
323
+
324
+ .pvtCheckContainer p {
325
+ margin: 0;
326
+ margin-bottom: 1px;
327
+ padding: 3px;
328
+ cursor: default;
329
+ }
330
+
331
+ .pvtCheckContainer p.selected {
332
+ background: #ebf0f8;
333
+ }
334
+
335
+ .pvtOnly {
336
+ display: none;
337
+ width: 35px;
338
+ float: left;
339
+ font-size: 12px;
340
+ padding-left: 5px;
341
+ cursor: pointer;
342
+ }
343
+
344
+ .pvtOnlySpacer {
345
+ display: block;
346
+ width: 35px;
347
+ float: left;
348
+ }
349
+
350
+ .pvtCheckContainer p:hover .pvtOnly {
351
+ display: block;
352
+ }
353
+ .pvtCheckContainer p:hover .pvtOnlySpacer {
354
+ display: none;
355
+ }
356
+
357
+ .pvtRendererArea {
358
+ padding: 5px;
359
+ }
360
+
361
+ .pvtSortButton {
362
+ all: unset;
363
+ cursor: pointer;
364
+ }
365
+
366
+
367
+ .pvtAxisLabel {
368
+ position: relative;
369
+ }
370
+
371
+ .pvtAxisLabel .pvtSortButton {
372
+ opacity: 0.6;
373
+ }
374
+
375
+ .pvtAxisLabel:hover .pvtSortButton {
376
+ opacity: 1;
377
+ }
package/package.json CHANGED
@@ -1,24 +1,12 @@
1
1
  {
2
2
  "name": "@hrforte/react-pivottable",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "description": "A React-based pivot table",
8
- "main": "PivotTableUI.js",
9
- "files": [
10
- "PivotTable.js",
11
- "PivotTableUI.js",
12
- "PlotlyRenderers.js",
13
- "TableRenderers.js",
14
- "Utilities.js",
15
- "PivotTable.js.map",
16
- "PivotTableUI.js.map",
17
- "PlotlyRenderers.js.map",
18
- "TableRenderers.js.map",
19
- "Utilities.js.map",
20
- "pivottable.css"
21
- ],
8
+ "main": "dist/PivotTableUI.js",
9
+ "files": ["dist"],
22
10
  "scripts": {
23
11
  "start": "webpack-dev-server",
24
12
  "test:eslint": "eslint src/*.js* && echo 'eslint: \\033[0;32m'PASS'\\033[0m'",
@@ -28,7 +16,7 @@
28
16
  "test:jest": "jest",
29
17
  "test": "npm run test:eslint && npm run test:prettier && npm run test:jest",
30
18
  "clean": "rm -rf __tests__ PivotTable.js* PivotTableUI.js* PlotlyRenderers.js* TableRenderers.js* Utilities.js* pivottable.css",
31
- "build": "npm run clean && cp src/pivottable.css . && babel src --out-dir=. --source-maps --presets=env,react --plugins babel-plugin-add-module-exports",
19
+ "build": "npm run clean && mkdir -p dist && cp src/pivottable.css dist/ && babel src --out-dir=dist --source-maps --presets=env,react --plugins babel-plugin-add-module-exports",
32
20
  "doPublish": "npm run build && npm publish",
33
21
  "postpublish": "npm run clean",
34
22
  "deploy": "webpack -p && mv bundle.js examples && cd examples && git init && git add . && git commit -m build && git push --force git@github.com:plotly/react-pivottable.git master:gh-pages && rm -rf .git bundle.js"