@adaptabletools/adaptable 13.0.0-canary.10 → 13.0.0-canary.12

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.
Files changed (48) hide show
  1. package/bundle.cjs.js +157 -157
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
  6. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +12 -5
  7. package/src/Api/ColumnApi.d.ts +7 -1
  8. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  9. package/src/Api/Implementation/ColumnApiImpl.js +10 -6
  10. package/src/Api/Implementation/FormatColumnApiImpl.js +3 -5
  11. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -1
  12. package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -15
  13. package/src/Api/QueryLanguageApi.d.ts +3 -2
  14. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +0 -1
  15. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
  16. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
  17. package/src/View/Components/NewScopeComponent.js +2 -2
  18. package/src/View/Components/RangesComponent.d.ts +6 -0
  19. package/src/View/Components/RangesComponent.js +54 -18
  20. package/src/View/Components/ScopeComponent.js +2 -2
  21. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
  22. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
  23. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  24. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +3 -3
  25. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  26. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +16 -2
  27. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -3
  28. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  29. package/src/View/Layout/Wizard/sections/ColumnsSection.js +2 -1
  30. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
  31. package/src/agGrid/Adaptable.d.ts +6 -1
  32. package/src/agGrid/Adaptable.js +50 -7
  33. package/src/agGrid/FilterWrapper.js +4 -0
  34. package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
  35. package/src/agGrid/FloatingFilterWrapper.js +73 -32
  36. package/src/agGrid/agGridHelper.js +12 -13
  37. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +4 -1
  38. package/src/agGrid/editors/AdaptableDateEditor/index.js +84 -17
  39. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
  40. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -3
  41. package/src/agGrid/editors/AdaptableNumberEditor/index.js +78 -27
  42. package/src/metamodel/adaptable.metamodel.d.ts +12 -0
  43. package/src/metamodel/adaptable.metamodel.js +1 -1
  44. package/src/renderReactRoot.d.ts +2 -0
  45. package/src/renderReactRoot.js +11 -9
  46. package/src/types.d.ts +1 -1
  47. package/version.d.ts +1 -1
  48. package/version.js +1 -1
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare type RenderReactRootFn = (el: JSX.Element, container: HTMLElement) => VoidFunction;
3
+ export declare function captureReactWarnings(): void;
4
+ export declare function releaseReactWarnings(): void;
3
5
  export declare const renderReactRoot: (el: JSX.Element, container: HTMLElement, supressReact18RenderWarning: boolean) => () => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.renderReactRoot = void 0;
3
+ exports.renderReactRoot = exports.releaseReactWarnings = exports.captureReactWarnings = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ReactDOM = tslib_1.__importStar(require("react-dom"));
6
6
  //@ts-ignore
@@ -19,35 +19,37 @@ const doRenderReactRoot = (el, container) => {
19
19
  ReactDOM.unmountComponentAtNode(container);
20
20
  };
21
21
  };
22
- function capture() {
22
+ function captureReactWarnings() {
23
23
  console.error = (message, ...optionalParams) => {
24
24
  if (message &&
25
25
  typeof message === 'string' &&
26
- message.includes('Warning: ReactDOM.render is no longer supported in React 18.')) {
26
+ (message.includes('Warning: ReactDOM.render is no longer supported in React 18.') ||
27
+ message.includes('Warning: Attempted to synchronously unmount a root while React was already rendering'))) {
27
28
  return;
28
29
  }
29
30
  return originalConsoleError.call(console, message, ...optionalParams);
30
31
  };
31
32
  }
32
- function release() {
33
+ exports.captureReactWarnings = captureReactWarnings;
34
+ function releaseReactWarnings() {
33
35
  console.error = originalConsoleError;
34
36
  }
37
+ exports.releaseReactWarnings = releaseReactWarnings;
35
38
  const renderReactRoot = (el, container, supressReact18RenderWarning) => {
36
39
  if (supressReact18RenderWarning) {
37
- capture();
40
+ captureReactWarnings();
38
41
  }
39
42
  const unmount = doRenderReactRoot(el, container);
40
43
  if (supressReact18RenderWarning) {
41
- release();
44
+ releaseReactWarnings();
42
45
  }
43
46
  return () => {
44
- // probably capturing not needed for unmount to be honest ...
45
47
  if (supressReact18RenderWarning) {
46
- capture();
48
+ captureReactWarnings();
47
49
  }
48
50
  unmount();
49
51
  if (supressReact18RenderWarning) {
50
- release();
52
+ releaseReactWarnings();
51
53
  }
52
54
  };
53
55
  };
package/src/types.d.ts CHANGED
@@ -38,7 +38,7 @@ export type { UserInterfaceOptions, BasePermittedValues, PermittedValues, EditLo
38
38
  export type { MenuOptions } from './AdaptableOptions/MenuOptions';
39
39
  export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
40
40
  export type { EntitlementOptions, EntitlementContext } from './AdaptableOptions/EntitlementOptions';
41
- export type { ExpressionOptions, ModuleExpressionFunctions, ModuleExpressionFunctionsMap, GlobalExpressionFunctionsContext, EvaluateExpressionExternallyContext, ModuleExpressionFunctionsContext, AdaptableQLOptions, CustomQueryVariableContext, } from './AdaptableOptions/AdaptableQLOptions';
41
+ export type { ExpressionOptions, ModuleExpressionFunctions, ModuleExpressionFunctionsMap, GlobalExpressionFunctionsContext, EvaluateExpressionExternallyContext, ModuleExpressionFunctionsContext, AdaptableQLOptions, CustomQueryVariableContext, QueryableColumnContext, } from './AdaptableOptions/AdaptableQLOptions';
42
42
  export type { DataChangeHistoryOptions, DataChangeHistoryButton, DataChangeHistoryContext, AdaptableDataChangeHistoryAction, } from './AdaptableOptions/DataChangeHistoryOptions';
43
43
  export type { LayoutAssociatedObjectLoadConfig } from './Api/Implementation/ApiBase';
44
44
  export type { AdaptableApi } from './Api/AdaptableApi';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "13.0.0-canary.10";
1
+ declare const _default: "13.0.0-canary.12";
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 = '13.0.0-canary.10'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '13.0.0-canary.12'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version