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