@foxy.io/elements 1.13.0-beta.1 → 1.14.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-form.js +1 -0
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/{shared-145cc9eb.js → shared-151ca103.js} +1 -1
- package/dist/cdn/{shared-f47647ac.js → shared-35415106.js} +1 -1
- package/dist/cdn/{shared-f2d6922d.js → shared-35502e88.js} +1 -1
- package/dist/cdn/{shared-c1e0e11f.js → shared-5388f705.js} +1 -1
- package/dist/cdn/{shared-452674bd.js → shared-566252ac.js} +1 -1
- package/dist/cdn/{shared-a99dea97.js → shared-5d286626.js} +1 -1
- package/dist/cdn/{shared-d9159fe1.js → shared-6783c996.js} +1 -1
- package/dist/cdn/shared-7f588649.js +1 -0
- package/dist/cdn/{shared-bf09e011.js → shared-9467cb31.js} +6 -6
- package/dist/cdn/{shared-91a9e922.js → shared-99f45065.js} +4 -4
- package/dist/cdn/{shared-67157a25.js → shared-dbbe03f9.js} +1 -1
- package/dist/cdn/{shared-e55b6bb7.js → shared-e057788f.js} +1 -1
- package/dist/cdn/shared-ebbef842.js +1 -0
- package/dist/cdn/{shared-b77179fd.js → shared-f2a4fd27.js} +1 -1
- package/dist/cdn/{shared-0dcff074.js → shared-fd5b81be.js} +1 -1
- package/dist/cdn/translations/shared/en.json +9 -0
- package/dist/elements/private/Choice/Choice.js +1 -3
- package/dist/elements/private/Choice/Choice.js.map +1 -1
- 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/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/TaxForm/TaxForm.d.ts +7 -2
- package/dist/elements/public/TaxForm/TaxForm.js +92 -49
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
- package/dist/elements/public/TaxForm/index.d.ts +2 -0
- package/dist/elements/public/TaxForm/index.js +2 -0
- package/dist/elements/public/TaxForm/index.js.map +1 -1
- package/dist/elements/public/TemplateForm/TemplateForm.d.ts +23 -0
- package/dist/elements/public/TemplateForm/TemplateForm.js +299 -0
- package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -0
- package/dist/elements/public/TemplateForm/index.d.ts +9 -0
- package/dist/elements/public/TemplateForm/index.js +11 -0
- package/dist/elements/public/TemplateForm/index.js.map +1 -0
- package/dist/elements/public/TemplateForm/types.d.ts +3 -0
- package/dist/elements/public/TemplateForm/types.js +2 -0
- package/dist/elements/public/TemplateForm/types.js.map +1 -0
- package/dist/elements/public/index.d.ts +1 -0
- package/dist/elements/public/index.defined.d.ts +1 -0
- package/dist/elements/public/index.defined.js +1 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +1 -0
- package/dist/elements/public/index.js.map +1 -1
- package/dist/mixins/themeable.js +8 -0
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-7888de8c.js +0 -1
- package/dist/cdn/shared-f2cf6cfb.js +0 -1
|
@@ -32,11 +32,11 @@ declare const Base: typeof NucleonElement & import("lit-element").Constructor<im
|
|
|
32
32
|
* @slot company:before - **new in v1.4.0**
|
|
33
33
|
* @slot company:after - **new in v1.4.0**
|
|
34
34
|
*
|
|
35
|
-
* @slot address-
|
|
36
|
-
* @slot address-
|
|
35
|
+
* @slot address-one:before - **new in v1.4.0**
|
|
36
|
+
* @slot address-one:after - **new in v1.4.0**
|
|
37
37
|
*
|
|
38
|
-
* @slot address-
|
|
39
|
-
* @slot address-
|
|
38
|
+
* @slot address-two:before - **new in v1.4.0**
|
|
39
|
+
* @slot address-two:after - **new in v1.4.0**
|
|
40
40
|
*
|
|
41
41
|
* @slot country:before - **new in v1.4.0**
|
|
42
42
|
* @slot country:after - **new in v1.4.0**
|
|
@@ -36,11 +36,11 @@ const Base = ScopedElementsMixin(ConfigurableMixin(ThemeableMixin(TranslatableMi
|
|
|
36
36
|
* @slot company:before - **new in v1.4.0**
|
|
37
37
|
* @slot company:after - **new in v1.4.0**
|
|
38
38
|
*
|
|
39
|
-
* @slot address-
|
|
40
|
-
* @slot address-
|
|
39
|
+
* @slot address-one:before - **new in v1.4.0**
|
|
40
|
+
* @slot address-one:after - **new in v1.4.0**
|
|
41
41
|
*
|
|
42
|
-
* @slot address-
|
|
43
|
-
* @slot address-
|
|
42
|
+
* @slot address-two:before - **new in v1.4.0**
|
|
43
|
+
* @slot address-two:after - **new in v1.4.0**
|
|
44
44
|
*
|
|
45
45
|
* @slot country:before - **new in v1.4.0**
|
|
46
46
|
* @slot country:after - **new in v1.4.0**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressForm.js","sourceRoot":"","sources":["../../../../src/elements/public/AddressForm/AddressForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AAIjE,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAElE,OAAO,EAAE,aAAa,EAAE,qDAAkD;AAC1E,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AACpD,OAAO,EAAE,SAAS,EAAE,uBAAoB;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,OAAO,MAAM,mBAAmB,CAAC;AAC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EAAC,KAAK,mDAAK;IACtC,CAAC;IAEO,eAAe,CAAC,GAAkB;QACxC,IAAI,GAAG,CAAC,GAAG,KAAK,OAAO;YAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IACzC,CAAC;IAEO,iBAAiB,CAAC,MAAc;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QAC9D,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,CAAC;IAEO,mBAAmB,CAAC,GAAU;QACpC,IAAI,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YACzD,OAAiC,CAAC,IAAI,CAAC,GAAG,CAAC,aAA4B,CAAC,CAAC;SAC3E;aAAM;YACL,IAAI,CAAC,MAAM,EAAE,CAAC;SACf;IACH,CAAC;IAEO,mBAAmB,CAAC,GAAoB;QAC9C,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS;YAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;CACF","sourcesContent":["import { ComboBoxParams, Data, Templates, TextFieldParams } from './types';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport { I18n } from '../I18n/I18n';\nimport { InternalConfirmDialog } from '../../internal/InternalConfirmDialog/InternalConfirmDialog';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { NucleonV8N } from '../NucleonElement/types';\nimport { PropertyTable } from '../../private/PropertyTable/PropertyTable';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\nimport { countries } from './countries';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport memoize from 'lodash-es/memoize';\nimport { regions } from './regions';\n\nconst NS = 'address-form';\nconst Base = ScopedElementsMixin(\n ConfigurableMixin(ThemeableMixin(TranslatableMixin(NucleonElement, NS)))\n);\n\n/**\n * Basic form displaying customer address.\n *\n * @slot address-name:before - **new in v1.4.0**\n * @slot address-name:after - **new in v1.4.0**\n *\n * @slot first-name:before - **new in v1.4.0**\n * @slot first-name:after - **new in v1.4.0**\n *\n * @slot last-name:before - **new in v1.4.0**\n * @slot last-name:after - **new in v1.4.0**\n *\n * @slot region:before - **new in v1.4.0**\n * @slot region:after - **new in v1.4.0**\n *\n * @slot city:before - **new in v1.4.0**\n * @slot city:after - **new in v1.4.0**\n *\n * @slot phone:before - **new in v1.4.0**\n * @slot phone:after - **new in v1.4.0**\n *\n * @slot company:before - **new in v1.4.0**\n * @slot company:after - **new in v1.4.0**\n *\n * @slot address-line-one:before - **new in v1.4.0**\n * @slot address-line-one:after - **new in v1.4.0**\n *\n * @slot address-line-two:before - **new in v1.4.0**\n * @slot address-line-two:after - **new in v1.4.0**\n *\n * @slot country:before - **new in v1.4.0**\n * @slot country:after - **new in v1.4.0**\n *\n * @slot postal-code:before - **new in v1.4.0**\n * @slot postal-code:after - **new in v1.4.0**\n *\n * @slot timestamps:before - **new in v1.4.0**\n * @slot timestamps:after - **new in v1.4.0**\n *\n * @slot create:before - **new in v1.4.0**\n * @slot create:after - **new in v1.4.0**\n *\n * @slot delete:before - **new in v1.4.0**\n * @slot delete:after - **new in v1.4.0**\n *\n * @element foxy-address-form\n * @since 1.2.0\n */\nexport class AddressForm extends Base<Data> {\n static get scopedElements(): ScopedElementsMap {\n return {\n 'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),\n 'foxy-internal-sandbox': customElements.get('foxy-internal-sandbox'),\n 'vaadin-text-field': customElements.get('vaadin-text-field'),\n 'vaadin-combo-box': customElements.get('vaadin-combo-box'),\n 'x-property-table': PropertyTable,\n 'vaadin-button': customElements.get('vaadin-button'),\n 'foxy-spinner': customElements.get('foxy-spinner'),\n 'foxy-i18n': customElements.get('foxy-i18n'),\n };\n }\n\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ address_name: v }) => (v && v.length > 0) || 'address_name_required',\n ({ address_name: v }) => !v || v.length <= 100 || 'address_name_too_long',\n ({ first_name: v }) => !v || v.length <= 50 || 'first_name_too_long',\n ({ last_name: v }) => !v || v.length <= 50 || 'last_name_too_long',\n ({ region: v }) => !v || v.length <= 50 || 'region_too_long',\n ({ city: v }) => !v || v.length <= 50 || 'city_too_long',\n ({ phone: v }) => !v || v.length <= 50 || 'phone_too_long',\n ({ company: v }) => !v || v.length <= 50 || 'company_too_long',\n ({ address2: v }) => !v || v.length <= 100 || 'address2_too_long',\n ({ address1: v }) => (v && v.length > 0) || 'address1_required',\n ({ address1: v }) => (v && v.length <= 100) || 'address1_too_long',\n ({ postal_code: v }) => !v || v.length <= 50 || 'postal_code_too_long',\n ];\n }\n\n templates: Templates = {};\n\n private readonly __getValidator = memoize((prefix: string) => () => {\n return !this.errors.some(err => err.startsWith(prefix));\n });\n\n private readonly __bindField = memoize((key: keyof Data) => {\n return (evt: CustomEvent) => {\n const target = evt.target as HTMLInputElement;\n this.edit({ [key]: target.value });\n };\n });\n\n private readonly __maybeRenderComboBox = (params: ComboBoxParams) => {\n const { source, field, custom = false } = params;\n const bsid = field.replace(/_/, '-');\n if (this.hiddenSelector.matches(bsid)) return '';\n\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n;\n const t = I18nElement.i18next.getFixedT(this.lang, field);\n\n return html`\n <div>\n ${this.renderTemplateOrSlot(`${bsid}:before`)}\n\n <vaadin-combo-box\n class=\"w-full\"\n label=${this.t(field).toString()}\n value=${ifDefined(this.form?.[field]?.toString())}\n error-message=${this.__getErrorMessage(field)}\n data-testid=${bsid}\n item-value-path=\"code\"\n item-label-path=\"text\"\n .checkValidity=${this.__getValidator(field)}\n .items=${source.map(code => ({ text: t(code).toString(), code }))}\n ?allow-custom-value=${custom}\n ?readonly=${this.readonlySelector.matches(bsid, true)}\n ?disabled=${!this.in('idle') || this.disabledSelector.matches(bsid, true)}\n @change=${this.__bindField(field)}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot(`${bsid}:after`)}\n </div>\n `;\n };\n\n private readonly __maybeRenderTextField = (params: TextFieldParams) => {\n const { field, wide = false, readonly = false, required = false } = params;\n const bsid = field.replace(/_/, '-').replace('1', '-one').replace('2', '-two');\n if (this.hiddenSelector.matches(bsid)) return '';\n\n return html`\n <div class=${classMap({ 'col-span-2': wide })}>\n ${this.renderTemplateOrSlot(`${bsid}:before`)}\n\n <vaadin-text-field\n class=\"w-full\"\n label=${this.t(field).toString()}\n value=${ifDefined(this.form?.[field]?.toString())}\n error-message=${this.__getErrorMessage(field)}\n data-testid=${bsid}\n .checkValidity=${this.__getValidator(field)}\n ?disabled=${!this.in('idle') || this.disabledSelector.matches(bsid)}\n ?required=${required}\n ?readonly=${readonly || this.readonlySelector.matches(bsid)}\n @input=${this.__bindField(field)}\n @keydown=${this.__handleKeyDown}\n >\n </vaadin-text-field>\n\n ${this.renderTemplateOrSlot(`${bsid}:after`)}\n </div>\n `;\n };\n\n private readonly __renderTimestamps = () => {\n const items = (['date_modified', 'date_created'] as const).map(field => ({\n name: this.t(field),\n value: this.data ? this.t('date', { value: new Date(this.data[field]) }) : '',\n }));\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('timestamps:before')}\n <x-property-table .items=${items} data-testid=\"timestamps\"></x-property-table>\n ${this.renderTemplateOrSlot('timestamps:after')}\n </div>\n `;\n };\n\n private readonly __renderAction = (action: string) => {\n const isTemplateValid = this.in({ idle: { template: { dirty: 'valid' } } });\n const isSnapshotValid = this.in({ idle: { snapshot: { dirty: 'valid' } } });\n const isDisabled = !this.in('idle') || this.disabledSelector.matches(action, true);\n const isDefaultShipping = !!this.form?.is_default_shipping;\n const isDefaultBilling = !!this.form?.is_default_billing;\n const isDefault = isDefaultShipping || isDefaultBilling;\n const isValid = isTemplateValid || isSnapshotValid;\n\n return html`\n <div>\n ${this.renderTemplateOrSlot(`${action}:before`)}\n\n <vaadin-button\n class=\"w-full\"\n theme=${this.in('idle') ? `primary ${this.href ? 'error' : 'success'}` : ''}\n data-testid=${action}\n ?disabled=${(this.in({ idle: 'template' }) && !isValid) || isDisabled || isDefault}\n @click=${this.__handleActionClick}\n >\n <foxy-i18n ns=${this.ns} key=${action} lang=${this.lang}></foxy-i18n>\n </vaadin-button>\n\n ${this.renderTemplateOrSlot(`${action}:after`)}\n </div>\n `;\n };\n\n connectedCallback(): void {\n super.connectedCallback();\n customElements.get('foxy-i18n').i18next.loadNamespaces(['country', 'region']);\n }\n\n render(): TemplateResult {\n const { hiddenSelector, lang, ns } = this;\n const action = this.href ? 'delete' : 'create';\n\n const isDefaultShipping = !!this.form?.is_default_shipping;\n const isDefaultBilling = !!this.form?.is_default_billing;\n const isDefault = isDefaultShipping || isDefaultBilling;\n const isBusy = this.in('busy');\n const isFail = this.in('fail');\n\n return html`\n <foxy-internal-confirm-dialog\n message=\"delete_prompt\"\n confirm=\"delete\"\n cancel=\"cancel\"\n header=\"delete\"\n theme=\"primary error\"\n lang=${lang}\n ns=${ns}\n id=\"confirm\"\n data-testid=\"confirm\"\n @hide=${this.__handleConfirmHide}\n >\n </foxy-internal-confirm-dialog>\n\n <div\n class=\"space-y-l font-lumo text-m leading-m text-body relative\"\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n data-testid=\"wrapper\"\n >\n <div class=\"grid grid-cols-2 gap-m\">\n ${this.__maybeRenderTextField({\n field: 'address_name',\n wide: true,\n readonly: isDefault,\n required: true,\n })}\n ${this.__maybeRenderTextField({ field: 'first_name' })}\n ${this.__maybeRenderTextField({ field: 'last_name' })}\n ${this.__maybeRenderTextField({ field: 'company' })}\n ${this.__maybeRenderTextField({ field: 'phone' })}\n ${this.__maybeRenderTextField({ field: 'address1', wide: true, required: true })}\n ${this.__maybeRenderTextField({ field: 'address2', wide: true })}\n ${this.__maybeRenderComboBox({ field: 'country', source: countries })}\n ${this.__maybeRenderComboBox({ field: 'region', source: regions, custom: true })}\n ${this.__maybeRenderTextField({ field: 'city' })}\n ${this.__maybeRenderTextField({ field: 'postal_code' })}\n </div>\n\n ${!this.data || hiddenSelector.matches('timestamps', true) ? '' : this.__renderTimestamps()}\n ${hiddenSelector.matches(action, true) ? '' : this.__renderAction(action)}\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'transition duration-500 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !isBusy && !isFail,\n })}\n >\n <foxy-spinner\n layout=\"vertical\"\n class=\"m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l\"\n state=${isFail ? 'error' : isBusy ? 'busy' : 'empty'}\n lang=${lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__getValidator.cache.clear?.();\n }\n\n private __handleKeyDown(evt: KeyboardEvent) {\n if (evt.key === 'Enter') this.submit();\n }\n\n private __getErrorMessage(prefix: string) {\n const error = this.errors.find(err => err.startsWith(prefix));\n return error ? this.t(error.replace(prefix, 'v8n')).toString() : '';\n }\n\n private __handleActionClick(evt: Event) {\n if (this.in({ idle: 'snapshot' })) {\n const confirm = this.renderRoot.querySelector('#confirm');\n (confirm as InternalConfirmDialog).show(evt.currentTarget as HTMLElement);\n } else {\n this.submit();\n }\n }\n\n private __handleConfirmHide(evt: DialogHideEvent) {\n if (!evt.detail.cancelled) this.delete();\n }\n}\n"]}
|
|
1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zD,OAAiC,CAAC,IAAI,CAAC,GAAG,CAAC,aAA4B,CAAC,CAAC;SAC3E;aAAM;YACL,IAAI,CAAC,MAAM,EAAE,CAAC;SACf;IACH,CAAC;IAEO,mBAAmB,CAAC,GAAoB;QAC9C,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS;YAAE,IAAI,CAAC,MAAM,EAAE,CAAC;IAC3C,CAAC;CACF","sourcesContent":["import { ComboBoxParams, Data, Templates, TextFieldParams } from './types';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport { I18n } from '../I18n/I18n';\nimport { InternalConfirmDialog } from '../../internal/InternalConfirmDialog/InternalConfirmDialog';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { NucleonV8N } from '../NucleonElement/types';\nimport { PropertyTable } from '../../private/PropertyTable/PropertyTable';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\nimport { countries } from './countries';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport memoize from 'lodash-es/memoize';\nimport { regions } from './regions';\n\nconst NS = 'address-form';\nconst Base = ScopedElementsMixin(\n ConfigurableMixin(ThemeableMixin(TranslatableMixin(NucleonElement, NS)))\n);\n\n/**\n * Basic form displaying customer address.\n *\n * @slot address-name:before - **new in v1.4.0**\n * @slot address-name:after - **new in v1.4.0**\n *\n * @slot first-name:before - **new in v1.4.0**\n * @slot first-name:after - **new in v1.4.0**\n *\n * @slot last-name:before - **new in v1.4.0**\n * @slot last-name:after - **new in v1.4.0**\n *\n * @slot region:before - **new in v1.4.0**\n * @slot region:after - **new in v1.4.0**\n *\n * @slot city:before - **new in v1.4.0**\n * @slot city:after - **new in v1.4.0**\n *\n * @slot phone:before - **new in v1.4.0**\n * @slot phone:after - **new in v1.4.0**\n *\n * @slot company:before - **new in v1.4.0**\n * @slot company:after - **new in v1.4.0**\n *\n * @slot address-one:before - **new in v1.4.0**\n * @slot address-one:after - **new in v1.4.0**\n *\n * @slot address-two:before - **new in v1.4.0**\n * @slot address-two:after - **new in v1.4.0**\n *\n * @slot country:before - **new in v1.4.0**\n * @slot country:after - **new in v1.4.0**\n *\n * @slot postal-code:before - **new in v1.4.0**\n * @slot postal-code:after - **new in v1.4.0**\n *\n * @slot timestamps:before - **new in v1.4.0**\n * @slot timestamps:after - **new in v1.4.0**\n *\n * @slot create:before - **new in v1.4.0**\n * @slot create:after - **new in v1.4.0**\n *\n * @slot delete:before - **new in v1.4.0**\n * @slot delete:after - **new in v1.4.0**\n *\n * @element foxy-address-form\n * @since 1.2.0\n */\nexport class AddressForm extends Base<Data> {\n static get scopedElements(): ScopedElementsMap {\n return {\n 'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),\n 'foxy-internal-sandbox': customElements.get('foxy-internal-sandbox'),\n 'vaadin-text-field': customElements.get('vaadin-text-field'),\n 'vaadin-combo-box': customElements.get('vaadin-combo-box'),\n 'x-property-table': PropertyTable,\n 'vaadin-button': customElements.get('vaadin-button'),\n 'foxy-spinner': customElements.get('foxy-spinner'),\n 'foxy-i18n': customElements.get('foxy-i18n'),\n };\n }\n\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ address_name: v }) => (v && v.length > 0) || 'address_name_required',\n ({ address_name: v }) => !v || v.length <= 100 || 'address_name_too_long',\n ({ first_name: v }) => !v || v.length <= 50 || 'first_name_too_long',\n ({ last_name: v }) => !v || v.length <= 50 || 'last_name_too_long',\n ({ region: v }) => !v || v.length <= 50 || 'region_too_long',\n ({ city: v }) => !v || v.length <= 50 || 'city_too_long',\n ({ phone: v }) => !v || v.length <= 50 || 'phone_too_long',\n ({ company: v }) => !v || v.length <= 50 || 'company_too_long',\n ({ address2: v }) => !v || v.length <= 100 || 'address2_too_long',\n ({ address1: v }) => (v && v.length > 0) || 'address1_required',\n ({ address1: v }) => (v && v.length <= 100) || 'address1_too_long',\n ({ postal_code: v }) => !v || v.length <= 50 || 'postal_code_too_long',\n ];\n }\n\n templates: Templates = {};\n\n private readonly __getValidator = memoize((prefix: string) => () => {\n return !this.errors.some(err => err.startsWith(prefix));\n });\n\n private readonly __bindField = memoize((key: keyof Data) => {\n return (evt: CustomEvent) => {\n const target = evt.target as HTMLInputElement;\n this.edit({ [key]: target.value });\n };\n });\n\n private readonly __maybeRenderComboBox = (params: ComboBoxParams) => {\n const { source, field, custom = false } = params;\n const bsid = field.replace(/_/, '-');\n if (this.hiddenSelector.matches(bsid)) return '';\n\n const I18nElement = customElements.get('foxy-i18n') as typeof I18n;\n const t = I18nElement.i18next.getFixedT(this.lang, field);\n\n return html`\n <div>\n ${this.renderTemplateOrSlot(`${bsid}:before`)}\n\n <vaadin-combo-box\n class=\"w-full\"\n label=${this.t(field).toString()}\n value=${ifDefined(this.form?.[field]?.toString())}\n error-message=${this.__getErrorMessage(field)}\n data-testid=${bsid}\n item-value-path=\"code\"\n item-label-path=\"text\"\n .checkValidity=${this.__getValidator(field)}\n .items=${source.map(code => ({ text: t(code).toString(), code }))}\n ?allow-custom-value=${custom}\n ?readonly=${this.readonlySelector.matches(bsid, true)}\n ?disabled=${!this.in('idle') || this.disabledSelector.matches(bsid, true)}\n @change=${this.__bindField(field)}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot(`${bsid}:after`)}\n </div>\n `;\n };\n\n private readonly __maybeRenderTextField = (params: TextFieldParams) => {\n const { field, wide = false, readonly = false, required = false } = params;\n const bsid = field.replace(/_/, '-').replace('1', '-one').replace('2', '-two');\n if (this.hiddenSelector.matches(bsid)) return '';\n\n return html`\n <div class=${classMap({ 'col-span-2': wide })}>\n ${this.renderTemplateOrSlot(`${bsid}:before`)}\n\n <vaadin-text-field\n class=\"w-full\"\n label=${this.t(field).toString()}\n value=${ifDefined(this.form?.[field]?.toString())}\n error-message=${this.__getErrorMessage(field)}\n data-testid=${bsid}\n .checkValidity=${this.__getValidator(field)}\n ?disabled=${!this.in('idle') || this.disabledSelector.matches(bsid)}\n ?required=${required}\n ?readonly=${readonly || this.readonlySelector.matches(bsid)}\n @input=${this.__bindField(field)}\n @keydown=${this.__handleKeyDown}\n >\n </vaadin-text-field>\n\n ${this.renderTemplateOrSlot(`${bsid}:after`)}\n </div>\n `;\n };\n\n private readonly __renderTimestamps = () => {\n const items = (['date_modified', 'date_created'] as const).map(field => ({\n name: this.t(field),\n value: this.data ? this.t('date', { value: new Date(this.data[field]) }) : '',\n }));\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('timestamps:before')}\n <x-property-table .items=${items} data-testid=\"timestamps\"></x-property-table>\n ${this.renderTemplateOrSlot('timestamps:after')}\n </div>\n `;\n };\n\n private readonly __renderAction = (action: string) => {\n const isTemplateValid = this.in({ idle: { template: { dirty: 'valid' } } });\n const isSnapshotValid = this.in({ idle: { snapshot: { dirty: 'valid' } } });\n const isDisabled = !this.in('idle') || this.disabledSelector.matches(action, true);\n const isDefaultShipping = !!this.form?.is_default_shipping;\n const isDefaultBilling = !!this.form?.is_default_billing;\n const isDefault = isDefaultShipping || isDefaultBilling;\n const isValid = isTemplateValid || isSnapshotValid;\n\n return html`\n <div>\n ${this.renderTemplateOrSlot(`${action}:before`)}\n\n <vaadin-button\n class=\"w-full\"\n theme=${this.in('idle') ? `primary ${this.href ? 'error' : 'success'}` : ''}\n data-testid=${action}\n ?disabled=${(this.in({ idle: 'template' }) && !isValid) || isDisabled || isDefault}\n @click=${this.__handleActionClick}\n >\n <foxy-i18n ns=${this.ns} key=${action} lang=${this.lang}></foxy-i18n>\n </vaadin-button>\n\n ${this.renderTemplateOrSlot(`${action}:after`)}\n </div>\n `;\n };\n\n connectedCallback(): void {\n super.connectedCallback();\n customElements.get('foxy-i18n').i18next.loadNamespaces(['country', 'region']);\n }\n\n render(): TemplateResult {\n const { hiddenSelector, lang, ns } = this;\n const action = this.href ? 'delete' : 'create';\n\n const isDefaultShipping = !!this.form?.is_default_shipping;\n const isDefaultBilling = !!this.form?.is_default_billing;\n const isDefault = isDefaultShipping || isDefaultBilling;\n const isBusy = this.in('busy');\n const isFail = this.in('fail');\n\n return html`\n <foxy-internal-confirm-dialog\n message=\"delete_prompt\"\n confirm=\"delete\"\n cancel=\"cancel\"\n header=\"delete\"\n theme=\"primary error\"\n lang=${lang}\n ns=${ns}\n id=\"confirm\"\n data-testid=\"confirm\"\n @hide=${this.__handleConfirmHide}\n >\n </foxy-internal-confirm-dialog>\n\n <div\n class=\"space-y-l font-lumo text-m leading-m text-body relative\"\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n data-testid=\"wrapper\"\n >\n <div class=\"grid grid-cols-2 gap-m\">\n ${this.__maybeRenderTextField({\n field: 'address_name',\n wide: true,\n readonly: isDefault,\n required: true,\n })}\n ${this.__maybeRenderTextField({ field: 'first_name' })}\n ${this.__maybeRenderTextField({ field: 'last_name' })}\n ${this.__maybeRenderTextField({ field: 'company' })}\n ${this.__maybeRenderTextField({ field: 'phone' })}\n ${this.__maybeRenderTextField({ field: 'address1', wide: true, required: true })}\n ${this.__maybeRenderTextField({ field: 'address2', wide: true })}\n ${this.__maybeRenderComboBox({ field: 'country', source: countries })}\n ${this.__maybeRenderComboBox({ field: 'region', source: regions, custom: true })}\n ${this.__maybeRenderTextField({ field: 'city' })}\n ${this.__maybeRenderTextField({ field: 'postal_code' })}\n </div>\n\n ${!this.data || hiddenSelector.matches('timestamps', true) ? '' : this.__renderTimestamps()}\n ${hiddenSelector.matches(action, true) ? '' : this.__renderAction(action)}\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'transition duration-500 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !isBusy && !isFail,\n })}\n >\n <foxy-spinner\n layout=\"vertical\"\n class=\"m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l\"\n state=${isFail ? 'error' : isBusy ? 'busy' : 'empty'}\n lang=${lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.__getValidator.cache.clear?.();\n }\n\n private __handleKeyDown(evt: KeyboardEvent) {\n if (evt.key === 'Enter') this.submit();\n }\n\n private __getErrorMessage(prefix: string) {\n const error = this.errors.find(err => err.startsWith(prefix));\n return error ? this.t(error.replace(prefix, 'v8n')).toString() : '';\n }\n\n private __handleActionClick(evt: Event) {\n if (this.in({ idle: 'snapshot' })) {\n const confirm = this.renderRoot.querySelector('#confirm');\n (confirm as InternalConfirmDialog).show(evt.currentTarget as HTMLElement);\n } else {\n this.submit();\n }\n }\n\n private __handleConfirmHide(evt: DialogHideEvent) {\n if (!evt.detail.cancelled) this.delete();\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { AddressForm } from './AddressForm';
|
|
1
2
|
import { Rels } from '@foxy.io/sdk/customer';
|
|
2
|
-
import { Resource } from '@foxy.io/sdk/core';
|
|
3
3
|
import { Renderer } from '../../../mixins/configurable';
|
|
4
|
-
import {
|
|
4
|
+
import { Resource } from '@foxy.io/sdk/core';
|
|
5
5
|
export declare type Data = Resource<Rels.CustomerAddress>;
|
|
6
6
|
export declare type Templates = {
|
|
7
7
|
'address-name:before'?: Renderer<AddressForm>;
|
|
@@ -18,10 +18,10 @@ export declare type Templates = {
|
|
|
18
18
|
'phone:after'?: Renderer<AddressForm>;
|
|
19
19
|
'company:before'?: Renderer<AddressForm>;
|
|
20
20
|
'company:after'?: Renderer<AddressForm>;
|
|
21
|
-
'address-
|
|
22
|
-
'address-
|
|
23
|
-
'address-
|
|
24
|
-
'address-
|
|
21
|
+
'address-one:before'?: Renderer<AddressForm>;
|
|
22
|
+
'address-one:after'?: Renderer<AddressForm>;
|
|
23
|
+
'address-two:before'?: Renderer<AddressForm>;
|
|
24
|
+
'address-two:after'?: Renderer<AddressForm>;
|
|
25
25
|
'postal-code:before'?: Renderer<AddressForm>;
|
|
26
26
|
'postal-code:after'?: Renderer<AddressForm>;
|
|
27
27
|
'timestamps:before'?: Renderer<AddressForm>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/AddressForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/AddressForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import { AddressForm } from './AddressForm';\nimport { Rels } from '@foxy.io/sdk/customer';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\n\nexport type Data = Resource<Rels.CustomerAddress>;\nexport type Templates = {\n 'address-name:before'?: Renderer<AddressForm>;\n 'address-name:after'?: Renderer<AddressForm>;\n 'first-name:before'?: Renderer<AddressForm>;\n 'first-name:after'?: Renderer<AddressForm>;\n 'last-name:before'?: Renderer<AddressForm>;\n 'last-name:after'?: Renderer<AddressForm>;\n 'region:before'?: Renderer<AddressForm>;\n 'region:after'?: Renderer<AddressForm>;\n 'city:before'?: Renderer<AddressForm>;\n 'city:after'?: Renderer<AddressForm>;\n 'phone:before'?: Renderer<AddressForm>;\n 'phone:after'?: Renderer<AddressForm>;\n 'company:before'?: Renderer<AddressForm>;\n 'company:after'?: Renderer<AddressForm>;\n 'address-one:before'?: Renderer<AddressForm>;\n 'address-one:after'?: Renderer<AddressForm>;\n 'address-two:before'?: Renderer<AddressForm>;\n 'address-two:after'?: Renderer<AddressForm>;\n 'postal-code:before'?: Renderer<AddressForm>;\n 'postal-code:after'?: Renderer<AddressForm>;\n 'timestamps:before'?: Renderer<AddressForm>;\n 'timestamps:after'?: Renderer<AddressForm>;\n 'delete:before'?: Renderer<AddressForm>;\n 'delete:after'?: Renderer<AddressForm>;\n 'create:before'?: Renderer<AddressForm>;\n 'create:after'?: Renderer<AddressForm>;\n};\n\nexport type ComboBoxParams = {\n source: string[];\n field: keyof Data;\n custom?: boolean;\n};\n\nexport type TextFieldParams = {\n field: keyof Data;\n wide?: boolean;\n required?: boolean;\n readonly?: boolean;\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"]}
|
|
@@ -59,18 +59,20 @@ export declare class TaxForm extends Base<Data> {
|
|
|
59
59
|
static get properties(): PropertyDeclarations;
|
|
60
60
|
static get v8n(): NucleonV8N<Data>;
|
|
61
61
|
templates: Templates;
|
|
62
|
-
private
|
|
63
|
-
private static __types;
|
|
62
|
+
private __previousCountry;
|
|
64
63
|
private __countries;
|
|
65
64
|
private __regions;
|
|
66
65
|
private __countriesService;
|
|
67
66
|
private __regionsService;
|
|
67
|
+
/** URI of the `fx:countries` hAPI resource. */
|
|
68
68
|
get countries(): string;
|
|
69
69
|
set countries(value: string);
|
|
70
|
+
/** URI of the `fx:regions` hAPI resource. */
|
|
70
71
|
get regions(): string;
|
|
71
72
|
set regions(value: string);
|
|
72
73
|
connectedCallback(): void;
|
|
73
74
|
render(): TemplateResult;
|
|
75
|
+
updated(changes: Map<keyof this, unknown>): void;
|
|
74
76
|
disconnectedCallback(): void;
|
|
75
77
|
private get __isNameHidden();
|
|
76
78
|
private get __isTypeHidden();
|
|
@@ -85,6 +87,8 @@ export declare class TaxForm extends Base<Data> {
|
|
|
85
87
|
private get __isTimestampsHidden();
|
|
86
88
|
private get __isCreateHidden();
|
|
87
89
|
private get __isDeleteHidden();
|
|
90
|
+
private __getErrorMessage;
|
|
91
|
+
private __getValidator;
|
|
88
92
|
private __renderName;
|
|
89
93
|
private __renderType;
|
|
90
94
|
private __renderCountry;
|
|
@@ -98,5 +102,6 @@ export declare class TaxForm extends Base<Data> {
|
|
|
98
102
|
private __renderTimestamps;
|
|
99
103
|
private __renderCreate;
|
|
100
104
|
private __renderDelete;
|
|
105
|
+
private __submitOnEnter;
|
|
101
106
|
}
|
|
102
107
|
export {};
|