@adaptabletools/adaptable 15.0.0-canary.5 → 15.0.0-canary.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "15.0.0-canary.5",
3
+ "version": "15.0.0-canary.6",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1,2 +1,2 @@
1
- declare const _default: 1676380997995;
1
+ declare const _default: 1676465416898;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1676380997995;
3
+ exports.default = 1676465416898;
@@ -58,6 +58,9 @@ export interface ExportOptions {
58
58
  */
59
59
  isColumnExportable?: (exportableColumnContext: ExportableColumnContext) => boolean;
60
60
  }
61
+ /**
62
+ * Format of exported Data - 'rawValue' or 'formattedValue'
63
+ */
61
64
  export declare type DataFormatType = 'rawValue' | 'formattedValue';
62
65
  /**
63
66
  * Defines a Report where all the data is provided entirely by the user
@@ -16,6 +16,9 @@ export interface FinsemblePluginOptions {
16
16
  */
17
17
  showAdaptableAlertsAsNotifications?: boolean;
18
18
  }
19
+ /**
20
+ * Options for managing state while using Finsemble
21
+ */
19
22
  export interface FinsemblePluginStateOptions {
20
23
  /**
21
24
  * Whether to persist AdapTable State inside Finsemble
@@ -12,5 +12,8 @@ export interface MasterDetailPluginOptions {
12
12
  */
13
13
  onDetailInit?: (context: DetailInitContext) => void;
14
14
  }
15
+ /**
16
+ * Context passed to Detail Grids when using Master Detail
17
+ */
15
18
  export interface DetailInitContext extends BaseContext {
16
19
  }
@@ -20,6 +20,9 @@ export interface PredicateOptions {
20
20
  */
21
21
  systemFlashingCellPredicates?: SystemFlashingCellPredicateIds | ((context: SystemPredicatesContext) => SystemFlashingCellPredicateIds);
22
22
  }
