@easyquery/ui 7.2.1-rc02 → 7.2.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/browser/eq.community.js +40 -1
- package/dist/browser/eq.community.js.map +1 -1
- package/dist/browser/eq.community.min.js +2 -2
- package/dist/browser/eq.community.min.js.map +1 -1
- package/dist/browser/eq.core.css +1 -1
- package/dist/browser/eq.core.min.css +1 -1
- package/dist/browser/eq.view.css +1 -1
- package/dist/browser/eq.view.min.css +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* EasyQuery.JS Community 7.2.1-
|
|
2
|
+
* EasyQuery.JS Community 7.2.1-rc03 (https://korzh.com/easyquery/javascript)
|
|
3
3
|
* Copyright 2022 Korzh.com. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* EasyQuery.JS commercial licenses may be obtained at
|
|
@@ -2728,6 +2728,10 @@ var context_EqContext = /** @class */ (function () {
|
|
|
2728
2728
|
this.loadQueryOnStart = false;
|
|
2729
2729
|
this.useStoredQueryOnFetch = false;
|
|
2730
2730
|
this.debugMode = false;
|
|
2731
|
+
this._backendInfo = {
|
|
2732
|
+
type: 'EQN-ANC',
|
|
2733
|
+
subType: 'asp-net-core-razor'
|
|
2734
|
+
};
|
|
2731
2735
|
//----------- endpoint processing functions --------------
|
|
2732
2736
|
this.endpointVarsRegex = /\{.*?\}/g;
|
|
2733
2737
|
this.elasticPaging = false;
|
|
@@ -3031,6 +3035,13 @@ var context_EqContext = /** @class */ (function () {
|
|
|
3031
3035
|
this.fireEvent('ready');
|
|
3032
3036
|
}
|
|
3033
3037
|
};
|
|
3038
|
+
Object.defineProperty(EqContext.prototype, "backendInfo", {
|
|
3039
|
+
get: function () {
|
|
3040
|
+
return this._backendInfo;
|
|
3041
|
+
},
|
|
3042
|
+
enumerable: true,
|
|
3043
|
+
configurable: true
|
|
3044
|
+
});
|
|
3034
3045
|
/**
|
|
3035
3046
|
* Sets endpoint for all EasyQuery actions. Should be called before `init` and
|
|
3036
3047
|
* `useEnterprise` methods
|
|
@@ -3048,6 +3059,34 @@ var context_EqContext = /** @class */ (function () {
|
|
|
3048
3059
|
this.baseEndpoint = endpoint;
|
|
3049
3060
|
return this;
|
|
3050
3061
|
};
|
|
3062
|
+
/**
|
|
3063
|
+
* Allows to specify the type of backend service.
|
|
3064
|
+
*
|
|
3065
|
+
* @param backendInfo - the structure that contains information about the app used on the backend
|
|
3066
|
+
* Possible values for `ptag` property: 'EQN-ANC' - ASP.NET Core or 'EQN-ASP' - for ASP.NET 4 backend
|
|
3067
|
+
*/
|
|
3068
|
+
EqContext.prototype.useBackend = function (backendInfo) {
|
|
3069
|
+
if (backendInfo.type) {
|
|
3070
|
+
this._backendInfo.type = backendInfo.type;
|
|
3071
|
+
}
|
|
3072
|
+
if (backendInfo.subType) {
|
|
3073
|
+
this._backendInfo.subType = backendInfo.subType;
|
|
3074
|
+
}
|
|
3075
|
+
else {
|
|
3076
|
+
switch (this._backendInfo.type) {
|
|
3077
|
+
case 'EQN-ANC':
|
|
3078
|
+
this._backendInfo.subType = 'asp-net-core-razor';
|
|
3079
|
+
break;
|
|
3080
|
+
case 'EQN-ASP':
|
|
3081
|
+
this._backendInfo.subType = 'asp-net-4-mvc';
|
|
3082
|
+
break;
|
|
3083
|
+
default:
|
|
3084
|
+
this._backendInfo.subType = 'other';
|
|
3085
|
+
break;
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
return this;
|
|
3089
|
+
};
|
|
3051
3090
|
/**
|
|
3052
3091
|
* Add a new widget to the context.
|
|
3053
3092
|
* After that the widget will start to receive messages from other context components.
|