From a4a1f8dacbc92a045baaa04f2ceab143144011c5 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 9 Nov 2023 16:32:32 +0300 Subject: [PATCH] Update steps demos --- doc/steps/BasicDoc.vue | 144 +----- doc/steps/ControlledDoc.vue | 108 ++++ doc/steps/InteractiveDoc.vue | 571 ---------------------- doc/steps/LinearDoc.vue | 85 ++++ doc/steps/RouterDoc.vue | 218 --------- doc/steps/TemplateDoc.vue | 118 +++++ pages/steps.vue | 57 --- pages/steps/Confirmation.vue | 68 --- pages/steps/Payment.vue | 61 --- pages/steps/Seat.vue | 77 --- pages/steps/index.vue | 106 ++-- public/themes/lara-dark-blue/theme.css | 5 + public/themes/lara-dark-indigo/theme.css | 5 + public/themes/lara-dark-purple/theme.css | 5 + public/themes/lara-dark-teal/theme.css | 5 + public/themes/lara-light-blue/theme.css | 5 + public/themes/lara-light-indigo/theme.css | 5 + public/themes/lara-light-purple/theme.css | 5 + public/themes/lara-light-teal/theme.css | 5 + 19 files changed, 418 insertions(+), 1235 deletions(-) create mode 100644 doc/steps/ControlledDoc.vue delete mode 100644 doc/steps/InteractiveDoc.vue create mode 100644 doc/steps/LinearDoc.vue delete mode 100644 doc/steps/RouterDoc.vue create mode 100644 doc/steps/TemplateDoc.vue delete mode 100755 pages/steps.vue delete mode 100755 pages/steps/Confirmation.vue delete mode 100755 pages/steps/Payment.vue delete mode 100755 pages/steps/Seat.vue mode change 100755 => 100644 pages/steps/index.vue diff --git a/doc/steps/BasicDoc.vue b/doc/steps/BasicDoc.vue index 0e0eb1613..5302e6537 100644 --- a/doc/steps/BasicDoc.vue +++ b/doc/steps/BasicDoc.vue @@ -3,25 +3,7 @@

Steps requires a collection of menuitems as its model.

