@firestitch/report 18.0.10 → 18.0.12

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 (23) hide show
  1. package/app/reports/data/report.data.d.ts +4 -0
  2. package/app/reports/dialogs/entity-functions/entity-functions.component.d.ts +22 -0
  3. package/app/reports/dialogs/global-settings/components/general/general.component.d.ts +8 -0
  4. package/app/reports/dialogs/global-settings/components/semantic-database/semantic-database.component.d.ts +21 -21
  5. package/app/reports/dialogs/global-settings/global-settings.component.d.ts +8 -4
  6. package/app/reports/dialogs/instruction-history/instruction-history.component.d.ts +16 -0
  7. package/app/reports/interfaces/report.interface.d.ts +11 -1
  8. package/esm2022/app/reports/data/report.data.mjs +15 -1
  9. package/esm2022/app/reports/dialogs/entity-functions/entity-functions.component.mjs +81 -0
  10. package/esm2022/app/reports/dialogs/global-settings/components/general/general.component.mjs +34 -0
  11. package/esm2022/app/reports/dialogs/global-settings/components/semantic-database/semantic-database.component.mjs +70 -75
  12. package/esm2022/app/reports/dialogs/global-settings/global-settings.component.mjs +58 -24
  13. package/esm2022/app/reports/dialogs/instruction-history/instruction-history.component.mjs +60 -0
  14. package/esm2022/app/reports/interfaces/report.interface.mjs +1 -1
  15. package/fesm2022/{firestitch-report-echarts-Cel1iHUg.mjs → firestitch-report-echarts-1VNsyco5.mjs} +2 -2
  16. package/fesm2022/{firestitch-report-echarts-Cel1iHUg.mjs.map → firestitch-report-echarts-1VNsyco5.mjs.map} +1 -1
  17. package/fesm2022/{firestitch-report-firestitch-report-Y1XG_Gms.mjs → firestitch-report-firestitch-report-BNHGwPj2.mjs} +274 -119
  18. package/fesm2022/firestitch-report-firestitch-report-BNHGwPj2.mjs.map +1 -0
  19. package/fesm2022/firestitch-report.mjs +1 -1
  20. package/package.json +1 -1
  21. package/app/reports/dialogs/global-settings/components/history/history.component.d.ts +0 -8
  22. package/esm2022/app/reports/dialogs/global-settings/components/history/history.component.mjs +0 -32
  23. package/fesm2022/firestitch-report-firestitch-report-Y1XG_Gms.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- export { f as FREQUENCY_OPTIONS, b as FsAiReportComponent, F as FsAiReportsComponent, a as ReportComponent, c as ReportData, e as ReportFilterStateService, d as ReportService } from './firestitch-report-firestitch-report-Y1XG_Gms.mjs';
