Refactor #3965 - For AutoComplete & Dropdown
parent
fc8cf85512
commit
db62871f12
|
@ -109,7 +109,7 @@
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
</Button>
|
</Button>
|
||||||
<span role="status" aria-live="polite" :class="cx('hiddenSearchResult')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenSearchResult')">
|
<span role="status" aria-live="polite" :class="cx('hiddenSearchResult')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenSearchResult')" :data-p-hidden-accessible="true">
|
||||||
{{ searchResultMessageText }}
|
{{ searchResultMessageText }}
|
||||||
</span>
|
</span>
|
||||||
<Portal :appendTo="appendTo">
|
<Portal :appendTo="appendTo">
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
</template>
|
</template>
|
||||||
</VirtualScroller>
|
</VirtualScroller>
|
||||||
<slot name="footer" :value="modelValue" :suggestions="visibleOptions"></slot>
|
<slot name="footer" :value="modelValue" :suggestions="visibleOptions"></slot>
|
||||||
<span role="status" aria-live="polite" :class="cx('hiddenSelectedMessage')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenSelectedMessage')">
|
<span role="status" aria-live="polite" :class="cx('hiddenSelectedMessage')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
|
||||||
{{ selectedMessageText }}
|
{{ selectedMessageText }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -70,9 +70,9 @@
|
||||||
:style="sx('hiddenAccessible', isUnstyled)"
|
:style="sx('hiddenAccessible', isUnstyled)"
|
||||||
:tabindex="0"
|
:tabindex="0"
|
||||||
@focus="onFirstHiddenFocus"
|
@focus="onFirstHiddenFocus"
|
||||||
|
v-bind="ptm('hiddenFirstFocusableEl')"
|
||||||
:data-p-hidden-accessible="true"
|
:data-p-hidden-accessible="true"
|
||||||
:data-p-hidden-focusable="true"
|
:data-p-hidden-focusable="true"
|
||||||
v-bind="ptm('hiddenFirstFocusableEl')"
|
|
||||||
></span>
|
></span>
|
||||||
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
||||||
<div v-if="filter" :class="cx('header')" v-bind="ptm('header')">
|
<div v-if="filter" :class="cx('header')" v-bind="ptm('header')">
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
<component :is="filterIcon ? 'span' : 'FilterIcon'" :class="[cx('filterIcon'), filterIcon]" v-bind="ptm('filterIcon')" />
|
<component :is="filterIcon ? 'span' : 'FilterIcon'" :class="[cx('filterIcon'), filterIcon]" v-bind="ptm('filterIcon')" />
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
<span role="status" aria-live="polite" :class="cx('hiddenFilterResult')" :style="sx('hiddenAccessible', isUnstyled)" :data-p-hidden-accessible="true" v-bind="ptm('hiddenFilterResult')">
|
<span role="status" aria-live="polite" :class="cx('hiddenFilterResult')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenFilterResult')" :data-p-hidden-accessible="true">
|
||||||
{{ filterResultMessageText }}
|
{{ filterResultMessageText }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -136,12 +136,12 @@
|
||||||
:class="cx('emptyMessage')"
|
:class="cx('emptyMessage')"
|
||||||
:style="sx('hiddenAccessible', isUnstyled)"
|
:style="sx('hiddenAccessible', isUnstyled)"
|
||||||
role="option"
|
role="option"
|
||||||
:data-p-hidden-accessible="true"
|
|
||||||
v-bind="ptm('emptyMessage')"
|
v-bind="ptm('emptyMessage')"
|
||||||
|
:data-p-hidden-accessible="true"
|
||||||
>
|
>
|
||||||
<slot name="emptyfilter">{{ emptyFilterMessageText }}</slot>
|
<slot name="emptyfilter">{{ emptyFilterMessageText }}</slot>
|
||||||
</li>
|
</li>
|
||||||
<li v-else-if="!options || (options && options.length === 0)" :class="cx('emptyMessage')" :style="sx('hiddenAccessible', isUnstyled)" role="option" :data-p-hidden-accessible="true" v-bind="ptm('emptyMessage')">
|
<li v-else-if="!options || (options && options.length === 0)" :class="cx('emptyMessage')" :style="sx('hiddenAccessible', isUnstyled)" role="option" v-bind="ptm('emptyMessage')" :data-p-hidden-accessible="true">
|
||||||
<slot name="empty">{{ emptyMessageText }}</slot>
|
<slot name="empty">{{ emptyMessageText }}</slot>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -158,12 +158,12 @@
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
:class="cx('emptyHiddenMessage')"
|
:class="cx('emptyHiddenMessage')"
|
||||||
:style="sx('hiddenAccessible', isUnstyled)"
|
:style="sx('hiddenAccessible', isUnstyled)"
|
||||||
:data-p-hidden-accessible="true"
|
|
||||||
v-bind="ptm('hiddenEmptyMessage')"
|
v-bind="ptm('hiddenEmptyMessage')"
|
||||||
|
:data-p-hidden-accessible="true"
|
||||||
>
|
>
|
||||||
{{ emptyMessageText }}
|
{{ emptyMessageText }}
|
||||||
</span>
|
</span>
|
||||||
<span role="status" aria-live="polite" :class="cx('hiddenSelectedMessage')" :style="sx('hiddenAccessible', isUnstyled)" :data-p-hidden-accessible="true" v-bind="ptm('hiddenSelectedMessage')">
|
<span role="status" aria-live="polite" :class="cx('hiddenSelectedMessage')" :style="sx('hiddenAccessible', isUnstyled)" v-bind="ptm('hiddenSelectedMessage')" :data-p-hidden-accessible="true">
|
||||||
{{ selectedMessageText }}
|
{{ selectedMessageText }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
|
@ -174,9 +174,9 @@
|
||||||
:style="sx('hiddenAccessible', isUnstyled)"
|
:style="sx('hiddenAccessible', isUnstyled)"
|
||||||
:tabindex="0"
|
:tabindex="0"
|
||||||
@focus="onLastHiddenFocus"
|
@focus="onLastHiddenFocus"
|
||||||
|
v-bind="ptm('hiddenLastFocusableEl')"
|
||||||
:data-p-hidden-accessible="true"
|
:data-p-hidden-accessible="true"
|
||||||
:data-p-hidden-focusable="true"
|
:data-p-hidden-focusable="true"
|
||||||
v-bind="ptm('hiddenLastFocusableEl')"
|
|
||||||
></span>
|
></span>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
Loading…
Reference in New Issue