- - - +
@@ -32,68 +14,23 @@ export default { return { items: [ { - label: 'Personal', - route: '/steps/' + label: 'Personal Info' }, { - label: 'Seat', - route: '/steps/seat' + label: 'Reservation' }, { - label: 'Payment', - route: '/steps/payment' - }, - { - label: 'Confirmation', - route: '/steps/confirmation' + label: 'Review' } ], code: { basic: ` - - - + `, options: ` @@ -103,97 +40,46 @@ export default { return { items: [ { - label: 'Personal', - route: '/' + label: 'Personal Info' }, { - label: 'Seat', - route: '/seat' + label: 'Reservation' }, { - label: 'Payment', - route: '/payment' - }, - { - label: 'Confirmation', - route: '/confirmation' + label: 'Review' } ] } - }, - methods: { - isActive(item) { - return item.route ? this.$router.resolve(item.route).path === this.$route.path : false; - } } } <\/script> `, composition: ` diff --git a/doc/steps/ControlledDoc.vue b/doc/steps/ControlledDoc.vue new file mode 100644 index 000000000..c5a17d76f --- /dev/null +++ b/doc/steps/ControlledDoc.vue @@ -0,0 +1,108 @@ + + + diff --git a/doc/steps/InteractiveDoc.vue b/doc/steps/InteractiveDoc.vue deleted file mode 100644 index 108c2f46d..000000000 --- a/doc/steps/InteractiveDoc.vue +++ /dev/null @@ -1,571 +0,0 @@ - - - diff --git a/doc/steps/LinearDoc.vue b/doc/steps/LinearDoc.vue new file mode 100644 index 000000000..3fda1ca35 --- /dev/null +++ b/doc/steps/LinearDoc.vue @@ -0,0 +1,85 @@ + + + diff --git a/doc/steps/RouterDoc.vue b/doc/steps/RouterDoc.vue deleted file mode 100644 index bf7d6248e..000000000 --- a/doc/steps/RouterDoc.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - diff --git a/doc/steps/TemplateDoc.vue b/doc/steps/TemplateDoc.vue new file mode 100644 index 000000000..ac104f727 --- /dev/null +++ b/doc/steps/TemplateDoc.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/pages/steps.vue b/pages/steps.vue deleted file mode 100755 index ceef7382b..000000000 --- a/pages/steps.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - diff --git a/pages/steps/Confirmation.vue b/pages/steps/Confirmation.vue deleted file mode 100755 index 16bd424f7..000000000 --- a/pages/steps/Confirmation.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - diff --git a/pages/steps/Payment.vue b/pages/steps/Payment.vue deleted file mode 100755 index 4174abb3a..000000000 --- a/pages/steps/Payment.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - diff --git a/pages/steps/Seat.vue b/pages/steps/Seat.vue deleted file mode 100755 index b122c968f..000000000 --- a/pages/steps/Seat.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - diff --git a/pages/steps/index.vue b/pages/steps/index.vue old mode 100755 new mode 100644 index bc8d2bdc8..1872f7fb5 --- a/pages/steps/index.vue +++ b/pages/steps/index.vue @@ -1,65 +1,63 @@ diff --git a/public/themes/lara-dark-blue/theme.css b/public/themes/lara-dark-blue/theme.css index b4b319380..32ef9b271 100644 --- a/public/themes/lara-dark-blue/theme.css +++ b/public/themes/lara-dark-blue/theme.css @@ -5729,4 +5729,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #60a5fa; + color: #030712; + } } diff --git a/public/themes/lara-dark-indigo/theme.css b/public/themes/lara-dark-indigo/theme.css index a2111e809..2769ef51a 100644 --- a/public/themes/lara-dark-indigo/theme.css +++ b/public/themes/lara-dark-indigo/theme.css @@ -5729,4 +5729,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #818cf8; + color: #030712; + } } diff --git a/public/themes/lara-dark-purple/theme.css b/public/themes/lara-dark-purple/theme.css index 91b83692a..616fee3e4 100644 --- a/public/themes/lara-dark-purple/theme.css +++ b/public/themes/lara-dark-purple/theme.css @@ -5729,4 +5729,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #a78bfa; + color: #030712; + } } diff --git a/public/themes/lara-dark-teal/theme.css b/public/themes/lara-dark-teal/theme.css index 1d313868a..975558e66 100644 --- a/public/themes/lara-dark-teal/theme.css +++ b/public/themes/lara-dark-teal/theme.css @@ -5729,4 +5729,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #34d399; + color: #030712; + } } diff --git a/public/themes/lara-light-blue/theme.css b/public/themes/lara-light-blue/theme.css index 84a63fde0..ddd89ed22 100644 --- a/public/themes/lara-light-blue/theme.css +++ b/public/themes/lara-light-blue/theme.css @@ -5721,4 +5721,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #3B82F6; + color: #ffffff; + } } diff --git a/public/themes/lara-light-indigo/theme.css b/public/themes/lara-light-indigo/theme.css index 27ee281d3..a71c9e702 100644 --- a/public/themes/lara-light-indigo/theme.css +++ b/public/themes/lara-light-indigo/theme.css @@ -5721,4 +5721,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #6366F1; + color: #ffffff; + } } diff --git a/public/themes/lara-light-purple/theme.css b/public/themes/lara-light-purple/theme.css index 176dd41de..8e596ac9a 100644 --- a/public/themes/lara-light-purple/theme.css +++ b/public/themes/lara-light-purple/theme.css @@ -5721,4 +5721,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #8B5CF6; + color: #ffffff; + } } diff --git a/public/themes/lara-light-teal/theme.css b/public/themes/lara-light-teal/theme.css index c258a70ae..695a10e74 100644 --- a/public/themes/lara-light-teal/theme.css +++ b/public/themes/lara-light-teal/theme.css @@ -5721,4 +5721,9 @@ .p-orderlist-controls .p-button { transition: opacity 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } + + .p-steps .p-steps-item.p-highlight .p-steps-number { + background: #10b981; + color: #ffffff; + } }