layerpro 0.6.85 → 0.7.0
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 +39 -2
- package/index.js.map +1 -0
- package/package.json +3 -8
- package/types/layerpro.d.ts +87 -53
- package/index.js.LICENSE.txt +0 -40
- /package/.github/{LICENSE.md → LICENSE.txt} +0 -0
- /package/{LICENSE.md → LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
3
|
"displayName": "layerpro",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.7.0",
|
|
5
|
+
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
6
6
|
"copyright": "Dario Passariello",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"relaseType": "gold",
|
|
@@ -84,9 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
"typings": "./types/*",
|
|
86
86
|
"globals": {
|
|
87
|
-
"layerpro": {}
|
|
88
|
-
"jQuery": {},
|
|
89
|
-
"$": {}
|
|
87
|
+
"layerpro": {}
|
|
90
88
|
},
|
|
91
89
|
"browserslist": {
|
|
92
90
|
"production": [
|
|
@@ -210,8 +208,5 @@
|
|
|
210
208
|
"webpack": "^5.93.0",
|
|
211
209
|
"webpack-cli": "^5.1.4",
|
|
212
210
|
"webpack-dev-server": "^5.0.4"
|
|
213
|
-
},
|
|
214
|
-
"dependencies": {
|
|
215
|
-
"moment": "2.30.1"
|
|
216
211
|
}
|
|
217
212
|
}
|
package/types/layerpro.d.ts
CHANGED
|
@@ -5,15 +5,77 @@ License: MIT
|
|
|
5
5
|
|
|
6
6
|
declare module 'layerpro' { }
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/** Generate custom alert using alert([text]) */
|
|
9
|
+
declare function alert(f1?)
|
|
10
|
+
|
|
11
|
+
/** Generate custom confirm using confirm([text],[callback for YES],[optional callback for NO]) */
|
|
9
12
|
declare function confirm(f1?, func1?, func2?)
|
|
13
|
+
|
|
14
|
+
/** Generate custom message using message([text],[callback]) and option callback */
|
|
10
15
|
declare function message(f1?, func1?)
|
|
16
|
+
|
|
17
|
+
/** Generate custom message using message([text],[callback]) and option callback */
|
|
11
18
|
declare function prompt(f1?, string?)
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
21
|
+
|
|
22
|
+
declare var pupop: Object
|
|
23
|
+
|
|
24
|
+
interface openProp {
|
|
25
|
+
/** Add identificator */
|
|
26
|
+
id: string,
|
|
27
|
+
/** Add name of popup (also as title) */
|
|
28
|
+
name: string,
|
|
29
|
+
/** Add text / html or a React Component (no useEffect or useState) */
|
|
30
|
+
body: any,
|
|
31
|
+
/** Give the size in width px (exmple "500px") */
|
|
32
|
+
width: string | percentage,
|
|
33
|
+
/** Give the size in width px (exmple "300px") */
|
|
34
|
+
height: string | percentage,
|
|
35
|
+
/** icon from html symbol table */
|
|
36
|
+
icon?: string,
|
|
37
|
+
/** you want the top/right maximize button */
|
|
38
|
+
maximize?: boolean,
|
|
39
|
+
/** you want the top/right parking button */
|
|
40
|
+
iconize?: boolean,
|
|
41
|
+
/** you want the top/right close button */
|
|
42
|
+
close?: any,
|
|
43
|
+
/** you want at top of everything */
|
|
44
|
+
raised?: boolean,
|
|
45
|
+
/** move it? */
|
|
46
|
+
movable?: boolean,
|
|
47
|
+
/** resizable it? */
|
|
48
|
+
resizable?: boolean,
|
|
49
|
+
/** Run it maximized */
|
|
50
|
+
isMaximize?: boolean,
|
|
51
|
+
/** You want to see rthe layerpro dock */
|
|
52
|
+
dockable?: bolean,
|
|
53
|
+
/** You want to memorize last position */
|
|
54
|
+
store?: boolean,
|
|
55
|
+
|
|
56
|
+
/** Position in to screen */
|
|
57
|
+
top?: number | percentage,
|
|
58
|
+
left?: number | percentage,
|
|
59
|
+
right?: number | percentage,
|
|
60
|
+
bottom?: number | percentage,
|
|
61
|
+
|
|
62
|
+
/** Max and Min sizes */
|
|
63
|
+
minWidth?: number | percentage,
|
|
64
|
+
maxWidth?: number | percentage,
|
|
65
|
+
minHeight?: number | percentage,
|
|
66
|
+
maxHeight?: number | percentage,
|
|
67
|
+
|
|
68
|
+
/** Fading time */
|
|
69
|
+
fadeIn?: number,
|
|
70
|
+
fadeOut?: number,
|
|
14
71
|
|
|
15
|
-
|
|
16
|
-
|
|
72
|
+
// TODO
|
|
73
|
+
source?: "",
|
|
74
|
+
className?: string,
|
|
75
|
+
style?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface dpLayerPro {
|
|
17
79
|
|
|
18
80
|
readonly alert: (txt: String) => any
|
|
19
81
|
readonly prompt: (txt: String, function_: Function, event: Event) => any
|
|
@@ -21,59 +83,31 @@ interface dpLayerPro {
|
|
|
21
83
|
readonly confirm: (txt: String, function_: Function, noFunction_: Func) => any
|
|
22
84
|
|
|
23
85
|
readonly popup: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
readonly dockable: (value: any) => {}
|
|
32
|
-
readonly store: (value: any) => {}
|
|
33
|
-
readonly index: (value: any) => {}
|
|
34
|
-
readonly zIndex: (value: any) => {}
|
|
35
|
-
readonly open: (prop: {
|
|
36
|
-
id: string
|
|
37
|
-
name: string
|
|
38
|
-
body: any
|
|
39
|
-
width: string | percentage
|
|
40
|
-
height: string | percentage
|
|
41
|
-
top: string | percentage
|
|
42
|
-
left: string | percentage
|
|
43
|
-
|
|
44
|
-
source?: ""
|
|
45
|
-
icon?: string
|
|
46
|
-
maximize?: boolean
|
|
47
|
-
iconize: boolean
|
|
48
|
-
close?: any
|
|
49
|
-
raised?: boolean
|
|
50
|
-
movable?: boolean
|
|
51
|
-
resizable?: boolean
|
|
52
|
-
isMaximize?: boolean
|
|
53
|
-
dockable?: bolean
|
|
54
|
-
store?: boolean
|
|
55
|
-
fadeIn?: number
|
|
56
|
-
fadeOut?: number
|
|
57
|
-
|
|
58
|
-
top?: number | percentage
|
|
59
|
-
left?: number | percentage
|
|
60
|
-
right?: number | percentage
|
|
61
|
-
bottom?: number | percentage
|
|
62
|
-
minWidth?: number | percentage
|
|
63
|
-
maxWidth?: number | percentage
|
|
64
|
-
minHeight?: number | percentage
|
|
65
|
-
maxHeight?: number | percentage
|
|
66
|
-
|
|
67
|
-
// TODO
|
|
68
|
-
className?: string
|
|
69
|
-
style?: string
|
|
70
|
-
}) => {}
|
|
86
|
+
[key: string]: any
|
|
87
|
+
|
|
88
|
+
/** Open a popup with rules! */
|
|
89
|
+
readonly open: (props: openProp) => Any,
|
|
90
|
+
|
|
91
|
+
/** Put same id and you can close it from another func */
|
|
92
|
+
readonly close: (id: String) => {}
|
|
71
93
|
|
|
94
|
+
// readonly credits: (name: string) => any
|
|
95
|
+
// readonly purge: (name: Any) => any
|
|
96
|
+
// readonly center: (value: any) => {}
|
|
97
|
+
// readonly maximize: (value: any) => {}
|
|
98
|
+
// readonly iconize: (value: any) => {}
|
|
99
|
+
// readonly raised: (value: any) => {}
|
|
100
|
+
// readonly movable: (value: any) => {}
|
|
101
|
+
// readonly resizable: (value: any) => {}
|
|
102
|
+
// readonly dockable: (value: any) => {}
|
|
103
|
+
// readonly store: (value: any) => {}
|
|
104
|
+
// readonly index: (value: any) => {}
|
|
105
|
+
// readonly zIndex: (value: any) => {}
|
|
72
106
|
}
|
|
73
107
|
}
|
|
74
108
|
|
|
75
109
|
declare var layerpro: dpLayerPro
|
|
76
110
|
|
|
77
|
-
layerpro = {}
|
|
78
|
-
|
|
79
111
|
type layerpro = dpLayerPro
|
|
112
|
+
|
|
113
|
+
layerpro = {}
|
package/index.js.LICENSE.txt
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* jQuery JavaScript Library v3.7.1
|
|
3
|
-
* https://jquery.com/
|
|
4
|
-
*
|
|
5
|
-
* Copyright OpenJS Foundation and other contributors
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
* https://jquery.org/license
|
|
8
|
-
*
|
|
9
|
-
* Date: 2023-08-28T13:37Z
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @license React
|
|
14
|
-
* react-dom.production.min.js
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
-
*
|
|
18
|
-
* This source code is licensed under the MIT license found in the
|
|
19
|
-
* LICENSE file in the root directory of this source tree.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @license React
|
|
24
|
-
* react.production.min.js
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
27
|
-
*
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @license React
|
|
34
|
-
* scheduler.production.min.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
File without changes
|
|
File without changes
|