@adaptabletools/adaptable 12.1.8-canary.1 → 12.2.0-canary.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/base.css +116 -22
- package/bundle.cjs.js +108 -108
- package/index.css +132 -23
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +44 -10
- package/src/AdaptableOptions/LayoutOptions.d.ts +10 -1
- package/src/AdaptableOptions/StateOptions.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +1 -2
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -1
- package/src/Api/Implementation/InternalApiImpl.js +34 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
- package/src/Api/InternalApi.d.ts +6 -1
- package/src/Api/QueryLanguageApi.d.ts +5 -0
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +0 -13
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +3 -4
- package/src/Strategy/Utilities/getExpressionViewItems.js +3 -3
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +14 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -1
- package/src/Utilities/Services/QueryLanguageService.js +45 -19
- package/src/Utilities/Services/ReportService.js +1 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +3 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +14 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +7 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +280 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.d.ts +1 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.js +5 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +2 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -3
- package/src/View/AdaptableWizardView/Wizard.js +2 -2
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -8
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +4 -3
- package/src/View/Components/AdaptableObjectCollection/index.d.ts +3 -4
- package/src/View/Components/AdaptableObjectCollection/index.js +7 -8
- package/src/View/Components/AdaptableObjectRow/index.js +1 -4
- package/src/View/Components/EntityRulesEditor/index.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +9 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
- package/src/View/Components/ValueSelector/index.js +8 -19
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +11 -10
- package/src/View/Export/ExportViewPanel.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +4 -3
- package/src/View/Filter/FilterViewPanel.js +3 -2
- package/src/View/GridInfo/AdaptableObjectsSummary.js +5 -3
- package/src/View/GridInfo/AdaptableOptionsComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +6 -7
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -4
- package/src/View/StateManagement/StateManagementPopup.js +18 -19
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +56 -13
- package/src/components/DragAndDropContext/ModuleManager.js +3 -4
- package/src/components/DragAndDropContext/TabList.js +9 -30
- package/src/components/DragAndDropContext/UnusedPanel.js +1 -7
- package/src/components/DropdownButton/index.js +2 -2
- package/src/components/EmptyContent/index.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -0
- package/src/components/ExpressionEditor/index.js +24 -14
- package/src/metamodel/adaptable.metamodel.d.ts +31 -4
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +14 -10
- package/src/types.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -83,7 +83,7 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
83
83
|
const positionerRef = react_1.useRef(null);
|
|
84
84
|
const { expanded, toggle, setExpanded, positionInfo } = useExpanded_1.default(props, positionerRef);
|
|
85
85
|
const { maxHeight: maxListHeight, maxWidth: maxListWidth } = positionInfo;
|
|
86
|
-
listStyle = Object.assign({ minWidth: typeof maxListWidth === 'number' ? Math.min(listMinWidth, maxListWidth) : listMinWidth, maxHeight: maxListHeight, maxWidth: maxListWidth
|
|
86
|
+
listStyle = Object.assign({ minWidth: typeof maxListWidth === 'number' ? Math.min(listMinWidth, maxListWidth) : listMinWidth, maxHeight: maxListHeight, maxWidth: maxListWidth }, listStyle);
|
|
87
87
|
let icon = expanded
|
|
88
88
|
? react_1.cloneElement(exports.DROPDOWN_ICON, {
|
|
89
89
|
style: Object.assign(Object.assign({}, exports.DROPDOWN_ICON.props.style), { transform: 'rotate(180deg) translate3d(0px, -2px, 0px)' }),
|
|
@@ -117,7 +117,7 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
117
117
|
else {
|
|
118
118
|
ref.current = btn;
|
|
119
119
|
}
|
|
120
|
-
}, style:
|
|
120
|
+
}, style: domProps.style, className: className, onClick: (e) => {
|
|
121
121
|
if (domProps.onClick) {
|
|
122
122
|
domProps.onClick(e);
|
|
123
123
|
}
|
|
@@ -10,7 +10,7 @@ const EmptyContent = (_a) => {
|
|
|
10
10
|
if (typeof children === 'string') {
|
|
11
11
|
children = React.createElement("p", null, children);
|
|
12
12
|
}
|
|
13
|
-
return (React.createElement(rebass_1.Box, {
|
|
14
|
-
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column"
|
|
13
|
+
return (React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__wrapper` },
|
|
14
|
+
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column" }, flexProps, { className: join_1.default(baseClassName, className), style: style }), children)));
|
|
15
15
|
};
|
|
16
16
|
exports.default = EmptyContent;
|
|
@@ -126,20 +126,30 @@ function ExpressionEditor(props) {
|
|
|
126
126
|
React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start" }, showColumnIds ? `[${column.columnId}]` : column.friendlyName)) }, column.dataType === 'Number' ? (React.createElement(Input_1.default, { type: "number", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, Number(e.target.value))), width: "100%", disabled: column.readOnly })) : column.dataType === 'String' ? (React.createElement(Input_1.default, { type: "text", "data-name": "column-input", "data-value": column.columnId, value: getColValue(column), onChange: (e) => setData(updateColValue(data, column, e.target.value)), width: "100%", disabled: column.readOnly })) : column.dataType === 'Date' ? (React.createElement(AdaptableInput_1.default, { type: "date", "data-name": "column-input", "data-value": column.columnId, value: getColDateValue(column), onChange: (e) => {
|
|
127
127
|
setData(updateColValue(data, column, new Date(e.target.value)));
|
|
128
128
|
}, style: { width: '100%' }, disabled: column.readOnly })) : column.dataType === 'Boolean' ? (React.createElement(CheckBox_1.CheckBox, { "data-name": "column-input", "data-value": column.columnId, checked: getColValue(column), onChange: (checked) => setData(updateColValue(data, column, checked)), disabled: column.readOnly })) : null))))));
|
|
129
|
-
const namedQueries = (React.createElement(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
129
|
+
const namedQueries = (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start", style: { marginTop: 2 } },
|
|
130
|
+
React.createElement(CheckBox_1.CheckBox, { checked: showColumnIds, onChange: (checked) => setShowColumnIds(checked), style: {
|
|
131
|
+
float: 'right',
|
|
132
|
+
margin: 0,
|
|
133
|
+
paddingTop: 'var(--ab-space-1)',
|
|
134
|
+
paddingBottom: 'var(--ab-space-1)',
|
|
135
|
+
} }, 'Show Column IDs'),
|
|
136
|
+
props.namedQueries.map((namedQuery) => (React.createElement(rebass_1.Flex, { key: namedQuery.Uuid, flexDirection: "column", alignItems: "start", style: {
|
|
137
|
+
padding: 3,
|
|
138
|
+
marginTop: 'var(--ab-space-2)',
|
|
139
|
+
marginBottom: 'var(--ab-space-2)',
|
|
140
|
+
width: '100%',
|
|
141
|
+
}, backgroundColor: "primarylight" },
|
|
142
|
+
' ',
|
|
143
|
+
React.createElement(EditorButton_1.default, { width: "100%", height: "100%", style: {
|
|
144
|
+
background: 'var(--ab-color-primary)',
|
|
145
|
+
cursor: 'grab',
|
|
146
|
+
}, data: `QUERY("${namedQuery.Name}")`, "data-name": "column", icon: "drag" },
|
|
147
|
+
React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start" }, namedQuery.Name)),
|
|
148
|
+
React.createElement(rebass_1.Flex, { alignItems: "start", style: {
|
|
149
|
+
padding: 5,
|
|
150
|
+
} }, showColumnIds
|
|
151
|
+
? namedQuery.BooleanExpression
|
|
152
|
+
: props.api.queryLanguageApi.getAdaptableQueryExpressionWithColumnFriendlyNames(namedQuery)))))));
|
|
143
153
|
const showDocumentationLinks = props.api.internalApi.isDocumentationLinksDisplayed();
|
|
144
154
|
const queryDocumentationLink = queryDocumentationLinks[type];
|
|
145
155
|
return (React.createElement(EditorContext_1.ExpressionEditorContext.Provider, { value: {
|
|
@@ -689,6 +689,15 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
689
689
|
gridInfo?: undefined;
|
|
690
690
|
defaultValue?: undefined;
|
|
691
691
|
reference?: undefined;
|
|
692
|
+
} | {
|
|
693
|
+
name: string;
|
|
694
|
+
kind: string;
|
|
695
|
+
description: string;
|
|
696
|
+
uiLabel: string;
|
|
697
|
+
isOptional: boolean;
|
|
698
|
+
defaultValue: string;
|
|
699
|
+
gridInfo?: undefined;
|
|
700
|
+
reference?: undefined;
|
|
692
701
|
} | {
|
|
693
702
|
name: string;
|
|
694
703
|
kind: string;
|
|
@@ -2617,22 +2626,22 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2617
2626
|
kind: string;
|
|
2618
2627
|
description: string;
|
|
2619
2628
|
uiLabel: string;
|
|
2620
|
-
isOptional
|
|
2629
|
+
isOptional?: undefined;
|
|
2621
2630
|
reference?: undefined;
|
|
2622
2631
|
} | {
|
|
2623
2632
|
name: string;
|
|
2624
2633
|
kind: string;
|
|
2625
2634
|
description: string;
|
|
2626
2635
|
uiLabel: string;
|
|
2627
|
-
|
|
2628
|
-
|
|
2636
|
+
isOptional: boolean;
|
|
2637
|
+
reference?: undefined;
|
|
2629
2638
|
} | {
|
|
2630
2639
|
name: string;
|
|
2631
2640
|
kind: string;
|
|
2632
2641
|
description: string;
|
|
2633
2642
|
uiLabel: string;
|
|
2643
|
+
reference: string;
|
|
2634
2644
|
isOptional?: undefined;
|
|
2635
|
-
reference?: undefined;
|
|
2636
2645
|
} | {
|
|
2637
2646
|
name: string;
|
|
2638
2647
|
kind: string;
|
|
@@ -2677,6 +2686,15 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2677
2686
|
kind: string;
|
|
2678
2687
|
description: string;
|
|
2679
2688
|
properties: ({
|
|
2689
|
+
name: string;
|
|
2690
|
+
kind: string;
|
|
2691
|
+
description: string;
|
|
2692
|
+
uiLabel: string;
|
|
2693
|
+
isOptional: boolean;
|
|
2694
|
+
gridInfo?: undefined;
|
|
2695
|
+
defaultValue?: undefined;
|
|
2696
|
+
reference?: undefined;
|
|
2697
|
+
} | {
|
|
2680
2698
|
name: string;
|
|
2681
2699
|
kind: string;
|
|
2682
2700
|
description: string;
|
|
@@ -3591,6 +3609,15 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3591
3609
|
gridInfo: string;
|
|
3592
3610
|
defaultValue: string;
|
|
3593
3611
|
reference?: undefined;
|
|
3612
|
+
} | {
|
|
3613
|
+
name: string;
|
|
3614
|
+
kind: string;
|
|
3615
|
+
description: string;
|
|
3616
|
+
uiLabel: string;
|
|
3617
|
+
isOptional: boolean;
|
|
3618
|
+
gridInfo?: undefined;
|
|
3619
|
+
defaultValue?: undefined;
|
|
3620
|
+
reference?: undefined;
|
|
3594
3621
|
} | {
|
|
3595
3622
|
name: string;
|
|
3596
3623
|
kind: string;
|