@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 @@
1
+ {"version":3,"file":"BandPropertiesSection.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/BandPropertiesSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,UAAU,0BAA0B;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IACvD,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA8HtE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowDownUp, Layers, Trash2 } from 'lucide-react';
3
+ import { useCurrentLocale, useTranslations } from '../../../i18n/index.js';
4
+ import { isFlowBand } from '../../../report/pagination.js';
5
+ import { Button } from '../../ui/button.js';
6
+ import { Checkbox } from '../../ui/checkbox.js';
7
+ import { Input } from '../../ui/input.js';
8
+ import { Label } from '../../ui/label.js';
9
+ import { NativeSelect } from '../../ui/native-select.js';
10
+ import { FieldSelectInput } from './FieldSelectInput.js';
11
+ export const BandPropertiesSection = ({ band, sampleFields, onUpdateHeight, onUpdateProp, onRemoveGroup, }) => {
12
+ const tProps = useTranslations('propertyGrid');
13
+ const zh = useCurrentLocale().locale === 'zh-TW';
14
+ return (_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('bandHeight') }), _jsx(Input, { "aria-label": tProps('bandHeight'), type: "number", value: band.height, onChange: (e) => onUpdateHeight(Number(e.target.value) || 20), className: "bg-background " })] }), ['GroupHeader', 'GroupFooter'].includes(band.type) && (_jsxs("div", { className: "p-2.5 rounded-md bg-background border border-border space-y-2 ", children: [_jsxs("div", { className: "text-[11px] font-semibold text-foreground flex items-center space-x-1", children: [_jsx(Layers, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('groupSettings') })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground ", children: tProps('groupByField') }), _jsx(FieldSelectInput, { "aria-label": tProps('groupByField'), value: band.groupBy ?? '', placeholder: tProps('placeholderGroupByField'), sampleFields: sampleFields, selectPlaceholder: tProps('selectField'), title: tProps('quickApplyField'), onChange: (val) => onUpdateProp({ groupBy: val }) }), _jsx("p", { className: "text-[9px] text-muted-foreground", children: tProps('groupByHint') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground ", children: tProps('groupSortOrder') }), _jsxs(NativeSelect, { "aria-label": tProps('groupSortOrder'), value: band.groupSortOrder || 'asc', onChange: (e) => onUpdateProp({ groupSortOrder: e.target.value }), className: "", children: [_jsx("option", { value: "asc", children: tProps('sortAsc') }), _jsx("option", { value: "desc", children: tProps('sortDesc') })] })] }), _jsx("div", { className: "pt-1 space-y-1", children: _jsxs("label", { htmlFor: "band-page-break-checkbox", className: "flex min-h-11 items-center gap-1 pr-2 text-[11px] cursor-pointer select-none", children: [_jsx(Checkbox, { id: "band-page-break-checkbox", checked: band.pageBreakAfter ?? false, onChange: (e) => onUpdateProp({ pageBreakAfter: e.target.checked }) }), _jsxs("span", { className: "flex items-center space-x-1 text-foreground ", children: [_jsx(ArrowDownUp, { className: "h-3 w-3 text-muted-foreground" }), _jsx("span", { children: tProps('pageBreakAfterGroup') })] })] }) }), _jsx("div", { className: "pt-2 border-t border-border ", children: _jsxs(Button, { variant: "outline", size: "sm", onClick: () => {
15
+ if (confirm(tProps('confirmRemoveGroup'))) {
16
+ onRemoveGroup();
17
+ }
18
+ }, className: "w-full text-xs text-destructive hover:text-destructive hover:bg-destructive/10 border-border h-7", children: [_jsx(Trash2, { className: "h-3 w-3 mr-1" }), _jsx("span", { children: tProps('removeGroup') })] }) })] })), _jsxs("div", { className: "p-2.5 rounded-md bg-background border border-border text-muted-foreground ", children: [_jsxs("label", { htmlFor: "band-keep-together-checkbox", className: "flex min-h-11 items-center gap-1 pr-2 text-[11px] font-medium mb-1 cursor-pointer select-none", children: [_jsx(Checkbox, { id: "band-keep-together-checkbox", "aria-label": zh ? '固定區段保持同頁' : 'Keep fixed band together', disabled: isFlowBand(band), checked: !isFlowBand(band) && band.keepTogether !== false, onChange: (e) => onUpdateProp({ keepTogether: e.target.checked }) }), _jsx("span", { className: "text-foreground", children: zh ? '固定區段保持同頁' : 'Keep fixed band together' })] }), _jsx("p", { className: "text-[10px] text-muted-foreground", children: isFlowBand(band)
19
+ ? zh
20
+ ? '含自動增高或子報表的區段依內容續頁,不強制整段同頁。'
21
+ : 'Growing content and subreports continue across pages.'
22
+ : band.keepTogether !== false
23
+ ? zh
24
+ ? '整個固定區段移到同一頁。'
25
+ : 'The complete fixed band stays on one page.'
26
+ : zh
27
+ ? '可在完整資料列之間換頁,列內不分割。'
28
+ : 'Breaks are allowed between complete rows.' })] })] }));
29
+ };
30
+ //# sourceMappingURL=BandPropertiesSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BandPropertiesSection.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/BandPropertiesSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAUzD,MAAM,CAAC,MAAM,qBAAqB,GAAyC,CAAC,EAC1E,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,GACd,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IAC/C,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC;IAEjD,OAAO,CACL,eAAK,SAAS,EAAC,WAAW,aACxB,0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AQ,IAC7B,GACL,IACF,CACP,EAGD,eAAK,SAAS,EAAC,8EAA8E,aAC3F,iBACE,OAAO,EAAC,6BAA6B,EACrC,SAAS,EAAC,+FAA+F,aAEzG,KAAC,QAAQ,IACP,EAAE,EAAC,6BAA6B,gBACpB,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,0BAA0B,EACxD,QAAQ,EAAE,UAAU,CAAC,IAAI,CAAC,EAC1B,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,EACzD,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,GACjE,EACF,eAAM,SAAS,EAAC,iBAAiB,YAC9B,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,0BAA0B,GACxC,IACD,EACR,YAAG,SAAS,EAAC,mCAAmC,YAC7C,UAAU,CAAC,IAAI,CAAC;4BACf,CAAC,CAAC,EAAE;gCACF,CAAC,CAAC,4BAA4B;gCAC9B,CAAC,CAAC,uDAAuD;4BAC3D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,KAAK;gCAC3B,CAAC,CAAC,EAAE;oCACF,CAAC,CAAC,cAAc;oCAChB,CAAC,CAAC,4CAA4C;gCAChD,CAAC,CAAC,EAAE;oCACF,CAAC,CAAC,oBAAoB;oCACtB,CAAC,CAAC,2CAA2C,GACjD,IACA,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface ColorPickerFieldProps {
3
+ 'aria-label'?: string;
4
+ value?: string;
5
+ defaultValue?: string;
6
+ onChange: (val: string | undefined) => void;
7
+ placeholder?: string;
8
+ allowClear?: boolean;
9
+ clearText?: string;
10
+ className?: string;
11
+ }
12
+ export declare const ColorPickerField: React.FC<ColorPickerFieldProps>;
13
+ export {};
14
+ //# sourceMappingURL=ColorPickerField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorPickerField.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/ColorPickerField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2C5D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslations } from '../../../i18n/index.js';
3
+ import { Input } from '../../ui/input.js';
4
+ export const ColorPickerField = ({ 'aria-label': accessibleLabel, value, defaultValue = '#000000', onChange, placeholder, allowClear = false, clearText, className = '', }) => {
5
+ const tProps = useTranslations('propertyGrid');
6
+ const resolvedClearText = clearText ?? tProps('clear');
7
+ const displayColor = value || defaultValue;
8
+ return (_jsxs("div", { className: `flex items-center space-x-1 ${className}`, children: [_jsx("input", { "aria-label": accessibleLabel, type: "color", value: displayColor.startsWith('#') && displayColor.length === 7 ? displayColor : defaultValue, onChange: (e) => onChange(e.target.value), className: "w-6 h-6 rounded border border-border cursor-pointer shrink-0" }), _jsx(Input, { "aria-label": accessibleLabel, value: value || '', placeholder: placeholder, onChange: (e) => onChange(e.target.value || undefined), className: "text-[11px] font-mono h-7 flex-1 bg-background " }), allowClear && value && (_jsx("button", { type: "button", onClick: () => onChange(undefined), className: "text-[10px] text-muted-foreground hover:text-foreground underline px-1 shrink-0 cursor-pointer", children: resolvedClearText }))] }));
9
+ };
10
+ //# sourceMappingURL=ColorPickerField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorPickerField.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/ColorPickerField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAa1C,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAChE,YAAY,EAAE,eAAe,EAC7B,KAAK,EACL,YAAY,GAAG,SAAS,EACxB,QAAQ,EACR,WAAW,EACX,UAAU,GAAG,KAAK,EAClB,SAAS,EACT,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IAC/C,MAAM,iBAAiB,GAAG,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,YAAY,GAAG,KAAK,IAAI,YAAY,CAAC;IAE3C,OAAO,CACL,eAAK,SAAS,EAAE,+BAA+B,SAAS,EAAE,aACxD,8BACc,eAAe,EAC3B,IAAI,EAAC,OAAO,EACZ,KAAK,EACH,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,EAEzF,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,SAAS,EAAC,+DAA+D,GACzE,EACF,KAAC,KAAK,kBACQ,eAAe,EAC3B,KAAK,EAAE,KAAK,IAAI,EAAE,EAClB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC,EACtD,SAAS,EAAC,iDAAiD,GAC3D,EACD,UAAU,IAAI,KAAK,IAAI,CACtB,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAClC,SAAS,EAAC,iGAAiG,YAE1G,iBAAiB,GACX,CACV,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ControlDefinition } from '../../../types/report.js';
2
+ export declare function ConditionalPrintSection({ bandId, control, }: {
3
+ bandId: string;
4
+ control?: ControlDefinition;
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=ConditionalPrintSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalPrintSection.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/ConditionalPrintSection.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B,+BA4MA"}
@@ -0,0 +1,112 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { bandIsVisible, resolveControlAppearance } from '../../../formula/presentation.js';
4
+ import { createFormulaRun, validateReportFormulas } from '../../../formula/report.js';
5
+ import { useCurrentLocale } from '../../../i18n/index.js';
6
+ import { required } from '../../../lib/required.js';
7
+ import { patchControl, updateReportBand } from '../../../report/operations.js';
8
+ import { conditionalStylesByControl } from '../../../report/presentationCapabilities.js';
9
+ import { parseReport } from '../../../report/schema.js';
10
+ import { useReportStoreApi } from '../../../store/useReportStore.js';
11
+ import { useFormulaData } from '../../formula/useFormulaData.js';
12
+ export function ConditionalPrintSection({ bandId, control, }) {
13
+ const { state, report, schema, data, parameters } = useFormulaData(), store = useReportStoreApi(), zh = useCurrentLocale().locale === 'zh-TW';
14
+ const band = required(report.bands.find((b) => b.id === bandId));
15
+ const target = control ?? band;
16
+ const [base, setBase] = useState(target), [visibleWhen, setVisible] = useState(target.visibleWhen ?? '');
17
+ const [rules, setRules] = useState(() => control?.styleRules?.map((rule) => ({
18
+ key: crypto.randomUUID(),
19
+ when: rule.when,
20
+ styleText: JSON.stringify(rule.style),
21
+ })) ?? []);
22
+ const [message, setMessage] = useState('');
23
+ const allowed = control ? conditionalStylesByControl[control.type] : [];
24
+ const reload = () => {
25
+ setBase(target);
26
+ setVisible(target.visibleWhen ?? '');
27
+ setRules(control?.styleRules?.map((rule) => ({
28
+ key: crypto.randomUUID(),
29
+ when: rule.when,
30
+ styleText: JSON.stringify(rule.style),
31
+ })) ?? []);
32
+ setMessage('');
33
+ };
34
+ const apply = () => {
35
+ try {
36
+ if (target !== base)
37
+ throw new Error(zh ? '目標已變更,請先載入目前設定。' : 'Target changed; load current settings first.');
38
+ const styleRules = rules.length
39
+ ? rules.map((rule) => ({
40
+ when: rule.when,
41
+ style: JSON.parse(rule.styleText),
42
+ }))
43
+ : undefined;
44
+ const patch = {
45
+ visibleWhen: visibleWhen.trim() || undefined,
46
+ ...(control ? { styleRules } : {}),
47
+ };
48
+ const next = parseReport(control
49
+ ? patchControl(report, bandId, control.id, patch)
50
+ : updateReportBand(report, bandId, (b) => ({ ...b, ...patch })));
51
+ const validation = validateReportFormulas(next, { schema });
52
+ if (!validation.valid)
53
+ throw new Error(validation.diagnostics.map((d) => `${d.path}: ${d.message}`).join('\n'));
54
+ if (control)
55
+ state.updateControl(bandId, control.id, patch);
56
+ else
57
+ state.updateBand(bandId, patch);
58
+ const current = required(store
59
+ .getState()
60
+ .getActiveReport()
61
+ .bands.find((b) => b.id === bandId));
62
+ setBase(control ? required(current.controls.find((c) => c.id === control.id)) : current);
63
+ setMessage(zh ? '條件設定已套用。' : 'Conditions applied.');
64
+ }
65
+ catch (error) {
66
+ setMessage(error instanceof Error ? error.message : String(error));
67
+ }
68
+ };
69
+ let preview = '';
70
+ try {
71
+ const context = createFormulaRun(report, {
72
+ schema,
73
+ dataSource: data,
74
+ reportParameters: parameters,
75
+ timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
76
+ });
77
+ const local = ['Detail', 'GroupHeader', 'GroupFooter'].includes(band.type)
78
+ ? {
79
+ ...context,
80
+ currentRow: data[0],
81
+ rowIndex: 0,
82
+ groupRows: context.reportGroups?.[0]?.rows,
83
+ }
84
+ : context;
85
+ const bandVisible = bandIsVisible(band, local);
86
+ const appearance = control && bandVisible ? resolveControlAppearance(control, local) : undefined;
87
+ const visible = bandVisible && (!control || !!appearance);
88
+ preview = zh
89
+ ? `目前範例:${visible ? '顯示' : '隱藏'}${control && appearance ? ` · ${JSON.stringify(appearance.style ?? {})}` : ''}`
90
+ : `Current sample: ${visible ? 'visible' : 'hidden'}${control && appearance ? ` · ${JSON.stringify(appearance.style ?? {})}` : ''}`;
91
+ }
92
+ catch (error) {
93
+ preview =
94
+ (zh ? '範例診斷:' : 'Sample diagnostic: ') +
95
+ (error instanceof Error ? error.message : String(error));
96
+ }
97
+ return (_jsxs("section", { className: "border-t border-border pt-3 space-y-2", "aria-label": zh ? '條件式列印' : 'Conditional printing', children: [_jsx("h2", { className: "font-medium", children: zh ? '條件式列印' : 'Conditional printing' }), _jsxs("label", { className: "block space-y-1", children: [_jsx("span", { children: zh ? '顯示條件' : 'Visible when' }), _jsx("input", { "aria-label": zh ? '顯示條件' : 'Visible when', value: visibleWhen, onChange: (e) => setVisible(e.target.value), placeholder: "=quantity > 0", className: "w-full border rounded p-2 font-mono bg-transparent" })] }), _jsx("p", { className: "text-[10px] text-muted-foreground", children: zh
98
+ ? '留空為顯示;公式須回傳 boolean,null 視為隱藏。區段隱藏會收起空間。'
99
+ : 'Empty means visible. Conditions return boolean; null means hidden. Hidden bands collapse their space.' }), allowed.length > 0 && (_jsxs(_Fragment, { children: [_jsxs("p", { className: "text-[10px] text-muted-foreground", children: [zh
100
+ ? '樣式規則依序套用,後面的符合規則優先。可設定:'
101
+ : 'Matching styles merge in order; later rules win. Supported: ', allowed.join(', ')] }), rules.map((rule, index) => (_jsxs("div", { className: "border rounded p-2 space-y-1", children: [_jsx("input", { "aria-label": `${zh ? '樣式條件' : 'Style condition'} ${index + 1}`, className: "w-full bg-transparent border rounded p-1 font-mono", value: rule.when, placeholder: "=calc.amount < 0", onChange: (e) => setRules((previous) => previous.map((r, i) => (i === index ? { ...r, when: e.target.value } : r))) }), _jsx("textarea", { "aria-label": `${zh ? '條件樣式 JSON' : 'Conditional style JSON'} ${index + 1}`, className: "w-full bg-transparent border rounded p-1 font-mono", value: rule.styleText, onChange: (e) => setRules((previous) => previous.map((r, i) => (i === index ? { ...r, styleText: e.target.value } : r))) }), _jsx("button", { type: "button", onClick: () => setRules((previous) => previous.filter((_, i) => i !== index)), children: zh ? '移除此規則' : 'Remove rule' })] }, rule.key))), _jsx("button", { type: "button", disabled: rules.length >= 32, onClick: () => setRules((previous) => [
102
+ ...previous,
103
+ {
104
+ key: crypto.randomUUID(),
105
+ when: '=TRUE',
106
+ styleText: JSON.stringify({
107
+ [allowed[0]]: allowed[0] === 'color' ? '#dc2626' : '#fee2e2',
108
+ }),
109
+ },
110
+ ]), className: "border rounded px-2 py-1", children: zh ? '新增樣式規則' : 'Add style rule' })] })), target !== base && (_jsx("p", { className: "text-foreground", children: zh ? '設定已變更,草稿已保留。' : 'Settings changed; your draft is preserved.' })), _jsxs("div", { className: "flex gap-2", children: [_jsx("button", { type: "button", onClick: apply, className: "rounded px-2 py-1 bg-primary text-primary-foreground", children: zh ? '套用條件' : 'Apply conditions' }), _jsx("button", { type: "button", onClick: reload, className: "border rounded px-2 py-1", children: zh ? '載入目前設定' : 'Load current settings' })] }), message && (_jsx("p", { role: "status", className: "whitespace-pre-wrap break-all text-foreground", children: message })), _jsx("p", { "data-testid": "condition-preview", className: "text-[10px] break-all text-muted-foreground", children: preview })] }));
111
+ }
112
+ //# sourceMappingURL=ConditionalPrintSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalPrintSection.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/ConditionalPrintSection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,MAAM,UAAU,uBAAuB,CAAC,EACtC,MAAM,EACN,OAAO,GAIR;IACC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,cAAc,EAAE,EAClE,KAAK,GAAG,iBAAiB,EAAE,EAC3B,EAAE,GAAG,gBAAgB,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC;IAC7C,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,OAAO,IAAI,IAAI,C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AM,CAAC,UAAU,EAAE;gCACxB,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;oCACxB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;iCAC7D,CAAC;6BACH;yBACF,CAAC,EAEJ,SAAS,EAAC,0BAA0B,YAEnC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,GAC1B,IACR,CACJ,EACA,MAAM,KAAK,IAAI,IAAI,CAClB,YAAG,SAAS,EAAC,iBAAiB,YAC3B,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,4CAA4C,GACjE,CACL,EACD,eAAK,SAAS,EAAC,YAAY,aACzB,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,KAAK,EACd,SAAS,EAAC,sDAAsD,YAE/D,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,kBAAkB,GAC1B,EACT,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAC,0BAA0B,YACxE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAuB,GACjC,IACL,EACL,OAAO,IAAI,CACV,YAAG,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,+CAA+C,YACvE,OAAO,GACN,CACL,EACD,2BAAe,mBAAmB,EAAC,SAAS,EAAC,6CAA6C,YACvF,OAAO,GACN,IACI,CACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { ControlDefinition } from '../../../types/report.js';
3
+ interface ControlSpecificInspectorProps {
4
+ control: ControlDefinition;
5
+ bandId: string;
6
+ sampleFields: string[];
7
+ onUpdate: (patch: Partial<ControlDefinition>) => void;
8
+ }
9
+ export declare const ControlSpecificInspector: React.FC<ControlSpecificInspectorProps>;
10
+ export {};
11
+ //# sourceMappingURL=ControlSpecificInspector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControlSpecificInspector.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/ControlSpecificInspector.tsx"],"names":[],"mappings":"AASA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAelE,UAAU,6BAA6B;IACrC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAmc5E,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Barcode as BarcodeIcon, CheckSquare, Image as ImageIcon, Minus, QrCode as QrCodeIcon, Square, TableProperties, } from 'lucide-react';
3
+ import { lazy, Suspense } from 'react';
4
+ import { useTranslations } from '../../../i18n/index.js';
5
+ import { useReportStoreApi } from '../../../store/useReportStore.js';
6
+ import { Button } from '../../ui/button.js';
7
+ import { Checkbox } from '../../ui/checkbox.js';
8
+ import { Input } from '../../ui/input.js';
9
+ import { Label } from '../../ui/label.js';
10
+ import { NativeSelect } from '../../ui/native-select.js';
11
+ import { ColorPickerField } from './ColorPickerField.js';
12
+ import { FieldSelectInput } from './FieldSelectInput.js';
13
+ const ControlFormulaEditor = lazy(() => import('../../formula/ControlFormulaEditor.js').then((m) => ({
14
+ default: m.ControlFormulaEditor,
15
+ })));
16
+ export const ControlSpecificInspector = ({ control, bandId, sampleFields, onUpdate, }) => {
17
+ const store = useReportStoreApi();
18
+ const tProps = useTranslations('propertyGrid');
19
+ const tCommon = useTranslations('common');
20
+ return (_jsxs("div", { className: "space-y-2 pt-2 border-t border-border ", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('contentBinding') }), control.type === 'Label' && (_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('staticText') }), _jsx(Input, { "aria-label": tProps('staticText'), value: control.text ?? '', onChange: (e) => onUpdate({ text: e.target.value }), className: "bg-background " })] })), control.type === 'Field' && (_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('boundField') }), _jsx(FieldSelectInput, { "aria-label": tProps('boundField'), value: control.fieldName ?? '', placeholder: tProps('placeholderFieldName'), sampleFields: sampleFields, selectPlaceholder: tProps('selectField'), title: tProps('quickApplyField'), onChange: (val) => onUpdate({ fieldName: val }) })] })), control.type === 'Expression' && (_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('expression') }), _jsx(Suspense, { fallback: _jsxs("div", { role: "status", "aria-live": "polite", "aria-label": tCommon('loading'), "data-testid": "inspector-skeleton", className: "space-y-2 py-2", children: [_jsx("span", { className: "sr-only", children: tCommon('loading') }), _jsx("div", { className: "h-4 w-24 rounded bg-muted motion-safe:animate-pulse" }), _jsx("div", { className: "h-9 w-full rounded bg-muted motion-safe:animate-pulse" }), _jsx("div", { className: "h-16 w-full rounded bg-muted motion-safe:animate-pulse" })] }), children: _jsx(ControlFormulaEditor, { control: control, bandId: bandId, onUpdate: onUpdate }, control.id) })] })), control.type === 'Line' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(Minus, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('lineStyle') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('lineOrientation') }), _jsxs(NativeSelect, { "aria-label": tProps('lineOrientation'), value: control.lineOrientation || 'horizontal', onChange: (e) => {
21
+ const isVert = e.target.value === 'vertical';
22
+ onUpdate({
23
+ lineOrientation: isVert ? 'vertical' : 'horizontal',
24
+ width: isVert ? 1 : 515,
25
+ height: isVert ? 30 : 1,
26
+ });
27
+ }, className: "", children: [_jsx("option", { value: "horizontal", children: tProps('horizontal') }), _jsx("option", { value: "vertical", children: tProps('vertical') })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('lineColor') }), _jsx(ColorPickerField, { "aria-label": tProps('lineColor'), value: control.style?.color || '#cbd5e1', defaultValue: "#cbd5e1", clearText: tProps('clear'), onChange: (color) => onUpdate({
28
+ style: { ...control.style, color: color || '#cbd5e1' },
29
+ }) })] })] })), control.type === 'Image' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(ImageIcon, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('imageSourceScale') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('imageUrl') }), _jsx(Input, { "aria-label": tProps('imageUrl'), value: control.src ?? '', placeholder: tProps('placeholderImageSrc'), onChange: (e) => onUpdate({ src: e.target.value }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('objectFit') }), _jsxs(NativeSelect, { "aria-label": tProps('objectFit'), value: control.objectFit || 'contain', onChange: (e) => onUpdate({
30
+ objectFit: e.target.value,
31
+ }), className: "", children: [_jsx("option", { value: "contain", children: tProps('fitContain') }), _jsx("option", { value: "cover", children: tProps('fitCover') }), _jsx("option", { value: "fill", children: tProps('fitFill') })] })] })] })), control.type === 'CheckBox' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(CheckSquare, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('checkBoxSettings') })] }), _jsxs("label", { htmlFor: "inspector-default-checked", className: "flex min-h-11 items-center gap-1 pr-2 text-[11px] cursor-pointer select-none", children: [_jsx(Checkbox, { id: "inspector-default-checked", checked: !!control.checked, onChange: (e) => onUpdate({ checked: e.target.checked }) }), _jsx("span", { className: "text-foreground ", children: tProps('defaultChecked') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('checkTextLabel') }), _jsx(Input, { "aria-label": tProps('checkTextLabel'), value: control.checkText ?? '', placeholder: tProps('placeholderCheckText'), onChange: (e) => onUpdate({ checkText: e.target.value }), className: "bg-background " })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('orBindBooleanField') }), _jsx(FieldSelectInput, { "aria-label": tProps('orBindBooleanField'), value: control.fieldName ?? '', placeholder: tProps('placeholderBooleanField'), sampleFields: sampleFields, selectPlaceholder: tProps('selectField'), title: tProps('quickApplyField'), onChange: (val) => onUpdate({ fieldName: val }) })] })] })), control.type === 'Panel' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(Square, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('panelBorderRadius') })] }), _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('borderWidth') }), _jsx(Input, { "aria-label": tProps('borderWidth'), type: "number", value: control.style?.borderWidth ?? 1, onChange: (e) => onUpdate({
32
+ style: {
33
+ ...control.style,
34
+ borderWidth: Number(e.target.value) || 0,
35
+ },
36
+ }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('borderRadius') }), _jsx(Input, { "aria-label": tProps('borderRadius'), type: "number", value: control.style?.borderRadius ?? 0, onChange: (e) => onUpdate({
37
+ style: {
38
+ ...control.style,
39
+ borderRadius: Number(e.target.value) || 0,
40
+ },
41
+ }), className: "bg-background " })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('borderColor') }), _jsx(ColorPickerField, { "aria-label": tProps('borderColor'), value: control.style?.borderColor || '#cbd5e1', defaultValue: "#cbd5e1", clearText: tProps('clear'), onChange: (borderColor) => onUpdate({
42
+ style: { ...control.style, borderColor: borderColor || '#cbd5e1' },
43
+ }) })] })] })), control.type === 'Barcode' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(BarcodeIcon, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('barcodeSettings') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('barcodeFormat') }), _jsxs(NativeSelect, { "aria-label": tProps('barcodeFormat'), value: control.barcodeFormat || 'CODE128', onChange: (e) => onUpdate({
44
+ barcodeFormat: e.target.value,
45
+ }), className: "", children: [_jsx("option", { value: "CODE128", children: tProps('barcodeCode128') }), _jsx("option", { value: "EAN13", children: tProps('barcodeEan13') }), _jsx("option", { value: "UPC", children: tProps('barcodeUpc') }), _jsx("option", { value: "CODE39", children: tProps('barcodeCode39') })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('staticBarcodeText') }), _jsx(Input, { "aria-label": tProps('staticBarcodeText'), value: control.text ?? '', placeholder: tProps('placeholderStaticBarcode'), onChange: (e) => onUpdate({ text: e.target.value }), className: "bg-background " })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('orDynamicField') }), _jsx(FieldSelectInput, { "aria-label": tProps('orDynamicField'), value: control.fieldName ?? '', placeholder: tProps('placeholderBarcodeField'), sampleFields: sampleFields, selectPlaceholder: tProps('selectField'), title: tProps('quickApplyField'), onChange: (val) => onUpdate({ fieldName: val }) })] }), _jsxs("label", { htmlFor: "inspector-barcode-display-value", className: "flex min-h-11 items-center gap-1 pr-2 text-[11px] cursor-pointer pt-1 select-none", children: [_jsx(Checkbox, { id: "inspector-barcode-display-value", checked: control.displayValue ?? true, onChange: (e) => onUpdate({ displayValue: e.target.checked }) }), _jsx("span", { className: "text-foreground ", children: tProps('displayValue') })] })] })), control.type === 'QRCode' && (_jsxs("div", { className: "space-y-2 bg-background p-2.5 rounded-md border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-semibold text-[11px]", children: [_jsx(QrCodeIcon, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('qrSettings') })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('qrErrorLevel') }), _jsxs(NativeSelect, { "aria-label": tProps('qrErrorLevel'), value: control.qrErrorLevel || 'M', onChange: (e) => onUpdate({
46
+ qrErrorLevel: e.target.value,
47
+ }), className: "", children: [_jsx("option", { value: "L", children: tProps('qrLevelL') }), _jsx("option", { value: "M", children: tProps('qrLevelM') }), _jsx("option", { value: "Q", children: tProps('qrLevelQ') }), _jsx("option", { value: "H", children: tProps('qrLevelH') })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('qrStaticText') }), _jsx(Input, { "aria-label": tProps('qrStaticText'), value: control.text ?? '', placeholder: "https://...", onChange: (e) => onUpdate({ text: e.target.value }), className: "bg-background " })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('orDynamicField') }), _jsx(FieldSelectInput, { "aria-label": tProps('orDynamicField'), value: control.fieldName ?? '', placeholder: tProps('placeholderQrField'), sampleFields: sampleFields, selectPlaceholder: tProps('selectField'), title: tProps('quickApplyField'), onChange: (val) => onUpdate({ fieldName: val }) })] })] })), control.type === 'SubReport' && (_jsxs("div", { className: "space-y-3 bg-background p-3 rounded-lg border border-border ", children: [_jsxs("div", { className: "flex items-center space-x-1.5 text-foreground font-medium text-xs", children: [_jsx(TableProperties, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('subReportSettings') })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[11px] text-muted-foreground", children: tProps('subReportTitle') }), _jsx(Input, { "aria-label": tProps('subReportTitle'), value: control.subReportTitle ?? '', placeholder: tProps('subReportTitlePlaceholder'), onChange: (e) => onUpdate({ subReportTitle: e.target.value }), className: "h-8 text-xs bg-background " })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[11px] text-muted-foreground", children: tProps('subReportBinding') }), _jsx(Input, { "aria-label": tProps('subReportBinding'), value: control.subReportBinding ?? '', placeholder: "serials", onChange: (e) => onUpdate({ subReportBinding: e.target.value }), className: "h-8 font-mono text-xs bg-background " })] }), _jsxs(Button, { variant: "outline", size: "sm", onClick: () => {
48
+ const state = store.getState();
49
+ state.enterSubReportEditor(bandId, control.id, tProps('subReportTitlePlaceholder'));
50
+ }, className: "w-full text-xs font-normal flex items-center justify-center space-x-1.5 mt-2 h-8", children: [_jsx(TableProperties, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('editSubReport') })] })] })), ['Field', 'Expression'].includes(control.type) && (_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('formatString') }), _jsx(Input, { "aria-label": tProps('formatString'), value: control.formatString ?? '', placeholder: tProps('formatPlaceholder'), onChange: (e) => onUpdate({ formatString: e.target.value }), className: "bg-background " })] }))] }));
51
+ };
52
+ //# sourceMappingURL=ControlSpecificInspector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ControlSpecificInspector.js","sourceRoot":"","sources":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AAO,CAAC,EAAE,EAAE,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;wBACtF,CAAC,EACD,SAAS,EAAC,kFAAkF,aAE5F,KAAC,eAAe,IAAC,SAAS,EAAC,mCAAmC,GAAG,EACjE,yBAAO,MAAM,CAAC,eAAe,CAAC,GAAQ,IAC/B,IACL,CACP,EAGA,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CACjD,0BACE,KAAC,KAAK,IAAC,SAAS,EAAC,mCAAmC,YAAE,MAAM,CAAC,cAAc,CAAC,GAAS,EACrF,KAAC,KAAK,kBACQ,MAAM,CAAC,cAAc,CAAC,EAClC,KAAK,EAAE,OAAO,CAAC,YAAY,IAAI,EAAE,EACjC,WAAW,EAAE,MAAM,CAAC,mBAAmB,CAAC,EACxC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAC3D,SAAS,EAAC,gBAAgB,GAC1B,IACE,CACP,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ interface FieldSelectInputProps {
3
+ 'aria-label'?: string;
4
+ value: string;
5
+ onChange: (val: string) => void;
6
+ sampleFields: string[];
7
+ placeholder?: string;
8
+ selectPlaceholder?: string;
9
+ title?: string;
10
+ className?: string;
11
+ }
12
+ export declare const FieldSelectInput: React.FC<FieldSelectInputProps>;
13
+ export {};
14
+ //# sourceMappingURL=FieldSelectInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldSelectInput.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/FieldSelectInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA4C5D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslations } from '../../../i18n/index.js';
3
+ import { Input } from '../../ui/input.js';
4
+ import { NativeSelect } from '../../ui/native-select.js';
5
+ export const FieldSelectInput = ({ 'aria-label': accessibleLabel, value, onChange, sampleFields, placeholder, selectPlaceholder, title, className = '', }) => {
6
+ const tProps = useTranslations('propertyGrid');
7
+ const resolvedSelectPlaceholder = selectPlaceholder ?? tProps('selectField');
8
+ const resolvedTitle = title ?? tProps('quickApplyField');
9
+ return (_jsxs("div", { className: `space-y-1.5 ${className}`, children: [_jsx(Input, { "aria-label": accessibleLabel, value: value, placeholder: placeholder, onChange: (e) => onChange(e.target.value), className: "w-full font-mono text-xs bg-background " }), sampleFields.length > 0 && (_jsxs(NativeSelect, { "aria-label": accessibleLabel
10
+ ? `${accessibleLabel} (${resolvedSelectPlaceholder})`
11
+ : resolvedSelectPlaceholder, value: value, onChange: (e) => onChange(e.target.value), className: "min-h-11 font-mono", title: resolvedTitle, children: [_jsx("option", { value: "", children: resolvedSelectPlaceholder }), sampleFields.map((f) => (_jsx("option", { value: f, children: f }, f)))] }))] }));
12
+ };
13
+ //# sourceMappingURL=FieldSelectInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldSelectInput.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/FieldSelectInput.tsx"],"names":[],"mappings":";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C,CACvB,iBAAgB,KAAK,EAAE,CAAC,YACrB,CAAC,IADS,CAAC,CAEL,CACV,CAAC,IACW,CAChB,IACG,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { ControlDefinition } from '../../../types/report.js';
3
+ interface GeometrySectionProps {
4
+ control: ControlDefinition;
5
+ onUpdate: (patch: Partial<ControlDefinition>) => void;
6
+ }
7
+ export declare const GeometrySection: React.FC<GeometrySectionProps>;
8
+ export {};
9
+ //# sourceMappingURL=GeometrySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeometrySection.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/GeometrySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAIlE,UAAU,oBAAoB;IAC5B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoD1D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useTranslations } from '../../../i18n/index.js';
3
+ import { Input } from '../../ui/input.js';
4
+ import { Label } from '../../ui/label.js';
5
+ export const GeometrySection = ({ control, onUpdate }) => {
6
+ const tProps = useTranslations('propertyGrid');
7
+ return (_jsxs("div", { className: "space-y-2", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('geometry') }), _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('positionX') }), _jsx(Input, { "aria-label": tProps('positionX'), type: "number", value: control.x, onChange: (e) => onUpdate({ x: Math.max(0, Number(e.target.value) || 0) }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('positionY') }), _jsx(Input, { "aria-label": tProps('positionY'), type: "number", value: control.y, onChange: (e) => onUpdate({ y: Math.max(0, Number(e.target.value) || 0) }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('width') }), _jsx(Input, { "aria-label": tProps('width'), type: "number", value: control.width, onChange: (e) => onUpdate({ width: Math.max(0, Number(e.target.value) || 0) }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('height') }), _jsx(Input, { "aria-label": tProps('height'), type: "number", value: control.height, onChange: (e) => onUpdate({ height: Math.max(0, Number(e.target.value) || 0) }), className: "bg-background " })] })] })] }));
8
+ };
9
+ //# sourceMappingURL=GeometrySection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeometrySection.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/GeometrySection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvF,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IAE/C,OAAO,CACL,eAAK,SAAS,EAAC,WAAW,aACxB,eAAM,SAAS,EAAC,2EAA2E,YACxF,MAAM,CAAC,UAAU,CAAC,GACd,EACP,eAAK,SAAS,EAAC,wBAAwB,aACrC,0BACE,KAAC,KAAK,IAAC,SAAS,EAAC,mCAAmC,YAAE,MAAM,CAAC,WAAW,CAAC,GAAS,EAClF,KAAC,KAAK,k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AAmC,YAAE,MAAM,CAAC,QAAQ,CAAC,GAAS,EAC/E,KAAC,KAAK,kBACQ,MAAM,CAAC,QAAQ,CAAC,EAC5B,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,OAAO,CAAC,MAAM,EACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAC/E,SAAS,EAAC,gBAAgB,GAC1B,IACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const GlobalReportSettings: React.FC;
3
+ //# sourceMappingURL=GlobalReportSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalReportSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/GlobalReportSettings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAwJxC,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Compass, FileText } from 'lucide-react';
3
+ import { useTranslations } from '../../../i18n/index.js';
4
+ import { useReportStore } from '../../../store/useReportStore.js';
5
+ import { Input } from '../../ui/input.js';
6
+ import { Label } from '../../ui/label.js';
7
+ import { NativeSelect } from '../../ui/native-select.js';
8
+ export const GlobalReportSettings = () => {
9
+ const tProps = useTranslations('propertyGrid');
10
+ const tCommon = useTranslations('common');
11
+ const { getActiveReport, updateActiveReport } = useReportStore();
12
+ const report = getActiveReport();
13
+ const setReport = (next) => updateActiveReport(() => next);
14
+ const updatePageSettings = (patch) => {
15
+ setReport({
16
+ ...report,
17
+ pageSettings: {
18
+ ...report.pageSettings,
19
+ ...patch,
20
+ },
21
+ });
22
+ };
23
+ const updatePageMargins = (patch) => {
24
+ setReport({
25
+ ...report,
26
+ pageSettings: {
27
+ ...report.pageSettings,
28
+ margins: {
29
+ ...report.pageSettings.margins,
30
+ ...patch,
31
+ },
32
+ },
33
+ });
34
+ };
35
+ return (_jsxs("div", { className: "w-72 border-l border-border bg-background flex flex-col h-full min-h-0 select-none shadow-2xs overflow-y-auto", children: [_jsxs("div", { className: "p-3 border-b border-border flex items-center space-x-1.5 ", children: [_jsx(FileText, { className: "h-4 w-4 text-muted-foreground" }), _jsx("span", { className: "text-xs font-semibold text-foreground uppercase tracking-wider", children: tProps('reportSettings') })] }), _jsxs("div", { className: "p-3 space-y-4 text-xs", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('reportName') }), _jsx(Input, { "aria-label": tProps('reportName'), value: report.name, onChange: (e) => setReport({ ...report, name: e.target.value }), className: "font-medium bg-background " })] }), _jsxs("div", { className: "space-y-2.5 pt-2 border-t border-border ", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('pageSizeOrientation') }), _jsxs("div", { className: "space-y-2.5", children: [_jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('pageSize') }), _jsxs(NativeSelect, { "aria-label": tProps('pageSize'), value: report.pageSettings.size, onChange: (e) => updatePageSettings({ size: e.target.value }), className: "min-h-11 font-medium", children: [_jsx("option", { value: "A4", children: "A4 (210 \u00D7 297 mm)" }), _jsx("option", { value: "Letter", children: "Letter (8.5 \u00D7 11 in)" })] })] }), _jsxs("div", { className: "space-y-1", children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('orientation') }), _jsxs(NativeSelect, { "aria-label": tProps('orientation'), value: report.pageSettings.orientation, onChange: (e) => updatePageSettings({ orientation: e.target.value }), className: "min-h-11 font-medium", children: [_jsx("option", { value: "portrait", children: tCommon('portrait') }), _jsx("option", { value: "landscape", children: tCommon('landscape') })] })] })] })] }), _jsxs("div", { className: "space-y-2 pt-2 border-t border-border ", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('pageMargins') }), _jsx("span", { className: "text-[9px] text-muted-foreground font-mono", children: "1 pt = 1/72 in" })] }), _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('marginTop') }), _jsx(Input, { "aria-label": tProps('marginTop'), type: "number", value: report.pageSettings.margins.top, onChange: (e) => updatePageMargins({ top: Number(e.target.value) || 0 }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('marginBottom') }), _jsx(Input, { "aria-label": tProps('marginBottom'), type: "number", value: report.pageSettings.margins.bottom, onChange: (e) => updatePageMargins({ bottom: Number(e.target.value) || 0 }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('marginLeft') }), _jsx(Input, { "aria-label": tProps('marginLeft'), type: "number", value: report.pageSettings.margins.left, onChange: (e) => updatePageMargins({ left: Number(e.target.value) || 0 }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('marginRight') }), _jsx(Input, { "aria-label": tProps('marginRight'), type: "number", value: report.pageSettings.margins.right, onChange: (e) => updatePageMargins({ right: Number(e.target.value) || 0 }), className: "bg-background " })] })] })] }), _jsxs("div", { className: "p-2.5 rounded-md bg-background border border-border text-muted-foreground space-y-1", children: [_jsxs("div", { className: "flex items-center space-x-1 font-semibold text-[11px] text-foreground ", children: [_jsx(Compass, { className: "h-3.5 w-3.5 text-muted-foreground" }), _jsx("span", { children: tProps('tips') })] }), _jsx("p", { className: "text-[10px] leading-relaxed text-muted-foreground ", children: tProps('tipsDesc') })] })] })] }));
36
+ };
37
+ //# sourceMappingURL=GlobalReportSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalReportSettings.js","sourceRoot":"","sources":["../../../../src/components/designer/properties/GlobalReportSettings.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,CAAC,MAAM,oBAAoB,GAAa,GAAG,EAAE;IACjD,MAAM,MAAM,GAAG,eAAe,CAAC,cAAc,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,EAAE,eAAe,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE,CAAC;IACjE,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,CAAC,IAAmB,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;IAE1E,MAAM,kBAAkB,GAAG,CAAC,KAA0C,EAAE,EAAE;QACxE,SAAS,CAAC;YACR,GAAG,MAAM;YACT,YAAY,EAAE;gBACZ,GAAG,MAAM,CAAC,YAAY;gBACtB,GAAG,KAAK;aACT;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,KAAkD,EAAE,EAAE;QAC/E,SAAS,CAAC;YACR,GAAG,MAAM;YACT,YAAY,EAAE;gBACZ,GAAG,MAAM,CAAC,YAAY;gBACtB,OAAO,EAAE;oBACP,GAAG,MAAM,CAAC,YAAY,CAAC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AwF,aACrG,eAAK,SAAS,EAAC,wEAAwE,aACrF,KAAC,OAAO,IAAC,SAAS,EAAC,mCAAmC,GAAG,EACzD,yBAAO,MAAM,CAAC,MAAM,CAAC,GAAQ,IACzB,EACN,YAAG,SAAS,EAAC,oDAAoD,YAAE,MAAM,CAAC,UAAU,CAAC,GAAK,IACtF,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ControlDefinition } from '../../../types/report.js';
3
+ interface TypographySectionProps {
4
+ control: ControlDefinition;
5
+ onUpdate: (patch: Partial<ControlDefinition>) => void;
6
+ isBackgroundCapable?: boolean;
7
+ }
8
+ export declare const TypographySection: React.FC<TypographySectionProps>;
9
+ export {};
10
+ //# sourceMappingURL=TypographySection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TypographySection.d.ts","sourceRoot":"","sources":["../../../../src/components/designer/properties/TypographySection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,UAAU,sBAAsB;IAC9B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACtD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAyI9D,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { AlignCenter, AlignLeft, AlignRight, Bold } from 'lucide-react';
3
+ import { useTranslations } from '../../../i18n/index.js';
4
+ import { Input } from '../../ui/input.js';
5
+ import { Label } from '../../ui/label.js';
6
+ import { ColorPickerField } from './ColorPickerField.js';
7
+ export const TypographySection = ({ control, onUpdate, isBackgroundCapable = false, }) => {
8
+ const tProps = useTranslations('propertyGrid');
9
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "space-y-2 pt-2 border-t border-border ", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('typography') }), _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [_jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('fontSize') }), _jsx(Input, { "aria-label": tProps('fontSize'), type: "number", value: control.style?.fontSize ?? 9, onChange: (e) => onUpdate({
10
+ style: {
11
+ ...control.style,
12
+ fontSize: Number(e.target.value) || 9,
13
+ },
14
+ }), className: "bg-background " })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('textAlign') }), _jsx("div", { className: "flex border border-border rounded-md overflow-hidden ", children: ['left', 'center', 'right'].map((align) => {
15
+ const alignLabel = align === 'left'
16
+ ? tProps('alignLeft')
17
+ : align === 'center'
18
+ ? tProps('alignCenter')
19
+ : tProps('alignRight');
20
+ return (_jsxs("button", { type: "button", title: alignLabel, "aria-label": alignLabel, onClick: () => onUpdate({
21
+ style: { ...control.style, textAlign: align },
22
+ }), className: `flex-1 p-1.5 flex justify-center items-center transition-colors ${(control.style?.textAlign || 'left') === align
23
+ ? 'bg-card text-foreground '
24
+ : 'hover:bg-muted text-muted-foreground '}`, children: [align === 'left' && _jsx(AlignLeft, { className: "h-3 w-3" }), align === 'center' && _jsx(AlignCenter, { className: "h-3 w-3" }), align === 'right' && _jsx(AlignRight, { className: "h-3 w-3" })] }, align));
25
+ }) })] })] }), _jsxs("div", { className: "flex items-center justify-between py-1", children: [_jsx("span", { className: "text-[11px] text-muted-foreground ", children: tProps('bold') }), _jsxs("button", { type: "button", onClick: () => onUpdate({
26
+ style: {
27
+ ...control.style,
28
+ fontWeight: control.style?.fontWeight === 'bold' ? 'normal' : 'bold',
29
+ },
30
+ }), className: `p-1.5 rounded-md border text-xs flex items-center space-x-1 cursor-pointer ${control.style?.fontWeight === 'bold'
31
+ ? 'bg-card text-foreground border-border '
32
+ : 'border-border text-muted-foreground hover:bg-background '}`, children: [_jsx(Bold, { className: "h-3 w-3" }), _jsx("span", { className: "text-[10px]", children: tProps('bold') })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-[10px] text-muted-foreground", children: tProps('textColor') }), _jsx(ColorPickerField, { "aria-label": tProps('textColor'), value: control.style?.color || '#0f172a', defaultValue: "#0f172a", clearText: tProps('clear'), onChange: (color) => onUpdate({
33
+ style: { ...control.style, color: color || '#0f172a' },
34
+ }) })] })] }), isBackgroundCapable && (_jsxs("div", { className: "space-y-2 pt-2 border-t border-border ", children: [_jsx("span", { className: "text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ", children: tProps('bgColor') }), _jsx(ColorPickerField, { "aria-label": tProps('bgColor'), value: control.style?.backgroundColor, defaultValue: "#ffffff", placeholder: tProps('transparent'), allowClear: true, clearText: tProps('clear'), onChange: (backgroundColor) => onUpdate({
35
+ style: {
36
+ ...control.style,
37
+ backgroundColor,
38
+ },
39
+ }) })] }))] }));
40
+ };
41
+ //# sourceMappingURL=TypographySection.js.map