@saasquatch/mint-components 2.0.2-10 → 2.0.2-11
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/sqm-banking-info-form_10.cjs.entry.js +4 -5
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +4 -5
- package/dist/esm/sqm-banking-info-form_10.entry.js +4 -5
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-c540c501.entry.js → p-65808084.entry.js} +6 -6
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-7d6c3126.system.entry.js → p-ebb22a4a.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -6177,7 +6177,6 @@ const UserInfoFormView = (props) => {
|
|
|
6177
6177
|
}
|
|
6178
6178
|
function isDisabledInput(field) {
|
|
6179
6179
|
var _a;
|
|
6180
|
-
console.log({ data, states });
|
|
6181
6180
|
if (states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]))
|
|
6182
6181
|
return true;
|
|
6183
6182
|
return false;
|
|
@@ -6288,7 +6287,7 @@ const UserInfoFormView = (props) => {
|
|
|
6288
6287
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6289
6288
|
// Checks for non-ASCII characters
|
|
6290
6289
|
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6291
|
-
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
6290
|
+
utils$1.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingAddress") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
6292
6291
|
class: classes.ErrorInput,
|
|
6293
6292
|
helpText: utils$1.formatErrorMessage(text.address, formState.errors.address),
|
|
6294
6293
|
}
|
|
@@ -6296,17 +6295,17 @@ const UserInfoFormView = (props) => {
|
|
|
6296
6295
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6297
6296
|
// Checks for non-ASCII characters
|
|
6298
6297
|
!utils$1.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6299
|
-
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
6298
|
+
utils$1.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingCity") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
6300
6299
|
class: classes.ErrorInput,
|
|
6301
6300
|
helpText: utils$1.formatErrorMessage(text.city, formState.errors.city),
|
|
6302
6301
|
}
|
|
6303
6302
|
: {}), { required: true })),
|
|
6304
|
-
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("
|
|
6303
|
+
!states.hideState && (index.h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("billingState") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6305
6304
|
class: classes.ErrorInput,
|
|
6306
6305
|
helpText: utils$1.formatErrorMessage(text.state, formState.errors.state),
|
|
6307
6306
|
}
|
|
6308
6307
|
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6309
|
-
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("
|
|
6308
|
+
index.h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("billingPostalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6310
6309
|
class: classes.ErrorInput,
|
|
6311
6310
|
helpText: utils$1.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6312
6311
|
}
|
package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js
CHANGED
|
@@ -289,7 +289,6 @@ export const UserInfoFormView = (props) => {
|
|
|
289
289
|
}
|
|
290
290
|
function isDisabledInput(field) {
|
|
291
291
|
var _a;
|
|
292
|
-
console.log({ data, states });
|
|
293
292
|
if (states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]))
|
|
294
293
|
return true;
|
|
295
294
|
return false;
|
|
@@ -400,7 +399,7 @@ export const UserInfoFormView = (props) => {
|
|
|
400
399
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
401
400
|
// Checks for non-ASCII characters
|
|
402
401
|
!validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
403
|
-
formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
402
|
+
formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingAddress") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
404
403
|
class: classes.ErrorInput,
|
|
405
404
|
helpText: formatErrorMessage(text.address, formState.errors.address),
|
|
406
405
|
}
|
|
@@ -408,17 +407,17 @@ export const UserInfoFormView = (props) => {
|
|
|
408
407
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
409
408
|
// Checks for non-ASCII characters
|
|
410
409
|
!validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
411
|
-
formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
410
|
+
formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingCity") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
412
411
|
class: classes.ErrorInput,
|
|
413
412
|
helpText: formatErrorMessage(text.city, formState.errors.city),
|
|
414
413
|
}
|
|
415
414
|
: {}), { required: true })),
|
|
416
|
-
!states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("
|
|
415
|
+
!states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("billingState") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
417
416
|
class: classes.ErrorInput,
|
|
418
417
|
helpText: formatErrorMessage(text.state, formState.errors.state),
|
|
419
418
|
}
|
|
420
419
|
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (h("sl-menu-item", { value: r.value }, r.label))))),
|
|
421
|
-
h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("
|
|
420
|
+
h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("billingPostalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
422
421
|
class: classes.ErrorInput,
|
|
423
422
|
helpText: formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
424
423
|
}
|
|
@@ -6173,7 +6173,6 @@ const UserInfoFormView = (props) => {
|
|
|
6173
6173
|
}
|
|
6174
6174
|
function isDisabledInput(field) {
|
|
6175
6175
|
var _a;
|
|
6176
|
-
console.log({ data, states });
|
|
6177
6176
|
if (states.isPartner && !!((_a = data.partnerData) === null || _a === void 0 ? void 0 : _a[field]))
|
|
6178
6177
|
return true;
|
|
6179
6178
|
return false;
|
|
@@ -6284,7 +6283,7 @@ const UserInfoFormView = (props) => {
|
|
|
6284
6283
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.address, id: "address", name: "/address", value: formState.address, validationError: ({ value }) =>
|
|
6285
6284
|
// Checks for non-ASCII characters
|
|
6286
6285
|
!validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6287
|
-
formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
6286
|
+
formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingAddress") }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
6288
6287
|
class: classes.ErrorInput,
|
|
6289
6288
|
helpText: formatErrorMessage(text.address, formState.errors.address),
|
|
6290
6289
|
}
|
|
@@ -6292,17 +6291,17 @@ const UserInfoFormView = (props) => {
|
|
|
6292
6291
|
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", label: text.city, id: "city", name: "/city", value: formState.city, validationError: ({ value }) =>
|
|
6293
6292
|
// Checks for non-ASCII characters
|
|
6294
6293
|
!validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6295
|
-
formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("
|
|
6294
|
+
formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || isDisabledInput("billingCity") }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
6296
6295
|
class: classes.ErrorInput,
|
|
6297
6296
|
helpText: formatErrorMessage(text.city, formState.errors.city),
|
|
6298
6297
|
}
|
|
6299
6298
|
: {}), { required: true })),
|
|
6300
|
-
!states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("
|
|
6299
|
+
!states.hideState && (h("sl-select", Object.assign({ label: regionLabel, exportparts: "label: input-label, base: input-base", id: "state", name: "/state", value: formState.state, disabled: states.disabled || isDisabledInput("billingState") }, (((_o = formState.errors) === null || _o === void 0 ? void 0 : _o.state) ? {
|
|
6301
6300
|
class: classes.ErrorInput,
|
|
6302
6301
|
helpText: formatErrorMessage(text.state, formState.errors.state),
|
|
6303
6302
|
}
|
|
6304
6303
|
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6305
|
-
h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("
|
|
6304
|
+
h("sl-input", Object.assign({ label: text.postalCode, exportparts: "label: input-label, base: input-base", id: "postalCode", name: "/postalCode", value: formState.postalCode, disabled: states.disabled || isDisabledInput("billingPostalCode") }, (((_q = formState.errors) === null || _q === void 0 ? void 0 : _q.postalCode) ? {
|
|
6306
6305
|
class: classes.ErrorInput,
|
|
6307
6306
|
helpText: formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6308
6307
|
}
|