basklee-nuxt 0.0.0-stage → 0.8.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 +1190 -2
- package/bin/basklee-nuxt.mjs +173 -0
- package/package.json +69 -4
- package/runtime/api.mjs +14 -0
- package/runtime/domain.mjs +15 -0
- package/runtime/marketplace.mjs +905 -0
- package/runtime/seo.mjs +17 -0
- package/src/asset-loading-plugin.mjs +10 -0
- package/src/favicon-handler.mjs +12 -0
- package/src/install.mjs +361 -0
- package/src/migrate.mjs +124 -0
- package/src/module.d.ts +3 -0
- package/src/module.mjs +88 -0
- package/src/project-readme.mjs +702 -0
- package/src/service.mjs +186 -0
- package/src/setup.mjs +250 -0
- package/src/sitemap.mjs +93 -0
- package/src/update.mjs +54 -0
- package/src/validation.mjs +33 -0
- package/templates/.vscode/settings.json +5 -0
- package/templates/app/app.vue +52 -0
- package/templates/app/assets/css/basklee-tokens.css +21 -0
- package/templates/app/assets/css/basklee.css +28 -0
- package/templates/app/components/basklee/account/AccountActivity.README.md +31 -0
- package/templates/app/components/basklee/account/AccountActivity.vue +61 -0
- package/templates/app/components/basklee/account/AccountPromocodes.README.md +50 -0
- package/templates/app/components/basklee/account/AccountPromocodes.vue +267 -0
- package/templates/app/components/basklee/account/AccountSection.README.md +31 -0
- package/templates/app/components/basklee/account/AccountSection.vue +132 -0
- package/templates/app/components/basklee/account/ProfileAvatar.vue +139 -0
- package/templates/app/components/basklee/account/ProfileDeleteAccount.vue +161 -0
- package/templates/app/components/basklee/account/ProfileDetailsForm.vue +182 -0
- package/templates/app/components/basklee/account/ProfileEmailSettings.vue +269 -0
- package/templates/app/components/basklee/account/ProfilePasswordForm.vue +201 -0
- package/templates/app/components/basklee/account/ProfileSignIn.vue +446 -0
- package/templates/app/components/basklee/account/SignInHistory.README.md +27 -0
- package/templates/app/components/basklee/account/SignInHistory.vue +218 -0
- package/templates/app/components/basklee/account/StorefrontLogout.README.md +15 -0
- package/templates/app/components/basklee/account/StorefrontLogout.vue +109 -0
- package/templates/app/components/basklee/account/StorefrontProfile.README.md +145 -0
- package/templates/app/components/basklee/account/StorefrontProfile.vue +168 -0
- package/templates/app/components/basklee/account/account.css +1047 -0
- package/templates/app/components/basklee/account/profile.css +696 -0
- package/templates/app/components/basklee/address/AddressForm.README.md +67 -0
- package/templates/app/components/basklee/address/AddressForm.vue +537 -0
- package/templates/app/components/basklee/address/StorefrontAddresses.README.md +44 -0
- package/templates/app/components/basklee/address/StorefrontAddresses.vue +438 -0
- package/templates/app/components/basklee/banners/MainBanner.vue +171 -0
- package/templates/app/components/basklee/banners/examples/BannerExample.vue +6 -0
- package/templates/app/components/basklee/blog/BlogArticle.README.md +44 -0
- package/templates/app/components/basklee/blog/BlogArticle.vue +1023 -0
- package/templates/app/components/basklee/blog/BlogCommentForm.README.md +28 -0
- package/templates/app/components/basklee/blog/BlogCommentForm.vue +129 -0
- package/templates/app/components/basklee/blog/BlogComments.README.md +36 -0
- package/templates/app/components/basklee/blog/BlogComments.vue +373 -0
- package/templates/app/components/basklee/blog/BlogPostCard.vue +307 -0
- package/templates/app/components/basklee/blog/BlogPostGroup.vue +108 -0
- package/templates/app/components/basklee/blog/StorefrontJournal.README.md +42 -0
- package/templates/app/components/basklee/blog/StorefrontJournal.vue +670 -0
- package/templates/app/components/basklee/branding/BrandLogos.vue +25 -0
- package/templates/app/components/basklee/branding/examples/BrandLogosExample.vue +6 -0
- package/templates/app/components/basklee/cart/CartCheckoutDetails.README.md +85 -0
- package/templates/app/components/basklee/cart/CartCheckoutDetails.vue +377 -0
- package/templates/app/components/basklee/cart/CartDeliverySelector.README.md +95 -0
- package/templates/app/components/basklee/cart/CartDeliverySelector.vue +724 -0
- package/templates/app/components/basklee/cart/CartItemOptions.README.md +98 -0
- package/templates/app/components/basklee/cart/CartItemOptions.vue +693 -0
- package/templates/app/components/basklee/cart/CartLineItem.README.md +70 -0
- package/templates/app/components/basklee/cart/CartLineItem.vue +271 -0
- package/templates/app/components/basklee/cart/CartPreview.README.md +43 -0
- package/templates/app/components/basklee/cart/CartPreview.vue +263 -0
- package/templates/app/components/basklee/cart/DeliveryMap.README.md +48 -0
- package/templates/app/components/basklee/cart/DeliveryMap.vue +155 -0
- package/templates/app/components/basklee/cart/StorefrontCart.README.md +89 -0
- package/templates/app/components/basklee/cart/StorefrontCart.vue +689 -0
- package/templates/app/components/basklee/catalog/CatalogHeader.vue +681 -0
- package/templates/app/components/basklee/catalog/CatalogRepresentative.vue +59 -0
- package/templates/app/components/basklee/catalog/StorefrontCatalog.README.md +35 -0
- package/templates/app/components/basklee/catalog/StorefrontCatalog.vue +179 -0
- package/templates/app/components/basklee/catalog/examples/CatalogHeaderExample.vue +6 -0
- package/templates/app/components/basklee/categories/CategoryGroup.vue +125 -0
- package/templates/app/components/basklee/categories/StorefrontCategory.README.md +60 -0
- package/templates/app/components/basklee/categories/StorefrontCategory.vue +277 -0
- package/templates/app/components/basklee/categories/examples/CategoryGroupExample.vue +7 -0
- package/templates/app/components/basklee/contact/AboutPage.README.md +23 -0
- package/templates/app/components/basklee/contact/AboutPage.vue +409 -0
- package/templates/app/components/basklee/contact/ContactForm.README.md +29 -0
- package/templates/app/components/basklee/contact/ContactForm.vue +289 -0
- package/templates/app/components/basklee/contact/EmailUnsubscribe.README.md +27 -0
- package/templates/app/components/basklee/contact/EmailUnsubscribe.vue +95 -0
- package/templates/app/components/basklee/contact/StorefrontContact.README.md +18 -0
- package/templates/app/components/basklee/contact/StorefrontContact.vue +89 -0
- package/templates/app/components/basklee/contact/examples/ContactExample.vue +6 -0
- package/templates/app/components/basklee/currencies/MainCurrencySwitcher.vue +80 -0
- package/templates/app/components/basklee/currencies/examples/CurrencyExample.vue +6 -0
- package/templates/app/components/basklee/events/EventEnrollmentDialog.README.md +58 -0
- package/templates/app/components/basklee/events/EventEnrollmentDialog.vue +294 -0
- package/templates/app/components/basklee/events/EventsBlock.vue +138 -0
- package/templates/app/components/basklee/events/examples/EventsExample.vue +6 -0
- package/templates/app/components/basklee/legal/CookieNotice.README.md +34 -0
- package/templates/app/components/basklee/legal/CookieNotice.vue +84 -0
- package/templates/app/components/basklee/legal/StorefrontPrivacy.README.md +35 -0
- package/templates/app/components/basklee/legal/StorefrontPrivacy.vue +124 -0
- package/templates/app/components/basklee/locale/MainLanguageSwitcher.vue +506 -0
- package/templates/app/components/basklee/locale/examples/LocaleExample.vue +6 -0
- package/templates/app/components/basklee/manufacturers/ManufacturerIndex.README.md +36 -0
- package/templates/app/components/basklee/manufacturers/ManufacturerIndex.vue +495 -0
- package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.README.md +30 -0
- package/templates/app/components/basklee/manufacturers/StorefrontManufacturers.vue +263 -0
- package/templates/app/components/basklee/orders/OrderDetails.README.md +39 -0
- package/templates/app/components/basklee/orders/OrderDetails.vue +1074 -0
- package/templates/app/components/basklee/orders/OrderPaymentForm.README.md +59 -0
- package/templates/app/components/basklee/orders/OrderPaymentForm.vue +73 -0
- package/templates/app/components/basklee/orders/StorefrontOrders.README.md +39 -0
- package/templates/app/components/basklee/orders/StorefrontOrders.vue +869 -0
- package/templates/app/components/basklee/orders/orders.css +612 -0
- package/templates/app/components/basklee/payments/PaymentPanel.README.md +76 -0
- package/templates/app/components/basklee/payments/PaymentPanel.vue +108 -0
- package/templates/app/components/basklee/products/HoverImageViewer.vue +190 -0
- package/templates/app/components/basklee/products/ProductCard.README.md +63 -0
- package/templates/app/components/basklee/products/ProductCard.vue +911 -0
- package/templates/app/components/basklee/products/ProductCardActions.README.md +33 -0
- package/templates/app/components/basklee/products/ProductCardActions.vue +412 -0
- package/templates/app/components/basklee/products/ProductCardBadges.vue +83 -0
- package/templates/app/components/basklee/products/ProductCardDescription.vue +46 -0
- package/templates/app/components/basklee/products/ProductCardFavorite.vue +99 -0
- package/templates/app/components/basklee/products/ProductCardPrice.vue +66 -0
- package/templates/app/components/basklee/products/ProductCardRating.vue +65 -0
- package/templates/app/components/basklee/products/ProductCardSeller.vue +66 -0
- package/templates/app/components/basklee/products/ProductCardStockNotice.vue +43 -0
- package/templates/app/components/basklee/products/ProductCardTitle.vue +46 -0
- package/templates/app/components/basklee/products/ProductCardVariants.vue +388 -0
- package/templates/app/components/basklee/products/ProductGroup.vue +259 -0
- package/templates/app/components/basklee/products/ProductPreorderDialog.README.md +22 -0
- package/templates/app/components/basklee/products/ProductPreorderDialog.vue +471 -0
- package/templates/app/components/basklee/products/ProductReviewForm.README.md +39 -0
- package/templates/app/components/basklee/products/ProductReviewForm.vue +312 -0
- package/templates/app/components/basklee/products/ProductReviewGallery.README.md +28 -0
- package/templates/app/components/basklee/products/ProductReviewGallery.vue +141 -0
- package/templates/app/components/basklee/products/ProductReviewImageViewer.README.md +52 -0
- package/templates/app/components/basklee/products/ProductReviewImageViewer.vue +425 -0
- package/templates/app/components/basklee/products/ProductReviews.README.md +70 -0
- package/templates/app/components/basklee/products/ProductReviews.vue +1025 -0
- package/templates/app/components/basklee/products/ProductSecondaryVariantModal.vue +460 -0
- package/templates/app/components/basklee/products/ProductSpecificationsDialog.README.md +65 -0
- package/templates/app/components/basklee/products/ProductSpecificationsDialog.vue +174 -0
- package/templates/app/components/basklee/products/StorefrontProduct.README.md +52 -0
- package/templates/app/components/basklee/products/StorefrontProduct.vue +1468 -0
- package/templates/app/components/basklee/products/StorefrontWishlist.README.md +33 -0
- package/templates/app/components/basklee/products/StorefrontWishlist.vue +290 -0
- package/templates/app/components/basklee/products/examples/FeaturedExample.vue +6 -0
- package/templates/app/components/basklee/products/examples/FeaturedHoverImageViewerExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardActionsExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardBadgesExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardDescriptionExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardFavoriteExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardPriceExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardRatingExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardSellerExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardStockNoticeExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardTitleExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/FeaturedProductCardVariantsExample.vue +14 -0
- package/templates/app/components/basklee/products/examples/ProductsExample.vue +6 -0
- package/templates/app/components/basklee/products/examples/ProductsHoverImageViewerExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardActionsExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardBadgesExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardDescriptionExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardFavoriteExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardPriceExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardRatingExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardSellerExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardStockNoticeExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardTitleExample.vue +13 -0
- package/templates/app/components/basklee/products/examples/ProductsProductCardVariantsExample.vue +13 -0
- package/templates/app/components/basklee/promo/PromoProducts.README.md +45 -0
- package/templates/app/components/basklee/promo/PromoProducts.vue +287 -0
- package/templates/app/components/basklee/search/MainSearch.vue +340 -0
- package/templates/app/components/basklee/search/ProductSearchResults.README.md +81 -0
- package/templates/app/components/basklee/search/ProductSearchResults.vue +506 -0
- package/templates/app/components/basklee/search/SearchFilters.vue +546 -0
- package/templates/app/components/basklee/search/examples/MainSearchExample.vue +6 -0
- package/templates/app/components/basklee/sellers/SellerFilters.README.md +32 -0
- package/templates/app/components/basklee/sellers/SellerFilters.vue +317 -0
- package/templates/app/components/basklee/sellers/SellerPhotoGallery.README.md +45 -0
- package/templates/app/components/basklee/sellers/SellerPhotoGallery.vue +406 -0
- package/templates/app/components/basklee/sellers/SellerSummary.README.md +33 -0
- package/templates/app/components/basklee/sellers/SellerSummary.vue +162 -0
- package/templates/app/components/basklee/sellers/StorefrontSellers.README.md +73 -0
- package/templates/app/components/basklee/sellers/StorefrontSellers.vue +300 -0
- package/templates/app/components/basklee/shared/BaskleeAvatar.README.md +30 -0
- package/templates/app/components/basklee/shared/BaskleeAvatar.vue +83 -0
- package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.README.md +65 -0
- package/templates/app/components/basklee/shared/BaskleeBreadcrumbs.vue +118 -0
- package/templates/app/components/basklee/shared/BaskleeEmptyState.README.md +38 -0
- package/templates/app/components/basklee/shared/BaskleeEmptyState.vue +143 -0
- package/templates/app/components/basklee/shared/BaskleeImage.vue +84 -0
- package/templates/app/components/basklee/shared/BaskleeInfoHint.README.md +32 -0
- package/templates/app/components/basklee/shared/BaskleeInfoHint.vue +158 -0
- package/templates/app/components/basklee/shared/BaskleePasswordInput.README.md +30 -0
- package/templates/app/components/basklee/shared/BaskleePasswordInput.vue +197 -0
- package/templates/app/components/basklee/shared/BaskleeSearchSelect.README.md +38 -0
- package/templates/app/components/basklee/shared/BaskleeSearchSelect.vue +411 -0
- package/templates/app/components/basklee/shared/BaskleeSelect.README.md +31 -0
- package/templates/app/components/basklee/shared/BaskleeSelect.vue +525 -0
- package/templates/app/components/basklee/shared/StorefrontErrorPage.README.md +55 -0
- package/templates/app/components/basklee/shared/StorefrontErrorPage.vue +151 -0
- package/templates/app/components/basklee/shared/StorefrontPagination.README.md +50 -0
- package/templates/app/components/basklee/shared/StorefrontPagination.vue +148 -0
- package/templates/app/components/basklee/shared/dialogs.css +36 -0
- package/templates/app/components/basklee/shared/features.css +364 -0
- package/templates/app/components/basklee/social/SocialLinks.vue +72 -0
- package/templates/app/components/basklee/social/examples/SocialLinksExample.vue +6 -0
- package/templates/app/components/basklee/storefront/StorefrontAccount.README.md +47 -0
- package/templates/app/components/basklee/storefront/StorefrontAccount.vue +332 -0
- package/templates/app/components/basklee/storefront/StorefrontCartButton.vue +68 -0
- package/templates/app/components/basklee/storefront/StorefrontFooter.README.md +26 -0
- package/templates/app/components/basklee/storefront/StorefrontFooter.vue +236 -0
- package/templates/app/components/basklee/storefront/StorefrontHeader.README.md +93 -0
- package/templates/app/components/basklee/storefront/StorefrontHeader.vue +509 -0
- package/templates/app/components/basklee/storefront/StorefrontHome.README.md +79 -0
- package/templates/app/components/basklee/storefront/StorefrontHome.vue +315 -0
- package/templates/app/components/basklee/storefront/StorefrontWishlistButton.vue +105 -0
- package/templates/app/components/basklee/storefront/examples/StorefrontAccountExample.vue +7 -0
- package/templates/app/components/basklee/stores/StorefrontStores.README.md +41 -0
- package/templates/app/components/basklee/stores/StorefrontStores.vue +346 -0
- package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.README.md +151 -0
- package/templates/app/components/basklee/subscriptions/StorefrontSubscriptions.vue +851 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariff.README.md +38 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariff.vue +555 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariffs.README.md +36 -0
- package/templates/app/components/basklee/subscriptions/StorefrontTariffs.vue +416 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.README.md +39 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionCancelDialog.vue +292 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.README.md +85 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionChangeDialog.vue +874 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.README.md +53 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionExtendDialog.vue +536 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.README.md +101 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionPlanSummary.vue +286 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.README.md +138 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRemoteDetails.vue +134 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.README.md +85 -0
- package/templates/app/components/basklee/subscriptions/SubscriptionRenewalDialog.vue +364 -0
- package/templates/app/components/basklee/support/StorefrontSupport.README.md +39 -0
- package/templates/app/components/basklee/support/StorefrontSupport.vue +484 -0
- package/templates/app/components/basklee/support/TicketConversation.README.md +38 -0
- package/templates/app/components/basklee/support/TicketConversation.vue +524 -0
- package/templates/app/components/basklee/support/TicketImage.README.md +27 -0
- package/templates/app/components/basklee/support/TicketImage.vue +186 -0
- package/templates/app/components/basklee/support/TicketItemCard.README.md +59 -0
- package/templates/app/components/basklee/support/TicketItemCard.vue +177 -0
- package/templates/app/components/basklee/support/TicketMessageForm.README.md +35 -0
- package/templates/app/components/basklee/support/TicketMessageForm.vue +258 -0
- package/templates/app/components/basklee/support/TicketSubscriptionCard.README.md +40 -0
- package/templates/app/components/basklee/support/TicketSubscriptionCard.vue +154 -0
- package/templates/app/components/basklee/tariffs/TariffCard.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCard.vue +251 -0
- package/templates/app/components/basklee/tariffs/TariffCardDescription.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardDescription.vue +97 -0
- package/templates/app/components/basklee/tariffs/TariffCardFeatures.README.md +14 -0
- package/templates/app/components/basklee/tariffs/TariffCardFeatures.vue +172 -0
- package/templates/app/components/basklee/tariffs/TariffCardImage.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardImage.vue +33 -0
- package/templates/app/components/basklee/tariffs/TariffCardPrices.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardPrices.vue +300 -0
- package/templates/app/components/basklee/tariffs/TariffCardTitle.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCardTitle.vue +30 -0
- package/templates/app/components/basklee/tariffs/TariffCards.README.md +12 -0
- package/templates/app/components/basklee/tariffs/TariffCards.vue +94 -0
- package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.README.md +31 -0
- package/templates/app/components/basklee/tariffs/TariffSubscriptionModal.vue +411 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardDescriptionExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardFeaturesExample.vue +14 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardImageExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardPricesExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardTitleExample.vue +13 -0
- package/templates/app/components/basklee/tariffs/examples/TariffCardsExample.vue +6 -0
- package/templates/app/components/basklee/theme/BaskleeThemeProvider.vue +38 -0
- package/templates/app/components/basklee/units/UnitSwitcher.vue +71 -0
- package/templates/app/components/basklee/units/examples/LengthExample.vue +6 -0
- package/templates/app/components/basklee/units/examples/WeightExample.vue +6 -0
- package/templates/app/components/basklee/wallet/StorefrontWallet.README.md +117 -0
- package/templates/app/components/basklee/wallet/StorefrontWallet.vue +863 -0
- package/templates/app/components/basklee/wallet/WalletBalance.vue +47 -0
- package/templates/app/components/basklee/wallet/WalletTopUpForm.README.md +32 -0
- package/templates/app/components/basklee/wallet/WalletTopUpForm.vue +224 -0
- package/templates/app/components/basklee/wallet/examples/WalletExample.vue +6 -0
- package/templates/app/composables/useBaskleeActionMenu.ts +126 -0
- package/templates/app/composables/useBaskleeAddressEditor.ts +343 -0
- package/templates/app/composables/useBaskleeAddresses.ts +75 -0
- package/templates/app/composables/useBaskleeApi.ts +190 -0
- package/templates/app/composables/useBaskleeAppLoad.ts +83 -0
- package/templates/app/composables/useBaskleeBlogComments.ts +325 -0
- package/templates/app/composables/useBaskleeBlogReading.ts +270 -0
- package/templates/app/composables/useBaskleeCart.ts +226 -0
- package/templates/app/composables/useBaskleeCartPreview.ts +142 -0
- package/templates/app/composables/useBaskleeCategoryLink.ts +24 -0
- package/templates/app/composables/useBaskleeCategoryProducts.ts +16 -0
- package/templates/app/composables/useBaskleeFeature.ts +100 -0
- package/templates/app/composables/useBaskleeFeaturedProducts.ts +14 -0
- package/templates/app/composables/useBaskleeGeolocation.ts +28 -0
- package/templates/app/composables/useBaskleeHomeProducts.ts +90 -0
- package/templates/app/composables/useBaskleeManufacturerIndex.ts +83 -0
- package/templates/app/composables/useBaskleeMap.ts +240 -0
- package/templates/app/composables/useBaskleeMediaFormat.ts +24 -0
- package/templates/app/composables/useBaskleeMissingPage.ts +67 -0
- package/templates/app/composables/useBaskleeOrders.ts +185 -0
- package/templates/app/composables/useBaskleePageSeo.ts +133 -0
- package/templates/app/composables/useBaskleeProductActions.ts +116 -0
- package/templates/app/composables/useBaskleeProductLink.ts +24 -0
- package/templates/app/composables/useBaskleeProductSearch.ts +363 -0
- package/templates/app/composables/useBaskleeProductVariants.ts +176 -0
- package/templates/app/composables/useBaskleeProfile.ts +309 -0
- package/templates/app/composables/useBaskleeProgress.ts +89 -0
- package/templates/app/composables/useBaskleeReviews.ts +242 -0
- package/templates/app/composables/useBaskleeSearchHistory.ts +23 -0
- package/templates/app/composables/useBaskleeSearchScopeNames.ts +99 -0
- package/templates/app/composables/useBaskleeServerData.ts +72 -0
- package/templates/app/composables/useBaskleeSignIn.ts +66 -0
- package/templates/app/composables/useBaskleeStableHeight.ts +69 -0
- package/templates/app/composables/useBaskleeStorefront.ts +29 -0
- package/templates/app/composables/useBaskleeSubscriptions.ts +260 -0
- package/templates/app/composables/useBaskleeTheme.ts +27 -0
- package/templates/app/composables/useBaskleeTicketSubject.ts +180 -0
- package/templates/app/composables/useBaskleeTickets.ts +335 -0
- package/templates/app/composables/useBaskleeWallet.ts +166 -0
- package/templates/app/error.vue +108 -0
- package/templates/app/interfaces/basklee/accounts/IContact.ts +21 -0
- package/templates/app/interfaces/basklee/accounts/IEmailNotificationLocale.ts +17 -0
- package/templates/app/interfaces/basklee/accounts/IEmailVerification.ts +59 -0
- package/templates/app/interfaces/basklee/accounts/IProfileActions.ts +38 -0
- package/templates/app/interfaces/basklee/accounts/IProfileData.ts +125 -0
- package/templates/app/interfaces/basklee/accounts/IProfileMedia.ts +17 -0
- package/templates/app/interfaces/basklee/accounts/IStorefrontProfile.ts +54 -0
- package/templates/app/interfaces/basklee/address/IAddressCitySuggestion.ts +19 -0
- package/templates/app/interfaces/basklee/address/IAddressEditor.ts +9 -0
- package/templates/app/interfaces/basklee/address/IAddressLocationSuggestion.ts +22 -0
- package/templates/app/interfaces/basklee/address/IAddressRegionSearch.ts +30 -0
- package/templates/app/interfaces/basklee/address/IAddressSuggestion.ts +20 -0
- package/templates/app/interfaces/basklee/address/IUserAddress.ts +87 -0
- package/templates/app/interfaces/basklee/apiBase/TMethod.ts +1 -0
- package/templates/app/interfaces/basklee/appBase/IAppLoad.ts +16 -0
- package/templates/app/interfaces/basklee/appBase/IAppLoadCommon.ts +47 -0
- package/templates/app/interfaces/basklee/appBase/IApploadUserProfile.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/IForm.ts +21 -0
- package/templates/app/interfaces/basklee/appBase/ISEO.ts +21 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonBanner.ts +11 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonContact.ts +8 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonCurrency.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonEvents.ts +18 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLocale.ts +14 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonLogos.ts +6 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonPath.ts +22 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSEO.ts +26 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonSocial.ts +15 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonTariff.ts +7 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonUnit.ts +12 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVariables.ts +8 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonVisualSettings.ts +11 -0
- package/templates/app/interfaces/basklee/appBase/appLoadCommon/IAppLoadCommonWalletValue.ts +3 -0
- package/templates/app/interfaces/basklee/blog/IBlogApi.ts +247 -0
- package/templates/app/interfaces/basklee/blog/IBlogPostPreview.ts +30 -0
- package/templates/app/interfaces/basklee/cart/ICartActions.ts +67 -0
- package/templates/app/interfaces/basklee/cart/ICartData.ts +382 -0
- package/templates/app/interfaces/basklee/cart/ICartDeliveryActions.ts +68 -0
- package/templates/app/interfaces/basklee/cart/ICartModal.ts +22 -0
- package/templates/app/interfaces/basklee/cart/IDeliveryMap.ts +29 -0
- package/templates/app/interfaces/basklee/catalog/ICatalogDirectory.ts +75 -0
- package/templates/app/interfaces/basklee/category/ICategory.ts +41 -0
- package/templates/app/interfaces/basklee/domains/IDomain.ts +13 -0
- package/templates/app/interfaces/basklee/forms/ICustomerSubfilter.ts +19 -0
- package/templates/app/interfaces/basklee/index.ts +57 -0
- package/templates/app/interfaces/basklee/marketing/IPromoActions.ts +51 -0
- package/templates/app/interfaces/basklee/orders/IOrderActions.ts +99 -0
- package/templates/app/interfaces/basklee/orders/IOrderHistory.ts +259 -0
- package/templates/app/interfaces/basklee/orders/IProductPreorder.ts +31 -0
- package/templates/app/interfaces/basklee/payments/IInvoice.ts +147 -0
- package/templates/app/interfaces/basklee/products/IProduct.ts +262 -0
- package/templates/app/interfaces/basklee/products/IProductFeedbackApi.ts +218 -0
- package/templates/app/interfaces/basklee/products/IProductSearchApi.ts +146 -0
- package/templates/app/interfaces/basklee/products/IProductSearchFacets.ts +35 -0
- package/templates/app/interfaces/basklee/products/IProductSecondaryVariantRequest.ts +15 -0
- package/templates/app/interfaces/basklee/products/IProductSpecification.ts +14 -0
- package/templates/app/interfaces/basklee/products/IWishlist.ts +22 -0
- package/templates/app/interfaces/basklee/sellers/ISellerDirectory.ts +70 -0
- package/templates/app/interfaces/basklee/shared/IBreadcrumb.ts +10 -0
- package/templates/app/interfaces/basklee/shared/IGeoCoordinates.ts +4 -0
- package/templates/app/interfaces/basklee/shared/IStorefrontControls.ts +13 -0
- package/templates/app/interfaces/basklee/shared/ITransformValue.ts +3 -0
- package/templates/app/interfaces/basklee/state.ts +4 -0
- package/templates/app/interfaces/basklee/stores/IStoreDirectory.ts +63 -0
- package/templates/app/interfaces/basklee/subscribeOptions/ISubscribeOption.ts +9 -0
- package/templates/app/interfaces/basklee/subscribeTariff/ISubscribeTariff.ts +56 -0
- package/templates/app/interfaces/basklee/subscribeTariff/ITariffSelection.ts +11 -0
- package/templates/app/interfaces/basklee/subscribes/ISubscribe.ts +28 -0
- package/templates/app/interfaces/basklee/subscribes/ISubscriptionApi.ts +127 -0
- package/templates/app/interfaces/basklee/tickets/ICustomerTicketApi.ts +223 -0
- package/templates/app/interfaces/basklee/transport.ts +34 -0
- package/templates/app/layouts/default.vue +382 -0
- package/templates/app/middleware/00.basklee.global.ts +27 -0
- package/templates/app/middleware/01.basklee-sellers.global.ts +15 -0
- package/templates/app/middleware/basklee-account.ts +40 -0
- package/templates/app/pages/activity.vue +19 -0
- package/templates/app/pages/addresses.vue +23 -0
- package/templates/app/pages/browse.vue +253 -0
- package/templates/app/pages/cart.vue +20 -0
- package/templates/app/pages/catalog.vue +17 -0
- package/templates/app/pages/category/[id].vue +150 -0
- package/templates/app/pages/contact.vue +17 -0
- package/templates/app/pages/featured.vue +152 -0
- package/templates/app/pages/index.vue +194 -0
- package/templates/app/pages/journal/[id].vue +164 -0
- package/templates/app/pages/journal/index.vue +74 -0
- package/templates/app/pages/logout.vue +71 -0
- package/templates/app/pages/manufacturers.vue +33 -0
- package/templates/app/pages/orders.vue +40 -0
- package/templates/app/pages/privacy.vue +17 -0
- package/templates/app/pages/product/[id].vue +150 -0
- package/templates/app/pages/profile.vue +118 -0
- package/templates/app/pages/promo/[id].vue +67 -0
- package/templates/app/pages/promocodes.vue +21 -0
- package/templates/app/pages/sellers.vue +203 -0
- package/templates/app/pages/stores.vue +36 -0
- package/templates/app/pages/subscriptions.vue +21 -0
- package/templates/app/pages/tariffs/[slug]/[id].vue +126 -0
- package/templates/app/pages/tariffs/index.vue +50 -0
- package/templates/app/pages/tickets.vue +56 -0
- package/templates/app/pages/unsubscribe.vue +32 -0
- package/templates/app/pages/wallet.vue +23 -0
- package/templates/app/pages/wishlist.vue +48 -0
- package/templates/app/stores/basklee.ts +493 -0
- package/templates/app/stores/baskleeBrowse.ts +79 -0
- package/templates/app/stores/baskleeCatalog.ts +141 -0
- package/templates/app/stores/baskleeDomainAccess.ts +55 -0
- package/templates/app/stores/baskleeProducts.ts +249 -0
- package/templates/app/stores/baskleeSelections.ts +132 -0
- package/templates/app/themes/basklee.ts +108 -0
- package/templates/app/utils/basklee/accountLabels.ts +29 -0
- package/templates/app/utils/basklee/activityLabels.ts +96 -0
- package/templates/app/utils/basklee/activityPresentation.ts +16 -0
- package/templates/app/utils/basklee/addressChanges.ts +26 -0
- package/templates/app/utils/basklee/addressRegions.ts +17 -0
- package/templates/app/utils/basklee/api.ts +333 -0
- package/templates/app/utils/basklee/blogArticleHtml.ts +318 -0
- package/templates/app/utils/basklee/blogComments.ts +133 -0
- package/templates/app/utils/basklee/blogImageViewer.ts +84 -0
- package/templates/app/utils/basklee/blogLabels.ts +167 -0
- package/templates/app/utils/basklee/blogLayout.ts +108 -0
- package/templates/app/utils/basklee/blogProductPlacements.ts +105 -0
- package/templates/app/utils/basklee/breadcrumbLabels.ts +14 -0
- package/templates/app/utils/basklee/browseLabels.ts +145 -0
- package/templates/app/utils/basklee/cartAddress.ts +94 -0
- package/templates/app/utils/basklee/cartLabels.ts +390 -0
- package/templates/app/utils/basklee/cartOptions.ts +143 -0
- package/templates/app/utils/basklee/cartPreview.ts +123 -0
- package/templates/app/utils/basklee/cartPromo.ts +150 -0
- package/templates/app/utils/basklee/cartShipment.ts +74 -0
- package/templates/app/utils/basklee/cartSnapshot.ts +20 -0
- package/templates/app/utils/basklee/catalog.ts +106 -0
- package/templates/app/utils/basklee/category.ts +52 -0
- package/templates/app/utils/basklee/categoryLabels.ts +44 -0
- package/templates/app/utils/basklee/contactLabels.ts +152 -0
- package/templates/app/utils/basklee/currency.ts +128 -0
- package/templates/app/utils/basklee/deliveryMap.ts +89 -0
- package/templates/app/utils/basklee/directoryLabels.ts +196 -0
- package/templates/app/utils/basklee/emptyStateArt.ts +231 -0
- package/templates/app/utils/basklee/errorPageLabels.ts +95 -0
- package/templates/app/utils/basklee/featureData.ts +25 -0
- package/templates/app/utils/basklee/featureLabels.ts +406 -0
- package/templates/app/utils/basklee/featuredLabels.ts +38 -0
- package/templates/app/utils/basklee/files.ts +71 -0
- package/templates/app/utils/basklee/footerLabels.ts +53 -0
- package/templates/app/utils/basklee/guestSession.ts +50 -0
- package/templates/app/utils/basklee/headerLabels.ts +98 -0
- package/templates/app/utils/basklee/homeContent.ts +129 -0
- package/templates/app/utils/basklee/homeLabels.ts +74 -0
- package/templates/app/utils/basklee/htmlText.ts +59 -0
- package/templates/app/utils/basklee/links.ts +14 -0
- package/templates/app/utils/basklee/manufacturerIndex.ts +108 -0
- package/templates/app/utils/basklee/modalWindow.ts +109 -0
- package/templates/app/utils/basklee/nativeApp.ts +361 -0
- package/templates/app/utils/basklee/notice.ts +22 -0
- package/templates/app/utils/basklee/orderLabels.ts +454 -0
- package/templates/app/utils/basklee/orderPresentation.ts +629 -0
- package/templates/app/utils/basklee/pageSeo.ts +662 -0
- package/templates/app/utils/basklee/paginationScroll.ts +131 -0
- package/templates/app/utils/basklee/phone.ts +22 -0
- package/templates/app/utils/basklee/presentation.ts +72 -0
- package/templates/app/utils/basklee/privacyLabels.ts +273 -0
- package/templates/app/utils/basklee/productActionLabels.ts +108 -0
- package/templates/app/utils/basklee/productActions.ts +574 -0
- package/templates/app/utils/basklee/productAvailability.ts +36 -0
- package/templates/app/utils/basklee/productGallery.ts +72 -0
- package/templates/app/utils/basklee/productLabels.ts +119 -0
- package/templates/app/utils/basklee/productListLocation.ts +130 -0
- package/templates/app/utils/basklee/productManufacturer.ts +30 -0
- package/templates/app/utils/basklee/productPage.ts +46 -0
- package/templates/app/utils/basklee/productPhotos.ts +67 -0
- package/templates/app/utils/basklee/productSearchScope.ts +237 -0
- package/templates/app/utils/basklee/productSeller.ts +51 -0
- package/templates/app/utils/basklee/productStructuredData.ts +221 -0
- package/templates/app/utils/basklee/profile.ts +148 -0
- package/templates/app/utils/basklee/profileLabels.ts +229 -0
- package/templates/app/utils/basklee/promoLabels.ts +111 -0
- package/templates/app/utils/basklee/promoPresentation.ts +381 -0
- package/templates/app/utils/basklee/reviewLabels.ts +256 -0
- package/templates/app/utils/basklee/reviewScope.ts +41 -0
- package/templates/app/utils/basklee/richText.ts +13 -0
- package/templates/app/utils/basklee/searchFilters.ts +99 -0
- package/templates/app/utils/basklee/searchHistory.ts +144 -0
- package/templates/app/utils/basklee/sellerDirectory.ts +134 -0
- package/templates/app/utils/basklee/seo.ts +52 -0
- package/templates/app/utils/basklee/serverCookies.ts +88 -0
- package/templates/app/utils/basklee/sessionLabels.ts +38 -0
- package/templates/app/utils/basklee/signInReturn.ts +89 -0
- package/templates/app/utils/basklee/storeDirectory.ts +50 -0
- package/templates/app/utils/basklee/subscriptionChanges.ts +167 -0
- package/templates/app/utils/basklee/subscriptionLabels.ts +100 -0
- package/templates/app/utils/basklee/subscriptionManageLabels.ts +424 -0
- package/templates/app/utils/basklee/subscriptionPlans.ts +162 -0
- package/templates/app/utils/basklee/subscriptionRemote.ts +110 -0
- package/templates/app/utils/basklee/subscriptionUsage.ts +82 -0
- package/templates/app/utils/basklee/tariffLabels.ts +182 -0
- package/templates/app/utils/basklee/tariffPage.ts +77 -0
- package/templates/app/utils/basklee/tariffVariables.ts +203 -0
- package/templates/app/utils/basklee/tariffs.ts +333 -0
- package/templates/app/utils/basklee/ticketItems.ts +87 -0
- package/templates/app/utils/basklee/ticketLabels.ts +428 -0
- package/templates/app/utils/basklee/ticketLocation.ts +79 -0
- package/templates/app/utils/basklee/walletTransaction.ts +135 -0
- package/templates/app/utils/baskleeAppLoad.ts +83 -0
- package/templates/basklee/COMPONENT-DOWNLOAD.md +40 -0
- package/templates/basklee/COMPONENTS.md +1993 -0
- package/templates/basklee/THEMES.md +94 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# CartItemOptions · Nuxt
|
|
2
|
+
|
|
3
|
+
Option products as product cards, with text and file attachment for an item.
|
|
4
|
+
|
|
5
|
+
The supplied storefront uses this component at `/cart`.
|
|
6
|
+
[English guide](https://orionmarket.place/en/sandbox/components/nuxt/cart-item-options) ·
|
|
7
|
+
[Russian guide](https://orionmarket.place/ru/sandbox/components/nuxt/cart-item-options)
|
|
8
|
+
|
|
9
|
+
## Contract and dependencies
|
|
10
|
+
|
|
11
|
+
`group.option_type.option_type` selects the form: text, file or option products. `option_group_required` marks the group as required.
|
|
12
|
+
|
|
13
|
+
Each group opens with its name from `option_name`. A group with `option_group_required` `true` carries a Required badge at the right of its heading, before the open/close toggle, so the badges of consecutive groups line up. While the group lacks what the backend checks when the order is placed — text for a text option, a file for a file option, at least one chosen product otherwise (`cartOptionGroupFilled()` in `app/utils/basklee/cartOptions.ts`) — the badge is in the attention colour with “Needed to place the order” beside it and the group is marked along its left edge; once filled in, the badge turns neutral with a check. A group of option products names its choice rule beside that heading: with `option_type.multiple_choices` `false` the group keeps one selected option, because the backend sets the quantity of every other option of the group back to `0`; with `true` several options can be selected at once. The group can be folded away and opened again without changing anything in the cart.
|
|
14
|
+
|
|
15
|
+
`CartLineItem` renders the groups of one item inside it, as a list whose accessible name is the item's name, indented to the item's name column and tied to it by a branch rule in the border color.
|
|
16
|
+
|
|
17
|
+
Every option product is rendered as the storefront product card in a smaller compact size, with its image, name, option price and variants. Its seller line is left out, because the shipment above the item already names the store the option is ordered from. The cart response carries these products; the component puts them into `useBaskleeProductsStore()`, so the card and its parts read the same data. Option products of one product group share a card, and selecting a variant moves that card to the option row of the chosen product. Variants the group does not offer stay visible and disabled. The card shows no add-to-cart or wishlist control: the quantity below it belongs to the option row.
|
|
18
|
+
|
|
19
|
+
Add sets the quantity to 1, and the − and + buttons change it by one; − at 1 sets it to 0. Every change sends `cart_customer_option_first_set` with the row's `group.options[].id` and the new quantity. The stock bound is `quantity + quantity_left`. The positive per-record cap and same-product cap reduce it as detailed below; zero disables a configured cap. Order creation also checks the total selected quantity of the group. The card names that maximum once the row reaches it, and a row without free quantity says it cannot be added now. Option prices and quantities come from the next cart response; a selected row also shows its `options[].option_price.options_price_after_promo` total.
|
|
20
|
+
|
|
21
|
+
Text and files use `cart_customer_option_add_additional` with `group.id`. `cart_customer_option_cleanup_additional` removes the saved text and file. A failure preserves entered values. Unsaved text survives updates to other cart data, confirmed submission clears the draft marker and a confirmed upload clears the file input.
|
|
22
|
+
|
|
23
|
+
The guide describes its inputs and events. Source is maintained in
|
|
24
|
+
`app/components/basklee/cart/CartItemOptions.vue`; the primary interface is `app/interfaces/basklee/cart/ICartData.ts`.
|
|
25
|
+
The component belongs to the `cart-line-item` composition; render it with that
|
|
26
|
+
parent's controller and context.
|
|
27
|
+
|
|
28
|
+
The configured Nuxt starter initializes Application Load and its named API client.
|
|
29
|
+
Component-source ZIPs contain imported children, types,
|
|
30
|
+
composables, labels and styles. The included `basklee/COMPONENT-DOWNLOAD.md`
|
|
31
|
+
describes dependencies, theme and consumer configuration. Standalone file
|
|
32
|
+
copying requires the same dependencies. Links to storefront routes use the
|
|
33
|
+
pages supplied by the full starter.
|
|
34
|
+
|
|
35
|
+
## Endpoint coverage
|
|
36
|
+
|
|
37
|
+
- `cart_customer_option_first_set`
|
|
38
|
+
- `cart_customer_option_add_additional`
|
|
39
|
+
- `cart_customer_option_cleanup_additional`
|
|
40
|
+
## Response fields and application actions
|
|
41
|
+
|
|
42
|
+
The following tables describe the response and the supplied composition’s follow-up actions. The framework-specific props and events above identify which work belongs to the component and which belongs to its parent.
|
|
43
|
+
|
|
44
|
+
### English
|
|
45
|
+
|
|
46
|
+
### Selected quantity and available stock
|
|
47
|
+
|
|
48
|
+
`group.options[]` — Each row is a cart option record. A save sends the new total quantity. The maximum is the smallest stock/per-record/same-product bound, rounded down and never below zero; the refreshed cart confirms quantity and price.
|
|
49
|
+
|
|
50
|
+
| Field or condition | Meaning and application action |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| `group.id` / `options[].id` / `options[].product.id` | The group ID identifies text/file save and cleanup. The option record ID is `delivery_option_item_id` for `cart_customer_option_first_set`. The product ID identifies the product displayed in that option. |
|
|
53
|
+
| `quantity` + `quantity_left` | Selected units plus units still available after the cart’s other uses of the same product. This sum is the stock bound for the new quantity. Negative remaining stock can reduce the bound below the current selection. |
|
|
54
|
+
| `limits.c_max_product_quantity_in_group` | Caps the new quantity of this option record. Zero leaves this limit unconfigured. |
|
|
55
|
+
| `limits.c_max_products_quantity_for_group` | When saving an option, this cap counts the same product across records in the group; subtract other records with the same product.id. At order creation it also caps the sum of all selected product-option quantities in the group. Zero disables the cap. |
|
|
56
|
+
| Quantity example | With 2 selected and 3 left, stock permits a new total of 5. A per-record limit of 4 reduces it to 4. A same-product limit of 5 with 2 in another record reduces it to 3. Saving sends `quantity: 3`. |
|
|
57
|
+
| `quantity: 0` | Deselects the option. A positive selection with `multiple_choices: false` deselects the other options in this group. Reload the cart after confirmation. |
|
|
58
|
+
| Missing `options` or `product: null` | No product card is available for that record. A missing list is handled as empty; keep any saved text/file state. |
|
|
59
|
+
|
|
60
|
+
### Saved text, files and required groups
|
|
61
|
+
|
|
62
|
+
`group` — The returned values describe the saved choice. Editing a local field does not complete a required group until the save is confirmed.
|
|
63
|
+
|
|
64
|
+
| Field or condition | Meaning and application action |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| `option_type.option_type`: `text` / `textarea` | Send multipart `data` containing `option_text_data` to `cart_customer_option_add_additional`, with `option_group_id: group.id`. The returned text must remain nonempty after trimming for a required text group to be complete. |
|
|
67
|
+
| `option_type.option_type`: `file` | Send the file in multipart `option_file_data`, plus an empty JSON object in `data`, using the same group endpoint. `option_file_data` in the cart response is the saved basename; an empty string means no saved file. Save stays disabled until a new file is chosen; without one the saved file is kept. `limits.file_max_mb` (domain setting `cart_option_file_max_mb`, default `10`, `0` means no limit) is shown under the field as “Up to N MB”; a larger chosen file shows “The file is larger than N MB.” and Save stays disabled. The backend checks the same limit and answers a larger file with the `option_file_data` field error “File … is too large. Maximum size is N MB.”, shown like other cart errors. |
|
|
68
|
+
| `option_group_required` | True marks the group as required. Text needs nonblank saved text, a file needs a saved filename, and a product group needs an option with positive quantity. |
|
|
69
|
+
| Cleanup | `cart_customer_option_cleanup_additional` takes `option_group_id: group.id` and clears the saved text/file. A failed save preserves the local input; a confirmed save reloads the cart. |
|
|
70
|
+
|
|
71
|
+
### Русский
|
|
72
|
+
|
|
73
|
+
### Выбранное количество и остаток
|
|
74
|
+
|
|
75
|
+
`group.options[]` — Каждая позиция — запись опции корзины. Сохраняется новое полное количество. Максимум — наименьший предел запаса, записи и одного товара, округлённый вниз и не ниже нуля; обновлённая корзина подтверждает количество и цену.
|
|
76
|
+
|
|
77
|
+
| Поле или условие | Значение и действие приложения |
|
|
78
|
+
| --- | --- |
|
|
79
|
+
| `group.id` / `options[].id` / `options[].product.id` | ID группы используется для сохранения и очистки текста/файла. ID записи опции передаётся как `delivery_option_item_id` в `cart_customer_option_first_set`. ID товара определяет товар в карточке опции. |
|
|
80
|
+
| `quantity` + `quantity_left` | Выбранные единицы плюс доступный остаток с учётом других использований этого товара в корзине. Сумма ограничивает новое количество. Отрицательный остаток может уменьшить предел ниже текущего выбора. |
|
|
81
|
+
| `limits.c_max_product_quantity_in_group` | Предел нового количества в этой записи опции. Ноль означает, что это ограничение не задано. |
|
|
82
|
+
| `limits.c_max_products_quantity_for_group` | При сохранении опции предел учитывает один товар во всех записях группы; вычтите другие записи с тем же product.id. При создании заказа он также ограничивает сумму количеств всех выбранных товарных опций группы. Ноль отключает предел. |
|
|
83
|
+
| Пример количества | Выбрано 2, осталось 3: запас допускает новое количество 5. Предел записи 4 снижает его до 4. Предел одного товара 5 при количестве 2 в другой записи снижает его до 3. Запрос сохранения передаёт `quantity: 3`. |
|
|
84
|
+
| `quantity: 0` | Снимает выбор опции. При `multiple_choices: false` положительное количество снимает выбор остальных опций группы. После подтверждения загрузите корзину заново. |
|
|
85
|
+
| Нет `options` или `product: null` | Для такой записи карточка товара недоступна. Отсутствующий список обрабатывается как пустой; сохранённые текст и файл продолжают учитываться. |
|
|
86
|
+
|
|
87
|
+
### Сохранённые текст, файл и обязательность
|
|
88
|
+
|
|
89
|
+
`group` — Поля ответа описывают сохранённый выбор. Ввод в локальное поле заполняет обязательную группу после подтверждённого сохранения.
|
|
90
|
+
|
|
91
|
+
| Поле или условие | Значение и действие приложения |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| `option_type.option_type`: `text` / `textarea` | Передайте multipart-поле `data` с `option_text_data` в `cart_customer_option_add_additional`, указав `option_group_id: group.id`. Обязательная текстовая группа заполнена, когда сохранённый текст непустой после удаления пробелов по краям. |
|
|
94
|
+
| `option_type.option_type`: `file` | Передайте файл в multipart-поле `option_file_data` и пустой JSON-объект в `data` в тот же метод группы. `option_file_data` в ответе корзины — имя сохранённого файла; пустая строка означает, что файла нет. Кнопка сохранения недоступна, пока не выбран новый файл; без него сохранённый файл остаётся. `limits.file_max_mb` (настройка домена `cart_option_file_max_mb`, по умолчанию `10`, `0` — без ограничения) выводится под полем как «До N МБ»; для выбранного файла больше этого размера показывается «Файл больше N МБ.», и кнопка сохранения недоступна. Бэкенд проверяет тот же предел и отвечает на больший файл ошибкой поля `option_file_data` «File … is too large. Maximum size is N MB.» (в переводе домена), которая показывается как другие ошибки корзины. |
|
|
95
|
+
| `option_group_required` | True помечает группу обязательной. Для текста нужен непустой сохранённый текст, для файла — сохранённое имя, для товарной группы — опция с положительным количеством. |
|
|
96
|
+
| Очистка | `cart_customer_option_cleanup_additional` получает `option_group_id: group.id` и очищает сохранённые текст/файл. Ошибка сохранения сохраняет локальный ввод; подтверждённое сохранение обновляет корзину. |
|
|
97
|
+
|
|
98
|
+
[English guide](https://orionmarket.place/en/sandbox/components/nuxt/cart-item-options) · [Русский](https://orionmarket.place/ru/sandbox/components/nuxt/cart-item-options)
|