@adaptabletools/adaptable 16.0.1 → 16.0.2-canary.0

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": "16.0.1",
3
+ "version": "16.0.2-canary.0",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1692249290030;
1
+ declare const _default: 1692348380677;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1692249290030;
3
+ exports.default = 1692348380677;
@@ -7,7 +7,7 @@ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
7
7
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
8
8
  import { IModule } from '../Strategy/Interface/IModule';
9
9
  import { ColumnSetupInfo } from '../agGrid/ColumnSetupInfo';
10
- import { ColDef } from '@ag-grid-community/core';
10
+ import { ColDef, GridOptions } from '@ag-grid-community/core';
11
11
  import { Layout } from '../PredefinedConfig/LayoutState';
12
12
  declare type AdaptableReducerObject = {
13
13
  [key: string]: (...args: any[]) => any;
@@ -25,7 +25,7 @@ export declare abstract class AdaptablePlugin {
25
25
  rootReducer?: (rootReducer: AdaptableReducerObject) => AdaptableReducerObject;
26
26
  reduxMiddleware?: (adaptable: IAdaptable) => Redux.Middleware;
27
27
  hasProperty(name: string): boolean;
28
- beforeInit(adaptableOptions: AdaptableOptions): void;
28
+ beforeInit(adaptableOptions: AdaptableOptions, gridOptions: GridOptions): void;
29
29
  afterInitOptions(adaptable: IAdaptable, adaptableOptions: AdaptableOptions): void;
30
30
  afterInitApi(adaptable: IAdaptable, api: AdaptableApi): void;
31
31
  afterInitServices(adaptable: IAdaptable): void;
@@ -25,9 +25,8 @@ class AdaptablePlugin {
25
25
  return !!this.values[name];
26
26
  }
27
27
  // plugin lifecycle methods, executed in this exact order
28
- // wondering if this is better?
29
- // beforeInit(adaptableOptions: AdaptableOptions, gridOptions: GridOptions): void {}
30
- beforeInit(adaptableOptions) { }
28
+ // wondering if this is better?
29
+ beforeInit(adaptableOptions, gridOptions) { }
31
30
  afterInitOptions(adaptable, adaptableOptions) { }
32
31
  afterInitApi(adaptable, api) { }
33
32
  afterInitServices(adaptable) { }
@@ -28,7 +28,6 @@ class CommentsApiImpl extends ApiBase_1.ApiBase {
28
28
  this.editComment(adaptableComment);
29
29
  }
30
30
  deleteComment(comment) {
31
- console.log('deleteing');
32
31
  this.dispatchAction(CommentsRedux.CommentsDelete(comment));
33
32
  }
34
33
  getCommentsState() {
@@ -35,7 +35,7 @@ export interface QuickSearchApi {
35
35
  */
36
36
  openQuickSearchSettingsPanel(): void;
37
37
  /**
38
- * Opens the floating Quick Search
38
+ * Opens the Floating Quick Search
39
39
  */
40
40
  showFloatingQuickSearch(): void;
41
41
  /**
@@ -38,7 +38,7 @@ exports.SystemPredicateDefs = [
38
38
  return (0, isEqual_1.default)(input, value);
39
39
  }
40
40
  else {
41
- return (0, isSameDay_1.default)(input, value);
41
+ return (0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(input), (0, DateHelper_1.parseDateValue)(value));
42
42
  }
43
43
  });
44
44
  }
@@ -78,7 +78,7 @@ exports.SystemPredicateDefs = [
78
78
  }
79
79
  else {
80
80
  return inputs.every((input) => {
81
- return !(0, isSameDay_1.default)(input, value);
81
+ return !(0, isSameDay_1.default)((0, DateHelper_1.parseDateValue)(input), (0, DateHelper_1.parseDateValue)(value));
82
82
  });
83
83
  }
84
84
  }
@@ -40,12 +40,12 @@ import { RenderReactRootFn } from '../renderReactRoot';
40
40
  import { AdaptableLogger } from './AdaptableLogger';
41
41
  import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
42
42
  declare type RuntimeConfig = {
43
- gridOptions: GridOptions;
44
43
  waitForAgGrid?: boolean;
45
44
  supressReact18RenderWarning?: boolean;
46
45
  renderReactRoot?: RenderReactRootFn;
47
46
  variant?: AdaptableVariant;
48
- agGridModules?: Module[];
47
+ gridOptions: AgGridConfig['gridOptions'];
48
+ modules?: AgGridConfig['modules'];
49
49
  };
50
50
  export declare class Adaptable implements IAdaptable {
51
51
  api: AdaptableApi;
@@ -288,11 +288,7 @@ class Adaptable {
288
288
  if (!((_a = agGridConfig === null || agGridConfig === void 0 ? void 0 : agGridConfig.modules) === null || _a === void 0 ? void 0 : _a.length)) {
289
289
  AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
290
290
  }
291
- return Adaptable.initInternal(adaptableOptions, {
292
- gridOptions: agGridConfig.gridOptions,
293
- supressReact18RenderWarning: true,
294
- agGridModules: agGridConfig.modules,
295
- });
291
+ return Adaptable.initInternal(adaptableOptions, Object.assign(Object.assign({}, agGridConfig), { supressReact18RenderWarning: true }));
296
292
  }
297
293
  /**
298
294
  * Lazy static constructor for Adaptable
@@ -308,11 +304,9 @@ class Adaptable {
308
304
  promise =
309
305
  promise && promise.then
310
306
  ? promise.then(() => {
311
- // JW: perhaps?: return plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
312
- return plugin.beforeInit(adaptableOptions);
307
+ return plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
313
308
  })
314
- // JW: perhaps? : plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
315
- : plugin.beforeInit(adaptableOptions);
309
+ : plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
316
310
  }
317
311
  // instead of
318
312
  // if (Array.isArray(adaptableOptions.plugins)) {
@@ -703,8 +697,8 @@ class Adaptable {
703
697
  const agGridContainer = this.getAgGridContainerElement();
704
698
  const perfAgGridInstance = this.logger.beginPerf('new AgGrid()');
705
699
  let gridParams;
706
- if ((_a = this.runtimeConfig.agGridModules) === null || _a === void 0 ? void 0 : _a.length) {
707
- gridParams = { modules: this.runtimeConfig.agGridModules };
700
+ if ((_a = this.runtimeConfig.modules) === null || _a === void 0 ? void 0 : _a.length) {
701
+ gridParams = { modules: this.runtimeConfig.modules };
708
702
  }
709
703
  grid = new core_1.Grid(agGridContainer, this.gridOptions, gridParams);
710
704
  perfAgGridInstance.end();
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "16.0.1";
1
+ declare const _default: "16.0.2-canary.0";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '16.0.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '16.0.2-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version