mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 04:57:59 +00:00
Experimental Excel export feature (WIP)
This commit is contained in:
parent
efcc78e3bb
commit
3b4be3ebf6
@ -30,9 +30,10 @@
|
||||
<label class="field">
|
||||
<span class="label">Format</span>
|
||||
<select bind:value={exportInfo.format}>
|
||||
<option value="jsonarray">JSON array</option>
|
||||
<option value="ndjson">Newline delimited JSON</option>
|
||||
<option value="csv">CSV</option>
|
||||
<option value="jsonarray">JSON array (*.json)</option>
|
||||
<option value="ndjson">Newline delimited JSON (*.ndjson)</option>
|
||||
<option value="csv">CSV (*.csv)</option>
|
||||
<option value="excel">Excel (*.xlsx)</option>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"archive/zip"
|
||||
_ "embed"
|
||||
"encoding/csv"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/wailsapp/wails/v2/pkg/runtime"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
@ -23,6 +27,24 @@ const (
|
||||
ExportFormatJsonArray ExportFormat = "jsonarray"
|
||||
ExportFormatNdJson ExportFormat = "ndjson"
|
||||
ExportFormatCsv ExportFormat = "csv"
|
||||
ExportFormatExcel ExportFormat = "excel"
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed collection_find_export_excel/app.xml
|
||||
excelAppXml string
|
||||
//go:embed collection_find_export_excel/core.xml
|
||||
excelCoreXml string
|
||||
//go:embed collection_find_export_excel/rels.xml
|
||||
excelRelsXml string
|
||||
//go:embed collection_find_export_excel/styles.xml
|
||||
excelStylesXml string
|
||||
//go:embed collection_find_export_excel/theme.xml
|
||||
excelThemeXml string
|
||||
//go:embed collection_find_export_excel/contenttypes.xml
|
||||
excelContentTypesXml string
|
||||
|
||||
alphabet = []rune("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
)
|
||||
|
||||
type ExportSettings struct {
|
||||
@ -39,6 +61,29 @@ func getptr[T any](v T) *T {
|
||||
return &v
|
||||
}
|
||||
|
||||
func excelColIndex(idx int) string {
|
||||
str := make([]rune, 0)
|
||||
|
||||
for idx > 0 {
|
||||
rem := idx % 26
|
||||
if rem == 0 {
|
||||
str = append(str, 'Z')
|
||||
idx = (idx / 26) - 1
|
||||
} else {
|
||||
|
||||
str = append(str, alphabet[rem-1])
|
||||
idx = (idx / 26)
|
||||
}
|
||||
}
|
||||
|
||||
// Reverse string
|
||||
for i, j := 0, len(str)-1; i < j; i, j = i+1, j-1 {
|
||||
str[i], str[j] = str[j], str[i]
|
||||
}
|
||||
|
||||
return string(str)
|
||||
}
|
||||
|
||||
func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bool {
|
||||
runtime.LogInfof(a.ctx, "Export started for %s/%s/%s. Settings: %s", hostKey, dbKey, collKey, settingsJson)
|
||||
|
||||
@ -90,18 +135,27 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
DisplayName: "CSV files (*.csv)",
|
||||
Pattern: "*.csv",
|
||||
}
|
||||
|
||||
case ExportFormatJsonArray:
|
||||
defaultFilename = "export.json"
|
||||
fileFilter = runtime.FileFilter{
|
||||
DisplayName: "JSON files (*.json)",
|
||||
Pattern: "*.json",
|
||||
}
|
||||
|
||||
case ExportFormatNdJson:
|
||||
defaultFilename = "export.ndjson"
|
||||
fileFilter = runtime.FileFilter{
|
||||
DisplayName: "Newline delimited JSON files (*.ndjson)",
|
||||
Pattern: "*.ndjson",
|
||||
}
|
||||
|
||||
case ExportFormatExcel:
|
||||
defaultFilename = "export.xlsx"
|
||||
fileFilter = runtime.FileFilter{
|
||||
DisplayName: "Microsoft Excel Workbook (*.xlsx)",
|
||||
Pattern: "*.xlsx",
|
||||
}
|
||||
}
|
||||
|
||||
settings.OutFile, err = runtime.SaveFileDialog(a.ctx, runtime.SaveDialogOptions{
|
||||
@ -123,12 +177,11 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
if settings.OutFile == "" {
|
||||
runtime.LogDebug(a.ctx, "Export: no destination specified")
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Message: "Please specify ab export destination.",
|
||||
Message: "Please specify an export destination.",
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
if _, err := os.Stat(settings.OutFile); err == nil {
|
||||
runtime.LogDebugf(a.ctx, "Export: destination %s already exists", settings.OutFile)
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
@ -201,9 +254,14 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
var csvWriter *csv.Writer
|
||||
var csvColumnKeys []string
|
||||
var index uint = 0
|
||||
var columnKeys []string
|
||||
|
||||
var csvWriter *csv.Writer
|
||||
|
||||
var excelZipWriter *zip.Writer
|
||||
var excelSheetWriter io.Writer
|
||||
var excelStrings = make([]string, 0)
|
||||
|
||||
switch settings.Format {
|
||||
case ExportFormatJsonArray:
|
||||
@ -211,11 +269,78 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
|
||||
case ExportFormatCsv:
|
||||
csvWriter = csv.NewWriter(file)
|
||||
|
||||
case ExportFormatExcel:
|
||||
excelZipWriter = zip.NewWriter(file)
|
||||
|
||||
files := map[string]string{
|
||||
"docProps/app.xml": excelAppXml,
|
||||
"docProps/core.xml": strings.Replace(excelCoreXml, "{TITLE}", fmt.Sprintf("%s.%s", dbKey, collKey), 1),
|
||||
"xl/theme/theme1.xml": excelThemeXml,
|
||||
"xl/rels/workbook.xml.rels": excelRelsXml,
|
||||
"xl/styles.xml": excelStylesXml,
|
||||
"[Content-Types].xml": excelContentTypesXml,
|
||||
}
|
||||
|
||||
for fname, body := range files {
|
||||
f, err := excelZipWriter.Create(fname)
|
||||
if err != nil {
|
||||
runtime.LogErrorf(a.ctx, "Export: Excel zip.Create error: %s", err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: "ZIP error!",
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
_, err = f.Write([]byte(body))
|
||||
if err != nil {
|
||||
runtime.LogErrorf(a.ctx, "Export: Excel zip.Create.Write error: %s", err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: "ZIP error!",
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
excelZipWriter.Create("_rels/")
|
||||
|
||||
excelSheetWriter, err = excelZipWriter.Create("xl/worksheets/sheet1.xml")
|
||||
if err != nil {
|
||||
runtime.LogErrorf(a.ctx, "Export: Excel ZIP error creating worksheet: %s", err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: "ZIP error!",
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
excelSheetWriter.Write([]byte(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<worksheet
|
||||
xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
||||
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3"
|
||||
xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
|
||||
xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
|
||||
xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"
|
||||
xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{17671867-E8D5-A14C-B382-03A6AA54A004}">
|
||||
<dimension ref="A1:C5"/>
|
||||
<sheetViews>
|
||||
<sheetView tabSelected="1" workbookViewId="0">
|
||||
<selection activeCell="A1" sqref="A1"/>
|
||||
</sheetView>
|
||||
</sheetViews>
|
||||
<sheetFormatPr baseColWidth="10" defaultRowHeight="16" x14ac:dyDescent="0.2"/>
|
||||
<sheetData>`))
|
||||
}
|
||||
|
||||
for cur.Next(ctx) {
|
||||
switch settings.Format {
|
||||
case ExportFormatCsv:
|
||||
if settings.ViewKey == "list" && columnKeys == nil {
|
||||
columnKeys = make([]string, 0)
|
||||
els, err := cur.Current.Elements()
|
||||
if err != nil {
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
@ -225,48 +350,59 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
})
|
||||
}
|
||||
|
||||
for _, el := range els {
|
||||
if el.Key() == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
switch el.Value().Type {
|
||||
case bsontype.Boolean,
|
||||
bsontype.Decimal128,
|
||||
bsontype.Double,
|
||||
bsontype.Int32,
|
||||
bsontype.Int64,
|
||||
bsontype.Null,
|
||||
bsontype.ObjectID,
|
||||
bsontype.Regex,
|
||||
bsontype.String,
|
||||
bsontype.Symbol,
|
||||
bsontype.Timestamp,
|
||||
bsontype.Undefined:
|
||||
columnKeys = append(columnKeys, el.Key())
|
||||
}
|
||||
}
|
||||
|
||||
runtime.LogDebugf(a.ctx, "Export column keys: %v", columnKeys)
|
||||
|
||||
switch settings.Format {
|
||||
case ExportFormatCsv:
|
||||
if err := csvWriter.Write(columnKeys); err != nil {
|
||||
runtime.LogInfof(a.ctx, "Unable to write item %d to CSV while exporting: %s", index, err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: fmt.Sprintf("Unable to write item %d to CSV", index),
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
}
|
||||
|
||||
case ExportFormatExcel:
|
||||
excelSheetWriter.Write([]byte(fmt.Sprintf(`<row r="1" spans="1:%d" s="1" customFormat="1" x14ac:dyDescent="0.2">`, len(columnKeys))))
|
||||
for idx, key := range columnKeys {
|
||||
// excelStringsWriter.Write([]byte(fmt.Sprintf("<si><t>%s</t></si>", key)))
|
||||
excelStrings = append(excelStrings, key)
|
||||
excelSheetWriter.Write([]byte(fmt.Sprintf(`<c r="%s1" s="1" t="s"><v>%d</v></c>`, excelColIndex(idx+1), len(excelStrings))))
|
||||
}
|
||||
excelSheetWriter.Write([]byte("</row>"))
|
||||
}
|
||||
}
|
||||
|
||||
switch settings.Format {
|
||||
case ExportFormatCsv:
|
||||
csvItem := make([]string, 0)
|
||||
|
||||
switch settings.ViewKey {
|
||||
case "list":
|
||||
if csvColumnKeys == nil {
|
||||
csvColumnKeys = make([]string, 0)
|
||||
|
||||
for _, el := range els {
|
||||
if el.Key() == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
switch el.Value().Type {
|
||||
case bsontype.Boolean,
|
||||
bsontype.Decimal128,
|
||||
bsontype.Double,
|
||||
bsontype.Int32,
|
||||
bsontype.Int64,
|
||||
bsontype.Null,
|
||||
bsontype.ObjectID,
|
||||
bsontype.Regex,
|
||||
bsontype.String,
|
||||
bsontype.Symbol,
|
||||
bsontype.Timestamp,
|
||||
bsontype.Undefined:
|
||||
csvColumnKeys = append(csvColumnKeys, el.Key())
|
||||
}
|
||||
}
|
||||
|
||||
runtime.LogDebugf(a.ctx, "Export csvColumnKeys: %v", csvColumnKeys)
|
||||
|
||||
if err := csvWriter.Write(csvColumnKeys); err != nil {
|
||||
runtime.LogInfof(a.ctx, "Unable to write item %d to CSV while exporting: %s", index, err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: fmt.Sprintf("Unable to write item %d to CSV", index),
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
for _, k := range csvColumnKeys {
|
||||
for _, k := range columnKeys {
|
||||
r, err := cur.Current.LookupErr(k)
|
||||
if err != nil {
|
||||
csvItem = append(csvItem, "")
|
||||
@ -322,14 +458,75 @@ func (a *App) PerformFindExport(hostKey, dbKey, collKey, settingsJson string) bo
|
||||
if settings.Format == ExportFormatNdJson {
|
||||
file.WriteString("\n")
|
||||
}
|
||||
|
||||
case ExportFormatExcel:
|
||||
excelRow := make([]string, 0)
|
||||
|
||||
for _, k := range columnKeys {
|
||||
r, err := cur.Current.LookupErr(k)
|
||||
if err != nil {
|
||||
excelRow = append(excelRow, "")
|
||||
continue
|
||||
}
|
||||
|
||||
var v any
|
||||
if err := r.Unmarshal(&v); err != nil {
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: fmt.Sprintf("Unable to unmarshal field %s", k),
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
excelRow = append(excelRow, "")
|
||||
continue
|
||||
}
|
||||
|
||||
excelRow = append(excelRow, fmt.Sprintf("%v", v))
|
||||
}
|
||||
|
||||
excelSheetWriter.Write([]byte(fmt.Sprintf(`<row r="%d" spans="1:%d" s="1" x14ac:dyDescent="0.2">`, index+2, len(columnKeys))))
|
||||
for idx, val := range excelRow {
|
||||
// excelStringsWriter.Write([]byte(fmt.Sprintf("<si><t>%s</t></si>", val)))
|
||||
excelStrings = append(excelStrings, val)
|
||||
excelSheetWriter.Write([]byte(fmt.Sprintf(`<c r="%s%d" t="s"><v>%d</v></c>`, excelColIndex(idx+1), index+2, len(excelStrings))))
|
||||
}
|
||||
excelSheetWriter.Write([]byte("</row>"))
|
||||
}
|
||||
|
||||
index++
|
||||
|
||||
}
|
||||
|
||||
if settings.Format == ExportFormatJsonArray {
|
||||
switch settings.Format {
|
||||
case ExportFormatJsonArray:
|
||||
file.WriteString("]\n")
|
||||
|
||||
case ExportFormatExcel:
|
||||
excelSheetWriter.Write([]byte(`</sheetData><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>`))
|
||||
|
||||
excelStringsWriter, err := excelZipWriter.Create("xl/sharedStrings.xml")
|
||||
if err != nil {
|
||||
runtime.LogErrorf(a.ctx, "Export: Excel ZIP error creating shared strings: %s", err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: "ZIP error!",
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
return false
|
||||
}
|
||||
|
||||
excelStringsWriter.Write([]byte(fmt.Sprintf(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="%d" uniqueCount="%d">%s`, len(excelStrings), len(excelStrings), "\r\n")))
|
||||
for _, str := range excelStrings {
|
||||
excelStringsWriter.Write([]byte(fmt.Sprintf("<si><t>%s</t></si>\r\n", str)))
|
||||
}
|
||||
excelStringsWriter.Write([]byte("</sst>"))
|
||||
|
||||
if err := excelZipWriter.Close(); err != nil {
|
||||
runtime.LogErrorf(a.ctx, "Export: Excel ZIP error while closing: %s", err.Error())
|
||||
runtime.MessageDialog(a.ctx, runtime.MessageDialogOptions{
|
||||
Title: "ZIP error!",
|
||||
Message: err.Error(),
|
||||
Type: runtime.ErrorDialog,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
a.ui.Reveal(settings.OutFile)
|
||||
|
31
internal/app/collection_find_export_excel/app.xml
Normal file
31
internal/app/collection_find_export_excel/app.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<Properties
|
||||
xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
|
||||
xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
||||
>
|
||||
<Application>RolensExport</Application>
|
||||
<DocSecurity>0</DocSecurity>
|
||||
<ScaleCrop>false</ScaleCrop>
|
||||
<HeadingPairs>
|
||||
<vt:vector size="2" baseType="variant">
|
||||
<vt:variant>
|
||||
<vt:lpstr>Sheets</vt:lpstr>
|
||||
</vt:variant>
|
||||
<vt:variant>
|
||||
<vt:i4>1</vt:i4>
|
||||
</vt:variant>
|
||||
</vt:vector>
|
||||
</HeadingPairs>
|
||||
<TitlesOfParts>
|
||||
<vt:vector size="1" baseType="lpstr">
|
||||
<vt:lpstr>RolensExport</vt:lpstr>
|
||||
</vt:vector>
|
||||
</TitlesOfParts>
|
||||
<Manager></Manager>
|
||||
<Company></Company>
|
||||
<LinksUpToDate>false</LinksUpToDate>
|
||||
<SharedDoc>false</SharedDoc>
|
||||
<HyperlinkBase></HyperlinkBase>
|
||||
<HyperlinksChanged>false</HyperlinksChanged>
|
||||
<AppVersion>16.0300</AppVersion>
|
||||
</Properties>
|
12
internal/app/collection_find_export_excel/contenttypes.xml
Normal file
12
internal/app/collection_find_export_excel/contenttypes.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
||||
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
||||
<Default Extension="xml" ContentType="application/xml"/>
|
||||
<Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>
|
||||
<Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>
|
||||
<Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
|
||||
<Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>
|
||||
<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>
|
||||
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
|
||||
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
|
||||
</Types>
|
18
internal/app/collection_find_export_excel/core.xml
Normal file
18
internal/app/collection_find_export_excel/core.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<cp:coreProperties
|
||||
xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
||||
xmlns:dcmitype="http://purl.org/dc/dcmitype/"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
>
|
||||
<dc:title>{TITLE}</dc:title>
|
||||
<dc:subject></dc:subject>
|
||||
<dc:creator>Rolens</dc:creator>
|
||||
<cp:keywords></cp:keywords>
|
||||
<dc:description></dc:description>
|
||||
<cp:lastModifiedBy></cp:lastModifiedBy>
|
||||
<dcterms:created xsi:type="dcterms:W3CDTF">2020-01-01T00:00:00Z</dcterms:created>
|
||||
<dcterms:modified xsi:type="dcterms:W3CDTF">2020-01-01T00:00:00Z</dcterms:modified>
|
||||
<cp:category></cp:category>
|
||||
</cp:coreProperties>
|
7
internal/app/collection_find_export_excel/rels.xml
Normal file
7
internal/app/collection_find_export_excel/rels.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
||||
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
||||
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>
|
||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/>
|
||||
<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>
|
||||
</Relationships>
|
76
internal/app/collection_find_export_excel/styles.xml
Normal file
76
internal/app/collection_find_export_excel/styles.xml
Normal file
@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<styleSheet
|
||||
xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr"
|
||||
xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"
|
||||
xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"
|
||||
xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"
|
||||
>
|
||||
<fonts count="1" x14ac:knownFonts="1">
|
||||
<font>
|
||||
<sz val="12"/>
|
||||
<color theme="1"/>
|
||||
<name val="Calibri"/>
|
||||
<family val="2"/>
|
||||
<scheme val="minor"/>
|
||||
</font>
|
||||
</fonts>
|
||||
<fills count="3">
|
||||
<fill>
|
||||
<patternFill patternType="none"/>
|
||||
</fill>
|
||||
<fill>
|
||||
<patternFill patternType="gray125"/>
|
||||
</fill>
|
||||
<fill>
|
||||
<patternFill patternType="solid">
|
||||
<fgColor rgb="FFDCDCDC"/>
|
||||
<bgColor indexed="64"/>
|
||||
</patternFill>
|
||||
</fill>
|
||||
</fills>
|
||||
<borders count="2">
|
||||
<border>
|
||||
<left/>
|
||||
<right/>
|
||||
<top/>
|
||||
<bottom/>
|
||||
<diagonal/>
|
||||
</border>
|
||||
<border>
|
||||
<left/>
|
||||
<right/>
|
||||
<top/>
|
||||
<bottom style="thin">
|
||||
<color indexed="64"/>
|
||||
</bottom>
|
||||
<diagonal/>
|
||||
</border>
|
||||
</borders>
|
||||
<cellStyleXfs count="1">
|
||||
<xf numFmtId="0" fontId="0" fillId="0" borderId="0"/>
|
||||
</cellStyleXfs>
|
||||
<cellXfs count="2">
|
||||
<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
|
||||
<xf numFmtId="0" fontId="0" fillId="2" borderId="1" xfId="0" applyFill="1" applyBorder="1"/>
|
||||
</cellXfs>
|
||||
<cellStyles count="1">
|
||||
<cellStyle name="Standard" xfId="0" builtinId="0"/>
|
||||
</cellStyles>
|
||||
<dxfs count="0"/>
|
||||
<tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/>
|
||||
<colors>
|
||||
<mruColors>
|
||||
<color rgb="FFDCDCDC"/>
|
||||
<color rgb="FFABABAB"/>
|
||||
</mruColors>
|
||||
</colors>
|
||||
<extLst>
|
||||
<ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main">
|
||||
<x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/>
|
||||
</ext>
|
||||
<ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">
|
||||
<x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/>
|
||||
</ext>
|
||||
</extLst>
|
||||
</styleSheet>
|
269
internal/app/collection_find_export_excel/theme.xml
Normal file
269
internal/app/collection_find_export_excel/theme.xml
Normal file
@ -0,0 +1,269 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Kantoorthema">
|
||||
<a:themeElements>
|
||||
<a:clrScheme name="Office">
|
||||
<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>
|
||||
<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>
|
||||
<a:dk2><a:srgbClr val="44546A"/></a:dk2>
|
||||
<a:lt2><a:srgbClr val="E7E6E6"/></a:lt2>
|
||||
<a:accent1><a:srgbClr val="4472C4"/></a:accent1>
|
||||
<a:accent2><a:srgbClr val="ED7D31"/></a:accent2>
|
||||
<a:accent3><a:srgbClr val="A5A5A5"/></a:accent3>
|
||||
<a:accent4><a:srgbClr val="FFC000"/></a:accent4>
|
||||
<a:accent5><a:srgbClr val="5B9BD5"/></a:accent5>
|
||||
<a:accent6><a:srgbClr val="70AD47"/></a:accent6>
|
||||
<a:hlink><a:srgbClr val="0563C1"/></a:hlink>
|
||||
<a:folHlink><a:srgbClr val="954F72"/></a:folHlink>
|
||||
</a:clrScheme>
|
||||
<a:fontScheme name="Office">
|
||||
<a:majorFont>
|
||||
<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>
|
||||
<a:ea typeface=""/>
|
||||
<a:cs typeface=""/>
|
||||
<a:font script="Jpan" typeface="游ゴシック Light"/>
|
||||
<a:font script="Hang" typeface="맑은 고딕"/>
|
||||
<a:font script="Hans" typeface="等线 Light"/>
|
||||
<a:font script="Hant" typeface="新細明體"/>
|
||||
<a:font script="Arab" typeface="Times New Roman"/>
|
||||
<a:font script="Hebr" typeface="Times New Roman"/>
|
||||
<a:font script="Thai" typeface="Tahoma"/>
|
||||
<a:font script="Ethi" typeface="Nyala"/>
|
||||
<a:font script="Beng" typeface="Vrinda"/>
|
||||
<a:font script="Gujr" typeface="Shruti"/>
|
||||
<a:font script="Khmr" typeface="MoolBoran"/>
|
||||
<a:font script="Knda" typeface="Tunga"/>
|
||||
<a:font script="Guru" typeface="Raavi"/>
|
||||
<a:font script="Cans" typeface="Euphemia"/>
|
||||
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
||||
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
||||
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
||||
<a:font script="Thaa" typeface="MV Boli"/>
|
||||
<a:font script="Deva" typeface="Mangal"/>
|
||||
<a:font script="Telu" typeface="Gautami"/>
|
||||
<a:font script="Taml" typeface="Latha"/>
|
||||
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Orya" typeface="Kalinga"/>
|
||||
<a:font script="Mlym" typeface="Kartika"/>
|
||||
<a:font script="Laoo" typeface="DokChampa"/>
|
||||
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
||||
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
||||
<a:font script="Viet" typeface="Times New Roman"/>
|
||||
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
||||
<a:font script="Geor" typeface="Sylfaen"/>
|
||||
<a:font script="Armn" typeface="Arial"/>
|
||||
<a:font script="Bugi" typeface="Leelawadee UI"/>
|
||||
<a:font script="Bopo" typeface="Microsoft JhengHei"/>
|
||||
<a:font script="Java" typeface="Javanese Text"/>
|
||||
<a:font script="Lisu" typeface="Segoe UI"/>
|
||||
<a:font script="Mymr" typeface="Myanmar Text"/>
|
||||
<a:font script="Nkoo" typeface="Ebrima"/>
|
||||
<a:font script="Olck" typeface="Nirmala UI"/>
|
||||
<a:font script="Osma" typeface="Ebrima"/>
|
||||
<a:font script="Phag" typeface="Phagspa"/>
|
||||
<a:font script="Syrn" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Syrj" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Syre" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Sora" typeface="Nirmala UI"/>
|
||||
<a:font script="Tale" typeface="Microsoft Tai Le"/>
|
||||
<a:font script="Talu" typeface="Microsoft New Tai Lue"/>
|
||||
<a:font script="Tfng" typeface="Ebrima"/>
|
||||
</a:majorFont>
|
||||
<a:minorFont>
|
||||
<a:latin typeface="Calibri" panose="020F0502020204030204"/>
|
||||
<a:ea typeface=""/>
|
||||
<a:cs typeface=""/>
|
||||
<a:font script="Jpan" typeface="游ゴシック"/>
|
||||
<a:font script="Hang" typeface="맑은 고딕"/>
|
||||
<a:font script="Hans" typeface="等线"/>
|
||||
<a:font script="Hant" typeface="新細明體"/>
|
||||
<a:font script="Arab" typeface="Arial"/>
|
||||
<a:font script="Hebr" typeface="Arial"/>
|
||||
<a:font script="Thai" typeface="Tahoma"/>
|
||||
<a:font script="Ethi" typeface="Nyala"/>
|
||||
<a:font script="Beng" typeface="Vrinda"/>
|
||||
<a:font script="Gujr" typeface="Shruti"/>
|
||||
<a:font script="Khmr" typeface="DaunPenh"/>
|
||||
<a:font script="Knda" typeface="Tunga"/>
|
||||
<a:font script="Guru" typeface="Raavi"/>
|
||||
<a:font script="Cans" typeface="Euphemia"/>
|
||||
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
||||
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
||||
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
||||
<a:font script="Thaa" typeface="MV Boli"/>
|
||||
<a:font script="Deva" typeface="Mangal"/>
|
||||
<a:font script="Telu" typeface="Gautami"/>
|
||||
<a:font script="Taml" typeface="Latha"/>
|
||||
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Orya" typeface="Kalinga"/>
|
||||
<a:font script="Mlym" typeface="Kartika"/>
|
||||
<a:font script="Laoo" typeface="DokChampa"/>
|
||||
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
||||
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
||||
<a:font script="Viet" typeface="Arial"/>
|
||||
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
||||
<a:font script="Geor" typeface="Sylfaen"/>
|
||||
<a:font script="Armn" typeface="Arial"/>
|
||||
<a:font script="Bugi" typeface="Leelawadee UI"/>
|
||||
<a:font script="Bopo" typeface="Microsoft JhengHei"/>
|
||||
<a:font script="Java" typeface="Javanese Text"/>
|
||||
<a:font script="Lisu" typeface="Segoe UI"/>
|
||||
<a:font script="Mymr" typeface="Myanmar Text"/>
|
||||
<a:font script="Nkoo" typeface="Ebrima"/>
|
||||
<a:font script="Olck" typeface="Nirmala UI"/>
|
||||
<a:font script="Osma" typeface="Ebrima"/>
|
||||
<a:font script="Phag" typeface="Phagspa"/>
|
||||
<a:font script="Syrn" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Syrj" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Syre" typeface="Estrangelo Edessa"/>
|
||||
<a:font script="Sora" typeface="Nirmala UI"/>
|
||||
<a:font script="Tale" typeface="Microsoft Tai Le"/>
|
||||
<a:font script="Talu" typeface="Microsoft New Tai Lue"/>
|
||||
<a:font script="Tfng" typeface="Ebrima"/>
|
||||
</a:minorFont>
|
||||
</a:fontScheme>
|
||||
<a:fmtScheme name="Office">
|
||||
<a:fillStyleLst>
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr"/>
|
||||
</a:solidFill>
|
||||
<a:gradFill rotWithShape="1">
|
||||
<a:gsLst>
|
||||
<a:gs pos="0">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:lumMod val="110000"/>
|
||||
<a:satMod val="105000"/>
|
||||
<a:tint val="67000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="50000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:lumMod val="105000"/>
|
||||
<a:satMod val="103000"/>
|
||||
<a:tint val="73000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="100000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:lumMod val="105000"/>
|
||||
<a:satMod val="109000"/>
|
||||
<a:tint val="81000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
</a:gsLst>
|
||||
<a:lin ang="5400000" scaled="0"/>
|
||||
</a:gradFill>
|
||||
<a:gradFill rotWithShape="1">
|
||||
<a:gsLst>
|
||||
<a:gs pos="0">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:satMod val="103000"/>
|
||||
<a:lumMod val="102000"/>
|
||||
<a:tint val="94000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="50000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:satMod val="110000"/>
|
||||
<a:lumMod val="100000"/>
|
||||
<a:shade val="100000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="100000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:lumMod val="99000"/>
|
||||
<a:satMod val="120000"/>
|
||||
<a:shade val="78000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
</a:gsLst>
|
||||
<a:lin ang="5400000" scaled="0"/>
|
||||
</a:gradFill>
|
||||
</a:fillStyleLst>
|
||||
<a:lnStyleLst>
|
||||
<a:ln w="6350" cap="flat" cmpd="sng" algn="ctr">
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr"/>
|
||||
</a:solidFill>
|
||||
<a:prstDash val="solid"/>
|
||||
<a:miter lim="800000"/>
|
||||
</a:ln>
|
||||
<a:ln w="12700" cap="flat" cmpd="sng" algn="ctr">
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr"/>
|
||||
</a:solidFill>
|
||||
<a:prstDash val="solid"/>
|
||||
<a:miter lim="800000"/>
|
||||
</a:ln>
|
||||
<a:ln w="19050" cap="flat" cmpd="sng" algn="ctr">
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr"/>
|
||||
</a:solidFill>
|
||||
<a:prstDash val="solid"/>
|
||||
<a:miter lim="800000"/>
|
||||
</a:ln>
|
||||
</a:lnStyleLst>
|
||||
<a:effectStyleLst>
|
||||
<a:effectStyle>
|
||||
<a:effectLst/>
|
||||
</a:effectStyle>
|
||||
<a:effectStyle>
|
||||
<a:effectLst/>
|
||||
</a:effectStyle>
|
||||
<a:effectStyle>
|
||||
<a:effectLst>
|
||||
<a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0">
|
||||
<a:srgbClr val="000000">
|
||||
<a:alpha val="63000"/>
|
||||
</a:srgbClr>
|
||||
</a:outerShdw>
|
||||
</a:effectLst>
|
||||
</a:effectStyle>
|
||||
</a:effectStyleLst>
|
||||
<a:bgFillStyleLst>
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr"/>
|
||||
</a:solidFill>
|
||||
<a:solidFill>
|
||||
<a:schemeClr val="phClr">
|
||||
<a:tint val="95000"/>
|
||||
<a:satMod val="170000"/>
|
||||
</a:schemeClr>
|
||||
</a:solidFill>
|
||||
<a:gradFill rotWithShape="1">
|
||||
<a:gsLst>
|
||||
<a:gs pos="0">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:tint val="93000"/>
|
||||
<a:satMod val="150000"/>
|
||||
<a:shade val="98000"/>
|
||||
<a:lumMod val="102000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="50000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:tint val="98000"/>
|
||||
<a:satMod val="130000"/>
|
||||
<a:shade val="90000"/>
|
||||
<a:lumMod val="103000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
<a:gs pos="100000">
|
||||
<a:schemeClr val="phClr">
|
||||
<a:shade val="63000"/>
|
||||
<a:satMod val="120000"/>
|
||||
</a:schemeClr>
|
||||
</a:gs>
|
||||
</a:gsLst>
|
||||
<a:lin ang="5400000" scaled="0"/>
|
||||
</a:gradFill>
|
||||
</a:bgFillStyleLst>
|
||||
</a:fmtScheme>
|
||||
</a:themeElements>
|
||||
<a:objectDefaults/>
|
||||
<a:extraClrSchemeLst/>
|
||||
<a:extLst>
|
||||
<a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}">
|
||||
<thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/>
|
||||
</a:ext>
|
||||
</a:extLst>
|
||||
</a:theme>
|
Loading…
Reference in New Issue
Block a user