@adaptabletools/adaptable 11.2.3 → 11.3.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 (89) hide show
  1. package/bundle.cjs.js +106 -106
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -0
  7. package/src/AdaptableOptions/EditOptions.d.ts +92 -4
  8. package/src/AdaptableOptions/FinancePluginOptions.d.ts +33 -3
  9. package/src/AdaptableOptions/FormatColumnOptions.d.ts +10 -0
  10. package/src/AdaptableOptions/{SmartEdit.js → FormatColumnOptions.js} +0 -0
  11. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -3
  12. package/src/Api/ColumnApi.d.ts +4 -1
  13. package/src/Api/EventApi.d.ts +4 -1
  14. package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
  15. package/src/Api/Events/RowFormSubmitted.js +2 -0
  16. package/src/Api/FinanceApi.d.ts +3 -2
  17. package/src/Api/FormatColumnApi.d.ts +28 -1
  18. package/src/Api/GridApi.d.ts +14 -0
  19. package/src/Api/Implementation/ColumnApiImpl.js +4 -1
  20. package/src/Api/Implementation/FilterApiImpl.js +2 -7
  21. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -0
  22. package/src/Api/Implementation/FormatColumnApiImpl.js +34 -0
  23. package/src/Api/Implementation/GridApiImpl.d.ts +3 -0
  24. package/src/Api/Implementation/GridApiImpl.js +40 -0
  25. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -0
  26. package/src/Api/Implementation/InternalApiImpl.js +37 -7
  27. package/src/Api/Implementation/SmartEditApiImpl.d.ts +2 -1
  28. package/src/Api/Implementation/SmartEditApiImpl.js +3 -0
  29. package/src/Api/Implementation/UserInterfaceApiImpl.js +3 -21
  30. package/src/Api/InternalApi.d.ts +4 -1
  31. package/src/Api/SmartEditApi.d.ts +6 -1
  32. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
  33. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
  34. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +6 -3
  35. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
  36. package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -1
  37. package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
  38. package/src/PredefinedConfig/Common/FDC3Context.d.ts +5 -1
  39. package/src/PredefinedConfig/SystemState.d.ts +1 -2
  40. package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
  41. package/src/Strategy/DashboardModule.js +3 -0
  42. package/src/Strategy/FormatColumnModule.js +1 -1
  43. package/src/Strategy/LayoutModule.js +4 -4
  44. package/src/Strategy/SmartEditModule.d.ts +1 -1
  45. package/src/Strategy/SmartEditModule.js +5 -6
  46. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -0
  47. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +2 -4
  48. package/src/Utilities/Helpers/AdaptableHelper.js +1 -0
  49. package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
  50. package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
  51. package/src/Utilities/Services/RowEditService.d.ts +25 -0
  52. package/src/Utilities/Services/RowEditService.js +165 -0
  53. package/src/View/AdaptableView.js +8 -2
  54. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  55. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -2
  56. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +1 -1
  57. package/src/View/Components/FilterForm/FilterForm.d.ts +4 -1
  58. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  59. package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
  60. package/src/View/Components/FilterForm/QuickFilterForm.js +15 -2
  61. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
  62. package/src/View/Components/Popups/AdaptableToaster.js +1 -0
  63. package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
  64. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +3 -2
  65. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +51 -22
  66. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  67. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -1
  68. package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
  69. package/src/View/SmartEdit/SmartEditPopup.js +1 -2
  70. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
  71. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -2
  72. package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
  73. package/src/agGrid/ActionColumnRenderer.js +6 -4
  74. package/src/agGrid/Adaptable.d.ts +3 -0
  75. package/src/agGrid/Adaptable.js +142 -39
  76. package/src/agGrid/rowEditIcons.d.ts +4 -0
  77. package/src/agGrid/rowEditIcons.js +9 -0
  78. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -16
  79. package/src/components/Datepicker/index.js +19 -18
  80. package/src/components/WindowModal/WindowModal.d.ts +2 -0
  81. package/src/components/WindowModal/WindowModal.js +1 -1
  82. package/src/metamodel/adaptable.metamodel.d.ts +89 -2
  83. package/src/metamodel/adaptable.metamodel.js +208 -11
  84. package/src/types.d.ts +6 -5
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
  88. package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
  89. package/src/View/Components/Forms/AdaptableForm.js +0 -21
