@easyquery/ui 7.4.0 → 7.4.1-rc02
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/easyquery.ui.css +27 -28
- package/dist/assets/css/upgrade.css +27 -28
- package/dist/easyquery.ui.cjs.js +17 -12
- package/dist/easyquery.ui.esm.js +17 -12
- package/dist/types/views/adv_search_view.d.ts +1 -1
- package/dist/types/views/data_filter_view.d.ts +1 -1
- package/dist/types/views/report_view.d.ts +1 -1
- package/dist/types/views/view.d.ts +1 -1
- package/package.json +2 -2
|
@@ -4692,7 +4692,7 @@ input.eqjs-invalid {
|
|
|
4692
4692
|
padding: 0;
|
|
4693
4693
|
position: absolute;
|
|
4694
4694
|
right: 0;
|
|
4695
|
-
display: flex
|
|
4695
|
+
/*display: flex;*/
|
|
4696
4696
|
align-items: center;
|
|
4697
4697
|
justify-content: flex-end;
|
|
4698
4698
|
/*border: 1px solid red;*/
|
|
@@ -5073,16 +5073,6 @@ input.eqjs-invalid {
|
|
|
5073
5073
|
color: #ffffff;
|
|
5074
5074
|
}
|
|
5075
5075
|
|
|
5076
|
-
/* Debug styles */
|
|
5077
|
-
|
|
5078
|
-
/*.eqjs-qc-row {*/
|
|
5079
|
-
/* border: 1px solid blue;*/
|
|
5080
|
-
/*}*/
|
|
5081
|
-
|
|
5082
|
-
/*.eqjs-qc-expr-block a, .eqjs-qc-captionelement a {*/
|
|
5083
|
-
/* border: 1px solid red!important;*/
|
|
5084
|
-
/*}*/
|
|
5085
|
-
|
|
5086
5076
|
/* Mobile */
|
|
5087
5077
|
.eqjs-qc-row.eqjs-mobile, .eqjs-qp-row.eqjs-mobile {
|
|
5088
5078
|
padding: 4px 8px;
|
|
@@ -5097,13 +5087,38 @@ input.eqjs-invalid {
|
|
|
5097
5087
|
top: 6px;
|
|
5098
5088
|
}
|
|
5099
5089
|
|
|
5090
|
+
.eqjs-menu-scrollDiv.eqjs-mobile {
|
|
5091
|
+
height: calc(100vh - 50px)!important;
|
|
5092
|
+
max-height: calc(100vh - 50px)!important;
|
|
5093
|
+
}
|
|
5094
|
+
|
|
5095
|
+
.eqjs-qp-row.eqjs-mobile {
|
|
5096
|
+
padding: 0 10px;
|
|
5097
|
+
margin: 4px 4px 0 4px;
|
|
5098
|
+
}
|
|
5099
|
+
|
|
5100
|
+
.eqjs-qp-row-group.eqjs-mobile {
|
|
5101
|
+
padding: 4px 10px!important;
|
|
5102
|
+
}
|
|
5103
|
+
|
|
5104
|
+
.eqjs-qp-condition-buttonsBlock.eqjs-mobile {
|
|
5105
|
+
top: 0!important;
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
.eqjs-cb-addrow.eqjs-mobile a, .eqjs-sb-addrow.eqjs-mobile a {
|
|
5109
|
+
background: none!important;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
.eqjs-qc-row.eqjs-mobile {
|
|
5113
|
+
border-style: solid;
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5100
5116
|
/* Legacy */
|
|
5101
5117
|
.eqjs-addrow > a:hover {
|
|
5102
5118
|
text-decoration: none;
|
|
5103
5119
|
border-bottom: 1px dashed;
|
|
5104
5120
|
}
|
|
5105
5121
|
|
|
5106
|
-
/* Legacy */
|
|
5107
5122
|
.eqjs-qc-captionelement {
|
|
5108
5123
|
border: 1px solid transparent;
|
|
5109
5124
|
padding: 2px;
|
|
@@ -5114,25 +5129,9 @@ input.eqjs-invalid {
|
|
|
5114
5129
|
width: auto;
|
|
5115
5130
|
}
|
|
5116
5131
|
|
|
5117
|
-
.eqjs-qp-row {
|
|
5118
|
-
padding: 0 10px!important;
|
|
5119
|
-
}
|
|
5120
5132
|
.eqjs-qp-condition-buttonsBlock, .eqjs-facets-total-buttons {
|
|
5121
5133
|
margin-right: 10px;
|
|
5122
5134
|
}
|
|
5123
|
-
|
|
5124
|
-
.eqjs-qp-row.eqjs-mobile {
|
|
5125
|
-
border-style: solid!important;
|
|
5126
|
-
margin: 0 4px;
|
|
5127
|
-
}
|
|
5128
|
-
|
|
5129
|
-
.eqjs-qp-condition-buttonsBlock.eqjs-mobile {
|
|
5130
|
-
top: 0!important;
|
|
5131
|
-
}
|
|
5132
|
-
|
|
5133
|
-
.eqjs-cb-addrow.eqjs-mobile a, .eqjs-sb-addrow.eqjs-mobile a {
|
|
5134
|
-
background: none!important;
|
|
5135
|
-
}
|
|
5136
5135
|
|
|
5137
5136
|
/*setting to all page */
|
|
5138
5137
|
#eqv-main{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
padding: 0;
|
|
15
15
|
position: absolute;
|
|
16
16
|
right: 0;
|
|
17
|
-
display: flex
|
|
17
|
+
/*display: flex;*/
|
|
18
18
|
align-items: center;
|
|
19
19
|
justify-content: flex-end;
|
|
20
20
|
/*border: 1px solid red;*/
|
|
@@ -393,16 +393,6 @@
|
|
|
393
393
|
color: #ffffff;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
/* Debug styles */
|
|
397
|
-
|
|
398
|
-
/*.eqjs-qc-row {*/
|
|
399
|
-
/* border: 1px solid blue;*/
|
|
400
|
-
/*}*/
|
|
401
|
-
|
|
402
|
-
/*.eqjs-qc-expr-block a, .eqjs-qc-captionelement a {*/
|
|
403
|
-
/* border: 1px solid red!important;*/
|
|
404
|
-
/*}*/
|
|
405
|
-
|
|
406
396
|
/* Mobile */
|
|
407
397
|
.eqjs-qc-row.eqjs-mobile, .eqjs-qp-row.eqjs-mobile {
|
|
408
398
|
padding: 4px 8px;
|
|
@@ -417,13 +407,38 @@
|
|
|
417
407
|
top: 6px;
|
|
418
408
|
}
|
|
419
409
|
|
|
410
|
+
.eqjs-menu-scrollDiv.eqjs-mobile {
|
|
411
|
+
height: calc(100vh - 50px)!important;
|
|
412
|
+
max-height: calc(100vh - 50px)!important;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.eqjs-qp-row.eqjs-mobile {
|
|
416
|
+
padding: 0 10px;
|
|
417
|
+
margin: 4px 4px 0 4px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.eqjs-qp-row-group.eqjs-mobile {
|
|
421
|
+
padding: 4px 10px!important;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.eqjs-qp-condition-buttonsBlock.eqjs-mobile {
|
|
425
|
+
top: 0!important;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.eqjs-cb-addrow.eqjs-mobile a, .eqjs-sb-addrow.eqjs-mobile a {
|
|
429
|
+
background: none!important;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.eqjs-qc-row.eqjs-mobile {
|
|
433
|
+
border-style: solid;
|
|
434
|
+
}
|
|
435
|
+
|
|
420
436
|
/* Legacy */
|
|
421
437
|
.eqjs-addrow > a:hover {
|
|
422
438
|
text-decoration: none;
|
|
423
439
|
border-bottom: 1px dashed;
|
|
424
440
|
}
|
|
425
441
|
|
|
426
|
-
/* Legacy */
|
|
427
442
|
.eqjs-qc-captionelement {
|
|
428
443
|
border: 1px solid transparent;
|
|
429
444
|
padding: 2px;
|
|
@@ -434,22 +449,6 @@
|
|
|
434
449
|
width: auto;
|
|
435
450
|
}
|
|
436
451
|
|
|
437
|
-
.eqjs-qp-row {
|
|
438
|
-
padding: 0 10px!important;
|
|
439
|
-
}
|
|
440
452
|
.eqjs-qp-condition-buttonsBlock, .eqjs-facets-total-buttons {
|
|
441
453
|
margin-right: 10px;
|
|
442
454
|
}
|
|
443
|
-
|
|
444
|
-
.eqjs-qp-row.eqjs-mobile {
|
|
445
|
-
border-style: solid!important;
|
|
446
|
-
margin: 0 4px;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.eqjs-qp-condition-buttonsBlock.eqjs-mobile {
|
|
450
|
-
top: 0!important;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.eqjs-cb-addrow.eqjs-mobile a, .eqjs-sb-addrow.eqjs-mobile a {
|
|
454
|
-
background: none!important;
|
|
455
|
-
}
|
package/dist/easyquery.ui.cjs.js
CHANGED
|
@@ -8439,7 +8439,7 @@ class FilterBar extends core.Widget {
|
|
|
8439
8439
|
ui.domel(this.headerTextElement)
|
|
8440
8440
|
.text(text)
|
|
8441
8441
|
.attr('title', text);
|
|
8442
|
-
if (!query || query.isEmptyConditions()) { //empty query, don't show query panel and arrow, show link in header
|
|
8442
|
+
if (!query || query.isEmptyConditions()) { //empty query, don't show query panel and arrow, show a link in the header
|
|
8443
8443
|
ui.domel(this.headerTextElement).hide();
|
|
8444
8444
|
ui.domel(this.headerLinkElement).show();
|
|
8445
8445
|
if (!ui.domel(this.qpBlock).isVisible()) {
|
|
@@ -8465,6 +8465,7 @@ class FilterBar extends core.Widget {
|
|
|
8465
8465
|
this.textResize();
|
|
8466
8466
|
}
|
|
8467
8467
|
render() {
|
|
8468
|
+
this.slot.innerHTML = '';
|
|
8468
8469
|
ui.domel(this.slot)
|
|
8469
8470
|
.addClass(`${this.cssPrefix}-container`)
|
|
8470
8471
|
.addClass(getMobileCssClass())
|
|
@@ -8543,14 +8544,13 @@ class FilterBar extends core.Widget {
|
|
|
8543
8544
|
});
|
|
8544
8545
|
this.updateHeader();
|
|
8545
8546
|
this.queryPanel.refresh();
|
|
8546
|
-
setTimeout(() => this.textResize(), 500);
|
|
8547
8547
|
}
|
|
8548
8548
|
refreshCore() {
|
|
8549
8549
|
this.clear();
|
|
8550
8550
|
this.render();
|
|
8551
8551
|
}
|
|
8552
8552
|
clear() {
|
|
8553
|
-
this.slot.innerHTML =
|
|
8553
|
+
this.slot.innerHTML = '';
|
|
8554
8554
|
}
|
|
8555
8555
|
applyFilter() {
|
|
8556
8556
|
if (this.options.applyFilterCallback) {
|
|
@@ -8577,7 +8577,12 @@ class FilterBar extends core.Widget {
|
|
|
8577
8577
|
attachQueryObserver() {
|
|
8578
8578
|
const query = this.getContext().getQuery();
|
|
8579
8579
|
this.queryEventCallbackId = query.addChangedCallback(event => {
|
|
8580
|
-
this.
|
|
8580
|
+
if (this.headerElement) {
|
|
8581
|
+
this.updateHeader();
|
|
8582
|
+
}
|
|
8583
|
+
else {
|
|
8584
|
+
this.render();
|
|
8585
|
+
}
|
|
8581
8586
|
});
|
|
8582
8587
|
}
|
|
8583
8588
|
detachQueryObserver() {
|
|
@@ -12389,7 +12394,7 @@ class View {
|
|
|
12389
12394
|
this.domRoots = this.domRoots.concat(options.shadowRoots);
|
|
12390
12395
|
this.viewOptions = this.initOptions(options);
|
|
12391
12396
|
this.resultOptions = core$1.utils.assignDeep(this.defaultViewOptions.result, this.viewOptions.result);
|
|
12392
|
-
this.
|
|
12397
|
+
this.createWidgets(this.viewOptions);
|
|
12393
12398
|
this.context.init(this.viewOptions);
|
|
12394
12399
|
this.initDone();
|
|
12395
12400
|
}
|
|
@@ -12417,7 +12422,7 @@ class View {
|
|
|
12417
12422
|
options.widgets.exportWidget.enableExport = this.enableExport;
|
|
12418
12423
|
return options;
|
|
12419
12424
|
}
|
|
12420
|
-
|
|
12425
|
+
createWidgets(options) {
|
|
12421
12426
|
let queryPanel = "QueryPanel";
|
|
12422
12427
|
let columnsPanel = "ColumnsPanel";
|
|
12423
12428
|
let entitiesPanel = "EntitiesPanel";
|
|
@@ -12959,8 +12964,8 @@ class AdvancedSearchView extends View {
|
|
|
12959
12964
|
}
|
|
12960
12965
|
return options;
|
|
12961
12966
|
}
|
|
12962
|
-
|
|
12963
|
-
super.
|
|
12967
|
+
createWidgets(options) {
|
|
12968
|
+
super.createWidgets(options);
|
|
12964
12969
|
let exportClass = "eqjs-export";
|
|
12965
12970
|
let queryContentInputId = "QueryContentJson";
|
|
12966
12971
|
let clearQueryButtonId = "ClearQueryButton";
|
|
@@ -13575,8 +13580,8 @@ class DataFilterView extends View {
|
|
|
13575
13580
|
this.context.addEventListener('ready', this.fetchData.bind(this));
|
|
13576
13581
|
return options;
|
|
13577
13582
|
}
|
|
13578
|
-
|
|
13579
|
-
super.
|
|
13583
|
+
createWidgets(options) {
|
|
13584
|
+
super.createWidgets(options);
|
|
13580
13585
|
if (this.sortingBarWidget) {
|
|
13581
13586
|
this.context.getQuery().addChangedCallback((ev) => {
|
|
13582
13587
|
const edata = ev.data;
|
|
@@ -13754,8 +13759,8 @@ class ReportView extends View {
|
|
|
13754
13759
|
});
|
|
13755
13760
|
}, 100);
|
|
13756
13761
|
}
|
|
13757
|
-
|
|
13758
|
-
super.
|
|
13762
|
+
createWidgets(options) {
|
|
13763
|
+
super.createWidgets(options);
|
|
13759
13764
|
let clearReportButton = "ClearReportButton";
|
|
13760
13765
|
let newReportButton = "NewReportButton";
|
|
13761
13766
|
let loadReportButton = "LoadReportButton";
|
package/dist/easyquery.ui.esm.js
CHANGED
|
@@ -8437,7 +8437,7 @@ class FilterBar extends Widget {
|
|
|
8437
8437
|
domel(this.headerTextElement)
|
|
8438
8438
|
.text(text)
|
|
8439
8439
|
.attr('title', text);
|
|
8440
|
-
if (!query || query.isEmptyConditions()) { //empty query, don't show query panel and arrow, show link in header
|
|
8440
|
+
if (!query || query.isEmptyConditions()) { //empty query, don't show query panel and arrow, show a link in the header
|
|
8441
8441
|
domel(this.headerTextElement).hide();
|
|
8442
8442
|
domel(this.headerLinkElement).show();
|
|
8443
8443
|
if (!domel(this.qpBlock).isVisible()) {
|
|
@@ -8463,6 +8463,7 @@ class FilterBar extends Widget {
|
|
|
8463
8463
|
this.textResize();
|
|
8464
8464
|
}
|
|
8465
8465
|
render() {
|
|
8466
|
+
this.slot.innerHTML = '';
|
|
8466
8467
|
domel(this.slot)
|
|
8467
8468
|
.addClass(`${this.cssPrefix}-container`)
|
|
8468
8469
|
.addClass(getMobileCssClass())
|
|
@@ -8541,14 +8542,13 @@ class FilterBar extends Widget {
|
|
|
8541
8542
|
});
|
|
8542
8543
|
this.updateHeader();
|
|
8543
8544
|
this.queryPanel.refresh();
|
|
8544
|
-
setTimeout(() => this.textResize(), 500);
|
|
8545
8545
|
}
|
|
8546
8546
|
refreshCore() {
|
|
8547
8547
|
this.clear();
|
|
8548
8548
|
this.render();
|
|
8549
8549
|
}
|
|
8550
8550
|
clear() {
|
|
8551
|
-
this.slot.innerHTML =
|
|
8551
|
+
this.slot.innerHTML = '';
|
|
8552
8552
|
}
|
|
8553
8553
|
applyFilter() {
|
|
8554
8554
|
if (this.options.applyFilterCallback) {
|
|
@@ -8575,7 +8575,12 @@ class FilterBar extends Widget {
|
|
|
8575
8575
|
attachQueryObserver() {
|
|
8576
8576
|
const query = this.getContext().getQuery();
|
|
8577
8577
|
this.queryEventCallbackId = query.addChangedCallback(event => {
|
|
8578
|
-
this.
|
|
8578
|
+
if (this.headerElement) {
|
|
8579
|
+
this.updateHeader();
|
|
8580
|
+
}
|
|
8581
|
+
else {
|
|
8582
|
+
this.render();
|
|
8583
|
+
}
|
|
8579
8584
|
});
|
|
8580
8585
|
}
|
|
8581
8586
|
detachQueryObserver() {
|
|
@@ -12387,7 +12392,7 @@ class View {
|
|
|
12387
12392
|
this.domRoots = this.domRoots.concat(options.shadowRoots);
|
|
12388
12393
|
this.viewOptions = this.initOptions(options);
|
|
12389
12394
|
this.resultOptions = utils.assignDeep(this.defaultViewOptions.result, this.viewOptions.result);
|
|
12390
|
-
this.
|
|
12395
|
+
this.createWidgets(this.viewOptions);
|
|
12391
12396
|
this.context.init(this.viewOptions);
|
|
12392
12397
|
this.initDone();
|
|
12393
12398
|
}
|
|
@@ -12415,7 +12420,7 @@ class View {
|
|
|
12415
12420
|
options.widgets.exportWidget.enableExport = this.enableExport;
|
|
12416
12421
|
return options;
|
|
12417
12422
|
}
|
|
12418
|
-
|
|
12423
|
+
createWidgets(options) {
|
|
12419
12424
|
let queryPanel = "QueryPanel";
|
|
12420
12425
|
let columnsPanel = "ColumnsPanel";
|
|
12421
12426
|
let entitiesPanel = "EntitiesPanel";
|
|
@@ -12957,8 +12962,8 @@ class AdvancedSearchView extends View {
|
|
|
12957
12962
|
}
|
|
12958
12963
|
return options;
|
|
12959
12964
|
}
|
|
12960
|
-
|
|
12961
|
-
super.
|
|
12965
|
+
createWidgets(options) {
|
|
12966
|
+
super.createWidgets(options);
|
|
12962
12967
|
let exportClass = "eqjs-export";
|
|
12963
12968
|
let queryContentInputId = "QueryContentJson";
|
|
12964
12969
|
let clearQueryButtonId = "ClearQueryButton";
|
|
@@ -13573,8 +13578,8 @@ class DataFilterView extends View {
|
|
|
13573
13578
|
this.context.addEventListener('ready', this.fetchData.bind(this));
|
|
13574
13579
|
return options;
|
|
13575
13580
|
}
|
|
13576
|
-
|
|
13577
|
-
super.
|
|
13581
|
+
createWidgets(options) {
|
|
13582
|
+
super.createWidgets(options);
|
|
13578
13583
|
if (this.sortingBarWidget) {
|
|
13579
13584
|
this.context.getQuery().addChangedCallback((ev) => {
|
|
13580
13585
|
const edata = ev.data;
|
|
@@ -13752,8 +13757,8 @@ class ReportView extends View {
|
|
|
13752
13757
|
});
|
|
13753
13758
|
}, 100);
|
|
13754
13759
|
}
|
|
13755
|
-
|
|
13756
|
-
super.
|
|
13760
|
+
createWidgets(options) {
|
|
13761
|
+
super.createWidgets(options);
|
|
13757
13762
|
let clearReportButton = "ClearReportButton";
|
|
13758
13763
|
let newReportButton = "NewReportButton";
|
|
13759
13764
|
let loadReportButton = "LoadReportButton";
|
|
@@ -45,7 +45,7 @@ export declare class AdvancedSearchView extends View {
|
|
|
45
45
|
constructor();
|
|
46
46
|
protected refreshQueryList(): void;
|
|
47
47
|
protected initOptions(options: EqViewOptions): EqViewOptions;
|
|
48
|
-
protected
|
|
48
|
+
protected createWidgets(options?: EqViewOptions): void;
|
|
49
49
|
protected initDone(): void;
|
|
50
50
|
/**
|
|
51
51
|
* Sends current query to the backend.
|
|
@@ -6,7 +6,7 @@ import { View } from './view';
|
|
|
6
6
|
export declare class DataFilterView extends View {
|
|
7
7
|
constructor();
|
|
8
8
|
protected initOptions(options?: EqViewOptions): EqViewOptions;
|
|
9
|
-
protected
|
|
9
|
+
protected createWidgets(options?: EqViewOptions): void;
|
|
10
10
|
/**
|
|
11
11
|
* Obsolete. Left for backward compatibility.
|
|
12
12
|
* Use fetchData() instead
|
|
@@ -45,7 +45,7 @@ export declare class ReportView extends View {
|
|
|
45
45
|
constructor();
|
|
46
46
|
protected initOptions(options?: ReportViewOptions): ReportViewOptions;
|
|
47
47
|
protected initDone(): void;
|
|
48
|
-
protected
|
|
48
|
+
protected createWidgets(options?: ReportViewOptions): void;
|
|
49
49
|
private _reportSaveTemplate;
|
|
50
50
|
/**
|
|
51
51
|
* Creates a new report.
|
|
@@ -31,7 +31,7 @@ export declare abstract class View {
|
|
|
31
31
|
getDialogService(): DialogService;
|
|
32
32
|
init(options: EqViewOptions): void;
|
|
33
33
|
protected initOptions(options?: EqViewOptions): EqViewOptions;
|
|
34
|
-
protected
|
|
34
|
+
protected createWidgets(options?: EqViewOptions): void;
|
|
35
35
|
protected initDone(): void;
|
|
36
36
|
protected resolveElement(elementOrId: string | HTMLElement): HTMLElement;
|
|
37
37
|
protected resolveElementsByClassName(className: string): Element[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyquery/ui",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1-rc02",
|
|
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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"bugs": "https://korzh.com/support",
|
|
31
31
|
"license": "LGPL-3.0",
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@easyquery/core": "^7.4.
|
|
33
|
+
"@easyquery/core": "^7.4.1-rc02"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|