layerpro 0.9.40 → 0.9.42

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/index.js.gz ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "layerpro",
3
- "version": "0.9.40",
3
+ "version": "0.9.42",
4
4
  "description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
5
5
  "copyright": "Dario Passariello",
6
6
  "license": "MIT",
@@ -156,6 +156,7 @@
156
156
  },
157
157
  "devDependencies": {
158
158
  "@types/webpack-env": "1.18.5",
159
+ "compression-webpack-plugin": "11.1.0",
159
160
  "copy-webpack-plugin": "^12.0.2",
160
161
  "css-loader": "7.1.2",
161
162
  "file-loader": "6.2.0",
@@ -165,7 +166,7 @@
165
166
  "sass": "^1.83.0",
166
167
  "sass-loader": "^16.0.4",
167
168
  "style-loader": "^4.0.0",
168
- "terser-webpack-plugin": "^5.3.10",
169
+ "terser-webpack-plugin": "^5.3.11",
169
170
  "thread-loader": "4.0.4",
170
171
  "ts-loader": "^9.5.1",
171
172
  "ts-node": "10.9.2",
package/types/cache.d.ts CHANGED
@@ -7,7 +7,7 @@ License: MIT
7
7
  * Cache is used for internal use only... but you can use if you need.
8
8
  * @return Some stuff you cache... usually used for dynamic imports from dpHelper.
9
9
  */
10
- interface dpCache {
10
+ interface _cache {
11
11
 
12
12
  /**
13
13
  * Create a cache, please use state instead!
@@ -20,5 +20,5 @@ interface dpCache {
20
20
  [key: string]: any
21
21
  }
22
22
 
23
- declare var cache: dpCache
24
- type cache = dpCache
23
+ declare var cache: _cache
24
+ type cache = _cache
package/types/jquery.d.ts CHANGED
@@ -3,9 +3,10 @@ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
3
  License: MIT
4
4
  */
5
5
 
6
+ declare module 'jquery'
7
+
6
8
  declare var $: any
7
9
  declare var jQuery: any
8
- declare module 'jquery'
9
10
 
10
11
  // ////////////////////////////////////////////////////////////////
11
12
 
@@ -30,17 +30,17 @@ interface openProp {
30
30
  buttons?: {
31
31
  confirm?: {
32
32
  text: string,
33
- cb?: func,
33
+ cb?: Function,
34
34
  },
35
35
  cancel?: {
36
36
  text: string,
37
- cb?: func,
37
+ cb?: Function,
38
38
  }
39
39
  },
40
40
  /** Give the size in width px (exmple "500px") */
41
- width: string | percentage,
41
+ width: number,
42
42
  /** Give the size in width px (exmple "300px") */
43
- height: string | percentage,
43
+ height: number,
44
44
  /** icon from html symbol table */
45
45
  icon?: string,
46
46
  /** you want the top/right maximize button */
@@ -58,23 +58,23 @@ interface openProp {
58
58
  /** Run it maximized */
59
59
  isMaximize?: boolean,
60
60
  /** You want to see rthe layerpro dock */
61
- dockable?: bolean,
61
+ dockable?: boolean,
62
62
  /** You want to memorize last position */
63
63
  store?: boolean,
64
64
  /** Add timer to your popup */
65
65
  timer?: number,
66
66
 
67
67
  /** Position in to screen */
68
- top?: number | percentage,
69
- left?: number | percentage,
70
- right?: number | percentage,
71
- bottom?: number | percentage,
68
+ top?: number | string,
69
+ left?: number | string,
70
+ right?: number | string,
71
+ bottom?: number | string,
72
72
 
73
73
  /** Max and Min sizes */
74
- minWidth?: number | percentage,
75
- maxWidth?: number | percentage,
76
- minHeight?: number | percentage,
77
- maxHeight?: number | percentage,
74
+ minWidth?: number | string,
75
+ maxWidth?: number | string,
76
+ minHeight?: number | string,
77
+ maxHeight?: number | string,
78
78
 
79
79
  /** Fading time */
80
80
  fadeIn?: number,
@@ -91,16 +91,16 @@ interface _layerpro {
91
91
  readonly alert: (txt: String) => any
92
92
  readonly prompt: (txt: String, function_: Function, event: Event) => any
93
93
  readonly message: (txt: String, function_: Function) => any
94
- readonly confirm: (txt: String, function_: Function, noFunction_: Func) => any
94
+ readonly confirm: (txt: String, function_: Function, noFunction_: Function) => any
95
95
  readonly purge: (document: Document) => any
96
- readonly credits: (txt: Any) => any
96
+ readonly credits: (txt: String) => any
97
97
 
98
98
  readonly popup: {
99
99
 
100
100
  [key: string]: any
101
101
 
102
102
  /** Open a popup with rules! */
103
- readonly open: (props: openProp) => Any,
103
+ readonly open: (props: openProp) => any,
104
104
 
105
105
  /** Put same id and you can close it from another func */
106
106
  readonly close: (id: String) => {}