@@ -240,7 +240,7 @@ export declare const ADAPTABLE_METAMODEL: {
240
240
  description: string;
241
241
  uiLabel: string;
242
242
  isOptional: boolean;
243
- reference: string;
243
+ reference?: undefined;
244
244
  })[];
245
245
  };
246
246
  AdaptableFlashingCell: {
@@ -297,12 +297,21 @@ export declare const ADAPTABLE_METAMODEL: {
297
297
  description: string;
298
298
  uiLabel: string;
299
299
  isOptional: boolean;
300
+ reference?: undefined;
300
301
  } | {
301
302
  name: string;
302
303
  kind: string;
303
304
  description: string;
304
305
  uiLabel: string;
306
+ reference: string;
305
307
  isOptional?: undefined;
308
+ } | {
309
+ name: string;
310
+ kind: string;
311
+ description: string;
312
+ uiLabel: string;
313
+ isOptional?: undefined;
314
+ reference?: undefined;
306
315
  })[];
307
316
  };
308
317
  AdaptableIcon: {
@@ -1522,6 +1531,22 @@ export declare const ADAPTABLE_METAMODEL: {
1522
1531
  isOptional?: undefined;
1523
1532
  })[];
1524
1533
  };
1534
+ CustomFDC3Column: {
1535
+ name: string;
1536
+ kind: string;
1537
+ description: string;
1538
+ properties: {
1539
+ name: string;
1540
+ kind: string;
1541
+ description: string;
1542
+ uiLabel: string;
1543
+ }[];
1544
+ };
1545
+ CustomFDC3Intent: {
1546
+ name: string;
1547
+ kind: string;
1548
+ description: string;
1549
+ };
1525
1550
  CustomReport: {
1526
1551
  name: string;
1527
1552
  kind: string;
@@ -1924,6 +1949,7 @@ export declare const ADAPTABLE_METAMODEL: {
1924
1949
  isOptional: boolean;
1925
1950
  gridInfo: string;
1926
1951
  defaultValue: string;
1952
+ reference?: undefined;
1927
1953
  } | {
1928
1954
  name: string;
1929
1955
  kind: string;
@@ -1932,6 +1958,16 @@ export declare const ADAPTABLE_METAMODEL: {
1932
1958
  isOptional: boolean;
1933
1959
  gridInfo?: undefined;
1934
1960
  defaultValue?: undefined;
1961
+ reference?: undefined;
1962
+ } | {
1963
+ name: string;
1964
+ kind: string;
1965
+ description: string;
1966
+ uiLabel: string;
1967
+ isOptional: boolean;
1968
+ reference: string;
1969
+ gridInfo?: undefined;
1970
+ defaultValue?: undefined;
1935
1971
  })[];
1936
1972
  };
1937
1973
  EntitlementOptions: {
@@ -3495,7 +3531,6 @@ export declare const ADAPTABLE_METAMODEL: {
3495
3531
  kind: string;
3496
3532
  description: string;
3497
3533
  uiLabel: string;
3498
- reference: string;
3499
3534
  }[];
3500
3535
  };
3501
3536
  ReactFrameworkComponent: {
@@ -3552,6 +3587,26 @@ export declare const ADAPTABLE_METAMODEL: {
3552
3587
  reference: string;
3553
3588
  })[];
3554
3589
  };
3590
+ RowFormOptions: {
3591
+ name: string;
3592
+ kind: string;
3593
+ description: string;
3594
+ properties: ({
3595
+ name: string;
3596
+ kind: string;
3597
+ description: string;
3598
+ uiLabel: string;
3599
+ isOptional: boolean;
3600
+ defaultValue?: undefined;
3601
+ } | {
3602
+ name: string;
3603
+ kind: string;
3604
+ description: string;
3605
+ uiLabel: string;
3606
+ isOptional: boolean;
3607
+ defaultValue: string;
3608
+ })[];
3609
+ };
3555
3610
  RowInfo: {
3556
3611
  name: string;
3557
3612
  kind: string;
@@ -3778,6 +3833,29 @@ export declare const ADAPTABLE_METAMODEL: {
3778
3833
  uiLabel: string;
3779
3834
  }[];
3780
3835
  };