23
+ /**
24
+ * Context used for setting which System Predicates are available
25
+ */
23
26
  export interface SystemPredicatesContext extends BaseContext {
24
27
  /**
25
28
  * AdapTable-provided System Predicate Definitions
@@ -1,6 +1,9 @@
1
1
  import { AdaptableFrameworkComponent, AdaptableIcon } from '../../types';
2
2
  import { AdaptableSettingsPanel } from '../PredefinedConfig/Common/Types';
3
3
  import { CustomRenderContext } from './AdaptableFrameworkComponent';
4
+ /**
5
+ * Options for managing the AdapTable Settings Panel
6
+ */
4
7
  export interface SettingsPanelOptions {
5
8
  /**
6
9
  * Title for the Settings Panel
@@ -12,23 +12,23 @@ export interface TeamSharingOptions {
12
12
  */
13
13
  enableTeamSharing: boolean;
14
14
  /**
15
- * Async function which loads available Shared Entities that user can download and merge automatically with Adaptable State
15
+ * (Async) Loads available Shared Entities - user can download and auto-merge with Adaptable State
16
16
  *
17
17
  * @defaultValue null
18
18
  */
19
19
  loadSharedEntities: (context: SharedEntitiesContext) => Promise<SharedEntity[]>;
20
20
  /**
21
- * Allows hooking into Shared Entities loading process. If defined, it will be invoked with the result of the `loadSharedEntities()` method invocation, and the result will be passed to Adaptable State.
21
+ * Allows hooking into Shared Entities loading process
22
22
  */
23
23
  applySharedEntities?: (sharedEntities: SharedEntity[], context: SharedEntitiesContext) => SharedEntity[];
24
24
  /**
25
- * Async function which persists Shared Entities so that they can be downloaded by other team members
25
+ * (Async) Persists Shared Entities so that they can be downloaded by other team members
26
26
  *
27
27
  * @defaultValue null
28
28
  */
29
29
  persistSharedEntities: (sharedEntities: SharedEntity[], context: SharedEntitiesContext) => Promise<void>;
30
30
  /**
31
- * Allows customization of Shared Entities persistence process. If defined, it will be invoked before `persistSharedEntities()`, and `persistSharedEntities()` will be invoked with the result of this method.
31
+ * Allows hooking into Shared Entities persistence process
32
32
  */
33
33
  saveSharedEntities?: (sharedEntities: SharedEntity[], context: SharedEntitiesContext) => SharedEntity[];
34
34
  /**
@@ -51,7 +51,7 @@ export interface TeamSharingOptions {
51
51
  updateNotification?: 'Alert' | 'AlertWithNotification' | 'SystemStatus';
52
52
  }
53
53
  /**
54
- * The context provided to the `TeamSharingOptions.loadSharedEntities()` callback
54
+ * Context provided to `TeamSharingOptions.loadSharedEntities()` callback
55
55
  */
56
56
  export interface SharedEntitiesContext extends BaseContext {
57
57
  /**
@@ -31,4 +31,5 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
31
31
  canDisplaySparklines(): boolean;
32
32
  suspendStyledColumn(styledColumn: StyledColumn): void;
33
33
  unSuspendStyledColumn(styledColumn: StyledColumn): void;
34
+ openStyledColumnSettingsPanel(): void;
34
35
  }
@@ -7,6 +7,7 @@ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
7
7
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
8
8
  const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
9
9
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
10
+ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
11
  class StyledColumnApiImpl extends ApiBase_1.ApiBase {
11
12
  constructor(adaptable) {
12
13
  super(adaptable);
@@ -107,5 +108,8 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
107
108
  unSuspendStyledColumn(styledColumn) {
108
109
  this.dispatchAction(StyledColumnRedux.StyledColumnUnSuspend(styledColumn));
109
110
  }
111
+ openStyledColumnSettingsPanel() {
112
+ this.showModulePopup(ModuleConstants.StyledColumnModuleId);
113
+ }
110
114
  }
111
115
  exports.StyledColumnApiImpl = StyledColumnApiImpl;
@@ -91,6 +91,10 @@ export interface StyledColumnApi {
91
91
  * @param column Column to check
92
92
  */
93
93
  getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
94
+ /**
95
+ * Open Styled Column section of Settings Panel
96
+ */
97
+ openStyledColumnSettingsPanel(): void;
94
98
  /**
95
99
  * TO BE REMOVED
96
100
  */
@@ -6,17 +6,17 @@ import { AdaptableModule, AdaptableSharedEntityConfig } from '../types';
6
6
  */
7
7
  export interface TeamSharingApi {
8
8
  /**
9
- * Retrieves all shared entities which are currently shared. It is an asynchronous operation as it leverages the `TeamSharingOptions.loadSharedEntities(...)` method.
9
+ * Retrieves all currently shared entities; async op leveraging `TeamSharingOptions.loadSharedEntities(...)` method
10
10
  */
11
11
  loadSharedEntities(): Promise<SharedEntity[]>;
12
12
  /**
13
- * Sets the shared entities which are currently shared. It is an asynchronous operation as it leverages the `TeamSharingOptions.persistSharedEntities(...)` method.
13
+ * Sets currently shared entities; async op leveraging `TeamSharingOptions.persistSharedEntities(...)` method
14
14
  * @param sharedEntities the shared entities
15
15
  * @return either TRUE if the shared entities were successfully set or FALSE if the shared entities were not set
16
16
  */
17
17
  persistSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
18
18
  /**
19
- * Whether Team Sharing is Available to use
19
+ * Whether Team Sharing is available to use
20
20
  */
21
21
  isTeamSharingAvailable(): boolean;
22
22
  /**
@@ -56,7 +56,7 @@ export interface TeamSharingApi {
56
56
  */
57
57
  importSharedEntry(sharedEntity: SharedEntity): void;
58
58
  /**
59
- * Retrieves already loaded shared entries.
59
+ * Retrieves all locally loaded shared entries (`AdaptableSharedEntity` & `CustomSharedEntity`).
60
60
  */
61
61
  getLoadedSharedEntities(): SharedEntity[];
62
62
  /**
@@ -83,7 +83,7 @@ export interface TeamSharingApi {
83
83
  */
84
84
  triggerLoadingTeamSharingEntries(): void;
85
85
  /**
86
- * @deprecated use `loadSharedEntities()` instead
86
+ * @deprecated use `loadSharedEntities()` instead ()
87
87
  */
88
88
  getSharedEntities(): Promise<SharedEntity[]>;
89
89
  /**
@@ -1,6 +1,15 @@
1
1
  export declare const WEIGHTED_AVERAGE_AGG_FN_NAME = "weightedAvg";
2
+ /**
3
+ * Defines a Weighted Average Agg
4
+ */
2
5
  export interface WeightedAverageAggregation {
6
+ /**
7
+ * Type is always 'weightedAverage'
8
+ */
3
9
  type: 'weightedAverage';
10
+ /**
11
+ * Column which is weighted
12
+ */
4
13
  weightedColumnId: string;
5
14
  }
6
15
  export declare type AggregationColumns = Record<string, string | true | WeightedAverageAggregation>;
@@ -1,4 +1,7 @@
1
1
  import { AdaptableStyle } from '../../../types';
2
+ /**
3
+ * Define how to highlight a Row
4
+ */
2
5
  export interface RowHighlightInfo {
3
6
  /**
4
7
  * Primary key value for the row to be highlighted
@@ -1,4 +1,7 @@
1
1
  import { AdaptableStyle } from '../../../types';
2
+ /**
3
+ * Defines how to highlight a set of Rows
4
+ */
2
5
  export interface RowsHighlightInfo {
3
6
  /**
4
7
  * Primary key valuse for the rows to be highlighted
@@ -23,6 +23,9 @@ export interface ExportState extends ConfigState {
23
23
  */
24
24
  Reports?: Report[];
25
25
  }
26
+ /**
27
+ * A Report which can export data from AdapTable
28
+ */
26
29
  export interface Report extends AdaptableObject {
27
30
  /**
28
31
  * Name of Report
@@ -56,6 +56,9 @@ export interface FormatColumn extends SuspendableObject {
56
56
  export declare type FormatColumnRule = XOR<{
57
57
  Predicates: FormatColumnPredicate[];
58
58
  }, AdaptableBooleanQuery>;
59
+ /**
60
+ * Predicate used when creating a Format Column
61
+ */
59
62
  export interface FormatColumnPredicate extends AdaptableColumnPredicate {
60
63
  PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
61
64
  }
@@ -22,10 +22,6 @@ export interface TeamSharingState extends InternalState {
22
22
  */
23
23
  importProcessInProgress: boolean;
24
24
  }
25
- /**
26
- * Any object that can be shared.
27
- */
28
- declare type ShareableEntity = Record<string, any> & AdaptableObject;
29
25
  /**
30
26
  * Defines an object used in Team Sharing
31
27
  */
@@ -43,7 +39,7 @@ export interface AdaptableSharedEntity extends AdaptableObject {
43
39
  /**
44
40
  * Actual Adaptable Object being shared
45
41
  */
46
- Entity: ShareableEntity;
42
+ Entity: AdaptableObject;
47
43
  /**
48
44
  * Ids of direct entity dependencies
49
45
  */
@@ -162,6 +158,9 @@ export interface CustomSharedEntityConfig {
162
158
  */
163
159
  Tags?: AdaptableObjectTag[];
164
160
  }
161
+ /**
162
+ * Type of Shared Entity - Snapshot or Active
163
+ */
165
164
  export declare type SharedEntityType = 'Snapshot' | 'Active';
166
165
  export interface TeamSharingImportStep {
167
166
  sharedEntity: AdaptableSharedEntity;
@@ -172,4 +171,3 @@ export declare type SharedEntityActiveStatus = Record<TypeUuid, {
172
171
  importedRevision: number;
173
172
  sharedRevision: number;
174
173
  }>;
175
- export {};
@@ -3201,10 +3201,14 @@ class Adaptable {
3201
3201
  ? this.getFormatColumnCellStyle(abColumn, activeFormatColumnsWithStyle, params)
3202
3202
  : {})), (styledColumn ? this.getStyledColumnStyle(styledColumn, abColumn, params) : {})), (isQuickSearchActive ? quickSearchStyle : {})), this.getAlertCellStyle(abColumn, params)), this.getFlashingCellStyle(abColumn, params)), this.getCellHighlightStyle(abColumn, params));
3203
3203
  // remove null values, AG Grid 29 fails, it asumes they are strings
3204
+ // TODO AFL: remove once AG-7903 and AG-7917 are fixed
3204
3205
  Object.keys(result).forEach((key) => {
3205
3206
  if (result[key] === null || result[key] === undefined) {
3206
3207
  delete result[key];
3207
3208
  }
3209
+ if (typeof result[key] === 'number') {
3210
+ result[key] = String(result[key]);
3211
+ }
3208
3212
  });
3209
3213
  return result;
3210
3214
  };
@@ -2046,6 +2046,11 @@ export declare const ADAPTABLE_METAMODEL: {
2046
2046
  noCode?: undefined;
2047
2047
  })[];
