@justifi/webcomponents 4.19.3 → 4.20.0
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/cjs/{Analytics-a0a86d82.js → Analytics-03981aad.js} +1 -1
- package/dist/cjs/business-details-core.cjs.entry.js +1 -1
- package/dist/cjs/check-pkg-version-89d6d146.js +24 -0
- package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
- package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
- package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-business-form.cjs.entry.js +6 -4
- package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
- package/dist/cjs/justifi-details.cjs.entry.js +1 -1
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -6
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -2
- package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-99f4d813.js → package-7fdd14b9.js} +3 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
- package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
- package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
- package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
- package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
- package/dist/cjs/styled-host-9e0b67b3.js +14 -0
- package/dist/cjs/utils-f8a6962c.js +25 -0
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/business-details/business-details.js +2 -0
- package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
- package/dist/collection/components/checkout/checkout.js +4 -2
- package/dist/collection/components/form/form-control-date.js +26 -28
- package/dist/collection/components/form/form-control-select.js +45 -45
- package/dist/collection/components/form/form-control-text.js +34 -34
- package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
- package/dist/collection/components/payment-details/payment-details.js +2 -0
- package/dist/collection/components/payment-form/payment-form.js +5 -3
- package/dist/collection/components/payments-list/payments-list-core.js +14 -9
- package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
- package/dist/collection/components/payments-list/payments-list.js +2 -0
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payout-details/payout-details.js +2 -0
- package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +2 -0
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
- package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
- package/dist/collection/ui-components/filters/utils.js +20 -0
- package/dist/collection/utils/check-pkg-version.js +19 -0
- package/dist/docs.json +523 -19
- package/dist/esm/{Analytics-e460ab05.js → Analytics-3103f8e9.js} +1 -1
- package/dist/esm/business-details-core.entry.js +1 -1
- package/dist/esm/check-pkg-version-44e6ad15.js +22 -0
- package/dist/esm/custom-popper.entry.js +1890 -0
- package/dist/esm/form-control-date_3.entry.js +4 -4
- package/dist/esm/form-control-error-text_4.entry.js +9 -9
- package/dist/esm/justifi-bank-account-form.entry.js +2 -2
- package/dist/esm/justifi-billing-form_2.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +4 -2
- package/dist/esm/justifi-business-form.entry.js +6 -4
- package/dist/esm/justifi-card-form.entry.js +2 -2
- package/dist/esm/justifi-checkout-core.entry.js +1 -1
- package/dist/esm/justifi-checkout.entry.js +6 -4
- package/dist/esm/justifi-details.entry.js +1 -1
- package/dist/esm/justifi-gross-payment-chart.entry.js +4 -2
- package/dist/esm/justifi-payment-details.entry.js +4 -2
- package/dist/esm/justifi-payment-form.entry.js +8 -6
- package/dist/esm/justifi-payment-method-form.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
- package/dist/esm/justifi-payment-provisioning.entry.js +5 -3
- package/dist/esm/justifi-payments-list.entry.js +4 -2
- package/dist/esm/justifi-payout-details.entry.js +4 -2
- package/dist/esm/justifi-payouts-list.entry.js +4 -2
- package/dist/esm/justifi-refund-form.entry.js +2 -2
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-0935c5e5.js → package-0e3cc41e.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +1 -1
- package/dist/esm/payments-list-core.entry.js +15 -10
- package/dist/esm/payments-list-filters_2.entry.js +17261 -0
- package/dist/esm/payout-details-core.entry.js +2 -2
- package/dist/esm/payouts-list-core.entry.js +3 -3
- package/dist/esm/styled-host-3171ae1f.js +12 -0
- package/dist/esm/utils-3a4d8f3a.js +22 -0
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/check-pkg-version.js +22 -0
- package/dist/module/custom-popper.d.ts +11 -0
- package/dist/module/custom-popper.js +6 -0
- package/dist/module/custom-popper2.js +1912 -0
- package/dist/module/form-control-date2.js +7 -7
- package/dist/module/form-control-select2.js +9 -9
- package/dist/module/form-control-text2.js +7 -7
- package/dist/module/justifi-business-details.js +2 -0
- package/dist/module/justifi-business-form.js +3 -1
- package/dist/module/justifi-checkout.js +4 -2
- package/dist/module/justifi-gross-payment-chart.js +2 -0
- package/dist/module/justifi-payment-details.js +2 -0
- package/dist/module/justifi-payment-form.js +5 -3
- package/dist/module/justifi-payment-provisioning.js +3 -1
- package/dist/module/justifi-payments-list.js +42 -10
- package/dist/module/justifi-payout-details.js +2 -0
- package/dist/module/justifi-payouts-list.js +2 -0
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +3 -1
- package/dist/module/package.js +3 -1
- package/dist/module/payments-list-core2.js +51 -17
- package/dist/module/payments-list-filters.d.ts +11 -0
- package/dist/module/payments-list-filters.js +6 -0
- package/dist/module/payments-list-filters2.js +17294 -0
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/styled-host.js +1 -1
- package/dist/module/table-filters-menu.d.ts +11 -0
- package/dist/module/table-filters-menu.js +6 -0
- package/dist/module/table-filters-menu2.js +80 -0
- package/dist/types/api/Payment.d.ts +8 -0
- package/dist/types/components/form/form-control-date.d.ts +4 -4
- package/dist/types/components/form/form-control-select.d.ts +6 -6
- package/dist/types/components/form/form-control-text.d.ts +4 -4
- package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
- package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
- package/dist/types/components.d.ts +89 -10
- package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
- package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
- package/dist/types/ui-components/filters/utils.d.ts +2 -0
- package/dist/types/utils/check-pkg-version.d.ts +1 -0
- package/dist/webcomponents/p-05718341.entry.js +1 -0
- package/dist/webcomponents/{p-b676bca5.entry.js → p-0de026dd.entry.js} +1 -1
- package/dist/webcomponents/p-0e84986e.entry.js +10 -0
- package/dist/webcomponents/p-1612894d.js +1 -0
- package/dist/webcomponents/p-20dafb46.entry.js +1 -0
- package/dist/webcomponents/p-2c51d29f.js +1 -0
- package/dist/webcomponents/p-3a1f19f3.entry.js +1 -0
- package/dist/webcomponents/{p-be39c802.entry.js → p-3c7fac29.entry.js} +1 -1
- package/dist/webcomponents/p-428e9b64.entry.js +1 -0
- package/dist/webcomponents/{p-edb62047.entry.js → p-430f81c6.entry.js} +1 -1
- package/dist/webcomponents/{p-4e017b58.js → p-437f9114.js} +1 -1
- package/dist/webcomponents/p-44055818.js +1 -0
- package/dist/webcomponents/{p-f5ebca3e.entry.js → p-4628cc9b.entry.js} +1 -1
- package/dist/webcomponents/p-4cc9df76.entry.js +1 -0
- package/dist/webcomponents/p-5540a47c.entry.js +1 -0
- package/dist/webcomponents/{p-fb58feb5.entry.js → p-570a0f02.entry.js} +1 -1
- package/dist/webcomponents/{p-c9f8f7ec.entry.js → p-59cf5391.entry.js} +1 -1
- package/dist/webcomponents/p-7bdffc78.entry.js +1 -0
- package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
- package/dist/webcomponents/p-7fe67d7f.entry.js +1 -0
- package/dist/webcomponents/p-804c0f1f.entry.js +1 -0
- package/dist/webcomponents/p-8281f09a.js +1 -0
- package/dist/webcomponents/p-8921a478.entry.js +1 -0
- package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
- package/dist/webcomponents/p-8c83b73e.entry.js +1 -0
- package/dist/webcomponents/p-8d03a7bd.entry.js +1 -0
- package/dist/webcomponents/{p-bd278ff4.entry.js → p-938bf2b4.entry.js} +1 -1
- package/dist/webcomponents/p-9b154d98.entry.js +1 -0
- package/dist/webcomponents/{p-4e01fec8.entry.js → p-b14da2fd.entry.js} +1 -1
- package/dist/webcomponents/{p-124c1ecd.entry.js → p-bdc91c61.entry.js} +1 -1
- package/dist/webcomponents/{p-487b72a8.entry.js → p-c64ce69d.entry.js} +1 -1
- package/dist/webcomponents/p-dbc1d7b3.entry.js +1 -0
- package/dist/webcomponents/p-eea79a55.entry.js +1 -0
- package/dist/webcomponents/{p-b6c3b7bc.entry.js → p-f6a2dc78.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/styled-host-cc053016.js +0 -14
- package/dist/esm/styled-host-ab9da520.js +0 -12
- package/dist/webcomponents/p-07109641.entry.js +0 -1
- package/dist/webcomponents/p-11b6ed0c.entry.js +0 -1
- package/dist/webcomponents/p-15976984.entry.js +0 -1
- package/dist/webcomponents/p-1cf90026.entry.js +0 -1
- package/dist/webcomponents/p-3423ddfd.entry.js +0 -1
- package/dist/webcomponents/p-39c6f36a.entry.js +0 -1
- package/dist/webcomponents/p-421ed39d.entry.js +0 -1
- package/dist/webcomponents/p-69c18f39.entry.js +0 -1
- package/dist/webcomponents/p-6abb2a04.entry.js +0 -1
- package/dist/webcomponents/p-721dcf51.entry.js +0 -1
- package/dist/webcomponents/p-817da23c.entry.js +0 -1
- package/dist/webcomponents/p-a99032e1.entry.js +0 -1
- package/dist/webcomponents/p-ba4bae6f.js +0 -1
- package/dist/webcomponents/p-d4a44a1e.entry.js +0 -1
- package/dist/webcomponents/p-d78eb6ce.js +0 -1
- package/dist/webcomponents/p-e2b2213f.entry.js +0 -1
- package/dist/webcomponents/p-e7fd1357.entry.js +0 -1
- package/dist/webcomponents/p-eccf2e8e.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-fad19d75.js";import{J as e}from"./p-4e017b58.js";import{a as o,C as r}from"./p-14c91ffd.js";import{m as n,a}from"./p-5968ff8a.js";import{B as h}from"./p-401d6607.js";import{c as p}from"./p-5a62fca2.js";import{A as d}from"./p-7d3be485.js";import"./p-d78eb6ce.js";import"./p-8115b2f4.js";class c{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return d({authToken:s,apiOrigin:p.proxyApiOrigin}).post("entities/provisioning",e)}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new c})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"a93ee23fabf4bdeb381e924bfdf684ddd183075a",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{m as justifi_payment_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as a}from"./p-fad19d75.js";import{p as s}from"./p-56f6ce4c.js";import"./p-df21aaad.js";import{a as c,b as r}from"./p-e3fab0e2.js";import{b as o,c as i,f as d}from"./p-5e2c9ec8.js";import{a as n,C as h}from"./p-14c91ffd.js";import{t as b}from"./p-2b6c9c4f.js";import{S as l}from"./p-ba4bae6f.js";import{T as f,a as p,b as u}from"./p-e333620e.js";const y=e=>t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),t("path",{d:"M12 15.5l-5-5 1.41-1.41L12 12.67l3.59-3.58L17 10.5l-5 5z"}),t("path",{d:"M11 4h2v9h-2z"}),t("path",{d:"M5 18h14v2H5z"})),m=class{constructor(t){e(this,t),this.rowClicked=a(this,"payout-row-clicked",7),this.errorEvent=a(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:n.FETCH_ERROR,message:"Failed to download CSV",severity:h.ERROR})}})},this.handleDateChange=(t,e)=>{this.params=Object.assign(Object.assign({},this.params),{[t]:e})},this.handleClickPrevious=t=>{const e=Object.assign({},this.params);delete e.after_cursor,this.params=Object.assign(Object.assign({},e),{before_cursor:t})},this.handleClickNext=t=>{const e=Object.assign({},this.params);delete e.before_cursor,this.params=Object.assign(Object.assign({},e),{after_cursor:t})},this.mapStatusToBadge=t=>{switch(t){case c.scheduled:return`<span class="badge bg-primary" title='Batched and scheduled to be transferred'>${r[t]}</span>`;case c.in_transit:return`<span class="badge bg-primary" title='Transfer to your bank account has been initiated'>${r[t]}</span>`;case c.failed:case c.canceled:return`<span class="badge bg-danger" title='Transfer to your bank account failed'>${r[t]}</span>`;case c.forwarded:return`<span class="badge bg-secondary" title='The funds have been forwarded to your next successful payout'>${r[t]}</span>`;case c.paid:return`<span class="badge bg-success" title='Successfully deposited into your bank account'>${r[t]}</span>`}},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;e&&this.rowClicked.emit(this.payouts.find((t=>t.id===e)))},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.payouts=[],this.loading=!0,this.errorMessage=void 0,this.paging=s,this.params=void 0}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.getPayouts&&this.fetchData()}fetchData(){this.loading=!0,this.getPayouts({params:this.params,onSuccess:({payouts:t,pagingInfo:e})=>{this.payouts=t,this.paging=e,this.loading=!1},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:a}),this.loading=!1}})}get entityId(){return this.payouts.map((t=>t.id))}get columnData(){return[["Paid Out On","The date each transaction occurred"],["Type","The type of each transaction"],["Account","The ID of the account associated with each payout"],["Paid Out To","The bank account to which each payout was transferred"],["Payments","Sum of payments in each payout"],["Refunds","Sum of refunds in each payout"],["Fees","Sum of fees in each payout"],["Other","Sum of less common transactions in each payout"],["Payout Amount","The net sum of all transactions in each payout"],["Status","The real-time status of each payout"],["Actions",""]]}get rowData(){return this.payouts.map((e=>[{type:"head",value:`\n <div class='fw-bold'>${o(e.created_at)}</div>\n <div class='fw-bold'>${i(e.created_at)}</div>\n `},e.payout_type,e.account_id,`${e.bank_account.full_name} ${e.bank_account.account_number_last4}`,d(e.payments_total),d(e.refunds_total),d(e.fees_total),d(e.other_total),d(e.amount),{type:"inner",value:this.mapStatusToBadge(e.status)},t(y,{title:"Export CSV",onClick:()=>this.downloadCSV(e.id),style:{height:"24px",width:"24px",cursor:"pointer"}})]))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState}render(){return t(l,{key:"594c52003f897f4c50f79935e42a7042fb5ec168",exportedparts:b},t("div",{key:"f2b1d971e1e7bc5596459c071c3aa931ba4cb4b9",class:"row gy-3 mb-4"},t("div",{key:"d98e3ed56421493a60bd0a285079aa99ae705506",class:"col-2"},t("form-control-date",{key:"c9c899884bcc6fa6d306b95473ef0a7354e57bd5",name:"created_after",label:"Date from:",inputHandler:this.handleDateChange})),t("div",{key:"0059a75bf2f478b107d59bd9d7cc29de10dffe57",class:"col-2"},t("form-control-date",{key:"ef9a31ac8a8e7336386664b70289ee34677152a4",name:"created_before",label:"Date to:",inputHandler:this.handleDateChange}))),t("div",{key:"65da1114a66ac4cdf8d6ec012a42b2f760af5c76",class:"table-wrapper"},t("table",{key:"d68d8f61835cc4dc5dc988ff61843e6254494ace",class:"table table-hover"},t("thead",{key:"aa691db8fbfbcdad59acbdc1ef38497b552928ab",class:"table-head sticky-top",part:"table-head"},t("tr",{key:"aa9f61cbf05b9420026861cb14e6a30a6c9e347e",class:"table-light text-nowrap",part:"table-head-row"},this.columnData.map((e=>t("th",{part:"table-head-cell",scope:"col",title:Array.isArray(e)?e[1]:""},Array.isArray(e)?e[0]:e))))),t("tbody",{key:"cf0127f26e8bc5b7afbbfc4a36fab4de948d1727",class:"table-body",part:"table-body"},t(f,{key:"d6b832786c4959176974c7a343442c8d1c50b5c2",columnSpan:this.columnData.length,isLoading:this.loading}),t(p,{key:"398a20957f76ba14e1b0677fbd6fbfbacce61fbb",isEmpty:this.showEmptyState,columnSpan:this.columnData.length}),t(u,{key:"d9f755a07a6f8cd4967eac60beff92f36322dcdd",columnSpan:this.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.rowData.map(((e,a)=>t("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler,part:"table-row "+(a%2?"table-row-even":"table-row-odd")},e.map((e=>(null==e?void 0:e.type)?t("td",{part:"table-cell",innerHTML:e.value}):t("td",{part:"table-cell"},e))))))),this.paging&&t("tfoot",{key:"503fa3a3a7ffe5d52b614153b286dd0326c02091",class:"sticky-bottom"},t("tr",{key:"e3af74b96bfc1f5ac1f0f0655eaed096102d0e89",class:"table-light align-middle"},t("td",{key:"a53f9d37181ea29a9fcb6ab46b2daf7cc66509be",part:"pagination-bar",colSpan:this.columnData.length},t("pagination-menu",{key:"b0779289444747e0b18bb63e6a17cdc89bd390ca",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext}),params:this.params})))))))}static get watchers(){return{params:["updateOnPropChange"],getPayouts:["updateOnPropChange"]}}};export{m as payouts_list_core}
|