@burdenoff/microfe-planmagnet 2026.930.25 → 2026.1001.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/__vite-browser-external.js +9 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +5 -2
- package/dist/index.js +3 -1
- package/dist/node_modules/fflate/esm/browser.js +554 -0
- package/dist/node_modules/fflate/esm/browser.js.map +1 -0
- package/dist/node_modules/jszip/dist/jszip.min.js +3038 -0
- package/dist/node_modules/jszip/dist/jszip.min.js.map +1 -0
- package/dist/node_modules/pptxgenjs/dist/pptxgen.es.js +2151 -0
- package/dist/node_modules/pptxgenjs/dist/pptxgen.es.js.map +1 -0
- package/dist/node_modules/write-excel-file/browser/index.js +3 -0
- package/dist/node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js +13 -0
- package/dist/node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js +21 -0
- package/dist/node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/export/downloadBlob.js +11 -0
- package/dist/node_modules/write-excel-file/modules/export/downloadBlob.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js +23 -0
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js +22 -0
- package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/getSheetData/getSheetData.js +18 -0
- package/dist/node_modules/write-excel-file/modules/getSheetData/getSheetData.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js +131 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/images.js +188 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/images.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js +52 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/_Content_Types_.xml.js +18 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/_Content_Types_.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js +18 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js +17 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/rels.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/rels.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js +42 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js +102 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js +17 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js +15 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js +8 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js +71 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js +56 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js +15 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js +13 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js +44 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/row.js +123 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/row.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheet.xml.js +41 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheet.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetData.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetData.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetViews.js +17 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetViews.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml.rels.js +20 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml.rels.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/styles.xml.js +77 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/styles.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.js +22 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.rels.js +13 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.rels.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/generateXlsxFileContents.js +242 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/generateXlsxFileContents.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/getFeatures.js +29 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/getFeatures.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/convertDateToSerialNumber.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/convertDateToSerialNumber.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getAdditionalContent.js +42 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getAdditionalContent.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getElementXml.js +43 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getElementXml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getWrittenFiles.js +93 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getWrittenFiles.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/transformContent.js +39 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/transformContent.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getAlignmentXml.js +17 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getAlignmentXml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js +29 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js +14 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js +14 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js +12 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js +24 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isObject.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isObject.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js +27 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js +17 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSheets.js +74 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeSheets.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeStyles.js +138 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/initializeStyles.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetData.js +40 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetData.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetName.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetName.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/appendMarkupInsideElement.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/appendMarkupInsideElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/applyEnclosingElementOffset.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/applyEnclosingElementOffset.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/escapeXmlSpecialCharacters.js +12 -0
- package/dist/node_modules/write-excel-file/modules/xml/escapeXmlSpecialCharacters.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElement.js +12 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElementInsideElement.js +12 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElementInsideElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElementsNonRecursive_.js +41 -0
- package/dist/node_modules/write-excel-file/modules/xml/findElementsNonRecursive_.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getAttributesString.js +14 -0
- package/dist/node_modules/write-excel-file/modules/xml/getAttributesString.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getChildElements.js +42 -0
- package/dist/node_modules/write-excel-file/modules/xml/getChildElements.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getClosingTagMarkup.js +8 -0
- package/dist/node_modules/write-excel-file/modules/xml/getClosingTagMarkup.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getMarkupInsideElement.js +8 -0
- package/dist/node_modules/write-excel-file/modules/xml/getMarkupInsideElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getOpeningTagMarkup.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/getOpeningTagMarkup.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/getSelfClosingTagMarkup.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/getSelfClosingTagMarkup.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/insertElementMarkupAccordingToOrderOfSiblings.js +64 -0
- package/dist/node_modules/write-excel-file/modules/xml/insertElementMarkupAccordingToOrderOfSiblings.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/prependMarkupInsideElement.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/prependMarkupInsideElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/removeInvalidXmlCharacters.js +9 -0
- package/dist/node_modules/write-excel-file/modules/xml/removeInvalidXmlCharacters.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/replaceElement.js +8 -0
- package/dist/node_modules/write-excel-file/modules/xml/replaceElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeName.js +10 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeName.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeValue.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeValue.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeTextContent.js +11 -0
- package/dist/node_modules/write-excel-file/modules/xml/sanitizeTextContent.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/xml/setMarkupInsideElement.js +8 -0
- package/dist/node_modules/write-excel-file/modules/xml/setMarkupInsideElement.js.map +1 -0
- package/dist/node_modules/write-excel-file/modules/zip/zipToArrayBuffer.js +18 -0
- package/dist/node_modules/write-excel-file/modules/zip/zipToArrayBuffer.js.map +1 -0
- package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoot.js +154 -147
- package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.js +122 -106
- package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
- package/dist/planmagnet/controls/Pickers.d.ts +10 -0
- package/dist/planmagnet/controls/Pickers.d.ts.map +1 -1
- package/dist/planmagnet/controls/Pickers.js +75 -27
- package/dist/planmagnet/controls/Pickers.js.map +1 -1
- package/dist/planmagnet/index.d.ts +2 -0
- package/dist/planmagnet/index.d.ts.map +1 -1
- package/dist/planmagnet/index.js +2 -0
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.d.ts +6 -0
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.js +5 -177
- package/dist/planmagnet/pages/ReportsCreateReportPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ReportsEditReportPagePage.d.ts +3 -0
- package/dist/planmagnet/pages/ReportsEditReportPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/ReportsEditReportPagePage.js +15 -0
- package/dist/planmagnet/pages/ReportsEditReportPagePage.js.map +1 -0
- package/dist/planmagnet/pages/ReportsReportPagePage.d.ts +7 -0
- package/dist/planmagnet/pages/ReportsReportPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/ReportsReportPagePage.js +226 -0
- package/dist/planmagnet/pages/ReportsReportPagePage.js.map +1 -0
- package/dist/planmagnet/pages/ReportsReportsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ReportsReportsPagePage.js +224 -496
- package/dist/planmagnet/pages/ReportsReportsPagePage.js.map +1 -1
- package/dist/planmagnet/reports/ExportMenu.d.ts +9 -0
- package/dist/planmagnet/reports/ExportMenu.d.ts.map +1 -0
- package/dist/planmagnet/reports/ExportMenu.js +116 -0
- package/dist/planmagnet/reports/ExportMenu.js.map +1 -0
- package/dist/planmagnet/reports/PrintReportView.d.ts +24 -0
- package/dist/planmagnet/reports/PrintReportView.d.ts.map +1 -0
- package/dist/planmagnet/reports/PrintReportView.js +75 -0
- package/dist/planmagnet/reports/PrintReportView.js.map +1 -0
- package/dist/planmagnet/reports/ReportBuilderCanvas.d.ts +8 -0
- package/dist/planmagnet/reports/ReportBuilderCanvas.d.ts.map +1 -0
- package/dist/planmagnet/reports/ReportBuilderCanvas.js +261 -0
- package/dist/planmagnet/reports/ReportBuilderCanvas.js.map +1 -0
- package/dist/planmagnet/reports/ReportBuilderPage.d.ts +5 -0
- package/dist/planmagnet/reports/ReportBuilderPage.d.ts.map +1 -0
- package/dist/planmagnet/reports/ReportBuilderPage.js +198 -0
- package/dist/planmagnet/reports/ReportBuilderPage.js.map +1 -0
- package/dist/planmagnet/reports/ReportRunHistory.d.ts +8 -0
- package/dist/planmagnet/reports/ReportRunHistory.d.ts.map +1 -0
- package/dist/planmagnet/reports/ReportRunHistory.js +63 -0
- package/dist/planmagnet/reports/ReportRunHistory.js.map +1 -0
- package/dist/planmagnet/reports/ReportWidgetRenderer.d.ts +7 -0
- package/dist/planmagnet/reports/ReportWidgetRenderer.d.ts.map +1 -0
- package/dist/planmagnet/reports/ReportWidgetRenderer.js +251 -0
- package/dist/planmagnet/reports/ReportWidgetRenderer.js.map +1 -0
- package/dist/planmagnet/reports/SchedulesPanel.d.ts +4 -0
- package/dist/planmagnet/reports/SchedulesPanel.d.ts.map +1 -0
- package/dist/planmagnet/reports/SchedulesPanel.js +457 -0
- package/dist/planmagnet/reports/SchedulesPanel.js.map +1 -0
- package/dist/planmagnet/reports/ShareDialog.d.ts +5 -0
- package/dist/planmagnet/reports/ShareDialog.d.ts.map +1 -0
- package/dist/planmagnet/reports/ShareDialog.js +234 -0
- package/dist/planmagnet/reports/ShareDialog.js.map +1 -0
- package/dist/planmagnet/reports/SharedReportPage.d.ts +4 -0
- package/dist/planmagnet/reports/SharedReportPage.d.ts.map +1 -0
- package/dist/planmagnet/reports/SharedReportPage.js +180 -0
- package/dist/planmagnet/reports/SharedReportPage.js.map +1 -0
- package/dist/planmagnet/reports/WidgetEditorDialog.d.ts +10 -0
- package/dist/planmagnet/reports/WidgetEditorDialog.d.ts.map +1 -0
- package/dist/planmagnet/reports/WidgetEditorDialog.js +220 -0
- package/dist/planmagnet/reports/WidgetEditorDialog.js.map +1 -0
- package/dist/planmagnet/reports/reportExportPptx.d.ts +4 -0
- package/dist/planmagnet/reports/reportExportPptx.d.ts.map +1 -0
- package/dist/planmagnet/reports/reportExportPptx.js +118 -0
- package/dist/planmagnet/reports/reportExportPptx.js.map +1 -0
- package/dist/planmagnet/reports/reportExportXlsx.d.ts +4 -0
- package/dist/planmagnet/reports/reportExportXlsx.d.ts.map +1 -0
- package/dist/planmagnet/reports/reportExportXlsx.js +42 -0
- package/dist/planmagnet/reports/reportExportXlsx.js.map +1 -0
- package/dist/planmagnet/reports/reportGraphql.d.ts +28 -0
- package/dist/planmagnet/reports/reportGraphql.d.ts.map +1 -0
- package/dist/planmagnet/reports/reportGraphql.js +360 -0
- package/dist/planmagnet/reports/reportGraphql.js.map +1 -0
- package/dist/planmagnet/reports/reportModel.d.ts +198 -0
- package/dist/planmagnet/reports/reportModel.d.ts.map +1 -0
- package/dist/planmagnet/reports/reportModel.js +328 -0
- package/dist/planmagnet/reports/reportModel.js.map +1 -0
- package/dist/planmagnet/reports/sharedReportRoute.d.ts +14 -0
- package/dist/planmagnet/reports/sharedReportRoute.d.ts.map +1 -0
- package/dist/planmagnet/reports/sharedReportRoute.js +9 -0
- package/dist/planmagnet/reports/sharedReportRoute.js.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import e from "../../xml/sanitizeAttributeValue.js";
|
|
2
|
+
import t from "./getXlsxColorForHexColor.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js
|
|
4
|
+
function n(e) {
|
|
5
|
+
var t = e.borderColor, n = e.borderStyle, i = e.leftBorderColor, a = e.leftBorderStyle, o = e.rightBorderColor, s = e.rightBorderStyle, c = e.topBorderColor, l = e.topBorderStyle, u = e.bottomBorderColor, d = e.bottomBorderStyle, f = {
|
|
6
|
+
style: a || n,
|
|
7
|
+
color: i || t
|
|
8
|
+
}, p = {
|
|
9
|
+
style: s || n,
|
|
10
|
+
color: o || t
|
|
11
|
+
}, m = {
|
|
12
|
+
style: l || n,
|
|
13
|
+
color: c || t
|
|
14
|
+
}, h = {
|
|
15
|
+
style: d || n,
|
|
16
|
+
color: u || t
|
|
17
|
+
}, g = "<border>";
|
|
18
|
+
return g += r("left", f), g += r("right", p), g += r("top", m), g += r("bottom", h), g += "<diagonal/>", g += "</border>", g;
|
|
19
|
+
}
|
|
20
|
+
function r(n, r) {
|
|
21
|
+
var i = r.style, a = r.color;
|
|
22
|
+
a && !i && (i = "thin");
|
|
23
|
+
var o = !!a;
|
|
24
|
+
return `<${n}` + (i ? ` style="${e(i)}"` : "") + (o ? ">" : "/>") + (a ? `<color rgb="${e(t(a))}"/>` : "") + (o ? `</${n}>` : "");
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { n as default };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=getBorderXml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBorderXml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js"],"sourcesContent":["import sanitizeAttributeValue from '../../xml/sanitizeAttributeValue.js';\nimport getXlsxColorForHexColor from './getXlsxColorForHexColor.js';\nexport default function getBorderXml(_ref) {\n var borderColor = _ref.borderColor,\n borderStyle = _ref.borderStyle,\n leftBorderColor = _ref.leftBorderColor,\n leftBorderStyle = _ref.leftBorderStyle,\n rightBorderColor = _ref.rightBorderColor,\n rightBorderStyle = _ref.rightBorderStyle,\n topBorderColor = _ref.topBorderColor,\n topBorderStyle = _ref.topBorderStyle,\n bottomBorderColor = _ref.bottomBorderColor,\n bottomBorderStyle = _ref.bottomBorderStyle;\n var left = {\n style: leftBorderStyle || borderStyle,\n color: leftBorderColor || borderColor\n };\n var right = {\n style: rightBorderStyle || borderStyle,\n color: rightBorderColor || borderColor\n };\n var top = {\n style: topBorderStyle || borderStyle,\n color: topBorderColor || borderColor\n };\n var bottom = {\n style: bottomBorderStyle || borderStyle,\n color: bottomBorderColor || borderColor\n };\n var xml = '<border>';\n xml += getSideBorderXml('left', left);\n xml += getSideBorderXml('right', right);\n xml += getSideBorderXml('top', top);\n xml += getSideBorderXml('bottom', bottom);\n xml += '<diagonal/>';\n xml += '</border>';\n return xml;\n}\nfunction getSideBorderXml(side, _ref2) {\n var style = _ref2.style,\n color = _ref2.color;\n if (color && !style) {\n style = 'thin';\n }\n var hasChildren = Boolean(color);\n return \"<\".concat(side) + (style ? \" style=\\\"\".concat(sanitizeAttributeValue(style), \"\\\"\") : '') + (hasChildren ? '>' : '/>') + (color ? \"<color rgb=\\\"\".concat(sanitizeAttributeValue(getXlsxColorForHexColor(color)), \"\\\"/>\") : '') + (hasChildren ? \"</\".concat(side, \">\") : '');\n}\n//# sourceMappingURL=getBorderXml.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAwB,EAAa,GAAM;CACzC,IAAI,IAAc,EAAK,aACrB,IAAc,EAAK,aACnB,IAAkB,EAAK,iBACvB,IAAkB,EAAK,iBACvB,IAAmB,EAAK,kBACxB,IAAmB,EAAK,kBACxB,IAAiB,EAAK,gBACtB,IAAiB,EAAK,gBACtB,IAAoB,EAAK,mBACzB,IAAoB,EAAK,mBACvB,IAAO;EACT,OAAO,KAAmB;EAC1B,OAAO,KAAmB;EAC3B,EACG,IAAQ;EACV,OAAO,KAAoB;EAC3B,OAAO,KAAoB;EAC5B,EACG,IAAM;EACR,OAAO,KAAkB;EACzB,OAAO,KAAkB;EAC1B,EACG,IAAS;EACX,OAAO,KAAqB;EAC5B,OAAO,KAAqB;EAC7B,EACG,IAAM;AAOV,QANA,KAAO,EAAiB,QAAQ,EAAK,EACrC,KAAO,EAAiB,SAAS,EAAM,EACvC,KAAO,EAAiB,OAAO,EAAI,EACnC,KAAO,EAAiB,UAAU,EAAO,EACzC,KAAO,eACP,KAAO,aACA;;AAET,SAAS,EAAiB,GAAM,GAAO;CACrC,IAAI,IAAQ,EAAM,OAChB,IAAQ,EAAM;AAChB,CAAI,KAAS,CAAC,MACZ,IAAQ;CAEV,IAAI,IAAc,EAAQ;AAC1B,QAAO,IAAW,OAAS,IAAQ,WAAmB,EAAuB,EAAM,MAAU,OAAO,IAAc,MAAM,SAAS,IAAQ,eAAuB,EAAuB,EAAwB,EAAM,CAAC,QAAY,OAAO,IAAc,KAAY,OAAa"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return `${n(t)}${e + 1}`;
|
|
4
|
+
}
|
|
5
|
+
var t = 26;
|
|
6
|
+
function n(e) {
|
|
7
|
+
if (typeof e != "number") return "";
|
|
8
|
+
var r = Math.floor(e / t), i = String.fromCharCode(97 + e % t).toUpperCase();
|
|
9
|
+
return r === 0 ? i : n(r - 1) + i;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=getCellAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCellAddress.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js"],"sourcesContent":["/**\r\n * Gets spreadsheet cell string coordinate from row index and column index.\r\n * @param {number} rowIndex\r\n * @param {number} columnIndex\r\n * @returns {string}\r\n */\nexport default function getCellAddress(rowIndex, columnIndex) {\n return \"\".concat(getColumnLetter(columnIndex)).concat(rowIndex + 1);\n}\n\n// `26` letters in the alphabet: from \"A\" to \"Z\".\nvar LETTERS_COUNT = 26;\nfunction getColumnLetter(columnIndex) {\n if (typeof columnIndex !== 'number') {\n return '';\n }\n var prefix = Math.floor(columnIndex / LETTERS_COUNT);\n // Letter character codes start at `97`.\n var letter = String.fromCharCode(97 + columnIndex % LETTERS_COUNT).toUpperCase();\n if (prefix === 0) {\n return letter;\n }\n return getColumnLetter(prefix - 1) + letter;\n}\n//# sourceMappingURL=getCellAddress.js.map"],"x_google_ignoreList":[0],"mappings":";AAMA,SAAwB,EAAe,GAAU,GAAa;AAC5D,QAAO,GAAU,EAAgB,EAAY,GAAS,IAAW;;AAInE,IAAI,IAAgB;AACpB,SAAS,EAAgB,GAAa;AACpC,KAAI,OAAO,KAAgB,SACzB,QAAO;CAET,IAAI,IAAS,KAAK,MAAM,IAAc,EAAc,EAEhD,IAAS,OAAO,aAAa,KAAK,IAAc,EAAc,CAAC,aAAa;AAIhF,QAHI,MAAW,IACN,IAEF,EAAgB,IAAS,EAAE,GAAG"}
|
package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (!e) throw Error("`contentType` is required");
|
|
4
|
+
var t = e.toLowerCase().replace(/.*\//, "");
|
|
5
|
+
if (!t) throw Error("Unsupported `contentType`: " + e);
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=getFileExtensionForContentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFileExtensionForContentType.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js"],"sourcesContent":["export default function getFileExtensionForContentType(contentType) {\n if (!contentType) {\n throw new Error('`contentType` is required');\n }\n // Discards everything before the slash, and the slash too.\n // Example: \"image/jpeg\" → \"jpeg\".\n var extension = contentType.toLowerCase().replace(/.*\\//, '');\n if (!extension) {\n throw new Error('Unsupported `contentType`: ' + contentType);\n }\n return extension;\n}\n//# sourceMappingURL=getFileExtensionForContentType.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAA+B,GAAa;AAClE,KAAI,CAAC,EACH,OAAU,MAAM,4BAA4B;CAI9C,IAAI,IAAY,EAAY,aAAa,CAAC,QAAQ,QAAQ,GAAG;AAC7D,KAAI,CAAC,EACH,OAAU,MAAM,gCAAgC,EAAY;AAE9D,QAAO"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import e from "../../xml/sanitizeAttributeValue.js";
|
|
2
|
+
import t from "./hasFill.js";
|
|
3
|
+
import n from "./getXlsxColorForHexColor.js";
|
|
4
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
var i = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).conditionalFormatting, a = r.backgroundColor, o = r.fillPatternStyle, s = r.fillPatternColor, c = !o || o === "solid";
|
|
7
|
+
if (!t(r)) return "<fill><patternFill patternType=\"none\"/></fill>";
|
|
8
|
+
var l = "<fill>";
|
|
9
|
+
return l += `<patternFill patternType="${c ? "solid" : o}">`, l += `<fgColor rgb="${e(n(c ? a : s))}"/>`, l += `<bgColor ${c && !i ? "indexed=\"64\"" : "rgb=\"" + e(n(a)) + "\""}/>`, l += "</patternFill>", l += "</fill>", l;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=getFillXml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFillXml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js"],"sourcesContent":["import sanitizeAttributeValue from '../../xml/sanitizeAttributeValue.js';\nimport getXlsxColorForHexColor from './getXlsxColorForHexColor.js';\nimport hasFill from './hasFill.js';\nexport default function getFillXml(fill) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n conditionalFormatting = _ref.conditionalFormatting;\n var backgroundColor = fill.backgroundColor,\n fillPatternStyle = fill.fillPatternStyle,\n fillPatternColor = fill.fillPatternColor;\n var isSolidFill = !fillPatternStyle || fillPatternStyle === 'solid';\n if (!hasFill(fill)) {\n return '<fill>' + '<patternFill patternType=\"none\"/>' + '</fill>';\n }\n var xml = '<fill>';\n\n // In XLSX, a background could be one of two types:\n //\n // * Some background color\n // * `<patternFill patternType=\"solid\"/>`\n // * `<fgColor rgb=\"...\"/>` — extremely weirdly, \"background color\" is specified as \"foreground color\" in XLSX standard.\n // * `<bgColor indexed=\"64\"/>` — just ignore this extremely weird mandatory element in XLSX standard.\n // * Some background color + Some pattern over it\n // * `<patternFill patternType=\"...something-other-than-solid...\"/>`\n // * `<fgColor rgb=\"...\"/>` — Pattern color\n // * `<bgColor rgb=\"...\"/>` — Background color\n //\n // As weird as it is, it gets more weird when it comes to \"conditional formatting\":\n // for some weird reason, it doesn't work same way in case of \"conditional formatting\".\n // Specifically, `<bgColor indexed=\"64\"/>` should not be used and instead it should specify\n // `<bgColor rgb=\"...\"/>` same as `<fgColor rgb=\"...\"/>`.\n\n xml += \"<patternFill patternType=\\\"\".concat(isSolidFill ? 'solid' : fillPatternStyle, \"\\\">\");\n xml += \"<fgColor rgb=\\\"\".concat(sanitizeAttributeValue(getXlsxColorForHexColor(isSolidFill ? backgroundColor : fillPatternColor)), \"\\\"/>\");\n xml += \"<bgColor \".concat(isSolidFill && !conditionalFormatting ? 'indexed=\"64\"' : 'rgb=\"' + sanitizeAttributeValue(getXlsxColorForHexColor(backgroundColor)) + '\"', \"/>\");\n xml += '</patternFill>';\n\n // Close the `<fill>` element.\n xml += '</fill>';\n\n // Return the XML.\n return xml;\n}\n//# sourceMappingURL=getFillXml.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,SAAwB,EAAW,GAAM;CACvC,IACE,KADS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAA,IAAY,UAAU,KAAK,EAAE,EAClD,uBAC3B,IAAkB,EAAK,iBACzB,IAAmB,EAAK,kBACxB,IAAmB,EAAK,kBACtB,IAAc,CAAC,KAAoB,MAAqB;AAC5D,KAAI,CAAC,EAAQ,EAAK,CAChB,QAAO;CAET,IAAI,IAAM;AA2BV,QATA,KAAO,6BAAqC,IAAc,UAAU,OACpE,KAAO,iBAAyB,EAAuB,EAAwB,IAAc,IAAkB,EAAiB,CAAC,OACjI,KAAO,YAAmB,KAAe,CAAC,IAAwB,mBAAiB,WAAU,EAAuB,EAAwB,EAAgB,CAAC,GAAG,UAChK,KAAO,kBAGP,KAAO,WAGA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import e from "../../xml/sanitizeAttributeValue.js";
|
|
2
|
+
import t from "./getXlsxColorForHexColor.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).isDefaultGenericFont;
|
|
6
|
+
var r = n.fontFamily, i = n.fontSize, a = n.fontWeight, o = n.fontStyle, s = n.textDecoration, c = n.textColor, l = "<font>";
|
|
7
|
+
return r && (l += `<name val="${e(r)}"/>`), typeof i == "number" && (l += `<sz val="${i}"/>`), l += "<family val=\"2\"/>", r || typeof i == "number" || (l += "<scheme val=\"minor\"/>"), a === "bold" && (l += "<b/>"), o === "italic" && (l += "<i/>"), s && (s.strikethrough && (l += "<strike/>"), s.underline ? l += "<u/>" : s.doubleUnderline && (l += "<u val=\"double\"/>")), c ? l += `<color rgb="${e(t(c))}"/>` : l += "<color theme=\"1\"/>", l += "</font>", l;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=getFontXml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFontXml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js"],"sourcesContent":["import sanitizeAttributeValue from '../../xml/sanitizeAttributeValue.js';\nimport getXlsxColorForHexColor from './getXlsxColorForHexColor.js';\nexport default function getFontXml(font) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n isDefaultGenericFont = _ref.isDefaultGenericFont;\n var fontFamily = font.fontFamily,\n fontSize = font.fontSize,\n fontWeight = font.fontWeight,\n fontStyle = font.fontStyle,\n textDecoration = font.textDecoration,\n textColor = font.textColor;\n var xml = '<font>';\n\n // Apply `fontFamily`\n if (fontFamily) {\n // `<name/>` element specifies the actual typeface name, such as \"Calibri\" or \"Arial\".\n xml += \"<name val=\\\"\".concat(sanitizeAttributeValue(fontFamily), \"\\\"/>\");\n }\n\n // Apply `fontSize`\n if (typeof fontSize === 'number') {\n xml += \"<sz val=\\\"\".concat(fontSize, \"\\\"/>\");\n }\n\n // `<family/>` element specifies a generic font family classification, which is used\n // by the application's font substitution logic if the exact font name is unavailable.\n // The `val` attribute uses a numerical value corresponding to a generic family:\n // 0: Automatic\n // 1: Roman (serif typefaces, like Times New Roman)\n // 2: Swiss (sans-serif typefaces, like Arial or Calibri)\n // 3: Modern (typefaces with a consistent stroke width, often monospaced)\n // 4: Script (handwriting or calligraphy style)\n // 5: Decorative (display typefaces)\n xml += '<family val=\"2\"/>';\n\n // When no custom font family or size are specified,\n // it uses a default generic font.\n if (!(fontFamily || typeof fontSize === 'number')) {\n // Specifies that a font belongs to the theme's \"minor\" (body) category,\n // mapping it to the default paragraph/body font. It enables automatic font updates\n // when changing themes, separating it from \"major\" (heading) fonts.\n xml += '<scheme val=\"minor\"/>';\n }\n\n // Apply `fontWeight`\n if (fontWeight === 'bold') {\n xml += '<b/>';\n }\n\n // Apply `fontStyle`\n if (fontStyle === 'italic') {\n xml += '<i/>';\n }\n\n // Apply `textDecoration`\n if (textDecoration) {\n if (textDecoration.strikethrough) {\n xml += '<strike/>';\n }\n if (textDecoration.underline) {\n xml += '<u/>';\n } else if (textDecoration.doubleUnderline) {\n xml += '<u val=\"double\"/>';\n }\n }\n\n // Sidenote: \"subscript\" and \"superscript\" text styles\n // don't seem to work with \"conditional formatting\" feature.\n //\n // if (... === 'subscript') {\n // \txml += '<vertAlign val=\"subscript\"/>'\n // } else if (... === 'superscript') {\n // \txml += '<vertAlign val=\"superscript\"/>'\n // }\n\n // Apply `textColor`\n if (textColor) {\n xml += \"<color rgb=\\\"\".concat(sanitizeAttributeValue(getXlsxColorForHexColor(textColor)), \"\\\"/>\");\n } else {\n // In XLSX files, `theme=\"1\"` for font color typically refers to the first color\n // in the document's theme palette, which is usually \"light-1\" (white or very light grey)\n // or \"dark-1\" (black or very dark grey) depending on the background theme,\n // designed to contrast with the default background color.\n //\n // It is part of the XML structure in XLSX files that defines theme-based colors\n // rather than hardcoded RGB values, allowing for dynamic updates when changing themes in Excel.\n //\n // It is generally used to define the primary text color (e.g., black on white) for default styling.\n //\n xml += '<color theme=\"1\"/>';\n }\n xml += '</font>';\n return xml;\n}\n//# sourceMappingURL=getFontXml.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAwB,EAAW,GAAM;AAEd,EADd,UAAU,SAAS,KAAK,UAAU,OAAO,KAAA,IAAY,UAAU,KAAK,EAAE,EACnD;CAC9B,IAAI,IAAa,EAAK,YACpB,IAAW,EAAK,UAChB,IAAa,EAAK,YAClB,IAAY,EAAK,WACjB,IAAiB,EAAK,gBACtB,IAAY,EAAK,WACf,IAAM;AAiFV,QA9EI,MAEF,KAAO,cAAsB,EAAuB,EAAW,QAI7D,OAAO,KAAa,aACtB,KAAO,YAAoB,SAY7B,KAAO,uBAID,KAAc,OAAO,KAAa,aAItC,KAAO,4BAIL,MAAe,WACjB,KAAO,SAIL,MAAc,aAChB,KAAO,SAIL,MACE,EAAe,kBACjB,KAAO,cAEL,EAAe,YACjB,KAAO,SACE,EAAe,oBACxB,KAAO,yBAcP,IACF,KAAO,eAAuB,EAAuB,EAAwB,EAAU,CAAC,QAYxF,KAAO,wBAET,KAAO,WACA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "./orderOfSiblings.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js
|
|
3
|
+
function t(t) {
|
|
4
|
+
var n = e[t];
|
|
5
|
+
if (n) {
|
|
6
|
+
var r = [...arguments].slice(1);
|
|
7
|
+
if (r.length === 0) throw Error("At least one parent element tag name is required");
|
|
8
|
+
for (var i = function() {
|
|
9
|
+
var e = s[o], t = n.find(function(t) {
|
|
10
|
+
return Array.isArray(t) ? t[0] === e : t === e;
|
|
11
|
+
});
|
|
12
|
+
if (!t) return { v: void 0 };
|
|
13
|
+
if (Array.isArray(t)) n = t[1];
|
|
14
|
+
else return { v: void 0 };
|
|
15
|
+
}, a, o = 0, s = r; o < s.length; o++) if (a = i(), a) return a.v;
|
|
16
|
+
if (n) return n.map(function(e) {
|
|
17
|
+
return Array.isArray(e) ? e[0] : e;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=getOrderOfSiblings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrderOfSiblings.js","names":["ORDER_OF_SIBLINGS"],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js"],"sourcesContent":["import ORDER_OF_SIBLINGS from './orderOfSiblings.js';\n\n/**\r\n * Returns the order of siblings in a given `.xml` file inside given parent tag(s).\r\n * @param {string} fileName\r\n * @param {string[]} parentTagNames\r\n * @returns {string[]}\r\n */\nexport default function getOrderOfSiblings(fileName) {\n var orderOfSiblings = ORDER_OF_SIBLINGS[fileName];\n if (!orderOfSiblings) {\n // File not supported.\n // Return nothing.\n return;\n }\n for (var _len = arguments.length, parentTagNames = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n parentTagNames[_key - 1] = arguments[_key];\n }\n if (parentTagNames.length === 0) {\n throw new Error('At least one parent element tag name is required');\n }\n var _loop = function _loop() {\n var tagName = _parentTagNames[_i];\n var orderOfSiblingsMatchingElement = orderOfSiblings.find(function (element) {\n if (Array.isArray(element)) {\n return element[0] === tagName;\n } else {\n return element === tagName;\n }\n });\n if (!orderOfSiblingsMatchingElement) {\n // The element is not present in the pre-defined order of elements.\n // Return nothing.\n return {\n v: void 0\n };\n }\n if (Array.isArray(orderOfSiblingsMatchingElement)) {\n orderOfSiblings = orderOfSiblingsMatchingElement[1];\n } else {\n // The element doesn't specify any child elements.\n // Return nothing.\n return {\n v: void 0\n };\n }\n },\n _ret;\n for (var _i = 0, _parentTagNames = parentTagNames; _i < _parentTagNames.length; _i++) {\n _ret = _loop();\n if (_ret) return _ret.v;\n }\n if (orderOfSiblings) {\n // Convert element of `OrderOfSiblings` array to a `string`.\n return orderOfSiblings.map(function (element) {\n if (Array.isArray(element)) {\n return element[0];\n } else {\n return element;\n }\n });\n }\n}\n//# sourceMappingURL=getOrderOfSiblings.js.map"],"x_google_ignoreList":[0],"mappings":";;AAQA,SAAwB,EAAmB,GAAU;CACnD,IAAI,IAAkBA,EAAkB;AACnC,QAKA;MAA6B,QACL;AAE7B,MAAI,EAAe,WAAW,EAC5B,OAAU,MAAM,mDAAmD;AA6BrE,OAAK,IA3BD,IAAQ,WAAiB;GACzB,IAAI,IAAU,EAAgB,IAC1B,IAAiC,EAAgB,KAAK,SAAU,GAAS;AAIzE,WAHE,MAAM,QAAQ,EAAQ,GACjB,EAAQ,OAAO,IAEf,MAAY;KAErB;AACF,OAAI,CAAC,EAGH,QAAO,EACL,GAAG,KAAK,GACT;AAEH,OAAI,MAAM,QAAQ,EAA+B,CAC/C,KAAkB,EAA+B;OAIjD,QAAO,EACL,GAAG,KAAK,GACT;KAGL,GACO,IAAK,GAAG,IAAkB,GAAgB,IAAK,EAAgB,QAAQ,IAE9E,KADA,IAAO,GAAO,EACV,EAAM,QAAO,EAAK;AAExB,MAAI,EAEF,QAAO,EAAgB,IAAI,SAAU,GAAS;AAI1C,UAHE,MAAM,QAAQ,EAAQ,GACjB,EAAQ,KAER;IAET"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
if (e[0] !== "#") throw Error(`Color "${e}" must start with a "#"`);
|
|
4
|
+
return `FF${e.slice(1).toUpperCase()}`;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=getXlsxColorForHexColor.js.map
|
package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getXlsxColorForHexColor.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js"],"sourcesContent":["export default function getXlsxColorForHexColor(color) {\n if (color[0] !== '#') {\n throw new Error(\"Color \\\"\".concat(color, \"\\\" must start with a \\\"#\\\"\"));\n }\n return \"FF\".concat(color.slice('#'.length).toUpperCase());\n}\n//# sourceMappingURL=getXlsxColorForHexColor.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAwB,GAAO;AACrD,KAAI,EAAM,OAAO,IACf,OAAU,MAAM,UAAkB,2BAAqC;AAEzE,QAAO,KAAY,EAAM,MAAM,EAAW,CAAC,aAAa"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
var t = e.align, n = e.alignVertical, r = e.textRotation, i = e.indent, a = e.wrap;
|
|
4
|
+
return !!(t || n || typeof r == "number" || i || a);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=hasAlignment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasAlignment.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js"],"sourcesContent":["export default function hasAlignment(_ref) {\n var align = _ref.align,\n alignVertical = _ref.alignVertical,\n textRotation = _ref.textRotation,\n indent = _ref.indent,\n wrap = _ref.wrap;\n return Boolean(align || alignVertical || typeof textRotation === 'number' || indent || wrap);\n}\n//# sourceMappingURL=hasAlignment.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAa,GAAM;CACzC,IAAI,IAAQ,EAAK,OACf,IAAgB,EAAK,eACrB,IAAe,EAAK,cACpB,IAAS,EAAK,QACd,IAAO,EAAK;AACd,QAAO,GAAQ,KAAS,KAAiB,OAAO,KAAiB,YAAY,KAAU"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
var t = e.borderColor, n = e.borderStyle, r = e.leftBorderColor, i = e.leftBorderStyle, a = e.rightBorderColor, o = e.rightBorderStyle, s = e.topBorderColor, c = e.topBorderStyle, l = e.bottomBorderColor, u = e.bottomBorderStyle;
|
|
4
|
+
return !!(t || n || r || i || a || o || s || c || l || u);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=hasBorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasBorder.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js"],"sourcesContent":["export default function hasBorder(_ref) {\n var borderColor = _ref.borderColor,\n borderStyle = _ref.borderStyle,\n leftBorderColor = _ref.leftBorderColor,\n leftBorderStyle = _ref.leftBorderStyle,\n rightBorderColor = _ref.rightBorderColor,\n rightBorderStyle = _ref.rightBorderStyle,\n topBorderColor = _ref.topBorderColor,\n topBorderStyle = _ref.topBorderStyle,\n bottomBorderColor = _ref.bottomBorderColor,\n bottomBorderStyle = _ref.bottomBorderStyle;\n return Boolean(borderColor || borderStyle || leftBorderColor || leftBorderStyle || rightBorderColor || rightBorderStyle || topBorderColor || topBorderStyle || bottomBorderColor || bottomBorderStyle);\n}\n//# sourceMappingURL=hasBorder.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAU,GAAM;CACtC,IAAI,IAAc,EAAK,aACrB,IAAc,EAAK,aACnB,IAAkB,EAAK,iBACvB,IAAkB,EAAK,iBACvB,IAAmB,EAAK,kBACxB,IAAmB,EAAK,kBACxB,IAAiB,EAAK,gBACtB,IAAiB,EAAK,gBACtB,IAAoB,EAAK,mBACzB,IAAoB,EAAK;AAC3B,QAAO,GAAQ,KAAe,KAAe,KAAmB,KAAmB,KAAoB,KAAoB,KAAkB,KAAkB,KAAqB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
var t = e.backgroundColor, n = e.fillPatternStyle, r = e.fillPatternColor;
|
|
4
|
+
return !!(t || n && r);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=hasFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasFill.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js"],"sourcesContent":["export default function hasFill(_ref) {\n var backgroundColor = _ref.backgroundColor,\n fillPatternStyle = _ref.fillPatternStyle,\n fillPatternColor = _ref.fillPatternColor;\n return Boolean(backgroundColor || fillPatternStyle && fillPatternColor);\n}\n//# sourceMappingURL=hasFill.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAQ,GAAM;CACpC,IAAI,IAAkB,EAAK,iBACzB,IAAmB,EAAK,kBACxB,IAAmB,EAAK;AAC1B,QAAO,GAAQ,KAAmB,KAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
var t = e.fontFamily, n = e.fontSize, r = e.fontWeight, i = e.fontStyle, a = e.textDecoration, o = e.textColor;
|
|
4
|
+
return !!(t || typeof n == "number" || r || i || a && Object.keys(a).length > 0 || o);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=hasFont.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasFont.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js"],"sourcesContent":["export default function hasFont(_ref) {\n var fontFamily = _ref.fontFamily,\n fontSize = _ref.fontSize,\n fontWeight = _ref.fontWeight,\n fontStyle = _ref.fontStyle,\n textDecoration = _ref.textDecoration,\n textColor = _ref.textColor;\n return Boolean(fontFamily || typeof fontSize === 'number' || fontWeight || fontStyle || textDecoration && Object.keys(textDecoration).length > 0 || textColor);\n}\n//# sourceMappingURL=hasFont.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAQ,GAAM;CACpC,IAAI,IAAa,EAAK,YACpB,IAAW,EAAK,UAChB,IAAa,EAAK,YAClB,IAAY,EAAK,WACjB,IAAiB,EAAK,gBACtB,IAAY,EAAK;AACnB,QAAO,GAAQ,KAAc,OAAO,KAAa,YAAY,KAAc,KAAa,KAAkB,OAAO,KAAK,EAAe,CAAC,SAAS,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCellObject.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js"],"sourcesContent":["import isObject from './isObject.js';\n\n/**\r\n * Tells if a cell in sheet data is a simple value like `1` or \"abc\"\r\n * or if it's a fully-specified object like `{ value: \"abc\", type: String, ... }`.\r\n * https://gitlab.com/catamphetamine/write-excel-file/-/issues/107\r\n * @returns {boolean}\r\n */\nexport default function isCellObject(cell) {\n // (cell: Cell): value is CellObject {\n return isObject(cell);\n}\n//# sourceMappingURL=isCellObject.js.map"],"x_google_ignoreList":[0],"mappings":";;AAQA,SAAwB,EAAa,GAAM;AAEzC,QAAO,EAAS,EAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObject.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/isObject.js"],"sourcesContent":["var objectConstructor = {}.constructor;\nexport default function isObject(object) {\n return object !== undefined && object !== null && object.constructor === objectConstructor;\n}\n//# sourceMappingURL=isObject.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAoB,EAAE,CAAC;AAC3B,SAAwB,EAAS,GAAQ;AACvC,QAAO,KAAmC,QAAQ,EAAO,gBAAgB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js
|
|
2
|
+
var e = {
|
|
3
|
+
"xl/workbook.xml": [["workbook", [
|
|
4
|
+
"workbookPr",
|
|
5
|
+
"bookViews",
|
|
6
|
+
"sheets",
|
|
7
|
+
"pivotCaches",
|
|
8
|
+
"definedNames",
|
|
9
|
+
"calcPr"
|
|
10
|
+
]]],
|
|
11
|
+
"xl/styles.xml": [["styleSheet", [
|
|
12
|
+
"numFmts",
|
|
13
|
+
"fonts",
|
|
14
|
+
"fills",
|
|
15
|
+
"borders",
|
|
16
|
+
"cellStyleXfs",
|
|
17
|
+
"cellXfs",
|
|
18
|
+
"cellStyles",
|
|
19
|
+
"dxfs",
|
|
20
|
+
"tableStyles"
|
|
21
|
+
]]],
|
|
22
|
+
"xl/worksheets/sheet{id}.xml": [["worksheet", /* @__PURE__ */ "sheetPr.dimension.sheetViews.sheetFormatPr.cols.sheetData.sheetCalcPr.sheetProtection.protectedRanges.scenarios.autoFilter.sortState.dataConsolidate.customSheetViews.mergeCells.phoneticPr.conditionalFormatting.dataValidations.hyperlinks.printOptions.pageMargins.pageSetup.headerFooter.rowBreaks.colBreaks.drawing.legacyDrawing.picture.oleObjects.controls.tableParts.extLst".split(".")]]
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { e as default };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=orderOfSiblings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderOfSiblings.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js"],"sourcesContent":["// This file is currently not used anywhere. It's just here for reference.\n\n// The `.xlsx` document format is described in the official specification\n// called \"ECMA-376 Office Open XML File Formats\":\n// https://ecma-international.org/publications-and-standards/standards/ecma-376/\n// https://en.wikipedia.org/wiki/Office_Open_XML\n//\n// They say that this standard — specifically, \"Part 4\" of it —\n// includes XML \"schemas\" (`.xsd` files) which describe the predefined order of all XML elements.\n//\n// I personally didn't even bother checking because this whole \"specification\" thing\n// already looks needlessly convoluted. Anyway, I asked Google's AI for\n// \"xlsx sheet.xml elements order\" and it did output some kind of a list —\n// a slightly different one depending on the exact wording — which I used\n// as a loose reference and it seemed to fix those pesky \"corrupt file\" errors.\n//\n// For example, `CT_Worksheet` type describes a worksheet document (\"sheet.xml\"),\n// and the corresponding \"schema\" for it is:\n//\n// <xs:complexType name=\"CT_Worksheet\">\n// <xs:sequence>\n// <xs:element name=\"sheetPr\" type=\"CT_SheetPr\" minOccurs=\"0\"/>\n// <xs:element name=\"dimension\" type=\"CT_SheetDimension\" minOccurs=\"0\"/>\n// <xs:element name=\"sheetViews\" type=\"CT_SheetViews\" minOccurs=\"0\"/>\n// <xs:element name=\"sheetFormatPr\" type=\"CT_SheetFormatPr\" minOccurs=\"0\"/>\n// <xs:element name=\"cols\" type=\"CT_Cols\" minOccurs=\"0\" maxOccurs=\"unbounded\"/>\n// <xs:element name=\"sheetData\" type=\"CT_SheetData\"/>\n// <xs:element name=\"sheetProtection\" type=\"CT_SheetProtection\" minOccurs=\"0\"/>\n// <xs:element name=\"mergeCells\" type=\"CT_MergeCells\" minOccurs=\"0\"/>\n// <xs:element name=\"drawing\" type=\"CT_Drawing\" minOccurs=\"0\"/>\n// </xs:sequence>\n// </xs:complexType>\n//\n// There're \"merged\" versions of the specification on the internet\n// in a form of 6000-some page documents in `.pdf` format,\n// but the one I stumbled upon wasn't even searchable in for some weird reason.\n//\n// And the official specification seems to be hosted on some weird website\n// that doesn't even support \"online\" browsing, and the download doesn't start.\n// Who cares about this whole ancient corporate sh*t anyway.\n\n// type TagName = string\n// type OrderOfSiblings = Array<TagName | [TagName, OrderOfSiblings]>\n// type FileName = 'xl/workbook.xml' | 'xl/styles.xml' | 'xl/worksheets/sheet{id}.xml'\n// type OrderOfSiblingsByFile = Record<FileName, OrderOfSiblings>\n// declare const orderOfSiblingsByFile: OrderOfSiblingsByFile\n// export default orderOfSiblingsByFile\n\nexport default {\n // This is what Google AI returned for a search query: \"xlsx workbook.xml elements order\".\n // They say, this order is defined in `CT_Workbook` schema of ECMA-376 specification.\n 'xl/workbook.xml': [['workbook', ['workbookPr',\n // (Workbook Properties)\n 'bookViews',\n // (Book Views)\n 'sheets',\n // (List of sheets)\n 'pivotCaches',\n // (If applicable)\n 'definedNames',\n // (Named ranges)\n 'calcPr' // (Calculation properties)\n ]]],\n // This is what Google AI returned for a search query: \"xlsx styles.xml elements order\".\n // They say, this order is defined in `CT_Stylesheet` schema of ECMA-376 specification.\n 'xl/styles.xml': [['styleSheet', ['numFmts',\n // Defines custom number formats.\n 'fonts',\n // Contains font definitions (font name, size, color).\n 'fills',\n // Defines cell background colors/patterns.\n 'borders',\n // Defines cell borders.\n 'cellStyleXfs',\n // Master cell styles (usually style 0 is \"Normal\").\n 'cellXfs',\n // Actual cell formatting definitions (<xf>) referenced by cells.\n 'cellStyles',\n // Connects named styles to cellStyleXfs.\n 'dxfs',\n // Differential formats (conditional formatting).\n 'tableStyles' // Table-specific styles.\n ]]],\n // This is what Google AI returned for a search query: \"xlsx sheet.xml elements order\".\n // They say, this order is defined in `CT_Worksheet` schema of ECMA-376 specification.\n 'xl/worksheets/sheet{id}.xml': [['worksheet', ['sheetPr',\n // Sheet properties (e.g., tab color, filter configurations).\n 'dimension',\n // Defines the range of used cells (e.g., ref=\"A1:C10\").\n 'sheetViews',\n // View settings like freeze panes, zoom level, and whether the sheet is selected.\n 'sheetFormatPr',\n // Default row height and column width properties.\n 'cols',\n // Defines column-specific properties (width, hidden status).\n 'sheetData',\n // (Required) The main container for cell data, rows, and values.\n 'sheetCalcPr',\n // Calculation properties.\n 'sheetProtection',\n // Sheet-level security and locked status.\n 'protectedRanges',\n // Specific ranges that are protected.\n 'scenarios',\n // Worksheet scenarios.\n 'autoFilter',\n // Filter range definitions.\n 'sortState',\n // Current sort information.\n 'dataConsolidate',\n // Data consolidation settings.\n 'customSheetViews',\n // Custom view settings.\n 'mergeCells',\n // Defines ranges of merged cells.\n 'phoneticPr',\n // Phonetic information properties.\n 'conditionalFormatting',\n // Rules for formatting based on cell values.\n 'dataValidations',\n // Data entry rules and dropdowns.\n 'hyperlinks',\n // Links to external sites or other sheet locations.\n 'printOptions',\n // Defines specific printing preferences, such as centering, gridlines, and headings.\n 'pageMargins',\n // Defines the white space between the worksheet data and the edges of the printed page.\n 'pageSetup',\n // Printing and layout settings.\n 'headerFooter',\n // Sheet header and footer content.\n 'rowBreaks',\n // Manual page breaks.\n 'colBreaks',\n // Manual page breaks.\n 'drawing',\n // References to graphics or charts (points to drawing.xml).\n 'legacyDrawing',\n // References to legacy objects like comments or form controls.\n 'picture',\n // Background image properties.\n 'oleObjects',\n // Embedded OLE objects.\n 'controls',\n // Form or ActiveX controls.\n 'tableParts',\n // Links to defined Excel tables within the sheet.\n 'extLst' // Extension list for future-proofing and custom metadata.\n ]]]\n};\n//# sourceMappingURL=orderOfSiblings.js.map"],"x_google_ignoreList":[0],"mappings":";AAgDA,IAAA,IAAe;CAGb,mBAAmB,CAAC,CAAC,YAAY;EAAC;EAElC;EAEA;EAEA;EAEA;EAEA;EACC,CAAC,CAAC;CAGH,iBAAiB,CAAC,CAAC,cAAc;EAAC;EAElC;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EACC,CAAC,CAAC;CAGH,+BAA+B,CAAC,CAAC,aAAa,iZA+D7C,CAAC,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js
|
|
2
|
+
function e() {
|
|
3
|
+
var e = [], t = {};
|
|
4
|
+
return {
|
|
5
|
+
getSharedStrings: function() {
|
|
6
|
+
return e;
|
|
7
|
+
},
|
|
8
|
+
findOrCreateSharedString: function(n) {
|
|
9
|
+
var r = t[n];
|
|
10
|
+
return r === void 0 && (r = e.length, t[n] = r, e.push(n)), r;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=initializeSharedStrings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializeSharedStrings.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js"],"sourcesContent":["export default function initializeSharedStrings() {\n var sharedStrings = [];\n var sharedStringIdByString = {};\n return {\n getSharedStrings: function getSharedStrings() {\n return sharedStrings;\n },\n findOrCreateSharedString: function findOrCreateSharedString(string) {\n var id = sharedStringIdByString[string];\n if (id === undefined) {\n id = sharedStrings.length;\n sharedStringIdByString[string] = id;\n sharedStrings.push(string);\n }\n return id;\n }\n };\n}\n//# sourceMappingURL=initializeSharedStrings.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,IAA0B;CAChD,IAAI,IAAgB,EAAE,EAClB,IAAyB,EAAE;AAC/B,QAAO;EACL,kBAAkB,WAA4B;AAC5C,UAAO;;EAET,0BAA0B,SAAkC,GAAQ;GAClE,IAAI,IAAK,EAAuB;AAMhC,UALI,MAAO,KAAA,MACT,IAAK,EAAc,QACnB,EAAuB,KAAU,GACjC,EAAc,KAAK,EAAO,GAErB;;EAEV"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import e from "./initializeStyles.js";
|
|
2
|
+
import t from "./initializeSharedStrings.js";
|
|
3
|
+
import n from "./validateSheetName.js";
|
|
4
|
+
//#region node_modules/write-excel-file/modules/xlsx/initializeSheets.js
|
|
5
|
+
function r(e, t) {
|
|
6
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
7
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
8
|
+
if (Array.isArray(e) || (n = i(e)) || t && e && typeof e.length == "number") {
|
|
9
|
+
n && (e = n);
|
|
10
|
+
var r = 0;
|
|
11
|
+
return function() {
|
|
12
|
+
return r >= e.length ? { done: !0 } : {
|
|
13
|
+
done: !1,
|
|
14
|
+
value: e[r++]
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
19
|
+
}
|
|
20
|
+
function i(e, t) {
|
|
21
|
+
if (e) {
|
|
22
|
+
if (typeof e == "string") return a(e, t);
|
|
23
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
24
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? a(e, t) : void 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function a(e, t) {
|
|
28
|
+
(t == null || t > e.length) && (t = e.length);
|
|
29
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function o(i, a, o) {
|
|
33
|
+
for (var l = t(), u = l.getSharedStrings, d = l.findOrCreateSharedString, f = c(o), p = e(f), m = p.getCellStyles, h = p.findOrCreateCellStyle, g = a.map(function(e) {
|
|
34
|
+
return e.sheet;
|
|
35
|
+
}), _ = r(g), v; !(v = _()).done;) {
|
|
36
|
+
var y = v.value;
|
|
37
|
+
n(y);
|
|
38
|
+
}
|
|
39
|
+
for (var b = [], x = 0; x < g.length;) b.push({
|
|
40
|
+
sheetData: i[x],
|
|
41
|
+
sheetOptions: a[x],
|
|
42
|
+
sheetIndex: x,
|
|
43
|
+
sheetId: s(x),
|
|
44
|
+
hasDefaultFont: !!f,
|
|
45
|
+
findOrCreateCellStyle: h,
|
|
46
|
+
findOrCreateSharedString: d
|
|
47
|
+
}), x++;
|
|
48
|
+
return {
|
|
49
|
+
sheets: g.map(function(e, t) {
|
|
50
|
+
var n = t;
|
|
51
|
+
return {
|
|
52
|
+
sheetId: s(n),
|
|
53
|
+
sheetName: e,
|
|
54
|
+
sheetXmlParameters: b[n]
|
|
55
|
+
};
|
|
56
|
+
}),
|
|
57
|
+
getSharedStrings: u,
|
|
58
|
+
getCellStyles: m
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function s(e) {
|
|
62
|
+
return String(e + 1);
|
|
63
|
+
}
|
|
64
|
+
function c(e) {
|
|
65
|
+
var t = e.fontFamily, n = e.fontSize;
|
|
66
|
+
if (t || typeof n == "number") return {
|
|
67
|
+
fontFamily: t,
|
|
68
|
+
fontSize: n
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { o as default };
|
|
73
|
+
|
|
74
|
+
//# sourceMappingURL=initializeSheets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializeSheets.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/xlsx/initializeSheets.js"],"sourcesContent":["function _createForOfIteratorHelperLoose(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nimport initializeStyles from './initializeStyles.js';\nimport initializeSharedStrings from './initializeSharedStrings.js';\nimport validateSheetName from './validateSheetName.js';\nexport default function initializeSheets(sheetsData, sheetsOptions, globalOptions) {\n var _initializeSharedStri = initializeSharedStrings(),\n getSharedStrings = _initializeSharedStri.getSharedStrings,\n findOrCreateSharedString = _initializeSharedStri.findOrCreateSharedString;\n\n // const sheetsDefaultFonts = sheetsOptions.map((sheetOptions) => {\n // \tconst { fontFamily, fontSize } = sheetOptions\n // if (fontFamily || fontSize) {\n // \t\treturn { fontFamily, fontSize }\n // \t}\n // })\n\n var defaultFont = getDefaultFont(globalOptions);\n var _initializeStyles = initializeStyles(defaultFont),\n getCellStyles = _initializeStyles.getCellStyles,\n findOrCreateCellStyle = _initializeStyles.findOrCreateCellStyle;\n\n // Get sheet names.\n var sheetNames = sheetsOptions.map(function (sheetOptions) {\n return sheetOptions.sheet;\n });\n\n // Validate sheet names.\n for (var _iterator = _createForOfIteratorHelperLoose(sheetNames), _step; !(_step = _iterator()).done;) {\n var sheetName = _step.value;\n validateSheetName(sheetName);\n }\n var sheetXmlParameters = [];\n var sheetIndex = 0;\n while (sheetIndex < sheetNames.length) {\n sheetXmlParameters.push({\n sheetData: sheetsData[sheetIndex],\n sheetOptions: sheetsOptions[sheetIndex],\n sheetIndex: sheetIndex,\n sheetId: getSheetId(sheetIndex),\n hasDefaultFont: Boolean(defaultFont),\n // hasDefaultFont: Boolean(sheetsDefaultFonts[sheetIndex]),\n // findOrCreateCellStyle: (style) => findOrCreateCellStyle(style, sheetIndex),\n findOrCreateCellStyle: findOrCreateCellStyle,\n findOrCreateSharedString: findOrCreateSharedString\n });\n sheetIndex++;\n }\n return {\n sheets: sheetNames.map(function (sheetName, _i) {\n // Reassign the `_i` variable to prevent \"closure\" bug when in `generateSheetXml()` function\n // the `_i` value is always equal to the last sheet's index.\n var sheetIndex = _i;\n return {\n sheetId: getSheetId(sheetIndex),\n sheetName: sheetName,\n sheetXmlParameters: sheetXmlParameters[sheetIndex]\n };\n }),\n getSharedStrings: getSharedStrings,\n getCellStyles: getCellStyles\n };\n}\nfunction getSheetId(sheetIndex) {\n return String(sheetIndex + 1);\n}\nfunction getDefaultFont(globalOptions) {\n var fontFamily = globalOptions.fontFamily,\n fontSize = globalOptions.fontSize;\n if (fontFamily || typeof fontSize === 'number') {\n return {\n fontFamily: fontFamily,\n fontSize: fontSize\n };\n }\n}\n//# sourceMappingURL=initializeSheets.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,SAAS,EAAgC,GAAG,GAAG;CAAE,IAAI,IAAmB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;AAAe,KAAI,EAAG,SAAQ,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,EAAE;AAAE,KAAI,MAAM,QAAQ,EAAE,KAAK,IAAI,EAA4B,EAAE,KAAK,KAAK,KAAiB,OAAO,EAAE,UAArB,UAA6B;AAAE,QAAM,IAAI;EAAI,IAAI,IAAI;AAAG,SAAO,WAAY;AAAE,UAAO,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,GAAG;IAAE,MAAM,CAAC;IAAG,OAAO,EAAE;IAAM;;;AAAO,OAAU,UAAU,wIAAwI;;AACviB,SAAS,EAA4B,GAAG,GAAG;AAAE,KAAI,GAAG;AAAE,MAAgB,OAAO,KAAnB,SAAsB,QAAO,EAAkB,GAAG,EAAE;EAAE,IAAI,IAAI,EAAE,CAAC,SAAS,KAAK,EAAE,CAAC,MAAM,GAAG,GAAG;AAAE,SAAoB,MAAb,YAAkB,EAAE,gBAAgB,IAAI,EAAE,YAAY,OAAiB,MAAV,SAAyB,MAAV,QAAc,MAAM,KAAK,EAAE,GAAmB,MAAhB,eAAqB,2CAA2C,KAAK,EAAE,GAAG,EAAkB,GAAG,EAAE,GAAG,KAAK;;;AACpX,SAAS,EAAkB,GAAG,GAAG;AAAE,EAAS,KAAR,QAAa,IAAI,EAAE,YAAY,IAAI,EAAE;AAAS,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,GAAG,IAAK,GAAE,KAAK,EAAE;AAAI,QAAO;;AAIhJ,SAAwB,EAAiB,GAAY,GAAe,GAAe;AAuBjF,MAAK,IAtBD,IAAwB,GAAyB,EACnD,IAAmB,EAAsB,kBACzC,IAA2B,EAAsB,0BAS/C,IAAc,EAAe,EAAc,EAC3C,IAAoB,EAAiB,EAAY,EACnD,IAAgB,EAAkB,eAClC,IAAwB,EAAkB,uBAGxC,IAAa,EAAc,IAAI,SAAU,GAAc;AACzD,SAAO,EAAa;GACpB,EAGO,IAAY,EAAgC,EAAW,EAAE,GAAO,EAAE,IAAQ,GAAW,EAAE,OAAO;EACrG,IAAI,IAAY,EAAM;AACtB,IAAkB,EAAU;;AAI9B,MAFA,IAAI,IAAqB,EAAE,EACvB,IAAa,GACV,IAAa,EAAW,QAY7B,CAXA,EAAmB,KAAK;EACtB,WAAW,EAAW;EACtB,cAAc,EAAc;EAChB;EACZ,SAAS,EAAW,EAAW;EAC/B,gBAAgB,EAAQ;EAGD;EACG;EAC3B,CAAC,EACF;AAEF,QAAO;EACL,QAAQ,EAAW,IAAI,SAAU,GAAW,GAAI;GAG9C,IAAI,IAAa;AACjB,UAAO;IACL,SAAS,EAAW,EAAW;IACpB;IACX,oBAAoB,EAAmB;IACxC;IACD;EACgB;EACH;EAChB;;AAEH,SAAS,EAAW,GAAY;AAC9B,QAAO,OAAO,IAAa,EAAE;;AAE/B,SAAS,EAAe,GAAe;CACrC,IAAI,IAAa,EAAc,YAC7B,IAAW,EAAc;AAC3B,KAAI,KAAc,OAAO,KAAa,SACpC,QAAO;EACO;EACF;EACX"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import e from "./helpers/hasBorder.js";
|
|
2
|
+
import t from "./helpers/hasFill.js";
|
|
3
|
+
import n from "./helpers/hasFont.js";
|
|
4
|
+
//#region node_modules/write-excel-file/modules/xlsx/initializeStyles.js
|
|
5
|
+
function r(e) {
|
|
6
|
+
"@babel/helpers - typeof";
|
|
7
|
+
return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8
|
+
return typeof e;
|
|
9
|
+
} : function(e) {
|
|
10
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
11
|
+
}, r(e);
|
|
12
|
+
}
|
|
13
|
+
function i(e, t) {
|
|
14
|
+
var n = Object.keys(e);
|
|
15
|
+
if (Object.getOwnPropertySymbols) {
|
|
16
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
17
|
+
t && (r = r.filter(function(t) {
|
|
18
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
19
|
+
})), n.push.apply(n, r);
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function a(e) {
|
|
24
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
26
|
+
t % 2 ? i(Object(n), !0).forEach(function(t) {
|
|
27
|
+
o(e, t, n[t]);
|
|
28
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function(t) {
|
|
29
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
33
|
+
}
|
|
34
|
+
function o(e, t, n) {
|
|
35
|
+
return (t = s(t)) in e ? Object.defineProperty(e, t, {
|
|
36
|
+
value: n,
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0
|
|
40
|
+
}) : e[t] = n, e;
|
|
41
|
+
}
|
|
42
|
+
function s(e) {
|
|
43
|
+
var t = c(e, "string");
|
|
44
|
+
return r(t) == "symbol" ? t : t + "";
|
|
45
|
+
}
|
|
46
|
+
function c(e, t) {
|
|
47
|
+
if (r(e) != "object" || !e) return e;
|
|
48
|
+
var n = e[Symbol.toPrimitive];
|
|
49
|
+
if (n !== void 0) {
|
|
50
|
+
var i = n.call(e, t || "default");
|
|
51
|
+
if (r(i) != "object") return i;
|
|
52
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
53
|
+
}
|
|
54
|
+
return (t === "string" ? String : Number)(e);
|
|
55
|
+
}
|
|
56
|
+
function l(r) {
|
|
57
|
+
var i = [], o = {}, s = [], c = {}, l = [], d = {}, f = [], p = {}, m = [], h = {}, g = l.length;
|
|
58
|
+
d[u(r)] = g, l.push(r || {});
|
|
59
|
+
var _ = {};
|
|
60
|
+
p[u(_)] = f.length, f.push(_);
|
|
61
|
+
var v = {};
|
|
62
|
+
h[u(v)] = m.length, m.push(v), f.push({ gray125: !0 });
|
|
63
|
+
function y(_) {
|
|
64
|
+
var v = _.format, y = _.align, b = _.alignVertical, x = _.textRotation, S = _.indent, C = _.wrap, w = _.fontFamily, T = _.fontSize, E = _.fontWeight, D = _.fontStyle, O = _.textDecoration, k = _.textColor, A = _.backgroundColor, j = _.fillPatternStyle, M = _.fillPatternColor, N = _.borderColor, P = _.borderStyle, F = _.leftBorderColor, I = _.leftBorderStyle, L = _.rightBorderColor, R = _.rightBorderStyle, z = _.topBorderColor, B = _.topBorderStyle, V = _.bottomBorderColor, H = _.bottomBorderStyle, U = {
|
|
65
|
+
fontFamily: w,
|
|
66
|
+
fontSize: T,
|
|
67
|
+
fontWeight: E,
|
|
68
|
+
fontStyle: D,
|
|
69
|
+
textDecoration: O,
|
|
70
|
+
textColor: k
|
|
71
|
+
}, W = {
|
|
72
|
+
backgroundColor: A,
|
|
73
|
+
fillPatternStyle: j,
|
|
74
|
+
fillPatternColor: M
|
|
75
|
+
}, G = {
|
|
76
|
+
borderColor: N,
|
|
77
|
+
borderStyle: P,
|
|
78
|
+
leftBorderColor: F,
|
|
79
|
+
leftBorderStyle: I,
|
|
80
|
+
rightBorderColor: L,
|
|
81
|
+
rightBorderStyle: R,
|
|
82
|
+
topBorderColor: z,
|
|
83
|
+
topBorderStyle: B,
|
|
84
|
+
bottomBorderColor: V,
|
|
85
|
+
bottomBorderStyle: H
|
|
86
|
+
}, K = {
|
|
87
|
+
align: y,
|
|
88
|
+
alignVertical: b,
|
|
89
|
+
textRotation: x,
|
|
90
|
+
indent: S,
|
|
91
|
+
wrap: C
|
|
92
|
+
}, q = u(v), J = u(U), Y = u(W), X = u(G), Z = u(_);
|
|
93
|
+
return c[Z] === void 0 ? function() {
|
|
94
|
+
var u;
|
|
95
|
+
v && (u = o[q], u === void 0 && (u = 100 + i.length, o[q] = u, i.push(v)));
|
|
96
|
+
var _;
|
|
97
|
+
n(U) ? (_ = d[J], _ === void 0 && (_ = l.length, d[J] = _, l.push(a(a({}, U), {}, {
|
|
98
|
+
fontSize: U.fontSize || r && r.fontSize,
|
|
99
|
+
fontFamily: U.fontFamily || r && r.fontFamily
|
|
100
|
+
})))) : r && (_ = g);
|
|
101
|
+
var y;
|
|
102
|
+
t(W) && (y = p[Y], y === void 0 && (y = f.length, p[Y] = y, f.push({
|
|
103
|
+
backgroundColor: A,
|
|
104
|
+
fillPatternStyle: j,
|
|
105
|
+
fillPatternColor: M
|
|
106
|
+
})));
|
|
107
|
+
var b;
|
|
108
|
+
e(G) && (b = h[X], b === void 0 && (b = m.length, h[X] = b, m.push(G)));
|
|
109
|
+
var x = s.length;
|
|
110
|
+
return c[Z] = x, s.push({
|
|
111
|
+
formatId: u,
|
|
112
|
+
fontId: _,
|
|
113
|
+
fillId: y,
|
|
114
|
+
borderId: b,
|
|
115
|
+
alignment: K
|
|
116
|
+
}), x;
|
|
117
|
+
}() : c[Z];
|
|
118
|
+
}
|
|
119
|
+
return y({}), {
|
|
120
|
+
getCellStyles: function() {
|
|
121
|
+
return {
|
|
122
|
+
formats: i,
|
|
123
|
+
styles: s,
|
|
124
|
+
fonts: l,
|
|
125
|
+
fills: f,
|
|
126
|
+
borders: m
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
findOrCreateCellStyle: y
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function u(e) {
|
|
133
|
+
return JSON.stringify(e);
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
export { l as default };
|
|
137
|
+
|
|
138
|
+
//# sourceMappingURL=initializeStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initializeStyles.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/xlsx/initializeStyles.js"],"sourcesContent":["function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport hasFont from './helpers/hasFont.js';\nimport hasFill from './helpers/hasFill.js';\nimport hasBorder from './helpers/hasBorder.js';\n\n// There seem to be about 100 \"built-in\" formats in Excel.\n// https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2010/ee857658(v=office.14)?redirectedfrom=MSDN\nexport var FORMAT_ID_STARTS_FROM = 100;\nexport default function initializeStyles(defaultFont) {\n var formats = [];\n var formatIdByFormat = {};\n var styles = [];\n var stylesIndex = {};\n var fonts = [];\n var fontIdByFontKey = {};\n var fills = [];\n var fillIdByFillKey = {};\n var borders = [];\n var borderIdByBorderKey = {};\n\n // Add default font.\n var defaultFontId = fonts.length;\n fontIdByFontKey[getKey(defaultFont)] = defaultFontId;\n fonts.push(defaultFont || {});\n\n // // If any of the sheets have a default font that is different from the generic one,\n // // add those fonts to the collection.\n // const sheetsDefaultFontIds = sheetsDefaultFonts.map((font) => {\n // if (font) {\n // const fontKey = getKey(font)\n // if (fontIdByFontKey[fontKey] !== undefined) {\n // return fontIdByFontKey[fontKey]\n // }\n // const fontId = fonts.length\n // fontIdByFontKey[fontKey] = fontId\n // fonts.push(font)\n // return fontId\n // } else {\n // return defaultFontId\n // }\n // })\n\n // Default fill (no color).\n var defaultFill = {};\n fillIdByFillKey[getKey(defaultFill)] = fills.length;\n fills.push(defaultFill);\n\n // Default border.\n var defaultBorder = {};\n borderIdByBorderKey[getKey(defaultBorder)] = borders.length;\n borders.push(defaultBorder);\n\n // Always add a mandatory \"gray125\" fill.\n // For some weird reason, MS Office 2007 Excel seems to require this type of `<fill>`\n // to always be present in an `*.xslx` document.\n // Otherwise, if this `<fill>` is absent in the document, it would forcefully overwrite\n // the first custom `backgroundColor` with a \"gray125\" fill.\n var gray125Fill = {\n gray125: true\n };\n fills.push(gray125Fill);\n\n // Returns a style ID number.\n // Adds a new style if it doesn't exist yet.\n // If it already exists, just reuses the existing one.\n function findOrCreateCellStyle(cellStyle) {\n var format = cellStyle.format,\n align = cellStyle.align,\n alignVertical = cellStyle.alignVertical,\n textRotation = cellStyle.textRotation,\n indent = cellStyle.indent,\n wrap = cellStyle.wrap,\n fontFamily = cellStyle.fontFamily,\n fontSize = cellStyle.fontSize,\n fontWeight = cellStyle.fontWeight,\n fontStyle = cellStyle.fontStyle,\n textDecoration = cellStyle.textDecoration,\n textColor = cellStyle.textColor,\n backgroundColor = cellStyle.backgroundColor,\n fillPatternStyle = cellStyle.fillPatternStyle,\n fillPatternColor = cellStyle.fillPatternColor,\n borderColor = cellStyle.borderColor,\n borderStyle = cellStyle.borderStyle,\n leftBorderColor = cellStyle.leftBorderColor,\n leftBorderStyle = cellStyle.leftBorderStyle,\n rightBorderColor = cellStyle.rightBorderColor,\n rightBorderStyle = cellStyle.rightBorderStyle,\n topBorderColor = cellStyle.topBorderColor,\n topBorderStyle = cellStyle.topBorderStyle,\n bottomBorderColor = cellStyle.bottomBorderColor,\n bottomBorderStyle = cellStyle.bottomBorderStyle;\n\n // const defaultFont = sheetsDefaultFonts[sheetIndex]\n // const defaultFontId = sheetsDefaultFontIds[sheetIndex]\n\n var font = {\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n fontStyle: fontStyle,\n textDecoration: textDecoration,\n textColor: textColor\n };\n var fill = {\n backgroundColor: backgroundColor,\n fillPatternStyle: fillPatternStyle,\n fillPatternColor: fillPatternColor\n };\n var border = {\n borderColor: borderColor,\n borderStyle: borderStyle,\n leftBorderColor: leftBorderColor,\n leftBorderStyle: leftBorderStyle,\n rightBorderColor: rightBorderColor,\n rightBorderStyle: rightBorderStyle,\n topBorderColor: topBorderColor,\n topBorderStyle: topBorderStyle,\n bottomBorderColor: bottomBorderColor,\n bottomBorderStyle: bottomBorderStyle\n };\n var alignment = {\n align: align,\n alignVertical: alignVertical,\n textRotation: textRotation,\n indent: indent,\n wrap: wrap\n };\n var formatKey = getKey(format);\n var fontKey = getKey(font);\n var fillKey = getKey(fill);\n var borderKey = getKey(border);\n // const alignmentKey = getKey(alignment)\n\n var styleKey = getKey(cellStyle);\n\n // Returns style ID.\n var addStyle = function addStyle() {\n // Get format ID.\n var formatId;\n if (format) {\n formatId = formatIdByFormat[formatKey];\n if (formatId === undefined) {\n formatId = FORMAT_ID_STARTS_FROM + formats.length;\n formatIdByFormat[formatKey] = formatId;\n formats.push(format);\n }\n }\n\n // Get font ID.\n var fontId;\n if (hasFont(font)) {\n fontId = fontIdByFontKey[fontKey];\n if (fontId === undefined) {\n fontId = fonts.length;\n fontIdByFontKey[fontKey] = fontId;\n fonts.push(_objectSpread(_objectSpread({}, font), {}, {\n fontSize: font.fontSize || defaultFont && defaultFont.fontSize,\n fontFamily: font.fontFamily || defaultFont && defaultFont.fontFamily\n }));\n }\n } else if (defaultFont) {\n fontId = defaultFontId;\n }\n\n // Get fill ID.\n var fillId;\n if (hasFill(fill)) {\n fillId = fillIdByFillKey[fillKey];\n if (fillId === undefined) {\n fillId = fills.length;\n fillIdByFillKey[fillKey] = fillId;\n fills.push({\n backgroundColor: backgroundColor,\n fillPatternStyle: fillPatternStyle,\n fillPatternColor: fillPatternColor\n });\n }\n }\n\n // Get border ID.\n var borderId;\n if (hasBorder(border)) {\n borderId = borderIdByBorderKey[borderKey];\n if (borderId === undefined) {\n borderId = borders.length;\n borderIdByBorderKey[borderKey] = borderId;\n borders.push(border);\n }\n }\n var styleId = styles.length;\n stylesIndex[styleKey] = styleId;\n\n // Add a style.\n styles.push({\n formatId: formatId,\n fontId: fontId,\n fillId: fillId,\n borderId: borderId,\n alignment: alignment\n });\n return styleId;\n };\n\n // Look for an existing style.\n if (stylesIndex[styleKey] !== undefined) {\n return stylesIndex[styleKey];\n }\n\n // Create new style if doesn't exist.\n return addStyle();\n }\n\n // Add default style.\n // It will be used for any cell that doesn't specify any custom style properties.\n findOrCreateCellStyle({});\n return {\n getCellStyles: function getCellStyles() {\n return {\n formats: formats,\n styles: styles,\n fonts: fonts,\n fills: fills,\n borders: borders\n };\n },\n findOrCreateCellStyle: findOrCreateCellStyle\n };\n}\nfunction getKey(object) {\n return JSON.stringify(object);\n}\n//# sourceMappingURL=initializeStyles.js.map"],"x_google_ignoreList":[0],"mappings":"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"}
|