gnui 1.2.13 → 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.
- package/dist/js/gnui.esm.js +40432 -0
- package/dist/js/gnui.js +40440 -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 +40440 -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 +324 -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 +7565 -0
- 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
|