@adaptabletools/adaptable-cjs 18.0.0-canary.3 → 18.0.0-canary.5

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 (206) hide show
  1. package/agGrid.d.ts +4 -21
  2. package/agGrid.js +5 -21
  3. package/base.css +4 -1
  4. package/base.css.map +1 -1
  5. package/index.css +79 -68
  6. package/index.css.map +1 -1
  7. package/package.json +3 -4
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +55 -109
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -5
  10. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +4 -4
  11. package/src/AdaptableOptions/{CommentsOptions.d.ts → CommentOptions.d.ts} +5 -5
  12. package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
  13. package/src/AdaptableOptions/MenuOptions.js +2 -6
  14. package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +1 -1
  15. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
  16. package/src/Api/AdaptableApi.d.ts +5 -0
  17. package/src/Api/BulkUpdateApi.d.ts +0 -5
  18. package/src/Api/Events/AdaptableReady.d.ts +3 -3
  19. package/src/Api/Events/GridDataChanged.d.ts +4 -4
  20. package/src/Api/GridApi.d.ts +14 -13
  21. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
  22. package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
  23. package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
  24. package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
  25. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  26. package/src/Api/Implementation/ApiBase.js +4 -1
  27. package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
  28. package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
  29. package/src/Api/Implementation/CommentsApiImpl.js +2 -1
  30. package/src/Api/Implementation/ConfigApiImpl.js +8 -3
  31. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  32. package/src/Api/Implementation/GridApiImpl.js +20 -14
  33. package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -0
  34. package/src/Api/Implementation/LayoutApiImpl.js +14 -0
  35. package/src/Api/Implementation/NotesApiImpl.d.ts +2 -4
  36. package/src/Api/Implementation/NotesApiImpl.js +4 -8
  37. package/src/Api/Implementation/OptionsApiImpl.d.ts +1 -1
  38. package/src/Api/Implementation/OptionsApiImpl.js +2 -2
  39. package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
  40. package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
  41. package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
  42. package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
  43. package/src/Api/Internal/ActionRowInternalApi.js +107 -0
  44. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
  45. package/src/Api/Internal/AdaptableInternalApi.js +10 -8
  46. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  47. package/src/Api/Internal/CalculatedColumnInternalApi.js +71 -0
  48. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
  49. package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
  50. package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
  51. package/src/Api/Internal/ColumnInternalApi.js +12 -0
  52. package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
  53. package/src/Api/Internal/CustomSortInternalApi.js +32 -1
  54. package/src/Api/Internal/DataSetInternalApi.js +1 -1
  55. package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
  56. package/src/Api/Internal/FreeTextColumnInternalApi.js +60 -0
  57. package/src/Api/Internal/GridFilterInternalApi.js +1 -1
  58. package/src/Api/Internal/GridInternalApi.d.ts +21 -3
  59. package/src/Api/Internal/GridInternalApi.js +126 -7
  60. package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
  61. package/src/Api/InteropioPluginApi.d.ts +2 -2
  62. package/src/Api/LayoutApi.d.ts +8 -0
  63. package/src/Api/OptionsApi.d.ts +1 -1
  64. package/src/EnvVars.d.ts +3 -0
  65. package/src/EnvVars.js +8 -0
  66. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
  67. package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
  68. package/src/PredefinedConfig/NotesState.d.ts +10 -20
  69. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
  70. package/src/Redux/ActionsReducers/NotesRedux.d.ts +3 -4
  71. package/src/Redux/ActionsReducers/NotesRedux.js +10 -8
  72. package/src/Redux/Store/AdaptableStore.d.ts +4 -6
  73. package/src/Redux/Store/AdaptableStore.js +22 -50
  74. package/src/Redux/Store/Interface/IAdaptableStore.d.ts +7 -1
  75. package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
  76. package/src/Strategy/AdaptableModuleBase.js +4 -7
  77. package/src/Strategy/AlertModule.d.ts +1 -2
  78. package/src/Strategy/AlertModule.js +2 -55
  79. package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
  80. package/src/Strategy/CalculatedColumnModule.js +5 -25
  81. package/src/Strategy/ChartingModule.d.ts +0 -1
  82. package/src/Strategy/ChartingModule.js +2 -22
  83. package/src/Strategy/ColumnFilterModule.d.ts +1 -2
  84. package/src/Strategy/ColumnFilterModule.js +1 -64
  85. package/src/Strategy/CommentsModule.d.ts +1 -0
  86. package/src/Strategy/CommentsModule.js +2 -1
  87. package/src/Strategy/CustomSortModule.js +1 -1
  88. package/src/Strategy/DashboardModule.d.ts +1 -2
  89. package/src/Strategy/DashboardModule.js +1 -8
  90. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  91. package/src/Strategy/DataChangeHistoryModule.js +3 -1
  92. package/src/Strategy/DataSetModule.d.ts +1 -1
  93. package/src/Strategy/DataSetModule.js +1 -1
  94. package/src/Strategy/FlashingCellModule.d.ts +1 -2
  95. package/src/Strategy/FlashingCellModule.js +2 -15
  96. package/src/Strategy/FormatColumnModule.d.ts +0 -2
  97. package/src/Strategy/FormatColumnModule.js +0 -47
  98. package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
  99. package/src/Strategy/FreeTextColumnModule.js +0 -30
  100. package/src/Strategy/GridFilterModule.d.ts +0 -1
  101. package/src/Strategy/GridFilterModule.js +0 -37
  102. package/src/Strategy/Interface/IModule.d.ts +0 -1
  103. package/src/Strategy/LayoutModule.d.ts +1 -3
  104. package/src/Strategy/LayoutModule.js +6 -50
  105. package/src/Strategy/NamedQueryModule.d.ts +0 -1
  106. package/src/Strategy/NamedQueryModule.js +0 -19
  107. package/src/Strategy/PlusMinusModule.d.ts +1 -1
  108. package/src/Strategy/PlusMinusModule.js +1 -1
  109. package/src/Strategy/ScheduleModule.d.ts +1 -1
  110. package/src/Strategy/ScheduleModule.js +1 -1
  111. package/src/Strategy/ShortcutModule.d.ts +1 -1
  112. package/src/Strategy/ShortcutModule.js +1 -1
  113. package/src/Strategy/StyledColumnModule.d.ts +0 -1
  114. package/src/Strategy/StyledColumnModule.js +0 -21
  115. package/src/Strategy/TeamSharingModule.d.ts +1 -0
  116. package/src/Strategy/TeamSharingModule.js +5 -5
  117. package/src/Strategy/ToolPanelModule.d.ts +0 -1
  118. package/src/Strategy/ToolPanelModule.js +0 -23
  119. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  120. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  121. package/src/Utilities/Constants/GeneralConstants.js +3 -2
  122. package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
  123. package/src/Utilities/Helpers/AdaptableHelper.d.ts +0 -3
  124. package/src/Utilities/Helpers/AdaptableHelper.js +1 -60
  125. package/src/Utilities/Helpers/Helper.d.ts +2 -0
  126. package/src/Utilities/Helpers/Helper.js +6 -1
  127. package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -1
  128. package/src/Utilities/Services/CellPopupService.js +0 -1
  129. package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
  130. package/src/Utilities/Services/LicenseService/index.js +10 -3
  131. package/src/Utilities/Services/MetamodelService.d.ts +1 -1
  132. package/src/Utilities/Services/MetamodelService.js +6 -3
  133. package/src/Utilities/Services/RowEditService.d.ts +3 -2
  134. package/src/Utilities/Services/RowEditService.js +3 -1
  135. package/src/View/AdaptableView.js +0 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
  137. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  138. package/src/View/CalculatedColumn/utils.d.ts +1 -1
  139. package/src/View/CellSummary/CellSummaryPopup.js +1 -1
  140. package/src/View/Comments/CommentsPopup.js +12 -8
  141. package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
  142. package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
  143. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +1 -1
  144. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
  145. package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
  146. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  147. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  148. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
  149. package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
  150. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
  151. package/src/View/Layout/TransposedPopup.d.ts +3 -0
  152. package/src/View/Layout/TransposedPopup.js +198 -0
  153. package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
  154. package/src/View/Notes/NotesPopup.js +8 -10
  155. package/src/View/Theme/ThemeSelector.js +2 -2
  156. package/src/agGrid/ActionColumnRenderer.js +4 -4
  157. package/src/agGrid/Adaptable.d.ts +3 -455
  158. package/src/agGrid/Adaptable.js +7 -5291
  159. package/src/agGrid/AdaptableAgGrid.d.ts +336 -0
  160. package/src/agGrid/AdaptableAgGrid.js +3785 -0
  161. package/src/agGrid/AdaptableLogger.js +78 -13
  162. package/src/agGrid/AgGridAdapter.d.ts +54 -0
  163. package/src/agGrid/AgGridAdapter.js +554 -0
  164. package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
  165. package/src/agGrid/AgGridColumnAdapter.js +818 -0
  166. package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
  167. package/src/agGrid/AgGridMenuAdapter.js +276 -0
  168. package/src/agGrid/AgGridOptionsService.d.ts +11 -0
  169. package/src/agGrid/AgGridOptionsService.js +54 -0
  170. package/src/agGrid/BadgeRenderer.js +1 -1
  171. package/src/agGrid/CheckboxRenderer.js +1 -1
  172. package/src/agGrid/FilterWrapper.d.ts +2 -2
  173. package/src/agGrid/FilterWrapper.js +1 -1
  174. package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
  175. package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
  176. package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +73 -10
  177. package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
  178. package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
  179. package/src/components/Datepicker/index.d.ts +1 -1
  180. package/src/components/InfiniteTable/index.js +2 -2
  181. package/src/components/Modal/index.d.ts +1 -0
  182. package/src/components/Modal/index.js +6 -4
  183. package/src/components/Select/Select.d.ts +2 -0
  184. package/src/components/Select/Select.js +2 -2
  185. package/src/env.js +2 -2
  186. package/src/metamodel/adaptable.metamodel.d.ts +39 -11
  187. package/src/metamodel/adaptable.metamodel.js +73 -32
  188. package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
  189. package/src/migration/AdaptableUpgradeHelper.js +52 -0
  190. package/src/migration/VersionUpgrade.d.ts +8 -0
  191. package/src/migration/VersionUpgrade.js +15 -0
  192. package/src/migration/VersionUpgrade17.d.ts +18 -0
  193. package/src/migration/VersionUpgrade17.js +347 -0
  194. package/src/migration/VersionUpgrade18.d.ts +5 -0
  195. package/src/migration/VersionUpgrade18.js +10 -0
  196. package/src/types.d.ts +7 -3
  197. package/tsconfig.cjs.tsbuildinfo +1 -1
  198. package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
  199. package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
  200. package/src/Utilities/Services/Interface/IRowEditService.js +0 -2
  201. package/src/agGrid/agGridHelper.d.ts +0 -57
  202. package/src/agGrid/agGridHelper.js +0 -691
  203. package/src/agGrid/agGridMenuHelper.d.ts +0 -46
  204. package/src/agGrid/agGridMenuHelper.js +0 -673
  205. /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
  206. /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
