diff --git a/src/components.ts b/src/components.ts index 89a1b951f..84c574735 100644 --- a/src/components.ts +++ b/src/components.ts @@ -69,7 +69,6 @@ export { default as PButtonTab } from './navigation/tabs/button-tab/PButtonTab.v export { default as PTab } from './navigation/tabs/tab/PTab.vue'; export { default as PHeading } from './data-display/heading/PHeading.vue'; export { default as PTree } from './data-display/tree/PTree.vue'; -export { default as PProgressWizard } from './navigation/wizards/progress-wizard/PProgressWizard.vue'; export { default as PSelectStatus } from './inputs/select-status/PSelectStatus.vue'; export { default as PNotificationBar } from './feedbacks/notification-bar/PNotificationBar.vue'; diff --git a/src/navigation/wizards/progress-wizard/PProgressWizard.stories.ts b/src/navigation/wizards/progress-wizard/PProgressWizard.stories.ts deleted file mode 100644 index f962286e7..000000000 --- a/src/navigation/wizards/progress-wizard/PProgressWizard.stories.ts +++ /dev/null @@ -1,220 +0,0 @@ -import { ref } from 'vue'; - -import { action } from '@storybook/addon-actions'; -import { object, boolean, withKnobs } from '@storybook/addon-knobs'; -import { VTooltip } from 'v-tooltip'; - -import PProgressWizard from '@/navigation/wizards/progress-wizard/PProgressWizard.vue'; - - -export default { - title: 'Navigation/Wizards/Progress Wizard', - component: { PProgressWizard }, - decorators: [withKnobs], - parameters: { - design: { - type: 'figma', - url: 'https://www.figma.com/file/wq4wSowBcADBuUrMEZLz6i/SpaceONE-Console-Design?node-id=5894%3A174372', - }, - }, -}; - -const actions = () => ({ - onChangeStep: action('changeStep'), - onCancel: action('cancel'), - onConfirm: action('confirm'), -}); - -const getProps = () => ({ - tabs: { - default: object('tabs', [ - { - name: 'conf', - label: 'Configure Collector', - }, - { - name: 'credentials', - label: 'Choose Credentials', - }, - { - name: 'tags', - label: 'Add Tags', - help: 'This is description of add tags step.', - }, - ]), - }, - invalidState: { - default: object('invalidState', {}), - }, - loading: { - default: boolean('loading', false), - }, - disabled: { - default: boolean('disabled', false), - }, -}); - - -export const progressWizard = () => ({ - components: { PProgressWizard }, - props: { ...getProps() }, - template: ` - - - - This is contents slot for '{{ tab.name }}' tab. - - This component needs 'tabs' property with follow format: - - key: String (essential), - label: String (recommended), - alert: String (or warning), - invalid: Boolean, - help: Boolean, - optional: Boolean, - - - - - {{item}} - - - * It has min height. - - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); - -export const topSlot = () => ({ - components: { PProgressWizard }, - props: { ...getProps() }, - template: ` - - This is 'top' slot - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); - -export const progressSlot = () => ({ - components: { PProgressWizard }, - props: { ...getProps() }, - template: ` - - - This is progress slot for '{{ tab.name }}' tab. - - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); - -export const helpSlot = () => ({ - components: { PProgressWizard }, - directives: { tooltip: VTooltip }, - props: { ...getProps() }, - template: ` - - HOVER ME! - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); - - -export const stepAppendSlot = () => ({ - components: { PProgressWizard }, - props: { ...getProps() }, - template: ` - - This is step append slot - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); - - -export const bottomSlot = () => ({ - components: { PProgressWizard }, - props: { ...getProps() }, - template: ` - - This is 'bottom' slot - - `, - setup() { - return { - activeIdx: ref(0), - ...actions(), - }; - }, -}); diff --git a/src/navigation/wizards/progress-wizard/PProgressWizard.vue b/src/navigation/wizards/progress-wizard/PProgressWizard.vue deleted file mode 100644 index 064d7b77e..000000000 --- a/src/navigation/wizards/progress-wizard/PProgressWizard.vue +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - - - - - {{ Number(idx) + 1 }}. - {{ tab.label || tab.name }} {{ tab.optional ? `(${$t('COMPONENT.PROGRESS_WIZARD.OPTIONAL')})`: '' }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ $t('COMPONENT.PROGRESS_WIZARD.CANCEL') }} - - - - {{ $t('COMPONENT.PROGRESS_WIZARD.PREV') }} - - - {{ $t('COMPONENT.PROGRESS_WIZARD.NEXT') }} - - - {{ $t('COMPONENT.PROGRESS_WIZARD.CONFIRM') }} - - - - - - - - - - diff --git a/src/navigation/wizards/progress-wizard/type.ts b/src/navigation/wizards/progress-wizard/type.ts deleted file mode 100644 index cf96790eb..000000000 --- a/src/navigation/wizards/progress-wizard/type.ts +++ /dev/null @@ -1,18 +0,0 @@ - -export interface ProgressTab { - name: string; - label?: string; - help?: string; - optional?: string; -} - - -export interface ProgressWizardProps { - tabs: ProgressTab[]; - activeIdx: number; - invalidState: { - [key: string]: boolean; - }; - loading: boolean; - disabled: boolean; -}
- key: String (essential), - label: String (recommended), - alert: String (or warning), - invalid: Boolean, - help: Boolean, - optional: Boolean, -
* It has min height.