@foxy.io/elements 1.12.0-beta.5 → 1.13.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.
Files changed (57) hide show
  1. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  2. package/dist/cdn/foxy-custom-field-card.js +1 -1
  3. package/dist/cdn/foxy-customer-card.js +1 -1
  4. package/dist/cdn/foxy-discount-card.js +1 -1
  5. package/dist/cdn/foxy-tax-card.js +1 -0
  6. package/dist/cdn/foxy-tax-form.js +1 -0
  7. package/dist/cdn/foxy-transaction-card.js +1 -1
  8. package/dist/cdn/shared-67157a25.js +1 -0
  9. package/dist/cdn/translations/country/zh-cn.json +248 -0
  10. package/dist/cdn/translations/country/zh-hk.json +245 -0
  11. package/dist/cdn/translations/customer-portal/de.json +35 -0
  12. package/dist/cdn/translations/shared/de.json +59 -1
  13. package/dist/cdn/translations/shared/en.json +16 -0
  14. package/dist/cdn/translations/shared/es.json +40 -0
  15. package/dist/elements/public/CustomFieldCard/TwoLineCard.js +10 -2
  16. package/dist/elements/public/CustomFieldCard/TwoLineCard.js.map +1 -1
  17. package/dist/elements/public/CustomerCard/CustomerCard.d.ts +11 -0
  18. package/dist/elements/public/CustomerCard/CustomerCard.js +22 -7
  19. package/dist/elements/public/CustomerCard/CustomerCard.js.map +1 -1
  20. package/dist/elements/public/CustomerCard/index.d.ts +1 -0
  21. package/dist/elements/public/CustomerCard/index.js +1 -0
  22. package/dist/elements/public/CustomerCard/index.js.map +1 -1
  23. package/dist/elements/public/TaxCard/TaxCard.d.ts +24 -0
  24. package/dist/elements/public/TaxCard/TaxCard.js +52 -0
  25. package/dist/elements/public/TaxCard/TaxCard.js.map +1 -0
  26. package/dist/elements/public/TaxCard/index.d.ts +5 -0
  27. package/dist/elements/public/TaxCard/index.js +7 -0
  28. package/dist/elements/public/TaxCard/index.js.map +1 -0
  29. package/dist/elements/public/TaxCard/types.d.ts +3 -0
  30. package/dist/elements/public/TaxCard/types.js +2 -0
  31. package/dist/elements/public/TaxCard/types.js.map +1 -0
  32. package/dist/elements/public/TaxForm/TaxForm.d.ts +102 -0
  33. package/dist/elements/public/TaxForm/TaxForm.js +687 -0
  34. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -0
  35. package/dist/elements/public/TaxForm/index.d.ts +9 -0
  36. package/dist/elements/public/TaxForm/index.js +11 -0
  37. package/dist/elements/public/TaxForm/index.js.map +1 -0
  38. package/dist/elements/public/TaxForm/types.d.ts +33 -0
  39. package/dist/elements/public/TaxForm/types.js +2 -0
  40. package/dist/elements/public/TaxForm/types.js.map +1 -0
  41. package/dist/elements/public/TransactionCard/TransactionCard.d.ts +15 -0
  42. package/dist/elements/public/TransactionCard/TransactionCard.js +51 -27
  43. package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
  44. package/dist/elements/public/TransactionCard/index.d.ts +1 -0
  45. package/dist/elements/public/TransactionCard/index.js +1 -0
  46. package/dist/elements/public/TransactionCard/index.js.map +1 -1
  47. package/dist/elements/public/TransactionCard/types.d.ts +1 -1
  48. package/dist/elements/public/TransactionCard/types.js.map +1 -1
  49. package/dist/elements/public/index.d.ts +2 -0
  50. package/dist/elements/public/index.defined.d.ts +2 -0
  51. package/dist/elements/public/index.defined.js +2 -0
  52. package/dist/elements/public/index.defined.js.map +1 -1
  53. package/dist/elements/public/index.js +2 -0
  54. package/dist/elements/public/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/cdn/shared-dea02a36.js +0 -1
  57. package/dist/cdn/translations/admin/en.json +0 -59
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaxForm.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxForm/TaxForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,+BAA4B;AAE9D,OAAO,EAAE,OAAO,EAAY,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAqB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;A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E,OAAO,EAAE,OAAO,CAAC,CAAC","sourcesContent":["import { Checkbox, PropertyTable } from '../../private/index';\nimport { Data, Templates } from './types';\nimport { Nucleon, Resource } from '@foxy.io/sdk/core';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ButtonElement } from '@vaadin/vaadin-button';\nimport { CheckboxChangeEvent } from '../../private/events';\nimport { ComboBoxElement } from '@vaadin/vaadin-combo-box';\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport { IntegerFieldElement } from '@vaadin/vaadin-text-field/vaadin-integer-field';\nimport { InternalConfirmDialog } from '../../internal/InternalConfirmDialog/InternalConfirmDialog';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { NucleonV8N } from '../NucleonElement/types';\nimport { PropertyDeclarations } from 'lit-element';\nimport { Rels } from '@foxy.io/sdk/backend';\nimport { TextFieldElement } from '@vaadin/vaadin-text-field';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { interpret } from 'xstate';\n\n// prettier-ignore\nconst defaultLiveRateCountries: (string | undefined)[] = ['US', 'CA', 'AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'ES', 'FI', 'FR', 'GB', 'GR', 'HR', 'HU', 'IE', 'IM', 'IT', 'LT', 'LU', 'LV', 'MC', 'MT', 'NL', 'PL', 'PT', 'RO', 'SE', 'SI', 'SK'];\nconst taxJarLiveRateCountries = [...defaultLiveRateCountries, 'AU'];\n\nconst NS = 'tax-form';\nconst Base = ConfigurableMixin(\n ThemeableMixin(ScopedElementsMixin(TranslatableMixin(NucleonElement, NS)))\n);\n\n/**\n * Form element for creating or editing taxes (`fx:tax`).\n *\n * @slot name:before\n * @slot name:after\n *\n * @slot type:before\n * @slot type:after\n *\n * @slot country:before\n * @slot country:after\n *\n * @slot region:before\n * @slot region:after\n *\n * @slot city:before\n * @slot city:after\n *\n * @slot provider:before\n * @slot provider:after\n *\n * @slot rate:before\n * @slot rate:after\n *\n * @slot apply-to-shipping:before\n * @slot apply-to-shipping:after\n *\n * @slot use-origin-rates:before\n * @slot use-origin-rates:after\n *\n * @slot exempt-all-customer-tax-ids:before\n * @slot exempt-all-customer-tax-ids:after\n *\n * @slot timestamps:before\n * @slot timestamps:after\n *\n * @slot delete:before\n * @slot delete:after\n *\n * @slot create:before\n * @slot create:after\n *\n * @element foxy-tax-form\n * @since 1.13.0\n */\nexport class TaxForm extends Base<Data> {\n static get scopedElements(): ScopedElementsMap {\n return {\n 'vaadin-integer-field': customElements.get('vaadin-integer-field'),\n 'vaadin-text-field': customElements.get('vaadin-text-field'),\n 'vaadin-combo-box': customElements.get('vaadin-combo-box'),\n 'vaadin-button': customElements.get('vaadin-button'),\n 'vaadin-select': customElements.get('vaadin-select'),\n 'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),\n 'foxy-spinner': customElements.get('foxy-spinner'),\n 'foxy-i18n': customElements.get('foxy-i18n'),\n 'x-property-table': PropertyTable,\n 'x-checkbox': Checkbox,\n };\n }\n\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n countries: { type: String, noAccessor: true },\n regions: { type: String, noAccessor: true },\n };\n }\n\n static get v8n(): NucleonV8N<Data> {\n return [\n ({ name: v }) => !!v || 'name_required',\n ({ name: v }) => !v || v.length <= 30 || 'name_too_long',\n ({ type: v }) => !!v || 'type_required',\n ({ type: v }) => (v && this.__types.includes(v)) || 'type_unknown',\n ({ country: c, type: t }) => t != 'country' || !!c || 'country_required',\n ({ country: c, use_origin_rates: r }) => !r || !!c || 'country_required',\n ({ country: v }) => !v || !!v.match(/[A-Z]{2}/) || 'country_unknown',\n ({ region: v, type: t }) => t != 'region' || !!v || 'region_required',\n ({ region: v }) => !v || v.length <= 20 || 'region_unknown',\n ({ city: v }) => !v || v.length <= 20 || 'city_too_long',\n ({ city: c, type: t }) => t != 'local' || !!c || 'city_required',\n ({ service_provider: v }) => !v || this.__providers.includes(v) || 'service_provider_unknown',\n ({ is_live: l, service_provider: v }) => !l || !!v || 'service_provider_required',\n ({ rate: v }) => !v || v <= 100 || 'rate_unknown',\n ({ is_live: l, rate: v }) => !!l || !!v || 'rate_required',\n ];\n }\n\n templates: Templates = {};\n\n private static __providers = ['avalara', '', 'taxjar', 'onesource'];\n\n private static __types = ['global', 'country', 'region', 'local', 'union'];\n\n private __countries = '';\n\n private __regions = '';\n\n private __countriesService = interpret(\n Nucleon.machine.withConfig({\n services: {\n sendGet: async () => {\n const response = await new TaxForm.API(this).fetch(this.countries);\n if (!response.ok) throw new Error(await response.text());\n return await response.json();\n },\n },\n })\n );\n\n private __regionsService = interpret(\n Nucleon.machine.withConfig({\n services: {\n sendGet: async () => {\n const url = new URL(this.regions);\n url.searchParams.set('country_code', this.form.country ?? 'US');\n const response = await new TaxForm.API(this).fetch(url.toString());\n if (!response.ok) throw new Error(await response.text());\n return await response.json();\n },\n },\n })\n );\n\n get countries(): string {\n return this.__countries;\n }\n\n set countries(value: string) {\n this.__countries = value;\n\n if (value) {\n this.__countriesService.send({ type: 'FETCH' });\n } else {\n this.__countriesService.send({ type: 'SET_DATA', data: null });\n }\n }\n\n get regions(): string {\n return this.__regions;\n }\n\n set regions(value: string) {\n this.__regions = value;\n\n if (value) {\n this.__regionsService.send({ type: 'FETCH' });\n } else {\n this.__regionsService.send({ type: 'SET_DATA', data: null });\n }\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n this.__countriesService.onTransition(({ changed }) => changed && this.requestUpdate());\n this.__countriesService.onChange(() => this.requestUpdate());\n this.__countriesService.start();\n\n this.__regionsService.onTransition(({ changed }) => changed && this.requestUpdate());\n this.__regionsService.onChange(() => this.requestUpdate());\n this.__regionsService.start();\n }\n\n render(): TemplateResult {\n return html`\n <div class=\"relative space-y-m\">\n ${this.__isNameHidden ? null : this.__renderName()}\n ${this.__isTypeHidden ? null : this.__renderType()}\n ${this.__isCountryHidden ? null : this.__renderCountry()}\n ${this.__isRegionHidden ? null : this.__renderRegion()}\n ${this.__isCityHidden ? null : this.__renderCity()}\n ${this.__isProviderHidden ? null : this.__renderProvider()}\n ${this.__isRateHidden ? null : this.__renderRate()}\n ${this.__isApplyToShippingHidden ? null : this.__renderApplyToShipping()}\n ${this.__isUseOriginRatesHidden ? null : this.__renderUseOriginRates()}\n ${this.__isExemptAllCustomerTaxIdsHidden ? null : this.__renderExemptAllCustomerTaxIds()}\n ${this.__isTimestampsHidden ? null : this.__renderTimestamps()}\n ${this.__isCreateHidden ? null : this.__renderCreate()}\n ${this.__isDeleteHidden ? null : this.__renderDelete()}\n\n <div\n class=${classMap({\n 'transition duration-500 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !this.in('busy') && !this.in('fail'),\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=${this.in('fail') ? 'error' : this.in('busy') ? 'busy' : 'empty'}\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n\n this.__countriesService.stop();\n this.__regionsService.stop();\n }\n\n private get __isNameHidden(): boolean {\n return this.hiddenSelector.matches('name', true);\n }\n\n private get __isTypeHidden(): boolean {\n return this.hiddenSelector.matches('type', true);\n }\n\n private get __isCountryHidden(): boolean {\n if (this.hiddenSelector.matches('country', true)) return true;\n if (this.form.type === 'union') return !this.form.use_origin_rates;\n return !(['country', 'region', 'local'] as unknown[]).includes(this.form.type);\n }\n\n private get __isRegionHidden(): boolean {\n if (this.hiddenSelector.matches('region', true)) return true;\n return this.form.type !== 'local' && this.form.type !== 'region';\n }\n\n private get __isCityHidden(): boolean {\n if (this.hiddenSelector.matches('city', true)) return true;\n return this.form.type !== 'local';\n }\n\n private get __isProviderHidden(): boolean {\n if (this.hiddenSelector.matches('provider', true)) return true;\n return !this.form.type || this.form.type === 'global' || this.form.type === 'local';\n }\n\n private get __isRateHidden(): boolean {\n if (this.hiddenSelector.matches('rate', true)) return true;\n return !this.form.type || this.form.is_live === true;\n }\n\n private get __isApplyToShippingHidden(): boolean {\n if (this.hiddenSelector.matches('apply-to-shipping', true)) return true;\n if (this.form.type === undefined) return true;\n return !!this.form.is_live && defaultLiveRateCountries.includes(this.form.country);\n }\n\n private get __isUseOriginRatesHidden(): boolean {\n if (this.hiddenSelector.matches('use-origin-rates', true)) return true;\n return this.form.type !== 'union' || !this.form.is_live || !!this.form.service_provider;\n }\n\n private get __isExemptAllCustomerTaxIdsHidden(): boolean {\n if (this.hiddenSelector.matches('exempt-all-customer-tax-ids', true)) return true;\n const provider = this.form.service_provider as string | undefined;\n return provider === undefined || provider === 'onesource' || provider === 'avalara';\n }\n\n private get __isTimestampsHidden(): boolean {\n if (this.hiddenSelector.matches('timestamps', true)) return true;\n return !this.data;\n }\n\n private get __isCreateHidden(): boolean {\n if (this.hiddenSelector.matches('create', true)) return true;\n return !!this.data;\n }\n\n private get __isDeleteHidden(): boolean {\n if (this.hiddenSelector.matches('delete', true)) return true;\n return !this.data;\n }\n\n private __renderName(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('name:before')}\n\n <vaadin-text-field\n class=\"w-full\"\n label=${this.t('name')}\n value=${ifDefined(this.form.name)}\n ?disabled=${this.in('busy') || this.disabledSelector.matches('name', true)}\n ?readonly=${this.readonlySelector.matches('name', true)}\n @input=${(evt: CustomEvent) => {\n const newName = (evt.currentTarget as TextFieldElement).value;\n this.edit({ name: newName });\n }}\n >\n </vaadin-text-field>\n\n ${this.renderTemplateOrSlot('name:after')}\n </div>\n `;\n }\n\n private __renderType(): TemplateResult {\n const types = [\n { label: this.t('tax_global'), value: 'global' },\n { label: this.t('tax_union'), value: 'union' },\n { label: this.t('tax_country'), value: 'country' },\n { label: this.t('tax_region'), value: 'region' },\n { label: this.t('tax_local'), value: 'local' },\n ];\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('type:before')}\n\n <vaadin-combo-box\n item-value-path=\"value\"\n item-label-path=\"label\"\n item-id-path=\"value\"\n label=${this.t('type')}\n value=${ifDefined(this.form.type)}\n class=\"w-full\"\n .items=${types}\n ?disabled=${this.in('busy') || this.disabledSelector.matches('type', true)}\n ?readonly=${this.readonlySelector.matches('type', true)}\n @change=${(evt: CustomEvent) => {\n this.edit({\n type: (evt.currentTarget as ComboBoxElement).value as Data['type'],\n country: '',\n region: '',\n city: '',\n service_provider: '',\n apply_to_shipping: false,\n use_origin_rates: false,\n exempt_all_customer_tax_ids: false,\n is_live: false,\n rate: 0,\n });\n }}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot('type:after')}\n </div>\n `;\n }\n\n private __renderCountry(): TemplateResult {\n const isLoadingItems = this.__countriesService.state.matches('busy');\n const isLoadingData = this.in('busy');\n const isLoading = isLoadingItems || isLoadingData;\n const json = this.__countriesService.state.context.data as Resource<Rels.Countries> | null;\n const items = Object.values(json?.values ?? {});\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('country:before')}\n\n <vaadin-combo-box\n item-value-path=\"cc2\"\n item-label-path=\"default\"\n item-id-path=\"cc2\"\n label=\"${this.t('country')}${isLoadingItems ? ` • ${this.t('loading_busy')}` : ''}\"\n value=${ifDefined(this.form.country)}\n class=\"w-full\"\n .items=${items}\n ?allow-custom-value=${items.length === 0}\n ?disabled=${isLoading || this.disabledSelector.matches('country', true)}\n ?readonly=${this.readonlySelector.matches('country', true)}\n @change=${(evt: CustomEvent) => {\n this.edit({\n country: (evt.currentTarget as ComboBoxElement).value,\n region: '',\n city: '',\n is_live: false,\n service_provider: '',\n });\n\n if (this.__isApplyToShippingHidden) this.edit({ apply_to_shipping: false });\n this.__regionsService.send({ type: 'FETCH' });\n }}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot('country:after')}\n </div>\n `;\n }\n\n private __renderRegion(): TemplateResult {\n const isLoadingItems = this.__regionsService.state.matches('busy');\n const isLoadingData = this.in('busy');\n const isLoading = isLoadingItems || isLoadingData;\n const json = this.__regionsService.state.context.data as Resource<Rels.Regions> | null;\n const items = Object.values(json?.values ?? {});\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('region:before')}\n\n <vaadin-combo-box\n item-value-path=\"code\"\n item-label-path=\"default\"\n item-id-path=\"code\"\n label=\"${this.t('region')}${isLoadingItems ? ` • ${this.t('loading_busy')}` : ''}\"\n value=${ifDefined(this.form.region)}\n class=\"w-full\"\n .items=${items}\n ?allow-custom-value=${items.length === 0}\n ?disabled=${isLoading || this.disabledSelector.matches('region', true)}\n ?readonly=${this.readonlySelector.matches('region', true)}\n @change=${(evt: CustomEvent) => {\n const newRegion = (evt.currentTarget as ComboBoxElement).value;\n this.edit({ region: newRegion, city: '' });\n }}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot('region:after')}\n </div>\n `;\n }\n\n private __renderCity(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('city:before')}\n\n <vaadin-text-field\n class=\"w-full\"\n label=${this.t('city')}\n value=${ifDefined(this.form.city)}\n ?disabled=${this.in('busy') || this.disabledSelector.matches('city', true)}\n ?readonly=${this.readonlySelector.matches('city', true)}\n @input=${(evt: CustomEvent) => {\n const newCity = (evt.currentTarget as TextFieldElement).value;\n this.edit({ city: newCity });\n }}\n >\n </vaadin-text-field>\n\n ${this.renderTemplateOrSlot('city:after')}\n </div>\n `;\n }\n\n private __renderProvider(): TemplateResult {\n const items = [\n { label: this.t('tax_rate_provider_none'), value: 'none' },\n { label: 'Avalara AvaTax 15', value: 'avalara' },\n { label: 'Thomson Reuters ONESOURCE', value: 'onesource' },\n ];\n\n if (defaultLiveRateCountries.includes(this.form.country)) {\n items.push({ label: this.t('tax_rate_provider_default'), value: 'default' });\n }\n\n if (taxJarLiveRateCountries.includes(this.form.country)) {\n items.push({ label: 'TaxJar', value: 'taxjar' });\n }\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('provider:before')}\n\n <vaadin-combo-box\n item-value-path=\"value\"\n item-label-path=\"label\"\n item-id-path=\"value\"\n label=${this.t('tax_rate_provider')}\n value=${this.form.service_provider || this.form.is_live ? 'default' : 'none'}\n class=\"w-full\"\n allow-custom-value\n .items=${items}\n ?disabled=${this.in('busy') || this.disabledSelector.matches('provider', true)}\n ?readonly=${this.readonlySelector.matches('provider', true)}\n @change=${(evt: CustomEvent) => {\n const newValue = (evt.currentTarget as ComboBoxElement).value;\n const newProvider = newValue === 'none' || newValue === 'default' ? '' : newValue;\n\n this.edit({\n service_provider: newProvider as Data['service_provider'],\n is_live: newValue !== 'none',\n });\n\n if (this.__isApplyToShippingHidden) this.edit({ apply_to_shipping: false });\n if (this.__isExemptAllCustomerTaxIdsHidden)\n this.edit({ exempt_all_customer_tax_ids: false });\n if (this.__isUseOriginRatesHidden) this.edit({ use_origin_rates: false });\n }}\n >\n </vaadin-combo-box>\n\n ${this.renderTemplateOrSlot('provider:after')}\n </div>\n `;\n }\n\n private __renderRate(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('rate:before')}\n\n <vaadin-integer-field\n class=\"w-full\"\n label=${this.t('tax_rate')}\n value=${ifDefined(this.form.rate)}\n min=\"0\"\n prevent-invalid-input\n has-controls\n ?disabled=${this.in('busy') || this.disabledSelector.matches('rate', true)}\n ?readonly=${this.readonlySelector.matches('rate', true)}\n @change=${(evt: CustomEvent) => {\n const newRate = parseInt((evt.currentTarget as IntegerFieldElement).value);\n this.edit({ rate: newRate });\n }}\n >\n </vaadin-integer-field>\n\n ${this.renderTemplateOrSlot('rate:after')}\n </div>\n `;\n }\n\n private __renderApplyToShipping(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('apply-to-shipping:before')}\n\n <x-checkbox\n class=\"leading-s\"\n ?disabled=${this.disabledSelector.matches('apply-to-shipping', true)}\n ?readonly=${this.readonlySelector.matches('apply-to-shipping', true)}\n ?checked=${!!this.form.apply_to_shipping}\n @change=${(evt: CheckboxChangeEvent) => this.edit({ apply_to_shipping: evt.detail })}\n >\n <foxy-i18n\n class=\"block text-m text-body\"\n lang=${this.lang}\n key=\"tax_apply_to_shipping\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <foxy-i18n\n class=\"block text-s text-secondary\"\n lang=${this.lang}\n key=\"tax_apply_to_shipping_explainer\"\n ns=${this.ns}\n >\n </foxy-i18n>\n </x-checkbox>\n\n ${this.renderTemplateOrSlot('apply-to-shipping:after')}\n </div>\n `;\n }\n\n private __renderUseOriginRates(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('use-origin-rates:before')}\n\n <x-checkbox\n class=\"leading-s\"\n ?disabled=${this.disabledSelector.matches('use-origin-rates', true)}\n ?readonly=${this.readonlySelector.matches('use-origin-rates', true)}\n ?checked=${!!this.form.use_origin_rates}\n @change=${(evt: CheckboxChangeEvent) => this.edit({ use_origin_rates: evt.detail })}\n >\n <foxy-i18n\n class=\"block text-m text-body\"\n lang=${this.lang}\n key=\"tax_use_origin_rates\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <foxy-i18n\n class=\"block text-s text-secondary\"\n lang=${this.lang}\n key=\"tax_use_origin_rates_explainer\"\n ns=${this.ns}\n >\n </foxy-i18n>\n </x-checkbox>\n\n ${this.renderTemplateOrSlot('use-origin-rates:after')}\n </div>\n `;\n }\n\n private __renderExemptAllCustomerTaxIds(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('exempt-all-customer-tax-ids:before')}\n\n <x-checkbox\n class=\"leading-s\"\n ?disabled=${this.disabledSelector.matches('exempt-all-customer-tax-ids', true)}\n ?readonly=${this.readonlySelector.matches('exempt-all-customer-tax-ids', true)}\n ?checked=${!!this.form.exempt_all_customer_tax_ids}\n @change=${(evt: CheckboxChangeEvent) => {\n this.edit({ exempt_all_customer_tax_ids: evt.detail });\n }}\n >\n <foxy-i18n\n class=\"block text-m text-body\"\n lang=${this.lang}\n key=\"tax_exempt_all_customer_tax_ids\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <foxy-i18n\n class=\"block text-s text-secondary\"\n lang=${this.lang}\n key=\"tax_exempt_all_customer_tax_ids_explainer\"\n ns=${this.ns}\n >\n </foxy-i18n>\n </x-checkbox>\n\n ${this.renderTemplateOrSlot('exempt-all-customer-tax-ids:after')}\n </div>\n `;\n }\n\n private __renderTimestamps(): TemplateResult {\n return html`\n <div>\n ${this.renderTemplateOrSlot('timestamps:before')}\n\n <x-property-table\n .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 </x-property-table>\n\n ${this.renderTemplateOrSlot('timestamps:after')}\n </div>\n `;\n }\n\n private __renderCreate(): TemplateResult {\n const isCleanTemplateInvalid = this.in({ idle: { template: { clean: 'invalid' } } });\n const isDirtyTemplateInvalid = this.in({ idle: { template: { dirty: 'invalid' } } });\n const isCleanSnapshotInvalid = this.in({ idle: { snapshot: { clean: 'invalid' } } });\n const isDirtySnapshotInvalid = this.in({ idle: { snapshot: { dirty: 'invalid' } } });\n const isTemplateInvalid = isCleanTemplateInvalid || isDirtyTemplateInvalid;\n const isSnaphotInvalid = isCleanSnapshotInvalid || isDirtySnapshotInvalid;\n const isInvalid = isTemplateInvalid || isSnaphotInvalid;\n const isBusy = this.in('busy');\n\n return html`\n <div>\n ${this.renderTemplateOrSlot('create:before')}\n\n <vaadin-button\n class=\"w-full\"\n theme=\"primary success\"\n ?disabled=${isBusy || isInvalid || this.disabledSelector.matches('create', true)}\n @click=${this.submit}\n >\n <foxy-i18n ns=${this.ns} key=\"create\" lang=${this.lang}></foxy-i18n>\n </vaadin-button>\n\n ${this.renderTemplateOrSlot('create:after')}\n </div>\n `;\n }\n\n private __renderDelete(): TemplateResult {\n return html`\n <div>\n <foxy-internal-confirm-dialog\n message=\"delete_prompt\"\n confirm=\"delete\"\n cancel=\"cancel\"\n header=\"delete\"\n theme=\"primary error\"\n lang=${this.lang}\n ns=${this.ns}\n id=\"confirm\"\n @hide=${(evt: DialogHideEvent) => !evt.detail.cancelled && this.delete()}\n >\n </foxy-internal-confirm-dialog>\n\n ${this.renderTemplateOrSlot('delete:before')}\n\n <vaadin-button\n theme=\"primary error\"\n class=\"w-full\"\n ?disabled=${this.in('busy') || this.disabledSelector.matches('delete', true)}\n @click=${(evt: CustomEvent) => {\n const confirm = this.renderRoot.querySelector('#confirm') as InternalConfirmDialog;\n confirm.show(evt.currentTarget as ButtonElement);\n }}\n >\n <foxy-i18n ns=${this.ns} key=\"delete\" lang=${this.lang}></foxy-i18n>\n </vaadin-button>\n\n ${this.renderTemplateOrSlot('delete:after')}\n </div>\n `;\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import '../../internal/InternalConfirmDialog/index';
2
+ import '../Spinner/index';
3
+ import '../I18n/index';
4
+ import '@vaadin/vaadin-text-field/vaadin-integer-field';
5
+ import '@vaadin/vaadin-text-field/vaadin-text-field';
6
+ import '@vaadin/vaadin-combo-box';
7
+ import '@vaadin/vaadin-button';
8
+ import { TaxForm } from './TaxForm';
9
+ export { TaxForm };
@@ -0,0 +1,11 @@
1
+ import "../../internal/InternalConfirmDialog/index.js";
2
+ import "../Spinner/index.js";
3
+ import "../I18n/index.js";
4
+ import '@vaadin/vaadin-text-field/vaadin-integer-field';
5
+ import '@vaadin/vaadin-text-field/vaadin-text-field';
6
+ import '@vaadin/vaadin-combo-box';
7
+ import '@vaadin/vaadin-button';
8
+ import { TaxForm } from "./TaxForm.js";
9
+ customElements.define('foxy-tax-form', TaxForm);
10
+ export { TaxForm };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxForm/index.ts"],"names":[],"mappings":"AAAA,uDAAoD;AACpD,6BAA0B;AAC1B,0BAAuB;AACvB,OAAO,gDAAgD,CAAC;AACxD,OAAO,6CAA6C,CAAC;AACrD,OAAO,0BAA0B,CAAC;AAClC,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,qBAAkB;AAEpC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import '../../internal/InternalConfirmDialog/index';\nimport '../Spinner/index';\nimport '../I18n/index';\nimport '@vaadin/vaadin-text-field/vaadin-integer-field';\nimport '@vaadin/vaadin-text-field/vaadin-text-field';\nimport '@vaadin/vaadin-combo-box';\nimport '@vaadin/vaadin-button';\n\nimport { TaxForm } from './TaxForm';\n\ncustomElements.define('foxy-tax-form', TaxForm);\n\nexport { TaxForm };\n"]}
@@ -0,0 +1,33 @@
1
+ import { Rels } from '@foxy.io/sdk/backend';
2
+ import { Renderer } from '../../../mixins/configurable';
3
+ import { Resource } from '@foxy.io/sdk/core';
4
+ import { TaxForm } from './TaxForm';
5
+ export declare type Data = Resource<Rels.Tax>;
6
+ export declare type Templates = {
7
+ 'name:before'?: Renderer<TaxForm>;
8
+ 'name:after'?: Renderer<TaxForm>;
9
+ 'type:before'?: Renderer<TaxForm>;
10
+ 'type:after'?: Renderer<TaxForm>;
11
+ 'country:before'?: Renderer<TaxForm>;
12
+ 'country:after'?: Renderer<TaxForm>;
13
+ 'region:before'?: Renderer<TaxForm>;
14
+ 'region:after'?: Renderer<TaxForm>;
15
+ 'city:before'?: Renderer<TaxForm>;
16
+ 'city:after'?: Renderer<TaxForm>;
17
+ 'provider:before'?: Renderer<TaxForm>;
18
+ 'provider:after'?: Renderer<TaxForm>;
19
+ 'rate:before'?: Renderer<TaxForm>;
20
+ 'rate:after'?: Renderer<TaxForm>;
21
+ 'apply-to-shipping:before'?: Renderer<TaxForm>;
22
+ 'apply-to-shipping:after'?: Renderer<TaxForm>;
23
+ 'use-origin-rates:before'?: Renderer<TaxForm>;
24
+ 'use-origin-rates:after'?: Renderer<TaxForm>;
25
+ 'exempt-all-customer-tax-ids:before'?: Renderer<TaxForm>;
26
+ 'exempt-all-customer-tax-ids:after'?: Renderer<TaxForm>;
27
+ 'timestamps:before'?: Renderer<TaxForm>;
28
+ 'timestamps:after'?: Renderer<TaxForm>;
29
+ 'delete:before'?: Renderer<TaxForm>;
30
+ 'delete:after'?: Renderer<TaxForm>;
31
+ 'create:before'?: Renderer<TaxForm>;
32
+ 'create:after'?: Renderer<TaxForm>;
33
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { TaxForm } from './TaxForm';\n\nexport type Data = Resource<Rels.Tax>;\n\nexport type Templates = {\n 'name:before'?: Renderer<TaxForm>;\n 'name:after'?: Renderer<TaxForm>;\n 'type:before'?: Renderer<TaxForm>;\n 'type:after'?: Renderer<TaxForm>;\n 'country:before'?: Renderer<TaxForm>;\n 'country:after'?: Renderer<TaxForm>;\n 'region:before'?: Renderer<TaxForm>;\n 'region:after'?: Renderer<TaxForm>;\n 'city:before'?: Renderer<TaxForm>;\n 'city:after'?: Renderer<TaxForm>;\n 'provider:before'?: Renderer<TaxForm>;\n 'provider:after'?: Renderer<TaxForm>;\n 'rate:before'?: Renderer<TaxForm>;\n 'rate:after'?: Renderer<TaxForm>;\n 'apply-to-shipping:before'?: Renderer<TaxForm>;\n 'apply-to-shipping:after'?: Renderer<TaxForm>;\n 'use-origin-rates:before'?: Renderer<TaxForm>;\n 'use-origin-rates:after'?: Renderer<TaxForm>;\n 'exempt-all-customer-tax-ids:before'?: Renderer<TaxForm>;\n 'exempt-all-customer-tax-ids:after'?: Renderer<TaxForm>;\n 'timestamps:before'?: Renderer<TaxForm>;\n 'timestamps:after'?: Renderer<TaxForm>;\n 'delete:before'?: Renderer<TaxForm>;\n 'delete:after'?: Renderer<TaxForm>;\n 'create:before'?: Renderer<TaxForm>;\n 'create:after'?: Renderer<TaxForm>;\n};\n"]}
@@ -6,6 +6,21 @@ declare const Base: typeof NucleonElement & import("lit-element").Constructor<im
6
6
  } & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost> & {
7
7
  styles: import("lit-element").CSSResultArray;
8
8
  };
