@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 @@
|
|
|
1
|
+
{"version":3,"file":"stickyRowsOrColumns.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js"],"sourcesContent":["import findElement from '../../xml/findElement.js';\nimport replaceElement from '../../xml/replaceElement.js';\nimport prependMarkupInsideElement from '../../xml/prependMarkupInsideElement.js';\nimport appendMarkupInsideElement from '../../xml/appendMarkupInsideElement.js';\nimport getOpeningTagMarkup from '../../xml/getOpeningTagMarkup.js';\nimport getClosingTagMarkup from '../../xml/getClosingTagMarkup.js';\nimport getSelfClosingTagMarkup from '../../xml/getSelfClosingTagMarkup.js';\nimport findElementInsideElement from '../../xml/findElementInsideElement.js';\nimport insertElementMarkupAccordingToOrderOfSiblings from '../../xml/insertElementMarkupAccordingToOrderOfSiblings.js';\nimport getCellAddress from '../helpers/getCellAddress.js';\nimport getOrderOfSiblings from '../helpers/getOrderOfSiblings.js';\nexport default {\n files: {\n transform: {\n 'xl/worksheets/sheet{id}.xml': {\n transform: function transform(xml, sheetOptions, _ref) {\n var sheetIndex = _ref.sheetIndex,\n sheetId = _ref.sheetId;\n if (hasStickyRowsOrColumns(sheetOptions)) {\n var stickyRowsCount = sheetOptions.stickyRowsCount,\n stickyColumnsCount = sheetOptions.stickyColumnsCount;\n var paneAttributes = {\n // The vertical position of the split, in 1/20th of a point (twips),\n // or, when frozen, the number of visible rows in the top pane(s).\n ySplit: stickyRowsCount || 0,\n // The horizontal position of the split, in 1/20th of a point (twips),\n // or, when frozen, the number of visible columns in the left pane(s).\n xSplit: stickyColumnsCount || 0,\n // The visible cell in the top-left corner of the bottom-right pane.\n topLeftCell: getCellAddress(stickyRowsCount || 0, stickyColumnsCount || 0),\n // `activePane` defines which pane is active in a \"split\" or \"frozen\" `state`.\n // Possible values: \"bottomLeft\", \"bottomRight\", \"topLeft\", \"topRight\".\n activePane: 'bottomRight',\n // `state: \"frozen\"` indicates that the panes are frozen, meaning the split area\n // (usually top rows or leftmost columns) remains fixed while the rest of the sheet scrolls.\n // Other possible values:\n // \"split\" — Indicates that the window is split into separate panes that can be scrolled independently, but are not locked in place.\n // \"frozenSplit\" — A combination used in specific scenarios (often by Excel itself) to manage complex freezing.\n state: 'frozen'\n };\n var sheetViewElement = findElement(xml, 'sheetView');\n if (sheetViewElement) {\n // Add a `<pane/>` element inside the `<sheetView/>` element.\n // If a `<pane/>` element already exists, it will overwrite it.\n var paneElement = findElementInsideElement(xml, 'pane', sheetViewElement);\n var paneXml = getSelfClosingTagMarkup('pane', paneAttributes);\n if (paneElement) {\n // Overwrite the existing `<pane/>` element.\n // It doesn't seem to be any sense in patching the existing `<pane/>` element\n // because all of its properties would be rewritten anyway in the process.\n xml = replaceElement(xml, paneElement, paneXml);\n } else {\n // Add a `<pane/>` element.\n xml = appendMarkupInsideElement(xml, sheetViewElement, paneXml);\n }\n } else {\n // Add a `<sheetViews/>` element.\n // It isn't supposed to exist when no `<sheetView/>` element is present.\n var sheetViewsElement = findElement(xml, 'sheetViews');\n if (sheetViewsElement) {\n throw new Error(\"xl/worksheets/sheet\".concat(sheetId, \".xml: <sheetViews/> element exists but it doesn't contain any <sheetView/> elements\"));\n }\n var sheetViewAttributes = {\n tabSelected: sheetIndex === 0 ? 1 : 0,\n // The first sheet is selected by default.\n workbookViewId: 0\n };\n var sheetViewsXml = getOpeningTagMarkup('sheetViews') + getOpeningTagMarkup('sheetView', sheetViewAttributes) + getSelfClosingTagMarkup('pane', paneAttributes) + getClosingTagMarkup('sheetView', sheetViewAttributes) + getClosingTagMarkup('sheetViews');\n\n // Add a `<sheetViews/>` element with a child '<sheetView/>` element with a child `<pane/>` element.\n // For some reason, Excel 2007 demands `<sheetViews/>` element to be the first one in a `<worksheet/>` element.\n var worksheetElement = findElement(xml, 'worksheet');\n xml = prependMarkupInsideElement(xml, worksheetElement, sheetViewsXml);\n }\n }\n return xml;\n }\n },\n 'xl/workbook.xml': {\n transform: function transform(xml, sheetsOptions) {\n // If \"sticky rows\" or \"sticky columns\" feature is used, there must exist a `<workbookView/>` element\n // because it will be referenced when configuring those \"sticky rows\" or \"sticky columns\".\n if (sheetsOptions.some(hasStickyRowsOrColumns)) {\n // Find a `<workbookView/>` element.\n // It is required to exist because it is referenced as `workbookViewId=\"0\"`\n // attribute in `<sheetViews/>` element in `xl/worksheets/sheet{id}.xml` file.\n var workbookViewElement = findElement(xml, 'workbookView');\n if (!workbookViewElement) {\n // `<workbookView/>` element doesn't exist, so it should be created.\n // The parent element for it should be `<bookViews/>`.\n var bookViewsElement = findElement(xml, 'bookViews');\n if (bookViewsElement) {\n throw new Error(\"xl/workbook.xml: <bookViews/> element exists but it doesn't contain any <workbookView/> elements\");\n }\n // Add a `<bookViews/>` element with a child '<workbookView/>` element.\n // For some reason, Excel 2007 demands `<bookViews/>` element to go before `<sheets/>` element.\n // And `<sheets/>` element always exists.\n return insertElementMarkupAccordingToOrderOfSiblings(xml, '<bookViews><workbookView/></bookViews>', getOrderOfSiblings('xl/workbook.xml', 'workbook'), 'workbook');\n }\n }\n return xml;\n }\n }\n }\n }\n};\nfunction hasStickyRowsOrColumns(sheetOptions) {\n return Boolean(sheetOptions.stickyRowsCount) || Boolean(sheetOptions.stickyColumnsCount);\n}\n//# sourceMappingURL=stickyRowsOrColumns.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAWA,IAAA,IAAe,EACb,OAAO,EACL,WAAW;CACT,+BAA+B,EAC7B,WAAW,SAAmB,GAAK,GAAc,GAAM;EACrD,IAAI,IAAa,EAAK,YACpB,IAAU,EAAK;AACjB,MAAI,EAAuB,EAAa,EAAE;GACxC,IAAI,IAAkB,EAAa,iBACjC,IAAqB,EAAa,oBAChC,IAAiB;IAGnB,QAAQ,KAAmB;IAG3B,QAAQ,KAAsB;IAE9B,aAAa,EAAe,KAAmB,GAAG,KAAsB,EAAE;IAG1E,YAAY;IAMZ,OAAO;IACR,EACG,IAAmB,EAAY,GAAK,YAAY;AACpD,OAAI,GAAkB;IAGpB,IAAI,IAAc,EAAyB,GAAK,QAAQ,EAAiB,EACrE,IAAU,EAAwB,QAAQ,EAAe;AAC7D,IAOE,IAPE,IAII,EAAe,GAAK,GAAa,EAAQ,GAGzC,EAA0B,GAAK,GAAkB,EAAQ;UAE5D;AAIL,QADwB,EAAY,GAAK,aAAa,CAEpD,OAAU,MAAM,sBAA6B,uFAAgG;IAE/I,IAAI,IAAsB;KACxB,aAAa,QAAe;KAE5B,gBAAgB;KACjB,EACG,IAAgB,EAAoB,aAAa,GAAG,EAAoB,aAAa,EAAoB,GAAG,EAAwB,QAAQ,EAAe,GAAG,EAAoB,aAAa,EAAoB,GAAG,EAAoB,aAAa,EAIvP,IAAmB,EAAY,GAAK,YAAY;AACpD,QAAM,EAA2B,GAAK,GAAkB,EAAc;;;AAG1E,SAAO;IAEV;CACD,mBAAmB,EACjB,WAAW,SAAmB,GAAK,GAAe;AAGhD,MAAI,EAAc,KAAK,EAAuB,IAKxC,CADsB,EAAY,GAAK,eAAe,EAChC;AAIxB,OADuB,EAAY,GAAK,YAAY,CAElD,OAAU,MAAM,mGAAmG;AAKrH,UAAO,EAA8C,GAAK,0CAA0C,EAAmB,mBAAmB,WAAW,EAAE,WAAW;;AAGtK,SAAO;IAEV;CACF,EACF,EACF;AACD,SAAS,EAAuB,GAAc;AAC5C,QAAO,EAAQ,EAAa,mBAAoB,EAAQ,EAAa"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import e from "../helpers/features/getAdditionalContent.js";
|
|
2
|
+
import t from "../helpers/features/transformContent.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/[Content_Types].xml.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var i = n.sheetIds, a = n.features, o = n.sheetsOptions, s = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\"><Default ContentType=\"application/xml\" Extension=\"xml\"/><Default ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" Extension=\"rels\"/><Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" PartName=\"/xl/workbook.xml\"/><Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml\" PartName=\"/xl/sharedStrings.xml\"/><Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\" PartName=\"/xl/styles.xml\"/>" + i.map(function(e) {
|
|
6
|
+
return `<Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet${e}.xml"/>`;
|
|
7
|
+
}).join("") + i.map(function(e) {
|
|
8
|
+
return r(e);
|
|
9
|
+
}).join("") + e("[Content_Types].xml", a, o) + "</Types>";
|
|
10
|
+
return s = t(s, "[Content_Types].xml", a, o), s;
|
|
11
|
+
}
|
|
12
|
+
function r(e) {
|
|
13
|
+
return `<Override ContentType="application/vnd.openxmlformats-officedocument.drawing+xml" PartName="/xl/drawings/drawing${e}.xml"/>`;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as default, r as getDrawingContentTypeXml };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=_Content_Types_.xml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_Content_Types_.xml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/files/[Content_Types].xml.js"],"sourcesContent":["import getAdditionalContent from '../helpers/features/getAdditionalContent.js';\nimport transformContent from '../helpers/features/transformContent.js';\nexport default function generateContentTypesXml(_ref) {\n var sheetIds = _ref.sheetIds,\n features = _ref.features,\n sheetsOptions = _ref.sheetsOptions;\n var xml = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' + '<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">' + '<Default ContentType=\"application/xml\" Extension=\"xml\"/>' + '<Default ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" Extension=\"rels\"/>' + '<Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\" PartName=\"/xl/workbook.xml\"/>' + '<Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml\" PartName=\"/xl/sharedStrings.xml\"/>' + '<Override ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\" PartName=\"/xl/styles.xml\"/>' + sheetIds.map(function (sheetId) {\n return \"<Override ContentType=\\\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\\\" PartName=\\\"/xl/worksheets/sheet\".concat(sheetId, \".xml\\\"/>\");\n }).join('') + sheetIds.map(function (sheetId) {\n return getDrawingContentTypeXml(sheetId);\n }).join('') +\n // Apply any plugins that insert additional content to this XML.\n getAdditionalContent('[Content_Types].xml', features, sheetsOptions) + '</Types>';\n\n // Apply any plugins that transform this XML.\n xml = transformContent(xml, '[Content_Types].xml', features, sheetsOptions);\n return xml;\n}\nexport function getDrawingContentTypeXml(sheetId) {\n return \"<Override ContentType=\\\"application/vnd.openxmlformats-officedocument.drawing+xml\\\" PartName=\\\"/xl/drawings/drawing\".concat(sheetId, \".xml\\\"/>\");\n}\n//# sourceMappingURL=[Content_Types].xml.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAwB,EAAwB,GAAM;CACpD,IAAI,IAAW,EAAK,UAClB,IAAW,EAAK,UAChB,IAAgB,EAAK,eACnB,IAAM,gsBAAksB,EAAS,IAAI,SAAU,GAAS;AAC1uB,SAAO,mIAA6I;GACpJ,CAAC,KAAK,GAAG,GAAG,EAAS,IAAI,SAAU,GAAS;AAC5C,SAAO,EAAyB,EAAQ;GACxC,CAAC,KAAK,GAAG,GAEX,EAAqB,uBAAuB,GAAU,EAAc,GAAG;AAIvE,QADA,IAAM,EAAiB,GAAK,uBAAuB,GAAU,EAAc,EACpE;;AAET,SAAgB,EAAyB,GAAS;AAChD,QAAO,mHAA6H"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import e from "../helpers/features/getAdditionalContent.js";
|
|
2
|
+
import t from "../helpers/features/transformContent.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var a = n.sheetIndex, o = n.sheetId, s = n.sheetOptions, c = n.features, l = r + e("xl/drawings/drawing{id}.xml", c, s, {
|
|
6
|
+
sheetIndex: a,
|
|
7
|
+
sheetId: o
|
|
8
|
+
}) + i;
|
|
9
|
+
return l = t(l, "xl/drawings/drawing{id}.xml", c, s, {
|
|
10
|
+
sheetIndex: a,
|
|
11
|
+
sheetId: o
|
|
12
|
+
}), l;
|
|
13
|
+
}
|
|
14
|
+
var r = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><xdr:wsDr xmlns:xdr=\"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">", i = "</xdr:wsDr>";
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as DRAWING_XML_END, r as DRAWING_XML_START, n as default };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=drawing.xml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawing.xml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js"],"sourcesContent":["import getAdditionalContent from '../helpers/features/getAdditionalContent.js';\nimport transformContent from '../helpers/features/transformContent.js';\n\n// https://gitlab.com/catamphetamine/write-excel-file/-/blob/main/docs/IMAGES.md\nexport default function generateDrawingXml(_ref) {\n var sheetIndex = _ref.sheetIndex,\n sheetId = _ref.sheetId,\n sheetOptions = _ref.sheetOptions,\n features = _ref.features;\n var xml = DRAWING_XML_START +\n // Apply any plugins that insert additional content to this XML.\n getAdditionalContent('xl/drawings/drawing{id}.xml', features, sheetOptions, {\n sheetIndex: sheetIndex,\n sheetId: sheetId\n }) + DRAWING_XML_END;\n\n // Apply any plugins that transform this XML.\n xml = transformContent(xml, 'xl/drawings/drawing{id}.xml', features, sheetOptions, {\n sheetIndex: sheetIndex,\n sheetId: sheetId\n });\n return xml;\n}\nexport var DRAWING_XML_START = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' + '<xdr:wsDr xmlns:xdr=\"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing\" xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\">';\nexport var DRAWING_XML_END = '</xdr:wsDr>';\n//# sourceMappingURL=drawing.xml.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAIA,SAAwB,EAAmB,GAAM;CAC/C,IAAI,IAAa,EAAK,YACpB,IAAU,EAAK,SACf,IAAe,EAAK,cACpB,IAAW,EAAK,UACd,IAAM,IAEV,EAAqB,+BAA+B,GAAU,GAAc;EAC9D;EACH;EACV,CAAC,GAAG;AAOL,QAJA,IAAM,EAAiB,GAAK,+BAA+B,GAAU,GAAc;EACrE;EACH;EACV,CAAC,EACK;;AAET,IAAW,IAAoB,+NACpB,IAAkB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import e from "../helpers/features/getAdditionalContent.js";
|
|
2
|
+
import t from "../helpers/features/transformContent.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = n.sheetIndex, i = n.sheetId, a = n.sheetOptions, o = n.features, s = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">" + e("xl/drawings/_rels/drawing{id}.xml.rels", o, a, {
|
|
6
|
+
sheetIndex: r,
|
|
7
|
+
sheetId: i
|
|
8
|
+
}) + "</Relationships>";
|
|
9
|
+
return s = t(s, "xl/drawings/_rels/drawing{id}.xml.rels", o, a, {
|
|
10
|
+
sheetIndex: r,
|
|
11
|
+
sheetId: i
|
|
12
|
+
}), s;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { n as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=drawing.xml.rels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawing.xml.rels.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js"],"sourcesContent":["import getAdditionalContent from '../helpers/features/getAdditionalContent.js';\nimport transformContent from '../helpers/features/transformContent.js';\nexport default function generateDrawingXmlRels(_ref) {\n var sheetIndex = _ref.sheetIndex,\n sheetId = _ref.sheetId,\n sheetOptions = _ref.sheetOptions,\n features = _ref.features;\n var xml = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' + '<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">' +\n // Apply any plugins that insert additional content to this XML.\n getAdditionalContent('xl/drawings/_rels/drawing{id}.xml.rels', features, sheetOptions, {\n sheetIndex: sheetIndex,\n sheetId: sheetId\n }) + '</Relationships>';\n\n // Apply any plugins that transform this XML.\n xml = transformContent(xml, 'xl/drawings/_rels/drawing{id}.xml.rels', features, sheetOptions, {\n sheetIndex: sheetIndex,\n sheetId: sheetId\n });\n return xml;\n}\n//# sourceMappingURL=drawing.xml.rels.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAwB,EAAuB,GAAM;CACnD,IAAI,IAAa,EAAK,YACpB,IAAU,EAAK,SACf,IAAe,EAAK,cACpB,IAAW,EAAK,UACd,IAAM,wJAEV,EAAqB,0CAA0C,GAAU,GAAc;EACzE;EACH;EACV,CAAC,GAAG;AAOL,QAJA,IAAM,EAAiB,GAAK,0CAA0C,GAAU,GAAc;EAChF;EACH;EACV,CAAC,EACK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e from "../helpers/features/getAdditionalContent.js";
|
|
2
|
+
import t from "../helpers/features/transformContent.js";
|
|
3
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/rels.js
|
|
4
|
+
function n(n) {
|
|
5
|
+
var r = n.features, i = n.sheetsOptions, a = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"><Relationship Id=\"rId-workbook-1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>" + e("_rels/.rels", r, i) + "</Relationships>";
|
|
6
|
+
return a = t(a, "_rels/.rels", r, i), a;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=rels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rels.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/files/rels.js"],"sourcesContent":["import getAdditionalContent from '../helpers/features/getAdditionalContent.js';\nimport transformContent from '../helpers/features/transformContent.js';\nexport default function generateRelsXml(_ref) {\n var features = _ref.features,\n sheetsOptions = _ref.sheetsOptions;\n var xml = '<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>' + '<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">' + '<Relationship Id=\"rId-workbook-1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>' +\n // Apply any plugins that insert additional content to this XML.\n getAdditionalContent('_rels/.rels', features, sheetsOptions) + '</Relationships>';\n\n // Apply any plugins that transform this XML.\n xml = transformContent(xml, '_rels/.rels', features, sheetsOptions);\n return xml;\n}\n//# sourceMappingURL=rels.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAwB,EAAgB,GAAM;CAC5C,IAAI,IAAW,EAAK,UAClB,IAAgB,EAAK,eACnB,IAAM,oTAEV,EAAqB,eAAe,GAAU,EAAc,GAAG;AAI/D,QADA,IAAM,EAAiB,GAAK,eAAe,GAAU,EAAc,EAC5D"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import e from "../../xml/sanitizeTextContent.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5
|
+
if (r) return (r = r.call(e)).next.bind(r);
|
|
6
|
+
if (Array.isArray(e) || (r = n(e)) || t && e && typeof e.length == "number") {
|
|
7
|
+
r && (e = r);
|
|
8
|
+
var i = 0;
|
|
9
|
+
return function() {
|
|
10
|
+
return i >= e.length ? { done: !0 } : {
|
|
11
|
+
done: !1,
|
|
12
|
+
value: e[i++]
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function n(e, t) {
|
|
19
|
+
if (e) {
|
|
20
|
+
if (typeof e == "string") return r(e, t);
|
|
21
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
22
|
+
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) ? r(e, t) : void 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function r(e, t) {
|
|
26
|
+
(t == null || t > e.length) && (t = e.length);
|
|
27
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
function i(n) {
|
|
31
|
+
var r = "<?xml version=\"1.0\"?>";
|
|
32
|
+
r += "<sst xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">";
|
|
33
|
+
for (var i = t(n), a; !(a = i()).done;) {
|
|
34
|
+
var o = a.value, s = o.trim().length === o.length ? "" : " xml:space=\"preserve\"";
|
|
35
|
+
r += `<si><t${s}>`, r += e(o), r += "</t></si>";
|
|
36
|
+
}
|
|
37
|
+
return r += "</sst>", r;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { i as default };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=sharedStrings.xml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedStrings.xml.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.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 sanitizeTextContent from '../../xml/sanitizeTextContent.js';\nexport default function generateSharedStringsXml(sharedStrings) {\n var xml = '<?xml version=\"1.0\"?>';\n xml += '<sst xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">';\n for (var _iterator = _createForOfIteratorHelperLoose(sharedStrings), _step; !(_step = _iterator()).done;) {\n var string = _step.value;\n var attributes = string.trim().length === string.length ? '' : ' xml:space=\"preserve\"';\n xml += \"<si><t\".concat(attributes, \">\");\n xml += sanitizeTextContent(string);\n xml += '</t></si>';\n }\n xml += '</sst>';\n return xml;\n}\n//# sourceMappingURL=sharedStrings.xml.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;;AAEhJ,SAAwB,EAAyB,GAAe;CAC9D,IAAI,IAAM;AACV,MAAO;AACP,MAAK,IAAI,IAAY,EAAgC,EAAc,EAAE,GAAO,EAAE,IAAQ,GAAW,EAAE,OAAO;EACxG,IAAI,IAAS,EAAM,OACf,IAAa,EAAO,MAAM,CAAC,WAAW,EAAO,SAAS,KAAK;AAG/D,EAFA,KAAO,SAAgB,MACvB,KAAO,EAAoB,EAAO,EAClC,KAAO;;AAGT,QADA,KAAO,UACA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import e from "../../../xml/sanitizeTextContent.js";
|
|
2
|
+
import t from "../../helpers/getCellAddress.js";
|
|
3
|
+
import n from "../../helpers/convertDateToSerialNumber.js";
|
|
4
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js
|
|
5
|
+
function r(e, t) {
|
|
6
|
+
return c(e) || s(e, t) || a(e, t) || i();
|
|
7
|
+
}
|
|
8
|
+
function i() {
|
|
9
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10
|
+
}
|
|
11
|
+
function a(e, t) {
|
|
12
|
+
if (e) {
|
|
13
|
+
if (typeof e == "string") return o(e, t);
|
|
14
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
15
|
+
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) ? o(e, t) : void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function o(e, t) {
|
|
19
|
+
(t == null || t > e.length) && (t = e.length);
|
|
20
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
function s(e, t) {
|
|
24
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
25
|
+
if (n != null) {
|
|
26
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
27
|
+
try {
|
|
28
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
29
|
+
if (Object(n) !== n) return;
|
|
30
|
+
c = !1;
|
|
31
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
l = !0, i = e;
|
|
34
|
+
} finally {
|
|
35
|
+
try {
|
|
36
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
37
|
+
} finally {
|
|
38
|
+
if (l) throw i;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return s;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function c(e) {
|
|
45
|
+
if (Array.isArray(e)) return e;
|
|
46
|
+
}
|
|
47
|
+
function l(e, n, i, a) {
|
|
48
|
+
var o = n.value, s = n.type, c = n.cellStyleId, l = n.findOrCreateSharedString;
|
|
49
|
+
if (o === null && c === void 0) return "";
|
|
50
|
+
var f = { r: t(a, i) };
|
|
51
|
+
if (c !== void 0 && (f.s = String(c)), o === null) return e("c", f, null, i);
|
|
52
|
+
if (s === Date && c === void 0) throw Error(`No \`format\` was specified for a \`Date\` value in a cell in row ${a + 1} column ${i + 1}. Either specify a \`format\` for this cell or specify a default global one by passing \`dateFormat\` option to \`writeXlsxFile()\` function`);
|
|
53
|
+
var m = d(s, o, l), h = u(s);
|
|
54
|
+
h && (f.t = h);
|
|
55
|
+
var g = r(p(s), 2), _ = g[0], v = g[1];
|
|
56
|
+
return e("c", f, _ + m + v, i);
|
|
57
|
+
}
|
|
58
|
+
function u(e) {
|
|
59
|
+
switch (e) {
|
|
60
|
+
case String: return "s";
|
|
61
|
+
case Number: return;
|
|
62
|
+
case Date: return;
|
|
63
|
+
case Boolean: return "b";
|
|
64
|
+
case "Formula": return;
|
|
65
|
+
default: throw Error(`Unknown type: ${e && e.name || e}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function d(t, r, i) {
|
|
69
|
+
switch (t) {
|
|
70
|
+
case String:
|
|
71
|
+
if (typeof r != "string") throw Error(`Invalid cell value: ${r}. Expected a string`);
|
|
72
|
+
return i(r);
|
|
73
|
+
case Number:
|
|
74
|
+
if (typeof r != "number") throw Error(`Invalid cell value: ${r}. Expected a number`);
|
|
75
|
+
return String(r);
|
|
76
|
+
case Date:
|
|
77
|
+
if (!(r instanceof Date)) throw Error(`Invalid cell value: ${r}. Expected a Date`);
|
|
78
|
+
return String(n(r));
|
|
79
|
+
case Boolean:
|
|
80
|
+
if (typeof r != "boolean") throw Error(`Invalid cell value: ${r}. Expected a boolean`);
|
|
81
|
+
return r ? "1" : "0";
|
|
82
|
+
case "Formula":
|
|
83
|
+
if (typeof r != "string") throw Error(`Invalid cell value: ${r}. Expected a string`);
|
|
84
|
+
return e(r);
|
|
85
|
+
default: throw Error(`Unknown type: ${t && t.name || t}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
var f = /</g;
|
|
89
|
+
function p(e) {
|
|
90
|
+
var t = m(e);
|
|
91
|
+
return [t, t.replace(f, "</")];
|
|
92
|
+
}
|
|
93
|
+
function m(e) {
|
|
94
|
+
switch (e) {
|
|
95
|
+
case "Formula": return "<f>";
|
|
96
|
+
default: return "<v>";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { l as default };
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js"],"sourcesContent":["function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure 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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nimport sanitizeTextContent from '../../../xml/sanitizeTextContent.js';\nimport getCellAddress from '../../helpers/getCellAddress.js';\nimport convertDateToSerialNumber from '../../helpers/convertDateToSerialNumber.js';\nexport default function generateCell(tag, _ref, index, rowIndex) {\n var value = _ref.value,\n type = _ref.type,\n cellStyleId = _ref.cellStyleId,\n findOrCreateSharedString = _ref.findOrCreateSharedString;\n // Empty cells could be skipped completely,\n // if they don't have a style applied to them,\n // like border or background color.\n if (value === null) {\n if (cellStyleId === undefined) {\n return '';\n }\n }\n var cellAttributes = {\n r: getCellAddress(rowIndex, index)\n };\n\n // Available formatting style IDs (built-in in Excel):\n // https://xlsxwriter.readthedocs.io/format.html#format-set-num-format\n // `2` — 0.00\n // `3` — #,##0\n if (cellStyleId !== undefined) {\n // From the attribute s=\"12\" we know that the cell's formatting is stored at the 13th (zero-based index) <xf> within the <cellXfs>\n cellAttributes.s = String(cellStyleId);\n }\n if (value === null) {\n return tag('c', cellAttributes, null, index);\n }\n\n // Validate date format.\n if (type === Date && cellStyleId === undefined) {\n throw new Error(\"No `format` was specified for a `Date` value in a cell in row \".concat(rowIndex + 1, \" column \").concat(index + 1, \". Either specify a `format` for this cell or specify a default global one by passing `dateFormat` option to `writeXlsxFile()` function\"));\n }\n var valueTextContent = getValueTextContent(type, value, findOrCreateSharedString);\n var typeAttribute = getTypeAttribute(type);\n\n // The default value for `t` is `\"n\"` (a number or a date).\n if (typeAttribute) {\n cellAttributes.t = typeAttribute;\n }\n var _getOpeningAndClosing = getOpeningAndClosingTags(type),\n _getOpeningAndClosing2 = _slicedToArray(_getOpeningAndClosing, 2),\n valueOpeningTags = _getOpeningAndClosing2[0],\n valueClosingTags = _getOpeningAndClosing2[1];\n var cellXml = valueOpeningTags + valueTextContent + valueClosingTags;\n return tag('c', cellAttributes, cellXml, index);\n}\nfunction getTypeAttribute(type) {\n // Available Excel cell types:\n // https://github.com/SheetJS/sheetjs/blob/19620da30be2a7d7b9801938a0b9b1fd3c4c4b00/docbits/52_datatype.md\n //\n // Some other document (seems to be old):\n // http://webapp.docx4java.org/OnlineDemo/ecma376/SpreadsheetML/ST_CellType.html\n //\n switch (type) {\n case String:\n return 's';\n // I don't know why did I comment out the use of \"inlineStr\" XLSX type.\n // Perhaps there were some issues with it. Or perhaps there weren't and everyone else just uses \"s\".\n // // \"inlineStr\" type is used instead of \"s\" to avoid creating a \"shared strings\" index.\n // return 'inlineStr'\n\n case Number:\n // `n` is the default cell type (if no `t` has been specified).\n // return 'n'\n return;\n case Date:\n // `n` is the default cell type (if no `t` has been specified).\n // return 'n'\n return;\n case Boolean:\n return 'b';\n case 'Formula':\n return;\n default:\n throw new Error(\"Unknown type: \".concat(type && type.name || type));\n }\n}\nfunction getValueTextContent(type, value, findOrCreateSharedString) {\n // Available Excel cell types:\n // https://github.com/SheetJS/sheetjs/blob/19620da30be2a7d7b9801938a0b9b1fd3c4c4b00/docbits/52_datatype.md\n //\n // Some other document (seems to be old):\n // http://webapp.docx4java.org/OnlineDemo/ecma376/SpreadsheetML/ST_CellType.html\n //\n switch (type) {\n case String:\n if (typeof value !== 'string') {\n throw new Error(\"Invalid cell value: \".concat(value, \". Expected a string\"));\n }\n return findOrCreateSharedString(value);\n case Number:\n if (typeof value !== 'number') {\n throw new Error(\"Invalid cell value: \".concat(value, \". Expected a number\"));\n }\n return String(value);\n case Date:\n if (!(value instanceof Date)) {\n throw new Error(\"Invalid cell value: \".concat(value, \". Expected a Date\"));\n }\n // \"d\" type doesn't seem to work.\n // return value.toISOString()\n return String(convertDateToSerialNumber(value));\n case Boolean:\n if (typeof value !== 'boolean') {\n throw new Error(\"Invalid cell value: \".concat(value, \". Expected a boolean\"));\n }\n return value ? '1' : '0';\n case 'Formula':\n if (typeof value !== 'string') {\n throw new Error(\"Invalid cell value: \".concat(value, \". Expected a string\"));\n }\n return sanitizeTextContent(value);\n default:\n throw new Error(\"Unknown type: \".concat(type && type.name || type));\n }\n}\nvar TAG_BRACKET_LEFT_REGEXP = /</g;\nfunction getOpeningAndClosingTags(type) {\n var openingTags = getOpeningTags(type);\n var closingTags = openingTags.replace(TAG_BRACKET_LEFT_REGEXP, '</');\n return [openingTags, closingTags];\n}\nfunction getOpeningTags(type) {\n switch (type) {\n // case 'inlineStr':\n // return '<is><t>'\n case 'Formula':\n return '<f>';\n default:\n return '<v>';\n }\n}\n//# sourceMappingURL=cell.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,SAAS,EAAe,GAAG,GAAG;AAAE,QAAO,EAAgB,EAAE,IAAI,EAAsB,GAAG,EAAE,IAAI,EAA4B,GAAG,EAAE,IAAI,GAAkB;;AACnJ,SAAS,IAAmB;AAAE,OAAU,UAAU,4IAA4I;;AAC9L,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;;AAChJ,SAAS,EAAsB,GAAG,GAAG;CAAE,IAAI,IAAY,KAAR,OAAY,OAAsB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;AAAe,KAAY,KAAR,MAAW;EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;AAAG,MAAI;AAAE,OAAI,KAAK,IAAI,EAAE,KAAK,EAAE,EAAE,MAAY,MAAN,GAAS;AAAE,QAAI,OAAO,EAAE,KAAK,EAAG;AAAQ,QAAI,CAAC;SAAU,QAAO,EAAE,KAAK,IAAI,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,WAAW,IAAI,IAAI,CAAC;WAAa,GAAG;AAAE,OAAI,CAAC,GAAG,IAAI;YAAa;AAAE,OAAI;AAAE,QAAI,CAAC,KAAa,EAAE,UAAV,SAAwB,IAAI,EAAE,QAAW,EAAE,OAAO,EAAE,KAAK,GAAI;aAAkB;AAAE,QAAI,EAAG,OAAM;;;AAAO,SAAO;;;AACphB,SAAS,EAAgB,GAAG;AAAE,KAAI,MAAM,QAAQ,EAAE,CAAE,QAAO;;AAI3D,SAAwB,EAAa,GAAK,GAAM,GAAO,GAAU;CAC/D,IAAI,IAAQ,EAAK,OACf,IAAO,EAAK,MACZ,IAAc,EAAK,aACnB,IAA2B,EAAK;AAIlC,KAAI,MAAU,QACR,MAAgB,KAAA,EAClB,QAAO;CAGX,IAAI,IAAiB,EACnB,GAAG,EAAe,GAAU,EAAM,EACnC;AAUD,KAJI,MAAgB,KAAA,MAElB,EAAe,IAAI,OAAO,EAAY,GAEpC,MAAU,KACZ,QAAO,EAAI,KAAK,GAAgB,MAAM,EAAM;AAI9C,KAAI,MAAS,QAAQ,MAAgB,KAAA,EACnC,OAAU,MAAM,qEAAwE,IAAW,YAAsB,IAAQ,gJAA6I;CAEhR,IAAI,IAAmB,EAAoB,GAAM,GAAO,EAAyB,EAC7E,IAAgB,EAAiB,EAAK;AAG1C,CAAI,MACF,EAAe,IAAI;CAErB,IACE,IAAyB,EADC,EAAyB,EAAK,EACO,EAAE,EACjE,IAAmB,EAAuB,IAC1C,IAAmB,EAAuB;AAE5C,QAAO,EAAI,KAAK,GADF,IAAmB,IAAmB,GACX,EAAM;;AAEjD,SAAS,EAAiB,GAAM;AAO9B,SAAQ,GAAR;EACE,KAAK,OACH,QAAO;EAMT,KAAK,OAGH;EACF,KAAK,KAGH;EACF,KAAK,QACH,QAAO;EACT,KAAK,UACH;EACF,QACE,OAAU,MAAM,iBAAwB,KAAQ,EAAK,QAAQ,IAAM;;;AAGzE,SAAS,EAAoB,GAAM,GAAO,GAA0B;AAOlE,SAAQ,GAAR;EACE,KAAK;AACH,OAAI,OAAO,KAAU,SACnB,OAAU,MAAM,uBAA8B,uBAA8B;AAE9E,UAAO,EAAyB,EAAM;EACxC,KAAK;AACH,OAAI,OAAO,KAAU,SACnB,OAAU,MAAM,uBAA8B,uBAA8B;AAE9E,UAAO,OAAO,EAAM;EACtB,KAAK;AACH,OAAI,EAAE,aAAiB,MACrB,OAAU,MAAM,uBAA8B,qBAA4B;AAI5E,UAAO,OAAO,EAA0B,EAAM,CAAC;EACjD,KAAK;AACH,OAAI,OAAO,KAAU,UACnB,OAAU,MAAM,uBAA8B,wBAA+B;AAE/E,UAAO,IAAQ,MAAM;EACvB,KAAK;AACH,OAAI,OAAO,KAAU,SACnB,OAAU,MAAM,uBAA8B,uBAA8B;AAE9E,UAAO,EAAoB,EAAM;EACnC,QACE,OAAU,MAAM,iBAAwB,KAAQ,EAAK,QAAQ,IAAM;;;AAGzE,IAAI,IAA0B;AAC9B,SAAS,EAAyB,GAAM;CACtC,IAAI,IAAc,EAAe,EAAK;AAEtC,QAAO,CAAC,GADU,EAAY,QAAQ,GAAyB,KAAK,CACnC;;AAEnC,SAAS,EAAe,GAAM;AAC5B,SAAQ,GAAR;EAGE,KAAK,UACH,QAAO;EACT,QACE,QAAO"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
if (!t) return "";
|
|
4
|
+
var r = t.width;
|
|
5
|
+
if (!r) return "";
|
|
6
|
+
var i = n + 1;
|
|
7
|
+
return e("col", {
|
|
8
|
+
min: i,
|
|
9
|
+
max: i,
|
|
10
|
+
width: r,
|
|
11
|
+
customWidth: 1
|
|
12
|
+
}, null, n);
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as default };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js"],"sourcesContent":["// import floatToInteger from './helpers/floatToInteger.js'\n\nexport default function generateColumnDescription(tag, column, index) {\n // Guards against a developer forgetting to put some columns\n // in the `columns` list.\n // For example, a developer may pass `data` with `7` columns\n // but only specify `6` of them in the `columns` list.\n // Hence, it handles missing column description here.\n if (!column) {\n return '';\n }\n\n // Get the column width (in characters).\n var width = column.width;\n\n // If no width specified (0 width is not allowed as well), then\n // leave the definition empty and the width will be applied automatically.\n if (!width) {\n return '';\n }\n\n // To ensure the column number starts as in Excel.\n var columnNumber = index + 1;\n\n // `column` format is described here:\n // https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.spreadsheet.column.aspx\n //\n // `customWidth=\"1\"` is required in order for `width=\"...\"` to be applied.\n // Otherwise, Microsoft Office 2007 Excel wouldn't apply the custom column `width`.\n //\n var attributes = {\n min: columnNumber,\n max: columnNumber,\n width: width,\n customWidth: 1\n };\n return tag('col', attributes, null, index);\n}\n\n// /**\n// * Converts column width in pixels to column width in characters.\n// * Column width is measured as the number of characters of the maximum digit width\n// * of the numbers 0, 1, 2, …, 9 as rendered in the normal style's font.\n// * There are 4 pixels of margin padding (two on each side), plus 1 pixel padding\n// * for the gridlines.\n// * @param {number} widthInPixels — Target column width in pixels.\n// * @return {number}\n// */\n// function getColumnWidthInCharacters(columnWidthInPixels) {\n// // Using the Calibri font as an example,\n// // the maximum width of a digit character\n// // when using font size \"11 pt\" is equal to 7 pixels (at 96 dpi).\n// // TODO make it configurable?\n// const maximumDigitWidth = 7 // in pixels\n//\n// // To translate from pixels to character width, use this calculation:\n// // =Truncate(({pixels}-5)/{Maximum Digit Width} * 100+0.5)/100\n// const characterWidth = floatToInteger((((columnWidthInPixels - 5) / maximumDigitWidth) * 100) + 0.5) / 100\n//\n// // To translate from character width to real width, use this calculation:\n// // =Truncate([{Number of Characters} * {Maximum Digit Width} + {5 pixel padding}]/{Maximum Digit Width}*256)/256\n// return floatToInteger((((characterWidth * maximumDigitWidth) + 5) / maximumDigitWidth) * 256) / 256\n// }\n//# sourceMappingURL=column.js.map"],"x_google_ignoreList":[0],"mappings":";AAEA,SAAwB,EAA0B,GAAK,GAAQ,GAAO;AAMpE,KAAI,CAAC,EACH,QAAO;CAIT,IAAI,IAAQ,EAAO;AAInB,KAAI,CAAC,EACH,QAAO;CAIT,IAAI,IAAe,IAAQ;AAc3B,QAAO,EAAI,OANM;EACf,KAAK;EACL,KAAK;EACE;EACP,aAAa;EACd,EAC6B,MAAM,EAAM"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import e from "./column.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
if (n) {
|
|
5
|
+
var r = n.map(function(n, r) {
|
|
6
|
+
return e(t, n, r);
|
|
7
|
+
}).join("");
|
|
8
|
+
if (r) return t("cols", null, r);
|
|
9
|
+
}
|
|
10
|
+
return "";
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t as default };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"columns.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js"],"sourcesContent":["import generateColumnDescription from './column.js';\nexport default function generateColumnsDescription(tag, columns) {\n // If column options are specified.\n if (columns) {\n // `cols` format is described here:\n // https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.spreadsheet.columns.aspx\n var columnsXml = columns.map(function (column, index) {\n return generateColumnDescription(tag, column, index);\n }).join('');\n\n // If any column has any custom properties, create a `<cols/>` element.\n // An empty `<cols></cols>` element would produce an error in some versions of Excel.\n // https://gitlab.com/catamphetamine/write-excel-file/-/issues/6\n if (columnsXml) {\n return tag('cols', null, columnsXml);\n }\n }\n\n // Return an empty string rather than an empty `<cols></cols>` element.\n // An empty `<cols></cols>` element would produce an error in some versions of Excel.\n // https://gitlab.com/catamphetamine/write-excel-file/-/issues/6\n return '';\n}\n//# sourceMappingURL=columns.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,EAA2B,GAAK,GAAS;AAE/D,KAAI,GAAS;EAGX,IAAI,IAAa,EAAQ,IAAI,SAAU,GAAQ,GAAO;AACpD,UAAO,EAA0B,GAAK,GAAQ,EAAM;IACpD,CAAC,KAAK,GAAG;AAKX,MAAI,EACF,QAAO,EAAI,QAAQ,MAAM,EAAW;;AAOxC,QAAO"}
|
package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawingReference.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js"],"sourcesContent":["export default function generateDrawingReference(tag) {\n // Each sheet has at most one \"drawing\", so the drawing ID is always `1`.\n // Here it always creates a drawing, even if it's going to be empty.\n // Such behavior is more convenient for \"features\" (plugins)\n // that might rely on a drawing to already exist.\n // For example, images \"feature\" uses this drawing.\n return tag('drawing', {\n 'r:id': 'rId-drawing-1'\n });\n}\nexport var UNUSED_DRAWING_REFERENCE_XML = '<drawing r:id=\"rId-drawing-1\"/>';\n//# sourceMappingURL=drawingReference.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAyB,GAAK;AAMpD,QAAO,EAAI,WAAW,EACpB,QAAQ,iBACT,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import e from "../../../helpers/hasAlignment.js";
|
|
2
|
+
import t from "../../../helpers/hasBorder.js";
|
|
3
|
+
import n from "../../../helpers/hasFill.js";
|
|
4
|
+
import r from "../../../helpers/hasFont.js";
|
|
5
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js
|
|
6
|
+
function i(i, o) {
|
|
7
|
+
var s = i.align, c = i.alignVertical, l = i.textRotation, u = i.indent, d = i.wrap, f = i.fontFamily, p = i.fontSize, m = i.fontWeight, h = i.fontStyle, g = i.textDecoration, _ = i.textColor, v = i.backgroundColor, y = i.fillPatternStyle, b = i.fillPatternColor, x = i.borderColor, S = i.borderStyle, C = i.leftBorderColor, w = i.leftBorderStyle, T = i.rightBorderColor, E = i.rightBorderStyle, D = i.topBorderColor, O = i.topBorderStyle, k = i.bottomBorderColor, A = i.bottomBorderStyle;
|
|
8
|
+
if (e({
|
|
9
|
+
align: s,
|
|
10
|
+
alignVertical: c,
|
|
11
|
+
textRotation: l,
|
|
12
|
+
indent: u,
|
|
13
|
+
wrap: d
|
|
14
|
+
}) || r({
|
|
15
|
+
fontFamily: f,
|
|
16
|
+
fontSize: p,
|
|
17
|
+
fontWeight: m,
|
|
18
|
+
fontStyle: h,
|
|
19
|
+
textDecoration: g,
|
|
20
|
+
textColor: _
|
|
21
|
+
}) || n({
|
|
22
|
+
backgroundColor: v,
|
|
23
|
+
fillPatternStyle: y,
|
|
24
|
+
fillPatternColor: b
|
|
25
|
+
}) || t({
|
|
26
|
+
borderColor: x,
|
|
27
|
+
borderStyle: S,
|
|
28
|
+
leftBorderColor: C,
|
|
29
|
+
leftBorderStyle: w,
|
|
30
|
+
rightBorderColor: T,
|
|
31
|
+
rightBorderStyle: E,
|
|
32
|
+
topBorderColor: D,
|
|
33
|
+
topBorderStyle: O,
|
|
34
|
+
bottomBorderColor: k,
|
|
35
|
+
bottomBorderStyle: A
|
|
36
|
+
})) return a({
|
|
37
|
+
align: s,
|
|
38
|
+
alignVertical: c,
|
|
39
|
+
textRotation: l,
|
|
40
|
+
indent: u,
|
|
41
|
+
wrap: d,
|
|
42
|
+
fontFamily: f,
|
|
43
|
+
fontSize: p,
|
|
44
|
+
fontWeight: m,
|
|
45
|
+
fontStyle: h,
|
|
46
|
+
textDecoration: g,
|
|
47
|
+
textColor: _,
|
|
48
|
+
backgroundColor: v,
|
|
49
|
+
fillPatternStyle: y,
|
|
50
|
+
fillPatternColor: b,
|
|
51
|
+
borderColor: x,
|
|
52
|
+
borderStyle: S,
|
|
53
|
+
leftBorderColor: C,
|
|
54
|
+
leftBorderStyle: w,
|
|
55
|
+
rightBorderColor: T,
|
|
56
|
+
rightBorderStyle: E,
|
|
57
|
+
topBorderColor: D,
|
|
58
|
+
topBorderStyle: O,
|
|
59
|
+
bottomBorderColor: k,
|
|
60
|
+
bottomBorderStyle: A
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function a(e) {
|
|
64
|
+
var t = {};
|
|
65
|
+
for (var n in e) e[n] !== void 0 && (t[n] = e[n]);
|
|
66
|
+
return t;
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { i as default };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=getCellStyleProperties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCellStyleProperties.js","names":[],"sources":["../../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js"],"sourcesContent":["import hasAlignment from '../../../helpers/hasAlignment.js';\nimport hasBorder from '../../../helpers/hasBorder.js';\nimport hasFill from '../../../helpers/hasFill.js';\nimport hasFont from '../../../helpers/hasFont.js';\nexport default function getCellStyleProperties(cell, features) {\n var align = cell.align,\n alignVertical = cell.alignVertical,\n textRotation = cell.textRotation,\n indent = cell.indent,\n wrap = cell.wrap,\n fontFamily = cell.fontFamily,\n fontSize = cell.fontSize,\n fontWeight = cell.fontWeight,\n fontStyle = cell.fontStyle,\n textDecoration = cell.textDecoration,\n textColor = cell.textColor,\n backgroundColor = cell.backgroundColor,\n fillPatternStyle = cell.fillPatternStyle,\n fillPatternColor = cell.fillPatternColor,\n borderColor = cell.borderColor,\n borderStyle = cell.borderStyle,\n leftBorderColor = cell.leftBorderColor,\n leftBorderStyle = cell.leftBorderStyle,\n rightBorderColor = cell.rightBorderColor,\n rightBorderStyle = cell.rightBorderStyle,\n topBorderColor = cell.topBorderColor,\n topBorderStyle = cell.topBorderStyle,\n bottomBorderColor = cell.bottomBorderColor,\n bottomBorderStyle = cell.bottomBorderStyle;\n if (hasAlignment({\n align: align,\n alignVertical: alignVertical,\n textRotation: textRotation,\n indent: indent,\n wrap: wrap\n }) || hasFont({\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n fontStyle: fontStyle,\n textDecoration: textDecoration,\n textColor: textColor\n }) || hasFill({\n backgroundColor: backgroundColor,\n fillPatternStyle: fillPatternStyle,\n fillPatternColor: fillPatternColor\n }) || hasBorder({\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 return omitUndefinedProperties({\n // alignment\n align: align,\n alignVertical: alignVertical,\n textRotation: textRotation,\n indent: indent,\n wrap: wrap,\n // font\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n fontStyle: fontStyle,\n textDecoration: textDecoration,\n textColor: textColor,\n // fill\n backgroundColor: backgroundColor,\n fillPatternStyle: fillPatternStyle,\n fillPatternColor: fillPatternColor,\n // 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 }\n}\nfunction omitUndefinedProperties(object) {\n var filteredObject = {};\n for (var key in object) {\n if (object[key] !== undefined) {\n filteredObject[key] = object[key];\n }\n }\n return filteredObject;\n}\n//# sourceMappingURL=getCellStyleProperties.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;AAIA,SAAwB,EAAuB,GAAM,GAAU;CAC7D,IAAI,IAAQ,EAAK,OACf,IAAgB,EAAK,eACrB,IAAe,EAAK,cACpB,IAAS,EAAK,QACd,IAAO,EAAK,MACZ,IAAa,EAAK,YAClB,IAAW,EAAK,UAChB,IAAa,EAAK,YAClB,IAAY,EAAK,WACjB,IAAiB,EAAK,gBACtB,IAAY,EAAK,WACjB,IAAkB,EAAK,iBACvB,IAAmB,EAAK,kBACxB,IAAmB,EAAK,kBACxB,IAAc,EAAK,aACnB,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,KAAI,EAAa;EACR;EACQ;EACD;EACN;EACF;EACP,CAAC,IAAI,EAAQ;EACA;EACF;EACE;EACD;EACK;EACL;EACZ,CAAC,IAAI,EAAQ;EACK;EACC;EACA;EACnB,CAAC,IAAI,EAAU;EACD;EACA;EACI;EACA;EACC;EACA;EACF;EACA;EACG;EACA;EACpB,CAAC,CACA,QAAO,EAAwB;EAEtB;EACQ;EACD;EACN;EACF;EAEM;EACF;EACE;EACD;EACK;EACL;EAEM;EACC;EACA;EAEL;EACA;EACI;EACA;EACC;EACA;EACF;EACA;EACG;EACA;EACpB,CAAC;;AAGN,SAAS,EAAwB,GAAQ;CACvC,IAAI,IAAiB,EAAE;AACvB,MAAK,IAAI,KAAO,EACd,CAAI,EAAO,OAAS,KAAA,MAClB,EAAe,KAAO,EAAO;AAGjC,QAAO"}
|
package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import e from "../../helpers/getCellAddress.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
return o(e) || a(e, t) || r(e, t) || n();
|
|
5
|
+
}
|
|
6
|
+
function n() {
|
|
7
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8
|
+
}
|
|
9
|
+
function r(e, t) {
|
|
10
|
+
if (e) {
|
|
11
|
+
if (typeof e == "string") return i(e, t);
|
|
12
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
13
|
+
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) ? i(e, t) : void 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function i(e, t) {
|
|
17
|
+
(t == null || t > e.length) && (t = e.length);
|
|
18
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
19
|
+
return r;
|
|
20
|
+
}
|
|
21
|
+
function a(e, t) {
|
|
22
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
23
|
+
if (n != null) {
|
|
24
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
25
|
+
try {
|
|
26
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
27
|
+
if (Object(n) !== n) return;
|
|
28
|
+
c = !1;
|
|
29
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
30
|
+
} catch (e) {
|
|
31
|
+
l = !0, i = e;
|
|
32
|
+
} finally {
|
|
33
|
+
try {
|
|
34
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
35
|
+
} finally {
|
|
36
|
+
if (l) throw i;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return s;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function o(e) {
|
|
43
|
+
if (Array.isArray(e)) return e;
|
|
44
|
+
}
|
|
45
|
+
function s(n, r) {
|
|
46
|
+
if (r.length === 0) return "";
|
|
47
|
+
var i = r.map(function(r, i) {
|
|
48
|
+
var a = t(r, 2), o = a[0], s = a[1];
|
|
49
|
+
return n("mergeCell", { ref: e(o[0], o[1]) + ":" + e(s[0], s[1]) }, null, i);
|
|
50
|
+
}).join("");
|
|
51
|
+
return n("mergeCells", { count: r.length }, i);
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { s as default };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=mergedCellsDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergedCellsDescription.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js"],"sourcesContent":["function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure 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; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nimport getCellAddress from '../../helpers/getCellAddress.js';\n\n// Supports \"merging cells\" across columns and rows.\n// https://rdrr.io/cran/openxlsx/man/mergeCells.html\n//\n// Returned XML example for merged cells range \"A2:C3\":\n// `<sheetData>...</sheetData><mergeCells count=\"1\"><mergeCell ref=\"A2:C3\"/></mergeCells>`\n//\n// Data example:\n//\n// rows:\n// [\n// [...],\n// [\n// { type: String, value: 'abc', columnSpan: 3, rowSpan: 2 },\n// { ... },\n// { ... }\n// ],\n// [...]\n// ]\n\nexport default function generateMergedCellsDescription(tag, mergedCells) {\n if (mergedCells.length === 0) {\n return '';\n }\n var mergeCellsXml = mergedCells.map(function (_ref, index) {\n var _ref2 = _slicedToArray(_ref, 2),\n from = _ref2[0],\n to = _ref2[1];\n var ref = getCellAddress(from[0], from[1]) + ':' + getCellAddress(to[0], to[1]);\n return tag('mergeCell', {\n ref: ref\n }, null, index);\n }).join('');\n return tag('mergeCells', {\n count: mergedCells.length\n }, mergeCellsXml);\n}\n//# sourceMappingURL=mergedCellsDescription.js.map"],"x_google_ignoreList":[0],"mappings":";;AAAA,SAAS,EAAe,GAAG,GAAG;AAAE,QAAO,EAAgB,EAAE,IAAI,EAAsB,GAAG,EAAE,IAAI,EAA4B,GAAG,EAAE,IAAI,GAAkB;;AACnJ,SAAS,IAAmB;AAAE,OAAU,UAAU,4IAA4I;;AAC9L,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;;AAChJ,SAAS,EAAsB,GAAG,GAAG;CAAE,IAAI,IAAY,KAAR,OAAY,OAAsB,OAAO,SAAtB,OAAgC,EAAE,OAAO,aAAa,EAAE;AAAe,KAAY,KAAR,MAAW;EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,IAAI,EAAE,EAAE,IAAI,CAAC,GAAG,IAAI,CAAC;AAAG,MAAI;AAAE,OAAI,KAAK,IAAI,EAAE,KAAK,EAAE,EAAE,MAAY,MAAN,GAAS;AAAE,QAAI,OAAO,EAAE,KAAK,EAAG;AAAQ,QAAI,CAAC;SAAU,QAAO,EAAE,KAAK,IAAI,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,WAAW,IAAI,IAAI,CAAC;WAAa,GAAG;AAAE,OAAI,CAAC,GAAG,IAAI;YAAa;AAAE,OAAI;AAAE,QAAI,CAAC,KAAa,EAAE,UAAV,SAAwB,IAAI,EAAE,QAAW,EAAE,OAAO,EAAE,KAAK,GAAI;aAAkB;AAAE,QAAI,EAAG,OAAM;;;AAAO,SAAO;;;AACphB,SAAS,EAAgB,GAAG;AAAE,KAAI,MAAM,QAAQ,EAAE,CAAE,QAAO;;AAsB3D,SAAwB,EAA+B,GAAK,GAAa;AACvE,KAAI,EAAY,WAAW,EACzB,QAAO;CAET,IAAI,IAAgB,EAAY,IAAI,SAAU,GAAM,GAAO;EACzD,IAAI,IAAQ,EAAe,GAAM,EAAE,EACjC,IAAO,EAAM,IACb,IAAK,EAAM;AAEb,SAAO,EAAI,aAAa,EACtB,KAFQ,EAAe,EAAK,IAAI,EAAK,GAAG,GAAG,MAAM,EAAe,EAAG,IAAI,EAAG,GAAG,EAG9E,EAAE,MAAM,EAAM;GACf,CAAC,KAAK,GAAG;AACX,QAAO,EAAI,cAAc,EACvB,OAAO,EAAY,QACpB,EAAE,EAAc"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return t.orientation ? e("pageMargins", {
|
|
4
|
+
left: .7,
|
|
5
|
+
right: .7,
|
|
6
|
+
top: .75,
|
|
7
|
+
bottom: .75,
|
|
8
|
+
header: .3,
|
|
9
|
+
footer: .3
|
|
10
|
+
}) : "";
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as default };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=pageMargins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageMargins.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js"],"sourcesContent":["import sanitizeAttributeValue from '../../../xml/sanitizeAttributeValue.js';\nexport default function generatePageMargins(tag, _ref) {\n var orientation = _ref.orientation;\n // Margins are required when setting custom orientation,\n // otherwise they'd be `0`.\n // https://gitlab.com/catamphetamine/write-excel-file/-/issues/7#note_782347297\n if (orientation) {\n // Page margins (when printing).\n // https://github.com/randym/axlsx/blob/master/lib/axlsx/workbook/worksheet/page_margins.rb\n\n var marginLeft = 0.7; // The left margin in inches.\n var marginRight = 0.7; // The right margin in inches.\n var marginTop = 0.75; // The top margin in inches.\n var marginBottom = 0.75; // The bottom margin in inches.\n var header = 0.3; // The header margin in inches.\n var footer = 0.3; // The footer margin in inches.\n\n return tag('pageMargins', {\n left: marginLeft,\n right: marginRight,\n top: marginTop,\n bottom: marginBottom,\n header: header,\n footer: footer\n });\n }\n return '';\n}\n//# sourceMappingURL=pageMargins.js.map"],"x_google_ignoreList":[0],"mappings":";AACA,SAAwB,EAAoB,GAAK,GAAM;AAyBrD,QAxBkB,EAAK,cAed,EAAI,eAAe;EACxB,MARe;EASf,OARgB;EAShB,KARc;EASd,QARiB;EASjB,QARW;EASX,QARW;EASZ,CAAC,GAEG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../../../xml/sanitizeAttributeValue.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js
|
|
3
|
+
function t(t, n) {
|
|
4
|
+
var r = n.orientation;
|
|
5
|
+
return r ? t("pageSetup", {
|
|
6
|
+
paperSize: 9,
|
|
7
|
+
orientation: e(r)
|
|
8
|
+
}) : "";
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=pageSetup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageSetup.js","names":[],"sources":["../../../../../../../node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js"],"sourcesContent":["import sanitizeAttributeValue from '../../../xml/sanitizeAttributeValue.js';\nexport default function generatePageSetup(tag, _ref) {\n var orientation = _ref.orientation;\n // Allows setting \"landscape\" orientation.\n // https://gitlab.com/catamphetamine/write-excel-file/-/issues/7\n if (orientation) {\n // Paper size (when printing).\n // https://github.com/randym/axlsx/blob/master/lib/axlsx/workbook/worksheet/page_setup.rb\n //\n // `paperSize` `9` means \"A4 paper (210 mm by 297 mm)\".\n //\n var paperSize = 9;\n\n // Page orientation (when printing).\n //\n // `orientation` can be:\n // * `landscape`\n // * `portrait`\n // https://docs.microsoft.com/en-us/office/vba/api/excel.pagesetup.orientation\n\n return tag('pageSetup', {\n paperSize: paperSize,\n orientation: sanitizeAttributeValue(orientation)\n });\n }\n return '';\n}\n//# sourceMappingURL=pageSetup.js.map"],"x_google_ignoreList":[0],"mappings":";;AACA,SAAwB,EAAkB,GAAK,GAAM;CACnD,IAAI,IAAc,EAAK;AAuBvB,QApBI,IAeK,EAAI,aAAa;EACtB,WAVc;EAWd,aAAa,EAAuB,EAAY;EACjD,CAAC,GAEG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import e from "./helpers/getCellStyleProperties.js";
|
|
2
|
+
//#region node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
for (var r = [], i = function() {
|
|
5
|
+
e = e.slice();
|
|
6
|
+
for (var t = 0; t < e.length;) e[t] = e[t].slice(), t++;
|
|
7
|
+
return i = function() {
|
|
8
|
+
return e;
|
|
9
|
+
}, e;
|
|
10
|
+
}, a = 0; a < e.length;) {
|
|
11
|
+
for (var o = e[a], s = 0; s < o.length;) {
|
|
12
|
+
var c = o[s];
|
|
13
|
+
if (c) {
|
|
14
|
+
var l = c.rowSpan, u = l === void 0 ? 1 : l, d = typeof c.span == "number" ? c.span : c.columnSpan;
|
|
15
|
+
typeof d != "number" && (d = 1), (d > 1 || u > 1) && (n(e, a, s, d, u, i, t), r.push([[a, s], [a + (u ? u - 1 : 0), s + (d ? d - 1 : 0)]]));
|
|
16
|
+
}
|
|
17
|
+
s++;
|
|
18
|
+
}
|
|
19
|
+
a++;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
sheetData: e,
|
|
23
|
+
mergedCells: r
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function n(t, n, r, i, a, o, s) {
|
|
27
|
+
var c = e(t[n][r], s);
|
|
28
|
+
c && (t = o());
|
|
29
|
+
for (var l = n; l <= n + (a - 1);) {
|
|
30
|
+
for (var u = r; u <= r + (i - 1);) {
|
|
31
|
+
var d = t[l][u];
|
|
32
|
+
if (l > n || u > r) {
|
|
33
|
+
if (d != null) throw Error(`[write-excel-file] When using \`columnSpan\` or \`rowSpan\` parameters, all hidden overlapped cells should be represented by \`null\`s or \`undefined\`s. Cell at row ${n + 1} and column ${r + 1} is configured with \`columnSpan\` ${i} and \`rowSpan\` ${a}. Cell at row ${l + 1} and column ${u + 1} is neither \`null\` nor \`undefined\`: ${JSON.stringify(d)}`);
|
|
34
|
+
c && (t[l][u] = c);
|
|
35
|
+
}
|
|
36
|
+
u++;
|
|
37
|
+
}
|
|
38
|
+
l++;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { t as default };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=processMergedCells.js.map
|