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.
- package/.github/HISTORY.md +1 -1
- package/.github/README.md +27 -6
- package/HISTORY.md +1 -1
- package/README.md +27 -6
- package/index.js +39 -2
- package/index.js.map +1 -0
- package/package.json +3 -8
- package/types/layerpro.d.ts +17 -23
- package/index.js.LICENSE.txt +0 -40
- /package/.github/{LICENSE.md → LICENSE.txt} +0 -0
- /package/{LICENSE.md → LICENSE.txt} +0 -0
package/.github/HISTORY.md
CHANGED
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
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,
|