@@ -15,4 +15,4 @@ export type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'defaultValu
15
15
  showWeekNumber?: boolean;
16
16
  showOutsideDays?: boolean;
17
17
  };
18
- export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "key" | "sizes" | "variant" | "tx" | "as" | "css" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "step" | "type" | "useMap" | "wmode" | "onHide" | "showClearButton" | "datepickerButtons" | "dateProps" | "showWeekNumber" | "showOutsideDays"> & React.RefAttributes<HTMLInputElement>>;
18
+ export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "children" | "size" | "name" | "tabIndex" | "color" | "style" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "summary" | "title" | "pattern" | "start" | "hidden" | "content" | "default" | "flex" | "wrap" | "open" | "padding" | "multiple" | "disabled" | "checked" | "download" | "list" | "order" | "target" | "src" | "className" | "onTransitionEnd" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEndCapture" | "opacity" | "value" | "key" | "sizes" | "variant" | "tx" | "as" | "css" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "bg" | "backgroundColor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "srcSet" | "step" | "type" | "useMap" | "wmode" | "showClearButton" | "onHide" | "datepickerButtons" | "dateProps" | "showWeekNumber" | "showOutsideDays"> & React.RefAttributes<HTMLInputElement>>;
@@ -5,9 +5,9 @@ const tslib_1 = require("tslib");
5
5
  const infinite_react_1 = require("@infinite-table/infinite-react");
