gnui 1.2.0 → 1.2.12

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.
Files changed (97) hide show
  1. package/@types/gnui.d.ts +9 -2
  2. package/README.md +0 -0
  3. package/assets/NotoSansKR-Black.otf +0 -0
  4. package/assets/NotoSansKR-Black.woff +0 -0
  5. package/assets/NotoSansKR-Black.woff2 +0 -0
  6. package/assets/NotoSansKR-Bold.otf +0 -0
  7. package/assets/NotoSansKR-Bold.woff +0 -0
  8. package/assets/NotoSansKR-Bold.woff2 +0 -0
  9. package/assets/NotoSansKR-DemiLight.otf +0 -0
  10. package/assets/NotoSansKR-DemiLight.woff +0 -0
  11. package/assets/NotoSansKR-DemiLight.woff2 +0 -0
  12. package/assets/NotoSansKR-Light.otf +0 -0
  13. package/assets/NotoSansKR-Light.woff +0 -0
  14. package/assets/NotoSansKR-Light.woff2 +0 -0
  15. package/assets/NotoSansKR-Medium.otf +0 -0
  16. package/assets/NotoSansKR-Medium.woff +0 -0
  17. package/assets/NotoSansKR-Medium.woff2 +0 -0
  18. package/assets/NotoSansKR-Regular.otf +0 -0
  19. package/assets/NotoSansKR-Regular.woff +0 -0
  20. package/assets/NotoSansKR-Regular.woff2 +0 -0
  21. package/assets/NotoSansKR-Thin.otf +0 -0
  22. package/assets/NotoSansKR-Thin.woff +0 -0
  23. package/assets/NotoSansKR-Thin.woff2 +0 -0
  24. package/assets/OFL.txt +0 -0
  25. package/assets/images/flags.png +0 -0
  26. package/package.json +20 -13
  27. package/dist/js/gnui.esm.js +0 -24295
  28. package/dist/js/gnui.js +0 -24303
  29. package/dist/js/gnui.min.js +0 -23
  30. package/dist/styles/default.css +0 -1
  31. package/dist/styles/gpi.css +0 -1
  32. package/dist/styles/green24.css +0 -1
  33. package/dist/styles/insights.css +0 -1
  34. package/dist/styles/nac.css +0 -1
  35. package/dist/styles/ztnac.css +0 -1
  36. package/styleguide/assets/components.js +0 -1732
  37. package/styleguide/assets/guide.js +0 -47
  38. package/styleguide/assets/image.png +0 -0
  39. package/styleguide/assets/okadia.css +0 -122
  40. package/styleguide/assets/theme.css +0 -564
  41. package/styleguide/category/COLOR/index.html +0 -156
  42. package/styleguide/category/COMPONENT/Alert(js)/index.html +0 -418
  43. package/styleguide/category/COMPONENT/Bignumber/index.html +0 -269
  44. package/styleguide/category/COMPONENT/Breadcrumb/index.html +0 -324
  45. package/styleguide/category/COMPONENT/Calendar(js)/index.html +0 -236
  46. package/styleguide/category/COMPONENT/Card/index.html +0 -184
  47. package/styleguide/category/COMPONENT/Chart(js)/index.html +0 -555
  48. package/styleguide/category/COMPONENT/Datagrid(js)/index.html +0 -693
  49. package/styleguide/category/COMPONENT/Datalist(js)/index.html +0 -471
  50. package/styleguide/category/COMPONENT/Growl(js)/index.html +0 -285
  51. package/styleguide/category/COMPONENT/JsonView(js)/index.html +0 -1127
  52. package/styleguide/category/COMPONENT/MenuButton(js)/index.html +0 -281
  53. package/styleguide/category/COMPONENT/Message(js)/index.html +0 -515
  54. package/styleguide/category/COMPONENT/Modal(js)/index.html +0 -444
  55. package/styleguide/category/COMPONENT/Pagination/index.html +0 -348
  56. package/styleguide/category/COMPONENT/Panel/index.html +0 -305
  57. package/styleguide/category/COMPONENT/Progressbar(js)/index.html +0 -313
  58. package/styleguide/category/COMPONENT/Tab(js)/index.html +0 -473
  59. package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +0 -260
  60. package/styleguide/category/COMPONENT/Tooltip(js)/index.html +0 -400
  61. package/styleguide/category/COMPONENT/Tree(js)/index.html +0 -404
  62. package/styleguide/category/CONTROLS/Button(js)/index.html +0 -455
  63. package/styleguide/category/CONTROLS/Checkbox/index.html +0 -194
  64. package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +0 -263
  65. package/styleguide/category/CONTROLS/Datepicker(js)/index.html +0 -292
  66. package/styleguide/category/CONTROLS/Dropdown(js)/index.html +0 -1062
  67. package/styleguide/category/CONTROLS/File/index.html +0 -312
  68. package/styleguide/category/CONTROLS/Form/Control/index.html +0 -227
  69. package/styleguide/category/CONTROLS/Form/Field/index.html +0 -254
  70. package/styleguide/category/CONTROLS/Form/Plain/index.html +0 -193
  71. package/styleguide/category/CONTROLS/Input/index.html +0 -330
  72. package/styleguide/category/CONTROLS/MultiText(js)/index.html +0 -273
  73. package/styleguide/category/CONTROLS/Picklist(js)/index.html +0 -723
  74. package/styleguide/category/CONTROLS/Radio/index.html +0 -197
  75. package/styleguide/category/CONTROLS/Select/index.html +0 -438
  76. package/styleguide/category/CONTROLS/SelectButton(js)/index.html +0 -291
  77. package/styleguide/category/CONTROLS/Slider/index.html +0 -189
  78. package/styleguide/category/CONTROLS/Switch(js)/index.html +0 -345
  79. package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +0 -480
  80. package/styleguide/category/CONTROLS/Textarea/index.html +0 -185
  81. package/styleguide/category/CONTROLS/Time(js)/index.html +0 -263
  82. package/styleguide/category/ELEMENTS/Box/index.html +0 -163
  83. package/styleguide/category/ELEMENTS/Icon/index.html +0 -305
  84. package/styleguide/category/ELEMENTS/Image/index.html +0 -209
  85. package/styleguide/category/ELEMENTS/List/index.html +0 -392
  86. package/styleguide/category/ELEMENTS/Table/index.html +0 -479
  87. package/styleguide/category/ELEMENTS/Tag/index.html +0 -251
  88. package/styleguide/category/ELEMENTS/Title/index.html +0 -182
  89. package/styleguide/category/LAYOUT/Container/index.html +0 -231
  90. package/styleguide/category/LAYOUT/Grid/index.html +0 -396
  91. package/styleguide/category/LAYOUT/Splitter(js)/index.html +0 -275
  92. package/styleguide/category/UTILITY/index.html +0 -365
  93. package/styleguide/category/Utils/index.html +0 -331
  94. package/styleguide/color.html +0 -169
  95. package/styleguide/index.html +0 -169
  96. package/styleguide/tag/javascript/index.html +0 -7197
  97. package/styleguide/tag/v.0.1.0/index.html +0 -11969
