@symbo.ls/sync 2.11.520 → 2.11.522
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/SyncNotifications.js +27 -31
- package/dist/cjs/SyncNotifications.js +28 -32
- package/dist/esm/SyncNotifications.js +28 -32
- package/package.json +6 -6
package/SyncNotifications.js
CHANGED
|
@@ -40,7 +40,6 @@ const NOTIF_COLORS = {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export const connectedToSymbols = (clients, element, state) => {
|
|
43
|
-
console.log(clients)
|
|
44
43
|
if (clients.symbols) {
|
|
45
44
|
if (!state.connected) {
|
|
46
45
|
state.notifications.connected = {
|
|
@@ -86,37 +85,34 @@ export const Notifications = {
|
|
|
86
85
|
},
|
|
87
86
|
|
|
88
87
|
Notifications: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Flex: {
|
|
102
|
-
Title: {
|
|
103
|
-
text: '{{ title }}'
|
|
104
|
-
},
|
|
105
|
-
P: {
|
|
106
|
-
text: '{{ title }}'
|
|
107
|
-
}
|
|
88
|
+
position: 'fixed',
|
|
89
|
+
left: 'A2',
|
|
90
|
+
bottom: 'Z2',
|
|
91
|
+
zIndex: '999',
|
|
92
|
+
childExtends: 'Notification',
|
|
93
|
+
childProps: ({ state }) => ({
|
|
94
|
+
animationDuration: 'C',
|
|
95
|
+
background: NOTIF_COLORS[state.type || 'success'],
|
|
96
|
+
icon: null,
|
|
97
|
+
Flex: {
|
|
98
|
+
Title: {
|
|
99
|
+
text: '{{ title }}'
|
|
108
100
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
onClick: (e, el, s) => {
|
|
113
|
-
delete s.notifications[el.key]
|
|
114
|
-
el.setProps({ animation: 'fadeOutDown' })
|
|
115
|
-
if (s.onClose) s.onClose(e, el, s)
|
|
101
|
+
P: {
|
|
102
|
+
text: '{{ title }}'
|
|
116
103
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
104
|
+
},
|
|
105
|
+
onRender: (e, el, s) => {
|
|
106
|
+
el.setProps({ animation: 'fadeInUp' })
|
|
107
|
+
},
|
|
108
|
+
onClick: (e, el, s) => {
|
|
109
|
+
delete s.notifications[el.key]
|
|
110
|
+
el.setProps({ animation: 'fadeOutDown' })
|
|
111
|
+
if (s.onClose) s.onClose(e, el, s)
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
IconText: null,
|
|
115
|
+
childrenAs: 'state',
|
|
116
|
+
children: ({ state }) => state.notifications
|
|
121
117
|
}
|
|
122
118
|
}
|
|
@@ -28,7 +28,6 @@ const NOTIF_COLORS = {
|
|
|
28
28
|
warning: "yellow"
|
|
29
29
|
};
|
|
30
30
|
const connectedToSymbols = (clients, element, state) => {
|
|
31
|
-
console.log(clients);
|
|
32
31
|
if (clients.symbols) {
|
|
33
32
|
if (!state.connected) {
|
|
34
33
|
state.notifications.connected = {
|
|
@@ -66,38 +65,35 @@ const Notifications = {
|
|
|
66
65
|
notifications: []
|
|
67
66
|
},
|
|
68
67
|
Notifications: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Flex: {
|
|
82
|
-
Title: {
|
|
83
|
-
text: "{{ title }}"
|
|
84
|
-
},
|
|
85
|
-
P: {
|
|
86
|
-
text: "{{ title }}"
|
|
87
|
-
}
|
|
68
|
+
position: "fixed",
|
|
69
|
+
left: "A2",
|
|
70
|
+
bottom: "Z2",
|
|
71
|
+
zIndex: "999",
|
|
72
|
+
childExtends: "Notification",
|
|
73
|
+
childProps: ({ state }) => ({
|
|
74
|
+
animationDuration: "C",
|
|
75
|
+
background: NOTIF_COLORS[state.type || "success"],
|
|
76
|
+
icon: null,
|
|
77
|
+
Flex: {
|
|
78
|
+
Title: {
|
|
79
|
+
text: "{{ title }}"
|
|
88
80
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
onClick: (e, el, s) => {
|
|
93
|
-
delete s.notifications[el.key];
|
|
94
|
-
el.setProps({ animation: "fadeOutDown" });
|
|
95
|
-
if (s.onClose)
|
|
96
|
-
s.onClose(e, el, s);
|
|
81
|
+
P: {
|
|
82
|
+
text: "{{ title }}"
|
|
97
83
|
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
84
|
+
},
|
|
85
|
+
onRender: (e, el, s) => {
|
|
86
|
+
el.setProps({ animation: "fadeInUp" });
|
|
87
|
+
},
|
|
88
|
+
onClick: (e, el, s) => {
|
|
89
|
+
delete s.notifications[el.key];
|
|
90
|
+
el.setProps({ animation: "fadeOutDown" });
|
|
91
|
+
if (s.onClose)
|
|
92
|
+
s.onClose(e, el, s);
|
|
93
|
+
}
|
|
94
|
+
}),
|
|
95
|
+
IconText: null,
|
|
96
|
+
childrenAs: "state",
|
|
97
|
+
children: ({ state }) => state.notifications
|
|
102
98
|
}
|
|
103
99
|
};
|
|
@@ -4,7 +4,6 @@ const NOTIF_COLORS = {
|
|
|
4
4
|
warning: "yellow"
|
|
5
5
|
};
|
|
6
6
|
const connectedToSymbols = (clients, element, state) => {
|
|
7
|
-
console.log(clients);
|
|
8
7
|
if (clients.symbols) {
|
|
9
8
|
if (!state.connected) {
|
|
10
9
|
state.notifications.connected = {
|
|
@@ -42,39 +41,36 @@ const Notifications = {
|
|
|
42
41
|
notifications: []
|
|
43
42
|
},
|
|
44
43
|
Notifications: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Flex: {
|
|
58
|
-
Title: {
|
|
59
|
-
text: "{{ title }}"
|
|
60
|
-
},
|
|
61
|
-
P: {
|
|
62
|
-
text: "{{ title }}"
|
|
63
|
-
}
|
|
44
|
+
position: "fixed",
|
|
45
|
+
left: "A2",
|
|
46
|
+
bottom: "Z2",
|
|
47
|
+
zIndex: "999",
|
|
48
|
+
childExtends: "Notification",
|
|
49
|
+
childProps: ({ state }) => ({
|
|
50
|
+
animationDuration: "C",
|
|
51
|
+
background: NOTIF_COLORS[state.type || "success"],
|
|
52
|
+
icon: null,
|
|
53
|
+
Flex: {
|
|
54
|
+
Title: {
|
|
55
|
+
text: "{{ title }}"
|
|
64
56
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
onClick: (e, el, s) => {
|
|
69
|
-
delete s.notifications[el.key];
|
|
70
|
-
el.setProps({ animation: "fadeOutDown" });
|
|
71
|
-
if (s.onClose)
|
|
72
|
-
s.onClose(e, el, s);
|
|
57
|
+
P: {
|
|
58
|
+
text: "{{ title }}"
|
|
73
59
|
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
60
|
+
},
|
|
61
|
+
onRender: (e, el, s) => {
|
|
62
|
+
el.setProps({ animation: "fadeInUp" });
|
|
63
|
+
},
|
|
64
|
+
onClick: (e, el, s) => {
|
|
65
|
+
delete s.notifications[el.key];
|
|
66
|
+
el.setProps({ animation: "fadeOutDown" });
|
|
67
|
+
if (s.onClose)
|
|
68
|
+
s.onClose(e, el, s);
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
IconText: null,
|
|
72
|
+
childrenAs: "state",
|
|
73
|
+
children: ({ state }) => state.notifications
|
|
78
74
|
}
|
|
79
75
|
};
|
|
80
76
|
export {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/sync",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.522",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.js",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "f0cf0f8e16c7cac278886a322e85cb8d8188ca24",
|
|
7
7
|
"files": [
|
|
8
8
|
"*.js",
|
|
9
9
|
"dist"
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@domql/globals": "latest",
|
|
33
33
|
"@domql/router": "^2.5.0",
|
|
34
34
|
"@domql/utils": "^2.5.0",
|
|
35
|
-
"@symbo.ls/init": "^2.11.
|
|
36
|
-
"@symbo.ls/scratch": "^2.11.
|
|
37
|
-
"@symbo.ls/socket": "^2.11.
|
|
38
|
-
"@symbo.ls/uikit": "^2.11.
|
|
35
|
+
"@symbo.ls/init": "^2.11.522",
|
|
36
|
+
"@symbo.ls/scratch": "^2.11.522",
|
|
37
|
+
"@symbo.ls/socket": "^2.11.522",
|
|
38
|
+
"@symbo.ls/uikit": "^2.11.522"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.12.0"
|