@easyquery/ui 7.4.1-rc02 → 7.4.1-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/easyquery.ui.cjs.js
CHANGED
|
@@ -7838,6 +7838,7 @@ class QueryPanel extends core.Widget {
|
|
|
7838
7838
|
this.slot.innerHTML = '';
|
|
7839
7839
|
}
|
|
7840
7840
|
getEntitiesMenu() {
|
|
7841
|
+
this.checkEntitiesMenu();
|
|
7841
7842
|
return this.entitiesMenu;
|
|
7842
7843
|
}
|
|
7843
7844
|
getConditionMenu() {
|
|
@@ -8024,7 +8025,7 @@ class QueryPanel extends core.Widget {
|
|
|
8024
8025
|
}
|
|
8025
8026
|
render() {
|
|
8026
8027
|
try {
|
|
8027
|
-
this.
|
|
8028
|
+
this.checkEntitiesMenu();
|
|
8028
8029
|
this.createConditionMenus();
|
|
8029
8030
|
this.createLinkTypeMenu();
|
|
8030
8031
|
this.rootContainer = ui.domel('div', this.slot)
|
|
@@ -8184,9 +8185,14 @@ class QueryPanel extends core.Widget {
|
|
|
8184
8185
|
core$1.utils.assign(options, this.options.menuOptions);
|
|
8185
8186
|
return new PopupMenu(options);
|
|
8186
8187
|
}
|
|
8188
|
+
checkEntitiesMenu() {
|
|
8189
|
+
if (!this.entitiesMenu) {
|
|
8190
|
+
this.entitiesMenu = this.createEntitiesMenu();
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8187
8193
|
showEntitiesMenu(options) {
|
|
8194
|
+
this.checkEntitiesMenu();
|
|
8188
8195
|
this.entitiesMenu.showMenu(Object.assign({}, this.options.menuOptions, options));
|
|
8189
|
-
// this.entitiesMenu.showMenu(options);
|
|
8190
8196
|
}
|
|
8191
8197
|
createConditionMenus() {
|
|
8192
8198
|
//ConditionMenu
|
|
@@ -8484,7 +8490,6 @@ class FilterBar extends core.Widget {
|
|
|
8484
8490
|
.text(core$1.i18n.getText('StrNoFilterClickToAdd'))
|
|
8485
8491
|
.hide()
|
|
8486
8492
|
.on('click', () => {
|
|
8487
|
-
console.log("condition filter click");
|
|
8488
8493
|
this.queryPanel.showEntitiesMenu({
|
|
8489
8494
|
anchor: this.headerLinkElement,
|
|
8490
8495
|
selectedIds: null,
|
|
@@ -8565,8 +8570,8 @@ class FilterBar extends core.Widget {
|
|
|
8565
8570
|
}
|
|
8566
8571
|
}
|
|
8567
8572
|
textResize() {
|
|
8568
|
-
this.headerTextBlock.style.width = (this.slot.clientWidth - this.headerIconElement.offsetWidth
|
|
8569
|
-
|
|
8573
|
+
// this.headerTextBlock.style.width = (this.slot.clientWidth - this.headerIconElement.offsetWidth
|
|
8574
|
+
// - (domel(this.headerArrowBlock).isVisible() ? this.headerArrowBlock.offsetWidth : 0)) + "px";
|
|
8570
8575
|
}
|
|
8571
8576
|
destroyCore() {
|
|
8572
8577
|
if (this.queryPanel)
|
package/dist/easyquery.ui.esm.js
CHANGED
|
@@ -7836,6 +7836,7 @@ class QueryPanel extends Widget {
|
|
|
7836
7836
|
this.slot.innerHTML = '';
|
|
7837
7837
|
}
|
|
7838
7838
|
getEntitiesMenu() {
|
|
7839
|
+
this.checkEntitiesMenu();
|
|
7839
7840
|
return this.entitiesMenu;
|
|
7840
7841
|
}
|
|
7841
7842
|
getConditionMenu() {
|
|
@@ -8022,7 +8023,7 @@ class QueryPanel extends Widget {
|
|
|
8022
8023
|
}
|
|
8023
8024
|
render() {
|
|
8024
8025
|
try {
|
|
8025
|
-
this.
|
|
8026
|
+
this.checkEntitiesMenu();
|
|
8026
8027
|
this.createConditionMenus();
|
|
8027
8028
|
this.createLinkTypeMenu();
|
|
8028
8029
|
this.rootContainer = domel('div', this.slot)
|
|
@@ -8182,9 +8183,14 @@ class QueryPanel extends Widget {
|
|
|
8182
8183
|
utils.assign(options, this.options.menuOptions);
|
|
8183
8184
|
return new PopupMenu(options);
|
|
8184
8185
|
}
|
|
8186
|
+
checkEntitiesMenu() {
|
|
8187
|
+
if (!this.entitiesMenu) {
|
|
8188
|
+
this.entitiesMenu = this.createEntitiesMenu();
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8185
8191
|
showEntitiesMenu(options) {
|
|
8192
|
+
this.checkEntitiesMenu();
|
|
8186
8193
|
this.entitiesMenu.showMenu(Object.assign({}, this.options.menuOptions, options));
|
|
8187
|
-
// this.entitiesMenu.showMenu(options);
|
|
8188
8194
|
}
|
|
8189
8195
|
createConditionMenus() {
|
|
8190
8196
|
//ConditionMenu
|
|
@@ -8482,7 +8488,6 @@ class FilterBar extends Widget {
|
|
|
8482
8488
|
.text(i18n.getText('StrNoFilterClickToAdd'))
|
|
8483
8489
|
.hide()
|
|
8484
8490
|
.on('click', () => {
|
|
8485
|
-
console.log("condition filter click");
|
|
8486
8491
|
this.queryPanel.showEntitiesMenu({
|
|
8487
8492
|
anchor: this.headerLinkElement,
|
|
8488
8493
|
selectedIds: null,
|
|
@@ -8563,8 +8568,8 @@ class FilterBar extends Widget {
|
|
|
8563
8568
|
}
|
|
8564
8569
|
}
|
|
8565
8570
|
textResize() {
|
|
8566
|
-
this.headerTextBlock.style.width = (this.slot.clientWidth - this.headerIconElement.offsetWidth
|
|
8567
|
-
|
|
8571
|
+
// this.headerTextBlock.style.width = (this.slot.clientWidth - this.headerIconElement.offsetWidth
|
|
8572
|
+
// - (domel(this.headerArrowBlock).isVisible() ? this.headerArrowBlock.offsetWidth : 0)) + "px";
|
|
8568
8573
|
}
|
|
8569
8574
|
destroyCore() {
|
|
8570
8575
|
if (this.queryPanel)
|
|
@@ -63,6 +63,7 @@ export declare class QueryPanel extends Widget {
|
|
|
63
63
|
getOperatorRenderer(condition: Condition, text: string, slot?: HTMLDivElement): BaseElementRenderer | null;
|
|
64
64
|
getAddRowRenderer(slot?: HTMLDivElement): BaseElementRenderer | null;
|
|
65
65
|
private createEntitiesMenu;
|
|
66
|
+
protected checkEntitiesMenu(): void;
|
|
66
67
|
showEntitiesMenu(options: PopupMenuOptions): void;
|
|
67
68
|
private createConditionMenus;
|
|
68
69
|
private createLinkTypeMenu;
|
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-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",
|
|
@@ -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-rc03"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|