@@ -1,169 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <link href="./../dist/styles/default.css" rel="stylesheet" id="ThemeFile" />
7
- <link href="./assets/okadia.css" rel="stylesheet" />
8
- <link href="./assets/theme.css" rel="stylesheet" />
9
- <link
10
- rel="stylesheet"
11
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
12
- integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
13
- crossorigin="anonymous"
14
- />
15
- <link href="https://fonts.googleapis.com/css?family=Squada+One&display=swap" rel="stylesheet" />
16
- <script src="./assets/components.js"></script>
17
- <script src="./../dist/js/gnui.js"></script>
18
- </head>
19
- <body>
20
- <div class="aigis-container">
21
- <header class="aigis-header gn-gcolor is-primary">
22
- <span><a href="./index.html" class="main-link" style="font-family: 'Squada One', cursive">GNUI</a></span>
23
- <span class="has-text-invert" style="font-size: 1em; padding-left: 10px">Start your next web project with GNUI.</span>
24
- <div class="gn-select is-medium">
25
- <select id="ThemeSelector">
26
-
27
- <option value="default">default</option>
28
-
29
- <option value="nac">nac</option>
30
-
31
- <option value="insights">insights</option>
32
-
33
- <option value="gpi">gpi</option>
34
-
35
- <option value="ztnac">ztnac</option>
36
-
37
- <option value="green24">green24</option>
38
-
39
- </select>
40
- </div>
41
- <div>
42
- <a class="gn-button is-primary util-link" href="./category/Utils/index.html">
43
- <span class="gn-icon is-small">
44
- <i class="fas fa-tools"></i>
45
- </span>
46
- Gn.util
47
- </a>
48
- </div>
49
- </header>
50
- <div class="aigis-sidemenu">
51
- <nav class="gn-tree is-borderless is-large left-menu"></nav>
52
- </div>
53
-
54
- <script>
55
- window.Gn = window.gnui;
56
-
57
- Gn.ready(function () {
58
- 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/MenuButton(js),COMPONENT/Message(js),COMPONENT/Modal(js),COMPONENT/Pagination,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(','));
59
- var jsComps = ''.split(',');
60
- delete leftMenu.Utils;
61
- Gn.util.append('.left-menu', renderTree(leftMenu));
62
- Gn.util.scrollIntoView(Gn.util.$('.tree-item.is-active'), 300);
63
-
64
- function renderTree(menus) {
65
- var $depths = Gn.util.$('<ul></ul>');
66
- Gn.util.each(menus, function (child, menu) {
67
- if (Gn.util.isString(child)) {
68
- Gn.util.append($depths, renderMenu(menu, './category/' + child + '/index.html', location.href.indexOf(child + '/') > -1));
69
- } else {
70
- var $_depth = renderMenu(menu, '');
71
- Gn.util.append($_depth, renderTree(child));
72
- Gn.util.append($depths, $_depth);
73
- }
74
- });
75
- return $depths;
76
- }
77
-
78
- function renderMenu(name, link, isActive) {
79
- var $_menu;
80
- if (link === '') {
81
- $_menu = Gn.util.$('<li>' + name + '</li>');
82
- } else {
83
- var menuClass = isActive ? ' is-active' : '';
84
- $_menu = Gn.util.$('<li><a href="' + link + '"><div class="tree-item' + menuClass + '">' + name.split('(js)').join('') + '</a></div></li>');
85
- }
86
- if (name.indexOf('(js)') > 0) {
87
- Gn.util.append(Gn.util.find('.tree-item', $_menu), Gn.util.$('<span class="gn-tag is-small is-info-light">JS</span>'));
88
- }
89
- return $_menu;
90
- }
91
-
92
- function setTree(categorys) {
93
- var menus = {};
94
-
95
- categorys.forEach(function (category) {
96
- parseTree(menus, category.split('/'), category);
97
- });
98
- return menus;
99
- }
100
-
101
- function parseTree(parents, child, catgry) {
102
- var _depth = child.shift();
103
- if (parents[_depth] === undefined) {
104
- parents[_depth] = {};
105
- }
106
- if (child.length === 1) {
107
- parents[_depth][child] = catgry;
108
- } else if (child.length > 1) {
109
- parseTree(parents[_depth], child, catgry);
110
- } else {
111
- parents[_depth] = catgry;
112
- }
113
- }
114
- });
115
- </script>
116
-
117
- <div class="aigis-contents">
118
- <div class="aigis-contents__body">
119
- <h1 class="gn-title is-border">GNUI</h1>
120
- <p class="gn-sub-title">Genians 제품에 사용되는 UI 스타일 및 컴포넌트를 제공하는 Front-end UI Framework.</p>
121
-
122
- <div class="gn-container">
123
- <h4 class="gn-title is-size4">테마전환</h4>
124
- <ul class="gn-list">
125
- <li>사용할 테마에 해당하는 css 파일을 참조하여 사용한다.</li>
126
- <li>가이드에서는 화면 우측 상단 콤보박스에서 사용할 테마를 선택하여 미리보기 할 수 있다.</li>
127
- </ul>
128
- </div>
129
-
130
- <div class="gn-container">
131
- <h4 class="gn-title is-size4">컴포넌트 사용</h4>
132
- <ul class="gn-list">
133
- <li><span class="gn-tag is-info-light is-small">JS</span> 태그가 있는 항목은 Gn.create 스크립트를 사용하여 컴포넌트를 생성할 수 있다.</li>
134
- <li>상세 옵션은 각 컴포넌트 가이드 하단에 표시되어 있다.</li>
135
- </ul>
136
- </div>
137
-
138
- <div class="gn-container">
139
- <h4 class="gn-title is-size4">모듈 설치 및 사용</h4>
140
- <h6 class="gn-title is-size6">아래 다운로드 URL로부터 모듈을 설치한다.</h6>
141
- <div class="gn-box-no-line">
142
- <i>npm install -S https://download.geninetworks.com/tftpboot/GNUI/CURRENT/GNOS/v1.0/GNUI-CT64-C-current/gnui.tar.gz</i>
143
- </div>
144
- <ul class="gn-list">
145
- <li>설치된 <u>js 파일</u>과 사용하고자 하는 <u>테마 css 파일</u>을 소스에 import하여 사용한다.</li>
146
- <li>* 버전별 모듈 경로는 제품 다운로드(https://download.geninetworks.com/tftpboot/GNUI/CURRENT/GNOS/v1.0/)에서 확인하여 설치</li>
147
- </ul>
148
- <h6 class="gn-title is-size6">Browser</h6>
149
- <div class="aigis-module">
150
- <pre><code><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</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">/&gt;</span></span>
151
- <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</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">&gt;</span><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">&gt;</span></span>
152
- <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>script</span></span></span><span class="token punctuation">&gt;</span></span>
153
- window<span class="token punctuation">.</span><span class="token function">Gn</span> <span class="token punctuation">=</span> <span class="token function">gnui</span>
154
- <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>script</span><span class="token punctuation">&gt;</span></span></code></pre>
155
- </div>
156
- <h6 class="gn-title is-size6">ESM</h6>
157
- <div class="aigis-module">
158
- <pre><code><span class="token tag">import <span class="token punctuation">Gn</span> from <span class="token string">'gnui'</span></span>
159
- <span class="token tag">import <span class="token string">'gnui/dist/styles/default.css'</span></span></code></pre>
160
- </div>
161
- </div>
162
-
163
- <footer class="aigis-footer">Last update at 2024/04/15 13:52</footer>
164
- </div>
165
- </div>
166
- </div>
167
- <script src="./assets/guide.js"></script>
168
- </body>
169
- </html>