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.
Files changed (82) hide show
  1. package/dist/js/gnui.esm.js +40432 -0
  2. package/dist/js/gnui.js +40440 -0
  3. package/dist/js/gnui.min.js +23 -0
  4. package/dist/styles/default.css +1 -0
  5. package/dist/styles/gpi.css +1 -0
  6. package/dist/styles/green24.css +1 -0
  7. package/dist/styles/insights.css +1 -0
  8. package/dist/styles/nac.css +1 -0
  9. package/dist/styles/ztnac.css +1 -0
  10. package/package.json +1 -1
  11. package/styleguide/assets/components.js +1757 -0
  12. package/styleguide/assets/favicon.ico +0 -0
  13. package/styleguide/assets/guide.js +47 -0
  14. package/styleguide/assets/image.png +0 -0
  15. package/styleguide/assets/js/gnui.js +40440 -0
  16. package/styleguide/assets/js/gnui.min.js +23 -0
  17. package/styleguide/assets/okadia.css +121 -0
  18. package/styleguide/assets/styles/default.css +1 -0
  19. package/styleguide/assets/styles/gpi.css +1 -0
  20. package/styleguide/assets/styles/green24.css +1 -0
  21. package/styleguide/assets/styles/insights.css +1 -0
  22. package/styleguide/assets/styles/nac.css +1 -0
  23. package/styleguide/assets/styles/ztnac.css +1 -0
  24. package/styleguide/assets/theme.css +596 -0
  25. package/styleguide/category/COLOR/index.html +157 -0
  26. package/styleguide/category/COMPONENT/Alert(js)/index.html +419 -0
  27. package/styleguide/category/COMPONENT/Bignumber/index.html +270 -0
  28. package/styleguide/category/COMPONENT/Breadcrumb/index.html +325 -0
  29. package/styleguide/category/COMPONENT/Calendar(js)/index.html +243 -0
  30. package/styleguide/category/COMPONENT/Card/index.html +185 -0
  31. package/styleguide/category/COMPONENT/Chart(js)/index.html +556 -0
  32. package/styleguide/category/COMPONENT/Datagrid(js)/index.html +685 -0
  33. package/styleguide/category/COMPONENT/Datalist(js)/index.html +472 -0
  34. package/styleguide/category/COMPONENT/Growl(js)/index.html +352 -0
  35. package/styleguide/category/COMPONENT/JsonView(js)/index.html +1135 -0
  36. package/styleguide/category/COMPONENT/Loader(js)/index.html +296 -0
  37. package/styleguide/category/COMPONENT/MenuButton(js)/index.html +282 -0
  38. package/styleguide/category/COMPONENT/Message(js)/index.html +516 -0
  39. package/styleguide/category/COMPONENT/Modal(js)/index.html +445 -0
  40. package/styleguide/category/COMPONENT/Pagination(js)/index.html +446 -0
  41. package/styleguide/category/COMPONENT/Panel/index.html +327 -0
  42. package/styleguide/category/COMPONENT/Progressbar(js)/index.html +314 -0
  43. package/styleguide/category/COMPONENT/Tab(js)/index.html +474 -0
  44. package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +261 -0
  45. package/styleguide/category/COMPONENT/Tooltip(js)/index.html +413 -0
  46. package/styleguide/category/COMPONENT/Tree(js)/index.html +405 -0
  47. package/styleguide/category/CONTROLS/Button(js)/index.html +466 -0
  48. package/styleguide/category/CONTROLS/Checkbox/index.html +195 -0
  49. package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +286 -0
  50. package/styleguide/category/CONTROLS/Datepicker(js)/index.html +324 -0
  51. package/styleguide/category/CONTROLS/Dropdown(js)/index.html +1113 -0
  52. package/styleguide/category/CONTROLS/File/index.html +313 -0
  53. package/styleguide/category/CONTROLS/Form/Control/index.html +228 -0
  54. package/styleguide/category/CONTROLS/Form/Field/index.html +255 -0
  55. package/styleguide/category/CONTROLS/Form/Plain/index.html +194 -0
  56. package/styleguide/category/CONTROLS/Input/index.html +331 -0
  57. package/styleguide/category/CONTROLS/MultiText(js)/index.html +274 -0
  58. package/styleguide/category/CONTROLS/Picklist(js)/index.html +739 -0
  59. package/styleguide/category/CONTROLS/Radio/index.html +198 -0
  60. package/styleguide/category/CONTROLS/Select/index.html +457 -0
  61. package/styleguide/category/CONTROLS/SelectButton(js)/index.html +292 -0
  62. package/styleguide/category/CONTROLS/Slider/index.html +190 -0
  63. package/styleguide/category/CONTROLS/Switch(js)/index.html +346 -0
  64. package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +481 -0
  65. package/styleguide/category/CONTROLS/Textarea/index.html +186 -0
  66. package/styleguide/category/CONTROLS/Time(js)/index.html +264 -0
  67. package/styleguide/category/ELEMENTS/Box/index.html +171 -0
  68. package/styleguide/category/ELEMENTS/Icon/index.html +359 -0
  69. package/styleguide/category/ELEMENTS/Image/index.html +210 -0
  70. package/styleguide/category/ELEMENTS/List/index.html +393 -0
  71. package/styleguide/category/ELEMENTS/Table/index.html +480 -0
  72. package/styleguide/category/ELEMENTS/Tag/index.html +252 -0
  73. package/styleguide/category/ELEMENTS/Title/index.html +183 -0
  74. package/styleguide/category/LAYOUT/Container/index.html +232 -0
  75. package/styleguide/category/LAYOUT/Grid/index.html +397 -0
  76. package/styleguide/category/LAYOUT/Splitter(js)/index.html +276 -0
  77. package/styleguide/category/UTILITY/index.html +472 -0
  78. package/styleguide/category/Utils/index.html +338 -0
  79. package/styleguide/color.html +170 -0
  80. package/styleguide/index.html +170 -0
  81. package/styleguide/tag/javascript/index.html +7565 -0
  82. package/styleguide/tag/v.0.1.0/index.html +12646 -0
