@aurodesignsystem/auro-formkit 1.6.0-beta.5 → 1.6.0-beta.7
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/.turbo/cache/01de6ab3df8b7e1e-meta.json +1 -0
- package/.turbo/cache/{754a6b5c5ce1ed00.tar.zst → 01de6ab3df8b7e1e.tar.zst} +0 -0
- package/.turbo/cache/10feda0f037804bb-meta.json +1 -1
- package/.turbo/cache/11079d2746265545-meta.json +1 -0
- package/.turbo/cache/11079d2746265545.tar.zst +0 -0
- package/.turbo/cache/115c4b73a12f5275-meta.json +1 -0
- package/.turbo/cache/144e8e78657bf800-meta.json +1 -1
- package/.turbo/cache/18939b2c7c83b163-meta.json +1 -1
- package/.turbo/cache/1de685df0eaa39c8-meta.json +1 -1
- package/.turbo/cache/1ec139dcf090d547-meta.json +1 -0
- package/.turbo/cache/1f53ce3a28c56cdf-meta.json +1 -1
- package/.turbo/cache/23bf100310bd9f5a-meta.json +1 -1
- package/.turbo/cache/2900e7ec28e1488f-meta.json +1 -1
- package/.turbo/cache/296074aadfa2f8c9-meta.json +1 -1
- package/.turbo/cache/296074aadfa2f8c9.tar.zst +0 -0
- package/.turbo/cache/29e29355bf6fb4fd-meta.json +1 -1
- package/.turbo/cache/2cbcbc4a17387253-meta.json +1 -0
- package/.turbo/cache/2cbcbc4a17387253.tar.zst +0 -0
- package/.turbo/cache/2f6c898fbb51e995-meta.json +1 -0
- package/.turbo/cache/2f6c898fbb51e995.tar.zst +0 -0
- package/.turbo/cache/3073b96f6e4d867c-meta.json +1 -1
- package/.turbo/cache/33466ea2930c3714-meta.json +1 -1
- package/.turbo/cache/3426941a74b0731e-meta.json +1 -0
- package/.turbo/cache/3426941a74b0731e.tar.zst +0 -0
- package/.turbo/cache/38b0799e2f7e62c5-meta.json +1 -0
- package/.turbo/cache/38b0799e2f7e62c5.tar.zst +0 -0
- package/.turbo/cache/3fbc89f461c495db-meta.json +1 -0
- package/.turbo/cache/3fbc89f461c495db.tar.zst +0 -0
- package/.turbo/cache/451e562c76f74ec6-meta.json +1 -1
- package/.turbo/cache/4520919609c97850-meta.json +1 -1
- package/.turbo/cache/452908d0b0b676bc-meta.json +1 -1
- package/.turbo/cache/48c197e39ed31fd2-meta.json +1 -1
- package/.turbo/cache/48c197e39ed31fd2.tar.zst +0 -0
- package/.turbo/cache/5058ecc7f1e34496-meta.json +1 -1
- package/.turbo/cache/5a66a99aa1344401-meta.json +1 -1
- package/.turbo/cache/5b66ce21630716cc-meta.json +1 -1
- package/.turbo/cache/6002b76d50b8d1ff-meta.json +1 -0
- package/.turbo/cache/6002b76d50b8d1ff.tar.zst +0 -0
- package/.turbo/cache/627e964e19b2bda5-meta.json +1 -0
- package/.turbo/cache/{3ac4a22a21bdc2be.tar.zst → 627e964e19b2bda5.tar.zst} +0 -0
- package/.turbo/cache/6907ebaae4f3a96b-meta.json +1 -0
- package/.turbo/cache/6907ebaae4f3a96b.tar.zst +0 -0
- package/.turbo/cache/6f7175be597945f7-meta.json +1 -0
- package/.turbo/cache/6f7175be597945f7.tar.zst +0 -0
- package/.turbo/cache/70d7b72f15ee97a4-meta.json +1 -1
- package/.turbo/cache/7cfdc01c415c836c-meta.json +1 -0
- package/.turbo/cache/7cfdc01c415c836c.tar.zst +0 -0
- package/.turbo/cache/897b0d8a0c301207-meta.json +1 -1
- package/.turbo/cache/8b7cdb9a0d4c3112-meta.json +1 -1
- package/.turbo/cache/8e1f402b247ebed6-meta.json +1 -1
- package/.turbo/cache/8e1f402b247ebed6.tar.zst +0 -0
- package/.turbo/cache/90b8d9ccef5e09aa-meta.json +1 -0
- package/.turbo/cache/90b8d9ccef5e09aa.tar.zst +0 -0
- package/.turbo/cache/936bccb44ade3650-meta.json +1 -0
- package/.turbo/cache/936bccb44ade3650.tar.zst +0 -0
- package/.turbo/cache/94bcc4c6536ada9d-meta.json +1 -0
- package/.turbo/cache/94bcc4c6536ada9d.tar.zst +0 -0
- package/.turbo/cache/990b9def0e83d33c-meta.json +1 -0
- package/.turbo/cache/990b9def0e83d33c.tar.zst +0 -0
- package/.turbo/cache/a532f4b8302ca13e-meta.json +1 -0
- package/.turbo/cache/a532f4b8302ca13e.tar.zst +0 -0
- package/.turbo/cache/a7bf477bbdabc7bc-meta.json +1 -1
- package/.turbo/cache/a90aa34f427a2f62-meta.json +1 -1
- package/.turbo/cache/aedda428051043c4-meta.json +1 -0
- package/.turbo/cache/aedda428051043c4.tar.zst +0 -0
- package/.turbo/cache/afc38ab505ef6dbb-meta.json +1 -0
- package/.turbo/cache/{2ca214d032893e74.tar.zst → afc38ab505ef6dbb.tar.zst} +0 -0
- package/.turbo/cache/b1ed317b29e85c9d-meta.json +1 -0
- package/.turbo/cache/b1ed317b29e85c9d.tar.zst +0 -0
- package/.turbo/cache/b61416daf63fbaad-meta.json +1 -1
- package/.turbo/cache/b76edfbd1c076b0a-meta.json +1 -0
- package/.turbo/cache/b76edfbd1c076b0a.tar.zst +0 -0
- package/.turbo/cache/b9463532618cdc61-meta.json +1 -1
- package/.turbo/cache/bb3afea40c91e8ba-meta.json +1 -1
- package/.turbo/cache/c4df38a7e2cc767a-meta.json +1 -0
- package/.turbo/cache/{77bf3068f493ef24.tar.zst → c4df38a7e2cc767a.tar.zst} +0 -0
- package/.turbo/cache/c63dc7b6157da70b-meta.json +1 -1
- package/.turbo/cache/c8b63b6e8a190eb9-meta.json +1 -1
- package/.turbo/cache/d35b1eee9f2881af-meta.json +1 -1
- package/.turbo/cache/d5188c0fbe45d578-meta.json +1 -1
- package/.turbo/cache/e4b3ec56d4ae56ba-meta.json +1 -1
- package/.turbo/cache/e6f030eddf6fbf4e-meta.json +1 -1
- package/.turbo/cache/ff7e6d09efd93145-meta.json +1 -1
- package/.turbo/cache/ff7e6d09efd93145.tar.zst +0 -0
- package/CHANGELOG.md +26 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +6 -3
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +2 -0
- package/components/combobox/demo/api.md +73 -0
- package/components/combobox/demo/api.min.js +966 -833
- package/components/combobox/demo/index.min.js +931 -837
- package/components/combobox/dist/auro-combobox.d.ts +20 -0
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +69 -27
- package/components/combobox/src/auro-combobox.js +60 -23
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/demo/api.md +1053 -0
- package/components/datepicker/demo/api.min.js +10 -4
- package/components/datepicker/demo/index.min.js +10 -4
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +10 -4
- package/components/datepicker/src/auro-datepicker.js +1 -0
- package/components/dropdown/.turbo/turbo-build.log +7 -7
- package/components/dropdown/.turbo/turbo-bundler.log +3 -3
- package/components/dropdown/demo/api.html +2 -0
- package/components/dropdown/demo/api.md +47 -41
- package/components/dropdown/demo/api.min.js +9 -4
- package/components/dropdown/demo/index.md +97 -53
- package/components/dropdown/demo/index.min.js +9 -4
- package/components/dropdown/dist/auro-dropdown.d.ts +7 -2
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +9 -4
- package/components/dropdown/src/auro-dropdown.js +7 -2
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +2 -2
- package/components/dropdown/src/styles/bibStyles.scss +2 -2
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +6 -0
- package/components/dropdown/src/styles/style.scss +6 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/menu/.turbo/turbo-build.log +6 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/demo/api.html +2 -0
- package/components/menu/demo/api.js +2 -0
- package/components/menu/demo/api.md +164 -22
- package/components/menu/demo/api.min.js +912 -853
- package/components/menu/demo/index.min.js +905 -853
- package/components/menu/dist/auro-menu.d.ts +28 -2
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/auro-menuoption.d.ts +1 -1
- package/components/menu/dist/index.js +905 -853
- package/components/menu/src/auro-menu.js +57 -7
- package/components/menu/src/auro-menuoption.js +1 -1
- package/components/menu/src/styles/style-menu-css.js +1 -1
- package/components/menu/src/styles/style-menu.css +21 -3
- package/components/menu/src/styles/style-menu.scss +25 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +6 -3
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +66 -0
- package/components/select/demo/api.min.js +938 -816
- package/components/select/demo/index.min.js +905 -815
- package/components/select/dist/auro-select.d.ts +19 -0
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +42 -4
- package/components/select/src/auro-select.js +33 -0
- package/package.json +1 -1
- package/packages/build-tools/src/docProcessor.mjs +4 -4
- package/packages/build-tools/src/kitDocProcessor.mjs +4 -4
- package/.turbo/cache/01aa76a50fa4c8ad-meta.json +0 -1
- package/.turbo/cache/01aa76a50fa4c8ad.tar.zst +0 -0
- package/.turbo/cache/05be1236a4cd5e72-meta.json +0 -1
- package/.turbo/cache/05be1236a4cd5e72.tar.zst +0 -0
- package/.turbo/cache/1f3b6e5b310ff590-meta.json +0 -1
- package/.turbo/cache/1f3b6e5b310ff590.tar.zst +0 -0
- package/.turbo/cache/2ca214d032893e74-meta.json +0 -1
- package/.turbo/cache/2dd00eb6e255bd02-meta.json +0 -1
- package/.turbo/cache/2dd00eb6e255bd02.tar.zst +0 -0
- package/.turbo/cache/3792d285b464b3e6-meta.json +0 -1
- package/.turbo/cache/3792d285b464b3e6.tar.zst +0 -0
- package/.turbo/cache/38030191e9c3ecd0-meta.json +0 -1
- package/.turbo/cache/38030191e9c3ecd0.tar.zst +0 -0
- package/.turbo/cache/3ac4a22a21bdc2be-meta.json +0 -1
- package/.turbo/cache/54475627b302de03-meta.json +0 -1
- package/.turbo/cache/54475627b302de03.tar.zst +0 -0
- package/.turbo/cache/5d064e768a262314-meta.json +0 -1
- package/.turbo/cache/5d064e768a262314.tar.zst +0 -0
- package/.turbo/cache/5f324af6052902f3-meta.json +0 -1
- package/.turbo/cache/6bc6e817c13e2b9d-meta.json +0 -1
- package/.turbo/cache/6bc6e817c13e2b9d.tar.zst +0 -0
- package/.turbo/cache/6f2c238248445944-meta.json +0 -1
- package/.turbo/cache/754a6b5c5ce1ed00-meta.json +0 -1
- package/.turbo/cache/77bf3068f493ef24-meta.json +0 -1
- package/.turbo/cache/7ddb7ace73fe6ec2-meta.json +0 -1
- package/.turbo/cache/7ddb7ace73fe6ec2.tar.zst +0 -0
- package/.turbo/cache/8a47fd250364f95a-meta.json +0 -1
- package/.turbo/cache/8a47fd250364f95a.tar.zst +0 -0
- package/.turbo/cache/9135f474c69d1b3c-meta.json +0 -1
- package/.turbo/cache/9135f474c69d1b3c.tar.zst +0 -0
- package/.turbo/cache/9a7ab914e08ce75f-meta.json +0 -1
- package/.turbo/cache/9a7ab914e08ce75f.tar.zst +0 -0
- package/.turbo/cache/ae152fd876a6f549-meta.json +0 -1
- package/.turbo/cache/ae152fd876a6f549.tar.zst +0 -0
- package/.turbo/cache/d8bd6f80733c28af-meta.json +0 -1
- package/.turbo/cache/d8bd6f80733c28af.tar.zst +0 -0
- package/.turbo/cache/dce6f67be2b63c18-meta.json +0 -1
- package/.turbo/cache/dce6f67be2b63c18.tar.zst +0 -0
- package/.turbo/cache/dfe3a7b21c7fcb08-meta.json +0 -1
- package/.turbo/cache/dfe3a7b21c7fcb08.tar.zst +0 -0
- package/.turbo/cache/f8664d3dce006bdf-meta.json +0 -1
- package/.turbo/cache/f8664d3dce006bdf.tar.zst +0 -0
- /package/.turbo/cache/{6f2c238248445944.tar.zst → 115c4b73a12f5275.tar.zst} +0 -0
- /package/.turbo/cache/{5f324af6052902f3.tar.zst → 1ec139dcf090d547.tar.zst} +0 -0
|
@@ -130,6 +130,10 @@ export class AuroCombobox extends LitElement {
|
|
|
130
130
|
* @private
|
|
131
131
|
*/
|
|
132
132
|
private runtimeUtils;
|
|
133
|
+
/**
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
private isHiddenWhileLoading;
|
|
133
137
|
dropdownTag: any;
|
|
134
138
|
inputTag: any;
|
|
135
139
|
/**
|
|
@@ -187,6 +191,21 @@ export class AuroCombobox extends LitElement {
|
|
|
187
191
|
*/
|
|
188
192
|
private configureInput;
|
|
189
193
|
auroInputHelpText: any;
|
|
194
|
+
/**
|
|
195
|
+
* Manages the visibility of the dropdown based on loading state changes.
|
|
196
|
+
*
|
|
197
|
+
* This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
|
|
198
|
+
* If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
|
|
199
|
+
* and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
|
|
200
|
+
* hidden, it checks if the active element is within the dropdown and shows it again if true.
|
|
201
|
+
*
|
|
202
|
+
* @private
|
|
203
|
+
* @param {CustomEvent} event - The event object containing details about the loading state change.
|
|
204
|
+
* @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
|
|
205
|
+
* @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
|
|
206
|
+
* @returns {void}
|
|
207
|
+
*/
|
|
208
|
+
private handleMenuLoadingChange;
|
|
190
209
|
/**
|
|
191
210
|
* Handle changes to the input value and trigger changes that should result.
|
|
192
211
|
* @private
|
|
@@ -212,6 +231,7 @@ export class AuroCombobox extends LitElement {
|
|
|
212
231
|
/**
|
|
213
232
|
* Watch for slot changes and recalculate the menuoptions.
|
|
214
233
|
* @private
|
|
234
|
+
* @param {Event} event - slotchange event
|
|
215
235
|
* @returns {void}
|
|
216
236
|
*/
|
|
217
237
|
private handleSlotChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;GAkBG;AAGH;
|
|
1
|
+
{"version":3,"file":"auro-combobox.d.ts","sourceRoot":"","sources":["../src/auro-combobox.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;GAkBG;AAGH;IA+CE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8CI;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;QAGH;;WAEG;;;;MAGN;IAED,+CAEC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA5IC,kBAAqB;IACrB,cAAyB;IACzB,WAAiB;IACjB,oBAA0B;IAI1B;;OAEG;IACH,mBAA0C;IAE1C;;OAEG;IACH,qBAAiD;IAEjD;;OAEG;IACH,6BAAiC;IAMjC,iBAAyF;IACzF,cAA6E;IAG/E;;;OAGG;IACH,wBAIC;IAHC,wBAA0B;IAC1B,kBAAwB;IACxB,4BAAqD;IAyGvD;;;;OAIG;IACH,0BAiDC;IA1CG,mBAA8B;IA4ClC;;;;OAIG;IACH,6BAMC;IAJG,qCAA+E;IAMnF;;;;OAIG;IACH,gBAIC;IAED;;;;OAIG;IACH,gBAcC;IAED;;;;OAIG;IACH,0BAaC;IAZC,iBAA8D;IAchE;;;;OAIG;IACH,sBAyEC;IAxEC,cAAwD;IA0E1D;;;;OAIG;IACH,uBAuEC;IAFG,uBAA2C;IAI/C;;;;;;;;;;;;;OAaG;IACH,gCAOC;IAED;;;;OAIG;IACH,+BAeC;IAED;;;;OAIG;IACH,0BAqCC;IAWC,iBAAiE;IAWnE,qBAgBC;IAZC,cAA4E;IAC5E,WAAoE;IAatE;;;OAGG;IACH,SAFa,IAAI,CAIhB;IAED,sCAgCC;IAED;;;;;OAKG;IACH,yBAcC;IAGD,4CA8CC;CACF;2BA9rB0B,KAAK"}
|
|
@@ -2768,13 +2768,13 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
2768
2768
|
|
|
2769
2769
|
var iconVersion$1 = '6.1.1';
|
|
2770
2770
|
|
|
2771
|
-
var styleCss$1$1 = i$3$1`:host{position:relative}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2771
|
+
var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2772
2772
|
|
|
2773
2773
|
var colorCss$1$1 = i$3$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:none}:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-border-color)}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
2774
2774
|
|
|
2775
2775
|
var tokensCss$4 = i$3$1`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2776
2776
|
|
|
2777
|
-
var styleCss$5 = i$3$1`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin
|
|
2777
|
+
var styleCss$5 = i$3$1`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]) .container,:host([inset]) .container{padding:var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2778
2778
|
|
|
2779
2779
|
var colorCss$4 = i$3$1`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2780
2780
|
|
|
@@ -2877,12 +2877,13 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2877
2877
|
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
2878
2878
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
2879
2879
|
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2880
|
+
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
2880
2881
|
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
2881
2882
|
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
2882
2883
|
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
2883
2884
|
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
2884
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the
|
|
2885
|
-
* @attr { Boolean } focusShow - if declared, the
|
|
2885
|
+
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
2886
|
+
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
2886
2887
|
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
2887
2888
|
* @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
2888
2889
|
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
@@ -2985,6 +2986,10 @@ class AuroDropdown extends r$5 {
|
|
|
2985
2986
|
type: Boolean,
|
|
2986
2987
|
reflect: true
|
|
2987
2988
|
},
|
|
2989
|
+
fluid: {
|
|
2990
|
+
type: Boolean,
|
|
2991
|
+
reflect: true,
|
|
2992
|
+
},
|
|
2988
2993
|
focusShow: {
|
|
2989
2994
|
type: Boolean,
|
|
2990
2995
|
reflect: true
|
|
@@ -7229,6 +7234,11 @@ class AuroCombobox extends r$6 {
|
|
|
7229
7234
|
*/
|
|
7230
7235
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
7231
7236
|
|
|
7237
|
+
/**
|
|
7238
|
+
* @private
|
|
7239
|
+
*/
|
|
7240
|
+
this.isHiddenWhileLoading = false;
|
|
7241
|
+
|
|
7232
7242
|
/**
|
|
7233
7243
|
* Generate unique names for dependency components.
|
|
7234
7244
|
*/
|
|
@@ -7364,7 +7374,7 @@ class AuroCombobox extends r$6 {
|
|
|
7364
7374
|
this.noMatchOption = undefined;
|
|
7365
7375
|
|
|
7366
7376
|
this.options.forEach((option) => {
|
|
7367
|
-
let matchString = option.
|
|
7377
|
+
let matchString = option.textContent.toLowerCase();
|
|
7368
7378
|
|
|
7369
7379
|
if (option.hasAttribute('nomatch')) {
|
|
7370
7380
|
this.noMatchOption = option;
|
|
@@ -7440,8 +7450,12 @@ class AuroCombobox extends r$6 {
|
|
|
7440
7450
|
return;
|
|
7441
7451
|
}
|
|
7442
7452
|
if (!this.dropdown.isPopoverVisible && this.input.value && this.input.value.length > 0) {
|
|
7443
|
-
if ((this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
|
|
7444
|
-
this.
|
|
7453
|
+
if (this.menu.getAttribute('loading') || (this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
|
|
7454
|
+
if (this.menu.hasAttribute('loading') && !this.menu.hasLoadingPlaceholder) {
|
|
7455
|
+
this.isHiddenWhileLoading = true;
|
|
7456
|
+
} else {
|
|
7457
|
+
this.dropdown.show();
|
|
7458
|
+
}
|
|
7445
7459
|
}
|
|
7446
7460
|
}
|
|
7447
7461
|
}
|
|
@@ -7473,7 +7487,7 @@ class AuroCombobox extends r$6 {
|
|
|
7473
7487
|
*/
|
|
7474
7488
|
configureMenu() {
|
|
7475
7489
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
7476
|
-
|
|
7490
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
7477
7491
|
|
|
7478
7492
|
// a racing condition on custom-combobox with custom-menu
|
|
7479
7493
|
if (!this.menu) {
|
|
@@ -7484,7 +7498,7 @@ class AuroCombobox extends r$6 {
|
|
|
7484
7498
|
return;
|
|
7485
7499
|
}
|
|
7486
7500
|
|
|
7487
|
-
this.menu.shadowRoot.addEventListener('slotchange', () => this.handleSlotChange());
|
|
7501
|
+
this.menu.shadowRoot.addEventListener('slotchange', (event) => this.handleSlotChange(event));
|
|
7488
7502
|
|
|
7489
7503
|
if (this.checkmark) {
|
|
7490
7504
|
this.menu.removeAttribute('nocheckmark');
|
|
@@ -7506,8 +7520,8 @@ class AuroCombobox extends r$6 {
|
|
|
7506
7520
|
this.value = this.optionSelected.value;
|
|
7507
7521
|
}
|
|
7508
7522
|
|
|
7509
|
-
if (this.input.value !== this.optionSelected.
|
|
7510
|
-
this.input.value = this.optionSelected.
|
|
7523
|
+
if (this.input.value !== this.optionSelected.textContent) {
|
|
7524
|
+
this.input.value = this.optionSelected.textContent;
|
|
7511
7525
|
}
|
|
7512
7526
|
|
|
7513
7527
|
if (this.menu.matchWord !== this.input.value) {
|
|
@@ -7583,7 +7597,7 @@ class AuroCombobox extends r$6 {
|
|
|
7583
7597
|
this.menu.value = this.value;
|
|
7584
7598
|
}
|
|
7585
7599
|
|
|
7586
|
-
if (this.optionSelected && this.input.value !== this.optionSelected.
|
|
7600
|
+
if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
|
|
7587
7601
|
this.optionSelected = undefined;
|
|
7588
7602
|
}
|
|
7589
7603
|
|
|
@@ -7592,7 +7606,7 @@ class AuroCombobox extends r$6 {
|
|
|
7592
7606
|
this.handleMenuOptions();
|
|
7593
7607
|
|
|
7594
7608
|
this.handleInputValueChange();
|
|
7595
|
-
// validate only if the
|
|
7609
|
+
// validate only if the value was set programmatically
|
|
7596
7610
|
if (document.activeElement !== this) {
|
|
7597
7611
|
this.validation.validate(this);
|
|
7598
7612
|
}
|
|
@@ -7624,6 +7638,29 @@ class AuroCombobox extends r$6 {
|
|
|
7624
7638
|
});
|
|
7625
7639
|
}
|
|
7626
7640
|
|
|
7641
|
+
/**
|
|
7642
|
+
* Manages the visibility of the dropdown based on loading state changes.
|
|
7643
|
+
*
|
|
7644
|
+
* This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
|
|
7645
|
+
* If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
|
|
7646
|
+
* and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
|
|
7647
|
+
* hidden, it checks if the active element is within the dropdown and shows it again if true.
|
|
7648
|
+
*
|
|
7649
|
+
* @private
|
|
7650
|
+
* @param {CustomEvent} event - The event object containing details about the loading state change.
|
|
7651
|
+
* @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
|
|
7652
|
+
* @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
|
|
7653
|
+
* @returns {void}
|
|
7654
|
+
*/
|
|
7655
|
+
handleMenuLoadingChange(event) {
|
|
7656
|
+
if (!event.detail.loading && this.isHiddenWhileLoading) {
|
|
7657
|
+
if (this.contains(document.activeElement)) {
|
|
7658
|
+
this.dropdown.show();
|
|
7659
|
+
}
|
|
7660
|
+
this.isHiddenWhileLoading = false;
|
|
7661
|
+
}
|
|
7662
|
+
}
|
|
7663
|
+
|
|
7627
7664
|
/**
|
|
7628
7665
|
* Handle changes to the input value and trigger changes that should result.
|
|
7629
7666
|
* @private
|
|
@@ -7670,7 +7707,7 @@ class AuroCombobox extends r$6 {
|
|
|
7670
7707
|
*/
|
|
7671
7708
|
if (evt.key === 'ArrowUp' || evt.key === 'ArrowDown') {
|
|
7672
7709
|
if (this.availableOptions.length > 0) {
|
|
7673
|
-
this.
|
|
7710
|
+
this.showBib();
|
|
7674
7711
|
}
|
|
7675
7712
|
|
|
7676
7713
|
if (this.dropdown.isPopoverVisible) {
|
|
@@ -7742,8 +7779,8 @@ class AuroCombobox extends r$6 {
|
|
|
7742
7779
|
if (this.value) {
|
|
7743
7780
|
if (this.optionSelected && this.optionSelected.value === this.value) {
|
|
7744
7781
|
// If value updates and the previously selected option already matches the new value
|
|
7745
|
-
// just update the input value to use the
|
|
7746
|
-
this.input.value = this.optionSelected.
|
|
7782
|
+
// just update the input value to use the textContent of the optionSelected
|
|
7783
|
+
this.input.value = this.optionSelected.textContent;
|
|
7747
7784
|
} else {
|
|
7748
7785
|
// Otherwise just enter the value into the input
|
|
7749
7786
|
this.optionSelected = undefined;
|
|
@@ -7773,19 +7810,23 @@ class AuroCombobox extends r$6 {
|
|
|
7773
7810
|
/**
|
|
7774
7811
|
* Watch for slot changes and recalculate the menuoptions.
|
|
7775
7812
|
* @private
|
|
7813
|
+
* @param {Event} event - slotchange event
|
|
7776
7814
|
* @returns {void}
|
|
7777
7815
|
*/
|
|
7778
|
-
handleSlotChange() {
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7816
|
+
handleSlotChange(event) {
|
|
7817
|
+
// treat only generic menuoptions
|
|
7818
|
+
if (!event.target.name) {
|
|
7819
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
7820
|
+
this.options.forEach((opt) => {
|
|
7821
|
+
if (this.checkmark) {
|
|
7822
|
+
opt.removeAttribute('nocheckmark');
|
|
7823
|
+
} else {
|
|
7824
|
+
opt.setAttribute('nocheckmark', '');
|
|
7825
|
+
}
|
|
7826
|
+
});
|
|
7787
7827
|
|
|
7788
|
-
|
|
7828
|
+
this.handleMenuOptions();
|
|
7829
|
+
}
|
|
7789
7830
|
}
|
|
7790
7831
|
|
|
7791
7832
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7795,13 +7836,14 @@ class AuroCombobox extends r$6 {
|
|
|
7795
7836
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
7796
7837
|
${this.optionActive && this.availableOptions.length > 0
|
|
7797
7838
|
? u$6`
|
|
7798
|
-
${`${this.optionActive.
|
|
7839
|
+
${`${this.optionActive.textContent}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
|
|
7799
7840
|
`
|
|
7800
7841
|
: undefined
|
|
7801
7842
|
}
|
|
7802
7843
|
</div>
|
|
7803
7844
|
<${this.dropdownTag}
|
|
7804
7845
|
for="dropdownMenu"
|
|
7846
|
+
fluid
|
|
7805
7847
|
bordered
|
|
7806
7848
|
rounded
|
|
7807
7849
|
matchWidth
|
|
@@ -65,6 +65,11 @@ export class AuroCombobox extends LitElement {
|
|
|
65
65
|
*/
|
|
66
66
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
this.isHiddenWhileLoading = false;
|
|
72
|
+
|
|
68
73
|
/**
|
|
69
74
|
* Generate unique names for dependency components.
|
|
70
75
|
*/
|
|
@@ -200,7 +205,7 @@ export class AuroCombobox extends LitElement {
|
|
|
200
205
|
this.noMatchOption = undefined;
|
|
201
206
|
|
|
202
207
|
this.options.forEach((option) => {
|
|
203
|
-
let matchString = option.
|
|
208
|
+
let matchString = option.textContent.toLowerCase();
|
|
204
209
|
|
|
205
210
|
if (option.hasAttribute('nomatch')) {
|
|
206
211
|
this.noMatchOption = option;
|
|
@@ -276,8 +281,12 @@ export class AuroCombobox extends LitElement {
|
|
|
276
281
|
return;
|
|
277
282
|
}
|
|
278
283
|
if (!this.dropdown.isPopoverVisible && this.input.value && this.input.value.length > 0) {
|
|
279
|
-
if ((this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
|
|
280
|
-
this.
|
|
284
|
+
if (this.menu.getAttribute('loading') || (this.availableOptions && this.availableOptions.length > 0) || this.noMatchOption !== undefined) { // eslint-disable-line no-extra-parens
|
|
285
|
+
if (this.menu.hasAttribute('loading') && !this.menu.hasLoadingPlaceholder) {
|
|
286
|
+
this.isHiddenWhileLoading = true;
|
|
287
|
+
} else {
|
|
288
|
+
this.dropdown.show();
|
|
289
|
+
}
|
|
281
290
|
}
|
|
282
291
|
}
|
|
283
292
|
}
|
|
@@ -309,7 +318,7 @@ export class AuroCombobox extends LitElement {
|
|
|
309
318
|
*/
|
|
310
319
|
configureMenu() {
|
|
311
320
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
312
|
-
|
|
321
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
313
322
|
|
|
314
323
|
// a racing condition on custom-combobox with custom-menu
|
|
315
324
|
if (!this.menu) {
|
|
@@ -320,7 +329,7 @@ export class AuroCombobox extends LitElement {
|
|
|
320
329
|
return;
|
|
321
330
|
}
|
|
322
331
|
|
|
323
|
-
this.menu.shadowRoot.addEventListener('slotchange', () => this.handleSlotChange());
|
|
332
|
+
this.menu.shadowRoot.addEventListener('slotchange', (event) => this.handleSlotChange(event));
|
|
324
333
|
|
|
325
334
|
if (this.checkmark) {
|
|
326
335
|
this.menu.removeAttribute('nocheckmark');
|
|
@@ -342,8 +351,8 @@ export class AuroCombobox extends LitElement {
|
|
|
342
351
|
this.value = this.optionSelected.value;
|
|
343
352
|
}
|
|
344
353
|
|
|
345
|
-
if (this.input.value !== this.optionSelected.
|
|
346
|
-
this.input.value = this.optionSelected.
|
|
354
|
+
if (this.input.value !== this.optionSelected.textContent) {
|
|
355
|
+
this.input.value = this.optionSelected.textContent;
|
|
347
356
|
}
|
|
348
357
|
|
|
349
358
|
if (this.menu.matchWord !== this.input.value) {
|
|
@@ -419,7 +428,7 @@ export class AuroCombobox extends LitElement {
|
|
|
419
428
|
this.menu.value = this.value;
|
|
420
429
|
}
|
|
421
430
|
|
|
422
|
-
if (this.optionSelected && this.input.value !== this.optionSelected.
|
|
431
|
+
if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
|
|
423
432
|
this.optionSelected = undefined;
|
|
424
433
|
}
|
|
425
434
|
|
|
@@ -428,7 +437,7 @@ export class AuroCombobox extends LitElement {
|
|
|
428
437
|
this.handleMenuOptions();
|
|
429
438
|
|
|
430
439
|
this.handleInputValueChange();
|
|
431
|
-
// validate only if the
|
|
440
|
+
// validate only if the value was set programmatically
|
|
432
441
|
if (document.activeElement !== this) {
|
|
433
442
|
this.validation.validate(this);
|
|
434
443
|
}
|
|
@@ -460,6 +469,29 @@ export class AuroCombobox extends LitElement {
|
|
|
460
469
|
});
|
|
461
470
|
}
|
|
462
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Manages the visibility of the dropdown based on loading state changes.
|
|
474
|
+
*
|
|
475
|
+
* This method listens for loading state changes and adjusts the visibility of the dropdown accordingly.
|
|
476
|
+
* If the dropdown is visible and loading is true without any loading placeholders, it hides the dropdown
|
|
477
|
+
* and sets a flag to indicate it is hidden while loading. If loading is false and the dropdown was previously
|
|
478
|
+
* hidden, it checks if the active element is within the dropdown and shows it again if true.
|
|
479
|
+
*
|
|
480
|
+
* @private
|
|
481
|
+
* @param {CustomEvent} event - The event object containing details about the loading state change.
|
|
482
|
+
* @param {boolean} event.detail.loading - Indicates whether the menu is currently loading.
|
|
483
|
+
* @param {boolean} event.detail.hasLoadingPlaceholder - Indicates if there are loading placeholders present.
|
|
484
|
+
* @returns {void}
|
|
485
|
+
*/
|
|
486
|
+
handleMenuLoadingChange(event) {
|
|
487
|
+
if (!event.detail.loading && this.isHiddenWhileLoading) {
|
|
488
|
+
if (this.contains(document.activeElement)) {
|
|
489
|
+
this.dropdown.show();
|
|
490
|
+
}
|
|
491
|
+
this.isHiddenWhileLoading = false;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
463
495
|
/**
|
|
464
496
|
* Handle changes to the input value and trigger changes that should result.
|
|
465
497
|
* @private
|
|
@@ -506,7 +538,7 @@ export class AuroCombobox extends LitElement {
|
|
|
506
538
|
*/
|
|
507
539
|
if (evt.key === 'ArrowUp' || evt.key === 'ArrowDown') {
|
|
508
540
|
if (this.availableOptions.length > 0) {
|
|
509
|
-
this.
|
|
541
|
+
this.showBib();
|
|
510
542
|
}
|
|
511
543
|
|
|
512
544
|
if (this.dropdown.isPopoverVisible) {
|
|
@@ -578,8 +610,8 @@ export class AuroCombobox extends LitElement {
|
|
|
578
610
|
if (this.value) {
|
|
579
611
|
if (this.optionSelected && this.optionSelected.value === this.value) {
|
|
580
612
|
// If value updates and the previously selected option already matches the new value
|
|
581
|
-
// just update the input value to use the
|
|
582
|
-
this.input.value = this.optionSelected.
|
|
613
|
+
// just update the input value to use the textContent of the optionSelected
|
|
614
|
+
this.input.value = this.optionSelected.textContent;
|
|
583
615
|
} else {
|
|
584
616
|
// Otherwise just enter the value into the input
|
|
585
617
|
this.optionSelected = undefined;
|
|
@@ -609,19 +641,23 @@ export class AuroCombobox extends LitElement {
|
|
|
609
641
|
/**
|
|
610
642
|
* Watch for slot changes and recalculate the menuoptions.
|
|
611
643
|
* @private
|
|
644
|
+
* @param {Event} event - slotchange event
|
|
612
645
|
* @returns {void}
|
|
613
646
|
*/
|
|
614
|
-
handleSlotChange() {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
647
|
+
handleSlotChange(event) {
|
|
648
|
+
// treat only generic menuoptions
|
|
649
|
+
if (!event.target.name) {
|
|
650
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
651
|
+
this.options.forEach((opt) => {
|
|
652
|
+
if (this.checkmark) {
|
|
653
|
+
opt.removeAttribute('nocheckmark');
|
|
654
|
+
} else {
|
|
655
|
+
opt.setAttribute('nocheckmark', '');
|
|
656
|
+
}
|
|
657
|
+
});
|
|
623
658
|
|
|
624
|
-
|
|
659
|
+
this.handleMenuOptions();
|
|
660
|
+
}
|
|
625
661
|
}
|
|
626
662
|
|
|
627
663
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -631,13 +667,14 @@ export class AuroCombobox extends LitElement {
|
|
|
631
667
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
632
668
|
${this.optionActive && this.availableOptions.length > 0
|
|
633
669
|
? html`
|
|
634
|
-
${`${this.optionActive.
|
|
670
|
+
${`${this.optionActive.textContent}, selected, ${this.availableOptions.indexOf(this.optionActive) + 1} of ${this.availableOptions.length}`}
|
|
635
671
|
`
|
|
636
672
|
: undefined
|
|
637
673
|
}
|
|
638
674
|
</div>
|
|
639
675
|
<${this.dropdownTag}
|
|
640
676
|
for="dropdownMenu"
|
|
677
|
+
fluid
|
|
641
678
|
bordered
|
|
642
679
|
rounded
|
|
643
680
|
matchWidth
|
|
@@ -74,13 +74,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
74
74
|
|
|
75
75
|
[36m
|
|
76
76
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
77
|
-
[32mcreated [1mdist[22m in [
|
|
77
|
+
[32mcreated [1mdist[22m in [1m448ms[22m[39m
|
|
78
78
|
[36m
|
|
79
79
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
80
|
-
[32mcreated [1m./demo/[22m in [
|
|
80
|
+
[32mcreated [1m./demo/[22m in [1m299ms[22m[39m
|
|
81
81
|
[36m
|
|
82
82
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
83
|
-
[32mcreated [1m./demo/[22m in [
|
|
83
|
+
[32mcreated [1m./demo/[22m in [1m304ms[22m[39m
|
|
84
84
|
|
|
85
85
|
> @auro-formkit/auro-counter@1.0.0 types
|
|
86
86
|
> tsc --project tsconfig.json
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
7
|
-
[32mcreated [1mdist[22m in [
|
|
7
|
+
[32mcreated [1mdist[22m in [1m561ms[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m308ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m253ms[22m[39m
|