2048
2048
  };
2049
+ DataFormatType: {
2050
+ name: string;
2051
+ kind: string;
2052
+ desc: string;
2053
+ };
2049
2054
  DataSet: {
2050
2055
  name: string;
2051
2056
  kind: string;
@@ -2117,6 +2122,11 @@ export declare const ADAPTABLE_METAMODEL: {
2117
2122
  desc: string;
2118
2123
  }[];
2119
2124
  };
2125
+ DetailInitContext: {
2126
+ name: string;
2127
+ kind: string;
2128
+ desc: string;
2129
+ };
2120
2130
  EditActionRowFormContext: {
2121
2131
  name: string;
2122
2132
  kind: string;
@@ -2568,6 +2578,16 @@ export declare const ADAPTABLE_METAMODEL: {
2568
2578
  defVal?: undefined;
2569
2579
  })[];
2570
2580
  };
2581
+ FinsemblePluginStateOptions: {
2582
+ name: string;
2583
+ kind: string;
2584
+ desc: string;
2585
+ props: {
2586
+ name: string;
2587
+ kind: string;
2588
+ desc: string;
2589
+ }[];
2590
+ };
2571
2591
  FlashingCellDefinition: {
2572
2592
  name: string;
2573
2593
  kind: string;
@@ -2660,6 +2680,11 @@ export declare const ADAPTABLE_METAMODEL: {
2660
2680
  defVal?: undefined;
2661
2681
  })[];
