@foxy.io/elements 1.13.0-beta.1 → 1.13.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cdn/foxy-address-form.js +1 -1
  2. package/dist/cdn/foxy-attribute-form.js +1 -1
  3. package/dist/cdn/foxy-cancellation-form.js +1 -1
  4. package/dist/cdn/foxy-custom-field-form.js +1 -1
  5. package/dist/cdn/foxy-customer-form.js +1 -1
  6. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  7. package/dist/cdn/foxy-customer-portal.js +1 -1
  8. package/dist/cdn/foxy-customer.js +1 -1
  9. package/dist/cdn/foxy-donation.js +1 -1
  10. package/dist/cdn/foxy-form-dialog.js +1 -1
  11. package/dist/cdn/foxy-items-form.js +1 -1
  12. package/dist/cdn/foxy-payment-method-card.js +1 -1
  13. package/dist/cdn/foxy-subscription-form.js +1 -1
  14. package/dist/cdn/foxy-tax-form.js +1 -1
  15. package/dist/cdn/foxy-user-form.js +1 -1
  16. package/dist/cdn/foxy-users-table.js +1 -1
  17. package/dist/cdn/{shared-452674bd.js → shared-036a8b21.js} +1 -1
  18. package/dist/cdn/{shared-0dcff074.js → shared-296637c5.js} +1 -1
  19. package/dist/cdn/{shared-f2d6922d.js → shared-4a990126.js} +1 -1
  20. package/dist/cdn/shared-b0b1d248.js +1 -0
  21. package/dist/elements/private/Dialog/DialogWindow.js +1 -1
  22. package/dist/elements/private/Dialog/DialogWindow.js.map +1 -1
  23. package/dist/elements/public/AddressForm/AddressForm.d.ts +4 -4
  24. package/dist/elements/public/AddressForm/AddressForm.js +4 -4
  25. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  26. package/dist/elements/public/AddressForm/types.d.ts +6 -6
  27. package/dist/elements/public/AddressForm/types.js.map +1 -1
  28. package/dist/elements/public/Customer/types.d.ts +8 -8
  29. package/dist/elements/public/Customer/types.js.map +1 -1
  30. package/dist/elements/public/CustomerPortal/types.d.ts +8 -8
  31. package/dist/elements/public/CustomerPortal/types.js.map +1 -1
  32. package/dist/elements/public/TaxForm/TaxForm.d.ts +5 -2
  33. package/dist/elements/public/TaxForm/TaxForm.js +55 -41
  34. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  35. package/dist/elements/public/TaxForm/index.d.ts +1 -0
  36. package/dist/elements/public/TaxForm/index.js +1 -0
  37. package/dist/elements/public/TaxForm/index.js.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/cdn/shared-7888de8c.js +0 -1