9
+ /**
10
+ * Basic card displaying a transaction.
11
+ *
12
+ * @slot total:before
13
+ * @slot total:after
14
+ * @slot status:before
15
+ * @slot status:after
16
+ * @slot description:before
17
+ * @slot description:after
18
+ * @slot customer:before
19
+ * @slot customer:after
20
+ *
21
+ * @element foxy-transaction-card
22
+ * @since 1.12.0
23
+ */
9
24
  declare class TransactionCard extends Base<Data> {
10
25
  templates: Templates;
11
26
  private __currencyDisplay;
@@ -6,6 +6,21 @@ import { TranslatableMixin } from "../../../mixins/translatable.js";
6
6
  import { classMap } from "../../../utils/class-map.js";
7
7
  const NS = 'transaction-card';
8
8
  const Base = ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)));
9
+ /**
10
+ * Basic card displaying a transaction.
11
+ *
12
+ * @slot total:before
13
+ * @slot total:after
14
+ * @slot status:before
15
+ * @slot status:after
16
+ * @slot description:before
17
+ * @slot description:after
18
+ * @slot customer:before
19
+ * @slot customer:after
20
+ *
21
+ * @element foxy-transaction-card
22
+ * @since 1.12.0
23
+ */
9
24
  class TransactionCard extends Base {
10
25
  constructor() {
11
26
  super(...arguments);
@@ -36,13 +51,13 @@ class TransactionCard extends Base {
36
51
  </div>
37
52
 
38
53
  <div
39
- data-testid="spinner"
40
54
  class=${classMap({
41
55
  'pointer-events-none absolute inset-0 flex transition-opacity': true,
42
56
  'opacity-0': !!this.data,
43
57
  })}
44
58
  >
45
59
  <foxy-spinner
60
+ data-testid="spinner"
46
61
  state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}
47
62
  class="m-auto"
48
63
  lang=${this.lang}
@@ -79,9 +94,11 @@ class TransactionCard extends Base {
79
94
  content = html `&ZeroWidthSpace;`;
80
95
  }
81
96
  return html `
82
- ${this.renderTemplateOrSlot('total:before')}
83
- <div class="font-semibold truncate">${content}</div>
84
- ${this.renderTemplateOrSlot('total:after')}
97
+ <div data-testid="total">
98
+ ${this.renderTemplateOrSlot('total:before')}
99
+ <div class="font-semibold truncate">${content}</div>
100
+ ${this.renderTemplateOrSlot('total:after')}
101
+ </div>
85
102
  `;
86
103
  }
87
104
  __renderStatus() {
@@ -100,26 +117,29 @@ class TransactionCard extends Base {
100
117
  };
101
118
  const status = ((_a = this.data) === null || _a === void 0 ? void 0 : _a.status) || 'completed';
102
119
  return html `
103
- ${this.renderTemplateOrSlot('status:before')}
120
+ <div data-testid="status">
121
+ ${this.renderTemplateOrSlot('status:before')}
104
122
 
105
- <div class="text-tertiary text-s flex items-center space-x-s">
106
- <foxy-i18n
107
- options=${JSON.stringify({ value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.transaction_date })}
108
- lang=${this.lang}
109
- key="time"
110
- ns=${this.ns}
111
- >
112
- </foxy-i18n>
123
+ <div class="text-tertiary text-s flex items-center space-x-s">
124
+ <foxy-i18n
125
+ options=${JSON.stringify({ value: (_b = this.data) === null || _b === void 0 ? void 0 : _b.transaction_date })}
126
+ lang=${this.lang}
127
+ key="time"
128
+ ns=${this.ns}
129
+ >
130
+ </foxy-i18n>
113
131
 
114
- <iron-icon
115
- class="icon-inline text-l ${(_c = specialColors[status]) !== null && _c !== void 0 ? _c : 'text-tertiary'}"
116
- title=${this.t(`transaction_${status}`)}
117
- icon=${(_d = specialIcons[status]) !== null && _d !== void 0 ? _d : 'icons:schedule'}
118
- >
119
- </iron-icon>
120
- </div>
132
+ <iron-icon
133
+ data-testid="status-icon"
134
+ class="icon-inline text-l ${(_c = specialColors[status]) !== null && _c !== void 0 ? _c : 'text-tertiary'}"
135
+ title=${this.t(`transaction_${status}`)}
136
+ icon=${(_d = specialIcons[status]) !== null && _d !== void 0 ? _d : 'icons:schedule'}
137
+ >
138
+ </iron-icon>
139
+ </div>
121
140
 
122
- ${this.renderTemplateOrSlot('status:after')}
141
+ ${this.renderTemplateOrSlot('status:after')}
142
+ </div>
123
143
  `;
124
144
  }
125
145
  __renderDescription() {
@@ -145,9 +165,11 @@ class TransactionCard extends Base {
145
165
  content = html `&ZeroWidthSpace;`;
146
166
  }
147
167
  return html `
148
- ${this.renderTemplateOrSlot('description:before')}
149
- <div class="text-s text-secondary truncate">${content}</div>
150
- ${this.renderTemplateOrSlot('description:after')}
168
+ <div data-testid="description">
169
+ ${this.renderTemplateOrSlot('description:before')}
170
+ <div class="text-s text-secondary truncate">${content}</div>
171
+ ${this.renderTemplateOrSlot('description:after')}
172
+ </div>
151
173
  `;
152
174
  }
153
175
  __renderCustomer() {
@@ -156,9 +178,11 @@ class TransactionCard extends Base {
156
178
  ? html `${data.customer_first_name} ${data.customer_last_name} (${data.customer_email})`
157
179
  : html `&ZeroWidthSpace;`;
158
180
  return html `
159
- ${this.renderTemplateOrSlot('total:before')}
160
- <div class="text-tertiary truncate text-s">${content}</div>
161
- ${this.renderTemplateOrSlot('total:after')}
181
+ <div data-testid="customer">
182
+ ${this.renderTemplateOrSlot('customer:before')}
183
+ <div class="text-tertiary truncate text-s">${content}</div>
184
+ ${this.renderTemplateOrSlot('customer:after')}
185
+ </div>
162
186
  `;
163
187
  }
164
188
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionCard.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/TransactionCard.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EA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I,OAAuB,CAAC;QAE5B,IAAI,KAAK,EAAE;YACT,MAAM,OAAO,GAAG;gBACd,mBAAmB,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACpE,KAAK,EAAE,KAAK,CAAC,MAAM;aACpB,CAAC;YAEF,OAAO,GAAG,IAAI,CAAA;;oBAEA,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;iBAC1B,IAAI,CAAC,IAAI;;eAEX,IAAI,CAAC,EAAE;;;OAGf,CAAC;SACH;aAAM;YACL,OAAO,GAAG,IAAI,CAAA,kBAAkB,CAAC;SAClC;QAED,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,oBAAoB,CAAC,oBAAoB,CAAC;oDACH,OAAO;QACnD,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC;KACjD,CAAC;IACJ,CAAC;IAEO,gBAAgB;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,IAAI,CAAA,GAAG,IAAI,CAAC,mBAAmB,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,cAAc,GAAG;YACvF,CAAC,CAAC,IAAI,CAAA,kBAAkB,CAAC;QAE3B,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC;mDACE,OAAO;QAClD,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC;KAC3C,CAAC;IACJ,CAAC;CACF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { Data, Templates } from './types';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { Rels } from '@foxy.io/sdk/backend';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\n\nconst NS = 'transaction-card';\nconst Base = ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)));\n\nclass TransactionCard extends Base<Data> {\n templates: Templates = {};\n\n private __currencyDisplay = '';\n\n render(): TemplateResult {\n const hiddenSelector = this.hiddenSelector;\n const hasTotal = !hiddenSelector.matches('total', true);\n const hasStatus = !hiddenSelector.matches('status', true);\n\n return html`\n <div\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n class=\"relative leading-m font-lumo text-m\"\n >\n <div class=${classMap({ 'transition-opacity': true, 'opacity-0': !this.data })}>\n ${hasTotal || hasStatus\n ? html`\n <div class=\"flex items-center justify-between\">\n ${hasTotal ? this.__renderTotal() : ''} ${hasStatus ? this.__renderStatus() : ''}\n </div>\n `\n : ''}\n ${hiddenSelector.matches('description', true) ? '' : this.__renderDescription()}\n ${hiddenSelector.matches('customer', true) ? '' : this.__renderCustomer()}\n </div>\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'pointer-events-none absolute inset-0 flex transition-opacity': true,\n 'opacity-0': !!this.data,\n })}\n >\n <foxy-spinner\n state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}\n class=\"m-auto\"\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n protected async _sendGet(): Promise<Data> {\n type Store = Resource<Rels.Store>;\n\n const transaction = await super._sendGet();\n const store = await super._fetch<Store>(transaction._links['fx:store'].href);\n\n this.__currencyDisplay = store.use_international_currency_symbol ? 'code' : 'symbol';\n\n return transaction;\n }\n\n private __renderTotal() {\n const data = this.data;\n let content: TemplateResult;\n\n if (data) {\n const amount = `${data.total_order} ${data.currency_code}`;\n const currencyDisplay = this.__currencyDisplay;\n\n content = html`\n <foxy-i18n\n options=${JSON.stringify({ amount, currencyDisplay })}\n lang=${this.lang}\n key=\"price\"\n ns=${this.ns}\n >\n </foxy-i18n>\n `;\n } else {\n content = html`&ZeroWidthSpace;`;\n }\n\n return html`\n ${this.renderTemplateOrSlot('total:before')}\n <div class=\"font-semibold truncate\">${content}</div>\n ${this.renderTemplateOrSlot('total:after')}\n `;\n }\n\n private __renderStatus() {\n const specialIcons: Record<string, string> = {\n completed: 'icons:done-all',\n refunded: 'icons:restore',\n rejected: 'icons:highlight-off',\n declined: 'icons:highlight-off',\n voided: 'icons:remove-circle-outline',\n };\n\n const specialColors: Record<string, string> = {\n completed: 'text-success',\n rejected: 'text-error',\n declined: 'text-error',\n };\n\n const status = this.data?.status || 'completed';\n\n return html`\n ${this.renderTemplateOrSlot('status:before')}\n\n <div class=\"text-tertiary text-s flex items-center space-x-s\">\n <foxy-i18n\n options=${JSON.stringify({ value: this.data?.transaction_date })}\n lang=${this.lang}\n key=\"time\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <iron-icon\n class=\"icon-inline text-l ${specialColors[status] ?? 'text-tertiary'}\"\n title=${this.t(`transaction_${status}`)}\n icon=${specialIcons[status] ?? 'icons:schedule'}\n >\n </iron-icon>\n </div>\n\n ${this.renderTemplateOrSlot('status:after')}\n `;\n }\n\n private __renderDescription() {\n const items = this.data?._embedded?.['fx:items'];\n let content: TemplateResult;\n\n if (items) {\n const options = {\n most_expensive_item: [...items].sort((a, b) => a.price - b.price)[0],\n count: items.length,\n };\n\n content = html`\n <foxy-i18n\n options=${JSON.stringify(options)}\n lang=${this.lang}\n key=\"transaction_summary\"\n ns=${this.ns}\n >\n </foxy-i18n>\n `;\n } else {\n content = html`&ZeroWidthSpace;`;\n }\n\n return html`\n ${this.renderTemplateOrSlot('description:before')}\n <div class=\"text-s text-secondary truncate\">${content}</div>\n ${this.renderTemplateOrSlot('description:after')}\n `;\n }\n\n private __renderCustomer() {\n const data = this.data;\n const content = data\n ? html`${data.customer_first_name} ${data.customer_last_name} (${data.customer_email})`\n : html`&ZeroWidthSpace;`;\n\n return html`\n ${this.renderTemplateOrSlot('total:before')}\n <div class=\"text-tertiary truncate text-s\">${content}</div>\n ${this.renderTemplateOrSlot('total:after')}\n `;\n }\n}\n\nexport { TransactionCard };\n"]}
1
+ {"version":3,"file":"TransactionCard.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/TransactionCard.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAGlE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,EAAE,GAAG,kBAAkB,CAAC;AAC9B,MAAM,IAAI,GAAG,cAAc,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAEtF;;;;;;;;;;;;;;GAcG;AACH,MAAM,eAAgB,SAAQ,IAAU;IAAxC;;QACE,cAAS,GAAc,EAAE,CAAC;QAElB,sBAAiB,GAAG,EAAE,CAAC;IA+KjC,CAAC;IA7KC,MAAM;;QACJ,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC3C,MAAM,QAAQ,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACxD,MAAM,SAAS,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAA;;oBAEK,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC;;;;qBAId,QAAQ,CAAC,EAAE,oBAAoB,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,C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AmB,IAAI,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,cAAc,GAAG;YACvF,CAAC,CAAC,IAAI,CAAA,kBAAkB,CAAC;QAE3B,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;qDACD,OAAO;UAClD,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC;;KAEhD,CAAC;IACJ,CAAC;CACF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import { Data, Templates } from './types';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { Rels } from '@foxy.io/sdk/backend';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\n\nconst NS = 'transaction-card';\nconst Base = ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)));\n\n/**\n * Basic card displaying a transaction.\n *\n * @slot total:before\n * @slot total:after\n * @slot status:before\n * @slot status:after\n * @slot description:before\n * @slot description:after\n * @slot customer:before\n * @slot customer:after\n *\n * @element foxy-transaction-card\n * @since 1.12.0\n */\nclass TransactionCard extends Base<Data> {\n templates: Templates = {};\n\n private __currencyDisplay = '';\n\n render(): TemplateResult {\n const hiddenSelector = this.hiddenSelector;\n const hasTotal = !hiddenSelector.matches('total', true);\n const hasStatus = !hiddenSelector.matches('status', true);\n\n return html`\n <div\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n class=\"relative leading-m font-lumo text-m\"\n >\n <div class=${classMap({ 'transition-opacity': true, 'opacity-0': !this.data })}>\n ${hasTotal || hasStatus\n ? html`\n <div class=\"flex items-center justify-between\">\n ${hasTotal ? this.__renderTotal() : ''} ${hasStatus ? this.__renderStatus() : ''}\n </div>\n `\n : ''}\n ${hiddenSelector.matches('description', true) ? '' : this.__renderDescription()}\n ${hiddenSelector.matches('customer', true) ? '' : this.__renderCustomer()}\n </div>\n\n <div\n class=${classMap({\n 'pointer-events-none absolute inset-0 flex transition-opacity': true,\n 'opacity-0': !!this.data,\n })}\n >\n <foxy-spinner\n data-testid=\"spinner\"\n state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}\n class=\"m-auto\"\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n protected async _sendGet(): Promise<Data> {\n type Store = Resource<Rels.Store>;\n\n const transaction = await super._sendGet();\n const store = await super._fetch<Store>(transaction._links['fx:store'].href);\n\n this.__currencyDisplay = store.use_international_currency_symbol ? 'code' : 'symbol';\n\n return transaction;\n }\n\n private __renderTotal() {\n const data = this.data;\n let content: TemplateResult;\n\n if (data) {\n const amount = `${data.total_order} ${data.currency_code}`;\n const currencyDisplay = this.__currencyDisplay;\n\n content = html`\n <foxy-i18n\n options=${JSON.stringify({ amount, currencyDisplay })}\n lang=${this.lang}\n key=\"price\"\n ns=${this.ns}\n >\n </foxy-i18n>\n `;\n } else {\n content = html`&ZeroWidthSpace;`;\n }\n\n return html`\n <div data-testid=\"total\">\n ${this.renderTemplateOrSlot('total:before')}\n <div class=\"font-semibold truncate\">${content}</div>\n ${this.renderTemplateOrSlot('total:after')}\n </div>\n `;\n }\n\n private __renderStatus() {\n const specialIcons: Record<string, string> = {\n completed: 'icons:done-all',\n refunded: 'icons:restore',\n rejected: 'icons:highlight-off',\n declined: 'icons:highlight-off',\n voided: 'icons:remove-circle-outline',\n };\n\n const specialColors: Record<string, string> = {\n completed: 'text-success',\n rejected: 'text-error',\n declined: 'text-error',\n };\n\n const status = this.data?.status || 'completed';\n\n return html`\n <div data-testid=\"status\">\n ${this.renderTemplateOrSlot('status:before')}\n\n <div class=\"text-tertiary text-s flex items-center space-x-s\">\n <foxy-i18n\n options=${JSON.stringify({ value: this.data?.transaction_date })}\n lang=${this.lang}\n key=\"time\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <iron-icon\n data-testid=\"status-icon\"\n class=\"icon-inline text-l ${specialColors[status] ?? 'text-tertiary'}\"\n title=${this.t(`transaction_${status}`)}\n icon=${specialIcons[status] ?? 'icons:schedule'}\n >\n </iron-icon>\n </div>\n\n ${this.renderTemplateOrSlot('status:after')}\n </div>\n `;\n }\n\n private __renderDescription() {\n const items = this.data?._embedded?.['fx:items'];\n let content: TemplateResult;\n\n if (items) {\n const options = {\n most_expensive_item: [...items].sort((a, b) => a.price - b.price)[0],\n count: items.length,\n };\n\n content = html`\n <foxy-i18n\n options=${JSON.stringify(options)}\n lang=${this.lang}\n key=\"transaction_summary\"\n ns=${this.ns}\n >\n </foxy-i18n>\n `;\n } else {\n content = html`&ZeroWidthSpace;`;\n }\n\n return html`\n <div data-testid=\"description\">\n ${this.renderTemplateOrSlot('description:before')}\n <div class=\"text-s text-secondary truncate\">${content}</div>\n ${this.renderTemplateOrSlot('description:after')}\n </div>\n `;\n }\n\n private __renderCustomer() {\n const data = this.data;\n const content = data\n ? html`${data.customer_first_name} ${data.customer_last_name} (${data.customer_email})`\n : html`&ZeroWidthSpace;`;\n\n return html`\n <div data-testid=\"customer\">\n ${this.renderTemplateOrSlot('customer:before')}\n <div class=\"text-tertiary truncate text-s\">${content}</div>\n ${this.renderTemplateOrSlot('customer:after')}\n </div>\n `;\n }\n}\n\nexport { TransactionCard };\n"]}
@@ -1,3 +1,4 @@
1
+ import '../../internal/InternalSandbox/index';
1
2
  import '../Spinner/index';
