@adaptabletools/adaptable 13.0.0-canary.16 → 13.0.0-canary.18
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 +99 -0
- package/base.css.map +1 -1
- package/bundle.cjs.js +144 -144
- package/index.css +115 -0
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/FormatColumnApi.d.ts +37 -29
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +21 -11
- package/src/Api/Implementation/FormatColumnApiImpl.js +42 -63
- package/src/Api/StyledColumnApi.d.ts +27 -13
- package/src/PredefinedConfig/StyledColumnState.d.ts +10 -4
- package/src/Strategy/ConditionalStyleModule.d.ts +0 -2
- package/src/Strategy/ConditionalStyleModule.js +1 -27
- package/src/Strategy/FormatColumnModule.js +2 -12
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +9 -9
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
- package/src/View/Components/AdaptableObjectRow/index.js +1 -6
- package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonInfo.js +3 -5
- package/src/View/Components/EntityRulesEditor/index.js +8 -17
- package/src/View/Components/FilterForm/FilterForm.js +11 -16
- package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/PanelWithButton.js +1 -5
- package/src/View/Components/Panels/PanelWithImage.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
- package/src/View/Components/ScopeComponent.js +4 -4
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/StyleComponent.js +12 -17
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +1 -11
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
- package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +26 -26
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
- package/src/View/StateManagement/StateManagementPopup.js +4 -4
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
- package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +2 -0
- package/src/agGrid/ActionColumnRenderer.js +94 -62
- package/src/agGrid/Adaptable.d.ts +0 -1
- package/src/agGrid/Adaptable.js +43 -67
- package/src/agGrid/PercentBarRenderer.js +10 -0
- package/src/agGrid/weightedAverage.js +19 -11
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
- package/src/components/ExpressionEditor/index.js +9 -17
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/StylePreview.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +7 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -31,6 +31,7 @@ function ExpressionEditor(props) {
|
|
|
31
31
|
const [data, setData] = (0, react_1.useState)(props.initialData);
|
|
32
32
|
const [showColumnIds, setShowColumnIds] = (0, react_1.useState)(false);
|
|
33
33
|
const [showNamedQueries, setShowNamedQueries] = (0, react_1.useState)(false);
|
|
34
|
+
const baseClassName = `ab-ExpressionEditor`;
|
|
34
35
|
const [selectedFunction, setSelectedFunction] = (0, react_1.useState)(null);
|
|
35
36
|
const [expressionText, setExpressionText] = (0, react_1.useState)('');
|
|
36
37
|
const { namedQuery, setNamedQuery } = (0, NamedQueryContext_1.useNamedQueryContext)();
|
|
@@ -102,7 +103,7 @@ function ExpressionEditor(props) {
|
|
|
102
103
|
};
|
|
103
104
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
104
105
|
const dataTableEditor = (React.createElement(React.Fragment, null,
|
|
105
|
-
React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
|
|
106
|
+
React.createElement(rebass_1.Flex, { className: `${baseClassName}__columns-list`, flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
|
|
106
107
|
React.createElement(CheckBox_1.CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
|
|
107
108
|
float: 'right',
|
|
108
109
|
margin: 0,
|
|
@@ -157,28 +158,24 @@ function ExpressionEditor(props) {
|
|
|
157
158
|
setSelectedFunction,
|
|
158
159
|
textAreaRef,
|
|
159
160
|
} },
|
|
160
|
-
React.createElement(
|
|
161
|
+
React.createElement(rebass_1.Flex, { className: baseClassName, flex: 1, "data-name": "expression-editor-wrapper", pl: 2, style: props.style },
|
|
161
162
|
React.createElement(rebass_1.Flex, { flex: 1, style: { minHeight: 0 }, flexDirection: "column", onFocus: (event) => {
|
|
162
163
|
if (event.target.tagName === 'TEXTAREA') {
|
|
163
164
|
textAreaRef.current = event.target;
|
|
164
165
|
}
|
|
165
166
|
} },
|
|
166
|
-
React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "row", "data-name": "expression-editor",
|
|
167
|
+
React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "row", "data-name": "expression-editor", fontSize: 2, style: { minHeight: 0 } },
|
|
167
168
|
React.createElement(rebass_1.Flex, { flex: 1, paddingRight: 2, style: { overflow: 'auto' }, "data-name": "expression-builder", flexDirection: "column" },
|
|
168
169
|
editorInput,
|
|
169
170
|
StringExtensions_1.default.IsNotNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && (React.createElement(ExpressionFunctionDocumentation_1.ExpressionFunctionDocumentation, { expressionFunction: selectedFunction })),
|
|
170
171
|
/* displayed for advanced queries (observable&Aggregation) to give the users a starting point */
|
|
171
172
|
StringExtensions_1.default.IsNullOrEmpty(expressionText === null || expressionText === void 0 ? void 0 : expressionText.trim()) && renderQueryHints(type),
|
|
172
|
-
showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation", mt: 2, mb: 2,
|
|
173
|
-
React.createElement(ButtonInfo_1.ButtonInfo, { mr: 2,
|
|
174
|
-
color: 'var(--ab-color-text-on-add)',
|
|
175
|
-
fill: 'var(--ab-color-text-on-add)',
|
|
176
|
-
background: 'var(--ab-color-action-add)',
|
|
177
|
-
}, onClick: () => window.open(queryDocumentationLink, '_blank') }),
|
|
173
|
+
showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation", mt: 2, mb: 2, fontSize: 3 },
|
|
174
|
+
React.createElement(ButtonInfo_1.ButtonInfo, { mr: 2, onClick: () => window.open(queryDocumentationLink, '_blank') }),
|
|
178
175
|
"See ",
|
|
179
176
|
StringExtensions_1.default.CapitaliseFirstLetter(type),
|
|
180
177
|
" Query documentation for more details and examples")),
|
|
181
|
-
React.createElement(
|
|
178
|
+
React.createElement(rebass_1.Box, { flex: 1 }),
|
|
182
179
|
allowSaveNamedQuery &&
|
|
183
180
|
props.api.internalApi
|
|
184
181
|
.getModuleService()
|
|
@@ -202,13 +199,8 @@ function ExpressionEditor(props) {
|
|
|
202
199
|
BooleanExpression: expressionText,
|
|
203
200
|
});
|
|
204
201
|
} })) : null))),
|
|
205
|
-
React.createElement(rebass_1.Box, { "data-name": "expression-column-picker", pb: 2, paddingLeft: 2,
|
|
206
|
-
|
|
207
|
-
minWidth: 220,
|
|
208
|
-
height: '100%',
|
|
209
|
-
paddingRight: 'var(--ab-space-2)',
|
|
210
|
-
} },
|
|
211
|
-
ArrayExtensions_1.default.IsNotNullOrEmpty(props.namedQueries) && (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "start", style: { padding: 3, marginTop: 5 }, backgroundColor: "primarylight" },
|
|
202
|
+
React.createElement(rebass_1.Box, { className: `${baseClassName}__column-picker`, "data-name": "expression-column-picker", pb: 2, paddingLeft: 2, pr: 2 },
|
|
203
|
+
ArrayExtensions_1.default.IsNotNullOrEmpty(props.namedQueries) && (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "start", p: 1, mt: 2, backgroundColor: "primarylight" },
|
|
212
204
|
React.createElement(Radio_1.default, { checked: !showNamedQueries, onChange: (checked) => setShowNamedQueries(!checked), style: { marginRight: 10 } }, "Columns"),
|
|
213
205
|
React.createElement(Radio_1.default, { checked: showNamedQueries, onChange: (checked) => setShowNamedQueries(checked), style: { marginLeft: 10, whiteSpace: 'nowrap' } }, "Named Queries"))),
|
|
214
206
|
showNamedQueries ? React.createElement("div", null, namedQueries) : React.createElement("div", null, dataTableEditor)))))));
|
|
@@ -73,7 +73,7 @@ const FormRow = (props) => {
|
|
|
73
73
|
}
|
|
74
74
|
if (props.as != null || column.component != null) {
|
|
75
75
|
const Cmp = column.component;
|
|
76
|
-
value = (React.createElement(Cmp, { style: Object.assign(Object.assign({}, column.style), { gridColumn: columnIndex + 1, gridRow: rowIndex + 1 }), className: column.className }, value));
|
|
76
|
+
value = (React.createElement(Cmp, { "data-name": props.dataName, style: Object.assign(Object.assign({}, column.style), { gridColumn: columnIndex + 1, gridRow: rowIndex + 1 }), className: column.className }, value));
|
|
77
77
|
}
|
|
78
78
|
return typeof value === 'string' ? value : React.cloneElement(value, { key: columnName });
|
|
79
79
|
});
|
|
@@ -5,8 +5,9 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
8
|
+
const join_1 = tslib_1.__importDefault(require("./utils/join"));
|
|
8
9
|
const StylePreview = (props) => {
|
|
9
10
|
var _a, _b, _c;
|
|
10
|
-
return (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: (_a = props.padding) !== null && _a !== void 0 ? _a : 2, mt: (_b = props.mt) !== null && _b !== void 0 ? _b : 2, style: Object.assign(Object.assign({}, (0, StyleHelper_1.toStyle)(props.styleObject)), props.style) }), (_c = props.children) !== null && _c !== void 0 ? _c : 'Preview result'));
|
|
11
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, props, { className: (0, join_1.default)('ab-StylePreview', props.className), padding: (_a = props.padding) !== null && _a !== void 0 ? _a : 2, mt: (_b = props.mt) !== null && _b !== void 0 ? _b : 2, style: Object.assign(Object.assign({}, (0, StyleHelper_1.toStyle)(props.styleObject)), props.style) }), (_c = props.children) !== null && _c !== void 0 ? _c : 'Preview result'));
|
|
11
12
|
};
|
|
12
13
|
exports.StylePreview = StylePreview;
|
|
@@ -4728,6 +4728,13 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
4728
4728
|
uiLabel: string;
|
|
4729
4729
|
isOptional: boolean;
|
|
4730
4730
|
reference?: undefined;
|
|
4731
|
+
} | {
|
|
4732
|
+
name: string;
|
|
4733
|
+
kind: string;
|
|
4734
|
+
description: string;
|
|
4735
|
+
uiLabel: string;
|
|
4736
|
+
isOptional?: undefined;
|
|
4737
|
+
reference?: undefined;
|
|
4731
4738
|
} | {
|
|
4732
4739
|
name: string;
|
|
4733
4740
|
kind: string;
|