@@ -61,10 +61,10 @@ export declare type Templates = {
61
61
  'addresses:actions:create:form:phone:after'?: AddressFormTemplates['phone:after'];
62
62
  'addresses:actions:create:form:company:before'?: AddressFormTemplates['company:before'];
63
63
  'addresses:actions:create:form:company:after'?: AddressFormTemplates['company:after'];
64
- 'addresses:actions:create:form:address-line-one:before'?: AddressFormTemplates['address-line-one:before'];
65
- 'addresses:actions:create:form:address-line-one:after'?: AddressFormTemplates['address-line-one:after'];
66
- 'addresses:actions:create:form:address-line-two:before'?: AddressFormTemplates['address-line-two:before'];
67
- 'addresses:actions:create:form:address-line-two:after'?: AddressFormTemplates['address-line-two:after'];
64
+ 'addresses:actions:create:form:address-one:before'?: AddressFormTemplates['address-one:before'];
65
+ 'addresses:actions:create:form:address-one:after'?: AddressFormTemplates['address-one:after'];
66
+ 'addresses:actions:create:form:address-two:before'?: AddressFormTemplates['address-two:before'];
67
+ 'addresses:actions:create:form:address-two:after'?: AddressFormTemplates['address-two:after'];
68
68
  'addresses:actions:create:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];
69
69
  'addresses:actions:create:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];
70
70
  'addresses:actions:create:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];
@@ -99,10 +99,10 @@ export declare type Templates = {
99
99
  'addresses:list:form:phone:after'?: AddressFormTemplates['phone:after'];
100
100
  'addresses:list:form:company:before'?: AddressFormTemplates['company:before'];
101
101
  'addresses:list:form:company:after'?: AddressFormTemplates['company:after'];
102
- 'addresses:list:form:address-line-one:before'?: AddressFormTemplates['address-line-one:before'];
103
- 'addresses:list:form:address-line-one:after'?: AddressFormTemplates['address-line-one:after'];
104
- 'addresses:list:form:address-line-two:before'?: AddressFormTemplates['address-line-two:before'];
105
- 'addresses:list:form:address-line-two:after'?: AddressFormTemplates['address-line-two:after'];
102
+ 'addresses:list:form:address-one:before'?: AddressFormTemplates['address-one:before'];
103
+ 'addresses:list:form:address-one:after'?: AddressFormTemplates['address-one:after'];
104
+ 'addresses:list:form:address-two:before'?: AddressFormTemplates['address-two:before'];
105
+ 'addresses:list:form:address-two:after'?: AddressFormTemplates['address-two:after'];
106
106
  'addresses:list:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];
107
107
  'addresses:list:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];
108
108
  'addresses:list:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/Customer/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Graph, Rels } from '@foxy.io/sdk/customer';\n\nimport { Templates as AddressCardTemplates } from '../AddressCard/types';\nimport { Templates as AddressFormTemplates } from '../AddressForm/types';\nimport { Templates as AttributeCardTemplates } from '../AttributeCard/types';\nimport { Templates as AttributeFormTemplates } from '../AttributeForm/types';\nimport { Customer } from './Customer';\nimport { Templates as CustomerFormTemplates } from '../CustomerForm/types';\nimport { Templates as PaymentMethodCardTemplates } from '../PaymentMethodCard/types';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { Templates as SubscriptionFormTemplates } from '../SubscriptionForm/types';\nimport { Templates as SubscriptionsTableTemplates } from '../SubscriptionsTable/types';\nimport { TemplateResult } from 'lit-html';\nimport { Templates as TransactionsTableTemplates } from '../TransactionsTable/types';\n\nexport type CustomerAddresses = Resource<Rels.CustomerAddresses>;\nexport type Attributes = Resource<Rels.Attributes>;\nexport type Data = Resource<Graph>;\nexport type Tab = { title: string; content: TemplateResult };\n\nexport type Templates = {\n 'header:before'?: Renderer<Customer>;\n 'header:after'?: Renderer<Customer>;\n 'header:actions:before'?: Renderer<Customer>;\n 'header:actions:after'?: Renderer<Customer>;\n 'header:actions:edit:before'?: Renderer<Customer>;\n 'header:actions:edit:after'?: Renderer<Customer>;\n 'header:actions:edit:form:first-name:before'?: CustomerFormTemplates['first-name:before'];\n 'header:actions:edit:form:first-name:after'?: CustomerFormTemplates['first-name:after'];\n 'header:actions:edit:form:last-name:before'?: CustomerFormTemplates['last-name:before'];\n 'header:actions:edit:form:last-name:after'?: CustomerFormTemplates['last-name:after'];\n 'header:actions:edit:form:email:before'?: CustomerFormTemplates['email:before'];\n 'header:actions:edit:form:email:after'?: CustomerFormTemplates['email:after'];\n 'header:actions:edit:form:tax-id:before'?: CustomerFormTemplates['tax-id:before'];\n 'header:actions:edit:form:tax-id:after'?: CustomerFormTemplates['tax-id:after'];\n 'header:actions:edit:form:timestamps:before'?: CustomerFormTemplates['timestamps:before'];\n 'header:actions:edit:form:timestamps:after'?: CustomerFormTemplates['timestamps:after'];\n 'header:actions:edit:form:delete:before'?: CustomerFormTemplates['delete:before'];\n 'header:actions:edit:form:delete:after'?: CustomerFormTemplates['delete:after'];\n 'header:actions:edit:form:create:before'?: CustomerFormTemplates['create:before'];\n 'header:actions:edit:form:create:after'?: CustomerFormTemplates['create:after'];\n 'default'?: Renderer<Customer>;\n 'addresses:before'?: Renderer<Customer>;\n 'addresses:after'?: Renderer<Customer>;\n 'addresses:actions:before'?: Renderer<Customer>;\n 'addresses:actions:after'?: Renderer<Customer>;\n 'addresses:actions:create:before'?: Renderer<Customer>;\n 'addresses:actions:create:after'?: Renderer<Customer>;\n 'addresses:actions:create:form:address-name:before'?: AddressFormTemplates['address-name:before'];\n 'addresses:actions:create:form:address-name:after'?: AddressFormTemplates['address-name:after'];\n 'addresses:actions:create:form:first-name:before'?: AddressFormTemplates['first-name:before'];\n 'addresses:actions:create:form:first-name:after'?: AddressFormTemplates['first-name:after'];\n 'addresses:actions:create:form:last-name:before'?: AddressFormTemplates['last-name:before'];\n 'addresses:actions:create:form:last-name:after'?: AddressFormTemplates['last-name:after'];\n 'addresses:actions:create:form:region:before'?: AddressFormTemplates['region:before'];\n 'addresses:actions:create:form:region:after'?: AddressFormTemplates['region:after'];\n 'addresses:actions:create:form:city:before'?: AddressFormTemplates['city:before'];\n 'addresses:actions:create:form:city:after'?: AddressFormTemplates['city:after'];\n 'addresses:actions:create:form:phone:before'?: AddressFormTemplates['phone:before'];\n 'addresses:actions:create:form:phone:after'?: AddressFormTemplates['phone:after'];\n 'addresses:actions:create:form:company:before'?: AddressFormTemplates['company:before'];\n 'addresses:actions:create:form:company:after'?: AddressFormTemplates['company:after'];\n 'addresses:actions:create:form:address-line-one:before'?: AddressFormTemplates['address-line-one:before'];\n 'addresses:actions:create:form:address-line-one:after'?: AddressFormTemplates['address-line-one:after'];\n 'addresses:actions:create:form:address-line-two:before'?: AddressFormTemplates['address-line-two:before'];\n 'addresses:actions:create:form:address-line-two:after'?: AddressFormTemplates['address-line-two:after'];\n 'addresses:actions:create:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];\n 'addresses:actions:create:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];\n 'addresses:actions:create:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];\n 'addresses:actions:create:form:timestamps:after'?: AddressFormTemplates['timestamps:after'];\n 'addresses:actions:create:form:delete:before'?: AddressFormTemplates['delete:before'];\n 'addresses:actions:create:form:delete:after'?: AddressFormTemplates['delete:after'];\n 'addresses:actions:create:form:create:before'?: AddressFormTemplates['create:before'];\n 'addresses:actions:create:form:create:after'?: AddressFormTemplates['create:after'];\n 'addresses:list:before'?: Renderer<Customer>;\n 'addresses:list:after'?: Renderer<Customer>;\n 'addresses:list:card:address-name:before'?: AddressCardTemplates['address-name:before'];\n 'addresses:list:card:address-name:after'?: AddressCardTemplates['address-name:after'];\n 'addresses:list:card:full-name:before'?: AddressCardTemplates['full-name:before'];\n 'addresses:list:card:full-name:after'?: AddressCardTemplates['full-name:after'];\n 'addresses:list:card:full-address:before'?: AddressCardTemplates['full-address:before'];\n 'addresses:list:card:full-address:after'?: AddressCardTemplates['full-address:after'];\n 'addresses:list:card:company:before'?: AddressCardTemplates['company:before'];\n 'addresses:list:card:company:after'?: AddressCardTemplates['company:after'];\n 'addresses:list:card:phone:before'?: AddressCardTemplates['phone:before'];\n 'addresses:list:card:phone:after'?: AddressCardTemplates['phone:after'];\n 'addresses:list:form:address-name:before'?: AddressFormTemplates['address-name:before'];\n 'addresses:list:form:address-name:after'?: AddressFormTemplates['address-name:after'];\n 'addresses:list:form:first-name:before'?: AddressFormTemplates['first-name:before'];\n 'addresses:list:form:first-name:after'?: AddressFormTemplates['first-name:after'];\n 'addresses:list:form:last-name:before'?: AddressFormTemplates['last-name:before'];\n 'addresses:list:form:last-name:after'?: AddressFormTemplates['last-name:after'];\n 'addresses:list:form:region:before'?: AddressFormTemplates['region:before'];\n 'addresses:list:form:region:after'?: AddressFormTemplates['region:after'];\n 'addresses:list:form:city:before'?: AddressFormTemplates['city:before'];\n 'addresses:list:form:city:after'?: AddressFormTemplates['city:after'];\n 'addresses:list:form:phone:before'?: AddressFormTemplates['phone:before'];\n 'addresses:list:form:phone:after'?: AddressFormTemplates['phone:after'];\n 'addresses:list:form:company:before'?: AddressFormTemplates['company:before'];\n 'addresses:list:form:company:after'?: AddressFormTemplates['company:after'];\n 'addresses:list:form:address-line-one:before'?: AddressFormTemplates['address-line-one:before'];\n 'addresses:list:form:address-line-one:after'?: AddressFormTemplates['address-line-one:after'];\n 'addresses:list:form:address-line-two:before'?: AddressFormTemplates['address-line-two:before'];\n 'addresses:list:form:address-line-two:after'?: AddressFormTemplates['address-line-two:after'];\n 'addresses:list:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];\n 'addresses:list:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];\n 'addresses:list:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];\n 'addresses:list:form:timestamps:after'?: AddressFormTemplates['timestamps:after'];\n 'addresses:list:form:delete:before'?: AddressFormTemplates['delete:before'];\n 'addresses:list:form:delete:after'?: AddressFormTemplates['delete:after'];\n 'addresses:list:form:create:before'?: AddressFormTemplates['create:before'];\n 'addresses:list:form:create:after'?: AddressFormTemplates['create:after'];\n 'payment-methods:before'?: Renderer<Customer>;\n 'payment-methods:after'?: Renderer<Customer>;\n 'payment-methods:list:before'?: Renderer<Customer>;\n 'payment-methods:list:after'?: Renderer<Customer>;\n 'payment-methods:list:card:actions:before'?: PaymentMethodCardTemplates['actions:before'];\n 'payment-methods:list:card:actions:after'?: PaymentMethodCardTemplates['actions:after'];\n 'payment-methods:list:card:actions:delete:before'?: PaymentMethodCardTemplates['actions:delete:before'];\n 'payment-methods:list:card:actions:delete:after'?: PaymentMethodCardTemplates['actions:delete:after'];\n 'attributes:before'?: Renderer<Customer>;\n 'attributes:after'?: Renderer<Customer>;\n 'attributes:actions:before'?: Renderer<Customer>;\n 'attributes:actions:after'?: Renderer<Customer>;\n 'attributes:actions:create:before'?: Renderer<Customer>;\n 'attributes:actions:create:after'?: Renderer<Customer>;\n 'attributes:actions:create:form:name:before'?: AttributeFormTemplates['name:before'];\n 'attributes:actions:create:form:name:after'?: AttributeFormTemplates['name:after'];\n 'attributes:actions:create:form:value:before'?: AttributeFormTemplates['value:before'];\n 'attributes:actions:create:form:value:after'?: AttributeFormTemplates['value:after'];\n 'attributes:actions:create:form:visibility:before'?: AttributeFormTemplates['visibility:before'];\n 'attributes:actions:create:form:visibility:after'?: AttributeFormTemplates['visibility:after'];\n 'attributes:actions:create:form:timestamps:before'?: AttributeFormTemplates['timestamps:before'];\n 'attributes:actions:create:form:timestamps:after'?: AttributeFormTemplates['timestamps:after'];\n 'attributes:actions:create:form:delete:before'?: AttributeFormTemplates['delete:before'];\n 'attributes:actions:create:form:delete:after'?: AttributeFormTemplates['delete:after'];\n 'attributes:actions:create:form:create:before'?: AttributeFormTemplates['create:before'];\n 'attributes:actions:create:form:create:after'?: AttributeFormTemplates['create:after'];\n 'attributes:list:before'?: Renderer<Customer>;\n 'attributes:list:after'?: Renderer<Customer>;\n 'attributes:list:card:name:before'?: AttributeCardTemplates['name:before'];\n 'attributes:list:card:name:after'?: AttributeCardTemplates['name:after'];\n 'attributes:list:card:value:before'?: AttributeCardTemplates['value:before'];\n 'attributes:list:card:value:after'?: AttributeCardTemplates['value:after'];\n 'attributes:list:form:name:before'?: AttributeFormTemplates['name:before'];\n 'attributes:list:form:name:after'?: AttributeFormTemplates['name:after'];\n 'attributes:list:form:value:before'?: AttributeFormTemplates['value:before'];\n 'attributes:list:form:value:after'?: AttributeFormTemplates['value:after'];\n 'attributes:list:form:visibility:before'?: AttributeFormTemplates['visibility:before'];\n 'attributes:list:form:visibility:after'?: AttributeFormTemplates['visibility:after'];\n 'attributes:list:form:timestamps:before'?: AttributeFormTemplates['timestamps:before'];\n 'attributes:list:form:timestamps:after'?: AttributeFormTemplates['timestamps:after'];\n 'attributes:list:form:delete:before'?: AttributeFormTemplates['delete:before'];\n 'attributes:list:form:delete:after'?: AttributeFormTemplates['delete:after'];\n 'attributes:list:form:create:before'?: AttributeFormTemplates['create:before'];\n 'attributes:list:form:create:after'?: AttributeFormTemplates['create:after'];\n 'transactions:before'?: Renderer<Customer>;\n 'transactions:after'?: Renderer<Customer>;\n 'transactions:table:default'?: Renderer<TransactionsTableTemplates['default']>;\n 'subscriptions:before'?: Renderer<Customer>;\n 'subscriptions:after'?: Renderer<Customer>;\n 'subscriptions:form:header:before'?: SubscriptionFormTemplates['header:before'];\n 'subscriptions:form:header:after'?: SubscriptionFormTemplates['header:after'];\n 'subscriptions:form:items:before'?: SubscriptionFormTemplates['items:before'];\n 'subscriptions:form:items:after'?: SubscriptionFormTemplates['items:after'];\n 'subscriptions:form:items:actions:before'?: SubscriptionFormTemplates['items:actions:before'];\n 'subscriptions:form:items:actions:after'?: SubscriptionFormTemplates['items:actions:after'];\n 'subscriptions:form:end-date:before'?: SubscriptionFormTemplates['end-date:before'];\n 'subscriptions:form:end-date:after'?: SubscriptionFormTemplates['end-date:after'];\n 'subscriptions:form:end-date:form:warning:before'?: SubscriptionFormTemplates['end-date:form:warning:before'];\n 'subscriptions:form:end-date:form:warning:after'?: SubscriptionFormTemplates['end-date:form:warning:after'];\n 'subscriptions:form:end-date:form:end-date:before'?: SubscriptionFormTemplates['end-date:form:end-date:before'];\n 'subscriptions:form:end-date:form:end-date:after'?: SubscriptionFormTemplates['end-date:form:end-date:after'];\n 'subscriptions:form:end-date:form:submit:before'?: SubscriptionFormTemplates['end-date:form:submit:before'];\n 'subscriptions:form:end-date:form:submit:after'?: SubscriptionFormTemplates['end-date:form:submit:after'];\n 'subscriptions:form:next-transaction-date:before'?: SubscriptionFormTemplates['next-transaction-date:before'];\n 'subscriptions:form:next-transaction-date:after'?: SubscriptionFormTemplates['next-transaction-date:after'];\n 'subscriptions:form:frequency:before'?: SubscriptionFormTemplates['frequency:before'];\n 'subscriptions:form:frequency:after'?: SubscriptionFormTemplates['frequency:after'];\n 'subscriptions:form:transactions:before'?: SubscriptionFormTemplates['transactions:before'];\n 'subscriptions:form:transactions:after'?: SubscriptionFormTemplates['transactions:after'];\n 'subscriptions:table:default'?: Renderer<SubscriptionsTableTemplates['default']>;\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/Customer/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Graph, Rels } from '@foxy.io/sdk/customer';\n\nimport { Templates as AddressCardTemplates } from '../AddressCard/types';\nimport { Templates as AddressFormTemplates } from '../AddressForm/types';\nimport { Templates as AttributeCardTemplates } from '../AttributeCard/types';\nimport { Templates as AttributeFormTemplates } from '../AttributeForm/types';\nimport { Customer } from './Customer';\nimport { Templates as CustomerFormTemplates } from '../CustomerForm/types';\nimport { Templates as PaymentMethodCardTemplates } from '../PaymentMethodCard/types';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { Templates as SubscriptionFormTemplates } from '../SubscriptionForm/types';\nimport { Templates as SubscriptionsTableTemplates } from '../SubscriptionsTable/types';\nimport { TemplateResult } from 'lit-html';\nimport { Templates as TransactionsTableTemplates } from '../TransactionsTable/types';\n\nexport type CustomerAddresses = Resource<Rels.CustomerAddresses>;\nexport type Attributes = Resource<Rels.Attributes>;\nexport type Data = Resource<Graph>;\nexport type Tab = { title: string; content: TemplateResult };\n\nexport type Templates = {\n 'header:before'?: Renderer<Customer>;\n 'header:after'?: Renderer<Customer>;\n 'header:actions:before'?: Renderer<Customer>;\n 'header:actions:after'?: Renderer<Customer>;\n 'header:actions:edit:before'?: Renderer<Customer>;\n 'header:actions:edit:after'?: Renderer<Customer>;\n 'header:actions:edit:form:first-name:before'?: CustomerFormTemplates['first-name:before'];\n 'header:actions:edit:form:first-name:after'?: CustomerFormTemplates['first-name:after'];\n 'header:actions:edit:form:last-name:before'?: CustomerFormTemplates['last-name:before'];\n 'header:actions:edit:form:last-name:after'?: CustomerFormTemplates['last-name:after'];\n 'header:actions:edit:form:email:before'?: CustomerFormTemplates['email:before'];\n 'header:actions:edit:form:email:after'?: CustomerFormTemplates['email:after'];\n 'header:actions:edit:form:tax-id:before'?: CustomerFormTemplates['tax-id:before'];\n 'header:actions:edit:form:tax-id:after'?: CustomerFormTemplates['tax-id:after'];\n 'header:actions:edit:form:timestamps:before'?: CustomerFormTemplates['timestamps:before'];\n 'header:actions:edit:form:timestamps:after'?: CustomerFormTemplates['timestamps:after'];\n 'header:actions:edit:form:delete:before'?: CustomerFormTemplates['delete:before'];\n 'header:actions:edit:form:delete:after'?: CustomerFormTemplates['delete:after'];\n 'header:actions:edit:form:create:before'?: CustomerFormTemplates['create:before'];\n 'header:actions:edit:form:create:after'?: CustomerFormTemplates['create:after'];\n 'default'?: Renderer<Customer>;\n 'addresses:before'?: Renderer<Customer>;\n 'addresses:after'?: Renderer<Customer>;\n 'addresses:actions:before'?: Renderer<Customer>;\n 'addresses:actions:after'?: Renderer<Customer>;\n 'addresses:actions:create:before'?: Renderer<Customer>;\n 'addresses:actions:create:after'?: Renderer<Customer>;\n 'addresses:actions:create:form:address-name:before'?: AddressFormTemplates['address-name:before'];\n 'addresses:actions:create:form:address-name:after'?: AddressFormTemplates['address-name:after'];\n 'addresses:actions:create:form:first-name:before'?: AddressFormTemplates['first-name:before'];\n 'addresses:actions:create:form:first-name:after'?: AddressFormTemplates['first-name:after'];\n 'addresses:actions:create:form:last-name:before'?: AddressFormTemplates['last-name:before'];\n 'addresses:actions:create:form:last-name:after'?: AddressFormTemplates['last-name:after'];\n 'addresses:actions:create:form:region:before'?: AddressFormTemplates['region:before'];\n 'addresses:actions:create:form:region:after'?: AddressFormTemplates['region:after'];\n 'addresses:actions:create:form:city:before'?: AddressFormTemplates['city:before'];\n 'addresses:actions:create:form:city:after'?: AddressFormTemplates['city:after'];\n 'addresses:actions:create:form:phone:before'?: AddressFormTemplates['phone:before'];\n 'addresses:actions:create:form:phone:after'?: AddressFormTemplates['phone:after'];\n 'addresses:actions:create:form:company:before'?: AddressFormTemplates['company:before'];\n 'addresses:actions:create:form:company:after'?: AddressFormTemplates['company:after'];\n 'addresses:actions:create:form:address-one:before'?: AddressFormTemplates['address-one:before'];\n 'addresses:actions:create:form:address-one:after'?: AddressFormTemplates['address-one:after'];\n 'addresses:actions:create:form:address-two:before'?: AddressFormTemplates['address-two:before'];\n 'addresses:actions:create:form:address-two:after'?: AddressFormTemplates['address-two:after'];\n 'addresses:actions:create:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];\n 'addresses:actions:create:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];\n 'addresses:actions:create:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];\n 'addresses:actions:create:form:timestamps:after'?: AddressFormTemplates['timestamps:after'];\n 'addresses:actions:create:form:delete:before'?: AddressFormTemplates['delete:before'];\n 'addresses:actions:create:form:delete:after'?: AddressFormTemplates['delete:after'];\n 'addresses:actions:create:form:create:before'?: AddressFormTemplates['create:before'];\n 'addresses:actions:create:form:create:after'?: AddressFormTemplates['create:after'];\n 'addresses:list:before'?: Renderer<Customer>;\n 'addresses:list:after'?: Renderer<Customer>;\n 'addresses:list:card:address-name:before'?: AddressCardTemplates['address-name:before'];\n 'addresses:list:card:address-name:after'?: AddressCardTemplates['address-name:after'];\n 'addresses:list:card:full-name:before'?: AddressCardTemplates['full-name:before'];\n 'addresses:list:card:full-name:after'?: AddressCardTemplates['full-name:after'];\n 'addresses:list:card:full-address:before'?: AddressCardTemplates['full-address:before'];\n 'addresses:list:card:full-address:after'?: AddressCardTemplates['full-address:after'];\n 'addresses:list:card:company:before'?: AddressCardTemplates['company:before'];\n 'addresses:list:card:company:after'?: AddressCardTemplates['company:after'];\n 'addresses:list:card:phone:before'?: AddressCardTemplates['phone:before'];\n 'addresses:list:card:phone:after'?: AddressCardTemplates['phone:after'];\n 'addresses:list:form:address-name:before'?: AddressFormTemplates['address-name:before'];\n 'addresses:list:form:address-name:after'?: AddressFormTemplates['address-name:after'];\n 'addresses:list:form:first-name:before'?: AddressFormTemplates['first-name:before'];\n 'addresses:list:form:first-name:after'?: AddressFormTemplates['first-name:after'];\n 'addresses:list:form:last-name:before'?: AddressFormTemplates['last-name:before'];\n 'addresses:list:form:last-name:after'?: AddressFormTemplates['last-name:after'];\n 'addresses:list:form:region:before'?: AddressFormTemplates['region:before'];\n 'addresses:list:form:region:after'?: AddressFormTemplates['region:after'];\n 'addresses:list:form:city:before'?: AddressFormTemplates['city:before'];\n 'addresses:list:form:city:after'?: AddressFormTemplates['city:after'];\n 'addresses:list:form:phone:before'?: AddressFormTemplates['phone:before'];\n 'addresses:list:form:phone:after'?: AddressFormTemplates['phone:after'];\n 'addresses:list:form:company:before'?: AddressFormTemplates['company:before'];\n 'addresses:list:form:company:after'?: AddressFormTemplates['company:after'];\n 'addresses:list:form:address-one:before'?: AddressFormTemplates['address-one:before'];\n 'addresses:list:form:address-one:after'?: AddressFormTemplates['address-one:after'];\n 'addresses:list:form:address-two:before'?: AddressFormTemplates['address-two:before'];\n 'addresses:list:form:address-two:after'?: AddressFormTemplates['address-two:after'];\n 'addresses:list:form:postal-code:before'?: AddressFormTemplates['postal-code:before'];\n 'addresses:list:form:postal-code:after'?: AddressFormTemplates['postal-code:after'];\n 'addresses:list:form:timestamps:before'?: AddressFormTemplates['timestamps:before'];\n 'addresses:list:form:timestamps:after'?: AddressFormTemplates['timestamps:after'];\n 'addresses:list:form:delete:before'?: AddressFormTemplates['delete:before'];\n 'addresses:list:form:delete:after'?: AddressFormTemplates['delete:after'];\n 'addresses:list:form:create:before'?: AddressFormTemplates['create:before'];\n 'addresses:list:form:create:after'?: AddressFormTemplates['create:after'];\n 'payment-methods:before'?: Renderer<Customer>;\n 'payment-methods:after'?: Renderer<Customer>;\n 'payment-methods:list:before'?: Renderer<Customer>;\n 'payment-methods:list:after'?: Renderer<Customer>;\n 'payment-methods:list:card:actions:before'?: PaymentMethodCardTemplates['actions:before'];\n 'payment-methods:list:card:actions:after'?: PaymentMethodCardTemplates['actions:after'];\n 'payment-methods:list:card:actions:delete:before'?: PaymentMethodCardTemplates['actions:delete:before'];\n 'payment-methods:list:card:actions:delete:after'?: PaymentMethodCardTemplates['actions:delete:after'];\n 'attributes:before'?: Renderer<Customer>;\n 'attributes:after'?: Renderer<Customer>;\n 'attributes:actions:before'?: Renderer<Customer>;\n 'attributes:actions:after'?: Renderer<Customer>;\n 'attributes:actions:create:before'?: Renderer<Customer>;\n 'attributes:actions:create:after'?: Renderer<Customer>;\n 'attributes:actions:create:form:name:before'?: AttributeFormTemplates['name:before'];\n 'attributes:actions:create:form:name:after'?: AttributeFormTemplates['name:after'];\n 'attributes:actions:create:form:value:before'?: AttributeFormTemplates['value:before'];\n 'attributes:actions:create:form:value:after'?: AttributeFormTemplates['value:after'];\n 'attributes:actions:create:form:visibility:before'?: AttributeFormTemplates['visibility:before'];\n 'attributes:actions:create:form:visibility:after'?: AttributeFormTemplates['visibility:after'];\n 'attributes:actions:create:form:timestamps:before'?: AttributeFormTemplates['timestamps:before'];\n 'attributes:actions:create:form:timestamps:after'?: AttributeFormTemplates['timestamps:after'];\n 'attributes:actions:create:form:delete:before'?: AttributeFormTemplates['delete:before'];\n 'attributes:actions:create:form:delete:after'?: AttributeFormTemplates['delete:after'];\n 'attributes:actions:create:form:create:before'?: AttributeFormTemplates['create:before'];\n 'attributes:actions:create:form:create:after'?: AttributeFormTemplates['create:after'];\n 'attributes:list:before'?: Renderer<Customer>;\n 'attributes:list:after'?: Renderer<Customer>;\n 'attributes:list:card:name:before'?: AttributeCardTemplates['name:before'];\n 'attributes:list:card:name:after'?: AttributeCardTemplates['name:after'];\n 'attributes:list:card:value:before'?: AttributeCardTemplates['value:before'];\n 'attributes:list:card:value:after'?: AttributeCardTemplates['value:after'];\n 'attributes:list:form:name:before'?: AttributeFormTemplates['name:before'];\n 'attributes:list:form:name:after'?: AttributeFormTemplates['name:after'];\n 'attributes:list:form:value:before'?: AttributeFormTemplates['value:before'];\n 'attributes:list:form:value:after'?: AttributeFormTemplates['value:after'];\n 'attributes:list:form:visibility:before'?: AttributeFormTemplates['visibility:before'];\n 'attributes:list:form:visibility:after'?: AttributeFormTemplates['visibility:after'];\n 'attributes:list:form:timestamps:before'?: AttributeFormTemplates['timestamps:before'];\n 'attributes:list:form:timestamps:after'?: AttributeFormTemplates['timestamps:after'];\n 'attributes:list:form:delete:before'?: AttributeFormTemplates['delete:before'];\n 'attributes:list:form:delete:after'?: AttributeFormTemplates['delete:after'];\n 'attributes:list:form:create:before'?: AttributeFormTemplates['create:before'];\n 'attributes:list:form:create:after'?: AttributeFormTemplates['create:after'];\n 'transactions:before'?: Renderer<Customer>;\n 'transactions:after'?: Renderer<Customer>;\n 'transactions:table:default'?: Renderer<TransactionsTableTemplates['default']>;\n 'subscriptions:before'?: Renderer<Customer>;\n 'subscriptions:after'?: Renderer<Customer>;\n 'subscriptions:form:header:before'?: SubscriptionFormTemplates['header:before'];\n 'subscriptions:form:header:after'?: SubscriptionFormTemplates['header:after'];\n 'subscriptions:form:items:before'?: SubscriptionFormTemplates['items:before'];\n 'subscriptions:form:items:after'?: SubscriptionFormTemplates['items:after'];\n 'subscriptions:form:items:actions:before'?: SubscriptionFormTemplates['items:actions:before'];\n 'subscriptions:form:items:actions:after'?: SubscriptionFormTemplates['items:actions:after'];\n 'subscriptions:form:end-date:before'?: SubscriptionFormTemplates['end-date:before'];\n 'subscriptions:form:end-date:after'?: SubscriptionFormTemplates['end-date:after'];\n 'subscriptions:form:end-date:form:warning:before'?: SubscriptionFormTemplates['end-date:form:warning:before'];\n 'subscriptions:form:end-date:form:warning:after'?: SubscriptionFormTemplates['end-date:form:warning:after'];\n 'subscriptions:form:end-date:form:end-date:before'?: SubscriptionFormTemplates['end-date:form:end-date:before'];\n 'subscriptions:form:end-date:form:end-date:after'?: SubscriptionFormTemplates['end-date:form:end-date:after'];\n 'subscriptions:form:end-date:form:submit:before'?: SubscriptionFormTemplates['end-date:form:submit:before'];\n 'subscriptions:form:end-date:form:submit:after'?: SubscriptionFormTemplates['end-date:form:submit:after'];\n 'subscriptions:form:next-transaction-date:before'?: SubscriptionFormTemplates['next-transaction-date:before'];\n 'subscriptions:form:next-transaction-date:after'?: SubscriptionFormTemplates['next-transaction-date:after'];\n 'subscriptions:form:frequency:before'?: SubscriptionFormTemplates['frequency:before'];\n 'subscriptions:form:frequency:after'?: SubscriptionFormTemplates['frequency:after'];\n 'subscriptions:form:transactions:before'?: SubscriptionFormTemplates['transactions:before'];\n 'subscriptions:form:transactions:after'?: SubscriptionFormTemplates['transactions:after'];\n 'subscriptions:table:default'?: Renderer<SubscriptionsTableTemplates['default']>;\n};\n"]}
