@tekkare/auriga 0.1.130 → 0.1.131
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/dist/module.json +1 -1
- package/dist/runtime/components/argChaptersNav.vue +1 -4
- package/dist/runtime/components/argExportXLSX.vue +451 -0
- package/dist/runtime/components/argExportXLSX.vue.d.ts +100 -0
- package/dist/runtime/components/argLangSelect.vue +1 -1
- package/dist/runtime/typings/index.d.ts +6 -5
- package/package.json +3 -2
package/dist/module.json
CHANGED
|
@@ -113,7 +113,7 @@ export default defineComponent({
|
|
|
113
113
|
return rect.top <= getElementPosition("chapter_menu") + headerHeight.value;
|
|
114
114
|
}
|
|
115
115
|
function selectChapter(index, anchorId) {
|
|
116
|
-
document.removeEventListener("scroll", scrollChapters);
|
|
116
|
+
document.removeEventListener("scroll", scrollChapters, true);
|
|
117
117
|
activeChapter.value = index;
|
|
118
118
|
setBarPosition();
|
|
119
119
|
const targetElement = document.getElementById(anchorId);
|
|
@@ -121,9 +121,6 @@ export default defineComponent({
|
|
|
121
121
|
const targetPosition = targetElement.offsetTop - headerHeight.value;
|
|
122
122
|
window.scrollTo({ top: targetPosition, behavior: "smooth" });
|
|
123
123
|
}
|
|
124
|
-
setTimeout(() => {
|
|
125
|
-
document.addEventListener("scroll", scrollChapters);
|
|
126
|
-
}, 2e3);
|
|
127
124
|
}
|
|
128
125
|
function setBarPosition() {
|
|
129
126
|
const selector = document?.getElementById(`chapters_nav_bar`);
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
<!-- eslint-disable vue/attribute-hyphenation -->
|
|
2
|
+
<!-- eslint-disable vue/max-attributes-per-line -->
|
|
3
|
+
<template>
|
|
4
|
+
<div>
|
|
5
|
+
<argBtn prefixIcon="FileXls" :loading="isLoading" @click="launchDownload">
|
|
6
|
+
{{ name }}
|
|
7
|
+
</argBtn>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import argBtn from "./argBtn.vue";
|
|
13
|
+
import XLSX from "xlsx-js-style";
|
|
14
|
+
import { ref, defineComponent } from "vue";
|
|
15
|
+
export default defineComponent({
|
|
16
|
+
name: "ArgExportXLSX",
|
|
17
|
+
components: { argBtn },
|
|
18
|
+
props: {
|
|
19
|
+
name: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "Export"
|
|
22
|
+
},
|
|
23
|
+
title: {
|
|
24
|
+
type: String,
|
|
25
|
+
require: true,
|
|
26
|
+
default: "export-tekkare"
|
|
27
|
+
},
|
|
28
|
+
kpi: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: null
|
|
31
|
+
},
|
|
32
|
+
subtitle: {
|
|
33
|
+
type: String,
|
|
34
|
+
require: false,
|
|
35
|
+
default: null
|
|
36
|
+
},
|
|
37
|
+
sources: {
|
|
38
|
+
type: Array,
|
|
39
|
+
require: true,
|
|
40
|
+
default: () => ["Source"]
|
|
41
|
+
},
|
|
42
|
+
worksheets: {
|
|
43
|
+
type: Array,
|
|
44
|
+
require: true,
|
|
45
|
+
default: null
|
|
46
|
+
},
|
|
47
|
+
isCustom: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
},
|
|
51
|
+
beforeExport: {
|
|
52
|
+
type: Function,
|
|
53
|
+
default: () => null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
setup(props) {
|
|
57
|
+
const isLoading = ref(false);
|
|
58
|
+
const launchDownload = async () => {
|
|
59
|
+
isLoading.value = true;
|
|
60
|
+
if (props.beforeExport !== null) {
|
|
61
|
+
await props.beforeExport();
|
|
62
|
+
}
|
|
63
|
+
const pageData = [];
|
|
64
|
+
const emptyObject = {};
|
|
65
|
+
for (let i = 0; i < 26; i++) {
|
|
66
|
+
emptyObject[i] = " ";
|
|
67
|
+
}
|
|
68
|
+
for (let i = 0; i < 60; i++) {
|
|
69
|
+
pageData.push({ ...emptyObject });
|
|
70
|
+
}
|
|
71
|
+
const workbook = XLSX.utils.book_new();
|
|
72
|
+
const pageDeGarde = XLSX.utils.json_to_sheet(pageData);
|
|
73
|
+
let formattedWorksheets = null;
|
|
74
|
+
if (!props.isCustom) {
|
|
75
|
+
formattedWorksheets = props.worksheets?.map((worksheet) => {
|
|
76
|
+
return {
|
|
77
|
+
name: worksheet.name,
|
|
78
|
+
value: XLSX.utils.json_to_sheet(worksheet.value),
|
|
79
|
+
sizes: worksheet.sizes,
|
|
80
|
+
formatToNumber: worksheet.formatToNumber,
|
|
81
|
+
formatToPourcent: worksheet.formatToPourcent
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
} else {
|
|
85
|
+
formattedWorksheets = props.worksheets;
|
|
86
|
+
}
|
|
87
|
+
XLSX.utils.book_append_sheet(workbook, pageDeGarde, `Tekkare`);
|
|
88
|
+
if (formattedWorksheets !== null && formattedWorksheets !== void 0) {
|
|
89
|
+
formattedWorksheets.forEach((worksheet) => {
|
|
90
|
+
XLSX.utils.book_append_sheet(
|
|
91
|
+
workbook,
|
|
92
|
+
worksheet.value,
|
|
93
|
+
worksheet.name
|
|
94
|
+
);
|
|
95
|
+
if (worksheet.sizes !== null && worksheet.sizes !== void 0 && worksheet.sizes.length > 0) {
|
|
96
|
+
const columnSizes = [];
|
|
97
|
+
worksheet.sizes.forEach(
|
|
98
|
+
(column) => columnSizes.push({ wch: column })
|
|
99
|
+
);
|
|
100
|
+
worksheet.value["!cols"] = columnSizes;
|
|
101
|
+
}
|
|
102
|
+
for (let lettre = 65; lettre <= 90; lettre++) {
|
|
103
|
+
for (let chiffre = 1; chiffre < Object.keys(worksheet.value).length; chiffre++) {
|
|
104
|
+
const cellule = String.fromCharCode(lettre) + chiffre;
|
|
105
|
+
if (chiffre === 1 && worksheet.value[cellule] !== void 0) {
|
|
106
|
+
worksheet.value[cellule].s = { font: { bold: true, sz: 12 } };
|
|
107
|
+
}
|
|
108
|
+
if (worksheet.formatToNumber !== void 0 && worksheet.formatToNumber !== null && worksheet.formatToNumber.length > 0) {
|
|
109
|
+
worksheet.formatToNumber.forEach((columnToFormat) => {
|
|
110
|
+
if (String.fromCharCode(lettre) === columnToFormat && chiffre !== 1 && worksheet.value[`${columnToFormat}${chiffre}`] !== void 0) {
|
|
111
|
+
worksheet.value[`${columnToFormat}${chiffre}`].v > 1e3 ? worksheet.value[`${columnToFormat}${chiffre}`].z = "#,##0" : worksheet.value[`${columnToFormat}${chiffre}`].z = "#,##0.00";
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
if (worksheet.formatToPourcent !== void 0 && worksheet.formatToPourcent !== null && worksheet.formatToPourcent.length > 0) {
|
|
116
|
+
worksheet.formatToPourcent.forEach((columnToFormat) => {
|
|
117
|
+
if (String.fromCharCode(lettre) === columnToFormat && chiffre !== 1 && worksheet.value[`${columnToFormat}${chiffre}`] !== void 0) {
|
|
118
|
+
worksheet.value[`${columnToFormat}${chiffre}`].z = "0.00%";
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
pageDeGarde["!cols"] = [
|
|
127
|
+
{ wch: 10 },
|
|
128
|
+
{ wch: 10 },
|
|
129
|
+
{ wch: 10 },
|
|
130
|
+
{ wch: 10 },
|
|
131
|
+
{ wch: 50 },
|
|
132
|
+
{ wch: 50 }
|
|
133
|
+
];
|
|
134
|
+
XLSX.utils.sheet_add_aoa(
|
|
135
|
+
pageDeGarde,
|
|
136
|
+
[
|
|
137
|
+
[
|
|
138
|
+
`This document was generated on ${(/* @__PURE__ */ new Date()).toLocaleString([], {
|
|
139
|
+
dateStyle: "short"
|
|
140
|
+
})} by`
|
|
141
|
+
]
|
|
142
|
+
],
|
|
143
|
+
{
|
|
144
|
+
origin: "E5"
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
XLSX.utils.sheet_add_aoa(pageDeGarde, [["Tekkare \u{1F49C}"]], {
|
|
148
|
+
origin: "E7"
|
|
149
|
+
});
|
|
150
|
+
XLSX.utils.sheet_add_aoa(
|
|
151
|
+
pageDeGarde,
|
|
152
|
+
[[`Your export currently contains :`]],
|
|
153
|
+
{
|
|
154
|
+
origin: "E11"
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
let currentRow = 26;
|
|
158
|
+
props.sources.forEach((source) => {
|
|
159
|
+
XLSX.utils.sheet_add_aoa(pageDeGarde, [[`${source}`]], {
|
|
160
|
+
origin: `E${currentRow}`
|
|
161
|
+
});
|
|
162
|
+
pageDeGarde[`E${currentRow}`].s = {
|
|
163
|
+
font: {
|
|
164
|
+
name: "Figtree",
|
|
165
|
+
sz: 18
|
|
166
|
+
},
|
|
167
|
+
border: {
|
|
168
|
+
top: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
169
|
+
left: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
170
|
+
right: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
171
|
+
bottom: { style: "dotted", color: { rgb: "FFFFFF" } }
|
|
172
|
+
},
|
|
173
|
+
alignment: {
|
|
174
|
+
vertical: "center",
|
|
175
|
+
horizontal: "center"
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
currentRow++;
|
|
179
|
+
});
|
|
180
|
+
XLSX.utils.sheet_add_aoa(
|
|
181
|
+
pageDeGarde,
|
|
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
|
+
origin: "A1"
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
if (props.kpi !== null && props.kpi !== void 0) {
|
|
221
|
+
XLSX.utils.sheet_add_aoa(
|
|
222
|
+
pageDeGarde,
|
|
223
|
+
[
|
|
224
|
+
props.kpi[1] !== null && props.kpi[1] !== void 0 ? [`${props.kpi[0].value}`, `${props.kpi[1].value}`] : [`${props.kpi[0].value}`]
|
|
225
|
+
],
|
|
226
|
+
{
|
|
227
|
+
origin: "E14"
|
|
228
|
+
}
|
|
229
|
+
);
|
|
230
|
+
XLSX.utils.sheet_add_aoa(
|
|
231
|
+
pageDeGarde,
|
|
232
|
+
[
|
|
233
|
+
props.kpi[1] !== null && props.kpi[1] !== void 0 ? [`${props.kpi[0].label}`, `${props.kpi[1].label}`] : [`${props.kpi[0].label}`]
|
|
234
|
+
],
|
|
235
|
+
{
|
|
236
|
+
origin: "E15"
|
|
237
|
+
}
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
if (props.kpi !== null && props.kpi !== void 0 && props.kpi.length > 2) {
|
|
241
|
+
XLSX.utils.sheet_add_aoa(
|
|
242
|
+
pageDeGarde,
|
|
243
|
+
[
|
|
244
|
+
props.kpi[3] !== null && props.kpi[3] !== void 0 ? [`${props.kpi[2].value}`, `${props.kpi[3].value}`] : [`${props.kpi[2].value}`]
|
|
245
|
+
],
|
|
246
|
+
{
|
|
247
|
+
origin: "E18"
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
XLSX.utils.sheet_add_aoa(
|
|
251
|
+
pageDeGarde,
|
|
252
|
+
[
|
|
253
|
+
props.kpi[3] !== null && props.kpi[3] !== void 0 ? [`${props.kpi[2].label}`, `${props.kpi[3].label}`] : [`${props.kpi[2].label}`]
|
|
254
|
+
],
|
|
255
|
+
{
|
|
256
|
+
origin: "E19"
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
if (props.subtitle !== null && props.subtitle !== void 0) {
|
|
261
|
+
XLSX.utils.sheet_add_aoa(pageDeGarde, [[props.subtitle]], {
|
|
262
|
+
origin: "E23"
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const style = {
|
|
266
|
+
border: {
|
|
267
|
+
top: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
268
|
+
left: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
269
|
+
right: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
270
|
+
bottom: { style: "dotted", color: { rgb: "FFFFFF" } }
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
const firstRowStyle = {
|
|
274
|
+
font: {
|
|
275
|
+
bold: true,
|
|
276
|
+
sz: 14
|
|
277
|
+
},
|
|
278
|
+
border: {
|
|
279
|
+
top: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
280
|
+
left: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
281
|
+
right: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
282
|
+
bottom: { style: "dotted", color: { rgb: "FFFFFF" } }
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
for (let lettre = 65; lettre <= 90; lettre++) {
|
|
286
|
+
for (let chiffre = 1; chiffre < 60; chiffre++) {
|
|
287
|
+
const cellule = String.fromCharCode(lettre) + chiffre;
|
|
288
|
+
if (String.fromCharCode(lettre) === "1") {
|
|
289
|
+
pageDeGarde[cellule].s = firstRowStyle;
|
|
290
|
+
} else {
|
|
291
|
+
pageDeGarde[cellule].s = style;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
pageDeGarde["E7"].s = {
|
|
296
|
+
font: {
|
|
297
|
+
name: "Figtree",
|
|
298
|
+
sz: 72,
|
|
299
|
+
bold: true
|
|
300
|
+
},
|
|
301
|
+
alignment: {
|
|
302
|
+
vertical: "center",
|
|
303
|
+
horizontal: "center"
|
|
304
|
+
},
|
|
305
|
+
border: {
|
|
306
|
+
top: { color: { rgb: "FFFFFF" } },
|
|
307
|
+
left: { color: { rgb: "FFFFFF" } },
|
|
308
|
+
right: { color: { rgb: "FFFFFF" } },
|
|
309
|
+
bottom: { color: { rgb: "FFFFFF" } }
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
const smallStyle = {
|
|
313
|
+
font: {
|
|
314
|
+
name: "Figtree",
|
|
315
|
+
sz: 18
|
|
316
|
+
},
|
|
317
|
+
border: {
|
|
318
|
+
top: { color: { rgb: "FFFFFF" } },
|
|
319
|
+
left: { color: { rgb: "FFFFFF" } },
|
|
320
|
+
right: { color: { rgb: "FFFFFF" } },
|
|
321
|
+
bottom: { color: { rgb: "FFFFFF" } }
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
const kpiStyle = {
|
|
325
|
+
font: {
|
|
326
|
+
color: { rgb: "525670" },
|
|
327
|
+
name: "Figtree",
|
|
328
|
+
sz: 16,
|
|
329
|
+
italic: true
|
|
330
|
+
},
|
|
331
|
+
border: {
|
|
332
|
+
top: { color: { rgb: "FFFFFF" } },
|
|
333
|
+
left: { color: { rgb: "FFFFFF" } },
|
|
334
|
+
right: { color: { rgb: "FFFFFF" } },
|
|
335
|
+
bottom: { color: { rgb: "FFFFFF" } }
|
|
336
|
+
},
|
|
337
|
+
alignment: {
|
|
338
|
+
vertical: "center",
|
|
339
|
+
horizontal: "center"
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
const kpiBoldStyle = {
|
|
343
|
+
font: {
|
|
344
|
+
name: "Figtree",
|
|
345
|
+
sz: 18,
|
|
346
|
+
bold: true
|
|
347
|
+
},
|
|
348
|
+
border: {
|
|
349
|
+
top: { color: { rgb: "FFFFFF" } },
|
|
350
|
+
left: { color: { rgb: "FFFFFF" } },
|
|
351
|
+
right: { color: { rgb: "FFFFFF" } },
|
|
352
|
+
bottom: { color: { rgb: "FFFFFF" } }
|
|
353
|
+
},
|
|
354
|
+
alignment: {
|
|
355
|
+
vertical: "center",
|
|
356
|
+
horizontal: "center"
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
pageDeGarde["E5"].s = {
|
|
360
|
+
font: {
|
|
361
|
+
name: "Figtree",
|
|
362
|
+
sz: 14
|
|
363
|
+
},
|
|
364
|
+
border: {
|
|
365
|
+
top: { color: { rgb: "FFFFFF" } },
|
|
366
|
+
left: { color: { rgb: "FFFFFF" } },
|
|
367
|
+
right: { color: { rgb: "FFFFFF" } },
|
|
368
|
+
bottom: { color: { rgb: "FFFFFF" } }
|
|
369
|
+
},
|
|
370
|
+
alignment: {
|
|
371
|
+
vertical: "center",
|
|
372
|
+
horizontal: "center"
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
pageDeGarde["E11"].s = {
|
|
376
|
+
...smallStyle,
|
|
377
|
+
alignment: {
|
|
378
|
+
horizontal: "center"
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
pageDeGarde["E23"].s = {
|
|
382
|
+
font: {
|
|
383
|
+
name: "Figtree",
|
|
384
|
+
sz: 16
|
|
385
|
+
},
|
|
386
|
+
border: {
|
|
387
|
+
top: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
388
|
+
left: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
389
|
+
right: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
390
|
+
bottom: { style: "dotted", color: { rgb: "FFFFFF" } }
|
|
391
|
+
},
|
|
392
|
+
alignment: {
|
|
393
|
+
vertical: "center",
|
|
394
|
+
horizontal: "center"
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
pageDeGarde["E14"].s = kpiBoldStyle;
|
|
398
|
+
pageDeGarde["E15"].s = kpiStyle;
|
|
399
|
+
pageDeGarde["F14"].s = kpiBoldStyle;
|
|
400
|
+
pageDeGarde["F15"].s = kpiStyle;
|
|
401
|
+
pageDeGarde["E18"].s = kpiBoldStyle;
|
|
402
|
+
pageDeGarde["E19"].s = kpiStyle;
|
|
403
|
+
pageDeGarde["F18"].s = kpiBoldStyle;
|
|
404
|
+
pageDeGarde["F19"].s = kpiStyle;
|
|
405
|
+
for (let row = 26; row <= 40; row++) {
|
|
406
|
+
pageDeGarde[`E${row}`].s = {
|
|
407
|
+
font: {
|
|
408
|
+
name: "Figtree",
|
|
409
|
+
sz: 16
|
|
410
|
+
},
|
|
411
|
+
border: {
|
|
412
|
+
top: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
413
|
+
left: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
414
|
+
right: { style: "dotted", color: { rgb: "FFFFFF" } },
|
|
415
|
+
bottom: { style: "dotted", color: { rgb: "FFFFFF" } }
|
|
416
|
+
},
|
|
417
|
+
alignment: {
|
|
418
|
+
vertical: "center",
|
|
419
|
+
horizontal: "center"
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
pageDeGarde["!merges"] = [
|
|
424
|
+
{ s: { r: 6, c: 4 }, e: { r: 6, c: 5 } },
|
|
425
|
+
{ s: { r: 10, c: 4 }, e: { r: 10, c: 5 } },
|
|
426
|
+
{ s: { r: 22, c: 4 }, e: { r: 22, c: 5 } },
|
|
427
|
+
{ s: { r: 4, c: 4 }, e: { r: 4, c: 5 } }
|
|
428
|
+
];
|
|
429
|
+
props.sources.forEach((source, index) => {
|
|
430
|
+
pageDeGarde["!merges"].push({
|
|
431
|
+
s: { r: 25 + index, c: 4 },
|
|
432
|
+
e: { r: 25 + index, c: 5 }
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
XLSX.writeFile(
|
|
436
|
+
workbook,
|
|
437
|
+
`${props.title}-from_${(/* @__PURE__ */ new Date()).toLocaleString([], {
|
|
438
|
+
dateStyle: "short"
|
|
439
|
+
})}.xlsx`
|
|
440
|
+
);
|
|
441
|
+
isLoading.value = false;
|
|
442
|
+
};
|
|
443
|
+
return {
|
|
444
|
+
launchDownload,
|
|
445
|
+
isLoading
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
</script>
|
|
450
|
+
|
|
451
|
+
<style scoped></style>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
interface KPIContent {
|
|
3
|
+
label: string;
|
|
4
|
+
value: any;
|
|
5
|
+
}
|
|
6
|
+
interface WorksheetContent {
|
|
7
|
+
name: string;
|
|
8
|
+
value: any;
|
|
9
|
+
sizes?: number[];
|
|
10
|
+
formatToNumber?: string[];
|
|
11
|
+
formatToPourcent?: string[];
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
|
14
|
+
name: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
title: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
require: boolean;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
kpi: {
|
|
24
|
+
type: PropType<KPIContent[]>;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
subtitle: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
require: boolean;
|
|
30
|
+
default: null;
|
|
31
|
+
};
|
|
32
|
+
sources: {
|
|
33
|
+
type: PropType<String[]>;
|
|
34
|
+
require: boolean;
|
|
35
|
+
default: () => string[];
|
|
36
|
+
};
|
|
37
|
+
worksheets: {
|
|
38
|
+
type: PropType<WorksheetContent[] | null>;
|
|
39
|
+
require: boolean;
|
|
40
|
+
default: null;
|
|
41
|
+
};
|
|
42
|
+
isCustom: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
beforeExport: {
|
|
47
|
+
type: FunctionConstructor;
|
|
48
|
+
default: () => null;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
launchDownload: () => Promise<void>;
|
|
52
|
+
isLoading: import("vue").Ref<boolean>;
|
|
53
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
name: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
title: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
require: boolean;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
kpi: {
|
|
64
|
+
type: PropType<KPIContent[]>;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
subtitle: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
require: boolean;
|
|
70
|
+
default: null;
|
|
71
|
+
};
|
|
72
|
+
sources: {
|
|
73
|
+
type: PropType<String[]>;
|
|
74
|
+
require: boolean;
|
|
75
|
+
default: () => string[];
|
|
76
|
+
};
|
|
77
|
+
worksheets: {
|
|
78
|
+
type: PropType<WorksheetContent[] | null>;
|
|
79
|
+
require: boolean;
|
|
80
|
+
default: null;
|
|
81
|
+
};
|
|
82
|
+
isCustom: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
beforeExport: {
|
|
87
|
+
type: FunctionConstructor;
|
|
88
|
+
default: () => null;
|
|
89
|
+
};
|
|
90
|
+
}>>, {
|
|
91
|
+
name: string;
|
|
92
|
+
title: string;
|
|
93
|
+
subtitle: string;
|
|
94
|
+
kpi: KPIContent[];
|
|
95
|
+
sources: String[];
|
|
96
|
+
worksheets: WorksheetContent[] | null;
|
|
97
|
+
isCustom: boolean;
|
|
98
|
+
beforeExport: Function;
|
|
99
|
+
}, {}>;
|
|
100
|
+
export default _default;
|
|
@@ -121,5 +121,5 @@ export default defineComponent({
|
|
|
121
121
|
</script>
|
|
122
122
|
|
|
123
123
|
<style scoped>
|
|
124
|
-
.justify-between{justify-content:space-between}.width-100{width:100%}.language_container{border:none;border-radius:4px;cursor:pointer;display:flex;flex-direction:column;padding:8px;position:relative;transition:background-color .3s linear,overflow .3s linear;z-index:99}.language_container.in-sidebar.open{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.language_container.close{background-color:transparent;max-height:42px;overflow:hidden}.language_container.open{overflow:visible}.language_container.open,.language_container.open.in-sidebar:hover,.language_container:not(.in-sidebar):hover{background:#fdfdff}.language_container.open{box-shadow:5px 5px 5px rgba(62,63,94,.06)}.language_container.in-sidebar:hover{background:var(--light)}.language_container:hover svg{color:var(--primary)!important}.lang_choice_container{background-color:#fdfdff;border-top:none!important;border:none;border-radius:4px;box-shadow:5px 5px 5px rgba(62,63,94,.06);display:flex;flex-direction:column;gap:4px;padding:8px 16px;position:absolute;transition:max-height .3s linear,max-width .3s linear,opacity .3s ease}.lang_choice_container.is_one{border-bottom-left-radius:0!important}.lang_choice_container.in-sidebar{left:100%;top:50%;transform:translateY(-49%)}.lang_choice_container:not(.in-sidebar){border-top-left-radius:0!important;border-top-right-radius:0!important;left:0;right:0;top:32px}.lang_choice_container.in-sidebar.open{max-width:1000px;opacity:1}.lang_choice_container.in-sidebar.close{max-width:0;opacity:0}.lang_choice_container.open:not(.in-sidebar){max-height:100px;opacity:1}.lang_choice_container.close:not(.in-sidebar){max-height:0;opacity:0}.active_lang .lang_choice_container{border-top:none!important}.lang_choice:hover{color:var(--primary)!important}.lang_choice_icon{flex-shrink:0;transition:transform .3s}.icon-rotate{transform:rotate(-180deg)}p{font-size:14px;font-style:normal;font-weight:400;line-height:160%;white-space:nowrap}.lang-choice:hover p{color:var(--primary)!important}
|
|
124
|
+
.justify-between{justify-content:space-between}.width-100{width:100%}.language_container{border:none;border-radius:4px;cursor:pointer;display:flex;flex-direction:column;padding:8px;position:relative;transition:background-color .3s linear,overflow .3s linear;z-index:99}.language_container.in-sidebar.open{border-bottom-right-radius:0!important;border-top-right-radius:0!important}.language_container.close{background-color:transparent;max-height:42px;overflow:hidden}.language_container.open{overflow:visible}.language_container.open,.language_container.open.in-sidebar:hover,.language_container:not(.in-sidebar):hover{background:#fdfdff}.language_container.open{box-shadow:5px 5px 5px rgba(62,63,94,.06)}.language_container.in-sidebar:hover{background:var(--light)}.language_container:hover svg{color:var(--primary)!important}.lang_choice_container{background-color:#fdfdff;border-top:none!important;border:none;border-radius:4px;box-shadow:5px 5px 5px rgba(62,63,94,.06);display:flex;flex-direction:column;gap:4px;padding:8px 16px;position:absolute;transition:max-height .3s linear,max-width .3s linear,opacity .3s ease}.lang_choice_container.is_one{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.lang_choice_container.in-sidebar{left:100%;top:50%;transform:translateY(-49%)}.lang_choice_container:not(.in-sidebar){border-top-left-radius:0!important;border-top-right-radius:0!important;left:0;right:0;top:32px}.lang_choice_container.in-sidebar.open{max-width:1000px;opacity:1}.lang_choice_container.in-sidebar.close{max-width:0;opacity:0}.lang_choice_container.open:not(.in-sidebar){max-height:100px;opacity:1}.lang_choice_container.close:not(.in-sidebar){max-height:0;opacity:0}.active_lang .lang_choice_container{border-top:none!important}.lang_choice:hover{color:var(--primary)!important}.lang_choice_icon{flex-shrink:0;transition:transform .3s}.icon-rotate{transform:rotate(-180deg)}p{font-size:14px;font-style:normal;font-weight:400;line-height:160%;white-space:nowrap}.lang-choice:hover p{color:var(--primary)!important}
|
|
125
125
|
</style>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
declare module
|
|
2
|
-
declare module
|
|
3
|
-
declare module
|
|
4
|
-
declare module
|
|
5
|
-
declare module
|
|
1
|
+
declare module "@svg-maps/usa";
|
|
2
|
+
declare module "@svg-maps/usa.counties";
|
|
3
|
+
declare module "@svg-maps/france.regions";
|
|
4
|
+
declare module "@svg-maps/france.departments";
|
|
5
|
+
declare module "@svg-maps/world";
|
|
6
|
+
declare module "xlsx-js-style";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekkare/auriga",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.131",
|
|
4
4
|
"description": "Aurgia is a UI kit developped by Tekkare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"save": "^2.9.0",
|
|
41
41
|
"vue-apexcharts": "^1.6.2",
|
|
42
42
|
"vue-svg-map": "^1.2.0",
|
|
43
|
-
"vue3-apexcharts": "^1.4.4"
|
|
43
|
+
"vue3-apexcharts": "^1.4.4",
|
|
44
|
+
"xlsx-js-style": "^1.2.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@nuxt/devtools": "latest",
|