@foxy.io/elements 1.26.0 → 1.27.0-beta.2
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 +1 -1
- 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-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.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +2 -2
- package/dist/cdn/foxy-customer.js +3 -3
- 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 +1 -1
- 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-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 +4 -4
- 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.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 +11 -11
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- 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 -5
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-swipe-actions.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-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-2787655b.js → shared-030f561a.js} +1 -1
- package/dist/cdn/shared-0cbb19f4.js +2 -0
- package/dist/cdn/{shared-38499b40.js → shared-0cf90158.js} +1 -1
- package/dist/cdn/{shared-b06b1473.js → shared-1024766f.js} +1 -1
- package/dist/cdn/{shared-360e1c8e.js → shared-12390d6f.js} +1 -1
- package/dist/cdn/{shared-942ef1fc.js → shared-12ad8924.js} +2 -2
- package/dist/cdn/shared-150f5214.js +1 -0
- package/dist/cdn/shared-2062c274.js +1 -0
- package/dist/cdn/{shared-f3b35364.js → shared-22ba9566.js} +1 -1
- package/dist/cdn/{shared-69c67952.js → shared-2376abfc.js} +7 -7
- package/dist/cdn/{shared-76812651.js → shared-26f4b6bf.js} +1 -1
- package/dist/cdn/{shared-f7365ea5.js → shared-2920b595.js} +1 -1
- package/dist/cdn/{shared-d7be11de.js → shared-2bf89a21.js} +1 -1
- package/dist/cdn/{shared-550f9cae.js → shared-331a223c.js} +2 -2
- package/dist/cdn/{shared-6da29a49.js → shared-33d8cbfb.js} +1 -1
- package/dist/cdn/{shared-213c60d3.js → shared-352c79a6.js} +1 -1
- package/dist/cdn/{shared-cadbb2e3.js → shared-37e1a834.js} +1 -1
- package/dist/cdn/shared-3f19b914.js +20 -0
- package/dist/cdn/{shared-d2dc8486.js → shared-405a290e.js} +1 -1
- package/dist/cdn/shared-40bece2b.js +1 -0
- package/dist/cdn/{shared-2d40129d.js → shared-4482e7b9.js} +6 -6
- package/dist/cdn/{shared-19732959.js → shared-44bb85d8.js} +1 -1
- package/dist/cdn/{shared-2b68c60f.js → shared-497ebb8c.js} +1 -1
- package/dist/cdn/{shared-60e167ae.js → shared-4cec4de0.js} +1 -1
- package/dist/cdn/{shared-51318b75.js → shared-510a9e1b.js} +1 -1
- package/dist/cdn/{shared-f9180815.js → shared-51c4a6dd.js} +1 -1
- package/dist/cdn/shared-5ba87b6d.js +11 -0
- package/dist/cdn/{shared-c37707da.js → shared-5df32007.js} +1 -1
- package/dist/cdn/{shared-eaceb493.js → shared-5dfec3b7.js} +1 -1
- package/dist/cdn/shared-651c44fa.js +6 -0
- package/dist/cdn/{shared-ac62d098.js → shared-655e7c5f.js} +1 -1
- package/dist/cdn/shared-6d41c9a9.js +1 -0
- package/dist/cdn/{shared-be8c90cc.js → shared-6e508e5b.js} +11 -22
- package/dist/cdn/{shared-f1ee9bf9.js → shared-6ed07856.js} +1 -1
- package/dist/cdn/{shared-5407617a.js → shared-7039733e.js} +1 -1
- package/dist/cdn/{shared-be5ef71d.js → shared-74adbf9e.js} +1 -1
- package/dist/cdn/{shared-d7910e16.js → shared-7ea4cb27.js} +1 -1
- package/dist/cdn/{shared-8ed04343.js → shared-83fc5dca.js} +1 -1
- package/dist/cdn/{shared-bb05cfed.js → shared-8438d4ca.js} +1 -1
- package/dist/cdn/{shared-50a3cb63.js → shared-882e7191.js} +1 -1
- package/dist/cdn/shared-8ab2ba91.js +425 -0
- package/dist/cdn/{shared-31b7a6ad.js → shared-8b80db13.js} +1 -1
- package/dist/cdn/shared-966feb65.js +1 -0
- package/dist/cdn/{shared-aa4f6a25.js → shared-97d63da6.js} +1 -1
- package/dist/cdn/{shared-d3bf9ac0.js → shared-9803aa7c.js} +2 -2
- package/dist/cdn/{shared-11c2efc8.js → shared-99940888.js} +1 -1
- package/dist/cdn/shared-99f0fee6.js +1 -0
- package/dist/cdn/shared-9adc47da.js +113 -0
- package/dist/cdn/{shared-b23c903e.js → shared-9f570db0.js} +1 -1
- package/dist/cdn/{shared-bc113435.js → shared-9fd64015.js} +1 -1
- package/dist/cdn/{shared-6a7f96c4.js → shared-a0435ec6.js} +1 -1
- package/dist/cdn/{shared-d519a301.js → shared-a0c6a159.js} +2 -2
- package/dist/cdn/{shared-16b391d9.js → shared-a19e1dff.js} +1 -1
- package/dist/cdn/{shared-ee54f718.js → shared-a5ecd56e.js} +1 -1
- package/dist/cdn/{shared-7d24a3f1.js → shared-a9f76cae.js} +1 -1
- package/dist/cdn/{shared-927fa880.js → shared-ae459232.js} +4 -4
- package/dist/cdn/{shared-1f8ae298.js → shared-bbc0cdd6.js} +1 -1
- package/dist/cdn/{shared-1c07b1be.js → shared-bf695fe7.js} +1 -1
- package/dist/cdn/{shared-4721aeb1.js → shared-cd8c3429.js} +1 -1
- package/dist/cdn/{shared-d28b95c6.js → shared-cfed658c.js} +2 -2
- package/dist/cdn/shared-d0374d0c.js +1 -0
- package/dist/cdn/{shared-55f58244.js → shared-d244dd07.js} +1 -1
- package/dist/cdn/{shared-de59c42c.js → shared-d9f65ee0.js} +4 -4
- package/dist/cdn/{shared-df8380e1.js → shared-db98729a.js} +1 -1
- package/dist/cdn/{shared-7f33a83a.js → shared-dc73b9a5.js} +1 -1
- package/dist/cdn/{shared-902b0773.js → shared-e40937c5.js} +1 -1
- package/dist/cdn/{shared-e8621807.js → shared-f0269599.js} +1 -1
- package/dist/cdn/shared-f1afbd7b.js +1 -0
- package/dist/cdn/{shared-dc8c202b.js → shared-f53d078e.js} +1 -1
- package/dist/cdn/{shared-533c0d6a.js → shared-f588b5c2.js} +1 -1
- package/dist/cdn/{shared-8d51eaa6.js → shared-f5d4dda0.js} +1 -1
- package/dist/cdn/{shared-87f81b69.js → shared-f94fa366.js} +1 -1
- package/dist/cdn/shared-fd0a4026.js +1 -0
- package/dist/cdn/translations/access-recovery-form/en.json +5 -2
- package/dist/cdn/translations/address-card/en.json +1 -1
- package/dist/cdn/translations/address-form/en.json +86 -26
- package/dist/cdn/translations/admin-subscription-card/en.json +1 -1
- package/dist/cdn/translations/applied-coupon-code-card/en.json +1 -1
- package/dist/cdn/translations/applied-coupon-code-form/en.json +2 -1
- package/dist/cdn/translations/applied-tax-card/en.json +1 -1
- package/dist/cdn/translations/attribute-card/en.json +1 -1
- package/dist/cdn/translations/attribute-form/en.json +36 -17
- package/dist/cdn/translations/billing-address-card/en.json +1 -1
- package/dist/cdn/translations/cancellation-form/en.json +2 -1
- package/dist/cdn/translations/cart-card/en.json +1 -1
- package/dist/cdn/translations/cart-form/en.json +51 -29
- package/dist/cdn/translations/client-card/en.json +1 -1
- package/dist/cdn/translations/client-form/en.json +2 -1
- package/dist/cdn/translations/coupon-card/en.json +1 -1
- package/dist/cdn/translations/coupon-code-form/en.json +70 -13
- package/dist/cdn/translations/coupon-codes-form/en.json +3 -2
- package/dist/cdn/translations/coupon-form/en.json +77 -16
- package/dist/cdn/translations/custom-field-card/en.json +1 -1
- package/dist/cdn/translations/custom-field-form/en.json +34 -14
- package/dist/cdn/translations/customer/en.json +142 -67
- package/dist/cdn/translations/customer-card/en.json +1 -1
- package/dist/cdn/translations/customer-form/en.json +2 -1
- package/dist/cdn/translations/customer-portal/en.json +106 -38
- package/dist/cdn/translations/customers-table/en.json +2 -1
- package/dist/cdn/translations/discount-card/en.json +1 -1
- package/dist/cdn/translations/downloadable-card/en.json +1 -1
- package/dist/cdn/translations/downloadable-form/en.json +2 -1
- package/dist/cdn/translations/email-template-card/en.json +1 -1
- package/dist/cdn/translations/email-template-form/en.json +2 -1
- package/dist/cdn/translations/filter-attribute-card/en.json +1 -1
- package/dist/cdn/translations/filter-attribute-form/en.json +2 -1
- package/dist/cdn/translations/generate-codes-form/en.json +2 -1
- package/dist/cdn/translations/gift-card-card/en.json +1 -1
- package/dist/cdn/translations/gift-card-code-form/en.json +55 -24
- package/dist/cdn/translations/gift-card-code-log-card/en.json +1 -1
- package/dist/cdn/translations/gift-card-codes-form/en.json +3 -2
- package/dist/cdn/translations/gift-card-form/en.json +67 -29
- package/dist/cdn/translations/i18n-editor/en.json +2 -1
- package/dist/cdn/translations/integration-card/en.json +1 -1
- package/dist/cdn/translations/integration-form/en.json +2 -1
- package/dist/cdn/translations/item-card/en.json +1 -1
- package/dist/cdn/translations/item-category-card/en.json +1 -1
- package/dist/cdn/translations/item-category-form/en.json +3 -2
- package/dist/cdn/translations/item-form/en.json +44 -23
- package/dist/cdn/translations/item-option-form/en.json +2 -1
- package/dist/cdn/translations/native-integration-card/en.json +1 -1
- package/dist/cdn/translations/native-integration-form/en.json +2 -1
- package/dist/cdn/translations/passkey-card/en.json +1 -1
- package/dist/cdn/translations/passkey-form/en.json +2 -1
- package/dist/cdn/translations/payment-card/en.json +1 -1
- package/dist/cdn/translations/payment-method-card/en.json +1 -1
- package/dist/cdn/translations/payments-api-fraud-protection-card/en.json +1 -1
- package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +2 -1
- package/dist/cdn/translations/payments-api-payment-method-card/en.json +1 -1
- package/dist/cdn/translations/payments-api-payment-method-form/en.json +2 -1
- package/dist/cdn/translations/payments-api-payment-preset-card/en.json +1 -1
- package/dist/cdn/translations/payments-api-payment-preset-form/en.json +2 -1
- package/dist/cdn/translations/report-form/en.json +2 -1
- package/dist/cdn/translations/reports-table/en.json +2 -1
- package/dist/cdn/translations/shared/en.json +4 -0
- package/dist/cdn/translations/shared/es.json +3 -0
- package/dist/cdn/translations/shipment-card/en.json +1 -1
- package/dist/cdn/translations/shipping-method-card/en.json +1 -1
- package/dist/cdn/translations/sign-in-form/en.json +2 -1
- package/dist/cdn/translations/spinner/en.json +1 -1
- package/dist/cdn/translations/store-card/en.json +1 -1
- package/dist/cdn/translations/store-form/en.json +2 -1
- package/dist/cdn/translations/store-shipping-method-form/en.json +3 -2
- package/dist/cdn/translations/subscription-card/en.json +1 -1
- package/dist/cdn/translations/subscription-form/en.json +9 -17
- package/dist/cdn/translations/subscription-settings-form/en.json +2 -1
- package/dist/cdn/translations/subscriptions-table/en.json +2 -1
- package/dist/cdn/translations/tax-card/en.json +1 -1
- package/dist/cdn/translations/tax-form/en.json +2 -1
- package/dist/cdn/translations/template-config-form/en.json +2 -1
- package/dist/cdn/translations/template-form/en.json +2 -1
- package/dist/cdn/translations/template-set-card/en.json +1 -1
- package/dist/cdn/translations/template-set-form/en.json +4 -2
- package/dist/cdn/translations/transaction/en.json +209 -88
- package/dist/cdn/translations/transaction-card/en.json +1 -1
- package/dist/cdn/translations/transactions-table/en.json +2 -1
- package/dist/cdn/translations/user-card/en.json +1 -1
- package/dist/cdn/translations/user-form/en.json +56 -21
- package/dist/cdn/translations/users-table/en.json +58 -22
- package/dist/cdn/translations/webhook-card/en.json +1 -1
- package/dist/cdn/translations/webhook-form/en.json +4 -3
- package/dist/cdn/translations/webhook-log-card/en.json +1 -1
- package/dist/cdn/translations/webhook-status-card/en.json +1 -1
- package/dist/elements/internal/InternalForm/InternalForm.js +10 -3
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -1
- package/dist/elements/internal/InternalSourceControl/InternalSourceControl.d.ts +1 -0
- package/dist/elements/internal/InternalSourceControl/InternalSourceControl.js +19 -4
- package/dist/elements/internal/InternalSourceControl/InternalSourceControl.js.map +1 -1
- package/dist/elements/public/AddressForm/AddressForm.d.ts +13 -24
- package/dist/elements/public/AddressForm/AddressForm.js +76 -275
- package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
- package/dist/elements/public/AddressForm/index.d.ts +3 -6
- package/dist/elements/public/AddressForm/index.js +3 -6
- package/dist/elements/public/AddressForm/index.js.map +1 -1
- package/dist/elements/public/AddressForm/types.d.ts +4 -15
- package/dist/elements/public/AddressForm/types.js.map +1 -1
- package/dist/elements/public/AttributeForm/AttributeForm.d.ts +15 -25
- package/dist/elements/public/AttributeForm/AttributeForm.js +35 -238
- package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
- package/dist/elements/public/AttributeForm/index.d.ts +3 -7
- package/dist/elements/public/AttributeForm/index.js +3 -7
- package/dist/elements/public/AttributeForm/index.js.map +1 -1
- package/dist/elements/public/AttributeForm/types.d.ts +4 -7
- package/dist/elements/public/AttributeForm/types.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.d.ts +19 -21
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js +47 -178
- package/dist/elements/public/CouponCodeForm/CouponCodeForm.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/index.d.ts +5 -6
- package/dist/elements/public/CouponCodeForm/index.js +5 -6
- package/dist/elements/public/CouponCodeForm/index.js.map +1 -1
- package/dist/elements/public/CouponCodeForm/types.d.ts +11 -4
- package/dist/elements/public/CouponCodeForm/types.js.map +1 -1
- package/dist/elements/public/CouponForm/CouponForm.d.ts +2 -1
- package/dist/elements/public/CouponForm/CouponForm.js +4 -0
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/CouponForm/types.d.ts +3 -0
- package/dist/elements/public/CouponForm/types.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.d.ts +27 -36
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +40 -221
- package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/index.d.ts +3 -7
- package/dist/elements/public/CustomFieldForm/index.js +3 -7
- package/dist/elements/public/CustomFieldForm/index.js.map +1 -1
- package/dist/elements/public/CustomFieldForm/types.d.ts +4 -7
- package/dist/elements/public/CustomFieldForm/types.js.map +1 -1
- package/dist/elements/public/CustomerForm/CustomerForm.d.ts +0 -1
- package/dist/elements/public/CustomerForm/CustomerForm.js +5 -8
- package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.d.ts +12 -29
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js +27 -276
- package/dist/elements/public/GiftCardCodeForm/GiftCardCodeForm.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/index.d.ts +5 -9
- package/dist/elements/public/GiftCardCodeForm/index.js +5 -9
- package/dist/elements/public/GiftCardCodeForm/index.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/internal/InternalGiftCardCodeFormItemControl/InternalGiftCardCodeFormItemControl.js +17 -6
- package/dist/elements/public/GiftCardCodeForm/internal/InternalGiftCardCodeFormItemControl/InternalGiftCardCodeFormItemControl.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/internal/InternalGiftCardCodeFormItemControl/index.d.ts +0 -1
- package/dist/elements/public/GiftCardCodeForm/internal/InternalGiftCardCodeFormItemControl/index.js +0 -1
- package/dist/elements/public/GiftCardCodeForm/internal/InternalGiftCardCodeFormItemControl/index.js.map +1 -1
- package/dist/elements/public/GiftCardCodeForm/types.d.ts +6 -4
- package/dist/elements/public/GiftCardCodeForm/types.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.d.ts +3 -0
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +88 -78
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/index.d.ts +0 -2
- package/dist/elements/public/SubscriptionForm/index.js +0 -8
- package/dist/elements/public/SubscriptionForm/index.js.map +1 -1
- package/dist/elements/public/UserForm/UserForm.d.ts +15 -12
- package/dist/elements/public/UserForm/UserForm.js +64 -172
- package/dist/elements/public/UserForm/UserForm.js.map +1 -1
- package/dist/elements/public/UserForm/index.d.ts +3 -5
- package/dist/elements/public/UserForm/index.js +3 -5
- package/dist/elements/public/UserForm/index.js.map +1 -1
- package/dist/elements/public/UserForm/types.d.ts +3 -1
- package/dist/elements/public/UserForm/types.js.map +1 -1
- package/dist/elements/public/UsersTable/UsersTable.js +1 -1
- package/dist/elements/public/UsersTable/UsersTable.js.map +1 -1
- package/dist/elements/public/UsersTable/roles.js.map +1 -0
- package/dist/mixins/themeable.js +38 -8
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.d.ts +6 -0
- package/dist/mixins/translatable.js +26 -8
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-027a9660.js +0 -1
- package/dist/cdn/shared-0838fad0.js +0 -1
- package/dist/cdn/shared-132b2b71.js +0 -2
- package/dist/cdn/shared-1e3d7d40.js +0 -1
- package/dist/cdn/shared-6d34289d.js +0 -1
- package/dist/cdn/shared-9f039798.js +0 -1
- package/dist/cdn/shared-a26d7f7a.js +0 -25
- package/dist/cdn/shared-a502026c.js +0 -1
- package/dist/cdn/shared-c36477d7.js +0 -531
- package/dist/cdn/shared-e7dffedb.js +0 -1
- package/dist/cdn/shared-f2eb454c.js +0 -1
- package/dist/elements/public/UserForm/roles.js.map +0 -1
- /package/dist/elements/public/{UserForm → UsersTable}/roles.d.ts +0 -0
- /package/dist/elements/public/{UserForm → UsersTable}/roles.js +0 -0
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"date": "{{value, date}}",
|
|
58
58
|
"spinner": {
|
|
59
59
|
"loading_busy": "Loading",
|
|
60
|
-
"loading_error": "
|
|
60
|
+
"loading_error": "Unknown error",
|
|
61
61
|
"loading_empty": "No data"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"date": "{{value, date}}",
|
|
76
76
|
"spinner": {
|
|
77
77
|
"loading_busy": "Loading",
|
|
78
|
-
"loading_error": "
|
|
78
|
+
"loading_error": "Unknown error",
|
|
79
79
|
"loading_empty": "No data"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -95,7 +95,8 @@
|
|
|
95
95
|
"create": "Create"
|
|
96
96
|
},
|
|
97
97
|
"spinner": {
|
|
98
|
+
"refresh": "Refresh",
|
|
98
99
|
"loading_busy": "Loading",
|
|
99
|
-
"loading_error": "
|
|
100
|
+
"loading_error": "Unknown error"
|
|
100
101
|
}
|
|
101
102
|
}
|
|
@@ -46,7 +46,7 @@ export class InternalForm extends Base {
|
|
|
46
46
|
<div aria-busy=${this.in('busy')} aria-live="polite" class="relative">
|
|
47
47
|
<div
|
|
48
48
|
class=${classMap({
|
|
49
|
-
'
|
|
49
|
+
'space-y-m': true,
|
|
50
50
|
'transition-opacity': true,
|
|
51
51
|
'opacity-0 pointer-events-none': isSpinnerVisible,
|
|
52
52
|
})}
|
|
@@ -58,17 +58,24 @@ export class InternalForm extends Base {
|
|
|
58
58
|
<div
|
|
59
59
|
data-testid="spinner"
|
|
60
60
|
class=${classMap({
|
|
61
|
-
'
|
|
61
|
+
'flex flex-col items-center justify-center gap-m': true,
|
|
62
|
+
'transition-opacity absolute inset-0': true,
|
|
62
63
|
'opacity-0 pointer-events-none': !isSpinnerVisible,
|
|
63
64
|
})}
|
|
64
65
|
>
|
|
65
66
|
<foxy-spinner
|
|
66
67
|
layout=${this.in('fail') ? 'vertical' : 'no-label'}
|
|
67
|
-
class="m-auto"
|
|
68
68
|
state=${this.in('fail') ? 'error' : 'busy'}
|
|
69
69
|
infer="spinner"
|
|
70
70
|
>
|
|
71
71
|
</foxy-spinner>
|
|
72
|
+
${this.href && this.in('fail')
|
|
73
|
+
? html `
|
|
74
|
+
<vaadin-button theme="small contrast" @click=${() => this.refresh()}>
|
|
75
|
+
<foxy-i18n infer="spinner" key="refresh"></foxy-i18n>
|
|
76
|
+
</vaadin-button>
|
|
77
|
+
`
|
|
78
|
+
: ''}
|
|
72
79
|
</div>
|
|
73
80
|
</div>
|
|
74
81
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalForm.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalForm/InternalForm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,cAAc,EAAE,sDAAmD;AAC5E,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,OAAO,YAA4C,SAAQ,IAAW;IAA5E;;QAWE,yFAAyF;QACzF,WAAM,GAAkB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"InternalForm.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalForm/InternalForm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,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ent":["import type { PropertyDeclarations } from 'lit-element';\nimport type { HALJSONResource } from '../../public/NucleonElement/types';\nimport type { TemplateResult } from 'lit-html';\nimport type { Status } from './types';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { NucleonElement } from '../../public/NucleonElement/NucleonElement';\nimport { classMap } from '../../../utils/class-map';\nimport { html } from 'lit-html';\n\nconst Base = ConfigurableMixin(ThemeableMixin(NucleonElement));\n\n/**\n * An internal base class for any nucleon-powered form. Renders create/delete\n * buttons and timestamps by default, displays a spinner in non-idle states.\n *\n * @element foxy-internal-form\n * @since 1.17.0\n */\nexport class InternalForm<TData extends HALJSONResource> extends Base<TData> {\n /** Validation errors with this prefix will show up at the top of the form. */\n static generalErrorPrefix = 'error:';\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n status: { type: Object },\n };\n }\n\n /** Status message to render at the top of the form. If `null`, the message is hidden. */\n status: null | Status = null;\n\n /**\n * Renders form body. This is the method you should implement in your forms\n * instead of `.render()`. If you'd like to keep the submit button and the timestamps,\n * don't forget to add `super.renderBody()` to your template.\n */\n renderBody(): TemplateResult {\n return this.data\n ? html`\n <foxy-internal-timestamps-control infer=\"timestamps\"></foxy-internal-timestamps-control>\n <foxy-internal-delete-control infer=\"delete\"></foxy-internal-delete-control>\n `\n : html`<foxy-internal-create-control infer=\"create\"></foxy-internal-create-control>`;\n }\n\n /**\n * Renders the entire form. You should probably implement `.renderBody()`\n * instead of this method in your form to keep the spinner and the common layout features.\n */\n render(): TemplateResult {\n const isSpinnerVisible = !this.in('idle') && (!this.in({ busy: 'fetching' }) || !this.data);\n\n return html`\n <div aria-busy=${this.in('busy')} aria-live=\"polite\" class=\"relative\">\n <div\n class=${classMap({\n 'space-y-m': true,\n 'transition-opacity': true,\n 'opacity-0 pointer-events-none': isSpinnerVisible,\n })}\n >\n ${this.__generalErrors.map(err => this.__renderGeneralError(err))}\n ${this.status ? this.__renderStatus(this.status) : ''} ${this.renderBody()}\n </div>\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'flex flex-col items-center justify-center gap-m': true,\n 'transition-opacity absolute inset-0': true,\n 'opacity-0 pointer-events-none': !isSpinnerVisible,\n })}\n >\n <foxy-spinner\n layout=${this.in('fail') ? 'vertical' : 'no-label'}\n state=${this.in('fail') ? 'error' : 'busy'}\n infer=\"spinner\"\n >\n </foxy-spinner>\n ${this.href && this.in('fail')\n ? html`\n <vaadin-button theme=\"small contrast\" @click=${() => this.refresh()}>\n <foxy-i18n infer=\"spinner\" key=\"refresh\"></foxy-i18n>\n </vaadin-button>\n `\n : ''}\n </div>\n </div>\n `;\n }\n\n private get __generalErrors() {\n const prefix = (this.constructor as typeof InternalForm).generalErrorPrefix;\n return this.errors.filter(v => v.startsWith(prefix));\n }\n\n private __renderGeneralError(err: string) {\n return html`\n <foxy-i18n\n class=\"leading-xs text-body rounded bg-error-10 block\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n infer=\"error\"\n key=${err.replace('error:', '')}\n >\n </foxy-i18n>\n `;\n }\n\n private __renderStatus({ key, options }: Status) {\n return html`\n <p\n data-testid=\"status\"\n class=\"leading-xs text-body rounded bg-success-10 flex items-start gap-m\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=${key} .options=${options}></foxy-i18n>\n <vaadin-button\n class=\"flex-shrink-0\"\n theme=\"success tertiary-inline\"\n @click=${() => (this.status = null)}\n >\n <foxy-i18n class=\"flex-1\" infer=\"status\" key=\"close\"></foxy-i18n>\n </vaadin-button>\n </p>\n `;\n }\n}\n"]}
|
|
@@ -9,6 +9,7 @@ import { InternalEditableControl } from '../InternalEditableControl/InternalEdit
|
|
|
9
9
|
export declare class InternalSourceControl extends InternalEditableControl {
|
|
10
10
|
static get properties(): PropertyDeclarations;
|
|
11
11
|
static get styles(): CSSResultArray;
|
|
12
|
+
private __isErrorVisible;
|
|
12
13
|
private __hovered;
|
|
13
14
|
private __focused;
|
|
14
15
|
renderControl(): TemplateResult;
|
|
@@ -10,12 +10,14 @@ import { repeat } from 'lit-html/directives/repeat';
|
|
|
10
10
|
export class InternalSourceControl extends InternalEditableControl {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
|
+
this.__isErrorVisible = false;
|
|
13
14
|
this.__hovered = false;
|
|
14
15
|
this.__focused = false;
|
|
15
16
|
}
|
|
16
17
|
static get properties() {
|
|
17
18
|
return {
|
|
18
19
|
...super.properties,
|
|
20
|
+
__isErrorVisible: { attribute: false },
|
|
19
21
|
__hovered: { attribute: false },
|
|
20
22
|
__focused: { attribute: false },
|
|
21
23
|
};
|
|
@@ -110,20 +112,25 @@ textarea::selection{
|
|
|
110
112
|
part="editor"
|
|
111
113
|
>
|
|
112
114
|
<div
|
|
113
|
-
class="h-full transition-colors monospace leading-s text-s
|
|
115
|
+
class="h-full transition-colors monospace leading-s text-s text-right border-r ${lineNumbersClass}"
|
|
116
|
+
style="padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)"
|
|
114
117
|
>
|
|
115
|
-
${repeat((_a = this._value.split('\n')) !== null && _a !== void 0 ? _a : [], (_, i) => String(i), (_, i) => html `<div>${i + 1}
|
|
118
|
+
${repeat((_a = this._value.split('\n')) !== null && _a !== void 0 ? _a : [], (_, i) => String(i), (_, i) => html `<div>${i < 9 ? html `<span class="opacity-0">0</span>` : ''}${i < 99 ? html `<span class="opacity-0">0</span>` : ''}<span>${i + 1}<span></div>`)}
|
|
116
119
|
</div>
|
|
117
120
|
|
|
118
121
|
<textarea
|
|
119
122
|
placeholder=${this.placeholder}
|
|
120
|
-
class="bg-base whitespace-pre leading-s text-s focus-outline-none monospace resize-none
|
|
123
|
+
class="bg-base whitespace-pre leading-s text-s focus-outline-none monospace resize-none block w-full select-text transition-colors ${textAreaClass}"
|
|
124
|
+
style="padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)"
|
|
121
125
|
rows="1"
|
|
122
126
|
.value=${this._value}
|
|
123
127
|
?disabled=${this.disabled}
|
|
124
128
|
?readonly=${this.readonly}
|
|
125
129
|
@focus=${() => (this.__focused = true)}
|
|
126
|
-
@blur=${() =>
|
|
130
|
+
@blur=${() => {
|
|
131
|
+
this.__focused = false;
|
|
132
|
+
this.__isErrorVisible = true;
|
|
133
|
+
}}
|
|
127
134
|
@input=${(evt) => {
|
|
128
135
|
const textarea = evt.currentTarget;
|
|
129
136
|
this._value = textarea.value;
|
|
@@ -135,9 +142,17 @@ textarea::selection{
|
|
|
135
142
|
<div
|
|
136
143
|
class="mt-xs transition-colors leading-xs text-xs ${helperTextClass}"
|
|
137
144
|
part="helper-text"
|
|
145
|
+
?hidden=${!this.helperText}
|
|
138
146
|
>
|
|
139
147
|
${this.helperText}
|
|
140
148
|
</div>
|
|
149
|
+
|
|
150
|
+
<div
|
|
151
|
+
class="mt-xs text-xs leading-xs text-error"
|
|
152
|
+
?hidden=${!this.__isErrorVisible || !this._errorMessage || this.disabled || this.readonly}
|
|
153
|
+
>
|
|
154
|
+
${this._errorMessage}
|
|
155
|
+
</div>
|
|
141
156
|
</label>
|
|
142
157
|
`;
|
|
143
158
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalSourceControl.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalSourceControl/InternalSourceControl.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,8DAA2D;AAC7F,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAAlE;;
|
|
1
|
+
{"version":3,"file":"InternalSourceControl.js","sourceRoot":"","sources":["../../../../src/elements/internal/InternalSourceControl/InternalSourceControl.ts"],"names":[],"mappings":"AAEA,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GAAG,GAAG,QAAQ,CAAC,YAAY,IAAI,CAAC;YACrD,QAAQ,CAAC,KAAK,CAAC,SAAS,GAAG,QAAQ,CAAC;QACtC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAc,MAAM;;QAClB,aAAQ,KAAK,CAAC,MAA6B,mCAAI,EAAE,CAAC;IACpD,CAAC;IAED,IAAc,MAAM,CAAC,QAAgB;QACnC,KAAK,CAAC,MAAM,GAAG,QAA+B,CAAC;IACjD,CAAC;CACF","sourcesContent":["import type { CSSResultArray, PropertyDeclarations, TemplateResult } from 'lit-element';\n\nimport { InternalEditableControl } from '../InternalEditableControl/InternalEditableControl';\nimport { html, css } from 'lit-element';\nimport { repeat } from 'lit-html/directives/repeat';\n\n/**\n * Internal control displaying editable source code.\n *\n * @since 1.23.0\n * @element foxy-internal-source-control\n */\nexport class InternalSourceControl extends InternalEditableControl {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n __isErrorVisible: { attribute: false },\n __hovered: { attribute: false },\n __focused: { attribute: false },\n };\n }\n\n static get styles(): CSSResultArray {\n return [\n ...super.styles,\n css`\n .monospace {\n font-family: monospace;\n }\n\n .resize-none {\n resize: none;\n }\n\n .max-h-16em {\n max-height: 16em;\n }\n\n textarea::selection {\n background: var(--lumo-contrast-10pct);\n }\n `,\n ];\n }\n\n private __isErrorVisible = false;\n\n private __hovered = false;\n\n private __focused = false;\n\n renderControl(): TemplateResult {\n let lineNumbersClass: string;\n let helperTextClass: string;\n let containerClass: string;\n let textAreaClass: string;\n let labelClass: string;\n\n if (this.disabled) {\n lineNumbersClass = 'bg-contrast-5 text-disabled';\n helperTextClass = 'text-disabled';\n textAreaClass = 'text-disabled';\n labelClass = 'text-disabled';\n\n if (this.readonly) {\n lineNumbersClass += ' border-dashed border-contrast-20';\n containerClass = 'border-dashed border-contrast-30';\n } else {\n lineNumbersClass += ' border-transparent';\n containerClass = 'border-contrast-10';\n }\n } else if (this.readonly) {\n lineNumbersClass = 'border-dashed border-contrast-30 bg-transparent text-secondary';\n helperTextClass = 'text-secondary';\n containerClass = 'border-dashed border-contrast-30';\n textAreaClass = 'text-secondary';\n labelClass = 'text-secondary';\n if (this.__focused) containerClass += ' ring-2 ring-primary-50';\n } else if (this.__focused) {\n lineNumbersClass = 'border-transparent bg-contrast-10 text-tertiary';\n helperTextClass = 'text-secondary';\n containerClass = 'border-primary-50 ring-1 ring-primary-50';\n textAreaClass = 'text-body';\n labelClass = 'text-primary';\n } else if (this.__hovered) {\n lineNumbersClass = 'border-transparent bg-contrast-20 text-tertiary';\n helperTextClass = 'text-body';\n containerClass = 'border-contrast-20';\n textAreaClass = 'text-body';\n labelClass = 'text-body';\n } else {\n lineNumbersClass = 'border-transparent bg-contrast-10 text-tertiary';\n helperTextClass = 'text-secondary';\n containerClass = 'border-contrast-10';\n textAreaClass = 'text-body';\n labelClass = 'text-secondary';\n }\n\n return html`\n <label\n class=\"block h-full\"\n @mouseenter=${() => (this.__hovered = true)}\n @mouseleave=${() => (this.__hovered = false)}\n >\n <div\n class=\"mb-xs transition-colors leading-none text-s font-medium ${labelClass}\"\n part=\"label\"\n >\n ${this.label}\n </div>\n\n <div\n class=\"max-h-16em h-full transition-colors flex-1 flex bg-base rounded overflow-auto border ${containerClass}\"\n part=\"editor\"\n >\n <div\n class=\"h-full transition-colors monospace leading-s text-s text-right border-r ${lineNumbersClass}\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n ${repeat(\n this._value.split('\\n') ?? [],\n (_, i) => String(i),\n (_, i) =>\n html`<div>${i < 9 ? html`<span class=\"opacity-0\">0</span>` : ''}${\n i < 99 ? html`<span class=\"opacity-0\">0</span>` : ''\n }<span>${i + 1}<span></div>`\n )}\n </div>\n\n <textarea\n placeholder=${this.placeholder}\n class=\"bg-base whitespace-pre leading-s text-s focus-outline-none monospace resize-none block w-full select-text transition-colors ${textAreaClass}\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n rows=\"1\"\n .value=${this._value}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n @focus=${() => (this.__focused = true)}\n @blur=${() => {\n this.__focused = false;\n this.__isErrorVisible = true;\n }}\n @input=${(evt: InputEvent) => {\n const textarea = evt.currentTarget as HTMLTextAreaElement;\n this._value = textarea.value;\n }}\n >\n </textarea>\n </div>\n\n <div\n class=\"mt-xs transition-colors leading-xs text-xs ${helperTextClass}\"\n part=\"helper-text\"\n ?hidden=${!this.helperText}\n >\n ${this.helperText}\n </div>\n\n <div\n class=\"mt-xs text-xs leading-xs text-error\"\n ?hidden=${!this.__isErrorVisible || !this._errorMessage || this.disabled || this.readonly}\n >\n ${this._errorMessage}\n </div>\n </label>\n `;\n }\n\n updated(changes: Map<keyof this, unknown>): void {\n super.updated(changes);\n this.renderRoot.querySelectorAll('textarea').forEach(textarea => {\n textarea.style.height = 'auto';\n textarea.style.height = `${textarea.scrollHeight}px`;\n textarea.style.overflowY = 'hidden';\n });\n }\n\n protected get _value(): string {\n return (super._value as string | undefined) ?? '';\n }\n\n protected set _value(newValue: string) {\n super._value = newValue as unknown | undefined;\n }\n}\n"]}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { Data, Templates } from './types';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
declare const Base: typeof
|
|
1
|
+
import type { Data, Templates } from './types';
|
|
2
|
+
import type { TemplateResult } from 'lit-html';
|
|
3
|
+
import type { NucleonV8N } from '../NucleonElement/types';
|
|
4
|
+
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
5
|
+
import { InternalForm } from '../../internal/InternalForm/InternalForm';
|
|
6
|
+
declare const Base: typeof InternalForm & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
7
7
|
defaultNS: string;
|
|
8
|
-
}
|
|
9
|
-
styles: import("lit-element").CSSResultArray;
|
|
10
|
-
} & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost> & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/src/types").ScopedElementsHost>;
|
|
8
|
+
};
|
|
11
9
|
/**
|
|
12
10
|
* Basic form displaying customer address.
|
|
13
11
|
*
|
|
@@ -57,22 +55,13 @@ declare const Base: typeof NucleonElement & import("lit-element").Constructor<im
|
|
|
57
55
|
* @since 1.2.0
|
|
58
56
|
*/
|
|
59
57
|
export declare class AddressForm extends Base<Data> {
|
|
60
|
-
static get scopedElements(): ScopedElementsMap;
|
|
61
58
|
static get v8n(): NucleonV8N<Data>;
|
|
62
59
|
templates: Templates;
|
|
63
|
-
private
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private readonly __renderAction;
|
|
70
|
-
connectedCallback(): void;
|
|
71
|
-
render(): TemplateResult;
|
|
72
|
-
disconnectedCallback(): void;
|
|
73
|
-
private __handleKeyDown;
|
|
74
|
-
private __getErrorMessage;
|
|
75
|
-
private __handleActionClick;
|
|
76
|
-
private __handleConfirmHide;
|
|
60
|
+
private __countrySetValue;
|
|
61
|
+
get readonlySelector(): BooleanSelector;
|
|
62
|
+
get disabledSelector(): BooleanSelector;
|
|
63
|
+
renderBody(): TemplateResult;
|
|
64
|
+
private get __countryOptions();
|
|
65
|
+
private get __regionOptions();
|
|
77
66
|
}
|
|
78
67
|
export {};
|