@tilde-nlp/ngx-common 6.1.87 → 6.1.89

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 (24) hide show
  1. package/esm2022/lib/llm/components/llm-rephrase/llm-rephrase.component.mjs +48 -0
  2. package/esm2022/lib/llm/components/llm-summary/llm-summary.component.mjs +48 -0
  3. package/esm2022/lib/llm/icons/llm-menu.icon.mjs +12 -5
  4. package/esm2022/lib/llm/llm.component.mjs +46 -44
  5. package/esm2022/lib/llm/llm.module.mjs +15 -9
  6. package/esm2022/lib/new-feature-dialog/index.mjs +2 -1
  7. package/esm2022/lib/new-feature-dialog/models/index.mjs +2 -0
  8. package/esm2022/lib/new-feature-dialog/models/mobile-screen-custom-position.model.mjs +2 -0
  9. package/esm2022/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog-wrapper.component.mjs +29 -22
  10. package/esm2022/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog.service.mjs +6 -10
  11. package/fesm2022/tilde-nlp-ngx-common.mjs +319 -220
  12. package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
  13. package/lib/llm/components/llm-rephrase/llm-rephrase.component.d.ts +11 -0
  14. package/lib/llm/components/llm-summary/llm-summary.component.d.ts +11 -0
  15. package/lib/llm/icons/llm-menu.icon.d.ts +2 -1
  16. package/lib/llm/llm.component.d.ts +4 -3
  17. package/lib/llm/llm.module.d.ts +16 -14
  18. package/lib/new-feature-dialog/index.d.ts +1 -0
  19. package/lib/new-feature-dialog/models/index.d.ts +1 -0
  20. package/lib/new-feature-dialog/models/mobile-screen-custom-position.model.d.ts +5 -0
  21. package/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog-wrapper.component.d.ts +3 -1
  22. package/lib/new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog.service.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/web-components/main.js +23 -15
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { LLMActions } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LLMRephraseComponent {
5
+ isTargetLanguageRephrasable: boolean;
6
+ newFeatureLocalStorageKey: string | undefined;
7
+ openModalEvent: EventEmitter<LLMActions>;
8
+ openModal(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LLMRephraseComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LLMRephraseComponent, "lib-llm-rephrase", never, { "isTargetLanguageRephrasable": { "alias": "isTargetLanguageRephrasable"; "required": false; }; "newFeatureLocalStorageKey": { "alias": "newFeatureLocalStorageKey"; "required": false; }; }, { "openModalEvent": "openModalEvent"; }, never, never, false, never>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { LLMActions } from '../../models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LLMSummaryComponent {
5
+ isTextSummarizable: boolean;
6
+ newFeatureLocalStorageKey: string | undefined;
7
+ openModalEvent: EventEmitter<LLMActions>;
8
+ openModal(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LLMSummaryComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LLMSummaryComponent, "lib-llm-summary", never, { "isTextSummarizable": { "alias": "isTextSummarizable"; "required": false; }; "newFeatureLocalStorageKey": { "alias": "newFeatureLocalStorageKey"; "required": false; }; }, { "openModalEvent": "openModalEvent"; }, never, never, false, never>;
11
+ }
@@ -1 +1,2 @@
1
- export declare const LLM_MENU = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M16.1585 17.1686L14.9128 19.9564C14.5601 20.7458 13.4395 20.7458 13.0868 19.9564L11.8412 17.1686C11.6403 16.719 11.2806 16.3593 10.8311 16.1585L8.04323 14.9128C7.25382 14.5601 7.25382 13.4395 8.04323 13.0868L10.8311 11.8412C11.2806 11.6403 11.6403 11.2806 11.8412 10.8311L13.0868 8.04323C13.4395 7.25382 14.5601 7.25382 14.9128 8.04323L16.1585 10.8311C16.3593 11.2806 16.719 11.6403 17.1686 11.8412L19.9564 13.0868C20.7458 13.4395 20.7458 14.5601 19.9564 14.9128L17.1686 16.1585C16.719 16.3593 16.3593 16.719 16.1585 17.1686Z\" stroke=\"#524345\" stroke-width=\"1.5\"/>\n<path d=\"M10.4838 2.31373C10.2969 1.89542 9.7031 1.89542 9.5162 2.31373L9.14485 3.14485L8.31373 3.5162C7.89542 3.7031 7.89542 4.2969 8.31373 4.4838L9.14485 4.85515L9.5162 5.68627C9.7031 6.10458 10.2969 6.10458 10.4838 5.68627L10.8552 4.85515L11.6863 4.4838C12.1046 4.2969 12.1046 3.7031 11.6863 3.5162L10.8552 3.14485L10.4838 2.31373Z\" fill=\"#524345\"/>\n<path d=\"M5.7257 5.47059C5.44534 4.84314 4.55466 4.84313 4.2743 5.47059L3.71727 6.71727L2.47059 7.2743C1.84314 7.55466 1.84314 8.44534 2.47059 8.7257L3.71727 9.28273L4.2743 10.5294C4.55466 11.1569 5.44534 11.1569 5.7257 10.5294L6.28273 9.28273L7.52941 8.7257C8.15687 8.44534 8.15687 7.55466 7.52941 7.2743L6.28273 6.71727L5.7257 5.47059Z\" fill=\"#524345\"/>\n</svg>\n";
1
+ export declare const SUMMARIZE = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M4 5H18.6286V6.82857H4V5ZM4 10.4857H18.6286V8.65714H4V10.4857ZM4 14.1429H10.4V12.3143H4V14.1429ZM4 17.8H10.4V15.9714H4V17.8Z\" fill=\"currentColor\"/>\n<path d=\"M17.4005 13.3093C17.0801 12.5922 16.0622 12.5922 15.7418 13.3093L15.1052 14.7341L13.6804 15.3707C12.9633 15.6911 12.9633 16.709 13.6804 17.0294L15.1052 17.666L15.7418 19.0908C16.0622 19.8079 17.0801 19.8079 17.4005 19.0908L18.0371 17.666L19.4619 17.0294C20.179 16.709 20.179 15.6911 19.4619 15.3707L18.0371 14.7341L17.4005 13.3093Z\" fill=\"currentColor\"/>\n<path d=\"M13.5612 12.0546C13.4438 11.7917 13.0705 11.7917 12.953 12.0546L12.7196 12.577L12.1972 12.8105C11.9343 12.9279 11.9343 13.3012 12.1972 13.4187L12.7196 13.6521L12.953 14.1745C13.0705 14.4374 13.4438 14.4374 13.5612 14.1745L13.7947 13.6521L14.3171 13.4187C14.58 13.3012 14.58 12.9279 14.3171 12.8105L13.7947 12.577L13.5612 12.0546Z\" fill=\"currentColor\"/>\n</svg>\n";
2
+ export declare const REPHRASE = "<svg width=\"25\" height=\"25\" viewBox=\"0 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.879 4.16166L21.229 5.51166C22.019 6.29166 22.019 7.56166 21.229 8.34166L7.99897 21.5717H3.81897V17.3917L14.219 6.98166L17.049 4.16166C17.829 3.38166 19.099 3.38166 19.879 4.16166ZM5.81897 19.5717L7.22897 19.6317L17.049 9.80166L15.639 8.39166L5.81897 18.2117V19.5717Z\" fill=\"currentColor\"/>\n<path d=\"M19.5181 19.798L18.8644 21.261C18.6793 21.6752 18.0913 21.6752 17.9062 21.261L17.2526 19.798C17.1471 19.5621 16.9584 19.3734 16.7225 19.268L15.2595 18.6143C14.8453 18.4292 14.8453 17.8412 15.2595 17.6561L16.7225 17.0024C16.9584 16.897 17.1471 16.7083 17.2526 16.4724L17.9062 15.0094C18.0913 14.5952 18.6793 14.5952 18.8644 15.0094L19.5181 16.4724C19.6235 16.7083 19.8122 16.897 20.0481 17.0024L21.5111 17.6561C21.9253 17.8412 21.9253 18.4292 21.5111 18.6143L20.0481 19.268C19.8122 19.3734 19.6235 19.5621 19.5181 19.798Z\" stroke=\"#474D53\"/>\n<path d=\"M9.88502 3.56437C9.75242 3.26761 9.33117 3.26761 9.19857 3.56437L8.93512 4.15399L8.3455 4.41744C8.04874 4.55003 8.04874 4.97129 8.3455 5.10389L8.93512 5.36733L9.19857 5.95696C9.33117 6.25372 9.75242 6.25372 9.88502 5.95696L10.1485 5.36733L10.7381 5.10389C11.0349 4.97129 11.0349 4.55003 10.7381 4.41744L10.1485 4.15399L9.88502 3.56437Z\" fill=\"currentColor\"/>\n<path d=\"M6.50947 5.80395C6.31057 5.35881 5.67869 5.35881 5.4798 5.80395L5.08462 6.68839L4.20019 7.08356C3.75505 7.28245 3.75505 7.91434 4.20019 8.11323L5.08462 8.5084L5.4798 9.39284C5.67869 9.83798 6.31057 9.83798 6.50947 9.39284L6.90464 8.5084L7.78907 8.11323C8.23421 7.91434 8.23421 7.28245 7.78907 7.08356L6.90464 6.68839L6.50947 5.80395Z\" fill=\"currentColor\"/>\n</svg>\n";
@@ -10,17 +10,18 @@ export declare class LLMComponent {
10
10
  private readonly languageService;
11
11
  text: string | Observable<string> | undefined;
12
12
  language: string | undefined;
13
- isMenuDisabled: boolean;
14
13
  rephrasableLanguagesCodeList: string[] | undefined;
14
+ summaryEnabled: boolean;
15
+ rephraseEnabled: boolean;
15
16
  showUseCaseSummary: boolean;
16
17
  showUseCaseRephrase: boolean;
18
+ newFeatureLocalStorageKey: string | undefined;
17
19
  menuTriggerClick: EventEmitter<void>;
18
20
  readonly llmAction: typeof LLMActions;
19
21
  get isTextSummarizable(): string | Observable<string> | undefined;
20
22
  get isTargetLanguageRephrasable(): boolean | "" | undefined;
21
23
  constructor(dialog: MatDialog, iconService: IconService, languageService: LanguageTranslateService);
22
24
  openLLMModal(action: LLMActions): void;
23
- menuTriggerClicked(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<LLMComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<LLMComponent, "lib-llm", never, { "text": { "alias": "text"; "required": false; }; "language": { "alias": "language"; "required": false; }; "isMenuDisabled": { "alias": "isMenuDisabled"; "required": false; }; "rephrasableLanguagesCodeList": { "alias": "rephrasableLanguagesCodeList"; "required": false; }; "showUseCaseSummary": { "alias": "showUseCaseSummary"; "required": false; }; "showUseCaseRephrase": { "alias": "showUseCaseRephrase"; "required": false; }; }, { "menuTriggerClick": "menuTriggerClick"; }, never, never, false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<LLMComponent, "lib-llm", never, { "text": { "alias": "text"; "required": false; }; "language": { "alias": "language"; "required": false; }; "rephrasableLanguagesCodeList": { "alias": "rephrasableLanguagesCodeList"; "required": false; }; "summaryEnabled": { "alias": "summaryEnabled"; "required": false; }; "rephraseEnabled": { "alias": "rephraseEnabled"; "required": false; }; "showUseCaseSummary": { "alias": "showUseCaseSummary"; "required": false; }; "showUseCaseRephrase": { "alias": "showUseCaseRephrase"; "required": false; }; "newFeatureLocalStorageKey": { "alias": "newFeatureLocalStorageKey"; "required": false; }; }, { "menuTriggerClick": "menuTriggerClick"; }, never, never, false, never>;
26
27
  }
@@ -2,21 +2,23 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./llm.component";
3
3
  import * as i2 from "./shared/llm-textarea/llm-textarea.component";
4
4
  import * as i3 from "./components/llm-textarea-with-actions/llm-textarea-with-actions.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/material/button";
7
- import * as i6 from "@angular/material/icon";
8
- import * as i7 from "@angular/material/menu";
9
- import * as i8 from "@ngx-translate/core";
10
- import * as i9 from "@angular/material/dialog";
11
- import * as i10 from "@angular/cdk/clipboard";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "@angular/material/select";
14
- import * as i13 from "../notification-message/notification-message.module";
15
- import * as i14 from "@angular/material/tooltip";
16
- import * as i15 from "@ngbracket/ngx-layout";
17
- import * as i16 from "@angular/material/progress-spinner";
5
+ import * as i4 from "./components/llm-summary/llm-summary.component";
6
+ import * as i5 from "./components/llm-rephrase/llm-rephrase.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/material/button";
9
+ import * as i8 from "@angular/material/icon";
10
+ import * as i9 from "@ngx-translate/core";
11
+ import * as i10 from "@angular/material/dialog";
12
+ import * as i11 from "@angular/cdk/clipboard";
13
+ import * as i12 from "@angular/forms";
14
+ import * as i13 from "@angular/material/select";
15
+ import * as i14 from "../notification-message/notification-message.module";
16
+ import * as i15 from "@angular/material/tooltip";
17
+ import * as i16 from "@ngbracket/ngx-layout";
18
+ import * as i17 from "@angular/material/progress-spinner";
19
+ import * as i18 from "../new-feature-dialog/new-feature-dialog-wrapper/new-feature-dialog-wrapper.component";
18
20
  export declare class LLMModule {
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<LLMModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<LLMModule, [typeof i1.LLMComponent, typeof i2.LLMTextareaComponent, typeof i3.LLMTextareaWithActionsComponent], [typeof i4.CommonModule, typeof i5.MatButtonModule, typeof i6.MatIconModule, typeof i7.MatMenuModule, typeof i8.TranslateModule, typeof i9.MatDialogModule, typeof i10.ClipboardModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.MatSelectModule, typeof i13.NotificationMessageModule, typeof i14.MatTooltipModule, typeof i15.FlexLayoutModule, typeof i16.MatProgressSpinnerModule], [typeof i1.LLMComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LLMModule, [typeof i1.LLMComponent, typeof i2.LLMTextareaComponent, typeof i3.LLMTextareaWithActionsComponent, typeof i4.LLMSummaryComponent, typeof i5.LLMRephraseComponent], [typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.TranslateModule, typeof i10.MatDialogModule, typeof i11.ClipboardModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.MatSelectModule, typeof i14.NotificationMessageModule, typeof i15.MatTooltipModule, typeof i16.FlexLayoutModule, typeof i17.MatProgressSpinnerModule, typeof i18.NewFeatureDialogWrapperComponent], [typeof i1.LLMComponent]>;
21
23
  static ɵinj: i0.ɵɵInjectorDeclaration<LLMModule>;
22
24
  }
@@ -1 +1,2 @@
1
1
  export * from './new-feature-dialog-wrapper/new-feature-dialog-wrapper.component';
2
+ export * from './models';
@@ -0,0 +1 @@
1
+ export * from './mobile-screen-custom-position.model';
@@ -0,0 +1,5 @@
1
+ export interface MobileScreenCustomPosition {
2
+ autoScroll?: boolean;
3
+ left?: string;
4
+ top?: string;
5
+ }
@@ -1,6 +1,7 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { NewFeatureDialogComponent } from '../new-feature-dialog.component';
4
+ import { MobileScreenCustomPosition } from '../models/mobile-screen-custom-position.model';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class NewFeatureDialogWrapperComponent implements OnInit, OnDestroy {
6
7
  #private;
@@ -11,6 +12,7 @@ export declare class NewFeatureDialogWrapperComponent implements OnInit, OnDestr
11
12
  featureLocalStorageKey: string;
12
13
  timeout: number;
13
14
  maxWidth: number;
15
+ mobileScreenCustomPosition?: MobileScreenCustomPosition;
14
16
  dialogRef: MatDialogRef<NewFeatureDialogComponent> | undefined;
15
17
  featureActive: import("@angular/core").WritableSignal<boolean>;
16
18
  isFeatureSeen: boolean;
@@ -20,5 +22,5 @@ export declare class NewFeatureDialogWrapperComponent implements OnInit, OnDestr
20
22
  private setFeatureStatus;
21
23
  private setFeatureSeen;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<NewFeatureDialogWrapperComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<NewFeatureDialogWrapperComponent, "lib-new-feature-dialog-wrapper", never, { "titleLocalizationKey": { "alias": "titleLocalizationKey"; "required": false; }; "descriptionLocalizationKey": { "alias": "descriptionLocalizationKey"; "required": false; }; "closeLocalizationKey": { "alias": "closeLocalizationKey"; "required": false; }; "featureClassName": { "alias": "featureClassName"; "required": false; }; "featureLocalStorageKey": { "alias": "featureLocalStorageKey"; "required": false; }; "timeout": { "alias": "timeout"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewFeatureDialogWrapperComponent, "lib-new-feature-dialog-wrapper", never, { "titleLocalizationKey": { "alias": "titleLocalizationKey"; "required": false; }; "descriptionLocalizationKey": { "alias": "descriptionLocalizationKey"; "required": false; }; "closeLocalizationKey": { "alias": "closeLocalizationKey"; "required": false; }; "featureClassName": { "alias": "featureClassName"; "required": false; }; "featureLocalStorageKey": { "alias": "featureLocalStorageKey"; "required": false; }; "timeout": { "alias": "timeout"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "mobileScreenCustomPosition": { "alias": "mobileScreenCustomPosition"; "required": false; }; }, {}, never, never, true, never>;
24
26
  }
@@ -2,7 +2,7 @@ import { NewFeatureDialogWrapperComponent } from './new-feature-dialog-wrapper.c
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NewFeatureDialogService {
4
4
  current: import("@angular/core").WritableSignal<NewFeatureDialogWrapperComponent | undefined>;
5
- quueue: NewFeatureDialogWrapperComponent[];
5
+ queue: NewFeatureDialogWrapperComponent[];
6
6
  requestOpenFeature(component: NewFeatureDialogWrapperComponent): void;
7
7
  showNextFeature(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<NewFeatureDialogService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-common",
3
- "version": "6.1.87",
3
+ "version": "6.1.89",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",