@saasquatch/mint-components 1.14.6-12 → 1.14.6-13
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-big-stat_42.cjs.entry.js +4 -0
- package/dist/cjs/{sqm-lead-dropdown-field-view-03a3e03f.js → sqm-lead-dropdown-field-view-9d1443ea.js} +2 -4
- package/dist/cjs/sqm-lead-dropdown-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-lead-form/sqm-lead-dropdown-field-view.js +2 -4
- package/dist/collection/components/sqm-lead-form/sqm-lead-input-field.js +2 -2
- package/dist/collection/components/sqm-lead-form/useLeadForm.js +4 -0
- package/dist/esm/sqm-big-stat_42.entry.js +4 -0
- package/dist/esm/{sqm-lead-dropdown-field-view-4c85fe20.js → sqm-lead-dropdown-field-view-145e94e8.js} +2 -4
- package/dist/esm/sqm-lead-dropdown-field.entry.js +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_42.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-145e94e8.js +1 -0
- package/dist/esm-es5/sqm-lead-dropdown-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-4056c0ea.system.entry.js → p-1471676f.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-618fcf78.js +1 -0
- package/dist/mint-components/{p-e703f269.entry.js → p-80449940.entry.js} +1 -1
- package/dist/mint-components/{p-c5a55554.entry.js → p-82cb222a.entry.js} +1 -1
- package/dist/mint-components/p-94f66806.system.js +1 -0
- package/dist/mint-components/{p-de5356d9.system.entry.js → p-9d89cc58.system.entry.js} +1 -1
- package/dist/mint-components/p-a370bcf2.system.entry.js +1 -0
- package/dist/mint-components/{p-cff1ed19.entry.js → p-cc15e6c0.entry.js} +1 -1
- package/dist/mint-components/p-e31c2bef.entry.js +1 -0
- package/dist/mint-components/{p-499527f0.system.entry.js → p-fdbd9629.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-lead-dropdown-field-view-4c85fe20.js +0 -1
- package/dist/mint-components/p-15f1ff1d.system.js +0 -1
- package/dist/mint-components/p-4d5b02af.js +0 -1
- package/dist/mint-components/p-6b093d8c.entry.js +0 -1
- package/dist/mint-components/p-a6bd2992.system.entry.js +0 -1
|
@@ -1397,11 +1397,15 @@ function useLeadForm(props) {
|
|
|
1397
1397
|
e.target.value = asYouType.input(e.target.value);
|
|
1398
1398
|
}, []);
|
|
1399
1399
|
function resetForm() {
|
|
1400
|
+
var _a, _b;
|
|
1400
1401
|
setLeadFormState({
|
|
1401
1402
|
loading: false,
|
|
1402
1403
|
error: "",
|
|
1403
1404
|
validationErrors: {},
|
|
1404
1405
|
});
|
|
1406
|
+
(_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
|
|
1407
|
+
c.value = "";
|
|
1408
|
+
});
|
|
1405
1409
|
setSuccess(false);
|
|
1406
1410
|
}
|
|
1407
1411
|
let errorMessage = "";
|
|
@@ -35,7 +35,7 @@ JSS.jss.setup(JSS.create());
|
|
|
35
35
|
const sheet = JSS.jss.createStyleSheet(style);
|
|
36
36
|
const styleString = sheet.toString();
|
|
37
37
|
function LeadDropdownFieldView(props) {
|
|
38
|
-
var _a, _b, _c, _d
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
39
|
const { states, content } = props;
|
|
40
40
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
41
41
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => global.intl.formatMessage({
|
|
@@ -54,10 +54,8 @@ function LeadDropdownFieldView(props) {
|
|
|
54
54
|
dropdownLabel: content.dropdownLabel,
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
} }, (((
|
|
57
|
+
} }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
|
|
58
58
|
class: sheet.classes.ErrorStyle,
|
|
59
|
-
helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
|
|
60
|
-
content.requiredFieldErrorMessage,
|
|
61
59
|
}
|
|
62
60
|
: [])), content.selectOptions),
|
|
63
61
|
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const useLeadFormState = require('./useLeadFormState-c83d2034.js');
|
|
13
|
-
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-
|
|
13
|
+
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-9d1443ea.js');
|
|
14
14
|
|
|
15
15
|
function useLeadDropdownField() {
|
|
16
16
|
const leadFormState = stencilHooks_module.d(useLeadFormState.LEAD_FORM_STATE_CONTEXT);
|
|
@@ -39,7 +39,7 @@ const LeadInputField = class {
|
|
|
39
39
|
* @uiName Required field message
|
|
40
40
|
* @uiWidget textArea
|
|
41
41
|
*/
|
|
42
|
-
this.requiredFieldErrorMessage = "Please enter a {
|
|
42
|
+
this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
|
|
43
43
|
/**
|
|
44
44
|
* @uiName Optional
|
|
45
45
|
* @default
|
|
@@ -20,7 +20,7 @@ const sqmAssetCardView = require('./sqm-asset-card-view-21ddf04f.js');
|
|
|
20
20
|
const sqmCloseButtonView = require('./sqm-close-button-view-ea3fa23b.js');
|
|
21
21
|
require('./index-8c6255f5.js');
|
|
22
22
|
const emailRegistrationView = require('./email-registration-view-55b378dc.js');
|
|
23
|
-
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-
|
|
23
|
+
const sqmLeadDropdownFieldView = require('./sqm-lead-dropdown-field-view-9d1443ea.js');
|
|
24
24
|
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-d39a55d8.js');
|
|
25
25
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-11d57c12.js');
|
|
26
26
|
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-17111896.js');
|
|
@@ -33,7 +33,7 @@ jss.setup(preset());
|
|
|
33
33
|
const sheet = jss.createStyleSheet(style);
|
|
34
34
|
const styleString = sheet.toString();
|
|
35
35
|
export function LeadDropdownFieldView(props) {
|
|
36
|
-
var _a, _b, _c, _d
|
|
36
|
+
var _a, _b, _c, _d;
|
|
37
37
|
const { states, content } = props;
|
|
38
38
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
39
39
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
@@ -52,10 +52,8 @@ export function LeadDropdownFieldView(props) {
|
|
|
52
52
|
dropdownLabel: content.dropdownLabel,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
} }, (((
|
|
55
|
+
} }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
|
|
56
56
|
class: sheet.classes.ErrorStyle,
|
|
57
|
-
helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
|
|
58
|
-
content.requiredFieldErrorMessage,
|
|
59
57
|
}
|
|
60
58
|
: [])), content.selectOptions),
|
|
61
59
|
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
@@ -28,7 +28,7 @@ export class LeadInputField {
|
|
|
28
28
|
* @uiName Required field message
|
|
29
29
|
* @uiWidget textArea
|
|
30
30
|
*/
|
|
31
|
-
this.requiredFieldErrorMessage = "Please enter a {
|
|
31
|
+
this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
|
|
32
32
|
/**
|
|
33
33
|
* @uiName Optional
|
|
34
34
|
* @default
|
|
@@ -152,7 +152,7 @@ export class LeadInputField {
|
|
|
152
152
|
},
|
|
153
153
|
"attribute": "required-field-error-message",
|
|
154
154
|
"reflect": false,
|
|
155
|
-
"defaultValue": "\"Please enter a {
|
|
155
|
+
"defaultValue": "\"Please enter a {fieldLabel}\""
|
|
156
156
|
},
|
|
157
157
|
"fieldOptional": {
|
|
158
158
|
"type": "boolean",
|
|
@@ -108,11 +108,15 @@ export function useLeadForm(props) {
|
|
|
108
108
|
e.target.value = asYouType.input(e.target.value);
|
|
109
109
|
}, []);
|
|
110
110
|
function resetForm() {
|
|
111
|
+
var _a, _b;
|
|
111
112
|
setLeadFormState({
|
|
112
113
|
loading: false,
|
|
113
114
|
error: "",
|
|
114
115
|
validationErrors: {},
|
|
115
116
|
});
|
|
117
|
+
(_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
|
|
118
|
+
c.value = "";
|
|
119
|
+
});
|
|
116
120
|
setSuccess(false);
|
|
117
121
|
}
|
|
118
122
|
let errorMessage = "";
|
|
@@ -1393,11 +1393,15 @@ function useLeadForm(props) {
|
|
|
1393
1393
|
e.target.value = asYouType.input(e.target.value);
|
|
1394
1394
|
}, []);
|
|
1395
1395
|
function resetForm() {
|
|
1396
|
+
var _a, _b;
|
|
1396
1397
|
setLeadFormState({
|
|
1397
1398
|
loading: false,
|
|
1398
1399
|
error: "",
|
|
1399
1400
|
validationErrors: {},
|
|
1400
1401
|
});
|
|
1402
|
+
(_b = (_a = formRef.current) === null || _a === void 0 ? void 0 : _a.getFormControls()) === null || _b === void 0 ? void 0 : _b.forEach((c) => {
|
|
1403
|
+
c.value = "";
|
|
1404
|
+
});
|
|
1401
1405
|
setSuccess(false);
|
|
1402
1406
|
}
|
|
1403
1407
|
let errorMessage = "";
|
|
@@ -33,7 +33,7 @@ jss.setup(create());
|
|
|
33
33
|
const sheet = jss.createStyleSheet(style);
|
|
34
34
|
const styleString = sheet.toString();
|
|
35
35
|
function LeadDropdownFieldView(props) {
|
|
36
|
-
var _a, _b, _c, _d
|
|
36
|
+
var _a, _b, _c, _d;
|
|
37
37
|
const { states, content } = props;
|
|
38
38
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
39
39
|
const getRequiredFieldErrorMessage = ({ dropdownLabel, }) => intl.formatMessage({
|
|
@@ -52,10 +52,8 @@ function LeadDropdownFieldView(props) {
|
|
|
52
52
|
dropdownLabel: content.dropdownLabel,
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
} }, (((
|
|
55
|
+
} }, (((_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) ? {
|
|
56
56
|
class: sheet.classes.ErrorStyle,
|
|
57
|
-
helpText: ((_g = (_f = states.leadFormState) === null || _f === void 0 ? void 0 : _f.validationErrors) === null || _g === void 0 ? void 0 : _g.firstName) ||
|
|
58
|
-
content.requiredFieldErrorMessage,
|
|
59
57
|
}
|
|
60
58
|
: [])), content.selectOptions),
|
|
61
59
|
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet.classes.ErrorMessageStyle }, intl.formatMessage({
|
|
@@ -6,7 +6,7 @@ import { c as cjs } from './cjs-bdfb4486.js';
|
|
|
6
6
|
import { a as getMissingProps, g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { L as LEAD_FORM_STATE_CONTEXT, R as RequiredPropsError } from './useLeadFormState-9016d812.js';
|
|
9
|
-
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-
|
|
9
|
+
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-145e94e8.js';
|
|
10
10
|
|
|
11
11
|
function useLeadDropdownField() {
|
|
12
12
|
const leadFormState = d(LEAD_FORM_STATE_CONTEXT);
|
|
@@ -35,7 +35,7 @@ const LeadInputField = class {
|
|
|
35
35
|
* @uiName Required field message
|
|
36
36
|
* @uiWidget textArea
|
|
37
37
|
*/
|
|
38
|
-
this.requiredFieldErrorMessage = "Please enter a {
|
|
38
|
+
this.requiredFieldErrorMessage = "Please enter a {fieldLabel}";
|
|
39
39
|
/**
|
|
40
40
|
* @uiName Optional
|
|
41
41
|
* @default
|
|
@@ -16,7 +16,7 @@ import { A as AssetCardView } from './sqm-asset-card-view-fe5db3c0.js';
|
|
|
16
16
|
import { C as CloseButtonView } from './sqm-close-button-view-f9819751.js';
|
|
17
17
|
import './index-ffa26b43.js';
|
|
18
18
|
import { E as EmailRegistrationView } from './email-registration-view-a7818cf2.js';
|
|
19
|
-
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-
|
|
19
|
+
import { L as LeadDropdownFieldView } from './sqm-lead-dropdown-field-view-145e94e8.js';
|
|
20
20
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-753c8d4a.js';
|
|
21
21
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-8ef8180f.js';
|
|
22
22
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-9d802b78.js';
|