layerpro 0.9.74 → 0.9.80
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/README.md +1 -1
- package/docs/index.md +284 -0
- package/index.d.ts +6 -3
- package/index.js +19 -19
- package/package.json +7 -7
- package/types/jquery.d.ts +8 -5
- package/types/layerpro.d.ts +75 -72
- package/examples/empty +0 -0
- package/examples/index.tsx +0 -62
- package/examples/layerpro.scss +0 -108
- package/general/empty +0 -0
- /package/{documents/changelog.md → CHANGELOG.md} +0 -0
- /package/{documents/code_of_conduct.md → CODE_OF_CONDUCT.md} +0 -0
- /package/{documents/contributing.md → CONTRIBUTING.md} +0 -0
- /package/{documents/history.md → HISTORY.md} +0 -0
- /package/{documents/license.md → LICENSE.md} +0 -0
- /package/{documents/security.md → SECURITY.md} +0 -0
- /package/{architecture → documents}/empty +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.80",
|
|
4
4
|
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
5
5
|
"copyright": "Dario Passariello",
|
|
6
6
|
"license": "MIT",
|
|
@@ -155,21 +155,21 @@
|
|
|
155
155
|
"node": ">=18"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@types/webpack-env": "1.18.
|
|
158
|
+
"@types/webpack-env": "1.18.8",
|
|
159
159
|
"copy-webpack-plugin": "^12.0.2",
|
|
160
160
|
"css-loader": "7.1.2",
|
|
161
161
|
"file-loader": "6.2.0",
|
|
162
162
|
"jquery": "3.7.1",
|
|
163
163
|
"react": "19.0.0",
|
|
164
164
|
"react-dom": "19.0.0",
|
|
165
|
-
"sass": "^1.
|
|
166
|
-
"sass-loader": "^16.0.
|
|
165
|
+
"sass": "^1.85.0",
|
|
166
|
+
"sass-loader": "^16.0.5",
|
|
167
167
|
"style-loader": "^4.0.0",
|
|
168
168
|
"terser-webpack-plugin": "^5.3.11",
|
|
169
|
-
"ts-loader": "^9.5.
|
|
169
|
+
"ts-loader": "^9.5.2",
|
|
170
170
|
"ts-node": "10.9.2",
|
|
171
|
-
"typescript": "5.7.
|
|
172
|
-
"webpack": "^5.
|
|
171
|
+
"typescript": "5.7.3",
|
|
172
|
+
"webpack": "^5.98.0",
|
|
173
173
|
"webpack-cli": "6.0.1",
|
|
174
174
|
"webpack-dev-server": "^5.2.0"
|
|
175
175
|
}
|
package/types/jquery.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*!
|
|
2
|
+
layerpro
|
|
3
|
+
Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
+
Licensed under MIT License, see
|
|
5
|
+
https://dario.passariello.ca
|
|
4
6
|
*/
|
|
5
7
|
|
|
8
|
+
|
|
6
9
|
declare module 'jquery'
|
|
7
10
|
|
|
8
11
|
declare var $: any
|
|
@@ -11,8 +14,8 @@ declare var jQuery: any
|
|
|
11
14
|
// ////////////////////////////////////////////////////////////////
|
|
12
15
|
|
|
13
16
|
interface window {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
$: any
|
|
18
|
+
jQuery: any
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
type $ = {}
|
package/types/layerpro.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*!
|
|
2
|
+
layerpro
|
|
3
|
+
Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
|
|
4
|
+
Licensed under MIT License, see
|
|
5
|
+
https://dario.passariello.ca
|
|
4
6
|
*/
|
|
5
7
|
|
|
8
|
+
|
|
6
9
|
/** Generate custom alert using alert([text]) */
|
|
7
10
|
declare function alert(f1?: string): any
|
|
8
11
|
|
|
@@ -19,54 +22,54 @@ declare function prompt(f1?: string, func1?: Function): any
|
|
|
19
22
|
|
|
20
23
|
interface GenLayerProps {
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
25
|
+
id: string
|
|
26
|
+
body?: any
|
|
27
|
+
name?: string
|
|
28
|
+
style?: any
|
|
29
|
+
class?: string
|
|
30
|
+
icon?: string
|
|
31
|
+
|
|
32
|
+
buttons?: {
|
|
33
|
+
confirm?: {
|
|
34
|
+
text: string
|
|
35
|
+
cb?: () => void
|
|
36
|
+
}
|
|
37
|
+
cancel?: {
|
|
38
|
+
text: string
|
|
39
|
+
cb?: () => void
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
top?: number | string
|
|
45
|
+
left?: number | string
|
|
46
|
+
right?: number | string
|
|
47
|
+
bottom?: number | string
|
|
48
|
+
|
|
49
|
+
width?: number | string
|
|
50
|
+
height?: number | string
|
|
51
|
+
|
|
52
|
+
minWidth?: number
|
|
53
|
+
minHeight?: number
|
|
54
|
+
maxWidth?: number
|
|
55
|
+
maxHeight?: number
|
|
56
|
+
|
|
57
|
+
fadeIn?: number
|
|
58
|
+
fadeOut?: number
|
|
59
|
+
timer?: number
|
|
60
|
+
|
|
61
|
+
maximize?: boolean
|
|
62
|
+
isMaximize?: boolean
|
|
63
|
+
dockable?: boolean
|
|
64
|
+
movable?: boolean
|
|
65
|
+
|
|
66
|
+
resizable?: boolean
|
|
67
|
+
close?: boolean
|
|
68
|
+
raised?: boolean
|
|
69
|
+
iconize?: boolean
|
|
70
|
+
|
|
71
|
+
source?: string
|
|
72
|
+
store?: any
|
|
70
73
|
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -75,27 +78,27 @@ interface GenLayerProps {
|
|
|
75
78
|
*/
|
|
76
79
|
interface _layerpro {
|
|
77
80
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
81
|
+
readonly alert: (txt: string) => void
|
|
82
|
+
readonly prompt: (txt: string, callback: (input: string) => void, event: Event) => void
|
|
83
|
+
readonly message: (txt: string, callback: () => void) => void
|
|
84
|
+
readonly confirm: (txt: string, yesCallback: () => void, noCallback: () => void) => void
|
|
85
|
+
readonly purge: (document: Document) => void
|
|
86
|
+
readonly credits: (txt: string) => void
|
|
87
|
+
|
|
88
|
+
readonly popup: {
|
|
89
|
+
readonly open: (props: GenLayerProps) => GenLayerProps
|
|
90
|
+
readonly center: (props: any) => void
|
|
91
|
+
readonly maximize: (props: any) => void
|
|
92
|
+
readonly iconize: (props: any) => void
|
|
93
|
+
readonly raised: (props: any) => void
|
|
94
|
+
readonly movable: (props: any) => void
|
|
95
|
+
readonly resizable: (props: any) => void
|
|
96
|
+
readonly dockable: (props: any) => void
|
|
97
|
+
readonly store: (props: any) => void
|
|
98
|
+
readonly index: (props: any) => void
|
|
99
|
+
readonly zIndex: (props: any) => number
|
|
100
|
+
readonly close: (props: any) => any
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
declare var layerpro: _layerpro
|
package/examples/empty
DELETED
|
File without changes
|
package/examples/index.tsx
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// Example using React Component
|
|
2
|
-
|
|
3
|
-
import React from "react"
|
|
4
|
-
import 'layerpro'
|
|
5
|
-
|
|
6
|
-
export default () => {
|
|
7
|
-
|
|
8
|
-
const TestApp = () => {
|
|
9
|
-
return (
|
|
10
|
-
<div>
|
|
11
|
-
Hello
|
|
12
|
-
<label>
|
|
13
|
-
Alert: <input type="button" value="Alert" onClick={() => alert("Hello")} />
|
|
14
|
-
</label>
|
|
15
|
-
</div>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
layerpro.popup.open(
|
|
20
|
-
{
|
|
21
|
-
id: 'examplePopup',
|
|
22
|
-
body: TestApp(),
|
|
23
|
-
buttons: {
|
|
24
|
-
confirm: {
|
|
25
|
-
text: "accept",
|
|
26
|
-
cb: () => {
|
|
27
|
-
message("confirmed")
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
cancel: {
|
|
31
|
-
text: "cancel",
|
|
32
|
-
cb: () => {
|
|
33
|
-
alert("cancelled")
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
width: 350,
|
|
38
|
-
height: 300,
|
|
39
|
-
name: 'example',
|
|
40
|
-
icon: '⚠',
|
|
41
|
-
iconize: true,
|
|
42
|
-
maximize: true,
|
|
43
|
-
close: true,
|
|
44
|
-
isMaximize: false,
|
|
45
|
-
dockable: false,
|
|
46
|
-
raised: true,
|
|
47
|
-
movable: true,
|
|
48
|
-
resizable: false,
|
|
49
|
-
store: false,
|
|
50
|
-
top: '10%',
|
|
51
|
-
left: '10%',
|
|
52
|
-
right: 'auto',
|
|
53
|
-
bottom: 'auto',
|
|
54
|
-
minWidth: 200,
|
|
55
|
-
minHeight: 150,
|
|
56
|
-
fadeIn: 500,
|
|
57
|
-
fadeOut: 500,
|
|
58
|
-
timer: 0
|
|
59
|
-
}
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
}
|
package/examples/layerpro.scss
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// created by Dario Passariello
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--lp-000: hsl(0, 0%, 5%);
|
|
5
|
-
--lp-001: hsl(0, 0%, 100%);
|
|
6
|
-
--lp-011: rgb(80, 170, 250);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//////////////////////////////////////
|
|
10
|
-
|
|
11
|
-
@mixin popup-hover-styles {
|
|
12
|
-
background: var(--lp-011) !important;
|
|
13
|
-
color: var(--lp-001) !important;
|
|
14
|
-
box-shadow: none !important;
|
|
15
|
-
|
|
16
|
-
&:before {
|
|
17
|
-
filter: invert(1) !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:after {
|
|
21
|
-
background: var(--lp-011) !important;
|
|
22
|
-
color: var(--lp-000) !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#popup {
|
|
27
|
-
z-index: 10000 !important;
|
|
28
|
-
|
|
29
|
-
* {
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
box-shadow: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[class^=popup_internal_] {
|
|
35
|
-
top: 36px;
|
|
36
|
-
background: var(--lp-001);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[class^=popup_body_] {
|
|
40
|
-
color: var(--lp-000);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
[class^=popup_bar_] {
|
|
44
|
-
border-bottom: 0;
|
|
45
|
-
box-shadow: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
[class^=popup_] input,
|
|
49
|
-
[class^=popup_] button {
|
|
50
|
-
border: 0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
[class^=popup_message_] ul {
|
|
54
|
-
padding: 0 10px !important;
|
|
55
|
-
margin: 0 !important;
|
|
56
|
-
text-align: left;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[class^=button_] {
|
|
60
|
-
&:hover {
|
|
61
|
-
@include popup-hover-styles;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.iconize:before,
|
|
66
|
-
.maximize:before,
|
|
67
|
-
.close:before {
|
|
68
|
-
filter: invert(1);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.buttons {
|
|
72
|
-
button {
|
|
73
|
-
background: var(--lp-011) !important;
|
|
74
|
-
border: none;
|
|
75
|
-
margin: 0;
|
|
76
|
-
|
|
77
|
-
&:hover {
|
|
78
|
-
@include popup-hover-styles;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.popup_alert,
|
|
84
|
-
.popup_message,
|
|
85
|
-
.popup_prompt,
|
|
86
|
-
.popup_confirm {
|
|
87
|
-
word-break: normal !important;
|
|
88
|
-
|
|
89
|
-
input[type=text] {
|
|
90
|
-
position: relative;
|
|
91
|
-
width: 90%;
|
|
92
|
-
height: 40px;
|
|
93
|
-
padding: 15px;
|
|
94
|
-
margin-top: 10px;
|
|
95
|
-
border: 2px solid rgba(0, 0, 0, 0.3);
|
|
96
|
-
background: var(--lp-001) !important;
|
|
97
|
-
color: var(--lp-000) !important;
|
|
98
|
-
text-align: center;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.zHigh {
|
|
103
|
-
border-top-color: var(--lp-011) !important;
|
|
104
|
-
box-shadow: 0 15px 20px rgba(0, 0, 0, 0.5) !important;
|
|
105
|
-
outline: 1px solid rgba(0, 0, 0, 0.1) !important;
|
|
106
|
-
border: 0;
|
|
107
|
-
}
|
|
108
|
-
}
|
package/general/empty
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|