@easyquery/enterprise 7.2.4 → 7.2.5-beta01
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Enterprise 7.2.
|
|
2
|
+
* EasyQuery.JS Enterprise 7.2.5-beta01 (https://korzh.com/easyquery/javascript)
|
|
3
3
|
* Copyright 2023 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
@@ -33151,10 +33151,14 @@ var QueryNameWidget = /** @class */ (function (_super) {
|
|
|
33151
33151
|
var _this = _super.call(this, slot) || this;
|
|
33152
33152
|
_this.queryEventCallbackId = null;
|
|
33153
33153
|
_this.group = WidgetGroup.Query | WidgetGroup.QueryStatus;
|
|
33154
|
+
_this.nameTemplate = '{name}';
|
|
33154
33155
|
return _this;
|
|
33155
33156
|
}
|
|
33156
33157
|
QueryNameWidget.prototype.init = function (context, options) {
|
|
33157
33158
|
_super.prototype.init.call(this, context, options);
|
|
33159
|
+
if (options && options.nameTemplate) {
|
|
33160
|
+
this.nameTemplate = options.nameTemplate;
|
|
33161
|
+
}
|
|
33158
33162
|
this.destroyCore();
|
|
33159
33163
|
this.attachQueryObserver();
|
|
33160
33164
|
};
|
|
@@ -33199,10 +33203,15 @@ var QueryNameWidget = /** @class */ (function (_super) {
|
|
|
33199
33203
|
this.slot.appendChild(this.tooltipSlot);
|
|
33200
33204
|
}
|
|
33201
33205
|
// Update
|
|
33202
|
-
var
|
|
33203
|
-
|
|
33204
|
-
|
|
33205
|
-
|
|
33206
|
+
var query = this.context.getQuery();
|
|
33207
|
+
var queryName = query.getName();
|
|
33208
|
+
var queryDescription = query.getDescription() || '';
|
|
33209
|
+
var text = this.nameTemplate
|
|
33210
|
+
.replace('{name}', queryName)
|
|
33211
|
+
.replace('{description}', queryDescription);
|
|
33212
|
+
this.nameSlot.textContent = text;
|
|
33213
|
+
this.tooltipSlot.textContent = text;
|
|
33214
|
+
this.asteriskSlot.style.visibility = query.isModified() ? "visible" : "hidden";
|
|
33206
33215
|
};
|
|
33207
33216
|
QueryNameWidget.prototype.clear = function () {
|
|
33208
33217
|
this.slot.innerHTML = "";
|