layerpro 0.0.63 → 0.0.66

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.
Files changed (68) hide show
  1. package/{dist/LICENSE.txt → LICENSE.txt} +0 -0
  2. package/{dist/README.md → README.md} +0 -0
  3. package/index.js +2 -7
  4. package/package.json +141 -138
  5. package/.editorconfig +0 -13
  6. package/.env +0 -3
  7. package/.eslintignore +0 -12
  8. package/.eslintrc.json +0 -110
  9. package/.gitattributes +0 -2
  10. package/.github/FUNDING.yml +0 -12
  11. package/.github/dependabot.yml +0 -12
  12. package/.jsbeautifyrc +0 -26
  13. package/.prettierignore +0 -2
  14. package/.prettierrc +0 -7
  15. package/.vscode/launch.json +0 -22
  16. package/.vscode/settings.json +0 -84
  17. package/.vscodeignore +0 -28
  18. package/__mocks__/fileMock.js +0 -3
  19. package/__mocks__/styleMock.js +0 -3
  20. package/babel.config.js +0 -34
  21. package/backup.bat +0 -43
  22. package/coverage/clover.xml +0 -6
  23. package/coverage/coverage-final.json +0 -1
  24. package/coverage/lcov-report/base.css +0 -224
  25. package/coverage/lcov-report/block-navigation.js +0 -87
  26. package/coverage/lcov-report/favicon.png +0 -0
  27. package/coverage/lcov-report/index.html +0 -101
  28. package/coverage/lcov-report/prettify.css +0 -1
  29. package/coverage/lcov-report/prettify.js +0 -2
  30. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  31. package/coverage/lcov-report/sorter.js +0 -196
  32. package/coverage/lcov.info +0 -0
  33. package/documents/LICENSE.txt +0 -21
  34. package/documents/README.md +0 -7
  35. package/documents/SECURITY.md +0 -3
  36. package/init.js +0 -33
  37. package/jest.config.js +0 -61
  38. package/jsconfig.json +0 -10
  39. package/node/createTag.js +0 -7
  40. package/node/gitDeploy.js +0 -7
  41. package/node/goLive.js +0 -7
  42. package/scripts/genLayer.jsx +0 -234
  43. package/scripts/message.jsx +0 -280
  44. package/scripts/mouseCoords.jsx +0 -45
  45. package/scripts/popup.jsx +0 -612
  46. package/scripts/purge.jsx +0 -29
  47. package/scripts/smoothScroll.js +0 -69
  48. package/scripts/window.js +0 -28
  49. package/styles/dock.scss +0 -100
  50. package/styles/general.scss +0 -241
  51. package/styles/icons.scss +0 -33
  52. package/styles/input.scss +0 -35
  53. package/styles/messages.scss +0 -76
  54. package/styles/resize.scss +0 -99
  55. package/styles/root.scss +0 -14
  56. package/styles/scrollbar.scss +0 -24
  57. package/tests/setupJest.tsx +0 -4
  58. package/tsconfig.json +0 -69
  59. package/typings/cordova.d.ts +0 -12
  60. package/typings/dphelper.d.ts +0 -29
  61. package/typings/image.d.ts +0 -9
  62. package/typings/index.d.ts +0 -7
  63. package/typings/layerpro.d.ts +0 -23
  64. package/typings/menupro.d.ts +0 -18
  65. package/typings/namespace.d.ts +0 -7
  66. package/typings/styles.d.ts +0 -27
  67. package/typings/vscode.d.ts +0 -14724
  68. package/webpack.config.js +0 -239