3836
+ SmartEditCustomOperation: {
3837
+ name: string;
3838
+ kind: string;
3839
+ description: string;
3840
+ };
3841
+ SmartEditOperationContext: {
3842
+ name: string;
3843
+ kind: string;
3844
+ description: string;
3845
+ properties: ({
3846
+ name: string;
3847
+ kind: string;
3848
+ description: string;
3849
+ uiLabel: string;
3850
+ reference: string;
3851
+ } | {
3852
+ name: string;
3853
+ kind: string;
3854
+ description: string;
3855
+ uiLabel: string;
3856
+ reference?: undefined;
3857
+ })[];
3858
+ };
3781
3859
  SpecialColumnSettings: {
3782
3860
  name: string;
3783
3861
  kind: string;
@@ -4127,6 +4205,15 @@ export declare const ADAPTABLE_METAMODEL: {
4127
4205
  reference: string;
4128
4206
  defaultValue?: undefined;
4129
4207
  gridInfo?: undefined;
4208
+ } | {
4209
+ name: string;
4210
+ kind: string;
4211
+ description: string;
4212
+ uiLabel: string;
4213
+ isOptional: boolean;
4214
+ defaultValue: string;
4215
+ reference?: undefined;
4216
+ gridInfo?: undefined;
4130
4217
  } | {
4131
4218
  name: string;
4132
4219
  kind: string;
@@ -741,11 +741,10 @@ exports.ADAPTABLE_METAMODEL = {
741
741
  },
742
742
  {
743
743
  "name": "intent",
744
- "kind": "REFERENCE",
744
+ "kind": "unknown",
745
745
  "description": "The FDC3 Intent which caused Event to fire (if type is `RaiseIntent`)",
746
746
  "uiLabel": "Intent",
747
- "isOptional": true,
748
- "reference": "FDC3Intent"
747
+ "isOptional": true
749
748
  }
750
749
  ]
751
750
  },
@@ -849,14 +848,15 @@ exports.ADAPTABLE_METAMODEL = {
849
848
  },
850
849
  {
851
850
  "name": "fieldType",
852
- "kind": "unknown",
851
+ "kind": "REFERENCE",
853
852
  "description": "Field Type: text, date, number, checkbox, select, textOutput",
854
- "uiLabel": "Field Type"
853
+ "uiLabel": "Field Type",
854
+ "reference": "unknown"
855
855
  },
856
856
  {
857
857
  "name": "label",
858
858
  "kind": "string",
859
- "description": "Label to display in in the Field",
859
+ "description": "Label to display in the Field",
860
860
  "uiLabel": "Label"
861
861
  },
