@haneinfo/report-engine 0.0.0-stage → 0.1.0

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 (516) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +862 -2
  3. package/agent-guide.md +31 -0
  4. package/dist/client/reportPdf.d.ts +15 -0
  5. package/dist/client/reportPdf.d.ts.map +1 -0
  6. package/dist/client/reportPdf.js +47 -0
  7. package/dist/client/reportPdf.js.map +1 -0
  8. package/dist/compiler/bandLayout.d.ts +7 -0
  9. package/dist/compiler/bandLayout.d.ts.map +1 -0
  10. package/dist/compiler/bandLayout.js +65 -0
  11. package/dist/compiler/bandLayout.js.map +1 -0
  12. package/dist/compiler/bandPipeline.d.ts +12 -0
  13. package/dist/compiler/bandPipeline.d.ts.map +1 -0
  14. package/dist/compiler/bandPipeline.js +47 -0
  15. package/dist/compiler/bandPipeline.js.map +1 -0
  16. package/dist/compiler/evaluator.d.ts +7 -0
  17. package/dist/compiler/evaluator.d.ts.map +1 -0
  18. package/dist/compiler/evaluator.js +13 -0
  19. package/dist/compiler/evaluator.js.map +1 -0
  20. package/dist/compiler/formatters.d.ts +3 -0
  21. package/dist/compiler/formatters.d.ts.map +1 -0
  22. package/dist/compiler/formatters.js +121 -0
  23. package/dist/compiler/formatters.js.map +1 -0
  24. package/dist/compiler/grouping.d.ts +16 -0
  25. package/dist/compiler/grouping.d.ts.map +1 -0
  26. package/dist/compiler/grouping.js +55 -0
  27. package/dist/compiler/grouping.js.map +1 -0
  28. package/dist/compiler/pdfCompiler.d.ts +9 -0
  29. package/dist/compiler/pdfCompiler.d.ts.map +1 -0
  30. package/dist/compiler/pdfCompiler.js +82 -0
  31. package/dist/compiler/pdfCompiler.js.map +1 -0
  32. package/dist/components/data/DataSourceEditor.d.ts +2 -0
  33. package/dist/components/data/DataSourceEditor.d.ts.map +1 -0
  34. package/dist/components/data/DataSourceEditor.js +80 -0
  35. package/dist/components/data/DataSourceEditor.js.map +1 -0
  36. package/dist/components/designer/BandCanvas.d.ts +4 -0
  37. package/dist/components/designer/BandCanvas.d.ts.map +1 -0
  38. package/dist/components/designer/BandCanvas.js +630 -0
  39. package/dist/components/designer/BandCanvas.js.map +1 -0
  40. package/dist/components/designer/Navbar.d.ts +3 -0
  41. package/dist/components/designer/Navbar.d.ts.map +1 -0
  42. package/dist/components/designer/Navbar.js +93 -0
  43. package/dist/components/designer/Navbar.js.map +1 -0
  44. package/dist/components/designer/PropertyPanel.d.ts +3 -0
  45. package/dist/components/designer/PropertyPanel.d.ts.map +1 -0
  46. package/dist/components/designer/PropertyPanel.js +65 -0
  47. package/dist/components/designer/PropertyPanel.js.map +1 -0
  48. package/dist/components/designer/Toolbox.d.ts +3 -0
  49. package/dist/components/designer/Toolbox.d.ts.map +1 -0
  50. package/dist/components/designer/Toolbox.js +236 -0
  51. package/dist/components/designer/Toolbox.js.map +1 -0
  52. package/dist/components/designer/properties/BandPropertiesSection.d.ts +12 -0
  53. package/dist/components/designer/properties/BandPropertiesSection.d.ts.map +1 -0
  54. package/dist/components/designer/properties/BandPropertiesSection.js +30 -0
  55. package/dist/components/designer/properties/BandPropertiesSection.js.map +1 -0
  56. package/dist/components/designer/properties/ColorPickerField.d.ts +14 -0
  57. package/dist/components/designer/properties/ColorPickerField.d.ts.map +1 -0
  58. package/dist/components/designer/properties/ColorPickerField.js +10 -0
  59. package/dist/components/designer/properties/ColorPickerField.js.map +1 -0
  60. package/dist/components/designer/properties/ConditionalPrintSection.d.ts +6 -0
  61. package/dist/components/designer/properties/ConditionalPrintSection.d.ts.map +1 -0
  62. package/dist/components/designer/properties/ConditionalPrintSection.js +112 -0
  63. package/dist/components/designer/properties/ConditionalPrintSection.js.map +1 -0
  64. package/dist/components/designer/properties/ControlSpecificInspector.d.ts +11 -0
  65. package/dist/components/designer/properties/ControlSpecificInspector.d.ts.map +1 -0
  66. package/dist/components/designer/properties/ControlSpecificInspector.js +52 -0
  67. package/dist/components/designer/properties/ControlSpecificInspector.js.map +1 -0
  68. package/dist/components/designer/properties/FieldSelectInput.d.ts +14 -0
  69. package/dist/components/designer/properties/FieldSelectInput.d.ts.map +1 -0
  70. package/dist/components/designer/properties/FieldSelectInput.js +13 -0
  71. package/dist/components/designer/properties/FieldSelectInput.js.map +1 -0
  72. package/dist/components/designer/properties/GeometrySection.d.ts +9 -0
  73. package/dist/components/designer/properties/GeometrySection.d.ts.map +1 -0
  74. package/dist/components/designer/properties/GeometrySection.js +9 -0
  75. package/dist/components/designer/properties/GeometrySection.js.map +1 -0
  76. package/dist/components/designer/properties/GlobalReportSettings.d.ts +3 -0
  77. package/dist/components/designer/properties/GlobalReportSettings.d.ts.map +1 -0
  78. package/dist/components/designer/properties/GlobalReportSettings.js +37 -0
  79. package/dist/components/designer/properties/GlobalReportSettings.js.map +1 -0
  80. package/dist/components/designer/properties/TypographySection.d.ts +10 -0
  81. package/dist/components/designer/properties/TypographySection.d.ts.map +1 -0
  82. package/dist/components/designer/properties/TypographySection.js +41 -0
  83. package/dist/components/designer/properties/TypographySection.js.map +1 -0
  84. package/dist/components/diagnostics/ReportPreflightPanel.d.ts +2 -0
  85. package/dist/components/diagnostics/ReportPreflightPanel.d.ts.map +1 -0
  86. package/dist/components/diagnostics/ReportPreflightPanel.js +39 -0
  87. package/dist/components/diagnostics/ReportPreflightPanel.js.map +1 -0
  88. package/dist/components/formula/CalculatedFieldsPanel.d.ts +2 -0
  89. package/dist/components/formula/CalculatedFieldsPanel.d.ts.map +1 -0
  90. package/dist/components/formula/CalculatedFieldsPanel.js +79 -0
  91. package/dist/components/formula/CalculatedFieldsPanel.js.map +1 -0
  92. package/dist/components/formula/ControlFormulaEditor.d.ts +7 -0
  93. package/dist/components/formula/ControlFormulaEditor.d.ts.map +1 -0
  94. package/dist/components/formula/ControlFormulaEditor.js +31 -0
  95. package/dist/components/formula/ControlFormulaEditor.js.map +1 -0
  96. package/dist/components/formula/FormulaEditor.d.ts +16 -0
  97. package/dist/components/formula/FormulaEditor.d.ts.map +1 -0
  98. package/dist/components/formula/FormulaEditor.js +93 -0
  99. package/dist/components/formula/FormulaEditor.js.map +1 -0
  100. package/dist/components/formula/useFormulaData.d.ts +8 -0
  101. package/dist/components/formula/useFormulaData.d.ts.map +1 -0
  102. package/dist/components/formula/useFormulaData.js +25 -0
  103. package/dist/components/formula/useFormulaData.js.map +1 -0
  104. package/dist/components/parameters/ParameterEditor.d.ts +3 -0
  105. package/dist/components/parameters/ParameterEditor.d.ts.map +1 -0
  106. package/dist/components/parameters/ParameterEditor.js +123 -0
  107. package/dist/components/parameters/ParameterEditor.js.map +1 -0
  108. package/dist/components/parameters/ParameterPanel.d.ts +6 -0
  109. package/dist/components/parameters/ParameterPanel.d.ts.map +1 -0
  110. package/dist/components/parameters/ParameterPanel.js +172 -0
  111. package/dist/components/parameters/ParameterPanel.js.map +1 -0
  112. package/dist/components/schema/SchemaViewer.d.ts +3 -0
  113. package/dist/components/schema/SchemaViewer.d.ts.map +1 -0
  114. package/dist/components/schema/SchemaViewer.js +61 -0
  115. package/dist/components/schema/SchemaViewer.js.map +1 -0
  116. package/dist/components/ui/badge.d.ts +7 -0
  117. package/dist/components/ui/badge.d.ts.map +1 -0
  118. package/dist/components/ui/badge.js +7 -0
  119. package/dist/components/ui/badge.js.map +1 -0
  120. package/dist/components/ui/badgeVariants.d.ts +4 -0
  121. package/dist/components/ui/badgeVariants.d.ts.map +1 -0
  122. package/dist/components/ui/badgeVariants.js +15 -0
  123. package/dist/components/ui/badgeVariants.js.map +1 -0
  124. package/dist/components/ui/button.d.ts +7 -0
  125. package/dist/components/ui/button.d.ts.map +1 -0
  126. package/dist/components/ui/button.js +9 -0
  127. package/dist/components/ui/button.js.map +1 -0
  128. package/dist/components/ui/buttonVariants.d.ts +5 -0
  129. package/dist/components/ui/buttonVariants.d.ts.map +1 -0
  130. package/dist/components/ui/buttonVariants.js +24 -0
  131. package/dist/components/ui/buttonVariants.js.map +1 -0
  132. package/dist/components/ui/checkbox.d.ts +5 -0
  133. package/dist/components/ui/checkbox.d.ts.map +1 -0
  134. package/dist/components/ui/checkbox.js +9 -0
  135. package/dist/components/ui/checkbox.js.map +1 -0
  136. package/dist/components/ui/date-input.d.ts +7 -0
  137. package/dist/components/ui/date-input.d.ts.map +1 -0
  138. package/dist/components/ui/date-input.js +41 -0
  139. package/dist/components/ui/date-input.js.map +1 -0
  140. package/dist/components/ui/input.d.ts +7 -0
  141. package/dist/components/ui/input.d.ts.map +1 -0
  142. package/dist/components/ui/input.js +10 -0
  143. package/dist/components/ui/input.js.map +1 -0
  144. package/dist/components/ui/label.d.ts +6 -0
  145. package/dist/components/ui/label.d.ts.map +1 -0
  146. package/dist/components/ui/label.js +7 -0
  147. package/dist/components/ui/label.js.map +1 -0
  148. package/dist/components/ui/native-select.d.ts +3 -0
  149. package/dist/components/ui/native-select.d.ts.map +1 -0
  150. package/dist/components/ui/native-select.js +8 -0
  151. package/dist/components/ui/native-select.js.map +1 -0
  152. package/dist/components/viewer/ReportViewer.d.ts +2 -0
  153. package/dist/components/viewer/ReportViewer.d.ts.map +1 -0
  154. package/dist/components/viewer/ReportViewer.js +103 -0
  155. package/dist/components/viewer/ReportViewer.js.map +1 -0
  156. package/dist/constants/labels.d.ts +14 -0
  157. package/dist/constants/labels.d.ts.map +1 -0
  158. package/dist/constants/labels.js +53 -0
  159. package/dist/constants/labels.js.map +1 -0
  160. package/dist/controls/barcodeUtils.d.ts +27 -0
  161. package/dist/controls/barcodeUtils.d.ts.map +1 -0
  162. package/dist/controls/barcodeUtils.js +93 -0
  163. package/dist/controls/barcodeUtils.js.map +1 -0
  164. package/dist/controls/pdfRegistry.d.ts +10 -0
  165. package/dist/controls/pdfRegistry.d.ts.map +1 -0
  166. package/dist/controls/pdfRegistry.js +204 -0
  167. package/dist/controls/pdfRegistry.js.map +1 -0
  168. package/dist/controls/plugins/BarcodeControl.d.ts +3 -0
  169. package/dist/controls/plugins/BarcodeControl.d.ts.map +1 -0
  170. package/dist/controls/plugins/BarcodeControl.js +34 -0
  171. package/dist/controls/plugins/BarcodeControl.js.map +1 -0
  172. package/dist/controls/plugins/CheckBoxControl.d.ts +3 -0
  173. package/dist/controls/plugins/CheckBoxControl.d.ts.map +1 -0
  174. package/dist/controls/plugins/CheckBoxControl.js +34 -0
  175. package/dist/controls/plugins/CheckBoxControl.js.map +1 -0
  176. package/dist/controls/plugins/ExpressionControl.d.ts +3 -0
  177. package/dist/controls/plugins/ExpressionControl.d.ts.map +1 -0
  178. package/dist/controls/plugins/ExpressionControl.js +28 -0
  179. package/dist/controls/plugins/ExpressionControl.js.map +1 -0
  180. package/dist/controls/plugins/FieldControl.d.ts +3 -0
  181. package/dist/controls/plugins/FieldControl.d.ts.map +1 -0
  182. package/dist/controls/plugins/FieldControl.js +30 -0
  183. package/dist/controls/plugins/FieldControl.js.map +1 -0
  184. package/dist/controls/plugins/ImageControl.d.ts +3 -0
  185. package/dist/controls/plugins/ImageControl.d.ts.map +1 -0
  186. package/dist/controls/plugins/ImageControl.js +29 -0
  187. package/dist/controls/plugins/ImageControl.js.map +1 -0
  188. package/dist/controls/plugins/LabelControl.d.ts +3 -0
  189. package/dist/controls/plugins/LabelControl.d.ts.map +1 -0
  190. package/dist/controls/plugins/LabelControl.js +32 -0
  191. package/dist/controls/plugins/LabelControl.js.map +1 -0
  192. package/dist/controls/plugins/LineControl.d.ts +3 -0
  193. package/dist/controls/plugins/LineControl.d.ts.map +1 -0
  194. package/dist/controls/plugins/LineControl.js +31 -0
  195. package/dist/controls/plugins/LineControl.js.map +1 -0
  196. package/dist/controls/plugins/PanelControl.d.ts +3 -0
  197. package/dist/controls/plugins/PanelControl.d.ts.map +1 -0
  198. package/dist/controls/plugins/PanelControl.js +35 -0
  199. package/dist/controls/plugins/PanelControl.js.map +1 -0
  200. package/dist/controls/plugins/QRCodeControl.d.ts +3 -0
  201. package/dist/controls/plugins/QRCodeControl.d.ts.map +1 -0
  202. package/dist/controls/plugins/QRCodeControl.js +43 -0
  203. package/dist/controls/plugins/QRCodeControl.js.map +1 -0
  204. package/dist/controls/plugins/SubReportControl.d.ts +3 -0
  205. package/dist/controls/plugins/SubReportControl.d.ts.map +1 -0
  206. package/dist/controls/plugins/SubReportControl.js +58 -0
  207. package/dist/controls/plugins/SubReportControl.js.map +1 -0
  208. package/dist/controls/registry.d.ts +18 -0
  209. package/dist/controls/registry.d.ts.map +1 -0
  210. package/dist/controls/registry.js +59 -0
  211. package/dist/controls/registry.js.map +1 -0
  212. package/dist/controls/styleUtils.d.ts +11 -0
  213. package/dist/controls/styleUtils.d.ts.map +1 -0
  214. package/dist/controls/styleUtils.js +63 -0
  215. package/dist/controls/styleUtils.js.map +1 -0
  216. package/dist/controls/types.d.ts +31 -0
  217. package/dist/controls/types.d.ts.map +1 -0
  218. package/dist/controls/types.js +2 -0
  219. package/dist/controls/types.js.map +1 -0
  220. package/dist/data/schema.d.ts +10 -0
  221. package/dist/data/schema.d.ts.map +1 -0
  222. package/dist/data/schema.js +117 -0
  223. package/dist/data/schema.js.map +1 -0
  224. package/dist/data/schemaField.d.ts +3 -0
  225. package/dist/data/schemaField.d.ts.map +1 -0
  226. package/dist/data/schemaField.js +9 -0
  227. package/dist/data/schemaField.js.map +1 -0
  228. package/dist/designer/DesignerView.d.ts +5 -0
  229. package/dist/designer/DesignerView.d.ts.map +1 -0
  230. package/dist/designer/DesignerView.js +51 -0
  231. package/dist/designer/DesignerView.js.map +1 -0
  232. package/dist/designer/EditorToolbar.d.ts +4 -0
  233. package/dist/designer/EditorToolbar.d.ts.map +1 -0
  234. package/dist/designer/EditorToolbar.js +23 -0
  235. package/dist/designer/EditorToolbar.js.map +1 -0
  236. package/dist/designer/ReportDesigner.d.ts +21 -0
  237. package/dist/designer/ReportDesigner.d.ts.map +1 -0
  238. package/dist/designer/ReportDesigner.js +98 -0
  239. package/dist/designer/ReportDesigner.js.map +1 -0
  240. package/dist/designer/ReportViewer.d.ts +5 -0
  241. package/dist/designer/ReportViewer.d.ts.map +1 -0
  242. package/dist/designer/ReportViewer.js +7 -0
  243. package/dist/designer/ReportViewer.js.map +1 -0
  244. package/dist/designer/parameterDateTime.d.ts +4 -0
  245. package/dist/designer/parameterDateTime.d.ts.map +1 -0
  246. package/dist/designer/parameterDateTime.js +15 -0
  247. package/dist/designer/parameterDateTime.js.map +1 -0
  248. package/dist/designer/previewData.d.ts +21 -0
  249. package/dist/designer/previewData.d.ts.map +1 -0
  250. package/dist/designer/previewData.js +85 -0
  251. package/dist/designer/previewData.js.map +1 -0
  252. package/dist/designer/services.d.ts +28 -0
  253. package/dist/designer/services.d.ts.map +1 -0
  254. package/dist/designer/services.js +8 -0
  255. package/dist/designer/services.js.map +1 -0
  256. package/dist/formula/engine.d.ts +23 -0
  257. package/dist/formula/engine.d.ts.map +1 -0
  258. package/dist/formula/engine.js +310 -0
  259. package/dist/formula/engine.js.map +1 -0
  260. package/dist/formula/parser.d.ts +5 -0
  261. package/dist/formula/parser.d.ts.map +1 -0
  262. package/dist/formula/parser.js +197 -0
  263. package/dist/formula/parser.js.map +1 -0
  264. package/dist/formula/presentation.d.ts +9 -0
  265. package/dist/formula/presentation.d.ts.map +1 -0
  266. package/dist/formula/presentation.js +40 -0
  267. package/dist/formula/presentation.js.map +1 -0
  268. package/dist/formula/registry.d.ts +83 -0
  269. package/dist/formula/registry.d.ts.map +1 -0
  270. package/dist/formula/registry.js +365 -0
  271. package/dist/formula/registry.js.map +1 -0
  272. package/dist/formula/report.d.ts +23 -0
  273. package/dist/formula/report.d.ts.map +1 -0
  274. package/dist/formula/report.js +400 -0
  275. package/dist/formula/report.js.map +1 -0
  276. package/dist/formula/types.d.ts +119 -0
  277. package/dist/formula/types.d.ts.map +1 -0
  278. package/dist/formula/types.js +27 -0
  279. package/dist/formula/types.js.map +1 -0
  280. package/dist/formula/values.d.ts +17 -0
  281. package/dist/formula/values.d.ts.map +1 -0
  282. package/dist/formula/values.js +125 -0
  283. package/dist/formula/values.js.map +1 -0
  284. package/dist/i18n/config.d.ts +5 -0
  285. package/dist/i18n/config.d.ts.map +1 -0
  286. package/dist/i18n/config.js +7 -0
  287. package/dist/i18n/config.js.map +1 -0
  288. package/dist/i18n/index.d.ts +18 -0
  289. package/dist/i18n/index.d.ts.map +1 -0
  290. package/dist/i18n/index.js +26 -0
  291. package/dist/i18n/index.js.map +1 -0
  292. package/dist/i18n/messages/en.d.ts +3 -0
  293. package/dist/i18n/messages/en.d.ts.map +1 -0
  294. package/dist/i18n/messages/en.js +420 -0
  295. package/dist/i18n/messages/en.js.map +1 -0
  296. package/dist/i18n/messages/index.d.ts +5 -0
  297. package/dist/i18n/messages/index.d.ts.map +1 -0
  298. package/dist/i18n/messages/index.js +7 -0
  299. package/dist/i18n/messages/index.js.map +1 -0
  300. package/dist/i18n/messages/zh-TW.d.ts +425 -0
  301. package/dist/i18n/messages/zh-TW.d.ts.map +1 -0
  302. package/dist/i18n/messages/zh-TW.js +420 -0
  303. package/dist/i18n/messages/zh-TW.js.map +1 -0
  304. package/dist/inspector/layoutInspector.d.ts +22 -0
  305. package/dist/inspector/layoutInspector.d.ts.map +1 -0
  306. package/dist/inspector/layoutInspector.js +317 -0
  307. package/dist/inspector/layoutInspector.js.map +1 -0
  308. package/dist/inspector/measureBand.d.ts +4 -0
  309. package/dist/inspector/measureBand.d.ts.map +1 -0
  310. package/dist/inspector/measureBand.js +19 -0
  311. package/dist/inspector/measureBand.js.map +1 -0
  312. package/dist/lib/required.d.ts +3 -0
  313. package/dist/lib/required.d.ts.map +1 -0
  314. package/dist/lib/required.js +7 -0
  315. package/dist/lib/required.js.map +1 -0
  316. package/dist/lib/utils.d.ts +3 -0
  317. package/dist/lib/utils.d.ts.map +1 -0
  318. package/dist/lib/utils.js +6 -0
  319. package/dist/lib/utils.js.map +1 -0
  320. package/dist/mcp/changeTools.d.ts +294 -0
  321. package/dist/mcp/changeTools.d.ts.map +1 -0
  322. package/dist/mcp/changeTools.js +262 -0
  323. package/dist/mcp/changeTools.js.map +1 -0
  324. package/dist/mcp/contracts.d.ts +48 -0
  325. package/dist/mcp/contracts.d.ts.map +1 -0
  326. package/dist/mcp/contracts.js +2 -0
  327. package/dist/mcp/contracts.js.map +1 -0
  328. package/dist/mcp/formulaTools.d.ts +13 -0
  329. package/dist/mcp/formulaTools.d.ts.map +1 -0
  330. package/dist/mcp/formulaTools.js +148 -0
  331. package/dist/mcp/formulaTools.js.map +1 -0
  332. package/dist/mcp/index.d.ts +3 -0
  333. package/dist/mcp/index.d.ts.map +1 -0
  334. package/dist/mcp/index.js +42 -0
  335. package/dist/mcp/index.js.map +1 -0
  336. package/dist/mcp/results.d.ts +16 -0
  337. package/dist/mcp/results.d.ts.map +1 -0
  338. package/dist/mcp/results.js +83 -0
  339. package/dist/mcp/results.js.map +1 -0
  340. package/dist/mcp/server.d.ts +9 -0
  341. package/dist/mcp/server.d.ts.map +1 -0
  342. package/dist/mcp/server.js +410 -0
  343. package/dist/mcp/server.js.map +1 -0
  344. package/dist/mcp/stdio.d.ts +16 -0
  345. package/dist/mcp/stdio.d.ts.map +1 -0
  346. package/dist/mcp/stdio.js +51 -0
  347. package/dist/mcp/stdio.js.map +1 -0
  348. package/dist/mcp/tools.d.ts +11 -0
  349. package/dist/mcp/tools.d.ts.map +1 -0
  350. package/dist/mcp/tools.js +346 -0
  351. package/dist/mcp/tools.js.map +1 -0
  352. package/dist/mock/mockDataSource.d.ts +29 -0
  353. package/dist/mock/mockDataSource.d.ts.map +1 -0
  354. package/dist/mock/mockDataSource.js +350 -0
  355. package/dist/mock/mockDataSource.js.map +1 -0
  356. package/dist/mock/sampleReport.d.ts +4 -0
  357. package/dist/mock/sampleReport.d.ts.map +1 -0
  358. package/dist/mock/sampleReport.js +1001 -0
  359. package/dist/mock/sampleReport.js.map +1 -0
  360. package/dist/public/core.d.ts +22 -0
  361. package/dist/public/core.d.ts.map +1 -0
  362. package/dist/public/core.js +16 -0
  363. package/dist/public/core.js.map +1 -0
  364. package/dist/public/designer.d.ts +11 -0
  365. package/dist/public/designer.d.ts.map +1 -0
  366. package/dist/public/designer.js +5 -0
  367. package/dist/public/designer.js.map +1 -0
  368. package/dist/public/mcp.d.ts +8 -0
  369. package/dist/public/mcp.d.ts.map +1 -0
  370. package/dist/public/mcp.js +4 -0
  371. package/dist/public/mcp.js.map +1 -0
  372. package/dist/public/pdf.d.ts +6 -0
  373. package/dist/public/pdf.d.ts.map +1 -0
  374. package/dist/public/pdf.js +5 -0
  375. package/dist/public/pdf.js.map +1 -0
  376. package/dist/public/registry.d.ts +3 -0
  377. package/dist/public/registry.d.ts.map +1 -0
  378. package/dist/public/registry.js +2 -0
  379. package/dist/public/registry.js.map +1 -0
  380. package/dist/registry/adapter.d.ts +27 -0
  381. package/dist/registry/adapter.d.ts.map +1 -0
  382. package/dist/registry/adapter.js +143 -0
  383. package/dist/registry/adapter.js.map +1 -0
  384. package/dist/report/conflict.d.ts +4 -0
  385. package/dist/report/conflict.d.ts.map +1 -0
  386. package/dist/report/conflict.js +6 -0
  387. package/dist/report/conflict.js.map +1 -0
  388. package/dist/report/dataPath.d.ts +3 -0
  389. package/dist/report/dataPath.d.ts.map +1 -0
  390. package/dist/report/dataPath.js +11 -0
  391. package/dist/report/dataPath.js.map +1 -0
  392. package/dist/report/dataSchema.d.ts +4 -0
  393. package/dist/report/dataSchema.d.ts.map +1 -0
  394. package/dist/report/dataSchema.js +10 -0
  395. package/dist/report/dataSchema.js.map +1 -0
  396. package/dist/report/defaultSubReport.d.ts +6 -0
  397. package/dist/report/defaultSubReport.d.ts.map +1 -0
  398. package/dist/report/defaultSubReport.js +224 -0
  399. package/dist/report/defaultSubReport.js.map +1 -0
  400. package/dist/report/diagnostics.d.ts +7 -0
  401. package/dist/report/diagnostics.d.ts.map +1 -0
  402. package/dist/report/diagnostics.js +43 -0
  403. package/dist/report/diagnostics.js.map +1 -0
  404. package/dist/report/document.d.ts +58 -0
  405. package/dist/report/document.d.ts.map +1 -0
  406. package/dist/report/document.js +71 -0
  407. package/dist/report/document.js.map +1 -0
  408. package/dist/report/geometry.d.ts +14 -0
  409. package/dist/report/geometry.d.ts.map +1 -0
  410. package/dist/report/geometry.js +21 -0
  411. package/dist/report/geometry.js.map +1 -0
  412. package/dist/report/layoutDiagnostics.d.ts +5 -0
  413. package/dist/report/layoutDiagnostics.d.ts.map +1 -0
  414. package/dist/report/layoutDiagnostics.js +70 -0
  415. package/dist/report/layoutDiagnostics.js.map +1 -0
  416. package/dist/report/operations.d.ts +12 -0
  417. package/dist/report/operations.d.ts.map +1 -0
  418. package/dist/report/operations.js +81 -0
  419. package/dist/report/operations.js.map +1 -0
  420. package/dist/report/pagination.d.ts +5 -0
  421. package/dist/report/pagination.d.ts.map +1 -0
  422. package/dist/report/pagination.js +5 -0
  423. package/dist/report/pagination.js.map +1 -0
  424. package/dist/report/parameters.d.ts +14 -0
  425. package/dist/report/parameters.d.ts.map +1 -0
  426. package/dist/report/parameters.js +223 -0
  427. package/dist/report/parameters.js.map +1 -0
  428. package/dist/report/preflight.d.ts +75 -0
  429. package/dist/report/preflight.d.ts.map +1 -0
  430. package/dist/report/preflight.js +160 -0
  431. package/dist/report/preflight.js.map +1 -0
  432. package/dist/report/presentationCapabilities.d.ts +3 -0
  433. package/dist/report/presentationCapabilities.d.ts.map +1 -0
  434. package/dist/report/presentationCapabilities.js +13 -0
  435. package/dist/report/presentationCapabilities.js.map +1 -0
  436. package/dist/report/schema.d.ts +91 -0
  437. package/dist/report/schema.d.ts.map +1 -0
  438. package/dist/report/schema.js +168 -0
  439. package/dist/report/schema.js.map +1 -0
  440. package/dist/report/subReport.d.ts +7 -0
  441. package/dist/report/subReport.d.ts.map +1 -0
  442. package/dist/report/subReport.js +37 -0
  443. package/dist/report/subReport.js.map +1 -0
  444. package/dist/report/validateDocument.d.ts +8 -0
  445. package/dist/report/validateDocument.d.ts.map +1 -0
  446. package/dist/report/validateDocument.js +99 -0
  447. package/dist/report/validateDocument.js.map +1 -0
  448. package/dist/server/atomicFile.d.ts +11 -0
  449. package/dist/server/atomicFile.d.ts.map +1 -0
  450. package/dist/server/atomicFile.js +24 -0
  451. package/dist/server/atomicFile.js.map +1 -0
  452. package/dist/server/documentRepository.d.ts +26 -0
  453. package/dist/server/documentRepository.d.ts.map +1 -0
  454. package/dist/server/documentRepository.js +78 -0
  455. package/dist/server/documentRepository.js.map +1 -0
  456. package/dist/server/pdfService.d.ts +12 -0
  457. package/dist/server/pdfService.d.ts.map +1 -0
  458. package/dist/server/pdfService.js +117 -0
  459. package/dist/server/pdfService.js.map +1 -0
  460. package/dist/server/pdfWorker.d.ts +2 -0
  461. package/dist/server/pdfWorker.d.ts.map +1 -0
  462. package/dist/server/pdfWorker.js +101 -0
  463. package/dist/server/pdfWorker.js.map +1 -0
  464. package/dist/server/renderSafety.d.ts +26 -0
  465. package/dist/server/renderSafety.d.ts.map +1 -0
  466. package/dist/server/renderSafety.js +89 -0
  467. package/dist/server/renderSafety.js.map +1 -0
  468. package/dist/server/reportApi.d.ts +6 -0
  469. package/dist/server/reportApi.d.ts.map +1 -0
  470. package/dist/server/reportApi.js +114 -0
  471. package/dist/server/reportApi.js.map +1 -0
  472. package/dist/server/reportRepository.d.ts +17 -0
  473. package/dist/server/reportRepository.d.ts.map +1 -0
  474. package/dist/server/reportRepository.js +72 -0
  475. package/dist/server/reportRepository.js.map +1 -0
  476. package/dist/server/requestSchema.d.ts +73 -0
  477. package/dist/server/requestSchema.d.ts.map +1 -0
  478. package/dist/server/requestSchema.js +47 -0
  479. package/dist/server/requestSchema.js.map +1 -0
  480. package/dist/store/useReportStore.d.ts +62 -0
  481. package/dist/store/useReportStore.d.ts.map +1 -0
  482. package/dist/store/useReportStore.js +470 -0
  483. package/dist/store/useReportStore.js.map +1 -0
  484. package/dist/sync/reportSync.d.ts +34 -0
  485. package/dist/sync/reportSync.d.ts.map +1 -0
  486. package/dist/sync/reportSync.js +167 -0
  487. package/dist/sync/reportSync.js.map +1 -0
  488. package/dist/sync/useReportSync.d.ts +11 -0
  489. package/dist/sync/useReportSync.d.ts.map +1 -0
  490. package/dist/sync/useReportSync.js +58 -0
  491. package/dist/sync/useReportSync.js.map +1 -0
  492. package/dist/types/datasource.d.ts +44 -0
  493. package/dist/types/datasource.d.ts.map +1 -0
  494. package/dist/types/datasource.js +6 -0
  495. package/dist/types/datasource.js.map +1 -0
  496. package/dist/types/diagnostics.d.ts +28 -0
  497. package/dist/types/diagnostics.d.ts.map +1 -0
  498. package/dist/types/diagnostics.js +2 -0
  499. package/dist/types/diagnostics.js.map +1 -0
  500. package/dist/types/document.d.ts +35 -0
  501. package/dist/types/document.d.ts.map +1 -0
  502. package/dist/types/document.js +2 -0
  503. package/dist/types/document.js.map +1 -0
  504. package/dist/types/parameters.d.ts +39 -0
  505. package/dist/types/parameters.d.ts.map +1 -0
  506. package/dist/types/parameters.js +2 -0
  507. package/dist/types/parameters.js.map +1 -0
  508. package/dist/types/render.d.ts +21 -0
  509. package/dist/types/render.d.ts.map +1 -0
  510. package/dist/types/render.js +2 -0
  511. package/dist/types/render.js.map +1 -0
  512. package/dist/types/report.d.ts +108 -0
  513. package/dist/types/report.d.ts.map +1 -0
  514. package/dist/types/report.js +13 -0
  515. package/dist/types/report.js.map +1 -0
  516. package/package.json +112 -3
