2023-03-01 13:04:38 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Steps components is an indicator for the steps in a wizard workflow. Example below uses nested routes with Steps.
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/steps/)
|
|
|
|
*
|
|
|
|
* @module steps
|
|
|
|
*
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
import { VNode } from 'vue';
|
|
|
|
import { MenuItem } from '../menuitem';
|
2023-03-01 13:04:38 +00:00
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 13:04:38 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties in Steps component.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface StepsProps {
|
|
|
|
/**
|
|
|
|
* Unique identifier of the element.
|
|
|
|
*/
|
|
|
|
id?: string | undefined;
|
|
|
|
/**
|
|
|
|
* An array of menuitems.
|
|
|
|
*/
|
|
|
|
model?: MenuItem[] | undefined;
|
|
|
|
/**
|
|
|
|
* Whether the items are clickable or not.
|
2023-03-01 13:04:38 +00:00
|
|
|
* @defaultValue true
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
readonly?: boolean | undefined;
|
|
|
|
/**
|
|
|
|
* Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
|
2023-03-01 13:04:38 +00:00
|
|
|
* @defaultValue true
|
2022-09-06 12:03:37 +00:00
|
|
|
*/
|
|
|
|
exact?: boolean | undefined;
|
|
|
|
}
|
|
|
|
|
2023-03-01 13:04:38 +00:00
|
|
|
/**
|
|
|
|
* Defines valid slots in Steps component.
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface StepsSlots {
|
|
|
|
/**
|
|
|
|
* Custom item template.
|
|
|
|
* @param {Object} scope - item slot's params.
|
|
|
|
*/
|
2023-03-01 13:04:38 +00:00
|
|
|
item(scope: {
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Menuitem instance
|
|
|
|
*/
|
|
|
|
item: MenuItem;
|
2023-03-01 13:04:38 +00:00
|
|
|
}): VNode[];
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2023-03-01 13:04:38 +00:00
|
|
|
/**
|
|
|
|
* Defines valid emits in Steps component.
|
|
|
|
*/
|
|
|
|
export interface StepsEmits {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 13:04:38 +00:00
|
|
|
/**
|
|
|
|
* **PrimeVue - Steps**
|
|
|
|
*
|
|
|
|
* _Steps components is an indicator for the steps in a wizard workflow. Example below uses nested routes with Steps._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/steps/)
|
|
|
|
* --- ---
|
2023-03-03 10:55:20 +00:00
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
2023-03-01 13:04:38 +00:00
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*
|
|
|
|
*/
|
2022-09-14 11:26:01 +00:00
|
|
|
declare class Steps extends ClassComponent<StepsProps, StepsSlots, StepsEmits> {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
Steps: GlobalComponentConstructor<Steps>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Steps;
|