@firestitch/report 18.4.0 → 18.6.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 (67) hide show
  1. package/app/reports/components/component-list/component-list.component.d.ts +3 -6
  2. package/app/reports/components/report-canvas/report-canvas.component.d.ts +4 -4
  3. package/app/reports/components/report-component/report-component.component.d.ts +5 -5
  4. package/app/reports/components/timezone-select/timezone-select.component.d.ts +4 -6
  5. package/app/reports/consts/report-week.const.d.ts +2 -0
  6. package/app/reports/data/report-ai-chat.data.d.ts +12 -0
  7. package/app/reports/data/report.data.d.ts +3 -3
  8. package/app/reports/dialogs/component-settings/component-settings.component.d.ts +6 -6
  9. package/app/reports/dialogs/global-settings/components/semantic-database/semantic-database.component.d.ts +3 -0
  10. package/app/reports/dialogs/report-settings/report-settings.component.d.ts +5 -0
  11. package/app/reports/export/report-export-collector.service.d.ts +14 -2
  12. package/app/reports/export/report-pdf.service.d.ts +14 -1
  13. package/app/reports/export/report-pptx.service.d.ts +6 -1
  14. package/app/reports/format.d.ts +7 -0
  15. package/app/reports/interfaces/report-chat-viewer-filter.interface.d.ts +7 -0
  16. package/app/reports/interfaces/report-chat-viewer-state.interface.d.ts +7 -0
  17. package/app/reports/interfaces/report.interface.d.ts +19 -3
  18. package/app/reports/option-builder.d.ts +13 -1
  19. package/app/reports/pipes/report-date.pipe.d.ts +7 -0
  20. package/app/reports/report-filter-items.d.ts +5 -0
  21. package/app/reports/report-url-state.d.ts +14 -0
  22. package/app/reports/services/report-filter-state.service.d.ts +24 -2
  23. package/app/reports/text.d.ts +1 -0
  24. package/app/reports/theme/palette.d.ts +2 -0
  25. package/app/reports/theme/typography.d.ts +2 -0
  26. package/app/reports/views/report/fs-ai-report.component.d.ts +16 -8
  27. package/app/reports/views/report/report.component.d.ts +6 -6
  28. package/esm2022/app/reports/components/component-list/component-list.component.mjs +29 -104
  29. package/esm2022/app/reports/components/report-canvas/report-canvas.component.mjs +52 -44
  30. package/esm2022/app/reports/components/report-component/report-component.component.mjs +55 -35
  31. package/esm2022/app/reports/components/timezone-select/timezone-select.component.mjs +23 -23
  32. package/esm2022/app/reports/consts/report-week.const.mjs +7 -0
  33. package/esm2022/app/reports/data/report-ai-chat.data.mjs +25 -0
  34. package/esm2022/app/reports/data/report.data.mjs +22 -9
  35. package/esm2022/app/reports/dialogs/component-settings/component-settings.component.mjs +25 -26
  36. package/esm2022/app/reports/dialogs/global-settings/components/semantic-database/semantic-database.component.mjs +28 -14
  37. package/esm2022/app/reports/dialogs/global-settings/global-settings.component.mjs +3 -3
  38. package/esm2022/app/reports/dialogs/report-settings/report-settings.component.mjs +38 -13
  39. package/esm2022/app/reports/export/report-export-collector.service.mjs +92 -28
  40. package/esm2022/app/reports/export/report-export.service.mjs +11 -8
  41. package/esm2022/app/reports/export/report-pdf.service.mjs +241 -81
  42. package/esm2022/app/reports/export/report-pptx.service.mjs +143 -60
  43. package/esm2022/app/reports/format.mjs +119 -8
  44. package/esm2022/app/reports/interfaces/report-chat-viewer-filter.interface.mjs +2 -0
  45. package/esm2022/app/reports/interfaces/report-chat-viewer-state.interface.mjs +2 -0
  46. package/esm2022/app/reports/interfaces/report.interface.mjs +1 -1
  47. package/esm2022/app/reports/option-builder.mjs +230 -17
  48. package/esm2022/app/reports/pipes/report-date.pipe.mjs +21 -0
  49. package/esm2022/app/reports/report-filter-items.mjs +42 -10
  50. package/esm2022/app/reports/report-url-state.mjs +144 -0
  51. package/esm2022/app/reports/services/report-filter-state.service.mjs +308 -64
  52. package/esm2022/app/reports/text.mjs +2 -2
  53. package/esm2022/app/reports/theme/echarts.mjs +6 -5
  54. package/esm2022/app/reports/theme/palette.mjs +9 -1
  55. package/esm2022/app/reports/theme/typography.mjs +6 -0
  56. package/esm2022/app/reports/views/report/fs-ai-report.component.mjs +191 -90
  57. package/esm2022/app/reports/views/report/report.component.mjs +64 -62
  58. package/fesm2022/{firestitch-report-echarts-CFkoNvo_.mjs → firestitch-report-echarts-B9nl9XKM.mjs} +6 -6
  59. package/fesm2022/firestitch-report-echarts-B9nl9XKM.mjs.map +1 -0
  60. package/fesm2022/{firestitch-report-firestitch-report-PZzkYYTD.mjs → firestitch-report-firestitch-report-Bb65HEYB.mjs} +2348 -1161
  61. package/fesm2022/firestitch-report-firestitch-report-Bb65HEYB.mjs.map +1 -0
  62. package/fesm2022/firestitch-report.mjs +1 -1
  63. package/package.json +1 -1
  64. package/app/reports/dialogs/report-settings/report-settings-default.d.ts +0 -2
  65. package/esm2022/app/reports/dialogs/report-settings/report-settings-default.mjs +0 -22
  66. package/fesm2022/firestitch-report-echarts-CFkoNvo_.mjs.map +0 -1
  67. package/fesm2022/firestitch-report-firestitch-report-PZzkYYTD.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- export { b as FsAiReportComponent, F as FsAiReportsComponent, G as GRANULARITY_OPTIONS, a as ReportComponent, c as ReportData, e as ReportFilterStateService, f as ReportNodeType, d as ReportService, g as ReportState } from './firestitch-report-firestitch-report-PZzkYYTD.mjs';
