@testgorilla/tgo-ui 4.2.2 → 4.2.4

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.
@@ -0,0 +1,36 @@
1
+ import { ApplicationTheme } from '../../models/application-theme.model';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * AI Caveat Component
5
+ *
6
+ * A standardized, reusable UI component to be displayed beneath all AI-generated content.
7
+ * The purpose is to promote responsible AI usage by informing users that content should be
8
+ * verified for accuracy, thereby reducing risk and managing user expectations regarding AI reliability.
9
+ *
10
+ * @example
11
+ * <ui-ai-caveat></ui-ai-caveat>
12
+ *
13
+ * @example
14
+ * <ui-ai-caveat [applicationTheme]="'dark'"></ui-ai-caveat>
15
+ */
16
+ export declare class AiCaveatComponent {
17
+ private readonly defaultAppTheme;
18
+ /**
19
+ * Defines the application theme
20
+ *
21
+ * @type {ApplicationTheme}
22
+ * @default 'light'
23
+ * @memberof AiCaveatComponent
24
+ */
25
+ applicationTheme: ApplicationTheme;
26
+ /**
27
+ * The translation key for the disclaimer text
28
+ *
29
+ * @readonly
30
+ * @memberof AiCaveatComponent
31
+ */
32
+ readonly disclaimerKey = "AI_CAVEAT.DISCLAIMER";
33
+ constructor(defaultAppTheme: ApplicationTheme);
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiCaveatComponent, [{ optional: true; }]>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<AiCaveatComponent, "ui-ai-caveat", never, { "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, {}, never, never, false, never>;
36
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./ai-caveat.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "../icon/icon.component.module";
5
+ import * as i4 from "../../pipes/ui-translate.pipe";
6
+ export declare class AiCaveatComponentModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiCaveatComponentModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AiCaveatComponentModule, [typeof i1.AiCaveatComponent], [typeof i2.CommonModule, typeof i3.IconComponentModule, typeof i4.UiTranslatePipe], [typeof i1.AiCaveatComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AiCaveatComponentModule>;
10
+ }
@@ -2768,6 +2768,9 @@ var AVATAR$b = {
2768
2768
  var AI_FEEDBACK$b = {
2769
2769
  TITLE: "Were these suggestions useful?"
2770
2770
  };
2771
+ var AI_CAVEAT = {
2772
+ DISCLAIMER: "AI can make mistakes. Review for accuracy."
2773
+ };
2771
2774
  var PROMPT = {
2772
2775
  ASK_ANYTHING: "Ask me anything...",
2773
2776
  ADD_FILES: "Add files",
@@ -2801,6 +2804,7 @@ var en = {
2801
2804
  FILTER_BUTTON: FILTER_BUTTON$b,
2802
2805
  AVATAR: AVATAR$b,
2803
2806
  AI_FEEDBACK: AI_FEEDBACK$b,
2807
+ AI_CAVEAT: AI_CAVEAT,
2804
2808
  PROMPT: PROMPT
2805
2809
  };
2806
2810
 
@@ -13741,6 +13745,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
13741
13745
  }]
13742
13746
  }] });
13743
13747
 
