xlport 0.3.3 → 0.4.0
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/.vscode/launch.json +15 -0
- package/dist/lib/client.d.ts +4 -2
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +101 -200
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/export.types.d.ts +2 -2
- package/dist/lib/export.types.d.ts.map +1 -1
- package/dist/lib/export.types.js +1 -1
- package/dist/lib/export.types.js.map +1 -1
- package/dist/lib/import.types.d.ts +3 -3
- package/dist/lib/import.types.d.ts.map +1 -1
- package/dist/lib/shared.types.d.ts +1 -1
- package/dist/lib/shared.types.d.ts.map +1 -1
- package/package.json +14 -11
- package/tests/client/additional/data-validation/expected.xlsx +0 -0
- package/tests/client/additional/data-validation/request.json +23 -0
- package/tests/client/additional/data-validation/result.xlsx +0 -0
- package/tests/client/additional/data-validation/template.xlsx +0 -0
- package/tests/client/additional/lookup/expected.xlsx +0 -0
- package/tests/client/additional/lookup/request.json +23 -0
- package/tests/client/additional/lookup/result.xlsx +0 -0
- package/tests/client/client.e2e.spec.ts +5 -5
- package/tests/client/export/1object/expected.xlsx +0 -0
- package/tests/client/export/1table/expected.xlsx +0 -0
- package/tests/client/export/1table/request.json +1 -1
- package/tests/client/export/1table/template.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/expected.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/request.json +2 -0
- package/tests/client/export/v2-formats/expected.xlsx +0 -0
- package/tests/client/export/v2-formats/template.xlsx +0 -0
- package/tests/client/import/1object/expected.json +1 -10
- package/tests/client/import/1object/workbook.xlsx +0 -0
- package/tests/client/import/1table/expected.json +1 -39
- package/tests/client/import/1table/workbook.xlsx +0 -0
- package/tests/client/import/1table-10col-100rows/expected.json +1 -1306
- package/tests/client/import/1table-10col-100rows/workbook.xlsx +0 -0
- package/tests/client/import/v2importMultipleSheets/expected.json +1 -0
- package/tests/client/import/v2importMultipleSheets/workbook.xlsx +0 -0
- package/tests/tsconfig.json +2 -1
- package/tsconfig.json +4 -4
- package/dist/client.d.ts +0 -23
- package/dist/client.js +0 -98
- package/dist/client.js.map +0 -1
- package/dist/export.types.d.ts +0 -53
- package/dist/export.types.js +0 -3
- package/dist/export.types.js.map +0 -1
- package/dist/import.types.d.ts +0 -25
- package/dist/import.types.js +0 -11
- package/dist/import.types.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/shared.types.d.ts +0 -1
- package/dist/shared.types.js +0 -3
- package/dist/shared.types.js.map +0 -1
- package/dist/tests/client/client.e2e.spec.d.ts +0 -1
- package/dist/tests/client/client.e2e.spec.js +0 -109
- package/dist/tests/client/client.e2e.spec.js.map +0 -1
- package/dist/tests/client/export/simple-export/request.json +0 -6
- package/dist/tests/client/import/1object/expected.json +0 -10
- package/dist/tests/client/import/1table/expected.json +0 -39
- package/dist/tests/client/import/1table-10col-100rows/expected.json +0 -1306
- package/dist/tests/client/import/multipleObjects/expected.json +0 -20
- package/dist/tests/client/import/multipleObjectsAndTables/expected.json +0 -84
- package/dist/tests/types/export/column-formatting.json +0 -151
- package/dist/tests/types/export/date.json +0 -6
- package/dist/tests/types/export/days.json +0 -7
- package/dist/tests/types/export/formats.json +0 -169
- package/dist/tests/types/export/formulas-and-lookups.json +0 -9
- package/dist/tests/types/export/multi-column-with-fixed-column.json +0 -24
- package/dist/tests/types/export/multi-sheet-column-fixed-topleft.json +0 -59
- package/dist/tests/types/export/multi-sheet-column-fixed.json +0 -59
- package/dist/tests/types/export/multi-sheet-column-simple-dash.json +0 -97
- package/dist/tests/types/export/multi-sheet-column-simple.json +0 -68
- package/dist/tests/types/export/multi-sheet-column.json +0 -68
- package/dist/tests/types/export/multi-sheet-simple.json +0 -41
- package/dist/tests/types/export/multiple-objects-and-tables.json +0 -83
- package/dist/tests/types/export/multiple-objects.json +0 -20
- package/dist/tests/types/export/multiple-tables.json +0 -88
- package/dist/tests/types/export/object.json +0 -11
- package/dist/tests/types/export/query-table-simple.json +0 -12
- package/dist/tests/types/export/query-table.json +0 -27
- package/dist/tests/types/export/sheets.json +0 -6
- package/dist/tests/types/export/table-with-calculations.json +0 -27
- package/dist/tests/types/export/table.json +0 -40
- package/dist/tests/types/export/utc.json +0 -7
- package/dist/tests/types/export.test.d.ts +0 -26
- package/dist/tests/types/export.test.js +0 -48
- package/dist/tests/types/export.test.js.map +0 -1
- package/dist/tests/types/import/large-table.json +0 -1
- package/dist/tests/types/import/multisheet.json +0 -1
- package/dist/tests/types/import/object.json +0 -1
- package/dist/tests/types/import/table.json +0 -1
- package/dist/tests/types/import.test.d.ts +0 -5
- package/dist/tests/types/import.test.js +0 -12
- package/dist/tests/types/import.test.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/tests/client/export/1table/test.xlsx +0 -0
- package/tests/client/export/formats/expected.xlsx +0 -0
- package/tests/client/export/formats/template.xlsx +0 -0
- package/tests/client/export/secondXlPort2Test/~$expected.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/~$expected.xlsx +0 -0
- package/tests/client/export/thirdXlPort2Test/~$template.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/~$expected.xlsx +0 -0
- package/tests/client/export/v2-column-formatting/~$template.xlsx +0 -0
- package/tests/client/import/1object/Source.xlsx +0 -0
- package/tests/client/import/1object/data.xlsx +0 -0
- package/tests/client/import/1object/request.json +0 -10
- package/tests/client/import/1table/Source.xlsx +0 -0
- package/tests/client/import/1table/data.xlsx +0 -0
- package/tests/client/import/1table/request.json +0 -15
- package/tests/client/import/1table-10col-100rows/Source.xlsx +0 -0
- package/tests/client/import/1table-10col-100rows/data.xlsx +0 -0
- package/tests/client/import/1table-10col-100rows/request.json +0 -17
- /package/tests/client/{export/lookup/lookup.xlsx → additional/lookup/template.xlsx} +0 -0
- /package/tests/client/export/{formats → v2-formats}/request.json +0 -0
- /package/tests/client/import/multipleObjects/{Source.xlsx → workbook.xlsx} +0 -0
- /package/tests/client/import/multipleObjectsAndTables/{Source.xlsx → workbook.xlsx} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"properties": {
|
|
3
|
-
"Boolean": true,
|
|
4
|
-
"CompanyBoolean": false,
|
|
5
|
-
"CompanyFloat": 2141.4,
|
|
6
|
-
"CompanyId": "cid1",
|
|
7
|
-
"CompanyInteger": 252454,
|
|
8
|
-
"CompanyLabel": "Company Name",
|
|
9
|
-
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
-
"CompnayId": "cid1",
|
|
11
|
-
"Float": -143242.25,
|
|
12
|
-
"HierarchyId": "hid1",
|
|
13
|
-
"HierarchyLabel": "Hierarchy Name",
|
|
14
|
-
"Integer": 114325352,
|
|
15
|
-
"LastUpdated": "2019-01-01T00:00:00.000Z",
|
|
16
|
-
"ProjectId": "pid1",
|
|
17
|
-
"ProjectLabel": "Project Name",
|
|
18
|
-
"RootId": "elid1"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"properties": {
|
|
3
|
-
"Boolean": true,
|
|
4
|
-
"CompanyBoolean": false,
|
|
5
|
-
"CompanyFloat": 2141.4,
|
|
6
|
-
"CompanyId": "cid1",
|
|
7
|
-
"CompanyInteger": 252454,
|
|
8
|
-
"CompanyLabel": "Company Name",
|
|
9
|
-
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
-
"Float": -143242.25,
|
|
11
|
-
"HierarchyId": "hid1",
|
|
12
|
-
"HierarchyLabel": "Hierarchy Name",
|
|
13
|
-
"Integer": 114325352,
|
|
14
|
-
"LastUpdated": "2019-01-01T00:00:00.000Z",
|
|
15
|
-
"ProjectId": "pid1",
|
|
16
|
-
"ProjectLabel": "Project Name",
|
|
17
|
-
"RootId": "elid1"
|
|
18
|
-
},
|
|
19
|
-
"tables": {
|
|
20
|
-
"Initiatives": [
|
|
21
|
-
{
|
|
22
|
-
"Id": "uuidInitiative1",
|
|
23
|
-
"Name": "Initiative 1",
|
|
24
|
-
"StatusId": "uuidStatus1",
|
|
25
|
-
"SavingsPotential": 123.3,
|
|
26
|
-
"Achievement": 0.12,
|
|
27
|
-
"IsComplete": false,
|
|
28
|
-
"Date": "2018-04-11T00:00:00.000Z",
|
|
29
|
-
"Integer": 1,
|
|
30
|
-
"Calculated column": 146.727
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"Id": "uuidInitiative2",
|
|
34
|
-
"Name": "Initiative 2",
|
|
35
|
-
"StatusId": "uuidStatus2",
|
|
36
|
-
"SavingsPotential": null,
|
|
37
|
-
"Achievement": 0,
|
|
38
|
-
"IsComplete": true,
|
|
39
|
-
"Date": "1966-05-01T00:00:00.000Z",
|
|
40
|
-
"Integer": -246537347,
|
|
41
|
-
"Calculated column": 0
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"Id": "uuidInitiative3",
|
|
45
|
-
"Name": "Initiative 3",
|
|
46
|
-
"StatusId": "uuidStatus3",
|
|
47
|
-
"SavingsPotential": 456,
|
|
48
|
-
"Achievement": 0.2,
|
|
49
|
-
"IsComplete": false,
|
|
50
|
-
"Date": "2020-01-01T00:00:00.000Z",
|
|
51
|
-
"Integer": 1324275242,
|
|
52
|
-
"Calculated column": 542.64
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"Status": [
|
|
56
|
-
{
|
|
57
|
-
"Id": "uuidStatus1",
|
|
58
|
-
"Label": "On track"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"Id": "uuidStatus2",
|
|
62
|
-
"Label": "Some progress"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"Id": "uuidStatus3",
|
|
66
|
-
"Label": "Delayed"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"Persons": [
|
|
70
|
-
{
|
|
71
|
-
"Id": "pid1",
|
|
72
|
-
"LastName": "Bolle"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"Id": "pid2",
|
|
76
|
-
"LastName": "Zwille"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"Id": "pid3",
|
|
80
|
-
"LastName": "Ralle"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"templateId": "template.xlsx",
|
|
3
|
-
"data": {
|
|
4
|
-
"CompanyBoolean": false,
|
|
5
|
-
"CompanyFloat": 2141.4,
|
|
6
|
-
"CompanyId": "cid1",
|
|
7
|
-
"CompanyInteger": 252454,
|
|
8
|
-
"CompanyLabel": "Company Name",
|
|
9
|
-
"CompanyLastUpdated": "2019-02-02T00:00:00.000Z",
|
|
10
|
-
"sheets": [
|
|
11
|
-
{
|
|
12
|
-
"name": "Q1",
|
|
13
|
-
"fromTemplateSheet": "Project",
|
|
14
|
-
"tabColor": "#FF0000",
|
|
15
|
-
"data": {
|
|
16
|
-
"ProjectId": "12345",
|
|
17
|
-
"ProjectLabel": "MyLabel",
|
|
18
|
-
"Integer": 42,
|
|
19
|
-
"Float": 37.005,
|
|
20
|
-
"Boolean": true,
|
|
21
|
-
"LastUpdated": "1982-01-25T00:00:00.000Z",
|
|
22
|
-
"MyProjectList": {
|
|
23
|
-
"columns": [
|
|
24
|
-
{ "name": "Alpha", "fromTemplateColumn": "Action" },
|
|
25
|
-
{ "name": "Beta", "fromTemplateColumn": "Deadline" },
|
|
26
|
-
{ "name": "Gamma", "fromTemplateColumn": "Action" },
|
|
27
|
-
{ "name": "Delta", "fromTemplateColumn": "Owner" },
|
|
28
|
-
{ "name": "TakeTwoShort", "format": "0.0", "fromTemplateColumn": "Owner" },
|
|
29
|
-
{ "name": "TakeTwoLong", "format": "0.000", "fromTemplateColumn": "Owner" }
|
|
30
|
-
],
|
|
31
|
-
"data": [
|
|
32
|
-
{
|
|
33
|
-
"Alpha": "Complete adding tables",
|
|
34
|
-
"Beta": "Add back tables from the template",
|
|
35
|
-
"Gamma": "Markus",
|
|
36
|
-
"Delta": "1",
|
|
37
|
-
"TakeTwoShort": 12.3456,
|
|
38
|
-
"TakeTwoLong": 12.3456
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"Alpha": "Build column magic",
|
|
42
|
-
"Beta": "Create function for moving columns",
|
|
43
|
-
"Gamma": "Milou",
|
|
44
|
-
"Delta": "2",
|
|
45
|
-
"TakeTwoShort": 2.13456,
|
|
46
|
-
"TakeTwoLong": 2.13456
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"Alpha": "Also get import to JSON",
|
|
50
|
-
"Beta": "Take data from Excel to JSON",
|
|
51
|
-
"Gamma": "Amelie",
|
|
52
|
-
"Delta": "3",
|
|
53
|
-
"TakeTwoShort": 6.54321,
|
|
54
|
-
"TakeTwoLong": 6.54321
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"Alpha": "",
|
|
58
|
-
"Beta": "",
|
|
59
|
-
"Gamma": "",
|
|
60
|
-
"Delta": "",
|
|
61
|
-
"TakeTwoShort": 6145.123,
|
|
62
|
-
"TakeTwoLong": 6145.123
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "Q2",
|
|
70
|
-
"fromTemplateSheet": "Project",
|
|
71
|
-
"tabColor": "#00FF00",
|
|
72
|
-
"data": {
|
|
73
|
-
"ProjectLabel": "Label 2",
|
|
74
|
-
"dummy": "dummy value"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "Q3",
|
|
79
|
-
"fromTemplateSheet": "Project",
|
|
80
|
-
"tabColor": "#0000FF",
|
|
81
|
-
"data": {
|
|
82
|
-
"ProjectLabel": "Label X",
|
|
83
|
-
"dummy": "dummy value"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"Initiatives": [
|
|
88
|
-
{
|
|
89
|
-
"Id": "uuidInitiative1",
|
|
90
|
-
"Name": "Initiative 1",
|
|
91
|
-
"StatusId": "uuidStatus1",
|
|
92
|
-
"SavingsPotential": 123.3,
|
|
93
|
-
"Achievement": 0.12,
|
|
94
|
-
"IsComplete": false,
|
|
95
|
-
"Date": "2018-04-11T00:00:00.000Z",
|
|
96
|
-
"Integer": 1,
|
|
97
|
-
"Calculated column": 146.727
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"Id": "uuidInitiative2",
|
|
101
|
-
"Name": "Initiative 2",
|
|
102
|
-
"StatusId": "uuidStatus2",
|
|
103
|
-
"SavingsPotential": null,
|
|
104
|
-
"Achievement": 0,
|
|
105
|
-
"IsComplete": true,
|
|
106
|
-
"Date": "1966-05-01T00:00:00.000Z",
|
|
107
|
-
"Integer": -246537347,
|
|
108
|
-
"Calculated column": 0
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"Id": "uuidInitiative3",
|
|
112
|
-
"Name": "Initiative 3",
|
|
113
|
-
"StatusId": "uuidStatus3",
|
|
114
|
-
"SavingsPotential": 456,
|
|
115
|
-
"Achievement": 0.2,
|
|
116
|
-
"IsComplete": false,
|
|
117
|
-
"Date": "2020-01-01T00:00:00.000Z",
|
|
118
|
-
"Integer": 1324275242,
|
|
119
|
-
"Calculated column": 542.64
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"Status": [
|
|
123
|
-
{
|
|
124
|
-
"Id": "uuidStatus1",
|
|
125
|
-
"Label": "On track"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"Id": "uuidStatus2",
|
|
129
|
-
"Label": "Some progress"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"Id": "uuidStatus3",
|
|
133
|
-
"Label": "Delayed"
|
|
134
|
-
}
|
|
135
|
-
],
|
|
136
|
-
"Persons": [
|
|
137
|
-
{
|
|
138
|
-
"Id": "pid1",
|
|
139
|
-
"LastName": "Bolle"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"Id": "pid2",
|
|
143
|
-
"LastName": "Zwille"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"Id": "pid3",
|
|
147
|
-
"LastName": "Ralle"
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"templateId": "formats/template.xlsx",
|
|
3
|
-
"data": {
|
|
4
|
-
"No2Percent": { "data": 1.234, "format": "0%" },
|
|
5
|
-
"No2Percent1": { "data": 1.234, "format": "0.0%" },
|
|
6
|
-
"No2Percent2": { "data": 1.234, "format": "0.00%" },
|
|
7
|
-
"Percent2Percent2": { "data": 1.234, "format": "0.00%" },
|
|
8
|
-
"No2Numeric": { "data": 1234.567, "format": "#.##0,00" },
|
|
9
|
-
"No2Currency": { "data": 1234.567, "format": "#.##0,00 €" },
|
|
10
|
-
"No2Date": { "data": 44937, "format": "[$-x-sysdate]DDDD, MMMM DD, YYYY" },
|
|
11
|
-
"NumberIndent1": { "data": 1234.567, "indent": 1 },
|
|
12
|
-
"TextIndent2": { "data": "Test", "indent": 2 },
|
|
13
|
-
"ResetIndent": { "data": "Test", "indent": 0 },
|
|
14
|
-
"KeepIndent": { "data": "Test" },
|
|
15
|
-
"No2PercentIndent1": { "data": 1.234, "format": "0%", "indent": 1 },
|
|
16
|
-
"Table": {
|
|
17
|
-
"columns": [
|
|
18
|
-
{ "name": "Name", "fromTemplateColumn": "NoFormat" },
|
|
19
|
-
{
|
|
20
|
-
"name": "No2Percent",
|
|
21
|
-
"fromTemplateColumn": "NoFormat",
|
|
22
|
-
"format": "0%"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "Format2Percent2",
|
|
26
|
-
"fromTemplateColumn": "WithFormat",
|
|
27
|
-
"format": "0.00%"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "No2Numeric",
|
|
31
|
-
"fromTemplateColumn": "NoFormat",
|
|
32
|
-
"format": "#.##0,00"
|
|
33
|
-
},
|
|
34
|
-
{ "name": "No2Indent", "fromTemplateColumn": "NoFormat", "indent": 1 },
|
|
35
|
-
{
|
|
36
|
-
"name": "Indent2Indent2",
|
|
37
|
-
"fromTemplateColumn": "WithIndent",
|
|
38
|
-
"indent": 2
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "No2IndentPercent",
|
|
42
|
-
"fromTemplateColumn": "NoFormat",
|
|
43
|
-
"format": "0%",
|
|
44
|
-
"indent": 2
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"data": [
|
|
48
|
-
{
|
|
49
|
-
"Name": "Column format",
|
|
50
|
-
"No2Percent": 1.234,
|
|
51
|
-
"Format2Percent2": 1.234,
|
|
52
|
-
"No2Numeric": 1234.567,
|
|
53
|
-
"No2Indent": "text",
|
|
54
|
-
"Indent2Indent2": "text",
|
|
55
|
-
"No2IndentPercent": 1.234
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"Name": "Cell format",
|
|
59
|
-
"No2Percent": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
60
|
-
"Format2Percent2": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
61
|
-
"No2Numeric": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
62
|
-
"No2Indent": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
63
|
-
"Indent2Indent2": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
64
|
-
"No2IndentPercent": { "data": 1.234, "format": "0.00%", "indent": 2 }
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"sheets": [
|
|
69
|
-
{
|
|
70
|
-
"name": "Copy-1",
|
|
71
|
-
"fromTemplateSheet": "Template",
|
|
72
|
-
"tabColor": "#FF0000",
|
|
73
|
-
"data": {
|
|
74
|
-
"No2Percent": { "data": 1.234, "format": "0%" },
|
|
75
|
-
"No2Percent1": { "data": 1.234, "format": "0.0%" },
|
|
76
|
-
"No2Percent2": { "data": 1.234, "format": "0.00%" },
|
|
77
|
-
"Percent2Percent2": { "data": 1.234, "format": "0.00%" },
|
|
78
|
-
"No2Numeric": { "data": 1234.567, "format": "#.##0,00" },
|
|
79
|
-
"No2Currency": { "data": 1234.567, "format": "#.##0,00 €" },
|
|
80
|
-
"No2Date": {
|
|
81
|
-
"data": 44937,
|
|
82
|
-
"format": "[$-x-sysdate]DDDD, MMMM DD, YYYY"
|
|
83
|
-
},
|
|
84
|
-
"NumberIndent1": { "data": 1234.567, "indent": 1 },
|
|
85
|
-
"TextIndent2": { "data": "Test", "indent": 2 },
|
|
86
|
-
"ResetIndent": { "data": "Test", "indent": 0 },
|
|
87
|
-
"KeepIndent": { "data": "Test" },
|
|
88
|
-
"No2PercentIndent1": { "data": 1.234, "format": "0%", "indent": 1 },
|
|
89
|
-
"Table2": {
|
|
90
|
-
"columns": [
|
|
91
|
-
{ "name": "Name", "fromTemplateColumn": "NoFormat" },
|
|
92
|
-
{
|
|
93
|
-
"name": "No2Percent",
|
|
94
|
-
"fromTemplateColumn": "NoFormat",
|
|
95
|
-
"format": "0%"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "Format2Percent2",
|
|
99
|
-
"fromTemplateColumn": "WithFormat",
|
|
100
|
-
"format": "0.00%"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"name": "No2Numeric",
|
|
104
|
-
"fromTemplateColumn": "NoFormat",
|
|
105
|
-
"format": "#.##0,00"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "No2Indent",
|
|
109
|
-
"fromTemplateColumn": "NoFormat",
|
|
110
|
-
"indent": 1
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"name": "Indent2Indent2",
|
|
114
|
-
"fromTemplateColumn": "WithIndent",
|
|
115
|
-
"indent": 2
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "No2IndentPercent",
|
|
119
|
-
"fromTemplateColumn": "NoFormat",
|
|
120
|
-
"format": "0%",
|
|
121
|
-
"indent": 2
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"data": [
|
|
125
|
-
{
|
|
126
|
-
"Name": "Column format",
|
|
127
|
-
"No2Percent": 1.234,
|
|
128
|
-
"Format2Percent2": 1.234,
|
|
129
|
-
"No2Numeric": 1234.567,
|
|
130
|
-
"No2Indent": "text",
|
|
131
|
-
"Indent2Indent2": "text",
|
|
132
|
-
"No2IndentPercent": 1.234
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"Name": "Cell format",
|
|
136
|
-
"No2Percent": {
|
|
137
|
-
"data": 1.234,
|
|
138
|
-
"format": "0.00%",
|
|
139
|
-
"indent": 2
|
|
140
|
-
},
|
|
141
|
-
"Format2Percent2": {
|
|
142
|
-
"data": 1.234,
|
|
143
|
-
"format": "0.00%",
|
|
144
|
-
"indent": 2
|
|
145
|
-
},
|
|
146
|
-
"No2Numeric": {
|
|
147
|
-
"data": 1.234,
|
|
148
|
-
"format": "0.00%",
|
|
149
|
-
"indent": 2
|
|
150
|
-
},
|
|
151
|
-
"No2Indent": { "data": 1.234, "format": "0.00%", "indent": 2 },
|
|
152
|
-
"Indent2Indent2": {
|
|
153
|
-
"data": 1.234,
|
|
154
|
-
"format": "0.00%",
|
|
155
|
-
"indent": 2
|
|
156
|
-
},
|
|
157
|
-
"No2IndentPercent": {
|
|
158
|
-
"data": 1.234,
|
|
159
|
-
"format": "0.00%",
|
|
160
|
-
"indent": 2
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"templateId": "multi-column-with-fixed-column/template.xlsx",
|
|
3
|
-
"data": {
|
|
4
|
-
"Data": {
|
|
5
|
-
"columns": [
|
|
6
|
-
{ "name": "Fixed" },
|
|
7
|
-
{ "name": "colCopy1", "fromTemplateColumn": "TemplateColumn" },
|
|
8
|
-
{ "name": "colCopy2", "fromTemplateColumn": "TemplateColumn" }
|
|
9
|
-
],
|
|
10
|
-
"data": [
|
|
11
|
-
{
|
|
12
|
-
"Fixed": "a",
|
|
13
|
-
"colCopy1": "1",
|
|
14
|
-
"colCopy2": "2"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"Fixed": "b",
|
|
18
|
-
"colCopy1": "3",
|
|
19
|
-
"colCopy2": "4"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"templateId": "multi-sheet-column-fixed/template.xlsx",
|
|
3
|
-
"data": {
|
|
4
|
-
"sheets": [
|
|
5
|
-
{
|
|
6
|
-
"name": "Copy1",
|
|
7
|
-
"fromTemplateSheet": "Template",
|
|
8
|
-
"tabColor": "#FF0000",
|
|
9
|
-
"data": {
|
|
10
|
-
"Data": {
|
|
11
|
-
"columns": [
|
|
12
|
-
{ "name": "Fixed" },
|
|
13
|
-
{ "name": "Col1", "fromTemplateColumn": "TemplateColumn" },
|
|
14
|
-
{ "name": "Col2", "fromTemplateColumn": "TemplateColumn" }
|
|
15
|
-
],
|
|
16
|
-
"data": [
|
|
17
|
-
{
|
|
18
|
-
"Fixed": "Fixed",
|
|
19
|
-
"Col1": "1",
|
|
20
|
-
"Col2": "2"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"Fixed": "Fixed",
|
|
24
|
-
"Col1": "3",
|
|
25
|
-
"Col2": "4"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "Copy2",
|
|
33
|
-
"fromTemplateSheet": "Template",
|
|
34
|
-
"tabColor": "#0000FF",
|
|
35
|
-
"data": {
|
|
36
|
-
"Data": {
|
|
37
|
-
"columns": [
|
|
38
|
-
{ "name": "Fixed2", "fromTemplateColumn": "Fixed" },
|
|
39
|
-
{ "name": "Col1", "fromTemplateColumn": "TemplateColumn" },
|
|
40
|
-
{ "name": "Col2", "fromTemplateColumn": "TemplateColumn" }
|
|
41
|
-
],
|
|
42
|
-
"data": [
|
|
43
|
-
{
|
|
44
|
-
"Fixed2": "Fixed",
|
|
45
|
-
"Col1": "7",
|
|
46
|
-
"Col2": "8"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"Fixed2": "Fixed",
|
|
50
|
-
"Col1": "9",
|
|
51
|
-
"Col2": "10"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"templateId": "multi-sheet-column-fixed/template.xlsx",
|
|
3
|
-
"data": {
|
|
4
|
-
"sheets": [
|
|
5
|
-
{
|
|
6
|
-
"name": "Copy1",
|
|
7
|
-
"fromTemplateSheet": "Template",
|
|
8
|
-
"tabColor": "#FF0000",
|
|
9
|
-
"data": {
|
|
10
|
-
"Data": {
|
|
11
|
-
"columns": [
|
|
12
|
-
{ "name": "Fixed" },
|
|
13
|
-
{ "name": "Col1", "fromTemplateColumn": "TemplateColumn" },
|
|
14
|
-
{ "name": "Col2", "fromTemplateColumn": "TemplateColumn" }
|
|
15
|
-
],
|
|
16
|
-
"data": [
|
|
17
|
-
{
|
|
18
|
-
"Fixed": "Fixed",
|
|
19
|
-
"Col1": "1",
|
|
20
|
-
"Col2": "2"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"Fixed": "Fixed",
|
|
24
|
-
"Col1": "3",
|
|
25
|
-
"Col2": "4"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "Copy2",
|
|
33
|
-
"fromTemplateSheet": "Template",
|
|
34
|
-
"tabColor": "#0000FF",
|
|
35
|
-
"data": {
|
|
36
|
-
"Data": {
|
|
37
|
-
"columns": [
|
|
38
|
-
{ "name": "Fixed2", "fromTemplateColumn": "Fixed" },
|
|
39
|
-
{ "name": "Col1", "fromTemplateColumn": "TemplateColumn" },
|
|
40
|
-
{ "name": "Col2", "fromTemplateColumn": "TemplateColumn" }
|
|
41
|
-
],
|
|
42
|
-
"data": [
|
|
43
|
-
{
|
|
44
|
-
"Fixed2": "Fixed",
|
|
45
|
-
"Col1": "7",
|
|
46
|
-
"Col2": "8"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"Fixed2": "Fixed",
|
|
50
|
-
"Col1": "9",
|
|
51
|
-
"Col2": "10"
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
}
|