layerpro 0.6.0 → 0.6.8
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/.github/CHANGELOG.md +9 -0
- package/.github/FUNDING.yml +12 -0
- package/.github/HISTORY.md +30 -0
- package/.github/LICENSE.md +21 -0
- package/.github/README.md +97 -0
- package/.github/SECURITY.md +3 -0
- package/HISTORY.md +5 -1
- package/LICENSE.md +1 -1
- package/README.md +23 -12
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.js.LICENSE.txt +11 -0
- package/package.json +92 -72
- package/types/cache.d.ts +9 -0
- package/types/layerpro.d.ts +64 -9
- package/index.html +0 -1
- package/types/vscode.d.ts +0 -14724
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
New minor (feature) releases of this app/software are released every six months and
|
|
4
|
+
patch (bugfix) releases are released every month. More information on the
|
|
5
|
+
release cycle: see package.json
|
|
6
|
+
|
|
7
|
+
## Previous
|
|
8
|
+
|
|
9
|
+
Please see the git history for the details of previous versions.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: passariello
|
|
4
|
+
patreon: passariello
|
|
5
|
+
open_collective: # Replace with a single Open Collective username
|
|
6
|
+
ko_fi: passariello
|
|
7
|
+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
+
liberapay: passariello
|
|
10
|
+
issuehunt: passariello
|
|
11
|
+
otechie: # Replace with a single Otechie username
|
|
12
|
+
custom: ["https://dario.passariello.ca", "https://www.paypal.me/dariopassariello", "https://www.indiegogo.com/individuals/28513718"]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.6.0 / 2024-08-06
|
|
4
|
+
|
|
5
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
6
|
+
|
|
7
|
+
## Previous
|
|
8
|
+
|
|
9
|
+
## v0.2.0 / 2024-01-06
|
|
10
|
+
|
|
11
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
12
|
+
|
|
13
|
+
## v0.1.9 / 2023-12-31
|
|
14
|
+
|
|
15
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
16
|
+
|
|
17
|
+
## v0.1.8 / 2023-11-08
|
|
18
|
+
|
|
19
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
20
|
+
|
|
21
|
+
## v0.1.7 / 2023-10-18
|
|
22
|
+
|
|
23
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
24
|
+
|
|
25
|
+
## v0.1.6 / 2023-10-09
|
|
26
|
+
|
|
27
|
+
- Fix some minor bugs [Dario Passariello](https://github.com/passariello) ()
|
|
28
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
29
|
+
|
|
30
|
+
Please see the git history for the details of previous versions.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Dario Passariello - <dariopassariello@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# I am LayerPro
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
LayerPro by Dario Passariello
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## About
|
|
12
|
+
|
|
13
|
+
LayerPro give you a complete new way to customize web popups on your application. LP permit you also to have custom alert, promps, confirm and message and override the ugly browser popup.
|
|
14
|
+
|
|
15
|
+
Please, read the [LICENSE](/LICENSE.md) agreement before to implementing in your application.
|
|
16
|
+
|
|
17
|
+
## Live demo
|
|
18
|
+
|
|
19
|
+
[https://a51.dev/tests/](https://a51.dev/tests/)
|
|
20
|
+
|
|
21
|
+
You can see an HTML version where dpHelper and LayerPro works.
|
|
22
|
+
You can use with html, react, vue or any other frontend / library.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Install for react + webpack projects
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
npm i layerpro --save-dev
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
or update:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
npm i layerpro@latest --save-dev
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
in the index (and only there):
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
import "layerpro";
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
or
|
|
45
|
+
|
|
46
|
+
```javascript
|
|
47
|
+
require("layerpro");
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Install for ejs or other type of projects (like html)
|
|
51
|
+
|
|
52
|
+
note: you don't need to use npm install in this case or you get an error
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<script src="https://unpkg.com/layerpro@latest/index.js"></script>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## How to use it
|
|
59
|
+
|
|
60
|
+
type 'layerpro' in your console to have a look about all available tools that you can use globaly!
|
|
61
|
+
You can call these from everywhere without import (just one at index).
|
|
62
|
+
If you type alert("hello, world!") you can see the result.
|
|
63
|
+
|
|
64
|
+
Another use:
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
layerpro.popup.open({
|
|
68
|
+
id: String,
|
|
69
|
+
body: String | Component, // test or component
|
|
70
|
+
source: "",
|
|
71
|
+
width: Number,
|
|
72
|
+
height: Number,
|
|
73
|
+
name: String, // s
|
|
74
|
+
icon: "⚠", // or from html table
|
|
75
|
+
iconize: true | false,
|
|
76
|
+
maximize: true | false,
|
|
77
|
+
close: true | false,
|
|
78
|
+
isMaximize: true | false,
|
|
79
|
+
dockable: true | false,
|
|
80
|
+
raised: true | false,
|
|
81
|
+
movable: true,
|
|
82
|
+
resizable: false,
|
|
83
|
+
store: false,
|
|
84
|
+
top: Number | Percentance,
|
|
85
|
+
left: Number | Percentance,
|
|
86
|
+
right: Number | Percentance,
|
|
87
|
+
bottom: Number | Percentance,
|
|
88
|
+
minWidth: Number | Percentance,
|
|
89
|
+
minHeight: Number | Percentance,
|
|
90
|
+
fadeIn: 0, // Milliseconds
|
|
91
|
+
fadeOut: 0 // Milliseconds
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
copyright (c) 2019 - 2024 by Dario Passariello
|
package/HISTORY.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v0.
|
|
3
|
+
## v0.6.0 / 2024-08-06
|
|
4
4
|
|
|
5
5
|
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
6
6
|
|
|
7
7
|
## Previous
|
|
8
8
|
|
|
9
|
+
## v0.2.0 / 2024-01-06
|
|
10
|
+
|
|
11
|
+
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
12
|
+
|
|
9
13
|
## v0.1.9 / 2023-12-31
|
|
10
14
|
|
|
11
15
|
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2019 Dario Passariello - <dariopassariello@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -65,22 +65,33 @@ Another use:
|
|
|
65
65
|
|
|
66
66
|
```javascript
|
|
67
67
|
layerpro.popup.open({
|
|
68
|
-
id:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
id: String,
|
|
69
|
+
body: String | Component, // test or component
|
|
70
|
+
source: "",
|
|
71
|
+
width: Number,
|
|
72
|
+
height: Number,
|
|
73
|
+
name: String, // s
|
|
74
|
+
icon: "⚠", // or from html table
|
|
75
|
+
iconize: true | false,
|
|
76
|
+
maximize: true | false,
|
|
77
|
+
close: true | false,
|
|
78
|
+
isMaximize: true | false,
|
|
79
|
+
dockable: true | false,
|
|
80
|
+
raised: true | false,
|
|
79
81
|
movable: true,
|
|
80
82
|
resizable: false,
|
|
83
|
+
store: false,
|
|
84
|
+
top: Number | Percentance,
|
|
85
|
+
left: Number | Percentance,
|
|
86
|
+
right: Number | Percentance,
|
|
87
|
+
bottom: Number | Percentance,
|
|
88
|
+
minWidth: Number | Percentance,
|
|
89
|
+
minHeight: Number | Percentance,
|
|
90
|
+
fadeIn: 0, // Milliseconds
|
|
91
|
+
fadeOut: 0 // Milliseconds
|
|
81
92
|
});
|
|
82
93
|
```
|
|
83
94
|
|
|
84
95
|
---
|
|
85
96
|
|
|
86
|
-
copyright (c) 2019 -
|
|
97
|
+
copyright (c) 2019 - 2024 by Dario Passariello
|