@kodaris/krubble-app-components 1.0.82 → 1.0.84
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 +0 -10
- package/dist/chatbot.d.ts.map +1 -1
- package/dist/chatbot.js +12 -30
- package/dist/chatbot.js.map +1 -1
- package/dist/krubble-app.bundled.js +12 -30
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +20 -23
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +12 -30
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +17 -20
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/krubble-app.umd.js
CHANGED
|
@@ -7125,39 +7125,21 @@
|
|
|
7125
7125
|
${skill.description ? b `
|
|
7126
7126
|
<span class="skill-card__desc">${skill.description}</span>
|
|
7127
7127
|
` : A}
|
|
7128
|
-
${global ?
|
|
7128
|
+
${global ? b `
|
|
7129
|
+
<div class="skill-card__footer">
|
|
7130
|
+
<span class="skill-card__price">Free</span>
|
|
7131
|
+
<kr-button
|
|
7132
|
+
class="skill-card__install-btn"
|
|
7133
|
+
size="small"
|
|
7134
|
+
variant=${skill.enabled ? 'outline' : 'flat'}
|
|
7135
|
+
color=${skill.enabled ? 'secondary' : 'primary'}
|
|
7136
|
+
@click=${(e) => this._handleGlobalSkillEnable(skill, e)}
|
|
7137
|
+
>${skill.enabled ? 'Uninstall' : 'Install'}</kr-button>
|
|
7138
|
+
</div>
|
|
7139
|
+
` : A}
|
|
7129
7140
|
</div>
|
|
7130
7141
|
`)}
|
|
7131
7142
|
</div>
|
|
7132
|
-
`;
|
|
7133
|
-
}
|
|
7134
|
-
/** Keep a click on the card footer from bubbling to the card's insert handler. */
|
|
7135
|
-
_stopFooterClick(e) {
|
|
7136
|
-
e.stopPropagation();
|
|
7137
|
-
}
|
|
7138
|
-
/**
|
|
7139
|
-
* The install affordance on a global skill card: a footer row with an
|
|
7140
|
-
* install/remove button. The button owns its own spinner via KRButton's
|
|
7141
|
-
* showLoading()/showError() while the enable/disable request is in flight, so
|
|
7142
|
-
* the async call has clear feedback. Clicks are stopped from bubbling so the
|
|
7143
|
-
* button never also inserts the skill (the card body does that).
|
|
7144
|
-
*/
|
|
7145
|
-
_renderSkillToggle(skill) {
|
|
7146
|
-
const on = !!skill.enabled;
|
|
7147
|
-
return b `
|
|
7148
|
-
<div
|
|
7149
|
-
class="skill-card__footer"
|
|
7150
|
-
@click=${this._stopFooterClick}
|
|
7151
|
-
>
|
|
7152
|
-
<span class="skill-card__price">Free</span>
|
|
7153
|
-
<kr-button
|
|
7154
|
-
class="skill-card__install-btn"
|
|
7155
|
-
size="small"
|
|
7156
|
-
variant=${on ? 'outline' : 'flat'}
|
|
7157
|
-
color=${on ? 'secondary' : 'primary'}
|
|
7158
|
-
@click=${(e) => this._handleGlobalSkillEnable(skill, e)}
|
|
7159
|
-
>${on ? 'Uninstall' : 'Install'}</kr-button>
|
|
7160
|
-
</div>
|
|
7161
7143
|
`;
|
|
7162
7144
|
}
|
|
7163
7145
|
/**
|