@adaptabletools/adaptable 11.0.0-canary.5 → 11.0.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.
- package/agGrid.d.ts +5 -4
- package/agGrid.js +9 -7
- package/base.css +2 -2
- package/bundle.cjs.js +103 -98
- package/index.css +2 -2
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +4 -6
- package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +37 -5
- package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
- package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +4 -3
- package/src/AdaptableOptions/StateOptions.d.ts +7 -7
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/CalculatedColumnApi.d.ts +2 -9
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/GridApi.d.ts +11 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +4 -1
- package/src/Api/Implementation/ApiBase.d.ts +3 -2
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
- package/src/Api/Implementation/GridApiImpl.js +27 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +17 -4
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/InternalApi.d.ts +2 -3
- package/src/Api/QueryApi.d.ts +2 -2
- package/src/Api/QueryLanguageApi.d.ts +23 -10
- package/src/Api/SettingsPanelApi.d.ts +16 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/PredefinedConfig/AlertState.d.ts +6 -2
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -3
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -0
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +6 -1
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +15 -0
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
- package/src/PredefinedConfig/ToolPanelState.d.ts +3 -0
- package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +27 -2
- package/src/Strategy/AlertModule.js +12 -3
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ChartingModule.d.ts +3 -3
- package/src/Strategy/ChartingModule.js +2 -2
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
- package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -2
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -2
- package/src/Utilities/Constants/DocumentationLinkConstants.js +12 -10
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +17 -13
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -1
- package/src/Utilities/Services/AlertService.js +8 -4
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
- package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/ModuleService.js +33 -40
- package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
- package/src/Utilities/Services/QueryLanguageService.js +84 -25
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -3
- package/src/View/AdaptableWizardView/helper.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +11 -12
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -8
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/ValueSelector/index.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleWizard.js +3 -3
- package/src/agGrid/Adaptable.d.ts +1 -0
- package/src/agGrid/Adaptable.js +13 -14
- package/src/agGrid/agGridHelper.js +3 -7
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +5 -2
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +1 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
- package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +11 -4
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Logo/index.js +8 -7
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/calculated-column.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +233 -37
- package/src/metamodel/adaptable.metamodel.js +448 -149
- package/src/types.d.ts +5 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -10,7 +10,8 @@ class QueryLanguageService {
|
|
|
10
10
|
this.adaptable = adaptable;
|
|
11
11
|
this.cacheBooleanValidation = new Map();
|
|
12
12
|
this.cacheObservableValidation = new Map();
|
|
13
|
-
this.
|
|
13
|
+
this.cacheAggregatedBooleanValidation = new Map();
|
|
14
|
+
this.cacheAggregatedScalarValidation = new Map();
|
|
14
15
|
this.cacheModuleSpecificExpressionFunctions = new Map();
|
|
15
16
|
}
|
|
16
17
|
evaluateBooleanExpression(expression, module, rowNode) {
|
|
@@ -26,6 +27,14 @@ class QueryLanguageService {
|
|
|
26
27
|
// currently scalar and boolean expressions are evaluated the same
|
|
27
28
|
return this.evaluateBooleanExpression(expression, module, rowNode);
|
|
28
29
|
}
|
|
30
|
+
evaluateAggregatedScalarExpression(expression, module) {
|
|
31
|
+
const aggregatedScalarFunctions = this.getModuleExpressionFunctions(module).aggregatedScalarFunctions;
|
|
32
|
+
return parser.evaluate(expression, {
|
|
33
|
+
node: null,
|
|
34
|
+
api: this.adaptable.api,
|
|
35
|
+
functions: aggregatedScalarFunctions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
29
38
|
evaluateObservableExpression(reactiveExpression, module) {
|
|
30
39
|
const moduleExpressionFunctions = this.getModuleExpressionFunctions(module);
|
|
31
40
|
const booleanAndScalarFunctions = this.getBooleanAndScalarFunctions(moduleExpressionFunctions);
|
|
@@ -37,13 +46,13 @@ class QueryLanguageService {
|
|
|
37
46
|
});
|
|
38
47
|
return reactiveExpression$;
|
|
39
48
|
}
|
|
40
|
-
|
|
49
|
+
evaluateAggregatedBooleanExpression(aggregationExpression, module) {
|
|
41
50
|
const moduleExpressionFunctions = this.getModuleExpressionFunctions(module);
|
|
42
51
|
const booleanAndScalarFunctions = this.getBooleanAndScalarFunctions(moduleExpressionFunctions);
|
|
43
52
|
const aggregationExpression$ = parser.evaluate(aggregationExpression, {
|
|
44
53
|
node: aggregationExpression,
|
|
45
54
|
api: this.adaptable.api,
|
|
46
|
-
functions: moduleExpressionFunctions.
|
|
55
|
+
functions: moduleExpressionFunctions.aggregatedBooleanFunctions,
|
|
47
56
|
whereClauseFunctions: booleanAndScalarFunctions,
|
|
48
57
|
});
|
|
49
58
|
return aggregationExpression$;
|
|
@@ -66,7 +75,7 @@ class QueryLanguageService {
|
|
|
66
75
|
}
|
|
67
76
|
const force = (_a = config === null || config === void 0 ? void 0 : config.force) !== null && _a !== void 0 ? _a : false;
|
|
68
77
|
// get searchOptions to see if validation should be performed
|
|
69
|
-
if (!this.adaptable.api.internalApi.getAdaptableOptions().
|
|
78
|
+
if (!this.adaptable.api.internalApi.getAdaptableOptions().adaptableQLOptions.expressionOptions
|
|
70
79
|
.performExpressionValidation &&
|
|
71
80
|
!force) {
|
|
72
81
|
const result = { isValid: true, errorMessage: '' };
|
|
@@ -146,32 +155,70 @@ class QueryLanguageService {
|
|
|
146
155
|
return result;
|
|
147
156
|
}
|
|
148
157
|
}
|
|
149
|
-
|
|
158
|
+
validateAggregatedBoolean(expressionInput = '', module) {
|
|
159
|
+
const cacheKey = this.getExpressionCacheKey(expressionInput, module);
|
|
160
|
+
if (this.cacheAggregatedBooleanValidation.has(cacheKey)) {
|
|
161
|
+
return this.cacheAggregatedBooleanValidation.get(cacheKey);
|
|
162
|
+
}
|
|
163
|
+
const expression = expressionInput.trim();
|
|
164
|
+
if (expression === '') {
|
|
165
|
+
const result = {
|
|
166
|
+
isValid: false,
|
|
167
|
+
errorMessage: 'empty AggregatedBoolean expression',
|
|
168
|
+
};
|
|
169
|
+
this.cacheAggregatedBooleanValidation.set(cacheKey, result);
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
try {
|
|
173
|
+
const aggregatedBooleanExpressionEvaluation = this.evaluateAggregatedBooleanExpression(expression, module);
|
|
174
|
+
if (!rxjs_1.isObservable(aggregatedBooleanExpressionEvaluation)) {
|
|
175
|
+
const result = {
|
|
176
|
+
isValid: false,
|
|
177
|
+
errorMessage: `provided AggregatedBoolean expression does not evaluate to an Observable`,
|
|
178
|
+
};
|
|
179
|
+
this.cacheAggregatedBooleanValidation.set(cacheKey, result);
|
|
180
|
+
return result;
|
|
181
|
+
}
|
|
182
|
+
const result = { isValid: true, errorMessage: '' };
|
|
183
|
+
this.cacheAggregatedBooleanValidation.set(cacheKey, result);
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
const result = {
|
|
188
|
+
isValid: false,
|
|
189
|
+
errorMessage: error,
|
|
190
|
+
};
|
|
191
|
+
this.cacheAggregatedBooleanValidation.set(cacheKey, result);
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
validateAggregatedScalar(expressionInput = '', module) {
|
|
150
196
|
const cacheKey = this.getExpressionCacheKey(expressionInput, module);
|
|
151
|
-
if (this.
|
|
152
|
-
return this.
|
|
197
|
+
if (this.cacheAggregatedScalarValidation.has(cacheKey)) {
|
|
198
|
+
return this.cacheAggregatedScalarValidation.get(cacheKey);
|
|
153
199
|
}
|
|
154
200
|
const expression = expressionInput.trim();
|
|
155
201
|
if (expression === '') {
|
|
156
202
|
const result = {
|
|
157
203
|
isValid: false,
|
|
158
|
-
errorMessage: 'empty
|
|
204
|
+
errorMessage: 'empty AggregatedScalar expression',
|
|
159
205
|
};
|
|
160
|
-
this.
|
|
206
|
+
this.cacheAggregatedScalarValidation.set(cacheKey, result);
|
|
161
207
|
return result;
|
|
162
208
|
}
|
|
163
209
|
try {
|
|
164
|
-
const
|
|
165
|
-
if (
|
|
210
|
+
const evaluationResult = this.evaluateAggregatedScalarExpression(expression, module);
|
|
211
|
+
if (evaluationResult.type !== 'aggregation') {
|
|
166
212
|
const result = {
|
|
167
213
|
isValid: false,
|
|
168
|
-
errorMessage:
|
|
214
|
+
errorMessage: 'provided AggregatedScalar expression does not evaluate to a supported aggregation',
|
|
169
215
|
};
|
|
170
|
-
this.
|
|
216
|
+
this.cacheAggregatedScalarValidation.set(cacheKey, result);
|
|
171
217
|
return result;
|
|
172
218
|
}
|
|
219
|
+
// no exception,so everything seems to be fine
|
|
173
220
|
const result = { isValid: true, errorMessage: '' };
|
|
174
|
-
this.
|
|
221
|
+
this.cacheAggregatedScalarValidation.set(cacheKey, result);
|
|
175
222
|
return result;
|
|
176
223
|
}
|
|
177
224
|
catch (error) {
|
|
@@ -179,7 +226,7 @@ class QueryLanguageService {
|
|
|
179
226
|
isValid: false,
|
|
180
227
|
errorMessage: error,
|
|
181
228
|
};
|
|
182
|
-
this.
|
|
229
|
+
this.cacheAggregatedScalarValidation.set(cacheKey, result);
|
|
183
230
|
return result;
|
|
184
231
|
}
|
|
185
232
|
}
|
|
@@ -192,26 +239,38 @@ class QueryLanguageService {
|
|
|
192
239
|
// Returns the ExpressionFunctions available for the given Module as specified in the `QueryLanguageOptions.moduleExpressionFunctions`
|
|
193
240
|
// if there are no specific functions defined, it falls back to the default values
|
|
194
241
|
getModuleExpressionFunctions(module) {
|
|
195
|
-
var _a, _b, _c, _d, _e, _f;
|
|
242
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
196
243
|
if (!module) {
|
|
197
244
|
LoggingHelper_1.LogAdaptableInfo(`QueryLanguageService.getModuleExpressionFunctions() was called with an undefined 'module' param, this should never happen`);
|
|
198
245
|
return {
|
|
199
|
-
booleanFunctions: this.adaptable.adaptableOptions.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
246
|
+
booleanFunctions: this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
247
|
+
.defaultBooleanFunctions,
|
|
248
|
+
scalarFunctions: this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
249
|
+
.defaultScalarFunctions,
|
|
250
|
+
observableFunctions: this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
251
|
+
.defaultObservableFunctions,
|
|
252
|
+
aggregatedBooleanFunctions: this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
253
|
+
.defaultAggregatedBooleanFunctions,
|
|
254
|
+
aggregatedScalarFunctions: this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
255
|
+
.defaultAggregatedScalarFunctions,
|
|
203
256
|
};
|
|
204
257
|
}
|
|
205
258
|
let cachedResult = this.cacheModuleSpecificExpressionFunctions.get(module);
|
|
206
259
|
if (cachedResult) {
|
|
207
260
|
return cachedResult;
|
|
208
261
|
}
|
|
209
|
-
const moduleSpecificOptions = (_b = (_a = this.adaptable.adaptableOptions.
|
|
262
|
+
const moduleSpecificOptions = (_b = (_a = this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
263
|
+
.moduleExpressionFunctions) === null || _a === void 0 ? void 0 : _a[module]) !== null && _b !== void 0 ? _b : {};
|
|
210
264
|
const moduleSpecificFunctions = {
|
|
211
|
-
booleanFunctions: (_c = moduleSpecificOptions.booleanFunctions) !== null && _c !== void 0 ? _c : this.adaptable.adaptableOptions.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
265
|
+
booleanFunctions: (_c = moduleSpecificOptions.booleanFunctions) !== null && _c !== void 0 ? _c : this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
266
|
+
.defaultBooleanFunctions,
|
|
267
|
+
scalarFunctions: (_d = moduleSpecificOptions.scalarFunctions) !== null && _d !== void 0 ? _d : this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions.defaultScalarFunctions,
|
|
268
|
+
observableFunctions: (_e = moduleSpecificOptions.observableFunctions) !== null && _e !== void 0 ? _e : this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
269
|
+
.defaultObservableFunctions,
|
|
270
|
+
aggregatedBooleanFunctions: (_f = moduleSpecificOptions.aggregatedBooleanFunctions) !== null && _f !== void 0 ? _f : this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
271
|
+
.defaultAggregatedBooleanFunctions,
|
|
272
|
+
aggregatedScalarFunctions: (_g = moduleSpecificOptions.aggregatedScalarFunctions) !== null && _g !== void 0 ? _g : this.adaptable.adaptableOptions.adaptableQLOptions.expressionOptions
|
|
273
|
+
.defaultAggregatedScalarFunctions,
|
|
215
274
|
};
|
|
216
275
|
this.cacheModuleSpecificExpressionFunctions.set(module, moduleSpecificFunctions);
|
|
217
276
|
return moduleSpecificFunctions;
|
|
@@ -13,6 +13,7 @@ const ConfigurationForm = (props) => {
|
|
|
13
13
|
let abOptions = props.adaptableOptions;
|
|
14
14
|
const layoutOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions), abOptions.layoutOptions);
|
|
15
15
|
const generalOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.generalOptions), abOptions.generalOptions);
|
|
16
|
+
const adaptableQLOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions), abOptions.adaptableQLOptions);
|
|
16
17
|
const userInterfaceOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions), abOptions.userInterfaceOptions);
|
|
17
18
|
const searchOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions), abOptions.searchOptions);
|
|
18
19
|
const filterOptions = Object.assign(Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions), abOptions.filterOptions);
|
|
@@ -72,10 +73,11 @@ const ConfigurationForm = (props) => {
|
|
|
72
73
|
React.createElement(HelpBlock_1.default, null, "Search Options"),
|
|
73
74
|
React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
|
|
74
75
|
React.createElement(FormLayout_1.FormRow, { label: "Case Sensitive Text Comparison" },
|
|
75
|
-
React.createElement(CheckBox_1.CheckBox, { checked:
|
|
76
|
+
React.createElement(CheckBox_1.CheckBox, { checked: adaptableQLOptions.caseSensitiveTextComparisons, onChange: (caseSensitiveTextComparisons) => {
|
|
76
77
|
abOptions = Object.assign({}, abOptions);
|
|
77
|
-
abOptions.
|
|
78
|
-
abOptions.
|
|
78
|
+
abOptions.adaptableQLOptions = Object.assign({}, abOptions.adaptableQLOptions);
|
|
79
|
+
abOptions.adaptableQLOptions.caseSensitiveTextComparisons =
|
|
80
|
+
caseSensitiveTextComparisons;
|
|
79
81
|
props.onChangeadaptableOptions(abOptions);
|
|
80
82
|
} })),
|
|
81
83
|
React.createElement(FormLayout_1.FormRow, { label: "Use AG Grid Filter Form Style" },
|
|
@@ -51,7 +51,7 @@ const typeToColType = {
|
|
|
51
51
|
boolean: 'abColDefBoolean',
|
|
52
52
|
date: 'abColDefDate',
|
|
53
53
|
};
|
|
54
|
-
const
|
|
54
|
+
const abColDefCustom = 'abColDefCustom';
|
|
55
55
|
exports.getColTypeFromValue = (value) => {
|
|
56
56
|
const dataType = typeof value;
|
|
57
57
|
let columnType = typeToColType[dataType] || typeToColType.string;
|
|
@@ -59,7 +59,7 @@ exports.getColTypeFromValue = (value) => {
|
|
|
59
59
|
columnType = typeToColType.date;
|
|
60
60
|
}
|
|
61
61
|
if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
|
|
62
|
-
columnType =
|
|
62
|
+
columnType = abColDefCustom;
|
|
63
63
|
}
|
|
64
64
|
return columnType;
|
|
65
65
|
};
|
|
@@ -9,6 +9,7 @@ export declare const renderAlertDisplaySummary: () => JSX.Element;
|
|
|
9
9
|
interface AlertPreviewProps extends BoxProps {
|
|
10
10
|
api: AdaptableApi;
|
|
11
11
|
alertDefinition: AlertDefinition;
|
|
12
|
+
focusFirstButton?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const AlertPreview: React.FunctionComponent<AlertPreviewProps>;
|
|
14
15
|
export declare const AlertDisplayWizardSection: (props: AlertDisplayWizardSectionProps) => JSX.Element;
|
|
@@ -32,7 +32,7 @@ exports.renderAlertDisplaySummary = () => {
|
|
|
32
32
|
return React.createElement(exports.AlertPreview, { api: api, alertDefinition: data });
|
|
33
33
|
};
|
|
34
34
|
exports.AlertPreview = (_a) => {
|
|
35
|
-
var { alertDefinition, api } = _a, boxProps = tslib_1.__rest(_a, ["alertDefinition", "api"]);
|
|
35
|
+
var { alertDefinition, api, focusFirstButton } = _a, boxProps = tslib_1.__rest(_a, ["alertDefinition", "api", "focusFirstButton"]);
|
|
36
36
|
const mapButtons = React.useCallback((button) => {
|
|
37
37
|
let buttonStyle = button.ButtonStyle;
|
|
38
38
|
if (buttonStyle && buttonStyle.tone == null && (alertDefinition === null || alertDefinition === void 0 ? void 0 : alertDefinition.MessageType)) {
|
|
@@ -52,7 +52,7 @@ exports.AlertPreview = (_a) => {
|
|
|
52
52
|
return result;
|
|
53
53
|
}, [alertDefinition]);
|
|
54
54
|
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps, { style: Object.assign({ border: '1px solid var(--ab-color-inputborder)' }, boxProps.style) }),
|
|
55
|
-
React.createElement(AdaptablePopupAlert_1.AdaptablePopupAlert, { headless: true, adaptableAlert: alertToPreview, api: api, onClose: () => { } })));
|
|
55
|
+
React.createElement(AdaptablePopupAlert_1.AdaptablePopupAlert, { headless: true, focusFirstButton: focusFirstButton, adaptableAlert: alertToPreview, api: api, onClose: () => { } })));
|
|
56
56
|
};
|
|
57
57
|
exports.AlertDisplayWizardSection = (props) => {
|
|
58
58
|
var _a, _b, _c, _d;
|
|
@@ -26,7 +26,7 @@ exports.AlertWizard = (props) => {
|
|
|
26
26
|
: ObjectFactory_1.default.CreateEmptyAlertDefinition();
|
|
27
27
|
if (!alertDefinition.Rule.BooleanExpression &&
|
|
28
28
|
!alertDefinition.Rule.ObservableExpression &&
|
|
29
|
-
!alertDefinition.Rule.
|
|
29
|
+
!alertDefinition.Rule.AggregatedBooleanExpression &&
|
|
30
30
|
!alertDefinition.Rule.Predicate) {
|
|
31
31
|
alertDefinition.Rule.BooleanExpression = '';
|
|
32
32
|
}
|
|
@@ -72,7 +72,7 @@ exports.AlertWizard = (props) => {
|
|
|
72
72
|
title: 'Type & Display',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
details: 'Configure
|
|
75
|
+
details: 'Configure Behaviour for the Alert',
|
|
76
76
|
title: 'Behaviour',
|
|
77
77
|
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
78
78
|
React.createElement(AlertBehaviourWizardSection_1.AlertBehaviourWizardSection, { onChange: setAlertDefinition }))),
|
|
@@ -20,8 +20,8 @@ exports.BaseAlertRulesWizardSection = (props) => {
|
|
|
20
20
|
React.createElement("i", null, "Scope"),
|
|
21
21
|
" is 'Whole Row' - so any data change may be evaluated in a complex ObservableExpression")),
|
|
22
22
|
useAggregationQuery: (React.createElement(React.Fragment, null,
|
|
23
|
-
"Use an
|
|
23
|
+
"Use an AggregatedBooleanQuery if ",
|
|
24
24
|
React.createElement("i", null, "Scope"),
|
|
25
|
-
" is 'Whole Row' - so any data change may be evaluated in a complex
|
|
25
|
+
" is 'Whole Row' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
26
26
|
} }));
|
|
27
27
|
};
|
|
@@ -29,11 +29,12 @@ exports.BaseAlertScopeWizardSection = (props) => {
|
|
|
29
29
|
delete newData.Rule.ObservableExpression;
|
|
30
30
|
newData.Rule.BooleanExpression = '';
|
|
31
31
|
}
|
|
32
|
-
if (newData.Rule.
|
|
32
|
+
if (newData.Rule.AggregatedBooleanExpression !== undefined &&
|
|
33
|
+
!api.scopeApi.scopeIsAll(Scope)) {
|
|
33
34
|
// if it had aggregation expression and the scope is changed to partial
|
|
34
35
|
// we need to reset to not be an aggregation expression, as aggregation is not supported
|
|
35
36
|
// for partial scope
|
|
36
|
-
delete newData.Rule.
|
|
37
|
+
delete newData.Rule.AggregatedBooleanExpression;
|
|
37
38
|
newData.Rule.BooleanExpression = '';
|
|
38
39
|
}
|
|
39
40
|
props.onChange(newData);
|
|
@@ -7,7 +7,7 @@ exports.isValidAlertRules = (alert, api, context) => {
|
|
|
7
7
|
if (!alert.Rule.Predicate &&
|
|
8
8
|
!alert.Rule.BooleanExpression &&
|
|
9
9
|
!alert.Rule.ObservableExpression &&
|
|
10
|
-
!alert.Rule.
|
|
10
|
+
!alert.Rule.AggregatedBooleanExpression) {
|
|
11
11
|
return 'No condition defined for alert';
|
|
12
12
|
}
|
|
13
13
|
if (valid && alert.Rule.Predicate) {
|
|
@@ -35,8 +35,8 @@ exports.isValidAlertRules = (alert, api, context) => {
|
|
|
35
35
|
return 'The query is not a valid observable query';
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
if (valid && alert.Rule.
|
|
39
|
-
valid = api.queryLanguageApi.
|
|
38
|
+
if (valid && alert.Rule.AggregatedBooleanExpression) {
|
|
39
|
+
valid = api.queryLanguageApi.isValidAggregatedBooleanExpression(alert.Rule.AggregatedBooleanExpression, ModuleConstants_1.AlertModuleId);
|
|
40
40
|
if (!valid) {
|
|
41
41
|
return 'The query is not a valid aggregation query';
|
|
42
42
|
}
|
|
@@ -7,14 +7,14 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const CodeBlock_1 = require("../../components/CodeBlock");
|
|
8
8
|
class CalculatedColumnSharedEntity extends React.Component {
|
|
9
9
|
render() {
|
|
10
|
-
|
|
10
|
+
// TODO AFL TTT
|
|
11
11
|
let calcCol = this.props.entity;
|
|
12
12
|
return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center" },
|
|
13
13
|
React.createElement(rebass_1.Flex, { flex: 4 }, calcCol.ColumnId),
|
|
14
14
|
React.createElement(rebass_1.Flex, { flex: 8 },
|
|
15
15
|
React.createElement(CodeBlock_1.CodeBlock, null,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
' ',
|
|
17
|
+
this.props.api.queryLanguageApi.getAdaptableQueryExpression(calcCol.Query)))));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.CalculatedColumnSharedEntity = CalculatedColumnSharedEntity;
|
|
@@ -28,9 +28,8 @@ class CalculatedColumnSummaryComponent extends React.Component {
|
|
|
28
28
|
let detailRow;
|
|
29
29
|
let sharing = this.props.teamSharingActivated;
|
|
30
30
|
this.props.CalculatedColumns.map((item, index) => {
|
|
31
|
-
var _a;
|
|
32
31
|
if (item.ColumnId == this.props.summarisedColumn.columnId) {
|
|
33
|
-
detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'UF' + index, item1: this.props.moduleInfo.FriendlyName, item2: (
|
|
32
|
+
detailRow = (React.createElement(ModuleDetail_1.ModuleDetail, { key: 'UF' + index, item1: this.props.moduleInfo.FriendlyName, item2: this.props.api.queryLanguageApi.getAdaptableQueryExpression(item.Query), configEnity: item, showShare: this.props.teamSharingActivated, moduleInfo: this.props.moduleInfo, onEdit: () => this.onEdit(item), onShare: (config) => this.props.onShare(item, config), onDelete: CalculatedColumnRedux.CalculatedColumnDelete(item), showBold: true, accessLevel: this.props.accessLevel }));
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
return (React.createElement("div", null,
|
|
@@ -52,10 +51,9 @@ class CalculatedColumnSummaryComponent extends React.Component {
|
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
53
|
canFinishWizard() {
|
|
55
|
-
var _a;
|
|
56
54
|
let calculatedColumn = this.state.editedAdaptableObject;
|
|
57
55
|
return (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(calculatedColumn.ColumnId) &&
|
|
58
|
-
StringExtensions_1.StringExtensions.IsNotNullOrEmpty((
|
|
56
|
+
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.props.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query)));
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
exports.CalculatedColumnSummaryComponent = CalculatedColumnSummaryComponent;
|
|
@@ -10,6 +10,7 @@ const Enums_1 = require("../../../PredefinedConfig/Common/Enums");
|
|
|
10
10
|
const ExpressionEditor_1 = require("../../../components/ExpressionEditor");
|
|
11
11
|
const Tabs_1 = require("../../../components/Tabs");
|
|
12
12
|
const CodeBlock_1 = require("../../../components/CodeBlock");
|
|
13
|
+
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
13
14
|
exports.renderCalculatedColumnExpressionSummary = (data) => {
|
|
14
15
|
var _a;
|
|
15
16
|
return (React.createElement(rebass_1.Box, { fontSize: 2 },
|
|
@@ -17,33 +18,63 @@ exports.renderCalculatedColumnExpressionSummary = (data) => {
|
|
|
17
18
|
React.createElement(CodeBlock_1.CodeBlock, null, (_a = data.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression)));
|
|
18
19
|
};
|
|
19
20
|
exports.isValidCalculatedColumnExpression = (data, api) => {
|
|
20
|
-
var _a
|
|
21
|
+
var _a;
|
|
21
22
|
const calculatedColumnExpressionService = api.internalApi.getCalculatedColumnExpressionService();
|
|
22
|
-
const expression = (
|
|
23
|
+
const expression = (_a = api.queryLanguageApi.getAdaptableQueryExpression(data.Query)) === null || _a === void 0 ? void 0 : _a.trim();
|
|
23
24
|
if (!expression) {
|
|
24
25
|
return 'Calculated column expression cannot be empty';
|
|
25
26
|
}
|
|
26
|
-
const isValid = calculatedColumnExpressionService.
|
|
27
|
+
const isValid = calculatedColumnExpressionService.isCalculatedColumnQueryValid(data.Query);
|
|
27
28
|
if (!isValid) {
|
|
28
29
|
return 'Calculated column expression is not valid';
|
|
29
30
|
}
|
|
30
31
|
return true;
|
|
31
32
|
};
|
|
33
|
+
const QueryTab = (props) => {
|
|
34
|
+
const { type, label, disabled = false } = props, tabProps = tslib_1.__rest(props, ["type", "label", "disabled"]);
|
|
35
|
+
const text = (React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
36
|
+
label,
|
|
37
|
+
" ",
|
|
38
|
+
React.createElement(rebass_1.Text, { fontSize: 2 }, "query")));
|
|
39
|
+
return (React.createElement(Tabs_1.Tabs.Tab, Object.assign({ style: { flex: 1 } }, tabProps), !disabled ? (React.createElement(Radio_1.default, { tabIndex: -1, margin: 0, checked: type === props.value, style: { alignItems: 'baseline' } }, text)) : (text)));
|
|
40
|
+
};
|
|
41
|
+
// needed here to be considered a child Tab component, inside the Tabs component
|
|
42
|
+
QueryTab.defaultProps = {
|
|
43
|
+
isTabsTab: true,
|
|
44
|
+
};
|
|
32
45
|
exports.CalculatedColumnExpressionWizardSection = (props) => {
|
|
33
|
-
var _a;
|
|
34
46
|
const { api, data, moduleInfo } = OnePageAdaptableWizard_1.useOnePageWizardContext();
|
|
35
47
|
const initialData = react_1.useMemo(() => api.internalApi.getQueryPreviewData(), []);
|
|
36
|
-
const
|
|
48
|
+
const type = data.Query.AggregatedScalarExpression != undefined
|
|
49
|
+
? 'AggregatedScalarExpression'
|
|
50
|
+
: 'ScalarExpression';
|
|
51
|
+
const [selectedTab, setSelectedTab] = React.useState(type);
|
|
52
|
+
const setType = (type) => {
|
|
53
|
+
setSelectedTab(type);
|
|
54
|
+
if (type === 'ScalarExpression') {
|
|
55
|
+
props.onChange(Object.assign(Object.assign({}, data), { Query: {
|
|
56
|
+
ScalarExpression: '',
|
|
57
|
+
} }));
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
props.onChange(Object.assign(Object.assign({}, data), { Query: {
|
|
61
|
+
AggregatedScalarExpression: '',
|
|
62
|
+
} }));
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const setCalculatedColumnExpression = (calculatedColumnQuery) => {
|
|
37
66
|
const calculatedColumnExpressionService = api.internalApi.getCalculatedColumnExpressionService();
|
|
38
|
-
const dataType = calculatedColumnExpressionService.
|
|
67
|
+
const dataType = calculatedColumnExpressionService.getCalculatedColumnDataType(calculatedColumnQuery);
|
|
39
68
|
const Pivotable = dataType == Enums_1.DataType.String;
|
|
40
69
|
const Aggregatable = dataType == Enums_1.DataType.Number;
|
|
41
|
-
props.onChange(Object.assign(Object.assign({}, data), { Query: {
|
|
42
|
-
ScalarExpression,
|
|
43
|
-
}, CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), { DataType: dataType, Pivotable,
|
|
70
|
+
props.onChange(Object.assign(Object.assign({}, data), { Query: calculatedColumnQuery, CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), { DataType: dataType, Pivotable,
|
|
44
71
|
Aggregatable }) }));
|
|
45
72
|
};
|
|
46
|
-
return (React.createElement(Tabs_1.Tabs, {
|
|
47
|
-
React.createElement(
|
|
48
|
-
|
|
73
|
+
return (React.createElement(Tabs_1.Tabs, { onValueChange: setType, value: selectedTab, p: 2, style: { flex: 1, overflow: 'auto' } },
|
|
74
|
+
React.createElement(QueryTab, { value: "ScalarExpression", type: type, label: "Scalar" }),
|
|
75
|
+
React.createElement(Tabs_1.Tabs.Content, { value: 'ScalarExpression' },
|
|
76
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'scalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.ScalarExpression, onChange: (ScalarExpression) => setCalculatedColumnExpression({ ScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getAllNamedQuery(), isFullExpression: true, api: api })),
|
|
77
|
+
React.createElement(QueryTab, { value: "AggregatedScalarExpression", type: type, label: "AggregatedScalar" }),
|
|
78
|
+
React.createElement(Tabs_1.Tabs.Content, { value: 'AggregatedScalarExpression' },
|
|
79
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'aggregatedScalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.AggregatedScalarExpression, onChange: (AggregatedScalarExpression) => setCalculatedColumnExpression({ AggregatedScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getAllNamedQuery(), isFullExpression: true, api: api }))));
|
|
49
80
|
};
|
|
@@ -78,9 +78,8 @@ exports.CalculatedColumnSettingsWizardSection = (props) => {
|
|
|
78
78
|
props.onChange(Object.assign(Object.assign({}, data), { CalculatedColumnSettings: Object.assign(Object.assign({}, data.CalculatedColumnSettings), settings) }));
|
|
79
79
|
};
|
|
80
80
|
React.useEffect(() => {
|
|
81
|
-
var _a;
|
|
82
81
|
if (!dataType) {
|
|
83
|
-
const computedDataType = calculatedColumnExpressionService.
|
|
82
|
+
const computedDataType = calculatedColumnExpressionService.getCalculatedColumnDataType(data.Query);
|
|
84
83
|
handleSpecialColumnSettingsChange(Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.CalculatedColumnSettings), { DataType: computedDataType }));
|
|
85
84
|
}
|
|
86
85
|
}, []);
|
|
@@ -44,7 +44,7 @@ exports.CalculatedColumnWizard = (props) => {
|
|
|
44
44
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: calculatedColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
45
45
|
{
|
|
46
46
|
title: 'Expression',
|
|
47
|
-
details: 'Specify the
|
|
47
|
+
details: 'Specify the Calculated Column Expression',
|
|
48
48
|
isValid: CalculatedColumnExpressionWizardSection_1.isValidCalculatedColumnExpression,
|
|
49
49
|
renderSummary: CalculatedColumnExpressionWizardSection_1.renderCalculatedColumnExpressionSummary,
|
|
50
50
|
render: () => {
|
|
@@ -53,7 +53,7 @@ exports.CalculatedColumnWizard = (props) => {
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
title: 'Settings',
|
|
56
|
-
details: 'Specify
|
|
56
|
+
details: 'Specify Column details and properties',
|
|
57
57
|
isValid: CalculatedColumnSettingsWizardSection_1.isValidCalculatedColumnSettings,
|
|
58
58
|
renderSummary: CalculatedColumnSettingsWizardSection_1.renderCalculatedColumnSettingsSummary,
|
|
59
59
|
render: () => {
|
|
@@ -5,4 +5,4 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
5
5
|
export declare type ColorPickerProps = HTMLProps<HTMLInputElement> & {
|
|
6
6
|
api: AdaptableApi;
|
|
7
7
|
} & BoxProps;
|
|
8
|
-
export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<ColorPickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "api" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "
|
|
8
|
+
export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<ColorPickerProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "api" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "colSpan" | "rowSpan" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "headers" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableInputProps } from '../AdaptableInput';
|
|
3
3
|
export declare type AdaptableDateInputProps = AdaptableInputProps;
|
|
4
|
-
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "
|
|
4
|
+
declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "contextMenu" | "type" | "min" | "rows" | "download" | "value" | "checked" | "onClick" | "name" | "colSpan" | "rowSpan" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "headers" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default AdaptableDateInput;
|