@easyquery/ui 7.4.0 → 7.4.1-rc01

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.
@@ -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
- }
@@ -8577,7 +8577,7 @@ class FilterBar extends core.Widget {
8577
8577
  attachQueryObserver() {
8578
8578
  const query = this.getContext().getQuery();
8579
8579
  this.queryEventCallbackId = query.addChangedCallback(event => {
8580
- this.updateHeader();
8580
+ this.render();
8581
8581
  });
8582
8582
  }
8583
8583
  detachQueryObserver() {
@@ -12389,7 +12389,7 @@ class View {
12389
12389
  this.domRoots = this.domRoots.concat(options.shadowRoots);
12390
12390
  this.viewOptions = this.initOptions(options);
12391
12391
  this.resultOptions = core$1.utils.assignDeep(this.defaultViewOptions.result, this.viewOptions.result);
12392
- this.initWidgets(this.viewOptions);
12392
+ this.createWidgets(this.viewOptions);
12393
12393
  this.context.init(this.viewOptions);
12394
12394
  this.initDone();
12395
12395
  }
@@ -12417,7 +12417,7 @@ class View {
12417
12417
  options.widgets.exportWidget.enableExport = this.enableExport;
12418
12418
  return options;
12419
12419
  }
12420
- initWidgets(options) {
12420
+ createWidgets(options) {
12421
12421
  let queryPanel = "QueryPanel";
12422
12422
  let columnsPanel = "ColumnsPanel";
12423
12423
  let entitiesPanel = "EntitiesPanel";
@@ -12959,8 +12959,8 @@ class AdvancedSearchView extends View {
12959
12959
  }
12960
12960
  return options;
12961
12961
  }
12962
- initWidgets(options) {
12963
- super.initWidgets(options);
12962
+ createWidgets(options) {
12963
+ super.createWidgets(options);
12964
12964
  let exportClass = "eqjs-export";
12965
12965
  let queryContentInputId = "QueryContentJson";
12966
12966
  let clearQueryButtonId = "ClearQueryButton";
@@ -13575,8 +13575,8 @@ class DataFilterView extends View {
13575
13575
  this.context.addEventListener('ready', this.fetchData.bind(this));
13576
13576
  return options;
13577
13577
  }
13578
- initWidgets(options) {
13579
- super.initWidgets(options);
13578
+ createWidgets(options) {
13579
+ super.createWidgets(options);
13580
13580
  if (this.sortingBarWidget) {
13581
13581
  this.context.getQuery().addChangedCallback((ev) => {
13582
13582
  const edata = ev.data;
@@ -13754,8 +13754,8 @@ class ReportView extends View {
13754
13754
  });
13755
13755
  }, 100);
13756
13756
  }
13757
- initWidgets(options) {
13758
- super.initWidgets(options);
13757
+ createWidgets(options) {
13758
+ super.createWidgets(options);
13759
13759
  let clearReportButton = "ClearReportButton";
13760
13760
  let newReportButton = "NewReportButton";
13761
13761
  let loadReportButton = "LoadReportButton";
@@ -8575,7 +8575,7 @@ class FilterBar extends Widget {
8575
8575
  attachQueryObserver() {
8576
8576
  const query = this.getContext().getQuery();
8577
8577
  this.queryEventCallbackId = query.addChangedCallback(event => {
8578
- this.updateHeader();
8578
+ this.render();
8579
8579
  });
8580
8580
  }
8581
8581
  detachQueryObserver() {
@@ -12387,7 +12387,7 @@ class View {
12387
12387
  this.domRoots = this.domRoots.concat(options.shadowRoots);
12388
12388
  this.viewOptions = this.initOptions(options);
12389
12389
  this.resultOptions = utils.assignDeep(this.defaultViewOptions.result, this.viewOptions.result);
12390
- this.initWidgets(this.viewOptions);
12390
+ this.createWidgets(this.viewOptions);
12391
12391
  this.context.init(this.viewOptions);
12392
12392
  this.initDone();
12393
12393
  }
@@ -12415,7 +12415,7 @@ class View {
12415
12415
  options.widgets.exportWidget.enableExport = this.enableExport;
12416
12416
  return options;
12417
12417
  }
12418
- initWidgets(options) {
12418
+ createWidgets(options) {
12419
12419
  let queryPanel = "QueryPanel";
12420
12420
  let columnsPanel = "ColumnsPanel";
12421
12421
  let entitiesPanel = "EntitiesPanel";
@@ -12957,8 +12957,8 @@ class AdvancedSearchView extends View {
12957
12957
  }
12958
12958
  return options;
12959
12959
  }
12960
- initWidgets(options) {
12961
- super.initWidgets(options);
12960
+ createWidgets(options) {
12961
+ super.createWidgets(options);
12962
12962
  let exportClass = "eqjs-export";
12963
12963
  let queryContentInputId = "QueryContentJson";
12964
12964
  let clearQueryButtonId = "ClearQueryButton";
@@ -13573,8 +13573,8 @@ class DataFilterView extends View {
13573
13573
  this.context.addEventListener('ready', this.fetchData.bind(this));
13574
13574
  return options;
13575
13575
  }
13576
- initWidgets(options) {
13577
- super.initWidgets(options);
13576
+ createWidgets(options) {
13577
+ super.createWidgets(options);
13578
13578
  if (this.sortingBarWidget) {
13579
13579
  this.context.getQuery().addChangedCallback((ev) => {
13580
13580
  const edata = ev.data;
@@ -13752,8 +13752,8 @@ class ReportView extends View {
13752
13752
  });
13753
13753
  }, 100);
13754
13754
  }
13755
- initWidgets(options) {
13756
- super.initWidgets(options);
13755
+ createWidgets(options) {
13756
+ super.createWidgets(options);
13757
13757
  let clearReportButton = "ClearReportButton";
13758
13758
  let newReportButton = "NewReportButton";
13759
13759
  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 initWidgets(options?: EqViewOptions): void;
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 initWidgets(options?: EqViewOptions): void;
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 initWidgets(options?: ReportViewOptions): void;
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 initWidgets(options?: EqViewOptions): void;
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.0",
3
+ "version": "7.4.1-rc01",
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.0"
33
+ "@easyquery/core": "^7.4.1-rc01"
34
34
  },
35
35
  "files": [
36
36
  "dist",