Skip to content

Commit

Permalink
Refactor #5681
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 6, 2024
1 parent fd76fe6 commit d7a42ed
Show file tree
Hide file tree
Showing 12 changed files with 250 additions and 152 deletions.
4 changes: 4 additions & 0 deletions components/lib/cascadeselect/CascadeSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ export interface CascadeSelectPassThroughOptions {
* Used to pass attributes to the group icon's DOM element.
*/
groupIcon?: CascadeSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden input container's DOM element.
*/
hiddenInputContainer?: CascadeSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden selected message's DOM element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/cascadeselect/CascadeSelect.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick($event)" v-bind="ptmi('root')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputContainer')" :data-p-hidden-accessible="true">
<input
ref="focusInput"
:id="inputId"
Expand Down
4 changes: 2 additions & 2 deletions components/lib/multiselect/MultiSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ export interface MultiSelectPassThroughOptions {
*/
emptyMessage?: MultiSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden input's DOM element.
* Used to pass attributes to the hidden input container's DOM element.
*/
hiddenInput?: MultiSelectPassThroughOptionType;
hiddenInputContainer?: MultiSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden first focusable element's DOM element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptmi('root')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputContainer')" :data-p-hidden-accessible="true">
<input
ref="focusInput"
:id="inputId"
Expand Down
4 changes: 2 additions & 2 deletions components/lib/paginator/Paginator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ export interface PaginatorSharedPassThroughMethodOptions {
*/
export interface PaginatorPassThroughOptions<T = any> {
/**
* Used to pass attributes to the paginator wrapper's DOM element.
* Used to pass attributes to the paginator container's DOM element.
*/
paginatorWrapper?: PaginatorPassThroughOptionType<T> | any;
paginatorContainer?: PaginatorPassThroughOptionType<T> | any;
/**
* Used to pass attributes to the root's DOM element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/paginator/Paginator.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptmi('paginatorWrapper')">
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptmi('paginatorContainer')">
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" :class="cx('paginator', { key })" v-bind="ptm('root')">
<div v-if="$slots.start" :class="cx('contentStart')" v-bind="ptm('contentStart')">
<slot name="start" :state="currentState"></slot>
Expand Down
4 changes: 2 additions & 2 deletions components/lib/rating/Rating.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export interface RatingPassThroughOptions {
*/
offIcon?: RatingPassThroughOptionType;
/**
* Used to pass attributes to the hidden option input wrapper's DOM element.
* Used to pass attributes to the hidden option input container's DOM element.
*/
hiddenOptionInputWrapper?: RatingPassThroughOptionType;
hiddenOptionInputContainer?: RatingPassThroughOptionType;
/**
* Used to pass attributes to the hidden option input's DOM element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/rating/Rating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div :class="cx('root')" v-bind="ptmi('root')">
<template v-for="value in stars" :key="value">
<div :class="cx('option', { value })" @click="onOptionClick($event, value)" v-bind="getPTOptions('option', value)" :data-p-active="value <= modelValue" :data-p-focused="value === focusedOptionIndex">
<span class="p-hidden-accessible" v-bind="ptm('hiddenOptionInputWrapper')" :data-p-hidden-accessible="true">
<span class="p-hidden-accessible" v-bind="ptm('hiddenOptionInputContainer')" :data-p-hidden-accessible="true">
<input
type="radio"
:value="value"
Expand Down
2 changes: 1 addition & 1 deletion components/lib/tree/Tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export interface TreePassThroughOptions<T = any> {
* Used to pass attributes to the input's DOM element.
* @see {@link InputTextPassThroughOptions}
*/
pcFilterInput?: InputTextPassThroughOptions<TreeSharedPassThroughMethodOptions>;
filterInput?: InputTextPassThroughOptions<TreeSharedPassThroughMethodOptions>;
/**
* Used to pass attributes to the filter icon's DOM element.
*/
Expand Down
4 changes: 2 additions & 2 deletions components/lib/treeselect/TreeSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ export interface TreeSelectPassThroughOptions {
*/
emptyMessage?: TreeSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden input wrapper's DOM element.
* Used to pass attributes to the hidden input container's DOM element.
*/
hiddenInputWrapper?: TreeSelectPassThroughOptionType;
hiddenInputContainer?: TreeSelectPassThroughOptionType;
/**
* Used to pass attributes to the hidden input's DOM element.
*/
Expand Down
2 changes: 1 addition & 1 deletion components/lib/treeselect/TreeSelect.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div ref="container" :class="cx('root')" :style="sx('root')" @click="onClick" v-bind="ptmi('root')">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
<div class="p-hidden-accessible" v-bind="ptm('hiddenInputContainer')" :data-p-hidden-accessible="true">
<input
ref="focusInput"
:id="inputId"
Expand Down

0 comments on commit d7a42ed

Please sign in to comment.