13748
+ /**
13749
+ * AI Caveat Component
13750
+ *
13751
+ * A standardized, reusable UI component to be displayed beneath all AI-generated content.
13752
+ * The purpose is to promote responsible AI usage by informing users that content should be
13753
+ * verified for accuracy, thereby reducing risk and managing user expectations regarding AI reliability.
13754
+ *
13755
+ * @example
13756
+ * <ui-ai-caveat></ui-ai-caveat>
13757
+ *
13758
+ * @example
13759
+ * <ui-ai-caveat [applicationTheme]="'dark'"></ui-ai-caveat>
13760
+ */
13761
+ class AiCaveatComponent {
13762
+ constructor(defaultAppTheme) {
13763
+ this.defaultAppTheme = defaultAppTheme;
13764
+ /**
13765
+ * Defines the application theme
13766
+ *
13767
+ * @type {ApplicationTheme}
13768
+ * @default 'light'
13769
+ * @memberof AiCaveatComponent
13770
+ */
13771
+ this.applicationTheme = 'light';
13772
+ /**
13773
+ * The translation key for the disclaimer text
13774
+ *
13775
+ * @readonly
13776
+ * @memberof AiCaveatComponent
13777
+ */
13778
+ this.disclaimerKey = 'AI_CAVEAT.DISCLAIMER';
13779
+ if (defaultAppTheme) {
13780
+ this.applicationTheme = defaultAppTheme;
13781
+ }
13782
+ }
13783
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponent, deps: [{ token: 'CANOPYUI_DEFAULT_APPLICATION_THEME', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
13784
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: AiCaveatComponent, isStandalone: false, selector: "ui-ai-caveat", inputs: { applicationTheme: "applicationTheme" }, ngImport: i0, template: "<div class=\"ai-caveat-container\" role=\"status\" aria-live=\"polite\">\n <ui-icon\n [name]=\"'Info-in-line'\"\n [size]=\"'16'\"\n color=\"gray\"\n [applicationTheme]=\"applicationTheme\"\n ></ui-icon>\n <span class=\"ai-caveat-text\">{{ disclaimerKey | uiTranslate | async }}</span>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}:host{display:block}.ai-caveat-container{display:flex;align-items:center;gap:8px;padding:0}.ai-caveat-text{color:#666}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ui-icon", inputs: ["size", "cssClass", "name", "color", "filled", "toggleIconStyle", "applicationTheme", "useFullIconName"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: UiTranslatePipe, name: "uiTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
13785
+ }
13786
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponent, decorators: [{
13787
+ type: Component,
13788
+ args: [{ selector: 'ui-ai-caveat', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"ai-caveat-container\" role=\"status\" aria-live=\"polite\">\n <ui-icon\n [name]=\"'Info-in-line'\"\n [size]=\"'16'\"\n color=\"gray\"\n [applicationTheme]=\"applicationTheme\"\n ></ui-icon>\n <span class=\"ai-caveat-text\">{{ disclaimerKey | uiTranslate | async }}</span>\n</div>\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}:host{display:block}.ai-caveat-container{display:flex;align-items:center;gap:8px;padding:0}.ai-caveat-text{color:#666}\n"] }]
13789
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
13790
+ type: Optional
13791
+ }, {
13792
+ type: Inject,
13793
+ args: ['CANOPYUI_DEFAULT_APPLICATION_THEME']
13794
+ }] }], propDecorators: { applicationTheme: [{
13795
+ type: Input
13796
+ }] } });
13797
+
13798
+ class AiCaveatComponentModule {
13799
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
13800
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponentModule, declarations: [AiCaveatComponent], imports: [CommonModule, IconComponentModule, UiTranslatePipe], exports: [AiCaveatComponent] }); }
13801
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponentModule, imports: [CommonModule, IconComponentModule] }); }
13802
+ }
13803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AiCaveatComponentModule, decorators: [{
13804
+ type: NgModule,
13805
+ args: [{
13806
+ declarations: [AiCaveatComponent],
13807
+ imports: [CommonModule, IconComponentModule, UiTranslatePipe],
13808
+ exports: [AiCaveatComponent],
13809
+ }]
13810
+ }] });
13811
+
13744
13812
  class CardComponent {
13745
13813
  /**
13746
13814
  * Show errors below card.
@@ -26991,5 +27059,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
26991
27059
  * Generated bundle index. Do not edit.
26992
27060
  */
26993
27061
 
26994
- export { AMOUNT_TAG_WIDTH, AccordionComponent, AccordionComponentModule, AiFeedbackComponent, AiFeedbackModule, AlertBannerComponent, AlertBannerComponentModule, Autocomplete, AutocompleteComponent, AutocompleteComponentModule, AvatarBackgroundColor, AvatarComponent, AvatarComponentModule, AvatarSize, BadgeColorEnum, BadgeComponent, BadgeComponentModule, BadgeVariantEnum, BreadcrumbComponent, BreadcrumbComponentModule, ButtonComponent, ButtonComponentModule, CardComponent, CardComponentModule, CheckboxComponent, CheckboxComponentModule, ChecklistComponent, Color, ColumnAlignment, ColumnAlignmentEnum, ColumnType, ColumnTypeEnum, ConfirmDialogComponent, ConfirmDialogComponentModule, DataPropertyGetterPipe, DatepickerComponent, DatepickerComponentModule, DeprecatedPaginatorComponent, DeprecatedPaginatorComponentModule, DialogComponent, DialogComponentModule, DialogService, DividerComponent, DividerComponentModule, DonutChartComponent, DonutChartComponentModule, DropdownComponent, DropdownComponentModule, DropdownVariation, ElevationShadowComponent, ElevationShadowComponentModule, ElevationType, EmptyStateComponent, EmptyStateComponentModule, FieldComponent, FieldComponentModule, FileUploadComponent, FileUploadComponentModule, FilterButtonComponent, FilterButtonComponentModule, GaussianChartComponent, GaussianChartComponentModule, IS_MOBILE_TOKEN, IconComponent, IconComponentModule, IconLabelComponent, IconLabelComponentModule, IconsService, InlineFieldComponent, InlineFieldComponentModule, Language, LanguageService, LargeSpiderChartSize, LogoComponent, LogoComponentModule, LogoPathEnum, LogoTypeEnum, MediaCardComponent, MediaDialogComponent, MemoizeFuncPipe, MultiInputComponent, MultiInputComponentModule, NavbarComponent, NavbarComponentModule, OverflowMenuComponent, OverflowMenuComponentModule, Padding, PageHeaderComponent, PageHeaderModule, PaginatorComponent, PaginatorComponentModule, PasswordComponent, PasswordComponentModule, PasswordStrengthComponent, PasswordStrengthComponentModule, PhoneInputComponent, PhoneInputComponentModule, ProgressBarComponent, ProgressBarComponentModule, PromptComponent, PromptModule, RadialProgressComponent, RadialProgressComponentModule, RadialProgressSizeEnum, RadialProgressSizeValue, RadioButtonComponent, RadioButtonComponentModule, RatingComponent, RatingComponentModule, RebrandBadgeColorEnum, SIDE_PANEL_CONFIG, SIDE_PANEL_DATA, ScaleComponent, ScaleComponentModule, ScaleTableComponent, SegmentedBarComponent, SegmentedBarComponentModule, SegmentedButtonComponent, SegmentedButtonComponentModule, SelectableCardComponent, SelectableCardComponentModule, SidePanelAnimationState, SidePanelComponent, SidePanelConfig, SidePanelRef, SidePanelService, SideSheetComponent, SideSheetComponentModule, SideSheetService, SkeletonComponent, SkillAreaGroupTypes, SkillAreaTypes, SliderComponent, SliderComponentModule, SmallSpiderChartSize, SnackbarComponent, SnackbarComponentModule, SnackbarService, SpiderChartComponent, SpiderChartComponentModule, SpinnerComponent, SpinnerComponentModule, StepComponent, StepComponentModule, StepperComponent, StepperComponentModule, TabDirective, TableComponent, TableComponentModule, TabsComponent, TabsComponentModule, TagComponent, TagComponentModule, Timeout, ToggleComponent, ToggleComponentModule, TooltipComponent, TooltipComponentModule, TooltipPositionType, TooltipTemplateDirective, UniversalSkillsReportComponent, UniversalSkillsReportComponentModule, UniversalSkillsService, UniversalSkillsSpiderChartsComponent, UniversalSkillsSpiderChartsComponentModule, ValidationErrorComponent, ValidationErrorModule, defaultSidePanelConfig, fieldID, getAvailableLangs, iconSize, inlineFieldID };
27062
+ export { AMOUNT_TAG_WIDTH, AccordionComponent, AccordionComponentModule, AiCaveatComponent, AiCaveatComponentModule, AiFeedbackComponent, AiFeedbackModule, AlertBannerComponent, AlertBannerComponentModule, Autocomplete, AutocompleteComponent, AutocompleteComponentModule, AvatarBackgroundColor, AvatarComponent, AvatarComponentModule, AvatarSize, BadgeColorEnum, BadgeComponent, BadgeComponentModule, BadgeVariantEnum, BreadcrumbComponent, BreadcrumbComponentModule, ButtonComponent, ButtonComponentModule, CardComponent, CardComponentModule, CheckboxComponent, CheckboxComponentModule, ChecklistComponent, Color, ColumnAlignment, ColumnAlignmentEnum, ColumnType, ColumnTypeEnum, ConfirmDialogComponent, ConfirmDialogComponentModule, DataPropertyGetterPipe, DatepickerComponent, DatepickerComponentModule, DeprecatedPaginatorComponent, DeprecatedPaginatorComponentModule, DialogComponent, DialogComponentModule, DialogService, DividerComponent, DividerComponentModule, DonutChartComponent, DonutChartComponentModule, DropdownComponent, DropdownComponentModule, DropdownVariation, ElevationShadowComponent, ElevationShadowComponentModule, ElevationType, EmptyStateComponent, EmptyStateComponentModule, FieldComponent, FieldComponentModule, FileUploadComponent, FileUploadComponentModule, FilterButtonComponent, FilterButtonComponentModule, GaussianChartComponent, GaussianChartComponentModule, IS_MOBILE_TOKEN, IconComponent, IconComponentModule, IconLabelComponent, IconLabelComponentModule, IconsService, InlineFieldComponent, InlineFieldComponentModule, Language, LanguageService, LargeSpiderChartSize, LogoComponent, LogoComponentModule, LogoPathEnum, LogoTypeEnum, MediaCardComponent, MediaDialogComponent, MemoizeFuncPipe, MultiInputComponent, MultiInputComponentModule, NavbarComponent, NavbarComponentModule, OverflowMenuComponent, OverflowMenuComponentModule, Padding, PageHeaderComponent, PageHeaderModule, PaginatorComponent, PaginatorComponentModule, PasswordComponent, PasswordComponentModule, PasswordStrengthComponent, PasswordStrengthComponentModule, PhoneInputComponent, PhoneInputComponentModule, ProgressBarComponent, ProgressBarComponentModule, PromptComponent, PromptModule, RadialProgressComponent, RadialProgressComponentModule, RadialProgressSizeEnum, RadialProgressSizeValue, RadioButtonComponent, RadioButtonComponentModule, RatingComponent, RatingComponentModule, RebrandBadgeColorEnum, SIDE_PANEL_CONFIG, SIDE_PANEL_DATA, ScaleComponent, ScaleComponentModule, ScaleTableComponent, SegmentedBarComponent, SegmentedBarComponentModule, SegmentedButtonComponent, SegmentedButtonComponentModule, SelectableCardComponent, SelectableCardComponentModule, SidePanelAnimationState, SidePanelComponent, SidePanelConfig, SidePanelRef, SidePanelService, SideSheetComponent, SideSheetComponentModule, SideSheetService, SkeletonComponent, SkillAreaGroupTypes, SkillAreaTypes, SliderComponent, SliderComponentModule, SmallSpiderChartSize, SnackbarComponent, SnackbarComponentModule, SnackbarService, SpiderChartComponent, SpiderChartComponentModule, SpinnerComponent, SpinnerComponentModule, StepComponent, StepComponentModule, StepperComponent, StepperComponentModule, TabDirective, TableComponent, TableComponentModule, TabsComponent, TabsComponentModule, TagComponent, TagComponentModule, Timeout, ToggleComponent, ToggleComponentModule, TooltipComponent, TooltipComponentModule, TooltipPositionType, TooltipTemplateDirective, UniversalSkillsReportComponent, UniversalSkillsReportComponentModule, UniversalSkillsService, UniversalSkillsSpiderChartsComponent, UniversalSkillsSpiderChartsComponentModule, ValidationErrorComponent, ValidationErrorModule, defaultSidePanelConfig, fieldID, getAvailableLangs, iconSize, inlineFieldID };
26995
27063
  //# sourceMappingURL=testgorilla-tgo-ui.mjs.map