2
3
  import '../I18n/index';
3
4
  import { TransactionCard } from './TransactionCard';
@@ -1,3 +1,4 @@
1
+ import "../../internal/InternalSandbox/index.js";
1
2
  import "../Spinner/index.js";
2
3
  import "../I18n/index.js";
3
4
  import { TransactionCard } from "./TransactionCard.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/index.ts"],"names":[],"mappings":"AAAA,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,eAAe,EAAE,6BAA0B;AAEpD,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import '../Spinner/index';\nimport '../I18n/index';\n\nimport { TransactionCard } from './TransactionCard';\n\ncustomElements.define('foxy-transaction-card', TransactionCard);\n\nexport { TransactionCard };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/index.ts"],"names":[],"mappings":"AAAA,iDAA8C;AAC9C,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,eAAe,EAAE,6BAA0B;AAEpD,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,CAAC","sourcesContent":["import '../../internal/InternalSandbox/index';\nimport '../Spinner/index';\nimport '../I18n/index';\n\nimport { TransactionCard } from './TransactionCard';\n\ncustomElements.define('foxy-transaction-card', TransactionCard);\n\nexport { TransactionCard };\n"]}
@@ -3,7 +3,7 @@ import { Renderer } from '../../../mixins/configurable';
3
3
  import { Resource } from '@foxy.io/sdk/core';
