@easyquery/ui 7.2.5-rc01 → 7.2.5-rc03
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/assets/css/aggr-settings.css +244 -0
- package/dist/assets/css/easychart.css +73 -0
- package/dist/assets/css/easyfacets.css +280 -0
- package/dist/assets/css/easyquery-mobile.css +267 -0
- package/dist/assets/css/easyquery.css +1712 -0
- package/dist/assets/css/easyquery.ui.css +5292 -0
- package/dist/assets/css/eq-icons-default.css +140 -0
- package/dist/assets/css/eq-icons-files.css +138 -0
- package/dist/assets/css/eqview.css +596 -0
- package/dist/assets/css/images/ExportCSV.png +0 -0
- package/dist/assets/css/images/ExportExel.png +0 -0
- package/dist/assets/css/images/aggr_settings_cancel.png +0 -0
- package/dist/assets/css/images/aggr_settings_func.png +0 -0
- package/dist/assets/css/images/aggr_settings_group.png +0 -0
- package/dist/assets/css/images/ajax-loader.gif +0 -0
- package/dist/assets/css/images/chart-settings.png +0 -0
- package/dist/assets/css/images/checkbox_checked.png +0 -0
- package/dist/assets/css/images/checkbox_unchecked.png +0 -0
- package/dist/assets/css/images/clearButton.png +0 -0
- package/dist/assets/css/images/colbtn-aggrfunc.png +0 -0
- package/dist/assets/css/images/condbtn-addcondition.png +0 -0
- package/dist/assets/css/images/condbtn-addpredicate.png +0 -0
- package/dist/assets/css/images/condbtn-delete.png +0 -0
- package/dist/assets/css/images/condbtn-disabled.png +0 -0
- package/dist/assets/css/images/condbtn-enabled.png +0 -0
- package/dist/assets/css/images/condbtn-menu.png +0 -0
- package/dist/assets/css/images/condbtn-param.png +0 -0
- package/dist/assets/css/images/eqjs-ep-add-columns-hover.png +0 -0
- package/dist/assets/css/images/eqjs-ep-add-columns.png +0 -0
- package/dist/assets/css/images/eqjs-ep-add-cond-hover.png +0 -0
- package/dist/assets/css/images/eqjs-ep-add-cond.png +0 -0
- package/dist/assets/css/images/eqjs-ep-deselect-all-hover.png +0 -0
- package/dist/assets/css/images/eqjs-ep-deselect-all.png +0 -0
- package/dist/assets/css/images/eqjs-ep-select-all-hover.png +0 -0
- package/dist/assets/css/images/eqjs-ep-select-all.png +0 -0
- package/dist/assets/css/images/eqjs-fb-header-icon.png +0 -0
- package/dist/assets/css/images/execute.png +0 -0
- package/dist/assets/css/images/loadButton.png +0 -0
- package/dist/assets/css/images/logo.png +0 -0
- package/dist/assets/css/images/node-close.png +0 -0
- package/dist/assets/css/images/node-open.png +0 -0
- package/dist/assets/css/images/saveButton.png +0 -0
- package/dist/assets/css/images/sorting_asc.png +0 -0
- package/dist/assets/css/images/sorting_desc.png +0 -0
- package/dist/assets/css/images/sorting_none.png +0 -0
- package/dist/assets/css/images/ve-loader.gif +0 -0
- package/dist/easyquery.ui.cjs.js +81 -85
- package/dist/easyquery.ui.esm.js +81 -86
- package/dist/types/public_api.d.ts +1 -0
- package/dist/types/views/html_data_filter_view.d.ts +3 -3
- package/dist/types/views/view.d.ts +3 -3
- package/dist/types/widgets/charts/chart_widget.d.ts +3 -4
- package/dist/types/widgets/charts/chart_widget_chartjs.d.ts +3 -4
- package/dist/types/widgets/charts/chart_widget_google.d.ts +3 -4
- package/package.json +2 -2
package/dist/easyquery.ui.cjs.js
CHANGED
|
@@ -1677,7 +1677,8 @@ class PopupMenu {
|
|
|
1677
1677
|
showItemIds: false
|
|
1678
1678
|
};
|
|
1679
1679
|
if (options) {
|
|
1680
|
-
core$1.utils.
|
|
1680
|
+
core$1.utils.assign(this.options, options);
|
|
1681
|
+
core$1.utils.assign(this.options.buttons, options.buttons);
|
|
1681
1682
|
}
|
|
1682
1683
|
if (this.options.hideButtons) {
|
|
1683
1684
|
this.options.submitOnBlur = true;
|
|
@@ -8887,10 +8888,7 @@ class ManageDrillDownWidget extends core.Widget {
|
|
|
8887
8888
|
core$1.utils.moveArrayItem(attr.operators, opIdx, 0);
|
|
8888
8889
|
}
|
|
8889
8890
|
}, null);
|
|
8890
|
-
this.ddQuery =
|
|
8891
|
-
parent: query,
|
|
8892
|
-
context: this.context
|
|
8893
|
-
});
|
|
8891
|
+
this.ddQuery = query.createSubQuery();
|
|
8894
8892
|
const dds = this.context.getQuery().getDrillDowns();
|
|
8895
8893
|
if (dds.length) {
|
|
8896
8894
|
const dd = dds[0];
|
|
@@ -8975,63 +8973,6 @@ exports.FacetType = void 0;
|
|
|
8975
8973
|
FacetType["PivotTable"] = "PIVOT_TABLE";
|
|
8976
8974
|
})(exports.FacetType || (exports.FacetType = {}));
|
|
8977
8975
|
|
|
8978
|
-
class ExportDialog {
|
|
8979
|
-
constructor(context) {
|
|
8980
|
-
this.context = context;
|
|
8981
|
-
this.promise = null;
|
|
8982
|
-
}
|
|
8983
|
-
show(defFormat = null) {
|
|
8984
|
-
if (!this.promise) {
|
|
8985
|
-
const formats = this.context.getExportFormats();
|
|
8986
|
-
if (formats.length == 0)
|
|
8987
|
-
throw Error("No exporter has been registered.");
|
|
8988
|
-
defFormat = defFormat || formats[0];
|
|
8989
|
-
this.promise = new Promise((resolve, reject) => {
|
|
8990
|
-
const ds = this.context.getServices().getService('DialogService');
|
|
8991
|
-
const body = ui.domel('div')
|
|
8992
|
-
.addClass('kdlg-form-section')
|
|
8993
|
-
.addChild('div', b => b
|
|
8994
|
-
.addClass('kfrm-form')
|
|
8995
|
-
.addChild('div', b => b
|
|
8996
|
-
.addClass('kfrm-fields col-a-1 label-align-right')
|
|
8997
|
-
.addChild('label', b => b
|
|
8998
|
-
.addClass('kdlg-form-label', 'kflex-20')
|
|
8999
|
-
.attr('for', 'export_format')
|
|
9000
|
-
.addText(core.i18n.getText('ExportDlgFmtLabel')))
|
|
9001
|
-
.addChild('div', b => b
|
|
9002
|
-
.addClass('kfrm-select')
|
|
9003
|
-
.addChild('select', b => {
|
|
9004
|
-
b
|
|
9005
|
-
.attr('name', 'export_format')
|
|
9006
|
-
.id('exportFormat');
|
|
9007
|
-
for (const format of this.context.getExportFormats()) {
|
|
9008
|
-
b.addOption({
|
|
9009
|
-
value: format,
|
|
9010
|
-
title: core.i18n.getText(format) || format,
|
|
9011
|
-
selected: defFormat == format
|
|
9012
|
-
});
|
|
9013
|
-
}
|
|
9014
|
-
}))))
|
|
9015
|
-
.toDOM();
|
|
9016
|
-
ds.open({
|
|
9017
|
-
title: core.i18n.getText('ExportDlgTitle'),
|
|
9018
|
-
body: body,
|
|
9019
|
-
onSubmit: () => {
|
|
9020
|
-
const format = body.querySelector('#exportFormat').value;
|
|
9021
|
-
this.context.exportResult({
|
|
9022
|
-
format: format,
|
|
9023
|
-
success: resolve,
|
|
9024
|
-
error: reject
|
|
9025
|
-
});
|
|
9026
|
-
return true;
|
|
9027
|
-
}
|
|
9028
|
-
});
|
|
9029
|
-
});
|
|
9030
|
-
}
|
|
9031
|
-
return this.promise.finally(() => this.promise = null);
|
|
9032
|
-
}
|
|
9033
|
-
}
|
|
9034
|
-
|
|
9035
8976
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
9036
8977
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9037
8978
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9266,12 +9207,11 @@ class ChartWidget extends core.Widget {
|
|
|
9266
9207
|
return 'eqjs-chart';
|
|
9267
9208
|
}
|
|
9268
9209
|
/**
|
|
9269
|
-
|
|
9270
|
-
* @param
|
|
9271
|
-
* @param provider The provider.
|
|
9210
|
+
Initializes a new instance of the `ChartWidget` class
|
|
9211
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9272
9212
|
*/
|
|
9273
|
-
constructor(
|
|
9274
|
-
super(
|
|
9213
|
+
constructor(slotElement) {
|
|
9214
|
+
super(slotElement);
|
|
9275
9215
|
this.chartType = exports.ChartType.Pie;
|
|
9276
9216
|
this.supportedChartTypes = [];
|
|
9277
9217
|
this.dataTable = null;
|
|
@@ -9288,7 +9228,7 @@ class ChartWidget extends core.Widget {
|
|
|
9288
9228
|
position: 'right'
|
|
9289
9229
|
}
|
|
9290
9230
|
};
|
|
9291
|
-
this.element =
|
|
9231
|
+
this.element = slotElement;
|
|
9292
9232
|
this.group = core.WidgetGroup.Result;
|
|
9293
9233
|
}
|
|
9294
9234
|
/**
|
|
@@ -9611,12 +9551,11 @@ class ChartWidget extends core.Widget {
|
|
|
9611
9551
|
|
|
9612
9552
|
class ChartJsWidget extends ChartWidget {
|
|
9613
9553
|
/**
|
|
9614
|
-
|
|
9615
|
-
* @param
|
|
9616
|
-
* @param provider The provider.
|
|
9554
|
+
Initializes a new instance of the `ChartJsWidget` class
|
|
9555
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9617
9556
|
*/
|
|
9618
|
-
constructor(
|
|
9619
|
-
super(
|
|
9557
|
+
constructor(slotElement) {
|
|
9558
|
+
super(slotElement);
|
|
9620
9559
|
this.colors = [
|
|
9621
9560
|
'#4dc9f6',
|
|
9622
9561
|
'#f67019',
|
|
@@ -9776,12 +9715,11 @@ class ChartJsWidget extends ChartWidget {
|
|
|
9776
9715
|
|
|
9777
9716
|
class GoogleChartWidget extends ChartWidget {
|
|
9778
9717
|
/**
|
|
9779
|
-
|
|
9780
|
-
* @param
|
|
9781
|
-
* @param provider The provider.
|
|
9718
|
+
Initializes a new instance of the `GoogleChartWidget` class
|
|
9719
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9782
9720
|
*/
|
|
9783
|
-
constructor(
|
|
9784
|
-
super(
|
|
9721
|
+
constructor(slotElement) {
|
|
9722
|
+
super(slotElement);
|
|
9785
9723
|
this.hasChartTypes = [
|
|
9786
9724
|
exports.ChartType.Column,
|
|
9787
9725
|
exports.ChartType.Bar,
|
|
@@ -10868,6 +10806,63 @@ class FacetContainer extends core.Widget {
|
|
|
10868
10806
|
}
|
|
10869
10807
|
}
|
|
10870
10808
|
|
|
10809
|
+
class ExportDialog {
|
|
10810
|
+
constructor(context) {
|
|
10811
|
+
this.context = context;
|
|
10812
|
+
this.promise = null;
|
|
10813
|
+
}
|
|
10814
|
+
show(defFormat = null) {
|
|
10815
|
+
if (!this.promise) {
|
|
10816
|
+
const formats = this.context.getExportFormats();
|
|
10817
|
+
if (formats.length == 0)
|
|
10818
|
+
throw Error("No exporter has been registered.");
|
|
10819
|
+
defFormat = defFormat || formats[0];
|
|
10820
|
+
this.promise = new Promise((resolve, reject) => {
|
|
10821
|
+
const ds = this.context.getServices().getService('DialogService');
|
|
10822
|
+
const body = ui.domel('div')
|
|
10823
|
+
.addClass('kdlg-form-section')
|
|
10824
|
+
.addChild('div', b => b
|
|
10825
|
+
.addClass('kfrm-form')
|
|
10826
|
+
.addChild('div', b => b
|
|
10827
|
+
.addClass('kfrm-fields col-a-1 label-align-right')
|
|
10828
|
+
.addChild('label', b => b
|
|
10829
|
+
.addClass('kdlg-form-label', 'kflex-20')
|
|
10830
|
+
.attr('for', 'export_format')
|
|
10831
|
+
.addText(core.i18n.getText('ExportDlgFmtLabel')))
|
|
10832
|
+
.addChild('div', b => b
|
|
10833
|
+
.addClass('kfrm-select')
|
|
10834
|
+
.addChild('select', b => {
|
|
10835
|
+
b
|
|
10836
|
+
.attr('name', 'export_format')
|
|
10837
|
+
.id('exportFormat');
|
|
10838
|
+
for (const format of this.context.getExportFormats()) {
|
|
10839
|
+
b.addOption({
|
|
10840
|
+
value: format,
|
|
10841
|
+
title: core.i18n.getText(format) || format,
|
|
10842
|
+
selected: defFormat == format
|
|
10843
|
+
});
|
|
10844
|
+
}
|
|
10845
|
+
}))))
|
|
10846
|
+
.toDOM();
|
|
10847
|
+
ds.open({
|
|
10848
|
+
title: core.i18n.getText('ExportDlgTitle'),
|
|
10849
|
+
body: body,
|
|
10850
|
+
onSubmit: () => {
|
|
10851
|
+
const format = body.querySelector('#exportFormat').value;
|
|
10852
|
+
this.context.exportResult({
|
|
10853
|
+
format: format,
|
|
10854
|
+
success: resolve,
|
|
10855
|
+
error: reject
|
|
10856
|
+
});
|
|
10857
|
+
return true;
|
|
10858
|
+
}
|
|
10859
|
+
});
|
|
10860
|
+
});
|
|
10861
|
+
}
|
|
10862
|
+
return this.promise.finally(() => this.promise = null);
|
|
10863
|
+
}
|
|
10864
|
+
}
|
|
10865
|
+
|
|
10871
10866
|
class ResultFacetsPanel extends FacetContainer {
|
|
10872
10867
|
constructor(slot) {
|
|
10873
10868
|
super(slot);
|
|
@@ -12437,7 +12432,7 @@ class View {
|
|
|
12437
12432
|
}
|
|
12438
12433
|
/**
|
|
12439
12434
|
* Creates the widget that represents Chart Widget.
|
|
12440
|
-
* @param
|
|
12435
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
12441
12436
|
* @returns the created Widget object.
|
|
12442
12437
|
*/
|
|
12443
12438
|
createChartWidget(slotElement) {
|
|
@@ -12449,8 +12444,8 @@ class View {
|
|
|
12449
12444
|
}
|
|
12450
12445
|
}
|
|
12451
12446
|
/**
|
|
12452
|
-
* Creates the widget that represents Grid
|
|
12453
|
-
* @param
|
|
12447
|
+
* Creates the widget that represents Result Grid.
|
|
12448
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
12454
12449
|
* @returns the created Widget object.
|
|
12455
12450
|
*/
|
|
12456
12451
|
createResultGridWidget(slotElement) {
|
|
@@ -13371,12 +13366,12 @@ class HtmlDataFilterView extends DataFilterView {
|
|
|
13371
13366
|
super();
|
|
13372
13367
|
}
|
|
13373
13368
|
/**
|
|
13374
|
-
* Creates the widget that represents Grid
|
|
13375
|
-
* @param
|
|
13369
|
+
* Creates the widget that represents Result Grid.
|
|
13370
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
13376
13371
|
* @returns the created Widget object.
|
|
13377
13372
|
*/
|
|
13378
|
-
createResultGridWidget(
|
|
13379
|
-
return new EqHtmlGrid(
|
|
13373
|
+
createResultGridWidget(slotElement) {
|
|
13374
|
+
return new EqHtmlGrid(slotElement);
|
|
13380
13375
|
}
|
|
13381
13376
|
/**
|
|
13382
13377
|
* Obsolete. Left for backward compatibility.
|
|
@@ -14417,6 +14412,7 @@ exports.EqHtmlGrid = EqHtmlGrid;
|
|
|
14417
14412
|
exports.ExportDialog = ExportDialog;
|
|
14418
14413
|
exports.ExportWidget = ExportWidget;
|
|
14419
14414
|
exports.ExpressionRenderer = ExpressionRenderer;
|
|
14415
|
+
exports.FacetContainer = FacetContainer;
|
|
14420
14416
|
exports.FilterBar = FilterBar;
|
|
14421
14417
|
exports.GoogleChartWidget = GoogleChartWidget;
|
|
14422
14418
|
exports.Grid = Grid;
|
package/dist/easyquery.ui.esm.js
CHANGED
|
@@ -1675,7 +1675,8 @@ class PopupMenu {
|
|
|
1675
1675
|
showItemIds: false
|
|
1676
1676
|
};
|
|
1677
1677
|
if (options) {
|
|
1678
|
-
utils.
|
|
1678
|
+
utils.assign(this.options, options);
|
|
1679
|
+
utils.assign(this.options.buttons, options.buttons);
|
|
1679
1680
|
}
|
|
1680
1681
|
if (this.options.hideButtons) {
|
|
1681
1682
|
this.options.submitOnBlur = true;
|
|
@@ -8885,10 +8886,7 @@ class ManageDrillDownWidget extends Widget {
|
|
|
8885
8886
|
utils.moveArrayItem(attr.operators, opIdx, 0);
|
|
8886
8887
|
}
|
|
8887
8888
|
}, null);
|
|
8888
|
-
this.ddQuery =
|
|
8889
|
-
parent: query,
|
|
8890
|
-
context: this.context
|
|
8891
|
-
});
|
|
8889
|
+
this.ddQuery = query.createSubQuery();
|
|
8892
8890
|
const dds = this.context.getQuery().getDrillDowns();
|
|
8893
8891
|
if (dds.length) {
|
|
8894
8892
|
const dd = dds[0];
|
|
@@ -8973,63 +8971,6 @@ var FacetType;
|
|
|
8973
8971
|
FacetType["PivotTable"] = "PIVOT_TABLE";
|
|
8974
8972
|
})(FacetType || (FacetType = {}));
|
|
8975
8973
|
|
|
8976
|
-
class ExportDialog {
|
|
8977
|
-
constructor(context) {
|
|
8978
|
-
this.context = context;
|
|
8979
|
-
this.promise = null;
|
|
8980
|
-
}
|
|
8981
|
-
show(defFormat = null) {
|
|
8982
|
-
if (!this.promise) {
|
|
8983
|
-
const formats = this.context.getExportFormats();
|
|
8984
|
-
if (formats.length == 0)
|
|
8985
|
-
throw Error("No exporter has been registered.");
|
|
8986
|
-
defFormat = defFormat || formats[0];
|
|
8987
|
-
this.promise = new Promise((resolve, reject) => {
|
|
8988
|
-
const ds = this.context.getServices().getService('DialogService');
|
|
8989
|
-
const body = domel('div')
|
|
8990
|
-
.addClass('kdlg-form-section')
|
|
8991
|
-
.addChild('div', b => b
|
|
8992
|
-
.addClass('kfrm-form')
|
|
8993
|
-
.addChild('div', b => b
|
|
8994
|
-
.addClass('kfrm-fields col-a-1 label-align-right')
|
|
8995
|
-
.addChild('label', b => b
|
|
8996
|
-
.addClass('kdlg-form-label', 'kflex-20')
|
|
8997
|
-
.attr('for', 'export_format')
|
|
8998
|
-
.addText(i18n$1.getText('ExportDlgFmtLabel')))
|
|
8999
|
-
.addChild('div', b => b
|
|
9000
|
-
.addClass('kfrm-select')
|
|
9001
|
-
.addChild('select', b => {
|
|
9002
|
-
b
|
|
9003
|
-
.attr('name', 'export_format')
|
|
9004
|
-
.id('exportFormat');
|
|
9005
|
-
for (const format of this.context.getExportFormats()) {
|
|
9006
|
-
b.addOption({
|
|
9007
|
-
value: format,
|
|
9008
|
-
title: i18n$1.getText(format) || format,
|
|
9009
|
-
selected: defFormat == format
|
|
9010
|
-
});
|
|
9011
|
-
}
|
|
9012
|
-
}))))
|
|
9013
|
-
.toDOM();
|
|
9014
|
-
ds.open({
|
|
9015
|
-
title: i18n$1.getText('ExportDlgTitle'),
|
|
9016
|
-
body: body,
|
|
9017
|
-
onSubmit: () => {
|
|
9018
|
-
const format = body.querySelector('#exportFormat').value;
|
|
9019
|
-
this.context.exportResult({
|
|
9020
|
-
format: format,
|
|
9021
|
-
success: resolve,
|
|
9022
|
-
error: reject
|
|
9023
|
-
});
|
|
9024
|
-
return true;
|
|
9025
|
-
}
|
|
9026
|
-
});
|
|
9027
|
-
});
|
|
9028
|
-
}
|
|
9029
|
-
return this.promise.finally(() => this.promise = null);
|
|
9030
|
-
}
|
|
9031
|
-
}
|
|
9032
|
-
|
|
9033
8974
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
9034
8975
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9035
8976
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9264,12 +9205,11 @@ class ChartWidget extends Widget {
|
|
|
9264
9205
|
return 'eqjs-chart';
|
|
9265
9206
|
}
|
|
9266
9207
|
/**
|
|
9267
|
-
|
|
9268
|
-
* @param
|
|
9269
|
-
* @param provider The provider.
|
|
9208
|
+
Initializes a new instance of the `ChartWidget` class
|
|
9209
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9270
9210
|
*/
|
|
9271
|
-
constructor(
|
|
9272
|
-
super(
|
|
9211
|
+
constructor(slotElement) {
|
|
9212
|
+
super(slotElement);
|
|
9273
9213
|
this.chartType = ChartType.Pie;
|
|
9274
9214
|
this.supportedChartTypes = [];
|
|
9275
9215
|
this.dataTable = null;
|
|
@@ -9286,7 +9226,7 @@ class ChartWidget extends Widget {
|
|
|
9286
9226
|
position: 'right'
|
|
9287
9227
|
}
|
|
9288
9228
|
};
|
|
9289
|
-
this.element =
|
|
9229
|
+
this.element = slotElement;
|
|
9290
9230
|
this.group = WidgetGroup.Result;
|
|
9291
9231
|
}
|
|
9292
9232
|
/**
|
|
@@ -9609,12 +9549,11 @@ class ChartWidget extends Widget {
|
|
|
9609
9549
|
|
|
9610
9550
|
class ChartJsWidget extends ChartWidget {
|
|
9611
9551
|
/**
|
|
9612
|
-
|
|
9613
|
-
* @param
|
|
9614
|
-
* @param provider The provider.
|
|
9552
|
+
Initializes a new instance of the `ChartJsWidget` class
|
|
9553
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9615
9554
|
*/
|
|
9616
|
-
constructor(
|
|
9617
|
-
super(
|
|
9555
|
+
constructor(slotElement) {
|
|
9556
|
+
super(slotElement);
|
|
9618
9557
|
this.colors = [
|
|
9619
9558
|
'#4dc9f6',
|
|
9620
9559
|
'#f67019',
|
|
@@ -9774,12 +9713,11 @@ class ChartJsWidget extends ChartWidget {
|
|
|
9774
9713
|
|
|
9775
9714
|
class GoogleChartWidget extends ChartWidget {
|
|
9776
9715
|
/**
|
|
9777
|
-
|
|
9778
|
-
* @param
|
|
9779
|
-
* @param provider The provider.
|
|
9716
|
+
Initializes a new instance of the `GoogleChartWidget` class
|
|
9717
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9780
9718
|
*/
|
|
9781
|
-
constructor(
|
|
9782
|
-
super(
|
|
9719
|
+
constructor(slotElement) {
|
|
9720
|
+
super(slotElement);
|
|
9783
9721
|
this.hasChartTypes = [
|
|
9784
9722
|
ChartType.Column,
|
|
9785
9723
|
ChartType.Bar,
|
|
@@ -10866,6 +10804,63 @@ class FacetContainer extends Widget {
|
|
|
10866
10804
|
}
|
|
10867
10805
|
}
|
|
10868
10806
|
|
|
10807
|
+
class ExportDialog {
|
|
10808
|
+
constructor(context) {
|
|
10809
|
+
this.context = context;
|
|
10810
|
+
this.promise = null;
|
|
10811
|
+
}
|
|
10812
|
+
show(defFormat = null) {
|
|
10813
|
+
if (!this.promise) {
|
|
10814
|
+
const formats = this.context.getExportFormats();
|
|
10815
|
+
if (formats.length == 0)
|
|
10816
|
+
throw Error("No exporter has been registered.");
|
|
10817
|
+
defFormat = defFormat || formats[0];
|
|
10818
|
+
this.promise = new Promise((resolve, reject) => {
|
|
10819
|
+
const ds = this.context.getServices().getService('DialogService');
|
|
10820
|
+
const body = domel('div')
|
|
10821
|
+
.addClass('kdlg-form-section')
|
|
10822
|
+
.addChild('div', b => b
|
|
10823
|
+
.addClass('kfrm-form')
|
|
10824
|
+
.addChild('div', b => b
|
|
10825
|
+
.addClass('kfrm-fields col-a-1 label-align-right')
|
|
10826
|
+
.addChild('label', b => b
|
|
10827
|
+
.addClass('kdlg-form-label', 'kflex-20')
|
|
10828
|
+
.attr('for', 'export_format')
|
|
10829
|
+
.addText(i18n$1.getText('ExportDlgFmtLabel')))
|
|
10830
|
+
.addChild('div', b => b
|
|
10831
|
+
.addClass('kfrm-select')
|
|
10832
|
+
.addChild('select', b => {
|
|
10833
|
+
b
|
|
10834
|
+
.attr('name', 'export_format')
|
|
10835
|
+
.id('exportFormat');
|
|
10836
|
+
for (const format of this.context.getExportFormats()) {
|
|
10837
|
+
b.addOption({
|
|
10838
|
+
value: format,
|
|
10839
|
+
title: i18n$1.getText(format) || format,
|
|
10840
|
+
selected: defFormat == format
|
|
10841
|
+
});
|
|
10842
|
+
}
|
|
10843
|
+
}))))
|
|
10844
|
+
.toDOM();
|
|
10845
|
+
ds.open({
|
|
10846
|
+
title: i18n$1.getText('ExportDlgTitle'),
|
|
10847
|
+
body: body,
|
|
10848
|
+
onSubmit: () => {
|
|
10849
|
+
const format = body.querySelector('#exportFormat').value;
|
|
10850
|
+
this.context.exportResult({
|
|
10851
|
+
format: format,
|
|
10852
|
+
success: resolve,
|
|
10853
|
+
error: reject
|
|
10854
|
+
});
|
|
10855
|
+
return true;
|
|
10856
|
+
}
|
|
10857
|
+
});
|
|
10858
|
+
});
|
|
10859
|
+
}
|
|
10860
|
+
return this.promise.finally(() => this.promise = null);
|
|
10861
|
+
}
|
|
10862
|
+
}
|
|
10863
|
+
|
|
10869
10864
|
class ResultFacetsPanel extends FacetContainer {
|
|
10870
10865
|
constructor(slot) {
|
|
10871
10866
|
super(slot);
|
|
@@ -12435,7 +12430,7 @@ class View {
|
|
|
12435
12430
|
}
|
|
12436
12431
|
/**
|
|
12437
12432
|
* Creates the widget that represents Chart Widget.
|
|
12438
|
-
* @param
|
|
12433
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
12439
12434
|
* @returns the created Widget object.
|
|
12440
12435
|
*/
|
|
12441
12436
|
createChartWidget(slotElement) {
|
|
@@ -12447,8 +12442,8 @@ class View {
|
|
|
12447
12442
|
}
|
|
12448
12443
|
}
|
|
12449
12444
|
/**
|
|
12450
|
-
* Creates the widget that represents Grid
|
|
12451
|
-
* @param
|
|
12445
|
+
* Creates the widget that represents Result Grid.
|
|
12446
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
12452
12447
|
* @returns the created Widget object.
|
|
12453
12448
|
*/
|
|
12454
12449
|
createResultGridWidget(slotElement) {
|
|
@@ -13369,12 +13364,12 @@ class HtmlDataFilterView extends DataFilterView {
|
|
|
13369
13364
|
super();
|
|
13370
13365
|
}
|
|
13371
13366
|
/**
|
|
13372
|
-
* Creates the widget that represents Grid
|
|
13373
|
-
* @param
|
|
13367
|
+
* Creates the widget that represents Result Grid.
|
|
13368
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
13374
13369
|
* @returns the created Widget object.
|
|
13375
13370
|
*/
|
|
13376
|
-
createResultGridWidget(
|
|
13377
|
-
return new EqHtmlGrid(
|
|
13371
|
+
createResultGridWidget(slotElement) {
|
|
13372
|
+
return new EqHtmlGrid(slotElement);
|
|
13378
13373
|
}
|
|
13379
13374
|
/**
|
|
13380
13375
|
* Obsolete. Left for backward compatibility.
|
|
@@ -14380,4 +14375,4 @@ if (!Array.prototype.findIndex) {
|
|
|
14380
14375
|
};
|
|
14381
14376
|
}
|
|
14382
14377
|
|
|
14383
|
-
export { AddRowRenderer, AdvancedSearchView, AggrFuncColumnRendererCB, AggrFuncColumnRendererCP, AggrSettingsDialog, AggrSettingsRenderer, AggregationBar, AttrColumnRendererCB, AttrColumnRendererCP, AttributeExpressionRenderer, BaseElementRenderer, ChartFacet, ChartJsWidget, ChartType, ChartWidget, ColumnAction, ColumnRendererCB, ColumnRendererCP, ColumnsBar, ColumnsPanel, ConditionAction, ConditionGroupRenderer, ConditionGroupRowRenderer, ConditionRenderer, ConstColumnRendererCP, CustomListExpressionRenderer, CustomSqlColumnRendererCP, DataFilterView, DataTableFacet, DateTimeExpressionRenderer, DomDropDownElementBuilder, DropDownRenderer, EasyGridWidget, EntitiesPanel, EqHtmlGrid, ExportDialog, ExportWidget, ExpressionRenderer, FacetType, FilterBar, GoogleChartWidget, Grid, HtmlContentWidget, HtmlDataFilterView, InputExpressionRenderer, ListExpressionRenderer, ManageDrillDownWidget, OperatorRenderer, PivotTableFacet, PopupMenu, ProcessWidget, QPEditablePart, QueryPanel, ReportView, ResultFacet, ResultFacetsPanel, SimpleConditionRenderer, SortingBar, SqlListExpressionRenderer, StatementPanel, SubQueryExpressionRenderer, TextRenderer, View, browserUtils, dropdown };
|
|
14378
|
+
export { AddRowRenderer, AdvancedSearchView, AggrFuncColumnRendererCB, AggrFuncColumnRendererCP, AggrSettingsDialog, AggrSettingsRenderer, AggregationBar, AttrColumnRendererCB, AttrColumnRendererCP, AttributeExpressionRenderer, BaseElementRenderer, ChartFacet, ChartJsWidget, ChartType, ChartWidget, ColumnAction, ColumnRendererCB, ColumnRendererCP, ColumnsBar, ColumnsPanel, ConditionAction, ConditionGroupRenderer, ConditionGroupRowRenderer, ConditionRenderer, ConstColumnRendererCP, CustomListExpressionRenderer, CustomSqlColumnRendererCP, DataFilterView, DataTableFacet, DateTimeExpressionRenderer, DomDropDownElementBuilder, DropDownRenderer, EasyGridWidget, EntitiesPanel, EqHtmlGrid, ExportDialog, ExportWidget, ExpressionRenderer, FacetContainer, FacetType, FilterBar, GoogleChartWidget, Grid, HtmlContentWidget, HtmlDataFilterView, InputExpressionRenderer, ListExpressionRenderer, ManageDrillDownWidget, OperatorRenderer, PivotTableFacet, PopupMenu, ProcessWidget, QPEditablePart, QueryPanel, ReportView, ResultFacet, ResultFacetsPanel, SimpleConditionRenderer, SortingBar, SqlListExpressionRenderer, StatementPanel, SubQueryExpressionRenderer, TextRenderer, View, browserUtils, dropdown };
|
|
@@ -12,6 +12,7 @@ export * from './widgets/statement_panel';
|
|
|
12
12
|
export * from './widgets/widget_options';
|
|
13
13
|
export * from './widgets/process_widget';
|
|
14
14
|
export * from './widgets/manage_drilldown_widget';
|
|
15
|
+
export * from './widgets/facet_container';
|
|
15
16
|
export * from './widgets/result_facets_panel';
|
|
16
17
|
export * from './widgets/export_widget';
|
|
17
18
|
export * from './widgets/aggregation_bar';
|
|
@@ -6,11 +6,11 @@ import { DataFilterView } from "./data_filter_view";
|
|
|
6
6
|
export declare class HtmlDataFilterView extends DataFilterView {
|
|
7
7
|
constructor();
|
|
8
8
|
/**
|
|
9
|
-
* Creates the widget that represents Grid
|
|
10
|
-
* @param
|
|
9
|
+
* Creates the widget that represents Result Grid.
|
|
10
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
11
11
|
* @returns the created Widget object.
|
|
12
12
|
*/
|
|
13
|
-
protected createResultGridWidget(
|
|
13
|
+
protected createResultGridWidget(slotElement: HTMLElement): Widget;
|
|
14
14
|
/**
|
|
15
15
|
* Obsolete. Left for backward compatibility.
|
|
16
16
|
* Use fetchData() instead
|
|
@@ -63,13 +63,13 @@ export declare abstract class View {
|
|
|
63
63
|
protected hideResultSpinner(): void;
|
|
64
64
|
/**
|
|
65
65
|
* Creates the widget that represents Chart Widget.
|
|
66
|
-
* @param
|
|
66
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
67
67
|
* @returns the created Widget object.
|
|
68
68
|
*/
|
|
69
69
|
protected createChartWidget(slotElement: HTMLElement): Widget;
|
|
70
70
|
/**
|
|
71
|
-
* Creates the widget that represents Grid
|
|
72
|
-
* @param
|
|
71
|
+
* Creates the widget that represents Result Grid.
|
|
72
|
+
* @param slotElement The HTMLElement to place the created widget in.
|
|
73
73
|
* @returns the created Widget object.
|
|
74
74
|
*/
|
|
75
75
|
protected createResultGridWidget(slotElement: HTMLElement): Widget;
|
|
@@ -20,11 +20,10 @@ export declare abstract class ChartWidget extends Widget {
|
|
|
20
20
|
protected options: ChartWidgetOptions;
|
|
21
21
|
protected get cssPrefix(): string;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
* @param
|
|
25
|
-
* @param provider The provider.
|
|
23
|
+
Initializes a new instance of the `ChartWidget` class
|
|
24
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
26
25
|
*/
|
|
27
|
-
constructor(
|
|
26
|
+
constructor(slotElement: HTMLElement);
|
|
28
27
|
/**
|
|
29
28
|
* Initialize widget.
|
|
30
29
|
* @param context The context.
|
|
@@ -3,11 +3,10 @@ import { ChartType } from './chart_type';
|
|
|
3
3
|
export declare class ChartJsWidget extends ChartWidget {
|
|
4
4
|
private colors;
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
* @param
|
|
8
|
-
* @param provider The provider.
|
|
6
|
+
Initializes a new instance of the `ChartJsWidget` class
|
|
7
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
9
8
|
*/
|
|
10
|
-
constructor(
|
|
9
|
+
constructor(slotElement: HTMLElement);
|
|
11
10
|
getWidgetType(): string;
|
|
12
11
|
private chartLabels;
|
|
13
12
|
private chartColumns;
|
|
@@ -4,11 +4,10 @@ export declare class GoogleChartWidget extends ChartWidget {
|
|
|
4
4
|
protected googleDataView: any;
|
|
5
5
|
protected hasChartTypes: ChartType[];
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
* @param
|
|
9
|
-
* @param provider The provider.
|
|
7
|
+
Initializes a new instance of the `GoogleChartWidget` class
|
|
8
|
+
* @param slotElement - an HTML element we should place our widget in.
|
|
10
9
|
*/
|
|
11
|
-
constructor(
|
|
10
|
+
constructor(slotElement: HTMLElement);
|
|
12
11
|
getWidgetType(): string;
|
|
13
12
|
protected canDraw(): boolean;
|
|
14
13
|
static hasGoogleCharts(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyquery/ui",
|
|
3
|
-
"version": "7.2.5-
|
|
3
|
+
"version": "7.2.5-rc03",
|
|
4
4
|
"description": "EasyQuery.JS Community UI widgets",
|
|
5
5
|
"types": "./dist/types/public_api.d.ts",
|
|
6
6
|
"main": "./dist/easyquery.ui.cjs.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@easydata/core": "^1.4.21",
|
|
33
33
|
"@easydata/ui": "^1.4.21",
|
|
34
|
-
"@easyquery/core": "^7.2.5-
|
|
34
|
+
"@easyquery/core": "^7.2.5-rc03"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist",
|