@sprucelabs/heartwood-view-controllers 126.8.0 → 126.8.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.
|
@@ -154,6 +154,10 @@ function pluckButtonsFromViewModel(model, ids) {
|
|
|
154
154
|
var _a, _b;
|
|
155
155
|
buttons.push(...((_b = (_a = f === null || f === void 0 ? void 0 : f.footer) === null || _a === void 0 ? void 0 : _a.buttons) !== null && _b !== void 0 ? _b : []));
|
|
156
156
|
});
|
|
157
|
+
pluckAllFromView(model, 'bigForm').forEach((f) => {
|
|
158
|
+
var _a, _b;
|
|
159
|
+
buttons.push(...((_b = (_a = f === null || f === void 0 ? void 0 : f.footer) === null || _a === void 0 ? void 0 : _a.buttons) !== null && _b !== void 0 ? _b : []));
|
|
160
|
+
});
|
|
157
161
|
pluckAllFromView(model, 'buttonBar').forEach((f) => {
|
|
158
162
|
var _a;
|
|
159
163
|
buttons.push(...((_a = f === null || f === void 0 ? void 0 : f.buttons) !== null && _a !== void 0 ? _a : []));
|
|
@@ -40,11 +40,6 @@ class LoginCardViewController extends AbstractViewController {
|
|
|
40
40
|
},
|
|
41
41
|
],
|
|
42
42
|
},
|
|
43
|
-
footer: this.shouldAllowEmailLogin
|
|
44
|
-
? {
|
|
45
|
-
buttons: [this.renderLoginWithEmailButton()],
|
|
46
|
-
}
|
|
47
|
-
: null,
|
|
48
43
|
});
|
|
49
44
|
}
|
|
50
45
|
renderLoginWithEmailButton() {
|
|
@@ -61,7 +56,7 @@ class LoginCardViewController extends AbstractViewController {
|
|
|
61
56
|
title: this.renderEmailSlideTitle(),
|
|
62
57
|
fields: ['email'],
|
|
63
58
|
});
|
|
64
|
-
this.
|
|
59
|
+
this.bigFormVc.setFooter({
|
|
65
60
|
buttons: [this.renderLoginWithPhoneButton()],
|
|
66
61
|
});
|
|
67
62
|
});
|
|
@@ -77,7 +72,7 @@ class LoginCardViewController extends AbstractViewController {
|
|
|
77
72
|
handleClickLoginWithPhone() {
|
|
78
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
74
|
this.bigFormVc.updateSection(0, this.renderPhoneSection());
|
|
80
|
-
this.
|
|
75
|
+
this.bigFormVc.setFooter({
|
|
81
76
|
buttons: [this.renderLoginWithEmailButton()],
|
|
82
77
|
});
|
|
83
78
|
});
|
|
@@ -122,6 +117,11 @@ class LoginCardViewController extends AbstractViewController {
|
|
|
122
117
|
fields: [{ name: 'code', renderAs: 'number' }],
|
|
123
118
|
},
|
|
124
119
|
],
|
|
120
|
+
footer: this.shouldAllowEmailLogin
|
|
121
|
+
? {
|
|
122
|
+
buttons: [this.renderLoginWithEmailButton()],
|
|
123
|
+
}
|
|
124
|
+
: null,
|
|
125
125
|
}));
|
|
126
126
|
}
|
|
127
127
|
renderPhoneSection() {
|
|
@@ -151,6 +151,9 @@ function pluckButtonsFromViewModel(model, ids) {
|
|
|
151
151
|
(0, assertSupport_1.pluckAllFromView)(model, 'form').forEach((f) => {
|
|
152
152
|
buttons.push(...(f?.footer?.buttons ?? []));
|
|
153
153
|
});
|
|
154
|
+
(0, assertSupport_1.pluckAllFromView)(model, 'bigForm').forEach((f) => {
|
|
155
|
+
buttons.push(...(f?.footer?.buttons ?? []));
|
|
156
|
+
});
|
|
154
157
|
(0, assertSupport_1.pluckAllFromView)(model, 'buttonBar').forEach((f) => {
|
|
155
158
|
buttons.push(...(f?.buttons ?? []));
|
|
156
159
|
});
|
|
@@ -36,11 +36,6 @@ class LoginCardViewController extends Abstract_vc_1.default {
|
|
|
36
36
|
},
|
|
37
37
|
],
|
|
38
38
|
},
|
|
39
|
-
footer: this.shouldAllowEmailLogin
|
|
40
|
-
? {
|
|
41
|
-
buttons: [this.renderLoginWithEmailButton()],
|
|
42
|
-
}
|
|
43
|
-
: null,
|
|
44
39
|
});
|
|
45
40
|
}
|
|
46
41
|
renderLoginWithEmailButton() {
|
|
@@ -56,7 +51,7 @@ class LoginCardViewController extends Abstract_vc_1.default {
|
|
|
56
51
|
title: this.renderEmailSlideTitle(),
|
|
57
52
|
fields: ['email'],
|
|
58
53
|
});
|
|
59
|
-
this.
|
|
54
|
+
this.bigFormVc.setFooter({
|
|
60
55
|
buttons: [this.renderLoginWithPhoneButton()],
|
|
61
56
|
});
|
|
62
57
|
}
|
|
@@ -70,7 +65,7 @@ class LoginCardViewController extends Abstract_vc_1.default {
|
|
|
70
65
|
}
|
|
71
66
|
async handleClickLoginWithPhone() {
|
|
72
67
|
this.bigFormVc.updateSection(0, this.renderPhoneSection());
|
|
73
|
-
this.
|
|
68
|
+
this.bigFormVc.setFooter({
|
|
74
69
|
buttons: [this.renderLoginWithEmailButton()],
|
|
75
70
|
});
|
|
76
71
|
}
|
|
@@ -114,6 +109,11 @@ class LoginCardViewController extends Abstract_vc_1.default {
|
|
|
114
109
|
fields: [{ name: 'code', renderAs: 'number' }],
|
|
115
110
|
},
|
|
116
111
|
],
|
|
112
|
+
footer: this.shouldAllowEmailLogin
|
|
113
|
+
? {
|
|
114
|
+
buttons: [this.renderLoginWithEmailButton()],
|
|
115
|
+
}
|
|
116
|
+
: null,
|
|
117
117
|
}));
|
|
118
118
|
}
|
|
119
119
|
renderPhoneSection() {
|
package/package.json
CHANGED