4
4
  import { TransactionCard } from './TransactionCard';
5
5
  export declare type Data = Resource<Rels.Transaction, {
6
- zoom: ['items', 'payments'];
6
+ zoom: 'items';
7
7
  }>;
8
8
  export declare type Templates = Partial<{
9
9
  'total:before': Renderer<TransactionCard>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { TransactionCard } from './TransactionCard';\n\nexport type Data = Resource<Rels.Transaction, { zoom: ['items', 'payments'] }>;\n\nexport type Templates = Partial<{\n 'total:before': Renderer<TransactionCard>;\n 'total:after': Renderer<TransactionCard>;\n 'status:before': Renderer<TransactionCard>;\n 'status:after': Renderer<TransactionCard>;\n 'description:before': Renderer<TransactionCard>;\n 'description:after': Renderer<TransactionCard>;\n 'customer:before': Renderer<TransactionCard>;\n 'customer:after': Renderer<TransactionCard>;\n}>;\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/TransactionCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Renderer } from '../../../mixins/configurable';\nimport { Resource } from '@foxy.io/sdk/core';\nimport { TransactionCard } from './TransactionCard';\n\nexport type Data = Resource<Rels.Transaction, { zoom: 'items' }>;\n\nexport type Templates = Partial<{\n 'total:before': Renderer<TransactionCard>;\n 'total:after': Renderer<TransactionCard>;\n 'status:before': Renderer<TransactionCard>;\n 'status:after': Renderer<TransactionCard>;\n 'description:before': Renderer<TransactionCard>;\n 'description:after': Renderer<TransactionCard>;\n 'customer:before': Renderer<TransactionCard>;\n 'customer:after': Renderer<TransactionCard>;\n}>;\n"]}
