@adaptabletools/adaptable 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",
|
|
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;
|
|
@@ -110,7 +110,8 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
110
110
|
}
|
|
111
111
|
setAdaptableStateKey(adaptableStateKey, config) {
|
|
112
112
|
return new Promise((resolve, reject) => {
|
|
113
|
-
|
|
113
|
+
var _a;
|
|
114
|
+
this.getAdaptableApi().internalApi.executeWithProgressIndicator((_a = config === null || config === void 0 ? void 0 : config.progressIndicatorLabel) !== null && _a !== void 0 ? _a : `Initialising...`, () => {
|
|
114
115
|
const flushCurrentState = !config || config.flushCurrentState !== false;
|
|
115
116
|
// make sure we persist any "pending" changes to state - since stateOptions.debounceStateDelay can cause
|
|
116
117
|
// the state to be persisted with a delay, which we dont want in this case
|
|
@@ -145,6 +146,9 @@ export class ConfigApiImpl extends ApiBase {
|
|
|
145
146
|
})
|
|
146
147
|
.catch((e) => {
|
|
147
148
|
this.logError('Error setting Adaptable State Key', e);
|
|
149
|
+
})
|
|
150
|
+
.finally(() => {
|
|
151
|
+
this.getUserInterfaceApi().hideProgressIndicator();
|
|
148
152
|
});
|
|
149
153
|
});
|
|
150
154
|
});
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "18.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1713347013029 || Date.now(),
|
|
4
|
+
VERSION: "18.0.1" || '--current-version--',
|
|
5
5
|
};
|