@foxy.io/elements 1.16.0-beta.3 → 1.16.0-beta.6
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 +2 -2
- package/dist/cdn/foxy-address-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-cancellation-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 -0
- 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 -0
- 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 +15 -15
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -0
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -0
- package/dist/cdn/foxy-donation.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-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-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -0
- package/dist/cdn/foxy-item-form.js +1 -0
- package/dist/cdn/foxy-item-option-card.js +1 -0
- package/dist/cdn/foxy-item-option-form.js +1 -0
- package/dist/cdn/foxy-items-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-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +9 -9
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +17 -0
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +4 -4
- 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-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +64 -0
- package/dist/cdn/foxy-transactions-table.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 -0
- package/dist/cdn/foxy-webhook-form.js +467 -0
- package/dist/cdn/foxy-webhook-log-card.js +1 -0
- package/dist/cdn/foxy-webhook-status-card.js +1 -0
- package/dist/cdn/{shared-ea015924.js → shared-012b606d.js} +14 -19
- package/dist/cdn/shared-06014421.js +1 -0
- package/dist/cdn/{shared-864a9f46.js → shared-0af1128f.js} +1 -1
- package/dist/cdn/{shared-3d12e221.js → shared-0cab3007.js} +1 -1
- package/dist/cdn/shared-0f2e2799.js +9 -0
- package/dist/cdn/{shared-5499ce50.js → shared-16b54a16.js} +1 -1
- package/dist/cdn/{shared-42457145.js → shared-180ca311.js} +7 -7
- package/dist/cdn/shared-1b064836.js +1 -0
- package/dist/cdn/{shared-7a93239c.js → shared-28f78e36.js} +1 -1
- package/dist/cdn/{shared-571516a4.js → shared-2bb49907.js} +1 -1
- package/dist/cdn/{shared-5bf947db.js → shared-2eee69db.js} +1 -1
- package/dist/cdn/shared-3026cee0.js +15 -0
- package/dist/cdn/{shared-15d3d613.js → shared-30a41bea.js} +1 -1
- package/dist/cdn/{shared-447623da.js → shared-3138e990.js} +1 -1
- package/dist/cdn/{shared-e6dd0f55.js → shared-4c35a2b7.js} +1 -1
- package/dist/cdn/{shared-70d6309f.js → shared-5f934d4e.js} +1 -1
- package/dist/cdn/{shared-8c3463b5.js → shared-634813cb.js} +1 -1
- package/dist/cdn/shared-64657919.js +1 -0
- package/dist/cdn/{shared-3a7ec144.js → shared-65f1f0a5.js} +2 -11
- package/dist/cdn/{shared-c937b8af.js → shared-6b4564c6.js} +2 -2
- package/dist/cdn/shared-6c9541a9.js +1 -0
- package/dist/cdn/{shared-7eaa7ada.js → shared-6e80f6b9.js} +2 -2
- package/dist/cdn/{shared-667a8855.js → shared-803a0366.js} +1 -1
- package/dist/cdn/{shared-9aed33de.js → shared-8d8d637f.js} +3 -3
- package/dist/cdn/{shared-03949800.js → shared-8f7f868c.js} +1 -1
- package/dist/cdn/shared-96df3c85.js +1 -0
- package/dist/cdn/shared-9a91c68f.js +1 -0
- package/dist/cdn/{shared-9b0b7e4d.js → shared-9ad10520.js} +1 -1
- package/dist/cdn/shared-9d4835ed.js +1 -0
- package/dist/cdn/{shared-b4159722.js → shared-a89fd2f0.js} +1 -1
- package/dist/cdn/{shared-8c308dc1.js → shared-b65bb8ec.js} +1 -1
- package/dist/cdn/shared-bcfaeb2c.js +1 -0
- package/dist/cdn/{shared-6b326bd8.js → shared-bebc774a.js} +2 -2
- package/dist/cdn/{shared-7991f6c1.js → shared-c76687b7.js} +1 -1
- package/dist/cdn/shared-d33bf73b.js +1 -0
- package/dist/cdn/{shared-70c7bf00.js → shared-db34c00a.js} +1 -1
- package/dist/cdn/shared-dc545318.js +1 -0
- package/dist/cdn/shared-dcb80bcf.js +1 -0
- package/dist/cdn/{shared-dfb99fb9.js → shared-dd0fd816.js} +1 -1
- package/dist/cdn/shared-dd43ab46.js +1 -0
- package/dist/cdn/shared-e0e3bdc1.js +1 -0
- package/dist/cdn/shared-e6f3e9f0.js +6 -0
- package/dist/cdn/{shared-712b7f69.js → shared-ea0ac28c.js} +1 -1
- package/dist/cdn/{shared-1dedbcf4.js → shared-eba18a6f.js} +1 -1
- package/dist/cdn/{shared-7823570c.js → shared-eeecd876.js} +1 -1
- package/dist/cdn/{shared-1faaa1b6.js → shared-f0ba30e8.js} +1 -1
- package/dist/cdn/{shared-afa7534d.js → shared-f3655f42.js} +1 -1
- package/dist/cdn/shared-fe347acc.js +1 -0
- package/dist/cdn/translations/copy-to-clipboard/en.json +6 -0
- package/dist/cdn/translations/coupon-form/en.json +21 -2
- package/dist/cdn/translations/gift-card-form/en.json +21 -0
- package/dist/cdn/translations/item-card/en.json +9 -0
- package/dist/cdn/translations/item-form/en.json +387 -0
- package/dist/cdn/translations/item-option-form/en.json +43 -0
- package/dist/cdn/translations/shipment-card/en.json +470 -0
- package/dist/cdn/translations/transaction/en.json +941 -0
- package/dist/cdn/translations/webhook-card/en.json +7 -0
- package/dist/cdn/translations/webhook-form/en.json +101 -0
- package/dist/cdn/translations/webhook-log-card/en.json +8 -0
- package/dist/cdn/translations/webhook-status-card/en.json +11 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/elements/index.js +2 -0
- package/dist/elements/index.js.map +1 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.d.ts +22 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js +79 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/InternalAsyncComboBoxControl.js.map +1 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js +6 -0
- package/dist/elements/internal/InternalAsyncComboBoxControl/index.js.map +1 -0
- package/dist/elements/internal/InternalCard/InternalCard.d.ts +21 -0
- package/dist/elements/internal/InternalCard/InternalCard.js +53 -0
- package/dist/elements/internal/InternalCard/InternalCard.js.map +1 -0
- package/dist/elements/internal/InternalCard/index.d.ts +3 -0
- package/dist/elements/internal/InternalCard/index.js +5 -0
- package/dist/elements/internal/InternalCard/index.js.map +1 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.d.ts +13 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js +119 -0
- package/dist/elements/internal/InternalCollectionCard/InternalCollectionCard.js.map +1 -0
- package/dist/elements/internal/InternalCollectionCard/index.d.ts +7 -0
- package/dist/elements/internal/InternalCollectionCard/index.js +9 -0
- package/dist/elements/internal/InternalCollectionCard/index.js.map +1 -0
- package/dist/elements/internal/InternalControl/InternalControl.d.ts +21 -0
- package/dist/elements/internal/InternalControl/InternalControl.js +53 -0
- package/dist/elements/internal/InternalControl/InternalControl.js.map +1 -0
- package/dist/elements/internal/InternalControl/index.d.ts +2 -0
- package/dist/elements/internal/InternalControl/index.js +4 -0
- package/dist/elements/internal/InternalControl/index.js.map +1 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.d.ts +14 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js +60 -0
- package/dist/elements/internal/InternalDateControl/InternalDateControl.js.map +1 -0
- package/dist/elements/internal/InternalDateControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalDateControl/index.js +6 -0
- package/dist/elements/internal/InternalDateControl/index.js.map +1 -0
- package/dist/elements/internal/InternalDetailsControl/InternalDetailsControl.d.ts +22 -0
- package/dist/elements/internal/InternalDetailsControl/InternalDetailsControl.js +71 -0
- package/dist/elements/internal/InternalDetailsControl/InternalDetailsControl.js.map +1 -0
- package/dist/elements/internal/InternalDetailsControl/index.d.ts +6 -0
- package/dist/elements/internal/InternalDetailsControl/index.js +8 -0
- package/dist/elements/internal/InternalDetailsControl/index.js.map +1 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.d.ts +25 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js +78 -0
- package/dist/elements/internal/InternalEditableControl/InternalEditableControl.js.map +1 -0
- package/dist/elements/internal/InternalEditableControl/index.d.ts +3 -0
- package/dist/elements/internal/InternalEditableControl/index.js +5 -0
- package/dist/elements/internal/InternalEditableControl/index.js.map +1 -0
- package/dist/elements/internal/InternalForm/InternalForm.d.ts +11 -0
- package/dist/elements/internal/InternalForm/InternalForm.js +48 -0
- package/dist/elements/internal/InternalForm/InternalForm.js.map +1 -0
- package/dist/elements/internal/InternalForm/index.d.ts +6 -0
- package/dist/elements/internal/InternalForm/index.js +8 -0
- package/dist/elements/internal/InternalForm/index.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.d.ts +13 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.js +47 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/InternalCreateControl.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.js +6 -0
- package/dist/elements/internal/InternalForm/internal/InternalCreateControl/index.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.d.ts +6 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.js +39 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/InternalDeleteControl.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.d.ts +5 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.js +7 -0
- package/dist/elements/internal/InternalForm/internal/InternalDeleteControl/index.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.d.ts +8 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.js +56 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/InternalTimestampsControl.js.map +1 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.d.ts +2 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.js +4 -0
- package/dist/elements/internal/InternalForm/internal/InternalTimestampsControl/index.js.map +1 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.d.ts +14 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js +115 -0
- package/dist/elements/internal/InternalFrequencyControl/InternalFrequencyControl.js.map +1 -0
- package/dist/elements/internal/InternalFrequencyControl/index.d.ts +6 -0
- package/dist/elements/internal/InternalFrequencyControl/index.js +8 -0
- package/dist/elements/internal/InternalFrequencyControl/index.js.map +1 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.d.ts +13 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js +41 -0
- package/dist/elements/internal/InternalIntegerControl/InternalIntegerControl.js.map +1 -0
- package/dist/elements/internal/InternalIntegerControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalIntegerControl/index.js +6 -0
- package/dist/elements/internal/InternalIntegerControl/index.js.map +1 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.d.ts +13 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +41 -0
- package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -0
- package/dist/elements/internal/InternalNumberControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalNumberControl/index.js +6 -0
- package/dist/elements/internal/InternalNumberControl/index.js.map +1 -0
- package/dist/elements/internal/InternalRadioGroupControl/InternalRadioGroupControl.d.ts +11 -0
- package/dist/elements/internal/InternalRadioGroupControl/InternalRadioGroupControl.js +43 -0
- package/dist/elements/internal/InternalRadioGroupControl/InternalRadioGroupControl.js.map +1 -0
- package/dist/elements/internal/InternalRadioGroupControl/index.d.ts +6 -0
- package/dist/elements/internal/InternalRadioGroupControl/index.js +8 -0
- package/dist/elements/internal/InternalRadioGroupControl/index.js.map +1 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.d.ts +13 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js +40 -0
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -0
- package/dist/elements/internal/InternalTextControl/index.d.ts +4 -0
- package/dist/elements/internal/InternalTextControl/index.js +6 -0
- package/dist/elements/internal/InternalTextControl/index.js.map +1 -0
- package/dist/elements/private/Dialog/Dialog.d.ts +4 -2
- package/dist/elements/private/Dialog/Dialog.js +3 -1
- package/dist/elements/private/Dialog/Dialog.js.map +1 -1
- package/dist/elements/private/EditableList/EditableList.d.ts +4 -2
- package/dist/elements/private/EditableList/EditableList.js +3 -1
- package/dist/elements/private/EditableList/EditableList.js.map +1 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.d.ts +3 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.js +2 -1
- package/dist/elements/private/FrequencyInput/FrequencyInput.js.map +1 -1
- package/dist/elements/public/CollectionPage/CollectionPage.d.ts +4 -3
- package/dist/elements/public/CollectionPage/CollectionPage.js +5 -3
- package/dist/elements/public/CollectionPage/CollectionPage.js.map +1 -1
- package/dist/elements/public/CollectionPage/types.d.ts +1 -0
- package/dist/elements/public/CollectionPage/types.js.map +1 -1
- package/dist/elements/public/CollectionPages/CollectionPages.d.ts +4 -2
- package/dist/elements/public/CollectionPages/CollectionPages.js +3 -1
- package/dist/elements/public/CollectionPages/CollectionPages.js.map +1 -1
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.d.ts +14 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js +112 -0
- package/dist/elements/public/CopyToClipboard/CopyToClipboard.js.map +1 -0
- package/dist/elements/public/CopyToClipboard/index.d.ts +4 -0
- package/dist/elements/public/CopyToClipboard/index.js +6 -0
- package/dist/elements/public/CopyToClipboard/index.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.d.ts +25 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js +58 -0
- package/dist/elements/public/CouponDetailCard/CouponDetailCard.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/index.d.ts +5 -0
- package/dist/elements/public/CouponDetailCard/index.js +7 -0
- package/dist/elements/public/CouponDetailCard/index.js.map +1 -0
- package/dist/elements/public/CouponDetailCard/types.d.ts +3 -0
- package/dist/elements/public/CouponDetailCard/types.js +2 -0
- package/dist/elements/public/CouponDetailCard/types.js.map +1 -0
- package/dist/elements/public/CouponForm/CouponForm.js +36 -35
- package/dist/elements/public/CouponForm/CouponForm.js.map +1 -1
- package/dist/elements/public/CouponForm/index.d.ts +1 -0
- package/dist/elements/public/CouponForm/index.js +1 -0
- package/dist/elements/public/CouponForm/index.js.map +1 -1
- package/dist/elements/public/CustomerApi/CustomerApi.d.ts +3 -1
- package/dist/elements/public/CustomerApi/CustomerApi.js +2 -1
- package/dist/elements/public/CustomerApi/CustomerApi.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalChangePassword.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedOutView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.d.ts +3 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js +2 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalTransactions.js.map +1 -1
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.d.ts +28 -0
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js +339 -0
- package/dist/elements/public/DiscountBuilder/DiscountBuilder.js.map +1 -0
- package/dist/elements/public/DiscountBuilder/index.d.ts +2 -0
- package/dist/elements/public/DiscountBuilder/index.js +4 -0
- package/dist/elements/public/DiscountBuilder/index.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.d.ts +25 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js +58 -0
- package/dist/elements/public/DiscountDetailCard/DiscountDetailCard.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/index.d.ts +5 -0
- package/dist/elements/public/DiscountDetailCard/index.js +7 -0
- package/dist/elements/public/DiscountDetailCard/index.js.map +1 -0
- package/dist/elements/public/DiscountDetailCard/types.d.ts +3 -0
- package/dist/elements/public/DiscountDetailCard/types.js +2 -0
- package/dist/elements/public/DiscountDetailCard/types.js.map +1 -0
- package/dist/elements/public/GiftCardForm/GiftCardForm.js +28 -15
- package/dist/elements/public/GiftCardForm/GiftCardForm.js.map +1 -1
- package/dist/elements/public/GiftCardForm/index.d.ts +1 -0
- package/dist/elements/public/GiftCardForm/index.js +1 -0
- package/dist/elements/public/GiftCardForm/index.js.map +1 -1
- package/dist/elements/public/I18n/I18n.d.ts +3 -1
- package/dist/elements/public/I18n/I18n.js +2 -1
- package/dist/elements/public/I18n/I18n.js.map +1 -1
- package/dist/elements/public/ItemCard/ItemCard.d.ts +16 -0
- package/dist/elements/public/ItemCard/ItemCard.js +142 -0
- package/dist/elements/public/ItemCard/ItemCard.js.map +1 -0
- package/dist/elements/public/ItemCard/index.d.ts +4 -0
- package/dist/elements/public/ItemCard/index.js +6 -0
- package/dist/elements/public/ItemCard/index.js.map +1 -0
- package/dist/elements/public/ItemCard/types.d.ts +5 -0
- package/dist/elements/public/ItemCard/types.js +2 -0
- package/dist/elements/public/ItemCard/types.js.map +1 -0
- package/dist/elements/public/ItemForm/ItemForm.d.ts +19 -0
- package/dist/elements/public/ItemForm/ItemForm.js +96 -0
- package/dist/elements/public/ItemForm/ItemForm.js.map +1 -0
- package/dist/elements/public/ItemForm/index.d.ts +19 -0
- package/dist/elements/public/ItemForm/index.js +21 -0
- package/dist/elements/public/ItemForm/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js +23 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/InternalItemFormCartControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js +8 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormCartControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js +31 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/InternalItemFormInventoryControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.d.ts +5 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormInventoryControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js +48 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/InternalItemFormLineItemDiscountControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.d.ts +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js +9 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormLineItemDiscountControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js +32 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/InternalItemFormShippingControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.d.ts +5 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js +7 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormShippingControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.d.ts +6 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js +75 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/InternalItemFormSubscriptionControl.js.map +1 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.d.ts +8 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js +10 -0
- package/dist/elements/public/ItemForm/internal/InternalItemFormSubscriptionControl/index.js.map +1 -0
- package/dist/elements/public/ItemForm/types.d.ts +3 -0
- package/dist/elements/public/ItemForm/types.js +2 -0
- package/dist/elements/public/ItemForm/types.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.d.ts +25 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js +56 -0
- package/dist/elements/public/ItemOptionCard/ItemOptionCard.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/index.d.ts +6 -0
- package/dist/elements/public/ItemOptionCard/index.js +8 -0
- package/dist/elements/public/ItemOptionCard/index.js.map +1 -0
- package/dist/elements/public/ItemOptionCard/types.d.ts +11 -0
- package/dist/elements/public/ItemOptionCard/types.js +2 -0
- package/dist/elements/public/ItemOptionCard/types.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.d.ts +12 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js +23 -0
- package/dist/elements/public/ItemOptionForm/ItemOptionForm.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/index.d.ts +5 -0
- package/dist/elements/public/ItemOptionForm/index.js +7 -0
- package/dist/elements/public/ItemOptionForm/index.js.map +1 -0
- package/dist/elements/public/ItemOptionForm/types.d.ts +3 -0
- package/dist/elements/public/ItemOptionForm/types.js +2 -0
- package/dist/elements/public/ItemOptionForm/types.js.map +1 -0
- package/dist/elements/public/NucleonElement/NucleonElement.d.ts +7 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js +13 -1
- package/dist/elements/public/NucleonElement/NucleonElement.js.map +1 -1
- package/dist/elements/public/Pagination/Pagination.d.ts +3 -1
- package/dist/elements/public/Pagination/Pagination.js +3 -2
- package/dist/elements/public/Pagination/Pagination.js.map +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js +1 -1
- package/dist/elements/public/PaymentCard/PaymentCard.js.map +1 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.d.ts +3 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.js +2 -1
- package/dist/elements/public/QueryBuilder/QueryBuilder.js.map +1 -1
- package/dist/elements/public/ShipmentCard/ShipmentCard.d.ts +22 -0
- package/dist/elements/public/ShipmentCard/ShipmentCard.js +117 -0
- package/dist/elements/public/ShipmentCard/ShipmentCard.js.map +1 -0
- package/dist/elements/public/ShipmentCard/index.d.ts +7 -0
- package/dist/elements/public/ShipmentCard/index.js +9 -0
- package/dist/elements/public/ShipmentCard/index.js.map +1 -0
- package/dist/elements/public/ShipmentCard/types.d.ts +18 -0
- package/dist/elements/public/ShipmentCard/types.js +2 -0
- package/dist/elements/public/ShipmentCard/types.js.map +1 -0
- package/dist/elements/public/Spinner/Spinner.d.ts +4 -2
- package/dist/elements/public/Spinner/Spinner.js +3 -1
- package/dist/elements/public/Spinner/Spinner.js.map +1 -1
- package/dist/elements/public/Transaction/Transaction.d.ts +13 -0
- package/dist/elements/public/Transaction/Transaction.js +101 -0
- package/dist/elements/public/Transaction/Transaction.js.map +1 -0
- package/dist/elements/public/Transaction/index.d.ts +19 -0
- package/dist/elements/public/Transaction/index.js +21 -0
- package/dist/elements/public/Transaction/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.d.ts +9 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js +69 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/InternalTransactionActionsControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.d.ts +4 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js +6 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionActionsControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.d.ts +5 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js +36 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/InternalTransactionCustomerControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.d.ts +7 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js +9 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionCustomerControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.d.ts +11 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js +50 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/InternalTransactionPostActionControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.d.ts +5 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js +7 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionPostActionControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.d.ts +8 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js +77 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/InternalTransactionSummaryControl.js.map +1 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.d.ts +4 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js +6 -0
- package/dist/elements/public/Transaction/internal/InternalTransactionSummaryControl/index.js.map +1 -0
- package/dist/elements/public/Transaction/types.d.ts +3 -0
- package/dist/elements/public/Transaction/types.js +2 -0
- package/dist/elements/public/Transaction/types.js.map +1 -0
- package/dist/elements/public/WebhookCard/WebhookCard.d.ts +10 -0
- package/dist/elements/public/WebhookCard/WebhookCard.js +30 -0
- package/dist/elements/public/WebhookCard/WebhookCard.js.map +1 -0
- package/dist/elements/public/WebhookCard/index.d.ts +5 -0
- package/dist/elements/public/WebhookCard/index.js +7 -0
- package/dist/elements/public/WebhookCard/index.js.map +1 -0
- package/dist/elements/public/WebhookCard/types.d.ts +3 -0
- package/dist/elements/public/WebhookCard/types.js +2 -0
- package/dist/elements/public/WebhookCard/types.js.map +1 -0
- package/dist/elements/public/WebhookForm/WebhookForm.d.ts +14 -0
- package/dist/elements/public/WebhookForm/WebhookForm.js +68 -0
- package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -0
- package/dist/elements/public/WebhookForm/index.d.ts +10 -0
- package/dist/elements/public/WebhookForm/index.js +12 -0
- package/dist/elements/public/WebhookForm/index.js.map +1 -0
- package/dist/elements/public/WebhookForm/types.d.ts +3 -0
- package/dist/elements/public/WebhookForm/types.js +2 -0
- package/dist/elements/public/WebhookForm/types.js.map +1 -0
- package/dist/elements/public/WebhookLogCard/WebhookLogCard.d.ts +10 -0
- package/dist/elements/public/WebhookLogCard/WebhookLogCard.js +23 -0
- package/dist/elements/public/WebhookLogCard/WebhookLogCard.js.map +1 -0
- package/dist/elements/public/WebhookLogCard/index.d.ts +4 -0
- package/dist/elements/public/WebhookLogCard/index.js +6 -0
- package/dist/elements/public/WebhookLogCard/index.js.map +1 -0
- package/dist/elements/public/WebhookLogCard/types.d.ts +3 -0
- package/dist/elements/public/WebhookLogCard/types.js +2 -0
- package/dist/elements/public/WebhookLogCard/types.js.map +1 -0
- package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.d.ts +10 -0
- package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js +35 -0
- package/dist/elements/public/WebhookStatusCard/WebhookStatusCard.js.map +1 -0
- package/dist/elements/public/WebhookStatusCard/index.d.ts +4 -0
- package/dist/elements/public/WebhookStatusCard/index.js +6 -0
- package/dist/elements/public/WebhookStatusCard/index.js.map +1 -0
- package/dist/elements/public/WebhookStatusCard/types.d.ts +3 -0
- package/dist/elements/public/WebhookStatusCard/types.js +2 -0
- package/dist/elements/public/WebhookStatusCard/types.js.map +1 -0
- package/dist/elements/public/index.d.ts +14 -0
- package/dist/elements/public/index.defined.d.ts +14 -0
- package/dist/elements/public/index.defined.js +14 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +14 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/configurable.d.ts +5 -3
- package/dist/mixins/configurable.js +39 -4
- package/dist/mixins/configurable.js.map +1 -1
- package/dist/mixins/inferrable.d.ts +15 -0
- package/dist/mixins/inferrable.js +66 -0
- package/dist/mixins/inferrable.js.map +1 -0
- package/dist/mixins/themeable.js +104 -16
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.d.ts +3 -1
- package/dist/mixins/translatable.js +13 -1
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +2 -2
- package/dist/cdn/shared-102cccce.js +0 -1
- package/dist/cdn/shared-1b98e51a.js +0 -1
- package/dist/cdn/shared-50f0611d.js +0 -15
- package/dist/cdn/shared-58debe59.js +0 -1
- package/dist/cdn/shared-5bf4b9f9.js +0 -1
- package/dist/cdn/shared-84731e61.js +0 -1
- package/dist/cdn/shared-930bbe32.js +0 -1
- package/dist/cdn/shared-a821b675.js +0 -1
- package/dist/cdn/shared-ebd1dc3f.js +0 -1
- package/dist/cdn/shared-f7a9db82.js +0 -1
- package/dist/cdn/shared-f92fa56a.js +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
2
|
+
import { InternalCard } from "../../internal/InternalCard/InternalCard.js";
|
|
3
|
+
import { html } from 'lit-html';
|
|
4
|
+
import { classMap } from "../../../utils/class-map.js";
|
|
5
|
+
const NS = 'webhook-status-card';
|
|
6
|
+
const Base = TranslatableMixin(InternalCard, NS);
|
|
7
|
+
export class WebhookStatusCard extends Base {
|
|
8
|
+
renderBody() {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const status = (_a = this.data) === null || _a === void 0 ? void 0 : _a.status;
|
|
11
|
+
return html `
|
|
12
|
+
<p class="flex justify-between items-center leading-none">
|
|
13
|
+
<foxy-i18n
|
|
14
|
+
.options=${{ value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.date_created }}
|
|
15
|
+
class="font-semibold"
|
|
16
|
+
infer=""
|
|
17
|
+
key="date"
|
|
18
|
+
>
|
|
19
|
+
</foxy-i18n>
|
|
20
|
+
|
|
21
|
+
<foxy-i18n
|
|
22
|
+
class=${classMap({
|
|
23
|
+
'text-error': status === 'failed',
|
|
24
|
+
'text-tertiary': status === 'pending',
|
|
25
|
+
'text-success': status === 'successful',
|
|
26
|
+
})}
|
|
27
|
+
infer=""
|
|
28
|
+
key="status_${status}"
|
|
29
|
+
>
|
|
30
|
+
</foxy-i18n>
|
|
31
|
+
</p>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=WebhookStatusCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebhookStatusCard.js","sourceRoot":"","sources":["../../../../src/elements/public/WebhookStatusCard/WebhookStatusCard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,YAAY,EAAE,oDAAiD;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,EAAE,GAAG,qBAAqB,CAAC;AACjC,MAAM,IAAI,GAAG,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AAEjD,MAAM,OAAO,iBAAkB,SAAQ,IAAU;IAC/C,UAAU;;QACR,MAAM,MAAM,SAAG,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC;QAEjC,OAAO,IAAI,CAAA;;;qBAGM,EAAE,KAAK,QAAE,IAAI,CAAC,IAAI,0CAAE,YAAY,EAAE;;;;;;;;kBAQrC,QAAQ,CAAC;YACf,YAAY,EAAE,MAAM,KAAK,QAAQ;YACjC,eAAe,EAAE,MAAM,KAAK,SAAS;YACrC,cAAc,EAAE,MAAM,KAAK,YAAY;SACxC,CAAC;;wBAEY,MAAM;;;;KAIzB,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { TemplateResult } from 'lit-html';\nimport type { Data } from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { InternalCard } from '../../internal/InternalCard/InternalCard';\nimport { html } from 'lit-html';\nimport { classMap } from '../../../utils/class-map';\n\nconst NS = 'webhook-status-card';\nconst Base = TranslatableMixin(InternalCard, NS);\n\nexport class WebhookStatusCard extends Base<Data> {\n renderBody(): TemplateResult {\n const status = this.data?.status;\n\n return html`\n <p class=\"flex justify-between items-center leading-none\">\n <foxy-i18n\n .options=${{ value: this.data?.date_created }}\n class=\"font-semibold\"\n infer=\"\"\n key=\"date\"\n >\n </foxy-i18n>\n\n <foxy-i18n\n class=${classMap({\n 'text-error': status === 'failed',\n 'text-tertiary': status === 'pending',\n 'text-success': status === 'successful',\n })}\n infer=\"\"\n key=\"status_${status}\"\n >\n </foxy-i18n>\n </p>\n `;\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "../I18n/index.js";
|
|
2
|
+
import "../../internal/InternalCard/index.js";
|
|
3
|
+
import { WebhookStatusCard } from "./WebhookStatusCard.js";
|
|
4
|
+
customElements.define('foxy-webhook-status-card', WebhookStatusCard);
|
|
5
|
+
export { WebhookStatusCard };
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/WebhookStatusCard/index.ts"],"names":[],"mappings":"AAAA,0BAAuB;AACvB,8CAA2C;AAE3C,OAAO,EAAE,iBAAiB,EAAE,+BAA4B;AAExD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import '../I18n/index';\nimport '../../internal/InternalCard/index';\n\nimport { WebhookStatusCard } from './WebhookStatusCard';\n\ncustomElements.define('foxy-webhook-status-card', WebhookStatusCard);\n\nexport { WebhookStatusCard };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/WebhookStatusCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Rels } from '@foxy.io/sdk/backend';\nimport type { Resource } from '@foxy.io/sdk/core';\n\nexport type Data = Resource<Rels.WebhookStatus>;\n"]}
|
|
@@ -7,9 +7,11 @@ export { AttributeForm } from './AttributeForm/AttributeForm';
|
|
|
7
7
|
export { CancellationForm } from './CancellationForm/CancellationForm';
|
|
8
8
|
export { CollectionPage } from './CollectionPage/CollectionPage';
|
|
9
9
|
export { CollectionPages } from './CollectionPages/CollectionPages';
|
|
10
|
+
export { CopyToClipboard } from './CopyToClipboard/CopyToClipboard';
|
|
10
11
|
export { CouponCard } from './CouponCard/CouponCard';
|
|
11
12
|
export { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';
|
|
12
13
|
export { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';
|
|
14
|
+
export { CouponDetailCard } from './CouponDetailCard/index';
|
|
13
15
|
export { CouponForm } from './CouponForm/CouponForm';
|
|
14
16
|
export { Customer } from './Customer/Customer';
|
|
15
17
|
export { CustomerApi } from './CustomerApi/CustomerApi';
|
|
@@ -20,7 +22,9 @@ export { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalS
|
|
|
20
22
|
export { CustomersTable } from './CustomersTable/CustomersTable';
|
|
21
23
|
export { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';
|
|
22
24
|
export { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';
|
|
25
|
+
export { DiscountBuilder } from './DiscountBuilder/DiscountBuilder';
|
|
23
26
|
export { DiscountCard } from './DiscountCard/DiscountCard';
|
|
27
|
+
export { DiscountDetailCard } from './DiscountDetailCard/DiscountDetailCard';
|
|
24
28
|
export { ReportForm } from './ReportForm/ReportForm';
|
|
25
29
|
export { ReportsTable } from './ReportsTable/ReportsTable';
|
|
26
30
|
export { Donation } from './Donation/Donation';
|
|
@@ -33,10 +37,15 @@ export { GiftCardCodeForm } from './GiftCardCodeForm/GiftCardCodeForm';
|
|
|
33
37
|
export { GiftCardCodesForm } from './GiftCardCodesForm/GiftCardCodesForm';
|
|
34
38
|
export { GiftCardForm } from './GiftCardForm/GiftCardForm';
|
|
35
39
|
export { I18n } from './I18n/I18n';
|
|
40
|
+
export { ItemCard } from './ItemCard/ItemCard';
|
|
41
|
+
export { ItemForm } from './ItemForm/ItemForm';
|
|
42
|
+
export { ItemOptionCard } from './ItemOptionCard/ItemOptionCard';
|
|
43
|
+
export { ItemOptionForm } from './ItemOptionForm/ItemOptionForm';
|
|
36
44
|
export { ItemsForm, Item } from './ItemsForm/ItemsForm';
|
|
37
45
|
export { NucleonElement } from './NucleonElement/NucleonElement';
|
|
38
46
|
export { Pagination } from './Pagination/Pagination';
|
|
39
47
|
export { PaymentCard } from './PaymentCard/PaymentCard';
|
|
48
|
+
export { ShipmentCard } from './ShipmentCard/ShipmentCard';
|
|
40
49
|
export { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';
|
|
41
50
|
export { QueryBuilder } from './QueryBuilder/QueryBuilder';
|
|
42
51
|
export { SignInForm } from './SignInForm/SignInForm';
|
|
@@ -51,6 +60,11 @@ export { TaxForm } from './TaxForm/TaxForm';
|
|
|
51
60
|
export { TemplateForm } from './TemplateForm/TemplateForm';
|
|
52
61
|
export { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';
|
|
53
62
|
export { TransactionCard } from './TransactionCard/TransactionCard';
|
|
63
|
+
export { Transaction } from './Transaction/Transaction';
|
|
54
64
|
export { TransactionsTable } from './TransactionsTable/TransactionsTable';
|
|
55
65
|
export { UserForm } from './UserForm/UserForm';
|
|
56
66
|
export { UsersTable } from './UsersTable/UsersTable';
|
|
67
|
+
export { WebhookCard } from './WebhookCard/WebhookCard';
|
|
68
|
+
export { WebhookForm } from './WebhookForm/WebhookForm';
|
|
69
|
+
export { WebhookLogCard } from './WebhookLogCard/WebhookLogCard';
|
|
70
|
+
export { WebhookStatusCard } from './WebhookStatusCard/WebhookStatusCard';
|
|
@@ -7,9 +7,11 @@ export { AttributeForm } from './AttributeForm/index';
|
|
|
7
7
|
export { CancellationForm } from './CancellationForm/index';
|
|
8
8
|
export { CollectionPage } from './CollectionPage/index';
|
|
9
9
|
export { CollectionPages } from './CollectionPages/index';
|
|
10
|
+
export { CopyToClipboard } from './CopyToClipboard/index';
|
|
10
11
|
export { CouponCard } from './CouponCard/index';
|
|
11
12
|
export { CouponCodeForm } from './CouponCodeForm/index';
|
|
12
13
|
export { CouponCodesForm } from './CouponCodesForm/index';
|
|
14
|
+
export { CouponDetailCard } from './CouponDetailCard/index';
|
|
13
15
|
export { CouponForm } from './CouponForm/index';
|
|
14
16
|
export { Customer } from './Customer/index';
|
|
15
17
|
export { CustomerApi } from './CustomerApi/index';
|
|
@@ -20,7 +22,9 @@ export { CustomerPortalSettings } from './CustomerPortalSettings/index';
|
|
|
20
22
|
export { CustomersTable } from './CustomersTable/index';
|
|
21
23
|
export { CustomFieldCard } from './CustomFieldCard/index';
|
|
22
24
|
export { CustomFieldForm } from './CustomFieldForm/index';
|
|
25
|
+
export { DiscountBuilder } from './DiscountBuilder/index';
|
|
23
26
|
export { DiscountCard } from './DiscountCard/index';
|
|
27
|
+
export { DiscountDetailCard } from './DiscountDetailCard/index';
|
|
24
28
|
export { ReportForm } from './ReportForm/index';
|
|
25
29
|
export { ReportsTable } from './ReportsTable/index';
|
|
26
30
|
export { Donation } from './Donation/index';
|
|
@@ -33,10 +37,15 @@ export { GiftCardCodeForm } from './GiftCardCodeForm/index';
|
|
|
33
37
|
export { GiftCardCodesForm } from './GiftCardCodesForm/index';
|
|
34
38
|
export { GiftCardForm } from './GiftCardForm/index';
|
|
35
39
|
export { I18n } from './I18n/index';
|
|
40
|
+
export { ItemCard } from './ItemCard/index';
|
|
41
|
+
export { ItemForm } from './ItemForm/index';
|
|
42
|
+
export { ItemOptionCard } from './ItemOptionCard/index';
|
|
43
|
+
export { ItemOptionForm } from './ItemOptionForm/index';
|
|
36
44
|
export { ItemsForm, Item } from './ItemsForm/index';
|
|
37
45
|
export { NucleonElement } from './NucleonElement/index';
|
|
38
46
|
export { Pagination } from './Pagination/index';
|
|
39
47
|
export { PaymentCard } from './PaymentCard/index';
|
|
48
|
+
export { ShipmentCard } from './ShipmentCard/index';
|
|
40
49
|
export { PaymentMethodCard } from './PaymentMethodCard/index';
|
|
41
50
|
export { QueryBuilder } from './QueryBuilder/index';
|
|
42
51
|
export { SignInForm } from './SignInForm/index';
|
|
@@ -51,6 +60,11 @@ export { TaxForm } from './TaxForm/index';
|
|
|
51
60
|
export { TemplateConfigForm } from './TemplateConfigForm/index';
|
|
52
61
|
export { TemplateForm } from './TemplateForm/index';
|
|
53
62
|
export { TransactionCard } from './TransactionCard/index';
|
|
63
|
+
export { Transaction } from './Transaction/index';
|
|
54
64
|
export { TransactionsTable } from './TransactionsTable/index';
|
|
55
65
|
export { UserForm } from './UserForm/index';
|
|
56
66
|
export { UsersTable } from './UsersTable/index';
|
|
67
|
+
export { WebhookCard } from './WebhookCard/index';
|
|
68
|
+
export { WebhookForm } from './WebhookForm/index';
|
|
69
|
+
export { WebhookLogCard } from './WebhookLogCard/index';
|
|
70
|
+
export { WebhookStatusCard } from './WebhookStatusCard/index';
|
|
@@ -7,9 +7,11 @@ export { AttributeForm } from "./AttributeForm/index.js";
|
|
|
7
7
|
export { CancellationForm } from "./CancellationForm/index.js";
|
|
8
8
|
export { CollectionPage } from "./CollectionPage/index.js";
|
|
9
9
|
export { CollectionPages } from "./CollectionPages/index.js";
|
|
10
|
+
export { CopyToClipboard } from "./CopyToClipboard/index.js";
|
|
10
11
|
export { CouponCard } from "./CouponCard/index.js";
|
|
11
12
|
export { CouponCodeForm } from "./CouponCodeForm/index.js";
|
|
12
13
|
export { CouponCodesForm } from "./CouponCodesForm/index.js";
|
|
14
|
+
export { CouponDetailCard } from "./CouponDetailCard/index.js";
|
|
13
15
|
export { CouponForm } from "./CouponForm/index.js";
|
|
14
16
|
export { Customer } from "./Customer/index.js";
|
|
15
17
|
export { CustomerApi } from "./CustomerApi/index.js";
|
|
@@ -20,7 +22,9 @@ export { CustomerPortalSettings } from "./CustomerPortalSettings/index.js";
|
|
|
20
22
|
export { CustomersTable } from "./CustomersTable/index.js";
|
|
21
23
|
export { CustomFieldCard } from "./CustomFieldCard/index.js";
|
|
22
24
|
export { CustomFieldForm } from "./CustomFieldForm/index.js";
|
|
25
|
+
export { DiscountBuilder } from "./DiscountBuilder/index.js";
|
|
23
26
|
export { DiscountCard } from "./DiscountCard/index.js";
|
|
27
|
+
export { DiscountDetailCard } from "./DiscountDetailCard/index.js";
|
|
24
28
|
export { ReportForm } from "./ReportForm/index.js";
|
|
25
29
|
export { ReportsTable } from "./ReportsTable/index.js";
|
|
26
30
|
export { Donation } from "./Donation/index.js";
|
|
@@ -33,10 +37,15 @@ export { GiftCardCodeForm } from "./GiftCardCodeForm/index.js";
|
|
|
33
37
|
export { GiftCardCodesForm } from "./GiftCardCodesForm/index.js";
|
|
34
38
|
export { GiftCardForm } from "./GiftCardForm/index.js";
|
|
35
39
|
export { I18n } from "./I18n/index.js";
|
|
40
|
+
export { ItemCard } from "./ItemCard/index.js";
|
|
41
|
+
export { ItemForm } from "./ItemForm/index.js";
|
|
42
|
+
export { ItemOptionCard } from "./ItemOptionCard/index.js";
|
|
43
|
+
export { ItemOptionForm } from "./ItemOptionForm/index.js";
|
|
36
44
|
export { ItemsForm, Item } from "./ItemsForm/index.js";
|
|
37
45
|
export { NucleonElement } from "./NucleonElement/index.js";
|
|
38
46
|
export { Pagination } from "./Pagination/index.js";
|
|
39
47
|
export { PaymentCard } from "./PaymentCard/index.js";
|
|
48
|
+
export { ShipmentCard } from "./ShipmentCard/index.js";
|
|
40
49
|
export { PaymentMethodCard } from "./PaymentMethodCard/index.js";
|
|
41
50
|
export { QueryBuilder } from "./QueryBuilder/index.js";
|
|
42
51
|
export { SignInForm } from "./SignInForm/index.js";
|
|
@@ -51,7 +60,12 @@ export { TaxForm } from "./TaxForm/index.js";
|
|
|
51
60
|
export { TemplateConfigForm } from "./TemplateConfigForm/index.js";
|
|
52
61
|
export { TemplateForm } from "./TemplateForm/index.js";
|
|
53
62
|
export { TransactionCard } from "./TransactionCard/index.js";
|
|
63
|
+
export { Transaction } from "./Transaction/index.js";
|
|
54
64
|
export { TransactionsTable } from "./TransactionsTable/index.js";
|
|
55
65
|
export { UserForm } from "./UserForm/index.js";
|
|
56
66
|
export { UsersTable } from "./UsersTable/index.js";
|
|
67
|
+
export { WebhookCard } from "./WebhookCard/index.js";
|
|
68
|
+
export { WebhookForm } from "./WebhookForm/index.js";
|
|
69
|
+
export { WebhookLogCard } from "./WebhookLogCard/index.js";
|
|
70
|
+
export { WebhookStatusCard } from "./WebhookStatusCard/index.js";
|
|
57
71
|
//# sourceMappingURL=index.defined.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YA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,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { CouponCard } from './CouponCard/index';\nexport { CouponCodeForm } from './CouponCodeForm/index';\nexport { CouponCodesForm } from './CouponCodesForm/index';\nexport { CouponForm } from './CouponForm/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { ReportForm } from './ReportForm/index';\nexport { ReportsTable } from './ReportsTable/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { GenerateCodesForm } from './GenerateCodesForm/index';\nexport { GiftCardCard } from './GiftCardCard/index';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/index';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/index';\nexport { GiftCardForm } from './GiftCardForm/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { Pagination } from './Pagination/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { SwipeActions } from './SwipeActions/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
|
|
1
|
+
{"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,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AAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { CopyToClipboard } from './CopyToClipboard/index';\nexport { CouponCard } from './CouponCard/index';\nexport { CouponCodeForm } from './CouponCodeForm/index';\nexport { CouponCodesForm } from './CouponCodesForm/index';\nexport { CouponDetailCard } from './CouponDetailCard/index';\nexport { CouponForm } from './CouponForm/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountBuilder } from './DiscountBuilder/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { DiscountDetailCard } from './DiscountDetailCard/index';\nexport { ReportForm } from './ReportForm/index';\nexport { ReportsTable } from './ReportsTable/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { GenerateCodesForm } from './GenerateCodesForm/index';\nexport { GiftCardCard } from './GiftCardCard/index';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/index';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/index';\nexport { GiftCardForm } from './GiftCardForm/index';\nexport { I18n } from './I18n/index';\nexport { ItemCard } from './ItemCard/index';\nexport { ItemForm } from './ItemForm/index';\nexport { ItemOptionCard } from './ItemOptionCard/index';\nexport { ItemOptionForm } from './ItemOptionForm/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { Pagination } from './Pagination/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { ShipmentCard } from './ShipmentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { SwipeActions } from './SwipeActions/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateConfigForm } from './TemplateConfigForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { Transaction } from './Transaction/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\nexport { WebhookCard } from './WebhookCard/index';\nexport { WebhookForm } from './WebhookForm/index';\nexport { WebhookLogCard } from './WebhookLogCard/index';\nexport { WebhookStatusCard } from './WebhookStatusCard/index';\n"]}
|
|
@@ -7,9 +7,11 @@ export { AttributeForm } from "./AttributeForm/AttributeForm.js";
|
|
|
7
7
|
export { CancellationForm } from "./CancellationForm/CancellationForm.js";
|
|
8
8
|
export { CollectionPage } from "./CollectionPage/CollectionPage.js";
|
|
9
9
|
export { CollectionPages } from "./CollectionPages/CollectionPages.js";
|
|
10
|
+
export { CopyToClipboard } from "./CopyToClipboard/CopyToClipboard.js";
|
|
10
11
|
export { CouponCard } from "./CouponCard/CouponCard.js";
|
|
11
12
|
export { CouponCodeForm } from "./CouponCodeForm/CouponCodeForm.js";
|
|
12
13
|
export { CouponCodesForm } from "./CouponCodesForm/CouponCodesForm.js";
|
|
14
|
+
export { CouponDetailCard } from "./CouponDetailCard/index.js";
|
|
13
15
|
export { CouponForm } from "./CouponForm/CouponForm.js";
|
|
14
16
|
export { Customer } from "./Customer/Customer.js";
|
|
15
17
|
export { CustomerApi } from "./CustomerApi/CustomerApi.js";
|
|
@@ -20,7 +22,9 @@ export { CustomerPortalSettings } from "./CustomerPortalSettings/CustomerPortalS
|
|
|
20
22
|
export { CustomersTable } from "./CustomersTable/CustomersTable.js";
|
|
21
23
|
export { CustomFieldCard } from "./CustomFieldCard/CustomFieldCard.js";
|
|
22
24
|
export { CustomFieldForm } from "./CustomFieldForm/CustomFieldForm.js";
|
|
25
|
+
export { DiscountBuilder } from "./DiscountBuilder/DiscountBuilder.js";
|
|
23
26
|
export { DiscountCard } from "./DiscountCard/DiscountCard.js";
|
|
27
|
+
export { DiscountDetailCard } from "./DiscountDetailCard/DiscountDetailCard.js";
|
|
24
28
|
export { ReportForm } from "./ReportForm/ReportForm.js";
|
|
25
29
|
export { ReportsTable } from "./ReportsTable/ReportsTable.js";
|
|
26
30
|
export { Donation } from "./Donation/Donation.js";
|
|
@@ -33,10 +37,15 @@ export { GiftCardCodeForm } from "./GiftCardCodeForm/GiftCardCodeForm.js";
|
|
|
33
37
|
export { GiftCardCodesForm } from "./GiftCardCodesForm/GiftCardCodesForm.js";
|
|
34
38
|
export { GiftCardForm } from "./GiftCardForm/GiftCardForm.js";
|
|
35
39
|
export { I18n } from "./I18n/I18n.js";
|
|
40
|
+
export { ItemCard } from "./ItemCard/ItemCard.js";
|
|
41
|
+
export { ItemForm } from "./ItemForm/ItemForm.js";
|
|
42
|
+
export { ItemOptionCard } from "./ItemOptionCard/ItemOptionCard.js";
|
|
43
|
+
export { ItemOptionForm } from "./ItemOptionForm/ItemOptionForm.js";
|
|
36
44
|
export { ItemsForm, Item } from "./ItemsForm/ItemsForm.js";
|
|
37
45
|
export { NucleonElement } from "./NucleonElement/NucleonElement.js";
|
|
38
46
|
export { Pagination } from "./Pagination/Pagination.js";
|
|
39
47
|
export { PaymentCard } from "./PaymentCard/PaymentCard.js";
|
|
48
|
+
export { ShipmentCard } from "./ShipmentCard/ShipmentCard.js";
|
|
40
49
|
export { PaymentMethodCard } from "./PaymentMethodCard/PaymentMethodCard.js";
|
|
41
50
|
export { QueryBuilder } from "./QueryBuilder/QueryBuilder.js";
|
|
42
51
|
export { SignInForm } from "./SignInForm/SignInForm.js";
|
|
@@ -51,7 +60,12 @@ export { TaxForm } from "./TaxForm/TaxForm.js";
|
|
|
51
60
|
export { TemplateForm } from "./TemplateForm/TemplateForm.js";
|
|
52
61
|
export { TemplateConfigForm } from "./TemplateConfigForm/TemplateConfigForm.js";
|
|
53
62
|
export { TransactionCard } from "./TransactionCard/TransactionCard.js";
|
|
63
|
+
export { Transaction } from "./Transaction/Transaction.js";
|
|
54
64
|
export { TransactionsTable } from "./TransactionsTable/TransactionsTable.js";
|
|
55
65
|
export { UserForm } from "./UserForm/UserForm.js";
|
|
56
66
|
export { UsersTable } from "./UsersTable/UsersTable.js";
|
|
67
|
+
export { WebhookCard } from "./WebhookCard/WebhookCard.js";
|
|
68
|
+
export { WebhookForm } from "./WebhookForm/WebhookForm.js";
|
|
69
|
+
export { WebhookLogCard } from "./WebhookLogCard/WebhookLogCard.js";
|
|
70
|
+
export { WebhookStatusCard } from "./WebhookStatusCard/WebhookStatusCard.js";
|
|
57
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA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DAA8C;AAC1E,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { CouponCard } from './CouponCard/CouponCard';\nexport { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';\nexport { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';\nexport { CouponForm } from './CouponForm/CouponForm';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { ReportForm } from './ReportForm/ReportForm';\nexport { ReportsTable } from './ReportsTable/ReportsTable';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';\nexport { GiftCardCard } from './GiftCardCard/GiftCardCard';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/GiftCardCodeForm';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/GiftCardCodesForm';\nexport { GiftCardForm } from './GiftCardForm/GiftCardForm';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { Pagination } from './Pagination/Pagination';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { SwipeActions } from './SwipeActions/SwipeActions';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,sBAAsB,EAAE,2DAAwD;AACzF,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6C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AE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { CopyToClipboard } from './CopyToClipboard/CopyToClipboard';\nexport { CouponCard } from './CouponCard/CouponCard';\nexport { CouponCodeForm } from './CouponCodeForm/CouponCodeForm';\nexport { CouponCodesForm } from './CouponCodesForm/CouponCodesForm';\nexport { CouponDetailCard } from './CouponDetailCard/index';\nexport { CouponForm } from './CouponForm/CouponForm';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountBuilder } from './DiscountBuilder/DiscountBuilder';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { DiscountDetailCard } from './DiscountDetailCard/DiscountDetailCard';\nexport { ReportForm } from './ReportForm/ReportForm';\nexport { ReportsTable } from './ReportsTable/ReportsTable';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { GenerateCodesForm } from './GenerateCodesForm/GenerateCodesForm';\nexport { GiftCardCard } from './GiftCardCard/GiftCardCard';\nexport { GiftCardCodeForm } from './GiftCardCodeForm/GiftCardCodeForm';\nexport { GiftCardCodesForm } from './GiftCardCodesForm/GiftCardCodesForm';\nexport { GiftCardForm } from './GiftCardForm/GiftCardForm';\nexport { I18n } from './I18n/I18n';\nexport { ItemCard } from './ItemCard/ItemCard';\nexport { ItemForm } from './ItemForm/ItemForm';\nexport { ItemOptionCard } from './ItemOptionCard/ItemOptionCard';\nexport { ItemOptionForm } from './ItemOptionForm/ItemOptionForm';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { Pagination } from './Pagination/Pagination';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { ShipmentCard } from './ShipmentCard/ShipmentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { SwipeActions } from './SwipeActions/SwipeActions';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TemplateConfigForm } from './TemplateConfigForm/TemplateConfigForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { Transaction } from './Transaction/Transaction';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\nexport { WebhookCard } from './WebhookCard/WebhookCard';\nexport { WebhookForm } from './WebhookForm/WebhookForm';\nexport { WebhookLogCard } from './WebhookLogCard/WebhookLogCard';\nexport { WebhookStatusCard } from './WebhookStatusCard/WebhookStatusCard';\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Constructor, LitElement, PropertyDeclarations, TemplateResult, html } from 'lit-element';
|
|
2
2
|
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
3
|
+
import { InferrableMixinHost } from './inferrable';
|
|
3
4
|
export declare class ConfigurableMixinHost {
|
|
4
5
|
/** Template render functions mapped to their name. */
|
|
5
6
|
templates: Partial<Record<string, Renderer<any>>>;
|
|
@@ -93,9 +94,9 @@ export declare class ConfigurableMixinHost {
|
|
|
93
94
|
* For empty name looks for a "default" template first and renders it if found – otherwise renders a default slot.
|
|
94
95
|
*
|
|
95
96
|
* @param name Name of the template/slot to render.
|
|
96
|
-
* @param
|
|
97
|
+
* @param context Context to provide template renderer with.
|
|
97
98
|
*/
|
|
98
|
-
renderTemplateOrSlot(name?: string,
|
|
99
|
+
renderTemplateOrSlot(name?: string, context?: any): void;
|
|
99
100
|
/**
|
|
100
101
|
* Zooms into templates with complex names. For example, zooming on `customer` in `customer:header:before`
|
|
101
102
|
* will return `header:before`.
|
|
@@ -104,8 +105,9 @@ export declare class ConfigurableMixinHost {
|
|
|
104
105
|
*/
|
|
105
106
|
getNestedTemplates<T extends Partial<Record<string, Renderer<any>>>>(id: string): T;
|
|
106
107
|
}
|
|
107
|
-
declare type Base = Constructor<LitElement> & {
|
|
108
|
+
declare type Base = Constructor<InferrableMixinHost> & Constructor<LitElement> & {
|
|
108
109
|
properties?: PropertyDeclarations;
|
|
110
|
+
inferredProperties: string[];
|
|
109
111
|
};
|
|
110
112
|
declare type TemplateFunction = typeof html;
|
|
111
113
|
export declare type Renderer<THost> = (html: TemplateFunction, host: THost) => TemplateResult;
|
|
@@ -16,6 +16,19 @@ export const ConfigurableMixin = (BaseElement) => {
|
|
|
16
16
|
this.hiddenControls = BooleanSelector.False;
|
|
17
17
|
this.__observer = new MutationObserver(() => this.__onMutation());
|
|
18
18
|
}
|
|
19
|
+
static get inferredProperties() {
|
|
20
|
+
return [
|
|
21
|
+
...super.inferredProperties,
|
|
22
|
+
'disabledSelector',
|
|
23
|
+
'readonlySelector',
|
|
24
|
+
'hiddenSelector',
|
|
25
|
+
'templates',
|
|
26
|
+
'disabled',
|
|
27
|
+
'readonly',
|
|
28
|
+
'hidden',
|
|
29
|
+
'mode',
|
|
30
|
+
];
|
|
31
|
+
}
|
|
19
32
|
static get properties() {
|
|
20
33
|
return {
|
|
21
34
|
...super.properties,
|
|
@@ -86,7 +99,7 @@ export const ConfigurableMixin = (BaseElement) => {
|
|
|
86
99
|
});
|
|
87
100
|
this.templates = templates;
|
|
88
101
|
}
|
|
89
|
-
renderTemplateOrSlot(name,
|
|
102
|
+
renderTemplateOrSlot(name, context) {
|
|
90
103
|
const templateName = name !== null && name !== void 0 ? name : 'default';
|
|
91
104
|
const template = this.templates[templateName];
|
|
92
105
|
if (!template)
|
|
@@ -94,15 +107,14 @@ export const ConfigurableMixin = (BaseElement) => {
|
|
|
94
107
|
const renderer = () => {
|
|
95
108
|
try {
|
|
96
109
|
const target = {};
|
|
97
|
-
const
|
|
110
|
+
const resolvedContext = context !== null && context !== void 0 ? context : this;
|
|
111
|
+
const proxy = new Proxy(target, { get: (_, key) => resolvedContext[key] });
|
|
98
112
|
return template === null || template === void 0 ? void 0 : template(html, proxy);
|
|
99
113
|
}
|
|
100
114
|
catch (err) {
|
|
101
115
|
console.error(err);
|
|
102
116
|
}
|
|
103
117
|
};
|
|
104
|
-
if (__noSandbox)
|
|
105
|
-
return renderer();
|
|
106
118
|
return html `
|
|
107
119
|
<foxy-internal-sandbox data-testid=${templateName} .render=${renderer}>
|
|
108
120
|
</foxy-internal-sandbox>
|
|
@@ -118,6 +130,29 @@ export const ConfigurableMixin = (BaseElement) => {
|
|
|
118
130
|
});
|
|
119
131
|
return nestedTemplates;
|
|
120
132
|
}
|
|
133
|
+
applyInferredProperties(context) {
|
|
134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
135
|
+
super.applyInferredProperties(context);
|
|
136
|
+
if (this.infer === null)
|
|
137
|
+
return;
|
|
138
|
+
const disabledSelector = context.get('disabledSelector');
|
|
139
|
+
const disabled = context.get('disabled');
|
|
140
|
+
const readonlySelector = context.get('readonlySelector');
|
|
141
|
+
const readonly = context.get('readonly');
|
|
142
|
+
const hiddenSelector = context.get('hiddenSelector');
|
|
143
|
+
const hidden = context.get('hidden');
|
|
144
|
+
const templates = context.get('templates');
|
|
145
|
+
const mode = context.get('mode');
|
|
146
|
+
this.disabledControls = (_a = disabledSelector === null || disabledSelector === void 0 ? void 0 : disabledSelector.zoom(this.infer)) !== null && _a !== void 0 ? _a : BooleanSelector.False;
|
|
147
|
+
this.disabled = (_c = (_b = disabledSelector === null || disabledSelector === void 0 ? void 0 : disabledSelector.matches(this.infer, true)) !== null && _b !== void 0 ? _b : disabled) !== null && _c !== void 0 ? _c : false;
|
|
148
|
+
this.readonlyControls = (_d = readonlySelector === null || readonlySelector === void 0 ? void 0 : readonlySelector.zoom(this.infer)) !== null && _d !== void 0 ? _d : BooleanSelector.False;
|
|
149
|
+
this.readonly = (_f = (_e = readonlySelector === null || readonlySelector === void 0 ? void 0 : readonlySelector.matches(this.infer, true)) !== null && _e !== void 0 ? _e : readonly) !== null && _f !== void 0 ? _f : false;
|
|
150
|
+
this.hiddenControls = (_g = hiddenSelector === null || hiddenSelector === void 0 ? void 0 : hiddenSelector.zoom(this.infer)) !== null && _g !== void 0 ? _g : BooleanSelector.False;
|
|
151
|
+
this.hidden = (_j = (_h = hiddenSelector === null || hiddenSelector === void 0 ? void 0 : hiddenSelector.matches(this.infer, true)) !== null && _h !== void 0 ? _h : hidden) !== null && _j !== void 0 ? _j : false;
|
|
152
|
+
this.templates = templates !== null && templates !== void 0 ? templates : {};
|
|
153
|
+
this.templates = this.getNestedTemplates(this.infer);
|
|
154
|
+
this.mode = mode !== null && mode !== void 0 ? mode : 'production';
|
|
155
|
+
}
|
|
121
156
|
__observe() {
|
|
122
157
|
this.__observer.observe(this, {
|
|
123
158
|
characterData: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurable.js","sourceRoot":"","sources":["../../src/mixins/configurable.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAAiE,IAAI,EAAE,MAAM,aAAa,CAAC;AAElG,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AA4H3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,WAAkB,EAC0B,EAAE;IAC9C,OAAO,MAAM,mBAAoB,SAAQ,WAAW;QAA7C;;YA4BL,cAAS,GAAG,EAA4C,CAAC;YAEzD,SAAI,GAAiC,YAAY,CAAC;YAElD,aAAQ,GAAG,KAAK,CAAC;YAEjB,qBAAgB,GAAoB,eAAe,CAAC,KAAK,CAAC;YAE1D,aAAQ,GAAG,KAAK,CAAC;YAEjB,qBAAgB,GAAoB,eAAe,CAAC,KAAK,CA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AK,CAAC,EAAE;gBACxC,IAAI,KAAK,CAAC,SAAS,KAAK,UAAU,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC;oBAAE,OAAO;gBAC1E,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,KAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC1E,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport { Constructor, LitElement, PropertyDeclarations, TemplateResult, html } from 'lit-element';\n\nimport { BooleanSelector } from '@foxy.io/sdk/core';\nimport { ifDefined } from 'lit-html/directives/if-defined';\n\nexport declare class ConfigurableMixinHost {\n /** Template render functions mapped to their name. */\n templates: Partial<Record<string, Renderer<any>>>;\n\n /**\n * Toggles additional functionality for developers on and off. In particular,\n * setting this property (or attribute with the same name) to \"development\" will\n * start tracking changes in templates, allowing developers to edit HTML in the browser\n * and see results without having to refresh the page every time.\n */\n mode: 'development' | 'production';\n\n /**\n * If true, makes every editable control inside of this element read-only.\n * This property is reflected to the `readonly` boolean attribute.\n *\n * @since 1.4.0\n */\n readonly: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to render as read-only. Parsed version of the `readonlycontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n readonlyControls: BooleanSelector;\n\n /**\n * If true, disables every interactive control inside of this element.\n * This property is reflected to the `disabled` boolean attribute.\n *\n * @since 1.4.0\n */\n disabled: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to render as disabled. Parsed version of the `disabledcontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n disabledControls: BooleanSelector;\n\n /**\n * If true, hides every configurable control inside of this element.\n * This property is reflected to the `hidden` boolean attribute.\n *\n * @since 1.4.0\n */\n hidden: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to hide. Parsed version of the `hiddencontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n hiddenControls: BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `readonlyControls`\n * and `readonly` properties. If `readonly` is true, this selector will match any control,\n * otherwise it will match the same controls as in `readonlyControls`.\n *\n * @since 1.4.0\n */\n get readonlySelector(): BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `disabledControls`\n * and `disabled` properties. If `disabled` is true, this selector will match any control,\n * otherwise it will match the same controls as in `disabledControls`.\n *\n * @since 1.4.0\n */\n get disabledSelector(): BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `hiddenControls`\n * and `hidden` properties. If `hidden` is true, this selector will match any control,\n * otherwise it will match the same controls as in `hiddenControls`.\n *\n * @since 1.4.0\n */\n get hiddenSelector(): BooleanSelector;\n\n /**\n * Looks for templates in element's children and compiles them to render functions.\n *\n * @param replace If true, all existing templates will be removed.\n */\n compileTemplates(replace?: boolean): void;\n\n /**\n * Renders a template with the given name if available and a slot otherwise.\n * For empty name looks for a \"default\" template first and renders it if found – otherwise renders a default slot.\n *\n * @param name Name of the template/slot to render.\n * @param __noSandbox INTERNAL - if true, doesn't isolate template content in a sandbox.\n */\n renderTemplateOrSlot(name?: string, __noSandbox?: boolean): void;\n\n /**\n * Zooms into templates with complex names. For example, zooming on `customer` in `customer:header:before`\n * will return `header:before`.\n *\n * @param id Name to zoom on.\n */\n getNestedTemplates<T extends Partial<Record<string, Renderer<any>>>>(id: string): T;\n}\n\ntype Base = Constructor<LitElement> & { properties?: PropertyDeclarations };\ntype TemplateFunction = typeof html;\nexport type Renderer<THost> = (html: TemplateFunction, host: THost) => TemplateResult;\n\nexport const ConfigurableMixin = <TBase extends Base>(\n BaseElement: TBase\n): TBase & Constructor<ConfigurableMixinHost> => {\n return class ConfigurableElement extends BaseElement {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n\n templates: { attribute: false },\n mode: { type: String },\n\n readonly: { type: Boolean, reflect: true },\n readonlyControls: {\n attribute: 'readonlycontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n\n disabled: { type: Boolean, reflect: true },\n disabledControls: {\n attribute: 'disabledcontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n\n hidden: { type: Boolean, reflect: true },\n hiddenControls: {\n attribute: 'hiddencontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n };\n }\n\n templates = {} as Partial<Record<string, Renderer<any>>>;\n\n mode: 'development' | 'production' = 'production';\n\n readonly = false;\n\n readonlyControls: BooleanSelector = BooleanSelector.False;\n\n disabled = false;\n\n disabledControls: BooleanSelector = BooleanSelector.False;\n\n hidden = false;\n\n hiddenControls: BooleanSelector = BooleanSelector.False;\n\n private readonly __observer = new MutationObserver(() => this.__onMutation());\n\n get readonlySelector(): BooleanSelector {\n return this.readonly ? BooleanSelector.True : this.readonlyControls;\n }\n\n get disabledSelector(): BooleanSelector {\n return this.disabled ? BooleanSelector.True : this.disabledControls;\n }\n\n get hiddenSelector(): BooleanSelector {\n return this.hidden ? BooleanSelector.True : this.hiddenControls;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n if (this.mode === 'development') this.__observe();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__observer.disconnect();\n }\n\n protected firstUpdated(...args: Parameters<LitElement['firstUpdated']>): void {\n super.firstUpdated(...args);\n if (this.mode === 'production') this.compileTemplates();\n }\n\n protected updated(changes: Map<keyof this, unknown>): void {\n super.updated(changes);\n\n if (changes.has('mode')) {\n this.__observer.disconnect();\n if (this.mode === 'development') this.__observe();\n }\n }\n\n compileTemplates(replace = false): void {\n const templates = replace ? {} : { ...this.templates };\n\n Array.from(this.children).forEach(child => {\n if (child.localName !== 'template') return;\n const slot = child.getAttribute('slot') ?? 'default';\n\n try {\n const script = `return html\\`${child.innerHTML}\\``;\n templates[slot] = new Function('html', 'host', script) as () => TemplateResult;\n } catch (err) {\n console.error(err);\n }\n });\n\n this.templates = templates;\n }\n\n renderTemplateOrSlot(name?: string, __noSandbox = false) {\n const templateName = name ?? 'default';\n const template = this.templates[templateName];\n\n if (!template) return html`<slot name=${ifDefined(name)}></slot>`;\n\n const renderer = () => {\n try {\n const target = {} as unknown as this;\n const proxy = new Proxy(target, { get: (_, p) => this[p as keyof this] });\n return template?.(html, proxy);\n } catch (err) {\n console.error(err);\n }\n };\n\n if (__noSandbox) return renderer();\n\n return html`\n <foxy-internal-sandbox data-testid=${templateName} .render=${renderer}>\n </foxy-internal-sandbox>\n `;\n }\n\n getNestedTemplates<T extends Partial<Record<string, Renderer<any>>>>(id: string): T {\n const nestedTemplates = {} as T;\n\n Object.entries(this.templates).forEach(([key, value]) => {\n if (key.startsWith(`${id}:`)) {\n const zoomedKey = key.replace(`${id}:`, '');\n nestedTemplates[zoomedKey as keyof T] = value as T[keyof T];\n }\n });\n\n return nestedTemplates;\n }\n\n private __observe() {\n this.__observer.observe(this, {\n characterData: true,\n attributes: true,\n childList: true,\n subtree: true,\n });\n\n this.__onMutation();\n }\n\n private __onMutation() {\n const config: MutationObserverInit = {\n characterData: true,\n attributes: true,\n childList: true,\n subtree: true,\n };\n\n this.__observer.disconnect();\n this.__observer.observe(this, config);\n\n Array.from(this.children).forEach(child => {\n if (child.localName !== 'template' || !child.hasAttribute('slot')) return;\n this.__observer.observe((child as HTMLTemplateElement).content, config);\n });\n\n this.compileTemplates(true);\n }\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"configurable.js","source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O,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAEtC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxC,IAAI,KAAK,CAAC,SAAS,KAAK,UAAU,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC;oBAAE,OAAO;gBAC1E,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,KAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC1E,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport { Constructor, LitElement, PropertyDeclarations, TemplateResult, html } from 'lit-element';\n\nimport { BooleanSelector } from '@foxy.io/sdk/core';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { InferrableMixinHost } from './inferrable';\n\nexport declare class ConfigurableMixinHost {\n /** Template render functions mapped to their name. */\n templates: Partial<Record<string, Renderer<any>>>;\n\n /**\n * Toggles additional functionality for developers on and off. In particular,\n * setting this property (or attribute with the same name) to \"development\" will\n * start tracking changes in templates, allowing developers to edit HTML in the browser\n * and see results without having to refresh the page every time.\n */\n mode: 'development' | 'production';\n\n /**\n * If true, makes every editable control inside of this element read-only.\n * This property is reflected to the `readonly` boolean attribute.\n *\n * @since 1.4.0\n */\n readonly: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to render as read-only. Parsed version of the `readonlycontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n readonlyControls: BooleanSelector;\n\n /**\n * If true, disables every interactive control inside of this element.\n * This property is reflected to the `disabled` boolean attribute.\n *\n * @since 1.4.0\n */\n disabled: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to render as disabled. Parsed version of the `disabledcontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n disabledControls: BooleanSelector;\n\n /**\n * If true, hides every configurable control inside of this element.\n * This property is reflected to the `hidden` boolean attribute.\n *\n * @since 1.4.0\n */\n hidden: boolean;\n\n /**\n * [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) selecting\n * controls to hide. Parsed version of the `hiddencontrols` attribute value.\n *\n * @type {BooleanSelector}\n * @since 1.4.0\n * @default BooleanSelector.False\n */\n hiddenControls: BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `readonlyControls`\n * and `readonly` properties. If `readonly` is true, this selector will match any control,\n * otherwise it will match the same controls as in `readonlyControls`.\n *\n * @since 1.4.0\n */\n get readonlySelector(): BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `disabledControls`\n * and `disabled` properties. If `disabled` is true, this selector will match any control,\n * otherwise it will match the same controls as in `disabledControls`.\n *\n * @since 1.4.0\n */\n get disabledSelector(): BooleanSelector;\n\n /**\n * Combined [BooleanSelector](https://sdk.foxy.dev/classes/_core_index_.booleanselector.html) for `hiddenControls`\n * and `hidden` properties. If `hidden` is true, this selector will match any control,\n * otherwise it will match the same controls as in `hiddenControls`.\n *\n * @since 1.4.0\n */\n get hiddenSelector(): BooleanSelector;\n\n /**\n * Looks for templates in element's children and compiles them to render functions.\n *\n * @param replace If true, all existing templates will be removed.\n */\n compileTemplates(replace?: boolean): void;\n\n /**\n * Renders a template with the given name if available and a slot otherwise.\n * For empty name looks for a \"default\" template first and renders it if found – otherwise renders a default slot.\n *\n * @param name Name of the template/slot to render.\n * @param context Context to provide template renderer with.\n */\n renderTemplateOrSlot(name?: string, context?: any): void;\n\n /**\n * Zooms into templates with complex names. For example, zooming on `customer` in `customer:header:before`\n * will return `header:before`.\n *\n * @param id Name to zoom on.\n */\n getNestedTemplates<T extends Partial<Record<string, Renderer<any>>>>(id: string): T;\n}\n\ntype Base = Constructor<InferrableMixinHost> &\n Constructor<LitElement> & { properties?: PropertyDeclarations; inferredProperties: string[] };\n\ntype TemplateFunction = typeof html;\n\nexport type Renderer<THost> = (html: TemplateFunction, host: THost) => TemplateResult;\n\nexport const ConfigurableMixin = <TBase extends Base>(\n BaseElement: TBase\n): TBase & Constructor<ConfigurableMixinHost> => {\n return class ConfigurableElement extends BaseElement {\n static get inferredProperties(): string[] {\n return [\n ...super.inferredProperties,\n 'disabledSelector',\n 'readonlySelector',\n 'hiddenSelector',\n 'templates',\n 'disabled',\n 'readonly',\n 'hidden',\n 'mode',\n ];\n }\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n\n templates: { attribute: false },\n mode: { type: String },\n\n readonly: { type: Boolean, reflect: true },\n readonlyControls: {\n attribute: 'readonlycontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n\n disabled: { type: Boolean, reflect: true },\n disabledControls: {\n attribute: 'disabledcontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n\n hidden: { type: Boolean, reflect: true },\n hiddenControls: {\n attribute: 'hiddencontrols',\n converter: { fromAttribute: value => new BooleanSelector(value ?? '') },\n },\n };\n }\n\n templates = {} as Partial<Record<string, Renderer<any>>>;\n\n mode: 'development' | 'production' = 'production';\n\n readonly = false;\n\n readonlyControls: BooleanSelector = BooleanSelector.False;\n\n disabled = false;\n\n disabledControls: BooleanSelector = BooleanSelector.False;\n\n hidden = false;\n\n hiddenControls: BooleanSelector = BooleanSelector.False;\n\n private readonly __observer = new MutationObserver(() => this.__onMutation());\n\n get readonlySelector(): BooleanSelector {\n return this.readonly ? BooleanSelector.True : this.readonlyControls;\n }\n\n get disabledSelector(): BooleanSelector {\n return this.disabled ? BooleanSelector.True : this.disabledControls;\n }\n\n get hiddenSelector(): BooleanSelector {\n return this.hidden ? BooleanSelector.True : this.hiddenControls;\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n if (this.mode === 'development') this.__observe();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__observer.disconnect();\n }\n\n protected firstUpdated(...args: Parameters<LitElement['firstUpdated']>): void {\n super.firstUpdated(...args);\n if (this.mode === 'production') this.compileTemplates();\n }\n\n protected updated(changes: Map<keyof this, unknown>): void {\n super.updated(changes);\n\n if (changes.has('mode')) {\n this.__observer.disconnect();\n if (this.mode === 'development') this.__observe();\n }\n }\n\n compileTemplates(replace = false): void {\n const templates = replace ? {} : { ...this.templates };\n\n Array.from(this.children).forEach(child => {\n if (child.localName !== 'template') return;\n const slot = child.getAttribute('slot') ?? 'default';\n\n try {\n const script = `return html\\`${child.innerHTML}\\``;\n templates[slot] = new Function('html', 'host', script) as () => TemplateResult;\n } catch (err) {\n console.error(err);\n }\n });\n\n this.templates = templates;\n }\n\n renderTemplateOrSlot(name?: string, context?: any) {\n const templateName = name ?? 'default';\n const template = this.templates[templateName];\n\n if (!template) return html`<slot name=${ifDefined(name)}></slot>`;\n\n const renderer = () => {\n try {\n const target = {} as unknown as this;\n const resolvedContext = context ?? this;\n const proxy = new Proxy(target, { get: (_, key) => resolvedContext[key] });\n\n return template?.(html, proxy);\n } catch (err) {\n console.error(err);\n }\n };\n\n return html`\n <foxy-internal-sandbox data-testid=${templateName} .render=${renderer}>\n </foxy-internal-sandbox>\n `;\n }\n\n getNestedTemplates<T extends Partial<Record<string, Renderer<any>>>>(id: string): T {\n const nestedTemplates = {} as T;\n\n Object.entries(this.templates).forEach(([key, value]) => {\n if (key.startsWith(`${id}:`)) {\n const zoomedKey = key.replace(`${id}:`, '');\n nestedTemplates[zoomedKey as keyof T] = value as T[keyof T];\n }\n });\n\n return nestedTemplates;\n }\n\n applyInferredProperties(context: Map<string, unknown>): void {\n super.applyInferredProperties(context);\n\n type Templates = ConfigurableMixinHost['templates'];\n type Mode = ConfigurableMixinHost['mode'];\n\n if (this.infer === null) return;\n\n const disabledSelector = context.get('disabledSelector') as BooleanSelector | undefined;\n const disabled = context.get('disabled') as boolean | undefined;\n\n const readonlySelector = context.get('readonlySelector') as BooleanSelector | undefined;\n const readonly = context.get('readonly') as boolean | undefined;\n\n const hiddenSelector = context.get('hiddenSelector') as BooleanSelector | undefined;\n const hidden = context.get('hidden') as boolean | undefined;\n\n const templates = context.get('templates') as Templates | undefined;\n const mode = context.get('mode') as Mode | undefined;\n\n this.disabledControls = disabledSelector?.zoom(this.infer) ?? BooleanSelector.False;\n this.disabled = disabledSelector?.matches(this.infer, true) ?? disabled ?? false;\n\n this.readonlyControls = readonlySelector?.zoom(this.infer) ?? BooleanSelector.False;\n this.readonly = readonlySelector?.matches(this.infer, true) ?? readonly ?? false;\n\n this.hiddenControls = hiddenSelector?.zoom(this.infer) ?? BooleanSelector.False;\n this.hidden = hiddenSelector?.matches(this.infer, true) ?? hidden ?? false;\n\n this.templates = templates ?? {};\n this.templates = this.getNestedTemplates(this.infer);\n\n this.mode = mode ?? 'production';\n }\n\n private __observe() {\n this.__observer.observe(this, {\n characterData: true,\n attributes: true,\n childList: true,\n subtree: true,\n });\n\n this.__onMutation();\n }\n\n private __onMutation() {\n const config: MutationObserverInit = {\n characterData: true,\n attributes: true,\n childList: true,\n subtree: true,\n };\n\n this.__observer.disconnect();\n this.__observer.observe(this, config);\n\n Array.from(this.children).forEach(child => {\n if (child.localName !== 'template' || !child.hasAttribute('slot')) return;\n this.__observer.observe((child as HTMLTemplateElement).content, config);\n });\n\n this.compileTemplates(true);\n }\n };\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Constructor, LitElement, PropertyDeclarations } from 'lit-element';
|
|
2
|
+
declare type Base = Constructor<LitElement> & {
|
|
3
|
+
properties?: PropertyDeclarations;
|
|
4
|
+
};
|
|
5
|
+
export declare class InferrableMixinHost {
|
|
6
|
+
infer: string | null;
|
|
7
|
+
inferProperties(): void;
|
|
8
|
+
inferFromElement(key: string, element: HTMLElement): unknown | undefined;
|
|
9
|
+
inferPropertiesInDescendants(): void;
|
|
10
|
+
applyInferredProperties(context: Map<string, unknown>): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const InferrableMixin: <TBase extends Base>(BaseElement: TBase) => TBase & Constructor<InferrableMixinHost> & {
|
|
13
|
+
inferredProperties: string[];
|
|
14
|
+
};
|
|
15
|
+
export {};
|