@tilde-nlp/ngx-common 6.1.89 → 6.1.91
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.
- package/esm2022/lib/llm/components/llm-textarea-with-actions/llm-textarea-with-actions.component.mjs +45 -99
- package/esm2022/lib/llm/llm.component.mjs +9 -3
- package/esm2022/lib/llm/models/llm-data.model.mjs +1 -1
- package/fesm2022/tilde-nlp-ngx-common.mjs +68 -115
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/lib/llm/llm.component.d.ts +4 -1
- package/lib/llm/models/llm-data.model.d.ts +2 -1
- package/package.json +1 -1
- package/web-components/main.js +13 -49
|
@@ -22,7 +22,7 @@ import * as i1$3 from '@angular/common/http';
|
|
|
22
22
|
import { HttpErrorResponse, provideHttpClient, withInterceptorsFromDi, HttpClient } from '@angular/common/http';
|
|
23
23
|
import * as i15 from '@angular/material/paginator';
|
|
24
24
|
import { MatPaginatorIntl, MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i11 from '@angular/material/progress-spinner';
|
|
26
26
|
import { MatProgressSpinner, MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
27
27
|
import * as i1$4 from '@angular/material/dialog';
|
|
28
28
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -2357,7 +2357,7 @@ class CompanyProductModule {
|
|
|
2357
2357
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CompanyProductModule, { declarations: [CompanyProductComponent], imports: [CommonModule], exports: [CompanyProductComponent] }); })();
|
|
2358
2358
|
|
|
2359
2359
|
const _c0$c = a0 => ({ currentYear: a0 });
|
|
2360
|
-
const _c1$
|
|
2360
|
+
const _c1$6 = a0 => [a0];
|
|
2361
2361
|
function FooterComponent_ng_container_6_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2362
2362
|
i0.ɵɵelementStart(0, "a", 7);
|
|
2363
2363
|
i0.ɵɵtext(1);
|
|
@@ -2387,7 +2387,7 @@ function FooterComponent_ng_container_6_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
2387
2387
|
i0.ɵɵelementEnd();
|
|
2388
2388
|
} if (rf & 2) {
|
|
2389
2389
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2390
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2390
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$6, ctx_r0.contactUsRoute));
|
|
2391
2391
|
i0.ɵɵadvance();
|
|
2392
2392
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.CONTACT_US"), "");
|
|
2393
2393
|
} }
|
|
@@ -2411,7 +2411,7 @@ function FooterComponent_ng_template_7_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2411
2411
|
i0.ɵɵelementEnd();
|
|
2412
2412
|
} if (rf & 2) {
|
|
2413
2413
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2414
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2414
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$6, ctx_r0.termsOfUseRoute));
|
|
2415
2415
|
i0.ɵɵadvance();
|
|
2416
2416
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.TERMS_OF_USE"), "");
|
|
2417
2417
|
} }
|
|
@@ -2422,7 +2422,7 @@ function FooterComponent_ng_template_7_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
2422
2422
|
i0.ɵɵelementEnd();
|
|
2423
2423
|
} if (rf & 2) {
|
|
2424
2424
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2425
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2425
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$6, ctx_r0.privacyRoute));
|
|
2426
2426
|
i0.ɵɵadvance();
|
|
2427
2427
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.PRIVACY"), "");
|
|
2428
2428
|
} }
|
|
@@ -2433,7 +2433,7 @@ function FooterComponent_ng_template_7_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2433
2433
|
i0.ɵɵelementEnd();
|
|
2434
2434
|
} if (rf & 2) {
|
|
2435
2435
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2436
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2436
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$6, ctx_r0.contactUsRoute));
|
|
2437
2437
|
i0.ɵɵadvance();
|
|
2438
2438
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.CONTACT_US"), "");
|
|
2439
2439
|
} }
|
|
@@ -3006,7 +3006,7 @@ class ExtensionDialogModule {
|
|
|
3006
3006
|
const FILE_UPLOAD_ICON = `<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.4999 15V19H3.49992V15H0.833252V19C0.833252 20.4666 2.03325 21.6666 3.49992 21.6666H19.4999C20.9666 21.6666 22.1666 20.4666 22.1666 19V15H19.4999ZM4.83325 6.99998L6.71325 8.87998L10.1666 5.43998V16.3333H12.8333V5.43998L16.2866 8.87998L18.1666 6.99998L11.4999 0.333313L4.83325 6.99998Z" fill="black"/></svg>`;
|
|
3007
3007
|
|
|
3008
3008
|
const _c0$b = ["fileInput"];
|
|
3009
|
-
const _c1$
|
|
3009
|
+
const _c1$5 = ["*"];
|
|
3010
3010
|
const _c2$3 = a0 => ({ maxSize: a0 });
|
|
3011
3011
|
function FileUploadComponent_mat_progress_bar_1_Template(rf, ctx) { if (rf & 1) {
|
|
3012
3012
|
i0.ɵɵelement(0, "mat-progress-bar", 7);
|
|
@@ -3185,7 +3185,7 @@ class FileUploadComponent {
|
|
|
3185
3185
|
} if (rf & 2) {
|
|
3186
3186
|
let _t;
|
|
3187
3187
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
3188
|
-
} }, inputs: { accept: "accept", useCompactUpload: "useCompactUpload", maxSize: "maxSize", multiple: "multiple", filePreviewProgress: "filePreviewProgress", allowEmpty: "allowEmpty", disabled: "disabled", dragZoneLabel: "dragZoneLabel", uploadIconName: "uploadIconName", uploadButtonLabel: "uploadButtonLabel", openExtensionPopupLabel: "openExtensionPopupLabel", minSupportedFormatCount: "minSupportedFormatCount", extendedAcceptList: "extendedAcceptList" }, outputs: { fileChange: "fileChange", errorEvent: "errorEvent" }, ngContentSelectors: _c1$
|
|
3188
|
+
} }, inputs: { accept: "accept", useCompactUpload: "useCompactUpload", maxSize: "maxSize", multiple: "multiple", filePreviewProgress: "filePreviewProgress", allowEmpty: "allowEmpty", disabled: "disabled", dragZoneLabel: "dragZoneLabel", uploadIconName: "uploadIconName", uploadButtonLabel: "uploadButtonLabel", openExtensionPopupLabel: "openExtensionPopupLabel", minSupportedFormatCount: "minSupportedFormatCount", extendedAcceptList: "extendedAcceptList" }, outputs: { fileChange: "fileChange", errorEvent: "errorEvent" }, ngContentSelectors: _c1$5, decls: 7, vars: 9, consts: [["regularUpload", ""], ["fileInput", ""], ["inputButton", ""], [1, "file-upload", 3, "ngClass.lt-sm"], ["color", "primary", "class", "tld-file-upload-progress", 3, "value", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["type", "file", "name", "files", 1, "native-file-input", 3, "change", "accept", "multiple", "disabled"], ["color", "primary", 1, "tld-file-upload-progress", 3, "value"], ["tldDragAndDrop", "", "mat-button", "", "type", "button", 1, "upload-button", "text-l", 3, "fileDropped", "click", "disabled"], [4, "ngIf"], ["tldDragAndDrop", "", 1, "upload-zone", 3, "fileDropped"], ["svgIcon", "file_upload_icon"], [1, "upload-zone-labels"], ["color", "accent", 1, "file-upload--btn", 3, "click"], ["fxHide.lt-sm", "", 1, "upload-label", 3, "innerHTML"], [1, "upload-zone-formats"], [4, "ngFor", "ngForOf"], [3, "innerHTML", 4, "ngIf"], [1, "supported-formats-btn"], [3, "innerHTML"], [1, "supported-formats-btn", 3, "click"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3189
3189
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
3190
3190
|
i0.ɵɵprojectionDef();
|
|
3191
3191
|
i0.ɵɵelementStart(0, "div", 3);
|
|
@@ -3285,7 +3285,7 @@ class FileUploadModule {
|
|
|
3285
3285
|
TranslateModule], exports: [FileUploadComponent] }); })();
|
|
3286
3286
|
|
|
3287
3287
|
const _c0$a = ["filterWrapper"];
|
|
3288
|
-
const _c1$
|
|
3288
|
+
const _c1$4 = ["optionSearchInput"];
|
|
3289
3289
|
const _forTrack0$1 = ($index, $item) => $item.fieldName;
|
|
3290
3290
|
const _forTrack1 = ($index, $item) => $item.key;
|
|
3291
3291
|
const _forTrack2 = ($index, $item) => $item.value;
|
|
@@ -3646,7 +3646,7 @@ class FilterBarComponent {
|
|
|
3646
3646
|
static { this.ɵfac = function FilterBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FilterBarComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.TranslateService)); }; }
|
|
3647
3647
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterBarComponent, selectors: [["tld-filter-bar"]], viewQuery: function FilterBarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3648
3648
|
i0.ɵɵviewQuery(_c0$a, 5);
|
|
3649
|
-
i0.ɵɵviewQuery(_c1$
|
|
3649
|
+
i0.ɵɵviewQuery(_c1$4, 5);
|
|
3650
3650
|
} if (rf & 2) {
|
|
3651
3651
|
let _t;
|
|
3652
3652
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterWrapper = _t.first);
|
|
@@ -3799,7 +3799,7 @@ class StatusDisplayComponent {
|
|
|
3799
3799
|
const loading_r2 = i0.ɵɵreference(3);
|
|
3800
3800
|
i0.ɵɵadvance();
|
|
3801
3801
|
i0.ɵɵproperty("ngIf", !ctx.config.loading)("ngIfElse", loading_r2);
|
|
3802
|
-
} }, dependencies: [i1$2.NgIf,
|
|
3802
|
+
} }, dependencies: [i1$2.NgIf, i11.MatProgressSpinner, i1$1.TranslatePipe], styles: [".status-display-wrapper[_ngcontent-%COMP%]{margin:4rem 0;display:flex;flex-direction:column;align-items:center}.status-display-row-title[_ngcontent-%COMP%], .status-display-row-description[_ngcontent-%COMP%], .status-display-row-extra[_ngcontent-%COMP%]{text-align:center}.status-display-row-description[_ngcontent-%COMP%]{max-width:500px;white-space:wrap}.status-display-row-extra[_ngcontent-%COMP%]{margin-top:1rem}.material-icons-outlined[_ngcontent-%COMP%]{font-size:4rem;color:var(--base-70)}mat-spinner[_ngcontent-%COMP%]{margin:auto}.material-icons[_ngcontent-%COMP%], .material-icons-outlined[_ngcontent-%COMP%]{margin-right:.5rem}"] }); }
|
|
3803
3803
|
}
|
|
3804
3804
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StatusDisplayComponent, [{
|
|
3805
3805
|
type: Component,
|
|
@@ -3811,7 +3811,7 @@ class StatusDisplayComponent {
|
|
|
3811
3811
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StatusDisplayComponent, { className: "StatusDisplayComponent", filePath: "lib\\status-display\\status-display.component.ts", lineNumber: 9 }); })();
|
|
3812
3812
|
|
|
3813
3813
|
const _c0$8 = ["tableContainer"];
|
|
3814
|
-
const _c1$
|
|
3814
|
+
const _c1$3 = ["filterBar"];
|
|
3815
3815
|
const _c2$1 = [[["", "additionalActions", ""]], [["", "batchActions", ""]], "*"];
|
|
3816
3816
|
const _c3 = ["[additionalActions]", "[batchActions]", "*"];
|
|
3817
3817
|
const _c4 = () => [10];
|
|
@@ -4340,7 +4340,7 @@ class MultiFunctionalTableComponent {
|
|
|
4340
4340
|
i0.ɵɵviewQuery(MatTable, 7);
|
|
4341
4341
|
i0.ɵɵviewQuery(MatSort, 5);
|
|
4342
4342
|
i0.ɵɵviewQuery(_c0$8, 5);
|
|
4343
|
-
i0.ɵɵviewQuery(_c1$
|
|
4343
|
+
i0.ɵɵviewQuery(_c1$3, 5);
|
|
4344
4344
|
i0.ɵɵviewQuery(MatPaginator, 5);
|
|
4345
4345
|
i0.ɵɵviewQuery(MatTable, 5, ElementRef);
|
|
4346
4346
|
} if (rf & 2) {
|
|
@@ -5513,7 +5513,7 @@ class TerminologyService {
|
|
|
5513
5513
|
}], () => [{ type: TerminologyConfigService }, { type: AlertService }, { type: TerminologyCollectionService }, { type: TerminologyApiService }], null); })();
|
|
5514
5514
|
|
|
5515
5515
|
const _c0$6 = a0 => ({ termCount: a0 });
|
|
5516
|
-
const _c1$
|
|
5516
|
+
const _c1$2 = a0 => ({ date: a0 });
|
|
5517
5517
|
function TerminologyCollectionCardComponent_ng_container_0_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
5518
5518
|
i0.ɵɵelementStart(0, "span", 15);
|
|
5519
5519
|
i0.ɵɵtext(1);
|
|
@@ -5595,7 +5595,7 @@ function TerminologyCollectionCardComponent_ng_container_0_span_14_Template(rf,
|
|
|
5595
5595
|
} if (rf & 2) {
|
|
5596
5596
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5597
5597
|
i0.ɵɵadvance();
|
|
5598
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 3, ctx_r1.localizationKey + "LAST_UPDATED", i0.ɵɵpureFunction1(6, _c1$
|
|
5598
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(3, 3, ctx_r1.localizationKey + "LAST_UPDATED", i0.ɵɵpureFunction1(6, _c1$2, i0.ɵɵpipeBind1(2, 1, ctx_r1.collection.lastUpdated))), " ");
|
|
5599
5599
|
} }
|
|
5600
5600
|
function TerminologyCollectionCardComponent_ng_container_0_div_16_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
5601
5601
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -5752,7 +5752,7 @@ class TerminologyCollectionCardComponent {
|
|
|
5752
5752
|
i0.ɵɵtemplate(0, TerminologyCollectionCardComponent_ng_container_0_Template, 20, 17, "ng-container", 1);
|
|
5753
5753
|
} if (rf & 2) {
|
|
5754
5754
|
i0.ɵɵproperty("ngIf", ctx.collection);
|
|
5755
|
-
} }, dependencies: [i1$2.NgForOf, i1$2.NgIf, i2$3.DefaultLayoutDirective, i2$3.DefaultLayoutGapDirective, i2$3.DefaultLayoutAlignDirective, i2$3.DefaultFlexDirective, i2$1.MatButton, i2$1.MatIconAnchor, i1.MatIcon,
|
|
5755
|
+
} }, dependencies: [i1$2.NgForOf, i1$2.NgIf, i2$3.DefaultLayoutDirective, i2$3.DefaultLayoutGapDirective, i2$3.DefaultLayoutAlignDirective, i2$3.DefaultFlexDirective, i2$1.MatButton, i2$1.MatIconAnchor, i1.MatIcon, i11.MatProgressSpinner, i5$1.MatRadioButton, i2$2.MatTooltip, i1$2.UpperCasePipe, i1$1.TranslatePipe, DateAgoPipe], styles: [".collection-languages[_ngcontent-%COMP%]{display:flex;gap:2px}.collection-languages[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;border-radius:100px;padding-right:8px;padding-left:8px;color:var(--base-40);background-color:var(--base-70)}"] }); }
|
|
5756
5756
|
}
|
|
5757
5757
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyCollectionCardComponent, [{
|
|
5758
5758
|
type: Component,
|
|
@@ -5929,7 +5929,7 @@ class TerminologyCollectionListComponent {
|
|
|
5929
5929
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TerminologyCollectionListComponent, { className: "TerminologyCollectionListComponent", filePath: "lib\\terminology\\components\\terminology-panel\\terminology-collection-list\\terminology-collection-list.component.ts", lineNumber: 12 }); })();
|
|
5930
5930
|
|
|
5931
5931
|
const _c0$4 = (a0, a1) => ({ appName: a0, termPortalName: a1 });
|
|
5932
|
-
const _c1$
|
|
5932
|
+
const _c1$1 = (a0, a1) => ({ minLength: a0, maxLength: a1 });
|
|
5933
5933
|
function TerminologyCreateCollectionDialogComponent_mat_error_15_Template(rf, ctx) { if (rf & 1) {
|
|
5934
5934
|
i0.ɵɵelementStart(0, "mat-error");
|
|
5935
5935
|
i0.ɵɵtext(1);
|
|
@@ -5938,7 +5938,7 @@ function TerminologyCreateCollectionDialogComponent_mat_error_15_Template(rf, ct
|
|
|
5938
5938
|
} if (rf & 2) {
|
|
5939
5939
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
5940
5940
|
i0.ɵɵadvance();
|
|
5941
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "TERM_COLLECTIONS.CREATE_DIALOG.COLLECTION_NAME_ERROR", i0.ɵɵpureFunction2(4, _c1$
|
|
5941
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, "TERM_COLLECTIONS.CREATE_DIALOG.COLLECTION_NAME_ERROR", i0.ɵɵpureFunction2(4, _c1$1, ctx_r0.minLength, ctx_r0.maxLength)));
|
|
5942
5942
|
} }
|
|
5943
5943
|
class TerminologyCreateCollectionDialogComponent {
|
|
5944
5944
|
constructor(
|
|
@@ -6461,7 +6461,7 @@ class TerminologyComponent {
|
|
|
6461
6461
|
i0.ɵɵproperty("ngIf", !ctx.hideGlossaryMenuWithoutCollections || ctx.hideGlossaryMenuWithoutCollections && ctx.hasAnyCollections);
|
|
6462
6462
|
i0.ɵɵadvance(5);
|
|
6463
6463
|
i0.ɵɵproperty("system", ctx.system)("selectedCollection", ctx.selected)("setSelectedFromLocalStorage", ctx.setSelectedFromLocalStorage);
|
|
6464
|
-
} }, dependencies: [i1$2.NgIf, OpenCloseButtonComponent, i2$3.DefaultLayoutGapDirective, i2$3.DefaultLayoutAlignDirective, i3.DefaultShowHideDirective, i3.DefaultClassDirective, CloseButtonComponent, i2$1.MatIconButton, i1.MatIcon,
|
|
6464
|
+
} }, dependencies: [i1$2.NgIf, OpenCloseButtonComponent, i2$3.DefaultLayoutGapDirective, i2$3.DefaultLayoutAlignDirective, i3.DefaultShowHideDirective, i3.DefaultClassDirective, CloseButtonComponent, i2$1.MatIconButton, i1.MatIcon, i11.MatProgressSpinner, i6$1.MatMenu, i6$1.MatMenuTrigger, i2$2.MatTooltip, TerminologyPanelComponent, i1$1.TranslatePipe], styles: ["[_nghost-%COMP%] .mdc-circular-progress__circle-clipper, [_nghost-%COMP%] .mdc-circular-progress__indeterminate-circle-graphic{width:100%!important}.selected-col-spinner[_ngcontent-%COMP%]{margin-left:5px}.tld-collection-menu-button[_ngcontent-%COMP%] .selected-collection[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:140px;display:inline-block;white-space:nowrap}"] }); }
|
|
6465
6465
|
}
|
|
6466
6466
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyComponent, [{
|
|
6467
6467
|
type: Component,
|
|
@@ -6939,11 +6939,10 @@ class LLMTextareaComponent {
|
|
|
6939
6939
|
}] }); })();
|
|
6940
6940
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LLMTextareaComponent, { className: "LLMTextareaComponent", filePath: "lib\\llm\\shared\\llm-textarea\\llm-textarea.component.ts", lineNumber: 11 }); })();
|
|
6941
6941
|
|
|
6942
|
-
const _c0$1 = a0 => ({
|
|
6943
|
-
const _c1$1 = (a0, a1) => ({ limit: a0, subscriptionUrl: a1 });
|
|
6942
|
+
const _c0$1 = (a0, a1) => ({ limit: a0, subscriptionUrl: a1 });
|
|
6944
6943
|
function LLMTextareaWithActionsComponent_lib_tld_notification_message_7_Template(rf, ctx) { if (rf & 1) {
|
|
6945
6944
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
6946
|
-
i0.ɵɵelementStart(0, "lib-tld-notification-message",
|
|
6945
|
+
i0.ɵɵelementStart(0, "lib-tld-notification-message", 14);
|
|
6947
6946
|
i0.ɵɵlistener("closeClicked", function LLMTextareaWithActionsComponent_lib_tld_notification_message_7_Template_lib_tld_notification_message_closeClicked_0_listener() { const message_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.closeMessage(message_r3)); });
|
|
6948
6947
|
i0.ɵɵelementEnd();
|
|
6949
6948
|
} if (rf & 2) {
|
|
@@ -6951,7 +6950,7 @@ function LLMTextareaWithActionsComponent_lib_tld_notification_message_7_Template
|
|
|
6951
6950
|
i0.ɵɵproperty("message", message_r3);
|
|
6952
6951
|
} }
|
|
6953
6952
|
function LLMTextareaWithActionsComponent_mat_form_field_8_For_6_Template(rf, ctx) { if (rf & 1) {
|
|
6954
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
6953
|
+
i0.ɵɵelementStart(0, "mat-option", 17);
|
|
6955
6954
|
i0.ɵɵtext(1);
|
|
6956
6955
|
i0.ɵɵpipe(2, "uppercase");
|
|
6957
6956
|
i0.ɵɵpipe(3, "translate");
|
|
@@ -6964,13 +6963,13 @@ function LLMTextareaWithActionsComponent_mat_form_field_8_For_6_Template(rf, ctx
|
|
|
6964
6963
|
} }
|
|
6965
6964
|
function LLMTextareaWithActionsComponent_mat_form_field_8_Template(rf, ctx) { if (rf & 1) {
|
|
6966
6965
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
6967
|
-
i0.ɵɵelementStart(0, "mat-form-field",
|
|
6966
|
+
i0.ɵɵelementStart(0, "mat-form-field", 15)(1, "mat-label");
|
|
6968
6967
|
i0.ɵɵtext(2);
|
|
6969
6968
|
i0.ɵɵpipe(3, "translate");
|
|
6970
6969
|
i0.ɵɵelementEnd();
|
|
6971
|
-
i0.ɵɵelementStart(4, "mat-select",
|
|
6970
|
+
i0.ɵɵelementStart(4, "mat-select", 16);
|
|
6972
6971
|
i0.ɵɵtwoWayListener("ngModelChange", function LLMTextareaWithActionsComponent_mat_form_field_8_Template_mat_select_ngModelChange_4_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r3 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r3.selectedUseCase, $event) || (ctx_r3.selectedUseCase = $event); return i0.ɵɵresetView($event); });
|
|
6973
|
-
i0.ɵɵrepeaterCreate(5, LLMTextareaWithActionsComponent_mat_form_field_8_For_6_Template, 4, 6, "mat-option",
|
|
6972
|
+
i0.ɵɵrepeaterCreate(5, LLMTextareaWithActionsComponent_mat_form_field_8_For_6_Template, 4, 6, "mat-option", 17, i0.ɵɵrepeaterTrackByIndex);
|
|
6974
6973
|
i0.ɵɵelementEnd()();
|
|
6975
6974
|
} if (rf & 2) {
|
|
6976
6975
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -6982,64 +6981,17 @@ function LLMTextareaWithActionsComponent_mat_form_field_8_Template(rf, ctx) { if
|
|
|
6982
6981
|
i0.ɵɵadvance();
|
|
6983
6982
|
i0.ɵɵrepeater(ctx_r3.useCases);
|
|
6984
6983
|
} }
|
|
6985
|
-
function
|
|
6986
|
-
i0.ɵɵ
|
|
6987
|
-
i0.ɵɵtext(1);
|
|
6988
|
-
i0.ɵɵpipe(2, "uppercase");
|
|
6989
|
-
i0.ɵɵpipe(3, "translate");
|
|
6990
|
-
i0.ɵɵelementEnd();
|
|
6991
|
-
} if (rf & 2) {
|
|
6992
|
-
const style_r8 = ctx.$implicit;
|
|
6993
|
-
i0.ɵɵproperty("value", style_r8);
|
|
6994
|
-
i0.ɵɵadvance();
|
|
6995
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 4, "LLM.REPHRASE_MODAL.WRITING_STYLES." + i0.ɵɵpipeBind1(2, 2, style_r8)), " ");
|
|
6996
|
-
} }
|
|
6997
|
-
function LLMTextareaWithActionsComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
6998
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
6999
|
-
i0.ɵɵelementContainerStart(0);
|
|
7000
|
-
i0.ɵɵelementStart(1, "mat-form-field", 19)(2, "mat-label");
|
|
7001
|
-
i0.ɵɵtext(3);
|
|
7002
|
-
i0.ɵɵpipe(4, "translate");
|
|
7003
|
-
i0.ɵɵelementEnd();
|
|
7004
|
-
i0.ɵɵelementStart(5, "mat-select", 20);
|
|
7005
|
-
i0.ɵɵlistener("selectionChange", function LLMTextareaWithActionsComponent_ng_container_9_Template_mat_select_selectionChange_5_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.checkRephrasedTextSaves($event)); });
|
|
7006
|
-
i0.ɵɵtemplate(6, LLMTextareaWithActionsComponent_ng_container_9_mat_option_6_Template, 4, 6, "mat-option", 21);
|
|
7007
|
-
i0.ɵɵelementEnd()();
|
|
7008
|
-
i0.ɵɵelementStart(7, "p", 22);
|
|
7009
|
-
i0.ɵɵtext(8);
|
|
7010
|
-
i0.ɵɵpipe(9, "uppercase");
|
|
7011
|
-
i0.ɵɵpipe(10, "translate");
|
|
7012
|
-
i0.ɵɵpipe(11, "translate");
|
|
7013
|
-
i0.ɵɵelementStart(12, "span", 23);
|
|
7014
|
-
i0.ɵɵpipe(13, "uppercase");
|
|
7015
|
-
i0.ɵɵpipe(14, "translate");
|
|
7016
|
-
i0.ɵɵtext(15, " info ");
|
|
7017
|
-
i0.ɵɵelementEnd()();
|
|
7018
|
-
i0.ɵɵelementContainerEnd();
|
|
7019
|
-
} if (rf & 2) {
|
|
7020
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
7021
|
-
i0.ɵɵadvance(3);
|
|
7022
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, "LLM.REPHRASE_MODAL.WRITING_STYLES.TITLE"));
|
|
7023
|
-
i0.ɵɵadvance(2);
|
|
7024
|
-
i0.ɵɵproperty("disabled", ctx_r3.isLoading)("value", ctx_r3.selectedWritingStyle);
|
|
7025
|
-
i0.ɵɵadvance();
|
|
7026
|
-
i0.ɵɵproperty("ngForOf", ctx_r3.writingStyles);
|
|
7027
|
-
i0.ɵɵadvance(2);
|
|
7028
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(11, 12, "LLM.REPHRASE_MODAL.WRITING_STYLES.SPECIFIC_STYLE", i0.ɵɵpureFunction1(19, _c0$1, i0.ɵɵpipeBind1(10, 10, "LLM.REPHRASE_MODAL.WRITING_STYLES." + i0.ɵɵpipeBind1(9, 8, ctx_r3.selectedWritingStyle)))), " ");
|
|
7029
|
-
i0.ɵɵadvance(4);
|
|
7030
|
-
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(14, 17, "LLM.REPHRASE_MODAL.WRITING_STYLES.TOOLTIP_" + i0.ɵɵpipeBind1(13, 15, ctx_r3.selectedWritingStyle)));
|
|
7031
|
-
} }
|
|
7032
|
-
function LLMTextareaWithActionsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
7033
|
-
i0.ɵɵelement(0, "div", 24);
|
|
6984
|
+
function LLMTextareaWithActionsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
6985
|
+
i0.ɵɵelement(0, "div", 18);
|
|
7034
6986
|
i0.ɵɵpipe(1, "translate");
|
|
7035
6987
|
} if (rf & 2) {
|
|
7036
6988
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
7037
|
-
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind2(1, 1, ctx_r3.localizationKey + "LIMIT", i0.ɵɵpureFunction2(4,
|
|
6989
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind2(1, 1, ctx_r3.localizationKey + "LIMIT", i0.ɵɵpureFunction2(4, _c0$1, ctx_r3.quotaLeft, ctx_r3.subscriptionUrl)), i0.ɵɵsanitizeHtml);
|
|
7038
6990
|
} }
|
|
7039
|
-
function
|
|
7040
|
-
const
|
|
7041
|
-
i0.ɵɵelementStart(0, "button",
|
|
7042
|
-
i0.ɵɵlistener("click", function
|
|
6991
|
+
function LLMTextareaWithActionsComponent_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
6992
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
6993
|
+
i0.ɵɵelementStart(0, "button", 19);
|
|
6994
|
+
i0.ɵɵlistener("click", function LLMTextareaWithActionsComponent_button_13_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.cancel()); });
|
|
7043
6995
|
i0.ɵɵtext(1);
|
|
7044
6996
|
i0.ɵɵpipe(2, "translate");
|
|
7045
6997
|
i0.ɵɵelementEnd();
|
|
@@ -7048,8 +7000,8 @@ function LLMTextareaWithActionsComponent_button_14_Template(rf, ctx) { if (rf &
|
|
|
7048
7000
|
i0.ɵɵadvance();
|
|
7049
7001
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r3.localizationKey + "CANCEL"), " ");
|
|
7050
7002
|
} }
|
|
7051
|
-
function
|
|
7052
|
-
i0.ɵɵelementStart(0, "button",
|
|
7003
|
+
function LLMTextareaWithActionsComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
7004
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
7053
7005
|
i0.ɵɵtext(1);
|
|
7054
7006
|
i0.ɵɵpipe(2, "translate");
|
|
7055
7007
|
i0.ɵɵelementEnd();
|
|
@@ -7059,7 +7011,7 @@ function LLMTextareaWithActionsComponent_ng_template_15_Template(rf, ctx) { if (
|
|
|
7059
7011
|
i0.ɵɵadvance();
|
|
7060
7012
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r3.localizationKey + "CLOSE"), " ");
|
|
7061
7013
|
} }
|
|
7062
|
-
function
|
|
7014
|
+
function LLMTextareaWithActionsComponent_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
7063
7015
|
i0.ɵɵelementStart(0, "span");
|
|
7064
7016
|
i0.ɵɵtext(1);
|
|
7065
7017
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -7069,15 +7021,15 @@ function LLMTextareaWithActionsComponent_span_18_Template(rf, ctx) { if (rf & 1)
|
|
|
7069
7021
|
i0.ɵɵadvance();
|
|
7070
7022
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, !ctx_r3.isSummarized ? "LLM.SUMMARY_MODAL.ACTION" : "LLM.SUMMARY_MODAL.REGENERATE"), " ");
|
|
7071
7023
|
} }
|
|
7072
|
-
function
|
|
7024
|
+
function LLMTextareaWithActionsComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
7073
7025
|
i0.ɵɵtext(0);
|
|
7074
7026
|
i0.ɵɵpipe(1, "translate");
|
|
7075
7027
|
} if (rf & 2) {
|
|
7076
7028
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
7077
7029
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(1, 1, ctx_r3.localizationKey + "ACTION"), " ");
|
|
7078
7030
|
} }
|
|
7079
|
-
function
|
|
7080
|
-
i0.ɵɵelement(0, "mat-spinner",
|
|
7031
|
+
function LLMTextareaWithActionsComponent_mat_spinner_20_Template(rf, ctx) { if (rf & 1) {
|
|
7032
|
+
i0.ɵɵelement(0, "mat-spinner", 21);
|
|
7081
7033
|
} if (rf & 2) {
|
|
7082
7034
|
i0.ɵɵproperty("diameter", 20);
|
|
7083
7035
|
} }
|
|
@@ -7102,17 +7054,14 @@ class LLMTextareaWithActionsComponent {
|
|
|
7102
7054
|
ngOnInit() {
|
|
7103
7055
|
this.setInitialText();
|
|
7104
7056
|
if (this.llmActionType === LLMActions.REPHRASE) {
|
|
7105
|
-
this.useCases = Object.values(LLMRephraseUseCase);
|
|
7106
|
-
this.selectedUseCase =
|
|
7057
|
+
this.useCases = this.data.rephraseUseCases ?? Object.values(LLMRephraseUseCase);
|
|
7058
|
+
this.selectedUseCase = this.useCases[0];
|
|
7107
7059
|
}
|
|
7108
7060
|
else if (this.llmActionType === LLMActions.SUMMARY) {
|
|
7109
|
-
this.useCases = Object.values(LLMSummaryUseCase);
|
|
7061
|
+
this.useCases = this.data.summaryUseCases ?? Object.values(LLMSummaryUseCase);
|
|
7110
7062
|
this.selectedUseCase = LLMSummaryUseCase.General;
|
|
7111
7063
|
}
|
|
7112
7064
|
this.showUseCase = (this.llmActionType === LLMActions.REPHRASE && this.data.showUseCaseRephrase) || (this.llmActionType === LLMActions.SUMMARY && this.data.showUseCaseSummary);
|
|
7113
|
-
if (this.data.defaultUseCase) {
|
|
7114
|
-
this.selectedUseCase = this.data.defaultUseCase;
|
|
7115
|
-
}
|
|
7116
7065
|
}
|
|
7117
7066
|
closeMessage(msg) {
|
|
7118
7067
|
const index = this.messages?.findIndex((message) => JSON.stringify(message) === JSON.stringify(msg));
|
|
@@ -7247,7 +7196,7 @@ class LLMTextareaWithActionsComponent {
|
|
|
7247
7196
|
};
|
|
7248
7197
|
}
|
|
7249
7198
|
static { this.ɵfac = function LLMTextareaWithActionsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LLMTextareaWithActionsComponent)(i0.ɵɵdirectiveInject(i1$5.LLMService), i0.ɵɵdirectiveInject(LLMHelperService), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
7250
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LLMTextareaWithActionsComponent, selectors: [["lib-llm-textarea-with-actions"]], decls:
|
|
7199
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LLMTextareaWithActionsComponent, selectors: [["lib-llm-textarea-with-actions"]], decls: 21, vars: 22, consts: [["closeButton", ""], ["rephraseAction", ""], ["mat-dialog-title", ""], ["mat-dialog-content", ""], [3, "message", "closeClicked", 4, "ngFor", "ngForOf"], ["color", "accent", "class", "w-full llm-writing-style-select", "appearance", "outline", 4, "ngIf"], [3, "textEditEvent", "copyEvent", "dislikeEvent", "text", "disabled", "actionButtonsDisabled"], ["mat-dialog-actions", "", 1, "llm-actions-wrapper"], ["class", "quota-left-message", 3, "innerHTML", 4, "ngIf"], [1, "llm-actions"], ["mat-button", "", "color", "accent", 3, "click", 4, "ngIf", "ngIfElse"], ["mat-flat-button", "", "color", "accent", 3, "click", "disabled"], [4, "ngIf", "ngIfElse"], ["color", "primary-accent-darker", 3, "diameter", 4, "ngIf"], [3, "closeClicked", "message"], ["color", "accent", "appearance", "outline", 1, "w-full", "llm-writing-style-select"], [3, "ngModelChange", "disabled", "ngModel"], [3, "value"], [1, "quota-left-message", 3, "innerHTML"], ["mat-button", "", "color", "accent", 3, "click"], ["mat-button", "", "color", "accent", 3, "mat-dialog-close"], ["color", "primary-accent-darker", 3, "diameter"]], template: function LLMTextareaWithActionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7251
7200
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
7252
7201
|
i0.ɵɵelementStart(0, "h1", 2);
|
|
7253
7202
|
i0.ɵɵtext(1);
|
|
@@ -7257,32 +7206,30 @@ class LLMTextareaWithActionsComponent {
|
|
|
7257
7206
|
i0.ɵɵtext(5);
|
|
7258
7207
|
i0.ɵɵpipe(6, "translate");
|
|
7259
7208
|
i0.ɵɵelementEnd();
|
|
7260
|
-
i0.ɵɵtemplate(7, LLMTextareaWithActionsComponent_lib_tld_notification_message_7_Template, 1, 1, "lib-tld-notification-message", 4)(8, LLMTextareaWithActionsComponent_mat_form_field_8_Template, 7, 5, "mat-form-field", 5)
|
|
7261
|
-
i0.ɵɵelementStart(
|
|
7262
|
-
i0.ɵɵlistener("textEditEvent", function
|
|
7209
|
+
i0.ɵɵtemplate(7, LLMTextareaWithActionsComponent_lib_tld_notification_message_7_Template, 1, 1, "lib-tld-notification-message", 4)(8, LLMTextareaWithActionsComponent_mat_form_field_8_Template, 7, 5, "mat-form-field", 5);
|
|
7210
|
+
i0.ɵɵelementStart(9, "lib-llm-textarea", 6);
|
|
7211
|
+
i0.ɵɵlistener("textEditEvent", function LLMTextareaWithActionsComponent_Template_lib_llm_textarea_textEditEvent_9_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.textEditEvent($event)); })("copyEvent", function LLMTextareaWithActionsComponent_Template_lib_llm_textarea_copyEvent_9_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.copyPlausibleEvent()); })("dislikeEvent", function LLMTextareaWithActionsComponent_Template_lib_llm_textarea_dislikeEvent_9_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.dislikePlausibleEvent()); });
|
|
7263
7212
|
i0.ɵɵelementEnd()();
|
|
7264
|
-
i0.ɵɵelementStart(
|
|
7265
|
-
i0.ɵɵtemplate(
|
|
7266
|
-
i0.ɵɵelementStart(
|
|
7267
|
-
i0.ɵɵtemplate(
|
|
7268
|
-
i0.ɵɵelementStart(
|
|
7269
|
-
i0.ɵɵlistener("click", function
|
|
7270
|
-
i0.ɵɵtemplate(
|
|
7213
|
+
i0.ɵɵelementStart(10, "div", 7);
|
|
7214
|
+
i0.ɵɵtemplate(11, LLMTextareaWithActionsComponent_div_11_Template, 2, 7, "div", 8);
|
|
7215
|
+
i0.ɵɵelementStart(12, "div", 9);
|
|
7216
|
+
i0.ɵɵtemplate(13, LLMTextareaWithActionsComponent_button_13_Template, 3, 3, "button", 10)(14, LLMTextareaWithActionsComponent_ng_template_14_Template, 3, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
7217
|
+
i0.ɵɵelementStart(16, "button", 11);
|
|
7218
|
+
i0.ɵɵlistener("click", function LLMTextareaWithActionsComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.getEditedText()); });
|
|
7219
|
+
i0.ɵɵtemplate(17, LLMTextareaWithActionsComponent_span_17_Template, 3, 3, "span", 12)(18, LLMTextareaWithActionsComponent_ng_template_18_Template, 2, 3, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(20, LLMTextareaWithActionsComponent_mat_spinner_20_Template, 1, 1, "mat-spinner", 13);
|
|
7271
7220
|
i0.ɵɵelementEnd()()();
|
|
7272
7221
|
} if (rf & 2) {
|
|
7273
|
-
const
|
|
7274
|
-
const
|
|
7222
|
+
const closeButton_r8 = i0.ɵɵreference(15);
|
|
7223
|
+
const rephraseAction_r9 = i0.ɵɵreference(19);
|
|
7275
7224
|
i0.ɵɵadvance();
|
|
7276
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
7225
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 18, ctx.localizationKey + "TITLE"));
|
|
7277
7226
|
i0.ɵɵadvance(4);
|
|
7278
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6,
|
|
7227
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 20, ctx.localizationKey + "DESCRIPTION"));
|
|
7279
7228
|
i0.ɵɵadvance(2);
|
|
7280
7229
|
i0.ɵɵproperty("ngForOf", ctx.messages);
|
|
7281
7230
|
i0.ɵɵadvance();
|
|
7282
7231
|
i0.ɵɵproperty("ngIf", ctx.showUseCase);
|
|
7283
7232
|
i0.ɵɵadvance();
|
|
7284
|
-
i0.ɵɵproperty("ngIf", ctx.llmActionType === ctx.llmActions.REPHRASE);
|
|
7285
|
-
i0.ɵɵadvance();
|
|
7286
7233
|
i0.ɵɵclassProp("rephrase", ctx.llmActionType === ctx.llmActions.REPHRASE);
|
|
7287
7234
|
i0.ɵɵproperty("text", ctx.editedText !== "" ? ctx.editedText : ctx.initialText)("disabled", ctx.isLoading || !ctx.quotaLeft)("actionButtonsDisabled", !ctx.isEdited);
|
|
7288
7235
|
i0.ɵɵadvance(2);
|
|
@@ -7290,18 +7237,18 @@ class LLMTextareaWithActionsComponent {
|
|
|
7290
7237
|
i0.ɵɵadvance();
|
|
7291
7238
|
i0.ɵɵclassProp("w-full", !ctx.remainingQuotaMessageVisible);
|
|
7292
7239
|
i0.ɵɵadvance();
|
|
7293
|
-
i0.ɵɵproperty("ngIf", ctx.isLoading)("ngIfElse",
|
|
7240
|
+
i0.ɵɵproperty("ngIf", ctx.isLoading)("ngIfElse", closeButton_r8);
|
|
7294
7241
|
i0.ɵɵadvance(3);
|
|
7295
7242
|
i0.ɵɵproperty("disabled", ctx.isDisabled);
|
|
7296
7243
|
i0.ɵɵadvance();
|
|
7297
|
-
i0.ɵɵproperty("ngIf", ctx.llmActionType === ctx.llmActions.SUMMARY)("ngIfElse",
|
|
7244
|
+
i0.ɵɵproperty("ngIf", ctx.llmActionType === ctx.llmActions.SUMMARY)("ngIfElse", rephraseAction_r9);
|
|
7298
7245
|
i0.ɵɵadvance(3);
|
|
7299
7246
|
i0.ɵɵproperty("ngIf", ctx.isLoading);
|
|
7300
|
-
} }, dependencies: [i1$2.NgForOf, i1$2.NgIf, i2$1.MatButton, i1$4.MatDialogClose, i1$4.MatDialogTitle, i1$4.MatDialogActions, i1$4.MatDialogContent, i4$1.NgControlStatus, i4$1.NgModel, i10.MatFormField, i10.MatLabel, i4.MatSelect, i5.MatOption, NotificationMessageComponent,
|
|
7247
|
+
} }, dependencies: [i1$2.NgForOf, i1$2.NgIf, i2$1.MatButton, i1$4.MatDialogClose, i1$4.MatDialogTitle, i1$4.MatDialogActions, i1$4.MatDialogContent, i4$1.NgControlStatus, i4$1.NgModel, i10.MatFormField, i10.MatLabel, i4.MatSelect, i5.MatOption, NotificationMessageComponent, i11.MatProgressSpinner, LLMTextareaComponent, i1$2.UpperCasePipe, i1$1.TranslatePipe], styles: [".info-icon[_ngcontent-%COMP%]{font-size:1rem;margin-left:5px}[_nghost-%COMP%] .message-body{margin:0 2.25rem 0 0!important;font-size:14px}[_nghost-%COMP%] .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}[_nghost-%COMP%] .text-container{margin-right:0!important}[_nghost-%COMP%] tld-close-button{top:1px!important} .multiline-tooltip{white-space:pre;min-width:fit-content} .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}[_nghost-%COMP%] .llm-textarea{min-height:240px!important}[_nghost-%COMP%] .rephrase .llm-textarea{min-height:100px!important}[_nghost-%COMP%] .desktop .llm-textarea{min-height:460px!important}[_nghost-%COMP%] .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select[_ngcontent-%COMP%]{margin-top:1.25rem}.llm-writing-style[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions[_ngcontent-%COMP%]{display:flex;justify-content:end}.w-full[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner[_ngcontent-%COMP%]{margin-left:.5rem}.quota-left-message[_ngcontent-%COMP%]{margin-bottom:12px}"] }); }
|
|
7301
7248
|
}
|
|
7302
7249
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LLMTextareaWithActionsComponent, [{
|
|
7303
7250
|
type: Component,
|
|
7304
|
-
args: [{ selector: 'lib-llm-textarea-with-actions', template: "<h1 mat-dialog-title>{{ localizationKey + \"TITLE\" | translate }}</h1>\r\n<div mat-dialog-content>\r\n <p>{{ localizationKey + \"DESCRIPTION\" | translate }}</p>\r\n\r\n <lib-tld-notification-message *ngFor=\"let message of messages\" [message]=\"message\" (closeClicked)=\"closeMessage(message)\"></lib-tld-notification-message>\r\n\r\n <mat-form-field *ngIf=\"showUseCase\" color=\"accent\" class=\"w-full llm-writing-style-select\" appearance=\"outline\">\r\n <mat-label>{{ 'LLM.USE_CASES_LABEL' | translate }}</mat-label>\r\n <mat-select [disabled]=\"isLoading\" [(ngModel)]=\"selectedUseCase\">\r\n @for (useCase of useCases; track $index) {\r\n\r\n <mat-option [value]=\"useCase\">\r\n {{ 'LLM.USE_CASE.' + (useCase | uppercase) | translate }}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n
|
|
7251
|
+
args: [{ selector: 'lib-llm-textarea-with-actions', template: "<h1 mat-dialog-title>{{ localizationKey + \"TITLE\" | translate }}</h1>\r\n<div mat-dialog-content>\r\n <p>{{ localizationKey + \"DESCRIPTION\" | translate }}</p>\r\n\r\n <lib-tld-notification-message *ngFor=\"let message of messages\" [message]=\"message\" (closeClicked)=\"closeMessage(message)\"></lib-tld-notification-message>\r\n\r\n <mat-form-field *ngIf=\"showUseCase\" color=\"accent\" class=\"w-full llm-writing-style-select\" appearance=\"outline\">\r\n <mat-label>{{ 'LLM.USE_CASES_LABEL' | translate }}</mat-label>\r\n <mat-select [disabled]=\"isLoading\" [(ngModel)]=\"selectedUseCase\">\r\n @for (useCase of useCases; track $index) {\r\n\r\n <mat-option [value]=\"useCase\">\r\n {{ 'LLM.USE_CASE.' + (useCase | uppercase) | translate }}\r\n </mat-option>\r\n }\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n\r\n\r\n <lib-llm-textarea [class.rephrase]=\"llmActionType === llmActions.REPHRASE\" [text]=\"editedText !== '' ? editedText : initialText\" [disabled]=\"isLoading || !quotaLeft\" [actionButtonsDisabled]=\"!isEdited\" (textEditEvent)=\"textEditEvent($event)\" (copyEvent)=\"copyPlausibleEvent()\" (dislikeEvent)=\"dislikePlausibleEvent()\"></lib-llm-textarea>\r\n</div>\r\n<div class=\"llm-actions-wrapper\" mat-dialog-actions>\r\n <div *ngIf=\"remainingQuotaMessageVisible\" class=\"quota-left-message\" [innerHTML]=\"localizationKey + 'LIMIT' | translate: { limit: quotaLeft, subscriptionUrl: subscriptionUrl }\"></div>\r\n\r\n <div [class.w-full]=\"!remainingQuotaMessageVisible\" class=\"llm-actions\">\r\n <button *ngIf=\"isLoading; else closeButton\" mat-button color=\"accent\" (click)=\"cancel()\">\r\n {{ localizationKey + \"CANCEL\" | translate }}\r\n </button>\r\n\r\n <ng-template #closeButton>\r\n <button mat-button color=\"accent\" [mat-dialog-close]=\"null\">\r\n {{ localizationKey + \"CLOSE\" | translate }}\r\n </button>\r\n </ng-template>\r\n\r\n <button\r\n mat-flat-button\r\n color=\"accent\"\r\n (click)=\"getEditedText()\"\r\n [disabled]=\"isDisabled\"\r\n >\r\n <span *ngIf=\"llmActionType === llmActions.SUMMARY; else rephraseAction\">\r\n {{\r\n (!isSummarized\r\n ? \"LLM.SUMMARY_MODAL.ACTION\"\r\n : \"LLM.SUMMARY_MODAL.REGENERATE\"\r\n ) | translate\r\n }}\r\n </span>\r\n\r\n <ng-template #rephraseAction>\r\n {{ localizationKey + \"ACTION\" | translate }}\r\n </ng-template>\r\n <mat-spinner *ngIf=\"isLoading\" [diameter]=\"20\" color=\"primary-accent-darker\"></mat-spinner>\r\n </button>\r\n </div>\r\n</div>\r\n", styles: [".info-icon{font-size:1rem;margin-left:5px}:host ::ng-deep .message-body{margin:0 2.25rem 0 0!important;font-size:14px}:host ::ng-deep .notification-message-container{margin:0 0 16px;padding:.9em 1em!important;align-items:center!important}:host ::ng-deep .text-container{margin-right:0!important}:host ::ng-deep tld-close-button{top:1px!important}::ng-deep .multiline-tooltip{white-space:pre;min-width:fit-content}::ng-deep .multiline-tooltip .mdc-tooltip__surface{max-width:none!important}:host ::ng-deep .llm-textarea{min-height:240px!important}:host ::ng-deep .rephrase .llm-textarea{min-height:100px!important}:host ::ng-deep .desktop .llm-textarea{min-height:460px!important}:host ::ng-deep .rephrase .desktop .llm-textarea{min-height:330px!important}.llm-writing-style-select{margin-top:1.25rem}.llm-writing-style{display:flex;align-items:center;margin-bottom:.25rem}.llm-actions-wrapper{display:flex;justify-content:space-between;margin:0 1rem .5rem}.llm-actions{display:flex;justify-content:end}.w-full{width:100%}:host ::ng-deep .mdc-button__label{display:flex!important;align-items:center!important}mat-spinner{margin-left:.5rem}.quota-left-message{margin-bottom:12px}\n"] }]
|
|
7305
7252
|
}], () => [{ type: i1$5.LLMService }, { type: LLMHelperService }, { type: undefined, decorators: [{
|
|
7306
7253
|
type: Inject,
|
|
7307
7254
|
args: [MAT_DIALOG_DATA]
|
|
@@ -7634,6 +7581,8 @@ class LLMComponent {
|
|
|
7634
7581
|
action: action,
|
|
7635
7582
|
showUseCaseSummary: this.showUseCaseSummary,
|
|
7636
7583
|
showUseCaseRephrase: this.showUseCaseRephrase,
|
|
7584
|
+
summaryUseCases: this.summaryUseCases,
|
|
7585
|
+
rephraseUseCases: this.rephraseUseCases,
|
|
7637
7586
|
};
|
|
7638
7587
|
this.dialog.open(LLMTextareaWithActionsComponent, {
|
|
7639
7588
|
panelClass: 'responsive-dialog',
|
|
@@ -7643,7 +7592,7 @@ class LLMComponent {
|
|
|
7643
7592
|
});
|
|
7644
7593
|
}
|
|
7645
7594
|
static { this.ɵfac = function LLMComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LLMComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(IconService), i0.ɵɵdirectiveInject(LanguageTranslateService)); }; }
|
|
7646
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LLMComponent, selectors: [["lib-llm"]], inputs: { text: "text", language: "language", rephrasableLanguagesCodeList: "rephrasableLanguagesCodeList", summaryEnabled: "summaryEnabled", rephraseEnabled: "rephraseEnabled", showUseCaseSummary: "showUseCaseSummary", showUseCaseRephrase: "showUseCaseRephrase", newFeatureLocalStorageKey: "newFeatureLocalStorageKey" }, outputs: { menuTriggerClick: "menuTriggerClick" }, decls: 3, vars: 2, consts: [[1, "llm-wrapper"], [3, "matTooltipPosition", "matTooltip", 4, "ngIf"], [3, "matTooltipPosition", "matTooltip"], [3, "openModalEvent", "isTextSummarizable", "newFeatureLocalStorageKey"], [3, "openModalEvent", "isTargetLanguageRephrasable", "newFeatureLocalStorageKey"]], template: function LLMComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7595
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LLMComponent, selectors: [["lib-llm"]], inputs: { text: "text", language: "language", rephrasableLanguagesCodeList: "rephrasableLanguagesCodeList", summaryEnabled: "summaryEnabled", rephraseEnabled: "rephraseEnabled", showUseCaseSummary: "showUseCaseSummary", showUseCaseRephrase: "showUseCaseRephrase", newFeatureLocalStorageKey: "newFeatureLocalStorageKey", rephraseUseCases: "rephraseUseCases", summaryUseCases: "summaryUseCases" }, outputs: { menuTriggerClick: "menuTriggerClick" }, decls: 3, vars: 2, consts: [[1, "llm-wrapper"], [3, "matTooltipPosition", "matTooltip", 4, "ngIf"], [3, "matTooltipPosition", "matTooltip"], [3, "openModalEvent", "isTextSummarizable", "newFeatureLocalStorageKey"], [3, "openModalEvent", "isTargetLanguageRephrasable", "newFeatureLocalStorageKey"]], template: function LLMComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7647
7596
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7648
7597
|
i0.ɵɵtemplate(1, LLMComponent_div_1_Template, 3, 6, "div", 1)(2, LLMComponent_div_2_Template, 3, 6, "div", 1);
|
|
7649
7598
|
i0.ɵɵelementEnd();
|
|
@@ -7673,10 +7622,14 @@ class LLMComponent {
|
|
|
7673
7622
|
type: Input
|
|
7674
7623
|
}], newFeatureLocalStorageKey: [{
|
|
7675
7624
|
type: Input
|
|
7625
|
+
}], rephraseUseCases: [{
|
|
7626
|
+
type: Input
|
|
7627
|
+
}], summaryUseCases: [{
|
|
7628
|
+
type: Input
|
|
7676
7629
|
}], menuTriggerClick: [{
|
|
7677
7630
|
type: Output
|
|
7678
7631
|
}] }); })();
|
|
7679
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LLMComponent, { className: "LLMComponent", filePath: "lib\\llm\\llm.component.ts", lineNumber:
|
|
7632
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LLMComponent, { className: "LLMComponent", filePath: "lib\\llm\\llm.component.ts", lineNumber: 16 }); })();
|
|
7680
7633
|
|
|
7681
7634
|
class LLMModule {
|
|
7682
7635
|
static { this.ɵfac = function LLMModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LLMModule)(); }; }
|