@burdenoff/microfe-planmagnet 2026.930.25 → 2026.1001.2

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.
Files changed (314) hide show
  1. package/dist/_virtual/__vite-browser-external.js +9 -0
  2. package/dist/_virtual/__vite-browser-external.js.map +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +5 -2
  4. package/dist/index.js +3 -1
  5. package/dist/node_modules/fflate/esm/browser.js +554 -0
  6. package/dist/node_modules/fflate/esm/browser.js.map +1 -0
  7. package/dist/node_modules/jszip/dist/jszip.min.js +3038 -0
  8. package/dist/node_modules/jszip/dist/jszip.min.js.map +1 -0
  9. package/dist/node_modules/pptxgenjs/dist/pptxgen.es.js +2151 -0
  10. package/dist/node_modules/pptxgenjs/dist/pptxgen.es.js.map +1 -0
  11. package/dist/node_modules/write-excel-file/browser/index.js +3 -0
  12. package/dist/node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js +13 -0
  13. package/dist/node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js.map +1 -0
  14. package/dist/node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js +21 -0
  15. package/dist/node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js.map +1 -0
  16. package/dist/node_modules/write-excel-file/modules/export/downloadBlob.js +11 -0
  17. package/dist/node_modules/write-excel-file/modules/export/downloadBlob.js.map +1 -0
  18. package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js +23 -0
  19. package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js.map +1 -0
  20. package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js +22 -0
  21. package/dist/node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js.map +1 -0
  22. package/dist/node_modules/write-excel-file/modules/getSheetData/getSheetData.js +18 -0
  23. package/dist/node_modules/write-excel-file/modules/getSheetData/getSheetData.js.map +1 -0
  24. package/dist/node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js +131 -0
  25. package/dist/node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js.map +1 -0
  26. package/dist/node_modules/write-excel-file/modules/xlsx/features/images.js +188 -0
  27. package/dist/node_modules/write-excel-file/modules/xlsx/features/images.js.map +1 -0
  28. package/dist/node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js +52 -0
  29. package/dist/node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js.map +1 -0
  30. package/dist/node_modules/write-excel-file/modules/xlsx/files/_Content_Types_.xml.js +18 -0
  31. package/dist/node_modules/write-excel-file/modules/xlsx/files/_Content_Types_.xml.js.map +1 -0
  32. package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js +18 -0
  33. package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.js.map +1 -0
  34. package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js +17 -0
  35. package/dist/node_modules/write-excel-file/modules/xlsx/files/drawing.xml.rels.js.map +1 -0
  36. package/dist/node_modules/write-excel-file/modules/xlsx/files/rels.js +11 -0
  37. package/dist/node_modules/write-excel-file/modules/xlsx/files/rels.js.map +1 -0
  38. package/dist/node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js +42 -0
  39. package/dist/node_modules/write-excel-file/modules/xlsx/files/sharedStrings.xml.js.map +1 -0
  40. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js +102 -0
  41. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/cell.js.map +1 -0
  42. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js +17 -0
  43. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/column.js.map +1 -0
  44. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js +15 -0
  45. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/columns.js.map +1 -0
  46. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js +8 -0
  47. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/drawingReference.js.map +1 -0
  48. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js +71 -0
  49. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/helpers/getCellStyleProperties.js.map +1 -0
  50. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js +56 -0
  51. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/mergedCellsDescription.js.map +1 -0
  52. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js +15 -0
  53. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageMargins.js.map +1 -0
  54. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js +13 -0
  55. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/pageSetup.js.map +1 -0
  56. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js +44 -0
  57. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/processMergedCells.js.map +1 -0
  58. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/row.js +123 -0
  59. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/row.js.map +1 -0
  60. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheet.xml.js +41 -0
  61. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheet.xml.js.map +1 -0
  62. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetData.js +11 -0
  63. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetData.js.map +1 -0
  64. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetViews.js +17 -0
  65. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml/sheetViews.js.map +1 -0
  66. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml.rels.js +20 -0
  67. package/dist/node_modules/write-excel-file/modules/xlsx/files/sheet.xml.rels.js.map +1 -0
  68. package/dist/node_modules/write-excel-file/modules/xlsx/files/styles.xml.js +77 -0
  69. package/dist/node_modules/write-excel-file/modules/xlsx/files/styles.xml.js.map +1 -0
  70. package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.js +22 -0
  71. package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.js.map +1 -0
  72. package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.rels.js +13 -0
  73. package/dist/node_modules/write-excel-file/modules/xlsx/files/workbook.xml.rels.js.map +1 -0
  74. package/dist/node_modules/write-excel-file/modules/xlsx/generateXlsxFileContents.js +242 -0
  75. package/dist/node_modules/write-excel-file/modules/xlsx/generateXlsxFileContents.js.map +1 -0
  76. package/dist/node_modules/write-excel-file/modules/xlsx/getFeatures.js +29 -0
  77. package/dist/node_modules/write-excel-file/modules/xlsx/getFeatures.js.map +1 -0
  78. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/convertDateToSerialNumber.js +9 -0
  79. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/convertDateToSerialNumber.js.map +1 -0
  80. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getAdditionalContent.js +42 -0
  81. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getAdditionalContent.js.map +1 -0
  82. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getElementXml.js +43 -0
  83. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getElementXml.js.map +1 -0
  84. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getWrittenFiles.js +93 -0
  85. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/getWrittenFiles.js.map +1 -0
  86. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/transformContent.js +39 -0
  87. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/features/transformContent.js.map +1 -0
  88. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getAlignmentXml.js +17 -0
  89. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getAlignmentXml.js.map +1 -0
  90. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js +29 -0
  91. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getBorderXml.js.map +1 -0
  92. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js +14 -0
  93. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getCellAddress.js.map +1 -0
  94. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js +11 -0
  95. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFileExtensionForContentType.js.map +1 -0
  96. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js +14 -0
  97. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFillXml.js.map +1 -0
  98. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js +12 -0
  99. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getFontXml.js.map +1 -0
  100. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js +24 -0
  101. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getOrderOfSiblings.js.map +1 -0
  102. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js +9 -0
  103. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/getXlsxColorForHexColor.js.map +1 -0
  104. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js +9 -0
  105. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasAlignment.js.map +1 -0
  106. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js +9 -0
  107. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasBorder.js.map +1 -0
  108. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js +9 -0
  109. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFill.js.map +1 -0
  110. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js +9 -0
  111. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/hasFont.js.map +1 -0
  112. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js +9 -0
  113. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isCellObject.js.map +1 -0
  114. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isObject.js +9 -0
  115. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/isObject.js.map +1 -0
  116. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js +27 -0
  117. package/dist/node_modules/write-excel-file/modules/xlsx/helpers/orderOfSiblings.js.map +1 -0
  118. package/dist/node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js +17 -0
  119. package/dist/node_modules/write-excel-file/modules/xlsx/initializeSharedStrings.js.map +1 -0
  120. package/dist/node_modules/write-excel-file/modules/xlsx/initializeSheets.js +74 -0
  121. package/dist/node_modules/write-excel-file/modules/xlsx/initializeSheets.js.map +1 -0
  122. package/dist/node_modules/write-excel-file/modules/xlsx/initializeStyles.js +138 -0
  123. package/dist/node_modules/write-excel-file/modules/xlsx/initializeStyles.js.map +1 -0
  124. package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetData.js +40 -0
  125. package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetData.js.map +1 -0
  126. package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetName.js +11 -0
  127. package/dist/node_modules/write-excel-file/modules/xlsx/validateSheetName.js.map +1 -0
  128. package/dist/node_modules/write-excel-file/modules/xml/appendMarkupInsideElement.js +9 -0
  129. package/dist/node_modules/write-excel-file/modules/xml/appendMarkupInsideElement.js.map +1 -0
  130. package/dist/node_modules/write-excel-file/modules/xml/applyEnclosingElementOffset.js +9 -0
  131. package/dist/node_modules/write-excel-file/modules/xml/applyEnclosingElementOffset.js.map +1 -0
  132. package/dist/node_modules/write-excel-file/modules/xml/escapeXmlSpecialCharacters.js +12 -0
  133. package/dist/node_modules/write-excel-file/modules/xml/escapeXmlSpecialCharacters.js.map +1 -0
  134. package/dist/node_modules/write-excel-file/modules/xml/findElement.js +12 -0
  135. package/dist/node_modules/write-excel-file/modules/xml/findElement.js.map +1 -0
  136. package/dist/node_modules/write-excel-file/modules/xml/findElementInsideElement.js +12 -0
  137. package/dist/node_modules/write-excel-file/modules/xml/findElementInsideElement.js.map +1 -0
  138. package/dist/node_modules/write-excel-file/modules/xml/findElementsNonRecursive_.js +41 -0
  139. package/dist/node_modules/write-excel-file/modules/xml/findElementsNonRecursive_.js.map +1 -0
  140. package/dist/node_modules/write-excel-file/modules/xml/getAttributesString.js +14 -0
  141. package/dist/node_modules/write-excel-file/modules/xml/getAttributesString.js.map +1 -0
  142. package/dist/node_modules/write-excel-file/modules/xml/getChildElements.js +42 -0
  143. package/dist/node_modules/write-excel-file/modules/xml/getChildElements.js.map +1 -0
  144. package/dist/node_modules/write-excel-file/modules/xml/getClosingTagMarkup.js +8 -0
  145. package/dist/node_modules/write-excel-file/modules/xml/getClosingTagMarkup.js.map +1 -0
  146. package/dist/node_modules/write-excel-file/modules/xml/getMarkupInsideElement.js +8 -0
  147. package/dist/node_modules/write-excel-file/modules/xml/getMarkupInsideElement.js.map +1 -0
  148. package/dist/node_modules/write-excel-file/modules/xml/getOpeningTagMarkup.js +9 -0
  149. package/dist/node_modules/write-excel-file/modules/xml/getOpeningTagMarkup.js.map +1 -0
  150. package/dist/node_modules/write-excel-file/modules/xml/getSelfClosingTagMarkup.js +9 -0
  151. package/dist/node_modules/write-excel-file/modules/xml/getSelfClosingTagMarkup.js.map +1 -0
  152. package/dist/node_modules/write-excel-file/modules/xml/insertElementMarkupAccordingToOrderOfSiblings.js +64 -0
  153. package/dist/node_modules/write-excel-file/modules/xml/insertElementMarkupAccordingToOrderOfSiblings.js.map +1 -0
  154. package/dist/node_modules/write-excel-file/modules/xml/prependMarkupInsideElement.js +9 -0
  155. package/dist/node_modules/write-excel-file/modules/xml/prependMarkupInsideElement.js.map +1 -0
  156. package/dist/node_modules/write-excel-file/modules/xml/removeInvalidXmlCharacters.js +9 -0
  157. package/dist/node_modules/write-excel-file/modules/xml/removeInvalidXmlCharacters.js.map +1 -0
  158. package/dist/node_modules/write-excel-file/modules/xml/replaceElement.js +8 -0
  159. package/dist/node_modules/write-excel-file/modules/xml/replaceElement.js.map +1 -0
  160. package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeName.js +10 -0
  161. package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeName.js.map +1 -0
  162. package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeValue.js +11 -0
  163. package/dist/node_modules/write-excel-file/modules/xml/sanitizeAttributeValue.js.map +1 -0
  164. package/dist/node_modules/write-excel-file/modules/xml/sanitizeTextContent.js +11 -0
  165. package/dist/node_modules/write-excel-file/modules/xml/sanitizeTextContent.js.map +1 -0
  166. package/dist/node_modules/write-excel-file/modules/xml/setMarkupInsideElement.js +8 -0
  167. package/dist/node_modules/write-excel-file/modules/xml/setMarkupInsideElement.js.map +1 -0
  168. package/dist/node_modules/write-excel-file/modules/zip/zipToArrayBuffer.js +18 -0
  169. package/dist/node_modules/write-excel-file/modules/zip/zipToArrayBuffer.js.map +1 -0
  170. package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
  171. package/dist/planmagnet/PlanMagnetRoot.js +160 -147
  172. package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
  173. package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
  174. package/dist/planmagnet/PlanMagnetRoutes.js +126 -106
  175. package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
  176. package/dist/planmagnet/comments/CommentThread.js +36 -36
  177. package/dist/planmagnet/comments/RoadmapComments.js +21 -21
  178. package/dist/planmagnet/controls/AutomationRuleControls.js +24 -24
  179. package/dist/planmagnet/controls/FeatureControls.js +60 -60
  180. package/dist/planmagnet/controls/Pickers.d.ts +10 -0
  181. package/dist/planmagnet/controls/Pickers.d.ts.map +1 -1
  182. package/dist/planmagnet/controls/Pickers.js +75 -27
  183. package/dist/planmagnet/controls/Pickers.js.map +1 -1
  184. package/dist/planmagnet/controls/SyncControls.js +59 -59
  185. package/dist/planmagnet/discussion/WorkItemDiscussionPanel.js +15 -15
  186. package/dist/planmagnet/docs/DocSuggestionsPanel.js +12 -12
  187. package/dist/planmagnet/docs/DocVersionCompare.js +3 -3
  188. package/dist/planmagnet/forecast/DeliveryForecastCard.d.ts +12 -0
  189. package/dist/planmagnet/forecast/DeliveryForecastCard.d.ts.map +1 -0
  190. package/dist/planmagnet/forecast/DeliveryForecastCard.js +208 -0
  191. package/dist/planmagnet/forecast/DeliveryForecastCard.js.map +1 -0
  192. package/dist/planmagnet/forecast/ProjectOutlookCard.d.ts +5 -0
  193. package/dist/planmagnet/forecast/ProjectOutlookCard.d.ts.map +1 -0
  194. package/dist/planmagnet/forecast/ProjectOutlookCard.js +190 -0
  195. package/dist/planmagnet/forecast/ProjectOutlookCard.js.map +1 -0
  196. package/dist/planmagnet/forecast/ProjectRiskSummaryCard.d.ts +5 -0
  197. package/dist/planmagnet/forecast/ProjectRiskSummaryCard.d.ts.map +1 -0
  198. package/dist/planmagnet/forecast/ProjectRiskSummaryCard.js +99 -0
  199. package/dist/planmagnet/forecast/ProjectRiskSummaryCard.js.map +1 -0
  200. package/dist/planmagnet/forecast/ResourceForecastCard.d.ts +8 -0
  201. package/dist/planmagnet/forecast/ResourceForecastCard.d.ts.map +1 -0
  202. package/dist/planmagnet/forecast/ResourceForecastCard.js +185 -0
  203. package/dist/planmagnet/forecast/ResourceForecastCard.js.map +1 -0
  204. package/dist/planmagnet/forecast/riskFlags.d.ts +35 -0
  205. package/dist/planmagnet/forecast/riskFlags.d.ts.map +1 -0
  206. package/dist/planmagnet/forecast/riskFlags.js +37 -0
  207. package/dist/planmagnet/forecast/riskFlags.js.map +1 -0
  208. package/dist/planmagnet/index.d.ts +2 -0
  209. package/dist/planmagnet/index.d.ts.map +1 -1
  210. package/dist/planmagnet/index.js +2 -0
  211. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
  212. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +216 -182
  213. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
  214. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +11 -11
  215. package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +4 -4
  216. package/dist/planmagnet/pages/DocsDocDetailPagePage.js +163 -163
  217. package/dist/planmagnet/pages/DocsDocDetailPagePage.js.map +1 -1
  218. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js +165 -165
  219. package/dist/planmagnet/pages/IntegrationsNewSyncPagePage.js.map +1 -1
  220. package/dist/planmagnet/pages/ProjectsAtRiskPagePage.d.ts +2 -0
  221. package/dist/planmagnet/pages/ProjectsAtRiskPagePage.d.ts.map +1 -0
  222. package/dist/planmagnet/pages/ProjectsAtRiskPagePage.js +234 -0
  223. package/dist/planmagnet/pages/ProjectsAtRiskPagePage.js.map +1 -0
  224. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts.map +1 -1
  225. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +206 -182
  226. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js.map +1 -1
  227. package/dist/planmagnet/pages/ReportsCreateReportPagePage.d.ts +6 -0
  228. package/dist/planmagnet/pages/ReportsCreateReportPagePage.d.ts.map +1 -1
  229. package/dist/planmagnet/pages/ReportsCreateReportPagePage.js +5 -177
  230. package/dist/planmagnet/pages/ReportsCreateReportPagePage.js.map +1 -1
  231. package/dist/planmagnet/pages/ReportsEditReportPagePage.d.ts +3 -0
  232. package/dist/planmagnet/pages/ReportsEditReportPagePage.d.ts.map +1 -0
  233. package/dist/planmagnet/pages/ReportsEditReportPagePage.js +15 -0
  234. package/dist/planmagnet/pages/ReportsEditReportPagePage.js.map +1 -0
  235. package/dist/planmagnet/pages/ReportsReportPagePage.d.ts +7 -0
  236. package/dist/planmagnet/pages/ReportsReportPagePage.d.ts.map +1 -0
  237. package/dist/planmagnet/pages/ReportsReportPagePage.js +226 -0
  238. package/dist/planmagnet/pages/ReportsReportPagePage.js.map +1 -0
  239. package/dist/planmagnet/pages/ReportsReportsPagePage.d.ts.map +1 -1
  240. package/dist/planmagnet/pages/ReportsReportsPagePage.js +224 -496
  241. package/dist/planmagnet/pages/ReportsReportsPagePage.js.map +1 -1
  242. package/dist/planmagnet/pages/TeamTeamDetailPagePage.d.ts.map +1 -1
  243. package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +88 -83
  244. package/dist/planmagnet/pages/TeamTeamDetailPagePage.js.map +1 -1
  245. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.d.ts.map +1 -1
  246. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +139 -112
  247. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js.map +1 -1
  248. package/dist/planmagnet/pages/analytics/StatusFlowCard.js +21 -21
  249. package/dist/planmagnet/product/ProductControls.js +91 -91
  250. package/dist/planmagnet/reports/ExportMenu.d.ts +9 -0
  251. package/dist/planmagnet/reports/ExportMenu.d.ts.map +1 -0
  252. package/dist/planmagnet/reports/ExportMenu.js +116 -0
  253. package/dist/planmagnet/reports/ExportMenu.js.map +1 -0
  254. package/dist/planmagnet/reports/PrintReportView.d.ts +24 -0
  255. package/dist/planmagnet/reports/PrintReportView.d.ts.map +1 -0
  256. package/dist/planmagnet/reports/PrintReportView.js +75 -0
  257. package/dist/planmagnet/reports/PrintReportView.js.map +1 -0
  258. package/dist/planmagnet/reports/ReportBuilderCanvas.d.ts +8 -0
  259. package/dist/planmagnet/reports/ReportBuilderCanvas.d.ts.map +1 -0
  260. package/dist/planmagnet/reports/ReportBuilderCanvas.js +261 -0
  261. package/dist/planmagnet/reports/ReportBuilderCanvas.js.map +1 -0
  262. package/dist/planmagnet/reports/ReportBuilderPage.d.ts +5 -0
  263. package/dist/planmagnet/reports/ReportBuilderPage.d.ts.map +1 -0
  264. package/dist/planmagnet/reports/ReportBuilderPage.js +198 -0
  265. package/dist/planmagnet/reports/ReportBuilderPage.js.map +1 -0
  266. package/dist/planmagnet/reports/ReportRunHistory.d.ts +8 -0
  267. package/dist/planmagnet/reports/ReportRunHistory.d.ts.map +1 -0
  268. package/dist/planmagnet/reports/ReportRunHistory.js +63 -0
  269. package/dist/planmagnet/reports/ReportRunHistory.js.map +1 -0
  270. package/dist/planmagnet/reports/ReportWidgetRenderer.d.ts +7 -0
  271. package/dist/planmagnet/reports/ReportWidgetRenderer.d.ts.map +1 -0
  272. package/dist/planmagnet/reports/ReportWidgetRenderer.js +251 -0
  273. package/dist/planmagnet/reports/ReportWidgetRenderer.js.map +1 -0
  274. package/dist/planmagnet/reports/SchedulesPanel.d.ts +4 -0
  275. package/dist/planmagnet/reports/SchedulesPanel.d.ts.map +1 -0
  276. package/dist/planmagnet/reports/SchedulesPanel.js +457 -0
  277. package/dist/planmagnet/reports/SchedulesPanel.js.map +1 -0
  278. package/dist/planmagnet/reports/ShareDialog.d.ts +5 -0
  279. package/dist/planmagnet/reports/ShareDialog.d.ts.map +1 -0
  280. package/dist/planmagnet/reports/ShareDialog.js +234 -0
  281. package/dist/planmagnet/reports/ShareDialog.js.map +1 -0
  282. package/dist/planmagnet/reports/SharedReportPage.d.ts +4 -0
  283. package/dist/planmagnet/reports/SharedReportPage.d.ts.map +1 -0
  284. package/dist/planmagnet/reports/SharedReportPage.js +180 -0
  285. package/dist/planmagnet/reports/SharedReportPage.js.map +1 -0
  286. package/dist/planmagnet/reports/WidgetEditorDialog.d.ts +10 -0
  287. package/dist/planmagnet/reports/WidgetEditorDialog.d.ts.map +1 -0
  288. package/dist/planmagnet/reports/WidgetEditorDialog.js +220 -0
  289. package/dist/planmagnet/reports/WidgetEditorDialog.js.map +1 -0
  290. package/dist/planmagnet/reports/reportExportPptx.d.ts +4 -0
  291. package/dist/planmagnet/reports/reportExportPptx.d.ts.map +1 -0
  292. package/dist/planmagnet/reports/reportExportPptx.js +118 -0
  293. package/dist/planmagnet/reports/reportExportPptx.js.map +1 -0
  294. package/dist/planmagnet/reports/reportExportXlsx.d.ts +4 -0
  295. package/dist/planmagnet/reports/reportExportXlsx.d.ts.map +1 -0
  296. package/dist/planmagnet/reports/reportExportXlsx.js +42 -0
  297. package/dist/planmagnet/reports/reportExportXlsx.js.map +1 -0
  298. package/dist/planmagnet/reports/reportGraphql.d.ts +28 -0
  299. package/dist/planmagnet/reports/reportGraphql.d.ts.map +1 -0
  300. package/dist/planmagnet/reports/reportGraphql.js +360 -0
  301. package/dist/planmagnet/reports/reportGraphql.js.map +1 -0
  302. package/dist/planmagnet/reports/reportModel.d.ts +198 -0
  303. package/dist/planmagnet/reports/reportModel.d.ts.map +1 -0
  304. package/dist/planmagnet/reports/reportModel.js +328 -0
  305. package/dist/planmagnet/reports/reportModel.js.map +1 -0
  306. package/dist/planmagnet/reports/sharedReportRoute.d.ts +15 -0
  307. package/dist/planmagnet/reports/sharedReportRoute.d.ts.map +1 -0
  308. package/dist/planmagnet/reports/sharedReportRoute.js +9 -0
  309. package/dist/planmagnet/reports/sharedReportRoute.js.map +1 -0
  310. package/dist/planmagnet/roadmaps/RoadmapControls.js +60 -60
  311. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +30 -30
  312. package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js +21 -21
  313. package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js +22 -22
  314. package/package.json +6 -4
