@ikas/storefront 2.0.0-alpha.9 → 2.0.1
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/build/__generated__/global-types.d.ts +9 -2
- package/build/__generated__/global-types.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
- package/build/_virtual/index.js_commonjs-proxy3.js +1 -1
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/googleTagManager.js +1 -1
- package/build/analytics/head/index.js +1 -1
- package/build/analytics/ikas.js +1 -1
- package/build/api/apollo.js +1 -1
- package/build/api/blog/__generated__/getBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlog.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogCategory.d.ts +14 -16
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +14 -16
- package/build/api/brand/__generated__/listProductBrand.d.ts +3 -3
- package/build/api/cart/__generated__/getCart.d.ts +2 -4
- package/build/api/cart/__generated__/saveItemToCart.d.ts +2 -4
- package/build/api/category/__generated__/listCategory.d.ts +3 -3
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +2 -4
- package/build/api/checkout/__generated__/getOrder.d.ts +5 -11
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +1 -1
- package/build/api/checkout/index.js +1 -1
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +5 -11
- package/build/api/customer/__generated__/customerLogin.d.ts +12 -5
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +5 -11
- package/build/api/customer/__generated__/getMyCustomer.d.ts +4 -5
- package/build/api/customer/__generated__/registerCustomer.d.ts +12 -5
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +12 -5
- package/build/api/customer/index.d.ts +5 -0
- package/build/api/customer/index.js +1 -1
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +14 -16
- package/build/api/product-option-set/index.js +1 -1
- package/build/api/raffle/__generated__/listRaffle.d.ts +14 -16
- package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +2 -2
- package/build/api/raffle/index.js +1 -1
- package/build/api/variant-type/__generated__/listVariantType.d.ts +3 -7
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +8 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
- package/build/components/checkout/components/cart-summary/index.js +1 -1
- package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
- package/build/components/checkout/components/step-container/index.js +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +2 -0
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
- package/build/components/checkout/steps/step-shipping/index.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/components/page/ThemeComponent.js +1 -1
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.d.ts +1 -2
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/index.d.ts +3 -1
- package/build/components/page-editor/index.js +1 -1
- package/build/components/page-editor/loader/index.d.ts +5 -1
- package/build/components/page-editor/loader/index.js +1 -1
- package/build/components/page-editor/loader/style.module.scss.js +1 -1
- package/build/components/page-editor/model.d.ts +8 -4
- package/build/components/page-editor/model.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/entityStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/inMemoryCache.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/policies.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/readFromStore.js +1 -1
- package/build/ext/@apollo/client/cache/inmemory/writeToStore.js +1 -1
- package/build/ext/@apollo/client/core/ApolloClient.js +1 -1
- package/build/ext/@apollo/client/core/LocalState.js +1 -1
- package/build/ext/@apollo/client/core/ObservableQuery.js +1 -1
- package/build/ext/@apollo/client/core/QueryManager.js +1 -1
- package/build/ext/@apollo/client/errors/index.js +1 -1
- package/build/ext/@apollo/client/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/@apollo/client/link/context/index.js +1 -1
- package/build/ext/@apollo/client/link/core/ApolloLink.js +1 -1
- package/build/ext/@apollo/client/link/error/index.js +1 -1
- package/build/ext/@apollo/client/link/http/HttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/createHttpLink.js +1 -1
- package/build/ext/@apollo/client/link/http/selectHttpOptionsAndBody.js +1 -1
- package/build/ext/@apollo/client/link/utils/createOperation.js +1 -1
- package/build/ext/@apollo/client/utilities/common/mergeDeep.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/fragments.js +1 -1
- package/build/ext/@apollo/client/utilities/graphql/transform.js +1 -1
- package/build/ext/@apollo/client/utilities/observables/Concast.js +1 -1
- package/build/ext/ts-invariant/ext/tslib/tslib.es6.js +15 -0
- package/build/ext/ts-invariant/lib/invariant.esm.js +1 -1
- package/build/ext/tslib/tslib.es6.js +1 -1
- package/build/ikas.js +67 -2
- package/build/index.js +1 -1
- package/build/models/data/blog/index.js +1 -1
- package/build/models/data/brand/index.js +1 -1
- package/build/models/data/category/index.js +1 -1
- package/build/models/data/checkout/index.js +1 -1
- package/build/models/data/checkout-settings/index.d.ts +1 -1
- package/build/models/data/checkout-settings/index.js +1 -1
- package/build/models/data/customer/address/index.d.ts +4 -1
- package/build/models/data/customer/address/index.js +1 -1
- package/build/models/data/image/index.js +1 -1
- package/build/models/data/index.d.ts +1 -0
- package/build/models/data/language/index.d.ts +6 -0
- package/build/models/data/order/address/index.d.ts +2 -1
- package/build/models/data/order/address/index.js +1 -1
- package/build/models/data/order/line-item/variant/index.js +1 -1
- package/build/models/data/product/index.js +1 -1
- package/build/models/data/product-filter/index.js +1 -1
- package/build/models/data/product-option-set/index.d.ts +4 -0
- package/build/models/data/product-option-set/index.js +1 -1
- package/build/models/data/raffle/index.d.ts +1 -1
- package/build/models/data/raffle/index.js +1 -1
- package/build/models/data/slider/index.d.ts +5 -0
- package/build/models/data/slider/index.js +1 -0
- package/build/models/theme/component/index.d.ts +9 -0
- package/build/models/theme/component/index.js +1 -1
- package/build/models/theme/component/prop/index.d.ts +21 -0
- package/build/models/theme/component/prop/index.js +1 -1
- package/build/models/theme/custom-data/index.d.ts +20 -1
- package/build/models/theme/custom-data/index.js +1 -1
- package/build/models/theme/settings/color/index.d.ts +14 -0
- package/build/models/theme/settings/color/index.js +1 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.d.ts +0 -0
- package/build/models/theme/settings/{prop/favicon → favicon}/index.js +0 -0
- package/build/models/theme/settings/font-family/index.d.ts +5 -0
- package/build/models/theme/settings/font-family/index.js +1 -0
- package/build/models/theme/settings/index.d.ts +4 -2
- package/build/models/theme/settings/index.js +1 -1
- package/build/models/ui/product-detail/index.js +1 -1
- package/build/models/ui/product-list/index.d.ts +1 -1
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/pages/checkout.js +1 -1
- package/build/pages/editor.d.ts +4 -3
- package/build/pages/editor.js +1 -1
- package/build/providers/page-data-get.d.ts +1 -1
- package/build/providers/page-data-get.js +1 -1
- package/build/providers/page-data-init.d.ts +3 -1
- package/build/providers/page-data-init.js +1 -1
- package/build/providers/page-data-next.d.ts +2 -1
- package/build/providers/page-data-next.js +1 -1
- package/build/providers/prop-value/custom.d.ts +1 -0
- package/build/providers/prop-value/custom.js +1 -1
- package/build/providers/prop-value/slider.d.ts +11 -0
- package/build/providers/prop-value/slider.js +1 -0
- package/build/scripts/generators/components/index.js +1 -1
- package/build/scripts/generators/config/content.d.ts +2 -3
- package/build/scripts/generators/config/content.js +1 -1
- package/build/scripts/generators/config/index.js +1 -1
- package/build/scripts/generators/index.d.ts +1 -0
- package/build/scripts/generators/pages/index.js +1 -1
- package/build/scripts/generators/store/index.js +1 -1
- package/build/scripts/generators/theme/index.js +1 -1
- package/build/scripts/generators/types/index.d.ts +15 -0
- package/build/scripts/generators/types/index.js +1 -0
- package/build/store/cart.d.ts +6 -7
- package/build/store/cart.js +1 -1
- package/build/store/customer.d.ts +19 -0
- package/build/store/customer.js +1 -1
- package/build/storefront/index.d.ts +5 -3
- package/build/storefront/index.js +1 -1
- package/build/utils/fs.js +1 -1
- package/build/utils/google-fonts.d.ts +2 -0
- package/build/utils/google-fonts.js +1 -0
- package/package.json +9 -9
- package/build/models/theme/settings/prop/color/index.d.ts +0 -7
- package/build/models/theme/settings/prop/color/index.js +0 -1
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Image}from"./components/image/index.js";export{IkasEditorComponentLoader}from"./components/page-editor/loader/index.js";export{IkasBlog,IkasBlogCategory,IkasBlogContent,IkasBlogMetaData,IkasBlogMetadataTargetType,IkasBlogTag,IkasBlogWriter}from"./models/data/blog/index.js";export{IkasBrand}from"./models/data/brand/index.js";export{IkasCategory,IkasCategoryPath,IkasFilterCategory}from"./models/data/category/index.js";export{IkasCheckout,IkasCheckoutCustomer,IkasCheckoutRecoveryEmailStatus,IkasCheckoutRecoveryStatus,IkasCheckoutStatus,IkasPaymentMethod,IkasShippingMethod,IkasShippingMethodEnum}from"./models/data/checkout/index.js";export{IkasCustomerAddress}from"./models/data/customer/address/index.js";export{IkasCustomer}from"./models/data/customer/index.js";export{IkasCustomerReview}from"./models/data/customer-review/index.js";export{IkasHTMLMetaData,IkasHTMLMetaDataTargetType}from"./models/data/html-meta-data/index.js";export{IkasImage}from"./models/data/image/index.js";export{IkasCardAssociation,IkasCardType}from"./models/data/installment-info/index.js";export{IkasMerchantSettings}from"./models/data/merchant-settings/index.js";export{IkasAmountTypeEnum,IkasOrder,IkasOrderCancelledReason,IkasOrderPackageFulfillStatus,IkasOrderPackageStatus,IkasOrderPaymentStatus,IkasOrderShippingMethod,IkasOrderStatus,OrderLineItemStatusEnum}from"./models/data/order/index.js";export{IkasOrderLineItem}from"./models/data/order/line-item/index.js";export{IkasOrderRefundSettings}from"./models/data/order/refund/settings.js";export{IkasOrderLineOptions}from"./models/data/order/line-item/options/index.js";export{IkasOrderLineOptionsValue}from"./models/data/order/line-item/options/options-value/index.js";export{IkasProduct,IkasProductType}from"./models/data/product/index.js";export{IkasProductVariantType}from"./models/data/product/variant-type/index.js";export{IkasProductVariant}from"./models/data/product/variant/index.js";export{IkasProductPrice}from"./models/data/product/variant/price/index.js";export{IkasProductAttribute,IkasProductAttributeType}from"./models/data/product-attribute/index.js";export{IkasProductAttributeValue}from"./models/data/product/attribute-value/index.js";export{IkasApplicableProductFilterValue,IkasProductFilter,IkasProductFilterDisplayType,IkasProductFilterSettings,IkasProductFilterSortType,IkasProductFilterType,IkasProductFilterValue,RangeValue,parseRangeStr}from"./models/data/product-filter/index.js";export{IkasFavoriteProduct}from"./models/data/favorite-product/index.js";export{IkasContactForm}from"./models/data/contact-form/index.js";export{IkasVariantSelectionType,IkasVariantType}from"./models/data/variant-type/index.js";export{IkasVariantValue}from"./models/data/variant-type/variant-value/index.js";export{IkasOrderTransaction,IkasTransactionStatusEnum,IkasTransactionTypeEnum}from"./models/data/order-transaction/index.js";export{IkasProductOption,IkasProductOptionDateSettings,IkasProductOptionFileSettings,IkasProductOptionSelectSettings,IkasProductOptionSelectType,IkasProductOptionSelectValue,IkasProductOptionSelectValueTranslations,IkasProductOptionSet,IkasProductOptionSetTranslations,IkasProductOptionTextSettings,IkasProductOptionTranslations,IkasProductOptionType}from"./models/data/product-option-set/index.js";export{IkasRaffle,IkasRaffleMetaData,IkasRaffleParticipant}from"./models/data/raffle/index.js";export{IkasTheme}from"./models/theme/theme.js";export{IkasThemePage,IkasThemePageType}from"./models/theme/page/index.js";export{IkasThemePageComponent}from"./models/theme/page/component/index.js";export{IkasThemeComponent}from"./models/theme/component/index.js";export{IkasThemeComponentProp,IkasThemeComponentPropType}from"./models/theme/component/prop/index.js";export{IkasLinkPropValue,IkasLinkType}from"./models/theme/page/component/prop-value/link.js";export{IkasBrandPropValue}from"./models/theme/page/component/prop-value/brand.js";export{IkasBrandListPropValue}from"./models/theme/page/component/prop-value/brand-list.js";export{IkasProductListPropValue}from"./models/theme/page/component/prop-value/product-list.js";export{IkasProductDetailPropValue}from"./models/theme/page/component/prop-value/product-detail.js";export{IkasCategoryPropValue}from"./models/theme/page/component/prop-value/category.js";export{IkasCategoryListPropValue}from"./models/theme/page/component/prop-value/category-list.js";export{IkasThemeSettings}from"./models/theme/settings/index.js";export{IkasThemeCustomData}from"./models/theme/custom-data/index.js";export{IkasBlogPropValue}from"./models/theme/page/component/prop-value/blog.js";export{IkasBlogListPropValue}from"./models/theme/page/component/prop-value/blog-list.js";export{IkasBlogCategoryPropValue}from"./models/theme/page/component/prop-value/blog-category.js";export{IkasBlogCategoryListPropValue}from"./models/theme/page/component/prop-value/blog-category-list.js";export{IkasRafflePropValue}from"./models/theme/page/component/prop-value/raffle.js";export{IkasRaffleListPropValue}from"./models/theme/page/component/prop-value/raffle-list.js";export{IkasBlogList,IkasBlogListType}from"./models/ui/blog-list/index.js";export{IkasBlogCategoryList,IkasBlogCategoryListType}from"./models/ui/blog-category-list/index.js";export{IkasBrandList,IkasBrandListSortType,IkasBrandListType}from"./models/ui/brand-list/index.js";export{IkasCategoryList,IkasCategoryListSortType,IkasCategoryListType}from"./models/ui/category-list/index.js";export{IkasNavigationLink}from"./models/ui/navigation-link/index.js";export{IkasProductDetail}from"./models/ui/product-detail/index.js";export{IkasProductList,IkasProductListSortType,IkasProductListType}from"./models/ui/product-list/index.js";export{IkasAttributeDetail}from"./models/ui/product-attribute-detail/index.js";export{IkasAttributeList}from"./models/ui/product-attribute-list/index.js";export{IkasCustomerReviewList}from"./models/ui/customer-review-list/index.js";export{Validator}from"./models/ui/validator/index.js";export{EmailRule,EqualsRule,IdentityNumberRule,LessThanRule,MaxRule,MinRule,PhoneRule,RequiredRule,ValidationRule,ValidatorErrorType}from"./models/ui/validator/rules/index.js";export{LoginForm}from"./models/ui/validator/form/login.js";export{AddressForm}from"./models/ui/validator/form/address.js";export{RegisterForm}from"./models/ui/validator/form/register.js";export{ContactForm}from"./models/ui/validator/form/contact-form.js";export{ForgotPasswordForm}from"./models/ui/validator/form/forgot-password.js";export{RecoverPasswordForm}from"./models/ui/validator/form/recover-password.js";export{AccountInfoForm}from"./models/ui/validator/form/account-info.js";export{RaffleForm}from"./models/ui/validator/form/raffle-form.js";export{CustomerReviewForm}from"./models/ui/validator/form/customer-review.js";export{IkasComponentRenderer}from"./models/ui/component-renderer/index.js";export{IkasRaffleList}from"./models/ui/raffle-list/index.js";import*as e from"./pages/home.js";export{e as IndexPage};import*as o from"./pages/_slug_/index.js";export{o as SlugPage};import*as t from"./pages/pages/_slug_.js";export{t as CustomPage};import*as r from"./pages/checkout.js";export{r as CheckoutPage};import*as a from"./pages/account/index.js";export{a as AccountPage};import*as s from"./pages/account/addresses.js";export{s as AddressesPage};import*as p from"./pages/account/orders/index.js";export{p as OrdersPage};import*as
|
|
1
|
+
export{Image}from"./components/image/index.js";export{IkasEditorComponentLoader}from"./components/page-editor/loader/index.js";export{IkasBlog,IkasBlogCategory,IkasBlogContent,IkasBlogMetaData,IkasBlogMetadataTargetType,IkasBlogTag,IkasBlogWriter}from"./models/data/blog/index.js";export{IkasBrand}from"./models/data/brand/index.js";export{IkasCategory,IkasCategoryPath,IkasFilterCategory}from"./models/data/category/index.js";export{IkasCheckout,IkasCheckoutCustomer,IkasCheckoutRecoveryEmailStatus,IkasCheckoutRecoveryStatus,IkasCheckoutStatus,IkasPaymentMethod,IkasShippingMethod,IkasShippingMethodEnum}from"./models/data/checkout/index.js";export{IkasCustomerAddress}from"./models/data/customer/address/index.js";export{IkasCustomer}from"./models/data/customer/index.js";export{IkasCustomerReview}from"./models/data/customer-review/index.js";export{IkasHTMLMetaData,IkasHTMLMetaDataTargetType}from"./models/data/html-meta-data/index.js";export{IkasImage}from"./models/data/image/index.js";export{IkasCardAssociation,IkasCardType}from"./models/data/installment-info/index.js";export{IkasMerchantSettings}from"./models/data/merchant-settings/index.js";export{IkasAmountTypeEnum,IkasOrder,IkasOrderCancelledReason,IkasOrderPackageFulfillStatus,IkasOrderPackageStatus,IkasOrderPaymentStatus,IkasOrderShippingMethod,IkasOrderStatus,OrderLineItemStatusEnum}from"./models/data/order/index.js";export{IkasOrderLineItem}from"./models/data/order/line-item/index.js";export{IkasOrderRefundSettings}from"./models/data/order/refund/settings.js";export{IkasOrderLineOptions}from"./models/data/order/line-item/options/index.js";export{IkasOrderLineOptionsValue}from"./models/data/order/line-item/options/options-value/index.js";export{IkasProduct,IkasProductType}from"./models/data/product/index.js";export{IkasProductVariantType}from"./models/data/product/variant-type/index.js";export{IkasProductVariant}from"./models/data/product/variant/index.js";export{IkasProductPrice}from"./models/data/product/variant/price/index.js";export{IkasProductAttribute,IkasProductAttributeType}from"./models/data/product-attribute/index.js";export{IkasProductAttributeValue}from"./models/data/product/attribute-value/index.js";export{IkasApplicableProductFilterValue,IkasProductFilter,IkasProductFilterDisplayType,IkasProductFilterSettings,IkasProductFilterSortType,IkasProductFilterType,IkasProductFilterValue,RangeValue,parseRangeStr}from"./models/data/product-filter/index.js";export{IkasFavoriteProduct}from"./models/data/favorite-product/index.js";export{IkasContactForm}from"./models/data/contact-form/index.js";export{IkasVariantSelectionType,IkasVariantType}from"./models/data/variant-type/index.js";export{IkasVariantValue}from"./models/data/variant-type/variant-value/index.js";export{IkasOrderTransaction,IkasTransactionStatusEnum,IkasTransactionTypeEnum}from"./models/data/order-transaction/index.js";export{IkasProductOption,IkasProductOptionDateSettings,IkasProductOptionFileSettings,IkasProductOptionSelectSettings,IkasProductOptionSelectType,IkasProductOptionSelectValue,IkasProductOptionSelectValueTranslations,IkasProductOptionSet,IkasProductOptionSetTranslations,IkasProductOptionTextSettings,IkasProductOptionTranslations,IkasProductOptionType}from"./models/data/product-option-set/index.js";export{IkasRaffle,IkasRaffleMetaData,IkasRaffleParticipant}from"./models/data/raffle/index.js";export{IkasSlider}from"./models/data/slider/index.js";export{IkasTheme}from"./models/theme/theme.js";export{IkasThemePage,IkasThemePageType}from"./models/theme/page/index.js";export{IkasThemePageComponent}from"./models/theme/page/component/index.js";export{IkasThemeComponent}from"./models/theme/component/index.js";export{IkasThemeComponentProp,IkasThemeComponentPropType}from"./models/theme/component/prop/index.js";export{IkasLinkPropValue,IkasLinkType}from"./models/theme/page/component/prop-value/link.js";export{IkasBrandPropValue}from"./models/theme/page/component/prop-value/brand.js";export{IkasBrandListPropValue}from"./models/theme/page/component/prop-value/brand-list.js";export{IkasProductListPropValue}from"./models/theme/page/component/prop-value/product-list.js";export{IkasProductDetailPropValue}from"./models/theme/page/component/prop-value/product-detail.js";export{IkasCategoryPropValue}from"./models/theme/page/component/prop-value/category.js";export{IkasCategoryListPropValue}from"./models/theme/page/component/prop-value/category-list.js";export{IkasThemeSettings}from"./models/theme/settings/index.js";export{IkasThemeCustomData}from"./models/theme/custom-data/index.js";export{IkasBlogPropValue}from"./models/theme/page/component/prop-value/blog.js";export{IkasBlogListPropValue}from"./models/theme/page/component/prop-value/blog-list.js";export{IkasBlogCategoryPropValue}from"./models/theme/page/component/prop-value/blog-category.js";export{IkasBlogCategoryListPropValue}from"./models/theme/page/component/prop-value/blog-category-list.js";export{IkasRafflePropValue}from"./models/theme/page/component/prop-value/raffle.js";export{IkasRaffleListPropValue}from"./models/theme/page/component/prop-value/raffle-list.js";export{IkasBlogList,IkasBlogListType}from"./models/ui/blog-list/index.js";export{IkasBlogCategoryList,IkasBlogCategoryListType}from"./models/ui/blog-category-list/index.js";export{IkasBrandList,IkasBrandListSortType,IkasBrandListType}from"./models/ui/brand-list/index.js";export{IkasCategoryList,IkasCategoryListSortType,IkasCategoryListType}from"./models/ui/category-list/index.js";export{IkasNavigationLink}from"./models/ui/navigation-link/index.js";export{IkasProductDetail}from"./models/ui/product-detail/index.js";export{IkasProductList,IkasProductListSortType,IkasProductListType}from"./models/ui/product-list/index.js";export{IkasAttributeDetail}from"./models/ui/product-attribute-detail/index.js";export{IkasAttributeList}from"./models/ui/product-attribute-list/index.js";export{IkasCustomerReviewList}from"./models/ui/customer-review-list/index.js";export{Validator}from"./models/ui/validator/index.js";export{EmailRule,EqualsRule,IdentityNumberRule,LessThanRule,MaxRule,MinRule,PhoneRule,RequiredRule,ValidationRule,ValidatorErrorType}from"./models/ui/validator/rules/index.js";export{LoginForm}from"./models/ui/validator/form/login.js";export{AddressForm}from"./models/ui/validator/form/address.js";export{RegisterForm}from"./models/ui/validator/form/register.js";export{ContactForm}from"./models/ui/validator/form/contact-form.js";export{ForgotPasswordForm}from"./models/ui/validator/form/forgot-password.js";export{RecoverPasswordForm}from"./models/ui/validator/form/recover-password.js";export{AccountInfoForm}from"./models/ui/validator/form/account-info.js";export{RaffleForm}from"./models/ui/validator/form/raffle-form.js";export{CustomerReviewForm}from"./models/ui/validator/form/customer-review.js";export{IkasComponentRenderer}from"./models/ui/component-renderer/index.js";export{IkasRaffleList}from"./models/ui/raffle-list/index.js";import*as e from"./pages/home.js";export{e as IndexPage};import*as o from"./pages/_slug_/index.js";export{o as SlugPage};import*as t from"./pages/pages/_slug_.js";export{t as CustomPage};import*as r from"./pages/checkout.js";export{r as CheckoutPage};import*as a from"./pages/account/index.js";export{a as AccountPage};import*as s from"./pages/account/addresses.js";export{s as AddressesPage};import*as p from"./pages/account/orders/index.js";export{p as OrdersPage};import*as i from"./pages/account/orders/_id_.js";export{i as OrderDetailPage};import*as m from"./pages/account/login.js";export{m as LoginPage};import*as d from"./pages/account/register.js";export{d as RegisterPage};import*as n from"./pages/account/forgot-password.js";export{n as ForgotPasswordPage};import*as l from"./pages/account/recover-password.js";export{l as RecoverPasswordPage};import*as u from"./pages/cart.js";export{u as CartPage};import*as x from"./pages/editor.js";export{x as EditorPage};import*as f from"./pages/account/favorite-products.js";export{f as FavoriteProductsPage};import*as c from"./pages/search.js";export{c as SearchPage};import*as g from"./pages/404.js";export{g as NotFoundPage};import*as k from"./pages/blog/index.js";export{k as BlogPage};import*as I from"./pages/blog/_slug_.js";export{I as BlogSlugPage};import*as j from"./pages/raffle/_slug_.js";export{j as RafflePage};import*as P from"./pages/raffle/index.js";export{P as RafflesPage};import*as y from"./pages/account/raffles.js";export{y as AccountRafflesPage};export{APIGenerator}from"./scripts/generators/api/index.js";export{ComponentImportsGenerator}from"./scripts/generators/components/index.js";export{ConfigGenerator}from"./scripts/generators/config/index.js";export{PageGenerator}from"./scripts/generators/pages/index.js";export{StoreGenerator}from"./scripts/generators/store/index.js";export{ThemeJsonGenerator}from"./scripts/generators/theme/index.js";export{CustomDataTypesGenerator}from"./scripts/generators/types/index.js";export{IkasBaseStore}from"./store/base.js";export{IkasStorefrontConfig}from"./storefront/index.js";export{decodeBase64,findAllByKey,findAllIndexes,formatDate,pascalCase,sortObject,stringSorter,stringToSlug,tryForEach,validatePhoneNumber}from"./utils/helper.js";export{formatMoney,getCurrencySymbol}from"./utils/currency.js";export{createTranslationInputData,useTranslation}from"./utils/i18n.js";export{Analytics}from"./analytics/analytics.js";export{AnalyticsBody,AnalyticsHead}from"./analytics/head/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasImage as e}from"../image/index.js";var i,a=function(){function i(i){var a;void 0===i&&(i={}),this.id=i.id||Date.now()+"",this.createdAt=i.createdAt||Date.now(),this.updatedAt=i.updatedAt||Date.now(),this.categoryId=i.categoryId||null,this.category=i.category?new o(i.category):null,this.imageId=i.imageId||null,this.title=i.title||null,this.shortDescription=i.shortDescription||null,this.isPublished=i.isPublished||!1,this.storefrontId=i.storefrontId||"",this.tagIds=i.tagIds||[],this.tags=(null===(a=i.tags)||void 0===a?void 0:a.map((function(t){return new r(t)})))||[],this.writer=i.writer?new d(i.writer):new d,this.blogContent=i.blogContent?new n(i.blogContent):new n,this.metadata=i.metadata?new s(i.metadata):null,this.image=i.imageId?new e(i.imageId):null,t(this)}return Object.defineProperty(i.prototype,"href",{get:function(){var t;return(null===(t=this.metadata)||void 0===t?void 0:t.slug)?"/blog/"
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasImage as e}from"../image/index.js";var i,a=function(){function i(i){var a;void 0===i&&(i={}),this.id=i.id||Date.now()+"",this.createdAt=i.createdAt||Date.now(),this.updatedAt=i.updatedAt||Date.now(),this.categoryId=i.categoryId||null,this.category=i.category?new o(i.category):null,this.imageId=i.imageId||null,this.title=i.title||null,this.shortDescription=i.shortDescription||null,this.isPublished=i.isPublished||!1,this.storefrontId=i.storefrontId||"",this.tagIds=i.tagIds||[],this.tags=(null===(a=i.tags)||void 0===a?void 0:a.map((function(t){return new r(t)})))||[],this.writer=i.writer?new d(i.writer):new d,this.blogContent=i.blogContent?new n(i.blogContent):new n,this.metadata=i.metadata?new s(i.metadata):null,this.image=i.imageId?new e(i.imageId):null,t(this)}return Object.defineProperty(i.prototype,"href",{get:function(){var t;return(null===(t=this.metadata)||void 0===t?void 0:t.slug)?"/blog/".concat(this.metadata.slug):""},enumerable:!1,configurable:!0}),i}(),n=function(e){void 0===e&&(e={}),this.id=e.id||Date.now()+"",this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.content=e.content||"",t(this)},d=function(e){void 0===e&&(e={}),this.firstName=e.firstName||"",this.lastName=e.lastName||"",t(this)};!function(t){t.BLOG="BLOG",t.BLOG_CATEGORY="BLOG_CATEGORY"}(i||(i={}));var s=function(e){void 0===e&&(e={}),this.pageTitle=null,this.description=null,this.id=e.id||Date.now()+"",this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.description=e.description||"",this.pageTitle=e.pageTitle||"",this.slug=e.slug||"",this.targetId=e.targetId||"",this.targetType=e.targetType||i.BLOG,t(this)},o=function(){function e(e){void 0===e&&(e={}),this.id=e.id||"",this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.name=e.name||"",this.imageId=e.imageId||"",this.metadata=e.metadata?new s(e.metadata):null,t(this)}return Object.defineProperty(e.prototype,"href",{get:function(){var t;return(null===(t=this.metadata)||void 0===t?void 0:t.slug)?"/blog/".concat(this.metadata.slug):""},enumerable:!1,configurable:!0}),e}(),r=function(e){void 0===e&&(e={}),this.id=e.id||Date.now()+"",this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.name=e.name||"",t(this)};export{a as IkasBlog,o as IkasBlogCategory,n as IkasBlogContent,s as IkasBlogMetaData,i as IkasBlogMetadataTargetType,r as IkasBlogTag,d as IkasBlogWriter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasImage as i}from"../image/index.js";import{IkasHTMLMetaData as n}from"../html-meta-data/index.js";import{IkasStorefrontConfig as e}from"../../../storefront/index.js";var a=function(){function a(e){void 0===e&&(e={}),this.description=null,this.metaData=null,this.image=null,this.orderType=null,this.translations=null,this.id=e.id||Date.now()+"",this.name=e.name||"",this.description=e.description||null,this.metaData=e.metaData?new n(e.metaData):void 0,this.image=e.image?new i(e.image.id):null,this.orderType=e.orderType||null,this.translations=e.translations||null,this.setTranslations(),t(this)}return Object.defineProperty(a.prototype,"href",{get:function(){var t;return(null===(t=this.metaData)||void 0===t?void 0:t.slug)?"/"
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasImage as i}from"../image/index.js";import{IkasHTMLMetaData as n}from"../html-meta-data/index.js";import{IkasStorefrontConfig as e}from"../../../storefront/index.js";var a=function(){function a(e){void 0===e&&(e={}),this.description=null,this.metaData=null,this.image=null,this.orderType=null,this.translations=null,this.id=e.id||Date.now()+"",this.name=e.name||"",this.description=e.description||null,this.metaData=e.metaData?new n(e.metaData):void 0,this.image=e.image?new i(e.image.id):null,this.orderType=e.orderType||null,this.translations=e.translations||null,this.setTranslations(),t(this)}return Object.defineProperty(a.prototype,"href",{get:function(){var t;return(null===(t=this.metaData)||void 0===t?void 0:t.slug)?"/".concat(this.metaData.slug):""},enumerable:!1,configurable:!0}),a.prototype.setTranslations=function(){if(this.translations&&this.translations.some((function(t){return t.locale===e.getCurrentLocale()}))){var t=this.translations.find((function(t){return t.locale===e.getCurrentLocale()}));(null==t?void 0:t.name)&&(this.name=t.name),(null==t?void 0:t.description)&&(this.description=t.description)}},a}();export{a as IkasBrand};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import{IkasImage as i}from"../image/index.js";import{IkasHTMLMetaData as n}from"../html-meta-data/index.js";import{IkasStorefrontConfig as s}from"../../../storefront/index.js";var r,o=function(){function t(t){void 0===t&&(t={}),this.description=null,this.metaData=null,this.image=null,this.orderType=null,this.translations=null,this.id=t.id||Date.now()+"",this.name=t.name||"",this.description=t.description||null,this.parentId=t.parentId||null,this.metaData=t.metaData?new n(t.metaData):void 0,this.image=t.image?new i(t.image.id):null,this.path=t.path?t.path.map((function(t){return new l(t)})):[],this.orderType=t.orderType||null,this.translations=t.translations||null,this.setTranslations(),e(this)}return Object.defineProperty(t.prototype,"href",{get:function(){var t;return(null===(t=this.metaData)||void 0===t?void 0:t.slug)?"/"
|
|
1
|
+
import{__assign as t}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import{IkasImage as i}from"../image/index.js";import{IkasHTMLMetaData as n}from"../html-meta-data/index.js";import{IkasStorefrontConfig as s}from"../../../storefront/index.js";var r,o=function(){function t(t){void 0===t&&(t={}),this.description=null,this.metaData=null,this.image=null,this.orderType=null,this.translations=null,this.id=t.id||Date.now()+"",this.name=t.name||"",this.description=t.description||null,this.parentId=t.parentId||null,this.metaData=t.metaData?new n(t.metaData):void 0,this.image=t.image?new i(t.image.id):null,this.path=t.path?t.path.map((function(t){return new l(t)})):[],this.orderType=t.orderType||null,this.translations=t.translations||null,this.setTranslations(),e(this)}return Object.defineProperty(t.prototype,"href",{get:function(){var t;return(null===(t=this.metaData)||void 0===t?void 0:t.slug)?"/".concat(this.metaData.slug):""},enumerable:!1,configurable:!0}),t.prototype.setTranslations=function(){if(this.translations&&this.translations.some((function(t){return t.locale===s.getCurrentLocale()}))){var t=this.translations.find((function(t){return t.locale===s.getCurrentLocale()}));(null==t?void 0:t.name)&&(this.name=t.name),(null==t?void 0:t.description)&&(this.description=t.description)}},t}(),l=function(){function t(t){this.id=t.id||"",this.name=t.name||"",this.slug=t.slug||"",e(this)}return Object.defineProperty(t.prototype,"href",{get:function(){return this.slug?"/".concat(this.slug):""},enumerable:!1,configurable:!0}),t}(),a=function(){function i(t){this._isSelected=!1,this.id=t.id||"",this.name=t.name||"",this.slug=t.slug||"",this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,this._isSelected=t.isSelected||!1,e(this)}return Object.defineProperty(i.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"href",{get:function(){return this.slug?"/".concat(this.slug):""},enumerable:!1,configurable:!0}),i.prototype.toJSON=function(){return t(t({},this),{isSelected:this._isSelected})},i}();!function(t){t.BEST_SELLER="BEST_SELLER",t.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",t.HIGHEST_PRICE="HIGHEST_PRICE",t.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",t.LOWEST_PRICE="LOWEST_PRICE",t.MANUALLY="MANUALLY",t.NEWEST="NEWEST",t.OLDEST="OLDEST"}(r||(r={}));export{o as IkasCategory,l as IkasCategoryPath,a as IkasFilterCategory,r as ModelOrder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasOrderAddress as e}from"../order/address/index.js";import{IkasCart as i}from"../cart/index.js";import{IkasPaymentMethodAdditionalPriceType as n}from"../payment-gateway/index.js";import{formatDate as
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasOrderAddress as e}from"../order/address/index.js";import{IkasCart as i}from"../cart/index.js";import{IkasPaymentMethodAdditionalPriceType as n}from"../payment-gateway/index.js";import{formatDate as o}from"../../../utils/helper.js";var r,s,l,u,a,d,c=function(){function l(n){void 0===n&&(n={}),this.id=null,this.createdAt=null,this.updatedAt=null,this.cartId=null,this.cart=null,this.orderId=null,this.orderNumber=null,this.merchantId=null,this.shippingSettingsId=null,this.shippingZoneRateId=null,this.customer=null,this.billingAddress=null,this.shippingAddress=null,this.shippingLines=null,this.shippingMethod=null,this.status=null,this.couponCode=null,this.recoverEmailStatus=null,this.recoveryStatus=null,this.totalFinalPrice=null,this.adjustments=null,this.note=null,this.giftPackageLines=null,this.giftPackageNote=null,this.appliedCouponCode=null,this.selectedPaymentGateway=null,this.id=n.id,this.createdAt=n.createdAt,this.updatedAt=n.updatedAt,this.cartId=n.cartId,this.cart=n.cart?new i(n.cart):void 0,this.orderId=n.orderId,this.orderNumber=n.orderNumber,this.merchantId=n.merchantId,this.shippingSettingsId=n.shippingSettingsId,this.shippingZoneRateId=n.shippingZoneRateId,this.availableShippingMethods=n.availableShippingMethods||[],this.customer=n.customer?new h(n.customer):null,this.billingAddress=n.billingAddress?new e(n.billingAddress):null,this.shippingAddress=n.shippingAddress?new e(n.shippingAddress):null,this.shippingLines=n.shippingLines||[],this.shippingMethod=n.shippingMethod||r.NO_SHIPMENT,this.status=n.status||s.OPEN,this.couponCode=n.couponCode,this.appliedCouponCode=n.couponCode,this.recoverEmailStatus=n.recoverEmailStatus,this.recoveryStatus=n.recoveryStatus,this.totalFinalPrice=n.totalFinalPrice,this.adjustments=n.adjustments,this.note=n.note||null,this.isGiftPackage=n.isGiftPackage||!1,this.giftPackageLines=n.giftPackageLines||null,this.giftPackageNote=n.giftPackageNote||null,t(this)}return Object.defineProperty(l.prototype,"isComplete",{get:function(){return!!this.orderId},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"totalTax",{get:function(){var t;return(null===(t=this.cart)||void 0===t?void 0:t.totalTax)||0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"shippingTotal",{get:function(){var t;return(null===(t=this.shippingLines)||void 0===t?void 0:t.reduce((function(t,e){return t+e.price}),0))||0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasCustomer",{get:function(){var t;return!!(null===(t=this.customer)||void 0===t?void 0:t.id)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasValidCustomer",{get:function(){var t;return!!(null===(t=this.customer)||void 0===t?void 0:t.email)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"customerFullName",{get:function(){var t,e;return"".concat((null===(t=this.customer)||void 0===t?void 0:t.firstName)||""," ").concat((null===(e=this.customer)||void 0===e?void 0:e.lastName)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"customerEmail",{get:function(){var t;return"".concat((null===(t=this.customer)||void 0===t?void 0:t.email)||"")},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dateStr",{get:function(){var t=new Date;return t.setTime(parseFloat(this.updatedAt)),o(t)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"$totalFinalPrice",{get:function(){var t,e=null===(t=this.selectedPaymentGateway)||void 0===t?void 0:t.getCalculatedAdditionalPrices(this.totalFinalPrice||0,this.shippingLines||null),i=this.totalFinalPrice||0;return null==e||e.forEach((function(t){t.type===n.DECREMENT?i-=t.amount:i+=t.amount})),i},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"couponAdjustment",{get:function(){var t;return null===(t=this.adjustments)||void 0===t?void 0:t.find((function(t){return!!t.couponId}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"nonCouponAdjustments",{get:function(){var t;return null===(t=this.adjustments)||void 0===t?void 0:t.filter((function(t){return!t.couponId}))},enumerable:!1,configurable:!0}),l}(),h=function(e){this.id=e.id||"",this.email=e.email||"",this.firstName=e.firstName||"",this.lastName=e.lastName||"",this.notificationsAccepted=e.notificationsAccepted||!1,t(this)};!function(t){t.CLICK_AND_COLLECT="CLICK_AND_COLLECT",t.NO_SHIPMENT="NO_SHIPMENT",t.SHIPMENT="SHIPMENT"}(r||(r={})),function(t){t.COMPLETED="COMPLETED",t.OPEN="OPEN"}(s||(s={})),function(t){t.NOT_SENT="NOT_SENT",t.SENT="SENT"}(l||(l={})),function(t){t.NOT_RECOVERED="NOT_RECOVERED",t.RECOVERED="RECOVERED"}(u||(u={})),function(t){t.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",t.CASH="CASH",t.CASH_ON_DELIVERY="CASH_ON_DELIVERY",t.CREDIT_CARD="CREDIT_CARD",t.GIFT_CARD="GIFT_CARD",t.MONEY_ORDER="MONEY_ORDER",t.OTHER="OTHER"}(a||(a={})),function(t){t.CLICK_AND_COLLECT="CLICK_AND_COLLECT",t.NO_SHIPMENT="NO_SHIPMENT",t.SHIPMENT="SHIPMENT"}(d||(d={}));export{c as IkasCheckout,h as IkasCheckoutCustomer,l as IkasCheckoutRecoveryEmailStatus,u as IkasCheckoutRecoveryStatus,s as IkasCheckoutStatus,a as IkasPaymentMethod,r as IkasShippingMethod,d as IkasShippingMethodEnum};
|
|
@@ -3,6 +3,7 @@ export declare class IkasCheckoutSettings {
|
|
|
3
3
|
createdAt: number;
|
|
4
4
|
updatedAt: number;
|
|
5
5
|
phoneRequirement: IkasCheckoutRequirementEnum | null;
|
|
6
|
+
postalCodeRequirement: IkasCheckoutRequirementEnum | null;
|
|
6
7
|
identityNumberRequirement: IkasCheckoutRequirementEnum | null;
|
|
7
8
|
isAccountRequired: boolean;
|
|
8
9
|
isTermsAndConditionsDefaultChecked: boolean;
|
|
@@ -11,7 +12,6 @@ export declare class IkasCheckoutSettings {
|
|
|
11
12
|
storefrontId: string;
|
|
12
13
|
giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
|
|
13
14
|
isGiftPackageEnabled: boolean;
|
|
14
|
-
isShowPostalCode: boolean;
|
|
15
15
|
constructor(data?: Partial<IkasCheckoutSettings>);
|
|
16
16
|
}
|
|
17
17
|
export declare enum IkasCheckoutRequirementEnum {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=function(t){void 0===t&&(t={}),this.id=t.id||"",this.createdAt=t.createdAt||0,this.updatedAt=t.updatedAt||0,this.phoneRequirement=t.phoneRequirement||e.OPTIONAL,this.identityNumberRequirement=t.identityNumberRequirement||e.INVISIBLE,this.isAccountRequired=t.isAccountRequired||!1,this.isTermsAndConditionsDefaultChecked=t.isTermsAndConditionsDefaultChecked||!1,this.showTermsAndConditionsCheckbox=void 0===t.showTermsAndConditionsCheckbox||t.showTermsAndConditionsCheckbox,this.showCheckoutNote=t.showCheckoutNote||!1,this.storefrontId=t.storefrontId||"",this.giftPackagePriceList=t.giftPackagePriceList||null,this.isGiftPackageEnabled=t.isGiftPackageEnabled||!1
|
|
1
|
+
var e,t=function(t){void 0===t&&(t={}),this.id=t.id||"",this.createdAt=t.createdAt||0,this.updatedAt=t.updatedAt||0,this.phoneRequirement=t.phoneRequirement||e.OPTIONAL,this.postalCodeRequirement=t.postalCodeRequirement||e.OPTIONAL,this.identityNumberRequirement=t.identityNumberRequirement||e.INVISIBLE,this.isAccountRequired=t.isAccountRequired||!1,this.isTermsAndConditionsDefaultChecked=t.isTermsAndConditionsDefaultChecked||!1,this.showTermsAndConditionsCheckbox=void 0===t.showTermsAndConditionsCheckbox||t.showTermsAndConditionsCheckbox,this.showCheckoutNote=t.showCheckoutNote||!1,this.storefrontId=t.storefrontId||"",this.giftPackagePriceList=t.giftPackagePriceList||null,this.isGiftPackageEnabled=t.isGiftPackageEnabled||!1};!function(e){e.INVISIBLE="INVISIBLE",e.MANDATORY="MANDATORY",e.OPTIONAL="OPTIONAL"}(e||(e={}));export{e as IkasCheckoutRequirementEnum,t as IkasCheckoutSettings};
|
|
@@ -17,7 +17,7 @@ export declare class IkasCustomerAddress {
|
|
|
17
17
|
identityNumber?: string | null;
|
|
18
18
|
taxNumber?: string | null;
|
|
19
19
|
taxOffice?: string | null;
|
|
20
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
20
|
+
checkoutSettings?: IkasCheckoutSettings | null;
|
|
21
21
|
isDistrictRequired?: boolean;
|
|
22
22
|
constructor(data?: Partial<IkasCustomerAddress>);
|
|
23
23
|
get addressText(): string;
|
|
@@ -29,6 +29,8 @@ declare type IkasCustomerAddressLocation = {
|
|
|
29
29
|
id?: string;
|
|
30
30
|
name?: string;
|
|
31
31
|
code?: string;
|
|
32
|
+
iso2?: string;
|
|
33
|
+
iso3?: string;
|
|
32
34
|
};
|
|
33
35
|
export declare type IkasCustomerAddressCountry = IkasCustomerAddressLocation;
|
|
34
36
|
export declare type IkasCustomerAddressCity = IkasCustomerAddressLocation;
|
|
@@ -43,6 +45,7 @@ export declare type IkasAddressValidationResult = {
|
|
|
43
45
|
city: boolean;
|
|
44
46
|
district: boolean;
|
|
45
47
|
phone: boolean;
|
|
48
|
+
postalCode: boolean;
|
|
46
49
|
identityNumber: boolean;
|
|
47
50
|
title: boolean;
|
|
48
51
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{validatePhoneNumber as e}from"../../../../utils/helper.js";import"../../../../storefront/index.js";import"../../../../utils/i18n.js";import{IkasCheckoutRequirementEnum as s}from"../../checkout-settings/index.js";var n=function(){function n(t){void 0===t&&(t={}),this.id=null,this.title=null,this.addressLine1=null,this.addressLine2=null,this.country=null,this.state=null,this.city=null,this.district=null,this.isDefault=null,this.company=null,this.firstName=null,this.lastName=null,this.phone=null,this.postalCode=null,this.identityNumber=null,this.taxNumber=null,this.taxOffice=null,this.isDistrictRequired=!1,this.id=t.id||null,this.title=t.title||null,this.addressLine1=t.addressLine1||null,this.addressLine2=t.addressLine2||null,this.country=t.country||null,this.state=t.state||null,this.city=t.city||null,this.district=t.district||null,this.isDefault=t.isDefault||null,this.company=t.company||null,this.firstName=t.firstName||null,this.lastName=t.lastName||null,this.phone=t.phone||null,this.postalCode=t.postalCode||null,this.identityNumber=t.identityNumber||null,this.taxNumber=t.taxNumber||null,this.taxOffice=t.taxOffice||null,i(this)}return Object.defineProperty(n.prototype,"addressText",{get:function(){var t=[];return this.addressLine1&&t.push(this.addressLine1),this.addressLine2&&t.push(this.addressLine2),this.postalCode&&t.push(this.postalCode),this.district&&this.district.name&&t.push(this.district.name),this.city&&this.city.name&&t.push(this.city.name),this.state&&this.state.name&&"Default"!==this.state.name&&t.push(this.state.name),this.country&&this.country.name&&t.push(this.country.name),t.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validationResult",{get:function(){var t,i,n,l,u=!!this.phone&&this.phone.length>=10&&e(this.phone);return{firstName:!!this.firstName,lastName:!!this.lastName,addressLine1:!!this.addressLine1,country:!!this.country,state:!!this.state,city:!!this.city,district:!this.isDistrictRequired||!!(null===(t=this.district)||void 0===t?void 0:t.id),phone:!((null===(i=this.checkoutSettings)||void 0===i?void 0:i.phoneRequirement)===s.MANDATORY||(null===(n=this.checkoutSettings)||void 0===n?void 0:n.phoneRequirement)===s.OPTIONAL&&this.phone)||
|
|
1
|
+
import{__assign as t}from'../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{validatePhoneNumber as e}from"../../../../utils/helper.js";import"../../../../storefront/index.js";import"../../../../utils/i18n.js";import{IkasCheckoutRequirementEnum as s}from"../../checkout-settings/index.js";var n=function(){function n(t){void 0===t&&(t={}),this.id=null,this.title=null,this.addressLine1=null,this.addressLine2=null,this.country=null,this.state=null,this.city=null,this.district=null,this.isDefault=null,this.company=null,this.firstName=null,this.lastName=null,this.phone=null,this.postalCode=null,this.identityNumber=null,this.taxNumber=null,this.taxOffice=null,this.checkoutSettings=null,this.isDistrictRequired=!1,this.id=t.id||null,this.title=t.title||null,this.addressLine1=t.addressLine1||null,this.addressLine2=t.addressLine2||null,this.country=t.country||null,this.state=t.state||null,this.city=t.city||null,this.district=t.district||null,this.isDefault=t.isDefault||null,this.company=t.company||null,this.firstName=t.firstName||null,this.lastName=t.lastName||null,this.phone=t.phone||null,this.postalCode=t.postalCode||null,this.identityNumber=t.identityNumber||null,this.taxNumber=t.taxNumber||null,this.taxOffice=t.taxOffice||null,i(this)}return Object.defineProperty(n.prototype,"addressText",{get:function(){var t=[];return this.addressLine1&&t.push(this.addressLine1),this.addressLine2&&t.push(this.addressLine2),this.postalCode&&t.push(this.postalCode),this.district&&this.district.name&&t.push(this.district.name),this.city&&this.city.name&&t.push(this.city.name),this.state&&this.state.name&&"Default"!==this.state.name&&t.push(this.state.name),this.country&&this.country.name&&t.push(this.country.name),t.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validationResult",{get:function(){var t,i,n,l,u,h=!!this.phone&&this.phone.length>=10&&e(this.phone);return{firstName:!!this.firstName,lastName:!!this.lastName,addressLine1:!!this.addressLine1,country:!!this.country,state:!!this.state,city:!!this.city,district:!this.isDistrictRequired||!!(null===(t=this.district)||void 0===t?void 0:t.id),phone:!((null===(i=this.checkoutSettings)||void 0===i?void 0:i.phoneRequirement)===s.MANDATORY||(null===(n=this.checkoutSettings)||void 0===n?void 0:n.phoneRequirement)===s.OPTIONAL&&this.phone)||h,postalCode:(null===(l=this.checkoutSettings)||void 0===l?void 0:l.postalCodeRequirement)!==s.MANDATORY||!!this.postalCode,identityNumber:(null===(u=this.checkoutSettings)||void 0===u?void 0:u.identityNumberRequirement)!==s.MANDATORY||!!this.identityNumber,title:!!this.title}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isValid",{get:function(){return Object.values(this.validationResult).every((function(t){return t}))},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){var i=t({},this);return delete i.checkoutSettings,delete i.isDistrictRequired,i},n}();export{n as IkasCustomerAddress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as e}from"mobx";import{decodeBase64 as t}from"../../../utils/helper.js";import{IkasStorefrontConfig as i}from"../../../storefront/index.js";import"../../../utils/i18n.js";var r=function(){function r(t){this.id=t,e(this)}return Object.defineProperty(r.prototype,"editorApiKey",{get:function(){if("undefined"!=typeof window)return window.editorApiKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"src",{get:function(){return this.getSrc(1080)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"thumbnailSrc",{get:function(){return this.getSrc(180)},enumerable:!1,configurable:!0}),r.prototype.getSrc=function(e){if(this.id.includes("/"))return
|
|
1
|
+
import{makeAutoObservable as e}from"mobx";import{decodeBase64 as t}from"../../../utils/helper.js";import{IkasStorefrontConfig as i}from"../../../storefront/index.js";import"../../../utils/i18n.js";var r=function(){function r(t){this.id=t,e(this)}return Object.defineProperty(r.prototype,"editorApiKey",{get:function(){if("undefined"!=typeof window)return window.editorApiKey},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"src",{get:function(){return this.getSrc(1080)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"thumbnailSrc",{get:function(){return this.getSrc(180)},enumerable:!1,configurable:!0}),r.prototype.getSrc=function(e){if(this.id.includes("/"))return"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(this.id,"/image_").concat(e,".webp");var r=t(this.editorApiKey||i.config.apiKey||"");return"".concat(process.env.NEXT_PUBLIC_IMG_BASE_URL,"images/").concat(r,"/").concat(this.id,"/image_").concat(e,".webp")},r}();export{r as IkasImage};
|
|
@@ -35,3 +35,4 @@ export { IkasVariantValue } from "./variant-type/variant-value";
|
|
|
35
35
|
export { IkasOrderTransaction, IkasTransactionStatusEnum, IkasTransactionTypeEnum, } from "./order-transaction";
|
|
36
36
|
export * from "./product-option-set";
|
|
37
37
|
export { IkasRaffle, IkasRaffleParticipant, IkasRaffleMetaData, } from "./raffle";
|
|
38
|
+
export { IkasSlider } from "./slider";
|
|
@@ -17,7 +17,7 @@ export declare class IkasOrderAddress {
|
|
|
17
17
|
identityNumber?: string | null;
|
|
18
18
|
taxNumber?: string | null;
|
|
19
19
|
taxOffice?: string | null;
|
|
20
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
20
|
+
checkoutSettings?: IkasCheckoutSettings | null;
|
|
21
21
|
isDistrictRequired?: boolean;
|
|
22
22
|
constructor(data?: Partial<IkasOrderAddress>);
|
|
23
23
|
get addressText(): string;
|
|
@@ -45,6 +45,7 @@ export declare type IkasAddressValidationResult = {
|
|
|
45
45
|
city: boolean;
|
|
46
46
|
district: boolean;
|
|
47
47
|
phone: boolean;
|
|
48
|
+
postalCode: boolean;
|
|
48
49
|
identityNumber: boolean;
|
|
49
50
|
};
|
|
50
51
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{validatePhoneNumber as e}from"../../../../utils/helper.js";import"../../../../storefront/index.js";import"../../../../utils/i18n.js";import{IkasCheckoutRequirementEnum as s}from"../../checkout-settings/index.js";var n=function(){function n(t){void 0===t&&(t={}),this.id=null,this.title=null,this.addressLine1=null,this.addressLine2=null,this.country=null,this.state=null,this.city=null,this.district=null,this.isDefault=null,this.company=null,this.firstName=null,this.lastName=null,this.phone=null,this.postalCode=null,this.identityNumber=null,this.taxNumber=null,this.taxOffice=null,this.isDistrictRequired=!1,this.id=t.id||null,this.title=t.title||null,this.addressLine1=t.addressLine1||null,this.addressLine2=t.addressLine2||null,this.country=t.country||null,this.state=t.state||null,this.city=t.city||null,this.district=t.district||null,this.isDefault=t.isDefault||null,this.company=t.company||null,this.firstName=t.firstName||null,this.lastName=t.lastName||null,this.phone=t.phone||null,this.postalCode=t.postalCode||null,this.identityNumber=t.identityNumber||null,this.taxNumber=t.taxNumber||null,this.taxOffice=t.taxOffice||null,this.checkoutSettings=t.checkoutSettings,this.isDistrictRequired=t.isDistrictRequired||!1,i(this)}return Object.defineProperty(n.prototype,"addressText",{get:function(){var t=[];return this.addressLine1&&t.push(this.addressLine1),this.addressLine2&&t.push(this.addressLine2),this.postalCode&&t.push(this.postalCode),this.district&&this.district.name&&t.push(this.district.name),this.city&&this.city.name&&t.push(this.city.name),this.state&&this.state.name&&"Default"!==this.state.name&&t.push(this.state.name),this.country&&this.country.name&&t.push(this.country.name),t.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validationResult",{get:function(){var t,i,n,l,u=!!this.phone&&this.phone.length>=10&&e(this.phone);return{firstName:!!this.firstName,lastName:!!this.lastName,addressLine1:!!this.addressLine1,country:!!this.country,state:!!this.state,city:!!this.city,district:!this.isDistrictRequired||!!(null===(t=this.district)||void 0===t?void 0:t.id),phone:!((null===(i=this.checkoutSettings)||void 0===i?void 0:i.phoneRequirement)===s.MANDATORY||(null===(n=this.checkoutSettings)||void 0===n?void 0:n.phoneRequirement)===s.OPTIONAL&&this.phone)||
|
|
1
|
+
import{__assign as t}from'../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{validatePhoneNumber as e}from"../../../../utils/helper.js";import"../../../../storefront/index.js";import"../../../../utils/i18n.js";import{IkasCheckoutRequirementEnum as s}from"../../checkout-settings/index.js";var n=function(){function n(t){void 0===t&&(t={}),this.id=null,this.title=null,this.addressLine1=null,this.addressLine2=null,this.country=null,this.state=null,this.city=null,this.district=null,this.isDefault=null,this.company=null,this.firstName=null,this.lastName=null,this.phone=null,this.postalCode=null,this.identityNumber=null,this.taxNumber=null,this.taxOffice=null,this.checkoutSettings=null,this.isDistrictRequired=!1,this.id=t.id||null,this.title=t.title||null,this.addressLine1=t.addressLine1||null,this.addressLine2=t.addressLine2||null,this.country=t.country||null,this.state=t.state||null,this.city=t.city||null,this.district=t.district||null,this.isDefault=t.isDefault||null,this.company=t.company||null,this.firstName=t.firstName||null,this.lastName=t.lastName||null,this.phone=t.phone||null,this.postalCode=t.postalCode||null,this.identityNumber=t.identityNumber||null,this.taxNumber=t.taxNumber||null,this.taxOffice=t.taxOffice||null,this.checkoutSettings=t.checkoutSettings,this.isDistrictRequired=t.isDistrictRequired||!1,i(this)}return Object.defineProperty(n.prototype,"addressText",{get:function(){var t=[];return this.addressLine1&&t.push(this.addressLine1),this.addressLine2&&t.push(this.addressLine2),this.postalCode&&t.push(this.postalCode),this.district&&this.district.name&&t.push(this.district.name),this.city&&this.city.name&&t.push(this.city.name),this.state&&this.state.name&&"Default"!==this.state.name&&t.push(this.state.name),this.country&&this.country.name&&t.push(this.country.name),t.join(", ")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"validationResult",{get:function(){var t,i,n,l,u,h=!!this.phone&&this.phone.length>=10&&e(this.phone);return{firstName:!!this.firstName,lastName:!!this.lastName,addressLine1:!!this.addressLine1,country:!!this.country,state:!!this.state,city:!!this.city,district:!this.isDistrictRequired||!!(null===(t=this.district)||void 0===t?void 0:t.id),phone:!((null===(i=this.checkoutSettings)||void 0===i?void 0:i.phoneRequirement)===s.MANDATORY||(null===(n=this.checkoutSettings)||void 0===n?void 0:n.phoneRequirement)===s.OPTIONAL&&this.phone)||h,postalCode:(null===(l=this.checkoutSettings)||void 0===l?void 0:l.postalCodeRequirement)!==s.MANDATORY||!!this.postalCode,identityNumber:(null===(u=this.checkoutSettings)||void 0===u?void 0:u.identityNumberRequirement)!==s.MANDATORY||!!this.identityNumber}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isValid",{get:function(){return Object.values(this.validationResult).every((function(t){return t}))},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){var i=t({},this);return delete i.checkoutSettings,delete i.isDistrictRequired,i},n}();export{n as IkasOrderAddress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasImage as
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasImage as a}from"../../../image/index.js";import{stringToSlug as i}from"../../../../../utils/helper.js";import"../../../../../storefront/index.js";import"../../../../../utils/i18n.js";var e=function(){function i(i){void 0===i&&(i={}),this.sku=null,this.slug=null,this.mainImageId=null,this.mainImage=null,this.id=i.id||"",this.name=i.name||"",this.productId=i.productId||"",this.sku=i.sku,this.slug=i.slug,this.barcodeList=i.barcodeList||[],this.mainImageId=i.mainImageId,this.taxValue=i.taxValue||0,this.variantValues=i.variantValues?i.variantValues.map((function(t){return new n(t)})):[],this.mainImageId&&(this.mainImage=new a(this.mainImageId)),t(this)}return Object.defineProperty(i.prototype,"href",{get:function(){if(this.slug){var t=this.variantValues.map((function(t){return"".concat(t.variantTypeSlug,"=").concat(t.variantNameSlug)})).join("&");return t?"/".concat(this.slug,"?").concat(t):"/".concat(this.slug)}},enumerable:!1,configurable:!0}),i}(),n=function(){function a(a){this.order=a.order,this.variantTypeId=a.variantTypeId,this.variantTypeName=a.variantTypeName,this.variantValueId=a.variantValueId,this.variantValueName=a.variantValueName,t(this)}return Object.defineProperty(a.prototype,"variantTypeSlug",{get:function(){return i(this.variantTypeName)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"variantNameSlug",{get:function(){return i(this.variantValueName)},enumerable:!1,configurable:!0}),a}();export{e as IkasOrderLineVariant,n as IkasOrderLineVariantVariantValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasCategory as e}from"../category/index.js";import{IkasProductVariant as
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasCategory as e}from"../category/index.js";import{IkasProductVariant as n}from"./variant/index.js";import{IkasProductAttributeValue as r}from"./attribute-value/index.js";import{IkasProductVariantType as i}from"./variant-type/index.js";import{IkasBrand as a}from"../brand/index.js";import{IkasHTMLMetaData as o}from"../html-meta-data/index.js";import{IkasProductTag as s}from"../product-tag/index.js";import{IkasProductOptionSet as p}from"../product-option-set/index.js";var u,c=function(){function c(c){void 0===c&&(c={}),this.id=c.id||Date.now()+"",this.name=c.name||"",this.type=c.type||u.PHYSICAL,this.description=c.description||"",this.shortDescription=c.shortDescription||"",this.metaData=c.metaData?new o(c.metaData):void 0,this.brand=c.brand?new a(c.brand):null,this.categories=c.categories?c.categories.map((function(t){return new e(t)})):[],this.tags=c.tags?c.tags.map((function(t){return new s(t)})):[],this.variants=c.variants?c.variants.map((function(t){return new n(t)})):[],this.attributes=c.attributes?c.attributes.map((function(t){return new r(t)})):[],this.variantTypes=c.variantTypes?c.variantTypes.map((function(t){return new i(t)})):[],this.productOptionSetId=c.productOptionSetId||null,this.productOptionSet=c.productOptionSet?new p(c.productOptionSet):null,t(this)}return Object.defineProperty(c.prototype,"hasVariant",{get:function(){return!!this.variantTypes.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasStock",{get:function(){return this.variants.some((function(t){return t.stock>0}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"mainVariantType",{get:function(){if(this.hasVariant)return this.variantTypes[0].variantType},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"href",{get:function(){var t;return(null===(t=this.metaData)||void 0===t?void 0:t.slug)?"/".concat(this.metaData.slug):""},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"canAddToCart",{get:function(){return!this.productOptionSetId||!!this.productOptionSet&&this.productOptionSet.displayedOptions.every((function(t){return t.hasValidValues}))},enumerable:!1,configurable:!0}),c}();!function(t){t.PHYSICAL="PHYSICAL",t.DIGITAL="DIGITAL",t.MEMBERSHIP="MEMBERSHIP"}(u||(u={}));export{c as IkasProduct,u as IkasProductType};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as t}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import{IkasImage as i}from"../image/index.js";import n from'../../../ext/lodash/sortBy.js';import s from'../../../ext/lodash/cloneDeep.js';var o,u,l,r=function(){function i(i,n){if(void 0===i&&(i={}),this.values=null,this.customValues=null,this.settings=null,this._numberRange=null,this.numberRangeLimit=null,this.numberRangeListOptions=null,this.productList=null,this.id=i.id||"",this.key=i.key||"",this.name=i.name||"",this.order=i.order||0,this.type=i.type||o.BRAND,this.displayType=i.displayType||u.BOX,this.isMultiSelect=i.isMultiSelect||!1,this.isFacetFilter=i.isFacetFilter||!1,this.values=i.values?i.values.map((function(t){return new a(t)})):null,this.customValues=i.customValues||null,this.settings=i.settings?new c(i.settings):null,this.displayType===u.NUMBER_RANGE_LIST&&this.customValues&&this.customValues.length&&(this.numberRangeListOptions=this.customValues.map((function(e){return new p(t(t({key:e},m(e)),{isSelected:!1}))}))),this.displayType===u.NUMBER_RANGE&&this.customValues&&this.customValues.length){var s=this.customValues[0];this.numberRangeLimit=m(s)}this.productList=n,e(this)}return Object.defineProperty(i.prototype,"isCustomValueFilter",{get:function(){return[u.NUMBER_RANGE_LIST,u.NUMBER_RANGE].includes(this.displayType)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"valueList",{get:function(){var t,e=this;return this._numberRange?[this.rangeToId(this._numberRange)]:this.numberRangeListOptions?this.numberRangeListOptions.filter((function(t){return t.isSelected})).map((function(t){return e.rangeToId(t)})):(null===(t=this.values)||void 0===t?void 0:t.filter((function(t){return t.isSelected})).map((function(t){return t.id})))||[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"keyList",{get:function(){var t,e=this;return this._numberRange?[this.rangeToId(this._numberRange)]:this.numberRangeListOptions?this.numberRangeListOptions.filter((function(t){return t.isSelected})).map((function(t){return e.rangeToId(t)})):(null===(t=this.values)||void 0===t?void 0:t.filter((function(t){return t.isSelected})).map((function(t){return t.key})))||[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"displayedValues",{get:function(){var t,e,i=(null===(t=this.settings)||void 0===t?void 0:t.sortType)||l.ALPHABETICAL_ASC,s=[l.ALPHABETICAL_DESC,l.PRODUCT_COUNT_DESC].includes(i),o=[l.ALPHABETICAL_ASC,l.ALPHABETICAL_DESC].includes(i),u=null===(e=this.values)||void 0===e?void 0:e.filter((function(t){return 0!==t.resultCount||t.isSelected}));return u=n(u,o?"name":"resultCount"),s&&(u=null==u?void 0:u.reverse()),u},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"numberRange",{get:function(){return this._numberRange},enumerable:!1,configurable:!0}),i.prototype.onFilterValueClick=function(t){var e,i;if(this.isCustomValueFilter)throw new Error("onFilterValueClick cannot be used with NUMBER_RANGE | NUMBER_RANGE_LIST types!");t._isSelected=!t.isSelected,!this.isMultiSelect&&t.isSelected&&(null===(e=this.values)||void 0===e||e.forEach((function(e){e.id!==t.id&&(e._isSelected=!1)}))),null===(i=this.productList)||void 0===i||i.applyFilters()},i.prototype.onNumberRangeClick=function(t){var e,i;if(this.displayType!==u.NUMBER_RANGE_LIST)throw new Error("onNumberRangeClick can only be used with NUMBER_RANGE filters!");t._isSelected=!t.isSelected,!this.isMultiSelect&&t.isSelected&&(null===(e=this.numberRangeListOptions)||void 0===e||e.forEach((function(e){e.key!==t.key&&(e._isSelected=!1)}))),null===(i=this.productList)||void 0===i||i.applyFilters()},i.prototype.onNumberRangeChange=function(t){var e,i,n;if(this.displayType!==u.NUMBER_RANGE)throw new Error("onNumberRangeChange can only be used with NUMBER_RANGE filters!");if(!t)return this._numberRange=null,void(null===(e=this.productList)||void 0===e||e.applyFilters());var o=new d(s(t));o.from<this.numberRangeLimit.from&&(o.from=this._numberRange.from),o.to&&(null===(i=this.numberRangeLimit)||void 0===i?void 0:i.to)&&o.to>this.numberRangeLimit.to&&(o.to=this.numberRangeLimit.to),this._numberRange=o,null===(n=this.productList)||void 0===n||n.applyFilters()},i.prototype.clear=function(){var t,e;this._numberRange=null,null===(t=this.numberRangeListOptions)||void 0===t||t.forEach((function(t){return t._isSelected=!1})),null===(e=this.values)||void 0===e||e.forEach((function(t){return t._isSelected=!1}))},i.prototype.toInput=function(){var t;return{id:this.key,type:this.type,valueList:this.valueList,useAndFilter:null===(t=this.settings)||void 0===t?void 0:t.useAndFilter}},i.prototype.toJSON=function(){var e=t({},this);return delete e.productList,e},i.prototype.applyQueryParam=function(t){var e,i,n=t.split(",");this.displayType===u.NUMBER_RANGE?this._numberRange=new d(m(t)):this.displayType===u.NUMBER_RANGE_LIST?null===(e=this.numberRangeListOptions)||void 0===e||e.forEach((function(t){n.includes(t.key)&&(t._isSelected=!0)})):null===(i=this.values)||void 0===i||i.forEach((function(t){n.includes(t.key)&&0!==t.resultCount&&(t._isSelected=!0)}))},i.prototype.rangeToId=function(t){return"".concat(t.from,":").concat(t.to||"")},i}(),a=function(){function n(t){void 0===t&&(t={}),this.colorCode=null,this.thumbnailImageId=null,this.thumbnailImage=null,this.resultCount=null,this._isSelected=!1,this.id=t.id||"",this.key=t.key||"",this.name=t.name||"",this.colorCode=t.colorCode||null,this.thumbnailImageId=t.thumbnailImageId||null,this.thumbnailImageId&&(this.thumbnailImage=new i(this.thumbnailImageId)),this._isSelected=t.isSelected||!1,this.resultCount=void 0!==t.resultCount&&null!==t.resultCount?t.resultCount:null,e(this)}return Object.defineProperty(n.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return t(t({},this),{isSelected:this._isSelected})},n}(),h=function(t){this.id=t.id,this.type=t.type,this.displayType=t.displayType,this.valueList=t.valueList,e(this)},c=function(t){this.useAndFilter=null,this.useAndFilter=t.useAndFilter||!1,this.showCollapsedOnDesktop=t.showCollapsedOnDesktop||!1,this.showCollapsedOnMobile=t.showCollapsedOnMobile||!1,this.sortType=t.sortType||l.ALPHABETICAL_ASC,e(this)};!function(t){t.ATTRIBUTE="ATTRIBUTE",t.BRAND="BRAND",t.DISCOUNT_RATIO="DISCOUNT_RATIO",t.PRICE="PRICE",t.STOCK_STATUS="STOCK_STATUS",t.TAG="TAG",t.VARIANT_TYPE="VARIANT_TYPE"}(o||(o={})),function(t){t.BOX="BOX",t.DATE_RANGE="DATE_RANGE",t.LIST="LIST",t.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",t.NUMBER_RANGE="NUMBER_RANGE",t.SWATCH="SWATCH"}(u||(u={})),function(t){t.ALPHABETICAL_ASC="ALPHABETICAL_ASC",t.ALPHABETICAL_DESC="ALPHABETICAL_DESC",t.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",t.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC"}(l||(l={}));var d=function(t){this.from=t.from||0,this.to=t.to||null,e(this)},p=function(){function i(t){this.from=t.from||0,this.to=t.to||null,this.key=t.key||"",this._isSelected=t.isSelected||!1,e(this)}return Object.defineProperty(i.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),i.prototype.toJSON=function(){return t(t({},this),{isSelected:this._isSelected})},i}();function m(t){try{var e=t.split(":").map((function(t){return parseInt(t)}));return new d({from:isNaN(e[0])?0:e[0],to:isNaN(e[1])?void 0:e[1]})}catch(t){return console.log(t),new d({from:0,to:0})}}export{a as IkasApplicableProductFilterValue,r as IkasProductFilter,u as IkasProductFilterDisplayType,c as IkasProductFilterSettings,l as IkasProductFilterSortType,o as IkasProductFilterType,h as IkasProductFilterValue,d as RangeValue,m as parseRangeStr};
|
|
@@ -4,6 +4,7 @@ export declare enum IkasProductOptionType {
|
|
|
4
4
|
TEXT = "TEXT",
|
|
5
5
|
TEXT_AREA = "TEXT_AREA",
|
|
6
6
|
COLOR_PICKER = "COLOR_PICKER",
|
|
7
|
+
DATE_PICKER = "DATE_PICKER",
|
|
7
8
|
CHECKBOX = "CHECKBOX"
|
|
8
9
|
}
|
|
9
10
|
export declare enum IkasProductOptionSelectType {
|
|
@@ -48,6 +49,8 @@ export declare class IkasProductOptionSelectSettings {
|
|
|
48
49
|
export declare class IkasProductOptionDateSettings {
|
|
49
50
|
min: Date | null;
|
|
50
51
|
max: Date | null;
|
|
52
|
+
minRelativeNextDate: number | null;
|
|
53
|
+
maxRelativeNextDate: number | null;
|
|
51
54
|
constructor(data: Partial<IkasProductOptionDateSettings>);
|
|
52
55
|
}
|
|
53
56
|
export declare class IkasProductOptionTextSettings {
|
|
@@ -86,6 +89,7 @@ export declare class IkasProductOption {
|
|
|
86
89
|
initValues: () => void;
|
|
87
90
|
private isValidTextOptionValue;
|
|
88
91
|
private isValidChoiceOptionValue;
|
|
92
|
+
private isValidDateOptionValue;
|
|
89
93
|
}
|
|
90
94
|
export declare class IkasProductOptionSet {
|
|
91
95
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as i}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as n}from"mobx";import{IkasImage as l}from"../image/index.js";import{IkasStorefrontConfig as s}from"../../../storefront/index.js";import a from'../../../ext/lodash/sortBy.js';var o,u;!function(t){t.CHOICE="CHOICE",t.TEXT="TEXT",t.TEXT_AREA="TEXT_AREA",t.COLOR_PICKER="COLOR_PICKER",t.DATE_PICKER="DATE_PICKER",t.CHECKBOX="CHECKBOX"}(o||(o={})),function(t){t.SELECT="SELECT",t.BOX="BOX",t.SWATCH="SWATCH"}(u||(u={}));var r=function(t){this.id=t.id||"",this.value=t.value||null,n(this)},h=function(t){var e;this.id=t.id||"",this.name=t.name||null,this.optionalText=t.optionalText||null,this.values=(null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new r(t)})))||[],n(this)},d=function(t){var e;this.locale=t.locale||"",this.options=(null===(e=t.options)||void 0===e?void 0:e.map((function(t){return new h(t)})))||[],n(this)},c=function(t){void 0===t&&(t={}),this.thumbnailImage=null,this.id=t.id||"",this.order=t.order||0,this.value=t.value||"",this.price=t.price||null,this.thumbnailImageId=t.thumbnailImageId||null,this.colorCode=t.colorCode||null,this.thumbnailImage=this.thumbnailImageId?new l(this.thumbnailImageId):null,n(this)},p=function(t){var e;void 0===t&&(t={}),this.type=t.type||u.BOX,this.minSelect=null!==t.minSelect&&void 0!==t.minSelect?t.minSelect:null,this.maxSelect=null!==t.maxSelect&&void 0!==t.maxSelect?t.maxSelect:null,this.values=a((null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new c(t)})))||[],"order"),n(this)},m=function(t){this.min=t.min||null,this.max=t.max||null,this.minRelativeNextDate=t.minRelativeNextDate||null,this.maxRelativeNextDate=t.maxRelativeNextDate||null,n(this)},v=function(t){void 0===t&&(t={}),this.min=null!==t.min&&void 0!==t.min?t.min:null,this.max=null!==t.max&&void 0!==t.max?t.max:null,n(this)},f=function(t){this.allowedExtensions=t.allowedExtensions||null,this.minQuantity=null!==t.minQuantity&&void 0!==t.minQuantity?t.minQuantity:null,this.maxQuantity=null!==t.maxQuantity&&void 0!==t.maxQuantity?t.maxQuantity:null,n(this)},g=function(){function t(t){var e=this;this._values=[],this.childOptions=[],this.initValues=function(){e.isOptional||(e.values=[],e.childOptions&&e.childOptions.forEach((function(t){return t.initValues()})))},this.isValidTextOptionValue=function(){var t=e.values[0];return t?!!e.textSettings&&(null===e.textSettings.min||t.length>=e.textSettings.min)&&(null===e.textSettings.max||t.length<=e.textSettings.max):!!e.isOptional},this.isValidChoiceOptionValue=function(){return e.values.length?!!e.selectSettings&&(null===e.selectSettings.minSelect||e.values.length>=e.selectSettings.minSelect)&&(null===e.selectSettings.maxSelect||e.values.length<=e.selectSettings.maxSelect):!!e.isOptional},this.isValidDateOptionValue=function(){if(!e.values.length)return!!e.isOptional;if(e.dateSettings){var t=new Date,i=new Date;null!==e.dateSettings.minRelativeNextDate&&(t=e.dateSettings.minRelativeNextDate<0?new Date(t.setDate(t.getDate()-Math.abs(e.dateSettings.minRelativeNextDate))):new Date(t.setDate(t.getDate()+Math.abs(e.dateSettings.minRelativeNextDate)))),null!==e.dateSettings.maxRelativeNextDate&&(i=e.dateSettings.maxRelativeNextDate<0?new Date(i.setDate(i.getDate()-Math.abs(e.dateSettings.maxRelativeNextDate))):new Date(i.setDate(i.getDate()+Math.abs(e.dateSettings.maxRelativeNextDate))));var n=new Date(e.values[0]);return n.getTime()>=t.getTime()&&n.getTime()<=i.getTime()}return!0},this.id=t.id||"",this.productOptionSetId=t.productOptionSetId||"",this.name=t.name||"",this.order=t.order||0,this.type=t.type||o.CHOICE,this.selectSettings=t.selectSettings?new p(t.selectSettings||{}):null,this.textSettings=t.textSettings?new v(t.textSettings||{}):null,this.fileSettings=t.fileSettings?new f(t.fileSettings||{}):null,this.dateSettings=t.dateSettings?new m(t.dateSettings||{}):null,this.price=t.price||null,this.isOptional=t.isOptional||!1,this.optionalText=t.optionalText||null,this.requiredOptionId=t.requiredOptionId||null,this.requiredOptionValueIds=t.requiredOptionValueIds||null,this.values=t.values||[],this.childOptions=t.childOptions||[],n(this)}return Object.defineProperty(t.prototype,"displayedChildOptions",{get:function(){var t=this;return a(this.childOptions.filter((function(e){var i;return(null===(i=e.requiredOptionValueIds)||void 0===i?void 0:i.length)?e.requiredOptionValueIds.every((function(e){return t.values.some((function(t){return t===e}))})):t.type===o.CHECKBOX?!!t.values.length&&"true"===t.values[0]:!!t.values.length})),"order")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasValidValues",{get:function(){if(!this.values.length&&!this.isOptional)return!1;var t=!1;switch(this.type){case o.TEXT:case o.TEXT_AREA:t=this.isValidTextOptionValue();break;case o.CHECKBOX:case o.COLOR_PICKER:t=!0;break;case o.CHOICE:t=this.isValidChoiceOptionValue();break;case o.DATE_PICKER:t=this.isValidDateOptionValue()}return t&&this.displayedChildOptions.every((function(t){return t.hasValidValues}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(t){this._values=t,t.length||this.childOptions.forEach((function(t){return t.values=[]}))},enumerable:!1,configurable:!0}),t}(),O=function(){function l(l){var s,a,o=this;this.initOptionValues=function(){return t(o,void 0,void 0,(function(){return e(this,(function(t){return this.options.forEach((function(t){return t.initValues()})),[2]}))}))},this.id=l.id||"",this.name=l.name||"",this.options=(null===(s=l.options)||void 0===s?void 0:s.map((function(t){return new g(i(i({},t),{productOptionSetId:o.id}))})))||[],this.translations=l.translations?null===(a=l.translations)||void 0===a?void 0:a.map((function(t){return new d(t)})):null,this.setChildOptions(),this.setTranslations(),this.initOptionValues(),n(this)}return Object.defineProperty(l.prototype,"displayedOptions",{get:function(){return a(this.options.filter((function(t){return!t.requiredOptionId})),"order")},enumerable:!1,configurable:!0}),l.prototype.setTranslations=function(){var t,e=this,i=s.getCurrentLocale();if(this.translations&&this.translations.some((function(t){return t.locale===i}))){var n=this.translations.find((function(t){return t.locale===i}));null===(t=null==n?void 0:n.options)||void 0===t||t.forEach((function(t){var i,n=e.options.find((function(e){return e.id===t.id}));n&&(n.name=t.name||n.name,n.optionalText=t.optionalText||n.optionalText,n.type===o.CHOICE&&(null===(i=t.values)||void 0===i||i.forEach((function(t){var e,i=null===(e=n.selectSettings)||void 0===e?void 0:e.values.find((function(e){return e.id===t.id}));i&&(i.value=t.value||i.value)}))))}))}},l.prototype.setChildOptions=function(){var t=this;this.options.forEach((function(e){var i=t.options.filter((function(t){return t.requiredOptionId===e.id}));i.length&&(e.childOptions=i)}))},l}();export{g as IkasProductOption,m as IkasProductOptionDateSettings,f as IkasProductOptionFileSettings,p as IkasProductOptionSelectSettings,u as IkasProductOptionSelectType,c as IkasProductOptionSelectValue,r as IkasProductOptionSelectValueTranslations,O as IkasProductOptionSet,d as IkasProductOptionSetTranslations,v as IkasProductOptionTextSettings,h as IkasProductOptionTranslations,o as IkasProductOptionType};
|
|
@@ -56,7 +56,7 @@ export declare class IkasRaffleParticipant {
|
|
|
56
56
|
phone?: string | null;
|
|
57
57
|
isWinner?: boolean | null;
|
|
58
58
|
extraData?: Record<string, any> | null;
|
|
59
|
-
|
|
59
|
+
appliedProduct: IkasRaffleAppliedProduct;
|
|
60
60
|
constructor(data: Partial<IkasRaffleParticipant>);
|
|
61
61
|
}
|
|
62
62
|
export declare class IkasRaffleAppliedProduct {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as t}from"mobx";import{IkasProductDetail as e}from"../../ui/product-detail/index.js";var i,a=function(e){this.start=e.start||null,this.end=e.end||null,t(this)};!function(t){t.EMAIL="EMAIL",t.MERSIS="MERSIS"}(i||(i={}));var n,
|
|
1
|
+
import{makeAutoObservable as t}from"mobx";import{IkasProductDetail as e}from"../../ui/product-detail/index.js";var i,a=function(e){this.start=e.start||null,this.end=e.end||null,t(this)};!function(t){t.EMAIL="EMAIL",t.MERSIS="MERSIS"}(i||(i={}));var n,d=function(){function t(t){var n,d;void 0===t&&(t={}),this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.name=t.name||"",this.participantCount=t.participantCount||0,this.requiredCustomerAccount=t.requiredCustomerAccount||!1,this.status=t.status||!1,this.verificationType=t.verificationType||i.EMAIL,this.isCustomerWinner=t.isCustomerWinner||void 0,this.dateRange=t.dateRange?new a(t.dateRange):null,this.metadata=t.metadata?new s(t.metadata):null,this.variants=(null===(n=t.variants)||void 0===n?void 0:n.map((function(t){return new u(t)})))||[],this.products=(null===(d=t.products)||void 0===d?void 0:d.map((function(t){return new e(t.product,t.selectedVariantValues)})))||[]}return Object.defineProperty(t.prototype,"isRaffleAvailable",{get:function(){var t;if(!this.status)return!1;var e=Date.now();return(null===(t=this.dateRange)||void 0===t?void 0:t.start)&&e>this.dateRange.start&&this.dateRange.end&&e<this.dateRange.end},enumerable:!1,configurable:!0}),t}();!function(t){t.RAFFLE="RAFFLE"}(n||(n={}));var s=function(t){this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.description=t.description||"",this.pageTitle=t.pageTitle||"",this.slug=t.slug||"",this.targetId=t.targetId||"",this.targetType=t.targetType||n.RAFFLE},r=function(e){this.id=e.id||null,this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.customerId=e.customerId||null,this.raffleId=e.raffleId||"",this.firstName=e.firstName||"",this.lastName=e.lastName||"",this.fullName=e.fullName||null,this.email=e.email||"",this.applicationDate=e.applicationDate||0,this.phone=e.phone||null,this.isWinner=e.isWinner||null,this.extraData=e.extraData||{},this.appliedProduct=new u(e.appliedProduct||{}),t(this)},u=function(e){this.productId=e.productId||"",this.variantId=e.variantId||"",t(this)};export{d as IkasRaffle,u as IkasRaffleAppliedProduct,s as IkasRaffleMetaData,n as IkasRaffleMetadataTargetType,r as IkasRaffleParticipant,i as IkasRaffleVerificationTypeEnum,a as RaffleDateRangeField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as i}from"mobx";var t=function(t){void 0===t&&(t={}),this.value=t.value||0,this.unit=t.unit||null,i(this)};export{t as IkasSlider};
|
|
@@ -3,8 +3,17 @@ export declare class IkasThemeComponent {
|
|
|
3
3
|
id: string;
|
|
4
4
|
dir: string;
|
|
5
5
|
displayName: string;
|
|
6
|
+
description: string;
|
|
6
7
|
props: IkasThemeComponentProp[];
|
|
7
8
|
isHeader: boolean;
|
|
8
9
|
isFooter: boolean;
|
|
10
|
+
translations: {
|
|
11
|
+
[locale: string]: ComponentTranslation;
|
|
12
|
+
};
|
|
9
13
|
constructor(data: Partial<IkasThemeComponent>);
|
|
10
14
|
}
|
|
15
|
+
export declare class ComponentTranslation {
|
|
16
|
+
displayName: string | null;
|
|
17
|
+
description: string | null;
|
|
18
|
+
constructor(data?: Partial<ComponentTranslation>);
|
|
19
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";import{IkasThemeComponentProp as
|
|
1
|
+
import{makeAutoObservable as i}from"mobx";import{IkasThemeComponentProp as s}from"./prop/index.js";var t=function(t){this.translations={},this.id=t.id||"",this.dir=t.dir||"",this.displayName=t.displayName||"",this.description=t.description||"",this.props=t.props?t.props.map((function(i){return new s(i)})):[],this.translations=t.translations||{},this.isHeader=t.isHeader||!1,this.isFooter=t.isFooter||!1,i(this)};export{t as IkasThemeComponent};
|
|
@@ -3,12 +3,26 @@ export declare class IkasThemeComponentProp {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
displayName: string;
|
|
6
|
+
description: string;
|
|
6
7
|
type: IkasThemeComponentPropType;
|
|
7
8
|
isRequired: boolean;
|
|
8
9
|
customDataId?: string | null;
|
|
10
|
+
requiredPropId?: string;
|
|
11
|
+
requiredEnumOptionId?: string;
|
|
12
|
+
requiredEnumOptionValue?: string;
|
|
9
13
|
attributeTypes?: IkasProductAttributeType[] | null;
|
|
14
|
+
sliderData: IkasSliderData;
|
|
15
|
+
translations: {
|
|
16
|
+
[locale: string]: PropTranslation;
|
|
17
|
+
};
|
|
10
18
|
constructor(data: Partial<IkasThemeComponentProp>);
|
|
11
19
|
}
|
|
20
|
+
export declare type IkasSliderData = {
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
interval?: number;
|
|
24
|
+
unit?: string;
|
|
25
|
+
};
|
|
12
26
|
export declare enum IkasThemeComponentPropType {
|
|
13
27
|
TEXT = "TEXT",
|
|
14
28
|
RICH_TEXT = "RICH_TEXT",
|
|
@@ -35,8 +49,15 @@ export declare enum IkasThemeComponentPropType {
|
|
|
35
49
|
BLOG_CATEGORY_LIST = "BLOG_CATEGORY_LIST",
|
|
36
50
|
RAFFLE = "RAFFLE",
|
|
37
51
|
RAFFLE_LIST = "RAFFLE_LIST",
|
|
52
|
+
SLIDER = "SLIDER",
|
|
38
53
|
OBJECT = "OBJECT",
|
|
39
54
|
STATIC_LIST = "STATIC_LIST",
|
|
40
55
|
DYNAMIC_LIST = "DYNAMIC_LIST",
|
|
41
56
|
ENUM = "ENUM"
|
|
42
57
|
}
|
|
58
|
+
declare class PropTranslation {
|
|
59
|
+
displayName: string | null;
|
|
60
|
+
description: string | null;
|
|
61
|
+
constructor(data?: Partial<PropTranslation>);
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as T}from"mobx";var I,
|
|
1
|
+
import{makeAutoObservable as T}from"mobx";var I,O=function(O){this.translations={},this.id=O.id||Date.now()+"",this.name=O.name||"",this.displayName=O.displayName||"",this.description=O.description||"",this.type=O.type||I.TEXT,this.isRequired=O.isRequired||!1,this.customDataId=O.customDataId||null,this.requiredPropId=O.requiredPropId,this.requiredEnumOptionId=O.requiredEnumOptionId,this.requiredEnumOptionValue=O.requiredEnumOptionValue,this.attributeTypes=O.attributeTypes||null,this.sliderData=O.sliderData||{},this.translations=O.translations||{},T(this)};!function(T){T.TEXT="TEXT",T.RICH_TEXT="RICH_TEXT",T.BOOLEAN="BOOLEAN",T.IMAGE="IMAGE",T.IMAGE_LIST="IMAGE_LIST",T.LINK="LINK",T.LIST_OF_LINK="LIST_OF_LINK",T.PRODUCT_DETAIL="PRODUCT_DETAIL",T.PRODUCT_LIST="PRODUCT_LIST",T.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",T.PRODUCT_ATTRIBUTE_LIST="PRODUCT_ATTRIBUTE_LIST",T.BRAND="BRAND",T.BRAND_LIST="BRAND_LIST",T.CATEGORY="CATEGORY",T.CATEGORY_LIST="CATEGORY_LIST",T.COLOR="COLOR",T.CUSTOM="CUSTOM",T.COMPONENT="COMPONENT",T.COMPONENT_LIST="COMPONENT_LIST",T.BLOG="BLOG",T.BLOG_LIST="BLOG_LIST",T.BLOG_CATEGORY="BLOG_CATEGORY",T.BLOG_CATEGORY_LIST="BLOG_CATEGORY_LIST",T.RAFFLE="RAFFLE",T.RAFFLE_LIST="RAFFLE_LIST",T.SLIDER="SLIDER",T.OBJECT="OBJECT",T.STATIC_LIST="STATIC_LIST",T.DYNAMIC_LIST="DYNAMIC_LIST",T.ENUM="ENUM"}(I||(I={}));export{O as IkasThemeComponentProp,I as IkasThemeComponentPropType};
|
|
@@ -1,24 +1,43 @@
|
|
|
1
1
|
import { IkasProductAttributeType } from "../../../models/data/product-attribute";
|
|
2
|
-
import { IkasThemeComponentPropType } from "../component/prop";
|
|
2
|
+
import { IkasSliderData, IkasThemeComponentPropType } from "../component/prop";
|
|
3
3
|
export declare class IkasThemeCustomData {
|
|
4
4
|
id: string;
|
|
5
5
|
name?: string | null;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
typescriptName?: string | null;
|
|
6
8
|
type: IkasThemeComponentPropType;
|
|
7
9
|
isRequired: boolean;
|
|
10
|
+
translations: {
|
|
11
|
+
[locale: string]: CustomDataTranslation;
|
|
12
|
+
};
|
|
8
13
|
key?: string | null;
|
|
9
14
|
nestedData?: IkasThemeCustomData[] | null;
|
|
10
15
|
itemCount?: number | null;
|
|
11
16
|
attributeTypes?: IkasProductAttributeType[] | null;
|
|
12
17
|
enumOptions?: IkasThemeEnumOption[] | null;
|
|
13
18
|
customDataId?: string | null;
|
|
19
|
+
sliderData: IkasSliderData;
|
|
14
20
|
isRoot: boolean;
|
|
15
21
|
parent?: IkasThemeCustomData | null;
|
|
16
22
|
constructor(data?: Partial<IkasThemeCustomData>);
|
|
23
|
+
get flat(): IkasThemeCustomData[];
|
|
17
24
|
toJSON(): this;
|
|
18
25
|
}
|
|
19
26
|
export declare class IkasThemeEnumOption {
|
|
20
27
|
id: string;
|
|
21
28
|
displayName: string;
|
|
22
29
|
value: string;
|
|
30
|
+
translations: {
|
|
31
|
+
[locale: string]: CustomDataEnumOptionTranslation;
|
|
32
|
+
};
|
|
23
33
|
constructor(data?: Partial<IkasThemeEnumOption>);
|
|
24
34
|
}
|
|
35
|
+
export declare class CustomDataTranslation {
|
|
36
|
+
name: string | null;
|
|
37
|
+
description: string | null;
|
|
38
|
+
constructor(data?: Partial<CustomDataTranslation>);
|
|
39
|
+
}
|
|
40
|
+
export declare class CustomDataEnumOptionTranslation {
|
|
41
|
+
displayName: string | null;
|
|
42
|
+
constructor(data?: Partial<CustomDataEnumOptionTranslation>);
|
|
43
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{IkasThemeComponentPropType as e}from"../component/prop/index.js";var
|
|
1
|
+
import{__assign as t}from'../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as i}from"mobx";import{IkasThemeComponentPropType as e}from"../component/prop/index.js";import n from'../../../ext/lodash/flatten.js';var s=function(){function s(n){var o,r=this;void 0===n&&(n={}),this.translations={},this.customDataId=null,this.id=n.id||"",this.name=n.name||null,this.description=n.description||null,this.typescriptName=n.name||null,this.type=n.type||e.TEXT,this.isRequired=void 0===n.isRequired||n.isRequired,this.translations=n.translations||{},this.key=n.key||null,this.parent=n.parent||null,this.itemCount=n.itemCount||null,this.attributeTypes=n.attributeTypes||null,this.enumOptions=(null===(o=n.enumOptions)||void 0===o?void 0:o.map((function(t){return new a(t)})))||null,this.customDataId=n.customDataId||null,this.sliderData=n.sliderData||{},this.isRoot=n.isRoot||!1,this.nestedData=n.nestedData?n.nestedData.map((function(i){return new s(t(t({},i),{parent:r}))})):null,this.type!==e.STATIC_LIST||this.itemCount||(this.itemCount=1),i(this)}return Object.defineProperty(s.prototype,"flat",{get:function(){if(!this.nestedData||!this.nestedData.length)return[this];var t=n(this.nestedData.map((function(t){return t.flat})));console.log("nestedFlat",t);var i=[];return i.push(this),i=i.concat(t)},enumerable:!1,configurable:!0}),s.prototype.toJSON=function(){var i=t({},this);return delete i.parent,i},s}(),a=function(t){void 0===t&&(t={}),this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.value=t.value||"",this.translations=t.translations||{},i(this)};export{s as IkasThemeCustomData,a as IkasThemeEnumOption};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class IkasThemeColor {
|
|
2
|
+
id: string;
|
|
3
|
+
displayName: string;
|
|
4
|
+
key: string;
|
|
5
|
+
color: string;
|
|
6
|
+
translations: {
|
|
7
|
+
[locale: string]: ColorTranslation;
|
|
8
|
+
};
|
|
9
|
+
constructor(data: Partial<IkasThemeColor>);
|
|
10
|
+
}
|
|
11
|
+
export declare class ColorTranslation {
|
|
12
|
+
displayName: string | null;
|
|
13
|
+
constructor(data?: Partial<ColorTranslation>);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeAutoObservable as s}from"mobx";import i from'../../../../ext/uuid/dist/esm-browser/v4.js';var t=function(t){this.translations={},this.id=t.id||i(),this.displayName=t.displayName||"",this.key=t.key||"",this.color=t.color||"",this.translations=t.translations||{},s(this)};export{t as IkasThemeColor};
|