@adaptabletools/adaptable 12.0.0-canary.4 → 12.0.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.cjs.js +129 -126
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +6 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +10 -0
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +2 -1
- package/src/Api/SmartEditApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -5
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -0
- package/src/Utilities/Extensions/TypeExtensions.d.ts +30 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -13
- package/src/Utilities/Helpers/DateHelper.d.ts +27 -0
- package/src/Utilities/Helpers/DateHelper.js +33 -1
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -0
- package/src/Utilities/Services/MetamodelService.d.ts +7 -1
- package/src/Utilities/Services/MetamodelService.js +82 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +10 -8
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/agGrid/Adaptable.js +3 -2
- package/src/metamodel/adaptable-metamodel-model.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +5 -13
- package/src/metamodel/adaptable.metamodel.js +1 -12981
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -345,7 +345,7 @@ class Adaptable {
|
|
|
345
345
|
}
|
|
346
346
|
this.emitter = new Emitter_1.default();
|
|
347
347
|
// we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
|
|
348
|
-
this.adaptableOptions = AdaptableHelper_1.default.
|
|
348
|
+
this.adaptableOptions = AdaptableHelper_1.default.assignAdaptableOptions(adaptableOptions);
|
|
349
349
|
if (this.hasAutogeneratedPrimaryKey()) {
|
|
350
350
|
LoggingHelper_1.LogAdaptableWarning(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
|
|
351
351
|
when no unique column is available, as it limits some Adaptable functionalities!
|
|
@@ -354,7 +354,6 @@ class Adaptable {
|
|
|
354
354
|
this.adaptableOptions.primaryKey = GeneralConstants_1.AUTOGENERATED_PK_COLUMN;
|
|
355
355
|
}
|
|
356
356
|
Adaptable.collectInstance(this);
|
|
357
|
-
AdaptableHelper_1.default.checkAdaptableOptions(this.adaptableOptions);
|
|
358
357
|
this.runtimeConfig = runtimeConfig || {};
|
|
359
358
|
this.agGridModules = this.runtimeConfig.modules || [];
|
|
360
359
|
this.gridOptions = this.adaptableOptions.gridOptions;
|
|
@@ -420,6 +419,8 @@ class Adaptable {
|
|
|
420
419
|
if (this.gridOptions.columnTypes.abColDefDate.cellEditor === undefined) {
|
|
421
420
|
this.gridOptions.columnTypes.abColDefDate.cellEditor = AdaptableDateEditor_1.AdaptableDateEditor;
|
|
422
421
|
}
|
|
422
|
+
// validate the provided AdaptableOptions
|
|
423
|
+
this.MetamodelService.validateAdaptableOptionsValues();
|
|
423
424
|
return this.initializeAgGrid().then((initialized) => {
|
|
424
425
|
if (!initialized) {
|
|
425
426
|
// we have no grid, we can't do anything
|
|
@@ -16,4 +16,4 @@ export interface MetamodelItemProperty {
|
|
|
16
16
|
gridInfo?: 'item' | 'container';
|
|
17
17
|
noCode?: 'item' | 'container';
|
|
18
18
|
}
|
|
19
|
-
export declare type MetamodelItemPropertyKind = 'REFERENCE' | 'number' | 'string' | 'boolean' | 'date' | 'function' | 'indexType' | 'unknown';
|
|
19
|
+
export declare type MetamodelItemPropertyKind = 'REFERENCE' | 'number' | 'string' | 'boolean' | 'date' | 'function' | 'array' | 'indexType' | 'unknown';
|
|
@@ -1403,8 +1403,8 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1403
1403
|
description: string;
|
|
1404
1404
|
uiLabel: string;
|
|
1405
1405
|
isOptional: boolean;
|
|
1406
|
+
defaultValue: string;
|
|
1406
1407
|
gridInfo?: undefined;
|
|
1407
|
-
defaultValue?: undefined;
|
|
1408
1408
|
})[];
|
|
1409
1409
|
};
|
|
1410
1410
|
ColumnSort: {
|
|
@@ -2039,8 +2039,8 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2039
2039
|
description: string;
|
|
2040
2040
|
uiLabel: string;
|
|
2041
2041
|
isOptional: boolean;
|
|
2042
|
+
defaultValue: string;
|
|
2042
2043
|
gridInfo?: undefined;
|
|
2043
|
-
defaultValue?: undefined;
|
|
2044
2044
|
})[];
|
|
2045
2045
|
};
|
|
2046
2046
|
DataSet: {
|
|
@@ -2172,8 +2172,8 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2172
2172
|
description: string;
|
|
2173
2173
|
uiLabel: string;
|
|
2174
2174
|
isOptional: boolean;
|
|
2175
|
+
defaultValue: string;
|
|
2175
2176
|
gridInfo?: undefined;
|
|
2176
|
-
defaultValue?: undefined;
|
|
2177
2177
|
})[];
|
|
2178
2178
|
};
|
|
2179
2179
|
EntitlementOptions: {
|
|
@@ -4084,16 +4084,8 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4084
4084
|
description: string;
|
|
4085
4085
|
uiLabel: string;
|
|
4086
4086
|
isOptional: boolean;
|
|
4087
|
+
defaultValue: string;
|
|
4087
4088
|
reference?: undefined;
|
|
4088
|
-
defaultValue?: undefined;
|
|
4089
|
-
} | {
|
|
4090
|
-
name: string;
|
|
4091
|
-
kind: string;
|
|
4092
|
-
description: string;
|
|
4093
|
-
uiLabel: string;
|
|
4094
|
-
isOptional: boolean;
|
|
4095
|
-
reference: string;
|
|
4096
|
-
defaultValue?: undefined;
|
|
4097
4089
|
} | {
|
|
4098
4090
|
name: string;
|
|
4099
4091
|
kind: string;
|
|
@@ -4101,7 +4093,7 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4101
4093
|
uiLabel: string;
|
|
4102
4094
|
isOptional: boolean;
|
|
4103
4095
|
defaultValue: string;
|
|
4104
|
-
reference
|
|
4096
|
+
reference: string;
|
|
4105
4097
|
})[];
|
|
4106
4098
|
};
|
|
4107
4099
|
StatusBarState: {
|