@@ -75,10 +75,10 @@ export declare type Templates = {
75
75
  'customer:addresses:actions:create:form:phone:after'?: CustomerTemplates['addresses:actions:create:form:phone:after'];
76
76
  'customer:addresses:actions:create:form:company:before'?: CustomerTemplates['addresses:actions:create:form:company:before'];
77
77
  'customer:addresses:actions:create:form:company:after'?: CustomerTemplates['addresses:actions:create:form:company:after'];
78
- 'customer:addresses:actions:create:form:address-line-one:before'?: CustomerTemplates['addresses:actions:create:form:address-line-one:before'];
79
- 'customer:addresses:actions:create:form:address-line-one:after'?: CustomerTemplates['addresses:actions:create:form:address-line-one:after'];
80
- 'customer:addresses:actions:create:form:address-line-two:before'?: CustomerTemplates['addresses:actions:create:form:address-line-two:before'];
81
- 'customer:addresses:actions:create:form:address-line-two:after'?: CustomerTemplates['addresses:actions:create:form:address-line-two:after'];
78
+ 'customer:addresses:actions:create:form:address-one:before'?: CustomerTemplates['addresses:actions:create:form:address-one:before'];
79
+ 'customer:addresses:actions:create:form:address-one:after'?: CustomerTemplates['addresses:actions:create:form:address-one:after'];
80
+ 'customer:addresses:actions:create:form:address-two:before'?: CustomerTemplates['addresses:actions:create:form:address-two:before'];
81
+ 'customer:addresses:actions:create:form:address-two:after'?: CustomerTemplates['addresses:actions:create:form:address-two:after'];
82
82
  'customer:addresses:actions:create:form:postal-code:before'?: CustomerTemplates['addresses:actions:create:form:postal-code:before'];
83
83
  'customer:addresses:actions:create:form:postal-code:after'?: CustomerTemplates['addresses:actions:create:form:postal-code:after'];
84
84
  'customer:addresses:actions:create:form:timestamps:before'?: CustomerTemplates['addresses:actions:create:form:timestamps:before'];
@@ -113,10 +113,10 @@ export declare type Templates = {
113
113
  'customer:addresses:list:form:phone:after'?: CustomerTemplates['addresses:list:form:phone:after'];
114
114
  'customer:addresses:list:form:company:before'?: CustomerTemplates['addresses:list:form:company:before'];
115
115
  'customer:addresses:list:form:company:after'?: CustomerTemplates['addresses:list:form:company:after'];
116
- 'customer:addresses:list:form:address-line-one:before'?: CustomerTemplates['addresses:list:form:address-line-one:before'];
117
- 'customer:addresses:list:form:address-line-one:after'?: CustomerTemplates['addresses:list:form:address-line-one:after'];
118
- 'customer:addresses:list:form:address-line-two:before'?: CustomerTemplates['addresses:list:form:address-line-two:before'];
119
- 'customer:addresses:list:form:address-line-two:after'?: CustomerTemplates['addresses:list:form:address-line-two:after'];
116
+ 'customer:addresses:list:form:address-one:before'?: CustomerTemplates['addresses:list:form:address-one:before'];
117
+ 'customer:addresses:list:form:address-one:after'?: CustomerTemplates['addresses:list:form:address-one:after'];
118
+ 'customer:addresses:list:form:address-two:before'?: CustomerTemplates['addresses:list:form:address-two:before'];
119
+ 'customer:addresses:list:form:address-two:after'?: CustomerTemplates['addresses:list:form:address-two:after'];
120
120
  'customer:addresses:list:form:postal-code:before'?: CustomerTemplates['addresses:list:form:postal-code:before'];
121
121
  'customer:addresses:list:form:postal-code:after'?: CustomerTemplates['addresses:list:form:postal-code:after'];
122
122
  'customer:addresses:list:form:timestamps:before'?: CustomerTemplates['addresses:list:form:timestamps:before'];
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerPortal/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Templates as AccessRecoveryFormTemplates } from '../AccessRecoveryForm/types';\nimport { Customer } from '../Customer/Customer';\nimport { CustomerPortal } from '.';\nimport { Templates as CustomerTemplates } from '../Customer/types';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Templates as SignInFormTemplates } from '../SignInForm/types';\nimport { Templates as SubscriptionCardTemplates } from '../SubscriptionCard/types';\n\nexport type Templates = {\n 'sign-in:before'?: Renderer<CustomerPortal>;\n 'sign-in:after'?: Renderer<CustomerPortal>;\n 'sign-in:header:before'?: Renderer<CustomerPortal>;\n 'sign-in:header:after'?: Renderer<CustomerPortal>;\n 'sign-in:form:email:before'?: SignInFormTemplates['email:before'];\n 'sign-in:form:email:after'?: SignInFormTemplates['email:after'];\n 'sign-in:form:password:before'?: SignInFormTemplates['password:before'];\n 'sign-in:form:password:after'?: SignInFormTemplates['password:after'];\n 'sign-in:form:error:before'?: SignInFormTemplates['error:before'];\n 'sign-in:form:error:after'?: SignInFormTemplates['error:after'];\n 'sign-in:form:submit:before'?: SignInFormTemplates['submit:before'];\n 'sign-in:form:submit:after'?: SignInFormTemplates['submit:after'];\n 'sign-in:recover:before'?: Renderer<CustomerPortal>;\n 'sign-in:recover:after'?: Renderer<CustomerPortal>;\n\n 'access-recovery:before'?: Renderer<CustomerPortal>;\n 'access-recovery:after'?: Renderer<CustomerPortal>;\n 'access-recovery:header:before'?: Renderer<CustomerPortal>;\n 'access-recovery:header:after'?: Renderer<CustomerPortal>;\n 'access-recovery:form:email:before'?: AccessRecoveryFormTemplates['email:before'];\n 'access-recovery:form:email:after'?: AccessRecoveryFormTemplates['email:after'];\n 'access-recovery:form:message:before'?: AccessRecoveryFormTemplates['message:before'];\n 'access-recovery:form:message:after'?: AccessRecoveryFormTemplates['message:after'];\n 'access-recovery:form:submit:before'?: AccessRecoveryFormTemplates['submit:before'];\n 'access-recovery:form:submit:after'?: AccessRecoveryFormTemplates['submit:after'];\n 'access-recovery:back:before'?: Renderer<CustomerPortal>;\n 'access-recovery:back:after'?: Renderer<CustomerPortal>;\n\n 'customer:header:before'?: CustomerTemplates['header:before'];\n 'customer:header:after'?: CustomerTemplates['header:after'];\n 'customer:header:actions:before'?: CustomerTemplates['header:actions:before'];\n 'customer:header:actions:after'?: CustomerTemplates['header:actions:after'];\n 'customer:header:actions:edit:before'?: CustomerTemplates['header:actions:edit:before'];\n 'customer:header:actions:edit:after'?: CustomerTemplates['header:actions:edit:after'];\n 'customer:header:actions:edit:form:first-name:before'?: CustomerTemplates['header:actions:edit:form:first-name:before'];\n 'customer:header:actions:edit:form:first-name:after'?: CustomerTemplates['header:actions:edit:form:first-name:after'];\n 'customer:header:actions:edit:form:last-name:before'?: CustomerTemplates['header:actions:edit:form:last-name:before'];\n 'customer:header:actions:edit:form:last-name:after'?: CustomerTemplates['header:actions:edit:form:last-name:after'];\n 'customer:header:actions:edit:form:email:before'?: CustomerTemplates['header:actions:edit:form:email:before'];\n 'customer:header:actions:edit:form:email:after'?: CustomerTemplates['header:actions:edit:form:email:after'];\n 'customer:header:actions:edit:form:tax-id:before'?: CustomerTemplates['header:actions:edit:form:tax-id:before'];\n 'customer:header:actions:edit:form:tax-id:after'?: CustomerTemplates['header:actions:edit:form:tax-id:after'];\n 'customer:header:actions:edit:form:timestamps:before'?: CustomerTemplates['header:actions:edit:form:timestamps:before'];\n 'customer:header:actions:edit:form:timestamps:after'?: CustomerTemplates['header:actions:edit:form:timestamps:after'];\n 'customer:header:actions:edit:form:delete:before'?: CustomerTemplates['header:actions:edit:form:delete:before'];\n 'customer:header:actions:edit:form:delete:after'?: CustomerTemplates['header:actions:edit:form:delete:after'];\n 'customer:header:actions:edit:form:create:before'?: CustomerTemplates['header:actions:edit:form:create:before'];\n 'customer:header:actions:edit:form:create:after'?: CustomerTemplates['header:actions:edit:form:create:after'];\n 'customer:header:actions:edit:form:change-password:before'?: Renderer<Customer>;\n 'customer:header:actions:edit:form:change-password:after'?: Renderer<Customer>;\n 'customer:default'?: CustomerTemplates['default'];\n 'customer:addresses:before'?: CustomerTemplates['addresses:before'];\n 'customer:addresses:after'?: CustomerTemplates['addresses:after'];\n 'customer:addresses:actions:before'?: CustomerTemplates['addresses:actions:before'];\n 'customer:addresses:actions:after'?: CustomerTemplates['addresses:actions:after'];\n 'customer:addresses:actions:create:before'?: CustomerTemplates['addresses:actions:create:before'];\n 'customer:addresses:actions:create:after'?: CustomerTemplates['addresses:actions:create:after'];\n 'customer:addresses:actions:create:form:address-name:before'?: CustomerTemplates['addresses:actions:create:form:address-name:before'];\n 'customer:addresses:actions:create:form:address-name:after'?: CustomerTemplates['addresses:actions:create:form:address-name:after'];\n 'customer:addresses:actions:create:form:first-name:before'?: CustomerTemplates['addresses:actions:create:form:first-name:before'];\n 'customer:addresses:actions:create:form:first-name:after'?: CustomerTemplates['addresses:actions:create:form:first-name:after'];\n 'customer:addresses:actions:create:form:last-name:before'?: CustomerTemplates['addresses:actions:create:form:last-name:before'];\n 'customer:addresses:actions:create:form:last-name:after'?: CustomerTemplates['addresses:actions:create:form:last-name:after'];\n 'customer:addresses:actions:create:form:region:before'?: CustomerTemplates['addresses:actions:create:form:region:before'];\n 'customer:addresses:actions:create:form:region:after'?: CustomerTemplates['addresses:actions:create:form:region:after'];\n 'customer:addresses:actions:create:form:city:before'?: CustomerTemplates['addresses:actions:create:form:city:before'];\n 'customer:addresses:actions:create:form:city:after'?: CustomerTemplates['addresses:actions:create:form:city:after'];\n 'customer:addresses:actions:create:form:phone:before'?: CustomerTemplates['addresses:actions:create:form:phone:before'];\n 'customer:addresses:actions:create:form:phone:after'?: CustomerTemplates['addresses:actions:create:form:phone:after'];\n 'customer:addresses:actions:create:form:company:before'?: CustomerTemplates['addresses:actions:create:form:company:before'];\n 'customer:addresses:actions:create:form:company:after'?: CustomerTemplates['addresses:actions:create:form:company:after'];\n 'customer:addresses:actions:create:form:address-line-one:before'?: CustomerTemplates['addresses:actions:create:form:address-line-one:before'];\n 'customer:addresses:actions:create:form:address-line-one:after'?: CustomerTemplates['addresses:actions:create:form:address-line-one:after'];\n 'customer:addresses:actions:create:form:address-line-two:before'?: CustomerTemplates['addresses:actions:create:form:address-line-two:before'];\n 'customer:addresses:actions:create:form:address-line-two:after'?: CustomerTemplates['addresses:actions:create:form:address-line-two:after'];\n 'customer:addresses:actions:create:form:postal-code:before'?: CustomerTemplates['addresses:actions:create:form:postal-code:before'];\n 'customer:addresses:actions:create:form:postal-code:after'?: CustomerTemplates['addresses:actions:create:form:postal-code:after'];\n 'customer:addresses:actions:create:form:timestamps:before'?: CustomerTemplates['addresses:actions:create:form:timestamps:before'];\n 'customer:addresses:actions:create:form:timestamps:after'?: CustomerTemplates['addresses:actions:create:form:timestamps:after'];\n 'customer:addresses:actions:create:form:delete:before'?: CustomerTemplates['addresses:actions:create:form:delete:before'];\n 'customer:addresses:actions:create:form:delete:after'?: CustomerTemplates['addresses:actions:create:form:delete:after'];\n 'customer:addresses:actions:create:form:create:before'?: CustomerTemplates['addresses:actions:create:form:create:before'];\n 'customer:addresses:actions:create:form:create:after'?: CustomerTemplates['addresses:actions:create:form:create:after'];\n 'customer:addresses:list:before'?: CustomerTemplates['addresses:list:before'];\n 'customer:addresses:list:after'?: CustomerTemplates['addresses:list:after'];\n 'customer:addresses:list:card:address-name:before'?: CustomerTemplates['addresses:list:card:address-name:before'];\n 'customer:addresses:list:card:address-name:after'?: CustomerTemplates['addresses:list:card:address-name:after'];\n 'customer:addresses:list:card:full-name:before'?: CustomerTemplates['addresses:list:card:full-name:before'];\n 'customer:addresses:list:card:full-name:after'?: CustomerTemplates['addresses:list:card:full-name:after'];\n 'customer:addresses:list:card:full-address:before'?: CustomerTemplates['addresses:list:card:full-address:before'];\n 'customer:addresses:list:card:full-address:after'?: CustomerTemplates['addresses:list:card:full-address:after'];\n 'customer:addresses:list:card:company:before'?: CustomerTemplates['addresses:list:card:company:before'];\n 'customer:addresses:list:card:company:after'?: CustomerTemplates['addresses:list:card:company:after'];\n 'customer:addresses:list:card:phone:before'?: CustomerTemplates['addresses:list:card:phone:before'];\n 'customer:addresses:list:card:phone:after'?: CustomerTemplates['addresses:list:card:phone:after'];\n 'customer:addresses:list:form:address-name:before'?: CustomerTemplates['addresses:list:form:address-name:before'];\n 'customer:addresses:list:form:address-name:after'?: CustomerTemplates['addresses:list:form:address-name:after'];\n 'customer:addresses:list:form:first-name:before'?: CustomerTemplates['addresses:list:form:first-name:before'];\n 'customer:addresses:list:form:first-name:after'?: CustomerTemplates['addresses:list:form:first-name:after'];\n 'customer:addresses:list:form:last-name:before'?: CustomerTemplates['addresses:list:form:last-name:before'];\n 'customer:addresses:list:form:last-name:after'?: CustomerTemplates['addresses:list:form:last-name:after'];\n 'customer:addresses:list:form:region:before'?: CustomerTemplates['addresses:list:form:region:before'];\n 'customer:addresses:list:form:region:after'?: CustomerTemplates['addresses:list:form:region:after'];\n 'customer:addresses:list:form:city:before'?: CustomerTemplates['addresses:list:form:city:before'];\n 'customer:addresses:list:form:city:after'?: CustomerTemplates['addresses:list:form:city:after'];\n 'customer:addresses:list:form:phone:before'?: CustomerTemplates['addresses:list:form:phone:before'];\n 'customer:addresses:list:form:phone:after'?: CustomerTemplates['addresses:list:form:phone:after'];\n 'customer:addresses:list:form:company:before'?: CustomerTemplates['addresses:list:form:company:before'];\n 'customer:addresses:list:form:company:after'?: CustomerTemplates['addresses:list:form:company:after'];\n 'customer:addresses:list:form:address-line-one:before'?: CustomerTemplates['addresses:list:form:address-line-one:before'];\n 'customer:addresses:list:form:address-line-one:after'?: CustomerTemplates['addresses:list:form:address-line-one:after'];\n 'customer:addresses:list:form:address-line-two:before'?: CustomerTemplates['addresses:list:form:address-line-two:before'];\n 'customer:addresses:list:form:address-line-two:after'?: CustomerTemplates['addresses:list:form:address-line-two:after'];\n 'customer:addresses:list:form:postal-code:before'?: CustomerTemplates['addresses:list:form:postal-code:before'];\n 'customer:addresses:list:form:postal-code:after'?: CustomerTemplates['addresses:list:form:postal-code:after'];\n 'customer:addresses:list:form:timestamps:before'?: CustomerTemplates['addresses:list:form:timestamps:before'];\n 'customer:addresses:list:form:timestamps:after'?: CustomerTemplates['addresses:list:form:timestamps:after'];\n 'customer:addresses:list:form:delete:before'?: CustomerTemplates['addresses:list:form:delete:before'];\n 'customer:addresses:list:form:delete:after'?: CustomerTemplates['addresses:list:form:delete:after'];\n 'customer:addresses:list:form:create:before'?: CustomerTemplates['addresses:list:form:create:before'];\n 'customer:addresses:list:form:create:after'?: CustomerTemplates['addresses:list:form:create:after'];\n 'customer:payment-methods:before'?: CustomerTemplates['payment-methods:before'];\n 'customer:payment-methods:after'?: CustomerTemplates['payment-methods:after'];\n 'customer:payment-methods:list:before'?: CustomerTemplates['payment-methods:list:before'];\n 'customer:payment-methods:list:after'?: CustomerTemplates['payment-methods:list:after'];\n 'customer:payment-methods:list:card:actions:before'?: CustomerTemplates['payment-methods:list:card:actions:before'];\n 'customer:payment-methods:list:card:actions:after'?: CustomerTemplates['payment-methods:list:card:actions:after'];\n 'customer:payment-methods:list:card:actions:delete:before'?: CustomerTemplates['payment-methods:list:card:actions:delete:before'];\n 'customer:payment-methods:list:card:actions:delete:after'?: CustomerTemplates['payment-methods:list:card:actions:delete:after'];\n 'customer:attributes:before'?: CustomerTemplates['attributes:before'];\n 'customer:attributes:after'?: CustomerTemplates['attributes:after'];\n 'customer:attributes:actions:before'?: CustomerTemplates['attributes:actions:before'];\n 'customer:attributes:actions:after'?: CustomerTemplates['attributes:actions:after'];\n 'customer:attributes:actions:create:before'?: CustomerTemplates['attributes:actions:create:before'];\n 'customer:attributes:actions:create:after'?: CustomerTemplates['attributes:actions:create:after'];\n 'customer:attributes:actions:create:form:name:before'?: CustomerTemplates['attributes:actions:create:form:name:before'];\n 'customer:attributes:actions:create:form:name:after'?: CustomerTemplates['attributes:actions:create:form:name:after'];\n 'customer:attributes:actions:create:form:value:before'?: CustomerTemplates['attributes:actions:create:form:value:before'];\n 'customer:attributes:actions:create:form:value:after'?: CustomerTemplates['attributes:actions:create:form:value:after'];\n 'customer:attributes:actions:create:form:visibility:before'?: CustomerTemplates['attributes:actions:create:form:visibility:before'];\n 'customer:attributes:actions:create:form:visibility:after'?: CustomerTemplates['attributes:actions:create:form:visibility:after'];\n 'customer:attributes:actions:create:form:timestamps:before'?: CustomerTemplates['attributes:actions:create:form:timestamps:before'];\n 'customer:attributes:actions:create:form:timestamps:after'?: CustomerTemplates['attributes:actions:create:form:timestamps:after'];\n 'customer:attributes:actions:create:form:delete:before'?: CustomerTemplates['attributes:actions:create:form:delete:before'];\n 'customer:attributes:actions:create:form:delete:after'?: CustomerTemplates['attributes:actions:create:form:delete:after'];\n 'customer:attributes:actions:create:form:create:before'?: CustomerTemplates['attributes:actions:create:form:create:before'];\n 'customer:attributes:actions:create:form:create:after'?: CustomerTemplates['attributes:actions:create:form:create:after'];\n 'customer:attributes:list:before'?: CustomerTemplates['attributes:list:before'];\n 'customer:attributes:list:after'?: CustomerTemplates['attributes:list:after'];\n 'customer:attributes:list:card:name:before'?: CustomerTemplates['attributes:list:card:name:before'];\n 'customer:attributes:list:card:name:after'?: CustomerTemplates['attributes:list:card:name:after'];\n 'customer:attributes:list:card:value:before'?: CustomerTemplates['attributes:list:card:value:before'];\n 'customer:attributes:list:card:value:after'?: CustomerTemplates['attributes:list:card:value:after'];\n 'customer:attributes:list:form:name:before'?: CustomerTemplates['attributes:list:form:name:before'];\n 'customer:attributes:list:form:name:after'?: CustomerTemplates['attributes:list:form:name:after'];\n 'customer:attributes:list:form:value:before'?: CustomerTemplates['attributes:list:form:value:before'];\n 'customer:attributes:list:form:value:after'?: CustomerTemplates['attributes:list:form:value:after'];\n 'customer:attributes:list:form:visibility:before'?: CustomerTemplates['attributes:list:form:visibility:before'];\n 'customer:attributes:list:form:visibility:after'?: CustomerTemplates['attributes:list:form:visibility:after'];\n 'customer:attributes:list:form:timestamps:before'?: CustomerTemplates['attributes:list:form:timestamps:before'];\n 'customer:attributes:list:form:timestamps:after'?: CustomerTemplates['attributes:list:form:timestamps:after'];\n 'customer:attributes:list:form:delete:before'?: CustomerTemplates['attributes:list:form:delete:before'];\n 'customer:attributes:list:form:delete:after'?: CustomerTemplates['attributes:list:form:delete:after'];\n 'customer:attributes:list:form:create:before'?: CustomerTemplates['attributes:list:form:create:before'];\n 'customer:attributes:list:form:create:after'?: CustomerTemplates['attributes:list:form:create:after'];\n 'customer:transactions:before'?: CustomerTemplates['transactions:before'];\n 'customer:transactions:after'?: CustomerTemplates['transactions:after'];\n 'customer:transactions:table:default'?: CustomerTemplates['transactions:table:default'];\n 'customer:subscriptions:before'?: CustomerTemplates['subscriptions:before'];\n 'customer:subscriptions:after'?: CustomerTemplates['subscriptions:after'];\n 'customer:subscriptions:list:card:default'?: SubscriptionCardTemplates['default'];\n 'customer:subscriptions:list:form:header:before'?: CustomerTemplates['subscriptions:form:header:before'];\n 'customer:subscriptions:list:form:header:after'?: CustomerTemplates['subscriptions:form:header:after'];\n 'customer:subscriptions:list:form:items:before'?: CustomerTemplates['subscriptions:form:items:before'];\n 'customer:subscriptions:list:form:items:after'?: CustomerTemplates['subscriptions:form:items:after'];\n 'customer:subscriptions:list:form:items:actions:before'?: CustomerTemplates['subscriptions:form:items:actions:before'];\n 'customer:subscriptions:list:form:items:actions:after'?: CustomerTemplates['subscriptions:form:items:actions:after'];\n 'customer:subscriptions:list:form:end-date:before'?: CustomerTemplates['subscriptions:form:end-date:before'];\n 'customer:subscriptions:list:form:end-date:after'?: CustomerTemplates['subscriptions:form:end-date:after'];\n 'customer:subscriptions:list:form:end-date:form:warning:before'?: CustomerTemplates['subscriptions:form:end-date:form:warning:before'];\n 'customer:subscriptions:list:form:end-date:form:warning:after'?: CustomerTemplates['subscriptions:form:end-date:form:warning:after'];\n 'customer:subscriptions:list:form:end-date:form:end-date:before'?: CustomerTemplates['subscriptions:form:end-date:form:end-date:before'];\n 'customer:subscriptions:list:form:end-date:form:end-date:after'?: CustomerTemplates['subscriptions:form:end-date:form:end-date:after'];\n 'customer:subscriptions:list:form:end-date:form:submit:before'?: CustomerTemplates['subscriptions:form:end-date:form:submit:before'];\n 'customer:subscriptions:list:form:end-date:form:submit:after'?: CustomerTemplates['subscriptions:form:end-date:form:submit:after'];\n 'customer:subscriptions:list:form:next-transaction-date:before'?: CustomerTemplates['subscriptions:form:next-transaction-date:before'];\n 'customer:subscriptions:list:form:next-transaction-date:after'?: CustomerTemplates['subscriptions:form:next-transaction-date:after'];\n 'customer:subscriptions:list:form:frequency:before'?: CustomerTemplates['subscriptions:form:frequency:before'];\n 'customer:subscriptions:list:form:frequency:after'?: CustomerTemplates['subscriptions:form:frequency:after'];\n 'customer:subscriptions:list:form:transactions:before'?: CustomerTemplates['subscriptions:form:transactions:before'];\n 'customer:subscriptions:list:form:transactions:after'?: CustomerTemplates['subscriptions:form:transactions:after'];\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerPortal/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Templates as AccessRecoveryFormTemplates } from '../AccessRecoveryForm/types';\nimport { Customer } from '../Customer/Customer';\nimport { CustomerPortal } from '.';\nimport { Templates as CustomerTemplates } from '../Customer/types';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Templates as SignInFormTemplates } from '../SignInForm/types';\nimport { Templates as SubscriptionCardTemplates } from '../SubscriptionCard/types';\n\nexport type Templates = {\n 'sign-in:before'?: Renderer<CustomerPortal>;\n 'sign-in:after'?: Renderer<CustomerPortal>;\n 'sign-in:header:before'?: Renderer<CustomerPortal>;\n 'sign-in:header:after'?: Renderer<CustomerPortal>;\n 'sign-in:form:email:before'?: SignInFormTemplates['email:before'];\n 'sign-in:form:email:after'?: SignInFormTemplates['email:after'];\n 'sign-in:form:password:before'?: SignInFormTemplates['password:before'];\n 'sign-in:form:password:after'?: SignInFormTemplates['password:after'];\n 'sign-in:form:error:before'?: SignInFormTemplates['error:before'];\n 'sign-in:form:error:after'?: SignInFormTemplates['error:after'];\n 'sign-in:form:submit:before'?: SignInFormTemplates['submit:before'];\n 'sign-in:form:submit:after'?: SignInFormTemplates['submit:after'];\n 'sign-in:recover:before'?: Renderer<CustomerPortal>;\n 'sign-in:recover:after'?: Renderer<CustomerPortal>;\n\n 'access-recovery:before'?: Renderer<CustomerPortal>;\n 'access-recovery:after'?: Renderer<CustomerPortal>;\n 'access-recovery:header:before'?: Renderer<CustomerPortal>;\n 'access-recovery:header:after'?: Renderer<CustomerPortal>;\n 'access-recovery:form:email:before'?: AccessRecoveryFormTemplates['email:before'];\n 'access-recovery:form:email:after'?: AccessRecoveryFormTemplates['email:after'];\n 'access-recovery:form:message:before'?: AccessRecoveryFormTemplates['message:before'];\n 'access-recovery:form:message:after'?: AccessRecoveryFormTemplates['message:after'];\n 'access-recovery:form:submit:before'?: AccessRecoveryFormTemplates['submit:before'];\n 'access-recovery:form:submit:after'?: AccessRecoveryFormTemplates['submit:after'];\n 'access-recovery:back:before'?: Renderer<CustomerPortal>;\n 'access-recovery:back:after'?: Renderer<CustomerPortal>;\n\n 'customer:header:before'?: CustomerTemplates['header:before'];\n 'customer:header:after'?: CustomerTemplates['header:after'];\n 'customer:header:actions:before'?: CustomerTemplates['header:actions:before'];\n 'customer:header:actions:after'?: CustomerTemplates['header:actions:after'];\n 'customer:header:actions:edit:before'?: CustomerTemplates['header:actions:edit:before'];\n 'customer:header:actions:edit:after'?: CustomerTemplates['header:actions:edit:after'];\n 'customer:header:actions:edit:form:first-name:before'?: CustomerTemplates['header:actions:edit:form:first-name:before'];\n 'customer:header:actions:edit:form:first-name:after'?: CustomerTemplates['header:actions:edit:form:first-name:after'];\n 'customer:header:actions:edit:form:last-name:before'?: CustomerTemplates['header:actions:edit:form:last-name:before'];\n 'customer:header:actions:edit:form:last-name:after'?: CustomerTemplates['header:actions:edit:form:last-name:after'];\n 'customer:header:actions:edit:form:email:before'?: CustomerTemplates['header:actions:edit:form:email:before'];\n 'customer:header:actions:edit:form:email:after'?: CustomerTemplates['header:actions:edit:form:email:after'];\n 'customer:header:actions:edit:form:tax-id:before'?: CustomerTemplates['header:actions:edit:form:tax-id:before'];\n 'customer:header:actions:edit:form:tax-id:after'?: CustomerTemplates['header:actions:edit:form:tax-id:after'];\n 'customer:header:actions:edit:form:timestamps:before'?: CustomerTemplates['header:actions:edit:form:timestamps:before'];\n 'customer:header:actions:edit:form:timestamps:after'?: CustomerTemplates['header:actions:edit:form:timestamps:after'];\n 'customer:header:actions:edit:form:delete:before'?: CustomerTemplates['header:actions:edit:form:delete:before'];\n 'customer:header:actions:edit:form:delete:after'?: CustomerTemplates['header:actions:edit:form:delete:after'];\n 'customer:header:actions:edit:form:create:before'?: CustomerTemplates['header:actions:edit:form:create:before'];\n 'customer:header:actions:edit:form:create:after'?: CustomerTemplates['header:actions:edit:form:create:after'];\n 'customer:header:actions:edit:form:change-password:before'?: Renderer<Customer>;\n 'customer:header:actions:edit:form:change-password:after'?: Renderer<Customer>;\n 'customer:default'?: CustomerTemplates['default'];\n 'customer:addresses:before'?: CustomerTemplates['addresses:before'];\n 'customer:addresses:after'?: CustomerTemplates['addresses:after'];\n 'customer:addresses:actions:before'?: CustomerTemplates['addresses:actions:before'];\n 'customer:addresses:actions:after'?: CustomerTemplates['addresses:actions:after'];\n 'customer:addresses:actions:create:before'?: CustomerTemplates['addresses:actions:create:before'];\n 'customer:addresses:actions:create:after'?: CustomerTemplates['addresses:actions:create:after'];\n 'customer:addresses:actions:create:form:address-name:before'?: CustomerTemplates['addresses:actions:create:form:address-name:before'];\n 'customer:addresses:actions:create:form:address-name:after'?: CustomerTemplates['addresses:actions:create:form:address-name:after'];\n 'customer:addresses:actions:create:form:first-name:before'?: CustomerTemplates['addresses:actions:create:form:first-name:before'];\n 'customer:addresses:actions:create:form:first-name:after'?: CustomerTemplates['addresses:actions:create:form:first-name:after'];\n 'customer:addresses:actions:create:form:last-name:before'?: CustomerTemplates['addresses:actions:create:form:last-name:before'];\n 'customer:addresses:actions:create:form:last-name:after'?: CustomerTemplates['addresses:actions:create:form:last-name:after'];\n 'customer:addresses:actions:create:form:region:before'?: CustomerTemplates['addresses:actions:create:form:region:before'];\n 'customer:addresses:actions:create:form:region:after'?: CustomerTemplates['addresses:actions:create:form:region:after'];\n 'customer:addresses:actions:create:form:city:before'?: CustomerTemplates['addresses:actions:create:form:city:before'];\n 'customer:addresses:actions:create:form:city:after'?: CustomerTemplates['addresses:actions:create:form:city:after'];\n 'customer:addresses:actions:create:form:phone:before'?: CustomerTemplates['addresses:actions:create:form:phone:before'];\n 'customer:addresses:actions:create:form:phone:after'?: CustomerTemplates['addresses:actions:create:form:phone:after'];\n 'customer:addresses:actions:create:form:company:before'?: CustomerTemplates['addresses:actions:create:form:company:before'];\n 'customer:addresses:actions:create:form:company:after'?: CustomerTemplates['addresses:actions:create:form:company:after'];\n 'customer:addresses:actions:create:form:address-one:before'?: CustomerTemplates['addresses:actions:create:form:address-one:before'];\n 'customer:addresses:actions:create:form:address-one:after'?: CustomerTemplates['addresses:actions:create:form:address-one:after'];\n 'customer:addresses:actions:create:form:address-two:before'?: CustomerTemplates['addresses:actions:create:form:address-two:before'];\n 'customer:addresses:actions:create:form:address-two:after'?: CustomerTemplates['addresses:actions:create:form:address-two:after'];\n 'customer:addresses:actions:create:form:postal-code:before'?: CustomerTemplates['addresses:actions:create:form:postal-code:before'];\n 'customer:addresses:actions:create:form:postal-code:after'?: CustomerTemplates['addresses:actions:create:form:postal-code:after'];\n 'customer:addresses:actions:create:form:timestamps:before'?: CustomerTemplates['addresses:actions:create:form:timestamps:before'];\n 'customer:addresses:actions:create:form:timestamps:after'?: CustomerTemplates['addresses:actions:create:form:timestamps:after'];\n 'customer:addresses:actions:create:form:delete:before'?: CustomerTemplates['addresses:actions:create:form:delete:before'];\n 'customer:addresses:actions:create:form:delete:after'?: CustomerTemplates['addresses:actions:create:form:delete:after'];\n 'customer:addresses:actions:create:form:create:before'?: CustomerTemplates['addresses:actions:create:form:create:before'];\n 'customer:addresses:actions:create:form:create:after'?: CustomerTemplates['addresses:actions:create:form:create:after'];\n 'customer:addresses:list:before'?: CustomerTemplates['addresses:list:before'];\n 'customer:addresses:list:after'?: CustomerTemplates['addresses:list:after'];\n 'customer:addresses:list:card:address-name:before'?: CustomerTemplates['addresses:list:card:address-name:before'];\n 'customer:addresses:list:card:address-name:after'?: CustomerTemplates['addresses:list:card:address-name:after'];\n 'customer:addresses:list:card:full-name:before'?: CustomerTemplates['addresses:list:card:full-name:before'];\n 'customer:addresses:list:card:full-name:after'?: CustomerTemplates['addresses:list:card:full-name:after'];\n 'customer:addresses:list:card:full-address:before'?: CustomerTemplates['addresses:list:card:full-address:before'];\n 'customer:addresses:list:card:full-address:after'?: CustomerTemplates['addresses:list:card:full-address:after'];\n 'customer:addresses:list:card:company:before'?: CustomerTemplates['addresses:list:card:company:before'];\n 'customer:addresses:list:card:company:after'?: CustomerTemplates['addresses:list:card:company:after'];\n 'customer:addresses:list:card:phone:before'?: CustomerTemplates['addresses:list:card:phone:before'];\n 'customer:addresses:list:card:phone:after'?: CustomerTemplates['addresses:list:card:phone:after'];\n 'customer:addresses:list:form:address-name:before'?: CustomerTemplates['addresses:list:form:address-name:before'];\n 'customer:addresses:list:form:address-name:after'?: CustomerTemplates['addresses:list:form:address-name:after'];\n 'customer:addresses:list:form:first-name:before'?: CustomerTemplates['addresses:list:form:first-name:before'];\n 'customer:addresses:list:form:first-name:after'?: CustomerTemplates['addresses:list:form:first-name:after'];\n 'customer:addresses:list:form:last-name:before'?: CustomerTemplates['addresses:list:form:last-name:before'];\n 'customer:addresses:list:form:last-name:after'?: CustomerTemplates['addresses:list:form:last-name:after'];\n 'customer:addresses:list:form:region:before'?: CustomerTemplates['addresses:list:form:region:before'];\n 'customer:addresses:list:form:region:after'?: CustomerTemplates['addresses:list:form:region:after'];\n 'customer:addresses:list:form:city:before'?: CustomerTemplates['addresses:list:form:city:before'];\n 'customer:addresses:list:form:city:after'?: CustomerTemplates['addresses:list:form:city:after'];\n 'customer:addresses:list:form:phone:before'?: CustomerTemplates['addresses:list:form:phone:before'];\n 'customer:addresses:list:form:phone:after'?: CustomerTemplates['addresses:list:form:phone:after'];\n 'customer:addresses:list:form:company:before'?: CustomerTemplates['addresses:list:form:company:before'];\n 'customer:addresses:list:form:company:after'?: CustomerTemplates['addresses:list:form:company:after'];\n 'customer:addresses:list:form:address-one:before'?: CustomerTemplates['addresses:list:form:address-one:before'];\n 'customer:addresses:list:form:address-one:after'?: CustomerTemplates['addresses:list:form:address-one:after'];\n 'customer:addresses:list:form:address-two:before'?: CustomerTemplates['addresses:list:form:address-two:before'];\n 'customer:addresses:list:form:address-two:after'?: CustomerTemplates['addresses:list:form:address-two:after'];\n 'customer:addresses:list:form:postal-code:before'?: CustomerTemplates['addresses:list:form:postal-code:before'];\n 'customer:addresses:list:form:postal-code:after'?: CustomerTemplates['addresses:list:form:postal-code:after'];\n 'customer:addresses:list:form:timestamps:before'?: CustomerTemplates['addresses:list:form:timestamps:before'];\n 'customer:addresses:list:form:timestamps:after'?: CustomerTemplates['addresses:list:form:timestamps:after'];\n 'customer:addresses:list:form:delete:before'?: CustomerTemplates['addresses:list:form:delete:before'];\n 'customer:addresses:list:form:delete:after'?: CustomerTemplates['addresses:list:form:delete:after'];\n 'customer:addresses:list:form:create:before'?: CustomerTemplates['addresses:list:form:create:before'];\n 'customer:addresses:list:form:create:after'?: CustomerTemplates['addresses:list:form:create:after'];\n 'customer:payment-methods:before'?: CustomerTemplates['payment-methods:before'];\n 'customer:payment-methods:after'?: CustomerTemplates['payment-methods:after'];\n 'customer:payment-methods:list:before'?: CustomerTemplates['payment-methods:list:before'];\n 'customer:payment-methods:list:after'?: CustomerTemplates['payment-methods:list:after'];\n 'customer:payment-methods:list:card:actions:before'?: CustomerTemplates['payment-methods:list:card:actions:before'];\n 'customer:payment-methods:list:card:actions:after'?: CustomerTemplates['payment-methods:list:card:actions:after'];\n 'customer:payment-methods:list:card:actions:delete:before'?: CustomerTemplates['payment-methods:list:card:actions:delete:before'];\n 'customer:payment-methods:list:card:actions:delete:after'?: CustomerTemplates['payment-methods:list:card:actions:delete:after'];\n 'customer:attributes:before'?: CustomerTemplates['attributes:before'];\n 'customer:attributes:after'?: CustomerTemplates['attributes:after'];\n 'customer:attributes:actions:before'?: CustomerTemplates['attributes:actions:before'];\n 'customer:attributes:actions:after'?: CustomerTemplates['attributes:actions:after'];\n 'customer:attributes:actions:create:before'?: CustomerTemplates['attributes:actions:create:before'];\n 'customer:attributes:actions:create:after'?: CustomerTemplates['attributes:actions:create:after'];\n 'customer:attributes:actions:create:form:name:before'?: CustomerTemplates['attributes:actions:create:form:name:before'];\n 'customer:attributes:actions:create:form:name:after'?: CustomerTemplates['attributes:actions:create:form:name:after'];\n 'customer:attributes:actions:create:form:value:before'?: CustomerTemplates['attributes:actions:create:form:value:before'];\n 'customer:attributes:actions:create:form:value:after'?: CustomerTemplates['attributes:actions:create:form:value:after'];\n 'customer:attributes:actions:create:form:visibility:before'?: CustomerTemplates['attributes:actions:create:form:visibility:before'];\n 'customer:attributes:actions:create:form:visibility:after'?: CustomerTemplates['attributes:actions:create:form:visibility:after'];\n 'customer:attributes:actions:create:form:timestamps:before'?: CustomerTemplates['attributes:actions:create:form:timestamps:before'];\n 'customer:attributes:actions:create:form:timestamps:after'?: CustomerTemplates['attributes:actions:create:form:timestamps:after'];\n 'customer:attributes:actions:create:form:delete:before'?: CustomerTemplates['attributes:actions:create:form:delete:before'];\n 'customer:attributes:actions:create:form:delete:after'?: CustomerTemplates['attributes:actions:create:form:delete:after'];\n 'customer:attributes:actions:create:form:create:before'?: CustomerTemplates['attributes:actions:create:form:create:before'];\n 'customer:attributes:actions:create:form:create:after'?: CustomerTemplates['attributes:actions:create:form:create:after'];\n 'customer:attributes:list:before'?: CustomerTemplates['attributes:list:before'];\n 'customer:attributes:list:after'?: CustomerTemplates['attributes:list:after'];\n 'customer:attributes:list:card:name:before'?: CustomerTemplates['attributes:list:card:name:before'];\n 'customer:attributes:list:card:name:after'?: CustomerTemplates['attributes:list:card:name:after'];\n 'customer:attributes:list:card:value:before'?: CustomerTemplates['attributes:list:card:value:before'];\n 'customer:attributes:list:card:value:after'?: CustomerTemplates['attributes:list:card:value:after'];\n 'customer:attributes:list:form:name:before'?: CustomerTemplates['attributes:list:form:name:before'];\n 'customer:attributes:list:form:name:after'?: CustomerTemplates['attributes:list:form:name:after'];\n 'customer:attributes:list:form:value:before'?: CustomerTemplates['attributes:list:form:value:before'];\n 'customer:attributes:list:form:value:after'?: CustomerTemplates['attributes:list:form:value:after'];\n 'customer:attributes:list:form:visibility:before'?: CustomerTemplates['attributes:list:form:visibility:before'];\n 'customer:attributes:list:form:visibility:after'?: CustomerTemplates['attributes:list:form:visibility:after'];\n 'customer:attributes:list:form:timestamps:before'?: CustomerTemplates['attributes:list:form:timestamps:before'];\n 'customer:attributes:list:form:timestamps:after'?: CustomerTemplates['attributes:list:form:timestamps:after'];\n 'customer:attributes:list:form:delete:before'?: CustomerTemplates['attributes:list:form:delete:before'];\n 'customer:attributes:list:form:delete:after'?: CustomerTemplates['attributes:list:form:delete:after'];\n 'customer:attributes:list:form:create:before'?: CustomerTemplates['attributes:list:form:create:before'];\n 'customer:attributes:list:form:create:after'?: CustomerTemplates['attributes:list:form:create:after'];\n 'customer:transactions:before'?: CustomerTemplates['transactions:before'];\n 'customer:transactions:after'?: CustomerTemplates['transactions:after'];\n 'customer:transactions:table:default'?: CustomerTemplates['transactions:table:default'];\n 'customer:subscriptions:before'?: CustomerTemplates['subscriptions:before'];\n 'customer:subscriptions:after'?: CustomerTemplates['subscriptions:after'];\n 'customer:subscriptions:list:card:default'?: SubscriptionCardTemplates['default'];\n 'customer:subscriptions:list:form:header:before'?: CustomerTemplates['subscriptions:form:header:before'];\n 'customer:subscriptions:list:form:header:after'?: CustomerTemplates['subscriptions:form:header:after'];\n 'customer:subscriptions:list:form:items:before'?: CustomerTemplates['subscriptions:form:items:before'];\n 'customer:subscriptions:list:form:items:after'?: CustomerTemplates['subscriptions:form:items:after'];\n 'customer:subscriptions:list:form:items:actions:before'?: CustomerTemplates['subscriptions:form:items:actions:before'];\n 'customer:subscriptions:list:form:items:actions:after'?: CustomerTemplates['subscriptions:form:items:actions:after'];\n 'customer:subscriptions:list:form:end-date:before'?: CustomerTemplates['subscriptions:form:end-date:before'];\n 'customer:subscriptions:list:form:end-date:after'?: CustomerTemplates['subscriptions:form:end-date:after'];\n 'customer:subscriptions:list:form:end-date:form:warning:before'?: CustomerTemplates['subscriptions:form:end-date:form:warning:before'];\n 'customer:subscriptions:list:form:end-date:form:warning:after'?: CustomerTemplates['subscriptions:form:end-date:form:warning:after'];\n 'customer:subscriptions:list:form:end-date:form:end-date:before'?: CustomerTemplates['subscriptions:form:end-date:form:end-date:before'];\n 'customer:subscriptions:list:form:end-date:form:end-date:after'?: CustomerTemplates['subscriptions:form:end-date:form:end-date:after'];\n 'customer:subscriptions:list:form:end-date:form:submit:before'?: CustomerTemplates['subscriptions:form:end-date:form:submit:before'];\n 'customer:subscriptions:list:form:end-date:form:submit:after'?: CustomerTemplates['subscriptions:form:end-date:form:submit:after'];\n 'customer:subscriptions:list:form:next-transaction-date:before'?: CustomerTemplates['subscriptions:form:next-transaction-date:before'];\n 'customer:subscriptions:list:form:next-transaction-date:after'?: CustomerTemplates['subscriptions:form:next-transaction-date:after'];\n 'customer:subscriptions:list:form:frequency:before'?: CustomerTemplates['subscriptions:form:frequency:before'];\n 'customer:subscriptions:list:form:frequency:after'?: CustomerTemplates['subscriptions:form:frequency:after'];\n 'customer:subscriptions:list:form:transactions:before'?: CustomerTemplates['subscriptions:form:transactions:before'];\n 'customer:subscriptions:list:form:transactions:after'?: CustomerTemplates['subscriptions:form:transactions:after'];\n};\n"]}
@@ -59,18 +59,19 @@ export declare class TaxForm extends Base<Data> {
59
59
  static get properties(): PropertyDeclarations;
60
60
  static get v8n(): NucleonV8N<Data>;
61
61
  templates: Templates;
62
- private static __providers;
63
- private static __types;
64
62
  private __countries;
65
63
  private __regions;
66
64
  private __countriesService;
67
65
  private __regionsService;
66
+ /** URI of the `fx:countries` hAPI resource. */
68
67
  get countries(): string;
69
68
  set countries(value: string);
69
+ /** URI of the `fx:regions` hAPI resource. */
70
70
  get regions(): string;
71
71
  set regions(value: string);
72
72
  connectedCallback(): void;
73
73
  render(): TemplateResult;
74
+ updated(changes: Map<keyof this, unknown>): void;
74
75
  disconnectedCallback(): void;
75
76
  private get __isNameHidden();
76
77
  private get __isTypeHidden();
@@ -85,6 +86,8 @@ export declare class TaxForm extends Base<Data> {
85
86
  private get __isTimestampsHidden();
86
87
  private get __isCreateHidden();
87
88
  private get __isDeleteHidden();
89
+ private __getErrorMessage;
90
+ private __getValidator;
88
91
  private __renderName;
89
92
  private __renderType;
90
93
  private __renderCountry;
@@ -1,4 +1,4 @@
1
- import { Checkbox, PropertyTable } from "../../private/index.js";
1
+ import { Checkbox, Dropdown, PropertyTable } from "../../private/index.js";
2
2
  import { Nucleon } from '@foxy.io/sdk/core';
3
3
  import { ScopedElementsMixin } from '@open-wc/scoped-elements';
4
4
  import { html } from 'lit-html';
@@ -95,12 +95,12 @@ export class TaxForm extends Base {
95
95
  'vaadin-text-field': customElements.get('vaadin-text-field'),
96
96
  'vaadin-combo-box': customElements.get('vaadin-combo-box'),
97
97
  'vaadin-button': customElements.get('vaadin-button'),
98
- 'vaadin-select': customElements.get('vaadin-select'),
99
98
  'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),
100
99
  'foxy-spinner': customElements.get('foxy-spinner'),
101
100
  'foxy-i18n': customElements.get('foxy-i18n'),
102
101
  'x-property-table': PropertyTable,
103
102
  'x-checkbox': Checkbox,
103
+ 'x-dropdown': Dropdown,
104
104
  };
105
105
  }
106
106
  static get properties() {
@@ -114,21 +114,18 @@ export class TaxForm extends Base {
114
114
  return [
115
115
  ({ name: v }) => !!v || 'name_required',
116
116
  ({ name: v }) => !v || v.length <= 30 || 'name_too_long',
117
- ({ type: v }) => !!v || 'type_required',
118
- ({ type: v }) => (v && this.__types.includes(v)) || 'type_unknown',
119
- ({ country: c, type: t }) => t != 'country' || !!c || 'country_required',
117
+ ({ country: c, type: t }) => t !== 'country' || !!c || 'country_required',
118
+ ({ country: c, type: t }) => t !== 'region' || !!c || 'country_required',
120
119
  ({ country: c, use_origin_rates: r }) => !r || !!c || 'country_required',
121
- ({ country: v }) => !v || !!v.match(/[A-Z]{2}/) || 'country_unknown',
120
+ ({ country: v }) => !v || !!v.match(/[A-Z]{2}/) || 'country_invalid',
122
121
  ({ region: v, type: t }) => t != 'region' || !!v || 'region_required',
123
- ({ region: v }) => !v || v.length <= 20 || 'region_unknown',
124
- ({ city: v }) => !v || v.length <= 20 || 'city_too_long',
122
+ ({ region: v }) => !v || v.length <= 20 || 'region_too_long',
123
+ ({ city: v }) => !v || v.length <= 50 || 'city_too_long',
125
124
  ({ city: c, type: t }) => t != 'local' || !!c || 'city_required',
126
- ({ service_provider: v }) => !v || this.__providers.includes(v) || 'service_provider_unknown',
127
- ({ is_live: l, service_provider: v }) => !l || !!v || 'service_provider_required',
128
- ({ rate: v }) => !v || v <= 100 || 'rate_unknown',
129
- ({ is_live: l, rate: v }) => !!l || !!v || 'rate_required',
125
+ ({ rate: v }) => !v || v <= 100 || 'rate_invalid',
130
126
  ];
131
127
  }
128
+ /** URI of the `fx:countries` hAPI resource. */
132
129
  get countries() {
133
130
  return this.__countries;
134
131
  }
@@ -141,6 +138,7 @@ export class TaxForm extends Base {
141
138
  this.__countriesService.send({ type: 'SET_DATA', data: null });
142
139
  }
143
140
  }
141
+ /** URI of the `fx:regions` hAPI resource. */
144
142
  get regions() {
145
143
  return this.__regions;
146
144
  }
@@ -198,6 +196,11 @@ export class TaxForm extends Base {
198
196
  </div>
199
197
  `;
200
198
  }
199
+ updated(changes) {
200
+ super.updated(changes);
201
+ // vaadin's combo box doesn't seem to validate on its own
202
+ this.renderRoot.querySelectorAll('vaadin-combo-box').forEach(e => e.validate());
203
+ }
201
204
  disconnectedCallback() {
202
205
  super.disconnectedCallback();
203
206
  this.__countriesService.stop();
@@ -269,6 +272,13 @@ export class TaxForm extends Base {
269
272
  return true;
270
273
  return !this.data;
271
274
  }
275
+ __getErrorMessage(prefix) {
276
+ const error = this.errors.find(err => err.startsWith(prefix));
277
+ return error ? this.t(error.replace(prefix, 'v8n')).toString() : '';
278
+ }
279
+ __getValidator(prefix) {
280
+ return () => !this.errors.some(err => err.startsWith(prefix));
281
+ }
272
282
  __renderName() {
273
283
  return html `
274
284
  <div>
@@ -278,8 +288,11 @@ export class TaxForm extends Base {
278
288
  class="w-full"
279
289
  label=${this.t('name')}
280
290
  value=${ifDefined(this.form.name)}
291
+ .checkValidity=${this.__getValidator('name')}
292
+ .errorMessage=${this.__getErrorMessage('name')}
281
293
  ?disabled=${this.in('busy') || this.disabledSelector.matches('name', true)}
282
294
  ?readonly=${this.readonlySelector.matches('name', true)}
295
+ required
283
296
  @input=${(evt) => {
284
297
  const newName = evt.currentTarget.value;
285
298
  this.edit({ name: newName });
@@ -292,30 +305,23 @@ export class TaxForm extends Base {
292
305
  `;
293
306
  }
294
307
  __renderType() {
295
- const types = [
296
- { label: this.t('tax_global'), value: 'global' },
297
- { label: this.t('tax_union'), value: 'union' },
298
- { label: this.t('tax_country'), value: 'country' },
299
- { label: this.t('tax_region'), value: 'region' },
300
- { label: this.t('tax_local'), value: 'local' },
301
- ];
308
+ if (!this.form.type)
309
+ this.edit({ type: 'global' });
302
310
  return html `
303
311
  <div>
304
312
  ${this.renderTemplateOrSlot('type:before')}
305
313
 
306
- <vaadin-combo-box
307
- item-value-path="value"
308
- item-label-path="label"
309
- item-id-path="value"
314
+ <x-dropdown
310
315
  label=${this.t('type')}
311
316
  value=${ifDefined(this.form.type)}
312
317
  class="w-full"
313
- .items=${types}
318
+ .items=${['global', 'union', 'country', 'region', 'local']}
319
+ .getText=${(value) => this.t(`tax_${value}`)}
314
320
  ?disabled=${this.in('busy') || this.disabledSelector.matches('type', true)}
315
321
  ?readonly=${this.readonlySelector.matches('type', true)}
316
322
  @change=${(evt) => {
317
323
  this.edit({
318
- type: evt.currentTarget.value,
324
+ type: evt.detail,
319
325
  country: '',
320
326
  region: '',
321
327
  city: '',
@@ -328,7 +334,7 @@ export class TaxForm extends Base {
328
334
  });
329
335
  }}
330
336
  >
331
- </vaadin-combo-box>
337
+ </x-dropdown>
332
338
 
333
339
  ${this.renderTemplateOrSlot('type:after')}
334
340
  </div>
@@ -352,10 +358,13 @@ export class TaxForm extends Base {
352
358
  label="${this.t('country')}${isLoadingItems ? ` • ${this.t('loading_busy')}` : ''}"
353
359
  value=${ifDefined(this.form.country)}
354
360
  class="w-full"
361
+ .checkValidity=${this.__getValidator('country')}
362
+ .errorMessage=${this.__getErrorMessage('country')}
355
363
  .items=${items}
356
364
  ?allow-custom-value=${items.length === 0}
357
365
  ?disabled=${isLoading || this.disabledSelector.matches('country', true)}
358
366
  ?readonly=${this.readonlySelector.matches('country', true)}
367
+ required
359
368
  @change=${(evt) => {
360
369
  this.edit({
361
370
  country: evt.currentTarget.value,
@@ -393,10 +402,13 @@ export class TaxForm extends Base {
393
402
  label="${this.t('region')}${isLoadingItems ? ` • ${this.t('loading_busy')}` : ''}"
394
403
  value=${ifDefined(this.form.region)}
395
404
  class="w-full"
405
+ .checkValidity=${this.__getValidator('region')}
406
+ .errorMessage=${this.__getErrorMessage('region')}
396
407
  .items=${items}
397
408
  ?allow-custom-value=${items.length === 0}
398
409
  ?disabled=${isLoading || this.disabledSelector.matches('region', true)}
399
410
  ?readonly=${this.readonlySelector.matches('region', true)}
411
+ required
400
412
  @change=${(evt) => {
401
413
  const newRegion = evt.currentTarget.value;
402
414
  this.edit({ region: newRegion, city: '' });
@@ -417,8 +429,11 @@ export class TaxForm extends Base {
417
429
  class="w-full"
418
430
  label=${this.t('city')}
419
431
  value=${ifDefined(this.form.city)}
432
+ .checkValidity=${this.__getValidator('city')}
433
+ .errorMessage=${this.__getErrorMessage('city')}
420
434
  ?disabled=${this.in('busy') || this.disabledSelector.matches('city', true)}
421
435
  ?readonly=${this.readonlySelector.matches('city', true)}
436
+ required
422
437
  @input=${(evt) => {
423
438
  const newCity = evt.currentTarget.value;
424
439
  this.edit({ city: newCity });
@@ -436,7 +451,7 @@ export class TaxForm extends Base {
436
451
  { label: 'Avalara AvaTax 15', value: 'avalara' },
437
452
  { label: 'Thomson Reuters ONESOURCE', value: 'onesource' },
438
453
  ];
439
- if (defaultLiveRateCountries.includes(this.form.country)) {
454
+ if (this.form.type === 'union' || defaultLiveRateCountries.includes(this.form.country)) {
440
455
  items.push({ label: this.t('tax_rate_provider_default'), value: 'default' });
441
456
  }
442
457
  if (taxJarLiveRateCountries.includes(this.form.country)) {
@@ -446,33 +461,31 @@ export class TaxForm extends Base {
446
461
  <div>
447
462
  ${this.renderTemplateOrSlot('provider:before')}
448
463
 
449
- <vaadin-combo-box
450
- item-value-path="value"
451
- item-label-path="label"
452
- item-id-path="value"
464
+ <x-dropdown
453
465
  label=${this.t('tax_rate_provider')}
454
- value=${this.form.service_provider || this.form.is_live ? 'default' : 'none'}
466
+ value=${this.form.service_provider || (this.form.is_live ? 'default' : 'none')}
455
467
  class="w-full"
456
- allow-custom-value
457
- .items=${items}
468
+ .items=${items.map(item => item.value)}
469
+ .getText=${(value) => { var _a; return (_a = items.find(item => item.value === value)) === null || _a === void 0 ? void 0 : _a.label; }}
458
470
  ?disabled=${this.in('busy') || this.disabledSelector.matches('provider', true)}
459
471
  ?readonly=${this.readonlySelector.matches('provider', true)}
460
472
  @change=${(evt) => {
461
- const newValue = evt.currentTarget.value;
462
- const newProvider = newValue === 'none' || newValue === 'default' ? '' : newValue;
473
+ const newValue = evt.detail;
474
+ const newProvider = ['none', 'default'].includes(newValue) ? '' : newValue;
463
475
  this.edit({
464
476
  service_provider: newProvider,
465
477
  is_live: newValue !== 'none',
466
478
  });
479
+ if (this.__isExemptAllCustomerTaxIdsHidden) {
480
+ this.edit({ exempt_all_customer_tax_ids: false });
481
+ }
467
482
  if (this.__isApplyToShippingHidden)
468
483
  this.edit({ apply_to_shipping: false });
469
- if (this.__isExemptAllCustomerTaxIdsHidden)
470
- this.edit({ exempt_all_customer_tax_ids: false });
471
484
  if (this.__isUseOriginRatesHidden)
472
485
  this.edit({ use_origin_rates: false });
473
486
  }}
474
487
  >
475
- </vaadin-combo-box>
488
+ </x-dropdown>
476
489
 
477
490
  ${this.renderTemplateOrSlot('provider:after')}
478
491
  </div>
@@ -490,8 +503,11 @@ export class TaxForm extends Base {
490
503
  min="0"
491
504
  prevent-invalid-input
492
505
  has-controls
506
+ .checkValidity=${this.__getValidator('rate')}
507
+ .errorMessage=${this.__getErrorMessage('rate')}
493
508
  ?disabled=${this.in('busy') || this.disabledSelector.matches('rate', true)}
494
509
  ?readonly=${this.readonlySelector.matches('rate', true)}
510
+ required
495
511
  @change=${(evt) => {
496
512
  const newRate = parseInt(evt.currentTarget.value);
497
513
  this.edit({ rate: newRate });
@@ -682,6 +698,4 @@ export class TaxForm extends Base {
682
698
  `;
683
699
  }
684
700
  }
685
- TaxForm.__providers = ['avalara', '', 'taxjar', 'onesource'];
686
- TaxForm.__types = ['global', 'country', 'region', 'local', 'union'];
687
701
  //# sourceMappingURL=TaxForm.js.map