2662
2682
  };
2683
+ FormatColumnPredicate: {
2684
+ name: string;
2685
+ kind: string;
2686
+ desc: string;
2687
+ };
2663
2688
  FormatColumnRule: {
2664
2689
  name: string;
2665
2690
  kind: string;
@@ -3688,6 +3713,30 @@ export declare const ADAPTABLE_METAMODEL: {
3688
3713
  isOpt?: undefined;
3689
3714
  })[];
3690
3715
  };
3716
+ Report: {
3717
+ name: string;
3718
+ kind: string;
3719
+ desc: string;
3720
+ props: ({
3721
+ name: string;
3722
+ kind: string;
3723
+ desc: string;
3724
+ isOpt?: undefined;
3725
+ ref?: undefined;
3726
+ } | {
3727
+ name: string;
3728
+ kind: string;
3729
+ desc: string;
3730
+ isOpt: boolean;
3731
+ ref: string;
3732
+ } | {
3733
+ name: string;
3734
+ kind: string;
3735
+ desc: string;
3736
+ ref: string;
3737
+ isOpt?: undefined;
3738
+ })[];
3739
+ };
3691
3740
  ReportColumnScope: {
3692
3741
  name: string;
3693
3742
  kind: string;
@@ -3737,6 +3786,30 @@ export declare const ADAPTABLE_METAMODEL: {
3737
3786
  ref: string;
3738
3787
  })[];
3739
3788
  };
3789
+ RowHighlightInfo: {
3790
+ name: string;
3791
+ kind: string;
3792
+ desc: string;
3793
+ props: ({
3794
+ name: string;
3795
+ kind: string;
3796
+ desc: string;
3797
+ ref: string;
3798
+ isOpt?: undefined;
3799
+ } | {
3800
+ name: string;
3801
+ kind: string;
3802
+ desc: string;
3803
+ ref?: undefined;
3804
+ isOpt?: undefined;
3805
+ } | {
3806
+ name: string;
3807
+ kind: string;
3808
+ desc: string;
3809
+ isOpt: boolean;
3810
+ ref?: undefined;
3811
+ })[];
3812
+ };
3740
3813
  RowInfo: {
3741
3814
  name: string;
3742
3815
  kind: string;
@@ -3748,6 +3821,30 @@ export declare const ADAPTABLE_METAMODEL: {
3748
3821
  isOpt: boolean;
3749
3822
  }[];
3750
3823
  };
