Skip to content

Commit

Permalink
chore: rename UniqueIdMixin to UniqueIdMixinFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
i7slegend committed Apr 11, 2024
1 parent 3ac2d99 commit 5da4c69
Show file tree
Hide file tree
Showing 33 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions components/lib/accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
import ChevronDownIcon from 'primevue/icons/chevrondown';
import ChevronRightIcon from 'primevue/icons/chevronright';
import Ripple from 'primevue/ripple';
import { DomHandler, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, UniqueIdMixinFactory } from 'primevue/utils';
import { mergeProps } from 'vue';
import BaseAccordion from './BaseAccordion.vue';
export default {
name: 'Accordion',
extends: BaseAccordion,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:activeIndex', 'tab-open', 'tab-close', 'tab-click'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/autocomplete/AutoComplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ import TimesCircleIcon from 'primevue/icons/timescircle';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import VirtualScroller from 'primevue/virtualscroller';
import BaseAutoComplete from './BaseAutoComplete.vue';
export default {
name: 'AutoComplete',
extends: BaseAutoComplete,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
outsideClickListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@ import ChevronUpIcon from 'primevue/icons/chevronup';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueComponentId, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueComponentId, UniqueIdMixinFactory } from 'primevue/utils';
import BaseCalendar from './BaseCalendar.vue';
export default {
name: 'Calendar',
extends: BaseCalendar,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'],
navigationState: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/cascadeselect/CascadeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ import ChevronDownIcon from 'primevue/icons/chevrondown';
import SpinnerIcon from 'primevue/icons/spinner';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BaseCascadeSelect from './BaseCascadeSelect.vue';
import CascadeSelectSub from './CascadeSelectSub.vue';
export default {
name: 'CascadeSelect',
extends: BaseCascadeSelect,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'click', 'group-change', 'before-show', 'before-hide', 'hide', 'show'],
outsideClickListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/chips/Chips.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
<script>
import TimesCircleIcon from 'primevue/icons/timescircle';
import BaseChips from './BaseChips.vue';
import { UniqueIdMixin } from 'primevue/utils';
import { UniqueIdMixinFactory } from 'primevue/utils';
export default {
name: 'Chips',
extends: BaseChips,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'add', 'remove', 'focus', 'blur'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/contextmenu/ContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@

<script>
import Portal from 'primevue/portal';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BaseContextMenu from './BaseContextMenu.vue';
import ContextMenuSub from './ContextMenuSub.vue';
export default {
name: 'ContextMenu',
extends: BaseContextMenu,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['focus', 'blur', 'show', 'hide'],
target: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/datatable/ColumnFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ import PlusIcon from 'primevue/icons/plus';
import TrashIcon from 'primevue/icons/trash';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import { mergeProps } from 'vue';
export default {
name: 'ColumnFilter',
hostName: 'DataTable',
extends: BaseComponent,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
emits: ['filter-change', 'filter-apply', 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
props: {
field: {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dialog/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ import WindowMaximizeIcon from 'primevue/icons/windowmaximize';
import WindowMinimizeIcon from 'primevue/icons/windowminimize';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { DomHandler, ZIndexUtils, UniqueComponentId, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ZIndexUtils, UniqueComponentId, UniqueIdMixinFactory } from 'primevue/utils';
import { computed } from 'vue';
import BaseDialog from './BaseDialog.vue';
export default {
name: 'Dialog',
extends: BaseDialog,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:visible', 'show', 'hide', 'after-hide', 'maximize', 'unmaximize', 'dragend'],
provide() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dock/DockSub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
import BaseComponent from 'primevue/basecomponent';
import Ripple from 'primevue/ripple';
import Tooltip from 'primevue/tooltip';
import { DomHandler, ObjectUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, UniqueIdMixinFactory } from 'primevue/utils';
import { mergeProps } from 'vue';
export default {
name: 'DockSub',
hostName: 'Dock',
extends: BaseComponent,
mixins: [UniqueIdMixin('id', (vm) => vm.menuId)],
mixins: [UniqueIdMixinFactory('id', (vm) => vm.menuId)],
emits: ['focus', 'blur'],
props: {
position: {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ import TimesIcon from 'primevue/icons/times';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import VirtualScroller from 'primevue/virtualscroller';
import BaseDropdown from './BaseDropdown.vue';
export default {
name: 'Dropdown',
extends: BaseDropdown,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter'],
outsideClickListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/fieldset/Fieldset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ import MinusIcon from 'primevue/icons/minus';
import PlusIcon from 'primevue/icons/plus';
import Ripple from 'primevue/ripple';
import BaseFieldset from './BaseFieldset.vue';
import { UniqueIdMixin } from 'primevue/utils';
import { UniqueIdMixinFactory } from 'primevue/utils';
export default {
name: 'Fieldset',
extends: BaseFieldset,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:collapsed', 'toggle'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/galleria/GalleriaContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ import TimesIcon from 'primevue/icons/times';
import Ripple from 'primevue/ripple';
import GalleriaItem from './GalleriaItem.vue';
import GalleriaThumbnails from './GalleriaThumbnails.vue';
import { UniqueIdMixin } from 'primevue/utils';
import { UniqueIdMixinFactory } from 'primevue/utils';
export default {
name: 'GalleriaContent',
hostName: 'Galleria',
extends: BaseComponent,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
interval: null,
emits: ['activeitem-change', 'mask-hide'],
Expand Down
4 changes: 2 additions & 2 deletions components/lib/listbox/Listbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@
import { FilterService } from 'primevue/api';
import SearchIcon from 'primevue/icons/search';
import Ripple from 'primevue/ripple';
import { DomHandler, ObjectUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, UniqueIdMixinFactory } from 'primevue/utils';
import VirtualScroller from 'primevue/virtualscroller';
import BaseListbox from './BaseListbox.vue';
export default {
name: 'Listbox',
extends: BaseListbox,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'filter'],
list: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/megamenu/MegaMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
<script>
import BarsIcon from 'primevue/icons/bars';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BaseMegaMenu from './BaseMegaMenu.vue';
import MegaMenuSub from './MegaMenuSub.vue';
export default {
name: 'MegaMenu',
extends: BaseMegaMenu,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['focus', 'blur'],
outsideClickListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/menu/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
<script>
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BaseMenu from './BaseMenu.vue';
import Menuitem from './Menuitem.vue';
export default {
name: 'Menu',
extends: BaseMenu,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['show', 'hide', 'focus', 'blur'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/menubar/Menubar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
<script>
import BarsIcon from 'primevue/icons/bars';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BaseMenubar from './BaseMenubar.vue';
import MenubarSub from './MenubarSub.vue';
export default {
name: 'Menubar',
extends: BaseMenubar,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['focus', 'blur'],
matchMediaListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ import TimesCircleIcon from 'primevue/icons/timescircle';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import Ripple from 'primevue/ripple';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ObjectUtils, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import VirtualScroller from 'primevue/virtualscroller';
import BaseMultiSelect from './BaseMultiSelect.vue';
export default {
name: 'MultiSelect',
extends: BaseMultiSelect,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'before-show', 'before-hide', 'show', 'hide', 'filter', 'selectall-change'],
outsideClickListener: null,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/orderlist/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ import AngleDoubleUpIcon from 'primevue/icons/angledoubleup';
import AngleDownIcon from 'primevue/icons/angledown';
import AngleUpIcon from 'primevue/icons/angleup';
import Ripple from 'primevue/ripple';
import { DomHandler, ObjectUtils, UniqueComponentId, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, UniqueComponentId, UniqueIdMixinFactory } from 'primevue/utils';
import BaseOrderList from './BaseOrderList.vue';
export default {
name: 'OrderList',
extends: BaseOrderList,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'focus', 'blur'],
itemTouched: false,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/panel/Panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ import MinusIcon from 'primevue/icons/minus';
import PlusIcon from 'primevue/icons/plus';
import Ripple from 'primevue/ripple';
import BasePanel from './BasePanel.vue';
import { UniqueIdMixin } from 'primevue/utils';
import { UniqueIdMixinFactory } from 'primevue/utils';
export default {
name: 'Panel',
extends: BasePanel,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:collapsed', 'toggle'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/panelmenu/PanelMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
<script>
import ChevronDownIcon from 'primevue/icons/chevrondown';
import ChevronRightIcon from 'primevue/icons/chevronright';
import { DomHandler, ObjectUtils, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, UniqueIdMixinFactory } from 'primevue/utils';
import { mergeProps } from 'vue';
import BasePanelMenu from './BasePanelMenu.vue';
import PanelMenuList from './PanelMenuList.vue';
export default {
name: 'PanelMenu',
extends: BasePanelMenu,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:expandedKeys', 'panel-open', 'panel-close'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/password/Password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ import EyeSlashIcon from 'primevue/icons/eyeslash';
import InputText from 'primevue/inputtext';
import OverlayEventBus from 'primevue/overlayeventbus';
import Portal from 'primevue/portal';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixin } from 'primevue/utils';
import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils, UniqueIdMixinFactory } from 'primevue/utils';
import BasePassword from './BasePassword.vue';
export default {
name: 'Password',
extends: BasePassword,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur', 'invalid'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/picklist/PickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ import AngleLeftIcon from 'primevue/icons/angleleft';
import AngleRightIcon from 'primevue/icons/angleright';
import AngleUpIcon from 'primevue/icons/angleup';
import Ripple from 'primevue/ripple';
import { DomHandler, ObjectUtils, UniqueComponentId, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, ObjectUtils, UniqueComponentId, UniqueIdMixinFactory } from 'primevue/utils';
import BasePickList from './BasePickList.vue';
export default {
name: 'PickList',
extends: BasePickList,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'move-to-target', 'move-to-source', 'move-all-to-target', 'move-all-to-source', 'focus', 'blur'],
itemTouched: false,
Expand Down
4 changes: 2 additions & 2 deletions components/lib/rating/Rating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
import BanIcon from 'primevue/icons/ban';
import StarIcon from 'primevue/icons/star';
import StarFillIcon from 'primevue/icons/starfill';
import { DomHandler, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, UniqueIdMixinFactory } from 'primevue/utils';
import BaseRating from './BaseRating.vue';
export default {
name: 'Rating',
extends: BaseRating,
mixins: [UniqueIdMixin('name', (vm) => vm.$attrs.name)],
mixins: [UniqueIdMixinFactory('name', (vm) => vm.$attrs.name)],
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'focus', 'blur'],
data() {
Expand Down
4 changes: 2 additions & 2 deletions components/lib/scrollpanel/ScrollPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
</template>

<script>
import { DomHandler, UniqueIdMixin } from 'primevue/utils';
import { DomHandler, UniqueIdMixinFactory } from 'primevue/utils';
import BaseScrollPanel from './BaseScrollPanel.vue';
export default {
name: 'ScrollPanel',
extends: BaseScrollPanel,
mixins: [UniqueIdMixin()],
mixins: [UniqueIdMixinFactory()],
inheritAttrs: false,
initialized: false,
documentResizeListener: null,
Expand Down
Loading

0 comments on commit 5da4c69

Please sign in to comment.