@adaptabletools/adaptable-cjs 18.0.0 → 18.0.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/src/Api/ConfigApi.d.ts
CHANGED
|
@@ -21,11 +21,17 @@ import { AdaptableSearchState, AdaptableSortState, NamedQueryState, PredefinedCo
|
|
|
21
21
|
*/
|
|
22
22
|
export interface ConfigApi {
|
|
23
23
|
/**
|
|
24
|
-
* Changes the key used for persisting the AdaptableState into localStorage
|
|
25
|
-
* @param adaptableStateKey key for persisting the AdaptableState into localStorage
|
|
24
|
+
* Changes the key used for persisting the AdaptableState into localStorage. Optionally provides a predefinedConfig to load.
|
|
25
|
+
* @param adaptableStateKey - key for persisting the AdaptableState into localStorage
|
|
26
|
+
* @param config.predefinedConfig - new predefinedConfig to load
|
|
27
|
+
* @param config.flushCurrentState - whether to flush(persist) the current state before loading the new predefinedConfig
|
|
28
|
+
* @param config.progressIndicatorLabel - label for the progress indicator
|
|
29
|
+
*
|
|
26
30
|
*/
|
|
27
31
|
setAdaptableStateKey(adaptableStateKey: string, config?: {
|
|
28
|
-
predefinedConfig
|
|
32
|
+
predefinedConfig?: PredefinedConfig;
|
|
33
|
+
flushCurrentState?: boolean;
|
|
34
|
+
progressIndicatorLabel?: string;
|
|
29
35
|
}): Promise<void>;
|
|
30
36
|
/**
|
|
31
37
|
* Returns current Predefined Config
|
|
@@ -37,8 +37,9 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
37
37
|
getAdaptableSortState(): AdaptableSortState;
|
|
38
38
|
getAdaptableOptions(): Readonly<AdaptableOptions>;
|
|
39
39
|
setAdaptableStateKey(adaptableStateKey: string, config?: {
|
|
40
|
-
predefinedConfig
|
|
40
|
+
predefinedConfig?: PredefinedConfig;
|
|
41
41
|
flushCurrentState?: boolean;
|
|
42
|
+
progressIndicatorLabel?: string;
|
|
42
43
|
}): Promise<void>;
|
|
43
44
|
getDescriptionForModule(module: AdaptableModule): string;
|
|
44
45
|
getHelpPageForModule(module: AdaptableModule): string;
|
|
@@ -114,7 +114,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
114
114
|
}
|
|
115
115
|
setAdaptableStateKey(adaptableStateKey, config) {
|
|
116
116
|
return new Promise((resolve, reject) => {
|
|
117
|
-
|
|
117
|
+
var _a;
|
|
118
|
+
this.getAdaptableApi().internalApi.executeWithProgressIndicator((_a = config === null || config === void 0 ? void 0 : config.progressIndicatorLabel) !== null && _a !== void 0 ? _a : `Initialising...`, () => {
|
|
118
119
|
const flushCurrentState = !config || config.flushCurrentState !== false;
|
|
119
120
|
// make sure we persist any "pending" changes to state - since stateOptions.debounceStateDelay can cause
|
|
120
121
|
// the state to be persisted with a delay, which we dont want in this case
|
|
@@ -149,6 +150,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
149
150
|
})
|
|
150
151
|
.catch((e) => {
|
|
151
152
|
this.logError('Error setting Adaptable State Key', e);
|
|
153
|
+
})
|
|
154
|
+
.finally(() => {
|
|
155
|
+
this.getUserInterfaceApi().hideProgressIndicator();
|
|
152
156
|
});
|
|
153
157
|
});
|
|
154
158
|
});
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "18.0.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1713347042139 || Date.now(),
|
|
6
|
+
VERSION: "18.0.1" || '--current-version--',
|
|
7
7
|
};
|