6
6
  Object.defineProperty(exports, "InfiniteTable", { enumerable: true, get: function () { return infinite_react_1.InfiniteTable; } });
7
7
  tslib_1.__exportStar(require("@infinite-table/infinite-react"), exports);
8
- const env_1 = tslib_1.__importDefault(require("../../env"));
8
+ const EnvVars_1 = require("../../EnvVars");
9
9
  const defaultProps = infinite_react_1.InfiniteTable.defaultProps;
10
- defaultProps.licenseKey = env_1.default.INFINITE_TABLE_LICENSE_KEY;
10
+ defaultProps.licenseKey = EnvVars_1.INFINITE_TABLE_LICENSE_KEY;
11
11
  defaultProps.sortable = false;
12
12
  defaultProps.rowHeight = '--ab-grid-row-height';
13
13
  defaultProps.draggableColumns = false;
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { FlexProps } from 'rebass';
3
+ export declare const ensurePortalElement: () => HTMLElement;
3
4
  export interface ModalProps extends FlexProps {
4
5
  isOpen?: boolean;
5
6
  baseZIndex?: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Modal = void 0;
3
+ exports.Modal = exports.ensurePortalElement = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_dom_1 = require("react-dom");
@@ -14,17 +14,19 @@ const UIHelper_1 = require("../../View/UIHelper");
14
14
  let portalElement;
15
15
  const ensurePortalElement = () => {
16
16
  if (!(0, UIHelper_1.isBrowserDocumentAvailable)()) {
17
- return;
17
+ return null;
18
18
  }
19
19
  if (portalElement) {
20
- return;
20
+ return portalElement;
21
21
  }
22
22
  portalElement = document.createElement('div');
23
23
  document.body.appendChild(portalElement);
24
+ return portalElement;
24
25
  };
26
+ exports.ensurePortalElement = ensurePortalElement;
25
27
  let globalCounter = 0;
26
28
  const Modal = (props) => {
27
- ensurePortalElement();
29
+ (0, exports.ensurePortalElement)();
28
30
  const { className, style, children, isOpen, onBringToFront } = props, boxProps = tslib_1.__rest(props, ["className", "style", "children", "isOpen", "onBringToFront"]);
29
31
  const uuid = (0, react_1.useMemo)(() => (0, uuid_1.createUuid)(), []);
30
32
  const counter = (0, react_1.useMemo)(() => globalCounter++, [isOpen]);
@@ -10,6 +10,8 @@ export type SelectProps<SelectValue extends unknown, IsMulti extends boolean = f
10
10
  options: readonly SelectOption<SelectValue>[] | SelectOption<SelectValue>[];
11
11
  disabled?: boolean;
12
12
  menuPosition?: 'fixed' | 'absolute';
13
+ menuPlacement?: 'auto' | 'bottom' | 'top';
14
+ searchable?: boolean;
13
15
  isClearable?: boolean;
14
16
  isMulti?: IsMulti;
15
17
  onChange: (value: IsMulti extends true ? SelectValue[] : SelectValue) => void;
@@ -16,7 +16,7 @@ const commonStyles = ({ isFocused, isDisabled, }) => {
16
16
  };
17
17
  };
18
18
  const Select = function (props) {
19
- var _a, _b, _c, _d, _e, _f, _g;
19
+ var _a, _b, _c, _d, _e, _f, _g, _h;
20
20
  const doesOptionMatchValue = function (option) {
21
21
  if (typeof option.value === 'object' && option.value instanceof Date) {
22
22
  return (0, date_fns_1.isSameDay)(option.value, props.value);
@@ -84,7 +84,7 @@ const Select = function (props) {
84
84
  React.createElement(icons_1.Icon, { name: "triangle-down", style: { height: 20, width: 20 } })));
85
85
  };
86
86
  }, []);
