@ni/spright-components 2.0.8 → 2.0.10
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.
|
@@ -3110,10 +3110,6 @@ const xg="nimble-icon-arrow-expander-down",Cg="above",kg="underline",Sg="outline
|
|
|
3110
3110
|
width: 0px;
|
|
3111
3111
|
}
|
|
3112
3112
|
|
|
3113
|
-
[part='start'] {
|
|
3114
|
-
display: none;
|
|
3115
|
-
}
|
|
3116
|
-
|
|
3117
3113
|
.control {
|
|
3118
3114
|
align-items: center;
|
|
3119
3115
|
cursor: pointer;
|
|
@@ -3141,10 +3137,59 @@ const xg="nimble-icon-arrow-expander-down",Cg="above",kg="underline",Sg="outline
|
|
|
3141
3137
|
border-bottom-color: ${al};
|
|
3142
3138
|
}
|
|
3143
3139
|
|
|
3140
|
+
[part='start'] {
|
|
3141
|
+
display: none;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
.selected-value {
|
|
3145
|
+
flex: auto;
|
|
3146
|
+
font-family: inherit;
|
|
3147
|
+
text-align: start;
|
|
3148
|
+
white-space: nowrap;
|
|
3149
|
+
text-overflow: ellipsis;
|
|
3150
|
+
overflow: hidden;
|
|
3151
|
+
padding: 0px;
|
|
3152
|
+
padding-left: ${_l};
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
.selected-value[disabled]::placeholder {
|
|
3156
|
+
color: ${Hc};
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
.indicator {
|
|
3160
|
+
flex: none;
|
|
3161
|
+
margin-left: ${Sl};
|
|
3162
|
+
padding-right: 8px;
|
|
3163
|
+
display: flex;
|
|
3164
|
+
justify-content: center;
|
|
3165
|
+
align-items: center;
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
.indicator slot[name='indicator'] svg {
|
|
3169
|
+
width: ${El};
|
|
3170
|
+
height: ${El};
|
|
3171
|
+
fill: ${Vc};
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
:host([disabled]) .indicator slot[name='indicator'] svg {
|
|
3175
|
+
fill: ${Hc};
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
[part='end'] {
|
|
3179
|
+
margin-inline-start: auto;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
:host([open][position='above']) .anchored-region {
|
|
3183
|
+
padding-bottom: ${Sl};
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3186
|
+
:host([open][position='below']) .anchored-region {
|
|
3187
|
+
padding-top: ${Sl};
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3144
3190
|
.listbox {
|
|
3145
3191
|
display: inline-flex;
|
|
3146
3192
|
flex-direction: column;
|
|
3147
|
-
overflow-y: auto;
|
|
3148
3193
|
width: 100%;
|
|
3149
3194
|
--ni-private-listbox-visible-option-count: 10.5;
|
|
3150
3195
|
--ni-private-listbox-anchor-element-gap: ${Sl};
|
|
@@ -3178,12 +3223,6 @@ const xg="nimble-icon-arrow-expander-down",Cg="above",kg="underline",Sg="outline
|
|
|
3178
3223
|
--ni-private-listbox-loading-indicator-height: ${Cl};
|
|
3179
3224
|
}
|
|
3180
3225
|
|
|
3181
|
-
.listbox slot {
|
|
3182
|
-
display: block;
|
|
3183
|
-
background: transparent;
|
|
3184
|
-
padding: var(--ni-private-listbox-padding);
|
|
3185
|
-
}
|
|
3186
|
-
|
|
3187
3226
|
:host([open][position='above']) .listbox {
|
|
3188
3227
|
border-bottom-left-radius: 0;
|
|
3189
3228
|
border-bottom-right-radius: 0;
|
|
@@ -3194,55 +3233,33 @@ const xg="nimble-icon-arrow-expander-down",Cg="above",kg="underline",Sg="outline
|
|
|
3194
3233
|
border-top-right-radius: 0;
|
|
3195
3234
|
}
|
|
3196
3235
|
|
|
3197
|
-
|
|
3198
|
-
|
|
3236
|
+
.scrollable-region {
|
|
3237
|
+
overflow-y: auto;
|
|
3199
3238
|
}
|
|
3200
3239
|
|
|
3201
|
-
|
|
3202
|
-
|
|
3240
|
+
.listbox slot {
|
|
3241
|
+
display: block;
|
|
3242
|
+
background: transparent;
|
|
3243
|
+
padding: var(--ni-private-listbox-padding);
|
|
3203
3244
|
}
|
|
3204
3245
|
|
|
3205
|
-
.
|
|
3206
|
-
|
|
3207
|
-
font-family: inherit;
|
|
3208
|
-
text-align: start;
|
|
3209
|
-
white-space: nowrap;
|
|
3210
|
-
text-overflow: ellipsis;
|
|
3211
|
-
overflow: hidden;
|
|
3212
|
-
padding: 0px;
|
|
3213
|
-
padding-left: ${_l};
|
|
3246
|
+
.listbox.empty slot {
|
|
3247
|
+
display: none;
|
|
3214
3248
|
}
|
|
3215
3249
|
|
|
3216
|
-
|
|
3217
|
-
|
|
3250
|
+
::slotted([role='option']),
|
|
3251
|
+
::slotted(option) {
|
|
3252
|
+
flex: none;
|
|
3218
3253
|
}
|
|
3219
3254
|
|
|
3220
|
-
.
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3255
|
+
.no-results-label {
|
|
3256
|
+
color: ${Rc};
|
|
3257
|
+
height: ${Cl};
|
|
3258
|
+
display: inline-flex;
|
|
3224
3259
|
display: flex;
|
|
3225
|
-
|
|
3260
|
+
flex: 1 0 auto;
|
|
3226
3261
|
align-items: center;
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
.indicator slot[name='indicator'] svg {
|
|
3230
|
-
width: ${El};
|
|
3231
|
-
height: ${El};
|
|
3232
|
-
fill: ${Vc};
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
:host([disabled]) .indicator slot[name='indicator'] svg {
|
|
3236
|
-
fill: ${Hc};
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
[part='end'] {
|
|
3240
|
-
margin-inline-start: auto;
|
|
3241
|
-
}
|
|
3242
|
-
|
|
3243
|
-
::slotted([role='option']),
|
|
3244
|
-
::slotted(option) {
|
|
3245
|
-
flex: none;
|
|
3262
|
+
padding: ${Sl} ${_l};
|
|
3246
3263
|
}
|
|
3247
3264
|
`.withBehaviors(ch(kg,Mt`
|
|
3248
3265
|
.control {
|
|
@@ -3378,10 +3395,6 @@ const xg="nimble-icon-arrow-expander-down",Cg="above",kg="underline",Sg="outline
|
|
|
3378
3395
|
:host([disabled]) .dropdown-icon {
|
|
3379
3396
|
fill: ${Hc};
|
|
3380
3397
|
}
|
|
3381
|
-
|
|
3382
|
-
:host(:empty) .listbox {
|
|
3383
|
-
display: none;
|
|
3384
|
-
}
|
|
3385
3398
|
`.withBehaviors(ch(_g,Mt`
|
|
3386
3399
|
:host([error-visible]) .control {
|
|
3387
3400
|
border-bottom-width: ${$l};
|
|
@@ -3400,7 +3413,7 @@ if(!e||e.disabled)return!1
|
|
|
3400
3413
|
this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}toggleButtonClickHandler(t){t.stopImmediatePropagation()}toggleButtonChangeHandler(t){this.open=this.dropdownButton.checked,t.stopImmediatePropagation()}toggleButtonKeyDownHandler(t){switch(t.key){case Da:case Ma:case La:case Ta:return this.open=!0,this.stopPropagation(t),!1
|
|
3401
3414
|
default:return!0}}filterOptions(){this.autocomplete&&this.autocomplete!==Qn||(this.filter="")
|
|
3402
3415
|
const t=this.filter.toLowerCase()
|
|
3403
|
-
this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(t))),this.isAutocompleteList&&
|
|
3416
|
+
this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(t)&&!e.hidden)),this.isAutocompleteList&&this._options.forEach((t=>{t.visuallyHidden=!this.filteredOptions.includes(t)}))
|
|
3404
3417
|
const e=this.filteredOptions.filter((t=>!t.disabled))
|
|
3405
3418
|
this.filteredOptions=e}inputHandler(t){return this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),!t.inputType.includes("deleteContent")&&this.filter.length&&(this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)),this.valueUpdatedByInput||(this.valueBeforeTextUpdate=this.value),this.valueUpdatedByInput=!0,this.value!==this.control.value&&this.focusAndScrollOptionIntoView(),this.value=this.control.value,!0}keydownHandler(t){if(t.ctrlKey||t.altKey)return!0
|
|
3406
3419
|
switch(t.key){case Ta:this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange(),this.emitChangeIfValueUpdated()
|
|
@@ -3423,7 +3436,7 @@ const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom
|
|
|
3423
3436
|
this.forcedPosition?this.position=this.positionAttribute:t.top>e?this.position=Wn:this.position=Gn,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.availableViewportHeight=this.position===Wn?Math.trunc(t.top):Math.trunc(e)}focusAndScrollOptionIntoView(){this.open&&this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{this.firstSelectedOption?.scrollIntoView({block:"nearest"})})))}openChanged(){this.open?(this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),b.queueUpdate((()=>this.focus()))):(this.ariaControls="",this.ariaExpanded="false"),this.dropdownButton&&(this.dropdownButton.checked=this.open)}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder??"")}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach((t=>{t.selected=e.includes(t)}))}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}regionChanged(t,e){this.region&&this.controlWrapper&&(this.region.anchorElement=this.controlWrapper)}controlWrapperChanged(t,e){this.region&&this.controlWrapper&&(this.region.anchorElement=this.controlWrapper)}ariaLabelChanged(t,e){this.updateInputAriaLabel()}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?.text||this.control.value,this.control.value=this.value),t&&this.$emit("change")}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}clearSelectionRange(){const t=this.control.value.length
|
|
3424
3437
|
this.control.setSelectionRange(t,t)}syncValue(){const t=this.selectedIndex>-1?this.firstSelectedOption?.text:this.control.value
|
|
3425
3438
|
this.updateValue(this.value!==t)}updateInputAriaLabel(){const t=this.shadowRoot?.querySelector(".selected-value")
|
|
3426
|
-
this.ariaLabel?t?.setAttribute("aria-label",this.ariaLabel):t?.removeAttribute("aria-label")}emitChangeIfValueUpdated(){this.valueUpdatedByInput&&(this.value!==this.valueBeforeTextUpdate&&this.$emit("change"),this.valueUpdatedByInput=!1)}}t([ft],Rg.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],Rg.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],Rg.prototype,"errorVisible",void 0),t([ft({attribute:"autocomplete",mode:"fromView"})],Rg.prototype,"autocomplete",void 0),t([ft({attribute:"position"})],Rg.prototype,"positionAttribute",void 0),t([ft({attribute:"open",mode:"boolean"})],Rg.prototype,"open",void 0),t([ft],Rg.prototype,"placeholder",void 0),t([C],Rg.prototype,"position",void 0),t([C],Rg.prototype,"region",void 0),t([C],Rg.prototype,"controlWrapper",void 0),t([C],Rg.prototype,"control",void 0),t([C],Rg.prototype,"listbox",void 0),t([C],Rg.prototype,"dropdownButton",void 0),t([C],Rg.prototype,"hasOverflow",void 0),t([C],Rg.prototype,"availableViewportHeight",void 0)
|
|
3439
|
+
this.ariaLabel?t?.setAttribute("aria-label",this.ariaLabel):t?.removeAttribute("aria-label")}emitChangeIfValueUpdated(){this.valueUpdatedByInput&&(this.value!==this.valueBeforeTextUpdate&&this.$emit("change"),this.valueUpdatedByInput=!1)}}t([ft],Rg.prototype,"appearance",void 0),t([ft({attribute:"error-text"})],Rg.prototype,"errorText",void 0),t([ft({attribute:"error-visible",mode:"boolean"})],Rg.prototype,"errorVisible",void 0),t([ft({attribute:"autocomplete",mode:"fromView"})],Rg.prototype,"autocomplete",void 0),t([ft({attribute:"position"})],Rg.prototype,"positionAttribute",void 0),t([ft({attribute:"open",mode:"boolean"})],Rg.prototype,"open",void 0),t([ft],Rg.prototype,"placeholder",void 0),t([C],Rg.prototype,"position",void 0),t([C],Rg.prototype,"region",void 0),t([C],Rg.prototype,"controlWrapper",void 0),t([C],Rg.prototype,"control",void 0),t([C],Rg.prototype,"listbox",void 0),t([C],Rg.prototype,"dropdownButton",void 0),t([C],Rg.prototype,"filteredOptions",void 0),t([C],Rg.prototype,"hasOverflow",void 0),t([C],Rg.prototype,"availableViewportHeight",void 0)
|
|
3427
3440
|
const Fg=Rg.compose({baseName:"combobox",baseClass:Og,template:(t,e)=>Q`
|
|
3428
3441
|
<template
|
|
3429
3442
|
aria-disabled="${t=>t.ariaDisabled}"
|
|
@@ -3478,7 +3491,11 @@ const Fg=Rg.compose({baseName:"combobox",baseClass:Og,template:(t,e)=>Q`
|
|
|
3478
3491
|
horizontal-scaling="anchor"
|
|
3479
3492
|
?hidden="${t=>!t.open}">
|
|
3480
3493
|
<div
|
|
3481
|
-
class="
|
|
3494
|
+
class="
|
|
3495
|
+
listbox
|
|
3496
|
+
scrollable-region
|
|
3497
|
+
${t=>0===t.filteredOptions.length?"empty":""}
|
|
3498
|
+
"
|
|
3482
3499
|
id="${t=>t.listboxId}"
|
|
3483
3500
|
part="listbox"
|
|
3484
3501
|
role="listbox"
|
|
@@ -3489,6 +3506,11 @@ const Fg=Rg.compose({baseName:"combobox",baseClass:Og,template:(t,e)=>Q`
|
|
|
3489
3506
|
<slot name="option"
|
|
3490
3507
|
${ie({filter:t=>t instanceof HTMLElement&&qn.slottedOptionFilter(t),flatten:!0,property:"slottedOptions"})}
|
|
3491
3508
|
></slot>
|
|
3509
|
+
${Gt((t=>0===t.filteredOptions.length),Q`
|
|
3510
|
+
<span class="no-results-label">
|
|
3511
|
+
${t=>Ym.getValueFor(t)}
|
|
3512
|
+
</span>
|
|
3513
|
+
`)}
|
|
3492
3514
|
</div>
|
|
3493
3515
|
</${Oh}>
|
|
3494
3516
|
</template>
|
|
@@ -7322,7 +7344,11 @@ const nI="nimble-toolbar",iI="Bold",sI="Italics",oI="Bulleted List",rI="Numbered
|
|
|
7322
7344
|
horizontal-scaling="anchor"
|
|
7323
7345
|
?hidden="${t=>!t.open}">
|
|
7324
7346
|
<div
|
|
7325
|
-
class="
|
|
7347
|
+
class="
|
|
7348
|
+
listbox
|
|
7349
|
+
scrollable-region
|
|
7350
|
+
${t=>0===t.filteredOptions.length?"empty":""}
|
|
7351
|
+
"
|
|
7326
7352
|
part="listbox"
|
|
7327
7353
|
role="listbox"
|
|
7328
7354
|
@click="${(t,e)=>t.clickHandler(e.event)}"
|
|
@@ -7334,6 +7360,11 @@ const nI="nimble-toolbar",iI="Bold",sI="Italics",oI="Bulleted List",rI="Numbered
|
|
|
7334
7360
|
${ie({filter:t=>t instanceof HTMLElement&&qn.slottedOptionFilter(t),flatten:!0,property:"slottedOptions"})}
|
|
7335
7361
|
>
|
|
7336
7362
|
</slot>
|
|
7363
|
+
${Gt((t=>0===t.filteredOptions.length),Q`
|
|
7364
|
+
<span class="no-results-label">
|
|
7365
|
+
${t=>Ym.getValueFor(t)}
|
|
7366
|
+
</span>
|
|
7367
|
+
`)}
|
|
7337
7368
|
</div>
|
|
7338
7369
|
</${Oh}>
|
|
7339
7370
|
</template>
|
|
@@ -7348,7 +7379,7 @@ this.filteredOptions=this._options.filter((e=>pI(e.text).includes(t)))}else this
|
|
|
7348
7379
|
this._options.forEach((t=>{t.hidden=!this.filteredOptions.includes(t)})),this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption)):(this.selectedOptions=[],this.selectedIndex=-1)}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.filterOptions()}clickHandler(t){const e=t.target.closest("option,[role=option]")
|
|
7349
7380
|
if(!e||e.disabled)return!1
|
|
7350
7381
|
const n={href:e.value,displayName:e.text}
|
|
7351
|
-
return this.$emit("mention-selected",n),this.setOpen(!1),!0}anchorElementChanged(t,e){t&&this.anchorElementIntersectionObserver.unobserve(t),this.region&&this.anchorElement&&(this.region.anchorElement=this.anchorElement,this.region.update(),this.anchorElementIntersectionObserver.observe(e))}regionChanged(){this.regionNotifier&&this.regionNotifier.unsubscribe(this),this.regionNotifier=x.getNotifier(this.region),this.regionNotifier.subscribe(this)}handleChange(t,e){super.handleChange(t,e),"initialLayoutComplete"===e&&this.focusAndScrollOptionIntoView()}focusAndScrollOptionIntoView(){this.open&&this.firstSelectedOption&&requestAnimationFrame((()=>{this.firstSelectedOption?.scrollIntoView({block:"nearest"})}))}setOpen(t){this.open=t}}t([C],fI.prototype,"open",void 0),t([C],fI.prototype,"region",void 0),t([C],fI.prototype,"availableViewportHeight",void 0),t([C],fI.prototype,"anchorElement",void 0)
|
|
7382
|
+
return this.$emit("mention-selected",n),this.setOpen(!1),!0}anchorElementChanged(t,e){t&&this.anchorElementIntersectionObserver.unobserve(t),this.region&&this.anchorElement&&(this.region.anchorElement=this.anchorElement,this.region.update(),this.anchorElementIntersectionObserver.observe(e))}regionChanged(){this.regionNotifier&&this.regionNotifier.unsubscribe(this),this.regionNotifier=x.getNotifier(this.region),this.regionNotifier.subscribe(this)}handleChange(t,e){super.handleChange(t,e),"initialLayoutComplete"===e&&this.focusAndScrollOptionIntoView()}focusAndScrollOptionIntoView(){this.open&&this.firstSelectedOption&&requestAnimationFrame((()=>{this.firstSelectedOption?.scrollIntoView({block:"nearest"})}))}setOpen(t){this.open=t}}t([C],fI.prototype,"open",void 0),t([C],fI.prototype,"region",void 0),t([C],fI.prototype,"availableViewportHeight",void 0),t([C],fI.prototype,"filteredOptions",void 0),t([C],fI.prototype,"anchorElement",void 0)
|
|
7352
7383
|
const mI=fI.compose({baseName:"rich-text-mention-listbox",template:uI,styles:hI})
|
|
7353
7384
|
_i.getOrCreate().withPrefix("nimble").register(mI())
|
|
7354
7385
|
const gI="nimble-rich-text-mention-listbox",vI=Q`
|
|
@@ -9046,10 +9077,6 @@ const qT=Mt`
|
|
|
9046
9077
|
overflow-x: clip;
|
|
9047
9078
|
}
|
|
9048
9079
|
|
|
9049
|
-
.listbox.empty slot {
|
|
9050
|
-
display: none;
|
|
9051
|
-
}
|
|
9052
|
-
|
|
9053
9080
|
.listbox.above {
|
|
9054
9081
|
flex-flow: column-reverse;
|
|
9055
9082
|
}
|
|
@@ -9087,7 +9114,8 @@ const qT=Mt`
|
|
|
9087
9114
|
}
|
|
9088
9115
|
|
|
9089
9116
|
.filter-icon {
|
|
9090
|
-
|
|
9117
|
+
flex-shrink: 0;
|
|
9118
|
+
margin-left: ${Sl};
|
|
9091
9119
|
${ul.cssCustomProperty}: ${Rc};
|
|
9092
9120
|
}
|
|
9093
9121
|
|
|
@@ -9109,10 +9137,6 @@ const qT=Mt`
|
|
|
9109
9137
|
outline: 0px;
|
|
9110
9138
|
}
|
|
9111
9139
|
|
|
9112
|
-
.scrollable-region {
|
|
9113
|
-
overflow: auto;
|
|
9114
|
-
}
|
|
9115
|
-
|
|
9116
9140
|
::slotted([role='option']) {
|
|
9117
9141
|
background-color: transparent;
|
|
9118
9142
|
}
|
|
@@ -9129,14 +9153,6 @@ const qT=Mt`
|
|
|
9129
9153
|
background-color: ${il};
|
|
9130
9154
|
}
|
|
9131
9155
|
|
|
9132
|
-
.no-results-label {
|
|
9133
|
-
color: ${Rc};
|
|
9134
|
-
height: ${Cl};
|
|
9135
|
-
display: inline-flex;
|
|
9136
|
-
align-items: center;
|
|
9137
|
-
padding: ${Sl} ${_l};
|
|
9138
|
-
}
|
|
9139
|
-
|
|
9140
9156
|
.loading-container {
|
|
9141
9157
|
padding-left: ${_l};
|
|
9142
9158
|
padding-right: ${_l};
|
|
@@ -9515,7 +9531,7 @@ const sO=iO.compose({baseName:"select",baseClass:is,template:(t,e)=>Q`
|
|
|
9515
9531
|
<div class="listbox-background">
|
|
9516
9532
|
<div
|
|
9517
9533
|
class="
|
|
9518
|
-
listbox
|
|
9534
|
+
listbox
|
|
9519
9535
|
${t=>0===t.filteredOptions.length?"empty":""}
|
|
9520
9536
|
${t=>t.positionAttribute}
|
|
9521
9537
|
"
|
|
@@ -9547,12 +9563,12 @@ const sO=iO.compose({baseName:"select",baseClass:is,template:(t,e)=>Q`
|
|
|
9547
9563
|
name="option"
|
|
9548
9564
|
${ie({filter:t=>t instanceof HTMLElement&&(XT(t)||JT(t)),flatten:!0,property:"slottedOptions"})}
|
|
9549
9565
|
></slot>
|
|
9566
|
+
${Gt((t=>t.filterMode!==$g.none&&0===t.filteredOptions.length&&!t.loadingVisible),Q`
|
|
9567
|
+
<span class="no-results-label">
|
|
9568
|
+
${t=>Ym.getValueFor(t)}
|
|
9569
|
+
</span>
|
|
9570
|
+
`)}
|
|
9550
9571
|
</div>
|
|
9551
|
-
${Gt((t=>t.filterMode!==$g.none&&0===t.filteredOptions.length&&!t.loadingVisible),Q`
|
|
9552
|
-
<span class="no-results-label ${t=>t.positionAttribute}">
|
|
9553
|
-
${t=>Ym.getValueFor(t)}
|
|
9554
|
-
</span>
|
|
9555
|
-
`)}
|
|
9556
9572
|
${Gt((t=>t.loadingVisible),Q`
|
|
9557
9573
|
<div class="loading-container ${t=>t.positionAttribute} ${t=>0===t.filteredOptions.length?"empty":""}"
|
|
9558
9574
|
@click="${(t,e)=>t.ignoreClickHandler(e.event)}">
|