@datarailsshared/datarailsshared 1.6.123 → 1.6.127
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/datarailsshared-datarailsshared-1.6.127.tgz +0 -0
- package/esm2022/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.mjs +7 -5
- package/esm2022/lib/models/chat.mjs +3 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +7 -4
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/models/chat.d.ts +8 -2
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.6.123.tgz +0 -0
|
Binary file
|
|
@@ -3,6 +3,7 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
3
3
|
import { ToggleButtonMode } from './toggle-button-mode';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "../../dr-tooltip/dr-tooltip.directive";
|
|
6
7
|
function DrToggleButtonComponent_ng_container_1_div_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
7
8
|
i0.ɵɵelement(0, "i", 6);
|
|
8
9
|
} if (rf & 2) {
|
|
@@ -30,6 +31,7 @@ function DrToggleButtonComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf
|
|
|
30
31
|
const item_r1 = i0.ɵɵnextContext().$implicit;
|
|
31
32
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
32
33
|
i0.ɵɵclassProp("selected", item_r1[ctx_r2.bindValue] === ctx_r2.selectedValue || item_r1 === ctx_r2.selectedValue)("disabled", item_r1.disabled);
|
|
34
|
+
i0.ɵɵproperty("drTooltip", item_r1.tooltip);
|
|
33
35
|
i0.ɵɵattribute("data-analytics", ctx_r2.getDataAnalyticsTag(item_r1));
|
|
34
36
|
i0.ɵɵadvance(1);
|
|
35
37
|
i0.ɵɵproperty("ngIf", item_r1.icon);
|
|
@@ -38,7 +40,7 @@ function DrToggleButtonComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf
|
|
|
38
40
|
} }
|
|
39
41
|
function DrToggleButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
40
42
|
i0.ɵɵelementContainerStart(0);
|
|
41
|
-
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_div_1_Template, 3,
|
|
43
|
+
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_div_1_Template, 3, 8, "div", 2);
|
|
42
44
|
i0.ɵɵelementContainerEnd();
|
|
43
45
|
} if (rf & 2) {
|
|
44
46
|
const item_r1 = ctx.$implicit;
|
|
@@ -93,7 +95,7 @@ export class DrToggleButtonComponent {
|
|
|
93
95
|
return this.dataAnalytics + '_' + String(value).toLowerCase().replace(/ /g, '-');
|
|
94
96
|
}
|
|
95
97
|
/** @nocollapse */ static { this.ɵfac = function DrToggleButtonComponent_Factory(t) { return new (t || DrToggleButtonComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
96
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleButtonComponent, selectors: [["dr-toggle-button"]], inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", bindHidden: "bindHidden", mode: "mode", selectedValue: "selectedValue", disabled: "disabled", dataAnalytics: ["data-analytics", "dataAnalytics"] }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }])], decls: 2, vars: 4, consts: [[1, "toggle-container"], [4, "ngFor", "ngForOf"], ["class", "toggle-container__item", 3, "selected", "disabled", "click", 4, "ngIf"], [1, "toggle-container__item", 3, "click"], ["class", "toggle-container__item__icon", 3, "class", 4, "ngIf"], [4, "ngIf"], [1, "toggle-container__item__icon"]], template: function DrToggleButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
98
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleButtonComponent, selectors: [["dr-toggle-button"]], inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", bindHidden: "bindHidden", mode: "mode", selectedValue: "selectedValue", disabled: "disabled", dataAnalytics: ["data-analytics", "dataAnalytics"] }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }])], decls: 2, vars: 4, consts: [[1, "toggle-container"], [4, "ngFor", "ngForOf"], ["class", "toggle-container__item", 3, "drTooltip", "selected", "disabled", "click", 4, "ngIf"], [1, "toggle-container__item", 3, "drTooltip", "click"], ["class", "toggle-container__item__icon", 3, "class", 4, "ngIf"], [4, "ngIf"], [1, "toggle-container__item__icon"]], template: function DrToggleButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
97
99
|
i0.ɵɵelementStart(0, "div", 0);
|
|
98
100
|
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
|
|
99
101
|
i0.ɵɵelementEnd();
|
|
@@ -102,11 +104,11 @@ export class DrToggleButtonComponent {
|
|
|
102
104
|
i0.ɵɵattribute("mode", ctx.mode);
|
|
103
105
|
i0.ɵɵadvance(1);
|
|
104
106
|
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
105
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex}.toggle-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.toggle-container__item[_ngcontent-%COMP%]{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected[_ngcontent-%COMP%]{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon[_ngcontent-%COMP%]{margin-right:4px}.toggle-container[mode~=default][_ngcontent-%COMP%], .toggle-container[mode~=iconOnly][_ngcontent-%COMP%]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}"], changeDetection: 0 }); }
|
|
107
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.DrTooltipDirective], styles: ["[_nghost-%COMP%]{display:flex}.toggle-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.toggle-container__item[_ngcontent-%COMP%]{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected[_ngcontent-%COMP%]{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon[_ngcontent-%COMP%]{margin-right:4px}.toggle-container[mode~=default][_ngcontent-%COMP%], .toggle-container[mode~=iconOnly][_ngcontent-%COMP%]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}"], changeDetection: 0 }); }
|
|
106
108
|
}
|
|
107
109
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToggleButtonComponent, [{
|
|
108
110
|
type: Component,
|
|
109
|
-
args: [{ selector: 'dr-toggle-button', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toggle-container\" [class.disabled]=\"_disabled\" [attr.mode]=\"mode\">\n <ng-container *ngFor=\"let item of items\">\n <div\n *ngIf=\"item && !item[bindHidden]\"\n class=\"toggle-container__item\"\n [class.selected]=\"item[bindValue] === selectedValue || item === selectedValue\"\n [class.disabled]=\"item.disabled\"\n (click)=\"setValue(item)\"\n [attr.data-analytics]=\"getDataAnalyticsTag(item)\">\n <i *ngIf=\"item.icon\" class=\"toggle-container__item__icon\" [class]=\"item.icon\"></i>\n <ng-container *ngIf=\"mode !== ToggleButtonMode.ICON_ONLY\">\n {{ item[bindLabel] || item.name || item }}\n </ng-container>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:flex}.toggle-container{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon{margin-right:4px}.toggle-container[mode~=default],.toggle-container[mode~=iconOnly]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly] .toggle-container__item{padding:2px 8px}.toggle-container[mode~=dotted] .toggle-container__item{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=dotted] .toggle-container__item:hover .toggle-container[mode~=dotted] .toggle-container__item.selected{background:unset}.toggle-container[mode~=dotted] .toggle-container__item:first-child{margin-left:0}.toggle-container[mode~=box] .toggle-container__item{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=box] .toggle-container__item.selected{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box] .toggle-container__item:hover .toggle-container[mode~=box] .toggle-container__item.selected{background:unset}.toggle-container[mode~=box] .toggle-container__item:first-child{margin-left:0}\n"] }]
|
|
111
|
+
args: [{ selector: 'dr-toggle-button', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toggle-container\" [class.disabled]=\"_disabled\" [attr.mode]=\"mode\">\n <ng-container *ngFor=\"let item of items\">\n <div\n *ngIf=\"item && !item[bindHidden]\"\n class=\"toggle-container__item\"\n [drTooltip]=\"item.tooltip\"\n [class.selected]=\"item[bindValue] === selectedValue || item === selectedValue\"\n [class.disabled]=\"item.disabled\"\n (click)=\"setValue(item)\"\n [attr.data-analytics]=\"getDataAnalyticsTag(item)\">\n <i *ngIf=\"item.icon\" class=\"toggle-container__item__icon\" [class]=\"item.icon\"></i>\n <ng-container *ngIf=\"mode !== ToggleButtonMode.ICON_ONLY\">\n {{ item[bindLabel] || item.name || item }}\n </ng-container>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:flex}.toggle-container{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon{margin-right:4px}.toggle-container[mode~=default],.toggle-container[mode~=iconOnly]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly] .toggle-container__item{padding:2px 8px}.toggle-container[mode~=dotted] .toggle-container__item{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=dotted] .toggle-container__item:hover .toggle-container[mode~=dotted] .toggle-container__item.selected{background:unset}.toggle-container[mode~=dotted] .toggle-container__item:first-child{margin-left:0}.toggle-container[mode~=box] .toggle-container__item{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=box] .toggle-container__item.selected{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box] .toggle-container__item:hover .toggle-container[mode~=box] .toggle-container__item.selected{background:unset}.toggle-container[mode~=box] .toggle-container__item:first-child{margin-left:0}\n"] }]
|
|
110
112
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { items: [{
|
|
111
113
|
type: Input
|
|
112
114
|
}], bindLabel: [{
|
|
@@ -125,4 +127,4 @@ export class DrToggleButtonComponent {
|
|
|
125
127
|
type: Input,
|
|
126
128
|
args: [{ alias: 'data-analytics' }]
|
|
127
129
|
}] }); })();
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
130
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHItdG9nZ2xlLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhcmFpbHNzaGFyZWQvc3JjL2xpYi9kci1pbnB1dHMvZHItdG9nZ2xlLWJ1dHRvbi9kci10b2dnbGUtYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL2RyLWlucHV0cy9kci10b2dnbGUtYnV0dG9uL2RyLXRvZ2dsZS1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pHLE9BQU8sRUFBd0IsaUJBQWlCLE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ICAge3sgaXRlbVtiaW5kTGFiZWxdIHx8IGl0ZW0ubmFtZSB8fCBpdGVtIH19XG4gICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9uZy1jb250YWluZXI+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -35,6 +35,8 @@ export class ChatMessage {
|
|
|
35
35
|
this.files = obj?.files;
|
|
36
36
|
this.suggestions = obj?.suggestions;
|
|
37
37
|
this.cards = obj?.cards;
|
|
38
|
+
this.thoughts = obj?.thoughts || [];
|
|
39
|
+
this.isThinking = !!obj?.isThinking;
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL21vZGVscy9jaGF0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRyxDQUFDLFdBQVcsRUFBRSxZQUFZLEVBQUUsV0FBVyxDQUFDLENBQUM7QUFPcEUsTUFBTSxDQUFOLElBQVksaUJBVVg7QUFWRCxXQUFZLGlCQUFpQjtJQUN6QixrQ0FBYSxDQUFBO0lBQ2IsNENBQXVCLENBQUE7SUFDdkIsb0NBQWUsQ0FBQTtJQUNmLG9EQUErQixDQUFBO0lBQy9CLHNDQUFpQixDQUFBO0lBQ2pCLG9DQUFlLENBQUE7SUFDZixvQ0FBZSxDQUFBO0lBQ2Ysa0NBQWEsQ0FBQTtJQUNiLG9DQUFlLENBQUE7QUFDbkIsQ0FBQyxFQVZXLGlCQUFpQixLQUFqQixpQkFBaUIsUUFVNUI7QUFFRCxNQUFNLENBQU4sSUFBWSxR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0gb2JqPy50ZXh0IHx8IG9iai5ib2R5O1xuICAgICAgICB0aGlzLnVybCA9IG9iaj8udXJsO1xuICAgICAgICB0aGlzLmxhYmVsID0gb2JqPy5sYWJlbDtcbiAgICAgICAgdGhpcy5ib2R5ID0gb2JqPy5ib2R5O1xuICAgICAgICB0aGlzLnBhcmFtZXRlcnMgPSBvYmo/LnBhcmFtZXRlcnM7XG4gICAgICAgIHRoaXMuYXZhdGFyVXJsID0gb2JqPy5hdmF0YXJVcmwgfHwgbnVsbDtcbiAgICAgICAgdGhpcy51c2VyID0gb2JqPy51c2VyO1xuICAgICAgICB0aGlzLmZpbGVzID0gb2JqPy5maWxlcztcbiAgICAgICAgdGhpcy5zdWdnZXN0aW9ucyA9IG9iaj8uc3VnZ2VzdGlvbnM7XG4gICAgICAgIHRoaXMuY2FyZHMgPSBvYmo/LmNhcmRzO1xuICAgICAgICB0aGlzLnRob3VnaHRzID0gb2JqPy50aG91Z2h0cyB8fCBbXTtcbiAgICAgICAgdGhpcy5pc1RoaW5raW5nID0gISFvYmo/LmlzVGhpbmtpbmc7XG4gICAgfVxufVxuIl19
|
|
@@ -3593,6 +3593,7 @@ function DrToggleButtonComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf
|
|
|
3593
3593
|
const item_r1 = i0.ɵɵnextContext().$implicit;
|
|
3594
3594
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
3595
3595
|
i0.ɵɵclassProp("selected", item_r1[ctx_r2.bindValue] === ctx_r2.selectedValue || item_r1 === ctx_r2.selectedValue)("disabled", item_r1.disabled);
|
|
3596
|
+
i0.ɵɵproperty("drTooltip", item_r1.tooltip);
|
|
3596
3597
|
i0.ɵɵattribute("data-analytics", ctx_r2.getDataAnalyticsTag(item_r1));
|
|
3597
3598
|
i0.ɵɵadvance(1);
|
|
3598
3599
|
i0.ɵɵproperty("ngIf", item_r1.icon);
|
|
@@ -3601,7 +3602,7 @@ function DrToggleButtonComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf
|
|
|
3601
3602
|
} }
|
|
3602
3603
|
function DrToggleButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
3603
3604
|
i0.ɵɵelementContainerStart(0);
|
|
3604
|
-
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_div_1_Template, 3,
|
|
3605
|
+
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_div_1_Template, 3, 8, "div", 2);
|
|
3605
3606
|
i0.ɵɵelementContainerEnd();
|
|
3606
3607
|
} if (rf & 2) {
|
|
3607
3608
|
const item_r1 = ctx.$implicit;
|
|
@@ -3656,7 +3657,7 @@ class DrToggleButtonComponent {
|
|
|
3656
3657
|
return this.dataAnalytics + '_' + String(value).toLowerCase().replace(/ /g, '-');
|
|
3657
3658
|
}
|
|
3658
3659
|
/** @nocollapse */ static { this.ɵfac = function DrToggleButtonComponent_Factory(t) { return new (t || DrToggleButtonComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
3659
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleButtonComponent, selectors: [["dr-toggle-button"]], inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", bindHidden: "bindHidden", mode: "mode", selectedValue: "selectedValue", disabled: "disabled", dataAnalytics: ["data-analytics", "dataAnalytics"] }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }])], decls: 2, vars: 4, consts: [[1, "toggle-container"], [4, "ngFor", "ngForOf"], ["class", "toggle-container__item", 3, "selected", "disabled", "click", 4, "ngIf"], [1, "toggle-container__item", 3, "click"], ["class", "toggle-container__item__icon", 3, "class", 4, "ngIf"], [4, "ngIf"], [1, "toggle-container__item__icon"]], template: function DrToggleButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3660
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrToggleButtonComponent, selectors: [["dr-toggle-button"]], inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", bindHidden: "bindHidden", mode: "mode", selectedValue: "selectedValue", disabled: "disabled", dataAnalytics: ["data-analytics", "dataAnalytics"] }, features: [i0.ɵɵProvidersFeature([{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }])], decls: 2, vars: 4, consts: [[1, "toggle-container"], [4, "ngFor", "ngForOf"], ["class", "toggle-container__item", 3, "drTooltip", "selected", "disabled", "click", 4, "ngIf"], [1, "toggle-container__item", 3, "drTooltip", "click"], ["class", "toggle-container__item__icon", 3, "class", 4, "ngIf"], [4, "ngIf"], [1, "toggle-container__item__icon"]], template: function DrToggleButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3660
3661
|
i0.ɵɵelementStart(0, "div", 0);
|
|
3661
3662
|
i0.ɵɵtemplate(1, DrToggleButtonComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
|
|
3662
3663
|
i0.ɵɵelementEnd();
|
|
@@ -3665,11 +3666,11 @@ class DrToggleButtonComponent {
|
|
|
3665
3666
|
i0.ɵɵattribute("mode", ctx.mode);
|
|
3666
3667
|
i0.ɵɵadvance(1);
|
|
3667
3668
|
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
3668
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf], styles: ["[_nghost-%COMP%]{display:flex}.toggle-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.toggle-container__item[_ngcontent-%COMP%]{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected[_ngcontent-%COMP%]{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon[_ngcontent-%COMP%]{margin-right:4px}.toggle-container[mode~=default][_ngcontent-%COMP%], .toggle-container[mode~=iconOnly][_ngcontent-%COMP%]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}"], changeDetection: 0 }); }
|
|
3669
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, DrTooltipDirective], styles: ["[_nghost-%COMP%]{display:flex}.toggle-container[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled[_ngcontent-%COMP%]{pointer-events:none}.toggle-container__item[_ngcontent-%COMP%]{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected[_ngcontent-%COMP%]{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon[_ngcontent-%COMP%]{margin-right:4px}.toggle-container[mode~=default][_ngcontent-%COMP%], .toggle-container[mode~=iconOnly][_ngcontent-%COMP%]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=dotted][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover{background:#f0f1f4}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:hover .toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item.selected[_ngcontent-%COMP%]{background:unset}.toggle-container[mode~=box][_ngcontent-%COMP%] .toggle-container__item[_ngcontent-%COMP%]:first-child{margin-left:0}"], changeDetection: 0 }); }
|
|
3669
3670
|
}
|
|
3670
3671
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrToggleButtonComponent, [{
|
|
3671
3672
|
type: Component,
|
|
3672
|
-
args: [{ selector: 'dr-toggle-button', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toggle-container\" [class.disabled]=\"_disabled\" [attr.mode]=\"mode\">\n <ng-container *ngFor=\"let item of items\">\n <div\n *ngIf=\"item && !item[bindHidden]\"\n class=\"toggle-container__item\"\n [class.selected]=\"item[bindValue] === selectedValue || item === selectedValue\"\n [class.disabled]=\"item.disabled\"\n (click)=\"setValue(item)\"\n [attr.data-analytics]=\"getDataAnalyticsTag(item)\">\n <i *ngIf=\"item.icon\" class=\"toggle-container__item__icon\" [class]=\"item.icon\"></i>\n <ng-container *ngIf=\"mode !== ToggleButtonMode.ICON_ONLY\">\n {{ item[bindLabel] || item.name || item }}\n </ng-container>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:flex}.toggle-container{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon{margin-right:4px}.toggle-container[mode~=default],.toggle-container[mode~=iconOnly]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly] .toggle-container__item{padding:2px 8px}.toggle-container[mode~=dotted] .toggle-container__item{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=dotted] .toggle-container__item:hover .toggle-container[mode~=dotted] .toggle-container__item.selected{background:unset}.toggle-container[mode~=dotted] .toggle-container__item:first-child{margin-left:0}.toggle-container[mode~=box] .toggle-container__item{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=box] .toggle-container__item.selected{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box] .toggle-container__item:hover .toggle-container[mode~=box] .toggle-container__item.selected{background:unset}.toggle-container[mode~=box] .toggle-container__item:first-child{margin-left:0}\n"] }]
|
|
3673
|
+
args: [{ selector: 'dr-toggle-button', providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef((() => DrToggleButtonComponent)), multi: true }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"toggle-container\" [class.disabled]=\"_disabled\" [attr.mode]=\"mode\">\n <ng-container *ngFor=\"let item of items\">\n <div\n *ngIf=\"item && !item[bindHidden]\"\n class=\"toggle-container__item\"\n [drTooltip]=\"item.tooltip\"\n [class.selected]=\"item[bindValue] === selectedValue || item === selectedValue\"\n [class.disabled]=\"item.disabled\"\n (click)=\"setValue(item)\"\n [attr.data-analytics]=\"getDataAnalyticsTag(item)\">\n <i *ngIf=\"item.icon\" class=\"toggle-container__item__icon\" [class]=\"item.icon\"></i>\n <ng-container *ngIf=\"mode !== ToggleButtonMode.ICON_ONLY\">\n {{ item[bindLabel] || item.name || item }}\n </ng-container>\n </div>\n </ng-container>\n</div>\n", styles: [":host{display:flex}.toggle-container{display:flex;flex-wrap:nowrap;box-sizing:border-box;border-radius:20px;height:28px;font-family:Poppins,sans-serif}.toggle-container.disabled{pointer-events:none}.toggle-container__item{height:28px;display:flex;align-items:center;justify-content:center;padding:4px 16px;border-radius:20px;margin:-1px;cursor:pointer;font-weight:400;font-size:12px;line-height:20px;white-space:nowrap;color:#4e566c;box-sizing:border-box}.toggle-container__item.selected{background:#f2f2fb!important;border:1px solid #7f7fdd!important;color:#25258c!important}.toggle-container__item.disabled{pointer-events:none;cursor:default;background:#f0f1f4;color:#9ea1aa;border:1px solid #c3c4ce}.toggle-container__item__icon{margin-right:4px}.toggle-container[mode~=default],.toggle-container[mode~=iconOnly]{background:#f6f7f8;border:1px solid #c3c4ce}.toggle-container[mode~=iconOnly] .toggle-container__item{padding:2px 8px}.toggle-container[mode~=dotted] .toggle-container__item{padding:2px 8px;border:1px solid #9ea1aa;border-radius:18px;margin-left:4px;color:#0c142b}.toggle-container[mode~=dotted] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=dotted] .toggle-container__item:hover .toggle-container[mode~=dotted] .toggle-container__item.selected{background:unset}.toggle-container[mode~=dotted] .toggle-container__item:first-child{margin-left:0}.toggle-container[mode~=box] .toggle-container__item{height:40px;padding:8px 16px 8px 8px;border:1px solid #dfe0e3;border-radius:8px;margin-left:8px;color:#333;font-weight:400;font-size:14px;line-height:22px}.toggle-container[mode~=box] .toggle-container__item:hover{background:#f0f1f4}.toggle-container[mode~=box] .toggle-container__item.selected{background:#eaeaff!important;border:1px solid #dfe0e3!important;color:#333!important}.toggle-container[mode~=box] .toggle-container__item:hover .toggle-container[mode~=box] .toggle-container__item.selected{background:unset}.toggle-container[mode~=box] .toggle-container__item:first-child{margin-left:0}\n"] }]
|
|
3673
3674
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { items: [{
|
|
3674
3675
|
type: Input
|
|
3675
3676
|
}], bindLabel: [{
|
|
@@ -6553,6 +6554,8 @@ class ChatMessage {
|
|
|
6553
6554
|
this.files = obj?.files;
|
|
6554
6555
|
this.suggestions = obj?.suggestions;
|
|
6555
6556
|
this.cards = obj?.cards;
|
|
6557
|
+
this.thoughts = obj?.thoughts || [];
|
|
6558
|
+
this.isThinking = !!obj?.isThinking;
|
|
6556
6559
|
}
|
|
6557
6560
|
}
|
|
6558
6561
|
|