@foxy.io/elements 1.12.0-beta.6 → 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.
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-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-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.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 +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -0
- package/dist/cdn/foxy-tax-form.js +1 -0
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/{shared-452674bd.js → shared-036a8b21.js} +1 -1
- package/dist/cdn/{shared-0dcff074.js → shared-296637c5.js} +1 -1
- package/dist/cdn/{shared-f2d6922d.js → shared-4a990126.js} +1 -1
- package/dist/cdn/shared-67157a25.js +1 -0
- package/dist/cdn/shared-b0b1d248.js +1 -0
- package/dist/cdn/translations/country/zh-cn.json +248 -0
- package/dist/cdn/translations/country/zh-hk.json +245 -0
- package/dist/cdn/translations/customer-portal/de.json +35 -0
- package/dist/cdn/translations/shared/de.json +16 -0
- package/dist/cdn/translations/shared/en.json +16 -0
- package/dist/cdn/translations/shared/es.json +18 -2
- package/dist/elements/private/Dialog/DialogWindow.js +1 -1
- package/dist/elements/private/Dialog/DialogWindow.js.map +1 -1
- package/dist/elements/public/AddressForm/AddressForm.d.ts +4 -4
- package/dist/elements/public/AddressForm/AddressForm.js +4 -4
- package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
- package/dist/elements/public/AddressForm/types.d.ts +6 -6
- package/dist/elements/public/AddressForm/types.js.map +1 -1
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js +10 -2
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js.map +1 -1
- package/dist/elements/public/Customer/types.d.ts +8 -8
- package/dist/elements/public/Customer/types.js.map +1 -1
- package/dist/elements/public/CustomerPortal/types.d.ts +8 -8
- package/dist/elements/public/CustomerPortal/types.js.map +1 -1
- package/dist/elements/public/TaxCard/TaxCard.d.ts +24 -0
- package/dist/elements/public/TaxCard/TaxCard.js +52 -0
- package/dist/elements/public/TaxCard/TaxCard.js.map +1 -0
- package/dist/elements/public/TaxCard/index.d.ts +5 -0
- package/dist/elements/public/TaxCard/index.js +7 -0
- package/dist/elements/public/TaxCard/index.js.map +1 -0
- package/dist/elements/public/TaxCard/types.d.ts +3 -0
- package/dist/elements/public/TaxCard/types.js +2 -0
- package/dist/elements/public/TaxCard/types.js.map +1 -0
- package/dist/elements/public/TaxForm/TaxForm.d.ts +105 -0
- package/dist/elements/public/TaxForm/TaxForm.js +701 -0
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -0
- package/dist/elements/public/TaxForm/index.d.ts +10 -0
- package/dist/elements/public/TaxForm/index.js +12 -0
- package/dist/elements/public/TaxForm/index.js.map +1 -0
- package/dist/elements/public/TaxForm/types.d.ts +33 -0
- package/dist/elements/public/TaxForm/types.js +2 -0
- package/dist/elements/public/TaxForm/types.js.map +1 -0
- package/dist/elements/public/index.d.ts +2 -0
- package/dist/elements/public/index.defined.d.ts +2 -0
- package/dist/elements/public/index.defined.js +2 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +2 -0
- package/dist/elements/public/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-7888de8c.js +0 -1
- package/dist/cdn/shared-dea02a36.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoLineCard.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomFieldCard/TwoLineCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,wCAAqC;AAC3E,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAElE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAgBpD,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D,MAAM,OAAO,WAA2C,SAAQ,IAAW;IAA3E;;QASE,cAAS,GAAqB,EAAE,CAAC;QAEjC,SAAI,GAAG,EAAE,CAAC;QAEV,OAAE,GAAG,EAAE,CAAC;QAES,kBAAa,GAAG,CAAC,OAA2B,EAAE,EAAE;YAC/D,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"TwoLineCard.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomFieldCard/TwoLineCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,wCAAqC;AAC3E,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAElE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAgBpD,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D,MAAM,OAAO,WAA2C,SAAQ,IAAW;IAA3E;;QASE,cAAS,GAAqB,EAAE,CAAC;QAEjC,SAAI,GAAG,EAAE,CAAC;QAEV,OAAE,GAAG,EAAE,CAAC;QAES,kBAAa,GAAG,CAAC,OAA2B,EAAE,EAAE;YAC/D,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC;;;YAGvC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;;;UAGvC,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC;;KAE7C,CAAC;QACJ,CAAC,CAAC;QAEe,qBAAgB,GAAG,CAAC,OAA2B,EAAE,EAAE;YAClE,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;;;YAG1C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;;;UAGvC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC;;KAEhD,CAAC;QACJ,CAAC,CAAC;IAgCJ,CAAC;IAxEC,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,GAAG,KAAK,CAAC,UAAU;YACnB,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YACtB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACrB,CAAC;IACJ,CAAC;IAoCD,MAAM,CAAC,OAA8B;;QACnC,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAE3C,OAAO,IAAI,CAAA;;;oBAGK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;;;UAGvC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;UAC/E,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC;;;kBAGhF,QAAQ,CAAC;YACf,2DAA2D,EAAE,IAAI;YACjE,+BAA+B,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;SAC7C,CAAC;;;;;oBAKQ,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;mBAC7E,IAAI,CAAC,IAAI;kBACV,IAAI,CAAC,EAAE,IAAI,YAAA,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC,0CAAE,SAAS,mCAAI,EAAE;;;;;KAK3E,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { ConfigurableMixin, Renderer } from '../../../mixins/configurable';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { HALJSONResource } from '../NucleonElement/types';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { PropertyDeclarations } from 'lit-element';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { classMap } from '../../../utils/class-map';\n\nexport type TemplateFn<TData extends HALJSONResource> = (data: TData) => TemplateResult;\n\nexport type Templates<TData extends HALJSONResource> = {\n 'title:before'?: Renderer<TData>;\n 'title:after'?: Renderer<TData>;\n 'subtitle:before'?: Renderer<TData>;\n 'subtitle:after'?: Renderer<TData>;\n};\n\nexport type RenderOptions<TData extends HALJSONResource> = {\n title: TemplateFn<TData>;\n subtitle: TemplateFn<TData>;\n};\n\nconst Base = ConfigurableMixin(ThemeableMixin(NucleonElement));\n\nexport class TwoLineCard<TData extends HALJSONResource> extends Base<TData> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String },\n ns: { type: String },\n };\n }\n\n templates: Templates<TData> = {};\n\n lang = '';\n\n ns = '';\n\n private readonly __renderTitle = (content?: TemplateFn<TData>) => {\n return html`\n <div data-testid=\"title\">\n ${this.renderTemplateOrSlot('title:before')}\n\n <div class=\"text-secondary truncate\">\n ${this.data ? content?.(this.data) : ''}​\n </div>\n\n ${this.renderTemplateOrSlot('title:after')}\n </div>\n `;\n };\n\n private readonly __renderSubtitle = (content?: TemplateFn<TData>) => {\n return html`\n <div data-testid=\"subtitle\">\n ${this.renderTemplateOrSlot('subtitle:before')}\n\n <div class=\"font-semibold truncate\">\n ${this.data ? content?.(this.data) : ''}​\n </div>\n\n ${this.renderTemplateOrSlot('subtitle:after')}\n </div>\n `;\n };\n\n render(options?: RenderOptions<TData>): TemplateResult {\n const hiddenSelector = this.hiddenSelector;\n\n return html`\n <div\n aria-live=\"polite\"\n aria-busy=${!this.data && this.in('busy')}\n class=\"relative text-body text-m font-lumo leading-m\"\n >\n ${hiddenSelector.matches('title', true) ? '' : this.__renderTitle(options?.title)}\n ${hiddenSelector.matches('subtitle', true) ? '' : this.__renderSubtitle(options?.subtitle)}\n\n <div\n class=${classMap({\n 'transition duration-250 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !!this.data,\n })}\n >\n <foxy-spinner\n data-testid=\"spinner\"\n class=\"m-auto\"\n state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n}\n"]}
|
|
@@ -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-
|
|
65
|
-
'addresses:actions:create:form:address-
|
|
66
|
-
'addresses:actions:create:form:address-
|
|
67
|
-
'addresses:actions:create:form:address-
|
|
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-
|
|
103
|
-
'addresses:list:form:address-
|
|
104
|
-
'addresses:list:form:address-
|
|
105
|
-
'addresses:list:form:address-
|
|
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-
|
|
79
|
-
'customer:addresses:actions:create:form:address-
|
|
80
|
-
'customer:addresses:actions:create:form:address-
|
|
81
|
-
'customer:addresses:actions:create:form:address-
|
|
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-
|
|
117
|
-
'customer:addresses:list:form:address-
|
|
118
|
-
'customer:addresses:list:form:address-
|
|
119
|
-
'customer:addresses:list:form:address-
|
|
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"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
import { Data } from './types';
|
|
3
|
+
import { TwoLineCard } from '../CustomFieldCard/TwoLineCard';
|
|
4
|
+
declare const TaxCard_base: typeof TwoLineCard & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
5
|
+
defaultNS: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Basic card displaying an applied tax.
|
|
9
|
+
*
|
|
10
|
+
* @slot title:before
|
|
11
|
+
* @slot title:after
|
|
12
|
+
*
|
|
13
|
+
* @slot subtitle:before
|
|
14
|
+
* @slot subtitle:after
|
|
15
|
+
*
|
|
16
|
+
* @element foxy-tax-card
|
|
17
|
+
* @since 1.13.0
|
|
18
|
+
*/
|
|
19
|
+
export declare class TaxCard extends TaxCard_base<Data> {
|
|
20
|
+
render(): TemplateResult;
|
|
21
|
+
private get __typeLabel();
|
|
22
|
+
private get __rateLabel();
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { html } from 'lit-html';
|
|
2
|
+
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
3
|
+
import { TwoLineCard } from "../CustomFieldCard/TwoLineCard.js";
|
|
4
|
+
/**
|
|
5
|
+
* Basic card displaying an applied tax.
|
|
6
|
+
*
|
|
7
|
+
* @slot title:before
|
|
8
|
+
* @slot title:after
|
|
9
|
+
*
|
|
10
|
+
* @slot subtitle:before
|
|
11
|
+
* @slot subtitle:after
|
|
12
|
+
*
|
|
13
|
+
* @element foxy-tax-card
|
|
14
|
+
* @since 1.13.0
|
|
15
|
+
*/
|
|
16
|
+
export class TaxCard extends TranslatableMixin(TwoLineCard, 'tax-card') {
|
|
17
|
+
render() {
|
|
18
|
+
return super.render({
|
|
19
|
+
title: ({ name }) => html `${name}`,
|
|
20
|
+
subtitle: () => html `${this.__typeLabel} • ${this.__rateLabel}`,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
get __typeLabel() {
|
|
24
|
+
var _a;
|
|
25
|
+
const { type, country, region, city } = (_a = this.data) !== null && _a !== void 0 ? _a : {};
|
|
26
|
+
if (type === 'global')
|
|
27
|
+
return this.t('tax_global');
|
|
28
|
+
if (type === 'union')
|
|
29
|
+
return this.t('tax_union');
|
|
30
|
+
if (type === 'country')
|
|
31
|
+
return country;
|
|
32
|
+
if (type === 'region')
|
|
33
|
+
return `${country}, ${region}`;
|
|
34
|
+
if (type === 'local')
|
|
35
|
+
return `${country}, ${region}, ${city}`;
|
|
36
|
+
}
|
|
37
|
+
get __rateLabel() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
if (((_a = this.data) === null || _a === void 0 ? void 0 : _a.is_live) === false) {
|
|
40
|
+
return this.t('percent', { fraction: this.data.rate / 100 });
|
|
41
|
+
}
|
|
42
|
+
const provider = (_b = this.data) === null || _b === void 0 ? void 0 : _b.service_provider;
|
|
43
|
+
if (provider === 'onesource')
|
|
44
|
+
return 'Thomson Reuters ONESOURCE';
|
|
45
|
+
if (provider === 'avalara')
|
|
46
|
+
return 'Avalara AvaTax 15';
|
|
47
|
+
if (provider === 'taxjar')
|
|
48
|
+
return 'TaxJar';
|
|
49
|
+
return this.t('tax_rate_provider_default');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=TaxCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaxCard.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/TaxCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,WAAW,EAAE,0CAAuC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,OAAQ,SAAQ,iBAAiB,CAAC,WAAW,EAAE,UAAU,CAAO;IAC3E,MAAM;QACJ,OAAO,KAAK,CAAC,MAAM,CAAC;YAClB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA,GAAG,IAAI,EAAE;YAClC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,WAAW,WAAW,IAAI,CAAC,WAAW,EAAE;SACrE,CAAC,CAAC;IACL,CAAC;IAED,IAAY,WAAW;;QACrB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAG,IAAI,CAAC,IAAI,mCAAI,EAAE,CAAC;QAExD,IAAI,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;QACnD,IAAI,IAAI,KAAK,OAAO;YAAE,OAAO,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QACjD,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,OAAO,CAAC;QACvC,IAAI,IAAI,KAAK,QAAQ;YAAE,OAAO,GAAG,OAAO,KAAK,MAAM,EAAE,CAAC;QACtD,IAAI,IAAI,KAAK,OAAO;YAAE,OAAO,GAAG,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC;IAChE,CAAC;IAED,IAAY,WAAW;;QACrB,IAAI,OAAA,IAAI,CAAC,IAAI,0CAAE,OAAO,MAAK,KAAK,EAAE;YAChC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC;SAC9D;QAED,MAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,IAAI,0CAAE,gBAAsC,CAAC;QAEnE,IAAI,QAAQ,KAAK,WAAW;YAAE,OAAO,2BAA2B,CAAC;QACjE,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,mBAAmB,CAAC;QACvD,IAAI,QAAQ,KAAK,QAAQ;YAAE,OAAO,QAAQ,CAAC;QAE3C,OAAO,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { TemplateResult, html } from 'lit-html';\n\nimport { Data } from './types';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { TwoLineCard } from '../CustomFieldCard/TwoLineCard';\n\n/**\n * Basic card displaying an applied tax.\n *\n * @slot title:before\n * @slot title:after\n *\n * @slot subtitle:before\n * @slot subtitle:after\n *\n * @element foxy-tax-card\n * @since 1.13.0\n */\nexport class TaxCard extends TranslatableMixin(TwoLineCard, 'tax-card')<Data> {\n render(): TemplateResult {\n return super.render({\n title: ({ name }) => html`${name}`,\n subtitle: () => html`${this.__typeLabel} • ${this.__rateLabel}`,\n });\n }\n\n private get __typeLabel() {\n const { type, country, region, city } = this.data ?? {};\n\n if (type === 'global') return this.t('tax_global');\n if (type === 'union') return this.t('tax_union');\n if (type === 'country') return country;\n if (type === 'region') return `${country}, ${region}`;\n if (type === 'local') return `${country}, ${region}, ${city}`;\n }\n\n private get __rateLabel() {\n if (this.data?.is_live === false) {\n return this.t('percent', { fraction: this.data.rate / 100 });\n }\n\n const provider = this.data?.service_provider as string | undefined;\n\n if (provider === 'onesource') return 'Thomson Reuters ONESOURCE';\n if (provider === 'avalara') return 'Avalara AvaTax 15';\n if (provider === 'taxjar') return 'TaxJar';\n\n return this.t('tax_rate_provider_default');\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/index.ts"],"names":[],"mappings":"AAAA,iDAA8C;AAC9C,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,OAAO,EAAE,qBAAkB;AAEpC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import '../../internal/InternalSandbox/index';\nimport '../Spinner/index';\nimport '../I18n/index';\n\nimport { TaxCard } from './TaxCard';\n\ncustomElements.define('foxy-tax-card', TaxCard);\n\nexport { TaxCard };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Resource } from '@foxy.io/sdk/core';\n\nexport type Data = Resource<Rels.Tax>;\n"]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Data, Templates } from './types';
|
|
2
|
+
import { ScopedElementsMap } from '@open-wc/scoped-elements';
|
|
3
|
+
import { TemplateResult } from 'lit-html';
|
|
4
|
+
import { NucleonElement } from '../NucleonElement/NucleonElement';
|
|
5
|
+
import { NucleonV8N } from '../NucleonElement/types';
|
|
6
|
+
import { PropertyDeclarations } from 'lit-element';
|
|
7
|
+
declare const Base: typeof NucleonElement & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
8
|
+
defaultNS: string;
|
|
9
|
+
} & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/src/types").ScopedElementsHost> & {
|
|
10
|
+
styles: import("lit-element").CSSResultArray;
|
|
11
|
+
} & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost>;
|
|
12
|
+
/**
|
|
13
|
+
* Form element for creating or editing taxes (`fx:tax`).
|
|
14
|
+
*
|
|
15
|
+
* @slot name:before
|
|
16
|
+
* @slot name:after
|
|
17
|
+
*
|
|
18
|
+
* @slot type:before
|
|
19
|
+
* @slot type:after
|
|
20
|
+
*
|
|
21
|
+
* @slot country:before
|
|
22
|
+
* @slot country:after
|
|
23
|
+
*
|
|
24
|
+
* @slot region:before
|
|
25
|
+
* @slot region:after
|
|
26
|
+
*
|
|
27
|
+
* @slot city:before
|
|
28
|
+
* @slot city:after
|
|
29
|
+
*
|
|
30
|
+
* @slot provider:before
|
|
31
|
+
* @slot provider:after
|
|
32
|
+
*
|
|
33
|
+
* @slot rate:before
|
|
34
|
+
* @slot rate:after
|
|
35
|
+
*
|
|
36
|
+
* @slot apply-to-shipping:before
|
|
37
|
+
* @slot apply-to-shipping:after
|
|
38
|
+
*
|
|
39
|
+
* @slot use-origin-rates:before
|
|
40
|
+
* @slot use-origin-rates:after
|
|
41
|
+
*
|
|
42
|
+
* @slot exempt-all-customer-tax-ids:before
|
|
43
|
+
* @slot exempt-all-customer-tax-ids:after
|
|
44
|
+
*
|
|
45
|
+
* @slot timestamps:before
|
|
46
|
+
* @slot timestamps:after
|
|
47
|
+
*
|
|
48
|
+
* @slot delete:before
|
|
49
|
+
* @slot delete:after
|
|
50
|
+
*
|
|
51
|
+
* @slot create:before
|
|
52
|
+
* @slot create:after
|
|
53
|
+
*
|
|
54
|
+
* @element foxy-tax-form
|
|
55
|
+
* @since 1.13.0
|
|
56
|
+
*/
|
|
57
|
+
export declare class TaxForm extends Base<Data> {
|
|
58
|
+
static get scopedElements(): ScopedElementsMap;
|
|
59
|
+
static get properties(): PropertyDeclarations;
|
|
60
|
+
static get v8n(): NucleonV8N<Data>;
|
|
61
|
+
templates: Templates;
|
|
62
|
+
private __countries;
|
|
63
|
+
private __regions;
|
|
64
|
+
private __countriesService;
|
|
65
|
+
private __regionsService;
|
|
66
|
+
/** URI of the `fx:countries` hAPI resource. */
|
|
67
|
+
get countries(): string;
|
|
68
|
+
set countries(value: string);
|
|
69
|
+
/** URI of the `fx:regions` hAPI resource. */
|
|
70
|
+
get regions(): string;
|
|
71
|
+
set regions(value: string);
|
|
72
|
+
connectedCallback(): void;
|
|
73
|
+
render(): TemplateResult;
|
|
74
|
+
updated(changes: Map<keyof this, unknown>): void;
|
|
75
|
+
disconnectedCallback(): void;
|
|
76
|
+
private get __isNameHidden();
|
|
77
|
+
private get __isTypeHidden();
|
|
78
|
+
private get __isCountryHidden();
|
|
79
|
+
private get __isRegionHidden();
|
|
80
|
+
private get __isCityHidden();
|
|
81
|
+
private get __isProviderHidden();
|
|
82
|
+
private get __isRateHidden();
|
|
83
|
+
private get __isApplyToShippingHidden();
|
|
84
|
+
private get __isUseOriginRatesHidden();
|
|
85
|
+
private get __isExemptAllCustomerTaxIdsHidden();
|
|
86
|
+
private get __isTimestampsHidden();
|
|
87
|
+
private get __isCreateHidden();
|
|
88
|
+
private get __isDeleteHidden();
|
|
89
|
+
private __getErrorMessage;
|
|
90
|
+
private __getValidator;
|
|
91
|
+
private __renderName;
|
|
92
|
+
private __renderType;
|
|
93
|
+
private __renderCountry;
|
|
94
|
+
private __renderRegion;
|
|
95
|
+
private __renderCity;
|
|
96
|
+
private __renderProvider;
|
|
97
|
+
private __renderRate;
|
|
98
|
+
private __renderApplyToShipping;
|
|
99
|
+
private __renderUseOriginRates;
|
|
100
|
+
private __renderExemptAllCustomerTaxIds;
|
|
101
|
+
private __renderTimestamps;
|
|
102
|
+
private __renderCreate;
|
|
103
|
+
private __renderDelete;
|
|
104
|
+
}
|
|
105
|
+
export {};
|