gnui 1.2.19 → 1.2.20

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 (78) hide show
  1. package/dist/js/gnui.esm.js +339 -134
  2. package/dist/js/gnui.js +339 -134
  3. package/dist/js/gnui.min.js +6 -6
  4. package/dist/styles/default.css +10600 -20758
  5. package/dist/styles/gpi.css +10630 -20788
  6. package/dist/styles/green24.css +11263 -21435
  7. package/dist/styles/insights.css +10616 -20775
  8. package/dist/styles/nac.css +10628 -20795
  9. package/dist/styles/ztnac.css +11263 -21436
  10. package/package.json +3 -2
  11. package/styleguide/assets/components.js +58 -3
  12. package/styleguide/assets/js/gnui.js +339 -134
  13. package/styleguide/assets/js/gnui.min.js +6 -6
  14. package/styleguide/assets/styles/default.css +10600 -20758
  15. package/styleguide/assets/styles/gpi.css +10630 -20788
  16. package/styleguide/assets/styles/green24.css +11263 -21435
  17. package/styleguide/assets/styles/insights.css +10616 -20775
  18. package/styleguide/assets/styles/nac.css +10628 -20795
  19. package/styleguide/assets/styles/ztnac.css +11263 -21436
  20. package/styleguide/category/COLOR/index.html +1 -1
  21. package/styleguide/category/COMPONENT/Alert(js)/index.html +1 -1
  22. package/styleguide/category/COMPONENT/Bignumber/index.html +1 -1
  23. package/styleguide/category/COMPONENT/Breadcrumb/index.html +1 -1
  24. package/styleguide/category/COMPONENT/Calendar(js)/index.html +1 -1
  25. package/styleguide/category/COMPONENT/Card/index.html +1 -1
  26. package/styleguide/category/COMPONENT/Chart(js)/index.html +1 -1
  27. package/styleguide/category/COMPONENT/Datagrid(js)/index.html +1 -1
  28. package/styleguide/category/COMPONENT/Datalist(js)/index.html +1 -1
  29. package/styleguide/category/COMPONENT/Growl(js)/index.html +1 -1
  30. package/styleguide/category/COMPONENT/JsonView(js)/index.html +1 -1
  31. package/styleguide/category/COMPONENT/Loader(js)/index.html +1 -1
  32. package/styleguide/category/COMPONENT/MenuButton(js)/index.html +169 -21
  33. package/styleguide/category/COMPONENT/Message(js)/index.html +1 -1
  34. package/styleguide/category/COMPONENT/Modal(js)/index.html +1 -1
  35. package/styleguide/category/COMPONENT/Pagination(js)/index.html +1 -1
  36. package/styleguide/category/COMPONENT/Panel/index.html +1 -1
  37. package/styleguide/category/COMPONENT/Progressbar(js)/index.html +1 -1
  38. package/styleguide/category/COMPONENT/Tab(js)/index.html +1 -1
  39. package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +1 -1
  40. package/styleguide/category/COMPONENT/Tooltip(js)/index.html +1 -1
  41. package/styleguide/category/COMPONENT/Tree(js)/index.html +16 -1
  42. package/styleguide/category/CONTROLS/Button(js)/index.html +1 -1
  43. package/styleguide/category/CONTROLS/Checkbox/index.html +1 -1
  44. package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +1 -1
  45. package/styleguide/category/CONTROLS/Datepicker(js)/index.html +1 -1
  46. package/styleguide/category/CONTROLS/Dropdown(js)/index.html +67 -10
  47. package/styleguide/category/CONTROLS/File/index.html +1 -1
  48. package/styleguide/category/CONTROLS/Form/Control/index.html +1 -1
  49. package/styleguide/category/CONTROLS/Form/Field/index.html +2 -2
  50. package/styleguide/category/CONTROLS/Form/Plain/index.html +2 -2
  51. package/styleguide/category/CONTROLS/Input/index.html +1 -1
  52. package/styleguide/category/CONTROLS/MultiText(js)/index.html +1 -1
  53. package/styleguide/category/CONTROLS/Picklist(js)/index.html +67 -13
  54. package/styleguide/category/CONTROLS/Radio/index.html +1 -1
  55. package/styleguide/category/CONTROLS/Select/index.html +1 -1
  56. package/styleguide/category/CONTROLS/SelectButton(js)/index.html +2 -2
  57. package/styleguide/category/CONTROLS/Slider/index.html +1 -1
  58. package/styleguide/category/CONTROLS/SortableList(js)/index.html +2 -2
  59. package/styleguide/category/CONTROLS/Switch(js)/index.html +1 -1
  60. package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +1 -1
  61. package/styleguide/category/CONTROLS/Textarea/index.html +2 -2
  62. package/styleguide/category/CONTROLS/Time(js)/index.html +2 -2
  63. package/styleguide/category/ELEMENTS/Box/index.html +1 -1
  64. package/styleguide/category/ELEMENTS/Icon/index.html +1 -1
  65. package/styleguide/category/ELEMENTS/Image/index.html +1 -1
  66. package/styleguide/category/ELEMENTS/List/index.html +1 -1
  67. package/styleguide/category/ELEMENTS/Table/index.html +1 -1
  68. package/styleguide/category/ELEMENTS/Tag/index.html +1 -1
  69. package/styleguide/category/ELEMENTS/Title/index.html +1 -1
  70. package/styleguide/category/LAYOUT/Container/index.html +1 -1
  71. package/styleguide/category/LAYOUT/Grid/index.html +1 -1
  72. package/styleguide/category/LAYOUT/Splitter(js)/index.html +1 -1
  73. package/styleguide/category/UTILITY/index.html +1 -1
  74. package/styleguide/category/Utils/index.html +1 -1
  75. package/styleguide/color.html +1 -1
  76. package/styleguide/index.html +1 -1
  77. package/styleguide/tag/javascript/index.html +4446 -4172
  78. package/styleguide/tag/v.0.1.0/index.html +5259 -4985
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.2.19",
7
+ "version": "1.2.20",
8
8
  "type": "module",
