@easyquery/core 7.5.0-rc03 → 7.5.1

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,10 +1,10 @@
1
1
 
2
2
  /*
3
- * EasyQuery.JS Core v7.5.0-rc03
3
+ * EasyQuery.JS Core v7.5.1
4
4
  * Copyright 2026 Korzh.com
5
5
  * Licensed under MIT
6
6
  *
7
- * Build time: 06.08.2026 23:18:47
7
+ * Build time: 9/28/2026 6:26:09 PM
8
8
  */
9
9
 
10
10
  'use strict';
@@ -4116,6 +4116,18 @@ class DefaultAggregatesCalculator {
4116
4116
  }
4117
4117
  }
4118
4118
 
4119
+ /**
4120
+ * The full EasyQuery.JS version, prerelease suffix included (e.g. 7.5.1-rc01).
4121
+ * Written by tools/set_version.js from version.json - do not edit it by hand.
4122
+ */
4123
+ const eqjsVersion = '7.5.1';
4124
+ /**
4125
+ * The EasyQuery.JS version without any prerelease suffix (e.g. 7.5.1).
4126
+ * Sent to the backend in the x-eqjs-version header.
4127
+ * Written by tools/set_version.js from version.json (baseVersion) - do not edit it by hand.
4128
+ */
4129
+ const eqjsBaseVersion = '7.5.1';
4130
+
4119
4131
  class EqServiceProvider {
4120
4132
  static getInstance() {
4121
4133
  if (!EqServiceProvider._instance) {
@@ -4126,7 +4138,7 @@ class EqServiceProvider {
4126
4138
  constructor() {
4127
4139
  this.services = {};
4128
4140
  this.httpClient = new core.HttpClient();
4129
- this.httpClient.defaultHeaders['x-eqjs-version'] = '7.5.0';
4141
+ this.httpClient.defaultHeaders['x-eqjs-version'] = eqjsBaseVersion;
4130
4142
  this.modelResolver = (_) => new DataModel();
4131
4143
  this.modelStorageResolver = null;
4132
4144
  this.queryResolver = (context) => new Query(context.getModel(), null, { context: context });
@@ -4881,6 +4893,31 @@ class EqContext {
4881
4893
  }
4882
4894
  return this;
4883
4895
  }
4896
+ /**
4897
+ * Sets the name of the application that uses EasyQuery.
4898
+ * When there is no license key, the name is sent along with the version check,
4899
+ * so call it before `useEnterprise()`. Same as the `appName` option.
4900
+ *
4901
+ * @param appName - the application name, e.g. 'Sample.AspNetCore.Angular.AdvancedSearch'
4902
+ */
4903
+ setAppName(appName) {
4904
+ this.options.appName = appName;
4905
+ return this;
4906
+ }
4907
+ /**
4908
+ * Turns off the version check: when there is no license key, the library sends nothing to korzh.com.
4909
+ * The check runs from `useEnterprise()`, so call it before that. Same as the `noVersionCheck` option.
4910
+ */
4911
+ disableVersionCheck() {
4912
+ this.options.noVersionCheck = true;
4913
+ return this;
4914
+ }
4915
+ /**
4916
+ * Gets the name of the application set by `setAppName()` or the `appName` option.
4917
+ */
4918
+ getAppName() {
4919
+ return this.options.appName;
4920
+ }
4884
4921
  /**
4885
4922
  * Add a new widget to the context.
4886
4923
  * After that the widget will start to receive messages from other context components.
@@ -6474,4 +6511,6 @@ exports.QueryColumn = QueryColumn;
6474
6511
  exports.Tree = Tree;
6475
6512
  exports.Widget = Widget;
6476
6513
  exports.createEqContext = createEqContext;
6514
+ exports.eqjsBaseVersion = eqjsBaseVersion;
6515
+ exports.eqjsVersion = eqjsVersion;
6477
6516
  exports.registerEqContextResolver = registerEqContextResolver;
@@ -1,10 +1,10 @@
1
1
 
2
2
  /*
3
- * EasyQuery.JS Core v7.5.0-rc03
3
+ * EasyQuery.JS Core v7.5.1
4
4
  * Copyright 2026 Korzh.com
5
5
  * Licensed under MIT
6
6
  *
7
- * Build time: 06.08.2026 23:18:47
7
+ * Build time: 9/28/2026 6:26:09 PM
8
8
  */
9
9
 
10
10
  import { i18n, DataType, utils, ValueEditor, MetaEntity, MetaEntityAttr, EditorTag, MetaData, EventEmitter, AggregationSettings, HttpClient, EasyDataTable } from '@easydata/core';
@@ -4115,6 +4115,18 @@ class DefaultAggregatesCalculator {
4115
4115
  }
4116
4116
  }
4117
4117
 
4118
+ /**
4119
+ * The full EasyQuery.JS version, prerelease suffix included (e.g. 7.5.1-rc01).
4120
+ * Written by tools/set_version.js from version.json - do not edit it by hand.
4121
+ */
4122
+ const eqjsVersion = '7.5.1';
4123
+ /**
4124
+ * The EasyQuery.JS version without any prerelease suffix (e.g. 7.5.1).
4125
+ * Sent to the backend in the x-eqjs-version header.
4126
+ * Written by tools/set_version.js from version.json (baseVersion) - do not edit it by hand.
4127
+ */
4128
+ const eqjsBaseVersion = '7.5.1';
4129
+
4118
4130
  class EqServiceProvider {
4119
4131
  static getInstance() {
4120
4132
  if (!EqServiceProvider._instance) {
@@ -4125,7 +4137,7 @@ class EqServiceProvider {
4125
4137
  constructor() {
4126
4138
  this.services = {};
4127
4139
  this.httpClient = new HttpClient();
4128
- this.httpClient.defaultHeaders['x-eqjs-version'] = '7.5.0';
4140
+ this.httpClient.defaultHeaders['x-eqjs-version'] = eqjsBaseVersion;
4129
4141
  this.modelResolver = (_) => new DataModel();
4130
4142
  this.modelStorageResolver = null;
4131
4143
  this.queryResolver = (context) => new Query(context.getModel(), null, { context: context });
@@ -4880,6 +4892,31 @@ class EqContext {
4880
4892
  }
4881
4893
  return this;
4882
4894
  }
4895
+ /**
4896
+ * Sets the name of the application that uses EasyQuery.
4897
+ * When there is no license key, the name is sent along with the version check,
4898
+ * so call it before `useEnterprise()`. Same as the `appName` option.
4899
+ *
4900
+ * @param appName - the application name, e.g. 'Sample.AspNetCore.Angular.AdvancedSearch'
4901
+ */
4902
+ setAppName(appName) {
4903
+ this.options.appName = appName;
4904
+ return this;
4905
+ }
4906
+ /**
4907
+ * Turns off the version check: when there is no license key, the library sends nothing to korzh.com.
4908
+ * The check runs from `useEnterprise()`, so call it before that. Same as the `noVersionCheck` option.
4909
+ */
4910
+ disableVersionCheck() {
4911
+ this.options.noVersionCheck = true;
4912
+ return this;
4913
+ }
4914
+ /**
4915
+ * Gets the name of the application set by `setAppName()` or the `appName` option.
4916
+ */
4917
+ getAppName() {
4918
+ return this.options.appName;
4919
+ }
4883
4920
  /**
4884
4921
  * Add a new widget to the context.
4885
4922
  * After that the widget will start to receive messages from other context components.
@@ -6435,4 +6472,4 @@ function addEasyQueryCoreTexts() {
6435
6472
  }
6436
6473
  addEasyQueryCoreTexts();
6437
6474
 
6438
- export { AggrFunction, BrowserColumnWidthStore, BrowserQueryStorage, CondTag, Condition, ConditionPart, DataKind, DataModel, DefaultAggregatesCalculator, EasyQueryDataLoader, EmptyChunk, Entity, EntityAttr, EqAction, EqActionResult, EqAggregatesContainer, EqContext, EqEditorTag, EqModelLoader, EqQueryFileLoader, EqServerDataFetcher, EqServerExporter, EqServerModelLoader, EqServerQuerySynchronizer, EqServerValueListResolver, EqServiceProvider, EqValueEditor, ExprTag, Expression, FormatParser, GoogleDataConverter, InMemoryModelStorage, InvalidQueryError, LinkType, Operand, Operator, Query, QueryChangeAction, QueryChangePart, QueryColumn, SortDirection, Tree, Widget, WidgetGroup, createEqContext, eqconsts, equtils, registerEqContextResolver };
6475
+ export { AggrFunction, BrowserColumnWidthStore, BrowserQueryStorage, CondTag, Condition, ConditionPart, DataKind, DataModel, DefaultAggregatesCalculator, EasyQueryDataLoader, EmptyChunk, Entity, EntityAttr, EqAction, EqActionResult, EqAggregatesContainer, EqContext, EqEditorTag, EqModelLoader, EqQueryFileLoader, EqServerDataFetcher, EqServerExporter, EqServerModelLoader, EqServerQuerySynchronizer, EqServerValueListResolver, EqServiceProvider, EqValueEditor, ExprTag, Expression, FormatParser, GoogleDataConverter, InMemoryModelStorage, InvalidQueryError, LinkType, Operand, Operator, Query, QueryChangeAction, QueryChangePart, QueryColumn, SortDirection, Tree, Widget, WidgetGroup, createEqContext, eqconsts, eqjsBaseVersion, eqjsVersion, equtils, registerEqContextResolver };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The full EasyQuery.JS version, prerelease suffix included (e.g. 7.5.1-rc01).
3
+ * Written by tools/set_version.js from version.json - do not edit it by hand.
4
+ */
5
+ export declare const eqjsVersion = "7.5.1";
6
+ /**
7
+ * The EasyQuery.JS version without any prerelease suffix (e.g. 7.5.1).
8
+ * Sent to the backend in the x-eqjs-version header.
9
+ * Written by tools/set_version.js from version.json (baseVersion) - do not edit it by hand.
10
+ */
11
+ export declare const eqjsBaseVersion = "7.5.1";
@@ -143,6 +143,23 @@ export declare class EqContext {
143
143
  * Possible values for `ptag` property: 'EQN-ANC' - ASP.NET Core or 'EQN-ASP' - for ASP.NET 4 backend
144
144
  */
145
145
  useBackend(backendInfo: EqBackendInfo): EqContext;
146
+ /**
147
+ * Sets the name of the application that uses EasyQuery.
148
+ * When there is no license key, the name is sent along with the version check,
149
+ * so call it before `useEnterprise()`. Same as the `appName` option.
150
+ *
151
+ * @param appName - the application name, e.g. 'Sample.AspNetCore.Angular.AdvancedSearch'
152
+ */
153
+ setAppName(appName: string): EqContext;
154
+ /**
155
+ * Turns off the version check: when there is no license key, the library sends nothing to korzh.com.
156
+ * The check runs from `useEnterprise()`, so call it before that. Same as the `noVersionCheck` option.
157
+ */
158
+ disableVersionCheck(): EqContext;
159
+ /**
160
+ * Gets the name of the application set by `setAppName()` or the `appName` option.
161
+ */
162
+ getAppName(): string;
146
163
  /**
147
164
  * Add a new widget to the context.
148
165
  * After that the widget will start to receive messages from other context components.
@@ -68,6 +68,18 @@ export interface EqContextOptions {
68
68
  useDefaultExporters?: boolean;
69
69
  serverExporters?: string[];
70
70
  debugMode?: boolean;
71
+ /**
72
+ * When there is no license key, the library asks korzh.com whether it is the latest release
73
+ * (sending its version, the backend type and a random install id) and says so in the license dialog.
74
+ * Set to `true` to send nothing. `window.EQ_NO_VERSION_CHECK = true` does the same.
75
+ * The check runs from `useEnterprise()`, so when `init()` is called after it, use `context.disableVersionCheck()` instead.
76
+ */
77
+ noVersionCheck?: boolean;
78
+ /**
79
+ * The name of the application, sent along with the version check (see `noVersionCheck`).
80
+ * The check runs from `useEnterprise()`, so when `init()` is called after it, use `context.setAppName()` instead.
81
+ */
82
+ appName?: string;
71
83
  allowCustomExpressions?: boolean;
72
84
  syncSortOrderWithColumnsOrder?: boolean;
73
85
  }
@@ -2,6 +2,7 @@ import './main/init';
2
2
  export * from './utils/utils';
3
3
  export * from './utils/constants';
4
4
  export * from './export/exporter';
5
+ export * from './common/version';
5
6
  export * from './common/eq_services';
6
7
  export * from './common/tree';
7
8
  export * from './data/eq_data_loader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyquery/core",
3
- "version": "7.5.0-rc03",
3
+ "version": "7.5.1",
4
4
  "description": "EasyQuery.JS Community core modules",
5
5
  "types": "./dist/types/public_api.d.ts",
6
6
  "main": "./dist/easyquery.core.cjs.js",