@adaptabletools/adaptable-cjs 18.0.0-canary.32 → 18.0.0-canary.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +36 -16
- package/src/AdaptableOptions/MenuOptions.js +5 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
- package/src/Api/GridApi.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/NoteApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +14 -6
- package/src/PredefinedConfig/Common/Menu.js +3 -0
- package/src/PredefinedConfig/Common/RowScope.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +5 -5
- package/src/Strategy/AdaptableModuleBase.d.ts +8 -8
- package/src/Strategy/AlertModule.d.ts +3 -2
- package/src/Strategy/BulkUpdateModule.d.ts +3 -2
- package/src/Strategy/CalculatedColumnModule.d.ts +3 -4
- package/src/Strategy/CalculatedColumnModule.js +16 -12
- package/src/Strategy/CellSummaryModule.d.ts +3 -4
- package/src/Strategy/CellSummaryModule.js +17 -14
- package/src/Strategy/ColumnFilterModule.d.ts +3 -3
- package/src/Strategy/ColumnInfoModule.d.ts +3 -3
- package/src/Strategy/CommentModule.d.ts +3 -2
- package/src/Strategy/CustomSortModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.d.ts +3 -3
- package/src/Strategy/DataImportModule.d.ts +2 -2
- package/src/Strategy/ExportModule.d.ts +1 -1
- package/src/Strategy/ExportModule.js +19 -2
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +4 -3
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +0 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
- package/src/Strategy/GridInfoModule.d.ts +3 -3
- package/src/Strategy/Interface/IModule.d.ts +3 -3
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/NoteModule.d.ts +2 -2
- package/src/Strategy/NoteModule.js +3 -3
- package/src/Strategy/PlusMinusModule.d.ts +1 -2
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.d.ts +3 -2
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +1 -9
- package/src/Strategy/SystemStatusModule.d.ts +3 -3
- package/src/Strategy/SystemStatusModule.js +3 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Utilities/MenuItem.d.ts +9 -9
- package/src/Utilities/Services/CellPopupService.js +4 -4
- package/src/Utilities/Services/RowSummaryService.d.ts +7 -3
- package/src/Utilities/Services/RowSummaryService.js +29 -15
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +2 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +5 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +5 -5
- package/src/agGrid/ActionColumnRenderer.js +2 -2
- package/src/agGrid/AgGridColumnAdapter.js +2 -2
- package/src/agGrid/AgGridMenuAdapter.d.ts +1 -0
- package/src/agGrid/AgGridMenuAdapter.js +75 -64
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/components/Accordion.d.ts +7 -0
- package/src/components/Accordion.js +41 -0
- package/src/components/icons/collapse-all.d.ts +3 -0
- package/src/components/icons/collapse-all.js +7 -0
- package/src/components/icons/csv.d.ts +3 -0
- package/src/components/icons/csv.js +7 -0
- package/src/components/icons/data-object.d.ts +3 -0
- package/src/components/icons/data-object.js +7 -0
- package/src/components/icons/excel.d.ts +3 -0
- package/src/components/icons/excel.js +8 -0
- package/src/components/icons/expand-all.d.ts +3 -0
- package/src/components/icons/expand-all.js +7 -0
- package/src/components/icons/index.js +10 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +10 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +1 -1
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -21,7 +21,7 @@ const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
|
|
|
21
21
|
const isSummaryRow = adapatableApi.gridApi.isSummaryNode(params.node);
|
|
22
22
|
let shouldRender = true;
|
|
23
23
|
if (isGroupedRow) {
|
|
24
|
-
if ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.
|
|
24
|
+
if ((_a = badgeStyle.RowScope) === null || _a === void 0 ? void 0 : _a.ExcludeGroupRows) {
|
|
25
25
|
shouldRender = false;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -17,7 +17,7 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
17
17
|
if (Helper_1.default.objectNotExists(value)) {
|
|
18
18
|
value = 0;
|
|
19
19
|
}
|
|
20
|
-
//
|
|
20
|
+
// We no longer support showing Percent Bar in Group Rows as it only made sense for Min / Max
|
|
21
21
|
if (api.gridApi.isGroupRowNode(params.node)) {
|
|
22
22
|
if (params.value) {
|
|
23
23
|
this.eGui = document.createElement('div');
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Accordion = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("./SimpleButton"));
|
|
7
|
+
const Panel_1 = tslib_1.__importDefault(require("./Panel"));
|
|
8
|
+
const Accordion = ({ title, children }) => {
|
|
9
|
+
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
10
|
+
const [height, setHeight] = (0, react_1.useState)('0px');
|
|
11
|
+
const content = (0, react_1.useRef)(null);
|
|
12
|
+
const observer = (0, react_1.useRef)(null);
|
|
13
|
+
(0, react_1.useEffect)(() => {
|
|
14
|
+
setHeight(isOpen && content.current ? `${content.current.scrollHeight}px` : '0px');
|
|
15
|
+
}, [isOpen, content]);
|
|
16
|
+
(0, react_1.useEffect)(() => {
|
|
17
|
+
if (content.current) {
|
|
18
|
+
observer.current = new MutationObserver(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
setHeight(`${(_a = content.current) === null || _a === void 0 ? void 0 : _a.scrollHeight}px`);
|
|
21
|
+
});
|
|
22
|
+
observer.current.observe(content.current, { childList: true, subtree: true });
|
|
23
|
+
}
|
|
24
|
+
return () => {
|
|
25
|
+
var _a;
|
|
26
|
+
(_a = observer.current) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
27
|
+
};
|
|
28
|
+
}, []);
|
|
29
|
+
const toggleAccordion = () => {
|
|
30
|
+
setIsOpen(!isOpen);
|
|
31
|
+
};
|
|
32
|
+
return (react_1.default.createElement(Panel_1.default, { className: "ab-Accordion" },
|
|
33
|
+
react_1.default.createElement(SimpleButton_1.default, { iconPosition: 'end', icon: isOpen ? 'expand-all' : 'collapse-all', variant: "text", onClick: toggleAccordion, style: { width: '100%', textAlign: 'left' } }, title),
|
|
34
|
+
react_1.default.createElement("div", { ref: content, style: {
|
|
35
|
+
maxHeight: `${height}`,
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
transition: 'max-height 0.6s ease',
|
|
38
|
+
} }, children)));
|
|
39
|
+
};
|
|
40
|
+
exports.Accordion = Accordion;
|
|
41
|
+
exports.default = exports.Accordion;
|
|
@@ -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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "m296-80-56-56 240-240 240 240-56 56-184-184L296-80Zm184-504L240-824l56-56 184 184 184-184 56 56-240 240Z" })));
|
|
@@ -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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M230-360h120v-60H250v-120h100v-60H230q-17 0-28.5 11.5T190-560v160q0 17 11.5 28.5T230-360Zm156 0h120q17 0 28.5-11.5T546-400v-60q0-17-11.5-31.5T506-506h-60v-34h100v-60H426q-17 0-28.5 11.5T386-560v60q0 17 11.5 30.5T426-456h60v36H386v60Zm264 0h60l70-240h-60l-40 138-40-138h-60l70 240ZM160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm0 0v-480 480Z" })));
|
|
@@ -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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z" })));
|
|
@@ -0,0 +1,8 @@
|
|
|
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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M200-200h80v-80h-80v80Zm160 0h80v-80h-80v80Zm160 0h80v-80h-80v80Zm160 0h80v-80h-80v80ZM200-680h80v-80h-80v80Zm0 160h80v-80h-80v80Zm0 160h80v-80h-80v80Zm160-320h80v-80h-80v80Zm0 160h80v-80h-80v80Zm0 160h80v-80h-80v80Zm160-320h80v-80h-80v80Zm0 160h80v-80h-80v80Zm0 160h80v-80h-80v80Zm160-320h80v-80h-80v80Zm0 160h80v-80h-80v80Zm0 160h80v-80h-80v80ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z" }),
|
|
8
|
+
' '));
|
|
@@ -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, { viewBox: "0 -960 960 960" }),
|
|
7
|
+
React.createElement("path", { d: "M480-80 240-320l57-57 183 183 183-183 57 57L480-80ZM298-584l-58-56 240-240 240 240-58 56-182-182-182 182Z" })));
|
|
@@ -39,6 +39,8 @@ const sort_asc_1 = tslib_1.__importDefault(require("./sort-asc"));
|
|
|
39
39
|
const sort_desc_1 = tslib_1.__importDefault(require("./sort-desc"));
|
|
40
40
|
const calendar_1 = tslib_1.__importDefault(require("./calendar"));
|
|
41
41
|
const delete_1 = tslib_1.__importDefault(require("./delete"));
|
|
42
|
+
const csv_1 = tslib_1.__importDefault(require("./csv"));
|
|
43
|
+
const excel_1 = tslib_1.__importDefault(require("./excel"));
|
|
42
44
|
const check_circle_1 = tslib_1.__importDefault(require("./check-circle"));
|
|
43
45
|
const refresh_1 = tslib_1.__importDefault(require("./refresh"));
|
|
44
46
|
const save_1 = tslib_1.__importDefault(require("./save"));
|
|
@@ -55,6 +57,7 @@ const cell_validation_1 = tslib_1.__importDefault(require("./cell-validation"));
|
|
|
55
57
|
const column_filter_1 = tslib_1.__importDefault(require("./column-filter"));
|
|
56
58
|
const system_status_1 = tslib_1.__importDefault(require("./system-status"));
|
|
57
59
|
const data_set_1 = tslib_1.__importDefault(require("./data-set"));
|
|
60
|
+
const data_object_1 = tslib_1.__importDefault(require("./data-object"));
|
|
58
61
|
const flashing_cell_1 = tslib_1.__importDefault(require("./flashing-cell"));
|
|
59
62
|
const edit_1 = tslib_1.__importDefault(require("./edit"));
|
|
60
63
|
const equation_1 = tslib_1.__importDefault(require("./equation"));
|
|
@@ -165,6 +168,8 @@ const select_all_1 = tslib_1.__importDefault(require("./select-all"));
|
|
|
165
168
|
const select_off_1 = tslib_1.__importDefault(require("./select-off"));
|
|
166
169
|
const select_fwd_1 = tslib_1.__importDefault(require("./select-fwd"));
|
|
167
170
|
const copy_1 = tslib_1.__importDefault(require("./copy"));
|
|
171
|
+
const expand_all_1 = tslib_1.__importDefault(require("./expand-all"));
|
|
172
|
+
const collapse_all_1 = tslib_1.__importDefault(require("./collapse-all"));
|
|
168
173
|
const Icon_1 = require("../Icon");
|
|
169
174
|
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
170
175
|
exports.allIcons = {
|
|
@@ -186,6 +191,8 @@ exports.allIcons = {
|
|
|
186
191
|
news: news_1.default,
|
|
187
192
|
brush: brush_1.default,
|
|
188
193
|
'data-set': data_set_1.default,
|
|
194
|
+
'excel': excel_1.default,
|
|
195
|
+
json: data_object_1.default,
|
|
189
196
|
export: export_1.default,
|
|
190
197
|
broadcast: campaign_1.default,
|
|
191
198
|
theme: theme_1.default,
|
|
@@ -205,6 +212,7 @@ exports.allIcons = {
|
|
|
205
212
|
'percent-tag': percent_bar_1.default,
|
|
206
213
|
'spark-line': spark_line_1.default,
|
|
207
214
|
resume: resume_1.default,
|
|
215
|
+
csv: csv_1.default,
|
|
208
216
|
'pie-chart': pie_chart_1.default,
|
|
209
217
|
'add-circle': plus_minus_1.default,
|
|
210
218
|
reminder: reminder_1.default,
|
|
@@ -330,6 +338,8 @@ exports.allIcons = {
|
|
|
330
338
|
note: note_1.default,
|
|
331
339
|
comments: comments_1.default,
|
|
332
340
|
rows: rows_1.default,
|
|
341
|
+
'expand-all': expand_all_1.default,
|
|
342
|
+
'collapse-all': collapse_all_1.default,
|
|
333
343
|
};
|
|
334
344
|
Object.keys(exports.allIcons).forEach((name) => {
|
|
335
345
|
const ReactCmp = exports.allIcons[name];
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "18.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1712926423927 || Date.now(),
|
|
6
|
+
VERSION: "18.0.0-canary.34" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -357,6 +357,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
357
357
|
desc: string;
|
|
358
358
|
}[];
|
|
359
359
|
};
|
|
360
|
+
AdaptableColumnMenuItem: {
|
|
361
|
+
name: string;
|
|
362
|
+
kind: string;
|
|
363
|
+
desc: string;
|
|
364
|
+
};
|
|
360
365
|
AdaptableColumnPredicate: {
|
|
361
366
|
name: string;
|
|
362
367
|
kind: string;
|
|
@@ -413,6 +418,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
413
418
|
ref: string;
|
|
414
419
|
}[];
|
|
415
420
|
};
|
|
421
|
+
AdaptableContextMenuItem: {
|
|
422
|
+
name: string;
|
|
423
|
+
kind: string;
|
|
424
|
+
desc: string;
|
|
425
|
+
};
|
|
416
426
|
AdaptableCoordinate: {
|
|
417
427
|
name: string;
|
|
418
428
|
kind: string;
|