wickes-css2 2.103.0-0.5.0-icons.7 → 2.103.0-0.5.0-icons.8
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/build/js/emulation.min.js +40 -40
- package/package.json +1 -1
- package/src/js/emulation/account-hub.js +40 -40
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
function returnMembers() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
return {
|
|
3
|
+
canLoadMore: true,
|
|
4
|
+
members: [
|
|
5
|
+
{
|
|
6
|
+
id: 'john.doe@wickes.co.uk',
|
|
7
|
+
name: 'John Doe',
|
|
8
|
+
email: 'john.doe@wickes.co.uk',
|
|
9
|
+
date: '24/02/2022',
|
|
10
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
11
|
+
status: 'PENDING',
|
|
12
|
+
'card-label': 'Pending',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'john.doe2@wickes.co.uk',
|
|
16
|
+
name: 'John Doe2',
|
|
17
|
+
email: 'john.doe2@wickes.co.uk',
|
|
18
|
+
date: '24/02/2022',
|
|
19
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
20
|
+
'card-label': 'Other label',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'john.doe3@wickes.co.uk',
|
|
24
|
+
name: 'John Doe3',
|
|
25
|
+
email: 'john.doe3@wickes.co.uk',
|
|
26
|
+
date: '24/02/2022',
|
|
27
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function initAccountHubFunctionality() {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Wick.AccountHub.initAccountHub();
|
|
35
|
+
Wick.AccountHub.initAccountHubRemove();
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
$(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
e.detail.resolve(returnMembers());
|
|
40
|
+
}, 1000);
|
|
41
|
+
});
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
$(document).ready(function () {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (!$('.account-hub').length) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
initAccountHubFunctionality();
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
const ALREADY_EXIST_EMAIL = 'fe@wickes.co.uk';
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
function returnMembers() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
return {
|
|
3
|
+
canLoadMore: true,
|
|
4
|
+
members: [
|
|
5
|
+
{
|
|
6
|
+
id: 'john.doe@wickes.co.uk',
|
|
7
|
+
name: 'John Doe',
|
|
8
|
+
email: 'john.doe@wickes.co.uk',
|
|
9
|
+
date: '24/02/2022',
|
|
10
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
11
|
+
status: 'PENDING',
|
|
12
|
+
'card-label': 'Pending',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'john.doe2@wickes.co.uk',
|
|
16
|
+
name: 'John Doe2',
|
|
17
|
+
email: 'john.doe2@wickes.co.uk',
|
|
18
|
+
date: '24/02/2022',
|
|
19
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
20
|
+
'card-label': 'Other label',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'john.doe3@wickes.co.uk',
|
|
24
|
+
name: 'John Doe3',
|
|
25
|
+
email: 'john.doe3@wickes.co.uk',
|
|
26
|
+
date: '24/02/2022',
|
|
27
|
+
'order-history-url': 'page_tradePro_order-history.html',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function initAccountHubFunctionality() {
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
Wick.AccountHub.initAccountHub();
|
|
35
|
+
Wick.AccountHub.initAccountHubRemove();
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
$(window).on(Wick.AccountHub.LOAD_MORE_EVENT, function (e) {
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
e.detail.resolve(returnMembers());
|
|
40
|
+
}, 1000);
|
|
41
|
+
});
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
$(document).ready(function () {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (!$('.account-hub').length) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
initAccountHubFunctionality();
|
|
49
49
|
});
|