gnui 1.1.1 → 1.1.4
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 +15 -12
- package/dist/js/gnui.js +15 -12
- package/dist/js/gnui.min.js +1 -1
- package/package.json +1 -1
- package/styleguide/category/COLOR/index.html +1 -1
- package/styleguide/category/COMPONENT/Alert(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Bignumber/index.html +1 -1
- package/styleguide/category/COMPONENT/Breadcrumb/index.html +1 -1
- package/styleguide/category/COMPONENT/Calendar(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Card/index.html +1 -1
- package/styleguide/category/COMPONENT/Chart(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Datagrid(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Growl(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/JsonView(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Message(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Modal(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Pagination/index.html +1 -1
- package/styleguide/category/COMPONENT/Panel/index.html +1 -1
- package/styleguide/category/COMPONENT/Progressbar(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tab(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tagcloud(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Time(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tooltip(js)/index.html +1 -1
- package/styleguide/category/COMPONENT/Tree(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Button(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Checkbox/index.html +1 -1
- package/styleguide/category/CONTROLS/Colorpicker(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Datepicker(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Dropdown(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/File/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Control/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Field/index.html +1 -1
- package/styleguide/category/CONTROLS/Form/Plain/index.html +1 -1
- package/styleguide/category/CONTROLS/Input/index.html +1 -1
- package/styleguide/category/CONTROLS/MenuButton(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/MultiText(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Picklist(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Radio/index.html +1 -1
- package/styleguide/category/CONTROLS/Select/index.html +1 -1
- package/styleguide/category/CONTROLS/SelectButton(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Slider/index.html +1 -1
- package/styleguide/category/CONTROLS/Switch(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/SyntaxInput(js)/index.html +1 -1
- package/styleguide/category/CONTROLS/Textarea/index.html +1 -1
- package/styleguide/category/ELEMENTS/Box/index.html +1 -1
- package/styleguide/category/ELEMENTS/Icon/index.html +1 -1
- package/styleguide/category/ELEMENTS/Image/index.html +1 -1
- package/styleguide/category/ELEMENTS/List/index.html +1 -1
- package/styleguide/category/ELEMENTS/Table/index.html +1 -1
- package/styleguide/category/ELEMENTS/Tag/index.html +1 -1
- package/styleguide/category/ELEMENTS/Title/index.html +1 -1
- package/styleguide/category/LAYOUT/Container/index.html +1 -1
- package/styleguide/category/LAYOUT/Grid/index.html +1 -1
- package/styleguide/category/LAYOUT/Splitter(js)/index.html +1 -1
- package/styleguide/category/UTILITY/index.html +1 -1
- package/styleguide/category/Utils/index.html +1 -1
- package/styleguide/color.html +1 -1
- package/styleguide/index.html +1 -1
- package/styleguide/tag/javascript/index.html +1 -1
- package/styleguide/tag/v.0.1.0/index.html +1 -1
package/dist/js/gnui.esm.js
CHANGED
|
@@ -13714,9 +13714,10 @@ function commaNum(num) {
|
|
|
13714
13714
|
}
|
|
13715
13715
|
const JsonPath = jsonpath;
|
|
13716
13716
|
function interpolateURL(url, source) {
|
|
13717
|
-
let
|
|
13717
|
+
let _source = Object.assign({}, source);
|
|
13718
13718
|
let dmustach = new RegExp(/\{{([^{}]*)}}/gm);
|
|
13719
13719
|
let result = url.replace(dmustach, (match, offset, string) => {
|
|
13720
|
+
let _tmp = Object.assign({}, _source);
|
|
13720
13721
|
let _fields = match.replace(/\{{|\}}/gm, '');
|
|
13721
13722
|
if (startsWith(_fields, '$') && isObject(source.root)) {
|
|
13722
13723
|
_tmp = JsonPath.query(_tmp.root, _fields);
|
|
@@ -17376,15 +17377,7 @@ const apexOptions = [
|
|
|
17376
17377
|
'xaxis',
|
|
17377
17378
|
'yaxis'
|
|
17378
17379
|
];
|
|
17379
|
-
//
|
|
17380
|
-
const chartDefault = {
|
|
17381
|
-
chart: {
|
|
17382
|
-
toolbar: {
|
|
17383
|
-
show: false
|
|
17384
|
-
}
|
|
17385
|
-
}
|
|
17386
|
-
};
|
|
17387
|
-
// 타입별 추가 설정
|
|
17380
|
+
// 타입별 추가 설정 - overwrite 불가
|
|
17388
17381
|
const typesDefault = {
|
|
17389
17382
|
line: {
|
|
17390
17383
|
chart: {
|
|
@@ -17562,6 +17555,14 @@ class Chart extends GNCoreInstance {
|
|
|
17562
17555
|
},
|
|
17563
17556
|
};
|
|
17564
17557
|
this.$init(this, options);
|
|
17558
|
+
// 기본 설정
|
|
17559
|
+
this.chartDefault = {
|
|
17560
|
+
chart: {
|
|
17561
|
+
toolbar: {
|
|
17562
|
+
show: false
|
|
17563
|
+
}
|
|
17564
|
+
}
|
|
17565
|
+
};
|
|
17565
17566
|
}
|
|
17566
17567
|
template(config) {
|
|
17567
17568
|
const styles = {};
|
|
@@ -17590,7 +17591,7 @@ class Chart extends GNCoreInstance {
|
|
|
17590
17591
|
chartOptions[key] = value;
|
|
17591
17592
|
}
|
|
17592
17593
|
});
|
|
17593
|
-
const newOptions = merge(merge(chartOptions, typesDefault[this.$options.type] || {})
|
|
17594
|
+
const newOptions = merge(this.chartDefault, merge(chartOptions, typesDefault[this.$options.type] || {}));
|
|
17594
17595
|
if (!newOptions.theme) {
|
|
17595
17596
|
newOptions.theme = {
|
|
17596
17597
|
palette: 'palette4'
|
|
@@ -18571,6 +18572,7 @@ class Modal extends GNCoreInstance {
|
|
|
18571
18572
|
css(modal, 'left', getPositionX(modal, false));
|
|
18572
18573
|
css(modal, 'top', getPositionY(modal, false));
|
|
18573
18574
|
}
|
|
18575
|
+
this.$event(this, 'onOpen');
|
|
18574
18576
|
},
|
|
18575
18577
|
toggle: () => {
|
|
18576
18578
|
toggleClass(this.$el, 'is-minimized');
|
|
@@ -18596,7 +18598,8 @@ class Modal extends GNCoreInstance {
|
|
|
18596
18598
|
};
|
|
18597
18599
|
this.events = {
|
|
18598
18600
|
'onClose': true,
|
|
18599
|
-
'onConfirm': true
|
|
18601
|
+
'onConfirm': true,
|
|
18602
|
+
'onOpen': true
|
|
18600
18603
|
};
|
|
18601
18604
|
this.methods = {
|
|
18602
18605
|
close() {
|
package/dist/js/gnui.js
CHANGED
|
@@ -13780,9 +13780,10 @@
|
|
|
13780
13780
|
}
|
|
13781
13781
|
var JsonPath = jsonpath;
|
|
13782
13782
|
function interpolateURL(url, source) {
|
|
13783
|
-
var
|
|
13783
|
+
var _source = __assign({}, source);
|
|
13784
13784
|
var dmustach = new RegExp(/\{{([^{}]*)}}/gm);
|
|
13785
13785
|
var result = url.replace(dmustach, function (match, offset, string) {
|
|
13786
|
+
var _tmp = __assign({}, _source);
|
|
13786
13787
|
var _fields = match.replace(/\{{|\}}/gm, '');
|
|
13787
13788
|
if (startsWith(_fields, '$') && isObject(source.root)) {
|
|
13788
13789
|
_tmp = JsonPath.query(_tmp.root, _fields);
|
|
@@ -17559,15 +17560,7 @@
|
|
|
17559
17560
|
'xaxis',
|
|
17560
17561
|
'yaxis'
|
|
17561
17562
|
];
|
|
17562
|
-
//
|
|
17563
|
-
var chartDefault = {
|
|
17564
|
-
chart: {
|
|
17565
|
-
toolbar: {
|
|
17566
|
-
show: false
|
|
17567
|
-
}
|
|
17568
|
-
}
|
|
17569
|
-
};
|
|
17570
|
-
// 타입별 추가 설정
|
|
17563
|
+
// 타입별 추가 설정 - overwrite 불가
|
|
17571
17564
|
var typesDefault = {
|
|
17572
17565
|
line: {
|
|
17573
17566
|
chart: {
|
|
@@ -17747,6 +17740,14 @@
|
|
|
17747
17740
|
},
|
|
17748
17741
|
};
|
|
17749
17742
|
_this.$init(_this, options);
|
|
17743
|
+
// 기본 설정
|
|
17744
|
+
_this.chartDefault = {
|
|
17745
|
+
chart: {
|
|
17746
|
+
toolbar: {
|
|
17747
|
+
show: false
|
|
17748
|
+
}
|
|
17749
|
+
}
|
|
17750
|
+
};
|
|
17750
17751
|
return _this;
|
|
17751
17752
|
}
|
|
17752
17753
|
Chart.prototype.template = function (config) {
|
|
@@ -17776,7 +17777,7 @@
|
|
|
17776
17777
|
chartOptions[key] = value;
|
|
17777
17778
|
}
|
|
17778
17779
|
});
|
|
17779
|
-
var newOptions = merge(merge(chartOptions, typesDefault[this.$options.type] || {})
|
|
17780
|
+
var newOptions = merge(this.chartDefault, merge(chartOptions, typesDefault[this.$options.type] || {}));
|
|
17780
17781
|
if (!newOptions.theme) {
|
|
17781
17782
|
newOptions.theme = {
|
|
17782
17783
|
palette: 'palette4'
|
|
@@ -18789,6 +18790,7 @@
|
|
|
18789
18790
|
css(modal, 'left', getPositionX(modal, false));
|
|
18790
18791
|
css(modal, 'top', getPositionY(modal, false));
|
|
18791
18792
|
}
|
|
18793
|
+
_this.$event(_this, 'onOpen');
|
|
18792
18794
|
},
|
|
18793
18795
|
toggle: function () {
|
|
18794
18796
|
toggleClass(_this.$el, 'is-minimized');
|
|
@@ -18814,7 +18816,8 @@
|
|
|
18814
18816
|
};
|
|
18815
18817
|
_this.events = {
|
|
18816
18818
|
'onClose': true,
|
|
18817
|
-
'onConfirm': true
|
|
18819
|
+
'onConfirm': true,
|
|
18820
|
+
'onOpen': true
|
|
18818
18821
|
};
|
|
18819
18822
|
_this.methods = {
|
|
18820
18823
|
close: function () {
|