@carbon/ai-chat-components 0.8.0 → 0.9.0-rc.0
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/README.md +1 -0
- package/custom-elements.json +894 -253
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-shell/index.d.ts +2 -2
- package/es/components/chat-shell/index.js +2 -2
- package/es/components/chat-shell/src/{cds-aichat-panel.d.ts → panel.d.ts} +11 -2
- package/es/components/chat-shell/src/{cds-aichat-panel.js → panel.js} +79 -26
- package/es/components/chat-shell/src/panel.js.map +1 -0
- package/es/components/chat-shell/src/panel.scss.js +13 -0
- package/es/components/chat-shell/src/panel.scss.js.map +1 -0
- package/es/components/chat-shell/src/{cds-aichat-shell.d.ts → shell.d.ts} +19 -3
- package/es/components/chat-shell/src/{cds-aichat-shell.js → shell.js} +249 -93
- package/es/components/chat-shell/src/shell.js.map +1 -0
- package/es/components/chat-shell/src/shell.scss.js +13 -0
- package/es/components/chat-shell/src/shell.scss.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +90 -0
- package/es/components/chat-shell/src/workspace-manager-utils.js +120 -0
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -0
- package/es/components/chat-shell/src/workspace-manager.d.ts +52 -8
- package/es/components/chat-shell/src/workspace-manager.js +330 -117
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.d.ts +27 -11
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/markdown/src/markdown.js +1 -1
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +4 -0
- package/es/components/toolbar/src/toolbar.js +62 -28
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.js +6 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +0 -1
- package/es/components/workspace-shell/src/workspace-shell.js +0 -6
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/chat-shell.d.ts +3 -3
- package/es/react/chat-shell.js +4 -4
- package/es/react/chat-shell.js.map +1 -1
- package/es/react/panel.d.ts +3 -3
- package/es/react/panel.js +5 -4
- package/es/react/panel.js.map +1 -1
- package/es/react/toolbar.js +1 -1
- package/es/react/toolbar.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-shell/index.d.ts +2 -2
- package/es-custom/components/chat-shell/index.js +2 -2
- package/es-custom/components/chat-shell/src/{cds-aichat-panel.d.ts → panel.d.ts} +11 -2
- package/es-custom/components/chat-shell/src/{cds-aichat-panel.js → panel.js} +79 -26
- package/es-custom/components/chat-shell/src/panel.js.map +1 -0
- package/es-custom/components/chat-shell/src/panel.scss.js +13 -0
- package/es-custom/components/chat-shell/src/panel.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/{cds-aichat-shell.d.ts → shell.d.ts} +19 -3
- package/es-custom/components/chat-shell/src/{cds-aichat-shell.js → shell.js} +249 -93
- package/es-custom/components/chat-shell/src/shell.js.map +1 -0
- package/es-custom/components/chat-shell/src/shell.scss.js +13 -0
- package/es-custom/components/chat-shell/src/shell.scss.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +90 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +120 -0
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -0
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +52 -8
- package/es-custom/components/chat-shell/src/workspace-manager.js +330 -117
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +27 -11
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/markdown/src/markdown.js +1 -1
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +4 -0
- package/es-custom/components/toolbar/src/toolbar.js +62 -28
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +6 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +0 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +0 -6
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es-custom/react/chat-shell.d.ts +3 -3
- package/es-custom/react/chat-shell.js +4 -4
- package/es-custom/react/chat-shell.js.map +1 -1
- package/es-custom/react/panel.d.ts +3 -3
- package/es-custom/react/panel.js +5 -4
- package/es-custom/react/panel.js.map +1 -1
- package/es-custom/react/toolbar.js +1 -1
- package/es-custom/react/toolbar.js.map +1 -1
- package/package.json +13 -10
- package/es/components/chat-shell/src/cds-aichat-panel.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js +0 -13
- package/es/components/chat-shell/src/cds-aichat-panel.scss.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-shell.js.map +0 -1
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js +0 -13
- package/es/components/chat-shell/src/cds-aichat-shell.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-panel.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js +0 -13
- package/es-custom/components/chat-shell/src/cds-aichat-panel.scss.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-shell.js.map +0 -1
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js +0 -13
- package/es-custom/components/chat-shell/src/cds-aichat-shell.scss.js.map +0 -1
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
import { __decorate } from 'tslib';
|
|
9
9
|
import { LitElement, nothing, html } from 'lit';
|
|
10
10
|
import { property } from 'lit/decorators.js';
|
|
11
|
-
import styles from './
|
|
11
|
+
import styles from './shell.scss.js';
|
|
12
12
|
import { PanelManager } from './panel-manager.js';
|
|
13
13
|
import { WorkspaceManager } from './workspace-manager.js';
|
|
14
14
|
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
15
|
-
import './
|
|
15
|
+
import './panel.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @license
|
|
@@ -22,8 +22,8 @@ import './cds-aichat-panel.js';
|
|
|
22
22
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
var
|
|
26
|
-
let
|
|
25
|
+
var CDSAIChatShell_1;
|
|
26
|
+
let CDSAIChatShell = CDSAIChatShell_1 = class CDSAIChatShell extends LitElement {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(...arguments);
|
|
29
29
|
/**
|
|
@@ -55,17 +55,25 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
55
55
|
*/
|
|
56
56
|
this.historyLocation = "start";
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* ARIA label for the workspace region
|
|
59
59
|
*/
|
|
60
|
-
this.
|
|
60
|
+
this.workspaceAriaLabel = "Workspace panel";
|
|
61
|
+
/**
|
|
62
|
+
* ARIA label for the history region
|
|
63
|
+
*/
|
|
64
|
+
this.historyAriaLabel = "Conversation history";
|
|
65
|
+
/**
|
|
66
|
+
* ARIA label for the messages region
|
|
67
|
+
*/
|
|
68
|
+
this.messagesAriaLabel = "Chat messages";
|
|
61
69
|
/**
|
|
62
70
|
* @internal
|
|
63
71
|
*/
|
|
64
|
-
this.
|
|
72
|
+
this.hasHeaderContent = false;
|
|
65
73
|
/**
|
|
66
74
|
* @internal
|
|
67
75
|
*/
|
|
68
|
-
this.
|
|
76
|
+
this.hasHeaderAfterContent = false;
|
|
69
77
|
/**
|
|
70
78
|
* @internal
|
|
71
79
|
*/
|
|
@@ -85,15 +93,55 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
85
93
|
/**
|
|
86
94
|
* @internal
|
|
87
95
|
*/
|
|
88
|
-
this.
|
|
96
|
+
this.inputAndMessagesAtMaxWidth = false;
|
|
89
97
|
/**
|
|
90
98
|
* @internal
|
|
91
99
|
*/
|
|
92
|
-
this.
|
|
100
|
+
this.shouldRenderHistory = true;
|
|
93
101
|
/**
|
|
94
102
|
* @internal
|
|
95
103
|
*/
|
|
96
|
-
this.
|
|
104
|
+
this.workspacePanelRendering = false;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
this.workspacePanelOpen = false;
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
this.lastShouldRenderWorkspacePanel = false;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
this.workspacePanelOpenScheduled = false;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
this.workspacePanelOpenRafId = null;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
this.lastWorkspaceInPanel = false;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
this.lastWorkspaceContainerVisible = false;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
this.suppressWorkspacePanelOpenAnimation = false;
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
*/
|
|
136
|
+
this.suppressWorkspacePanelCloseAnimation = false;
|
|
137
|
+
this.handleWorkspacePanelCloseEnd = () => {
|
|
138
|
+
if (this.workspaceManager?.shouldRenderPanel()) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
this.workspacePanelRendering = false;
|
|
142
|
+
this.suppressWorkspacePanelCloseAnimation = false;
|
|
143
|
+
this.requestUpdate();
|
|
144
|
+
};
|
|
97
145
|
}
|
|
98
146
|
getWidgetClasses() {
|
|
99
147
|
const workspaceState = this.workspaceManager?.getState();
|
|
@@ -106,6 +154,7 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
106
154
|
? "has-header-content"
|
|
107
155
|
: "",
|
|
108
156
|
this.hasFooterContent ? "has-footer-content" : "",
|
|
157
|
+
workspaceState?.isCheckingExpansion ? "workspace-checking" : "",
|
|
109
158
|
workspaceState?.isContracting ? "workspace-closing" : "",
|
|
110
159
|
workspaceState?.isExpanding ? "workspace-opening" : "",
|
|
111
160
|
]
|
|
@@ -115,8 +164,6 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
115
164
|
getInputAndMessagesClasses() {
|
|
116
165
|
return [
|
|
117
166
|
"input-and-messages",
|
|
118
|
-
this.hasMessagesBeforeContent ? "has-messages-before-content" : "",
|
|
119
|
-
this.hasMessagesAfterContent ? "has-messages-after-content" : "",
|
|
120
167
|
this.hasInputBeforeContent ? "has-input-before-content" : "",
|
|
121
168
|
this.hasInputContent ? "has-input-content" : "",
|
|
122
169
|
this.hasInputAfterContent ? "has-input-after-content" : "",
|
|
@@ -146,8 +193,6 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
146
193
|
return this.hasHeaderContent;
|
|
147
194
|
case "header-after":
|
|
148
195
|
return this.hasHeaderAfterContent;
|
|
149
|
-
case "messages-before":
|
|
150
|
-
return this.hasMessagesBeforeContent;
|
|
151
196
|
case "footer":
|
|
152
197
|
return this.hasFooterContent;
|
|
153
198
|
case "input-after":
|
|
@@ -156,8 +201,6 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
156
201
|
return this.hasInputContent;
|
|
157
202
|
case "input-before":
|
|
158
203
|
return this.hasInputBeforeContent;
|
|
159
|
-
case "messages-after":
|
|
160
|
-
return this.hasMessagesAfterContent;
|
|
161
204
|
case "messages":
|
|
162
205
|
return true; // messages slot is always considered to have content
|
|
163
206
|
default:
|
|
@@ -165,13 +208,20 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
165
208
|
}
|
|
166
209
|
}
|
|
167
210
|
renderWorkspaceInline() {
|
|
168
|
-
const
|
|
169
|
-
|
|
211
|
+
const shouldRenderInline = this.workspaceManager?.shouldRenderInline() ?? false;
|
|
212
|
+
const shouldSuppressInline = this.workspacePanelRendering && !this.workspacePanelOpen;
|
|
213
|
+
if (!shouldRenderInline || shouldSuppressInline) {
|
|
170
214
|
return nothing;
|
|
171
215
|
}
|
|
172
216
|
const workspaceState = this.workspaceManager?.getState();
|
|
173
217
|
return html `
|
|
174
|
-
<div
|
|
218
|
+
<div
|
|
219
|
+
class="workspace"
|
|
220
|
+
part="slot-workspace"
|
|
221
|
+
data-panel-slot="workspace"
|
|
222
|
+
role="region"
|
|
223
|
+
aria-label=${this.workspaceAriaLabel}
|
|
224
|
+
>
|
|
175
225
|
<div
|
|
176
226
|
class=${workspaceState?.contentVisible
|
|
177
227
|
? "workspace-content"
|
|
@@ -184,19 +234,26 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
184
234
|
`;
|
|
185
235
|
}
|
|
186
236
|
renderWorkspacePanel() {
|
|
187
|
-
|
|
188
|
-
if (!shouldRender) {
|
|
237
|
+
if (!this.workspacePanelRendering) {
|
|
189
238
|
return nothing;
|
|
190
239
|
}
|
|
240
|
+
// When switching from container to panel view, don't animate
|
|
241
|
+
// Only animate when opening from closed state
|
|
242
|
+
const animationOnOpen = this.suppressWorkspacePanelOpenAnimation
|
|
243
|
+
? "none"
|
|
244
|
+
: "slide-in-from-bottom";
|
|
191
245
|
return html `
|
|
192
246
|
<cds-aichat-panel
|
|
193
247
|
data-internal-panel
|
|
194
|
-
open
|
|
195
|
-
priority="0"
|
|
248
|
+
?open=${this.workspacePanelOpen}
|
|
196
249
|
full-width
|
|
197
250
|
show-chat-header
|
|
198
|
-
|
|
199
|
-
animation-on-
|
|
251
|
+
body-no-padding
|
|
252
|
+
animation-on-open=${animationOnOpen}
|
|
253
|
+
animation-on-close=${this.suppressWorkspacePanelCloseAnimation
|
|
254
|
+
? "none"
|
|
255
|
+
: "slide-out-to-bottom"}
|
|
256
|
+
@closeend=${this.handleWorkspacePanelCloseEnd}
|
|
200
257
|
>
|
|
201
258
|
<div slot="body" class="workspace-slot">
|
|
202
259
|
<slot name="workspace"></slot>
|
|
@@ -229,13 +286,15 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
229
286
|
}
|
|
230
287
|
renderMessagesSection() {
|
|
231
288
|
return html `
|
|
232
|
-
<div
|
|
233
|
-
|
|
289
|
+
<div
|
|
290
|
+
class=${this.getInputAndMessagesClasses()}
|
|
291
|
+
role="region"
|
|
292
|
+
aria-label=${this.messagesAriaLabel}
|
|
293
|
+
>
|
|
234
294
|
${this.renderSlot("messages", "messages")}
|
|
235
|
-
${this.renderSlot("
|
|
236
|
-
${this.renderSlot("input
|
|
237
|
-
${this.renderSlot("input", "input")}
|
|
238
|
-
${this.renderSlot("input-after", "input-after")}
|
|
295
|
+
${this.renderSlot("input-before", "input-before messages-max-width")}
|
|
296
|
+
${this.renderSlot("input", "input messages-max-width")}
|
|
297
|
+
${this.renderSlot("input-after", "input-after messages-max-width")}
|
|
239
298
|
</div>
|
|
240
299
|
`;
|
|
241
300
|
}
|
|
@@ -243,7 +302,11 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
243
302
|
if (!this.showHistory || !this.shouldRenderHistory) {
|
|
244
303
|
return nothing;
|
|
245
304
|
}
|
|
246
|
-
return html `<div
|
|
305
|
+
return html `<div
|
|
306
|
+
class="history"
|
|
307
|
+
role="region"
|
|
308
|
+
aria-label=${this.historyAriaLabel}
|
|
309
|
+
>
|
|
247
310
|
${this.renderSlot("history", "history")}
|
|
248
311
|
</div>`;
|
|
249
312
|
}
|
|
@@ -291,6 +354,7 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
291
354
|
this.observeMainContentBodyWidth();
|
|
292
355
|
this.observeSlotContent();
|
|
293
356
|
this.observeCssProperties();
|
|
357
|
+
this.syncWorkspacePanelState();
|
|
294
358
|
}
|
|
295
359
|
hasSlotContent(slotName) {
|
|
296
360
|
const slot = this.renderRoot.querySelector(`slot[name="${slotName}"]`);
|
|
@@ -304,14 +368,14 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
304
368
|
}
|
|
305
369
|
observeSlotContent() {
|
|
306
370
|
const updateSlotStates = () => {
|
|
307
|
-
const previousStates = new Map(
|
|
371
|
+
const previousStates = new Map(CDSAIChatShell_1.OBSERVED_SLOTS.map(({ stateKey }) => [
|
|
308
372
|
stateKey,
|
|
309
373
|
this[stateKey],
|
|
310
374
|
]));
|
|
311
|
-
|
|
375
|
+
CDSAIChatShell_1.OBSERVED_SLOTS.forEach(({ name, stateKey }) => {
|
|
312
376
|
this[stateKey] = this.hasSlotContent(name);
|
|
313
377
|
});
|
|
314
|
-
const hasChanged =
|
|
378
|
+
const hasChanged = CDSAIChatShell_1.OBSERVED_SLOTS.some(({ stateKey }) => previousStates.get(stateKey) !== this[stateKey]);
|
|
315
379
|
if (hasChanged) {
|
|
316
380
|
this.requestUpdate();
|
|
317
381
|
}
|
|
@@ -319,7 +383,7 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
319
383
|
// Initial check
|
|
320
384
|
updateSlotStates();
|
|
321
385
|
// Observe slot changes
|
|
322
|
-
const slots =
|
|
386
|
+
const slots = CDSAIChatShell_1.OBSERVED_SLOTS.map(({ name }) => this.renderRoot.querySelector(`slot[name="${name}"]`)).filter((slot) => slot !== null);
|
|
323
387
|
slots.forEach((slot) => {
|
|
324
388
|
slot.addEventListener("slotchange", updateSlotStates);
|
|
325
389
|
});
|
|
@@ -337,6 +401,7 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
337
401
|
roundedCorners: this.roundedCorners,
|
|
338
402
|
});
|
|
339
403
|
}
|
|
404
|
+
this.syncWorkspacePanelState();
|
|
340
405
|
this.panelManager?.refresh();
|
|
341
406
|
}
|
|
342
407
|
disconnectedCallback() {
|
|
@@ -346,6 +411,7 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
346
411
|
this.inputAndMessagesResizeObserver?.disconnect();
|
|
347
412
|
this.mainContentBodyResizeObserver?.disconnect();
|
|
348
413
|
this.cssPropertyObserver?.disconnect();
|
|
414
|
+
this.cancelWorkspacePanelOpenSchedule();
|
|
349
415
|
super.disconnectedCallback();
|
|
350
416
|
}
|
|
351
417
|
observeInputAndMessagesWidth() {
|
|
@@ -368,20 +434,23 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
368
434
|
updateAtMaxWidth(rect.width);
|
|
369
435
|
};
|
|
370
436
|
this.inputAndMessagesResizeObserver = new ResizeObserver((entries) => {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
437
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
438
|
+
requestAnimationFrame(() => {
|
|
439
|
+
for (const entry of entries) {
|
|
440
|
+
if (entry.target !== this) {
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
const borderBoxSize = Array.isArray(entry.borderBoxSize)
|
|
444
|
+
? entry.borderBoxSize[0]
|
|
445
|
+
: entry.borderBoxSize;
|
|
446
|
+
if (borderBoxSize?.inlineSize) {
|
|
447
|
+
updateAtMaxWidth(borderBoxSize.inlineSize);
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
updateAtMaxWidth(entry.contentRect.width);
|
|
451
|
+
}
|
|
383
452
|
}
|
|
384
|
-
}
|
|
453
|
+
});
|
|
385
454
|
});
|
|
386
455
|
this.inputAndMessagesResizeObserver.observe(this);
|
|
387
456
|
measure();
|
|
@@ -405,20 +474,23 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
405
474
|
}
|
|
406
475
|
};
|
|
407
476
|
this.mainContentBodyResizeObserver = new ResizeObserver((entries) => {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
477
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
478
|
+
requestAnimationFrame(() => {
|
|
479
|
+
for (const entry of entries) {
|
|
480
|
+
if (entry.target !== mainContentBody) {
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
483
|
+
const borderBoxSize = Array.isArray(entry.borderBoxSize)
|
|
484
|
+
? entry.borderBoxSize[0]
|
|
485
|
+
: entry.borderBoxSize;
|
|
486
|
+
if (borderBoxSize?.inlineSize) {
|
|
487
|
+
updateHistoryVisibility(borderBoxSize.inlineSize);
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
updateHistoryVisibility(entry.contentRect.width);
|
|
491
|
+
}
|
|
417
492
|
}
|
|
418
|
-
|
|
419
|
-
updateHistoryVisibility(entry.contentRect.width);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
493
|
+
});
|
|
422
494
|
});
|
|
423
495
|
this.mainContentBodyResizeObserver.observe(mainContentBody);
|
|
424
496
|
// Initial measurement
|
|
@@ -449,27 +521,30 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
449
521
|
return;
|
|
450
522
|
}
|
|
451
523
|
const updateHeight = (height) => {
|
|
452
|
-
this.style.setProperty("--cds-aichat
|
|
524
|
+
this.style.setProperty("--cds-aichat-header-height", `${height}px`);
|
|
453
525
|
};
|
|
454
526
|
const measure = () => {
|
|
455
527
|
const rect = headerWrapper.getBoundingClientRect();
|
|
456
528
|
updateHeight(rect.height);
|
|
457
529
|
};
|
|
458
530
|
this.headerResizeObserver = new ResizeObserver((entries) => {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
531
|
+
// Use requestAnimationFrame to avoid ResizeObserver loop errors
|
|
532
|
+
requestAnimationFrame(() => {
|
|
533
|
+
for (const entry of entries) {
|
|
534
|
+
if (entry.target !== headerWrapper) {
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
537
|
+
const borderBoxSize = Array.isArray(entry.borderBoxSize)
|
|
538
|
+
? entry.borderBoxSize[0]
|
|
539
|
+
: entry.borderBoxSize;
|
|
540
|
+
if (borderBoxSize?.blockSize) {
|
|
541
|
+
updateHeight(borderBoxSize.blockSize);
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
updateHeight(entry.contentRect.height);
|
|
545
|
+
}
|
|
471
546
|
}
|
|
472
|
-
}
|
|
547
|
+
});
|
|
473
548
|
});
|
|
474
549
|
this.headerResizeObserver.observe(headerWrapper);
|
|
475
550
|
measure();
|
|
@@ -509,46 +584,127 @@ let CdsAiChatShell = CdsAiChatShell_1 = class CdsAiChatShell extends LitElement
|
|
|
509
584
|
}
|
|
510
585
|
}
|
|
511
586
|
}
|
|
587
|
+
syncWorkspacePanelState() {
|
|
588
|
+
const shouldRenderPanel = this.workspaceManager?.shouldRenderPanel() ?? false;
|
|
589
|
+
const workspaceState = this.workspaceManager?.getState();
|
|
590
|
+
if (shouldRenderPanel && !this.lastShouldRenderWorkspacePanel) {
|
|
591
|
+
// Suppress animation when switching from inline container to panel
|
|
592
|
+
// (workspace was visible inline and now moving to panel)
|
|
593
|
+
const shouldSuppressAnimation = !this.lastWorkspaceInPanel && this.lastWorkspaceContainerVisible;
|
|
594
|
+
// IMPORTANT: Set the flag BEFORE updating state that triggers render
|
|
595
|
+
this.suppressWorkspacePanelOpenAnimation = shouldSuppressAnimation;
|
|
596
|
+
// Now update the state
|
|
597
|
+
this.workspacePanelRendering = true;
|
|
598
|
+
this.workspacePanelOpen = false;
|
|
599
|
+
this.cancelWorkspacePanelOpenSchedule();
|
|
600
|
+
// Request update to render the panel with the correct animation attribute
|
|
601
|
+
this.requestUpdate();
|
|
602
|
+
// Schedule opening after the panel is rendered
|
|
603
|
+
this.scheduleWorkspacePanelOpen();
|
|
604
|
+
}
|
|
605
|
+
else if (!shouldRenderPanel && this.lastShouldRenderWorkspacePanel) {
|
|
606
|
+
// Suppress animation when switching from panel to inline container
|
|
607
|
+
// (workspace was in panel and now moving to inline)
|
|
608
|
+
const shouldSuppressAnimation = this.lastWorkspaceInPanel &&
|
|
609
|
+
(workspaceState?.containerVisible ?? false);
|
|
610
|
+
console.log("[syncWorkspacePanelState] CLOSING PANEL", {
|
|
611
|
+
shouldSuppressAnimation,
|
|
612
|
+
});
|
|
613
|
+
this.suppressWorkspacePanelCloseAnimation = shouldSuppressAnimation;
|
|
614
|
+
this.cancelWorkspacePanelOpenSchedule();
|
|
615
|
+
if (this.workspacePanelOpen) {
|
|
616
|
+
this.workspacePanelOpen = false;
|
|
617
|
+
this.requestUpdate();
|
|
618
|
+
}
|
|
619
|
+
else {
|
|
620
|
+
this.workspacePanelRendering = false;
|
|
621
|
+
this.requestUpdate();
|
|
622
|
+
}
|
|
623
|
+
this.suppressWorkspacePanelOpenAnimation = false;
|
|
624
|
+
}
|
|
625
|
+
this.lastShouldRenderWorkspacePanel = shouldRenderPanel;
|
|
626
|
+
this.lastWorkspaceInPanel = workspaceState?.inPanel ?? false;
|
|
627
|
+
this.lastWorkspaceContainerVisible =
|
|
628
|
+
workspaceState?.containerVisible ?? false;
|
|
629
|
+
}
|
|
630
|
+
scheduleWorkspacePanelOpen() {
|
|
631
|
+
if (this.workspacePanelOpenScheduled) {
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
this.workspacePanelOpenScheduled = true;
|
|
635
|
+
if (typeof window === "undefined") {
|
|
636
|
+
this.workspacePanelOpenScheduled = false;
|
|
637
|
+
this.workspacePanelOpen = true;
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
// Use double RAF to ensure the panel element is fully rendered with correct attributes
|
|
641
|
+
this.workspacePanelOpenRafId = window.requestAnimationFrame(() => {
|
|
642
|
+
this.workspacePanelOpenRafId = window.requestAnimationFrame(() => {
|
|
643
|
+
this.workspacePanelOpenRafId = null;
|
|
644
|
+
this.workspacePanelOpenScheduled = false;
|
|
645
|
+
if (!this.workspaceManager?.shouldRenderPanel()) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
this.workspacePanelOpen = true;
|
|
649
|
+
this.requestUpdate();
|
|
650
|
+
});
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
cancelWorkspacePanelOpenSchedule() {
|
|
654
|
+
if (this.workspacePanelOpenRafId !== null &&
|
|
655
|
+
typeof window !== "undefined") {
|
|
656
|
+
window.cancelAnimationFrame(this.workspacePanelOpenRafId);
|
|
657
|
+
}
|
|
658
|
+
this.workspacePanelOpenRafId = null;
|
|
659
|
+
this.workspacePanelOpenScheduled = false;
|
|
660
|
+
}
|
|
512
661
|
};
|
|
513
|
-
|
|
662
|
+
CDSAIChatShell.styles = styles;
|
|
514
663
|
/**
|
|
515
664
|
* @internal
|
|
516
665
|
*/
|
|
517
|
-
|
|
666
|
+
CDSAIChatShell.OBSERVED_SLOTS = [
|
|
518
667
|
{ name: "header", stateKey: "hasHeaderContent" },
|
|
519
668
|
{ name: "header-after", stateKey: "hasHeaderAfterContent" },
|
|
520
|
-
{ name: "messages-before", stateKey: "hasMessagesBeforeContent" },
|
|
521
669
|
{ name: "footer", stateKey: "hasFooterContent" },
|
|
522
670
|
{ name: "input-after", stateKey: "hasInputAfterContent" },
|
|
523
671
|
{ name: "input", stateKey: "hasInputContent" },
|
|
524
672
|
{ name: "input-before", stateKey: "hasInputBeforeContent" },
|
|
525
|
-
{ name: "messages-after", stateKey: "hasMessagesAfterContent" },
|
|
526
673
|
];
|
|
527
674
|
__decorate([
|
|
528
675
|
property({ type: Boolean, attribute: "ai-enabled", reflect: true })
|
|
529
|
-
],
|
|
676
|
+
], CDSAIChatShell.prototype, "aiEnabled", void 0);
|
|
530
677
|
__decorate([
|
|
531
678
|
property({ type: Boolean, attribute: "show-frame", reflect: true })
|
|
532
|
-
],
|
|
679
|
+
], CDSAIChatShell.prototype, "showFrame", void 0);
|
|
533
680
|
__decorate([
|
|
534
681
|
property({ type: Boolean, attribute: "rounded-corners", reflect: true })
|
|
535
|
-
],
|
|
682
|
+
], CDSAIChatShell.prototype, "roundedCorners", void 0);
|
|
536
683
|
__decorate([
|
|
537
684
|
property({ type: Boolean, attribute: "show-history", reflect: true })
|
|
538
|
-
],
|
|
685
|
+
], CDSAIChatShell.prototype, "showHistory", void 0);
|
|
539
686
|
__decorate([
|
|
540
687
|
property({ type: Boolean, attribute: "show-workspace", reflect: true })
|
|
541
|
-
],
|
|
688
|
+
], CDSAIChatShell.prototype, "showWorkspace", void 0);
|
|
542
689
|
__decorate([
|
|
543
690
|
property({ type: String, attribute: "workspace-location", reflect: true })
|
|
544
|
-
],
|
|
691
|
+
], CDSAIChatShell.prototype, "workspaceLocation", void 0);
|
|
545
692
|
__decorate([
|
|
546
693
|
property({ type: String, attribute: "history-location", reflect: true })
|
|
547
|
-
],
|
|
548
|
-
|
|
694
|
+
], CDSAIChatShell.prototype, "historyLocation", void 0);
|
|
695
|
+
__decorate([
|
|
696
|
+
property({ type: String, attribute: "workspace-aria-label" })
|
|
697
|
+
], CDSAIChatShell.prototype, "workspaceAriaLabel", void 0);
|
|
698
|
+
__decorate([
|
|
699
|
+
property({ type: String, attribute: "history-aria-label" })
|
|
700
|
+
], CDSAIChatShell.prototype, "historyAriaLabel", void 0);
|
|
701
|
+
__decorate([
|
|
702
|
+
property({ type: String, attribute: "messages-aria-label" })
|
|
703
|
+
], CDSAIChatShell.prototype, "messagesAriaLabel", void 0);
|
|
704
|
+
CDSAIChatShell = CDSAIChatShell_1 = __decorate([
|
|
549
705
|
carbonElement("cds-aichat-shell")
|
|
550
|
-
],
|
|
551
|
-
var
|
|
706
|
+
], CDSAIChatShell);
|
|
707
|
+
var CDSChatShellElement = CDSAIChatShell;
|
|
552
708
|
|
|
553
|
-
export {
|
|
554
|
-
//# sourceMappingURL=
|
|
709
|
+
export { CDSChatShellElement as default };
|
|
710
|
+
//# sourceMappingURL=shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.js","sources":["../../../../src/components/chat-shell/src/shell.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;;AAcH,IAAM,cAAc,GAAA,gBAAA,GAApB,MAAM,cAAe,SAAQ,UAAU,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAeE;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAG,KAAK;AAEjB;;AAEG;QAEH,IAAA,C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Ac,GAAA,gBAAA,GAAA,UAAA,CAAA;IADnB,aAAa,CAAC,kBAAkB;AAC3B,CAAA,EAAA,cAAc,CAg0BnB;AAED,0BAAe,cAAc;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css([":host{background:transparent;block-size:100%;box-sizing:border-box;container-type:inline-size;display:block;font-family:var(--cds-aichat-font-family,\"IBM Plex Sans\",\"Helvetica Neue\",arial,sans-serif);inline-size:100%}.shell{--cds-aichat-rounded-modifier-radius:0;--cds-aichat-rounded-modifier-radius-start-start:0;--cds-aichat-rounded-modifier-radius-start-end:0;--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;background-color:var(--cds-custom-chat-shell-background,#fff);background-image:none;block-size:100%;border:1px solid var(--cds-custom-border-subtle-00,#e0e0e0);border-radius:var(--cds-aichat-rounded-modifier-radius,0);box-shadow:0 2px 6px var(--cds-custom-shadow,var(--cds-custom-shadow,rgba(0,0,0,.3)));display:block;inline-size:100%;position:relative}.shell.shell--panels-animating{overflow:hidden}.shell.ai-theme{background:linear-gradient(to top,var(--cds-custom-chat-shell-background,var(--cds-custom-ai-popover-background,#fff)) 0,var(--cds-custom-ai-aura-start,rgba(69,137,255,.1)) 0,15%,var(--cds-custom-ai-aura-end,hsla(0,0%,100%,0)) 50%) padding-box,linear-gradient(to top,var(--cds-custom-chat-shell-background,var(--cds-custom-ai-popover-background,#fff)),var(--cds-custom-chat-shell-background,var(--cds-custom-ai-popover-background,#fff))) padding-box,linear-gradient(to bottom,var(--cds-custom-ai-border-start,rgba(166,200,255,.64)),var(--cds-custom-ai-border-end,#78a9ff)) border-box,linear-gradient(to top,var(--cds-custom-chat-shell-background,var(--cds-custom-ai-popover-background,#fff)),var(--cds-custom-chat-shell-background,var(--cds-custom-ai-popover-background,#fff))) border-box;background-color:var(--cds-custom-chat-shell-background,#fff);border:1px solid transparent;box-shadow:inset 0 -80px 70px -65px var(--cds-custom-ai-inner-shadow,var(--cds-custom-ai-inner-shadow,rgba(69,137,255,.1))),0 4px 10px 2px var(--cds-custom-ai-drop-shadow,var(--cds-custom-ai-drop-shadow,rgba(15,98,254,.1))),-40px 44px 60px -24px var(--cds-custom-ai-popover-shadow-outer-01,var(--cds-custom-ai-popover-shadow-outer-01,rgba(0,67,206,.06))),-56px 64px 64px -24px var(--cds-custom-ai-popover-shadow-outer-02,var(--cds-custom-ai-popover-shadow-outer-02,rgba(0,0,0,.04)))}.shell.frameless,.shell.frameless.rounded{--cds-aichat-rounded-modifier-radius:0;--cds-aichat-rounded-modifier-radius-start-start:0;--cds-aichat-rounded-modifier-radius-start-end:0;--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border:none;border-radius:var(--cds-aichat-rounded-modifier-radius,0);box-shadow:none}.shell.frameless.ai-theme{background-image:none}.main-chat{align-items:stretch;block-size:100%;display:flex;flex-direction:column;inline-size:100%;min-block-size:0}.shell.rounded{--cds-aichat-rounded-modifier-radius:0.5rem;--cds-aichat-rounded-modifier-radius-start-start:0.5rem;--cds-aichat-rounded-modifier-radius-start-end:0.5rem;--cds-aichat-rounded-modifier-radius-end-start:0.5rem;--cds-aichat-rounded-modifier-radius-end-end:0.5rem}.shell.rounded,.shell.rounded .main-chat{border-radius:var(--cds-aichat-rounded-modifier-radius,0)}.shell.rounded .header-with-header-after,.shell.rounded .header-with-header-after>.header.has-content,.shell.rounded .header-with-header-after>.header:not(.has-content)+.header-after.has-content{border-start-end-radius:var(--cds-aichat-rounded-modifier-radius-start-end,0);border-start-start-radius:var(--cds-aichat-rounded-modifier-radius-start-start,0)}.shell.rounded .header-with-header-after>.header:not(.has-content)+.header-after.has-content{--cds-aichat-rounded-modifier-radius-start-end:var(\n --cds-aichat-rounded-modifier-radius,0\n );--cds-aichat-rounded-modifier-radius-start-start:var(\n --cds-aichat-rounded-modifier-radius,0\n );--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0}.shell.rounded .header-with-header-after>.header-after:not(.has-content),.shell.rounded .header-with-header-after>.header.has-content+.header-after.has-content,.shell.rounded .header-with-header-after>.header:not(.has-content){--cds-aichat-rounded-modifier-radius-start-end:0;--cds-aichat-rounded-modifier-radius-start-start:0;border-start-end-radius:0;border-start-start-radius:0}.shell.rounded .header-with-header-after>.header.has-content+.header-after.has-content{--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border-end-end-radius:0;border-end-start-radius:0}[data-panel-slot]{opacity:1}[data-panel-slot][inert]{opacity:0}@media screen and (prefers-reduced-motion:no-preference){[data-panel-slot]{transition:opacity .11s cubic-bezier(.2,0,.38,.9)}}.main-content{flex-direction:column;flex-grow:1}.main-content,.main-content-body{align-items:stretch;display:flex;max-inline-size:100%;min-block-size:0;min-inline-size:0}.main-content-body{block-size:100%;flex:1 1 0%;overflow-x:visible;position:relative}.shell.workspace-closing .main-content-body,.shell.workspace-opening .main-content-body{overflow-x:hidden}.shell.ai-theme .main-chat{background-color:var(--cds-custom-chat-shell-background,#fff);background-image:linear-gradient(0deg,var(--cds-custom-ai-aura-start-sm,rgba(69,137,255,.16)) 0,15%,var(--cds-custom-ai-aura-end,hsla(0,0%,100%,0)) 50%,transparent 100%);border-block-end-color:var(--cds-custom-ai-border-strong,#4589ff)}.history{display:flex;flex-direction:column}.history>[data-panel-slot]{block-size:100%;display:flex;flex:1;flex-direction:column;min-block-size:0}:host([show-history]) .history{flex:0 0 auto;inline-size:var(--cds-aichat-history-width,320px);max-inline-size:var(--cds-aichat-history-width,320px)}:host([show-history][history-location=end]) .history{order:3}:host([show-history][show-workspace][workspace-location=end]) .workspace{order:2}.input-and-messages{align-items:stretch;block-size:100%;display:flex;flex-direction:column;flex-grow:1;inline-size:100%;margin:auto;min-block-size:0;min-inline-size:var(--cds-aichat-messages-min-width,320px)}.input-and-messages .messages-max-width{inline-size:100%;margin:auto;max-inline-size:var(--cds-aichat-messages-max-width,672px)}:host([show-history][history-location=end]) .input-and-messages{order:1}.messages{flex-grow:1;min-block-size:0}.workspace{display:flex;flex-direction:column;min-block-size:0}.workspace-content,.workspace-slot{block-size:100%;inline-size:100%;min-block-size:0}.workspace-content{opacity:1}@media (prefers-reduced-motion:no-preference){.workspace-content{transition:opacity .11s cubic-bezier(.2,0,.38,.9)}}.workspace-content--hidden{opacity:0;pointer-events:none}.shell.workspace-checking .workspace{flex:1 1 0;margin:0;min-inline-size:0;overflow:hidden;padding:0;visibility:hidden}.shell.workspace-checking .input-and-messages{flex:1 1 auto;max-inline-size:var(--cds-aichat-messages-max-width,672px)}.shell.workspace-checking-closing .workspace{flex:1 1 auto;min-inline-size:0;overflow:hidden}.shell.workspace-checking-closing .input-and-messages{flex:0 1 auto;min-inline-size:0}.shell.workspace-checking-closing .workspace,.shell.workspace-closing .workspace{flex:1 1 0;min-inline-size:0;overflow:hidden}.shell.workspace-checking-closing .input-and-messages,.shell.workspace-closing .input-and-messages{box-sizing:border-box;flex:0 1 var(--cds-aichat-messages-min-width,320px);max-inline-size:var(--cds-aichat-messages-min-width,320px);min-inline-size:0}.shell.workspace-opening .workspace{flex:1 1 0;min-inline-size:0;overflow:hidden;visibility:hidden}.shell.workspace-opening .input-and-messages{box-sizing:border-box;flex:0 1 var(--cds-aichat-messages-min-width,320px);min-inline-size:0}.shell.workspace-checking-closing .main-content-body,.shell.workspace-closing .main-content-body,:host([show-workspace]) .main-content-body{container-name:main-content-body;container-type:inline-size;flex-direction:row}:host([show-workspace][workspace-location=end]) .input-and-messages{order:1}:host([workspace-location=end]) .shell.workspace-checking-closing .input-and-messages,:host([workspace-location=end]) .shell.workspace-closing .input-and-messages{order:1}:host([workspace-location=end]) .shell.workspace-checking-closing .workspace,:host([workspace-location=end]) .shell.workspace-closing .workspace{order:2}:host([workspace-in-container][show-workspace]) .workspace{box-sizing:border-box;flex:1 1 auto;min-inline-size:var(--cds-aichat-workspace-min-width,640px);padding-block-end:1rem;padding-block-start:1rem;padding-inline-end:0;padding-inline-start:1rem}:host([workspace-in-container][show-workspace]) .input-and-messages{box-sizing:border-box;flex:0 0 var(--cds-aichat-messages-min-width,320px);inline-size:var(--cds-aichat-messages-min-width,320px);max-inline-size:var(--cds-aichat-messages-min-width,320px);padding:1rem}:host([workspace-in-panel][show-workspace]) .input-and-messages{flex:1 1 auto;inline-size:100%;max-inline-size:var(--cds-aichat-messages-max-width,672px)}:host([workspace-in-panel][show-workspace]) .main-content-body{flex-direction:column}:host([workspace-in-container][show-workspace][workspace-location=end]) .workspace{order:2;padding-inline-end:1rem}:host([workspace-in-container][show-workspace][workspace-location=end]) .input-and-messages{padding-inline-end:0}:host([workspace-in-container]) .shell.workspace-opening .workspace{flex:1 1 0;min-inline-size:0;padding-block-end:1rem;padding-block-start:1rem;padding-inline-end:0;padding-inline-start:1rem}:host([workspace-in-container]) .shell.workspace-opening .input-and-messages{flex:0 1 var(--cds-aichat-messages-min-width,320px);min-inline-size:0;padding:1rem}:host([workspace-in-container][workspace-location=end]) .shell.workspace-opening .workspace{padding-inline-end:1rem;padding-inline-start:0}:host([workspace-in-container][workspace-location=end]) .shell.workspace-opening .input-and-messages{padding-inline-end:0}:host([workspace-in-container]) .shell.workspace-checking-closing .workspace,:host([workspace-in-container]) .shell.workspace-closing .workspace{padding-block-end:1rem;padding-block-start:1rem;padding-inline-end:0;padding-inline-start:1rem}:host([workspace-in-container]) .shell.workspace-checking-closing .input-and-messages,:host([workspace-in-container]) .shell.workspace-closing .input-and-messages{padding:0}:host([workspace-in-container][workspace-location=end]) .shell.workspace-checking-closing .workspace,:host([workspace-in-container][workspace-location=end]) .shell.workspace-closing .workspace{padding-inline-end:1rem;padding-inline-start:0}:host([workspace-in-container][workspace-location=end]) .shell.workspace-checking-closing .input-and-messages,:host([workspace-in-container][workspace-location=end]) .shell.workspace-closing .input-and-messages{padding:0}.shell.rounded .main-content,.shell.rounded .main-content>.footer.has-content{border-end-end-radius:var(--cds-aichat-rounded-modifier-radius-end-end,0);border-end-start-radius:var(--cds-aichat-rounded-modifier-radius-end-start,0)}.shell.rounded .main-content>.footer.has-content{--cds-aichat-rounded-modifier-radius-start-start:0;--cds-aichat-rounded-modifier-radius-start-end:0}.shell.rounded .main-content>.footer:not(.has-content){--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border-end-end-radius:0;border-end-start-radius:0}.shell.rounded .input-and-messages:not(.at-max-width),.shell.rounded.has-header-content .input-and-messages{--cds-aichat-rounded-modifier-radius-start-start:0;--cds-aichat-rounded-modifier-radius-start-end:0}.shell.rounded .input-and-messages:not(.at-max-width),.shell.rounded.has-footer-content .input-and-messages{--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0}.shell.rounded:not(.has-header-content) .input-and-messages.at-max-width{--cds-aichat-rounded-modifier-radius-start-start:0.5rem;--cds-aichat-rounded-modifier-radius-start-end:0.5rem}.shell.rounded:not(.has-footer-content) .input-and-messages.at-max-width{--cds-aichat-rounded-modifier-radius-end-start:0.5rem;--cds-aichat-rounded-modifier-radius-end-end:0.5rem}.shell.rounded .input-and-messages>.input-after:not(.has-content),.shell.rounded .input-and-messages>.input-before:not(.has-content),.shell.rounded .input-and-messages>.input:not(.has-content){--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border-end-end-radius:0;border-end-start-radius:0}.shell.rounded .input-and-messages:not(.has-input-after-content,.has-input-content,.has-input-before-content)>.messages{border-end-end-radius:var(--cds-aichat-rounded-modifier-radius-end-end,0);border-end-start-radius:var(--cds-aichat-rounded-modifier-radius-end-start,0)}.shell.rounded .input-and-messages.has-input-after-content>.messages,.shell.rounded .input-and-messages:not(.has-input-after-content).has-input-content>.messages,.shell.rounded .input-and-messages:not(.has-input-after-content,.has-input-content).has-input-before-content>.messages{--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border-end-end-radius:0;border-end-start-radius:0}.shell.rounded .input-and-messages>.input-after.has-content{border-end-end-radius:var(--cds-aichat-rounded-modifier-radius-end-end,0);border-end-start-radius:var(--cds-aichat-rounded-modifier-radius-end-start,0)}.shell.rounded:not(.has-footer-content) .input-and-messages.at-max-width>.input-after.has-content{--cds-aichat-rounded-modifier-radius-end-start:0.5rem;--cds-aichat-rounded-modifier-radius-end-end:0.5rem}:host(:not([show-workspace])) .input-and-messages:not(.at-max-width)>.input-after{margin-block-end:32px}.shell.rounded .input-and-messages:not(.has-input-after-content)>.input.has-content,.shell.rounded .input-and-messages:not(.has-input-after-content,.has-input-content)>.input-before.has-content{border-end-end-radius:var(--cds-aichat-rounded-modifier-radius-end-end,0);border-end-start-radius:var(--cds-aichat-rounded-modifier-radius-end-start,0)}.shell.rounded .input-and-messages.has-input-after-content>.input,.shell.rounded .input-and-messages.has-input-after-content>.input-before,.shell.rounded .input-and-messages:not(.has-input-after-content).has-input-content>.input-before{--cds-aichat-rounded-modifier-radius-end-start:0;--cds-aichat-rounded-modifier-radius-end-end:0;border-end-end-radius:0;border-end-start-radius:0}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=shell.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|