-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
468 lines (468 loc) · 14.1 KB
/
package.json
1
2
3
4
5
6
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
{
"name": "vscode-edit-csv",
"displayName": "Edit csv",
"description": "extension to edit csv files with a table ui",
"version": "0.6.3",
"license": "MIT",
"icon": "images/logo.png",
"publisher": "janisdd",
"engines": {
"vscode": "^1.38.0"
},
"categories": [
"Other"
],
"keywords": [
"YAML"
],
"preview": true,
"repository": {
"type": "git",
"url": "https://github.com/janisdd/vscode-edit-csv.git"
},
"bugs": {
"url": "https://github.com/janisdd/vscode-edit-csv/issues"
},
"galleryBanner": {
"color": "#687bff",
"theme": "light"
},
"activationEvents": [
"onCommand:edit-yaml.edit"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "yaml",
"extensions": [
".yaml"
],
"aliases": [
"YAML"
]
},
{
"id": "yml",
"extensions": [
".yml"
],
"aliases": [
"YML"
]
}
],
"commands": [
{
"command": "edit-yaml.edit",
"category": "YAML",
"title": "Edit as table"
},
{
"command": "edit-yaml.goto-source",
"category": "YAML",
"title": "Go to yaml source file"
}
],
"keybindings": [
{
"command": "edit-yaml.edit",
"key": "ctrl+i ctrl+t",
"mac": "cmd+i cmd+t",
"when": "resourceLangId == yaml"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceLangId == yaml",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == yml",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == YAML",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == YML",
"command": "edit-yaml.edit",
"group": "navigation"
}
],
"editor/title": [
{
"when": "editorLangId == yaml && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "editorLangId == yml && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "editorLangId == YAML && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "editorLangId == YML && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
}
],
"editor/title/context": [
{
"when": "resourceLangId == yaml && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == yml && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == YAML && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
},
{
"when": "resourceLangId == YML && resourceScheme != yaml-edit",
"command": "edit-yaml.edit",
"group": "navigation"
}
]
},
"configuration": {
"title": "Edit csv configuration",
"type": "object",
"properties": {
"csv-edit.highlightCsvComments": {
"type": "boolean",
"default": true,
"description": "true: the cell/row color is changed if the first cell is a comment, (might have negative impact on performance e.g. for large data sets), false: no additional highlighting (comments are still treated as comments)"
},
"csv-edit.lastRowEnterBehavior": {
"type": "string",
"default": "default",
"description": "if one edits a cell in the last row and presses enter what the editor should do (default is to jump to the first row in the next column)",
"enum": [
"default",
"createRow"
],
"enumDescriptions": [
"default of handsontable",
"create a new row"
]
},
"csv-edit.lastColumnTabBehavior": {
"type": "string",
"default": "default",
"description": "if one edits a cell in the last column and presses tab what the editor should do (default is to jump to the first row in the first column)",
"enum": [
"default",
"createColumn"
],
"enumDescriptions": [
"default of handsontable",
"create a new column"
]
},
"csv-edit.optionsBarAppearance": {
"type": "string",
"default": "collapsed",
"description": "the appearance of the options bar",
"enum": [
"expanded",
"collapsed"
],
"enumDescriptions": [
"options bar will always start expanded",
"options bar will always start collapsed"
]
},
"csv-edit.readOption_hasHeader": {
"type": "string",
"default": "false",
"description": "whether the first data line is a header line",
"enum": [
"true",
"false"
],
"enumDescriptions": [
"first row is the header row",
"first row is a normal data row"
]
},
"csv-edit.readOption_delimiter": {
"type": "string",
"default": "",
"description": "the delimiter to use, empty string to auto detect"
},
"csv-edit.readOption_comment": {
"type": "string",
"default": "#",
"description": "the string used as comment, empty string to thread every line as data line (no comments)"
},
"csv-edit.readOption_quoteChar": {
"type": "string",
"default": "\"",
"description": "the string used to quote fields",
"maxLength": 1
},
"csv-edit.readOption_escapeChar": {
"type": "string",
"default": "\"",
"description": "the string used to escape the quote character within a field",
"maxLength": 1
},
"csv-edit.writeOption_hasHeader": {
"type": "string",
"default": "false",
"description": "whether the first data line is a header line",
"enum": [
"true",
"false"
],
"enumDescriptions": [
"first row is the header row",
"first row is a normal data row"
]
},
"csv-edit.writeOption_delimiter": {
"type": "string",
"default": "",
"description": "the delimiter to use, empty string to auto detect"
},
"csv-edit.writeOption_comment": {
"type": "string",
"default": "#",
"description": "the string used as comment, empty string to exclude comments"
},
"csv-edit.writeOption_quoteChar": {
"type": "string",
"default": "\"",
"description": "the string used to quote fields",
"maxLength": 1
},
"csv-edit.writeOption_escapeChar": {
"type": "string",
"default": "\"",
"description": "the string used to escape the quote character within a field",
"maxLength": 1
},
"csv-edit.doubleClickColumnHandleForcedWith": {
"type": "number",
"default": "200",
"description": "normally the columns are auto sized, if we click on the handle when it has auto size then its with is set to this value (in px). Useful if we have a very wide column (wider than the screen and quickly want to shrink it)"
},
"csv-edit.openSourceFileAfterApply": {
"type": "boolean",
"default": false,
"description": "true: opens the source file after apply, false: keep the editor displayed"
},
"csv-edit.selectTextAfterBeginEditCell": {
"type": "boolean",
"default": false,
"description": "true: select the text inside the cell (note you can also select the cell and start typings to overwrite the cell value), false: cursor starts at the end of the text"
},
"csv-edit.quoteAllFields": {
"type": "boolean",
"default": false,
"description": "true: to always quote fields, false: not (only if necessary, and respect retainQuoteInformation)"
},
"csv-edit.quoteEmptyOrNullFields": {
"type": "string",
"default": "false",
"description": "whether null, undefined and empty values should be quoted (takes precedence over quoteAllFields)",
"enum": [
"true",
"false"
],
"enumDescriptions": [
"quote null, undefined and empty values",
"do not quote null, undefined and empty values"
]
},
"csv-edit.initiallyHideComments": {
"type": "boolean",
"default": false,
"description": "true: Initially hides rows with comments found in the table, false: not hide rows with comments"
},
"csv-edit.enableWrapping": {
"type": "boolean",
"default": true,
"description": "true: cell content is wrapped and the row height is changed, false: no wrapping (content is hidden)"
},
"csv-edit.initialColumnWidth": {
"type": "integer",
"default": 0,
"description": "the initial width for columns, 0 or a negative number will disable this and auto column size is used on initial render"
},
"csv-edit.retainQuoteInformation": {
"type": "boolean",
"default": true,
"description": "true: information about quoted fields are retained during parsing (for more details see readme), false: information about quoted field is discarded"
},
"csv-edit.newColumnQuoteInformationIsQuoted": {
"type": "boolean",
"default": false,
"description": "true: new columns will get true as quote information (also for added columns via expanding), false: new columns will get false as quote information"
},
"csv-edit.disableBorders": {
"type": "boolean",
"default": false,
"description": "true: borders are set to 0 (in css). This helps if you encounter some border color issues, false: normal borders"
},
"csv-edit.initiallyFixedRowsTop": {
"type": "number",
"default": 0,
"description": "the first X rows are pinned so they will stay in view even if you scroll"
},
"csv-edit.initiallyFixedColumnsLeft": {
"type": "number",
"default": 0,
"description": "the first X columns are pinned so they will stay in view even if you scroll"
},
"csv-edit.fontSizeInPx": {
"type": "number",
"default": 16,
"description": "the font size in px, 0 or -x to sync the font size with the editor, +x to overwrite the font size (changing will rerender the table)"
},
"csv-edit.showColumnHeaderNamesWithLettersLikeExcel": {
"type": "boolean",
"default": false,
"description": "true: show column names with letters e.g. A, B, ..., Z (like Excel), false: use numbers for column names e.g. 1, 2, ..."
},
"csv-edit.shouldWatchCsvSourceFile": {
"type": "boolean",
"default": true,
"description": "true: the source csv file is watched for changes. If changes happen the user is notified (maybe the table is automatically reloaded when the table has no changes). false: not watched the source csv file"
},
"csv-edit.sidePanelAppearance": {
"type": "string",
"default": "collapsed",
"description": "the appearance of the side panel",
"enum": [
"expanded",
"collapsed"
],
"enumDescriptions": [
"side panel will always start expanded",
"side panel will always start collapsed"
]
},
"csv-edit.initialNumbersStyle": {
"type": "string",
"default": "en",
"description": "the initial numbers style for the side panel stats",
"enum": [
"en",
"non-en"
],
"enumDescriptions": [
"decimal separator is '.' e.g. 3.14 Optional thousand separator: ',' e.g. 1,003.14",
"decimal separator is ',' e.g. 3,14 Optional thousand separator: '.' e.g. 1.003,14"
]
},
"csv-edit.insertRowBehavior": {
"type": "string",
"default": "keepRowKeepColumn",
"description": "which cell should be focused or selected when a new row is inserted (above or below)",
"enum": [
"focusFirstCellNewRow",
"keepRowKeepColumn"
],
"enumDescriptions": [
"focus the first cell in the new row",
"keep the currently selected cell"
]
},
"csv-edit.insertColBehavior": {
"type": "string",
"default": "keepRowKeepColumn",
"description": "which cell should be focused or selected when a new column is inserted (left or right)",
"enum": [
"keepRowFocusNewColumn",
"keepRowKeepColumn"
],
"enumDescriptions": [
"we stay in the same row but the cell in the new column is selected",
"keep the currently selected cell"
]
},
"csv-edit.initiallyIsInReadonlyMode": {
"type": "boolean",
"default": false,
"description": "true: table starts in readonly mode, false: normal edit mode"
}
}
}
},
"scripts": {
"preinstall": "npx npm-force-resolutions",
"vscode:prepublish": "npm audit && npm run compile && npm run promptUp",
"compile": "tsc -p ./ && tsc -p ./csvEditorHtml/tsconfig.json",
"watch": "tsc -watch -p ./",
"package": "vsce package",
"test": "npm run compile && node ./node_modules/vscode-test",
"test2": "echo 'to run the tests compile and then go to the debug tab and start Extension Tests'",
"testci": "tsc -p ./ && node ./out/test/runTest.js",
"lint": "npx tslint -p . && npx tslint -p ./csvEditorHtml/tsconfig.json",
"promptUp": "node ./promtUploadbuild.js",
"buildBrowser": "node ./csvEditorHtml/out/browser/build/build.js"
},
"dependencies": {
"@types/jquery": "^3.5.6",
"chokidar": "3.4.2",
"jquery": "^3.6.0",
"jsonschema": "^1.4.0",
"node-fetch": "^3.0.0",
"require-from-url": "^3.1.3",
"requirejs": "^2.3.6",
"sync-fetch": "^0.3.1",
"yaml": "2.0.0-8",
"yawn-yaml": "^1.5.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@sweetalert2/theme-dark": "^3.2.0",
"@types/big.js": "^4.0.5",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.2",
"@types/jsdom": "11.0.4",
"@types/mocha": "^2.2.48",
"@types/mousetrap": "^1.6.3",
"@types/node": "^8.10.25",
"@types/papaparse": "4.5.6",
"@types/readline-sync": "^1.4.3",
"@types/vscode": "^1.38.0",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"bulma-toast": "^2.0.3",
"chardet": "^1.2.1",
"eslint": "^8.1.0",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"iconv-lite": "^0.6.2",
"jsdom": "16.4.0",
"mocha": "^9.1.2",
"nyc": "^15.1.0",
"readline-sync": "^1.4.10",
"remap-istanbul": "^0.13.0",
"source-map-support": "^0.5.21",
"sweetalert2": "^9.17.2",
"toaster-js": "^2.2.3",
"ts-node": "^10.4.0",
"tslint": "^5.8.0",
"typescript": "^4.4.4",
"vscode-test": "^1.3.0"
}
}