@easyquery/ui 7.4.1-rc01 → 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/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() {
|
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() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easyquery/ui",
|
|
3
|
-
"version": "7.4.1-
|
|
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.1-
|
|
33
|
+
"@easyquery/core": "^7.4.1-rc02"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|