@foxy.io/elements 1.27.1 → 1.28.0-beta.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/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +5 -5
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +1 -1
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-api.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +2 -2
- package/dist/cdn/foxy-customer.js +5 -5
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +5 -5
- package/dist/cdn/foxy-email-template-card.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +2 -2
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +2 -2
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-nucleon-element.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +2 -2
- package/dist/cdn/foxy-reports-table.js +5 -5
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -0
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -0
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -0
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +7 -7
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-56b8e9ca.js → shared-004fc193.js} +1 -1
- package/dist/cdn/{shared-90ddf541.js → shared-042969fe.js} +1 -1
- package/dist/cdn/{shared-b6c1aa47.js → shared-059680a0.js} +1 -1
- package/dist/cdn/shared-08d018f5.js +1 -0
- package/dist/cdn/{shared-eef50424.js → shared-0da6e42c.js} +1 -1
- package/dist/cdn/{shared-eeb2d7ab.js → shared-0e038fda.js} +1 -1
- package/dist/cdn/{shared-d67d56c2.js → shared-0ed41a9e.js} +1 -1
- package/dist/cdn/{shared-5f65bdab.js → shared-1708eb3c.js} +1 -1
- package/dist/cdn/{shared-9f5c636a.js → shared-1d8edd03.js} +1 -1
- package/dist/cdn/{shared-739a8fe4.js → shared-23061fb2.js} +1 -1
- package/dist/cdn/{shared-98f85be1.js → shared-24586cfb.js} +1 -1
- package/dist/cdn/{shared-6c97a6b0.js → shared-25c57c74.js} +1 -1
- package/dist/cdn/{shared-a827bcc6.js → shared-2782886e.js} +1 -1
- package/dist/cdn/shared-293f9c07.js +1 -0
- package/dist/cdn/{shared-d2a79509.js → shared-2e6bda84.js} +1 -1
- package/dist/cdn/{shared-a006b7a9.js → shared-32cac4bd.js} +3 -3
- package/dist/cdn/shared-365c8437.js +1 -0
- package/dist/cdn/{shared-879fcb1f.js → shared-414a0c9b.js} +1 -1
- package/dist/cdn/{shared-8acb820f.js → shared-41d57c3b.js} +1 -1
- package/dist/cdn/{shared-213b9416.js → shared-421708b0.js} +1 -1
- package/dist/cdn/{shared-9e014b51.js → shared-44b101d0.js} +1 -1
- package/dist/cdn/{shared-c9f4fe97.js → shared-4761504a.js} +1 -1
- package/dist/cdn/{shared-9bd371c7.js → shared-484b31eb.js} +1 -1
- package/dist/cdn/{shared-0aa511d0.js → shared-49d678ad.js} +1 -1
- package/dist/cdn/{shared-891b33ad.js → shared-4b209827.js} +1 -1
- package/dist/cdn/{shared-8d7e2e2c.js → shared-57266e2a.js} +1 -1
- package/dist/cdn/shared-57e4bcb0.js +1 -0
- package/dist/cdn/{shared-82423f8b.js → shared-58095d4b.js} +1 -1
- package/dist/cdn/{shared-0e9ad70e.js → shared-59d8b64e.js} +1 -1
- package/dist/cdn/{shared-d7bb413b.js → shared-5c1e607b.js} +1 -1
- package/dist/cdn/shared-5cb6aca6.js +1 -0
- package/dist/cdn/{shared-1602c9a4.js → shared-66084f2e.js} +1 -1
- package/dist/cdn/shared-6740ee7a.js +1 -0
- package/dist/cdn/{shared-ecb7a183.js → shared-6d1556a0.js} +1 -1
- package/dist/cdn/{shared-41e9ef02.js → shared-7004839c.js} +2 -2
- package/dist/cdn/{shared-3c58ddf1.js → shared-701157ac.js} +2 -2
- package/dist/cdn/{shared-5e9395ec.js → shared-7063f5af.js} +1 -1
- package/dist/cdn/{shared-849413bb.js → shared-789e3185.js} +1 -1
- package/dist/cdn/shared-7af96c0a.js +1 -0
- package/dist/cdn/{shared-fca5f5e3.js → shared-80b9cb48.js} +1 -1
- package/dist/cdn/{shared-96077b62.js → shared-80c6f97e.js} +1 -1
- package/dist/cdn/{shared-28e988c6.js → shared-824d0804.js} +1 -1
- package/dist/cdn/{shared-4a1ca2d3.js → shared-850e441a.js} +1 -1
- package/dist/cdn/shared-8f0251e9.js +1 -0
- package/dist/cdn/{shared-b91650ba.js → shared-9ee719e6.js} +1 -1
- package/dist/cdn/{shared-ec0fb97f.js → shared-9f44b81f.js} +1 -1
- package/dist/cdn/{shared-7a5adb55.js → shared-a05fe56c.js} +1 -1
- package/dist/cdn/{shared-b7cda8ba.js → shared-a08d509a.js} +1 -1
- package/dist/cdn/{shared-f635c052.js → shared-a28c9952.js} +1 -1
- package/dist/cdn/{shared-75f3a59e.js → shared-a4e0a78b.js} +1 -1
- package/dist/cdn/{shared-2808f43a.js → shared-a5c48bf4.js} +1 -1
- package/dist/cdn/{shared-e075ca81.js → shared-a79dbeb9.js} +1 -1
- package/dist/cdn/{shared-a30fcaf6.js → shared-aac73acd.js} +1 -1
- package/dist/cdn/{shared-43928f5a.js → shared-add044d3.js} +1 -1
- package/dist/cdn/{shared-51c3bc09.js → shared-ae200b9f.js} +1 -1
- package/dist/cdn/{shared-3521ade9.js → shared-ae462b8e.js} +1 -1
- package/dist/cdn/shared-b3681c71.js +1 -0
- package/dist/cdn/{shared-0ac853c6.js → shared-b42c6fe3.js} +1 -1
- package/dist/cdn/{shared-71782a9e.js → shared-b44cf5a9.js} +1 -1
- package/dist/cdn/{shared-e5f6ca48.js → shared-b6376c8f.js} +1 -1
- package/dist/cdn/{shared-617dbd76.js → shared-ba5c9c0b.js} +1 -1
- package/dist/cdn/{shared-ec636065.js → shared-baaa1e47.js} +1 -1
- package/dist/cdn/{shared-68aebcc4.js → shared-bb35ee61.js} +1 -1
- package/dist/cdn/{shared-8b4ba63a.js → shared-bba917bf.js} +1 -1
- package/dist/cdn/{shared-15a947f3.js → shared-c0e56e97.js} +1 -1
- package/dist/cdn/{shared-8e75c372.js → shared-c2128988.js} +1 -1
- package/dist/cdn/{shared-c73f6e8a.js → shared-c4f5b03b.js} +1 -1
- package/dist/cdn/shared-cbeb8587.js +1 -0
- package/dist/cdn/{shared-741bfa42.js → shared-cf9c48f9.js} +1 -1
- package/dist/cdn/{shared-221d3788.js → shared-cfdd6c21.js} +1 -1
- package/dist/cdn/{shared-f090c63a.js → shared-d82f9e35.js} +1 -1
- package/dist/cdn/{shared-5c4a29b9.js → shared-db108ddb.js} +1 -1
- package/dist/cdn/{shared-85707e42.js → shared-e4cc1191.js} +1 -1
- package/dist/cdn/{shared-0f4947e8.js → shared-ec696e1b.js} +1 -1
- package/dist/cdn/{shared-12e531b8.js → shared-ecec6a10.js} +1 -1
- package/dist/cdn/shared-f2335b72.js +29 -0
- package/dist/cdn/{shared-550608b8.js → shared-f300193c.js} +1 -1
- package/dist/cdn/{shared-85f44e3e.js → shared-f91d5706.js} +1 -1
- package/dist/cdn/{shared-21fec810.js → shared-fad783a0.js} +1 -1
- package/dist/cdn/{shared-2e2d45c4.js → shared-fbfa45bb.js} +1 -1
- package/dist/cdn/{shared-a6e383ac.js → shared-fd410dee.js} +2 -2
- package/dist/cdn/{shared-bd99107c.js → shared-fee535ca.js} +1 -1
- package/dist/cdn/translations/address-form/en.json +36 -2
- package/dist/cdn/translations/api-browser/en.json +9 -3
- package/dist/cdn/translations/applied-coupon-code-form/en.json +25 -2
- package/dist/cdn/translations/attribute-form/en.json +27 -2
- package/dist/cdn/translations/cart-form/en.json +249 -10
- package/dist/cdn/translations/client-form/en.json +25 -2
- package/dist/cdn/translations/coupon-code-form/en.json +25 -6
- package/dist/cdn/translations/coupon-codes-form/en.json +8 -2
- package/dist/cdn/translations/coupon-form/en.json +87 -13
- package/dist/cdn/translations/custom-field-form/en.json +25 -2
- package/dist/cdn/translations/customer/en.json +121 -15
- package/dist/cdn/translations/customer-form/en.json +27 -2
- package/dist/cdn/translations/customer-portal/de.json +47 -9
- package/dist/cdn/translations/customer-portal/en.json +47 -9
- package/dist/cdn/translations/customer-portal/es.json +47 -9
- package/dist/cdn/translations/customer-portal/fr.json +47 -9
- package/dist/cdn/translations/customer-portal/nl.json +47 -9
- package/dist/cdn/translations/customer-portal/pl.json +47 -9
- package/dist/cdn/translations/customer-portal/sv.json +47 -9
- package/dist/cdn/translations/customer-portal/zh-hk.json +47 -9
- package/dist/cdn/translations/customer-portal-settings-form/en.json +33 -4
- package/dist/cdn/translations/downloadable-form/en.json +25 -2
- package/dist/cdn/translations/email-template-form/en.json +2 -2
- package/dist/cdn/translations/filter-attribute-form/en.json +2 -2
- package/dist/cdn/translations/generate-codes-form/en.json +8 -2
- package/dist/cdn/translations/gift-card-code-form/en.json +25 -2
- package/dist/cdn/translations/gift-card-codes-form/en.json +8 -2
- package/dist/cdn/translations/gift-card-form/en.json +86 -8
- package/dist/cdn/translations/integration-form/en.json +17 -3
- package/dist/cdn/translations/item-category-form/en.json +32 -7
- package/dist/cdn/translations/item-form/en.json +111 -7
- package/dist/cdn/translations/item-option-form/en.json +25 -2
- package/dist/cdn/translations/native-integration-form/en.json +32 -2
- package/dist/cdn/translations/passkey-form/en.json +25 -7
- package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +21 -3
- package/dist/cdn/translations/payments-api-payment-method-form/en.json +25 -3
- package/dist/cdn/translations/payments-api-payment-preset-form/en.json +80 -3
- package/dist/cdn/translations/report-form/en.json +2 -2
- package/dist/cdn/translations/shipping-container-card/en.json +8 -0
- package/dist/cdn/translations/shipping-drop-type-card/en.json +8 -0
- package/dist/cdn/translations/shipping-method-card/en.json +1 -0
- package/dist/cdn/translations/shipping-service-card/en.json +9 -0
- package/dist/cdn/translations/store-form/en.json +26 -3
- package/dist/cdn/translations/store-shipping-method-form/en.json +149 -18
- package/dist/cdn/translations/subscription-form/en.json +26 -8
- package/dist/cdn/translations/subscription-settings-form/en.json +19 -2
- package/dist/cdn/translations/tax-form/en.json +2 -2
- package/dist/cdn/translations/template-config-form/en.json +2 -2
- package/dist/cdn/translations/template-form/en.json +2 -2
- package/dist/cdn/translations/template-set-form/en.json +60 -3
- package/dist/cdn/translations/transaction/en.json +217 -18
- package/dist/cdn/translations/update-payment-method-form/en.json +5 -1
- package/dist/cdn/translations/user-form/en.json +26 -2
- package/dist/cdn/translations/users-table/en.json +8 -2
- package/dist/cdn/translations/webhook-form/en.json +34 -8
- package/dist/cdn/translations/webhook-log-card/en.json +2 -2
- package/dist/cdn/translations/webhook-status-card/en.json +2 -2
- package/dist/elements/internal/InternalAsyncResourceLinkListControl/InternalAsyncResourceLinkListControl.js +1 -1
- package/dist/elements/internal/InternalAsyncResourceLinkListControl/InternalAsyncResourceLinkListControl.js.map +1 -1
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +15 -2
- package/dist/elements/internal/InternalForm/InternalForm.js +108 -29
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/internal/InternalForm/index.d.ts +2 -1
- package/dist/elements/internal/InternalForm/index.js +2 -1
- package/dist/elements/internal/InternalForm/index.js.map +1 -1
- package/dist/elements/internal/{InternalCreateControl/InternalCreateControl.d.ts → InternalSubmitControl/InternalSubmitControl.d.ts} +3 -10
- package/dist/elements/internal/InternalSubmitControl/InternalSubmitControl.js +34 -0
- package/dist/elements/internal/InternalSubmitControl/InternalSubmitControl.js.map +1 -0
- package/dist/elements/internal/InternalSubmitControl/index.d.ts +5 -0
- package/dist/elements/internal/InternalSubmitControl/index.js +7 -0
- package/dist/elements/internal/InternalSubmitControl/index.js.map +1 -0
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.d.ts +15 -0
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.js +34 -0
- package/dist/elements/internal/InternalUndoControl/InternalUndoControl.js.map +1 -0
- package/dist/elements/internal/{InternalCreateControl → InternalUndoControl}/index.d.ts +2 -2
- package/dist/elements/internal/InternalUndoControl/index.js +7 -0
- package/dist/elements/internal/InternalUndoControl/index.js.map +1 -0
- package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.d.ts +1 -11
- package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js +0 -10
- package/dist/elements/public/AccessRecoveryForm/AccessRecoveryForm.js.map +1 -1
- package/dist/elements/public/AccessRecoveryForm/types.d.ts +0 -10
- package/dist/elements/public/AccessRecoveryForm/types.js.map +1 -1
- package/dist/elements/public/AddressCard/AddressCard.d.ts +1 -17
- package/dist/elements/public/AddressCard/AddressCard.js +0 -16
- package/dist/elements/public/AddressCard/AddressCard.js.map +1 -1
- package/dist/elements/public/AddressCard/types.d.ts +0 -14
- package/dist/elements/public/AddressCard/types.js.map +1 -1
- package/dist/elements/public/AddressForm/AddressForm.d.ts +7 -46
- package/dist/elements/public/AddressForm/AddressForm.js +51 -53
- package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
- package/dist/elements/public/AddressForm/index.d.ts +1 -0
- package/dist/elements/public/AddressForm/index.js +1 -0
- package/dist/elements/public/AddressForm/index.js.map +1 -1
- package/dist/elements/public/AddressForm/types.d.ts +3 -30
- package/dist/elements/public/AddressForm/types.js.map +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js +2 -2
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/InternalApiBrowserResourceForm.js.map +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.d.ts +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js +1 -1
- package/dist/elements/public/ApiBrowser/internal/InternalApiBrowserResourceForm/index.js.map +1 -1
- package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.d.ts +1 -14
- package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.js +2 -13
- package/dist/elements/public/AppliedCouponCodeForm/AppliedCouponCodeForm.js.map +1 -1
- package/dist/elements/public/AppliedCouponCodeForm/types.d.ts +0 -12
- package/dist/elements/public/AppliedCouponCodeForm/types.js.map +1 -1
- package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.d.ts +0 -6
- package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.js +0 -6
- package/dist/elements/public/AppliedTaxCard/AppliedTaxCard.js.map +1 -1
- package/dist/elements/public/AttributeCard/AttributeCard.d.ts +1 -7
- package/dist/elements/public/AttributeCard/AttributeCard.js +0 -6
- package/dist/elements/public/AttributeCard/AttributeCard.js.map +1 -1
- package/dist/elements/public/AttributeCard/types.d.ts +1 -9
- package/dist/elements/public/AttributeCard/types.js.map +1 -1
- package/dist/elements/public/AttributeForm/AttributeForm.d.ts +3 -21
- package/dist/elements/public/AttributeForm/AttributeForm.js +8 -21
- package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
- package/dist/elements/public/AttributeForm/types.d.ts +0 -16
- package/dist/elements/public/AttributeForm/types.js.map +1 -1
- package/dist/elements/public/CancellationForm/CancellationForm.d.ts +1 -9
- package/dist/elements/public/CancellationForm/CancellationForm.js +0 -8
- package/dist/elements/public/CancellationForm/CancellationForm.js.map +1 -1
- package/dist/elements/public/CancellationForm/types.d.ts +2 -12
- package/dist/elements/public/CancellationForm/types.js.map +1 -1
- package/dist/elements/public/CartForm/CartForm.d.ts +1 -93
- package/dist/elements/public/CartForm/CartForm.js +3 -93
- package/dist/elements/public/CartForm/CartForm.js.map +1 -1
- package/dist/elements/public/CartForm/index.d.ts +1 -1
- package/dist/elements/public/CartForm/index.js +1 -1
- package/dist/elements/public/CartForm/index.js.map +1 -1
- package/dist/elements/public/CartForm/types.d.ts +0 -64
- package/dist/elements/public/CartForm/types.js.map +1 -1
- package/dist/elements/public/ClientForm/ClientForm.d.ts +1 -44
- package/dist/elements/public/ClientForm/ClientForm.js +2 -46
- package/dist/elements/public/ClientForm/ClientForm.js.map +1 -1
- package/dist/elements/public/ClientForm/types.d.ts +0 -32
- package/dist/elements/public/ClientForm/types.js.map +1 -1
- package/dist/elements/public/CollectionPages/CollectionPages.js +16 -8
- package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +2 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +9 -2
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/elements/public/CopyToClipboard/index.d.ts +1 -0
- package/dist/elements/public/CopyToClipboard/index.js +1 -0
- package/dist/elements/public/CopyToClipboard/index.js.map +1 -1
- package/dist/elements/public/CouponCard/CouponCard.d.ts +1 -9
- package/dist/elements/public/CouponCard/CouponCard.js +0 -11
- package/dist/elements/public/CouponCard/CouponCard.js.map +1 -1
- package/dist/elements/public/CouponCard/types.d.ts +1 -13
- package/dist/elements/public/CouponCard/types.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +1 -21
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +3 -24
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/index.d.ts +0 -1
- package/dist/elements/public/CouponCodeForm/index.js +0 -1
- package/dist/elements/public/CouponCodeForm/index.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/types.d.ts +0 -16
- package/dist/elements/public/CouponCodeForm/types.js.map +1 -1
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.d.ts +1 -8
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.js +0 -7
- package/dist/elements/public/CouponCodesForm/CouponCodesForm.js.map +1 -1
- package/dist/elements/public/CouponCodesForm/types.d.ts +0 -8
- package/dist/elements/public/CouponCodesForm/types.js.map +1 -1
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.d.ts +0 -6
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js +0 -6
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js.map +1 -1
- package/dist/elements/public/CouponForm/CouponForm.d.ts +1 -64
- package/dist/elements/public/CouponForm/CouponForm.js +3 -64
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/CustomFieldCard/CustomFieldCard.d.ts +0 -6
- package/dist/elements/public/CustomFieldCard/CustomFieldCard.js +0 -6
- package/dist/elements/public/CustomFieldCard/CustomFieldCard.js.map +1 -1
- package/dist/elements/public/CustomFieldCard/TwoLineCard.d.ts +0 -8
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js +0 -1
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js.map +1 -1
- package/dist/elements/public/CustomFieldCard/index.d.ts +1 -1
- package/dist/elements/public/CustomFieldCard/index.js +1 -1
- package/dist/elements/public/CustomFieldCard/index.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.d.ts +1 -20
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +2 -19
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/types.d.ts +0 -16
- package/dist/elements/public/CustomFieldForm/types.js.map +1 -1
- package/dist/elements/public/Customer/Customer.d.ts +1 -38
- package/dist/elements/public/Customer/Customer.js +6 -37
- package/dist/elements/public/Customer/Customer.js.map +1 -1
- package/dist/elements/public/Customer/types.d.ts +3 -177
- package/dist/elements/public/Customer/types.js.map +1 -1
- package/dist/elements/public/CustomerCard/CustomerCard.d.ts +1 -7
- package/dist/elements/public/CustomerCard/CustomerCard.js +0 -9
- package/dist/elements/public/CustomerCard/CustomerCard.js.map +1 -1
- package/dist/elements/public/CustomerCard/types.d.ts +2 -10
- package/dist/elements/public/CustomerCard/types.js.map +1 -1
- package/dist/elements/public/CustomerForm/CustomerForm.d.ts +4 -38
- package/dist/elements/public/CustomerForm/CustomerForm.js +19 -38
- package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/elements/public/CustomerForm/types.d.ts +1 -27
- package/dist/elements/public/CustomerForm/types.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.d.ts +0 -2
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js +3 -1
- package/dist/elements/public/CustomerPortalSettingsForm/CustomerPortalSettingsForm.js.map +1 -1
- package/dist/elements/public/DiscountCard/DiscountCard.d.ts +0 -6
- package/dist/elements/public/DiscountCard/DiscountCard.js +0 -6
- package/dist/elements/public/DiscountCard/DiscountCard.js.map +1 -1
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.d.ts +0 -6
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js +0 -6
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js.map +1 -1
- package/dist/elements/public/DownloadableForm/DownloadableForm.d.ts +0 -24
- package/dist/elements/public/DownloadableForm/DownloadableForm.js +2 -24
- package/dist/elements/public/DownloadableForm/DownloadableForm.js.map +1 -1
- package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.d.ts +0 -6
- package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js +0 -6
- package/dist/elements/public/EmailTemplateCard/EmailTemplateCard.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +1 -20
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +0 -19
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/types.d.ts +2 -16
- package/dist/elements/public/EmailTemplateForm/types.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.d.ts +0 -7
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js +0 -7
- package/dist/elements/public/FilterAttributeForm/FilterAttributeForm.js.map +1 -1
- package/dist/elements/public/FilterAttributeForm/types.d.ts +0 -10
- package/dist/elements/public/FilterAttributeForm/types.js.map +1 -1
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.d.ts +1 -17
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js +0 -16
- package/dist/elements/public/GenerateCodesForm/GenerateCodesForm.js.map +1 -1
- package/dist/elements/public/GenerateCodesForm/types.d.ts +2 -16
- package/dist/elements/public/GenerateCodesForm/types.js.map +1 -1
- package/dist/elements/public/GiftCardCard/GiftCardCard.d.ts +1 -7
- package/dist/elements/public/GiftCardCard/GiftCardCard.js +0 -9
- package/dist/elements/public/GiftCardCard/GiftCardCard.js.map +1 -1
- package/dist/elements/public/GiftCardCard/types.d.ts +2 -10
- package/dist/elements/public/GiftCardCard/types.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.d.ts +1 -26
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js +2 -25
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/types.d.ts +0 -20
- package/dist/elements/public/GiftCardCodeForm/types.js.map +1 -1
- package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.d.ts +1 -11
- package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js +0 -10
- package/dist/elements/public/GiftCardCodesForm/GiftCardCodesForm.js.map +1 -1
- package/dist/elements/public/GiftCardCodesForm/types.d.ts +2 -12
- package/dist/elements/public/GiftCardCodesForm/types.js.map +1 -1
- package/dist/elements/public/GiftCardForm/GiftCardForm.d.ts +1 -30
- package/dist/elements/public/GiftCardForm/GiftCardForm.js +3 -30
- package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
- package/dist/elements/public/IntegrationForm/IntegrationForm.d.ts +2 -22
- package/dist/elements/public/IntegrationForm/IntegrationForm.js +7 -39
- package/dist/elements/public/IntegrationForm/IntegrationForm.js.map +1 -1
- package/dist/elements/public/IntegrationForm/index.d.ts +1 -1
- package/dist/elements/public/IntegrationForm/index.js +1 -1
- package/dist/elements/public/IntegrationForm/index.js.map +1 -1
- package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.d.ts +0 -6
- package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.js +0 -6
- package/dist/elements/public/ItemCategoryCard/ItemCategoryCard.js.map +1 -1
- package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.d.ts +3 -77
- package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js +24 -88
- package/dist/elements/public/ItemCategoryForm/ItemCategoryForm.js.map +1 -1
- package/dist/elements/public/ItemCategoryForm/index.d.ts +2 -1
- package/dist/elements/public/ItemCategoryForm/index.js +2 -1
- package/dist/elements/public/ItemCategoryForm/index.js.map +1 -1
- package/dist/elements/public/ItemCategoryForm/types.d.ts +0 -52
- package/dist/elements/public/ItemCategoryForm/types.js.map +1 -1
- package/dist/elements/public/ItemForm/ItemForm.d.ts +3 -87
- package/dist/elements/public/ItemForm/ItemForm.js +13 -100
- package/dist/elements/public/ItemForm/ItemForm.js.map +1 -1
- package/dist/elements/public/ItemForm/index.d.ts +2 -1
- package/dist/elements/public/ItemForm/index.js +2 -1
- package/dist/elements/public/ItemForm/index.js.map +1 -1
- package/dist/elements/public/ItemForm/types.d.ts +0 -60
- package/dist/elements/public/ItemForm/types.js.map +1 -1
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.d.ts +0 -6
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js +0 -6
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js.map +1 -1
- package/dist/elements/public/ItemOptionCard/types.d.ts +2 -10
- package/dist/elements/public/ItemOptionCard/types.js.map +1 -1
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.d.ts +0 -12
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js +9 -16
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.d.ts +2 -85
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js +8 -89
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/types.d.ts +0 -90
- package/dist/elements/public/NativeIntegrationForm/types.js.map +1 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js +14 -8
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/PasskeyCard/PasskeyCard.d.ts +0 -6
- package/dist/elements/public/PasskeyCard/PasskeyCard.js +0 -6
- package/dist/elements/public/PasskeyCard/PasskeyCard.js.map +1 -1
- package/dist/elements/public/PasskeyCard/types.d.ts +0 -8
- package/dist/elements/public/PasskeyCard/types.js.map +1 -1
- package/dist/elements/public/PasskeyForm/PasskeyForm.d.ts +1 -19
- package/dist/elements/public/PasskeyForm/PasskeyForm.js +2 -20
- package/dist/elements/public/PasskeyForm/PasskeyForm.js.map +1 -1
- package/dist/elements/public/PasskeyForm/types.d.ts +0 -16
- package/dist/elements/public/PasskeyForm/types.js.map +1 -1
- package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.d.ts +1 -9
- package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js +0 -8
- package/dist/elements/public/PaymentMethodCard/PaymentMethodCard.js.map +1 -1
- package/dist/elements/public/PaymentMethodCard/types.d.ts +4 -11
- package/dist/elements/public/PaymentMethodCard/types.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.d.ts +0 -6
- package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.js +0 -6
- package/dist/elements/public/PaymentsApiFraudProtectionCard/PaymentsApiFraudProtectionCard.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.d.ts +7 -21
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js +72 -82
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/types.d.ts +0 -15
- package/dist/elements/public/PaymentsApiFraudProtectionForm/types.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.d.ts +0 -6
- package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.js +0 -6
- package/dist/elements/public/PaymentsApiPaymentMethodCard/PaymentsApiPaymentMethodCard.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.d.ts +7 -42
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +84 -103
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.d.ts +1 -0
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js +1 -0
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/types.d.ts +0 -29
- package/dist/elements/public/PaymentsApiPaymentMethodForm/types.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.d.ts +0 -6
- package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.js +0 -6
- package/dist/elements/public/PaymentsApiPaymentPresetCard/PaymentsApiPaymentPresetCard.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.d.ts +3 -27
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js +7 -26
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/types.d.ts +0 -14
- package/dist/elements/public/PaymentsApiPaymentPresetForm/types.js.map +1 -1
- package/dist/elements/public/ReportForm/ReportForm.d.ts +1 -17
- package/dist/elements/public/ReportForm/ReportForm.js +0 -16
- package/dist/elements/public/ReportForm/ReportForm.js.map +1 -1
- package/dist/elements/public/ReportForm/types.d.ts +2 -16
- package/dist/elements/public/ReportForm/types.js.map +1 -1
- package/dist/elements/public/ShippingContainerCard/ShippingContainerCard.d.ts +16 -0
- package/dist/elements/public/ShippingContainerCard/ShippingContainerCard.js +22 -0
- package/dist/elements/public/ShippingContainerCard/ShippingContainerCard.js.map +1 -0
- package/dist/elements/public/ShippingContainerCard/index.d.ts +5 -0
- package/dist/elements/public/ShippingContainerCard/index.js +7 -0
- package/dist/elements/public/ShippingContainerCard/index.js.map +1 -0
- package/dist/elements/public/ShippingContainerCard/types.d.ts +3 -0
- package/dist/elements/public/ShippingContainerCard/types.js.map +1 -0
- package/dist/elements/public/ShippingDropTypeCard/ShippingDropTypeCard.d.ts +16 -0
- package/dist/elements/public/ShippingDropTypeCard/ShippingDropTypeCard.js +22 -0
- package/dist/elements/public/ShippingDropTypeCard/ShippingDropTypeCard.js.map +1 -0
- package/dist/elements/public/ShippingDropTypeCard/index.d.ts +5 -0
- package/dist/elements/public/ShippingDropTypeCard/index.js +7 -0
- package/dist/elements/public/ShippingDropTypeCard/index.js.map +1 -0
- package/dist/elements/public/ShippingDropTypeCard/types.d.ts +3 -0
- package/dist/elements/public/ShippingDropTypeCard/types.js +2 -0
- package/dist/elements/public/ShippingDropTypeCard/types.js.map +1 -0
- package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js +15 -17
- package/dist/elements/public/ShippingMethodCard/ShippingMethodCard.js.map +1 -1
- package/dist/elements/public/ShippingServiceCard/ShippingServiceCard.d.ts +16 -0
- package/dist/elements/public/ShippingServiceCard/ShippingServiceCard.js +30 -0
- package/dist/elements/public/ShippingServiceCard/ShippingServiceCard.js.map +1 -0
- package/dist/elements/public/ShippingServiceCard/index.d.ts +5 -0
- package/dist/elements/public/ShippingServiceCard/index.js +7 -0
- package/dist/elements/public/ShippingServiceCard/index.js.map +1 -0
- package/dist/elements/public/ShippingServiceCard/types.d.ts +3 -0
- package/dist/elements/public/ShippingServiceCard/types.js +2 -0
- package/dist/elements/public/ShippingServiceCard/types.js.map +1 -0
- package/dist/elements/public/SignInForm/SignInForm.d.ts +1 -19
- package/dist/elements/public/SignInForm/SignInForm.js +0 -18
- package/dist/elements/public/SignInForm/SignInForm.js.map +1 -1
- package/dist/elements/public/SignInForm/types.d.ts +0 -20
- package/dist/elements/public/SignInForm/types.js.map +1 -1
- package/dist/elements/public/StoreCard/StoreCard.d.ts +0 -6
- package/dist/elements/public/StoreCard/StoreCard.js +0 -6
- package/dist/elements/public/StoreCard/StoreCard.js.map +1 -1
- package/dist/elements/public/StoreForm/StoreForm.d.ts +1 -138
- package/dist/elements/public/StoreForm/StoreForm.js +2 -137
- package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
- package/dist/elements/public/StoreForm/types.d.ts +0 -94
- package/dist/elements/public/StoreForm/types.js.map +1 -1
- package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.d.ts +10 -48
- package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js +97 -149
- package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js.map +1 -1
- package/dist/elements/public/StoreShippingMethodForm/index.d.ts +7 -3
- package/dist/elements/public/StoreShippingMethodForm/index.js +7 -3
- package/dist/elements/public/StoreShippingMethodForm/index.js.map +1 -1
- package/dist/elements/public/StoreShippingMethodForm/types.d.ts +2 -34
- package/dist/elements/public/StoreShippingMethodForm/types.js.map +1 -1
- package/dist/elements/public/SubscriptionCard/types.d.ts +2 -7
- package/dist/elements/public/SubscriptionCard/types.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.d.ts +5 -37
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +70 -143
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/types.d.ts +1 -26
- package/dist/elements/public/SubscriptionForm/types.js.map +1 -1
- package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.d.ts +3 -44
- package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.js +6 -43
- package/dist/elements/public/SubscriptionSettingsForm/SubscriptionSettingsForm.js.map +1 -1
- package/dist/elements/public/SubscriptionSettingsForm/types.d.ts +0 -32
- package/dist/elements/public/SubscriptionSettingsForm/types.js.map +1 -1
- package/dist/elements/public/SubscriptionsTable/types.d.ts +0 -2
- package/dist/elements/public/SubscriptionsTable/types.js.map +1 -1
- package/dist/elements/public/Table/Table.d.ts +1 -2
- package/dist/elements/public/Table/Table.js +0 -1
- package/dist/elements/public/Table/Table.js.map +1 -1
- package/dist/elements/public/Table/types.d.ts +0 -5
- package/dist/elements/public/Table/types.js.map +1 -1
- package/dist/elements/public/TaxCard/TaxCard.d.ts +6 -12
- package/dist/elements/public/TaxCard/TaxCard.js +13 -30
- package/dist/elements/public/TaxCard/TaxCard.js.map +1 -1
- package/dist/elements/public/TaxCard/index.d.ts +2 -1
- package/dist/elements/public/TaxCard/index.js +2 -1
- package/dist/elements/public/TaxCard/index.js.map +1 -1
- package/dist/elements/public/TaxForm/TaxForm.d.ts +1 -41
- package/dist/elements/public/TaxForm/TaxForm.js +8 -48
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/elements/public/TaxForm/types.d.ts +2 -32
- package/dist/elements/public/TaxForm/types.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +1 -46
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +0 -45
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/types.d.ts +2 -38
- package/dist/elements/public/TemplateConfigForm/types.js.map +1 -1
- package/dist/elements/public/TemplateForm/TemplateForm.d.ts +1 -17
- package/dist/elements/public/TemplateForm/TemplateForm.js +0 -16
- package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
- package/dist/elements/public/TemplateForm/types.d.ts +2 -16
- package/dist/elements/public/TemplateForm/types.js.map +1 -1
- package/dist/elements/public/TemplateSetCard/TemplateSetCard.d.ts +0 -6
- package/dist/elements/public/TemplateSetCard/TemplateSetCard.js +0 -6
- package/dist/elements/public/TemplateSetCard/TemplateSetCard.js.map +1 -1
- package/dist/elements/public/TemplateSetForm/TemplateSetForm.d.ts +2 -33
- package/dist/elements/public/TemplateSetForm/TemplateSetForm.js +28 -71
- package/dist/elements/public/TemplateSetForm/TemplateSetForm.js.map +1 -1
- package/dist/elements/public/TemplateSetForm/index.d.ts +2 -1
- package/dist/elements/public/TemplateSetForm/index.js +2 -1
- package/dist/elements/public/TemplateSetForm/index.js.map +1 -1
- package/dist/elements/public/TemplateSetForm/types.d.ts +0 -22
- package/dist/elements/public/TemplateSetForm/types.js.map +1 -1
- package/dist/elements/public/Transaction/Transaction.d.ts +3 -0
- package/dist/elements/public/Transaction/Transaction.js +52 -59
- package/dist/elements/public/Transaction/Transaction.js.map +1 -1
- package/dist/elements/public/TransactionCard/TransactionCard.d.ts +1 -11
- package/dist/elements/public/TransactionCard/TransactionCard.js +0 -10
- package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
- package/dist/elements/public/TransactionCard/types.d.ts +2 -14
- package/dist/elements/public/TransactionCard/types.js.map +1 -1
- package/dist/elements/public/TransactionsTable/types.d.ts +0 -2
- package/dist/elements/public/TransactionsTable/types.js.map +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.d.ts +0 -6
- package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.js +6 -8
- package/dist/elements/public/UpdatePaymentMethodForm/UpdatePaymentMethodForm.js.map +1 -1
- package/dist/elements/public/UpdatePaymentMethodForm/types.d.ts +0 -8
- package/dist/elements/public/UpdatePaymentMethodForm/types.js.map +1 -1
- package/dist/elements/public/UserCard/UserCard.d.ts +0 -6
- package/dist/elements/public/UserCard/UserCard.js +0 -6
- package/dist/elements/public/UserCard/UserCard.js.map +1 -1
- package/dist/elements/public/UserForm/UserForm.d.ts +2 -28
- package/dist/elements/public/UserForm/UserForm.js +8 -33
- package/dist/elements/public/UserForm/UserForm.js.map +1 -1
- package/dist/elements/public/UserForm/index.d.ts +0 -1
- package/dist/elements/public/UserForm/index.js +0 -1
- package/dist/elements/public/UserForm/index.js.map +1 -1
- package/dist/elements/public/UserForm/types.d.ts +0 -20
- package/dist/elements/public/UserForm/types.js.map +1 -1
- package/dist/elements/public/WebhookForm/WebhookForm.d.ts +2 -28
- package/dist/elements/public/WebhookForm/WebhookForm.js +11 -32
- package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -1
- package/dist/elements/public/WebhookForm/index.d.ts +1 -1
- package/dist/elements/public/WebhookForm/index.js +1 -1
- package/dist/elements/public/WebhookForm/index.js.map +1 -1
- package/dist/elements/public/WebhookLogCard/WebhookLogCard.js +5 -6
- package/dist/elements/public/WebhookLogCard/WebhookLogCard.js.map +1 -1
- package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js +4 -3
- package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js.map +1 -1
- package/dist/elements/public/index.d.ts +3 -0
- package/dist/elements/public/index.defined.d.ts +3 -0
- package/dist/elements/public/index.defined.js +3 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +3 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +0 -5
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.d.ts +3 -3
- package/dist/mixins/translatable.js +7 -16
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +2 -3
- package/dist/cdn/shared-157c52e5.js +0 -1
- package/dist/cdn/shared-272e7269.js +0 -1
- package/dist/cdn/shared-37391934.js +0 -1
- package/dist/cdn/shared-39fc8fed.js +0 -1
- package/dist/cdn/shared-66d2a0d7.js +0 -1
- package/dist/cdn/shared-7535b32d.js +0 -1
- package/dist/cdn/shared-8452c492.js +0 -1
- package/dist/cdn/shared-8bd53409.js +0 -1
- package/dist/cdn/shared-9c3b800b.js +0 -1
- package/dist/cdn/shared-e989e47e.js +0 -29
- package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.d.ts +0 -31
- package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.js +0 -148
- package/dist/elements/internal/InternalAsyncDetailsControl/InternalAsyncDetailsControl.js.map +0 -1
- package/dist/elements/internal/InternalAsyncDetailsControl/index.d.ts +0 -8
- package/dist/elements/internal/InternalAsyncDetailsControl/index.js +0 -10
- package/dist/elements/internal/InternalAsyncDetailsControl/index.js.map +0 -1
- package/dist/elements/internal/InternalCreateControl/InternalCreateControl.js +0 -60
- package/dist/elements/internal/InternalCreateControl/InternalCreateControl.js.map +0 -1
- package/dist/elements/internal/InternalCreateControl/index.js +0 -7
- package/dist/elements/internal/InternalCreateControl/index.js.map +0 -1
- package/dist/elements/internal/InternalDetails/InternalDetails.d.ts +0 -22
- package/dist/elements/internal/InternalDetails/InternalDetails.js +0 -71
- package/dist/elements/internal/InternalDetails/InternalDetails.js.map +0 -1
- package/dist/elements/internal/InternalDetails/index.d.ts +0 -6
- package/dist/elements/internal/InternalDetails/index.js +0 -8
- package/dist/elements/internal/InternalDetails/index.js.map +0 -1
- package/dist/elements/public/CustomerPortal/types.d.ts +0 -198
- package/dist/elements/public/CustomerPortal/types.js.map +0 -1
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/InternalItemCategoryFormTaxesControl.d.ts +0 -8
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/InternalItemCategoryFormTaxesControl.js +0 -52
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/InternalItemCategoryFormTaxesControl.js.map +0 -1
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/index.d.ts +0 -6
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/index.js +0 -8
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControl/index.js.map +0 -1
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/InternalItemCategoryFormTaxesControlItem.d.ts +0 -11
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/InternalItemCategoryFormTaxesControlItem.js +0 -83
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/InternalItemCategoryFormTaxesControlItem.js.map +0 -1
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/index.d.ts +0 -5
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/index.js +0 -7
- package/dist/elements/public/ItemCategoryForm/internal/InternalItemCategoryFormTaxesControlItem/index.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/InternalStoreShippingMethodFormServicesControl.d.ts +0 -5
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/InternalStoreShippingMethodFormServicesControl.js +0 -33
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/InternalStoreShippingMethodFormServicesControl.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/index.d.ts +0 -6
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/index.js +0 -8
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesControl/index.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/InternalStoreShippingMethodFormServicesPage.d.ts +0 -19
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/InternalStoreShippingMethodFormServicesPage.js +0 -96
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/InternalStoreShippingMethodFormServicesPage.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/index.d.ts +0 -5
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/index.js +0 -7
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPage/index.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/InternalStoreShippingMethodFormServicesPageItem.d.ts +0 -17
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/InternalStoreShippingMethodFormServicesPageItem.js +0 -45
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/InternalStoreShippingMethodFormServicesPageItem.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/index.d.ts +0 -3
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/index.js +0 -5
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItem/index.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/InternalStoreShippingMethodFormServicesPageItemContent.d.ts +0 -16
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/InternalStoreShippingMethodFormServicesPageItemContent.js +0 -49
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/InternalStoreShippingMethodFormServicesPageItemContent.js.map +0 -1
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/index.d.ts +0 -3
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/index.js +0 -5
- package/dist/elements/public/StoreShippingMethodForm/internal/InternalStoreShippingMethodFormServicesPageItemContent/index.js.map +0 -1
- /package/dist/elements/public/{CustomerPortal → ShippingContainerCard}/types.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemCategoryCard.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryCard/ItemCategoryCard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,WAAW,EAAE,0CAAuC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,EAAE,GAAG,oBAAoB,CAAC;AAChC,MAAM,IAAI,GAAG,iBAAiB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"ItemCategoryCard.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryCard/ItemCategoryCard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,WAAW,EAAE,0CAAuC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,EAAE,GAAG,oBAAoB,CAAC;AAChC,MAAM,IAAI,GAAG,iBAAiB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,OAAO,gBAAiB,SAAQ,IAAU;IAC9C,UAAU;QACR,OAAO,KAAK,CAAC,UAAU,CAAC;YACtB,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,IAAI,EAAE;YACjC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,IAAI,EAAE;SACrC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import type { TemplateResult } from 'lit-html';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { TwoLineCard } from '../CustomFieldCard/TwoLineCard';\nimport { html } from 'lit-html';\n\nconst NS = 'item-category-card';\nconst Base = TranslatableMixin(TwoLineCard, NS);\n\n/**\n * Card element representing an item category (`fx:item_category`).\n *\n * @element foxy-item-category-card\n * @since 1.21.0\n */\nexport class ItemCategoryCard extends Base<Data> {\n renderBody(): TemplateResult {\n return super.renderBody({\n title: data => html`${data.name}`,\n subtitle: data => html`${data.code}`,\n });\n }\n}\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { PropertyDeclarations } from 'lit-element';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Data } from './types';
|
|
3
3
|
import type { TemplateResult } from 'lit-html';
|
|
4
4
|
import type { NucleonV8N } from '../NucleonElement/types';
|
|
5
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
5
6
|
import { InternalForm } from '../../internal/InternalForm/InternalForm';
|
|
6
7
|
declare const ItemCategoryForm_base: typeof InternalForm & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
7
8
|
defaultNS: string;
|
|
@@ -9,79 +10,6 @@ declare const ItemCategoryForm_base: typeof InternalForm & import("lit-element")
|
|
|
9
10
|
/**
|
|
10
11
|
* Form element for item categories (`fx:item_category`).
|
|
11
12
|
*
|
|
12
|
-
* @slot name:before
|
|
13
|
-
* @slot name:after
|
|
14
|
-
*
|
|
15
|
-
* @slot code:before
|
|
16
|
-
* @slot code:after
|
|
17
|
-
*
|
|
18
|
-
* @slot handling-fee-type:before
|
|
19
|
-
* @slot handling-fee-type:after
|
|
20
|
-
*
|
|
21
|
-
* @slot handling-fee:before
|
|
22
|
-
* @slot handling-fee:after
|
|
23
|
-
*
|
|
24
|
-
* @slot handling-fee-percentage:before
|
|
25
|
-
* @slot handling-fee-percentage:after
|
|
26
|
-
*
|
|
27
|
-
* @slot handling-fee-minimum:before
|
|
28
|
-
* @slot handling-fee-minimum:after
|
|
29
|
-
*
|
|
30
|
-
* @slot item-delivery-type:before
|
|
31
|
-
* @slot item-delivery-type:after
|
|
32
|
-
*
|
|
33
|
-
* @slot max-downloads-per-customer:before
|
|
34
|
-
* @slot max-downloads-per-customer:after
|
|
35
|
-
*
|
|
36
|
-
* @slot max-downloads-time-period:before
|
|
37
|
-
* @slot max-downloads-time-period:after
|
|
38
|
-
*
|
|
39
|
-
* @slot shipping-flat-rate:before
|
|
40
|
-
* @slot shipping-flat-rate:after
|
|
41
|
-
*
|
|
42
|
-
* @slot shipping-flat-rate-type:before
|
|
43
|
-
* @slot shipping-flat-rate-type:after
|
|
44
|
-
*
|
|
45
|
-
* @slot default-weight:before
|
|
46
|
-
* @slot default-weight:after
|
|
47
|
-
*
|
|
48
|
-
* @slot default-weight-unit:before
|
|
49
|
-
* @slot default-weight-unit:after
|
|
50
|
-
*
|
|
51
|
-
* @slot default-length-unit:before
|
|
52
|
-
* @slot default-length-unit:after
|
|
53
|
-
*
|
|
54
|
-
* @slot customs-value:before
|
|
55
|
-
* @slot customs-value:after
|
|
56
|
-
*
|
|
57
|
-
* @slot discount-name:before
|
|
58
|
-
* @slot discount-name:after
|
|
59
|
-
*
|
|
60
|
-
* @slot discount-builder:before
|
|
61
|
-
* @slot discount-builder:after
|
|
62
|
-
*
|
|
63
|
-
* @slot admin-email-template-uri:before
|
|
64
|
-
* @slot admin-email-template-uri:after
|
|
65
|
-
*
|
|
66
|
-
* @slot customer-email-template-uri:before
|
|
67
|
-
* @slot customer-email-template-uri:after
|
|
68
|
-
*
|
|
69
|
-
* @slot gift-recipient-email-template-uri:before
|
|
70
|
-
* @slot gift-recipient-email-template-uri:after
|
|
71
|
-
*
|
|
72
|
-
* @slot taxes:before
|
|
73
|
-
* @slot taxes:after
|
|
74
|
-
*
|
|
75
|
-
* @slot timestamps:before
|
|
76
|
-
* @slot timestamps:after
|
|
77
|
-
*
|
|
78
|
-
* @slot create:before
|
|
79
|
-
* @slot create:after
|
|
80
|
-
*
|
|
81
|
-
* @slot delete:before
|
|
82
|
-
* @slot delete:after
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
13
|
* @since 1.21.0
|
|
86
14
|
* @element foxy-item-category-form
|
|
87
15
|
*/
|
|
@@ -90,8 +18,6 @@ export declare class ItemCategoryForm extends ItemCategoryForm_base<Data> {
|
|
|
90
18
|
static get v8n(): NucleonV8N<Data>;
|
|
91
19
|
/** URL of the `fx:email_templates` collection for a store. */
|
|
92
20
|
emailTemplates: string | null;
|
|
93
|
-
/** Template render functions mapped to their name. */
|
|
94
|
-
templates: Templates;
|
|
95
21
|
/** URL of the `fx:taxes` collection for a store. */
|
|
96
22
|
taxes: string | null;
|
|
97
23
|
private static __shippingFlatRateTypeOptions;
|
|
@@ -102,6 +28,7 @@ export declare class ItemCategoryForm extends ItemCategoryForm_base<Data> {
|
|
|
102
28
|
private readonly __giftRecipientEmailTemplateLoaderId;
|
|
103
29
|
private readonly __customerEmailTemplateLoaderId;
|
|
104
30
|
private readonly __adminEmailTemplateLoaderId;
|
|
31
|
+
get hiddenSelector(): BooleanSelector;
|
|
105
32
|
renderBody(): TemplateResult;
|
|
106
33
|
private get __giftRecipientEmailTemplateLoader();
|
|
107
34
|
private get __customerEmailTemplateLoader();
|
|
@@ -115,6 +42,5 @@ export declare class ItemCategoryForm extends ItemCategoryForm_base<Data> {
|
|
|
115
42
|
private __renderCustomsValue;
|
|
116
43
|
private __renderDiscountBuilder;
|
|
117
44
|
private __renderAdminEmail;
|
|
118
|
-
private __renderTaxes;
|
|
119
45
|
}
|
|
120
46
|
export {};
|
|
@@ -1,83 +1,11 @@
|
|
|
1
1
|
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
2
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
2
3
|
import { InternalForm } from "../../internal/InternalForm/InternalForm.js";
|
|
3
4
|
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
4
5
|
import { html } from 'lit-html';
|
|
5
6
|
/**
|
|
6
7
|
* Form element for item categories (`fx:item_category`).
|
|
7
8
|
*
|
|
8
|
-
* @slot name:before
|
|
9
|
-
* @slot name:after
|
|
10
|
-
*
|
|
11
|
-
* @slot code:before
|
|
12
|
-
* @slot code:after
|
|
13
|
-
*
|
|
14
|
-
* @slot handling-fee-type:before
|
|
15
|
-
* @slot handling-fee-type:after
|
|
16
|
-
*
|
|
17
|
-
* @slot handling-fee:before
|
|
18
|
-
* @slot handling-fee:after
|
|
19
|
-
*
|
|
20
|
-
* @slot handling-fee-percentage:before
|
|
21
|
-
* @slot handling-fee-percentage:after
|
|
22
|
-
*
|
|
23
|
-
* @slot handling-fee-minimum:before
|
|
24
|
-
* @slot handling-fee-minimum:after
|
|
25
|
-
*
|
|
26
|
-
* @slot item-delivery-type:before
|
|
27
|
-
* @slot item-delivery-type:after
|
|
28
|
-
*
|
|
29
|
-
* @slot max-downloads-per-customer:before
|
|
30
|
-
* @slot max-downloads-per-customer:after
|
|
31
|
-
*
|
|
32
|
-
* @slot max-downloads-time-period:before
|
|
33
|
-
* @slot max-downloads-time-period:after
|
|
34
|
-
*
|
|
35
|
-
* @slot shipping-flat-rate:before
|
|
36
|
-
* @slot shipping-flat-rate:after
|
|
37
|
-
*
|
|
38
|
-
* @slot shipping-flat-rate-type:before
|
|
39
|
-
* @slot shipping-flat-rate-type:after
|
|
40
|
-
*
|
|
41
|
-
* @slot default-weight:before
|
|
42
|
-
* @slot default-weight:after
|
|
43
|
-
*
|
|
44
|
-
* @slot default-weight-unit:before
|
|
45
|
-
* @slot default-weight-unit:after
|
|
46
|
-
*
|
|
47
|
-
* @slot default-length-unit:before
|
|
48
|
-
* @slot default-length-unit:after
|
|
49
|
-
*
|
|
50
|
-
* @slot customs-value:before
|
|
51
|
-
* @slot customs-value:after
|
|
52
|
-
*
|
|
53
|
-
* @slot discount-name:before
|
|
54
|
-
* @slot discount-name:after
|
|
55
|
-
*
|
|
56
|
-
* @slot discount-builder:before
|
|
57
|
-
* @slot discount-builder:after
|
|
58
|
-
*
|
|
59
|
-
* @slot admin-email-template-uri:before
|
|
60
|
-
* @slot admin-email-template-uri:after
|
|
61
|
-
*
|
|
62
|
-
* @slot customer-email-template-uri:before
|
|
63
|
-
* @slot customer-email-template-uri:after
|
|
64
|
-
*
|
|
65
|
-
* @slot gift-recipient-email-template-uri:before
|
|
66
|
-
* @slot gift-recipient-email-template-uri:after
|
|
67
|
-
*
|
|
68
|
-
* @slot taxes:before
|
|
69
|
-
* @slot taxes:after
|
|
70
|
-
*
|
|
71
|
-
* @slot timestamps:before
|
|
72
|
-
* @slot timestamps:after
|
|
73
|
-
*
|
|
74
|
-
* @slot create:before
|
|
75
|
-
* @slot create:after
|
|
76
|
-
*
|
|
77
|
-
* @slot delete:before
|
|
78
|
-
* @slot delete:after
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
9
|
* @since 1.21.0
|
|
82
10
|
* @element foxy-item-category-form
|
|
83
11
|
*/
|
|
@@ -86,8 +14,6 @@ export class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-cate
|
|
|
86
14
|
super(...arguments);
|
|
87
15
|
/** URL of the `fx:email_templates` collection for a store. */
|
|
88
16
|
this.emailTemplates = null;
|
|
89
|
-
/** Template render functions mapped to their name. */
|
|
90
|
-
this.templates = {};
|
|
91
17
|
/** URL of the `fx:taxes` collection for a store. */
|
|
92
18
|
this.taxes = null;
|
|
93
19
|
this.__giftRecipientEmailTemplateLoaderId = 'gift-recipient-email-template-loader';
|
|
@@ -166,11 +92,19 @@ export class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-cate
|
|
|
166
92
|
({ send_admin_email: s, admin_email: v }) => (s ? !!v : true) || 'admin-email:v8n_required',
|
|
167
93
|
];
|
|
168
94
|
}
|
|
95
|
+
get hiddenSelector() {
|
|
96
|
+
const alwaysHidden = [super.hiddenSelector.toString()];
|
|
97
|
+
if (!this.data)
|
|
98
|
+
alwaysHidden.unshift('taxes');
|
|
99
|
+
return new BooleanSelector(alwaysHidden.join(' ').trim());
|
|
100
|
+
}
|
|
169
101
|
renderBody() {
|
|
170
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
102
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
171
103
|
const itemDeliveryType = this.form.item_delivery_type;
|
|
172
104
|
const handlingFeeType = (_a = this.form.handling_fee_type) !== null && _a !== void 0 ? _a : 'none';
|
|
173
105
|
return html `
|
|
106
|
+
${this.renderHeader()}
|
|
107
|
+
|
|
174
108
|
<div class="grid grid-cols-2 gap-m">
|
|
175
109
|
<foxy-internal-text-control infer="name" class="col-span-2"></foxy-internal-text-control>
|
|
176
110
|
<foxy-internal-text-control infer="code" class="col-span-2"></foxy-internal-text-control>
|
|
@@ -251,7 +185,20 @@ export class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-cate
|
|
|
251
185
|
>
|
|
252
186
|
</foxy-internal-async-combo-box-control>
|
|
253
187
|
|
|
254
|
-
|
|
188
|
+
<foxy-internal-async-resource-link-list-control
|
|
189
|
+
foreign-key-for-uri="tax_uri"
|
|
190
|
+
foreign-key-for-id="tax_id"
|
|
191
|
+
own-key-for-uri="item_category_uri"
|
|
192
|
+
own-uri=${ifDefined((_h = this.data) === null || _h === void 0 ? void 0 : _h._links.self.href)}
|
|
193
|
+
embed-key="fx:tax_item_categories"
|
|
194
|
+
options-href=${ifDefined((_j = this.taxes) !== null && _j !== void 0 ? _j : undefined)}
|
|
195
|
+
links-href=${ifDefined((_k = this.data) === null || _k === void 0 ? void 0 : _k._links['fx:tax_item_categories'].href)}
|
|
196
|
+
infer="taxes"
|
|
197
|
+
class="col-span-2"
|
|
198
|
+
limit="5"
|
|
199
|
+
item="foxy-tax-card"
|
|
200
|
+
>
|
|
201
|
+
</foxy-internal-async-resource-link-list-control>
|
|
255
202
|
</div>
|
|
256
203
|
|
|
257
204
|
${super.renderBody()}
|
|
@@ -386,17 +333,6 @@ export class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-cate
|
|
|
386
333
|
__renderAdminEmail() {
|
|
387
334
|
return html `<foxy-internal-text-control infer="admin-email"> </foxy-internal-text-control>`;
|
|
388
335
|
}
|
|
389
|
-
__renderTaxes() {
|
|
390
|
-
var _a;
|
|
391
|
-
return html `
|
|
392
|
-
<foxy-internal-item-category-form-taxes-control
|
|
393
|
-
taxes=${ifDefined((_a = this.taxes) !== null && _a !== void 0 ? _a : undefined)}
|
|
394
|
-
class="col-span-2"
|
|
395
|
-
infer="taxes"
|
|
396
|
-
>
|
|
397
|
-
</foxy-internal-item-category-form-taxes-control>
|
|
398
|
-
`;
|
|
399
|
-
}
|
|
400
336
|
}
|
|
401
337
|
ItemCategoryForm.__shippingFlatRateTypeOptions = [
|
|
402
338
|
{ label: 'option_per_order', value: 'per_order' },
|
|
@@ -1 +1 @@
|
|
|
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} from '../DiscountBuilder/DiscountBuilder';\nimport type { Templates, Data } from './types';\nimport type { NucleonElement } from '../NucleonElement/NucleonElement';\nimport type { TemplateResult } from 'lit-html';\nimport type { ParsedValue } from '../DiscountBuilder/types';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { html } from 'lit-html';\n\n/**\n * Form element for item categories (`fx:item_category`).\n *\n * @slot name:before\n * @slot name:after\n *\n * @slot code:before\n * @slot code:after\n *\n * @slot handling-fee-type:before\n * @slot handling-fee-type:after\n *\n * @slot handling-fee:before\n * @slot handling-fee:after\n *\n * @slot handling-fee-percentage:before\n * @slot handling-fee-percentage:after\n *\n * @slot handling-fee-minimum:before\n * @slot handling-fee-minimum:after\n *\n * @slot item-delivery-type:before\n * @slot item-delivery-type:after\n *\n * @slot max-downloads-per-customer:before\n * @slot max-downloads-per-customer:after\n *\n * @slot max-downloads-time-period:before\n * @slot max-downloads-time-period:after\n *\n * @slot shipping-flat-rate:before\n * @slot shipping-flat-rate:after\n *\n * @slot shipping-flat-rate-type:before\n * @slot shipping-flat-rate-type:after\n *\n * @slot default-weight:before\n * @slot default-weight:after\n *\n * @slot default-weight-unit:before\n * @slot default-weight-unit:after\n *\n * @slot default-length-unit:before\n * @slot default-length-unit:after\n *\n * @slot customs-value:before\n * @slot customs-value:after\n *\n * @slot discount-name:before\n * @slot discount-name:after\n *\n * @slot discount-builder:before\n * @slot discount-builder:after\n *\n * @slot admin-email-template-uri:before\n * @slot admin-email-template-uri:after\n *\n * @slot customer-email-template-uri:before\n * @slot customer-email-template-uri:after\n *\n * @slot gift-recipient-email-template-uri:before\n * @slot gift-recipient-email-template-uri:after\n *\n * @slot taxes:before\n * @slot taxes:after\n *\n * @slot timestamps:before\n * @slot timestamps:after\n *\n * @slot create:before\n * @slot create:after\n *\n * @slot delete:before\n * @slot delete:after\n *\n *\n * @since 1.21.0\n * @element foxy-item-category-form\n */\nexport class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-category-form')<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n emailTemplates: { attribute: 'email-templates' },\n taxes: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ code: v }) => !!v || 'code:v8n_required',\n ({ code: v }) => (v && v.length <= 50) || 'code:v8n_too_long',\n\n ({ name: v }) => !!v || 'name:v8n_required',\n ({ name: v }) => (v && v.length <= 50) || 'name:v8n_too_long',\n\n ({ item_delivery_type: v }) => !!v || 'item-delivery-type:v8n_required',\n\n ({ item_delivery_type: t, max_downloads_per_customer: v }) => {\n return (\n (t === 'downloaded' ? typeof v === 'number' : true) ||\n 'max-downloads-per-customer:v8n_required'\n );\n },\n\n ({ max_downloads_per_customer: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'max-downloads-per-customer:v8n_negative';\n },\n\n ({ item_delivery_type: t, max_downloads_time_period: v }) => {\n return (\n (t === 'downloaded' ? typeof v === 'number' : true) ||\n 'max-downloads-time-period:v8n_required'\n );\n },\n\n ({ max_downloads_time_period: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'max-downloads-time-period:v8n_negative';\n },\n\n ({ customs_value: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'customs-value:v8n_negative';\n },\n\n ({ item_delivery_type: t, default_weight: v }) => {\n return (t === 'shipped' ? typeof v === 'number' : true) || 'default-weight:v8n_required';\n },\n\n ({ default_weight: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'default-weight:v8n_negative';\n },\n\n ({ item_delivery_type: t, default_weight_unit: v }) => {\n return (\n (t === 'shipped' ? typeof v === 'string' : true) || 'default-weight-unit:v8n_required'\n );\n },\n\n ({ item_delivery_type: t, default_length_unit: v }) => {\n return (\n (t === 'shipped' ? typeof v === 'string' : true) || 'default-length-unit:v8n_required'\n );\n },\n\n ({ item_delivery_type: t, shipping_flat_rate: v }) => {\n return (\n (t === 'flat_rate' ? typeof v === 'number' : true) || 'shipping-flat-rate:v8n_required'\n );\n },\n\n ({ shipping_flat_rate: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'shipping-flat-rate:v8n_negative';\n },\n\n ({ item_delivery_type: t, shipping_flat_rate_type: v }) => {\n return (\n (t === 'flat_rate' ? typeof v === 'string' : true) ||\n 'shipping-flat-rate-type:v8n_required'\n );\n },\n\n ({ handling_fee_type: v }) => !!v || 'handling-fee-type:v8n_required',\n\n ({ handling_fee_type: t, handling_fee_minimum: v }) => {\n return (\n (t === 'flat_percent_with_minimum' ? typeof v === 'number' : true) ||\n 'handling-fee-minimum:v8n_required'\n );\n },\n\n ({ handling_fee_minimum: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'handling-fee-minimum:v8n_negative';\n },\n\n ({ handling_fee_type: t, handling_fee_percentage: v }) => {\n return (\n (t === 'flat_percent_with_minimum' || t === 'flat_percent'\n ? typeof v === 'number'\n : true) || 'handling-fee-percentage:v8n_required'\n );\n },\n\n ({ handling_fee_percentage: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'handling-fee-percentage:v8n_negative';\n },\n\n ({ send_admin_email: s, admin_email: v }) => (s ? !!v : true) || 'admin-email:v8n_required',\n ];\n }\n\n /** URL of the `fx:email_templates` collection for a store. */\n emailTemplates: string | null = null;\n\n /** Template render functions mapped to their name. */\n templates: Templates = {};\n\n /** URL of the `fx:taxes` collection for a store. */\n taxes: string | null = null;\n\n private static __shippingFlatRateTypeOptions = [\n { label: 'option_per_order', value: 'per_order' },\n { label: 'option_per_shipment', value: 'per_shipment' },\n ];\n\n private static __defaultWeightUnitOptions = [\n { label: 'option_lbs', value: 'LBS' },\n { label: 'option_kgs', value: 'KGS' },\n ];\n\n private static __defaultLengthUnitOptions = [\n { label: 'option_in', value: 'IN' },\n { label: 'option_cm', value: 'CM' },\n ];\n\n private static __itemDeliveryTypeOptions = [\n { label: 'option_notshipped', value: 'notshipped' },\n { label: 'option_downloaded', value: 'downloaded' },\n { label: 'option_flat_rate', value: 'flat_rate' },\n { label: 'option_shipped', value: 'shipped' },\n { label: 'option_pickup', value: 'pickup' },\n ];\n\n private static __handlingFeeTypeOptions = [\n { label: 'option_none', value: 'none' },\n { label: 'option_flat_per_order', value: 'flat_per_order' },\n { label: 'option_flat_per_item', value: 'flat_per_item' },\n { label: 'option_flat_percent', value: 'flat_percent' },\n { label: 'option_flat_percent_with_minimum', value: 'flat_percent_with_minimum' },\n ];\n\n private readonly __giftRecipientEmailTemplateLoaderId = 'gift-recipient-email-template-loader';\n\n private readonly __customerEmailTemplateLoaderId = 'customer-email-template-loader';\n\n private readonly __adminEmailTemplateLoaderId = 'admin-email-template-loader';\n\n renderBody(): TemplateResult {\n const itemDeliveryType = this.form.item_delivery_type;\n const handlingFeeType = this.form.handling_fee_type ?? 'none';\n\n return html`\n <div class=\"grid grid-cols-2 gap-m\">\n <foxy-internal-text-control infer=\"name\" class=\"col-span-2\"></foxy-internal-text-control>\n <foxy-internal-text-control infer=\"code\" class=\"col-span-2\"></foxy-internal-text-control>\n\n <foxy-internal-select-control\n infer=\"handling-fee-type\"\n class=\"col-span-2\"\n .options=${ItemCategoryForm.__handlingFeeTypeOptions}\n >\n </foxy-internal-select-control>\n\n ${handlingFeeType === 'none'\n ? ''\n : html`\n ${this.__renderHandlingFee()}\n ${handlingFeeType.includes('percent') ? this.__renderHandlingFeePercentage() : ''}\n ${handlingFeeType === 'flat_percent_with_minimum'\n ? this.__renderHandlingFeeMinimum()\n : ''}\n `}\n\n <foxy-internal-select-control\n infer=\"item-delivery-type\"\n class=\"col-span-2\"\n .options=${ItemCategoryForm.__itemDeliveryTypeOptions}\n >\n </foxy-internal-select-control>\n\n ${itemDeliveryType === 'downloaded'\n ? this.__renderDownloadDeliveryControls()\n : itemDeliveryType === 'flat_rate'\n ? [this.__renderFlatRateControls(), this.__renderCustomsValue()]\n : itemDeliveryType === 'shipped'\n ? [this.__renderShippingControls(), this.__renderCustomsValue()]\n : ''}\n\n <foxy-internal-text-control infer=\"discount-name\" class=\"col-span-2\">\n </foxy-internal-text-control>\n\n ${this.form.discount_name ? this.__renderDiscountBuilder() : ''}\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"admin-email-template-uri\"\n class=${this.form.send_admin_email ? '' : 'col-span-2'}\n .selectedItem=${this.__adminEmailTemplateLoader?.data}\n @change=${(evt: CustomEvent) => {\n this.edit({\n send_admin_email: !!evt.detail,\n admin_email: evt.detail ? this.form.admin_email : '',\n });\n }}\n >\n </foxy-internal-async-combo-box-control>\n\n ${this.form.send_admin_email ? this.__renderAdminEmail() : ''}\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"customer-email-template-uri\"\n class=\"col-span-2\"\n .selectedItem=${this.__customerEmailTemplateLoader?.data}\n @change=${(evt: CustomEvent) => this.edit({ send_customer_email: !!evt.detail })}\n >\n </foxy-internal-async-combo-box-control>\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"gift-recipient-email-template-uri\"\n class=\"col-span-2\"\n .selectedItem=${this.__giftRecipientEmailTemplateLoader?.data}\n >\n </foxy-internal-async-combo-box-control>\n\n ${this.data ? this.__renderTaxes() : ''}\n </div>\n\n ${super.renderBody()}\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.customer_email_template_uri || undefined)}\n id=${this.__customerEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.gift_recipient_email_template_uri || undefined)}\n id=${this.__giftRecipientEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.admin_email_template_uri || undefined)}\n id=${this.__adminEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `;\n }\n\n private get __giftRecipientEmailTemplateLoader() {\n const id = this.__giftRecipientEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private get __customerEmailTemplateLoader() {\n const id = this.__customerEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private get __adminEmailTemplateLoader() {\n const id = this.__adminEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private __renderHandlingFee() {\n return html`\n <foxy-internal-number-control\n infer=\"handling-fee\"\n class=${this.form.handling_fee_type === 'flat_percent' ? '' : 'col-span-2'}\n >\n </foxy-internal-number-control>\n `;\n }\n\n private __renderHandlingFeePercentage() {\n return html`\n <foxy-internal-number-control infer=\"handling-fee-percentage\"> </foxy-internal-number-control>\n `;\n }\n\n private __renderHandlingFeeMinimum() {\n return html`\n <foxy-internal-number-control infer=\"handling-fee-minimum\"> </foxy-internal-number-control>\n `;\n }\n\n private __renderDownloadDeliveryControls() {\n return html`\n <foxy-internal-integer-control infer=\"max-downloads-per-customer\">\n </foxy-internal-integer-control>\n\n <foxy-internal-integer-control infer=\"max-downloads-time-period\">\n </foxy-internal-integer-control>\n `;\n }\n\n private __renderFlatRateControls() {\n return html`\n <foxy-internal-number-control infer=\"shipping-flat-rate\"> </foxy-internal-number-control>\n\n <foxy-internal-select-control\n infer=\"shipping-flat-rate-type\"\n .options=${ItemCategoryForm.__shippingFlatRateTypeOptions}\n >\n </foxy-internal-select-control>\n `;\n }\n\n private __renderShippingControls() {\n return html`\n <foxy-internal-integer-control infer=\"default-weight\" class=\"col-span-2\">\n </foxy-internal-integer-control>\n\n <foxy-internal-select-control\n infer=\"default-weight-unit\"\n .options=${ItemCategoryForm.__defaultWeightUnitOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n infer=\"default-length-unit\"\n .options=${ItemCategoryForm.__defaultLengthUnitOptions}\n >\n </foxy-internal-select-control>\n `;\n }\n\n private __renderCustomsValue() {\n return html`\n <foxy-internal-number-control infer=\"customs-value\" class=\"col-span-2\">\n </foxy-internal-number-control>\n `;\n }\n\n private __renderDiscountBuilder() {\n const parsedValue: ParsedValue = {\n name: this.form.discount_name ?? '',\n type: this.form.discount_type || 'quantity_amount',\n details: this.form.discount_details ?? '',\n };\n\n return html`\n <foxy-discount-builder\n infer=\"discount-builder\"\n class=\"col-span-2\"\n .parsedValue=${parsedValue}\n @change=${(evt: CustomEvent) => {\n const builder = evt.currentTarget as DiscountBuilder;\n\n this.edit({\n discount_name: builder.parsedValue.name,\n discount_type: builder.parsedValue.type,\n discount_details: builder.parsedValue.details,\n });\n }}\n >\n </foxy-discount-builder>\n `;\n }\n\n private __renderAdminEmail() {\n return html`<foxy-internal-text-control infer=\"admin-email\"> </foxy-internal-text-control>`;\n }\n\n private __renderTaxes() {\n return html`\n <foxy-internal-item-category-form-taxes-control\n taxes=${ifDefined(this.taxes ?? undefined)}\n class=\"col-span-2\"\n infer=\"taxes\"\n >\n </foxy-internal-item-category-form-taxes-control>\n `;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ItemCategoryForm.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryForm/ItemCategoryForm.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAA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esContent":["import type { PropertyDeclarations } from 'lit-element';\nimport type { DiscountBuilder } from '../DiscountBuilder/DiscountBuilder';\nimport type { Data } from './types';\nimport type { NucleonElement } from '../NucleonElement/NucleonElement';\nimport type { TemplateResult } from 'lit-html';\nimport type { ParsedValue } from '../DiscountBuilder/types';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { BooleanSelector } from '@foxy.io/sdk/core';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { html } from 'lit-html';\n\n/**\n * Form element for item categories (`fx:item_category`).\n *\n * @since 1.21.0\n * @element foxy-item-category-form\n */\nexport class ItemCategoryForm extends TranslatableMixin(InternalForm, 'item-category-form')<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n emailTemplates: { attribute: 'email-templates' },\n taxes: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ code: v }) => !!v || 'code:v8n_required',\n ({ code: v }) => (v && v.length <= 50) || 'code:v8n_too_long',\n\n ({ name: v }) => !!v || 'name:v8n_required',\n ({ name: v }) => (v && v.length <= 50) || 'name:v8n_too_long',\n\n ({ item_delivery_type: v }) => !!v || 'item-delivery-type:v8n_required',\n\n ({ item_delivery_type: t, max_downloads_per_customer: v }) => {\n return (\n (t === 'downloaded' ? typeof v === 'number' : true) ||\n 'max-downloads-per-customer:v8n_required'\n );\n },\n\n ({ max_downloads_per_customer: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'max-downloads-per-customer:v8n_negative';\n },\n\n ({ item_delivery_type: t, max_downloads_time_period: v }) => {\n return (\n (t === 'downloaded' ? typeof v === 'number' : true) ||\n 'max-downloads-time-period:v8n_required'\n );\n },\n\n ({ max_downloads_time_period: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'max-downloads-time-period:v8n_negative';\n },\n\n ({ customs_value: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'customs-value:v8n_negative';\n },\n\n ({ item_delivery_type: t, default_weight: v }) => {\n return (t === 'shipped' ? typeof v === 'number' : true) || 'default-weight:v8n_required';\n },\n\n ({ default_weight: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'default-weight:v8n_negative';\n },\n\n ({ item_delivery_type: t, default_weight_unit: v }) => {\n return (\n (t === 'shipped' ? typeof v === 'string' : true) || 'default-weight-unit:v8n_required'\n );\n },\n\n ({ item_delivery_type: t, default_length_unit: v }) => {\n return (\n (t === 'shipped' ? typeof v === 'string' : true) || 'default-length-unit:v8n_required'\n );\n },\n\n ({ item_delivery_type: t, shipping_flat_rate: v }) => {\n return (\n (t === 'flat_rate' ? typeof v === 'number' : true) || 'shipping-flat-rate:v8n_required'\n );\n },\n\n ({ shipping_flat_rate: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'shipping-flat-rate:v8n_negative';\n },\n\n ({ item_delivery_type: t, shipping_flat_rate_type: v }) => {\n return (\n (t === 'flat_rate' ? typeof v === 'string' : true) ||\n 'shipping-flat-rate-type:v8n_required'\n );\n },\n\n ({ handling_fee_type: v }) => !!v || 'handling-fee-type:v8n_required',\n\n ({ handling_fee_type: t, handling_fee_minimum: v }) => {\n return (\n (t === 'flat_percent_with_minimum' ? typeof v === 'number' : true) ||\n 'handling-fee-minimum:v8n_required'\n );\n },\n\n ({ handling_fee_minimum: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'handling-fee-minimum:v8n_negative';\n },\n\n ({ handling_fee_type: t, handling_fee_percentage: v }) => {\n return (\n (t === 'flat_percent_with_minimum' || t === 'flat_percent'\n ? typeof v === 'number'\n : true) || 'handling-fee-percentage:v8n_required'\n );\n },\n\n ({ handling_fee_percentage: v }) => {\n return (typeof v === 'number' ? v >= 0 : true) || 'handling-fee-percentage:v8n_negative';\n },\n\n ({ send_admin_email: s, admin_email: v }) => (s ? !!v : true) || 'admin-email:v8n_required',\n ];\n }\n\n /** URL of the `fx:email_templates` collection for a store. */\n emailTemplates: string | null = null;\n\n /** URL of the `fx:taxes` collection for a store. */\n taxes: string | null = null;\n\n private static __shippingFlatRateTypeOptions = [\n { label: 'option_per_order', value: 'per_order' },\n { label: 'option_per_shipment', value: 'per_shipment' },\n ];\n\n private static __defaultWeightUnitOptions = [\n { label: 'option_lbs', value: 'LBS' },\n { label: 'option_kgs', value: 'KGS' },\n ];\n\n private static __defaultLengthUnitOptions = [\n { label: 'option_in', value: 'IN' },\n { label: 'option_cm', value: 'CM' },\n ];\n\n private static __itemDeliveryTypeOptions = [\n { label: 'option_notshipped', value: 'notshipped' },\n { label: 'option_downloaded', value: 'downloaded' },\n { label: 'option_flat_rate', value: 'flat_rate' },\n { label: 'option_shipped', value: 'shipped' },\n { label: 'option_pickup', value: 'pickup' },\n ];\n\n private static __handlingFeeTypeOptions = [\n { label: 'option_none', value: 'none' },\n { label: 'option_flat_per_order', value: 'flat_per_order' },\n { label: 'option_flat_per_item', value: 'flat_per_item' },\n { label: 'option_flat_percent', value: 'flat_percent' },\n { label: 'option_flat_percent_with_minimum', value: 'flat_percent_with_minimum' },\n ];\n\n private readonly __giftRecipientEmailTemplateLoaderId = 'gift-recipient-email-template-loader';\n\n private readonly __customerEmailTemplateLoaderId = 'customer-email-template-loader';\n\n private readonly __adminEmailTemplateLoaderId = 'admin-email-template-loader';\n\n get hiddenSelector(): BooleanSelector {\n const alwaysHidden = [super.hiddenSelector.toString()];\n if (!this.data) alwaysHidden.unshift('taxes');\n return new BooleanSelector(alwaysHidden.join(' ').trim());\n }\n\n renderBody(): TemplateResult {\n const itemDeliveryType = this.form.item_delivery_type;\n const handlingFeeType = this.form.handling_fee_type ?? 'none';\n\n return html`\n ${this.renderHeader()}\n\n <div class=\"grid grid-cols-2 gap-m\">\n <foxy-internal-text-control infer=\"name\" class=\"col-span-2\"></foxy-internal-text-control>\n <foxy-internal-text-control infer=\"code\" class=\"col-span-2\"></foxy-internal-text-control>\n\n <foxy-internal-select-control\n infer=\"handling-fee-type\"\n class=\"col-span-2\"\n .options=${ItemCategoryForm.__handlingFeeTypeOptions}\n >\n </foxy-internal-select-control>\n\n ${handlingFeeType === 'none'\n ? ''\n : html`\n ${this.__renderHandlingFee()}\n ${handlingFeeType.includes('percent') ? this.__renderHandlingFeePercentage() : ''}\n ${handlingFeeType === 'flat_percent_with_minimum'\n ? this.__renderHandlingFeeMinimum()\n : ''}\n `}\n\n <foxy-internal-select-control\n infer=\"item-delivery-type\"\n class=\"col-span-2\"\n .options=${ItemCategoryForm.__itemDeliveryTypeOptions}\n >\n </foxy-internal-select-control>\n\n ${itemDeliveryType === 'downloaded'\n ? this.__renderDownloadDeliveryControls()\n : itemDeliveryType === 'flat_rate'\n ? [this.__renderFlatRateControls(), this.__renderCustomsValue()]\n : itemDeliveryType === 'shipped'\n ? [this.__renderShippingControls(), this.__renderCustomsValue()]\n : ''}\n\n <foxy-internal-text-control infer=\"discount-name\" class=\"col-span-2\">\n </foxy-internal-text-control>\n\n ${this.form.discount_name ? this.__renderDiscountBuilder() : ''}\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"admin-email-template-uri\"\n class=${this.form.send_admin_email ? '' : 'col-span-2'}\n .selectedItem=${this.__adminEmailTemplateLoader?.data}\n @change=${(evt: CustomEvent) => {\n this.edit({\n send_admin_email: !!evt.detail,\n admin_email: evt.detail ? this.form.admin_email : '',\n });\n }}\n >\n </foxy-internal-async-combo-box-control>\n\n ${this.form.send_admin_email ? this.__renderAdminEmail() : ''}\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"customer-email-template-uri\"\n class=\"col-span-2\"\n .selectedItem=${this.__customerEmailTemplateLoader?.data}\n @change=${(evt: CustomEvent) => this.edit({ send_customer_email: !!evt.detail })}\n >\n </foxy-internal-async-combo-box-control>\n\n <foxy-internal-async-combo-box-control\n item-label-path=\"description\"\n item-value-path=\"_links.self.href\"\n first=${ifDefined(this.emailTemplates ?? undefined)}\n infer=\"gift-recipient-email-template-uri\"\n class=\"col-span-2\"\n .selectedItem=${this.__giftRecipientEmailTemplateLoader?.data}\n >\n </foxy-internal-async-combo-box-control>\n\n <foxy-internal-async-resource-link-list-control\n foreign-key-for-uri=\"tax_uri\"\n foreign-key-for-id=\"tax_id\"\n own-key-for-uri=\"item_category_uri\"\n own-uri=${ifDefined(this.data?._links.self.href)}\n embed-key=\"fx:tax_item_categories\"\n options-href=${ifDefined(this.taxes ?? undefined)}\n links-href=${ifDefined(this.data?._links['fx:tax_item_categories'].href)}\n infer=\"taxes\"\n class=\"col-span-2\"\n limit=\"5\"\n item=\"foxy-tax-card\"\n >\n </foxy-internal-async-resource-link-list-control>\n </div>\n\n ${super.renderBody()}\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.customer_email_template_uri || undefined)}\n id=${this.__customerEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.gift_recipient_email_template_uri || undefined)}\n id=${this.__giftRecipientEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(this.form.admin_email_template_uri || undefined)}\n id=${this.__adminEmailTemplateLoaderId}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `;\n }\n\n private get __giftRecipientEmailTemplateLoader() {\n const id = this.__giftRecipientEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private get __customerEmailTemplateLoader() {\n const id = this.__customerEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private get __adminEmailTemplateLoader() {\n const id = this.__adminEmailTemplateLoaderId;\n type Loader = NucleonElement<Resource<Rels.EmailTemplate>>;\n return this.renderRoot.querySelector<Loader>(`#${id}`);\n }\n\n private __renderHandlingFee() {\n return html`\n <foxy-internal-number-control\n infer=\"handling-fee\"\n class=${this.form.handling_fee_type === 'flat_percent' ? '' : 'col-span-2'}\n >\n </foxy-internal-number-control>\n `;\n }\n\n private __renderHandlingFeePercentage() {\n return html`\n <foxy-internal-number-control infer=\"handling-fee-percentage\"> </foxy-internal-number-control>\n `;\n }\n\n private __renderHandlingFeeMinimum() {\n return html`\n <foxy-internal-number-control infer=\"handling-fee-minimum\"> </foxy-internal-number-control>\n `;\n }\n\n private __renderDownloadDeliveryControls() {\n return html`\n <foxy-internal-integer-control infer=\"max-downloads-per-customer\">\n </foxy-internal-integer-control>\n\n <foxy-internal-integer-control infer=\"max-downloads-time-period\">\n </foxy-internal-integer-control>\n `;\n }\n\n private __renderFlatRateControls() {\n return html`\n <foxy-internal-number-control infer=\"shipping-flat-rate\"> </foxy-internal-number-control>\n\n <foxy-internal-select-control\n infer=\"shipping-flat-rate-type\"\n .options=${ItemCategoryForm.__shippingFlatRateTypeOptions}\n >\n </foxy-internal-select-control>\n `;\n }\n\n private __renderShippingControls() {\n return html`\n <foxy-internal-integer-control infer=\"default-weight\" class=\"col-span-2\">\n </foxy-internal-integer-control>\n\n <foxy-internal-select-control\n infer=\"default-weight-unit\"\n .options=${ItemCategoryForm.__defaultWeightUnitOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n infer=\"default-length-unit\"\n .options=${ItemCategoryForm.__defaultLengthUnitOptions}\n >\n </foxy-internal-select-control>\n `;\n }\n\n private __renderCustomsValue() {\n return html`\n <foxy-internal-number-control infer=\"customs-value\" class=\"col-span-2\">\n </foxy-internal-number-control>\n `;\n }\n\n private __renderDiscountBuilder() {\n const parsedValue: ParsedValue = {\n name: this.form.discount_name ?? '',\n type: this.form.discount_type || 'quantity_amount',\n details: this.form.discount_details ?? '',\n };\n\n return html`\n <foxy-discount-builder\n infer=\"discount-builder\"\n class=\"col-span-2\"\n .parsedValue=${parsedValue}\n @change=${(evt: CustomEvent) => {\n const builder = evt.currentTarget as DiscountBuilder;\n\n this.edit({\n discount_name: builder.parsedValue.name,\n discount_type: builder.parsedValue.type,\n discount_details: builder.parsedValue.details,\n });\n }}\n >\n </foxy-discount-builder>\n `;\n }\n\n private __renderAdminEmail() {\n return html`<foxy-internal-text-control infer=\"admin-email\"> </foxy-internal-text-control>`;\n }\n}\n"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../../internal/InternalAsyncResourceLinkListControl/index';
|
|
1
2
|
import '../../internal/InternalAsyncComboBoxControl/index';
|
|
2
3
|
import '../../internal/InternalIntegerControl/index';
|
|
3
4
|
import '../../internal/InternalNumberControl/index';
|
|
@@ -6,6 +7,6 @@ import '../../internal/InternalTextControl/index';
|
|
|
6
7
|
import '../../internal/InternalForm/index';
|
|
7
8
|
import '../DiscountBuilder/index';
|
|
8
9
|
import '../NucleonElement/index';
|
|
9
|
-
import '
|
|
10
|
+
import '../TaxCard/index';
|
|
10
11
|
import { ItemCategoryForm } from './ItemCategoryForm';
|
|
11
12
|
export { ItemCategoryForm };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../../internal/InternalAsyncResourceLinkListControl/index.js";
|
|
1
2
|
import "../../internal/InternalAsyncComboBoxControl/index.js";
|
|
2
3
|
import "../../internal/InternalIntegerControl/index.js";
|
|
3
4
|
import "../../internal/InternalNumberControl/index.js";
|
|
@@ -6,7 +7,7 @@ import "../../internal/InternalTextControl/index.js";
|
|
|
6
7
|
import "../../internal/InternalForm/index.js";
|
|
7
8
|
import "../DiscountBuilder/index.js";
|
|
8
9
|
import "../NucleonElement/index.js";
|
|
9
|
-
import "
|
|
10
|
+
import "../TaxCard/index.js";
|
|
10
11
|
import { ItemCategoryForm } from "./ItemCategoryForm.js";
|
|
11
12
|
customElements.define('foxy-item-category-form', ItemCategoryForm);
|
|
12
13
|
export { ItemCategoryForm };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryForm/index.ts"],"names":[],"mappings":"AAAA,8DAA2D;AAC3D,wDAAqD;AACrD,uDAAoD;AACpD,uDAAoD;AACpD,qDAAkD;AAClD,8CAA2C;AAE3C,qCAAkC;AAClC,oCAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryForm/index.ts"],"names":[],"mappings":"AAAA,sEAAmE;AACnE,8DAA2D;AAC3D,wDAAqD;AACrD,uDAAoD;AACpD,uDAAoD;AACpD,qDAAkD;AAClD,8CAA2C;AAE3C,qCAAkC;AAClC,oCAAiC;AACjC,6BAA0B;AAE1B,OAAO,EAAE,gBAAgB,EAAE,8BAA2B;AAEtD,cAAc,CAAC,MAAM,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import '../../internal/InternalAsyncResourceLinkListControl/index';\nimport '../../internal/InternalAsyncComboBoxControl/index';\nimport '../../internal/InternalIntegerControl/index';\nimport '../../internal/InternalNumberControl/index';\nimport '../../internal/InternalSelectControl/index';\nimport '../../internal/InternalTextControl/index';\nimport '../../internal/InternalForm/index';\n\nimport '../DiscountBuilder/index';\nimport '../NucleonElement/index';\nimport '../TaxCard/index';\n\nimport { ItemCategoryForm } from './ItemCategoryForm';\n\ncustomElements.define('foxy-item-category-form', ItemCategoryForm);\n\nexport { ItemCategoryForm };\n"]}
|
|
@@ -1,55 +1,3 @@
|
|
|
1
|
-
import type { ItemCategoryForm } from './ItemCategoryForm';
|
|
2
|
-
import type { Renderer } from '../../../mixins/configurable';
|
|
3
1
|
import type { Resource } from '@foxy.io/sdk/core';
|
|
4
2
|
import type { Rels } from '@foxy.io/sdk/backend';
|
|
5
3
|
export declare type Data = Resource<Rels.ItemCategory>;
|
|
6
|
-
export declare type Templates = {
|
|
7
|
-
'name:before'?: Renderer<ItemCategoryForm>;
|
|
8
|
-
'name:after'?: Renderer<ItemCategoryForm>;
|
|
9
|
-
'code:before'?: Renderer<ItemCategoryForm>;
|
|
10
|
-
'code:after'?: Renderer<ItemCategoryForm>;
|
|
11
|
-
'handling-fee-type:before'?: Renderer<ItemCategoryForm>;
|
|
12
|
-
'handling-fee-type:after'?: Renderer<ItemCategoryForm>;
|
|
13
|
-
'handling-fee:before'?: Renderer<ItemCategoryForm>;
|
|
14
|
-
'handling-fee:after'?: Renderer<ItemCategoryForm>;
|
|
15
|
-
'handling-fee-percentage:before'?: Renderer<ItemCategoryForm>;
|
|
16
|
-
'handling-fee-percentage:after'?: Renderer<ItemCategoryForm>;
|
|
17
|
-
'handling-fee-minimum:before'?: Renderer<ItemCategoryForm>;
|
|
18
|
-
'handling-fee-minimum:after'?: Renderer<ItemCategoryForm>;
|
|
19
|
-
'item-delivery-type:before'?: Renderer<ItemCategoryForm>;
|
|
20
|
-
'item-delivery-type:after'?: Renderer<ItemCategoryForm>;
|
|
21
|
-
'max-downloads-per-customer:before'?: Renderer<ItemCategoryForm>;
|
|
22
|
-
'max-downloads-per-customer:after'?: Renderer<ItemCategoryForm>;
|
|
23
|
-
'max-downloads-time-period:before'?: Renderer<ItemCategoryForm>;
|
|
24
|
-
'max-downloads-time-period:after'?: Renderer<ItemCategoryForm>;
|
|
25
|
-
'shipping-flat-rate:before'?: Renderer<ItemCategoryForm>;
|
|
26
|
-
'shipping-flat-rate:after'?: Renderer<ItemCategoryForm>;
|
|
27
|
-
'shipping-flat-rate-type:before'?: Renderer<ItemCategoryForm>;
|
|
28
|
-
'shipping-flat-rate-type:after'?: Renderer<ItemCategoryForm>;
|
|
29
|
-
'default-weight:before'?: Renderer<ItemCategoryForm>;
|
|
30
|
-
'default-weight:after'?: Renderer<ItemCategoryForm>;
|
|
31
|
-
'default-weight-unit:before'?: Renderer<ItemCategoryForm>;
|
|
32
|
-
'default-weight-unit:after'?: Renderer<ItemCategoryForm>;
|
|
33
|
-
'default-length-unit:before'?: Renderer<ItemCategoryForm>;
|
|
34
|
-
'default-length-unit:after'?: Renderer<ItemCategoryForm>;
|
|
35
|
-
'customs-value:before'?: Renderer<ItemCategoryForm>;
|
|
36
|
-
'customs-value:after'?: Renderer<ItemCategoryForm>;
|
|
37
|
-
'discount-name:before'?: Renderer<ItemCategoryForm>;
|
|
38
|
-
'discount-name:after'?: Renderer<ItemCategoryForm>;
|
|
39
|
-
'discount-builder:before'?: Renderer<ItemCategoryForm>;
|
|
40
|
-
'discount-builder:after'?: Renderer<ItemCategoryForm>;
|
|
41
|
-
'admin-email-template-uri:before'?: Renderer<ItemCategoryForm>;
|
|
42
|
-
'admin-email-template-uri:after'?: Renderer<ItemCategoryForm>;
|
|
43
|
-
'customer-email-template-uri:before'?: Renderer<ItemCategoryForm>;
|
|
44
|
-
'customer-email-template-uri:after'?: Renderer<ItemCategoryForm>;
|
|
45
|
-
'gift-recipient-email-template-uri:before'?: Renderer<ItemCategoryForm>;
|
|
46
|
-
'gift-recipient-email-template-uri:after'?: Renderer<ItemCategoryForm>;
|
|
47
|
-
'taxes:before'?: Renderer<ItemCategoryForm>;
|
|
48
|
-
'taxes:after'?: Renderer<ItemCategoryForm>;
|
|
49
|
-
'timestamps:before'?: Renderer<ItemCategoryForm>;
|
|
50
|
-
'timestamps:after'?: Renderer<ItemCategoryForm>;
|
|
51
|
-
'create:before'?: Renderer<ItemCategoryForm>;
|
|
52
|
-
'create:after'?: Renderer<ItemCategoryForm>;
|
|
53
|
-
'delete:before'?: Renderer<ItemCategoryForm>;
|
|
54
|
-
'delete:after'?: Renderer<ItemCategoryForm>;
|
|
55
|
-
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/ItemCategoryForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Resource } from '@foxy.io/sdk/core';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nexport type Data = Resource<Rels.ItemCategory>;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropertyDeclarations } from 'lit-element';
|
|
2
|
-
import type { Data
|
|
2
|
+
import type { Data } from './types';
|
|
3
3
|
import type { TemplateResult } from 'lit-html';
|
|
4
4
|
import type { NucleonV8N } from '../NucleonElement/types';
|
|
5
5
|
import { InternalForm } from '../../internal/InternalForm/InternalForm';
|
|
@@ -9,97 +9,13 @@ declare const ItemForm_base: typeof InternalForm & import("lit-element").Constru
|
|
|
9
9
|
/**
|
|
10
10
|
* Form element for creating or editing items (`fx:item`).
|
|
11
11
|
*
|
|
12
|
-
* @slot name:before
|
|
13
|
-
* @slot name:after
|
|
14
|
-
*
|
|
15
|
-
* @slot price:before
|
|
16
|
-
* @slot price:after
|
|
17
|
-
*
|
|
18
|
-
* @slot quantity:before
|
|
19
|
-
* @slot quantity:after
|
|
20
|
-
*
|
|
21
|
-
* @slot subscription-frequency:before – new in 1.25.0
|
|
22
|
-
* @slot subscription-frequency:after – new in 1.25.0
|
|
23
|
-
*
|
|
24
|
-
* @slot subscription-start-date:before – new in 1.25.0
|
|
25
|
-
* @slot subscription-start-date:after – new in 1.25.0
|
|
26
|
-
*
|
|
27
|
-
* @slot subscription-end-date:before – new in 1.25.0
|
|
28
|
-
* @slot subscription-end-date:after – new in 1.25.0
|
|
29
|
-
*
|
|
30
|
-
* @slot discount-name:before – new in 1.25.0
|
|
31
|
-
* @slot discount-name:after – new in 1.25.0
|
|
32
|
-
*
|
|
33
|
-
* @slot discount-builder:before – new in 1.25.0
|
|
34
|
-
* @slot discount-builder:after – new in 1.25.0
|
|
35
|
-
*
|
|
36
|
-
* @slot expires:before – new in 1.25.0
|
|
37
|
-
* @slot expires:after – new in 1.25.0
|
|
38
|
-
*
|
|
39
|
-
* @slot url:before – new in 1.25.0
|
|
40
|
-
* @slot url:after – new in 1.25.0
|
|
41
|
-
*
|
|
42
|
-
* @slot image:before – new in 1.25.0
|
|
43
|
-
* @slot image:after – new in 1.25.0
|
|
44
|
-
*
|
|
45
|
-
* @slot quantity-min:before – new in 1.25.0
|
|
46
|
-
* @slot quantity-min:after – new in 1.25.0
|
|
47
|
-
*
|
|
48
|
-
* @slot quantity-max:before – new in 1.25.0
|
|
49
|
-
* @slot quantity-max:after – new in 1.25.0
|
|
50
|
-
*
|
|
51
|
-
* @slot shipto:before – new in 1.25.0
|
|
52
|
-
* @slot shipto:after – new in 1.25.0
|
|
53
|
-
*
|
|
54
|
-
* @slot width:before – new in 1.25.0
|
|
55
|
-
* @slot width:after – new in 1.25.0
|
|
56
|
-
*
|
|
57
|
-
* @slot height:before – new in 1.25.0
|
|
58
|
-
* @slot height:after – new in 1.25.0
|
|
59
|
-
*
|
|
60
|
-
* @slot length:before – new in 1.25.0
|
|
61
|
-
* @slot length:after – new in 1.25.0
|
|
62
|
-
*
|
|
63
|
-
* @slot weight:before – new in 1.25.0
|
|
64
|
-
* @slot weight:after – new in 1.25.0
|
|
65
|
-
*
|
|
66
|
-
* @slot item-category-uri:before – new in 1.25.0
|
|
67
|
-
* @slot item-category-uri:after – new in 1.25.0
|
|
68
|
-
*
|
|
69
|
-
* @slot code:before – new in 1.25.0
|
|
70
|
-
* @slot code:after – new in 1.25.0
|
|
71
|
-
*
|
|
72
|
-
* @slot parent-code:before – new in 1.25.0
|
|
73
|
-
* @slot parent-code:after – new in 1.25.0
|
|
74
|
-
*
|
|
75
|
-
* @slot discount-details:before – new in 1.25.0
|
|
76
|
-
* @slot discount-details:after – new in 1.25.0
|
|
77
|
-
*
|
|
78
|
-
* @slot coupon-details:before – new in 1.25.0
|
|
79
|
-
* @slot coupon-details:after – new in 1.25.0
|
|
80
|
-
*
|
|
81
|
-
* @slot attributes:before – new in 1.25.0
|
|
82
|
-
* @slot attributes:after – new in 1.25.0
|
|
83
|
-
*
|
|
84
|
-
* @slot item-options:before – new in 1.25.0
|
|
85
|
-
* @slot item-options:after – new in 1.25.0
|
|
86
|
-
*
|
|
87
|
-
* @slot timestamps:before
|
|
88
|
-
* @slot timestamps:after
|
|
89
|
-
*
|
|
90
|
-
* @slot delete:before
|
|
91
|
-
* @slot delete:after
|
|
92
|
-
*
|
|
93
|
-
* @slot create:before
|
|
94
|
-
* @slot create:after
|
|
95
|
-
*
|
|
96
12
|
* @element foxy-item-form
|
|
97
13
|
* @since 1.17.0
|
|
98
14
|
*/
|
|
99
15
|
export declare class ItemForm extends ItemForm_base<Data> {
|
|
100
16
|
static get properties(): PropertyDeclarations;
|
|
101
17
|
static get v8n(): NucleonV8N<Data>;
|
|
102
|
-
/** Link to the collection of customer addresses that can be used with this item. */
|
|
18
|
+
/** @deprecated Link to the collection of customer addresses that can be used with this item. */
|
|
103
19
|
customerAddresses: string | null;
|
|
104
20
|
/** Link to the collection of item categories that can be used with this item. */
|
|
105
21
|
itemCategories: string | null;
|
|
@@ -107,8 +23,8 @@ export declare class ItemForm extends ItemForm_base<Data> {
|
|
|
107
23
|
localeCodes: string | null;
|
|
108
24
|
/** @deprecated Link to the collection of coupons that can be used with this item. */
|
|
109
25
|
coupons: string | null;
|
|
110
|
-
templates: Templates;
|
|
111
26
|
private __itemsLink;
|
|
27
|
+
get headerSubtitleOptions(): Record<string, unknown>;
|
|
112
28
|
renderBody(): TemplateResult;
|
|
113
29
|
protected _sendGet(): Promise<Data>;
|
|
114
30
|
private get __itemOptionRelatedUrls();
|