@@ -0,0 +1,1001 @@
1
+ export const sampleOrderReport = {
2
+ id: 'delivery-order-001',
3
+ name: '企業標準出貨驗收單',
4
+ calculatedFields: [
5
+ { name: 'lineAmount', scope: 'row', type: 'number', expression: '=quantity * unitPrice' },
6
+ { name: 'subtotal', scope: 'report', type: 'number', expression: '=SUM(calc.lineAmount)' },
7
+ {
8
+ name: 'tax',
9
+ scope: 'report',
10
+ type: 'number',
11
+ expression: '=ROUND(calc.subtotal * params.taxRate, 0)',
12
+ },
13
+ {
14
+ name: 'grandTotal',
15
+ scope: 'report',
16
+ type: 'number',
17
+ expression: '=calc.subtotal + calc.tax',
18
+ },
19
+ ],
20
+ pageSettings: {
21
+ size: 'A4',
22
+ orientation: 'portrait',
23
+ margins: { top: 35, right: 40, bottom: 35, left: 40 }, // 40pt horizontal margins -> 515.28pt printable width
24
+ },
25
+ bands: [
26
+ {
27
+ id: 'band-report-header',
28
+ type: 'ReportHeader',
29
+ height: 138,
30
+ controls: [
31
+ // Order Barcode linked to dynamic parameter orderNo
32
+ {
33
+ id: 'ctl-header-barcode',
34
+ type: 'Barcode',
35
+ x: 395,
36
+ y: 4,
37
+ width: 120,
38
+ height: 32,
39
+ fieldName: 'orderNo',
40
+ barcodeFormat: 'CODE128',
41
+ displayValue: true,
42
+ style: {
43
+ fontSize: 7,
44
+ color: '#0f172a',
45
+ },
46
+ },
47
+ // Company Main Title
48
+ {
49
+ id: 'ctl-company-title',
50
+ type: 'Label',
51
+ x: 0,
52
+ y: 0,
53
+ width: 515,
54
+ height: 22,
55
+ text: '台灣智慧系統股份有限公司',
56
+ style: {
57
+ fontSize: 16,
58
+ fontWeight: 'bold',
59
+ color: '#0f172a',
60
+ textAlign: 'center',
61
+ },
62
+ },
63
+ // Company Subtitle English
64
+ {
65
+ id: 'ctl-company-en',
66
+ type: 'Label',
67
+ x: 0,
68
+ y: 22,
69
+ width: 515,
70
+ height: 14,
71
+ text: 'TAIWAN INTELLIGENT SYSTEMS CORP. | 台北市信義區信義路五段 7 號 50 樓',
72
+ style: {
73
+ fontSize: 8,
74
+ color: '#64748b',
75
+ textAlign: 'center',
76
+ },
77
+ },
78
+ // Document Title
79
+ {
80
+ id: 'ctl-doc-title',
81
+ type: 'Label',
82
+ x: 160,
83
+ y: 38,
84
+ width: 195,
85
+ height: 20,
86
+ text: '【 出 貨 驗 收 清 冊 】',
87
+ style: {
88
+ fontSize: 13,
89
+ fontWeight: 'bold',
90
+ color: '#1e293b',
91
+ textAlign: 'center',
92
+ },
93
+ },
94
+ // Client & Order Info Card Outer Border
95
+ {
96
+ id: 'ctl-info-card-bg',
97
+ type: 'Label',
98
+ x: 0,
99
+ y: 62,
100
+ width: 515,
101
+ height: 72,
102
+ text: '',
103
+ style: {
104
+ backgroundColor: '#ffffff',
105
+ borderWidth: 1,
106
+ borderColor: '#94a3b8',
107
+ },
108
+ },
109
+ // Info Card Middle Divider
110
+ {
111
+ id: 'ctl-info-divider',
112
+ type: 'Line',
113
+ x: 260,
114
+ y: 62,
115
+ width: 1,
116
+ height: 72,
117
+ lineOrientation: 'vertical',
118
+ style: { color: '#cbd5e1' },
119
+ },
120
+ // Left Column: Customer Information
121
+ {
122
+ id: 'ctl-cust-name',
123
+ type: 'Expression',
124
+ x: 8,
125
+ y: 66,
126
+ width: 245,
127
+ height: 15,
128
+ expression: '=CONCAT("客戶名稱:", COALESCE(params.customerName, ""))',
129
+ style: { fontSize: 8.5, fontWeight: 'bold', color: '#1e293b' },
130
+ },
131
+ {
132
+ id: 'ctl-cust-tax',
133
+ type: 'Expression',
134
+ x: 8,
135
+ y: 83,
136
+ width: 245,
137
+ height: 15,
138
+ expression: '=CONCAT("統一編號:", COALESCE(params.taxId, ""), " | 負責窗口:", COALESCE(params.contactPerson, ""))',
139
+ style: { fontSize: 8.5, color: '#334155' },
140
+ },
141
+ {
142
+ id: 'ctl-cust-addr',
143
+ type: 'Expression',
144
+ x: 8,
145
+ y: 100,
146
+ width: 245,
147
+ height: 15,
148
+ expression: '=CONCAT("送貨地址:", COALESCE(params.deliveryAddress, ""))',
149
+ style: { fontSize: 8, color: '#334155' },
150
+ },
151
+ {
152
+ id: 'ctl-cust-contact',
153
+ type: 'Expression',
154
+ x: 8,
155
+ y: 117,
156
+ width: 245,
157
+ height: 15,
158
+ expression: '=CONCAT("聯絡電話:", COALESCE(params.contactPhone, ""))',
159
+ style: { fontSize: 8, color: '#475569' },
160
+ },
161
+ // Right Column: Order Information
162
+ {
163
+ id: 'ctl-doc-no',
164
+ type: 'Expression',
165
+ x: 268,
166
+ y: 66,
167
+ width: 240,
168
+ height: 15,
169
+ expression: '=CONCAT("單據編號:", COALESCE(params.orderNo, ""))',
170
+ style: { fontSize: 8.5, fontWeight: 'bold', color: '#0f172a' },
171
+ },
172
+ {
173
+ id: 'ctl-doc-date',
174
+ type: 'Expression',
175
+ x: 268,
176
+ y: 83,
177
+ width: 240,
178
+ height: 15,
179
+ expression: '=CONCAT("出貨日期:", COALESCE(FORMAT_DATE(params.deliveryDate, "YYYY 年 MM 月 DD 日"), ""))',
180
+ style: { fontSize: 8.5, color: '#334155' },
181
+ },
182
+ {
183
+ id: 'ctl-doc-po',
184
+ type: 'Expression',
185
+ x: 268,
186
+ y: 100,
187
+ width: 240,
188
+ height: 15,
189
+ expression: '=CONCAT("採購單號:", COALESCE(params.poNumber, ""))',
190
+ style: { fontSize: 8, color: '#334155' },
191
+ },
192
+ {
193
+ id: 'ctl-doc-payment',
194
+ type: 'Expression',
195
+ x: 268,
196
+ y: 117,
197
+ width: 240,
198
+ height: 15,
199
+ expression: '=CONCAT("付款條件:", COALESCE(params.paymentTerms, ""), " | 幣別:", COALESCE(params.currency, ""))',
200
+ style: { fontSize: 8, color: '#475569' },
201
+ },
202
+ ],
203
+ },
204
+ {
205
+ id: 'band-page-header',
206
+ type: 'PageHeader',
207
+ height: 24,
208
+ controls: [
209
+ // Column 1: Index (width 35)
210
+ {
211
+ id: 'th-col-idx',
212
+ type: 'Label',
213
+ x: 0,
214
+ y: 0,
215
+ width: 35,
216
+ height: 24,
217
+ text: '項次',
218
+ style: {
219
+ fontSize: 8.5,
220
+ fontWeight: 'bold',
221
+ textAlign: 'center',
222
+ backgroundColor: '#f1f5f9',
223
+ borderTopWidth: 1.5,
224
+ borderBottomWidth: 1.5,
225
+ borderLeftWidth: 1,
226
+ borderRightWidth: 0.5,
227
+ borderColor: '#64748b',
228
+ paddingVertical: 5,
229
+ },
230
+ },
231
+ // Column 2: SKU (width 85)
232
+ {
233
+ id: 'th-col-sku',
234
+ type: 'Label',
235
+ x: 35,
236
+ y: 0,
237
+ width: 85,
238
+ height: 24,
239
+ text: '產品料號 (SKU)',
240
+ style: {
241
+ fontSize: 8.5,
242
+ fontWeight: 'bold',
243
+ textAlign: 'left',
244
+ backgroundColor: '#f1f5f9',
245
+ borderTopWidth: 1.5,
246
+ borderBottomWidth: 1.5,
247
+ borderRightWidth: 0.5,
248
+ borderColor: '#64748b',
249
+ paddingHorizontal: 4,
250
+ paddingVertical: 5,
251
+ },
252
+ },
253
+ // Column 3: Name & Spec (width 170)
254
+ {
255
+ id: 'th-col-name',
256
+ type: 'Label',
257
+ x: 120,
258
+ y: 0,
259
+ width: 170,
260
+ height: 24,
261
+ text: '品名與規格說明',
262
+ style: {
263
+ fontSize: 8.5,
264
+ fontWeight: 'bold',
265
+ textAlign: 'left',
266
+ backgroundColor: '#f1f5f9',
267
+ borderTopWidth: 1.5,
268
+ borderBottomWidth: 1.5,
269
+ borderRightWidth: 0.5,
270
+ borderColor: '#64748b',
271
+ paddingHorizontal: 4,
272
+ paddingVertical: 5,
273
+ },
274
+ },
275
+ // Column 4: Quantity (width 45)
276
+ {
277
+ id: 'th-col-qty',
278
+ type: 'Label',
279
+ x: 290,
280
+ y: 0,
281
+ width: 45,
282
+ height: 24,
283
+ text: '數量',
284
+ style: {
285
+ fontSize: 8.5,
286
+ fontWeight: 'bold',
287
+ textAlign: 'right',
288
+ backgroundColor: '#f1f5f9',
289
+ borderTopWidth: 1.5,
290
+ borderBottomWidth: 1.5,
291
+ borderRightWidth: 0.5,
292
+ borderColor: '#64748b',
293
+ paddingHorizontal: 4,
294
+ paddingVertical: 5,
295
+ },
296
+ },
297
+ // Column 5: Unit (width 35)
298
+ {
299
+ id: 'th-col-unit',
300
+ type: 'Label',
301
+ x: 335,
302
+ y: 0,
303
+ width: 35,
304
+ height: 24,
305
+ text: '單位',
306
+ style: {
307
+ fontSize: 8.5,
308
+ fontWeight: 'bold',
309
+ textAlign: 'center',
310
+ backgroundColor: '#f1f5f9',
311
+ borderTopWidth: 1.5,
312
+ borderBottomWidth: 1.5,
313
+ borderRightWidth: 0.5,
314
+ borderColor: '#64748b',
315
+ paddingVertical: 5,
316
+ },
317
+ },
318
+ // Column 6: Unit Price (width 65)
319
+ {
320
+ id: 'th-col-price',
321
+ type: 'Label',
322
+ x: 370,
323
+ y: 0,
324
+ width: 65,
325
+ height: 24,
326
+ text: '單價 (NTD)',
327
+ style: {
328
+ fontSize: 8.5,
329
+ fontWeight: 'bold',
330
+ textAlign: 'right',
331
+ backgroundColor: '#f1f5f9',
332
+ borderTopWidth: 1.5,
333
+ borderBottomWidth: 1.5,
334
+ borderRightWidth: 0.5,
335
+ borderColor: '#64748b',
336
+ paddingHorizontal: 4,
337
+ paddingVertical: 5,
338
+ },
339
+ },
340
+ // Column 7: Amount (width 80)
341
+ {
342
+ id: 'th-col-amount',
343
+ type: 'Label',
344
+ x: 435,
345
+ y: 0,
346
+ width: 80,
347
+ height: 24,
348
+ text: '金額 (NTD)',
349
+ style: {
350
+ fontSize: 8.5,
351
+ fontWeight: 'bold',
352
+ textAlign: 'right',
353
+ backgroundColor: '#f1f5f9',
354
+ borderTopWidth: 1.5,
355
+ borderBottomWidth: 1.5,
356
+ borderRightWidth: 1,
357
+ borderColor: '#64748b',
358
+ paddingHorizontal: 4,
359
+ paddingVertical: 5,
360
+ },
361
+ },
362
+ ],
363
+ },
364
+ {
365
+ id: 'band-detail',
366
+ type: 'Detail',
367
+ height: 62,
368
+ keepTogether: true,
369
+ controls: [
370
+ // Detail Col 1: Index
371
+ {
372
+ id: 'td-idx',
373
+ type: 'Expression',
374
+ x: 0,
375
+ y: 0,
376
+ width: 35,
377
+ height: 22,
378
+ expression: '=ROW_INDEX',
379
+ style: {
380
+ fontSize: 8,
381
+ textAlign: 'center',
382
+ borderBottomWidth: 0.5,
383
+ borderLeftWidth: 1,
384
+ borderRightWidth: 0.5,
385
+ borderColor: '#cbd5e1',
386
+ paddingVertical: 4,
387
+ },
388
+ },
389
+ // Detail Col 2: SKU
390
+ {
391
+ id: 'td-sku',
392
+ type: 'Field',
393
+ x: 35,
394
+ y: 0,
395
+ width: 85,
396
+ height: 22,
397
+ fieldName: 'sku',
398
+ style: {
399
+ fontSize: 7.5,
400
+ color: '#334155',
401
+ borderBottomWidth: 0.5,
402
+ borderRightWidth: 0.5,
403
+ borderColor: '#cbd5e1',
404
+ paddingHorizontal: 4,
405
+ paddingVertical: 4,
406
+ },
407
+ },
408
+ // Detail Col 3: Product Name
409
+ {
410
+ id: 'td-name',
411
+ type: 'Field',
412
+ x: 120,
413
+ y: 0,
414
+ width: 170,
415
+ height: 22,
416
+ fieldName: 'productName',
417
+ style: {
418
+ fontSize: 8,
419
+ color: '#0f172a',
420
+ borderBottomWidth: 0.5,
421
+ borderRightWidth: 0.5,
422
+ borderColor: '#cbd5e1',
423
+ paddingHorizontal: 4,
424
+ paddingVertical: 4,
425
+ },
426
+ },
427
+ // Detail Col 4: Quantity
428
+ {
429
+ id: 'td-qty',
430
+ type: 'Field',
431
+ x: 290,
432
+ y: 0,
433
+ width: 45,
434
+ height: 22,
435
+ fieldName: 'quantity',
436
+ formatString: 'N0',
437
+ style: {
438
+ fontSize: 8,
439
+ textAlign: 'right',
440
+ borderBottomWidth: 0.5,
441
+ borderRightWidth: 0.5,
442
+ borderColor: '#cbd5e1',
443
+ paddingHorizontal: 4,
444
+ paddingVertical: 4,
445
+ },
446
+ },
447
+ // Detail Col 5: Unit
448
+ {
449
+ id: 'td-unit',
450
+ type: 'Field',
451
+ x: 335,
452
+ y: 0,
453
+ width: 35,
454
+ height: 22,
455
+ fieldName: 'unit',
456
+ style: {
457
+ fontSize: 8,
458
+ textAlign: 'center',
459
+ borderBottomWidth: 0.5,
460
+ borderRightWidth: 0.5,
461
+ borderColor: '#cbd5e1',
462
+ paddingVertical: 4,
463
+ },
464
+ },
465
+ // Detail Col 6: Unit Price
466
+ {
467
+ id: 'td-price',
468
+ type: 'Field',
469
+ x: 370,
470
+ y: 0,
471
+ width: 65,
472
+ height: 22,
473
+ fieldName: 'unitPrice',
474
+ formatString: 'C0',
475
+ style: {
476
+ fontSize: 8,
477
+ textAlign: 'right',
478
+ borderBottomWidth: 0.5,
479
+ borderRightWidth: 0.5,
480
+ borderColor: '#cbd5e1',
481
+ paddingHorizontal: 4,
482
+ paddingVertical: 4,
483
+ },
484
+ },
485
+ // Detail Col 7: Amount
486
+ {
487
+ id: 'td-amount',
488
+ type: 'Field',
489
+ x: 435,
490
+ y: 0,
491
+ width: 80,
492
+ height: 22,
493
+ fieldName: 'calc.lineAmount',
494
+ formatString: 'C0',
495
+ style: {
496
+ fontSize: 8,
497
+ fontWeight: 'bold',
498
+ color: '#0f172a',
499
+ textAlign: 'right',
500
+ borderBottomWidth: 0.5,
501
+ borderRightWidth: 1,
502
+ borderColor: '#cbd5e1',
503
+ paddingHorizontal: 4,
504
+ paddingVertical: 4,
505
+ },
506
+ },
507
+ // Nested SubReport for Serial Numbers & QC Inspection with Full Secondary Bands Definition
508
+ {
509
+ id: 'ctl-subreport-serials',
510
+ type: 'SubReport',
511
+ x: 0,
512
+ y: 22,
513
+ width: 515,
514
+ height: 38,
515
+ subReportTitle: '序號與檢驗明細',
516
+ subReportBinding: 'serials',
517
+ subReportDefinition: {
518
+ id: 'subreport-serials-def',
519
+ name: '序號與檢驗明細',
520
+ pageSettings: {
521
+ size: 'A4',
522
+ orientation: 'portrait',
523
+ margins: { top: 0, right: 0, bottom: 0, left: 0 },
524
+ },
525
+ bands: [
526
+ {
527
+ id: 'sub-band-header',
528
+ type: 'PageHeader',
529
+ height: 15,
530
+ controls: [
531
+ {
532
+ id: 'sub-th-sn',
533
+ type: 'Label',
534
+ x: 4,
535
+ y: 0,
536
+ width: 105,
537
+ height: 15,
538
+ text: '出廠序號 (S/N)',
539
+ style: {
540
+ fontSize: 7,
541
+ fontWeight: 'bold',
542
+ color: '#475569',
543
+ backgroundColor: '#f1f5f9',
544
+ borderBottomWidth: 0.5,
545
+ borderColor: '#cbd5e1',
546
+ paddingVertical: 2,
547
+ },
548
+ },
549
+ {
550
+ id: 'sub-th-barcode',
551
+ type: 'Label',
552
+ x: 112,
553
+ y: 0,
554
+ width: 110,
555
+ height: 15,
556
+ text: '序號條碼 (CODE128)',
557
+ style: {
558
+ fontSize: 7,
559
+ fontWeight: 'bold',
560
+ color: '#475569',
561
+ backgroundColor: '#f1f5f9',
562
+ borderBottomWidth: 0.5,
563
+ borderColor: '#cbd5e1',
564
+ paddingVertical: 2,
565
+ },
566
+ },
567
+ {
568
+ id: 'sub-th-lot',
569
+ type: 'Label',
570
+ x: 226,
571
+ y: 0,
572
+ width: 85,
573
+ height: 15,
574
+ text: '生產批號',
575
+ style: {
576
+ fontSize: 7,
577
+ fontWeight: 'bold',
578
+ color: '#475569',
579
+ backgroundColor: '#f1f5f9',
580
+ borderBottomWidth: 0.5,
581
+ borderColor: '#cbd5e1',
582
+ paddingVertical: 2,
583
+ },
584
+ },
585
+ {
586
+ id: 'sub-th-location',
587
+ type: 'Label',
588
+ x: 315,
589
+ y: 0,
590
+ width: 75,
591
+ height: 15,
592
+ text: '出貨儲位',
593
+ style: {
594
+ fontSize: 7,
595
+ fontWeight: 'bold',
596
+ color: '#475569',
597
+ backgroundColor: '#f1f5f9',
598
+ borderBottomWidth: 0.5,
599
+ borderColor: '#cbd5e1',
600
+ paddingVertical: 2,
601
+ },
602
+ },
603
+ {
604
+ id: 'sub-th-qc',
605
+ type: 'Label',
606
+ x: 395,
607
+ y: 0,
608
+ width: 75,
609
+ height: 15,
610
+ text: '品檢結果',
611
+ style: {
612
+ fontSize: 7,
613
+ fontWeight: 'bold',
614
+ textAlign: 'right',
615
+ color: '#475569',
616
+ backgroundColor: '#f1f5f9',
617
+ borderBottomWidth: 0.5,
618
+ borderColor: '#cbd5e1',
619
+ paddingVertical: 2,
620
+ paddingHorizontal: 6,
621
+ },
622
+ },
623
+ ],
624
+ },
625
+ {
626
+ id: 'sub-band-detail',
627
+ type: 'Detail',
628
+ height: 20,
629
+ controls: [
630
+ {
631
+ id: 'sub-td-sn',
632
+ type: 'Field',
633
+ x: 4,
634
+ y: 2,
635
+ width: 105,
636
+ height: 16,
637
+ fieldName: 'serialNo',
638
+ style: { fontSize: 7, color: '#0f172a' },
639
+ },
640
+ {
641
+ id: 'sub-td-barcode',
642
+ type: 'Barcode',
643
+ x: 112,
644
+ y: 1,
645
+ width: 110,
646
+ height: 18,
647
+ fieldName: 'serialNo',
648
+ barcodeFormat: 'CODE128',
649
+ displayValue: false,
650
+ },
651
+ {
652
+ id: 'sub-td-lot',
653
+ type: 'Field',
654
+ x: 226,
655
+ y: 2,
656
+ width: 85,
657
+ height: 16,
658
+ fieldName: 'lotNo',
659
+ style: { fontSize: 7, color: '#475569' },
660
+ },
661
+ {
662
+ id: 'sub-td-location',
663
+ type: 'Field',
664
+ x: 315,
665
+ y: 2,
666
+ width: 75,
667
+ height: 16,
668
+ fieldName: 'location',
669
+ style: { fontSize: 7, color: '#475569' },
670
+ },
671
+ {
672
+ id: 'sub-td-qc',
673
+ type: 'Field',
674
+ x: 395,
675
+ y: 2,
676
+ width: 75,
677
+ height: 16,
678
+ fieldName: 'qcStatus',
679
+ style: {
680
+ fontSize: 7,
681
+ fontWeight: 'bold',
682
+ color: '#059669',
683
+ textAlign: 'right',
684
+ paddingHorizontal: 6,
685
+ },
686
+ },
687
+ ],
688
+ },
689
+ ],
690
+ },
691
+ },
692
+ ],
693
+ },
694
+ {
695
+ id: 'band-report-footer',
696
+ type: 'ReportFooter',
697
+ height: 150,
698
+ keepTogether: true,
699
+ controls: [
700
+ // Accounting Settlement Outer Box
701
+ {
702
+ id: 'rf-settle-box',
703
+ type: 'Label',
704
+ x: 0,
705
+ y: 4,
706
+ width: 515,
707
+ height: 68,
708
+ text: '',
709
+ style: {
710
+ borderWidth: 1,
711
+ borderColor: '#94a3b8',
712
+ backgroundColor: '#ffffff',
713
+ },
714
+ },
715
+ // Settlement Box Vertical Divider
716
+ {
717
+ id: 'rf-settle-vdiv',
718
+ type: 'Line',
719
+ x: 320,
720
+ y: 4,
721
+ width: 1,
722
+ height: 68,
723
+ lineOrientation: 'vertical',
724
+ style: { color: '#cbd5e1' },
725
+ },
726
+ // Left Side: Terms & Big Chinese Amount
727
+ {
728
+ id: 'rf-terms-title',
729
+ type: 'Label',
730
+ x: 8,
731
+ y: 8,
732
+ width: 305,
733
+ height: 12,
734
+ text: '備註與驗收條款 (Terms & Instructions):',
735
+ style: { fontSize: 7.5, fontWeight: 'bold', color: '#475569' },
736
+ },
737
+ {
738
+ id: 'rf-terms-1',
739
+ type: 'Label',
740
+ x: 8,
741
+ y: 22,
742
+ width: 305,
743
+ height: 12,
744
+ text: '1. 本批貨物經點收簽章後視同驗收合格;若有瑕疵,請於三日內通知我司換貨。',
745
+ style: { fontSize: 7, color: '#64748b' },
746
+ },
747
+ {
748
+ id: 'rf-terms-2',
749
+ type: 'Label',
750
+ x: 8,
751
+ y: 34,
752
+ width: 305,
753
+ height: 12,
754
+ text: '2. 電匯帳號:華南商業銀行 營業部 (008) 帳號:100-20-889901-8',
755
+ style: { fontSize: 7, color: '#64748b' },
756
+ },
757
+ {
758
+ id: 'rf-cn-amount',
759
+ type: 'Label',
760
+ x: 8,
761
+ y: 50,
762
+ width: 305,
763
+ height: 16,
764
+ text: '金額依本單明細與稅率計算,以右側總計為準。',
765
+ style: {
766
+ fontSize: 9,
767
+ fontWeight: 'bold',
768
+ color: '#0f172a',
769
+ },
770
+ },
771
+ // Right Side: Subtotal, Tax, and Grand Total
772
+ {
773
+ id: 'rf-lbl-subtotal',
774
+ type: 'Label',
775
+ x: 328,
776
+ y: 10,
777
+ width: 90,
778
+ height: 14,
779
+ text: '銷售合計 (未稅):',
780
+ style: { fontSize: 8, color: '#475569' },
781
+ },
782
+ {
783
+ id: 'rf-val-subtotal',
784
+ type: 'Expression',
785
+ x: 418,
786
+ y: 10,
787
+ width: 90,
788
+ height: 14,
789
+ expression: '=calc.subtotal',
790
+ formatString: 'C0',
791
+ style: { fontSize: 8.5, fontWeight: 'bold', textAlign: 'right' },
792
+ },
793
+ {
794
+ id: 'rf-lbl-tax',
795
+ type: 'Label',
796
+ x: 328,
797
+ y: 26,
798
+ width: 90,
799
+ height: 14,
800
+ text: '營業稅額:',
801
+ style: { fontSize: 8, color: '#475569' },
802
+ },
803
+ {
804
+ id: 'rf-val-tax',
805
+ type: 'Expression',
806
+ x: 418,
807
+ y: 26,
808
+ width: 90,
809
+ height: 14,
810
+ expression: '=calc.tax',
811
+ formatString: 'C0',
812
+ style: { fontSize: 8.5, textAlign: 'right', color: '#475569' },
813
+ },
814
+ // Grand Total Row with Double Bottom Border
815
+ {
816
+ id: 'rf-lbl-grand',
817
+ type: 'Label',
818
+ x: 328,
819
+ y: 44,
820
+ width: 90,
821
+ height: 18,
822
+ text: '應收總計 (含稅):',
823
+ style: { fontSize: 9, fontWeight: 'bold', color: '#0284c7' },
824
+ },
825
+ {
826
+ id: 'rf-val-grand',
827
+ type: 'Expression',
828
+ x: 418,
829
+ y: 44,
830
+ width: 90,
831
+ height: 18,
832
+ expression: '=calc.grandTotal',
833
+ formatString: 'C0',
834
+ style: {
835
+ fontSize: 10,
836
+ fontWeight: 'bold',
837
+ color: '#0284c7',
838
+ textAlign: 'right',
839
+ borderBottomWidth: 1.5,
840
+ borderColor: '#0284c7',
841
+ },
842
+ },
843
+ // Corporate 4-Approval Box Grid
844
+ // Box 1: Creator
845
+ {
846
+ id: 'rf-box1-border',
847
+ type: 'Label',
848
+ x: 0,
849
+ y: 82,
850
+ width: 122,
851
+ height: 58,
852
+ text: '',
853
+ style: { borderWidth: 1, borderColor: '#94a3b8' },
854
+ },
855
+ {
856
+ id: 'rf-box1-title',
857
+ type: 'Label',
858
+ x: 0,
859
+ y: 82,
860
+ width: 122,
861
+ height: 16,
862
+ text: '製單人員',
863
+ style: {
864
+ fontSize: 8,
865
+ fontWeight: 'bold',
866
+ textAlign: 'center',
867
+ backgroundColor: '#f8fafc',
868
+ borderBottomWidth: 0.5,
869
+ borderColor: '#94a3b8',
870
+ paddingVertical: 2,
871
+ },
872
+ },
873
+ // Box 2: Supervisor
874
+ {
875
+ id: 'rf-box2-border',
876
+ type: 'Label',
877
+ x: 128,
878
+ y: 82,
879
+ width: 122,
880
+ height: 58,
881
+ text: '',
882
+ style: { borderWidth: 1, borderColor: '#94a3b8' },
883
+ },
884
+ {
885
+ id: 'rf-box2-title',
886
+ type: 'Label',
887
+ x: 128,
888
+ y: 82,
889
+ width: 122,
890
+ height: 16,
891
+ text: '業務主管',
892
+ style: {
893
+ fontSize: 8,
894
+ fontWeight: 'bold',
895
+ textAlign: 'center',
896
+ backgroundColor: '#f8fafc',
897
+ borderBottomWidth: 0.5,
898
+ borderColor: '#94a3b8',
899
+ paddingVertical: 2,
900
+ },
901
+ },
902
+ // Box 3: Warehouse
903
+ {
904
+ id: 'rf-box3-border',
905
+ type: 'Label',
906
+ x: 256,
907
+ y: 82,
908
+ width: 122,
909
+ height: 58,
910
+ text: '',
911
+ style: { borderWidth: 1, borderColor: '#94a3b8' },
912
+ },
913
+ {
914
+ id: 'rf-box3-title',
915
+ type: 'Label',
916
+ x: 256,
917
+ y: 82,
918
+ width: 122,
919
+ height: 16,
920
+ text: '倉管點收',
921
+ style: {
922
+ fontSize: 8,
923
+ fontWeight: 'bold',
924
+ textAlign: 'center',
925
+ backgroundColor: '#f8fafc',
926
+ borderBottomWidth: 0.5,
927
+ borderColor: '#94a3b8',
928
+ paddingVertical: 2,
929
+ },
930
+ },
931
+ // Box 4: Client Signature / Stamp
932
+ {
933
+ id: 'rf-box4-border',
934
+ type: 'Label',
935
+ x: 384,
936
+ y: 82,
937
+ width: 131,
938
+ height: 58,
939
+ text: '',
940
+ style: { borderWidth: 1, borderColor: '#94a3b8' },
941
+ },
942
+ {
943
+ id: 'rf-box4-title',
944
+ type: 'Label',
945
+ x: 384,
946
+ y: 82,
947
+ width: 131,
948
+ height: 16,
949
+ text: '客戶簽收 / 蓋發票章',
950
+ style: {
951
+ fontSize: 8,
952
+ fontWeight: 'bold',
953
+ textAlign: 'center',
954
+ backgroundColor: '#f8fafc',
955
+ borderBottomWidth: 0.5,
956
+ borderColor: '#94a3b8',
957
+ paddingVertical: 2,
958
+ },
959
+ },
960
+ ],
961
+ },
962
+ {
963
+ id: 'band-page-footer',
964
+ type: 'PageFooter',
965
+ height: 20,
966
+ controls: [
967
+ {
968
+ id: 'pf-divider',
969
+ type: 'Line',
970
+ x: 0,
971
+ y: 0,
972
+ width: 515,
973
+ height: 1,
974
+ style: { color: '#cbd5e1' },
975
+ },
976
+ {
977
+ id: 'pf-system-note',
978
+ type: 'Expression',
979
+ x: 0,
980
+ y: 4,
981
+ width: 260,
982
+ height: 14,
983
+ expression: '列印時間:[ExecutionTime]',
984
+ style: { fontSize: 7.5, color: '#94a3b8' },
985
+ },
986
+ {
987
+ id: 'pf-page-number',
988
+ type: 'Expression',
989
+ x: 365,
990
+ y: 4,
991
+ width: 150,
992
+ height: 14,
993
+ expression: '第 [PageNumber] 頁,共 [TotalPages] 頁',
994
+ style: { fontSize: 7.5, color: '#64748b', textAlign: 'right' },
995
+ },
996
+ ],
997
+ },
998
+ ],
999
+ };
1000
+ export { baseProductCatalog, defaultOrderParameters, generateOrderItems, sampleOrderData, sampleOrderData14, sampleOrderData45, sampleOrderData100, sampleOrderDataSource, } from './mockDataSource.js';
1001
+ //# sourceMappingURL=sampleReport.js.map