@@ -32,6 +32,8 @@ export { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';
32
32
  export { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';
33
33
  export { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';
34
34
  export { Table } from './Table/Table';
35
+ export { TaxCard } from './TaxCard/TaxCard';
36
+ export { TaxForm } from './TaxForm/TaxForm';
35
37
  export { TransactionCard } from './TransactionCard/TransactionCard';
36
38
  export { TransactionsTable } from './TransactionsTable/TransactionsTable';
37
39
  export { UserForm } from './UserForm/UserForm';
@@ -32,6 +32,8 @@ export { SubscriptionCard } from './SubscriptionCard/index';
32
32
  export { SubscriptionForm } from './SubscriptionForm/index';
33
33
  export { SubscriptionsTable } from './SubscriptionsTable/index';
34
34
  export { Table } from './Table/index';
35
+ export { TaxCard } from './TaxCard/index';
36
+ export { TaxForm } from './TaxForm/index';
35
37
  export { TransactionCard } from './TransactionCard/index';
36
38
  export { TransactionsTable } from './TransactionsTable/index';
37
39
  export { UserForm } from './UserForm/index';
@@ -32,6 +32,8 @@ export { SubscriptionCard } from "./SubscriptionCard/index.js";
32
32
  export { SubscriptionForm } from "./SubscriptionForm/index.js";
33
33
  export { SubscriptionsTable } from "./SubscriptionsTable/index.js";
34
34
  export { Table } from "./Table/index.js";
35
+ export { TaxCard } from "./TaxCard/index.js";
36
+ export { TaxForm } from "./TaxForm/index.js";
35
37
  export { TransactionCard } from "./TransactionCard/index.js";
36
38
  export { TransactionsTable } from "./TransactionsTable/index.js";
37
39
  export { UserForm } from "./UserForm/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
1
+ {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
@@ -32,6 +32,8 @@ export { SubscriptionCard } from "./SubscriptionCard/SubscriptionCard.js";
32
32
  export { SubscriptionForm } from "./SubscriptionForm/SubscriptionForm.js";
33
33
  export { SubscriptionsTable } from "./SubscriptionsTable/SubscriptionsTable.js";
34
34
  export { Table } from "./Table/Table.js";
35
+ export { TaxCard } from "./TaxCard/TaxCard.js";
36
+ export { TaxForm } from "./TaxForm/TaxForm.js";
35
37
  export { TransactionCard } from "./TransactionCard/TransactionCard.js";
36
38
  export { TransactionsTable } from "./TransactionsTable/TransactionsTable.js";
37
39
  export { UserForm } from "./UserForm/UserForm.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,sBAAsB,EAAE,2DAAwD;AACzF,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,IAAI,EAAE,uBAAoB;AACnC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,iCAA8B;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,sBAAsB,EAAE,2DAAwD;AACzF,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,IAAI,EAAE,uBAAoB;AACnC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,iCAA8B;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/elements",
3
3
  "type": "module",
4
- "version": "1.12.0-beta.5",
4
+ "version": "1.13.0-beta.1",
5
5
  "description": "E-commerce web components by Foxy.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1 +0,0 @@
1
- import{h as t,_ as e}from"./shared-17968c53.js";import{C as i}from"./shared-f0199313.js";import{N as s}from"./shared-cf248335.js";import{T as r}from"./shared-c1e0e11f.js";import{c as a}from"./shared-4e709717.js";let l,d,n,o=t=>t;const h=i(r(s));class p extends h{constructor(){super(...arguments),this.templates={},this.lang="",this.ns="",this.__renderTitle=e=>t(l||(l=o` <div data-testid="title"> ${0} <div class="text-secondary">${0}&ZeroWidthSpace;</div> ${0} </div> `),this.renderTemplateOrSlot("title:before"),this.data?null==e?void 0:e(this.data):"",this.renderTemplateOrSlot("title:after")),this.__renderSubtitle=e=>t(d||(d=o` <div data-testid="subtitle"> ${0} <div class="font-semibold">${0}&ZeroWidthSpace;</div> ${0} </div> `),this.renderTemplateOrSlot("subtitle:before"),this.data?null==e?void 0:e(this.data):"",this.renderTemplateOrSlot("subtitle:after"))}static get properties(){return e(e({},super.properties),{},{lang:{type:String},ns:{type:String}})}render(e){var i,s;const r=this.hiddenSelector;return t(n||(n=o` <div aria-live="polite" aria-busy="${0}" class="relative text-body text-m font-lumo leading-m"> ${0} ${0} <div class="${0}"> <foxy-spinner data-testid="spinner" class="m-auto" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),!this.data&&this.in("busy"),r.matches("title",!0)?"":this.__renderTitle(null==e?void 0:e.title),r.matches("subtitle",!0)?"":this.__renderSubtitle(null==e?void 0:e.subtitle),a({"transition duration-250 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!!this.data}),this.in("fail")?"error":this.in({idle:"template"})?"empty":"busy",this.lang,this.ns,null!==(s=null===(i=customElements.get("foxy-spinner"))||void 0===i?void 0:i.defaultNS)&&void 0!==s?s:"")}}export{p as T};
@@ -1,59 +0,0 @@
1
- {
2
- "nav": {
3
- "dashboard": "Dashboard",
4
- "management": "Management",
5
- "transactions": "Transactions",
6
- "subscriptions": "Subscriptions",
7
- "customers": "Customers",
8
- "coupons": "Coupons",
9
- "products": "Products",
10
- "reports": "Reports",
11
- "settings": "Settings",
12
- "elements": "Elements",
13
- "inventory": "Inventory",
14
- "other": "Other",
15
- "general": "General",
16
- "cart": "Cart",
17
- "checkout": "Checkout",
18
- "customer_portal": "Customer Portal",
19
- "shipping": "Shipping",
20
- "taxes": "Taxes",
21
- "payments": "Payments",
22
- "receipt": "Receipt",
23
- "emails": "Emails",
24
- "integrations": "Integrations",
25
- "billing": "Billing",
26
- "profile": "Profile",
27
- "signout": "Sign out"
28
- },
29
- "dashboard": {
30
- "title": "Dashboard",
31
- "widgets": {
32
- "add": "Add widget",
33
- "edit": "Edit widget",
34
- "title": "Overview",
35
- "source": "Source",
36
- "source_show": "Show source",
37
- "source_error": "This URL is unreachable",
38
- "source_hint": "Resource path relative to store (skip for store itself).",
39
- "source_link": "See docs",
40
- "jsonata": "Display",
41
- "jsonata_hint": "JSONata query selecting data from the resource.",
42
- "jsonata_link": "Learn JSONata",
43
- "label": "Label",
44
- "label_empty": "No label",
45
- "label_placeholder": "Active subscriptions",
46
- "subtitle": "Add more insights by clicking the plus button. Drag and drop to reorder.",
47
- "subscriptions_active": "Active subscriptions",
48
- "subscriptions_tomorrow": "Subscriptions running tomorrow",
49
- "subscriptions_next7days": "Subscriptions running in 7 days",
50
- "transactions_last30days": "Transactions in the last 30 days",
51
- "custom": "Custom"
52
- }
53
- },
54
- "sign_in": {
55
- "header": "Hi there!",
56
- "create_link": "Create account",
57
- "create_label": "New to Foxy?"
58
- }
59
- }