@adaptabletools/adaptable-cjs 22.0.0-canary.7 → 22.0.0-canary.9

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 (69) hide show
  1. package/agGrid.d.ts +9 -9
  2. package/agGrid.js +1 -0
  3. package/index.css +63 -71
  4. package/index.css.map +1 -1
  5. package/index.d.ts +66 -0
  6. package/index.js +85 -0
  7. package/package.json +3 -3
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
  9. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
  11. package/src/AdaptableState/AdaptableState.d.ts +2 -0
  12. package/src/AdaptableState/Common/AdaptableColumn.d.ts +10 -10
  13. package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
  14. package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
  15. package/src/AdaptableState/Common/AdaptableRowContext.js +2 -0
  16. package/src/AdaptableState/Common/DataUpdateConfig.d.ts +7 -0
  17. package/src/AdaptableState/Common/TransposeConfig.d.ts +11 -9
  18. package/src/AdaptableState/InitialState.d.ts +9 -0
  19. package/src/AdaptableState/LayoutState.d.ts +1 -2
  20. package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
  21. package/src/AdaptableState/UserInterfaceState.js +2 -0
  22. package/src/Api/GridApi.d.ts +5 -9
  23. package/src/Api/Implementation/AlertApiImpl.js +2 -6
  24. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  25. package/src/Api/Implementation/GridApiImpl.d.ts +2 -6
  26. package/src/Api/Implementation/GridApiImpl.js +9 -9
  27. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
  28. package/src/Api/Implementation/LayoutApiImpl.js +3 -0
  29. package/src/Api/Implementation/SystemStatusApiImpl.js +2 -5
  30. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
  31. package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -0
  32. package/src/Api/LayoutApi.d.ts +6 -0
  33. package/src/Api/UserInterfaceApi.d.ts +17 -0
  34. package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
  35. package/src/Redux/ActionsReducers/UserInterfaceRedux.js +26 -0
  36. package/src/Redux/Store/AdaptableStore.js +27 -0
  37. package/src/Utilities/resolveContainerElement.d.ts +23 -0
  38. package/src/Utilities/resolveContainerElement.js +47 -0
  39. package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
  40. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  41. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
  42. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
  43. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
  44. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +35 -0
  45. package/src/View/Components/WizardSummaryPage.js +1 -1
  46. package/src/View/Dashboard/CustomToolbar.js +1 -1
  47. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  48. package/src/View/Layout/TransposedPopup.js +144 -138
  49. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +1 -1
  50. package/src/View/UIHelper.d.ts +2 -1
  51. package/src/View/UIHelper.js +8 -14
  52. package/src/agGrid/Adaptable.js +11 -11
  53. package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
  54. package/src/agGrid/AdaptableAgGrid.js +112 -31
  55. package/src/agGrid/AgGridFloatingFilterAdapter.js +1 -1
  56. package/src/agGrid/AgGridMenuAdapter.js +9 -1
  57. package/src/components/CheckBox/index.js +1 -1
  58. package/src/components/Dropdown/Arrows.js +1 -1
  59. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  60. package/src/components/FormLayout/index.js +1 -1
  61. package/src/components/Select/Select.js +1 -1
  62. package/src/components/Tree/TreeDropdown/index.js +1 -1
  63. package/src/env.js +2 -2
  64. package/src/metamodel/adaptable.metamodel.d.ts +62 -0
  65. package/src/metamodel/adaptable.metamodel.js +1 -1
  66. package/src/types.d.ts +6 -3
  67. package/themes/dark.css +30 -29
  68. package/themes/light.css +4 -2
  69. package/tsconfig.cjs.tsbuildinfo +1 -1
package/src/types.d.ts CHANGED
@@ -10,7 +10,7 @@ export type { AggregatedBooleanFunctionName } from './Utilities/ExpressionFuncti
10
10
  export type { AggregatedScalarFunctionName } from './Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
11
11
  export type { AdaptableOptions } from './AdaptableOptions/AdaptableOptions';
12
12
  export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
13
- export type { ContainerOptions } from './AdaptableOptions/ContainerOptions';
13
+ export type { ContainerOptions, AdaptableContainerValue, AdaptableCSSSelector, InitContainerContext, ContainerContext, } from './AdaptableOptions/ContainerOptions';
14
14
  export type { FlashingCellOptions, FlashTarget } from './AdaptableOptions/FlashingCellOptions';
