@adaptabletools/adaptable 15.2.0-canary.5 → 15.2.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/bundle.cjs.js +162 -162
- 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/AlertOptions.d.ts +3 -3
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -5
- package/src/AdaptableOptions/FilterOptions.d.ts +7 -0
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +7 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- package/src/AdaptableOptions/PredicateOptions.d.ts +5 -1
- package/src/Api/AlertApi.d.ts +2 -2
- package/src/Api/Glue42Api.d.ts +1 -1
- package/src/Api/GridApi.d.ts +2 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/FilterApiImpl.js +4 -1
- package/src/Api/Implementation/FlashingCellApiImpl.js +1 -1
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
- package/src/Api/Implementation/PredicateApiImpl.js +8 -8
- package/src/Api/Implementation/ThemeApiImpl.js +2 -0
- package/src/Api/Internal/AlertInternalApi.d.ts +3 -3
- package/src/Api/Internal/AlertInternalApi.js +7 -7
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/PredicateInternalApi.d.ts +5 -4
- package/src/Api/Internal/PredicateInternalApi.js +16 -12
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PredicateApi.d.ts +5 -5
- package/src/Strategy/AlertModule.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
- package/src/Utilities/Services/ThemeService.d.ts +1 -0
- package/src/Utilities/Services/ThemeService.js +38 -3
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -2
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +0 -5
- package/src/View/Components/FilterForm/QuickFilterForm.js +60 -206
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +19 -0
- package/src/View/Components/FilterForm/QuickFilterValues.js +168 -0
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -0
- package/src/agGrid/Adaptable.js +24 -50
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/OverlayTrigger/index.d.ts +3 -1
- package/src/components/OverlayTrigger/index.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +20 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuickFilterValues = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/ArrayExtensions"));
|
|
8
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
9
|
+
const date_fns_1 = require("date-fns");
|
|
10
|
+
const OverlayTrigger_1 = tslib_1.__importDefault(require("../../../components/OverlayTrigger"));
|
|
11
|
+
const rebass_1 = require("rebass");
|
|
12
|
+
const ListBoxFilterForm_1 = require("./ListBoxFilterForm");
|
|
13
|
+
const QuickFilterValues = (props) => {
|
|
14
|
+
const { api } = props;
|
|
15
|
+
const valuesDropdownRef = React.useRef(null);
|
|
16
|
+
const [quickFilterValues, setQuickFilterValues] = React.useState({ values: [], suppressClientSideFilter: false, dataLoadIsComplete: false });
|
|
17
|
+
const [isDistinctColumnValuesLoading, setIsDistinctColumnValuesLoading] = React.useState(false);
|
|
18
|
+
const [textFilterValue, setTextFilterValue] = React.useState('');
|
|
19
|
+
const [valuesLoadTrigger, setValuesLoadTrigger] = React.useState({
|
|
20
|
+
counter: 0,
|
|
21
|
+
});
|
|
22
|
+
const [transientColumnFilter, setTransientColumnFilter] = React.useState(null);
|
|
23
|
+
const onColumnValueSelectedChange = (columnValues) => {
|
|
24
|
+
var _a;
|
|
25
|
+
const { columnFilter } = props;
|
|
26
|
+
columnFilter.Predicate = {
|
|
27
|
+
PredicateId: columnFilter.Predicate.PredicateId,
|
|
28
|
+
Inputs: columnValues,
|
|
29
|
+
};
|
|
30
|
+
if ((_a = api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.autoApplyFilter) {
|
|
31
|
+
props.updateColumnFilter(columnFilter);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setTransientColumnFilter(columnFilter);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
(0, react_1.useEffect)(() => {
|
|
38
|
+
if (valuesLoadTrigger.counter === 0) {
|
|
39
|
+
// skip the first render
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// loadPermittedValues
|
|
43
|
+
let ignore = false;
|
|
44
|
+
setIsDistinctColumnValuesLoading(true);
|
|
45
|
+
api.gridApi.internalApi
|
|
46
|
+
.getDistinctFilterDisplayValuesForColumn(props.columnFilter.ColumnId, textFilterValue, api.optionsApi.getFilterOptions().showDistinctFilteredValuesOnly)
|
|
47
|
+
.then((distinctFilterDisplayValues) => {
|
|
48
|
+
if (ignore) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
setQuickFilterValues(Object.assign(Object.assign({}, distinctFilterDisplayValues), { dataLoadIsComplete: true }));
|
|
52
|
+
setIsDistinctColumnValuesLoading(false);
|
|
53
|
+
});
|
|
54
|
+
return () => {
|
|
55
|
+
ignore = true;
|
|
56
|
+
};
|
|
57
|
+
}, [valuesLoadTrigger]);
|
|
58
|
+
const onVisibleChange = (0, react_1.useCallback)((visible) => {
|
|
59
|
+
if (visible) {
|
|
60
|
+
setValuesLoadTrigger(Object.assign(Object.assign({}, valuesLoadTrigger), { counter: valuesLoadTrigger.counter + 1 }));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
setQuickFilterValues({
|
|
64
|
+
values: [],
|
|
65
|
+
suppressClientSideFilter: false,
|
|
66
|
+
dataLoadIsComplete: false,
|
|
67
|
+
});
|
|
68
|
+
setTextFilterValue('');
|
|
69
|
+
}
|
|
70
|
+
}, [valuesLoadTrigger, quickFilterValues]);
|
|
71
|
+
const loadedDataIsEmpty = quickFilterValues.dataLoadIsComplete &&
|
|
72
|
+
ArrayExtensions_1.default.IsNullOrEmptyOrContainsSingleEmptyValue(quickFilterValues.values);
|
|
73
|
+
const renderNoValuesDropdown = () => {
|
|
74
|
+
return (React.createElement(SimpleButton_1.default, { disabled: true, style: {
|
|
75
|
+
flex: 1,
|
|
76
|
+
whiteSpace: 'nowrap',
|
|
77
|
+
overflow: 'hidden',
|
|
78
|
+
textOverflow: 'ellipsis',
|
|
79
|
+
borderRadius: 0,
|
|
80
|
+
borderLeftWidth: 0,
|
|
81
|
+
borderColor: 'var(--ab-color-primarydark)',
|
|
82
|
+
} }, 'No Column Values'));
|
|
83
|
+
};
|
|
84
|
+
if (ArrayExtensions_1.default.IsNullOrEmpty(props.columnFilter.Predicate.Inputs) && loadedDataIsEmpty) {
|
|
85
|
+
return renderNoValuesDropdown();
|
|
86
|
+
}
|
|
87
|
+
const handleFilterChange = (filterText) => {
|
|
88
|
+
setTextFilterValue(filterText);
|
|
89
|
+
if (quickFilterValues.suppressClientSideFilter) {
|
|
90
|
+
setValuesLoadTrigger(Object.assign(Object.assign({}, valuesLoadTrigger), { counter: valuesLoadTrigger.counter + 1 }));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
let showEvent = 'mouseenter';
|
|
94
|
+
if (props.quickFilterValuesTrigger === 'click') {
|
|
95
|
+
showEvent = 'click';
|
|
96
|
+
}
|
|
97
|
+
let selectedValues = props.columnFilter.Predicate.PredicateId === 'Values' ? 'Select Values' : 'Exclude Values';
|
|
98
|
+
if (props.columnFilter.Predicate.Inputs.length) {
|
|
99
|
+
selectedValues = props.columnFilter.Predicate.Inputs.map((input) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
const label = (_b = (_a = quickFilterValues.values) === null || _a === void 0 ? void 0 : _a.find((distinctValue) => {
|
|
102
|
+
if (input instanceof Date) {
|
|
103
|
+
return (0, date_fns_1.isSameDay)(input, distinctValue.value);
|
|
104
|
+
}
|
|
105
|
+
return distinctValue.value === input;
|
|
106
|
+
})) === null || _b === void 0 ? void 0 : _b.label;
|
|
107
|
+
return label !== null && label !== void 0 ? label : input;
|
|
108
|
+
}).join(', ');
|
|
109
|
+
}
|
|
110
|
+
const quickFilterValuesWidth = props.api.optionsApi.getAdaptableOptions().filterOptions.quickFilterValuesWidth;
|
|
111
|
+
const getPopoverWidth = (targetWidth) => {
|
|
112
|
+
if (quickFilterValuesWidth === 'auto') {
|
|
113
|
+
return Math.max(180, targetWidth);
|
|
114
|
+
}
|
|
115
|
+
if (typeof quickFilterValuesWidth === 'number') {
|
|
116
|
+
return quickFilterValuesWidth;
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
};
|
|
120
|
+
const currentOverlayVisible = (0, react_1.useRef)(false);
|
|
121
|
+
return (React.createElement(OverlayTrigger_1.default, { showEvent: showEvent,
|
|
122
|
+
// cannot hide on blur, because the form input receives the input when this is opened
|
|
123
|
+
hideEvent: "mouseleave", hideDelay: 300, ref: (api) => {
|
|
124
|
+
valuesDropdownRef.current = api;
|
|
125
|
+
props.registerValuesDropdownApi(api);
|
|
126
|
+
}, onVisibleChange: (visible) => {
|
|
127
|
+
if (currentOverlayVisible.current !== visible) {
|
|
128
|
+
// onVisibleChange() is called redundantly
|
|
129
|
+
currentOverlayVisible.current = visible;
|
|
130
|
+
onVisibleChange(visible);
|
|
131
|
+
}
|
|
132
|
+
}, render: ({ targetWidth }) => {
|
|
133
|
+
var _a;
|
|
134
|
+
return (React.createElement(rebass_1.Flex, { onMouseEnter: () => {
|
|
135
|
+
var _a;
|
|
136
|
+
if (showEvent === 'click') {
|
|
137
|
+
// For showEvent=mousenter this is not needed.
|
|
138
|
+
// When mouseenter is triggered on the overlay, onShowFn is called, the overlay is no longer hidden.
|
|
139
|
+
// But in this case because the trigger is click, another show is not triggered.
|
|
140
|
+
(_a = valuesDropdownRef.current) === null || _a === void 0 ? void 0 : _a.show();
|
|
141
|
+
}
|
|
142
|
+
}, "data-name": "quick-filter-form", flexDirection: "column", style: {
|
|
143
|
+
fontSize: 'var(--ab-font-size-2)',
|
|
144
|
+
border: '1px solid var(--ab-color-primarydark)',
|
|
145
|
+
background: 'var(--ab-color-defaultbackground)',
|
|
146
|
+
zIndex: 1000,
|
|
147
|
+
width: getPopoverWidth(targetWidth),
|
|
148
|
+
} },
|
|
149
|
+
React.createElement(rebass_1.Flex, { m: 2 },
|
|
150
|
+
React.createElement(SimpleButton_1.default, { onClick: () => props.clearColumnFilter() }, "Clear Filter"),
|
|
151
|
+
((_a = api.optionsApi.getFilterOptions()) === null || _a === void 0 ? void 0 : _a.autoApplyFilter) == false && (React.createElement(SimpleButton_1.default, { ml: 2, onClick: () => {
|
|
152
|
+
if (transientColumnFilter) {
|
|
153
|
+
props.updateColumnFilter(transientColumnFilter);
|
|
154
|
+
}
|
|
155
|
+
} }, "Apply Filter"))),
|
|
156
|
+
React.createElement(ListBoxFilterForm_1.ListBoxFilterForm, { disabled: props.isFilterDisabled, suppressClientSideFilter: quickFilterValues.suppressClientSideFilter, isLoading: isDistinctColumnValuesLoading, onFilterChange: handleFilterChange, currentColumn: props.currentColumn, columns: [], columnDistinctValues: quickFilterValues.values, dataType: props.currentColumn.dataType, uiSelectedColumnValues: props.columnFilter.Predicate.Inputs.filter((input) => input !== ''), useAgGridStyle: true, onColumnValueSelectedChange: (list) => onColumnValueSelectedChange(list) })));
|
|
157
|
+
} },
|
|
158
|
+
React.createElement(SimpleButton_1.default, { "data-name": 'Select Values', style: {
|
|
159
|
+
flex: 1,
|
|
160
|
+
whiteSpace: 'nowrap',
|
|
161
|
+
overflow: 'hidden',
|
|
162
|
+
textOverflow: 'ellipsis',
|
|
163
|
+
borderRadius: 0,
|
|
164
|
+
borderLeftWidth: 0,
|
|
165
|
+
borderColor: 'var(--ab-color-primarydark)',
|
|
166
|
+
}, disabled: props.isFilterDisabled || loadedDataIsEmpty }, selectedValues)));
|
|
167
|
+
};
|
|
168
|
+
exports.QuickFilterValues = QuickFilterValues;
|
|
@@ -46,7 +46,7 @@ const CustomSortColumnWizardSection = (props) => {
|
|
|
46
46
|
React.createElement(Tabs_1.Tabs.Tab, null, "Column"),
|
|
47
47
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
48
48
|
React.createElement(ColumnSelector_1.NewColumnSelector, { availableColumns: sortableCols, selected: data.ColumnId ? [data.ColumnId] : [], singleSelect: true, onChange: (ids) => {
|
|
49
|
-
props.onChange(Object.assign(Object.assign({}, data), { ColumnId: ids[0] }));
|
|
49
|
+
props.onChange(Object.assign(Object.assign({}, data), { SortedValues: [], ColumnId: ids[0] }));
|
|
50
50
|
}, allowReorder: false }))));
|
|
51
51
|
};
|
|
52
52
|
exports.CustomSortColumnWizardSection = CustomSortColumnWizardSection;
|
|
@@ -362,6 +362,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
362
362
|
private updateColumnDataTypeIfRowDataIsEmpty;
|
|
363
363
|
private runAdaptableComparerFunction;
|
|
364
364
|
isGridSelectable(): boolean;
|
|
365
|
+
isGridRangeSelectable(): boolean;
|
|
365
366
|
isGridGroupable(): boolean;
|
|
366
367
|
isGridGroupingActive(): boolean;
|
|
367
368
|
isGridPivotable(): boolean;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -729,31 +729,35 @@ class Adaptable {
|
|
|
729
729
|
}
|
|
730
730
|
createAdaptableSideBarDef() {
|
|
731
731
|
var _a;
|
|
732
|
-
if (
|
|
733
|
-
|
|
734
|
-
!this.gridOptions.sideBar) {
|
|
732
|
+
if (!this.gridOptions.sideBar) {
|
|
733
|
+
// no need to create the sidebar if it is not enabled
|
|
735
734
|
return;
|
|
736
735
|
}
|
|
736
|
+
const adaptableToolBarHidden = this.EntitlementService.isModuleHiddenEntitlement('ToolPanel');
|
|
737
737
|
if (this.gridOptions.sideBar === true) {
|
|
738
738
|
// create all tool panels with default settings
|
|
739
|
+
const toolPanels = [];
|
|
740
|
+
toolPanels.push(GeneralConstants.AGGRID_TOOLPANEL_FILTERS);
|
|
741
|
+
toolPanels.push(GeneralConstants.AGGRID_TOOLPANEL_COLUMNS);
|
|
742
|
+
if (!adaptableToolBarHidden) {
|
|
743
|
+
toolPanels.push(this.agGridHelper.buildAdaptableToolPanelDef());
|
|
744
|
+
}
|
|
739
745
|
return {
|
|
740
|
-
toolPanels:
|
|
741
|
-
GeneralConstants.AGGRID_TOOLPANEL_FILTERS,
|
|
742
|
-
GeneralConstants.AGGRID_TOOLPANEL_COLUMNS,
|
|
743
|
-
this.agGridHelper.buildAdaptableToolPanelDef(),
|
|
744
|
-
],
|
|
746
|
+
toolPanels: toolPanels,
|
|
745
747
|
};
|
|
746
748
|
}
|
|
747
749
|
else if (typeof this.gridOptions.sideBar === 'string') {
|
|
748
750
|
// there is only one tool panel, and it's the adaptable one => we have to handle it
|
|
749
751
|
if (this.gridOptions.sideBar === GeneralConstants.ADAPTABLE_TOOLPANEL_ID) {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
752
|
+
if (!adaptableToolBarHidden)
|
|
753
|
+
return {
|
|
754
|
+
toolPanels: [this.agGridHelper.buildAdaptableToolPanelDef()],
|
|
755
|
+
};
|
|
753
756
|
}
|
|
754
757
|
}
|
|
755
758
|
else if (Array.isArray(this.gridOptions.sideBar)) {
|
|
756
|
-
if (!this.gridOptions.sideBar.includes(GeneralConstants.ADAPTABLE_TOOLPANEL_ID)
|
|
759
|
+
if (!this.gridOptions.sideBar.includes(GeneralConstants.ADAPTABLE_TOOLPANEL_ID) ||
|
|
760
|
+
adaptableToolBarHidden) {
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
759
763
|
// if it's an array, process the tool panel definitions
|
|
@@ -763,7 +767,8 @@ class Adaptable {
|
|
|
763
767
|
}
|
|
764
768
|
else if (this.agGridHelper.isSideBarDefObject(this.gridOptions.sideBar)) {
|
|
765
769
|
if ((_a = this.gridOptions.sideBar.toolPanels) === null || _a === void 0 ? void 0 : _a.some((toolpanelDef) => typeof toolpanelDef !== 'string' &&
|
|
766
|
-
toolpanelDef.id === GeneralConstants.ADAPTABLE_TOOLPANEL_ID
|
|
770
|
+
toolpanelDef.id === GeneralConstants.ADAPTABLE_TOOLPANEL_ID &&
|
|
771
|
+
!adaptableToolBarHidden)) {
|
|
767
772
|
// return the boolean flag so that we know that we need the custom AdaptableToolPanel component
|
|
768
773
|
return true;
|
|
769
774
|
}
|
|
@@ -1638,7 +1643,7 @@ class Adaptable {
|
|
|
1638
1643
|
// This method returns selected cells ONLY (if selection mode is cells or multiple cells).
|
|
1639
1644
|
// If the selection mode is row it will returns nothing - use the setSelectedRows() method
|
|
1640
1645
|
setSelectedCells() {
|
|
1641
|
-
if (!this.
|
|
1646
|
+
if (!this.isGridRangeSelectable()) {
|
|
1642
1647
|
return undefined;
|
|
1643
1648
|
}
|
|
1644
1649
|
const selected = this.gridOptions.api.getCellRanges();
|
|
@@ -2880,7 +2885,7 @@ class Adaptable {
|
|
|
2880
2885
|
}
|
|
2881
2886
|
}));
|
|
2882
2887
|
/**
|
|
2883
|
-
* Use Case:
|
|
2888
|
+
* Use Case: Column Row Grouping changes and 'restoreUngroupedColumns' is true
|
|
2884
2889
|
* Action: Make the column invisiblel
|
|
2885
2890
|
*/
|
|
2886
2891
|
this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
|
|
@@ -2891,14 +2896,6 @@ class Adaptable {
|
|
|
2891
2896
|
if ((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.restoreUngroupedColumns) {
|
|
2892
2897
|
this.persistColumnIndexBeforeGrouping(params);
|
|
2893
2898
|
}
|
|
2894
|
-
if (this.adaptableOptions.columnOptions.hideColumnWhenGrouped === true &&
|
|
2895
|
-
params.source !== 'api') {
|
|
2896
|
-
params.columns.forEach((col) => {
|
|
2897
|
-
if (col.isVisible()) {
|
|
2898
|
-
this.api.columnApi.hideColumn(col.getColId());
|
|
2899
|
-
}
|
|
2900
|
-
});
|
|
2901
|
-
}
|
|
2902
2899
|
}));
|
|
2903
2900
|
/**
|
|
2904
2901
|
* Use Case: A Column has finished being resized
|
|
@@ -4240,15 +4237,12 @@ class Adaptable {
|
|
|
4240
4237
|
return indexFirstElement - indexSecondElement;
|
|
4241
4238
|
};
|
|
4242
4239
|
}
|
|
4243
|
-
// do we want to do this each time or check once at startup and then set a flag?
|
|
4244
4240
|
isGridSelectable() {
|
|
4241
|
+
return (this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple');
|
|
4242
|
+
}
|
|
4243
|
+
isGridRangeSelectable() {
|
|
4245
4244
|
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(core_1.ModuleNames.RangeSelectionModule);
|
|
4246
|
-
|
|
4247
|
-
this.gridOptions.enableRangeSelection != null &&
|
|
4248
|
-
this.gridOptions.enableRangeSelection) {
|
|
4249
|
-
return true;
|
|
4250
|
-
}
|
|
4251
|
-
return false;
|
|
4245
|
+
return isRangeSelectionModuleRegistered && this.gridOptions.enableRangeSelection === true;
|
|
4252
4246
|
}
|
|
4253
4247
|
isGridGroupable() {
|
|
4254
4248
|
const isTreeLayout = this.api.internalApi.isGridInTreeMode();
|
|
@@ -4447,26 +4441,6 @@ class Adaptable {
|
|
|
4447
4441
|
else {
|
|
4448
4442
|
el.classList.remove('ab--custom-mac-like-scrollbars');
|
|
4449
4443
|
}
|
|
4450
|
-
const computedDocumentStyle = getComputedStyle(el);
|
|
4451
|
-
const [abLoaded, abThemeLoaded] = ['--ab-loaded', '--ab-theme-loaded'].map((variable) => {
|
|
4452
|
-
let val = computedDocumentStyle.getPropertyValue(variable);
|
|
4453
|
-
if (typeof val === 'string' && val.trim) {
|
|
4454
|
-
val = val.trim();
|
|
4455
|
-
}
|
|
4456
|
-
return val;
|
|
4457
|
-
});
|
|
4458
|
-
if (abLoaded !== '777') {
|
|
4459
|
-
this.logger.consoleError('Please import Adaptable styles from "@adaptabletools/adaptable/index.css"');
|
|
4460
|
-
}
|
|
4461
|
-
// every theme should define a custom css variable: --ab-theme-loaded: <themeName> defined on the document element.
|
|
4462
|
-
if (abThemeLoaded !== themeName) {
|
|
4463
|
-
this.logger
|
|
4464
|
-
.consoleWarn(`Theme "${themeName}" doesn't seem to be loaded! Make sure you import the css file for the "${themeName}" theme!
|
|
4465
|
-
|
|
4466
|
-
If it's a default theme, try
|
|
4467
|
-
|
|
4468
|
-
import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
4469
|
-
}
|
|
4470
4444
|
}
|
|
4471
4445
|
setupRowStyling() {
|
|
4472
4446
|
// Set any Row Styles (i.e. items without a classname)
|
|
@@ -8,4 +8,4 @@ export declare type ColorPickerProps = Omit<HTMLProps<HTMLInputElement>, 'onChan
|
|
|
8
8
|
value: string;
|
|
9
9
|
includeAlpha?: boolean;
|
|
10
10
|
} & Omit<BoxProps, 'onChange'>;
|
|
11
|
-
export declare const ColorPicker: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const ColorPicker: React.ForwardRefExoticComponent<Pick<ColorPickerProps, "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "start" | "open" | "name" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "color" | "content" | "display" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "textAlign" | "translate" | "verticalAlign" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "size" | "manifest" | "m" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "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" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "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" | "onClick" | "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" | "api" | "bg" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "variant" | "tx" | "sx" | "includeAlpha"> & React.RefAttributes<unknown>>;
|
|
@@ -15,4 +15,4 @@ export declare type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'def
|
|
|
15
15
|
showWeekNumber?: boolean;
|
|
16
16
|
showOutsideDays?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare const Datepicker: React.ForwardRefExoticComponent<
|
|
18
|
+
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "start" | "open" | "name" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "color" | "content" | "display" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "textAlign" | "translate" | "verticalAlign" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "size" | "manifest" | "m" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "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" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "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" | "onClick" | "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" | "bg" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "variant" | "tx" | "sx" | "onHide" | "showOutsideDays" | "showWeekNumber" | "showClearButton" | "datepickerButtons" | "dateProps"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -8,5 +8,5 @@ export declare type InputProps = HTMLProps<HTMLInputElement> & {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
list?: any;
|
|
10
10
|
} & BoxProps;
|
|
11
|
-
declare const Input: React.ForwardRefExoticComponent<
|
|
11
|
+
declare const Input: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "start" | "open" | "name" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "color" | "content" | "display" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflow" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "textAlign" | "translate" | "verticalAlign" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "size" | "manifest" | "m" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "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" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "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" | "onClick" | "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" | "bg" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "variant" | "tx" | "sx" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export default Input;
|
|
@@ -8,5 +8,5 @@ declare type TypeProps = HTMLProps<HTMLElement> & {
|
|
|
8
8
|
index?: number;
|
|
9
9
|
selectionId?: string | number;
|
|
10
10
|
};
|
|
11
|
-
declare const ListGroupItem: React.ForwardRefExoticComponent<
|
|
11
|
+
declare const ListGroupItem: React.ForwardRefExoticComponent<Pick<TypeProps, "index" | "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "active" | "start" | "open" | "name" | "color" | "content" | "translate" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "size" | "manifest" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "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" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "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" | "onClick" | "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" | "factory" | "noZebra" | "selectionId"> & React.RefAttributes<unknown>>;
|
|
12
12
|
export default ListGroupItem;
|
|
@@ -16,7 +16,9 @@ export interface OverlayTriggerProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
16
16
|
target?: (overlayNode: HTMLElement) => HTMLElement;
|
|
17
17
|
hideEvent?: 'mouseleave' | 'blur';
|
|
18
18
|
hideDelay?: number;
|
|
19
|
-
render: (
|
|
19
|
+
render: (config: {
|
|
20
|
+
targetWidth: number;
|
|
21
|
+
}) => ReactNode;
|
|
20
22
|
targetOffset?: number;
|
|
21
23
|
defaultZIndex?: number;
|
|
22
24
|
anchor?: 'vertical' | 'horizontal';
|
|
@@ -151,6 +151,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
151
151
|
if (!target) {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
+
const targetWidth = target.getBoundingClientRect().width;
|
|
154
155
|
if ((prevVisible && !visible) || visible) {
|
|
155
156
|
const overlayContent = (React.createElement(Overlay_1.default, Object.assign({}, domProps, { ref: (node) => {
|
|
156
157
|
if (overlayRef.current && overlayRef.current != node) {
|
|
@@ -167,7 +168,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
167
168
|
clearAllOverlays();
|
|
168
169
|
hideOverlay('overlay-trigger');
|
|
169
170
|
}
|
|
170
|
-
} }), props.render()));
|
|
171
|
+
} }), props.render({ targetWidth: targetWidth })));
|
|
171
172
|
let preparedConstrinTo;
|
|
172
173
|
if (constrainTo) {
|
|
173
174
|
preparedConstrinTo = (0, exports.getConstrainElement)(targetRef.current, constrainTo);
|
|
@@ -1508,6 +1508,14 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1508
1508
|
defVal: string;
|
|
1509
1509
|
gridInfo?: undefined;
|
|
1510
1510
|
noCode?: undefined;
|
|
1511
|
+
} | {
|
|
1512
|
+
name: string;
|
|
1513
|
+
kind: string;
|
|
1514
|
+
desc: string;
|
|
1515
|
+
isOpt: boolean;
|
|
1516
|
+
gridInfo?: undefined;
|
|
1517
|
+
noCode?: undefined;
|
|
1518
|
+
defVal?: undefined;
|
|
1511
1519
|
})[];
|
|
1512
1520
|
};
|
|
1513
1521
|
ColumnSort: {
|
|
@@ -2927,6 +2935,18 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2927
2935
|
ref?: undefined;
|
|
2928
2936
|
})[];
|
|
2929
2937
|
};
|
|
2938
|
+
Glue42WebPluginOptions: {
|
|
2939
|
+
name: string;
|
|
2940
|
+
kind: string;
|
|
2941
|
+
desc: string;
|
|
2942
|
+
props: {
|
|
2943
|
+
name: string;
|
|
2944
|
+
kind: string;
|
|
2945
|
+
desc: string;
|
|
2946
|
+
isOpt: boolean;
|
|
2947
|
+
defVal: string;
|
|
2948
|
+
}[];
|
|
2949
|
+
};
|
|
2930
2950
|
GradientStyle: {
|
|
2931
2951
|
name: string;
|
|
2932
2952
|
kind: string;
|