1
+ export { d as FsAiReportComponent, F as FsAiReportsComponent, G as GRANULARITY_OPTIONS, c as ReportComponent, e as ReportData, g as ReportFilterStateService, h as ReportNodeType, f as ReportService, i as ReportState } from './firestitch-report-firestitch-report-Bb65HEYB.mjs';
2
2
  //# sourceMappingURL=firestitch-report.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/report",
3
- "version": "18.4.0",
3
+ "version": "18.6.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-report"
@@ -1,2 +0,0 @@
1
- export declare function dateFromBound(value: string | null | undefined): Date | null;
2
- export declare function dateToBound(value: Date | null | undefined): string | null;
@@ -1,22 +0,0 @@
1
- import { format, parseISO } from 'date-fns';
2
- // Date-range defaults are stored as calendar-day strings (yyyy-MM-dd, no time,
3
- // no timezone) so the backend never shifts them; the date picker works in Date
4
- // objects. These two convert between the two forms — the only translation the
5
- // Filters tab needs for a fixed date range.
6
- // A stored yyyy-MM-dd boundary as a local Date for the picker, or null.
7
- export function dateFromBound(value) {
8
- if (!value) {
9
- return null;
10
- }
11
- const date = parseISO(value.slice(0, 10));
12
- return isNaN(date.getTime()) ? null : date;
13
- }
14
- // A picked Date as a yyyy-MM-dd boundary for storage, or null. Uses the local
15
- // calendar day (format, not toISOString) so the boundary is the day the admin
16
- // picked, regardless of timezone.
17
- export function dateToBound(value) {
18
- return value instanceof Date && !isNaN(value.getTime())
19
- ? format(value, 'yyyy-MM-dd')
20
- : null;
21
- }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LXNldHRpbmdzLWRlZmF1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL3JlcG9ydHMvZGlhbG9ncy9yZXBvcnQtc2V0dGluZ3MvcmVwb3J0LXNldHRpbmdzLWRlZmF1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFHNUMsK0VBQStFO0FBQy9FLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNENBQTRDO0FBRTVDLHdFQUF3RTtBQUN4RSxNQUFNLFVBQVUsYUFBYSxDQUFDLEtBQWdDO0lBQzVELElBQUksQ0FBQyxLQUFLLEVBQUUsQ0FBQztRQUNYLE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELE1BQU0sSUFBSSxHQUFHLFFBQVEsQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBRTFDLE9BQU8sS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQ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AgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIGNvbnN0IGRhdGUgPSBwYXJzZUlTTyh2YWx1ZS5zbGljZSgwLCAxMCkpO1xuXG4gIHJldHVybiBpc05hTihkYXRlLmdldFRpbWUoKSkgPyBudWxsIDogZGF0ZTtcbn1cblxuLy8gQSBwaWNrZWQgRGF0ZSBhcyBhIHl5eXktTU0tZGQgYm91bmRhcnkgZm9yIHN0b3JhZ2UsIG9yIG51bGwuIFVzZXMgdGhlIGxvY2FsXG4vLyBjYWxlbmRhciBkYXkgKGZvcm1hdCwgbm90IHRvSVNPU3RyaW5nKSBzbyB0aGUgYm91bmRhcnkgaXMgdGhlIGRheSB0aGUgYWRtaW5cbi8vIHBpY2tlZCwgcmVnYXJkbGVzcyBvZiB0aW1lem9uZS5cbmV4cG9ydCBmdW5jdGlvbiBkYXRlVG9Cb3VuZCh2YWx1ZTogRGF0ZSB8IG51bGwgfCB1bmRlZmluZWQpOiBzdHJpbmcgfCBudWxsIHtcbiAgcmV0dXJuIHZhbHVlIGluc3RhbmNlb2YgRGF0ZSAmJiAhaXNOYU4odmFsdWUuZ2V0VGltZSgpKVxuICAgID8gZm9ybWF0KHZhbHVlLCAneXl5eS1NTS1kZCcpXG4gICAgOiBudWxsO1xufVxuIl19
@@ -1 +0,0 @@
1
- {"version":3,"file":"firestitch-report-echarts-CFkoNvo_.mjs","sources":["../../src/app/reports/theme/echarts.ts"],"sourcesContent":["// Tree-shaken ECharts build for the reports renderer: only the chart types and\n// components the option-builder emits are registered, keeping the lazy chunk\n// lean. Loaded on demand by ngx-echarts via provideEchartsCore — see\n// REPORT_ECHARTS_PROVIDERS in reports-echarts.provider.ts.\n//\n// The canvas renderer (not SVG) is deliberate: chart.getDataURL() needs it for\n// the high-res images the PPT/PDF exports will use.\n\nimport { BarChart, LineChart, PieChart } from 'echarts/charts';\nimport {\n DatasetComponent,\n GridComponent,\n LegendComponent,\n TooltipComponent,\n} from 'echarts/components';\nimport * as echarts from 'echarts/core';\nimport { CanvasRenderer } from 'echarts/renderers';\n\nimport { REPORT_CHART_COLORS_CSS } from './palette';\n\necharts.use([\n BarChart,\n LineChart,\n PieChart,\n GridComponent,\n TooltipComponent,\n LegendComponent,\n DatasetComponent,\n CanvasRenderer,\n]);\n\n// The house theme — the single place report chart \"standards\" live (palette,\n// typography, tooltip styling). Polished defaults now; refined in the polish\n// phase.\necharts.registerTheme('report', {\n color: REPORT_CHART_COLORS_CSS,\n textStyle: {\n fontFamily: 'Roboto, \"Helvetica Neue\", sans-serif',\n },\n title: {\n textStyle: { color: '#1f2933', fontSize: 14, fontWeight: 600 },\n },\n legend: {\n textStyle: { color: '#52606d', fontSize: 11 },\n },\n tooltip: {\n backgroundColor: 'rgba(31, 41, 51, 0.92)',\n borderWidth: 0,\n textStyle: { color: '#fff', fontSize: 12 },\n },\n categoryAxis: {\n axisLine: { lineStyle: { color: '#cbd2d9' } },\n axisTick: { show: false },\n axisLabel: { color: '#52606d', fontSize: 11 },\n splitLine: { show: false },\n },\n valueAxis: {\n axisLine: { show: false },\n axisLabel: { color: '#52606d', fontSize: 11 },\n splitLine: { lineStyle: { color: '#e4e7eb' } },\n },\n timeAxis: {\n axisLine: { lineStyle: { color: '#cbd2d9' } },\n axisLabel: { color: '#52606d', fontSize: 11 },\n },\n});\n\nexport default echarts;\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA,OAAO,CAAC,GAAG,CAAC;IACV,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,cAAc;AACf,CAAA,CAAC,CAAC;AAEH;AACA;AACA;AACA,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE;AAC9B,IAAA,KAAK,EAAE,uBAAuB;AAC9B,IAAA,SAAS,EAAE;AACT,QAAA,UAAU,EAAE,sCAAsC;AACnD,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,SAAS,EAAE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