9
9
  "main": "dist/js/gnui.js",
10
10
  "types": "@types/gnui.d.ts",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "build": "npm install && npm run build-clean && npm run build-sass && npm run build-autoprefix && npm run docs && npm run build-ts",
32
- "build-autoprefix": "postcss css/ --use autoprefixer --no-map --dir dist/styles",
32
+ "build-autoprefix": "postcss css/ --no-map --dir dist/styles",
33
33
  "build-clean": "rimraf css styleguide dist",
34
34
  "build-sass": "sass --no-source-map theme/:css/",
35
35
  "build-ts": "rollup -c",
@@ -109,6 +109,7 @@
109
109
  "node-aigis": "^1.4.1",
110
110
  "npm-watch": "^0.11.0",
111
111
  "postcss-cli": "^11.0.0",
112
+ "postcss-discard-comments": "^7.0.5",
112
113
  "prettier": "^3.1.1",
113
114
  "rimraf": "^5.0.5",
114
115
  "rollup": "^4.9.1",
@@ -311,6 +311,20 @@ const components = {
311
311
  hasSearch: true,
312
312
  color: 'danger'
313
313
  });
314
+ Gn.create('dropdown', {
315
+ target: '.new-dropdown5',
316
+ onChange: function (val, txt, values) {
317
+ console.log('선택된 값은 [ ' + val + ' ]입니다.');
318
+ },
319
+ width: '300px',
320
+ data: [
321
+ { value: '1', cols: ['항목1', '카테고리A', '1000'] },
322
+ { value: '2', cols: ['항목2', '카테고리B', '2000'] },
323
+ { value: '3', cols: ['항목3', '카테고리C', '3000'] },
324
+ { value: '4', cols: ['항목4', '카테고리A', '4000'] },
325
+ { value: '5', cols: ['항목5', '카테고리B', '5000'] }
326
+ ]
327
+ });
314
328
  },
315
329
  Datagrid: function () {
316
330
  Gn.create('datagrid', {
@@ -1287,7 +1301,7 @@ const components = {
1287
1301
  },
1288
1302
  MenuButton: function () {
1289
1303
  Gn.create('menubutton', {
1290
- target: 'button[name=new-button]',
1304
+ target: '.new-button',
1291
1305
  size: 'normal',
1292
1306
  textSets: {
1293
1307
  buttonText: '메뉴버튼'
@@ -1319,8 +1333,33 @@ const components = {
1319
1333
  ]
1320
1334
  ]
1321
1335
  });
1336
+ // 다중 컬럼 예제
1322
1337
  Gn.create('menubutton', {
1323
- target: 'button[name=new-button2]',
1338
+ target: '.new-menubutton-cols',
1339
+ size: 'normal',
1340
+ textSets: {
1341
+ buttonText: '다중 컬럼 메뉴'
1342
+ },
1343
+ onSelect: function (menu) {
1344
+ console.log('선택된 메뉴는 ' + menu);
1345
+ },
1346
+ data: [
1347
+ {
1348
+ value: 'menu1',
1349
+ cols: ['item1', '1', '상세정보1']
1350
+ },
1351
+ {
1352
+ value: 'menu2',
1353
+ cols: ['item2', '2', '상세정보2']
1354
+ },
1355
+ {
1356
+ value: 'menu3',
1357
+ cols: ['item3', '3', '상세정보3']
1358
+ }
1359
+ ]
1360
+ });
1361
+ Gn.create('menubutton', {
1362
+ target: '.new-button2',
1324
1363
  style: 'simple',
1325
1364
  icon: 'list',
1326
1365
  data: [
@@ -1336,7 +1375,7 @@ const components = {
1336
1375
  });
1337
1376
  // 서브메뉴 테스트
1338
1377
  Gn.create('menubutton', {
1339
- target: 'button[name=new-button-submenu]',
1378
+ target: '.new-button-submenu',
1340
1379
  size: 'normal',
1341
1380
  textSets: {
1342
1381
  buttonText: '편집 메뉴'
@@ -1497,6 +1536,22 @@ const components = {
1497
1536
  targetCaption: '할당됨'
1498
1537
  }
1499
1538
  });
1539
+ Gn.create('picklist', {
1540
+ target: '.new-picklist-cols',
1541
+ data: {
1542
+ source: [
1543
+ { value: '항목1', cols: ['item1', '1', '상세정보1'] },
1544
+ { value: '항목2', cols: ['item2', '2', '상세정보2'] },
1545
+ { value: '항목3', cols: ['item3', '3', '상세정보3'] },
1546
+ { value: '항목4', cols: ['item4', '4', '상세정보4'] },
1547
+ { value: '항목5', cols: ['item5', '5', '상세정보5'] }
1548
+ ],
1549
+ target: []
1550
+ },
1551
+ direction: 'vertical',
1552
+ width: '500px',
1553
+ height: 150
1554
+ });
1500
1555
  },
1501
1556
  SortableList: function () {
1502
1557
  Gn.create('sortablelist', {