@@ -0,0 +1,3 @@
1
+ import "../modules/getSheetData/getSheetData.js";
2
+ import e from "../modules/export/writeXlsxFileBrowser.js";
3
+ export { e as default };
@@ -0,0 +1,13 @@
1
+ //#region node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js
2
+ function e(e) {
3
+ if (e instanceof File || e instanceof Blob) return e.arrayBuffer().then(t);
4
+ if (e instanceof ArrayBuffer) return Promise.resolve(t(e));
5
+ throw Error("Unsupported file content type. Expected a `File`, a `Blob` or an `ArrayBuffer`");
6
+ }
7
+ function t(e) {
8
+ return new Uint8Array(e);
9
+ }
10
+ //#endregion
11
+ export { e as default };
12
+
13
+ //# sourceMappingURL=convertFileContentToUint8ArrayBrowser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertFileContentToUint8ArrayBrowser.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/export/convertFileContentToUint8ArrayBrowser.js"],"sourcesContent":["// This function doesn't use `async`/`await` in order to avoid adding `@babel/runtime` to `dependencies`.\n// https://gitlab.com/catamphetamine/write-excel-file/-/issues/105\n\n/**\r\n * Converts file content to a `Uint8Array`.\r\n * @param {File|Blob|ArrayBuffer} fileContent\r\n * @returns {Promise<Uint8Array>}\r\n */\nexport default function convertFileContentToUint8Array(fileContent) {\n if (fileContent instanceof File) {\n return fileContent.arrayBuffer().then(arrayBufferToUint8Array);\n }\n if (fileContent instanceof Blob) {\n return fileContent.arrayBuffer().then(arrayBufferToUint8Array);\n }\n if (fileContent instanceof ArrayBuffer) {\n return Promise.resolve(arrayBufferToUint8Array(fileContent));\n }\n throw new Error('Unsupported file content type. Expected a `File`, a `Blob` or an `ArrayBuffer`');\n}\nfunction arrayBufferToUint8Array(arrayBuffer) {\n return new Uint8Array(arrayBuffer);\n}\n//# sourceMappingURL=convertFileContentToUint8ArrayBrowser.js.map"],"x_google_ignoreList":[0],"mappings":";AAQA,SAAwB,EAA+B,GAAa;AAIlE,KAHI,aAAuB,QAGvB,aAAuB,KACzB,QAAO,EAAY,aAAa,CAAC,KAAK,EAAwB;AAEhE,KAAI,aAAuB,YACzB,QAAO,QAAQ,QAAQ,EAAwB,EAAY,CAAC;AAE9D,OAAU,MAAM,iFAAiF;;AAEnG,SAAS,EAAwB,GAAa;AAC5C,QAAO,IAAI,WAAW,EAAY"}
@@ -0,0 +1,21 @@
1
+ import { strToU8 as e } from "../../../fflate/esm/browser.js";
2
+ //#region node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js
3
+ function t(e, t) {
4
+ var r = {};
5
+ return Promise.all(Object.keys(e).map(function(i) {
6
+ if (e[i] instanceof Uint8Array) r[i] = e[i];
7
+ else if (typeof e[i] == "string") r[i] = n(e[i]);
8
+ else return t(e[i]).then(function(e) {
9
+ r[i] = e;
10
+ });
11
+ })).then(function() {
12
+ return r;
13
+ });
14
+ }
15
+ function n(t) {
16
+ return e(t);
17
+ }
18
+ //#endregion
19
+ export { t as default };
20
+
21
+ //# sourceMappingURL=convertFilesContentToUint8Arrays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertFilesContentToUint8Arrays.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/export/convertFilesContentToUint8Arrays.js"],"sourcesContent":["import { strToU8 } from 'fflate';\n\n/**\r\n * Converts `files` values to `Uint8Array`s.\r\n * @param {Record<string,any>} files\r\n * @param {function} convertFileContentToUint8Array\r\n * @returns {Promise<Record<string,Uint8Array>>}\r\n */\nexport default function convertFilesContentToUint8Arrays(files, convertFileContentToUint8Array) {\n var convertedFiles = {};\n return Promise.all(Object.keys(files).map(function (key) {\n if (files[key] instanceof Uint8Array) {\n convertedFiles[key] = files[key];\n } else if (typeof files[key] === 'string') {\n convertedFiles[key] = convertStringToUint8Array(files[key]);\n } else {\n return convertFileContentToUint8Array(files[key]).then(function (uint8Array) {\n convertedFiles[key] = uint8Array;\n });\n }\n })).then(function () {\n return convertedFiles;\n });\n}\nfunction convertStringToUint8Array(string) {\n return strToU8(string);\n}\n//# sourceMappingURL=convertFilesContentToUint8Arrays.js.map"],"x_google_ignoreList":[0],"mappings":";;AAQA,SAAwB,EAAiC,GAAO,GAAgC;CAC9F,IAAI,IAAiB,EAAE;AACvB,QAAO,QAAQ,IAAI,OAAO,KAAK,EAAM,CAAC,IAAI,SAAU,GAAK;AACvD,MAAI,EAAM,cAAgB,WACxB,GAAe,KAAO,EAAM;WACnB,OAAO,EAAM,MAAS,SAC/B,GAAe,KAAO,EAA0B,EAAM,GAAK;MAE3D,QAAO,EAA+B,EAAM,GAAK,CAAC,KAAK,SAAU,GAAY;AAC3E,KAAe,KAAO;IACtB;GAEJ,CAAC,CAAC,KAAK,WAAY;AACnB,SAAO;GACP;;AAEJ,SAAS,EAA0B,GAAQ;AACzC,QAAO,EAAQ,EAAO"}
@@ -0,0 +1,11 @@
1
+ //#region node_modules/write-excel-file/modules/export/downloadBlob.js
2
+ function e(e, t) {
3
+ var n = URL.createObjectURL(e), r = document.createElement("a");
4
+ r.style.display = "none", r.href = n, r.download = t, document.body.appendChild(r), r.click(), setTimeout(function() {
5
+ URL.revokeObjectURL(n), document.body.removeChild(r);
6
+ }, 100);
7
+ }
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=downloadBlob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"downloadBlob.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/export/downloadBlob.js"],"sourcesContent":["export default function downloadBlob(blob, filename) {\n // Create a URL for the blob\n var url = URL.createObjectURL(blob);\n\n // Create a temporary anchor element\n var a = document.createElement('a');\n a.style.display = 'none';\n a.href = url;\n a.download = filename; // Set the proposed filename for the download\n\n // Append the anchor to the body to make it clickable\n document.body.appendChild(a);\n\n // Trigger the download by simulating a click\n a.click();\n\n // Clean up by revoking the object URL and removing the anchor\n setTimeout(function () {\n URL.revokeObjectURL(url);\n document.body.removeChild(a);\n }, 100); // Delay for Firefox compatibility\n}\n//# sourceMappingURL=downloadBlob.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAa,GAAM,GAAU;CAEnD,IAAI,IAAM,IAAI,gBAAgB,EAAK,EAG/B,IAAI,SAAS,cAAc,IAAI;AAYnC,CAXA,EAAE,MAAM,UAAU,QAClB,EAAE,OAAO,GACT,EAAE,WAAW,GAGb,SAAS,KAAK,YAAY,EAAE,EAG5B,EAAE,OAAO,EAGT,WAAW,WAAY;AAErB,EADA,IAAI,gBAAgB,EAAI,EACxB,SAAS,KAAK,YAAY,EAAE;IAC3B,IAAI"}
@@ -0,0 +1,23 @@
1
+ import { generateXlsxFileAsync as e } from "./writeXlsxFileUniversal.js";
2
+ import t from "./convertFileContentToUint8ArrayBrowser.js";
3
+ import n from "./downloadBlob.js";
4
+ //#region node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js
5
+ function r(r, i, a) {
6
+ var o = function() {
7
+ return e(r, i, a, t);
8
+ };
9
+ return {
10
+ toBlob: function() {
11
+ return o();
12
+ },
13
+ toFile: function(e) {
14
+ return o().then(function(t) {
15
+ n(t, e);
16
+ });
17
+ }
18
+ };
19
+ }
20
+ //#endregion
21
+ export { r as default };
22
+
23
+ //# sourceMappingURL=writeXlsxFileBrowser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeXlsxFileBrowser.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/export/writeXlsxFileBrowser.js"],"sourcesContent":["// Uses an \"async\" function of the zipper function\n// just because it feels more correct to use it over the \"sync\" one\n// because it isn't supposed to ever freeze the \"main thread\" (GUI).\n//\n// import { generateXlsxFileSync } from './writeXlsxFileUniversal.js'\nimport { generateXlsxFileAsync } from './writeXlsxFileUniversal.js';\nimport convertFileContentToUint8Array from './convertFileContentToUint8ArrayBrowser.js';\nimport downloadBlob from './downloadBlob.js';\n\n// This function doesn't use `async`/`await` in order to avoid adding `@babel/runtime` to `dependencies`.\n// https://gitlab.com/catamphetamine/write-excel-file/-/issues/105\n\n/**\r\n * Creates an `*.xlsx` file.\r\n * @param {SheetData|Object[]|Sheet[]} arg1\r\n * @param {object} arg2 — If `arg1` is `SheetData`, `arg2` is `SheetOptions` and `arg3` is `Options`. If `arg1` is `Sheet[]`, `arg2` is `Options`.\r\n * @param {object} [arg3] — If `arg1` is `SheetData`, `arg2` is `SheetOptions` and `arg3` is `Options`. If `arg1` is `Sheet[]`, `arg2` is `Options`.\r\n * @returns {object} Returns an object with `async` methods: `toBlob()`, `toFile(fileName)`.\r\n */\nexport default function writeXlsxFile(arg1, arg2, arg3) {\n var createBlob = function createBlob() {\n return generateXlsxFileAsync(arg1, arg2, arg3, convertFileContentToUint8Array);\n };\n return {\n toBlob: function toBlob() {\n return createBlob();\n },\n toFile: function toFile(fileName) {\n return createBlob().then(function (blob) {\n downloadBlob(blob, fileName);\n });\n }\n };\n}\n//# sourceMappingURL=writeXlsxFileBrowser.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAmBA,SAAwB,EAAc,GAAM,GAAM,GAAM;CACtD,IAAI,IAAa,WAAsB;AACrC,SAAO,EAAsB,GAAM,GAAM,GAAM,EAA+B;;AAEhF,QAAO;EACL,QAAQ,WAAkB;AACxB,UAAO,GAAY;;EAErB,QAAQ,SAAgB,GAAU;AAChC,UAAO,GAAY,CAAC,KAAK,SAAU,GAAM;AACvC,MAAa,GAAM,EAAS;KAC5B;;EAEL"}
@@ -0,0 +1,22 @@
1
+ import e from "../zip/zipToArrayBuffer.js";
2
+ import t from "./convertFilesContentToUint8Arrays.js";
3
+ import n from "../xlsx/generateXlsxFileContents.js";
4
+ //#region node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js
5
+ function r(e, r, a, o, s, c) {
6
+ return t(n(e, r, a), o).then(function(e) {
7
+ var t = s(e);
8
+ return c ? t.then(function(e) {
9
+ return i(e);
10
+ }) : i(t);
11
+ });
12
+ }
13
+ function i(e) {
14
+ return new Blob([e], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" });
15
+ }
16
+ function a(t, n, i, a) {
17
+ return r(t, n, i, a, e, !0);
18
+ }
19
+ //#endregion
20
+ export { a as generateXlsxFileAsync };
21
+
22
+ //# sourceMappingURL=writeXlsxFileUniversal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeXlsxFileUniversal.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/export/writeXlsxFileUniversal.js"],"sourcesContent":["import convertFileContentToUint8Array from './convertFileContentToUint8ArrayUniversal.js';\nimport zipToArrayBuffer from '../zip/zipToArrayBuffer.js';\nimport zipToArrayBufferSync from '../zip/zipToArrayBufferSync.js';\nimport convertFilesContentToUint8Arrays from './convertFilesContentToUint8Arrays.js';\nimport generateXlsxFileContents from '../xlsx/generateXlsxFileContents.js';\n\n// This function doesn't use `async`/`await` in order to avoid adding `@babel/runtime` to `dependencies`.\n// https://gitlab.com/catamphetamine/write-excel-file/-/issues/105\n\n/**\r\n * Creates an `*.xlsx` file.\r\n * @param {SheetData|Object[]|Sheet[]} arg1\r\n * @param {object} arg2 — If `arg1` is `SheetData`, `arg2` is `SheetOptions` and `arg3` is `Options`. If `arg1` is `Sheet[]`, `arg2` is `Options`.\r\n * @param {object} [arg3] — If `arg1` is `SheetData`, `arg2` is `SheetOptions` and `arg3` is `Options`. If `arg1` is `Sheet[]`, `arg2` is `Options`.\r\n * @returns {object} Returns an object with `async` methods: `toBlob()`.\r\n */\nexport default function writeXlsxFile(arg1, arg2, arg3) {\n return {\n toBlob: function toBlob() {\n return generateXlsxFileAsync(arg1, arg2, arg3, convertFileContentToUint8Array);\n }\n };\n}\n\n/**\r\n * @return {Promise<Blob>}\r\n */\nfunction generateXlsxFile(arg1, arg2, arg3, convertFileContentToUint8Array, createZipArchiveAsArrayBuffer, isAsyncZip) {\n // Generate the sub-files inside the `.xlsx` file.\n var files = generateXlsxFileContents(arg1, arg2, arg3);\n\n // Convert files' content to `Uint8Array`s.\n return convertFilesContentToUint8Arrays(files, convertFileContentToUint8Array).then(function (files) {\n // Create a `.zip` archive from the files.\n // An `.xlsx` file is just a `.zip` archive with an `.xlsx` file extension.\n // `result` is either `Uint8Array` or `Promise<Uint8Array>`\n var result = createZipArchiveAsArrayBuffer(files);\n // Return a `Blob` with the `.zip` archive data.\n if (isAsyncZip) {\n return result.then(function (result) {\n return convertArrayBufferToBlob(result);\n });\n } else {\n return convertArrayBufferToBlob(result);\n }\n });\n}\n\n// Converts `ArrayBuffer` to `Blob`.\nfunction convertArrayBufferToBlob(arrayBuffer) {\n return new Blob([arrayBuffer], {\n type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n });\n}\n\n/**\r\n * Generates an *.xlsx file \"synchronously\".\r\n * @return {Promise<Blob>}\r\n */\nexport function generateXlsxFileSync(arg1, arg2, arg3, convertFileContentToUint8Array) {\n return generateXlsxFile(arg1, arg2, arg3, convertFileContentToUint8Array, zipToArrayBufferSync, false);\n}\n\n/**\r\n * Generates an *.xlsx file \"asynchronously\".\r\n * @return {Promise<Blob>}\r\n */\nexport function generateXlsxFileAsync(arg1, arg2, arg3, convertFileContentToUint8Array) {\n return generateXlsxFile(arg1, arg2, arg3, convertFileContentToUint8Array, zipToArrayBuffer, true);\n}\n//# sourceMappingURL=writeXlsxFileUniversal.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AA2BA,SAAS,EAAiB,GAAM,GAAM,GAAM,GAAgC,GAA+B,GAAY;AAKrH,QAAO,EAHK,EAAyB,GAAM,GAAM,EAAK,EAGP,EAA+B,CAAC,KAAK,SAAU,GAAO;EAInG,IAAI,IAAS,EAA8B,EAAM;AAO/C,SALE,IACK,EAAO,KAAK,SAAU,GAAQ;AACnC,UAAO,EAAyB,EAAO;IACvC,GAEK,EAAyB,EAAO;GAEzC;;AAIJ,SAAS,EAAyB,GAAa;AAC7C,QAAO,IAAI,KAAK,CAAC,EAAY,EAAE,EAC7B,MAAM,qEACP,CAAC;;AAeJ,SAAgB,EAAsB,GAAM,GAAM,GAAM,GAAgC;AACtF,QAAO,EAAiB,GAAM,GAAM,GAAM,GAAgC,GAAkB,GAAK"}
@@ -0,0 +1,18 @@
1
+ //#region node_modules/write-excel-file/modules/getSheetData/getSheetData.js
2
+ function e(e, t) {
3
+ var n;
4
+ return t.some(function(e) {
5
+ return e.header;
6
+ }) && (n = t.map(function(e) {
7
+ return e.header || null;
8
+ })), (n ? [n] : []).concat(e.map(function(e, n) {
9
+ return t.map(function(t) {
10
+ var r = t.cell;
11
+ return r(e, n);
12
+ });
13
+ }));
14
+ }
15
+ //#endregion
16
+ export { e as default };
17
+
18
+ //# sourceMappingURL=getSheetData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSheetData.js","names":[],"sources":["../../../../../node_modules/write-excel-file/modules/getSheetData/getSheetData.js"],"sourcesContent":["export default function getSheetData(objects, columns) {\n // Create header row.\n var headerRow;\n // If at least one column has a header\n // then a header row will be rendered.\n // Otherwise, there will be no header row.\n if (columns.some(function (column) {\n return column.header;\n })) {\n headerRow = columns.map(function (_ref) {\n var header = _ref.header;\n return header || null;\n });\n }\n return (headerRow ? [headerRow] : []).concat(objects.map(function (object, objectIndex) {\n return columns.map(function (_ref2) {\n var cell = _ref2.cell;\n return cell(object, objectIndex);\n });\n }));\n}\n//# sourceMappingURL=getSheetData.js.map"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAwB,EAAa,GAAS,GAAS;CAErD,IAAI;AAYJ,QARI,EAAQ,KAAK,SAAU,GAAQ;AACjC,SAAO,EAAO;GACd,KACA,IAAY,EAAQ,IAAI,SAAU,GAAM;AAEtC,SADa,EAAK,UACD;GACjB,IAEI,IAAY,CAAC,EAAU,GAAG,EAAE,EAAE,OAAO,EAAQ,IAAI,SAAU,GAAQ,GAAa;AACtF,SAAO,EAAQ,IAAI,SAAU,GAAO;GAClC,IAAI,IAAO,EAAM;AACjB,UAAO,EAAK,GAAQ,EAAY;IAChC;GACF,CAAC"}
@@ -0,0 +1,131 @@
1
+ import e from "../../xml/sanitizeTextContent.js";
2
+ import t from "../helpers/getCellAddress.js";
3
+ import n from "../helpers/hasBorder.js";
4
+ import r from "../helpers/hasFill.js";
5
+ import i from "../helpers/hasFont.js";
6
+ import a from "../helpers/getFillXml.js";
7
+ import o from "../helpers/getBorderXml.js";
8
+ import s from "../helpers/getFontXml.js";
9
+ import c from "../../xml/insertElementMarkupAccordingToOrderOfSiblings.js";
10
+ import l from "../helpers/getOrderOfSiblings.js";
11
+ //#region node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.js
12
+ function u(e, t) {
13
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14
+ if (n) return (n = n.call(e)).next.bind(n);
15
+ if (Array.isArray(e) || (n = d(e)) || t && e && typeof e.length == "number") {
16
+ n && (e = n);
17
+ var r = 0;
18
+ return function() {
19
+ return r >= e.length ? { done: !0 } : {
20
+ done: !1,
21
+ value: e[r++]
22
+ };
23
+ };
24
+ }
25
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
26
+ }
27
+ function d(e, t) {
28
+ if (e) {
29
+ if (typeof e == "string") return f(e, t);
30
+ var n = {}.toString.call(e).slice(8, -1);
31
+ 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) ? f(e, t) : void 0;
32
+ }
33
+ }
34
+ function f(e, t) {
35
+ (t == null || t > e.length) && (t = e.length);
36
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
37
+ return r;
38
+ }
39
+ var p = { files: { transform: {
40
+ "xl/worksheets/sheet{id}.xml": { transform: function(e, t, n) {
41
+ n.sheetIndex, n.sheetId;
42
+ var r = t.conditionalFormatting;
43
+ return r ? c(e, m(r), l("xl/worksheets/sheet{id}.xml", "worksheet"), "worksheet") : e;
44
+ } },
45
+ "xl/styles.xml": { insert: function(e) {
46
+ var t = e.map(function(e) {
47
+ return e.conditionalFormatting;
48
+ });
49
+ if (t.some(Boolean)) return _(t);
50
+ } }
51
+ } } };
52
+ function m(n) {
53
+ for (var r = "", i = 0, a = u(n), o; !(o = a()).done;) {
54
+ var s = o.value, c = s.cellRange, l = c.from, d = c.to, f = s.condition, p = f.formula, m = f.operator, _ = f.value, v = f.value2, y = t(l.row - 1, l.column - 1) + ":" + t(d.row - 1, d.column - 1);
55
+ r += `<conditionalFormatting sqref="${y}">`;
56
+ var b = i + 1, x = s._globalIndex;
57
+ if (p) r += `<cfRule type="expression" dxfId="${x}" priority="${b}">`, r += `<formula>${e(p)}</formula>`, r += "</cfRule>";
58
+ else if (m) r += `<cfRule type="cellIs" operator="${g(m)}" dxfId="${x}" priority="${b}">`, r += `<formula>${e(h(_))}</formula>`, g(m) === "between" && (r += `<formula>${e(h(v))}</formula>`), r += "</cfRule>";
59
+ else throw Error(`Invalid conditional formatting rule:
60
+ ${JSON.stringify(s, null, 2)}`);
61
+ r += "</conditionalFormatting>", i++;
62
+ }
63
+ return r;
64
+ }
65
+ function h(e) {
66
+ return typeof e == "string" ? "\"" + e + "\"" : String(e);
67
+ }
68
+ function g(e) {
69
+ switch (e) {
70
+ case "<": return "lessThan";
71
+ case ">": return "greaterThan";
72
+ case "<=": return "lessThanOrEqual";
73
+ case ">=": return "greaterThanOrEqual";
74
+ case "=": return "equal";
75
+ case "!=": return "notEqual";
76
+ case "...": return "between";
77
+ default: throw Error(`Unknown conditional formatting operator: ${e}`);
78
+ }
79
+ }
80
+ function _(e) {
81
+ for (var t = 0, c = u(e), l; !(l = c()).done;) {
82
+ var d = l.value;
83
+ d && (t += d.length);
84
+ }
85
+ var f = "";
86
+ f += `<dxfs count="${t}">`;
87
+ for (var p = u(e), m; !(m = p()).done;) {
88
+ var h = m.value;
89
+ if (h) for (var g = u(h), _; !(_ = g()).done;) {
90
+ var v = _.value.style, y = v.fontFamily, b = v.fontSize, x = v.fontWeight, S = v.fontStyle, C = v.textDecoration, w = v.textColor, T = v.backgroundColor, E = v.fillPatternStyle, D = v.fillPatternColor, O = v.borderColor, k = v.borderStyle, A = v.leftBorderColor, j = v.leftBorderStyle, M = v.rightBorderColor, N = v.rightBorderStyle, P = v.topBorderColor, F = v.topBorderStyle, I = v.bottomBorderColor, L = v.bottomBorderStyle;
91
+ f += "<dxf>";
92
+ var R = {
93
+ fontFamily: y,
94
+ fontSize: b,
95
+ fontWeight: x,
96
+ fontStyle: S,
97
+ textDecoration: C,
98
+ textColor: w
99
+ };
100
+ if (i(R)) {
101
+ if (y) throw Error("Conditional formatting can't be used to override font family");
102
+ if (typeof b == "number") throw Error("Conditional formatting can't be used to override font size");
103
+ f += s(R);
104
+ }
105
+ var z = {
106
+ backgroundColor: T,
107
+ fillPatternStyle: E,
108
+ fillPatternColor: D
109
+ };
110
+ r(z) && (f += a(z, { conditionalFormatting: !0 }));
111
+ var B = {
112
+ borderColor: O,
113
+ borderStyle: k,
114
+ leftBorderColor: A,
115
+ leftBorderStyle: j,
116
+ rightBorderColor: M,
117
+ rightBorderStyle: N,
118
+ topBorderColor: P,
119
+ topBorderStyle: F,
120
+ bottomBorderColor: I,
121
+ bottomBorderStyle: L
122
+ };
123
+ n(B) && (f += o(B)), f += "</dxf>";
124
+ }
125
+ }
126
+ return f += "</dxfs>", f;
127
+ }
128
+ //#endregion
129
+ export { p as default };
130
+
131
+ //# sourceMappingURL=conditionalFormatting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionalFormatting.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/features/conditionalFormatting.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';\nimport insertElementMarkupAccordingToOrderOfSiblings from '../../xml/insertElementMarkupAccordingToOrderOfSiblings.js';\nimport hasFill from '../helpers/hasFill.js';\nimport getFillXml from '../helpers/getFillXml.js';\nimport hasBorder from '../helpers/hasBorder.js';\nimport getBorderXml from '../helpers/getBorderXml.js';\nimport hasFont from '../helpers/hasFont.js';\nimport getFontXml from '../helpers/getFontXml.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 // For some weird reason, Excel 2007 demands `<conditionalFormatting/>` element to go before `<drawing/>` element.\n // Because `<drawing/>` element is added before any of the `insert()`s of any features,\n // this feature has to use a `transform()` function instead of an `insert()` function.\n transform: function transform(xml, sheetOptions, _ref) {\n var sheetIndex = _ref.sheetIndex,\n sheetId = _ref.sheetId;\n var conditionalFormatting = sheetOptions.conditionalFormatting;\n if (conditionalFormatting) {\n var conditionalFormattingRulesXml = getConditionalFormattingRulesXml(conditionalFormatting);\n return insertElementMarkupAccordingToOrderOfSiblings(xml, conditionalFormattingRulesXml, getOrderOfSiblings('xl/worksheets/sheet{id}.xml', 'worksheet'), 'worksheet');\n }\n return xml;\n }\n },\n 'xl/styles.xml': {\n insert: function insert(sheetsOptions) {\n var sheetsConditionalFormatting = sheetsOptions.map(function (sheetOptions) {\n return sheetOptions.conditionalFormatting;\n });\n if (sheetsConditionalFormatting.some(Boolean)) {\n return getConditionalFormattingStylesXml(sheetsConditionalFormatting);\n }\n }\n }\n }\n }\n};\nfunction getConditionalFormattingRulesXml(conditionalFormattingRules) {\n var xml = '';\n var i = 0;\n for (var _iterator = _createForOfIteratorHelperLoose(conditionalFormattingRules), _step; !(_step = _iterator()).done;) {\n var conditionalFormattingRule = _step.value;\n var _conditionalFormattin = conditionalFormattingRule.cellRange,\n from = _conditionalFormattin.from,\n to = _conditionalFormattin.to,\n _conditionalFormattin2 = conditionalFormattingRule.condition,\n formula = _conditionalFormattin2.formula,\n operator = _conditionalFormattin2.operator,\n value = _conditionalFormattin2.value,\n value2 = _conditionalFormattin2.value2;\n\n // Cell range example: \"A1:C5\"\n var cellRange = getCellAddress(from.row - 1, from.column - 1) + ':' + getCellAddress(to.row - 1, to.column - 1);\n xml += \"<conditionalFormatting sqref=\\\"\".concat(cellRange, \"\\\">\");\n\n // The priority attribute in conditional formatting XML is an integer value that must be a positive integer between 1 and the total number of conditional formatting rules on the worksheet.\n // * The value is defined by the W3C XML Schema int datatype.\n // * The valid range is dynamic, starting from 1 (highest priority) and ending at the total number of rules on that specific worksheet (lowest priority).\n // * Each priority value must be unique for all rules on the same worksheet. Changing the priority of one rule will automatically adjust the priorities of other rules to maintain uniqueness and order.\n // * A lower numeric value indicates a higher priority (e.g., priority 1 is the highest possible priority).\n var priority = i + 1;\n\n // The `dxfId` attribute in \".xlsx\" (OpenXML) files is a zero-based integer index (0, 1, 2, ...)\n // referencing a specific differential format record (`<dxf>`) within the \"styles.xml\" file.\n //\n var dxfId = conditionalFormattingRule._globalIndex;\n //\n // const dxfId = getConditionalFormattingRuleGlobalIndex({\n // \tconditionalFormattingRuleIndex: i,\n // \tsheetsConditionalFormatting,\n // \tsheetIndex\n // })\n\n // There're a lot of possible `type`s of a `<cfRule/>`.\n // The full list could be viewed by googling for \"ST_CfType\".\n\n if (formula) {\n xml += \"<cfRule type=\\\"expression\\\" dxfId=\\\"\".concat(dxfId, \"\\\" priority=\\\"\").concat(priority, \"\\\">\");\n xml += \"<formula>\".concat(sanitizeTextContent(formula), \"</formula>\");\n xml += '</cfRule>';\n } else if (operator) {\n xml += \"<cfRule type=\\\"cellIs\\\" operator=\\\"\".concat(getXlsxOperatorName(operator), \"\\\" dxfId=\\\"\").concat(dxfId, \"\\\" priority=\\\"\").concat(priority, \"\\\">\");\n xml += \"<formula>\".concat(sanitizeTextContent(formatValue(value)), \"</formula>\");\n if (getXlsxOperatorName(operator) === 'between') {\n xml += \"<formula>\".concat(sanitizeTextContent(formatValue(value2)), \"</formula>\");\n }\n xml += '</cfRule>';\n } else {\n throw new Error(\"Invalid conditional formatting rule:\\n\".concat(JSON.stringify(conditionalFormattingRule, null, 2)));\n }\n xml += '</conditionalFormatting>';\n i++;\n }\n return xml;\n}\nfunction formatValue(value) {\n if (typeof value === 'string') {\n return '\"' + value + '\"';\n }\n return String(value);\n}\n\n// function getConditionalFormattingRuleGlobalIndex({\n// \tconditionalFormattingRuleIndex,\n// \tsheetsConditionalFormattingRules,\n// \tsheetIndex\n// }) {\n// \tlet sheetRulesIndexOffset = 0\n//\n// \tlet i = 0\n// \twhile (i < sheetIndex) {\n// \t\tif (sheetsConditionalFormattingRules[i]) {\n// \t\t\tsheetRulesIndexOffset += sheetsConditionalFormattingRules[i].length\n// \t\t}\n// \t\ti++\n// \t}\n//\n// \treturn sheetRulesIndexOffset + conditionalFormattingRuleIndex\n// }\n\nfunction getXlsxOperatorName(operator) {\n switch (operator) {\n case '<':\n return 'lessThan';\n case '>':\n return 'greaterThan';\n case '<=':\n return 'lessThanOrEqual';\n case '>=':\n return 'greaterThanOrEqual';\n case '=':\n return 'equal';\n case '!=':\n return 'notEqual';\n case '...':\n return 'between';\n default:\n throw new Error(\"Unknown conditional formatting operator: \".concat(operator));\n }\n}\nfunction getConditionalFormattingStylesXml(sheetsConditionalFormatting) {\n var totalConditionalFormattingRulesCount = 0;\n for (var _iterator2 = _createForOfIteratorHelperLoose(sheetsConditionalFormatting), _step2; !(_step2 = _iterator2()).done;) {\n var conditionalFormattingOfSheet = _step2.value;\n if (conditionalFormattingOfSheet) {\n totalConditionalFormattingRulesCount += conditionalFormattingOfSheet.length;\n }\n }\n var xml = '';\n xml += \"<dxfs count=\\\"\".concat(totalConditionalFormattingRulesCount, \"\\\">\");\n for (var _iterator3 = _createForOfIteratorHelperLoose(sheetsConditionalFormatting), _step3; !(_step3 = _iterator3()).done;) {\n var _conditionalFormattingOfSheet = _step3.value;\n if (_conditionalFormattingOfSheet) {\n for (var _iterator4 = _createForOfIteratorHelperLoose(_conditionalFormattingOfSheet), _step4; !(_step4 = _iterator4()).done;) {\n var conditionalFormattingRule = _step4.value;\n var _conditionalFormattin3 = conditionalFormattingRule.style,\n fontFamily = _conditionalFormattin3.fontFamily,\n fontSize = _conditionalFormattin3.fontSize,\n fontWeight = _conditionalFormattin3.fontWeight,\n fontStyle = _conditionalFormattin3.fontStyle,\n textDecoration = _conditionalFormattin3.textDecoration,\n textColor = _conditionalFormattin3.textColor,\n backgroundColor = _conditionalFormattin3.backgroundColor,\n fillPatternStyle = _conditionalFormattin3.fillPatternStyle,\n fillPatternColor = _conditionalFormattin3.fillPatternColor,\n borderColor = _conditionalFormattin3.borderColor,\n borderStyle = _conditionalFormattin3.borderStyle,\n leftBorderColor = _conditionalFormattin3.leftBorderColor,\n leftBorderStyle = _conditionalFormattin3.leftBorderStyle,\n rightBorderColor = _conditionalFormattin3.rightBorderColor,\n rightBorderStyle = _conditionalFormattin3.rightBorderStyle,\n topBorderColor = _conditionalFormattin3.topBorderColor,\n topBorderStyle = _conditionalFormattin3.topBorderStyle,\n bottomBorderColor = _conditionalFormattin3.bottomBorderColor,\n bottomBorderStyle = _conditionalFormattin3.bottomBorderStyle;\n xml += '<dxf>';\n var font = {\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n fontStyle: fontStyle,\n textDecoration: textDecoration,\n textColor: textColor\n };\n if (hasFont(font)) {\n // It seems that the \"conditional formatting\" feature in the XLSX specification\n // doesn't support setting custom `fontFamily` or `fontSize` for some weird reason.\n // https://github.com/catamphetamine/write-excel-file/pull/10#issuecomment-3960778016\n if (fontFamily) {\n throw new Error('Conditional formatting can\\'t be used to override font family');\n }\n if (typeof fontSize === 'number') {\n throw new Error('Conditional formatting can\\'t be used to override font size');\n }\n xml += getFontXml(font);\n }\n var fill = {\n backgroundColor: backgroundColor,\n fillPatternStyle: fillPatternStyle,\n fillPatternColor: fillPatternColor\n };\n if (hasFill(fill)) {\n xml += getFillXml(fill, {\n conditionalFormatting: true\n });\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 if (hasBorder(border)) {\n xml += getBorderXml(border);\n }\n xml += '</dxf>';\n }\n }\n }\n xml += '</dxfs>';\n return xml;\n}\n//# sourceMappingURL=conditionalFormatting.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,SAA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Y,EAAE,OAAO;GAE5H,IAAI,IAD4B,EAAO,MACgB,OACrD,IAAa,EAAuB,YACpC,IAAW,EAAuB,UAClC,IAAa,EAAuB,YACpC,IAAY,EAAuB,WACnC,IAAiB,EAAuB,gBACxC,IAAY,EAAuB,WACnC,IAAkB,EAAuB,iBACzC,IAAmB,EAAuB,kBAC1C,IAAmB,EAAuB,kBAC1C,IAAc,EAAuB,aACrC,IAAc,EAAuB,aACrC,IAAkB,EAAuB,iBACzC,IAAkB,EAAuB,iBACzC,IAAmB,EAAuB,kBAC1C,IAAmB,EAAuB,kBAC1C,IAAiB,EAAuB,gBACxC,IAAiB,EAAuB,gBACxC,IAAoB,EAAuB,mBAC3C,IAAoB,EAAuB;AAC7C,QAAO;GACP,IAAI,IAAO;IACG;IACF;IACE;IACD;IACK;IACL;IACZ;AACD,OAAI,EAAQ,EAAK,EAAE;AAIjB,QAAI,EACF,OAAU,MAAM,+DAAgE;AAElF,QAAI,OAAO,KAAa,SACtB,OAAU,MAAM,6DAA8D;AAEhF,SAAO,EAAW,EAAK;;GAEzB,IAAI,IAAO;IACQ;IACC;IACA;IACnB;AACD,GAAI,EAAQ,EAAK,KACf,KAAO,EAAW,GAAM,EACtB,uBAAuB,IACxB,CAAC;GAEJ,IAAI,IAAS;IACE;IACA;IACI;IACA;IACC;IACA;IACF;IACA;IACG;IACA;IACpB;AAID,GAHI,EAAU,EAAO,KACnB,KAAO,EAAa,EAAO,GAE7B,KAAO;;;AAKb,QADA,KAAO,WACA"}
@@ -0,0 +1,188 @@
1
+ import e from "../../xml/sanitizeAttributeValue.js";
2
+ import t from "../helpers/getFileExtensionForContentType.js";
3
+ //#region node_modules/write-excel-file/modules/xlsx/features/images.js
4
+ function n(e) {
5
+ "@babel/helpers - typeof";
6
+ return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
+ return typeof e;
8
+ } : function(e) {
9
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
+ }, n(e);
11
+ }
12
+ function r(e, t) {
13
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
14
+ if (n) return (n = n.call(e)).next.bind(n);
15
+ if (Array.isArray(e) || (n = o(e)) || t && e && typeof e.length == "number") {
16
+ n && (e = n);
17
+ var r = 0;
18
+ return function() {
19
+ return r >= e.length ? { done: !0 } : {
20
+ done: !1,
21
+ value: e[r++]
22
+ };
23
+ };
24
+ }
25
+ throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
26
+ }
27
+ function i(e) {
28
+ return c(e) || s(e) || o(e) || a();
29
+ }
30
+ function a() {
31
+ throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
32
+ }
33
+ function o(e, t) {
34
+ if (e) {
35
+ if (typeof e == "string") return l(e, t);
36
+ var n = {}.toString.call(e).slice(8, -1);
37
+ 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) ? l(e, t) : void 0;
38
+ }
39
+ }
40
+ function s(e) {
41
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
42
+ }
43
+ function c(e) {
44
+ if (Array.isArray(e)) return l(e);
45
+ }
46
+ function l(e, t) {
47
+ (t == null || t > e.length) && (t = e.length);
48
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
49
+ return r;
50
+ }
51
+ function u(e, t) {
52
+ var n = Object.keys(e);
53
+ if (Object.getOwnPropertySymbols) {
54
+ var r = Object.getOwnPropertySymbols(e);
55
+ t && (r = r.filter(function(t) {
56
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
57
+ })), n.push.apply(n, r);
58
+ }
59
+ return n;
60
+ }
61
+ function d(e) {
62
+ for (var t = 1; t < arguments.length; t++) {
63
+ var n = arguments[t] == null ? {} : arguments[t];
64
+ t % 2 ? u(Object(n), !0).forEach(function(t) {
65
+ f(e, t, n[t]);
66
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function(t) {
67
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
68
+ });
69
+ }
70
+ return e;
71
+ }
72
+ function f(e, t, n) {
73
+ return (t = p(t)) in e ? Object.defineProperty(e, t, {
74
+ value: n,
75
+ enumerable: !0,
76
+ configurable: !0,
77
+ writable: !0
78
+ }) : e[t] = n, e;
79
+ }
80
+ function p(e) {
81
+ var t = m(e, "string");
82
+ return n(t) == "symbol" ? t : t + "";
83
+ }
84
+ function m(e, t) {
85
+ if (n(e) != "object" || !e) return e;
86
+ var r = e[Symbol.toPrimitive];
87
+ if (r !== void 0) {
88
+ var i = r.call(e, t || "default");
89
+ if (n(i) != "object") return i;
90
+ throw TypeError("@@toPrimitive must return a primitive value.");
91
+ }
92
+ return (t === "string" ? String : Number)(e);
93
+ }
94
+ var h = { files: {
95
+ transform: {
96
+ "[Content_Types].xml": { insert: function(e) {
97
+ var t = e.map(function(e) {
98
+ return e.images;
99
+ });
100
+ if (t.some(Boolean)) return g(t);
101
+ } },
102
+ "xl/drawings/drawing{id}.xml": { insert: function(e, t) {
103
+ t.sheetIndex, t.sheetId;
104
+ var n = e.images;
105
+ if (n) return y({ images: n });
106
+ } },
107
+ "xl/drawings/_rels/drawing{id}.xml.rels": { insert: function(e, t) {
108
+ var n = t.sheetIndex;
109
+ t.sheetId;
110
+ var r = e.images;
111
+ if (r) return b({
112
+ images: r,
113
+ sheetIndex: n
114
+ });
115
+ } }
116
+ },
117
+ write: { files: function(e, t) {
118
+ t.read;
119
+ var n = e.map(function(e) {
120
+ return e.images;
121
+ });
122
+ if (n.some(Boolean)) return n.map(function(e, t) {
123
+ return e ? e.reduce(function(e, n, r) {
124
+ return d(d({}, e), {}, f({}, `xl/media/${v(n, {
125
+ sheetIndex: t,
126
+ imageIndex: r
127
+ })}`, n.content));
128
+ }, {}) : {};
129
+ }).reduce(function(e, t) {
130
+ return d(d({}, e), t);
131
+ }, {});
132
+ } }
133
+ } };
134
+ function g(e) {
135
+ for (var t = e.reduce(function(e, t) {
136
+ return [].concat(i(e), i(t || []));
137
+ }, []), n = "", a = r(_(t)), o; !(o = a()).done;) {
138
+ var s = o.value, c = s.fileExtension, l = s.contentType;
139
+ n += `<Default Extension="${c}" ContentType="${l}"/>`;
140
+ }
141
+ return n;
142
+ }
143
+ function _(e) {
144
+ for (var n = [], i = function(e) {
145
+ var r = t(e.contentType);
146
+ n.find(function(e) {
147
+ return e.fileExtension === r;
148
+ }) || n.push({
149
+ fileExtension: r,
150
+ contentType: e.contentType
151
+ });
152
+ }, a = r(e), o; !(o = a()).done;) {
153
+ var s = o.value;
154
+ i(s);
155
+ }
156
+ return n;
157
+ }
158
+ function v(e, n) {
159
+ var r = n.sheetIndex, i = n.imageIndex;
160
+ return `sheet${r + 1}-image${i + 1}.${t(e.contentType)}`;
161
+ }
162
+ function y(t) {
163
+ for (var n = t.images, i = "", a = 0, o = function() {
164
+ var t = c.value, n = a + 1, r = function(e) {
165
+ return C(e, t.dpi);
166
+ };
167
+ i += "<xdr:oneCellAnchor>", i += "<xdr:from>", i += `<xdr:col>${t.anchor.column - 1}</xdr:col>`, i += `<xdr:colOff>${typeof t.offsetX == "number" ? r(t.offsetX) : 0}</xdr:colOff>`, i += `<xdr:row>${t.anchor.row - 1}</xdr:row>`, i += `<xdr:rowOff>${typeof t.offsetY == "number" ? r(t.offsetY) : 0}</xdr:rowOff>`, i += "</xdr:from>", i += `<xdr:ext cx="${r(t.width)}" cy="${r(t.height)}"/>`, i += "<xdr:pic>", i += "<xdr:nvPicPr>", i += `<xdr:cNvPr id="${n}" name="${t.title ? e(t.title) : "Picture " + n}" descr="${t.description ? e(t.description) : ""}"/>`, i += "<xdr:cNvPicPr>", i += "<a:picLocks noChangeAspect=\"1\"/>", i += "</xdr:cNvPicPr>", i += "</xdr:nvPicPr>", i += "<xdr:blipFill>", i += `<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId-image-${n}" cstate="print"/>`, i += "<a:stretch>", i += "<a:fillRect/>", i += "</a:stretch>", i += "</xdr:blipFill>", i += "<xdr:spPr>", i += "<a:prstGeom prst=\"rect\">", i += "<a:avLst/>", i += "</a:prstGeom>", i += "</xdr:spPr>", i += "</xdr:pic>", i += "<xdr:clientData/>", i += "</xdr:oneCellAnchor>", a++;
168
+ }, s = r(n), c; !(c = s()).done;) o();
169
+ return i;
170
+ }
171
+ function b(e) {
172
+ var t = e.images, n = e.sheetIndex;
173
+ return t.map(function(e, t) {
174
+ return `<Relationship Id="rId-image-${t + 1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/${v(e, {
175
+ sheetIndex: n,
176
+ imageIndex: t
177
+ })}"/>`;
178
+ }).join("");
179
+ }
180
+ var x = 96, S = 96;
181
+ function C(e, t) {
182
+ var n = x;
183
+ return Math.round(e * 9525 * (x / n) * (S / t));
184
+ }
185
+ //#endregion
186
+ export { h as default };
187
+
188
+ //# sourceMappingURL=images.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images.js","names":[],"sources":["../../../../../../node_modules/write-excel-file/modules/xlsx/features/images.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 _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 _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread 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 _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\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 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 sanitizeAttributeValue from '../../xml/sanitizeAttributeValue.js';\nimport getFileExtensionForContentType from '../helpers/getFileExtensionForContentType.js';\nexport default {\n files: {\n transform: {\n '[Content_Types].xml': {\n insert: function insert(sheetsOptions) {\n var sheetsImages = sheetsOptions.map(function (sheetOptions) {\n return sheetOptions.images;\n });\n if (sheetsImages.some(Boolean)) {\n return getContentTypesXml(sheetsImages);\n }\n }\n },\n 'xl/drawings/drawing{id}.xml': {\n insert: function insert(sheetOptions, _ref) {\n var sheetIndex = _ref.sheetIndex,\n sheetId = _ref.sheetId;\n var images = sheetOptions.images;\n if (images) {\n return getImagesDrawingXml({\n images: images\n });\n }\n }\n },\n 'xl/drawings/_rels/drawing{id}.xml.rels': {\n insert: function insert(sheetOptions, _ref2) {\n var sheetIndex = _ref2.sheetIndex,\n sheetId = _ref2.sheetId;\n var images = sheetOptions.images;\n if (images) {\n return getImagesDrawingXmlRels({\n images: images,\n sheetIndex: sheetIndex\n });\n }\n }\n }\n },\n write: {\n files: function files(sheetsOptions, _ref3) {\n var read = _ref3.read;\n var sheetsImages = sheetsOptions.map(function (sheetOptions) {\n return sheetOptions.images;\n });\n if (sheetsImages.some(Boolean)) {\n return sheetsImages.map(function (images, sheetIndex) {\n if (images) {\n return images.reduce(function (imagesContent, image, imageIndex) {\n return _objectSpread(_objectSpread({}, imagesContent), {}, _defineProperty({}, \"xl/media/\".concat(getImageFileName(image, {\n sheetIndex: sheetIndex,\n imageIndex: imageIndex\n })), image.content));\n }, {});\n }\n return {};\n }).reduce(function (allImagesContent, sheetImagesContent) {\n return _objectSpread(_objectSpread({}, allImagesContent), sheetImagesContent);\n }, {});\n }\n }\n }\n }\n};\nfunction getContentTypesXml(sheetsImages) {\n // Get images from all sheets.\n var imagesFromAllSheets = sheetsImages.reduce(function (all, images) {\n return [].concat(_toConsumableArray(all), _toConsumableArray(images || []));\n }, []);\n var xml = '';\n\n // Elements with `PartName=\"/xl/drawings/drawing${sheetId}.xml\"` are already added by default.\n // Hence, this block of code was commented out.\n //\n // let i = 0\n // for (const images of imagesPerSheet) {\n // \tif (images) {\n // \t\txml += `<Override ContentType=\"application/vnd.openxmlformats-officedocument.drawing+xml\" PartName=\"/xl/drawings/drawing${sheetId}.xml\"/>`\n // \t}\n // \ti++\n // }\n\n for (var _iterator = _createForOfIteratorHelperLoose(getFileExtensionContentTypes(imagesFromAllSheets)), _step; !(_step = _iterator()).done;) {\n var _step$value = _step.value,\n fileExtension = _step$value.fileExtension,\n contentType = _step$value.contentType;\n xml += \"<Default Extension=\\\"\".concat(fileExtension, \"\\\" ContentType=\\\"\").concat(contentType, \"\\\"/>\");\n }\n return xml;\n}\nfunction getFileExtensionContentTypes(images) {\n var fileExtensionContentTypes = [];\n var addFileExtensionContentType = function addFileExtensionContentType(image) {\n var fileExtension = getFileExtensionForContentType(image.contentType);\n var existingFileExtensionContentType = fileExtensionContentTypes.find(function (_) {\n return _.fileExtension === fileExtension;\n });\n if (!existingFileExtensionContentType) {\n fileExtensionContentTypes.push({\n fileExtension: fileExtension,\n contentType: image.contentType\n });\n }\n };\n for (var _iterator2 = _createForOfIteratorHelperLoose(images), _step2; !(_step2 = _iterator2()).done;) {\n var image = _step2.value;\n addFileExtensionContentType(image);\n }\n return fileExtensionContentTypes;\n}\nfunction getImageFileName(image, _ref4) {\n var sheetIndex = _ref4.sheetIndex,\n imageIndex = _ref4.imageIndex;\n var sheetNumber = sheetIndex + 1;\n var imageNumber = imageIndex + 1;\n return \"sheet\".concat(sheetNumber, \"-image\").concat(imageNumber, \".\").concat(getFileExtensionForContentType(image.contentType));\n}\nfunction getImagesDrawingXml(_ref5) {\n var images = _ref5.images;\n var xml = '';\n var i = 0;\n var _loop = function _loop() {\n var image = _step3.value;\n // `imageId` is used to get the \"relationship ID\" of the image.\n var imageId = i + 1;\n var pxToEmu = function pxToEmu(px) {\n return pxToEmu_(px, image.dpi);\n };\n\n // There're two ways an image could be \"anchored\" in a spreadsheet:\n // * One-cell anchor — \"anchors\" the image's top-left corner to a top-left corner of a cell.\n // * Two-cell anchor — \"anchors\" the image's top-left corner to a top-left corner of the first cell,\n // and then the image's bottom-right corner to the bottom-right corner of the second cell.\n // While doing so, it completely ignores the image's aspect ratio, so there seems to be\n // no equivalent for CSS's `object-fit: contain` behavior.\n xml += '<xdr:oneCellAnchor>';\n xml += '<xdr:from>';\n xml += \"<xdr:col>\".concat(image.anchor.column - 1, \"</xdr:col>\");\n xml += \"<xdr:colOff>\".concat(typeof image.offsetX === 'number' ? pxToEmu(image.offsetX) : 0, \"</xdr:colOff>\");\n xml += \"<xdr:row>\".concat(image.anchor.row - 1, \"</xdr:row>\");\n xml += \"<xdr:rowOff>\".concat(typeof image.offsetY === 'number' ? pxToEmu(image.offsetY) : 0, \"</xdr:rowOff>\");\n xml += '</xdr:from>';\n xml += \"<xdr:ext cx=\\\"\".concat(pxToEmu(image.width), \"\\\" cy=\\\"\").concat(pxToEmu(image.height), \"\\\"/>\");\n xml += '<xdr:pic>';\n xml += '<xdr:nvPicPr>';\n xml += \"<xdr:cNvPr id=\\\"\".concat(imageId, \"\\\" name=\\\"\").concat(image.title ? sanitizeAttributeValue(image.title) : 'Picture ' + imageId, \"\\\" descr=\\\"\").concat(image.description ? sanitizeAttributeValue(image.description) : '', \"\\\"/>\");\n xml += '<xdr:cNvPicPr>';\n // Optional XML element. Locks the aspect ratio of the image. -->\n xml += '<a:picLocks noChangeAspect=\"1\"/>';\n xml += '</xdr:cNvPicPr>';\n xml += '</xdr:nvPicPr>';\n xml += '<xdr:blipFill>';\n\n // The link to the image.\n xml += \"<a:blip xmlns:r=\\\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\\\" r:embed=\\\"rId-image-\".concat(imageId, \"\\\" cstate=\\\"print\\\"/>\");\n\n // Allows scaling the image.\n xml += '<a:stretch>';\n xml += '<a:fillRect/>';\n xml += '</a:stretch>';\n xml += '</xdr:blipFill>';\n\n // Dunno what this is.\n xml += '<xdr:spPr>';\n xml += '<a:prstGeom prst=\"rect\">';\n xml += '<a:avLst/>';\n xml += '</a:prstGeom>';\n xml += '</xdr:spPr>';\n xml += '</xdr:pic>';\n xml += '<xdr:clientData/>';\n xml += '</xdr:oneCellAnchor>';\n i++;\n };\n for (var _iterator3 = _createForOfIteratorHelperLoose(images), _step3; !(_step3 = _iterator3()).done;) {\n _loop();\n }\n return xml;\n}\nfunction getImagesDrawingXmlRels(_ref6) {\n var images = _ref6.images,\n sheetIndex = _ref6.sheetIndex;\n return images.map(function (image, i) {\n var imageId = i + 1;\n return \"<Relationship Id=\\\"rId-image-\".concat(imageId, \"\\\" Type=\\\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image\\\" Target=\\\"../media/\").concat(getImageFileName(image, {\n sheetIndex: sheetIndex,\n imageIndex: i\n }), \"\\\"/>\");\n }).join('');\n}\n\n// For legacy reasons, XLSX documents measure image dimensions not in pixels\n// but rather in a weird measurement unit called EMU (English Metric Unit).\n// https://gitlab.com/catamphetamine/write-excel-file/-/blob/main/docs/IMAGES.md#image-dimensions\n// This function converts pixels to EMUs.\nvar DEFAULT_DISPLAY_DPI = 96;\nvar DEFAULT_IMAGE_DPI = 96;\nfunction pxToEmu_(px, imageDpi) {\n var displayDpi = DEFAULT_DISPLAY_DPI;\n return Math.round(px * 9525 * (DEFAULT_DISPLAY_DPI / displayDpi) * (DEFAULT_IMAGE_DPI / imageDpi));\n}\n//# sourceMappingURL=images.js.map"],"x_google_ignore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,IAAI,wGACwJ,EAAiB,GAAO;GACpL;GACZ,YAAY;GACb,CAAC;GACF,CAAC,KAAK,GAAG;;AAOb,IAAI,IAAsB,IACtB,IAAoB;AACxB,SAAS,EAAS,GAAI,GAAU;CAC9B,IAAI,IAAa;AACjB,QAAO,KAAK,MAAM,IAAK,QAAQ,IAAsB,MAAe,IAAoB,GAAU"}
@@ -0,0 +1,52 @@
1
+ import e from "../../xml/getOpeningTagMarkup.js";
2
+ import t from "../../xml/getClosingTagMarkup.js";
3
+ import n from "../../xml/getSelfClosingTagMarkup.js";
4
+ import r from "../helpers/getCellAddress.js";
5
+ import i from "../../xml/findElement.js";
6
+ import a from "../../xml/appendMarkupInsideElement.js";
7
+ import o from "../../xml/prependMarkupInsideElement.js";
8
+ import s from "../../xml/insertElementMarkupAccordingToOrderOfSiblings.js";
9
+ import c from "../helpers/getOrderOfSiblings.js";
10
+ import l from "../../xml/replaceElement.js";
11
+ import u from "../../xml/findElementInsideElement.js";
12
+ //#region node_modules/write-excel-file/modules/xlsx/features/stickyRowsOrColumns.js
13
+ var d = { files: { transform: {
14
+ "xl/worksheets/sheet{id}.xml": { transform: function(s, c, d) {
15
+ var p = d.sheetIndex, m = d.sheetId;
16
+ if (f(c)) {
17
+ var h = c.stickyRowsCount, g = c.stickyColumnsCount, _ = {
18
+ ySplit: h || 0,
19
+ xSplit: g || 0,
20
+ topLeftCell: r(h || 0, g || 0),
21
+ activePane: "bottomRight",
22
+ state: "frozen"
23
+ }, v = i(s, "sheetView");
24
+ if (v) {
25
+ var y = u(s, "pane", v), b = n("pane", _);
26
+ s = y ? l(s, y, b) : a(s, v, b);
27
+ } else {
28
+ if (i(s, "sheetViews")) throw Error(`xl/worksheets/sheet${m}.xml: <sheetViews/> element exists but it doesn't contain any <sheetView/> elements`);
29
+ var x = {
30
+ tabSelected: +(p === 0),
31
+ workbookViewId: 0
32
+ }, S = e("sheetViews") + e("sheetView", x) + n("pane", _) + t("sheetView", x) + t("sheetViews"), C = i(s, "worksheet");
33
+ s = o(s, C, S);
34
+ }
35
+ }
36
+ return s;
37
+ } },
38
+ "xl/workbook.xml": { transform: function(e, t) {
39
+ if (t.some(f) && !i(e, "workbookView")) {
40
+ if (i(e, "bookViews")) throw Error("xl/workbook.xml: <bookViews/> element exists but it doesn't contain any <workbookView/> elements");
41
+ return s(e, "<bookViews><workbookView/></bookViews>", c("xl/workbook.xml", "workbook"), "workbook");
42
+ }
43
+ return e;
44
+ } }
45
+ } } };
46
+ function f(e) {
47
+ return !!e.stickyRowsCount || !!e.stickyColumnsCount;
48
+ }
49
+ //#endregion
50
+ export { d as default };
51
+
52
+ //# sourceMappingURL=stickyRowsOrColumns.js.map