@adaptabletools/adaptable-cjs 17.0.0-canary.3 → 18.0.0-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.
Files changed (288) hide show
  1. package/base.css +1264 -1202
  2. package/base.css.map +1 -1
  3. package/index.css +2099 -22
  4. package/index.css.map +1 -1
  5. package/package.json +5 -4
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
  7. package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
  8. package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
  9. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
  10. package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
  11. package/src/AdaptableOptions/EditOptions.d.ts +6 -6
  12. package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
  13. package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
  14. package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
  15. package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
  16. package/src/AdaptableOptions/MenuOptions.js +14 -6
  17. package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
  18. package/src/Api/AdaptableApi.d.ts +6 -1
  19. package/src/Api/CommentApi.d.ts +58 -0
  20. package/src/Api/EventApi.d.ts +48 -12
  21. package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
  22. package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
  23. package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
  24. package/src/Api/Events/LiveDataChanged.d.ts +3 -3
  25. package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
  26. package/src/Api/GridApi.d.ts +0 -6
  27. package/src/Api/GridFilterApi.d.ts +2 -2
  28. package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
  29. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  30. package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
  31. package/src/Api/Implementation/CommentsApiImpl.js +46 -0
  32. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  33. package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
  34. package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
  35. package/src/Api/Implementation/GridApiImpl.js +0 -4
  36. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
  38. package/src/Api/Implementation/NotesApiImpl.d.ts +2 -6
  39. package/src/Api/Implementation/NotesApiImpl.js +1 -15
  40. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
  41. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  42. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
  43. package/src/Api/Implementation/PluginsApiImpl.js +3 -15
  44. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
  45. package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
  46. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
  47. package/src/Api/Implementation/ThemeApiImpl.js +3 -0
  48. package/src/Api/Internal/ActionRowInternalApi.js +1 -1
  49. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  50. package/src/Api/Internal/AdaptableInternalApi.js +3 -0
  51. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  52. package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
  53. package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
  54. package/src/Api/Internal/DashboardInternalApi.js +5 -0
  55. package/src/Api/Internal/DataImportInternalApi.js +2 -0
  56. package/src/Api/Internal/DataSetInternalApi.js +2 -1
  57. package/src/Api/Internal/GridInternalApi.d.ts +3 -1
  58. package/src/Api/Internal/GridInternalApi.js +32 -9
  59. package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
  60. package/src/Api/Internal/LayoutInternalApi.js +11 -11
  61. package/src/Api/InteropioPluginApi.d.ts +10 -0
  62. package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
  63. package/src/Api/OptionsApi.d.ts +5 -0
  64. package/src/Api/PluginsApi.d.ts +3 -13
  65. package/src/Api/ScheduleApi.d.ts +1 -48
  66. package/src/Api/ThemeApi.d.ts +5 -0
  67. package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
  68. package/src/PredefinedConfig/CellAddress.d.ts +13 -0
  69. package/src/PredefinedConfig/CellAddress.js +5 -0
  70. package/src/PredefinedConfig/CommentState.d.ts +48 -0
  71. package/src/PredefinedConfig/CommentState.js +2 -0
  72. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  73. package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
  74. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  75. package/src/PredefinedConfig/Common/Enums.js +0 -1
  76. package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
  77. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  78. package/src/PredefinedConfig/Common/Types.js +0 -2
  79. package/src/PredefinedConfig/NotesState.d.ts +0 -13
  80. package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
  81. package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
  82. package/src/PredefinedConfig/SystemState.d.ts +5 -6
  83. package/src/PredefinedConfig/ThemeState.d.ts +1 -1
  84. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
  85. package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
  86. package/src/Redux/ActionsReducers/NotesRedux.js +1 -2
  87. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
  88. package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
  89. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
  90. package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
  91. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
  92. package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
  93. package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
  94. package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
  95. package/src/Redux/Store/AdaptableStore.d.ts +2 -2
  96. package/src/Redux/Store/AdaptableStore.js +107 -46
  97. package/src/Strategy/CommentsModule.d.ts +16 -0
  98. package/src/Strategy/CommentsModule.js +82 -0
  99. package/src/Strategy/LayoutModule.d.ts +12 -4
  100. package/src/Strategy/LayoutModule.js +19 -14
  101. package/src/Strategy/NotesModule.d.ts +0 -13
  102. package/src/Strategy/NotesModule.js +9 -88
  103. package/src/Strategy/PlusMinusModule.js +2 -0
  104. package/src/Strategy/ScheduleModule.js +0 -23
  105. package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
  106. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
  107. package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
  108. package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
  109. package/src/Utilities/Constants/ConfigConstants.js +2 -1
  110. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  111. package/src/Utilities/Constants/GeneralConstants.js +8 -3
  112. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
  113. package/src/Utilities/Constants/ModuleConstants.js +4 -4
  114. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
  115. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
  116. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
  117. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
  118. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  119. package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
  120. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  121. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
  122. package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
  123. package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
  124. package/src/Utilities/Helpers/PreviewHelper.js +5 -2
  125. package/src/Utilities/ObjectFactory.d.ts +19 -22
  126. package/src/Utilities/ObjectFactory.js +51 -60
  127. package/src/Utilities/Services/CellPopupService.d.ts +23 -0
  128. package/src/Utilities/Services/CellPopupService.js +138 -0
  129. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  130. package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
  131. package/src/Utilities/Services/ModuleService.js +1 -3
  132. package/src/Utilities/Services/ReportService.d.ts +1 -1
  133. package/src/Utilities/Services/ThemeService.d.ts +3 -0
  134. package/src/Utilities/Services/ThemeService.js +33 -1
  135. package/src/Utilities/Services/ValidationService.js +11 -11
  136. package/src/View/AdaptableView.js +3 -3
  137. package/src/View/AdaptableViewFactory.js +4 -2
  138. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
  139. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
  140. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
  141. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
  142. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  143. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
  144. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  145. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
  146. package/src/View/Charting/useChartingElements.js +8 -3
  147. package/src/View/Comments/CommentsEditor.d.ts +7 -0
  148. package/src/View/Comments/CommentsEditor.js +100 -0
  149. package/src/View/Comments/CommentsPopup.d.ts +2 -0
  150. package/src/View/Comments/CommentsPopup.js +87 -0
  151. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
  152. package/src/View/Components/CellPopup/index.js +1 -1
  153. package/src/View/Components/FilterForm/FilterForm.js +8 -2
  154. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
  155. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
  156. package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
  157. package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
  158. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
  159. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
  160. package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
  161. package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
  162. package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
  163. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  164. package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
  165. package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
  166. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
  167. package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
  168. package/src/View/Dashboard/PinnedDashboard.js +2 -1
  169. package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
  170. package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
  171. package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
  172. package/src/View/GridFilter/GridFilterPopup.js +10 -8
  173. package/src/View/GridFilter/GridFilterViewPanel.js +14 -11
  174. package/src/View/GridFilter/NamedQuerySelector.js +1 -1
  175. package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
  176. package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
  177. package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
  178. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
  179. package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
  180. package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
  181. package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
  182. package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
  183. package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
  184. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  185. package/src/View/Notes/NoteEditor.d.ts +8 -0
  186. package/src/View/Notes/NoteEditor.js +33 -0
  187. package/src/View/Notes/NotesPopup.d.ts +2 -2
  188. package/src/View/Notes/NotesPopup.js +78 -55
  189. package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
  190. package/src/View/PlusMinus/MovePlusMinus.js +27 -0
  191. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
  192. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
  193. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
  194. package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
  195. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
  196. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
  197. package/src/agGrid/Adaptable.d.ts +7 -0
  198. package/src/agGrid/Adaptable.js +49 -35
  199. package/src/agGrid/BadgeRenderer.js +9 -5
  200. package/src/agGrid/agGridHelper.d.ts +2 -1
  201. package/src/agGrid/agGridHelper.js +15 -3
  202. package/src/agGrid/agGridMenuHelper.d.ts +2 -0
  203. package/src/agGrid/agGridMenuHelper.js +73 -25
  204. package/src/components/Datepicker/index.js +4 -4
  205. package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
  206. package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
  207. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
  208. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
  209. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
  210. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
  211. package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
  212. package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
  213. package/src/components/ExpressionEditor/index.js +4 -7
  214. package/src/components/InputGroup/InputGroup.d.ts +7 -0
  215. package/src/components/InputGroup/InputGroup.js +12 -0
  216. package/src/components/InputGroup/index.d.ts +1 -0
  217. package/src/components/InputGroup/index.js +4 -0
  218. package/src/components/OverlayTrigger/index.js +7 -2
  219. package/src/components/Select/Select.d.ts +1 -2
  220. package/src/components/Select/Select.js +63 -23
  221. package/src/components/Toastify/index.d.ts +2 -2
  222. package/src/components/Toastify/index.js +1 -1
  223. package/src/components/icons/comments.d.ts +3 -0
  224. package/src/components/icons/comments.js +7 -0
  225. package/src/components/icons/index.js +3 -1
  226. package/src/env.d.ts +3 -1
  227. package/src/env.js +3 -1
  228. package/src/metamodel/adaptable.metamodel.d.ts +72 -158
  229. package/src/metamodel/adaptable.metamodel.js +128 -260
  230. package/src/parser/src/parser.d.ts +2 -0
  231. package/src/parser/src/parser.js +1880 -705
  232. package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
  233. package/src/parser/src/predicate/types.d.ts +1 -1
  234. package/src/parser/src/types.d.ts +1 -1
  235. package/src/renderReactRoot.js +15 -0
  236. package/src/themes/index.js +4 -0
  237. package/src/types.d.ts +10 -13
  238. package/themes/dark.css +4 -4
  239. package/themes/dark.css.map +1 -1
  240. package/themes/light.css +1 -1
  241. package/themes/light.css.map +1 -1
  242. package/tsconfig.cjs.tsbuildinfo +1 -1
  243. package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
  244. package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
  245. package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
  246. package/src/Api/Events/SelectionChanged.d.ts +0 -16
  247. package/src/Api/FinsembleApi.d.ts +0 -10
  248. package/src/Api/Glue42Api.d.ts +0 -75
  249. package/src/Api/Glue42WebApi.d.ts +0 -10
  250. package/src/PredefinedConfig/Glue42State.d.ts +0 -46
  251. package/src/View/Notes/NotesListing.d.ts +0 -2
  252. package/src/View/Notes/NotesListing.js +0 -88
  253. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
  254. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
  255. package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
  256. package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
  257. package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
  258. package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
  259. package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
  260. package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
  261. package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
  262. package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
  263. package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
  264. package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
  265. package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
  266. package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
  267. package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
  268. package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
  269. package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
  270. package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
  271. package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
  272. package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
  273. package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
  274. package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
  275. package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
  276. package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
  277. package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
  278. /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
  279. /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
  280. /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
  281. /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
  282. /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
  283. /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
  284. /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
  285. /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
  286. /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
  287. /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
  288. /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