87
- return (React.createElement(SelectComponent, { onInputChange: props.onInputChange, onFocus: props.onFocus, isLoading: props.isLoding, options: props.options, className: props.className, isDisabled: disabled, isMulti: props.isMulti, value: selectedOption, menuPosition: (_g = props.menuPosition) !== null && _g !== void 0 ? _g : 'absolute',
87
+ return (React.createElement(SelectComponent, { onInputChange: props.onInputChange, onFocus: props.onFocus, isLoading: props.isLoding, options: props.options, className: props.className, isDisabled: disabled, menuPlacement: (_g = props.menuPlacement) !== null && _g !== void 0 ? _g : 'auto', isSearchable: props.searchable, isMulti: props.isMulti, value: selectedOption, menuPosition: (_h = props.menuPosition) !== null && _h !== void 0 ? _h : 'absolute',
88
88
  // This needed so the menu is not clipped by overflow: hidden
89
89
  menuPortalTarget: document.body, isClearable: props.isClearable, onChange: (option) => {
90
90
  if (props.isMulti) {
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: 1707926781705 || Date.now(),
6
- VERSION: "18.0.0-canary.3" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1710513543012 || Date.now(),
6
+ VERSION: "18.0.0-canary.5" || '--current-version--',
7
7
  };
@@ -681,6 +681,15 @@ export declare const ADAPTABLE_METAMODEL: {
681
681
  noCode: string;
682
682
  defVal?: undefined;
683
683
  ref?: undefined;
684
+ } | {
685
+ name: string;
686
+ kind: string;
687
+ desc: string;
688
+ isOpt: boolean;
689
+ defVal: string;
690
+ gridInfo?: undefined;
691
+ noCode?: undefined;
692
+ ref?: undefined;
684
693
  } | {
685
694
  name: string;
686
695
  kind: string;
@@ -735,15 +744,6 @@ export declare const ADAPTABLE_METAMODEL: {
735
744
  gridInfo?: undefined;
736
745
  defVal?: undefined;
737
746
  ref?: undefined;
738
- } | {
739
- name: string;
740
- kind: string;
741
- desc: string;
742
- isOpt: boolean;
743
- defVal: string;
744
- gridInfo?: undefined;
745
- noCode?: undefined;
746
- ref?: undefined;
747
747
  } | {
748
748
  name: string;
749
749
  kind: string;
@@ -1927,6 +1927,22 @@ export declare const ADAPTABLE_METAMODEL: {
1927
1927
  ref: string;
1928
1928
  })[];
1929
1929
  };
1930
+ CommentableCellContext: {
1931
+ name: string;
1932
+ kind: string;
1933
+ desc: string;
1934
+ };
1935
+ CommentsOptions: {
1936
+ name: string;
1937
+ kind: string;
1938
+ desc: string;
1939
+ props: {
1940
+ name: string;
1941
+ kind: string;
1942
+ desc: string;
1943
+ isOpt: boolean;
1944
+ }[];
1945
+ };
1930
1946
  CompatibleContext: {
1931
1947
  name: string;
1932
1948
  kind: string;
@@ -3659,6 +3675,18 @@ export declare const ADAPTABLE_METAMODEL: {
3659
3675
  kind: string;
3660
3676
  desc: string;
3661
3677
  };
3678
+ InteropioPluginOptions: {
3679
+ name: string;
3680
+ kind: string;
3681
+ desc: string;
3682
+ props: {
3683
+ name: string;
3684
+ kind: string;
3685
+ desc: string;
3686
+ isOpt: boolean;
3687
+ defVal: string;
3688
+ }[];
3689
+ };
3662
3690
  IPushPullDomain: {
3663
3691
  name: string;
3664
3692
  kind: string;
@@ -3955,7 +3983,7 @@ export declare const ADAPTABLE_METAMODEL: {
3955
3983
  isOpt: boolean;
3956
3984
  }[];
3957
3985
  };
3958
- NoteState: {
3986
+ NotesState: {
3959
3987
  name: string;
3960
3988
  kind: string;
3961
3989
  desc: string;
@@ -4512,7 +4540,7 @@ export declare const ADAPTABLE_METAMODEL: {
4512
4540
  isOpt?: undefined;
4513
4541
  })[];
4514
4542
  };
4515
- Report_2: {
4543
+ Report: {
4516
4544
  name: string;
4517
4545
  kind: string;
4518
4546
  desc: string;
@@ -1038,16 +1038,6 @@ exports.ADAPTABLE_METAMODEL = {
1038
1038
  "kind": "I",
1039
1039
  "desc": "Note that can be applied to a Cell in AdapTable",
1040
1040
  "props": [
1041
- {
1042
- "name": "AdaptableId",
1043
- "kind": "s",
1044
- "desc": "Id of this AdapTable instance"
1045
- },
1046
- {
1047
- "name": "Author",
1048
- "kind": "u",
1049
- "desc": "Author of the Note"
1050
- },
1051
1041
  {
1052
1042
  "name": "ColumnId",
1053
1043
  "kind": "s",
@@ -1058,15 +1048,15 @@ exports.ADAPTABLE_METAMODEL = {
1058
1048
  "kind": "u",
1059
1049
  "desc": "Value in Grid&#39;s Primary Key Column"
1060
1050
  },
1051
+ {
1052
+ "name": "Text",
1053
+ "kind": "s",
1054
+ "desc": "Value of the Note"
1055
+ },
1061
1056
  {
1062
1057
  "name": "Timestamp",
1063
1058
  "kind": "n",
1064
1059
  "desc": "When Note was made"
1065
- },
1066
- {
1067
- "name": "Value",
1068
- "kind": "s",
1069
- "desc": "Value of the Note"
1070
1060
  }
1071
1061
  ]
1072
1062
  },
@@ -1201,6 +1191,13 @@ exports.ADAPTABLE_METAMODEL = {
1201
1191
  "gridInfo": "item",
1202
1192
  "defVal": "false"
1203
1193
  },
1194
+ {
1195
+ "name": "autoMigrateState",
1196
+ "kind": "b",
1197
+ "desc": "Automatically migrate the state from the previous version of Adaptable to the current version.",
1198
+ "isOpt": true,
1199
+ "defVal": "true"
1200
+ },
1204
1201
  {
1205
1202
  "name": "calendarOptions",
1206
1203
  "kind": "R",
@@ -1239,7 +1236,7 @@ exports.ADAPTABLE_METAMODEL = {
1239
1236
  "ref": "ColumnOptions"
1240
1237
  },
1241
1238
  {
1242
- "name": "commentsOptions",
1239
+ "name": "commentOptions",
1243
1240
  "kind": "u",
1244
1241
  "desc": "Options for managing AdapTable Comments",
1245
1242
  "isOpt": true
@@ -1379,11 +1376,11 @@ exports.ADAPTABLE_METAMODEL = {
1379
1376
  "gridInfo": "container"
1380
1377
  },
1381
1378
  {
1382
- "name": "notesOptions",
1379
+ "name": "noteOptions",
1383
1380
  "kind": "R",
1384
- "desc": "Options for managing AdapTable Comments",
1381
+ "desc": "Options for managing Notes",
1385
1382
  "isOpt": true,
1386
- "ref": "NotesOptions"
1383
+ "ref": "unknown"
1387
1384
  },
1388
1385
  {
1389
1386
  "name": "notificationsOptions",
@@ -3298,6 +3295,36 @@ exports.ADAPTABLE_METAMODEL = {
3298
3295
  }
3299
3296
  ]
3300
3297
  },
3298
+ "CommentableCellContext": {
3299
+ "name": "CommentableCellContext",
3300
+ "kind": "I",
3301
+ "desc": "Context used when determining if a Comment can be added to a Cell"
3302
+ },
3303
+ "CommentsOptions": {
3304
+ "name": "CommentsOptions",
3305
+ "kind": "I",
3306
+ "desc": "Options for managing Comments and Comment Threads in AdapTable",
3307
+ "props": [
3308
+ {
3309
+ "name": "isCellCommentable",
3310
+ "kind": "f",
3311
+ "desc": "Whether a cell can be noted on TODO: check if it works",
3312
+ "isOpt": true
3313
+ },
3314
+ {
3315
+ "name": "loadCommentThreads",
3316
+ "kind": "f",
3317
+ "desc": "Called to load initial comments",
3318
+ "isOpt": true
3319
+ },
3320
+ {
3321
+ "name": "persistCommentThreads",
3322
+ "kind": "f",
3323
+ "desc": "Called when comments change",
3324
+ "isOpt": true
3325
+ }
3326
+ ]
3327
+ },
3301
3328
  "CompatibleContext": {
3302
3329
  "name": "CompatibleContext",
3303
3330
  "kind": "A",
@@ -4695,7 +4722,7 @@ exports.ADAPTABLE_METAMODEL = {
4695
4722
  "name": "report",
4696
4723
  "kind": "R",
4697
4724
  "desc": "The exported report",
4698
- "ref": "unknown"
4725
+ "ref": "Report"
4699
4726
  },
4700
4727
  {
4701
4728
  "name": "reportData",
@@ -6094,6 +6121,20 @@ exports.ADAPTABLE_METAMODEL = {
6094
6121
  "kind": "A",
6095
6122
  "desc": "Type for FDC3 Instrument List Context"
6096
6123
  },
6124
+ "InteropioPluginOptions": {
6125
+ "name": "InteropioPluginOptions",
6126
+ "kind": "I",
6127
+ "desc": "Options for using the Interop plugin",
6128
+ "props": [
6129
+ {
6130
+ "name": "showAdaptableAlertsAsNotifications",
6131
+ "kind": "b",
6132
+ "desc": "Converts AdapTable Alerts configured to display in popup as Interop Notifications",
6133
+ "isOpt": true,
6134
+ "defVal": "true"
6135
+ }
6136
+ ]
6137
+ },
6097
6138
  "IPushPullDomain": {
6098
6139
  "name": "IPushPullDomain",
6099
6140
  "kind": "I",
@@ -6711,8 +6752,8 @@ exports.ADAPTABLE_METAMODEL = {
6711
6752
  }
6712
6753
  ]
6713
6754
  },
6714
- "NoteState": {
6715
- "name": "NoteState",
6755
+ "NotesState": {
6756
+ "name": "NotesState",
6716
6757
  "kind": "I",
6717
6758
  "desc": "Predefined Configuration for Notes Module",
6718
6759
  "props": [
@@ -7280,9 +7321,9 @@ exports.ADAPTABLE_METAMODEL = {
7280
7321
  {
7281
7322
  "name": "Notes",
7282
7323
  "kind": "R",
7283
- "desc": "Collection of notes that can be edited on cell level",
7324
+ "desc": "Collection of personal Notes that are edited at Cell level",
7284
7325
  "isOpt": true,
7285
- "ref": "unknown"
7326
+ "ref": "NotesState"
7286
7327
  },
7287
7328
  {
7288
7329
  "name": "PlusMinus",
@@ -7468,7 +7509,7 @@ exports.ADAPTABLE_METAMODEL = {
7468
7509
  "name": "report",
7469
7510
  "kind": "R",
7470
7511
  "desc": "Report being exported",
7471
- "ref": "unknown"
7512
+ "ref": "Report"
7472
7513
  }
7473
7514
  ]
7474
7515
  },
@@ -7760,8 +7801,8 @@ exports.ADAPTABLE_METAMODEL = {
7760
7801
  }
7761
7802
  ]
7762
7803
  },
7763
- "Report_2": {
7764
- "name": "Report_2",
7804
+ "Report": {
7805
+ "name": "Report",
7765
7806
  "kind": "I",
7766
7807
  "desc": "A Report which can export data from AdapTable",
7767
7808
  "props": [
@@ -7812,7 +7853,7 @@ exports.ADAPTABLE_METAMODEL = {
7812
7853
  "name": "report",
7813
7854
  "kind": "R",
7814
7855
  "desc": "Definition of Report being Run",
7815
- "ref": "unknown"
7856
+ "ref": "Report"
7816
7857
  },
7817
7858
  {
7818
7859
  "name": "reportData",
@@ -9231,7 +9272,7 @@ exports.ADAPTABLE_METAMODEL = {
9231
9272
  "ValuesFilterOptions": {
9232
9273
  "name": "ValuesFilterOptions",
9233
9274
  "kind": "I",
9234
- "desc": "Options for managing the Values (IN) Column Filter",
9275
+ "desc": "Options for managing the Values (IN) Filter in Filter Bar and Filter Form",
9235
9276
  "props": [
9236
9277
  {
9237
9278
  "name": "filterValuesUsingTime",
@@ -9252,12 +9293,12 @@ exports.ADAPTABLE_METAMODEL = {
9252
9293
  },
9253
9294
  {
9254
9295
  "name": "maxFilterValuesToDisplay",
9255
- "kind": "n",
9256
- "desc": "Distinct column items to display in Filter Form; useful with large datasource (though AdapTable offers virtualisation)",
9296
+ "kind": "u",
9297
+ "desc": "Distinct column items to display in Values Filter; useful with large datasource (though AdapTable offers virtualisation)",
9257
9298
  "isOpt": true,
9258
9299
  "gridInfo": "item",
9259
9300
  "noCode": "item",
9260
- "defVal": "2,000"
9301
+ "defVal": "undefined"
9261
9302
  },
9262
9303
  {
9263
9304
  "name": "showDistinctFilteredValuesOnly",
@@ -0,0 +1,38 @@
1
+ import { VersionUpgrade } from './VersionUpgrade';
2
+ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
3
+ /**
4
+ * The upgrade config object
5
+ */
6
+ export interface UpgradeConfig {
7
+ /**
8
+ * The version to upgrade from
9
+ */
10
+ fromVersion: number;
11
+ /**
12
+ * The version to upgrade to
13
+ *
14
+ * @defaultValue The current version
15
+ */
16
+ toVersion?: number;
17
+ /**
18
+ * The logger object
19
+ *
20
+ * @defaultValue The console object
21
+ */
22
+ logger?: MigrationLogger;
23
+ }
24
+ export interface MigrationLogger {
25
+ success: (message: string, ...optionalParams: any[]) => void;
26
+ info: (message: string, ...optionalParams: any[]) => void;
27
+ warn: (message: string, ...optionalParams: any[]) => void;
28
+ error: (message: string, ...optionalParams: any[]) => void;
29
+ }
30
+ export declare class AdaptableUpgradeHelper {
31
+ protected currentMajorVersion: number;
32
+ protected versionUpgrades: Map<number, VersionUpgrade>;
33
+ protected logger: MigrationLogger;
34
+ private constructor();
35
+ static migrateAdaptableState(state: AdaptableState, config: UpgradeConfig): AdaptableState;
36
+ private getCurrentMajorVersion;
37
+ private getConsoleLogger;
38
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptableUpgradeHelper = void 0;
4
+ const VersionUpgrade17_1 = require("./VersionUpgrade17");
5
+ const VersionUpgrade18_1 = require("./VersionUpgrade18");
6
+ const EnvVars_1 = require("../EnvVars");
7
+ class AdaptableUpgradeHelper {
8
+ constructor(logger) {
9
+ this.currentMajorVersion = this.getCurrentMajorVersion(EnvVars_1.ADAPTABLE_VERSION);
10
+ this.logger = logger || this.getConsoleLogger();
11
+ this.versionUpgrades = new Map();
12
+ this.versionUpgrades.set(17, new VersionUpgrade17_1.VersionUpgrade17(this.logger));
13
+ this.versionUpgrades.set(18, new VersionUpgrade18_1.VersionUpgrade18(this.logger));
14
+ }
15
+ static migrateAdaptableState(state, config) {
16
+ const upgradeHelper = new AdaptableUpgradeHelper(config.logger);
17
+ let fromVersion = (config === null || config === void 0 ? void 0 : config.fromVersion) || 16;
18
+ const toVersion = (config === null || config === void 0 ? void 0 : config.toVersion) || upgradeHelper.currentMajorVersion;
19
+ if (fromVersion >= toVersion) {
20
+ console.warn(`The fromVersion (${fromVersion}) should be less than toVersion (${toVersion})!`);
21
+ return state;
22
+ }
23
+ if (fromVersion < 16) {
24
+ // until version 16 we didn't have versioning
25
+ fromVersion = 16;
26
+ }
27
+ const versionUpgrades = Array.from(upgradeHelper.versionUpgrades.keys());
28
+ let updatedState = structuredClone(state);
29
+ for (const version of versionUpgrades) {
30
+ if (version > fromVersion && version <= toVersion) {
31
+ upgradeHelper.logger.info(`Migration to ${version} started...`);
32
+ updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
33
+ upgradeHelper.logger.info(`Migration to ${version} finished!`);
34
+ }
35
+ }
36
+ return updatedState;
37
+ }
38
+ getCurrentMajorVersion(version) {
39
+ // is good enough for now, we just need to make sure we don't forget to update it
40
+ // TODO AFL is there a better way to do this for local development?
41
+ return parseInt(version.split('.')[0]) || 18;
42
+ }
43
+ getConsoleLogger() {
44
+ return {
45
+ success: console.log,
46
+ info: console.info,
47
+ warn: console.warn,
48
+ error: console.error,
49
+ };
50
+ }
51
+ }
52
+ exports.AdaptableUpgradeHelper = AdaptableUpgradeHelper;
@@ -0,0 +1,8 @@
1
+ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
2
+ import { MigrationLogger } from './AdaptableUpgradeHelper';
3
+ export declare abstract class VersionUpgrade {
4
+ protected logger: MigrationLogger;
5
+ constructor(logger: MigrationLogger);
6
+ abstract migrateState(state: AdaptableState): AdaptableState;
7
+ protected migrateStateWithMethods(state: AdaptableState, methods: ((state: AdaptableState) => AdaptableState)[]): AdaptableState;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VersionUpgrade = void 0;
4
+ class VersionUpgrade {
5
+ constructor(logger) {
6
+ this.logger = logger;
7
+ }
8
+ migrateStateWithMethods(state, methods) {
9
+ for (let method of methods) {
10
+ state = method.call(this, state);
11
+ }
12
+ return state;
13
+ }
14
+ }
15
+ exports.VersionUpgrade = VersionUpgrade;
@@ -0,0 +1,18 @@
1
+ import { VersionUpgrade } from './VersionUpgrade';
2
+ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
3
+ export declare class VersionUpgrade17 extends VersionUpgrade {
4
+ migrateState(state: AdaptableState): AdaptableState;
5
+ private migrateChartingState;
6
+ private migrateColumnFilterState;
7
+ private migrateDashboardState;
8
+ private migrateFlashinCellState;
9
+ private migrateFormatColumnState;
10
+ private migrateFreeTextColumnState;
11
+ private migrateGridFilterState;
12
+ private migrateNamedQueryState;
13
+ private migrateStyledColumnState;
14
+ private migrateToolPanelState;
15
+ private migrateAlertState;
16
+ private migrateCalculatedColumnState;
17
+ private migrateUserState;
18
+ }