1
+ export { f as FREQUENCY_OPTIONS, b as FsAiReportComponent, F as FsAiReportsComponent, a as ReportComponent, c as ReportData, e as ReportFilterStateService, d as ReportService } from './firestitch-report-firestitch-report-BNHGwPj2.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.0.10",
3
+ "version": "18.0.12",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-report"
@@ -1,8 +0,0 @@
1
- import { ReportInstruction } from '../../../../interfaces/report.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class HistoryComponent {
4
- readonly versions: import("@angular/core").InputSignal<ReportInstruction[]>;
5
- readonly restore: import("@angular/core").OutputEmitterRef<ReportInstruction>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<HistoryComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<HistoryComponent, "fs-ai-report-global-settings-history", never, { "versions": { "alias": "versions"; "required": true; "isSignal": true; }; }, { "restore": "restore"; }, never, never, true, never>;
8
- }
@@ -1,32 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
2
- import { MatButton } from '@angular/material/button';
3
- import { FsChipModule } from '@firestitch/chip';
4
- import { FsDateModule } from '@firestitch/date';
5
- import { FsMarkdownRendererComponent } from '@firestitch/markdown-editor';
6
- import { FsMessageModule } from '@firestitch/message';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@firestitch/chip";
9
- import * as i2 from "@firestitch/date";
10
- import * as i3 from "@firestitch/message";
11
- // The History tab: every saved version of the AI Knowledge document
12
- // (append-only), each previewed and restorable. Restoring mutates the current
13
- // version and reseeds the editor — a parent concern — so this stays
14
- // presentational: it renders the versions it is given and emits the one to
15
- // restore.
16
- export class HistoryComponent {
17
- versions = input.required();
18
- restore = output();
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: HistoryComponent, isStandalone: true, selector: "fs-ai-report-global-settings-history", inputs: { versions: { classPropertyName: "versions", publicName: "versions", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { restore: "restore" }, ngImport: i0, template: "<div class=\"fs-column tab-body\">\n @if (versions().length) {\n @for (version of versions(); track version.id) {\n <div class=\"version\">\n <div class=\"version-header\">\n <fs-date\n [date]=\"version.createDate\"\n format=\"date-time\">\n </fs-date>\n @if (version.accountName) {\n <span class=\"author\">{{ version.accountName }}</span>\n }\n <span class=\"spacer\"></span>\n @if (version.current) {\n <fs-chip\n size=\"tiny\"\n [backgroundColor]=\"'#2e7d32'\"\n color=\"#ffffff\">\n Current\n </fs-chip>\n } @else {\n <button\n type=\"button\"\n mat-stroked-button\n (click)=\"restore.emit(version)\">\n Restore\n </button>\n }\n </div>\n <div class=\"version-preview\">\n <fs-markdown-renderer [markdown]=\"version.content\"></fs-markdown-renderer>\n </div>\n </div>\n }\n } @else {\n <fs-message-info>\n No versions yet \u2014 every save of the AI Knowledge document lands here, and\n any version can be restored.\n </fs-message-info>\n }\n</div>\n", styles: [".tab-body{padding-top:16px}.version{border:1px solid rgba(0,0,0,.12);border-radius:6px;padding:12px}.version+.version{margin-top:12px}.version .version-header{display:flex;align-items:center;gap:8px}.version .version-header .author{color:#0009}.version .version-header .spacer{flex:1}.version .version-preview{margin-top:8px;max-height:200px;overflow-y:auto;border-top:1px solid rgba(0,0,0,.08);padding-top:8px}\n"], dependencies: [{ kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "ngmodule", type: FsChipModule }, { kind: "component", type: i1.FsChipComponent, selector: "fs-chip", inputs: ["selectable", "removable", "value", "maxWidth", "width", "backgroundColor", "borderColor", "color", "shape", "outlined", "outlineDash", "icon", "image", "selected", "disabled", "padding", "contrastColor", "size"], outputs: ["selectedToggled", "removed", "click"] }, { kind: "ngmodule", type: FsDateModule }, { kind: "component", type: i2.FsDateComponent, selector: "fs-date", inputs: ["date", "format", "timezone"] }, { kind: "ngmodule", type: FsMessageModule }, { kind: "component", type: i3.FsMessageInfoComponent, selector: "fs-message-info" }, { kind: "component", type: FsMarkdownRendererComponent, selector: "fs-markdown-renderer", inputs: ["config", "markdown"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HistoryComponent, decorators: [{
23
- type: Component,
24
- args: [{ selector: 'fs-ai-report-global-settings-history', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
25
- MatButton,
26
- FsChipModule,
27
- FsDateModule,
28
- FsMessageModule,
29
- FsMarkdownRendererComponent,
30
- ], template: "<div class=\"fs-column tab-body\">\n @if (versions().length) {\n @for (version of versions(); track version.id) {\n <div class=\"version\">\n <div class=\"version-header\">\n <fs-date\n [date]=\"version.createDate\"\n format=\"date-time\">\n </fs-date>\n @if (version.accountName) {\n <span class=\"author\">{{ version.accountName }}</span>\n }\n <span class=\"spacer\"></span>\n @if (version.current) {\n <fs-chip\n size=\"tiny\"\n [backgroundColor]=\"'#2e7d32'\"\n color=\"#ffffff\">\n Current\n </fs-chip>\n } @else {\n <button\n type=\"button\"\n mat-stroked-button\n (click)=\"restore.emit(version)\">\n Restore\n </button>\n }\n </div>\n <div class=\"version-preview\">\n <fs-markdown-renderer [markdown]=\"version.content\"></fs-markdown-renderer>\n </div>\n </div>\n }\n } @else {\n <fs-message-info>\n No versions yet \u2014 every save of the AI Knowledge document lands here, and\n any version can be restored.\n </fs-message-info>\n }\n</div>\n", styles: [".tab-body{padding-top:16px}.version{border:1px solid rgba(0,0,0,.12);border-radius:6px;padding:12px}.version+.version{margin-top:12px}.version .version-header{display:flex;align-items:center;gap:8px}.version .version-header .author{color:#0009}.version .version-header .spacer{flex:1}.version .version-preview{margin-top:8px;max-height:200px;overflow-y:auto;border-top:1px solid rgba(0,0,0,.08);padding-top:8px}\n"] }]
31
- }] });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlzdG9yeS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL3JlcG9ydHMvZGlhbG9ncy9nbG9iYWwtc2V0dGluZ3MvY29tcG9uZW50cy9oaXN0b3J5L2hpc3RvcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9yZXBvcnRzL2RpYWxvZ3MvZ2xvYmFsLXNldHRpbmdzL2NvbXBvbmVudHMvaGlzdG9yeS9oaXN0b3J5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUVsRixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFckQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQU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