862
862
  {
@@ -1010,7 +1010,7 @@ exports.ADAPTABLE_METAMODEL = {
1010
1010
  "AdaptableObjectTag": {
1011
1011
  "name": "AdaptableObjectTag",
1012
1012
  "kind": "TypeAlias",
1013
- "description": "Object Tag - defined as a label and a value"
1013
+ "description": "AdaptableObjectTag Object Tague - currently supporting only plain string values, but open for future extensions, if ever needed."
1014
1014
  },
1015
1015
  "AdaptableOptions": {
1016
1016
  "name": "AdaptableOptions",
@@ -1139,6 +1139,15 @@ exports.ADAPTABLE_METAMODEL = {
1139
1139
  "gridInfo": "container",
1140
1140
  "reference": "FlashingCellOptions"
1141
1141
  },
1142
+ {
1143
+ "name": "formatColumnOptions",
1144
+ "kind": "REFERENCE",
1145
+ "description": "Options for managing format columns",
1146
+ "uiLabel": "Format Column Options",
1147
+ "isOptional": true,
1148
+ "gridInfo": "container",
1149
+ "reference": "unknown"
1150
+ },
1142
1151
  {
1143
1152
  "name": "generalOptions",
1144
1153
  "kind": "REFERENCE",
@@ -2279,7 +2288,7 @@ exports.ADAPTABLE_METAMODEL = {
2279
2288
  "BaseContext": {
2280
2289
  "name": "BaseContext",
2281
2290
  "kind": "Interface",
2282
- "description": "Base Context object used in many functions provided by AdapTable",
2291
+ "description": "Base Context used in many functions provided by developers and invoked as needed by AdapTable",
2283
2292
  "properties": [
2284
2293
  {
2285
2294
  "name": "adaptableApi",
@@ -2489,6 +2498,14 @@ exports.ADAPTABLE_METAMODEL = {
2489
2498
  "uiLabel": "Data Type",
2490
2499
  "isOptional": true
2491
2500
  },
2501
+ {
2502
+ "name": "ExternallyEvaluatedExpression",
2503
+ "kind": "boolean",
2504
+ "description": "If true, the Calculated Column Expression will NOT be evaluated and the value is loaded from the row data property with the same name as the ColumnId",
2505
+ "uiLabel": "Externally Evaluated Expression",
2506
+ "isOptional": true,
2507
+ "defaultValue": "false"
2508
+ },
2492
2509
  {
2493
2510
  "name": "ShowToolTip",
2494
2511
  "kind": "boolean",
@@ -4024,6 +4041,30 @@ exports.ADAPTABLE_METAMODEL = {
4024
4041
  }
4025
4042
  ]
4026
4043
  },
4044
+ "CustomFDC3Column": {
4045
+ "name": "CustomFDC3Column",
4046
+ "kind": "Interface",
4047
+ "description": "A Column which will be defined as Custom FDC3 (can be any datatype)",
4048
+ "properties": [
4049
+ {
4050
+ "name": "createContext",
4051
+ "kind": "unknown",
4052
+ "description": "Function which creates FDC3 context for the current column and row",
4053
+ "uiLabel": "Create Context"
4054
+ },
4055
+ {
4056
+ "name": "intents",
4057
+ "kind": "unknown",
4058
+ "description": "Custom FDC3 Intents available to the column",
4059
+ "uiLabel": "Intents"
4060
+ }
4061
+ ]
4062
+ },
4063
+ "CustomFDC3Intent": {
4064
+ "name": "CustomFDC3Intent",
4065
+ "kind": "TypeAlias",
4066
+ "description": "Custom FDC3 Intent - just a string value"
4067
+ },
4027
4068
  "CustomReport": {
4028
4069
  "name": "CustomReport",
4029
4070
  "kind": "Interface",
@@ -5044,6 +5085,21 @@ exports.ADAPTABLE_METAMODEL = {
5044
5085
  "uiLabel": "Is Cell Editable",
5045
5086
  "isOptional": true
5046
5087
  },
5088
+ {
5089
+ "name": "rowFormOptions",
5090
+ "kind": "REFERENCE",
5091
+ "description": "Options for editing (create/update/delete) row entries in the grid.",
5092
+ "uiLabel": "Row Form Options",
5093
+ "isOptional": true,
5094
+ "reference": "RowFormOptions"
5095
+ },
5096
+ {
5097
+ "name": "smartEditCustomOperations",
5098
+ "kind": "unknown",
5099
+ "description": "Custom Operations to use in Smart Edit",
5100
+ "uiLabel": "Smart Edit Custom Operations",
5101
+ "isOptional": true
5102
+ },
5047
5103
  {
5048
5104
  "name": "validateOnServer",
5049
5105
  "kind": "unknown",
@@ -5801,6 +5857,13 @@ exports.ADAPTABLE_METAMODEL = {
5801
5857
  "description": "Id of Column defined as FDC3",
5802
5858
  "uiLabel": "Column Id"
5803
5859
  },
5860
+ {
5861
+ "name": "getIconForIntent",
5862
+ "kind": "unknown",
5863
+ "description": "Returns the icon to display in the Raise Intent Context Menu Item",
5864
+ "uiLabel": "Get Icon For Intent",
5865
+ "isOptional": true
5866
+ },
5804
5867
  {
5805
5868
  "name": "intentContextMenuLabel",
5806
5869
  "kind": "unknown",
@@ -6740,6 +6803,12 @@ exports.ADAPTABLE_METAMODEL = {
6740
6803
  "description": "Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked",
6741
6804
  "uiLabel": "Fire Checkbox Column Clicked Event"
6742
6805
  },
6806
+ {
6807
+ "name": "getActiveFormatColumnForColumn",
6808
+ "kind": "function",
6809
+ "description": "Gets an active Format Column, if any, for given Column",
6810
+ "uiLabel": "Get Active Format Column For Column"
6811
+ },
6743
6812
  {
6744
6813
  "name": "getAllActiveFormatColumn",
6745
6814
  "kind": "function",
@@ -6794,6 +6863,12 @@ exports.ADAPTABLE_METAMODEL = {
6794
6863
  "description": "Returns any ColumnIds referenced in a Column Comparison",
6795
6864
  "uiLabel": "Get Column Ids From Column Comparison"
6796
6865
  },
6866
+ {
6867
+ "name": "getDateFormattedValue",
6868
+ "kind": "function",
6869
+ "description": "Format value according to format options.",
6870
+ "uiLabel": "Get Date Formatted Value"
6871
+ },
6797
6872
  {
6798
6873
  "name": "getFormatColumnById",
6799
6874
  "kind": "function",
@@ -6842,6 +6917,12 @@ exports.ADAPTABLE_METAMODEL = {
6842
6917
  "description": "Gets Format Column if any for given Column which includes Style element",
6843
6918
  "uiLabel": "Get Format Column With Style For Column"
6844
6919
  },
6920
+ {
6921
+ "name": "getNumberFormattedValue",
6922
+ "kind": "function",
6923
+ "description": "Format value according to format options.",
6924
+ "uiLabel": "Get Number Formatted Value"
6925
+ },
6845
6926
  {
6846
6927
  "name": "getNumericStyleMaxValue",
6847
6928
  "kind": "function",
@@ -6854,6 +6935,12 @@ exports.ADAPTABLE_METAMODEL = {
6854
6935
  "description": "Gets the Minimum Value to display for a Numeric Style",
6855
6936
  "uiLabel": "Get Numeric Style Min Value"
6856
6937
  },
6938
+ {
6939
+ "name": "getStringFormattedValue",
6940
+ "kind": "function",
6941
+ "description": "Format value according to format options.",
6942
+ "uiLabel": "Get String Formatted Value"
6943
+ },
6857
6944
  {
6858
6945
  "name": "hasStyleFormatColumns",
6859
6946
  "kind": "function",
@@ -7817,6 +7904,24 @@ exports.ADAPTABLE_METAMODEL = {
7817
7904
  "description": "Loads grid with given data",
7818
7905
  "uiLabel": "Load Grid Data"
7819
7906
  },
7907
+ {
7908
+ "name": "openCloneRowForm",
7909
+ "kind": "function",
7910
+ "description": "Open create dialog for cloning an existing row",
7911
+ "uiLabel": "Open Clone Row Form"
7912
+ },
7913
+ {
7914
+ "name": "openCreateRowForm",
7915
+ "kind": "function",
7916
+ "description": "Open create dialog for a new row",
7917
+ "uiLabel": "Open Create Row Form"
7918
+ },
7919
+ {
7920
+ "name": "openEditRowForm",
7921
+ "kind": "function",
7922
+ "description": "Open edit dialog for row with the given primary key value",
7923
+ "uiLabel": "Open Edit Row Form"
7924
+ },
7820
7925
  {
7821
7926
  "name": "redrawGrid",
7822
7927
  "kind": "function",
@@ -10473,10 +10578,9 @@ exports.ADAPTABLE_METAMODEL = {
10473
10578
  "properties": [
10474
10579
  {
10475
10580
  "name": "intent",
10476
- "kind": "REFERENCE",
10581
+ "kind": "unknown",
10477
10582
  "description": "FDC3 Intent that was raised",
10478
- "uiLabel": "Intent",
10479
- "reference": "FDC3Intent"
10583
+ "uiLabel": "Intent"
10480
10584
  }
10481
10585
  ]
10482
10586
  },
@@ -10563,6 +10667,52 @@ exports.ADAPTABLE_METAMODEL = {
10563
10667
  }
10564
10668
  ]
10565
10669
  },
10670
+ "RowFormOptions": {
10671
+ "name": "RowFormOptions",
10672
+ "kind": "Interface",
10673
+ "description": "Options for editing (create/update/delete) row entries in the grid",
10674
+ "properties": [
10675
+ {
10676
+ "name": "formButtons",
10677
+ "kind": "unknown",
10678
+ "description": "Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'RowFormSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).",
10679
+ "uiLabel": "Form Buttons",
10680
+ "isOptional": true
10681
+ },
10682
+ {
10683
+ "name": "formDescription",
10684
+ "kind": "unknown",
10685
+ "description": "Custom form description provider",
10686
+ "uiLabel": "Form Description",
10687
+ "isOptional": true,
10688
+ "defaultValue": "undefined"
10689
+ },
10690
+ {
10691
+ "name": "formFieldLabel",
10692
+ "kind": "unknown",
10693
+ "description": "Custom form field label provider",
10694
+ "uiLabel": "Form Field Label",
10695
+ "isOptional": true,
10696
+ "defaultValue": "undefined"
10697
+ },
10698
+ {
10699
+ "name": "formTitle",
10700
+ "kind": "unknown",
10701
+ "description": "Custom form title provider",
10702
+ "uiLabel": "Form Title",
10703
+ "isOptional": true,
10704
+ "defaultValue": "'Create New Row'/'Edit Row'"
10705
+ },
10706
+ {
10707
+ "name": "onFormSubmit",
10708
+ "kind": "unknown",
10709
+ "description": "Function which is invoked when a row form is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!",
10710
+ "uiLabel": "On Form Submit",
10711
+ "isOptional": true,
10712
+ "defaultValue": "undefined"
10713
+ }
10714
+ ]
10715
+ },
10566
10716
  "RowInfo": {
10567
10717
  "name": "RowInfo",
10568
10718
  "kind": "Interface",
@@ -11455,6 +11605,12 @@ exports.ADAPTABLE_METAMODEL = {
11455
11605
  "description": "Applies a Smart Edit to given Cells",
11456
11606
  "uiLabel": "Apply Smart Edit"
11457
11607
  },
11608
+ {
11609
+ "name": "getSmartEditCustomOperations",
11610
+ "kind": "function",
11611
+ "description": "Retrieves an Smart Edit Custom Operations (provided in Edit Options)",
11612
+ "uiLabel": "Get Smart Edit Custom Operations"
11613
+ },
11458
11614
  {
11459
11615
  "name": "getSmartEditOperation",
11460
11616
  "kind": "function",
@@ -11487,6 +11643,31 @@ exports.ADAPTABLE_METAMODEL = {
11487
11643
  }
11488
11644
  ]
11489
11645
  },
11646
+ "SmartEditCustomOperation": {
11647
+ "name": "SmartEditCustomOperation",
11648
+ "kind": "TypeAlias",
11649
+ "description": "Custom Operation used in Smart Edit Module"
11650
+ },
11651
+ "SmartEditOperationContext": {
11652
+ "name": "SmartEditOperationContext",
11653
+ "kind": "Interface",
11654
+ "description": "Context used in Custom Smart Edit Operations",
11655
+ "properties": [
11656
+ {
11657
+ "name": "currentCell",
11658
+ "kind": "REFERENCE",
11659
+ "description": "Current selected grid cell - contains column, row and cell value information",
11660
+ "uiLabel": "Current Cell",
11661
+ "reference": "GridCell"
11662
+ },
11663
+ {
11664
+ "name": "smartEditValue",
11665
+ "kind": "number",
11666
+ "description": "Smart Edit value",
11667
+ "uiLabel": "Smart Edit Value"
11668
+ }
11669
+ ]
11670
+ },
11490
11671
  "SpecialColumnSettings": {
11491
11672
  "name": "SpecialColumnSettings",
11492
11673
  "kind": "Interface",
@@ -12469,6 +12650,22 @@ exports.ADAPTABLE_METAMODEL = {
12469
12650
  "isOptional": true,
12470
12651
  "reference": "AdaptableStyle"
12471
12652
  },
12653
+ {
12654
+ "name": "rowActionButtons",
12655
+ "kind": "unknown",
12656
+ "description": "Action buttons to display for each row.",
12657
+ "uiLabel": "Row Action Buttons",
12658
+ "isOptional": true,
12659
+ "defaultValue": "undefined"
12660
+ },
12661
+ {
12662
+ "name": "rowActionButtonsPosition",
12663
+ "kind": "unknown",
12664
+ "description": "Position of the action buttons",
12665
+ "uiLabel": "Row Action Buttons Position",
12666
+ "isOptional": true,
12667
+ "defaultValue": "'pinnedLeft'"
12668
+ },
12472
12669
  {
12473
12670
  "name": "showAdapTableVersion",
12474
12671
  "kind": "boolean",
package/src/types.d.ts CHANGED
@@ -12,14 +12,14 @@ export type { FlashingCellOptions } from './AdaptableOptions/FlashingCellOptions
12
12
  export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
13
13
  export type { AlertOptions, ActionHandler, AlertForm, AlertButtonContext, } from './AdaptableOptions/AlertOptions';
14
14
  export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
15
- export type { EditOptions, ValidationResult } from './AdaptableOptions/EditOptions';
15
+ export type { EditOptions, RowFormOptions, FormParamContext, FormFieldLabelContext, RowFormContext, CreateRowFormContext, EditRowFormContext, ValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, } from './AdaptableOptions/EditOptions';
16
16
  export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, CustomReport, DataFormatType, ExportButtonContext, } from './AdaptableOptions/ExportOptions';
17
17
  export type { GeneralOptions, ColumnValuesComparer } from './AdaptableOptions/GeneralOptions';
18
18
  export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
19
19
  export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
20
20
  export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutAvailableContext, AutoGenerateTagsForLayoutsContext, LayoutAssociatedObject, } from './AdaptableOptions/LayoutOptions';
21
21
  export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
22
- export type { FinancePluginOptions, WeightedAverageColumn, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, } from './AdaptableOptions/FinancePluginOptions';
22
+ export type { FinancePluginOptions, WeightedAverageColumn, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, CustomFDC3Column, CustomFDC3Intent, } from './AdaptableOptions/FinancePluginOptions';
23
23
  export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
24
24
  export type { FilterOptions } from './AdaptableOptions/FilterOptions';
25
25
  export type { SearchOptions } from './AdaptableOptions/SearchOptions';
@@ -29,7 +29,7 @@ export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterA
29
29
  export type { ConfigState } from './PredefinedConfig/ConfigState';
30
30
  export type { TeamSharingOptions } from './AdaptableOptions/TeamSharingOptions';
31
31
  export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
32
- export type { UserInterfaceOptions, CellValuesList, ActionColumnButtonContext, ActionColumn, ActionColumnSettings, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, } from './AdaptableOptions/UserInterfaceOptions';
32
+ export type { UserInterfaceOptions, CellValuesList, ActionColumnButtonContext, ActionColumn, ActionColumnSettings, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, } from './AdaptableOptions/UserInterfaceOptions';
33
33
  export type { MenuOptions } from './AdaptableOptions/MenuOptions';
34
34
  export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
35
35
  export type { EntitlementOptions } from './AdaptableOptions/EntitlementOptions';
@@ -88,6 +88,7 @@ export type { LayoutChangedInfo } from './Api/Events/LayoutChanged';
88
88
  export type { CheckboxColumnClickedInfo } from './Api/Events/ChexboxColumnClicked';
89
89
  export type { CustomToolbarConfiguredInfo } from './Api/Events/CustomToolbarConfigured';
90
90
  export type { LiveDataChangedInfo, LiveReport } from './Api/Events/LiveDataChanged';
91
+ export type { RowFormSubmittedInfo, RowFormType } from './Api/Events/RowFormSubmitted';
91
92
  export type { AdaptableSearchState, AdaptableSortState, SearchChangedInfo, } from './Api/Events/SearchChanged';
92
93
  export type { SelectionChangedInfo } from './Api/Events/SelectionChanged';
93
94
  export type { ThemeChangedInfo } from './Api/Events/ThemeChanged';
@@ -112,7 +113,7 @@ export type { AdaptableObject, AdaptableObjectTag, } from './PredefinedConfig/Co
112
113
  export type { SuspendableObject } from './PredefinedConfig/Common/SuspendableObject';
113
114
  export type { AdaptableQuery, AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery, AdaptableBooleanQuery, AdaptableObservableQuery, AdaptableScalarQuery, } from './PredefinedConfig/Common/AdaptableQuery';
114
115
  export type { AdaptablePredicate, AdaptablePredicateDef, ModuleScope, PredicateDefHandlerParams, PredicateDefInput, PredicateDefToStringParams, } from './PredefinedConfig/Common/AdaptablePredicate';
115
- export type { FDC3Context, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, AdaptableFDC3EventInfo, ContextType, } from './PredefinedConfig/Common/FDC3Context';
116
+ export type { FDC3Context, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, AdaptableFDC3EventInfo, ContextType, CustomFDC3Context, } from './PredefinedConfig/Common/FDC3Context';
116
117
  export type { AdaptableScope } from './PredefinedConfig/Common/AdaptableScope';
117
118
  export type { AdaptableStyle } from './PredefinedConfig/Common/AdaptableStyle';
118
119
  export type { AdaptableIcon } from './PredefinedConfig/Common/AdaptableIcon';
@@ -123,7 +124,7 @@ export type { ColumnSort } from './PredefinedConfig/Common/ColumnSort';
123
124
  export type { CellDataChangedInfo } from './PredefinedConfig/Common/CellDataChangedInfo';
124
125
  export type { DataChangedScope } from './PredefinedConfig/Common/DataChangedScope';
125
126
  export type { DataUpdateConfig } from './PredefinedConfig/Common/DataUpdateConfig';
126
- export type { AdaptableFormData, AdaptableForm, AdaptableFormField, } from './PredefinedConfig/Common/AdaptableForm';
127
+ export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFormFieldType, } from './PredefinedConfig/Common/AdaptableForm';
127
128
  export type { AdaptableButton } from './PredefinedConfig/Common/AdaptableButton';
128
129
  export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, } from './PredefinedConfig/Common/Menu';
129
130
  export type { BaseContext } from './PredefinedConfig/Common/BaseContext';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "11.2.3";
1
+ declare const _default: "11.3.0";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '11.2.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '11.3.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,34 +0,0 @@
1
- import { MathOperation } from '../PredefinedConfig/Common/Enums';
2
- import { AdaptableApi, AdaptableColumn, GridCell } from '../types';
3
- export declare type SmartEditCustomOperation = {
4
- /**
5
- * Name of the operation, appears in the UI
6
- */
7
- Name: string;
8
- /**
9
- * Custom operation function
10
- */
11
- Operation: (context: {
12
- /**
13
- * Selected Cell Value
14
- */
15
- value: number;
16
- /**
17
- * Smart edit cell value
18
- */
19
- smartEditValue: number;
20
- /**
21
- * Selected column
22
- */
23
- column: AdaptableColumn;
24
- /**
25
- * Adaptable Api
26
- */
27
- adaptableApi: AdaptableApi;
28
- /**
29
- * Current selected grid cell
30
- */
31
- currentCell: GridCell;
32
- }) => number;
33
- };
34
- export declare type SmartEditOperation = SmartEditCustomOperation | MathOperation;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export declare type AdaptableFormProps = any;
3
- export declare class AdaptableForm extends React.Component<AdaptableFormProps, {}> {
4
- render(): JSX.Element;
5
- CancelOnFormSubmit: (e: React.FormEvent<any>) => void;
6
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdaptableForm = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- class AdaptableForm extends React.Component {
7
- constructor() {
8
- super(...arguments);
9
- this.CancelOnFormSubmit = (e) => {
10
- e.preventDefault();
11
- if (this.props.onSubmit) {
12
- this.props.onSubmit(null);
13
- }
14
- };
15
- }
16
- render() {
17
- const _a = this.props, { children } = _a, attrs = tslib_1.__rest(_a, ["children"]);
18
- return (React.createElement("form", Object.assign({}, attrs, { onSubmit: this.CancelOnFormSubmit }), children));
19
- }
20
- }
21
- exports.AdaptableForm = AdaptableForm;