@kodaris/krubble-app-components 1.0.155 → 1.0.157
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/chatbot.d.ts +40 -7
- package/dist/chatbot.d.ts.map +1 -1
- package/dist/chatbot.js +417 -45
- package/dist/chatbot.js.map +1 -1
- package/dist/krubble-app.bundled.js +417 -45
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +304 -37
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +417 -45
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +304 -37
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/krubble-app.umd.js
CHANGED
|
@@ -3175,6 +3175,18 @@
|
|
|
3175
3175
|
this._copiedIndex = -1;
|
|
3176
3176
|
/** Whether the "Browse all skills" dialog is open. */
|
|
3177
3177
|
this._skillBrowseOpened = false;
|
|
3178
|
+
/**
|
|
3179
|
+
* The skill whose detail view is showing inside the browse dialog, else null.
|
|
3180
|
+
* While set, the browse dialog shows that skill's summary, author, price, roles
|
|
3181
|
+
* and actions in place of the search field and tabs.
|
|
3182
|
+
*/
|
|
3183
|
+
this._skillBrowseDetail = null;
|
|
3184
|
+
/**
|
|
3185
|
+
* The billable global skill awaiting the user's install confirmation, else null.
|
|
3186
|
+
* Set when Install is clicked on a billable skill; the confirm dialog renders
|
|
3187
|
+
* while it is set and the request only fires once the user confirms.
|
|
3188
|
+
*/
|
|
3189
|
+
this._skillInstallConfirm = null;
|
|
3178
3190
|
/**
|
|
3179
3191
|
* Active tab in the browse dialog. `org` shows `_orgSkills` (this instance's
|
|
3180
3192
|
* skills); `kodaris` shows `_globalSkills` (the shared global catalog).
|
|
@@ -4173,9 +4185,11 @@
|
|
|
4173
4185
|
* Enable or disable a global skill on this instance via
|
|
4174
4186
|
* `/aiskills/global/{code}/enabled`, then reflect the server's result on the
|
|
4175
4187
|
* matching card. Ignores clicks while a request for the same code is pending.
|
|
4188
|
+
* Installing a billable skill opens a confirmation instead; see
|
|
4189
|
+
* `_handleSkillInstallConfirm` for the request that runs once the user accepts.
|
|
4176
4190
|
*/
|
|
4177
4191
|
_handleGlobalSkillEnable(skill, e) {
|
|
4178
|
-
// The card body
|
|
4192
|
+
// The card body opens the detail view; the install button must not also do that.
|
|
4179
4193
|
e.stopPropagation();
|
|
4180
4194
|
// The button is shown to everyone so the catalog reads the same for all users,
|
|
4181
4195
|
// but the enable endpoint requires administrator/superuser/skillEdit. Without
|
|
@@ -4191,6 +4205,12 @@
|
|
|
4191
4205
|
if (this._globalSkillPending.has(skill.code)) {
|
|
4192
4206
|
return;
|
|
4193
4207
|
}
|
|
4208
|
+
// Installing a billable skill charges the account, so confirm before sending.
|
|
4209
|
+
// Uninstalling is never billed and free installs are one click to undo.
|
|
4210
|
+
if (!skill.enabled && skill.billable) {
|
|
4211
|
+
this._skillInstallConfirm = skill;
|
|
4212
|
+
return;
|
|
4213
|
+
}
|
|
4194
4214
|
// Drive the clicked button's own spinner (KRButton disables itself while
|
|
4195
4215
|
// loading, so a second click can't fire until the request settles).
|
|
4196
4216
|
const btn = e.currentTarget;
|
|
@@ -4208,6 +4228,20 @@
|
|
|
4208
4228
|
skill.enabled = res?.data?.enabled;
|
|
4209
4229
|
btn?.reset();
|
|
4210
4230
|
this.requestUpdate();
|
|
4231
|
+
if (skill.enabled) {
|
|
4232
|
+
krubbleComponents.Snackbar.show({
|
|
4233
|
+
title: 'Skill Installed',
|
|
4234
|
+
message: `${skill.name} is now available to use.`,
|
|
4235
|
+
type: 'success',
|
|
4236
|
+
});
|
|
4237
|
+
}
|
|
4238
|
+
else {
|
|
4239
|
+
krubbleComponents.Snackbar.show({
|
|
4240
|
+
title: 'Skill Uninstalled',
|
|
4241
|
+
message: `${skill.name} is no longer available to use.`,
|
|
4242
|
+
type: 'success',
|
|
4243
|
+
});
|
|
4244
|
+
}
|
|
4211
4245
|
})
|
|
4212
4246
|
.catch((error) => {
|
|
4213
4247
|
console.error('kr-chatbot: global skill enable failed', error);
|
|
@@ -4217,6 +4251,52 @@
|
|
|
4217
4251
|
this._globalSkillPending.delete(skill.code);
|
|
4218
4252
|
});
|
|
4219
4253
|
}
|
|
4254
|
+
/** Cancel the billable install confirmation without sending anything. */
|
|
4255
|
+
_handleSkillInstallCancel() {
|
|
4256
|
+
this._skillInstallConfirm = null;
|
|
4257
|
+
}
|
|
4258
|
+
/**
|
|
4259
|
+
* The user accepted the charge: run the install with the dialog's own Install
|
|
4260
|
+
* button spinning, and close the dialog once the server confirms. On failure
|
|
4261
|
+
* the button shows the error and the dialog stays open so they can retry or cancel.
|
|
4262
|
+
*/
|
|
4263
|
+
_handleSkillInstallConfirm(e) {
|
|
4264
|
+
if (!this._skillInstallConfirm) {
|
|
4265
|
+
return;
|
|
4266
|
+
}
|
|
4267
|
+
if (this._globalSkillPending.has(this._skillInstallConfirm.code)) {
|
|
4268
|
+
return;
|
|
4269
|
+
}
|
|
4270
|
+
const skill = this._skillInstallConfirm;
|
|
4271
|
+
const btn = e.currentTarget;
|
|
4272
|
+
this._globalSkillPending.add(skill.code);
|
|
4273
|
+
btn?.showLoading();
|
|
4274
|
+
krubbleHttp.Http.fetch({
|
|
4275
|
+
url: `/api/system/opensearch/aiskills/global/${encodeURIComponent(skill.code)}/enabled`,
|
|
4276
|
+
method: 'POST',
|
|
4277
|
+
body: { enabled: true },
|
|
4278
|
+
})
|
|
4279
|
+
.then((r) => r.json())
|
|
4280
|
+
.then((res) => {
|
|
4281
|
+
// Reflect the server's returned flag on the card and close the confirmation.
|
|
4282
|
+
skill.enabled = res?.data?.enabled;
|
|
4283
|
+
btn?.reset();
|
|
4284
|
+
this._skillInstallConfirm = null;
|
|
4285
|
+
this.requestUpdate();
|
|
4286
|
+
krubbleComponents.Snackbar.show({
|
|
4287
|
+
title: 'Skill Installed',
|
|
4288
|
+
message: `${skill.name} is now available to use.`,
|
|
4289
|
+
type: 'success',
|
|
4290
|
+
});
|
|
4291
|
+
})
|
|
4292
|
+
.catch((error) => {
|
|
4293
|
+
console.error('kr-chatbot: global skill install failed', error);
|
|
4294
|
+
btn?.showError('Error');
|
|
4295
|
+
})
|
|
4296
|
+
.finally(() => {
|
|
4297
|
+
this._globalSkillPending.delete(skill.code);
|
|
4298
|
+
});
|
|
4299
|
+
}
|
|
4220
4300
|
/** The `+` button toggles the skill/attachment menu open (showing all skills). */
|
|
4221
4301
|
_handlePlusClick() {
|
|
4222
4302
|
if (this._skillMenuOpened) {
|
|
@@ -4372,11 +4452,11 @@
|
|
|
4372
4452
|
this._skillBrowseOpened = false;
|
|
4373
4453
|
this._inputEl?.focus();
|
|
4374
4454
|
}
|
|
4375
|
-
/**
|
|
4455
|
+
/** Open a skill card via keyboard (Enter/Space), since it's a div role=button. */
|
|
4376
4456
|
_handleSkillCardKeydown(e, skill) {
|
|
4377
4457
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
4378
4458
|
e.preventDefault();
|
|
4379
|
-
this.
|
|
4459
|
+
this._handleSkillCardOpen(skill);
|
|
4380
4460
|
}
|
|
4381
4461
|
}
|
|
4382
4462
|
/**
|
|
@@ -4414,6 +4494,29 @@
|
|
|
4414
4494
|
}
|
|
4415
4495
|
_handleSkillBrowseClose() {
|
|
4416
4496
|
this._skillBrowseOpened = false;
|
|
4497
|
+
this._skillBrowseDetail = null;
|
|
4498
|
+
}
|
|
4499
|
+
/** Open a skill's detail view inside the browse dialog. */
|
|
4500
|
+
_handleSkillCardOpen(skill) {
|
|
4501
|
+
this._skillBrowseDetail = skill;
|
|
4502
|
+
}
|
|
4503
|
+
/** Return from the detail view to the grid, keeping the tab and search text. */
|
|
4504
|
+
_handleSkillDetailBack() {
|
|
4505
|
+
this._skillBrowseDetail = null;
|
|
4506
|
+
}
|
|
4507
|
+
/** Try It on the detail view: insert the open skill into the composer. */
|
|
4508
|
+
_handleSkillDetailTry() {
|
|
4509
|
+
if (!this._skillBrowseDetail) {
|
|
4510
|
+
return;
|
|
4511
|
+
}
|
|
4512
|
+
this._handleSkillSelect(this._skillBrowseDetail);
|
|
4513
|
+
}
|
|
4514
|
+
/** Install/Uninstall on the detail view for the open global skill. */
|
|
4515
|
+
_handleSkillDetailEnable(e) {
|
|
4516
|
+
if (!this._skillBrowseDetail) {
|
|
4517
|
+
return;
|
|
4518
|
+
}
|
|
4519
|
+
this._handleGlobalSkillEnable(this._skillBrowseDetail, e);
|
|
4417
4520
|
}
|
|
4418
4521
|
_handleSkillBrowseSearch(e) {
|
|
4419
4522
|
this._skillBrowseQuery = e.target.value;
|
|
@@ -5911,8 +6014,8 @@
|
|
|
5911
6014
|
@click=${() => this._handleSkillSelect(skill)}
|
|
5912
6015
|
>
|
|
5913
6016
|
<span class="skill-menu__name">${skill.name}</span>
|
|
5914
|
-
${skill.
|
|
5915
|
-
<span class="skill-menu__desc">${skill.
|
|
6017
|
+
${skill.summary ? b `
|
|
6018
|
+
<span class="skill-menu__desc">${skill.summary}</span>
|
|
5916
6019
|
` : A}
|
|
5917
6020
|
</button>
|
|
5918
6021
|
</li>
|
|
@@ -5934,43 +6037,134 @@
|
|
|
5934
6037
|
return b `
|
|
5935
6038
|
<kr-dialog
|
|
5936
6039
|
opened
|
|
5937
|
-
label="Browse Skills"
|
|
5938
6040
|
width="720px"
|
|
5939
6041
|
@close=${this._handleSkillBrowseClose}
|
|
5940
6042
|
>
|
|
6043
|
+
<kr-dialog-header>
|
|
6044
|
+
<div class="skill-browse__header">
|
|
6045
|
+
${this._skillBrowseDetail ? b `
|
|
6046
|
+
<button
|
|
6047
|
+
type="button"
|
|
6048
|
+
class="skill-browse__back"
|
|
6049
|
+
aria-label="Back"
|
|
6050
|
+
@click=${this._handleSkillDetailBack}
|
|
6051
|
+
>
|
|
6052
|
+
<svg
|
|
6053
|
+
width="22"
|
|
6054
|
+
height="22"
|
|
6055
|
+
viewBox="0 0 24 24"
|
|
6056
|
+
fill="none"
|
|
6057
|
+
stroke="currentColor"
|
|
6058
|
+
stroke-width="2"
|
|
6059
|
+
stroke-linecap="round"
|
|
6060
|
+
stroke-linejoin="round"
|
|
6061
|
+
>
|
|
6062
|
+
<path d="M19 12H5M12 19l-7-7 7-7"/>
|
|
6063
|
+
</svg>
|
|
6064
|
+
</button>
|
|
6065
|
+
` : b `
|
|
6066
|
+
<h2>Browse Skills</h2>
|
|
6067
|
+
`}
|
|
6068
|
+
<button
|
|
6069
|
+
type="button"
|
|
6070
|
+
class="skill-browse__close"
|
|
6071
|
+
aria-label="Close"
|
|
6072
|
+
@click=${this._handleSkillBrowseClose}
|
|
6073
|
+
>
|
|
6074
|
+
<svg
|
|
6075
|
+
viewBox="0 0 24 24"
|
|
6076
|
+
fill="none"
|
|
6077
|
+
stroke="currentColor"
|
|
6078
|
+
stroke-width="1.5"
|
|
6079
|
+
stroke-linecap="round"
|
|
6080
|
+
stroke-linejoin="round"
|
|
6081
|
+
>
|
|
6082
|
+
<path d="M6 18 18 6M6 6l12 12"/>
|
|
6083
|
+
</svg>
|
|
6084
|
+
</button>
|
|
6085
|
+
</div>
|
|
6086
|
+
</kr-dialog-header>
|
|
5941
6087
|
<div class="skill-browse">
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
6088
|
+
${this._skillBrowseDetail ? b `
|
|
6089
|
+
<div class="skill-detail">
|
|
6090
|
+
<div class="skill-detail__body">
|
|
6091
|
+
<div class="skill-detail__section">
|
|
6092
|
+
<span class="skill-detail__title">${this._skillBrowseDetail.name}</span>
|
|
6093
|
+
${this._skillBrowseDetail.summary ? b `
|
|
6094
|
+
<p class="skill-detail__summary">${this._skillBrowseDetail.summary}</p>
|
|
6095
|
+
` : A}
|
|
6096
|
+
</div>
|
|
6097
|
+
<div class="skill-detail__row">
|
|
6098
|
+
<span class="skill-detail__label">Author</span>
|
|
6099
|
+
<span class="skill-detail__value">${this._skillBrowseDetail.global ? 'Kodaris' : 'Your organization'}</span>
|
|
6100
|
+
</div>
|
|
6101
|
+
${this._skillBrowseDetail.global ? b `
|
|
6102
|
+
<div class="skill-detail__row">
|
|
6103
|
+
<span class="skill-detail__label">Price</span>
|
|
6104
|
+
<span class="skill-detail__value">${this._skillBrowseDetail.priceLabel}</span>
|
|
6105
|
+
</div>
|
|
6106
|
+
` : A}
|
|
6107
|
+
${this._skillBrowseDetail.allowedRoles?.length ? b `
|
|
6108
|
+
<div class="skill-detail__row">
|
|
6109
|
+
<span class="skill-detail__label">Roles</span>
|
|
6110
|
+
<div class="skill-detail__chips">
|
|
6111
|
+
${this._skillBrowseDetail.allowedRoles.map((role) => b `
|
|
6112
|
+
<span class="skill-detail__chip">${role}</span>
|
|
6113
|
+
`)}
|
|
6114
|
+
</div>
|
|
6115
|
+
</div>
|
|
6116
|
+
` : A}
|
|
6117
|
+
</div>
|
|
6118
|
+
<div class="skill-detail__footer">
|
|
6119
|
+
${this._skillBrowseDetail.canRun !== false && (!this._skillBrowseDetail.global || this._skillBrowseDetail.enabled) ? b `
|
|
6120
|
+
<kr-button
|
|
6121
|
+
variant="flat"
|
|
6122
|
+
color="primary"
|
|
6123
|
+
@click=${this._handleSkillDetailTry}
|
|
6124
|
+
>Try It</kr-button>
|
|
6125
|
+
` : A}
|
|
6126
|
+
${this._skillBrowseDetail.global ? b `
|
|
6127
|
+
<kr-button
|
|
6128
|
+
variant=${this._skillBrowseDetail.enabled ? 'outline' : 'flat'}
|
|
6129
|
+
color=${this._skillBrowseDetail.enabled ? 'secondary' : 'primary'}
|
|
6130
|
+
@click=${this._handleSkillDetailEnable}
|
|
6131
|
+
>${this._skillBrowseDetail.enabled ? 'Uninstall' : 'Install'}</kr-button>
|
|
6132
|
+
` : A}
|
|
6133
|
+
</div>
|
|
6134
|
+
</div>
|
|
6135
|
+
` : b `
|
|
6136
|
+
<kr-text-field
|
|
6137
|
+
placeholder="Search skills..."
|
|
6138
|
+
.value=${this._skillBrowseQuery}
|
|
6139
|
+
@input=${this._handleSkillBrowseSearch}
|
|
6140
|
+
></kr-text-field>
|
|
6141
|
+
<kr-tab-group
|
|
6142
|
+
active-tab-id=${this._skillBrowseSource}
|
|
6143
|
+
@tab-change=${this._handleSkillBrowseTabChange}
|
|
6144
|
+
>
|
|
6145
|
+
<kr-tab id="org" label="Your Org">
|
|
6146
|
+
${this._renderSkillGrid()}
|
|
5957
6147
|
</kr-tab>
|
|
5958
|
-
|
|
5959
|
-
|
|
6148
|
+
${this._aiFrameworkConfig.registryServer === true ? A : b `
|
|
6149
|
+
<kr-tab id="kodaris" label="Kodaris">
|
|
6150
|
+
${this._renderSkillGrid(true)}
|
|
6151
|
+
</kr-tab>
|
|
6152
|
+
`}
|
|
6153
|
+
</kr-tab-group>
|
|
6154
|
+
`}
|
|
5960
6155
|
</div>
|
|
5961
6156
|
</kr-dialog>
|
|
5962
6157
|
`;
|
|
5963
6158
|
}
|
|
5964
6159
|
/**
|
|
5965
6160
|
* The card grid of skill search results for the browse dialog. Clicking a card
|
|
5966
|
-
*
|
|
5967
|
-
* card also gets a footer row with an
|
|
6161
|
+
* opens its detail view inside `_renderSkillBrowse`, which is where Try It lives.
|
|
6162
|
+
* In the shared-Kodaris (`global`) tab each card also gets a footer row with an
|
|
6163
|
+
* Install/Uninstall button as a shortcut.
|
|
5968
6164
|
*
|
|
5969
6165
|
* The Kodaris tab is the whole published catalog, deliberately NOT role-filtered so
|
|
5970
|
-
* users can discover skills they don't have yet.
|
|
5971
|
-
*
|
|
5972
|
-
* installed here (not `enabled`). Neither looks clickable; clicking either explains
|
|
5973
|
-
* why via `_handleSkillSelect`.
|
|
6166
|
+
* users can discover skills they don't have yet. Every card is clickable; the detail
|
|
6167
|
+
* view lists the roles and shows Install when the skill isn't installed here.
|
|
5974
6168
|
*/
|
|
5975
6169
|
_renderSkillGrid(global = false) {
|
|
5976
6170
|
let skills = this._orgSkills;
|
|
@@ -5984,18 +6178,15 @@
|
|
|
5984
6178
|
<div class="skill-browse__grid">
|
|
5985
6179
|
${skills.map((skill) => b `
|
|
5986
6180
|
<div
|
|
5987
|
-
class
|
|
5988
|
-
'skill-card': true,
|
|
5989
|
-
'skill-card--unavailable': skill.canRun === false || (!!skill.global && !skill.enabled),
|
|
5990
|
-
})}
|
|
6181
|
+
class="skill-card"
|
|
5991
6182
|
role="button"
|
|
5992
6183
|
tabindex="0"
|
|
5993
|
-
@click=${() => this.
|
|
6184
|
+
@click=${() => this._handleSkillCardOpen(skill)}
|
|
5994
6185
|
@keydown=${(e) => this._handleSkillCardKeydown(e, skill)}
|
|
5995
6186
|
>
|
|
5996
6187
|
<span class="skill-card__name">${skill.name}</span>
|
|
5997
|
-
${skill.
|
|
5998
|
-
<span class="skill-card__desc">${skill.
|
|
6188
|
+
${skill.summary ? b `
|
|
6189
|
+
<span class="skill-card__desc">${skill.summary}</span>
|
|
5999
6190
|
` : A}
|
|
6000
6191
|
${!global && skill.global ? b `
|
|
6001
6192
|
<span class="skill-card__badge">Global</span>
|
|
@@ -7267,6 +7458,32 @@
|
|
|
7267
7458
|
</div>
|
|
7268
7459
|
</div>
|
|
7269
7460
|
${this._skillBrowseOpened ? this._renderSkillBrowse() : A}
|
|
7461
|
+
${this._skillInstallConfirm ? b `
|
|
7462
|
+
<kr-dialog
|
|
7463
|
+
opened
|
|
7464
|
+
label="Install Paid Skill"
|
|
7465
|
+
width="480px"
|
|
7466
|
+
@close=${this._handleSkillInstallCancel}
|
|
7467
|
+
>
|
|
7468
|
+
<kr-dialog-content>
|
|
7469
|
+
<div class="skill-install-confirm">
|
|
7470
|
+
<p>
|
|
7471
|
+
<strong>${this._skillInstallConfirm.name}</strong> is a paid skill. Installing it will
|
|
7472
|
+
charge your account <strong>${this._skillInstallConfirm.priceLabel}</strong>.
|
|
7473
|
+
</p>
|
|
7474
|
+
<p>Please confirm you would like to proceed.</p>
|
|
7475
|
+
</div>
|
|
7476
|
+
</kr-dialog-content>
|
|
7477
|
+
<kr-dialog-footer>
|
|
7478
|
+
<kr-button color="secondary" @click=${this._handleSkillInstallCancel}>Cancel</kr-button>
|
|
7479
|
+
<kr-button
|
|
7480
|
+
variant="flat"
|
|
7481
|
+
color="primary"
|
|
7482
|
+
@click=${this._handleSkillInstallConfirm}
|
|
7483
|
+
>Install</kr-button>
|
|
7484
|
+
</kr-dialog-footer>
|
|
7485
|
+
</kr-dialog>
|
|
7486
|
+
` : A}
|
|
7270
7487
|
${this._renderDrawer()}
|
|
7271
7488
|
</div>
|
|
7272
7489
|
`;
|
|
@@ -9014,6 +9231,70 @@
|
|
|
9014
9231
|
height: 70vh;
|
|
9015
9232
|
}
|
|
9016
9233
|
|
|
9234
|
+
/* Slotted replacement for the dialog's built-in header so the detail view can
|
|
9235
|
+
put its back control where the title normally sits. Mirrors kr-dialog's
|
|
9236
|
+
own header: title left, close on the right. */
|
|
9237
|
+
.skill-browse__header {
|
|
9238
|
+
display: flex;
|
|
9239
|
+
flex: 1;
|
|
9240
|
+
align-items: center;
|
|
9241
|
+
justify-content: space-between;
|
|
9242
|
+
gap: 16px;
|
|
9243
|
+
}
|
|
9244
|
+
|
|
9245
|
+
.skill-browse__header h2 {
|
|
9246
|
+
margin: 0;
|
|
9247
|
+
font-size: 18px;
|
|
9248
|
+
font-weight: 600;
|
|
9249
|
+
}
|
|
9250
|
+
|
|
9251
|
+
.skill-browse__back {
|
|
9252
|
+
display: flex;
|
|
9253
|
+
align-items: center;
|
|
9254
|
+
justify-content: center;
|
|
9255
|
+
width: 36px;
|
|
9256
|
+
height: 36px;
|
|
9257
|
+
margin-left: -8px;
|
|
9258
|
+
padding: 0;
|
|
9259
|
+
border: none;
|
|
9260
|
+
border-radius: 6px;
|
|
9261
|
+
background: none;
|
|
9262
|
+
color: #000000;
|
|
9263
|
+
cursor: pointer;
|
|
9264
|
+
transition: background-color 0.15s;
|
|
9265
|
+
}
|
|
9266
|
+
|
|
9267
|
+
.skill-browse__back:hover {
|
|
9268
|
+
background: rgba(0, 0, 0, 0.06);
|
|
9269
|
+
}
|
|
9270
|
+
|
|
9271
|
+
.skill-browse__close {
|
|
9272
|
+
flex-shrink: 0;
|
|
9273
|
+
display: flex;
|
|
9274
|
+
align-items: center;
|
|
9275
|
+
justify-content: center;
|
|
9276
|
+
width: 36px;
|
|
9277
|
+
height: 36px;
|
|
9278
|
+
margin-right: -8px;
|
|
9279
|
+
padding: 0;
|
|
9280
|
+
background: none;
|
|
9281
|
+
border: none;
|
|
9282
|
+
border-radius: 6px;
|
|
9283
|
+
color: #000000;
|
|
9284
|
+
cursor: pointer;
|
|
9285
|
+
transition: background-color 0.15s, color 0.15s;
|
|
9286
|
+
}
|
|
9287
|
+
|
|
9288
|
+
.skill-browse__close:hover {
|
|
9289
|
+
background: rgba(0, 0, 0, 0.06);
|
|
9290
|
+
color: #000000;
|
|
9291
|
+
}
|
|
9292
|
+
|
|
9293
|
+
.skill-browse__close svg {
|
|
9294
|
+
width: 22px;
|
|
9295
|
+
height: 22px;
|
|
9296
|
+
}
|
|
9297
|
+
|
|
9017
9298
|
.skill-browse kr-text-field {
|
|
9018
9299
|
display: block;
|
|
9019
9300
|
margin: 20px 20px 16px;
|
|
@@ -9062,15 +9343,6 @@
|
|
|
9062
9343
|
/* A Kodaris-tab card the user can't invoke — not in their roles, or not installed
|
|
9063
9344
|
here yet. Clicking it does nothing, so it drops the pointer cursor and the hover
|
|
9064
9345
|
highlight. The Install button inside keeps its own pointer cursor. */
|
|
9065
|
-
.skill-card--unavailable {
|
|
9066
|
-
cursor: default;
|
|
9067
|
-
}
|
|
9068
|
-
|
|
9069
|
-
.skill-card--unavailable:hover {
|
|
9070
|
-
border-color: #e5e7eb;
|
|
9071
|
-
box-shadow: none;
|
|
9072
|
-
}
|
|
9073
|
-
|
|
9074
9346
|
/* Marks a globally-published skill listed on the Your Org tab — only happens on
|
|
9075
9347
|
kodaris.com, which has no Kodaris tab for its own published skills. */
|
|
9076
9348
|
.skill-card__badge {
|
|
@@ -9106,6 +9378,18 @@
|
|
|
9106
9378
|
color: #000000;
|
|
9107
9379
|
}
|
|
9108
9380
|
|
|
9381
|
+
.skill-install-confirm {
|
|
9382
|
+
display: flex;
|
|
9383
|
+
flex-direction: column;
|
|
9384
|
+
gap: 12px;
|
|
9385
|
+
font-size: 14px;
|
|
9386
|
+
line-height: 1.5;
|
|
9387
|
+
}
|
|
9388
|
+
|
|
9389
|
+
.skill-install-confirm p {
|
|
9390
|
+
margin: 0;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9109
9393
|
.skill-card__name {
|
|
9110
9394
|
font-weight: 600;
|
|
9111
9395
|
}
|
|
@@ -9121,6 +9405,88 @@
|
|
|
9121
9405
|
overflow: hidden;
|
|
9122
9406
|
}
|
|
9123
9407
|
|
|
9408
|
+
.skill-detail {
|
|
9409
|
+
display: flex;
|
|
9410
|
+
flex-direction: column;
|
|
9411
|
+
flex: 1;
|
|
9412
|
+
min-height: 0;
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9415
|
+
.skill-detail__body {
|
|
9416
|
+
display: flex;
|
|
9417
|
+
flex-direction: column;
|
|
9418
|
+
flex: 1;
|
|
9419
|
+
min-height: 0;
|
|
9420
|
+
gap: 18px;
|
|
9421
|
+
padding: 24px;
|
|
9422
|
+
overflow-y: auto;
|
|
9423
|
+
}
|
|
9424
|
+
|
|
9425
|
+
/* Pinned to the bottom of the fixed-height dialog, mirroring kr-dialog-footer
|
|
9426
|
+
but left-aligned. */
|
|
9427
|
+
.skill-detail__footer {
|
|
9428
|
+
display: flex;
|
|
9429
|
+
justify-content: flex-start;
|
|
9430
|
+
flex-shrink: 0;
|
|
9431
|
+
gap: 8px;
|
|
9432
|
+
padding: 16px 24px;
|
|
9433
|
+
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
|
9434
|
+
}
|
|
9435
|
+
|
|
9436
|
+
.skill-detail__section {
|
|
9437
|
+
display: flex;
|
|
9438
|
+
flex-direction: column;
|
|
9439
|
+
gap: 6px;
|
|
9440
|
+
}
|
|
9441
|
+
|
|
9442
|
+
.skill-detail__row {
|
|
9443
|
+
display: flex;
|
|
9444
|
+
align-items: baseline;
|
|
9445
|
+
gap: 8px;
|
|
9446
|
+
}
|
|
9447
|
+
|
|
9448
|
+
/* Fixed label width so the Author and Price values start in the same column. */
|
|
9449
|
+
.skill-detail__row .skill-detail__label {
|
|
9450
|
+
flex-shrink: 0;
|
|
9451
|
+
width: 60px;
|
|
9452
|
+
}
|
|
9453
|
+
|
|
9454
|
+
.skill-detail__title {
|
|
9455
|
+
font-size: 16px;
|
|
9456
|
+
font-weight: 600;
|
|
9457
|
+
color: #000000;
|
|
9458
|
+
}
|
|
9459
|
+
|
|
9460
|
+
.skill-detail__label {
|
|
9461
|
+
font-size: 14px;
|
|
9462
|
+
font-weight: 600;
|
|
9463
|
+
color: #000000;
|
|
9464
|
+
}
|
|
9465
|
+
|
|
9466
|
+
.skill-detail__summary {
|
|
9467
|
+
margin: 0;
|
|
9468
|
+
color: #000000;
|
|
9469
|
+
white-space: pre-wrap;
|
|
9470
|
+
}
|
|
9471
|
+
|
|
9472
|
+
.skill-detail__value {
|
|
9473
|
+
color: #000000;
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9476
|
+
.skill-detail__chips {
|
|
9477
|
+
display: flex;
|
|
9478
|
+
flex-wrap: wrap;
|
|
9479
|
+
gap: 6px;
|
|
9480
|
+
}
|
|
9481
|
+
|
|
9482
|
+
.skill-detail__chip {
|
|
9483
|
+
padding: 2px 8px;
|
|
9484
|
+
border-radius: 6px;
|
|
9485
|
+
background: #f3f4f6;
|
|
9486
|
+
font-size: 12px;
|
|
9487
|
+
color: #000000;
|
|
9488
|
+
}
|
|
9489
|
+
|
|
9124
9490
|
.skill-browse__empty {
|
|
9125
9491
|
height: 100%;
|
|
9126
9492
|
padding: 32px;
|
|
@@ -9418,6 +9784,12 @@
|
|
|
9418
9784
|
__decorate$5([
|
|
9419
9785
|
r()
|
|
9420
9786
|
], KRChatbot.prototype, "_skillBrowseOpened", void 0);
|
|
9787
|
+
__decorate$5([
|
|
9788
|
+
r()
|
|
9789
|
+
], KRChatbot.prototype, "_skillBrowseDetail", void 0);
|
|
9790
|
+
__decorate$5([
|
|
9791
|
+
r()
|
|
9792
|
+
], KRChatbot.prototype, "_skillInstallConfirm", void 0);
|
|
9421
9793
|
__decorate$5([
|
|
9422
9794
|
r()
|
|
9423
9795
|
], KRChatbot.prototype, "_skillBrowseSource", void 0);
|