The validation checks happen on all applicable form controls in the element (paymentTermSelect, customDates, upfrontAmount).
The 'valid' attribute emitted with the `outputPaymentTermForm` can be used to set and update the 'triggerPaymentTermError' attribute in the host application.See a code example in sn_frontend: https://github.com/sportngin/sn_frontend/blob/master/client-apps/org/send-invoices/send-invoices.directive.js#L46-L48
<payment-terms-selector-element add-payment-terms="true" id="test-payment-terms-selector" organization-id="214091" sale-type="invoice" sale-group-items="[ { "quantity":1, "item_variation_id":79803, "price_cents":10000 }, { "quantity":5, "item_variation_id":80066, "price_cents":1000 } ]"> </payment-terms-selector-element>
outputPaymentTermForm:
openPaymentTermsModal: