gnui 1.2.13 → 1.2.15
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 +40468 -0
- package/dist/js/gnui.js +40476 -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 +40476 -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 +330 -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 +7571 -0
- package/styleguide/tag/v.0.1.0/index.html +12652 -0
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
<h1 class="gn-title is-border">GNUI</h1>
|
|
121
|
+
<p class="gn-sub-title">Genians 제품에 사용되는 UI 스타일 및 컴포넌트를 제공하는 Front-end UI Framework.</p>
|
|
122
|
+
|
|
123
|
+
<div class="gn-container">
|
|
124
|
+
<h4 class="gn-title is-size4">테마전환</h4>
|
|
125
|
+
<ul class="gn-list">
|
|
126
|
+
<li>사용할 테마에 해당하는 css 파일을 참조하여 사용한다.</li>
|
|
127
|
+
<li>가이드에서는 화면 우측 상단 콤보박스에서 사용할 테마를 선택하여 미리보기 할 수 있다.</li>
|
|
128
|
+
</ul>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="gn-container">
|
|
132
|
+
<h4 class="gn-title is-size4">컴포넌트 사용</h4>
|
|
133
|
+
<ul class="gn-list">
|
|
134
|
+
<li><span class="gn-tag is-info-light is-small">JS</span> 태그가 있는 항목은 Gn.create 스크립트를 사용하여 컴포넌트를 생성할 수 있다.</li>
|
|
135
|
+
<li>상세 옵션은 각 컴포넌트 가이드 하단에 표시되어 있다.</li>
|
|
136
|
+
</ul>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<div class="gn-container">
|
|
140
|
+
<h4 class="gn-title is-size4">모듈 설치 및 사용</h4>
|
|
141
|
+
<h6 class="gn-title is-size6">아래 다운로드 URL로부터 모듈을 설치한다.</h6>
|
|
142
|
+
<div class="gn-box-no-line">
|
|
143
|
+
<i>npm install -S https://download.geninetworks.com/tftpboot/GNUI/CURRENT/GNOS/v1.0/GNUI-CT64-C-current/gnui.tar.gz</i>
|
|
144
|
+
</div>
|
|
145
|
+
<ul class="gn-list">
|
|
146
|
+
<li>설치된 <u>js 파일</u>과 사용하고자 하는 <u>테마 css 파일</u>을 소스에 import하여 사용한다.</li>
|
|
147
|
+
<li>* 버전별 모듈 경로는 제품 다운로드(https://download.geninetworks.com/tftpboot/GNUI/CURRENT/GNOS/v1.0/)에서 확인하여 설치</li>
|
|
148
|
+
</ul>
|
|
149
|
+
<h6 class="gn-title is-size6">Browser</h6>
|
|
150
|
+
<div class="aigis-module">
|
|
151
|
+
<pre><code><span class="token tag"><span class="token tag"><span class="token punctuation"><</span>link</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>gnui/dist/styles/default.css<span class="token punctuation">"</span></span> <span class="token attr-name">rel</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>stylesheet<span class="token punctuation">"</span></span><span class="token punctuation">/></span></span>
|
|
152
|
+
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>script</span> <span class="token attr-name">src</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>gnui/dist/js/gnui.js<span class="token punctuation">"</span></span><span class="token punctuation">></span><span class="token tag"><span class="token punctuation"></</span>script</span><span class="token punctuation">></span></span>
|
|
153
|
+
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>script</span></span></span><span class="token punctuation">></span></span>
|
|
154
|
+
window<span class="token punctuation">.</span><span class="token function">Gn</span> <span class="token punctuation">=</span> <span class="token function">gnui</span>
|
|
155
|
+
<span class="token tag"><span class="token tag"><span class="token punctuation"></</span>script</span><span class="token punctuation">></span></span></code></pre>
|
|
156
|
+
</div>
|
|
157
|
+
<h6 class="gn-title is-size6">ESM</h6>
|
|
158
|
+
<div class="aigis-module">
|
|
159
|
+
<pre><code><span class="token tag">import <span class="token punctuation">Gn</span> from <span class="token string">'gnui'</span></span>
|
|
160
|
+
<span class="token tag">import <span class="token string">'gnui/dist/styles/default.css'</span></span></code></pre>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<footer class="aigis-footer">Last update at 2025/09/30 04:05</footer>
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<script src="./assets/guide.js"></script>
|
|
169
|
+
</body>
|
|
170
|
+
</html>
|