@daracl/dialog 0.0.2 → 0.0.4
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/dist/daracl.dialog.js +21 -26
- package/dist/daracl.dialog.js.map +1 -1
- package/dist/daracl.dialog.min.js +2 -2
- package/dist/daracl.dialog.min.js.LICENSE.txt +1 -1
- package/dist/daracl.dialog.min.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +6 -1
- package/dist/index.html +2 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +2 -2
- package/package.json +6 -2
- package/src/index.js +5 -1
- package/dist/dara.dialog.css +0 -290
- package/dist/dara.dialog.css.map +0 -1
- package/dist/dara.dialog.js +0 -5787
- package/dist/dara.dialog.js.map +0 -1
- package/dist/dara.dialog.min.css +0 -1
- package/dist/dara.dialog.min.css.map +0 -1
- package/dist/dara.dialog.min.js +0 -7
- package/dist/dara.dialog.min.js.LICENSE.txt +0 -5
- package/dist/dara.dialog.min.js.map +0 -1
- package/src/index.html +0 -101
package/src/index.html
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<meta http-equiv="X-UA-compatible" content="IE=edge">
|
|
7
|
-
<title>Dialog Notification - Darainfo</title>
|
|
8
|
-
<link rel="stylesheet" href="../dist/daracl.dialog.min.css">
|
|
9
|
-
|
|
10
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
11
|
-
|
|
12
|
-
</head>
|
|
13
|
-
|
|
14
|
-
<body onload="dialogView()">
|
|
15
|
-
|
|
16
|
-
<div style="padding-top:80px;">
|
|
17
|
-
<div class="dialog-button">
|
|
18
|
-
<button type="button" onclick="dialogEvent('show')">Show</button>
|
|
19
|
-
<button type="button" onclick="dialogEvent('max')">Max</button>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div id="content"></div>
|
|
24
|
-
</body>
|
|
25
|
-
|
|
26
|
-
</html>
|
|
27
|
-
|
|
28
|
-
<style>
|
|
29
|
-
.dialog-button button {
|
|
30
|
-
border: none;
|
|
31
|
-
outline: none;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
margin: 0 5px;
|
|
34
|
-
font-size: 1.2rem;
|
|
35
|
-
padding: 10px 20px;
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
var htmlStr = [];
|
|
42
|
-
for (var i = 0; i < 1000; i++) {
|
|
43
|
-
htmlStr.push(' <h2>dialog message</h2>');
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
//document.getElementById("content").innerHTML = htmlStr.join('');
|
|
47
|
-
var dialogObj;
|
|
48
|
-
function dialogView() {
|
|
49
|
-
dialogObj = new Dialog({
|
|
50
|
-
title: 'dialog', width: 500, height: 'auto', icon: "info", isModal: true, resizable: true, autoOpen: false, template: '<a href="https://varsql.com" target="_blank">링크 이동</a>', buttons: [
|
|
51
|
-
{
|
|
52
|
-
label: 'ok', styleClass: "info", callback: function (e) {
|
|
53
|
-
alert('ok')
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
, {
|
|
57
|
-
label: 'Cancel', callback: function (e) {
|
|
58
|
-
dialogObj.hide();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
], afterOpen: function () {
|
|
62
|
-
console.log('after open')
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
return;
|
|
67
|
-
|
|
68
|
-
new Dialog({
|
|
69
|
-
title: 'dialog2222', width: 200, height: '150px', isModal1: true, template: 'https://www.naver.com', buttons: [
|
|
70
|
-
{
|
|
71
|
-
label: 'close', styleClass: "info", callback: function (e) {
|
|
72
|
-
alert('11')
|
|
73
|
-
console.log(e)
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
, {
|
|
77
|
-
label: 'Cancel', callback: function (e) {
|
|
78
|
-
alert('22')
|
|
79
|
-
console.log(e)
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function dialogEvent(mode) {
|
|
87
|
-
switch (mode) {
|
|
88
|
-
case 'show':
|
|
89
|
-
dialogObj.show()
|
|
90
|
-
break;
|
|
91
|
-
case 'max':
|
|
92
|
-
dialogObj.maximise()
|
|
93
|
-
break;
|
|
94
|
-
|
|
95
|
-
default:
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</script>
|