@adaptabletools/adaptable 12.0.0-canary.0 → 12.0.0-canary.3
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/base.css +561 -283
- package/bundle.cjs.js +162 -148
- package/index.css +631 -280
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +5 -9
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
- package/src/AdaptableOptions/EditOptions.d.ts +26 -8
- package/src/AdaptableOptions/ExportOptions.d.ts +4 -7
- package/src/AdaptableOptions/GeneralOptions.d.ts +12 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +21 -3
- package/src/Api/AlertApi.d.ts +3 -3
- package/src/Api/ColumnApi.d.ts +7 -2
- package/src/Api/EventApi.d.ts +11 -0
- package/src/Api/Events/RowFormSubmitted.d.ts +15 -0
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +69 -1
- package/src/Api/Implementation/AlertApiImpl.d.ts +3 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ColumnApiImpl.js +15 -14
- package/src/Api/Implementation/ConfigApiImpl.js +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +16 -1
- package/src/Api/Implementation/FilterApiImpl.js +141 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -2
- package/src/Api/Implementation/GridApiImpl.js +7 -3
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -15
- package/src/Api/Implementation/LayoutApiImpl.js +0 -152
- package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PredicateApiImpl.js +18 -0
- package/src/Api/LayoutApi.d.ts +1 -72
- package/src/Api/PredicateApi.d.ts +7 -0
- package/src/PredefinedConfig/AlertState.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +11 -0
- package/src/PredefinedConfig/Common/FormContext.js +2 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +0 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
- package/src/Redux/Store/AdaptableStore.js +6 -0
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/BulkUpdateModule.js +3 -4
- package/src/Strategy/CellSummaryModule.js +1 -2
- package/src/Strategy/FilterModule.js +15 -18
- package/src/Strategy/LayoutModule.js +1 -0
- package/src/Strategy/PlusMinusModule.js +1 -4
- package/src/Strategy/SmartEditModule.js +2 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +2 -0
- package/src/Utilities/Constants/GeneralConstants.js +3 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -0
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
- package/src/Utilities/Services/RowEditService.d.ts +1 -0
- package/src/Utilities/Services/RowEditService.js +34 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +8 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +30 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +87 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +16 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
- package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
- package/src/View/AdaptableWizardView/Utils.js +24 -0
- package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
- package/src/View/AdaptableWizardView/Wizard.js +98 -0
- package/src/View/AdaptableWizardView/index.d.ts +1 -22
- package/src/View/AdaptableWizardView/index.js +2 -103
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +3 -3
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -6
- package/src/View/CellSummary/CellSummaryDetails.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
- package/src/View/Components/PreviewResultsPanel.js +3 -3
- package/src/View/Components/WizardSummaryPage.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -6
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/UIHelper.js +6 -6
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -2
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
- package/src/View/Wizard/OnePageAdaptableWizard.js +35 -169
- package/src/View/Wizard/OnePageWizards.d.ts +37 -0
- package/src/View/Wizard/OnePageWizards.js +187 -0
- package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
- package/src/agGrid/Adaptable.js +25 -11
- package/src/agGrid/FilterWrapper.js +2 -2
- package/src/agGrid/agGridHelper.d.ts +2 -3
- package/src/agGrid/agGridHelper.js +37 -33
- package/src/agGrid/rowEditIcons.d.ts +1 -0
- package/src/agGrid/rowEditIcons.js +2 -1
- package/src/components/Datepicker/Caption.js +1 -1
- package/src/components/InfiniteTable/index.js +1 -0
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +13 -7
- package/src/components/icons/add-row.d.ts +3 -0
- package/src/components/icons/add-row.js +7 -0
- package/src/components/icons/index.js +2 -0
- package/src/metamodel/adaptable.metamodel.d.ts +106 -22
- package/src/metamodel/adaptable.metamodel.js +238 -121
- package/src/types.d.ts +5 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agGridHelper = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
6
5
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
7
6
|
const AlertModule_1 = require("../Strategy/AlertModule");
|
|
8
7
|
const BulkUpdateModule_1 = require("../Strategy/BulkUpdateModule");
|
|
@@ -43,6 +42,7 @@ const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
|
43
42
|
const StatusBarModule_1 = require("../Strategy/StatusBarModule");
|
|
44
43
|
const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
|
|
45
44
|
const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
|
|
45
|
+
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
46
46
|
const tinycolor = require('tinycolor2');
|
|
47
47
|
/**
|
|
48
48
|
* Adaptable AG Grid implementation is getting really big and unwieldy
|
|
@@ -157,11 +157,13 @@ class agGridHelper {
|
|
|
157
157
|
createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups) {
|
|
158
158
|
const colId = agGridColumn.getColId();
|
|
159
159
|
const colDef = agGridColumn.getColDef();
|
|
160
|
+
const isActionRowButtonColumn = this.adaptable.api.columnApi.isActionRowButtonColumn(colId);
|
|
160
161
|
const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
|
|
161
162
|
const customFriendlyName = typeof columnFriendlyName === 'function'
|
|
162
163
|
? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
|
|
163
164
|
: null;
|
|
164
|
-
const FriendlyName = customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName :
|
|
165
|
+
const FriendlyName = (customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : isActionRowButtonColumn) ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
|
|
166
|
+
: this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
|
|
165
167
|
if (!this.initialAgGridColDefs[colId]) {
|
|
166
168
|
this.initialAgGridColDefs[colId] = Object.assign({}, agGridColumn.getUserProvidedColDef());
|
|
167
169
|
}
|
|
@@ -305,6 +307,9 @@ class agGridHelper {
|
|
|
305
307
|
if (!colDef) {
|
|
306
308
|
return false;
|
|
307
309
|
}
|
|
310
|
+
if (colDef.colId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
308
313
|
const queryableColumns = this.adaptable.api.queryLanguageApi.getQueryableColumnIds();
|
|
309
314
|
if (ArrayExtensions_1.ArrayExtensions.IsNull(queryableColumns)) {
|
|
310
315
|
return true;
|
|
@@ -367,12 +372,12 @@ class agGridHelper {
|
|
|
367
372
|
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
368
373
|
if (!column) {
|
|
369
374
|
LoggingHelper_1.LogAdaptableWarning('column is undefined returning String for Type');
|
|
370
|
-
return
|
|
375
|
+
return 'String';
|
|
371
376
|
}
|
|
372
|
-
let dataType =
|
|
377
|
+
let dataType = 'Unknown';
|
|
373
378
|
// get the column type if already in store (and not unknown)
|
|
374
379
|
const existingColumn = this.adaptable.api.columnApi.getColumnFromId(column.getId(), logWarning);
|
|
375
|
-
if (existingColumn && existingColumn.dataType !=
|
|
380
|
+
if (existingColumn && existingColumn.dataType != 'Unknown') {
|
|
376
381
|
return existingColumn.dataType;
|
|
377
382
|
}
|
|
378
383
|
// check for column type
|
|
@@ -380,7 +385,7 @@ class agGridHelper {
|
|
|
380
385
|
if (colType) {
|
|
381
386
|
if (Array.isArray(colType)) {
|
|
382
387
|
colType.forEach((c) => {
|
|
383
|
-
if (dataType ==
|
|
388
|
+
if (dataType == 'Unknown') {
|
|
384
389
|
dataType = this.getAbColDefValue(c);
|
|
385
390
|
}
|
|
386
391
|
});
|
|
@@ -388,50 +393,50 @@ class agGridHelper {
|
|
|
388
393
|
else {
|
|
389
394
|
dataType = this.getAbColDefValue(colType);
|
|
390
395
|
}
|
|
391
|
-
if (dataType !=
|
|
396
|
+
if (dataType != 'Unknown') {
|
|
392
397
|
return dataType;
|
|
393
398
|
}
|
|
394
399
|
}
|
|
395
400
|
const model = this.gridOptions.api.getModel();
|
|
396
401
|
if (model == null) {
|
|
397
402
|
LoggingHelper_1.LogAdaptableWarning(`No model so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
398
|
-
return
|
|
403
|
+
return 'Unknown';
|
|
399
404
|
}
|
|
400
405
|
let row = model.getRow(0);
|
|
401
406
|
if (row == null) {
|
|
402
407
|
// possible that there will be no data.
|
|
403
408
|
LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
404
|
-
return
|
|
409
|
+
return 'Unknown';
|
|
405
410
|
}
|
|
406
411
|
// if it's a group we need the content of the group
|
|
407
412
|
if (row.group) {
|
|
408
413
|
const childNodes = row.childrenAfterGroup;
|
|
409
414
|
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(childNodes)) {
|
|
410
415
|
LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
411
|
-
return
|
|
416
|
+
return 'Unknown';
|
|
412
417
|
}
|
|
413
418
|
row = childNodes[0];
|
|
414
419
|
}
|
|
415
420
|
const value = this.gridOptions.api.getValue(column, row);
|
|
416
421
|
if (value instanceof Date) {
|
|
417
|
-
dataType =
|
|
422
|
+
dataType = 'Date';
|
|
418
423
|
}
|
|
419
424
|
else if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
|
|
420
|
-
dataType =
|
|
425
|
+
dataType = 'Unknown';
|
|
421
426
|
}
|
|
422
427
|
else {
|
|
423
428
|
switch (typeof value) {
|
|
424
429
|
case 'string':
|
|
425
|
-
dataType =
|
|
430
|
+
dataType = 'String';
|
|
426
431
|
break;
|
|
427
432
|
case 'number':
|
|
428
|
-
dataType =
|
|
433
|
+
dataType = 'Number';
|
|
429
434
|
break;
|
|
430
435
|
case 'boolean':
|
|
431
|
-
dataType =
|
|
436
|
+
dataType = 'Boolean';
|
|
432
437
|
break;
|
|
433
438
|
case 'object':
|
|
434
|
-
dataType =
|
|
439
|
+
dataType = 'Object';
|
|
435
440
|
break;
|
|
436
441
|
default:
|
|
437
442
|
break;
|
|
@@ -442,53 +447,52 @@ class agGridHelper {
|
|
|
442
447
|
}
|
|
443
448
|
getAbColDefValue(colType) {
|
|
444
449
|
if (colType == 'numericColumn') {
|
|
445
|
-
return
|
|
450
|
+
return 'Number';
|
|
446
451
|
}
|
|
447
452
|
if (colType.startsWith('abColDef')) {
|
|
448
453
|
const abColType = colType;
|
|
449
454
|
switch (abColType) {
|
|
450
455
|
case 'abColDefNumber':
|
|
451
|
-
return
|
|
456
|
+
return 'Number';
|
|
452
457
|
case 'abColDefString':
|
|
453
|
-
return
|
|
458
|
+
return 'String';
|
|
454
459
|
case 'abColDefBoolean':
|
|
455
|
-
return
|
|
460
|
+
return 'Boolean';
|
|
456
461
|
case 'abColDefDate':
|
|
457
|
-
return
|
|
462
|
+
return 'Date';
|
|
458
463
|
case 'abColDefObject':
|
|
459
|
-
return
|
|
464
|
+
return 'Object';
|
|
460
465
|
default:
|
|
461
|
-
return
|
|
466
|
+
return 'Unknown';
|
|
462
467
|
}
|
|
463
468
|
}
|
|
464
|
-
return
|
|
469
|
+
return 'Unknown';
|
|
465
470
|
}
|
|
466
471
|
getAgGridDataType(dataType) {
|
|
467
472
|
if (!dataType) {
|
|
468
473
|
return 'abColDefString';
|
|
469
474
|
}
|
|
470
475
|
switch (dataType) {
|
|
471
|
-
case
|
|
476
|
+
case 'Boolean':
|
|
472
477
|
return 'abColDefBoolean';
|
|
473
|
-
case
|
|
478
|
+
case 'Date':
|
|
474
479
|
return 'abColDefDate';
|
|
475
|
-
case
|
|
480
|
+
case 'Number':
|
|
476
481
|
return 'abColDefNumber';
|
|
477
|
-
case
|
|
482
|
+
case 'Object':
|
|
478
483
|
return 'abColDefObject';
|
|
479
|
-
case
|
|
484
|
+
case 'String':
|
|
480
485
|
return 'abColDefString';
|
|
481
|
-
|
|
482
|
-
case Enums_1.DataType.Unknown:
|
|
486
|
+
default:
|
|
483
487
|
return 'abColDefCustom';
|
|
484
488
|
}
|
|
485
489
|
}
|
|
486
490
|
checkShouldClearExistingFiltersOrSearches() {
|
|
487
491
|
// if they have selected to clear column filters on startup then do it
|
|
488
492
|
if (this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp) {
|
|
489
|
-
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.
|
|
493
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getColumnFilters())) {
|
|
490
494
|
LoggingHelper_1.LogAdaptableWarning('Clearing existing Column Filters as "clearFiltersOnStartUp" is true');
|
|
491
|
-
this.adaptable.api.
|
|
495
|
+
this.adaptable.api.filterApi.clearColumnFilters();
|
|
492
496
|
}
|
|
493
497
|
}
|
|
494
498
|
// if they have selected to clear searches on startup then do it
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = void 0;
|
|
3
|
+
exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = exports.rowAddIcon = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const icons_1 = require("../components/icons");
|
|
6
6
|
const React = tslib_1.__importStar(require("react"));
|
|
7
|
+
exports.rowAddIcon = React.createElement(icons_1.Icon, { name: "add-row" });
|
|
7
8
|
exports.rowEditIcon = React.createElement(icons_1.Icon, { name: "edit" });
|
|
8
9
|
exports.rowCloneIcon = React.createElement(icons_1.Icon, { name: "clone" });
|
|
9
10
|
exports.rowDeleteIcon = React.createElement(icons_1.Icon, { name: "delete" });
|
|
@@ -14,7 +14,7 @@ const react_day_picker_1 = require("react-day-picker");
|
|
|
14
14
|
function Caption(props) {
|
|
15
15
|
const { displayMonth } = props;
|
|
16
16
|
const context = react_day_picker_1.useDayPicker();
|
|
17
|
-
const { classNames,
|
|
17
|
+
const { classNames, disableNavigation, styles, onMonthChange, dir } = context;
|
|
18
18
|
const { goToMonth, displayMonths } = react_day_picker_1.useNavigation();
|
|
19
19
|
const handlePreviousClick = () => {
|
|
20
20
|
handleMonthChange(add_1.default(displayMonth, { months: -1 }));
|
|
@@ -6,7 +6,7 @@ const InfiniteTable_1 = require("../../../components/InfiniteTable");
|
|
|
6
6
|
const join_1 = tslib_1.__importDefault(require("../../utils/join"));
|
|
7
7
|
const baseClassName = 'ab-GridList';
|
|
8
8
|
const columnsMap = new Map([
|
|
9
|
-
['item', { field: 'item', header: null,
|
|
9
|
+
['item', { field: 'item', header: null, defaultFlex: 1 }],
|
|
10
10
|
]);
|
|
11
11
|
const GridList = (props) => {
|
|
12
12
|
var _a;
|
|
@@ -20,6 +20,7 @@ const ensurePortalElement = () => {
|
|
|
20
20
|
portalElement.classList.add('ab-cmp-modal-window');
|
|
21
21
|
document.body.appendChild(portalElement);
|
|
22
22
|
};
|
|
23
|
+
const normalizeTopLeft = (position) => (position < 0 ? 0 : position);
|
|
23
24
|
const getResizePositionDelta = (direction, delta) => {
|
|
24
25
|
const positionDelta = { x: 0, y: 0 };
|
|
25
26
|
const left = -delta.width;
|
|
@@ -41,21 +42,26 @@ const getResizePositionDelta = (direction, delta) => {
|
|
|
41
42
|
return null;
|
|
42
43
|
};
|
|
43
44
|
exports.WindowModal = (props) => {
|
|
45
|
+
var _a, _b;
|
|
44
46
|
ensurePortalElement();
|
|
45
47
|
const positionDeltaRef = React.useRef(null);
|
|
46
|
-
const
|
|
48
|
+
const normalizedPosition = {
|
|
49
|
+
x: normalizeTopLeft((_a = props.position) === null || _a === void 0 ? void 0 : _a.x),
|
|
50
|
+
y: normalizeTopLeft((_b = props.position) === null || _b === void 0 ? void 0 : _b.y),
|
|
51
|
+
};
|
|
52
|
+
const positionRef = React.useRef(normalizedPosition);
|
|
47
53
|
const stacking = useStacking_1.useStacking();
|
|
48
54
|
/**
|
|
49
55
|
* This is needed because the function called in onDrop is saved when
|
|
50
56
|
* it gets attached to the DOM element event handler.
|
|
51
57
|
* This handler changes only when the underlying node changes.
|
|
52
58
|
*/
|
|
53
|
-
positionRef.current =
|
|
59
|
+
positionRef.current = normalizedPosition;
|
|
54
60
|
const style = {
|
|
55
61
|
zIndex: stacking.zIndex,
|
|
56
62
|
position: 'absolute',
|
|
57
|
-
left:
|
|
58
|
-
top:
|
|
63
|
+
left: normalizedPosition.x,
|
|
64
|
+
top: normalizedPosition.y,
|
|
59
65
|
};
|
|
60
66
|
const handleDrop = (dx, dy) => {
|
|
61
67
|
const newPosition = {
|
|
@@ -72,11 +78,11 @@ exports.WindowModal = (props) => {
|
|
|
72
78
|
onDrop: handleDrop,
|
|
73
79
|
});
|
|
74
80
|
const handleResizeStop = (event, direction, elementRef, delta) => {
|
|
75
|
-
let newPosition =
|
|
81
|
+
let newPosition = normalizedPosition;
|
|
76
82
|
if (positionDeltaRef.current) {
|
|
77
83
|
newPosition = {
|
|
78
|
-
x:
|
|
79
|
-
y:
|
|
84
|
+
x: normalizedPosition.x + positionDeltaRef.current.x,
|
|
85
|
+
y: normalizedPosition.y + positionDeltaRef.current.y,
|
|
80
86
|
};
|
|
81
87
|
positionDeltaRef.current = null;
|
|
82
88
|
applyTransform(0, 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
|
|
6
|
+
exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
|
|
7
|
+
React.createElement("path", { d: "M11 18H13V15H16V13H13V10H11V13H8V15H11ZM18 22H6Q5.175 22 4.588 21.413Q4 20.825 4 20V4Q4 3.175 4.588 2.587Q5.175 2 6 2H14L20 8V20Q20 20.825 19.413 21.413Q18.825 22 18 22ZM13 9V4H6Q6 4 6 4Q6 4 6 4V20Q6 20 6 20Q6 20 6 20H18Q18 20 18 20Q18 20 18 20V9ZM6 4V9V4V9V20Q6 20 6 20Q6 20 6 20Q6 20 6 20Q6 20 6 20V4Q6 4 6 4Q6 4 6 4Z" })));
|
|
@@ -132,6 +132,7 @@ const regex_1 = tslib_1.__importDefault(require("./regex"));
|
|
|
132
132
|
const track_changes_1 = tslib_1.__importDefault(require("./track-changes"));
|
|
133
133
|
const menu_1 = tslib_1.__importDefault(require("./menu"));
|
|
134
134
|
const statusbar_1 = tslib_1.__importDefault(require("./statusbar"));
|
|
135
|
+
const add_row_1 = tslib_1.__importDefault(require("./add-row"));
|
|
135
136
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
136
137
|
const quote_1 = tslib_1.__importDefault(require("./quote"));
|
|
137
138
|
const news_1 = tslib_1.__importDefault(require("./news"));
|
|
@@ -285,6 +286,7 @@ const allIcons = {
|
|
|
285
286
|
'track-changes': track_changes_1.default,
|
|
286
287
|
menu: menu_1.default,
|
|
287
288
|
statusbar: statusbar_1.default,
|
|
289
|
+
'add-row': add_row_1.default,
|
|
288
290
|
};
|
|
289
291
|
Object.keys(allIcons).forEach((name) => {
|
|
290
292
|
const ReactCmp = allIcons[name];
|
|
@@ -31,7 +31,7 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
31
31
|
reference?: undefined;
|
|
32
32
|
})[];
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
ActionColumnContext: {
|
|
35
35
|
name: string;
|
|
36
36
|
kind: string;
|
|
37
37
|
description: string;
|
|
@@ -756,26 +756,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
756
756
|
reference?: undefined;
|
|
757
757
|
})[];
|
|
758
758
|
};
|
|
759
|
-
AlertButtonContext: {
|
|
760
|
-
name: string;
|
|
761
|
-
kind: string;
|
|
762
|
-
description: string;
|
|
763
|
-
properties: ({
|
|
764
|
-
name: string;
|
|
765
|
-
kind: string;
|
|
766
|
-
description: string;
|
|
767
|
-
uiLabel: string;
|
|
768
|
-
reference: string;
|
|
769
|
-
isOptional?: undefined;
|
|
770
|
-
} | {
|
|
771
|
-
name: string;
|
|
772
|
-
kind: string;
|
|
773
|
-
description: string;
|
|
774
|
-
uiLabel: string;
|
|
775
|
-
isOptional: boolean;
|
|
776
|
-
reference: string;
|
|
777
|
-
})[];
|
|
778
|
-
};
|
|
779
759
|
AlertDefinition: {
|
|
780
760
|
name: string;
|
|
781
761
|
kind: string;
|
|
@@ -820,6 +800,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
820
800
|
kind: string;
|
|
821
801
|
description: string;
|
|
822
802
|
};
|
|
803
|
+
AlertFormContext: {
|
|
804
|
+
name: string;
|
|
805
|
+
kind: string;
|
|
806
|
+
description: string;
|
|
807
|
+
properties: {
|
|
808
|
+
name: string;
|
|
809
|
+
kind: string;
|
|
810
|
+
description: string;
|
|
811
|
+
uiLabel: string;
|
|
812
|
+
reference: string;
|
|
813
|
+
}[];
|
|
814
|
+
};
|
|
823
815
|
AlertMessageContext: {
|
|
824
816
|
name: string;
|
|
825
817
|
kind: string;
|
|
@@ -1606,6 +1598,31 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1606
1598
|
kind: string;
|
|
1607
1599
|
description: string;
|
|
1608
1600
|
};
|
|
1601
|
+
CreatedRowFormInfo: {
|
|
1602
|
+
name: string;
|
|
1603
|
+
kind: string;
|
|
1604
|
+
description: string;
|
|
1605
|
+
};
|
|
1606
|
+
CreateRowFormContext: {
|
|
1607
|
+
name: string;
|
|
1608
|
+
kind: string;
|
|
1609
|
+
description: string;
|
|
1610
|
+
properties: ({
|
|
1611
|
+
name: string;
|
|
1612
|
+
kind: string;
|
|
1613
|
+
description: string;
|
|
1614
|
+
uiLabel: string;
|
|
1615
|
+
isOptional: boolean;
|
|
1616
|
+
reference: string;
|
|
1617
|
+
} | {
|
|
1618
|
+
name: string;
|
|
1619
|
+
kind: string;
|
|
1620
|
+
description: string;
|
|
1621
|
+
uiLabel: string;
|
|
1622
|
+
isOptional?: undefined;
|
|
1623
|
+
reference?: undefined;
|
|
1624
|
+
})[];
|
|
1625
|
+
};
|
|
1609
1626
|
CustomDestination: {
|
|
1610
1627
|
name: string;
|
|
1611
1628
|
kind: string;
|
|
@@ -1984,6 +2001,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1984
2001
|
uiLabel: string;
|
|
1985
2002
|
}[];
|
|
1986
2003
|
};
|
|
2004
|
+
DataSetFormContext: {
|
|
2005
|
+
name: string;
|
|
2006
|
+
kind: string;
|
|
2007
|
+
description: string;
|
|
2008
|
+
properties: {
|
|
2009
|
+
name: string;
|
|
2010
|
+
kind: string;
|
|
2011
|
+
description: string;
|
|
2012
|
+
uiLabel: string;
|
|
2013
|
+
reference: string;
|
|
2014
|
+
}[];
|
|
2015
|
+
};
|
|
1987
2016
|
DataUpdateConfig: {
|
|
1988
2017
|
name: string;
|
|
1989
2018
|
kind: string;
|
|
@@ -2021,6 +2050,16 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2021
2050
|
defaultValue: string;
|
|
2022
2051
|
}[];
|
|
2023
2052
|
};
|
|
2053
|
+
DeletedRowFormInfo: {
|
|
2054
|
+
name: string;
|
|
2055
|
+
kind: string;
|
|
2056
|
+
description: string;
|
|
2057
|
+
};
|
|
2058
|
+
EditedRowFormInfo: {
|
|
2059
|
+
name: string;
|
|
2060
|
+
kind: string;
|
|
2061
|
+
description: string;
|
|
2062
|
+
};
|
|
2024
2063
|
EditLookUpPermittedValues: {
|
|
2025
2064
|
name: string;
|
|
2026
2065
|
kind: string;
|
|
@@ -2059,6 +2098,24 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2059
2098
|
defaultValue?: undefined;
|
|
2060
2099
|
})[];
|
|
2061
2100
|
};
|
|
2101
|
+
EditRowFormContext: {
|
|
2102
|
+
name: string;
|
|
2103
|
+
kind: string;
|
|
2104
|
+
description: string;
|
|
2105
|
+
properties: ({
|
|
2106
|
+
name: string;
|
|
2107
|
+
kind: string;
|
|
2108
|
+
description: string;
|
|
2109
|
+
uiLabel: string;
|
|
2110
|
+
reference: string;
|
|
2111
|
+
} | {
|
|
2112
|
+
name: string;
|
|
2113
|
+
kind: string;
|
|
2114
|
+
description: string;
|
|
2115
|
+
uiLabel: string;
|
|
2116
|
+
reference?: undefined;
|
|
2117
|
+
})[];
|
|
2118
|
+
};
|
|
2062
2119
|
EntitlementOptions: {
|
|
2063
2120
|
name: string;
|
|
2064
2121
|
kind: string;
|
|
@@ -2103,7 +2160,7 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2103
2160
|
uiLabel: string;
|
|
2104
2161
|
}[];
|
|
2105
2162
|
};
|
|
2106
|
-
|
|
2163
|
+
ExportFormContext: {
|
|
2107
2164
|
name: string;
|
|
2108
2165
|
kind: string;
|
|
2109
2166
|
description: string;
|
|
@@ -2555,6 +2612,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2555
2612
|
isOptional: boolean;
|
|
2556
2613
|
}[];
|
|
2557
2614
|
};
|
|
2615
|
+
FormContext: {
|
|
2616
|
+
name: string;
|
|
2617
|
+
kind: string;
|
|
2618
|
+
description: string;
|
|
2619
|
+
properties: {
|
|
2620
|
+
name: string;
|
|
2621
|
+
kind: string;
|
|
2622
|
+
description: string;
|
|
2623
|
+
uiLabel: string;
|
|
2624
|
+
reference: string;
|
|
2625
|
+
}[];
|
|
2626
|
+
};
|
|
2558
2627
|
FreeTextColumn: {
|
|
2559
2628
|
name: string;
|
|
2560
2629
|
kind: string;
|
|
@@ -3676,6 +3745,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3676
3745
|
reference: string;
|
|
3677
3746
|
})[];
|
|
3678
3747
|
};
|
|
3748
|
+
RowFormContext: {
|
|
3749
|
+
name: string;
|
|
3750
|
+
kind: string;
|
|
3751
|
+
description: string;
|
|
3752
|
+
};
|
|
3679
3753
|
RowFormOptions: {
|
|
3680
3754
|
name: string;
|
|
3681
3755
|
kind: string;
|
|
@@ -3696,6 +3770,16 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3696
3770
|
defaultValue: string;
|
|
3697
3771
|
})[];
|
|
3698
3772
|
};
|
|
3773
|
+
RowFormSubmittedInfo: {
|
|
3774
|
+
name: string;
|
|
3775
|
+
kind: string;
|
|
3776
|
+
description: string;
|
|
3777
|
+
};
|
|
3778
|
+
RowFormType: {
|
|
3779
|
+
name: string;
|
|
3780
|
+
kind: string;
|
|
3781
|
+
description: string;
|
|
3782
|
+
};
|
|
3699
3783
|
RowInfo: {
|
|
3700
3784
|
name: string;
|
|
3701
3785
|
kind: string;
|