@ui5/webcomponents-ai 2.0.0-rc.6 → 2.0.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/CHANGELOG.md +17 -0
- package/README.md +1 -4
- package/dist/Button.d.ts +76 -6
- package/dist/Button.js +170 -14
- package/dist/Button.js.map +1 -1
- package/dist/ButtonState.d.ts +60 -0
- package/dist/ButtonState.js +51 -0
- package/dist/ButtonState.js.map +1 -0
- package/dist/PromptInput.d.ts +6 -5
- package/dist/PromptInput.js +57 -4
- package/dist/PromptInput.js.map +1 -1
- package/dist/bundle.esm.js +1 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/css/themes/Button.css +1 -0
- package/dist/custom-elements-internal.json +220 -19
- package/dist/custom-elements.json +193 -17
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -0
- package/dist/generated/json-imports/i18n.d.ts +1 -0
- package/dist/generated/json-imports/i18n.js +113 -1
- package/dist/generated/json-imports/i18n.js.map +1 -1
- package/dist/generated/templates/ButtonTemplate.lit.js +2 -1
- package/dist/generated/templates/ButtonTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Button.css.js +2 -1
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +47 -3
- package/dist/web-types.json +103 -9
- package/package.json +7 -7
- package/src/Button.hbs +17 -3
- package/src/i18n/messagebundle_ar.properties +4 -0
- package/src/i18n/messagebundle_bg.properties +4 -0
- package/src/i18n/messagebundle_ca.properties +4 -0
- package/src/i18n/messagebundle_cnr.properties +4 -0
- package/src/i18n/messagebundle_cs.properties +4 -0
- package/src/i18n/messagebundle_cy.properties +4 -0
- package/src/i18n/messagebundle_da.properties +4 -0
- package/src/i18n/messagebundle_de.properties +4 -0
- package/src/i18n/messagebundle_el.properties +4 -0
- package/src/i18n/messagebundle_en.properties +4 -0
- package/src/i18n/messagebundle_en_GB.properties +4 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
- package/src/i18n/messagebundle_es.properties +4 -0
- package/src/i18n/messagebundle_es_MX.properties +4 -0
- package/src/i18n/messagebundle_et.properties +4 -0
- package/src/i18n/messagebundle_fi.properties +4 -0
- package/src/i18n/messagebundle_fr.properties +4 -0
- package/src/i18n/messagebundle_fr_CA.properties +4 -0
- package/src/i18n/messagebundle_hi.properties +4 -0
- package/src/i18n/messagebundle_hr.properties +4 -0
- package/src/i18n/messagebundle_hu.properties +4 -0
- package/src/i18n/messagebundle_id.properties +4 -0
- package/src/i18n/messagebundle_it.properties +4 -0
- package/src/i18n/messagebundle_iw.properties +4 -0
- package/src/i18n/messagebundle_ja.properties +4 -0
- package/src/i18n/messagebundle_kk.properties +4 -0
- package/src/i18n/messagebundle_ko.properties +4 -0
- package/src/i18n/messagebundle_lt.properties +4 -0
- package/src/i18n/messagebundle_lv.properties +4 -0
- package/src/i18n/messagebundle_mk.properties +4 -0
- package/src/i18n/messagebundle_ms.properties +4 -0
- package/src/i18n/messagebundle_nl.properties +4 -0
- package/src/i18n/messagebundle_no.properties +4 -0
- package/src/i18n/messagebundle_pl.properties +4 -0
- package/src/i18n/messagebundle_pt.properties +4 -0
- package/src/i18n/messagebundle_pt_PT.properties +4 -0
- package/src/i18n/messagebundle_ro.properties +4 -0
- package/src/i18n/messagebundle_ru.properties +4 -0
- package/src/i18n/messagebundle_sh.properties +4 -0
- package/src/i18n/messagebundle_sk.properties +4 -0
- package/src/i18n/messagebundle_sl.properties +4 -0
- package/src/i18n/messagebundle_sr.properties +4 -0
- package/src/i18n/messagebundle_sv.properties +4 -0
- package/src/i18n/messagebundle_th.properties +4 -0
- package/src/i18n/messagebundle_tr.properties +4 -0
- package/src/i18n/messagebundle_uk.properties +4 -0
- package/src/i18n/messagebundle_vi.properties +4 -0
- package/src/i18n/messagebundle_zh_CN.properties +4 -0
- package/src/i18n/messagebundle_zh_TW.properties +4 -0
- package/src/themes/Button.css +88 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/generated/json-imports/i18n.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/generated/json-imports/i18n.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAE1F,MAAM,mBAAmB,GAAG,KAAK,EAAE,QAAQ,EAAE,EAAE;IAC9C,QAAQ,QAAQ,EAAE;QACjB,KAAK,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,+DAA+D,CAAC,sCAAsC,CAAC,CAAC,CAAC,OAAO,CAAC;QAClJ,KAAK,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,+DAA+D,CAAC,sCAAsC,CAAC,CAAC,CAAC,OAAO,CAAC;QACjJ,KAAK,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,MAAM,CAAC,+DAA+D,CAAC,sCAAsC,CAAC,CAAC,CAAC,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AAQ,CAAC,EAAE;IAC5B,kBAAkB,CAAC,uBAAuB,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;AACvE,CAAC,CAAC,CAAC","sourcesContent":["// @ts-nocheck\nimport { registerI18nLoader } from \"@ui5/webcomponents-base/dist/asset-registries/i18n.js\";\n\n\tconst importMessageBundle = async (localeId) => {\n\t\tswitch (localeId) {\n\t\t\tcase \"ar\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ar\" */ \"../assets/i18n/messagebundle_ar.json\")).default;\n\t\tcase \"bg\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-bg\" */ \"../assets/i18n/messagebundle_bg.json\")).default;\n\t\tcase \"ca\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ca\" */ \"../assets/i18n/messagebundle_ca.json\")).default;\n\t\tcase \"cnr\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-cnr\" */ \"../assets/i18n/messagebundle_cnr.json\")).default;\n\t\tcase \"cs\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-cs\" */ \"../assets/i18n/messagebundle_cs.json\")).default;\n\t\tcase \"cy\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-cy\" */ \"../assets/i18n/messagebundle_cy.json\")).default;\n\t\tcase \"da\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-da\" */ \"../assets/i18n/messagebundle_da.json\")).default;\n\t\tcase \"de\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-de\" */ \"../assets/i18n/messagebundle_de.json\")).default;\n\t\tcase \"el\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-el\" */ \"../assets/i18n/messagebundle_el.json\")).default;\n\t\tcase \"en\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-en\" */ \"../assets/i18n/messagebundle_en.json\")).default;\n\t\tcase \"en_GB\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-en_GB\" */ \"../assets/i18n/messagebundle_en_GB.json\")).default;\n\t\tcase \"en_US_saprigi\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-en_US_saprigi\" */ \"../assets/i18n/messagebundle_en_US_saprigi.json\")).default;\n\t\tcase \"es\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-es\" */ \"../assets/i18n/messagebundle_es.json\")).default;\n\t\tcase \"es_MX\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-es_MX\" */ \"../assets/i18n/messagebundle_es_MX.json\")).default;\n\t\tcase \"et\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-et\" */ \"../assets/i18n/messagebundle_et.json\")).default;\n\t\tcase \"fi\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-fi\" */ \"../assets/i18n/messagebundle_fi.json\")).default;\n\t\tcase \"fr\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-fr\" */ \"../assets/i18n/messagebundle_fr.json\")).default;\n\t\tcase \"fr_CA\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-fr_CA\" */ \"../assets/i18n/messagebundle_fr_CA.json\")).default;\n\t\tcase \"hi\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-hi\" */ \"../assets/i18n/messagebundle_hi.json\")).default;\n\t\tcase \"hr\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-hr\" */ \"../assets/i18n/messagebundle_hr.json\")).default;\n\t\tcase \"hu\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-hu\" */ \"../assets/i18n/messagebundle_hu.json\")).default;\n\t\tcase \"it\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-it\" */ \"../assets/i18n/messagebundle_it.json\")).default;\n\t\tcase \"iw\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-iw\" */ \"../assets/i18n/messagebundle_iw.json\")).default;\n\t\tcase \"ja\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ja\" */ \"../assets/i18n/messagebundle_ja.json\")).default;\n\t\tcase \"kk\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-kk\" */ \"../assets/i18n/messagebundle_kk.json\")).default;\n\t\tcase \"ko\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ko\" */ \"../assets/i18n/messagebundle_ko.json\")).default;\n\t\tcase \"lt\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-lt\" */ \"../assets/i18n/messagebundle_lt.json\")).default;\n\t\tcase \"lv\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-lv\" */ \"../assets/i18n/messagebundle_lv.json\")).default;\n\t\tcase \"mk\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-mk\" */ \"../assets/i18n/messagebundle_mk.json\")).default;\n\t\tcase \"ms\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ms\" */ \"../assets/i18n/messagebundle_ms.json\")).default;\n\t\tcase \"nl\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-nl\" */ \"../assets/i18n/messagebundle_nl.json\")).default;\n\t\tcase \"no\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-no\" */ \"../assets/i18n/messagebundle_no.json\")).default;\n\t\tcase \"pl\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-pl\" */ \"../assets/i18n/messagebundle_pl.json\")).default;\n\t\tcase \"pt\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-pt\" */ \"../assets/i18n/messagebundle_pt.json\")).default;\n\t\tcase \"pt_PT\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-pt_PT\" */ \"../assets/i18n/messagebundle_pt_PT.json\")).default;\n\t\tcase \"ro\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ro\" */ \"../assets/i18n/messagebundle_ro.json\")).default;\n\t\tcase \"ru\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-ru\" */ \"../assets/i18n/messagebundle_ru.json\")).default;\n\t\tcase \"sh\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-sh\" */ \"../assets/i18n/messagebundle_sh.json\")).default;\n\t\tcase \"sk\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-sk\" */ \"../assets/i18n/messagebundle_sk.json\")).default;\n\t\tcase \"sl\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-sl\" */ \"../assets/i18n/messagebundle_sl.json\")).default;\n\t\tcase \"sr\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-sr\" */ \"../assets/i18n/messagebundle_sr.json\")).default;\n\t\tcase \"sv\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-sv\" */ \"../assets/i18n/messagebundle_sv.json\")).default;\n\t\tcase \"th\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-th\" */ \"../assets/i18n/messagebundle_th.json\")).default;\n\t\tcase \"tr\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-tr\" */ \"../assets/i18n/messagebundle_tr.json\")).default;\n\t\tcase \"uk\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-uk\" */ \"../assets/i18n/messagebundle_uk.json\")).default;\n\t\tcase \"vi\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-vi\" */ \"../assets/i18n/messagebundle_vi.json\")).default;\n\t\tcase \"zh_CN\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-zh_CN\" */ \"../assets/i18n/messagebundle_zh_CN.json\")).default;\n\t\tcase \"zh_TW\": return (await import(/* webpackChunkName: \"ui5-webcomponents-ai-messagebundle-zh_TW\" */ \"../assets/i18n/messagebundle_zh_TW.json\")).default;\n\t\t\tdefault: throw \"unknown locale\"\n\t\t}\n\t}\n\n\tconst importAndCheck = async (localeId) => {\n\t\tconst data = await importMessageBundle(localeId);\n\t\tif (typeof data === \"string\" && data.endsWith(\".json\")) {\n\t\t\tthrow new Error(`[i18n] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.`);\n\t\t}\n\t\treturn data;\n\t}\n\n\tconst localeIds = [\"ar\",\n\t\"bg\",\n\t\"ca\",\n\t\"cnr\",\n\t\"cs\",\n\t\"cy\",\n\t\"da\",\n\t\"de\",\n\t\"el\",\n\t\"en\",\n\t\"en_GB\",\n\t\"en_US_saprigi\",\n\t\"es\",\n\t\"es_MX\",\n\t\"et\",\n\t\"fi\",\n\t\"fr\",\n\t\"fr_CA\",\n\t\"hi\",\n\t\"hr\",\n\t\"hu\",\n\t\"it\",\n\t\"iw\",\n\t\"ja\",\n\t\"kk\",\n\t\"ko\",\n\t\"lt\",\n\t\"lv\",\n\t\"mk\",\n\t\"ms\",\n\t\"nl\",\n\t\"no\",\n\t\"pl\",\n\t\"pt\",\n\t\"pt_PT\",\n\t\"ro\",\n\t\"ru\",\n\t\"sh\",\n\t\"sk\",\n\t\"sl\",\n\t\"sr\",\n\t\"sv\",\n\t\"th\",\n\t\"tr\",\n\t\"uk\",\n\t\"vi\",\n\t\"zh_CN\",\n\t\"zh_TW\",];\n\n\tlocaleIds.forEach(localeId => {\n\t\tregisterI18nLoader(\"@ui5/webcomponents-ai\", localeId, importAndCheck);\n\t});\n\t"]}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/* eslint no-unused-vars: 0 */
|
2
2
|
import { html, ifDefined, scopeTag } from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
3
|
-
function block0(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-button", tags, suffix)}
|
3
|
+
function block0(context, tags, suffix) { return suffix ? html `<${scopeTag("ui5-button", tags, suffix)} class="ui5-ai-button-inner" design="${ifDefined(this.design)}" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled="${this.disabled}" @click=${this._onclick}>${this._hasText ? block1.call(this, context, tags, suffix) : undefined}</${scopeTag("ui5-button", tags, suffix)}><${scopeTag("ui5-button", tags, suffix)} class="ui5-ai-button-hidden" design="${ifDefined(this.design)}"></${scopeTag("ui5-button", tags, suffix)}>` : html `<ui5-button class="ui5-ai-button-inner" design="${ifDefined(this.design)}" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled="${this.disabled}" @click=${this._onclick}>${this._hasText ? block1.call(this, context, tags, suffix) : undefined}</ui5-button><ui5-button class="ui5-ai-button-hidden" design="${ifDefined(this.design)}"></ui5-button>`; }
|
4
|
+
function block1(context, tags, suffix) { return html `<div class="ui5-ai-button-text">${ifDefined(this._stateText)}</div>`; }
|
4
5
|
export default block0;
|
5
6
|
//# sourceMappingURL=ButtonTemplate.lit.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ButtonTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/ButtonTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAmC,SAAS,EAAc,QAAQ,EAAE,MAAM,sDAAsD,CAAC;AAK9I,SAAS,MAAM,CAAgB,OAAmB,EAAE,IAAc,EAAE,MAA0B,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAA,IAAI,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,
|
1
|
+
{"version":3,"file":"ButtonTemplate.lit.js","sourceRoot":"","sources":["../../../src/generated/templates/ButtonTemplate.lit.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,IAAI,EAAmC,SAAS,EAAc,QAAQ,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AmC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA,CAAC;AAGpL,eAAe,MAAM,CAAC","sourcesContent":["/* eslint no-unused-vars: 0 */\nimport { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport type UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\n\timport type Button from \"../../Button.js\";\n\timport type { ClassMapValue } from \"@ui5/webcomponents-base/dist/types.js\";\n\t\nfunction block0 (this: Button, context: UI5Element, tags: string[], suffix: string | undefined) { return suffix ? html`<${scopeTag(\"ui5-button\", tags, suffix)} class=\"ui5-ai-button-inner\" design=\"${ifDefined(this.design)}\" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled=\"${this.disabled}\" @click=${this._onclick}>${ this._hasText ? block1.call(this, context, tags, suffix) : undefined }</${scopeTag(\"ui5-button\", tags, suffix)}><${scopeTag(\"ui5-button\", tags, suffix)} class=\"ui5-ai-button-hidden\" design=\"${ifDefined(this.design)}\"></${scopeTag(\"ui5-button\", tags, suffix)}>` : html`<ui5-button class=\"ui5-ai-button-inner\" design=\"${ifDefined(this.design)}\" icon=${ifDefined(this._stateIcon)} end-icon=${ifDefined(this._stateEndIcon)} ?disabled=\"${this.disabled}\" @click=${this._onclick}>${ this._hasText ? block1.call(this, context, tags, suffix) : undefined }</ui5-button><ui5-button class=\"ui5-ai-button-hidden\" design=\"${ifDefined(this.design)}\"></ui5-button>`;}\nfunction block1 (this: Button, context: UI5Element, tags: string[], suffix: string | undefined) { return html`<div class=\"ui5-ai-button-text\">${ifDefined(this._stateText)}</div>`;}\n\n\nexport default block0;"]}
|
@@ -3,6 +3,7 @@ import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/s
|
|
3
3
|
import defaultTheme from "./sap_horizon/parameters-bundle.css.js";
|
4
4
|
registerThemePropertiesLoader("@ui5/webcomponents-theming", "sap_horizon", async () => defaultThemeBase);
|
5
5
|
registerThemePropertiesLoader("@ui5/webcomponents-ai", "sap_horizon", async () => defaultTheme);
|
6
|
-
const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/Button.css.ts", content:
|
6
|
+
const styleData = { packageName: "@ui5/webcomponents-ai", fileName: "themes/Button.css.ts", content: `:host{display:inline-block}:host([disabled]){pointer-events:none}.ui5-ai-button-text{display:inline-block}:host([icon-only]) .ui5-ai-button-text{min-width:0;margin-inline-start:0}.ui5-ai-button-hidden{position:absolute;top:-10000px;left:-10000px;visibility:hidden;display:block;width:fit-content}:host [ui5-button]:not(.ui5-ai-button-hidden){width:auto;position:relative;transition:width .18s cubic-bezier(.67,1,.95,1.3) .12s}:host ::part(icon){opacity:1;transform:translateY(0)}:host(:not([fade-out]):not([fade-mid]):not([fade-in])) .ui5-ai-button-text,:host(:not([fade-out]):not([fade-mid]):not([fade-in])) ::part(endIcon){opacity:1;transform:translateY(0)}:host([fade-out]:not([fade-mid])) ::part(icon){opacity:0;transform:translateY(-1rem);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-out]:not([fade-mid])) .ui5-ai-button-text,:host([fade-out]:not([fade-mid])) ::part(endIcon){opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host([fade-mid]) ::part(icon){opacity:0;transform:translateY(1rem)}:host([fade-mid]) .ui5-ai-button-text,:host([fade-mid]) ::part(endIcon){opacity:0;transform:translateY(1rem);transition:none}:host([fade-in]) ::part(icon){opacity:1;transform:translateY(0);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-in]) .ui5-ai-button-text,:host([fade-in]) ::part(endIcon){opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}
|
7
|
+
` };
|
7
8
|
export default styleData;
|
8
9
|
//# sourceMappingURL=Button.css.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,uBAAuB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAEhG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"Button.css.js","sourceRoot":"","sources":["../../../src/generated/themes/Button.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAExG,OAAO,gBAAgB,MAAM,uFAAuF,CAAC;AACrH,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAElE,6BAA6B,CAAC,4BAA4B,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACzG,6BAA6B,CAAC,uBAAuB,EAAE,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,YAAY,CAAC,CAAC;AAEhG,MAAM,SAAS,GAAc,EAAC,WAAW,EAAC,uBAAuB,EAAC,QAAQ,EAAC,sBAAsB,EAAC,OAAO,EAAC;CACzG,EAAC,CAAC;AACH,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"@ui5/webcomponents-base/dist/types.js\";\nimport { registerThemePropertiesLoader } from \"@ui5/webcomponents-base/dist/asset-registries/Themes.js\";\n\nimport defaultThemeBase from \"@ui5/webcomponents-theming/dist/generated/themes/sap_horizon/parameters-bundle.css.js\";\nimport defaultTheme from \"./sap_horizon/parameters-bundle.css.js\";\n\nregisterThemePropertiesLoader(\"@ui5/webcomponents-theming\", \"sap_horizon\", async () => defaultThemeBase);\nregisterThemePropertiesLoader(\"@ui5/webcomponents-ai\", \"sap_horizon\", async () => defaultTheme);\n\nconst styleData: StyleData = {packageName:\"@ui5/webcomponents-ai\",fileName:\"themes/Button.css.ts\",content:`:host{display:inline-block}:host([disabled]){pointer-events:none}.ui5-ai-button-text{display:inline-block}:host([icon-only]) .ui5-ai-button-text{min-width:0;margin-inline-start:0}.ui5-ai-button-hidden{position:absolute;top:-10000px;left:-10000px;visibility:hidden;display:block;width:fit-content}:host [ui5-button]:not(.ui5-ai-button-hidden){width:auto;position:relative;transition:width .18s cubic-bezier(.67,1,.95,1.3) .12s}:host ::part(icon){opacity:1;transform:translateY(0)}:host(:not([fade-out]):not([fade-mid]):not([fade-in])) .ui5-ai-button-text,:host(:not([fade-out]):not([fade-mid]):not([fade-in])) ::part(endIcon){opacity:1;transform:translateY(0)}:host([fade-out]:not([fade-mid])) ::part(icon){opacity:0;transform:translateY(-1rem);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-out]:not([fade-mid])) .ui5-ai-button-text,:host([fade-out]:not([fade-mid])) ::part(endIcon){opacity:0;transform:translateY(-1rem);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}:host([fade-mid]) ::part(icon){opacity:0;transform:translateY(1rem)}:host([fade-mid]) .ui5-ai-button-text,:host([fade-mid]) ::part(endIcon){opacity:0;transform:translateY(1rem);transition:none}:host([fade-in]) ::part(icon){opacity:1;transform:translateY(0);transition:opacity .05s ease-in-out 25ms,transform .1s ease-in-out 0s}:host([fade-in]) .ui5-ai-button-text,:host([fade-in]) ::part(endIcon){opacity:1;transform:translateY(0);transition:opacity .06s ease-in-out .12s,transform .08s ease-in-out .12s}\n`};\nexport default styleData;\n\t"]}
|
@@ -3,12 +3,56 @@
|
|
3
3
|
"tags": [
|
4
4
|
{
|
5
5
|
"name": "ui5-ai-button",
|
6
|
-
"description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a
|
6
|
+
"description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a name that identifies it and can have text, icon and end icon defined (in any combination) depending on the state purpose.\n\nYou can choose from a set of predefined designs (the same as for regular `ui5-button` component) that allow different styling to correspond to the triggered action.\n\n`ui5-ai-button` can be activated by clicking or tapping it. The state can be changed in `click` event handler.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`\n\n\n---\n\n\n\n\n### **Events:**\n - **click** - Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key.\n\n### **Slots:**\n - **default** - Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use `ui5-ai-button-state` components in order to preserve the intended design.",
|
7
7
|
"attributes": [
|
8
|
+
{
|
9
|
+
"name": "design",
|
10
|
+
"description": "Defines the component design.",
|
11
|
+
"values": [
|
12
|
+
{ "name": "Default" },
|
13
|
+
{ "name": "Positive" },
|
14
|
+
{ "name": "Negative" },
|
15
|
+
{ "name": "Transparent" },
|
16
|
+
{ "name": "Emphasized" },
|
17
|
+
{ "name": "Attention" }
|
18
|
+
]
|
19
|
+
},
|
8
20
|
{
|
9
21
|
"name": "disabled",
|
10
22
|
"description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
|
11
23
|
"values": []
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"name": "state",
|
27
|
+
"description": "Defines the current state of the component.",
|
28
|
+
"values": []
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"references": []
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "ui5-ai-button-state",
|
35
|
+
"description": "### Overview\n\n`ui5-ai-button-state` is the item to use for defining states of `ui5-ai-button` components.\n\n### Usage\n\n`ui5-si-button-state` is an abstract element, representing a state of `ui5-ai-button`. It is meant to be used in the `states` slot\nof `ui5-ai-button` and should be used as standalone component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/AiButtonState.js\";`\n\n\n---\n\n\n",
|
36
|
+
"attributes": [
|
37
|
+
{
|
38
|
+
"name": "name",
|
39
|
+
"description": "Defines the name of the button state.",
|
40
|
+
"values": []
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"name": "text",
|
44
|
+
"description": "Defines the text of the button in this state.",
|
45
|
+
"values": []
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"name": "icon",
|
49
|
+
"description": "Defines the icon to be displayed as graphical element within the component before the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
50
|
+
"values": []
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "end-icon",
|
54
|
+
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
55
|
+
"values": []
|
12
56
|
}
|
13
57
|
],
|
14
58
|
"references": []
|
@@ -61,10 +105,10 @@
|
|
61
105
|
"name": "value-state",
|
62
106
|
"description": "Defines the value state of the component.",
|
63
107
|
"values": [
|
64
|
-
{ "name": "None" },
|
65
108
|
{ "name": "Positive" },
|
66
|
-
{ "name": "Critical" },
|
67
109
|
{ "name": "Negative" },
|
110
|
+
{ "name": "None" },
|
111
|
+
{ "name": "Critical" },
|
68
112
|
{ "name": "Information" }
|
69
113
|
]
|
70
114
|
}
|
package/dist/web-types.json
CHANGED
@@ -1,29 +1,123 @@
|
|
1
1
|
{
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
3
3
|
"name": "@ui5/webcomponents-ai",
|
4
|
-
"version": "2.0.0
|
4
|
+
"version": "2.0.0",
|
5
5
|
"description-markup": "markdown",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
8
8
|
"elements": [
|
9
9
|
{
|
10
10
|
"name": "ui5-ai-button",
|
11
|
-
"description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a
|
11
|
+
"description": "### Overview\n\nThe `ui5-ai-button` component represents a button used in AI-related scenarios.\nIt enables users to trigger actions by clicking or tapping the `ui5-ai-button`, or by pressing\ncertain keyboard keys, such as Enter.\n\n### Usage\n\nFor the `ui5-ai-button` UI, you can define one or more states of the button by placing `ai-button-state` components in its default slot.\nEach state have a name that identifies it and can have text, icon and end icon defined (in any combination) depending on the state purpose.\n\nYou can choose from a set of predefined designs (the same as for regular `ui5-button` component) that allow different styling to correspond to the triggered action.\n\n`ui5-ai-button` can be activated by clicking or tapping it. The state can be changed in `click` event handler.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-ai/dist/Button.js\";`\n---\n\n\n### **Events:**\n - **click** - Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key.\n\n### **Slots:**\n - **default** - Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use `ui5-ai-button-state` components in order to preserve the intended design.",
|
12
12
|
"doc-url": "",
|
13
13
|
"attributes": [
|
14
|
+
{
|
15
|
+
"name": "design",
|
16
|
+
"description": "Defines the component design.",
|
17
|
+
"value": {
|
18
|
+
"type": "\"Default\" | \"Positive\" | \"Negative\" | \"Transparent\" | \"Emphasized\" | \"Attention\" | undefined",
|
19
|
+
"default": "\"Default\""
|
20
|
+
}
|
21
|
+
},
|
14
22
|
{
|
15
23
|
"name": "disabled",
|
16
24
|
"description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
|
17
25
|
"value": { "type": "boolean", "default": "false" }
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"name": "state",
|
29
|
+
"description": "Defines the current state of the component.",
|
30
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
31
|
+
}
|
32
|
+
],
|
33
|
+
"slots": [
|
34
|
+
{
|
35
|
+
"name": "default",
|
36
|
+
"description": "Defines the available states of the component.\n**Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use `ui5-ai-button-state` components in order to preserve the intended design."
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"events": [
|
40
|
+
{
|
41
|
+
"name": "click",
|
42
|
+
"description": "Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key."
|
18
43
|
}
|
19
44
|
],
|
20
|
-
"events": [],
|
21
45
|
"js": {
|
22
46
|
"properties": [
|
47
|
+
{
|
48
|
+
"name": "design",
|
49
|
+
"description": "Defines the component design.",
|
50
|
+
"value": {
|
51
|
+
"type": "\"Default\" | \"Positive\" | \"Negative\" | \"Transparent\" | \"Emphasized\" | \"Attention\" | undefined"
|
52
|
+
}
|
53
|
+
},
|
23
54
|
{
|
24
55
|
"name": "disabled",
|
25
56
|
"description": "Defines whether the component is disabled.\nA disabled component can't be pressed or\nfocused, and it is not in the tab chain.",
|
26
57
|
"value": { "type": "boolean" }
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"name": "state",
|
61
|
+
"description": "Defines the current state of the component.",
|
62
|
+
"value": { "type": "string | undefined" }
|
63
|
+
}
|
64
|
+
],
|
65
|
+
"events": [
|
66
|
+
{
|
67
|
+
"name": "click",
|
68
|
+
"description": "Fired when the component is activated either with a\nmouse/tap or by using the Enter or Space key."
|
69
|
+
}
|
70
|
+
]
|
71
|
+
}
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"name": "ui5-ai-button-state",
|
75
|
+
"description": "### Overview\n\n`ui5-ai-button-state` is the item to use for defining states of `ui5-ai-button` components.\n\n### Usage\n\n`ui5-si-button-state` is an abstract element, representing a state of `ui5-ai-button`. It is meant to be used in the `states` slot\nof `ui5-ai-button` and should be used as standalone component.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/AiButtonState.js\";`\n---\n",
|
76
|
+
"doc-url": "",
|
77
|
+
"attributes": [
|
78
|
+
{
|
79
|
+
"name": "name",
|
80
|
+
"description": "Defines the name of the button state.",
|
81
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"name": "text",
|
85
|
+
"description": "Defines the text of the button in this state.",
|
86
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"name": "icon",
|
90
|
+
"description": "Defines the icon to be displayed as graphical element within the component before the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
91
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"name": "end-icon",
|
95
|
+
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
96
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"events": [],
|
100
|
+
"js": {
|
101
|
+
"properties": [
|
102
|
+
{
|
103
|
+
"name": "name",
|
104
|
+
"description": "Defines the name of the button state.",
|
105
|
+
"value": { "type": "string | undefined" }
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"name": "text",
|
109
|
+
"description": "Defines the text of the button in this state.",
|
110
|
+
"value": { "type": "string | undefined" }
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"name": "icon",
|
114
|
+
"description": "Defines the icon to be displayed as graphical element within the component before the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
115
|
+
"value": { "type": "string | undefined" }
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"name": "end-icon",
|
119
|
+
"description": "Defines the icon to be displayed as graphical element within the component after the text.\nThe SAP-icons font provides numerous options.\n\n**Example:**\n\nSee all the available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html).",
|
120
|
+
"value": { "type": "string | undefined" }
|
27
121
|
}
|
28
122
|
],
|
29
123
|
"events": []
|
@@ -42,12 +136,12 @@
|
|
42
136
|
{
|
43
137
|
"name": "placeholder",
|
44
138
|
"description": "Defines a short hint intended to aid the user with data entry when the\ncomponent has no value.",
|
45
|
-
"value": { "type": "string", "default": "
|
139
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
46
140
|
},
|
47
141
|
{
|
48
142
|
"name": "label",
|
49
143
|
"description": "Defines the label of the input field.",
|
50
|
-
"value": { "type": "string", "default": "
|
144
|
+
"value": { "type": "string | undefined", "default": "undefined" }
|
51
145
|
},
|
52
146
|
{
|
53
147
|
"name": "show-clear-icon",
|
@@ -78,7 +172,7 @@
|
|
78
172
|
"name": "value-state",
|
79
173
|
"description": "Defines the value state of the component.",
|
80
174
|
"value": {
|
81
|
-
"type": "\"
|
175
|
+
"type": "\"Positive\" | \"Negative\" | \"None\" | \"Critical\" | \"Information\"",
|
82
176
|
"default": "\"None\""
|
83
177
|
}
|
84
178
|
}
|
@@ -113,12 +207,12 @@
|
|
113
207
|
{
|
114
208
|
"name": "placeholder",
|
115
209
|
"description": "Defines a short hint intended to aid the user with data entry when the\ncomponent has no value.",
|
116
|
-
"value": { "type": "string" }
|
210
|
+
"value": { "type": "string | undefined" }
|
117
211
|
},
|
118
212
|
{
|
119
213
|
"name": "label",
|
120
214
|
"description": "Defines the label of the input field.",
|
121
|
-
"value": { "type": "string" }
|
215
|
+
"value": { "type": "string | undefined" }
|
122
216
|
},
|
123
217
|
{
|
124
218
|
"name": "show-clear-icon",
|
@@ -149,7 +243,7 @@
|
|
149
243
|
"name": "value-state",
|
150
244
|
"description": "Defines the value state of the component.",
|
151
245
|
"value": {
|
152
|
-
"type": "\"
|
246
|
+
"type": "\"Positive\" | \"Negative\" | \"None\" | \"Critical\" | \"Information\""
|
153
247
|
}
|
154
248
|
}
|
155
249
|
],
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-ai",
|
3
|
-
"version": "2.0.0
|
3
|
+
"version": "2.0.0",
|
4
4
|
"description": "UI5 Web Components: webcomponents.ai",
|
5
5
|
"ui5": {
|
6
6
|
"webComponentsPackage": true
|
@@ -45,14 +45,14 @@
|
|
45
45
|
"directory": "packages/ai"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"@ui5/webcomponents": "2.0.0
|
49
|
-
"@ui5/webcomponents-base": "2.0.0
|
50
|
-
"@ui5/webcomponents-icons": "2.0.0
|
51
|
-
"@ui5/webcomponents-theming": "2.0.0
|
48
|
+
"@ui5/webcomponents": "2.0.0",
|
49
|
+
"@ui5/webcomponents-base": "2.0.0",
|
50
|
+
"@ui5/webcomponents-icons": "2.0.0",
|
51
|
+
"@ui5/webcomponents-theming": "2.0.0"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
-
"@ui5/webcomponents-tools": "2.0.0
|
54
|
+
"@ui5/webcomponents-tools": "2.0.0",
|
55
55
|
"chromedriver": "^125.0.0"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "2960694d66c4b62d4240e3d45e1401dd94f61aec"
|
58
58
|
}
|
package/src/Button.hbs
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
-
<ui5-button
|
2
|
-
|
3
|
-
|
1
|
+
<ui5-button
|
2
|
+
class="ui5-ai-button-inner"
|
3
|
+
design="{{design}}"
|
4
|
+
icon={{_stateIcon}}
|
5
|
+
end-icon={{_stateEndIcon}}
|
6
|
+
?disabled="{{disabled}}"
|
7
|
+
@click={{_onclick}}
|
8
|
+
>
|
9
|
+
{{#if _hasText}}
|
10
|
+
<div class="ui5-ai-button-text">{{_stateText}}</div>
|
11
|
+
{{/if}}
|
12
|
+
</ui5-button>
|
13
|
+
|
14
|
+
<ui5-button
|
15
|
+
class="ui5-ai-button-hidden"
|
16
|
+
design="{{design}}"
|
17
|
+
></ui5-button>
|