15
15
  export type { ToastPositions, ToastTransitions, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
16
16
  export type { AlertOptions, CommandHandler, AlertForm, AlertFormContext, AlertMessageContext, DataChangeDetectionPolicy, } from './AdaptableOptions/AlertOptions';
@@ -150,7 +150,7 @@ export type { CellSummmaryInfo, CustomCellSummaryOperation, CustomCellSummaryOpe
150
150
  export type { FlashingCellDefinition, FlashingCellState, SystemFlashingCellPredicateId, SystemFlashingCellPredicateIds, } from './AdaptableState/FlashingCellState';
151
151
  export type { AdaptableAlert, AdaptableAlertType, AdaptableGenericAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert, AdaptableAlertBase, } from './AdaptableState/Common/AdaptableAlert';
152
152
  export type { AdaptableFlashingCell } from './AdaptableState/Common/AdaptableFlashingCell';
153
- export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnType, AdaptableColumnDataType, AdaptableColumnGroup, AdaptableColumnSummary, } from './AdaptableState/Common/AdaptableColumn';
153
+ export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnTypeName, AdaptableColumnDataType, AdaptableColumnGroup, AdaptableColumnSummary, } from './AdaptableState/Common/AdaptableColumn';
154
154
  export type { AdaptableField } from './AdaptableState/Common/AdaptableField';
155
155
  export type { AdaptableComparerFunction } from './AdaptableState/Common/AdaptableComparerFunction';
156
156
  export type { SystemStatusMessageInfo } from './AdaptableState/Common/SystemStatusMessageInfo';
@@ -172,11 +172,13 @@ export type { CellDataChangedInfo } from './AdaptableState/Common/CellDataChange
172
172
  export type { RowDataChangedInfo, RowDataChangeTrigger, } from './AdaptableState/Common/RowDataChangedInfo';
173
173
  export type { DataChangedScope } from './AdaptableState/Common/DataChangedScope';
174
174
  export type { DataUpdateConfig } from './AdaptableState/Common/DataUpdateConfig';
175
+ export type { DataRowConfig } from './AdaptableState/Common/DataUpdateConfig';
175
176
  export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFormFieldType, } from './AdaptableState/Common/AdaptableForm';
176
177
  export type { AdaptableButton } from './AdaptableState/Common/AdaptableButton';
177
178
  export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, AdaptableContextMenuItem, AdaptableColumnMenuItem, AdaptableColumnMenuItemName, AdaptableContextMenuItemName, AgGridMenuItem, MenuCategory, MenuSeparator, } from './AdaptableState/Common/Menu';
178
179
  export type { BaseContext } from './AdaptableState/Common/BaseContext';
179
- export type { AdaptableColumnContext } from './AdaptableState/Common/AdaptableColumnContext';
180
+ export type { AdaptableColumnContext, AdaptableColumnsContext, } from './AdaptableState/Common/AdaptableColumnContext';
181
+ export type { AdaptableRowContext } from './AdaptableState/Common/AdaptableRowContext';
180
182
  export type { FormContext } from './AdaptableState/Common/FormContext';
181
183
  export type { Schedule } from './AdaptableState/Common/Schedule';
182
184
  export type { ButtonStyle } from './AdaptableState/Common/ButtonStyle';
@@ -209,6 +211,7 @@ export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './Adaptabl
209
211
  export type { SharedEntity, AdaptableSharedEntity, CustomSharedEntity, TeamSharingState, SharedEntityType, AdaptableSharedEntityConfig, CustomSharedEntityConfig, } from './AdaptableState/TeamSharingState';
210
212
  export type { AdaptableTheme, ThemeState } from './AdaptableState/ThemeState';
211
213
  export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './AdaptableState/ToolPanelState';
214
+ export type { UserInterfaceState } from './AdaptableState/UserInterfaceState';
212
215
  export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, VueFrameworkComponent, CustomRenderFunction, CustomRenderContext, } from './agGrid/AdaptableFrameworkComponent';
213
216
  export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
214
217
  export type { CommentState, CommentThread, AdaptableComment } from './AdaptableState/CommentState';