Binary file
@@ -0,0 +1,47 @@
1
+ Gn.ready(function () {
2
+ const theme = Gn.util.$('#ThemeSelector');
3
+ const themeFile = Gn.util.$('#ThemeFile');
4
+
5
+ // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
6
+ const changeTheme = function (theme) {
7
+ const stylepath = Gn.util.attr(themeFile, 'href');
8
+ const stylefile = stylepath.match(/[-_\w]+[.][\w]+$/i)[0];
9
+ Gn.util.attr(themeFile, 'href', stylepath.replace(stylefile, theme + '.css'));
10
+ const categorys = Gn.util.$$('.aigis-sidemenu a[href]');
11
+ Gn.util.each(categorys, function (x) {
12
+ const link = x.getAttribute('href').split('#')[0];
13
+ x.setAttribute('href', link + '#' + theme);
14
+ });
15
+ Gn.util.attr(Gn.util.$('.main-link'), 'href', Gn.util.attr(Gn.util.$('.main-link'), 'href').split('#')[0] + '#' + theme);
16
+ Gn.util.attr(Gn.util.$('.util-link'), 'href', Gn.util.attr(Gn.util.$('.util-link'), 'href').split('#')[0] + '#' + theme);
17
+ };
18
+
19
+ Gn.util.on(theme, 'change', function () {
20
+ location.hash = this.value;
21
+ });
22
+
23
+ Gn.util.on(window, 'hashchange', function () {
24
+ changeTheme(location.hash.substring(1));
25
+ });
26
+
27
+ if (location.hash) {
28
+ changeTheme(location.hash.substring(1));
29
+ Gn.util.val(theme, location.hash.substring(1));
30
+ }
31
+
32
+ Gn.util.on(Gn.util.$$('a[href]'), 'click', function (e) {
33
+ if (Gn.util.startsWith(e.currentTarget.getAttribute('href'), '#')) {
34
+ e.preventDefault();
35
+ }
36
+ });
37
+
38
+ const comppath = location.pathname.replace('/index.html', '').split('/').pop().replace('(js)', '');
39
+ if (components && components[comppath]) {
40
+ setTimeout(function () {
41
+ components[comppath]();
42
+ Gn.util.on('.js-guide', 'click', function () {
43
+ Gn.util.scrollTop(window, Gn.util.offset(Gn.util.prev(Gn.util.parent(Gn.util.$('.language-ejs')))).top - 100);
44
+ });
45
+ }, 300);
46
+ }
47
+ });
Binary file