@@ -1,280 +0,0 @@
1
- /*
2
- Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
- License: MIT
4
- */
5
-
6
- /*****************************************************************************************/
7
- // ALERT
8
-
9
- layerpro.alert = (txt) => {
10
-
11
- const pUp = layerpro.popup.open({
12
- id: "__alert",
13
- body: "",
14
- source: "",
15
- width: 380,
16
- height: 220,
17
- name: "Warning",
18
- icon: "&#9888;",
19
- iconize: false,
20
- maximize: false,
21
- close: true,
22
- isMaximize: false,
23
- dockable: false,
24
- raised: true,
25
- movable: true,
26
- resizable: false,
27
- store: false,
28
- top: "",
29
- left: "",
30
- right: "",
31
- bottom: "",
32
- fadeIn: "",
33
- fadeOut: "",
34
- minWidth: "",
35
- minHeight: "",
36
- })
37
-
38
- let view = ""
39
- view += "<div class='popup_prompt'>"
40
- view += '<div class="popup_message_body">'
41
- view += '<center>'
42
- view += txt
43
- view += "</center>"
44
- view += '</div>'
45
- view += '<button id="a_' + pUp.id + '" type="button">CLOSE</button>'
46
-
47
- $('.popup_body_' + pUp.id)
48
- .html(view)
49
-
50
- $('#a_' + pUp.id)
51
- .css('width', '100%')
52
- .on('click', function (e) { layerpro.popup.close(pUp) })
53
-
54
- return false
55
- }
56
-
57
- /*****************************************************************************************/
58
- // MESSAGE
59
-
60
- layerpro.message = (txt) => {
61
-
62
- let pUp = layerpro.popup.open({
63
- id: "__message",
64
- body: "",
65
- width: 380,
66
- height: 220,
67
- name: 'Message',
68
- source: "",
69
- icon: "&#9965;",
70
- iconize: false,
71
- maximize: false,
72
- close: true,
73
- isMaximize: false,
74
- dockable: false,
75
- raised: true,
76
- movable: true,
77
- resizable: false,
78
- store: false,
79
- top: "",
80
- left: "",
81
- right: "",
82
- bottom: "",
83
- fadeIn: "",
84
- fadeOut: "",
85
- minWidth: "",
86
- minHeight: "",
87
- })
88
-
89
- let view = ""
90
- view += "<div class='popup_prompt'>"
91
- view += '<div class="popup_message_body">'
92
- view += '<center>'
93
- view += txt
94
- view += "</center>"
95
- view += '</div>'
96
- view += '<button id="a_' + pUp.id + '" type="button">CLOSE</button>'
97
-
98
- $('.popup_body_' + pUp.id)
99
- .html(view)
100
-
101
- $('#a_' + pUp.id)
102
- .css('width', '100%')
103
- .on('click', function () { layerpro.popup.close(pUp) })
104
-
105
- return false
106
- }
107
-
108
- /*****************************************************************************************/
109
- // CONFIRM
110
-
111
- layerpro.confirm = (txt, function_, noFunction) => {
112
-
113
- if ($('.confirm').length === 0) {
114
-
115
- let pUp = layerpro.popup.open({
116
- id: "__confirm",
117
- body: "",
118
- source: "",
119
- width: 380,
120
- height: 220,
121
- name: 'Confirm',
122
- icon: "&#9745;",
123
- iconize: false,
124
- maximize: false,
125
- close: true,
126
- isMaximize: false,
127
- dockable: false,
128
- raised: true,
129
- movable: true,
130
- resizable: false,
131
- store: false,
132
- top: "",
133
- left: "",
134
- right: "",
135
- bottom: "",
136
- fadeIn: "",
137
- fadeOut: "",
138
- minWidth: "",
139
- minHeight: "",
140
- })
141
-
142
- let view = ""
143
- view += "<div class='popup_prompt'>"
144
- view += '<div class="popup_message_body">'
145
- view += '<center>'
146
- view += txt
147
- view += "</center>"
148
- view += '</div>'
149
- view += '<button id="a_' + pUp.id + '" type="button">CONFIRM</button>'
150
- view += '<button id="b_' + pUp.id + '" type="button">CANCEL</button>'
151
-
152
- $('.popup_body_' + pUp.id)
153
- .html(view)
154
-
155
- $('#a_' + pUp.id).on('click', function () {
156
- if (function_) { function_() }
157
- layerpro.popup.close(pUp)
158
- })
159
-
160
- $('#b_' + pUp.id).on('click', function () {
161
- if (noFunction) { noFunction() }
162
- layerpro.popup.close(pUp)
163
- })
164
-
165
- }
166
-
167
- return false
168
- }
169
-
170
- /*****************************************************************************************/
171
- // PROMPT
172
-
173
- layerpro.prompt = (txt, value) => {
174
-
175
- // txt = JSON.stringify( txt );
176
- // value = JSON.stringify( value ) || "_prompt";
177
- value = value || "_prompt"
178
-
179
- let pUp = layerpro.popup.open({
180
- id: "__prompt",
181
- body: "",
182
- source: "",
183
- width: 380,
184
- height: 220,
185
- name: 'Prompt',
186
- icon: "&#9998;",
187
- iconize: false,
188
- maximize: false,
189
- close: true,
190
- isMaximize: false,
191
- dockable: false,
192
- raised: true,
193
- movable: true,
194
- resizable: false,
195
- store: false,
196
- top: "",
197
- left: "",
198
- right: "",
199
- bottom: "",
200
- fadeIn: "",
201
- fadeOut: "",
202
- minWidth: "",
203
- minHeight: "",
204
- })
205
-
206
- let view = ""
207
- view += "<div class='popup_prompt'>"
208
- view += '<div class="popup_message_body">'
209
- view += '<center>'
210
- view += txt
211
- view += "</center>"
212
- view += '</div>'
213
- view += '<input id="input_' + pUp.id + '" type="text" placeholder="write here" /><br/>'
214
- view += '<button id="a_' + pUp.id + '" type="button">OK</button>'
215
- view += '<button id="b_' + pUp.id + '" type="button">CANCEL</button>'
216
- view += "</div>"
217
-
218
- $('.popup_body_' + pUp.id)
219
- .html(view)
220
-
221
- $('#input_' + pUp.id)
222
- .on('focus', function () { $(this).attr('placeholder', "") })
223
- .on('blur', function () { $(this).attr('placeholder', "write here") })
224
-
225
- $('#a_' + pUp.id).on('click', function (e) {
226
-
227
- if ($('#input_' + pUp.id).val() > '') {
228
-
229
- // localStorage.setItem( value , JSON.stringify( $('#input_' + pUp.id).val() ) );
230
- // layerpro.popup.close( pUp );
231
-
232
- layerpro.popup.close(pUp)
233
- return JSON.stringify($('#input_' + pUp.id).val())
234
-
235
- } else {
236
- alert(`input can't be empty!`)
237
- }
238
-
239
- })
240
-
241
- $('#b_' + pUp.id).on('click', function (e) {
242
- layerpro.popup.close(pUp)
243
- })
244
-
245
- return false
246
- }
247
-
248
-
249
- /********************************************************** */
250
-
251
- export const CustomMessage = () => {
252
-
253
- // MESSAGE
254
- // ***********************************************************************
255
- window.message = (txt) => {
256
- layerpro.message(txt)
257
- }
258
-
259
- // ALERT
260
- // ***********************************************************************
261
- window.alert = (txt) => {
262
- layerpro.alert(txt)
263
- }
264
-
265
- // CONFIRM
266
- // ***********************************************************************
267
- window.confirm = (txt, function_, noFunction) => {
268
- layerpro.confirm(txt, function_, noFunction)
269
- }
270
-
271
- // PROMPT
272
- // ***********************************************************************
273
- window.prompt = (txt, function_, event) => {
274
- layerpro.prompt(txt, function_, event)
275
- }
276
-
277
- }
278
-
279
- CustomMessage()
280
-
@@ -1,45 +0,0 @@
1
- /*
2
- Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
- License: MIT
4
- */
5
-
6
- export const mouseCoord = function (e) {
7
-
8
- let mClientX = e.clientX
9
- let mClientY = e.clientY
10
- let mScreenX = e.screenX
11
- let mScreenY = e.screenY
12
-
13
- return [mClientX, mClientY, mScreenX, mScreenY]
14
-
15
- }
16
-
17
- /*****************************************************************************************/
18
-
19
- let xDirection = ""
20
- let yDirection = ""
21
- let oldX = 0
22
- let oldY = 0
23
-
24
- export const getMouseDirection = function (e) {
25
-
26
- xDirection = oldX < e.pageX ? 1 : 0
27
-
28
- yDirection = oldY < e.pageY ? "down" : "up"
29
-
30
- oldX = e.pageX
31
- oldY = e.pageY
32
-
33
- //console.log(xDirection)
34
-
35
- return xDirection
36
-
37
- }
38
-
39
- //document.querySelector( "body" ).addEventListener( "mousemove" , getMouseDirection, false );
40
-
41
-
42
-
43
-
44
-
45
-