layerpro 0.6.7 → 0.6.9

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.
@@ -1,11 +1,15 @@
1
1
  # Changelog
2
2
 
3
- ## v0.2.0 / 2024-01-06
3
+ ## v0.6.85 / 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) ()
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright (c) 2022 Dario Passariello - <dariopassariello@gmail.com>
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/.github/README.md CHANGED
@@ -61,26 +61,58 @@ type 'layerpro' in your console to have a look about all available tools that yo
61
61
  You can call these from everywhere without import (just one at index).
62
62
  If you type alert("hello, world!") you can see the result.
63
63
 
64
+ You can use these (also from console) as messages
65
+
66
+ ```javascript
67
+ alert("Hello world"); // Normal alert
68
+
69
+ prompt("Your Name"); // Ask for input
70
+
71
+ confirm(
72
+ "Hello world",
73
+ ()=>console.log("ciao"), // callback for YES / OK
74
+ ()=>console.log("bye") // callback for NO / CANCEL (you can use null if you don't want CB)
75
+ );
76
+
77
+ message(
78
+ "Hello world",
79
+ ()=>console.log("This happen after OK") // callback for YES / OK)
80
+ );
81
+ ```
82
+
83
+ ---
84
+
64
85
  Another use:
65
86
 
66
87
  ```javascript
67
88
  layerpro.popup.open({
68
- id: "test",
69
- name: "Say hello dear!",
70
- body: "Hello, World!",
71
- icon: "&#9998;",
72
- width: 350,
73
- height: 200,
74
- maximize: false,
75
- close: true,
76
- top: "50%",
77
- left: "50%",
78
- raised: false,
79
- movable: true,
80
- resizable: false,
89
+ id: String,
90
+ body: String | Component / Module, // test or component
91
+ source: "", // TODO
92
+ width: Number,
93
+ height: Number,
94
+ name: String, // s
95
+ icon: "&#9888;", // or from html symbols table
96
+ iconize: true | false,
97
+ maximize: true | false,
98
+ close: true | false,
99
+ isMaximize: true | false,
100
+ dockable: true | false,
101
+ raised: true | false,
102
+ movable: true | false,
103
+ resizable: true | false,
104
+ store: true | false,
105
+ top: Number | Percentance,
106
+ left: Number | Percentance,
107
+ right: Number | Percentance,
108
+ bottom: Number | Percentance,
109
+ minWidth: Number | Percentance,
110
+ minHeight: Number | Percentance,
111
+ fadeIn: 0, // Milliseconds
112
+ fadeOut: 0 // Milliseconds
81
113
  });
82
114
  ```
83
115
 
84
116
  ---
85
117
 
86
- copyright (c) 2019 - 2023 by Dario Passariello
118
+ copyright (c) 2019 - 2024 by Dario Passariello
package/CHANGELOG.md ADDED
@@ -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.
package/FUNDING.yml ADDED
@@ -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"]
package/HISTORY.md ADDED
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## v0.6.85 / 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.
package/LICENSE.txt ADDED
@@ -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.
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # I am LayerPro
2
+
3
+ ```
4
+ LayerPro by Dario Passariello
5
+ ```
6
+
7
+ ![TypeScript](https://img.shields.io/badge/TypeScript-006b98?logo=TypeScript&logoColor=white)
8
+ ![React-js](https://img.shields.io/badge/React-js-006b98?logo=React-js&logoColor=white)
9
+ ![dpHelper](https://img.shields.io/badge/dpHelper-npm-green?logo=dpHelper&logoColor=white)
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
+ You can use these (also from console) as messages
65
+
66
+ ```javascript
67
+ alert("Hello world"); // Normal alert
68
+
69
+ prompt("Your Name"); // Ask for input
70
+
71
+ confirm(
72
+ "Hello world",
73
+ ()=>console.log("ciao"), // callback for YES / OK
74
+ ()=>console.log("bye") // callback for NO / CANCEL (you can use null if you don't want CB)
75
+ );
76
+
77
+ message(
78
+ "Hello world",
79
+ ()=>console.log("This happen after OK") // callback for YES / OK)
80
+ );
81
+ ```
82
+
83
+ ---
84
+
85
+ Another use:
86
+
87
+ ```javascript
88
+ layerpro.popup.open({
89
+ id: String,
90
+ body: String | Component / Module, // test or component
91
+ source: "", // TODO
92
+ width: Number,
93
+ height: Number,
94
+ name: String, // s
95
+ icon: "&#9888;", // or from html symbols table
96
+ iconize: true | false,
97
+ maximize: true | false,
98
+ close: true | false,
99
+ isMaximize: true | false,
100
+ dockable: true | false,
101
+ raised: true | false,
102
+ movable: true | false,
103
+ resizable: true | false,
104
+ store: true | false,
105
+ top: Number | Percentance,
106
+ left: Number | Percentance,
107
+ right: Number | Percentance,
108
+ bottom: Number | Percentance,
109
+ minWidth: Number | Percentance,
110
+ minHeight: Number | Percentance,
111
+ fadeIn: 0, // Milliseconds
112
+ fadeOut: 0 // Milliseconds
113
+ });
114
+ ```
115
+
116
+ ---
117
+
118
+ copyright (c) 2019 - 2024 by Dario Passariello
package/SECURITY.md ADDED
@@ -0,0 +1,3 @@
1
+ # Security
2
+
3
+ Please email [@passariello](https://github.com/passariello) or see https://dario.passariello.ca/contact/ if you have a potential security vulnerability to report.