package/themes/dark.css CHANGED
@@ -1,35 +1,36 @@
1
- .ab--theme-dark {
2
- --ab-theme-loaded: dark;
1
+ @layer adaptable.theme {
2
+ .ab--theme-dark {
3
+ --ab-theme-loaded: dark;
3
4
 
4
- --ab-cmp-input--disabled__background: #232323; /* #b6b7b8 */
5
+ --ab-cmp-input--disabled__background: #232323; /* #b6b7b8 */
5
6
 
6
- --ab-color-defaultbackground: #3e444c;
7
- --ab-color-text-on-defaultbackground: #e2e2e2;
7
+ --ab-color-defaultbackground: #3e444c;
8
+ --ab-color-text-on-defaultbackground: #e2e2e2;
8
9
 
9
- --ab-color-primary: #262d2f;
10
- --ab-color-primarylight: #3d3e3f;
11
- --ab-color-primarydark: #1c2021;
12
- --ab-color-text-on-primary: #e2e2e2; /* F2F2F2 */
10
+ --ab-color-primary: #262d2f;
11
+ --ab-color-primarylight: #3d3e3f;
12
+ --ab-color-primarydark: #1c2021;
13
+ --ab-color-text-on-primary: #e2e2e2; /* F2F2F2 */
13
14
 
14
- --ab-color-shadow: rgb(255 255 255 / 0.45);
15
- --ab-cmp-modal-backdrop__background: rgba(255, 255, 255, 0.2);
15
+ --ab-color-shadow: rgb(255 255 255 / 0.45);
16
+ --ab-cmp-modal-backdrop__background: rgba(255, 255, 255, 0.2);
16
17
 
17
- --ab-dashboard__border: #555;
18
- --ab-cmp-dropdownbutton-list-separator__border: 1px solid #555;
18
+ --ab-dashboard__border: #555;
19
+ --ab-cmp-dropdownbutton-list-separator__border: 1px solid #555;
19
20
 
20
- --ab-gridheader--filtered__background: var(--ab-color-defaultbackground);
21
+ --ab-gridheader--filtered__background: var(--ab-color-defaultbackground);
21
22
 
22
- --ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
23
- --ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
23
+ --ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
24
+ --ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
24
25
 
25
- input[type='number'].ab-Input::-webkit-outer-spin-button,
26
- input[type='number'].ab-Input::-webkit-inner-spin-button {
27
- background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
28
- no-repeat center center;
26
+ input[type='number'].ab-Input::-webkit-outer-spin-button,
27
+ input[type='number'].ab-Input::-webkit-inner-spin-button {
28
+ background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
29
+ no-repeat center center;
30
+ }
29
31
  }
30
- }
31
32
 
32
- /*
33
+ /*
33
34
  The following are only redefined here so that the DARK theme in Storybook
34
35
  can be previewed correctly as that relies on an element (not the document element)
35
36
  to have the class ab--theme-dark.
@@ -38,11 +39,11 @@ For our production release those are not needed and could be removed
38
39
  as our dark theme is anyways applied on the document element.
39
40
 
40
41
  */
41
- .ab--theme-dark {
42
- --ab-color-inputcolor: var(--ab-color-text-on-primary);
43
- --ab-cmp-input__color: var(--ab-color-inputcolor);
44
- --ab-cmp-input__background: var(--ab-color-defaultbackground);
45
- --ab-cmp-input--disabled__background: var(--ab-color-primarylight);
46
- --ab-cmp-field-wrap__background: var(--ab-color-defaultbackground);
47
- --ab-cmp-simple-button--outlined__background: var(--ab-color-defaultbackground);
42
+ .ab--theme-dark {
43
+ --ab-color-inputcolor: var(--ab-color-text-on-primary);
44
+ --ab-cmp-input__color: var(--ab-color-inputcolor);
45
+ --ab-cmp-input__background: var(--ab-color-defaultbackground);
46
+ --ab-cmp-input--disabled__background: var(--ab-color-primarylight);
47
+ --ab-cmp-field-wrap__background: var(--ab-color-defaultbackground);
48
+ }
48
49
  }
package/themes/light.css CHANGED
@@ -1,3 +1,5 @@
1
- html.ab--theme-light {
2
- --ab-theme-loaded: light;
1
+ @layer adaptable.theme {
2
+ html.ab--theme-light {
3
+ --ab-theme-loaded: light;
4
+ }
3
5
  }