layerpro 0.6.8 → 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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## v0.6.0 / 2024-08-06
3
+ ## v0.6.85 / 2024-08-06
4
4
 
5
5
  - NPM update [Dario Passariello](https://github.com/passariello) ()
6
6
 
package/.github/README.md CHANGED
@@ -61,26 +61,47 @@ 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
89
  id: String,
69
- body: String | Component, // test or component
70
- source: "",
90
+ body: String | Component / Module, // test or component
91
+ source: "", // TODO
71
92
  width: Number,
72
93
  height: Number,
73
94
  name: String, // s
74
- icon: "⚠", // or from html table
95
+ icon: "⚠", // or from html symbols table
75
96
  iconize: true | false,
76
97
  maximize: true | false,
77
98
  close: true | false,
78
99
  isMaximize: true | false,
79
100
  dockable: true | false,
80
101
  raised: true | false,
81
- movable: true,
82
- resizable: false,
83
- store: false,
102
+ movable: true | false,
103
+ resizable: true | false,
104
+ store: true | false,
84
105
  top: Number | Percentance,
85
106
  left: Number | Percentance,
86
107
  right: Number | Percentance,
package/HISTORY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## v0.6.0 / 2024-08-06
3
+ ## v0.6.85 / 2024-08-06
4
4
 
5
5
  - NPM update [Dario Passariello](https://github.com/passariello) ()
6
6
 
package/README.md CHANGED
@@ -61,26 +61,47 @@ 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
89
  id: String,
69
- body: String | Component, // test or component
70
- source: "",
90
+ body: String | Component / Module, // test or component
91
+ source: "", // TODO
71
92
  width: Number,
72
93
  height: Number,
73
94
  name: String, // s
74
- icon: "⚠", // or from html table
95
+ icon: "⚠", // or from html symbols table
75
96
  iconize: true | false,
76
97
  maximize: true | false,
77
98
  close: true | false,
78
99
  isMaximize: true | false,
79
100
  dockable: true | false,
80
101
  raised: true | false,
81
- movable: true,
82
- resizable: false,
83
- store: false,
102
+ movable: true | false,
103
+ resizable: true | false,
104
+ store: true | false,
84
105
  top: Number | Percentance,
85
106
  left: Number | Percentance,
86
107
  right: Number | Percentance,