@evercam/ui 0.0.63-preview-disable-input-when-message-being-generated-8e9e274a2 → 0.0.63-preview-disable-input-when-message-being-generated-ec5f1ea6d
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/dist/attributes.json +5 -0
- package/dist/components/chat/EChat.vue.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -15
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tags.json +2 -1
- package/dist/web-types.json +10 -1
- package/package.json +1 -1
package/dist/attributes.json
CHANGED
|
@@ -1052,6 +1052,11 @@
|
|
|
1052
1052
|
"description": "",
|
|
1053
1053
|
"default": ""
|
|
1054
1054
|
},
|
|
1055
|
+
"EChat/disabled": {
|
|
1056
|
+
"type": "boolean",
|
|
1057
|
+
"description": "",
|
|
1058
|
+
"default": false
|
|
1059
|
+
},
|
|
1055
1060
|
"ECopyToClipboardBtn/text": {
|
|
1056
1061
|
"type": "function|string|number",
|
|
1057
1062
|
"description": ""
|
|
@@ -7,7 +7,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
7
7
|
bodyHeight: number;
|
|
8
8
|
footerHeight: number;
|
|
9
9
|
isWriting: boolean;
|
|
10
|
-
isProcessing: boolean;
|
|
11
10
|
}, {
|
|
12
11
|
sendMessage(): void;
|
|
13
12
|
onAnimationEnd(value: boolean): void;
|
|
@@ -38,5 +37,6 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
|
|
|
38
37
|
headerText: string;
|
|
39
38
|
inputPlaceholder: string;
|
|
40
39
|
loadingMessage: string;
|
|
40
|
+
disabled: boolean;
|
|
41
41
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
42
42
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1103,7 +1103,6 @@ export declare const components: {
|
|
|
1103
1103
|
bodyHeight: number;
|
|
1104
1104
|
footerHeight: number;
|
|
1105
1105
|
isWriting: boolean;
|
|
1106
|
-
isProcessing: boolean;
|
|
1107
1106
|
}, {
|
|
1108
1107
|
sendMessage(): void;
|
|
1109
1108
|
onAnimationEnd(value: boolean): void;
|
|
@@ -1134,6 +1133,7 @@ export declare const components: {
|
|
|
1134
1133
|
headerText: string;
|
|
1135
1134
|
inputPlaceholder: string;
|
|
1136
1135
|
loadingMessage: string;
|
|
1136
|
+
disabled: boolean;
|
|
1137
1137
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
|
|
1138
1138
|
EContextProvider: any;
|
|
1139
1139
|
ECopyToClipboardBtn: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, {
|
package/dist/index.mjs
CHANGED
|
@@ -16856,12 +16856,6 @@ const S4 = q.extend({
|
|
|
16856
16856
|
await this.handleNewChunks(n);
|
|
16857
16857
|
},
|
|
16858
16858
|
deep: !0
|
|
16859
|
-
},
|
|
16860
|
-
isProcessing: {
|
|
16861
|
-
immediate: !0,
|
|
16862
|
-
handler(t) {
|
|
16863
|
-
t && this.$emit("is-processing", t);
|
|
16864
|
-
}
|
|
16865
16859
|
}
|
|
16866
16860
|
},
|
|
16867
16861
|
mounted() {
|
|
@@ -17102,8 +17096,6 @@ var I4 = function() {
|
|
|
17102
17096
|
return e.$emit("animation-end");
|
|
17103
17097
|
}, "animation-start": function(n) {
|
|
17104
17098
|
return e.$emit("animation-start");
|
|
17105
|
-
}, "is-processing": function(n) {
|
|
17106
|
-
return e.$emit("is-processing", n);
|
|
17107
17099
|
} }, scopedSlots: e._u([{ key: "timestamp", fn: function({ timestamp: n }) {
|
|
17108
17100
|
return [e._t("timestamp", function() {
|
|
17109
17101
|
return [e._v(e._s(n))];
|
|
@@ -17356,6 +17348,10 @@ const Y4 = q4.exports, V4 = q.extend({
|
|
|
17356
17348
|
loadingMessage: {
|
|
17357
17349
|
type: String,
|
|
17358
17350
|
default: ""
|
|
17351
|
+
},
|
|
17352
|
+
disabled: {
|
|
17353
|
+
type: Boolean,
|
|
17354
|
+
default: !1
|
|
17359
17355
|
}
|
|
17360
17356
|
},
|
|
17361
17357
|
data() {
|
|
@@ -17365,13 +17361,12 @@ const Y4 = q4.exports, V4 = q.extend({
|
|
|
17365
17361
|
headerHeight: 0,
|
|
17366
17362
|
bodyHeight: 0,
|
|
17367
17363
|
footerHeight: 0,
|
|
17368
|
-
isWriting: !1
|
|
17369
|
-
isProcessing: !1
|
|
17364
|
+
isWriting: !1
|
|
17370
17365
|
};
|
|
17371
17366
|
},
|
|
17372
17367
|
computed: {
|
|
17373
17368
|
isInputDisabled() {
|
|
17374
|
-
return this.readonly || this.isWriting || this.isLoading || this.
|
|
17369
|
+
return this.readonly || this.isWriting || this.isLoading || this.disabled;
|
|
17375
17370
|
},
|
|
17376
17371
|
ChatMessageRole() {
|
|
17377
17372
|
return Xe;
|
|
@@ -17462,9 +17457,7 @@ var X4 = function() {
|
|
|
17462
17457
|
return [e._v(e._s(l))];
|
|
17463
17458
|
}, { timestamp: l })];
|
|
17464
17459
|
} }], null, !0) });
|
|
17465
|
-
}), e.isLoading ? r("EChatMessage", { attrs: { "is-loading": "", "loading-message": e.loadingMessage, "data-message-id": -1, "show-avatar": e.showCopilotAvatar, role: e.ChatMessageRole.COPILOT, dark: e.dark }, on: { "
|
|
17466
|
-
e.isProcessing = n;
|
|
17467
|
-
} } }) : e._e()], 2), r("EChatFooter", { directives: [{ name: "show", rawName: "v-show", value: !e.readonly, expression: "!readonly" }], ref: "chatFooter", attrs: { dark: e.dark, inline: e.inlineFooter } }, [r("EChatInput", { attrs: { dark: e.dark, disabled: e.isInputDisabled, placeholder: e.inputPlaceholder }, on: { "prompt-changed": function(n) {
|
|
17460
|
+
}), e.isLoading ? r("EChatMessage", { attrs: { "is-loading": "", "loading-message": e.loadingMessage, "data-message-id": -1, "show-avatar": e.showCopilotAvatar, role: e.ChatMessageRole.COPILOT, dark: e.dark } }) : e._e()], 2), r("EChatFooter", { directives: [{ name: "show", rawName: "v-show", value: !e.readonly, expression: "!readonly" }], ref: "chatFooter", attrs: { dark: e.dark, inline: e.inlineFooter } }, [r("EChatInput", { attrs: { dark: e.dark, disabled: e.isInputDisabled, placeholder: e.inputPlaceholder }, on: { "prompt-changed": function(n) {
|
|
17468
17461
|
return e.$emit("prompt-changed", n);
|
|
17469
17462
|
}, submit: e.sendMessage }, model: { value: e.prompt, callback: function(n) {
|
|
17470
17463
|
e.prompt = n;
|
|
@@ -17475,7 +17468,7 @@ var X4 = function() {
|
|
|
17475
17468
|
Q4,
|
|
17476
17469
|
!1,
|
|
17477
17470
|
null,
|
|
17478
|
-
"
|
|
17471
|
+
"17a3987e",
|
|
17479
17472
|
null,
|
|
17480
17473
|
null
|
|
17481
17474
|
);
|