3824
+ RowsHighlightInfo: {
3825
+ name: string;
3826
+ kind: string;
3827
+ desc: string;
3828
+ props: ({
3829
+ name: string;
3830
+ kind: string;
3831
+ desc: string;
3832
+ ref: string;
3833
+ isOpt?: undefined;
3834
+ } | {
3835
+ name: string;
3836
+ kind: string;
3837
+ desc: string;
3838
+ ref?: undefined;
3839
+ isOpt?: undefined;
3840
+ } | {
3841
+ name: string;
3842
+ kind: string;
3843
+ desc: string;
3844
+ isOpt: boolean;
3845
+ ref?: undefined;
3846
+ })[];
3847
+ };
3751
3848
  Schedule: {
3752
3849
  name: string;
3753
3850
  kind: string;
@@ -3843,6 +3940,44 @@ export declare const ADAPTABLE_METAMODEL: {
3843
3940
  desc: string;
3844
3941
  }[];
3845
3942
  };
3943
+ SettingsPanelOptions: {
3944
+ name: string;
3945
+ kind: string;
3946
+ desc: string;
3947
+ props: ({
3948
+ name: string;
3949
+ kind: string;
3950
+ desc: string;
3951
+ isOpt: boolean;
3952
+ gridInfo: string;
3953
+ noCode: string;
3954
+ defVal: string;
3955
+ } | {
3956
+ name: string;
3957
+ kind: string;
3958
+ desc: string;
3959
+ isOpt: boolean;
3960
+ gridInfo?: undefined;
3961
+ noCode?: undefined;
3962
+ defVal?: undefined;
3963
+ } | {
3964
+ name: string;
3965
+ kind: string;
3966
+ desc: string;
3967
+ isOpt: boolean;
3968
+ defVal: string;
3969
+ gridInfo?: undefined;
3970
+ noCode?: undefined;
3971
+ } | {
3972
+ name: string;
3973
+ kind: string;
3974
+ desc: string;
3975
+ isOpt: boolean;
3976
+ gridInfo: string;
3977
+ defVal: string;
3978
+ noCode?: undefined;
3979
+ })[];
3980
+ };
3846
3981
  SharedEntitiesContext: {
3847
3982
  name: string;
3848
3983
  kind: string;
@@ -3858,6 +3993,11 @@ export declare const ADAPTABLE_METAMODEL: {
3858
3993
  kind: string;
3859
3994
  desc: string;
3860
3995
  };
3996
+ SharedEntityType: {
3997
+ name: string;
3998
+ kind: string;
3999
+ desc: string;
4000
+ };
3861
4001
  Shortcut: {
3862
4002
  name: string;
3863
4003
  kind: string;
@@ -4096,6 +4236,22 @@ export declare const ADAPTABLE_METAMODEL: {
4096
4236
  kind: string;
4097
4237
  desc: string;
4098
4238
  };
4239
+ SystemPredicatesContext: {
4240
+ name: string;
4241
+ kind: string;
4242
+ desc: string;
4243
+ props: ({
4244
+ name: string;
4245
+ kind: string;
4246
+ desc: string;
4247
+ ref: string;
4248
+ } | {
4249
+ name: string;
4250
+ kind: string;
4251
+ desc: string;
4252
+ ref?: undefined;
4253
+ })[];
4254
+ };
4099
4255
  SystemReportName: {
4100
4256
  name: string;
4101
4257
  kind: string;
@@ -4339,4 +4495,14 @@ export declare const ADAPTABLE_METAMODEL: {
4339
4495
  isOpt: boolean;
4340
4496
  }[];
4341
4497
  };
4498
+ WeightedAverageAggregation: {
4499
+ name: string;
4500
+ kind: string;
4501
+ desc: string;
4502
+ props: {
4503
+ name: string;
4504
+ kind: string;
4505
+ desc: string;
4506
+ }[];
4507
+ };
4342
4508
  };