@revenexx/cover 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/app/api/account.ts +8 -0
- package/app/api/categories.ts +3 -0
- package/app/api/checkout.ts +6 -0
- package/app/api/images.ts +4 -0
- package/app/api/markets.ts +3 -0
- package/app/api/product.ts +3 -0
- package/app/api/products.ts +4 -0
- package/app/api/search.ts +4 -0
- package/app/app.config.ts +29 -0
- package/app/assets/css/cover.css +25 -0
- package/app/components/account/AccountMenu.vue +30 -0
- package/app/components/account/AccountShell.vue +18 -0
- package/app/components/account/AccountSidebar.vue +90 -0
- package/app/components/account/address/AccountAddressCard.vue +287 -0
- package/app/components/account/carts/AccountCartsTable.vue +284 -0
- package/app/components/account/dashboard/AccountDashboard.vue +351 -0
- package/app/components/account/directorder/AccountDirectOrder.vue +512 -0
- package/app/components/account/governance/AccountApprovalLimitsTable.vue +221 -0
- package/app/components/account/governance/AccountCostCenterDetail.vue +276 -0
- package/app/components/account/governance/AccountCostCentersTable.vue +252 -0
- package/app/components/account/governance/AccountRequisitionDetail.vue +295 -0
- package/app/components/account/governance/AccountRequisitionsTable.vue +255 -0
- package/app/components/account/governance/AccountWorkflowDetail.vue +215 -0
- package/app/components/account/governance/AccountWorkflowsTable.vue +168 -0
- package/app/components/account/governance/GovernanceApprovalLimitModal.vue +183 -0
- package/app/components/account/governance/GovernanceCostCenterModal.vue +188 -0
- package/app/components/account/governance/GovernanceWorkflowModal.vue +191 -0
- package/app/components/account/orderlists/AccountOrderListDetail.vue +349 -0
- package/app/components/account/orderlists/AccountOrderListsTable.vue +352 -0
- package/app/components/account/orders/AccountOrderDetail.vue +376 -0
- package/app/components/account/orders/AccountOrdersTable.vue +281 -0
- package/app/components/account/preferences/AccountPreferences.vue +50 -0
- package/app/components/auth/AuthForgotPasswordPanel.vue +88 -0
- package/app/components/auth/AuthLoginPanel.vue +103 -0
- package/app/components/auth/AuthLoginTeaser.vue +24 -0
- package/app/components/auth/AuthPageHeader.vue +21 -0
- package/app/components/auth/AuthRegisterPanel.vue +431 -0
- package/app/components/auth/AuthRegisterTeaser.vue +24 -0
- package/app/components/auth/AuthResetPasswordPanel.vue +115 -0
- package/app/components/cart/CartButton.vue +42 -0
- package/app/components/cart/actions/CartCostCenterModal.vue +110 -0
- package/app/components/cart/actions/CartExportModal.vue +82 -0
- package/app/components/cart/actions/CartPositionTextsModal.vue +92 -0
- package/app/components/cart/actions/CartSaveToListModal.vue +177 -0
- package/app/components/cart/actions/CartWorkflowPickerModal.vue +64 -0
- package/app/components/cart/drawer/CartDrawer.vue +49 -0
- package/app/components/cart/item/CartItem.vue +318 -0
- package/app/components/cart/manage/CartNameModal.vue +68 -0
- package/app/components/cart/position/CartPosition.vue +369 -0
- package/app/components/cart/quickadd/CartQuickAdd.vue +145 -0
- package/app/components/cart/recommend/CartCrossSell.vue +102 -0
- package/app/components/cart/recommend/CartRecommendCard.vue +59 -0
- package/app/components/cart/recommend/CartReorderStrip.vue +108 -0
- package/app/components/cart/requisition/CartRequisitionGroup.vue +74 -0
- package/app/components/cart/skeleton/CartSkeleton.vue +18 -0
- package/app/components/cart/summary/CartSummary.vue +25 -0
- package/app/components/cart/summary/CartSummaryBreakdown.vue +35 -0
- package/app/components/cart/switcher/CartSwitcher.vue +147 -0
- package/app/components/cart/target/CartTargetModal.vue +129 -0
- package/app/components/cart/view/CartApprovalsPanel.vue +89 -0
- package/app/components/cart/view/CartListHeader.vue +86 -0
- package/app/components/cart/view/CartPositionList.vue +94 -0
- package/app/components/cart/view/CartSummaryPanel.vue +254 -0
- package/app/components/cart/view/CartView.vue +310 -0
- package/app/components/category/info/CategoryPrice.vue +47 -0
- package/app/components/category/info/CategorySku.vue +15 -0
- package/app/components/category/info/CategoryStock.vue +25 -0
- package/app/components/category/list/CategoryItemCount.vue +27 -0
- package/app/components/category/list/CategoryListPagination.vue +81 -0
- package/app/components/category/skeleton/CategoryDetailSkeleton.vue +12 -0
- package/app/components/category/skeleton/CategoryListSkeleton.vue +65 -0
- package/app/components/category/view/CategoryViewToggle.vue +33 -0
- package/app/components/category/view/GridView.vue +78 -0
- package/app/components/category/view/ListView.vue +80 -0
- package/app/components/checkout/confirmation/CheckoutConfirmationView.vue +289 -0
- package/app/components/checkout/form/CheckoutSchemaForm.vue +72 -0
- package/app/components/checkout/onepage/CheckoutAddressPickerModal.vue +260 -0
- package/app/components/checkout/onepage/CheckoutAddressSection.vue +186 -0
- package/app/components/checkout/onepage/CheckoutDeliverySection.vue +158 -0
- package/app/components/checkout/onepage/CheckoutGate.vue +67 -0
- package/app/components/checkout/onepage/CheckoutGuestDetailsSection.vue +154 -0
- package/app/components/checkout/onepage/CheckoutNotesSection.vue +62 -0
- package/app/components/checkout/onepage/CheckoutOnePageView.vue +77 -0
- package/app/components/checkout/onepage/CheckoutPaymentSection.vue +181 -0
- package/app/components/checkout/onepage/CheckoutSectionTitle.vue +18 -0
- package/app/components/checkout/onepage/CheckoutSummarySection.vue +211 -0
- package/app/components/checkout/onepage/CheckoutWorkflowPanel.vue +38 -0
- package/app/components/layout/AppLogo.vue +21 -0
- package/app/components/layout/footer/Footer.vue +148 -0
- package/app/components/layout/header/AppBar.vue +75 -0
- package/app/components/layout/header/CategoryNav.vue +93 -0
- package/app/components/layout/header/HeaderActionItem.vue +81 -0
- package/app/components/layout/header/LocaleSwitcher.vue +123 -0
- package/app/components/layout/header/MainNav.vue +61 -0
- package/app/components/layout/header/MobileMenu.vue +81 -0
- package/app/components/layout/header/TopBar.vue +63 -0
- package/app/components/listing/ListingView.vue +227 -0
- package/app/components/product/detail/ProductDetailAddToCart.vue +188 -0
- package/app/components/product/detail/ProductDetailDescription.vue +20 -0
- package/app/components/product/detail/ProductDetailImageGallery.vue +58 -0
- package/app/components/product/detail/ProductDetailPricing.vue +108 -0
- package/app/components/product/detail/ProductDetailSaveToList.vue +291 -0
- package/app/components/product/detail/ProductDetailSpecifications.vue +33 -0
- package/app/components/product/detail/ProductDetailStock.vue +36 -0
- package/app/components/search/filter/SearchFacets.vue +256 -0
- package/app/components/search/filter/SearchFacetsDrawer.vue +58 -0
- package/app/components/ui/AppShell.vue +7 -0
- package/app/components/ui/debug/PiniaStateCard.vue +106 -0
- package/app/components/ui/feedback/EmptyState.vue +30 -0
- package/app/components/ui/feedback/ErrorBoundary.vue +44 -0
- package/app/components/ui/feedback/NotFound.vue +34 -0
- package/app/components/ui/forms/CountrySelection.vue +14 -0
- package/app/components/ui/forms/FormKitDatePicker.vue +124 -0
- package/app/components/ui/forms/PasswordInput.vue +136 -0
- package/app/components/ui/forms/SearchInput.vue +213 -0
- package/app/components/ui/table/TableSortButton.vue +51 -0
- package/app/components/ui/table/TableToolbar.vue +66 -0
- package/app/composables/useAccount.ts +27 -0
- package/app/composables/useAccountAddresses.ts +116 -0
- package/app/composables/useAccountOrders.ts +18 -0
- package/app/composables/useAppUrl.ts +38 -0
- package/app/composables/useAuthStore.ts +202 -0
- package/app/composables/useB2BContext.ts +23 -0
- package/app/composables/useCartActions.ts +25 -0
- package/app/composables/useCartCalculation.ts +90 -0
- package/app/composables/useCartSelection.ts +46 -0
- package/app/composables/useCartStore.ts +837 -0
- package/app/composables/useCartSummaryFormatting.ts +28 -0
- package/app/composables/useCategories.ts +29 -0
- package/app/composables/useCheckoutOnePage.ts +438 -0
- package/app/composables/useCheckoutProfileSource.ts +8 -0
- package/app/composables/useCheckoutSchema.ts +28 -0
- package/app/composables/useDataTable.ts +14 -0
- package/app/composables/useFormValidation.ts +29 -0
- package/app/composables/useIcons.ts +17 -0
- package/app/composables/useLocalePreferences.ts +45 -0
- package/app/composables/useMarkets.ts +15 -0
- package/app/composables/useProduct.ts +89 -0
- package/app/composables/useProductCard.ts +8 -0
- package/app/composables/useProductCardActions.ts +106 -0
- package/app/composables/useProductImage.ts +12 -0
- package/app/composables/useProductListing.ts +210 -0
- package/app/composables/useProductUrl.ts +17 -0
- package/app/composables/useProducts.ts +130 -0
- package/app/composables/useSearch.ts +12 -0
- package/app/composables/useThemeStore.ts +81 -0
- package/app/composables/useViewMode.ts +18 -0
- package/app/config/countries.ts +74 -0
- package/app/config/icons.ts +283 -0
- package/app/config/navigation.ts +191 -0
- package/app/config/palette.ts +13 -0
- package/app/config/themes.ts +20 -0
- package/app/formkit.config.ts +50 -0
- package/app/interfaces/account/address-list.ts +34 -0
- package/app/interfaces/account/order-list.ts +47 -0
- package/app/interfaces/account/order-lists.ts +35 -0
- package/app/interfaces/account/profile.ts +17 -0
- package/app/interfaces/account.ts +3 -0
- package/app/interfaces/address.ts +9 -0
- package/app/interfaces/auth.ts +104 -0
- package/app/interfaces/b2b.ts +234 -0
- package/app/interfaces/cart-calculation.ts +131 -0
- package/app/interfaces/cart-item.ts +45 -0
- package/app/interfaces/checkout-draft.ts +4 -0
- package/app/interfaces/checkout.ts +43 -0
- package/app/interfaces/delivery.ts +13 -0
- package/app/interfaces/market.ts +24 -0
- package/app/interfaces/payment.ts +19 -0
- package/app/interfaces/persisted-cart.ts +10 -0
- package/app/interfaces/product-detail.ts +54 -0
- package/app/interfaces/product-list.ts +33 -0
- package/app/interfaces/search-facets.ts +14 -0
- package/app/interfaces/validation.ts +14 -0
- package/app/layouts/default.vue +78 -0
- package/app/layouts/focus.vue +80 -0
- package/app/plugins/formkit-locale.client.ts +23 -0
- package/app/shared/constants.ts +1 -0
- package/app/validations/companyName.ts +18 -0
- package/app/validations/emailFormat.ts +10 -0
- package/app/validations/formValidationConfig.ts +50 -0
- package/app/validations/maxLength.ts +12 -0
- package/app/validations/minLength.ts +9 -0
- package/app/validations/optionalCompanyName.ts +23 -0
- package/app/validations/passwordsMatch.ts +5 -0
- package/app/validations/phoneNumber.ts +19 -0
- package/app/validations/required.ts +11 -0
- package/app/validations/termsRequired.ts +4 -0
- package/app/validations/types.ts +10 -0
- package/app/validations/zipCode.ts +15 -0
- package/i18n/locales/de/account.json +458 -0
- package/i18n/locales/de/auth.json +155 -0
- package/i18n/locales/de/cart.json +263 -0
- package/i18n/locales/de/checkout.json +217 -0
- package/i18n/locales/de/common.json +80 -0
- package/i18n/locales/de/cover.json +33 -0
- package/i18n/locales/de/order.json +1 -0
- package/i18n/locales/de/product.json +71 -0
- package/i18n/locales/de/search.json +54 -0
- package/i18n/locales/de/validation.json +12 -0
- package/i18n/locales/en/account.json +458 -0
- package/i18n/locales/en/auth.json +155 -0
- package/i18n/locales/en/cart.json +263 -0
- package/i18n/locales/en/checkout.json +217 -0
- package/i18n/locales/en/common.json +80 -0
- package/i18n/locales/en/cover.json +33 -0
- package/i18n/locales/en/order.json +1 -0
- package/i18n/locales/en/product.json +71 -0
- package/i18n/locales/en/search.json +54 -0
- package/i18n/locales/en/validation.json +12 -0
- package/nuxt.config.ts +109 -0
- package/package.json +65 -0
- package/public/img/product-placeholder.svg +8 -0
- package/public/templates/direct-order-template.csv +3 -0
- package/public/templates/direct-order-template.xlsx +0 -0
- package/server/api/account/address/[id].delete.ts +51 -0
- package/server/api/account/address/[id].put.ts +83 -0
- package/server/api/account/address/index.post.ts +60 -0
- package/server/api/account/addresses.get.ts +25 -0
- package/server/api/account/context.get.ts +16 -0
- package/server/api/account/governance/[domain]/[id].put.ts +57 -0
- package/server/api/account/governance/[domain].post.ts +111 -0
- package/server/api/account/order-lists/[id].delete.ts +22 -0
- package/server/api/account/order-lists/[id].get.ts +17 -0
- package/server/api/account/order-lists/[id].put.ts +46 -0
- package/server/api/account/order-lists/index.get.ts +14 -0
- package/server/api/account/order-lists/index.post.ts +38 -0
- package/server/api/account/orders/[id].get.ts +35 -0
- package/server/api/account/orders.get.ts +35 -0
- package/server/api/account/profile.get.ts +56 -0
- package/server/api/account/profile.put.ts +128 -0
- package/server/api/account/requisitions/[id].get.ts +15 -0
- package/server/api/account/requisitions.get.ts +23 -0
- package/server/api/auth/login.post.ts +37 -0
- package/server/api/auth/logout.post.ts +4 -0
- package/server/api/auth/me.get.ts +3 -0
- package/server/api/auth/personas.get.ts +7 -0
- package/server/api/auth/recovery.post.ts +32 -0
- package/server/api/auth/recovery.put.ts +37 -0
- package/server/api/auth/register.post.ts +126 -0
- package/server/api/cart/calculate.post.ts +25 -0
- package/server/api/cart/export.post.ts +81 -0
- package/server/api/cart/index.delete.ts +10 -0
- package/server/api/cart/index.get.ts +10 -0
- package/server/api/cart/sync.post.ts +14 -0
- package/server/api/carts/[id]/activate.post.ts +18 -0
- package/server/api/carts/[id]/index.delete.ts +18 -0
- package/server/api/carts/[id]/index.put.ts +19 -0
- package/server/api/carts/[id]/items.post.ts +21 -0
- package/server/api/carts/index.get.ts +14 -0
- package/server/api/carts/index.post.ts +14 -0
- package/server/api/categories/[slug].get.ts +22 -0
- package/server/api/categories/index.get.ts +11 -0
- package/server/api/checkout/profile.get.ts +21 -0
- package/server/api/checkout/schema/[key].get.ts +19 -0
- package/server/api/checkout/session.post.ts +8 -0
- package/server/api/images/detail/[filename].get.ts +18 -0
- package/server/api/images/list/[filename].get.ts +17 -0
- package/server/api/markets.get.ts +9 -0
- package/server/api/orders/index.post.ts +376 -0
- package/server/api/payment/methods.post.ts +65 -0
- package/server/api/product/[id].get.ts +29 -0
- package/server/api/products/[id].get.ts +30 -0
- package/server/api/products/index.get.ts +21 -0
- package/server/api/requisitions/index.post.ts +67 -0
- package/server/api/shipping/rates.post.ts +70 -0
- package/server/api/themes/index.get.ts +9 -0
- package/server/api/typesense/drop.get.ts +22 -0
- package/server/api/typesense/health.get.ts +9 -0
- package/server/api/typesense/search.post.ts +199 -0
- package/server/api/typesense/seed.get.ts +112 -0
- package/server/api/typesense/suggest.post.ts +69 -0
- package/server/config/account/organization.json +146 -0
- package/server/config/account/personas.json +169 -0
- package/server/config/account/user.json +8 -0
- package/server/config/account/workflows.json +19 -0
- package/server/data/account/address-list.json +103 -0
- package/server/data/account/order-list.json +491 -0
- package/server/data/account/order-lists.json +149 -0
- package/server/data/account/profile.json +9 -0
- package/server/data/account/registration-requests.json +3 -0
- package/server/data/account/requisitions.json +686 -0
- package/server/data/categories.json +186 -0
- package/server/data/forms/checkout/add-address.json +24 -0
- package/server/data/list/5137-1.png +0 -0
- package/server/data/list/5498-1.png +0 -0
- package/server/data/list/5498-2.png +0 -0
- package/server/data/list/5498-3.png +0 -0
- package/server/data/list/5498-4.png +0 -0
- package/server/data/list/5498-5.png +0 -0
- package/server/data/list/5498-6.png +0 -0
- package/server/data/list/5519-1.png +0 -0
- package/server/data/list/5713-1.png +0 -0
- package/server/data/list/5789-1.png +0 -0
- package/server/data/list/5930-1.png +0 -0
- package/server/data/list/6127-1.png +0 -0
- package/server/data/list/6234-1.png +0 -0
- package/server/data/list/6238-1.png +0 -0
- package/server/data/list/6246-1.png +0 -0
- package/server/data/list/6270-1.png +0 -0
- package/server/data/list/6330-1.png +0 -0
- package/server/data/list/6336-1.png +0 -0
- package/server/data/list/6360-1.png +0 -0
- package/server/data/list/6363-1.png +0 -0
- package/server/data/list/6375-1.png +0 -0
- package/server/data/list/6385-1.png +0 -0
- package/server/data/list/6413-1.png +0 -0
- package/server/data/list/6418-1.png +0 -0
- package/server/data/list/6465-1.png +0 -0
- package/server/data/list/6477-1.png +0 -0
- package/server/data/list/6509-1.png +0 -0
- package/server/data/list/6545-1.png +0 -0
- package/server/data/list/6548-1.png +0 -0
- package/server/data/list/6566-1.png +0 -0
- package/server/data/list/6581-1.png +0 -0
- package/server/data/list/6609-1.png +0 -0
- package/server/data/list/6611-1.png +0 -0
- package/server/data/list/6641-1.png +0 -0
- package/server/data/list/6659-1.png +0 -0
- package/server/data/list/6662-1.png +0 -0
- package/server/data/list/6689-1.png +0 -0
- package/server/data/list/6698-1.png +0 -0
- package/server/data/list/6701-1.png +0 -0
- package/server/data/list/6752-1.png +0 -0
- package/server/data/list/6755-1.png +0 -0
- package/server/data/list/6837-1.png +0 -0
- package/server/data/list/6841-1.png +0 -0
- package/server/data/list/6844-1.png +0 -0
- package/server/data/list/6846-1.png +0 -0
- package/server/data/list/6886-1.png +0 -0
- package/server/data/list/6895-1.png +0 -0
- package/server/data/list/6897-1.png +0 -0
- package/server/data/list/6919-1.png +0 -0
- package/server/data/list/6977-1.png +0 -0
- package/server/data/list/6983-1.png +0 -0
- package/server/data/list/6984-1.png +0 -0
- package/server/data/list/6985-1.png +0 -0
- package/server/data/list/6986-1.png +0 -0
- package/server/data/list/6989-1.png +0 -0
- package/server/data/list/6995-1.png +0 -0
- package/server/data/list/6998-1.png +0 -0
- package/server/data/markets.json +24 -0
- package/server/data/product-detail.json +2450 -0
- package/server/data/product-list.json +2450 -0
- package/server/data/themes.json +8 -0
- package/server/interfaces/account.ts +20 -0
- package/server/interfaces/auth.ts +32 -0
- package/server/interfaces/b2bContext.ts +23 -0
- package/server/interfaces/cart.ts +46 -0
- package/server/interfaces/cartCalculation.ts +17 -0
- package/server/interfaces/category.ts +12 -0
- package/server/interfaces/checkoutProfile.ts +5 -0
- package/server/interfaces/log.ts +3 -0
- package/server/interfaces/market.ts +10 -0
- package/server/interfaces/product.ts +21 -0
- package/server/interfaces/schema.ts +20 -0
- package/server/interfaces/theme.ts +10 -0
- package/server/services/ApiAuthService.ts +138 -0
- package/server/services/ApiCartService.ts +254 -0
- package/server/services/ApiCategoryService.ts +25 -0
- package/server/services/ApiMarketService.ts +71 -0
- package/server/services/ApiProductService.ts +53 -0
- package/server/services/LocalFileCategoryService.ts +23 -0
- package/server/services/LocalFileCheckoutProfileService.ts +117 -0
- package/server/services/LocalFileProductService.ts +128 -0
- package/server/services/LocalFileSchemaService.ts +70 -0
- package/server/services/LocalFileThemeService.ts +18 -0
- package/server/services/LogService.ts +28 -0
- package/server/services/MockAccountService.ts +58 -0
- package/server/services/MockAuthService.ts +105 -0
- package/server/services/MockB2BContextService.ts +149 -0
- package/server/services/MockCartCalculationService.ts +395 -0
- package/server/services/MockMarketService.ts +18 -0
- package/server/services/SdkAccountService.ts +56 -0
- package/server/services/SdkAuthService.ts +83 -0
- package/server/services/SessionCartService.ts +31 -0
- package/server/utils/accountService.ts +30 -0
- package/server/utils/authCookie.ts +13 -0
- package/server/utils/authService.ts +43 -0
- package/server/utils/b2bService.ts +49 -0
- package/server/utils/cartService.ts +59 -0
- package/server/utils/categoryService.ts +19 -0
- package/server/utils/checkoutProfileService.ts +9 -0
- package/server/utils/checkoutSession.ts +38 -0
- package/server/utils/coverData.ts +84 -0
- package/server/utils/governanceStore.ts +38 -0
- package/server/utils/i18n.ts +76 -0
- package/server/utils/inventoryService.ts +14 -0
- package/server/utils/liveCatalog.ts +234 -0
- package/server/utils/liveInventories.ts +76 -0
- package/server/utils/liveOrders.ts +139 -0
- package/server/utils/livePrices.ts +93 -0
- package/server/utils/locale.ts +39 -0
- package/server/utils/logService.ts +19 -0
- package/server/utils/marketService.ts +24 -0
- package/server/utils/orderService.ts +14 -0
- package/server/utils/paymentService.ts +14 -0
- package/server/utils/priceService.ts +14 -0
- package/server/utils/productService.ts +28 -0
- package/server/utils/productsSchema.ts +30 -0
- package/server/utils/revenexxApi.ts +136 -0
- package/server/utils/schemaService.ts +25 -0
- package/server/utils/serviceMode.ts +70 -0
- package/server/utils/shippingService.ts +14 -0
- package/server/utils/shopSdk.ts +88 -0
- package/server/utils/themeService.ts +16 -0
- package/server/utils/typesense.ts +27 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import CheckoutSectionTitle from "./CheckoutSectionTitle.vue";
|
|
3
|
+
import type { CheckoutGuestAddress } from "../../../composables/useCheckoutOnePage";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Guest checkout details: contact data and the delivery address, with an
|
|
7
|
+
* optional separate billing address. Business guests enter company data;
|
|
8
|
+
* private guests order without it.
|
|
9
|
+
*/
|
|
10
|
+
const { t } = useI18n();
|
|
11
|
+
const {
|
|
12
|
+
form, customerType, guestContact, guestShipping, guestBilling, fieldErrors, validateField,
|
|
13
|
+
} = useCheckoutOnePage();
|
|
14
|
+
|
|
15
|
+
const isBusiness = computed(() => customerType.value === "guest-business");
|
|
16
|
+
|
|
17
|
+
const COUNTRIES = ["DE", "AT", "CH"] as const;
|
|
18
|
+
|
|
19
|
+
const countryItems = computed(() => COUNTRIES.map(code => ({
|
|
20
|
+
value: code,
|
|
21
|
+
label: t(`onepage.guest.countries.${code}`),
|
|
22
|
+
})));
|
|
23
|
+
|
|
24
|
+
interface AddressFieldRow {
|
|
25
|
+
key: keyof CheckoutGuestAddress;
|
|
26
|
+
labelKey: string;
|
|
27
|
+
half?: boolean;
|
|
28
|
+
businessOnly?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const addressFields: AddressFieldRow[] = [
|
|
32
|
+
{ key: "companyName", labelKey: "onepage.guest.companyName", businessOnly: true },
|
|
33
|
+
{ key: "firstName", labelKey: "onepage.guest.firstName", half: true },
|
|
34
|
+
{ key: "lastName", labelKey: "onepage.guest.lastName", half: true },
|
|
35
|
+
{ key: "street", labelKey: "onepage.guest.street" },
|
|
36
|
+
{ key: "postalCode", labelKey: "onepage.guest.postalCode", half: true },
|
|
37
|
+
{ key: "city", labelKey: "onepage.guest.city", half: true },
|
|
38
|
+
];
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<div class="bg-(--ui-bg) border border-(--ui-border) rounded-xl p-6 space-y-6">
|
|
43
|
+
<div class="flex items-center justify-between gap-3">
|
|
44
|
+
<CheckoutSectionTitle
|
|
45
|
+
:step="1"
|
|
46
|
+
:title="t('onepage.sections.guestDetails')"
|
|
47
|
+
/>
|
|
48
|
+
<UBadge
|
|
49
|
+
color="neutral"
|
|
50
|
+
variant="subtle"
|
|
51
|
+
:label="isBusiness ? t('onepage.gate.guestBusiness') : t('onepage.gate.guestPrivate')"
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<!-- Contact -->
|
|
56
|
+
<div class="grid sm:grid-cols-2 gap-4">
|
|
57
|
+
<UFormField
|
|
58
|
+
:label="t('onepage.guest.email')"
|
|
59
|
+
required
|
|
60
|
+
:error="fieldErrors.guestEmail"
|
|
61
|
+
>
|
|
62
|
+
<UInput
|
|
63
|
+
v-model="guestContact.email"
|
|
64
|
+
type="email"
|
|
65
|
+
autocomplete="email"
|
|
66
|
+
class="w-full"
|
|
67
|
+
@blur="validateField('guestEmail')"
|
|
68
|
+
/>
|
|
69
|
+
</UFormField>
|
|
70
|
+
<UFormField :label="t('onepage.guest.phone')">
|
|
71
|
+
<UInput
|
|
72
|
+
v-model="guestContact.phone"
|
|
73
|
+
type="tel"
|
|
74
|
+
autocomplete="tel"
|
|
75
|
+
class="w-full"
|
|
76
|
+
/>
|
|
77
|
+
</UFormField>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<!-- Delivery address -->
|
|
81
|
+
<div class="space-y-3">
|
|
82
|
+
<p class="text-sm font-medium text-muted">
|
|
83
|
+
{{ t('onepage.address.shipping') }}
|
|
84
|
+
</p>
|
|
85
|
+
<div class="grid sm:grid-cols-2 gap-4">
|
|
86
|
+
<template
|
|
87
|
+
v-for="field in addressFields"
|
|
88
|
+
:key="field.key"
|
|
89
|
+
>
|
|
90
|
+
<UFormField
|
|
91
|
+
v-if="!field.businessOnly || isBusiness"
|
|
92
|
+
:label="t(field.labelKey)"
|
|
93
|
+
required
|
|
94
|
+
:class="field.half ? '' : 'sm:col-span-2'"
|
|
95
|
+
>
|
|
96
|
+
<UInput
|
|
97
|
+
v-model="guestShipping[field.key]"
|
|
98
|
+
class="w-full"
|
|
99
|
+
/>
|
|
100
|
+
</UFormField>
|
|
101
|
+
</template>
|
|
102
|
+
<UFormField
|
|
103
|
+
:label="t('onepage.guest.country')"
|
|
104
|
+
required
|
|
105
|
+
>
|
|
106
|
+
<USelect
|
|
107
|
+
v-model="guestShipping.country"
|
|
108
|
+
:items="countryItems"
|
|
109
|
+
class="w-full"
|
|
110
|
+
/>
|
|
111
|
+
</UFormField>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<!-- Billing address -->
|
|
116
|
+
<div class="space-y-3">
|
|
117
|
+
<UCheckbox
|
|
118
|
+
v-model="form.billingSameAsShipping"
|
|
119
|
+
:label="t('onepage.address.sameAsShipping')"
|
|
120
|
+
/>
|
|
121
|
+
<div
|
|
122
|
+
v-if="!form.billingSameAsShipping"
|
|
123
|
+
class="grid sm:grid-cols-2 gap-4"
|
|
124
|
+
>
|
|
125
|
+
<template
|
|
126
|
+
v-for="field in addressFields"
|
|
127
|
+
:key="`billing-${field.key}`"
|
|
128
|
+
>
|
|
129
|
+
<UFormField
|
|
130
|
+
v-if="!field.businessOnly || isBusiness"
|
|
131
|
+
:label="t(field.labelKey)"
|
|
132
|
+
required
|
|
133
|
+
:class="field.half ? '' : 'sm:col-span-2'"
|
|
134
|
+
>
|
|
135
|
+
<UInput
|
|
136
|
+
v-model="guestBilling[field.key]"
|
|
137
|
+
class="w-full"
|
|
138
|
+
/>
|
|
139
|
+
</UFormField>
|
|
140
|
+
</template>
|
|
141
|
+
<UFormField
|
|
142
|
+
:label="t('onepage.guest.country')"
|
|
143
|
+
required
|
|
144
|
+
>
|
|
145
|
+
<USelect
|
|
146
|
+
v-model="guestBilling.country"
|
|
147
|
+
:items="countryItems"
|
|
148
|
+
class="w-full"
|
|
149
|
+
/>
|
|
150
|
+
</UFormField>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import CheckoutSectionTitle from "./CheckoutSectionTitle.vue";
|
|
3
|
+
/**
|
|
4
|
+
* Order information on the document head: customer order number (mandatory
|
|
5
|
+
* per organization flag), quote reference, remarks and the option to skip
|
|
6
|
+
* the order confirmation e-mail (signed-in customers only).
|
|
7
|
+
*/
|
|
8
|
+
const { t } = useI18n();
|
|
9
|
+
const { form, isGuest, orderNumberRequired, fieldErrors, validateField } = useCheckoutOnePage();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div class="bg-(--ui-bg) border border-(--ui-border) rounded-xl p-6 space-y-4">
|
|
14
|
+
<CheckoutSectionTitle
|
|
15
|
+
:step="4"
|
|
16
|
+
:title="t('onepage.sections.orderInfo')"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<div class="grid sm:grid-cols-2 gap-4">
|
|
20
|
+
<UFormField
|
|
21
|
+
:label="t('onepage.orderInfo.orderNumber')"
|
|
22
|
+
:required="orderNumberRequired"
|
|
23
|
+
:error="fieldErrors.orderNumber"
|
|
24
|
+
>
|
|
25
|
+
<UInput
|
|
26
|
+
v-model="form.orderNumber"
|
|
27
|
+
maxlength="20"
|
|
28
|
+
class="w-full"
|
|
29
|
+
:placeholder="t('onepage.orderInfo.orderNumberPlaceholder')"
|
|
30
|
+
@blur="validateField('orderNumber')"
|
|
31
|
+
/>
|
|
32
|
+
</UFormField>
|
|
33
|
+
<UFormField
|
|
34
|
+
v-if="!isGuest"
|
|
35
|
+
:label="t('onepage.orderInfo.quoteNumber')"
|
|
36
|
+
>
|
|
37
|
+
<UInput
|
|
38
|
+
v-model="form.quoteNumber"
|
|
39
|
+
maxlength="20"
|
|
40
|
+
class="w-full"
|
|
41
|
+
:placeholder="t('onepage.orderInfo.quoteNumberPlaceholder')"
|
|
42
|
+
/>
|
|
43
|
+
</UFormField>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<UFormField :label="t('onepage.notes.orderNote')">
|
|
47
|
+
<UTextarea
|
|
48
|
+
v-model="form.orderNote"
|
|
49
|
+
:placeholder="t('onepage.notes.orderNotePlaceholder')"
|
|
50
|
+
:rows="3"
|
|
51
|
+
class="w-full"
|
|
52
|
+
/>
|
|
53
|
+
</UFormField>
|
|
54
|
+
|
|
55
|
+
<UCheckbox
|
|
56
|
+
v-if="!isGuest"
|
|
57
|
+
v-model="form.noOrderConfirmation"
|
|
58
|
+
:label="t('onepage.orderInfo.noConfirmation')"
|
|
59
|
+
:description="t('onepage.orderInfo.noConfirmationHint')"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import CheckoutAddressSection from "../../../components/checkout/onepage/CheckoutAddressSection.vue";
|
|
3
|
+
import CheckoutDeliverySection from "../../../components/checkout/onepage/CheckoutDeliverySection.vue";
|
|
4
|
+
import CheckoutGate from "../../../components/checkout/onepage/CheckoutGate.vue";
|
|
5
|
+
import CheckoutGuestDetailsSection from "../../../components/checkout/onepage/CheckoutGuestDetailsSection.vue";
|
|
6
|
+
import CheckoutNotesSection from "../../../components/checkout/onepage/CheckoutNotesSection.vue";
|
|
7
|
+
import CheckoutPaymentSection from "../../../components/checkout/onepage/CheckoutPaymentSection.vue";
|
|
8
|
+
import CheckoutSummarySection from "../../../components/checkout/onepage/CheckoutSummarySection.vue";
|
|
9
|
+
import CheckoutWorkflowPanel from "../../../components/checkout/onepage/CheckoutWorkflowPanel.vue";
|
|
10
|
+
|
|
11
|
+
const { t } = useI18n();
|
|
12
|
+
const checkout = useCheckoutOnePage();
|
|
13
|
+
const { isGuest, customerType } = checkout;
|
|
14
|
+
const { role } = useB2BContext();
|
|
15
|
+
|
|
16
|
+
// Signed-out visitors pass the gate first: sign in, or continue as a
|
|
17
|
+
// business/private guest (per organization flags). The role comes from
|
|
18
|
+
// the SSR-capable B2B context, so signed-in users get the checkout
|
|
19
|
+
// server-rendered without a gate flash.
|
|
20
|
+
const needsGate = computed(() => !role.value && !isGuest.value);
|
|
21
|
+
|
|
22
|
+
const isRequester = computed(() => role.value === "requester");
|
|
23
|
+
const selectedWorkflowId = useState<string | null>("cart-selected-workflow", () => null);
|
|
24
|
+
|
|
25
|
+
watch(
|
|
26
|
+
() => checkout.profile.value,
|
|
27
|
+
(p) => {
|
|
28
|
+
if (p) {
|
|
29
|
+
checkout.initFromProfile(p);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{ immediate: true },
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
async function onSignedIn(): Promise<void> {
|
|
36
|
+
customerType.value = "account";
|
|
37
|
+
await refreshNuxtData(["checkout-profile", "b2b-context"]);
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<CheckoutGate
|
|
43
|
+
v-if="needsGate"
|
|
44
|
+
@signed-in="onSignedIn"
|
|
45
|
+
/>
|
|
46
|
+
|
|
47
|
+
<div
|
|
48
|
+
v-else
|
|
49
|
+
class="pb-10"
|
|
50
|
+
>
|
|
51
|
+
<div class="pt-10 mb-8">
|
|
52
|
+
<h1 class="text-3xl font-semibold text-highlighted">
|
|
53
|
+
{{ t('onepage.title') }}
|
|
54
|
+
</h1>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="grid lg:grid-cols-[1fr_360px] xl:grid-cols-[1fr_420px] gap-8 items-start">
|
|
58
|
+
<!-- Left: form sections -->
|
|
59
|
+
<div class="space-y-6">
|
|
60
|
+
<CheckoutGuestDetailsSection v-if="isGuest" />
|
|
61
|
+
<CheckoutAddressSection v-else />
|
|
62
|
+
<CheckoutDeliverySection />
|
|
63
|
+
<CheckoutPaymentSection />
|
|
64
|
+
<CheckoutNotesSection />
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<!-- Right: summary (sticky on desktop) -->
|
|
68
|
+
<div class="lg:sticky lg:top-6 space-y-4">
|
|
69
|
+
<CheckoutWorkflowPanel
|
|
70
|
+
v-if="isRequester"
|
|
71
|
+
:workflow-id="selectedWorkflowId"
|
|
72
|
+
/>
|
|
73
|
+
<CheckoutSummarySection />
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import CheckoutSectionTitle from "./CheckoutSectionTitle.vue";
|
|
3
|
+
|
|
4
|
+
import type { PaymentMethod, PaymentOption } from "../../../interfaces/payment";
|
|
5
|
+
|
|
6
|
+
const { icon } = useIcons();
|
|
7
|
+
const { t, locale } = useI18n();
|
|
8
|
+
const { form, profile, profileLoading, fieldErrors, validateField } = useCheckoutOnePage();
|
|
9
|
+
const cartStore = useCartStore();
|
|
10
|
+
|
|
11
|
+
// "What can THIS buyer pay with?" — the BFF resolves it (live: payments
|
|
12
|
+
// app incl. fees/restrictions; mock: the demo profile). Reactive on the
|
|
13
|
+
// order value and the billing country.
|
|
14
|
+
const billingCountry = computed(() => {
|
|
15
|
+
const addressId = form.value.billingSameAsShipping ? form.value.shippingAddressId : form.value.billingAddressId;
|
|
16
|
+
return profile.value?.addresses.find(a => a.id === addressId)?.country ?? "DE";
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const { data: eligible } = useFetch<{
|
|
20
|
+
managed: boolean;
|
|
21
|
+
methods: PaymentOption[];
|
|
22
|
+
defaultMethod: string | null;
|
|
23
|
+
}>("/api/payment/methods", {
|
|
24
|
+
method: "POST",
|
|
25
|
+
body: computed(() => ({
|
|
26
|
+
amount: cartStore.total,
|
|
27
|
+
country: billingCountry.value,
|
|
28
|
+
})),
|
|
29
|
+
headers: computed(() => ({ "x-locale": locale.value })),
|
|
30
|
+
default: () => null,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const paymentOptions = computed<PaymentOption[]>(() =>
|
|
34
|
+
eligible.value?.methods ?? profile.value?.availablePaymentMethods ?? []);
|
|
35
|
+
|
|
36
|
+
// A method that became ineligible (country switch, order value) resets
|
|
37
|
+
// the selection to the first available one.
|
|
38
|
+
watch(paymentOptions, (options) => {
|
|
39
|
+
if (options.length && !options.some(o => o.method === form.value.paymentMethod)) {
|
|
40
|
+
form.value.paymentMethod = eligible.value?.defaultMethod ?? options[0]!.method;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const formatFee = (option: PaymentOption): string | null => {
|
|
45
|
+
if (!option.fee || option.fee <= 0) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return t("onepage.payment.fee", { fee: option.fee.toFixed(2).replace(".", ",") });
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const costCenterOptions = computed(() =>
|
|
52
|
+
profile.value?.costCenters.map(cc => ({
|
|
53
|
+
label: `${cc.code} – ${cc.label}`,
|
|
54
|
+
value: cc.id,
|
|
55
|
+
})) ?? [],
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
function selectMethod(method: PaymentMethod) {
|
|
59
|
+
form.value.paymentMethod = method;
|
|
60
|
+
if (method !== "po_number") {
|
|
61
|
+
form.value.poNumber = "";
|
|
62
|
+
}
|
|
63
|
+
if (method !== "cost_center") {
|
|
64
|
+
form.value.costCenterId = "";
|
|
65
|
+
}
|
|
66
|
+
validateField("paymentMethod");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const showPoNumber = computed(() => form.value.paymentMethod === "po_number");
|
|
70
|
+
const showCostCenter = computed(() =>
|
|
71
|
+
form.value.paymentMethod === "cost_center"
|
|
72
|
+
&& (profile.value?.costCenters.length ?? 0) > 0);
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
76
|
+
<div class="bg-(--ui-bg) border border-(--ui-border) rounded-xl p-6 space-y-6">
|
|
77
|
+
<CheckoutSectionTitle
|
|
78
|
+
:step="3"
|
|
79
|
+
:title="t('onepage.sections.payment')"
|
|
80
|
+
/>
|
|
81
|
+
|
|
82
|
+
<fieldset class="space-y-2">
|
|
83
|
+
<legend class="text-sm font-medium text-muted">
|
|
84
|
+
{{ t('onepage.payment.method') }}
|
|
85
|
+
</legend>
|
|
86
|
+
|
|
87
|
+
<!-- Loading skeleton -->
|
|
88
|
+
<div
|
|
89
|
+
v-if="profileLoading"
|
|
90
|
+
class="grid grid-cols-1 sm:grid-cols-3 gap-3"
|
|
91
|
+
>
|
|
92
|
+
<div
|
|
93
|
+
v-for="index in 3"
|
|
94
|
+
:key="index"
|
|
95
|
+
class="p-4 rounded-lg border border-(--ui-border) space-y-1.5"
|
|
96
|
+
>
|
|
97
|
+
<div class="h-4 w-24 rounded bg-(--ui-border) animate-pulse" />
|
|
98
|
+
<div class="h-3 w-32 rounded bg-(--ui-border) animate-pulse" />
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div
|
|
103
|
+
v-else
|
|
104
|
+
class="grid grid-cols-1 sm:grid-cols-3 gap-3"
|
|
105
|
+
>
|
|
106
|
+
<button
|
|
107
|
+
v-for="option in paymentOptions"
|
|
108
|
+
:key="option.method"
|
|
109
|
+
type="button"
|
|
110
|
+
tabindex="0"
|
|
111
|
+
class="text-left p-4 rounded-lg border transition-colors cursor-pointer
|
|
112
|
+
focus:outline-none focus-visible:ring-2 focus-visible:ring-(--ui-primary)"
|
|
113
|
+
:class="form.paymentMethod === option.method
|
|
114
|
+
? 'border-(--ui-primary) bg-primary/5 ring-1 ring-(--ui-primary)'
|
|
115
|
+
: 'border-(--ui-border) hover:border-(--ui-border-accented)'"
|
|
116
|
+
:aria-pressed="form.paymentMethod === option.method"
|
|
117
|
+
@click="selectMethod(option.method)"
|
|
118
|
+
>
|
|
119
|
+
<div class="flex items-start justify-between gap-3">
|
|
120
|
+
<p class="text-sm font-semibold text-highlighted">
|
|
121
|
+
{{ option.label }}
|
|
122
|
+
</p>
|
|
123
|
+
<UIcon
|
|
124
|
+
v-if="form.paymentMethod === option.method"
|
|
125
|
+
:name="icon('success')"
|
|
126
|
+
class="size-5 text-primary shrink-0"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
<p
|
|
130
|
+
v-if="option.description"
|
|
131
|
+
class="text-xs text-muted mt-1"
|
|
132
|
+
>
|
|
133
|
+
{{ option.description }}
|
|
134
|
+
</p>
|
|
135
|
+
<p
|
|
136
|
+
v-if="formatFee(option)"
|
|
137
|
+
class="text-xs text-warning-600 mt-1"
|
|
138
|
+
>
|
|
139
|
+
{{ formatFee(option) }}
|
|
140
|
+
</p>
|
|
141
|
+
</button>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<p
|
|
145
|
+
v-if="fieldErrors.paymentMethod"
|
|
146
|
+
class="text-sm text-error-500"
|
|
147
|
+
>
|
|
148
|
+
{{ fieldErrors.paymentMethod }}
|
|
149
|
+
</p>
|
|
150
|
+
</fieldset>
|
|
151
|
+
|
|
152
|
+
<!-- Method-specific fields -->
|
|
153
|
+
<div
|
|
154
|
+
v-if="showPoNumber"
|
|
155
|
+
class="space-y-1.5"
|
|
156
|
+
>
|
|
157
|
+
<label class="block text-sm font-medium text-muted">
|
|
158
|
+
{{ t('onepage.payment.poNumber') }}
|
|
159
|
+
</label>
|
|
160
|
+
<UInput
|
|
161
|
+
v-model="form.poNumber"
|
|
162
|
+
class="w-full sm:max-w-sm"
|
|
163
|
+
:placeholder="t('onepage.payment.poNumberPlaceholder')"
|
|
164
|
+
/>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<div
|
|
168
|
+
v-else-if="showCostCenter"
|
|
169
|
+
class="space-y-1.5"
|
|
170
|
+
>
|
|
171
|
+
<label class="block text-sm font-medium text-muted">
|
|
172
|
+
{{ t('onepage.payment.costCenter') }}
|
|
173
|
+
</label>
|
|
174
|
+
<USelect
|
|
175
|
+
v-model="form.costCenterId"
|
|
176
|
+
class="w-full sm:max-w-sm"
|
|
177
|
+
:items="costCenterOptions"
|
|
178
|
+
/>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
/** Numbered section header of the one-page checkout. */
|
|
3
|
+
defineProps<{
|
|
4
|
+
step: number;
|
|
5
|
+
title: string;
|
|
6
|
+
}>();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<h2 class="flex items-center gap-3 text-lg font-semibold text-highlighted">
|
|
11
|
+
<span
|
|
12
|
+
class="flex size-7 shrink-0 items-center justify-center rounded-full
|
|
13
|
+
bg-primary/10 text-(--ui-primary) text-sm font-semibold tabular-nums"
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
>{{ step }}</span>
|
|
16
|
+
{{ title }}
|
|
17
|
+
</h2>
|
|
18
|
+
</template>
|