@@ -6,6 +6,7 @@ const date_fns_1 = require("date-fns");
6
6
  const React = tslib_1.__importStar(require("react"));
7
7
  const react_select_1 = tslib_1.__importStar(require("react-select"));
8
8
  const creatable_1 = tslib_1.__importDefault(require("react-select/creatable"));
9
+ const icons_1 = require("../icons");
9
10
  const commonStyles = ({ isFocused, isDisabled, }) => {
10
11
  return {
11
12
  color: 'var(--ab-cmp-input__color)',
@@ -15,21 +16,40 @@ const commonStyles = ({ isFocused, isDisabled, }) => {
15
16
  };
16
17
  };
17
18
  const Select = function (props) {
18
- var _a, _b, _c, _d, _e;
19
- let selectedOption = (_b = ((_a = props.options) !== null && _a !== void 0 ? _a : []).find((option) => {
19
+ var _a, _b, _c, _d, _e, _f, _g;
20
+ const doesOptionMatchValue = function (option) {
20
21
  if (typeof option.value === 'object' && option.value instanceof Date) {
21
22
  return (0, date_fns_1.isSameDay)(option.value, props.value);
22
23
  }
23
24
  return option.value === props.value;
24
- })) !== null && _b !== void 0 ? _b : null;
25
- if (!selectedOption && props.value !== undefined && props.value !== null) {
26
- selectedOption = {
27
- value: props.value,
28
- label: props.value,
29
- };
25
+ };
26
+ let selectedOption = null;
27
+ if (props.isMulti) {
28
+ selectedOption =
29
+ (_b = ((_a = props.value) !== null && _a !== void 0 ? _a : []).map((value) => {
30
+ var _a;
31
+ // return (props.value as any[]).includes(option.value);
32
+ const option = ((_a = props.options) !== null && _a !== void 0 ? _a : []).find(doesOptionMatchValue);
33
+ if (!option) {
34
+ return {
35
+ value,
36
+ label: value,
37
+ };
38
+ }
39
+ return option;
40
+ })) !== null && _b !== void 0 ? _b : null;
30
41
  }
31
- let disabled = (_c = props.disabled) !== null && _c !== void 0 ? _c : false;
32
- const accessLevel = (_d = props.accessLevel) !== null && _d !== void 0 ? _d : 'Full';
42
+ else {
43
+ selectedOption = (_d = ((_c = props.options) !== null && _c !== void 0 ? _c : []).find(doesOptionMatchValue)) !== null && _d !== void 0 ? _d : null;
44
+ if (!selectedOption && props.value !== undefined && props.value !== null) {
45
+ selectedOption = {
46
+ value: props.value,
47
+ label: props.value,
48
+ };
49
+ }
50
+ }
51
+ let disabled = (_e = props.disabled) !== null && _e !== void 0 ? _e : false;
52
+ const accessLevel = (_f = props.accessLevel) !== null && _f !== void 0 ? _f : 'Full';
33
53
  if (accessLevel === 'Hidden') {
34
54
  return null;
35
55
  }
@@ -52,7 +72,21 @@ const Select = function (props) {
52
72
  };
53
73
  }, []);
54
74
  const SelectComponent = props.isCreatable ? creatable_1.default : react_select_1.default;
55
- 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: (_e = props.menuPosition) !== null && _e !== void 0 ? _e : 'fixed', isClearable: props.isClearable, onChange: (option) => {
75
+ const ClearIndicator = React.useMemo(() => {
76
+ return (clearIndicatorProps) => {
77
+ return (React.createElement(react_select_1.components.ClearIndicator, Object.assign({}, clearIndicatorProps),
78
+ React.createElement(icons_1.Icon, { name: "close" })));
79
+ };
80
+ }, []);
81
+ const DropdownIndicator = React.useMemo(() => {
82
+ return (props) => {
83
+ return (React.createElement(react_select_1.components.DropdownIndicator, Object.assign({}, props),
84
+ React.createElement(icons_1.Icon, { name: "triangle-down", style: { height: 20, width: 20 } })));
85
+ };
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',
88
+ // This needed so the menu is not clipped by overflow: hidden
89
+ menuPortalTarget: document.body, isClearable: props.isClearable, onChange: (option) => {
56
90
  if (props.isMulti) {
57
91
  props.onChange(option.map((x) => x === null || x === void 0 ? void 0 : x.value));
58
92
  }
@@ -63,10 +97,12 @@ const Select = function (props) {
63
97
  SelectContainer,
64
98
  ValueContainer,
65
99
  SingleValue: (singleValueProps) => {
66
- return (React.createElement(react_select_1.components.SingleValue, Object.assign({}, singleValueProps), props.rederSingleValue
67
- ? props.rederSingleValue(selectedOption)
100
+ return (React.createElement(react_select_1.components.SingleValue, Object.assign({}, singleValueProps), props.renderSingleValue
101
+ ? props.renderSingleValue(selectedOption)
68
102
  : singleValueProps.children));
69
103
  },
104
+ ClearIndicator,
105
+ DropdownIndicator,
70
106
  },
71
107
  /**
72
108
  * Using styles is the preferred way to style react-select.
@@ -85,25 +121,25 @@ const Select = function (props) {
85
121
  },
86
122
  // @ts-ignore
87
123
  menu: (baseStyle, state) => {
88
- return Object.assign(Object.assign(Object.assign({}, baseStyle), { zIndex: 999999, boxShadow: 'var(--ab-cmp-dropdownbutton-list__box-shadow)', minWidth: 160 }), commonStyles(state));
124
+ return Object.assign(Object.assign(Object.assign({}, baseStyle), { zIndex: 999999, boxShadow: 'var(--ab-cmp-select-menu__box-shadow)', minWidth: 160 }), commonStyles(state));
89
125
  },
90
126
  // @ts-ignore
91
127
  option: (baseStyle, state) => {
92
128
  const style = Object.assign(Object.assign(Object.assign({}, baseStyle), commonStyles(state)), { '&:active': {
93
- background: 'var(--ab-cmp-dropdownbutton-list-item-hover__background)',
129
+ background: 'var(--ab-cmp-select-option-active__background)',
94
130
  }, opacity: state.isDisabled ? 0.5 : 1 });
95
131
  if (state.isSelected) {
96
- style.background = 'var(--ab-cmp-dropdownbutton-list-item-active__background)';
97
- style.color = 'var(--ab-cmp-dropdownbutton-list-item-active__color)';
132
+ style.background = 'var(--ab-cmp-select-option-active__background)';
133
+ style.color = 'var(--ab-cmp-select-option-active__color)';
98
134
  }
99
135
  if (state.isFocused) {
100
- style.background = 'var(--ab-cmp-dropdownbutton-list-item-hover__background)';
136
+ style.background = 'var(--ab-cmp-select-option-focused__background)';
101
137
  }
102
138
  return style;
103
139
  },
104
140
  // @ts-ignore
105
141
  input: (baseStyle, state) => {
106
- return Object.assign(Object.assign({}, baseStyle), { padding: props.size === 'small' ? 0 : baseStyle.padding, color: 'var(--ab-cmp-input__color)' });
142
+ return Object.assign(Object.assign({}, baseStyle), { padding: props.size === 'small' ? 0 : baseStyle.padding, color: 'var(--ab-cmp-select__color)' });
107
143
  },
108
144
  valueContainer: (baseStyle) => {
109
145
  return Object.assign(Object.assign({}, baseStyle), { padding: props.size === 'small' ? `0 var(--ab-space-1)` : baseStyle.padding });
@@ -117,10 +153,8 @@ const Select = function (props) {
117
153
  state;
118
154
  return Object.assign(Object.assign(Object.assign({}, baseStyle), commonStyles(state)), {
119
155
  // height: 30,
120
- minHeight: props.size === 'small' ? 0 : 32, boxShadow: state.isFocused ? 'var(--ab-focus__box-shadow)' : 'none', outline: state.isFocused ? 'var(--ab-focus__outline)' : 'none', border: props.variant && props.variant === 'raised'
121
- ? '1px solid transparent'
122
- : 'var(--ab-cmp-input__border)', '&:hover': {
123
- border: 'var(--ab-cmp-input__border)',
156
+ minHeight: props.size === 'small' ? 0 : 32, boxShadow: state.isFocused ? 'var(--ab-cmp-select-focused__box-shadow)' : 'none', outline: state.isFocused ? 'var(--ab-cmp-select-focused__outline)' : 'none', border: 'var(--ab-cmp-select__border)', borderRadius: 'var(--ab-cmp-select__border-radius)', '&:hover': {
157
+ border: 'var(--ab-cmp-select__border)',
124
158
  } });
125
159
  },
126
160
  // @ts-ignore
@@ -131,6 +165,12 @@ const Select = function (props) {
131
165
  clearIndicator: (baseStyle) => {
132
166
  return Object.assign(Object.assign({}, baseStyle), { padding: '2px 3px' });
133
167
  },
168
+ multiValue: (baseStyle) => {
169
+ return Object.assign(Object.assign({}, baseStyle), { color: 'var(--ab-cmp-select__color)', background: 'var(--ab-cmp-select-multi-value__background)', border: 'var(--ab-cmp-select__border)' });
170
+ },
171
+ multiValueLabel: (baseStyle) => {
172
+ return Object.assign(Object.assign({}, baseStyle), { color: 'var(--ab-cmp-select__color)' });
173
+ },
134
174
  } }));
135
175
  };
136
176
  exports.Select = Select;
@@ -1,3 +1,3 @@
1
- export { toast, ToastContainer, Slide, Zoom, Bounce, Flip, } from '../../bundle-dependencies/bundles/react-toastify';
2
- import { ToastOptions } from '../../bundle-dependencies/bundles/react-toastify';
1
+ export { toast, ToastContainer, Slide, Zoom, Bounce, Flip } from 'react-toastify';
2
+ import { ToastOptions } from 'react-toastify';
3
3
  export type { ToastOptions };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Flip = exports.Bounce = exports.Zoom = exports.Slide = exports.ToastContainer = exports.toast = void 0;
4
- var react_toastify_1 = require("../../bundle-dependencies/bundles/react-toastify");
4
+ var react_toastify_1 = require("react-toastify");
5
5
  Object.defineProperty(exports, "toast", { enumerable: true, get: function () { return react_toastify_1.toast; } });
6
6
  Object.defineProperty(exports, "ToastContainer", { enumerable: true, get: function () { return react_toastify_1.ToastContainer; } });
7
7
  Object.defineProperty(exports, "Slide", { enumerable: true, get: function () { return react_toastify_1.Slide; } });
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props, { viewBox: "0 -960 960 960" }),
7
+ React.createElement("path", { d: "M280-240q-17 0-28.5-11.5T240-280v-80h520v-360h80q17 0 28.5 11.5T880-680v600L720-240H280ZM80-280v-560q0-17 11.5-28.5T120-880h520q17 0 28.5 11.5T680-840v360q0 17-11.5 28.5T640-440H240L80-280Zm520-240v-280H160v280h440Zm-440 0v-280 280Z" })));
@@ -157,6 +157,7 @@ const money_1 = tslib_1.__importDefault(require("./money"));
157
157
  const order_1 = tslib_1.__importDefault(require("./order"));
158
158
  const contact_1 = tslib_1.__importDefault(require("./contact"));
159
159
  const note_1 = tslib_1.__importDefault(require("./note"));
160
+ const comments_1 = tslib_1.__importDefault(require("./comments"));
160
161
  const Icon_1 = require("../Icon");
161
162
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
162
163
  exports.allIcons = {
@@ -193,7 +194,7 @@ exports.allIcons = {
193
194
  'horizontal-lines': freetext_column_1.default,
194
195
  'percent-tag': percent_bar_1.default,
195
196
  'spark-line': spark_line_1.default,
196
- 'resume': resume_1.default,
197
+ resume: resume_1.default,
197
198
  'pie-chart': pie_chart_1.default,
198
199
  'add-circle': plus_minus_1.default,
199
200
  reminder: reminder_1.default,
@@ -314,6 +315,7 @@ exports.allIcons = {
314
315
  order: order_1.default,
315
316
  contact: contact_1.default,
316
317
  note: note_1.default,
318
+ comments: comments_1.default,
317
319
  };
318
320
  Object.keys(exports.allIcons).forEach((name) => {
319
321
  const ReactCmp = exports.allIcons[name];
package/src/env.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  declare const _default: {
2
- [key: string]: string;
2
+ INFINITE_TABLE_LICENSE_KEY: any;
3
+ PUBLISH_TIMESTAMP: any;
4
+ VERSION: any;
3
5
  };
4
6
  export default _default;
package/src/env.js CHANGED
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
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",
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: 1707834242681 || Date.now(),
6
+ VERSION: "18.0.0-canary.0" || '--current-version--',
5
7
  };
@@ -365,6 +365,22 @@ export declare const ADAPTABLE_METAMODEL: {
365
365
  kind: string;
366
366
  desc: string;
367
367
  };
368
+ AdaptableComment: {
369
+ name: string;
370
+ kind: string;
371
+ desc: string;
372
+ props: ({
373
+ name: string;
374
+ kind: string;
375
+ desc: string;
376
+ isOpt: boolean;
377
+ } | {
378
+ name: string;
379
+ kind: string;
380
+ desc: string;
381
+ isOpt?: undefined;
382
+ })[];
383
+ };
368
384
  AdaptableComparerFunction: {
369
385
  name: string;
370
386
  kind: string;
@@ -1320,6 +1336,16 @@ export declare const ADAPTABLE_METAMODEL: {
1320
1336
  kind: string;
1321
1337
  desc: string;
1322
1338
  };
1339
+ BalancedGroupsKeyContext: {
1340
+ name: string;
1341
+ kind: string;
1342
+ desc: string;
1343
+ props: {
1344
+ name: string;
1345
+ kind: string;
1346
+ desc: string;
1347
+ }[];
1348
+ };
1323
1349
  BaseContext: {
1324
1350
  name: string;
1325
1351
  kind: string;
@@ -1467,6 +1493,11 @@ export declare const ADAPTABLE_METAMODEL: {
1467
1493
  defVal: string;
1468
1494
  }[];
1469
1495
  };
1496
+ CellAddress: {
1497
+ name: string;
1498
+ kind: string;
1499
+ desc: string;
1500
+ };
1470
1501
  CellColorRange: {
1471
1502
  name: string;
1472
1503
  kind: string;
@@ -3186,43 +3217,6 @@ export declare const ADAPTABLE_METAMODEL: {
3186
3217
  desc: string;
3187
3218
  }[];
3188
3219
  };
3189
- FinsemblePluginOptions: {
3190
- name: string;
3191
- kind: string;
3192
- desc: string;
3193
- props: ({
3194
- name: string;
3195
- kind: string;
3196
- desc: string;
3197
- isOpt: boolean;
3198
- defVal?: undefined;
3199
- ref?: undefined;
3200
- } | {
3201
- name: string;
3202
- kind: string;
3203
- desc: string;
3204
- isOpt: boolean;
3205
- defVal: string;
3206
- ref?: undefined;
3207
- } | {
3208
- name: string;
3209
- kind: string;
3210
- desc: string;
3211
- isOpt: boolean;
3212
- ref: string;
3213
- defVal?: undefined;
3214
- })[];
3215
- };
3216
- FinsemblePluginStateOptions: {
3217
- name: string;
3218
- kind: string;
3219
- desc: string;
3220
- props: {
3221
- name: string;
3222
- kind: string;
3223
- desc: string;
3224
- }[];
3225
- };
3226
3220
  FlashingCellDefinition: {
3227
3221
  name: string;
3228
3222
  kind: string;
@@ -3438,73 +3432,6 @@ export declare const ADAPTABLE_METAMODEL: {
3438
3432
  desc: string;
3439
3433
  }[];
3440
3434
  };
3441
- Glue42PluginOptions: {
3442
- name: string;
3443
- kind: string;
3444
- desc: string;
3445
- props: {
3446
- name: string;
3447
- kind: string;
3448
- desc: string;
3449
- isOpt: boolean;
3450
- }[];
3451
- };
3452
- Glue42Report: {
3453
- name: string;
3454
- kind: string;
3455
- desc: string;
3456
- props: {
3457
- name: string;
3458
- kind: string;
3459
- desc: string;
3460
- }[];
3461
- };
3462
- Glue42Schedule: {
3463
- name: string;
3464
- kind: string;
3465
- desc: string;
3466
- props: ({
3467
- name: string;
3468
- kind: string;
3469
- desc: string;
3470
- ref: string;
3471
- } | {
3472
- name: string;
3473
- kind: string;
3474
- desc: string;
3475
- ref?: undefined;
3476
- })[];
3477
- };
3478
- Glue42State: {
3479
- name: string;
3480
- kind: string;
3481
- desc: string;
3482
- props: ({
3483
- name: string;
3484
- kind: string;
3485
- desc: string;
3486
- isOpt: boolean;
3487
- ref: string;
3488
- } | {
3489
- name: string;
3490
- kind: string;
3491
- desc: string;
3492
- isOpt: boolean;
3493
- ref?: undefined;
3494
- })[];
3495
- };
3496
- Glue42WebPluginOptions: {
3497
- name: string;
3498
- kind: string;
3499
- desc: string;
3500
- props: {
3501
- name: string;
3502
- kind: string;
3503
- desc: string;
3504
- isOpt: boolean;
3505
- defVal: string;
3506
- }[];
3507
- };
3508
3435
  GradientStyle: {
3509
3436
  name: string;
3510
3437
  kind: string;
@@ -3558,6 +3485,11 @@ export declare const ADAPTABLE_METAMODEL: {
3558
3485
  isOpt: boolean;
3559
3486
  }[];
3560
3487
  };
3488
+ GridFilterEditor: {
3489
+ name: string;
3490
+ kind: string;
3491
+ desc: string;
3492
+ };
3561
3493
  GridFilterOptions: {
3562
3494
  name: string;
3563
3495
  kind: string;
@@ -3568,6 +3500,7 @@ export declare const ADAPTABLE_METAMODEL: {
3568
3500
  desc: string;
3569
3501
  isOpt: boolean;
3570
3502
  defVal: string;
3503
+ ref: string;
3571
3504
  gridInfo?: undefined;
3572
3505
  } | {
3573
3506
  name: string;
@@ -3576,6 +3509,7 @@ export declare const ADAPTABLE_METAMODEL: {
3576
3509
  isOpt: boolean;
3577
3510
  gridInfo: string;
3578
3511
  defVal: string;
3512
+ ref?: undefined;
3579
3513
  })[];
3580
3514
  };
3581
3515
  GridRow: {
@@ -3619,25 +3553,25 @@ export declare const ADAPTABLE_METAMODEL: {
3619
3553
  kind: string;
3620
3554
  desc: string;
3621
3555
  isOpt: boolean;
3622
- noCode: string;
3623
- defVal: string;
3624
3556
  gridInfo?: undefined;
3557
+ noCode?: undefined;
3558
+ defVal?: undefined;
3625
3559
  } | {
3626
3560
  name: string;
3627
3561
  kind: string;
3628
3562
  desc: string;
3629
3563
  isOpt: boolean;
3630
- gridInfo: string;
3564
+ noCode: string;
3631
3565
  defVal: string;
3632
- noCode?: undefined;
3566
+ gridInfo?: undefined;
3633
3567
  } | {
3634
3568
  name: string;
3635
3569
  kind: string;
3636
3570
  desc: string;
3637
3571
  isOpt: boolean;
3638
- gridInfo?: undefined;
3572
+ gridInfo: string;
3573
+ defVal: string;
3639
3574
  noCode?: undefined;
3640
- defVal?: undefined;
3641
3575
  })[];
3642
3576
  };
3643
3577
  HandleFdc3Context: {
@@ -4009,16 +3943,6 @@ export declare const ADAPTABLE_METAMODEL: {
4009
3943
  name: string;
4010
3944
  kind: string;
4011
3945
  desc: string;
4012
- props: {
4013
- name: string;
4014
- kind: string;
4015
- desc: string;
4016
- }[];
4017
- };
4018
- NoteGridCell: {
4019
- name: string;
4020
- kind: string;
4021
- desc: string;
4022
3946
  };
4023
3947
  NotesOptions: {
4024
3948
  name: string;
@@ -4588,7 +4512,7 @@ export declare const ADAPTABLE_METAMODEL: {
4588
4512
  isOpt?: undefined;
4589
4513
  })[];
4590
4514
  };
4591
- Report: {
4515
+ Report_2: {
4592
4516
  name: string;
4593
4517
  kind: string;
4594
4518
  desc: string;
@@ -4819,6 +4743,33 @@ export declare const ADAPTABLE_METAMODEL: {
4819
4743
  desc: string;
4820
4744
  }[];
4821
4745
  };
4746
+ ServerValidationResult: {
4747
+ name: string;
4748
+ kind: string;
4749
+ desc: string;
4750
+ props: ({
4751
+ name: string;
4752
+ kind: string;
4753
+ desc: string;
4754
+ isOpt: boolean;
4755
+ defVal: string;
4756
+ ref: string;
4757
+ } | {
4758
+ name: string;
4759
+ kind: string;
4760
+ desc: string;
4761
+ isOpt: boolean;
4762
+ defVal?: undefined;
4763
+ ref?: undefined;
4764
+ } | {
4765
+ name: string;
4766
+ kind: string;
4767
+ desc: string;
4768
+ isOpt: boolean;
4769
+ defVal: string;
4770
+ ref?: undefined;
4771
+ })[];
4772
+ };
4822
4773
  SetPrimaryKeyValueContext: {
4823
4774
  name: string;
4824
4775
  kind: string;
@@ -5320,16 +5271,6 @@ export declare const ADAPTABLE_METAMODEL: {
5320
5271
  ref: string;
5321
5272
  }[];
5322
5273
  };
5323
- UnbalancedGroupsKeyContext: {
5324
- name: string;
5325
- kind: string;
5326
- desc: string;
5327
- props: {
5328
- name: string;
5329
- kind: string;
5330
- desc: string;
5331
- }[];
5332
- };
5333
5274
  UserColumnMenuItem: {
5334
5275
  name: string;
5335
5276
  kind: string;
@@ -5463,33 +5404,6 @@ export declare const ADAPTABLE_METAMODEL: {
5463
5404
  isOpt?: undefined;
5464
5405
  })[];
5465
5406
  };
5466
- ValidationResult: {
5467
- name: string;
5468
- kind: string;
5469
- desc: string;
5470
- props: ({
5471
- name: string;
5472
- kind: string;
5473
- desc: string;
5474
- isOpt: boolean;
5475
- defVal: string;
5476
- ref: string;
5477
- } | {
5478
- name: string;
5479
- kind: string;
5480
- desc: string;
5481
- isOpt: boolean;
5482
- defVal?: undefined;
5483
- ref?: undefined;
5484
- } | {
5485
- name: string;
5486
- kind: string;
5487
- desc: string;
5488
- isOpt: boolean;
5489
- defVal: string;
5490
- ref?: undefined;
5491
- })[];
5492
- };
5493
5407
  ValuationContext: {
5494
5408
  name: string;
5495
5409
  kind: string;