gnui 1.2.12 → 1.2.14
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/dist/js/gnui.esm.js +40432 -0
- package/dist/js/gnui.js +40440 -0
- package/dist/js/gnui.min.js +23 -0
- package/dist/styles/default.css +1 -0
- package/dist/styles/gpi.css +1 -0
- package/dist/styles/green24.css +1 -0
- package/dist/styles/insights.css +1 -0
- package/dist/styles/nac.css +1 -0
- package/dist/styles/ztnac.css +1 -0
- package/package.json +1 -1
- package/styleguide/assets/components.js +1757 -0
- package/styleguide/assets/favicon.ico +0 -0
- package/styleguide/assets/guide.js +47 -0
- package/styleguide/assets/image.png +0 -0
- package/styleguide/assets/js/gnui.js +40440 -0
- package/styleguide/assets/js/gnui.min.js +23 -0
- package/styleguide/assets/okadia.css +121 -0
- package/styleguide/assets/styles/default.css +1 -0
- package/styleguide/assets/styles/gpi.css +1 -0
- package/styleguide/assets/styles/green24.css +1 -0
- package/styleguide/assets/styles/insights.css +1 -0
- package/styleguide/assets/styles/nac.css +1 -0
- package/styleguide/assets/styles/ztnac.css +1 -0
- package/styleguide/assets/theme.css +596 -0
- package/styleguide/category/COLOR/index.html +157 -0
- package/styleguide/category/COMPONENT/Alert(js)/index.html +419 -0
- package/styleguide/category/COMPONENT/Bignumber/index.html +270 -0
- package/styleguide/category/COMPONENT/Breadcrumb/index.html +325 -0
- package/styleguide/category/COMPONENT/Calendar(js)/index.html +243 -0
- package/styleguide/category/COMPONENT/Card/index.html +185 -0
- package/styleguide/category/COMPONENT/Chart(js)/index.html +556 -0
- package/styleguide/category/COMPONENT/Datagrid(js)/index.html +685 -0
- package/styleguide/category/COMPONENT/Datalist(js)/index.html +472 -0
- package/styleguide/category/COMPONENT/Growl(js)/index.html +352 -0
- package/styleguide/category/COMPONENT/JsonView(js)/index.html +1135 -0
- package/styleguide/category/COMPONENT/Loader(js)/index.html +296 -0
- package/styleguide/category/COMPONENT/MenuButton(js)/index.html +282 -0
- package/styleguide/category/COMPONENT/Message(js)/index.html +516 -0
- package/styleguide/category/COMPONENT/Modal(js)/index.html +445 -0
- package/styleguide/category/COMPONENT/Pagination(js)/index.html +446 -0
- package/styleguide/category/COMPONENT/Panel/index.html +327 -0
- package/styleguide/category/COMPONENT/Progressbar(js)/index.html +314 -0
- package/styleguide/category/COMPONENT/Tab(js)/index.html +474 -0
- package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +261 -0
- package/styleguide/category/COMPONENT/Tooltip(js)/index.html +413 -0
- package/styleguide/category/COMPONENT/Tree(js)/index.html +405 -0
- package/styleguide/category/CONTROLS/Button(js)/index.html +466 -0
- package/styleguide/category/CONTROLS/Checkbox/index.html +195 -0
- package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +286 -0
- package/styleguide/category/CONTROLS/Datepicker(js)/index.html +324 -0
- package/styleguide/category/CONTROLS/Dropdown(js)/index.html +1113 -0
- package/styleguide/category/CONTROLS/File/index.html +313 -0
- package/styleguide/category/CONTROLS/Form/Control/index.html +228 -0
- package/styleguide/category/CONTROLS/Form/Field/index.html +255 -0
- package/styleguide/category/CONTROLS/Form/Plain/index.html +194 -0
- package/styleguide/category/CONTROLS/Input/index.html +331 -0
- package/styleguide/category/CONTROLS/MultiText(js)/index.html +274 -0
- package/styleguide/category/CONTROLS/Picklist(js)/index.html +739 -0
- package/styleguide/category/CONTROLS/Radio/index.html +198 -0
- package/styleguide/category/CONTROLS/Select/index.html +457 -0
- package/styleguide/category/CONTROLS/SelectButton(js)/index.html +292 -0
- package/styleguide/category/CONTROLS/Slider/index.html +190 -0
- package/styleguide/category/CONTROLS/Switch(js)/index.html +346 -0
- package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +481 -0
- package/styleguide/category/CONTROLS/Textarea/index.html +186 -0
- package/styleguide/category/CONTROLS/Time(js)/index.html +264 -0
- package/styleguide/category/ELEMENTS/Box/index.html +171 -0
- package/styleguide/category/ELEMENTS/Icon/index.html +359 -0
- package/styleguide/category/ELEMENTS/Image/index.html +210 -0
- package/styleguide/category/ELEMENTS/List/index.html +393 -0
- package/styleguide/category/ELEMENTS/Table/index.html +480 -0
- package/styleguide/category/ELEMENTS/Tag/index.html +252 -0
- package/styleguide/category/ELEMENTS/Title/index.html +183 -0
- package/styleguide/category/LAYOUT/Container/index.html +232 -0
- package/styleguide/category/LAYOUT/Grid/index.html +397 -0
- package/styleguide/category/LAYOUT/Splitter(js)/index.html +276 -0
- package/styleguide/category/UTILITY/index.html +472 -0
- package/styleguide/category/Utils/index.html +338 -0
- package/styleguide/color.html +170 -0
- package/styleguide/index.html +170 -0
- package/styleguide/tag/javascript/index.html +7565 -0
- package/styleguide/tag/v.0.1.0/index.html +12646 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width" />
|
|
6
|
+
<link rel="icon" type="image/x-icon" href="./assets/favicon.ico">
|
|
7
|
+
<link href="../../../assets/styles/default.css" rel="stylesheet" id="ThemeFile" />
|
|
8
|
+
<link href="../../../assets/okadia.css" rel="stylesheet" />
|
|
9
|
+
<link href="../../../assets/theme.css" rel="stylesheet" />
|
|
10
|
+
<link
|
|
11
|
+
rel="stylesheet"
|
|
12
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
|
|
13
|
+
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
|
|
14
|
+
crossorigin="anonymous"
|
|
15
|
+
/>
|
|
16
|
+
<link href="https://fonts.googleapis.com/css?family=Squada+One&display=swap" rel="stylesheet" />
|
|
17
|
+
<script src="../../../assets/components.js"></script>
|
|
18
|
+
<script src="../../../assets/js/gnui.js"></script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div class="aigis-container">
|
|
22
|
+
<header class="aigis-header gn-gcolor is-primary">
|
|
23
|
+
<span><a href="../../../index.html" class="main-link" style="font-family: 'Squada One', cursive">GNUI</a></span>
|
|
24
|
+
<span class="has-text-invert" style="font-size: 1em; padding-left: 10px">Start your next web project with GNUI.</span>
|
|
25
|
+
<div class="gn-select is-medium">
|
|
26
|
+
<select id="ThemeSelector">
|
|
27
|
+
|
|
28
|
+
<option value="default">default</option>
|
|
29
|
+
|
|
30
|
+
<option value="nac">nac</option>
|
|
31
|
+
|
|
32
|
+
<option value="insights">insights</option>
|
|
33
|
+
|
|
34
|
+
<option value="gpi">gpi</option>
|
|
35
|
+
|
|
36
|
+
<option value="ztnac">ztnac</option>
|
|
37
|
+
|
|
38
|
+
<option value="green24">green24</option>
|
|
39
|
+
|
|
40
|
+
</select>
|
|
41
|
+
</div>
|
|
42
|
+
<div>
|
|
43
|
+
<a class="gn-button is-primary util-link" href="../../../category/Utils/index.html">
|
|
44
|
+
<span class="gn-icon is-small">
|
|
45
|
+
<i class="fas fa-tools"></i>
|
|
46
|
+
</span>
|
|
47
|
+
Gn.util
|
|
48
|
+
</a>
|
|
49
|
+
</div>
|
|
50
|
+
</header>
|
|
51
|
+
<div class="aigis-sidemenu">
|
|
52
|
+
<nav class="gn-tree is-borderless is-large left-menu"></nav>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
window.Gn = window.gnui;
|
|
57
|
+
|
|
58
|
+
Gn.ready(function () {
|
|
59
|
+
var leftMenu = setTree('COLOR,COMPONENT/Alert(js),COMPONENT/Bignumber,COMPONENT/Breadcrumb,COMPONENT/Calendar(js),COMPONENT/Card,COMPONENT/Chart(js),COMPONENT/Datagrid(js),COMPONENT/Datalist(js),COMPONENT/Growl(js),COMPONENT/JsonView(js),COMPONENT/Loader(js),COMPONENT/MenuButton(js),COMPONENT/Message(js),COMPONENT/Modal(js),COMPONENT/Pagination(js),COMPONENT/Panel,COMPONENT/Progressbar(js),COMPONENT/Tab(js),COMPONENT/Tagcloud(js),COMPONENT/Tooltip(js),COMPONENT/Tree(js),CONTROLS/Button(js),CONTROLS/Checkbox,CONTROLS/Colorpicker(js),CONTROLS/Datepicker(js),CONTROLS/Dropdown(js),CONTROLS/File,CONTROLS/Form/Control,CONTROLS/Form/Field,CONTROLS/Form/Plain,CONTROLS/Input,CONTROLS/MultiText(js),CONTROLS/Picklist(js),CONTROLS/Radio,CONTROLS/Select,CONTROLS/SelectButton(js),CONTROLS/Slider,CONTROLS/Switch(js),CONTROLS/SyntaxInput(js),CONTROLS/Textarea,CONTROLS/Time(js),ELEMENTS/Box,ELEMENTS/Icon,ELEMENTS/Image,ELEMENTS/List,ELEMENTS/Table,ELEMENTS/Tag,ELEMENTS/Title,LAYOUT/Container,LAYOUT/Grid,LAYOUT/Splitter(js),UTILITY,Utils'.split(','));
|
|
60
|
+
var jsComps = ''.split(',');
|
|
61
|
+
delete leftMenu.Utils;
|
|
62
|
+
Gn.util.append('.left-menu', renderTree(leftMenu));
|
|
63
|
+
Gn.util.scrollIntoView(Gn.util.$('.tree-item.is-active'), 300);
|
|
64
|
+
|
|
65
|
+
function renderTree(menus) {
|
|
66
|
+
var $depths = Gn.util.$('<ul></ul>');
|
|
67
|
+
Gn.util.each(menus, function (child, menu) {
|
|
68
|
+
if (Gn.util.isString(child)) {
|
|
69
|
+
Gn.util.append($depths, renderMenu(menu, '../../../category/' + child + '/index.html', location.href.indexOf(child + '/') > -1));
|
|
70
|
+
} else {
|
|
71
|
+
var $_depth = renderMenu(menu, '');
|
|
72
|
+
Gn.util.append($_depth, renderTree(child));
|
|
73
|
+
Gn.util.append($depths, $_depth);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return $depths;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function renderMenu(name, link, isActive) {
|
|
80
|
+
var $_menu;
|
|
81
|
+
if (link === '') {
|
|
82
|
+
$_menu = Gn.util.$('<li>' + name + '</li>');
|
|
83
|
+
} else {
|
|
84
|
+
var menuClass = isActive ? ' is-active' : '';
|
|
85
|
+
$_menu = Gn.util.$('<li><a href="' + link + '"><div class="tree-item' + menuClass + '">' + name.split('(js)').join('') + '</a></div></li>');
|
|
86
|
+
}
|
|
87
|
+
if (name.indexOf('(js)') > 0) {
|
|
88
|
+
Gn.util.append(Gn.util.find('.tree-item', $_menu), Gn.util.$('<span class="gn-tag is-small is-info-light">JS</span>'));
|
|
89
|
+
}
|
|
90
|
+
return $_menu;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function setTree(categorys) {
|
|
94
|
+
var menus = {};
|
|
95
|
+
|
|
96
|
+
categorys.forEach(function (category) {
|
|
97
|
+
parseTree(menus, category.split('/'), category);
|
|
98
|
+
});
|
|
99
|
+
return menus;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function parseTree(parents, child, catgry) {
|
|
103
|
+
var _depth = child.shift();
|
|
104
|
+
if (parents[_depth] === undefined) {
|
|
105
|
+
parents[_depth] = {};
|
|
106
|
+
}
|
|
107
|
+
if (child.length === 1) {
|
|
108
|
+
parents[_depth][child] = catgry;
|
|
109
|
+
} else if (child.length > 1) {
|
|
110
|
+
parseTree(parents[_depth], child, catgry);
|
|
111
|
+
} else {
|
|
112
|
+
parents[_depth] = catgry;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
</script>
|
|
117
|
+
|
|
118
|
+
<div class="aigis-contents">
|
|
119
|
+
<div class="aigis-contents__body">
|
|
120
|
+
|
|
121
|
+
<div>
|
|
122
|
+
|
|
123
|
+
<div class="aigis-module MultiText">
|
|
124
|
+
<h2 class="aigis-module__heading" id="MultiText">MultiText</h2>
|
|
125
|
+
<div class="aigis-module__filepath">/scss/controls/multitext.scss</div>
|
|
126
|
+
<div class="aigis-tags">
|
|
127
|
+
|
|
128
|
+
<span class="gn-tag">v.0.1.0</span>
|
|
129
|
+
|
|
130
|
+
<a class="js-guide"><span class="gn-tag is-info">javascript</span></a>
|
|
131
|
+
|
|
132
|
+
</div>
|
|
133
|
+
<!-- <div id="ComponentTab">
|
|
134
|
+
<ul>
|
|
135
|
+
<li><a href="#styleguide">Style</a></li>
|
|
136
|
+
<li>
|
|
137
|
+
<a href="#scriptguide"
|
|
138
|
+
>Script <span class="gn-icon"><i class="fas fa-code"></i></span
|
|
139
|
+
></a>
|
|
140
|
+
</li>
|
|
141
|
+
</ul>
|
|
142
|
+
</div> -->
|
|
143
|
+
<h3 id="-">생성 옵션</h3>
|
|
144
|
+
<div class="aigis-preview">
|
|
145
|
+
|
|
146
|
+
<div class="default-multitext">
|
|
147
|
+
</div>
|
|
148
|
+
<div class="new-multitext">
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<pre><code class="language-ejs"><span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>default-multitext<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>
|
|
153
|
+
<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>
|
|
154
|
+
<span class="token tag" ><span class="token tag" ><span class="token punctuation" ><</span>div</span> <span class="token attr-name" >class</span><span class="token attr-value" ><span class="token punctuation" >=</span><span class="token punctuation" >"</span>new-multitext<span class="token punctuation" >"</span></span><span class="token punctuation" >></span></span>
|
|
155
|
+
<span class="token tag" ><span class="token tag" ><span class="token punctuation" ></</span>div</span><span class="token punctuation" >></span></span>
|
|
156
|
+
</code></pre>
|
|
157
|
+
<pre><code>Gn<span class="token punctuation" >.</span><span class="token function" >create</span><span class="token punctuation" >(</span><span class="token string" >'multitext'</span><span class="token punctuation" >,</span> {
|
|
158
|
+
target<span class="token punctuation" >:</span> <span class="token string" >'.default-multitext'</span>
|
|
159
|
+
}<span class="token punctuation" >)</span>
|
|
160
|
+
|
|
161
|
+
Gn<span class="token punctuation" >.</span><span class="token function" >create</span><span class="token punctuation" >(</span><span class="token string" >'multitext'</span><span class="token punctuation" >,</span> {
|
|
162
|
+
target<span class="token punctuation" >:</span> <span class="token string" >'.new-multitext'</span><span class="token punctuation" >,</span>
|
|
163
|
+
lang<span class="token punctuation" >:</span> <span class="token punctuation" >[</span><span class="token string" >'en'</span><span class="token punctuation" >,</span><span class="token string" >'ko'</span><span class="token punctuation" >,</span><span class="token string" >'cn'</span><span class="token punctuation" >]</span><span class="token punctuation" >,</span>
|
|
164
|
+
value<span class="token punctuation" >:</span> {
|
|
165
|
+
en<span class="token punctuation" >:</span> <span class="token string" >'hello'</span><span class="token punctuation" >,</span>
|
|
166
|
+
ko<span class="token punctuation" >:</span> <span class="token string" >'안녕하세요'</span><span class="token punctuation" >,</span>
|
|
167
|
+
cn<span class="token punctuation" >:</span> <span class="token string" >'HELLO'</span>
|
|
168
|
+
}<span class="token punctuation" >,</span>
|
|
169
|
+
maxlength<span class="token punctuation" >:</span> <span class="token number" >300</span>
|
|
170
|
+
}<span class="token punctuation" >)</span>
|
|
171
|
+
</code></pre><table class="gn-table is-full is-border">
|
|
172
|
+
<thead>
|
|
173
|
+
<th colspan="2">name</th>
|
|
174
|
+
<th>type</th>
|
|
175
|
+
<th>default</th>
|
|
176
|
+
<th>description</th>
|
|
177
|
+
</thead>
|
|
178
|
+
<tbody>
|
|
179
|
+
<tr>
|
|
180
|
+
<td colspan="2">target</td>
|
|
181
|
+
<td>string</td>
|
|
182
|
+
<td></td>
|
|
183
|
+
<td>multitext 생성 타겟</td>
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<td colspan="2">lang</td>
|
|
187
|
+
<td>Array<string></td>
|
|
188
|
+
<td>['en','ko']</td>
|
|
189
|
+
<td>사용할 언어 배열</td>
|
|
190
|
+
</tr>
|
|
191
|
+
<tr>
|
|
192
|
+
<td colspan="2">value</td>
|
|
193
|
+
<td>Object</td>
|
|
194
|
+
<td></td>
|
|
195
|
+
<td>언어별 초기 값</td>
|
|
196
|
+
</tr>
|
|
197
|
+
<tr>
|
|
198
|
+
<td colspan="2">size</td>
|
|
199
|
+
<td>string</td>
|
|
200
|
+
<td>'normal'</td>
|
|
201
|
+
<td>사이즈</td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td colspan="2">width</td>
|
|
205
|
+
<td>string</td>
|
|
206
|
+
<td>100%</td>
|
|
207
|
+
<td>넓이</td>
|
|
208
|
+
</tr>
|
|
209
|
+
<tr>
|
|
210
|
+
<td colspan="2">rows</td>
|
|
211
|
+
<td>number</td>
|
|
212
|
+
<td>2</td>
|
|
213
|
+
<td>textarea 라인 수</td>
|
|
214
|
+
</tr>
|
|
215
|
+
<tr>
|
|
216
|
+
<td colspan="2">maxlength</td>
|
|
217
|
+
<td>number</td>
|
|
218
|
+
<td>524288</td>
|
|
219
|
+
<td>최대 입력 글자길이</td>
|
|
220
|
+
</tr>
|
|
221
|
+
<tr>
|
|
222
|
+
<td colspan="2">onChange(value)</td>
|
|
223
|
+
<td>function</td>
|
|
224
|
+
<td></td>
|
|
225
|
+
<td>값 변경 시 발생 이벤트</td>
|
|
226
|
+
</tr>
|
|
227
|
+
<tr>
|
|
228
|
+
<td colspan="2">disabled</td>
|
|
229
|
+
<td>boolean</td>
|
|
230
|
+
<td>false</td>
|
|
231
|
+
<td>비활성화 여부</td>
|
|
232
|
+
</tr>
|
|
233
|
+
</tbody>
|
|
234
|
+
</table>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<h3 id="-">메소드</h3>
|
|
238
|
+
<table class="gn-table is-full is-border">
|
|
239
|
+
<thead>
|
|
240
|
+
<th>name</th>
|
|
241
|
+
<th>return</th>
|
|
242
|
+
<th>description</th>
|
|
243
|
+
</thead>
|
|
244
|
+
<tbody>
|
|
245
|
+
<tr>
|
|
246
|
+
<td>getValue()</td>
|
|
247
|
+
<td>String</td>
|
|
248
|
+
<td>값을 반환한다. </td>
|
|
249
|
+
</tr>
|
|
250
|
+
<tr>
|
|
251
|
+
<td>disable()</td>
|
|
252
|
+
<td>void</td>
|
|
253
|
+
<td>Disabled 처리한다.</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td>enable()</td>
|
|
257
|
+
<td>void</td>
|
|
258
|
+
<td>Enabled 처리한다.</td>
|
|
259
|
+
</tr>
|
|
260
|
+
</tbody>
|
|
261
|
+
</table>
|
|
262
|
+
|
|
263
|
+
</div>
|
|
264
|
+
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
<footer class="aigis-footer">Last update at 2025/09/22 02:18</footer>
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
<script src="../../../assets/guide.js"></script>
|
|
273
|
+
</body>
|
|
274
|
+
</html>
|