@adaptabletools/adaptable 15.3.5 → 15.4.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 +17 -17
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +4 -0
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -5
- package/src/Utilities/Helpers/FormatHelper.js +3 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/components/ExpressionEditor/editorButtonsSearch.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +0 -6
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.4.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1686584389051;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -108,4 +108,8 @@ export interface StringFormatterOptions extends BaseFormatterOptions {
|
|
|
108
108
|
* Replaces cell value; useful when using Condition (e.g. replace null with 'N/A')
|
|
109
109
|
*/
|
|
110
110
|
Content?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Show nothing in cell (but underlying value remains)
|
|
113
|
+
*/
|
|
114
|
+
Empty?: boolean;
|
|
111
115
|
}
|
|
@@ -173,11 +173,7 @@ export interface BadgeStyleDefinition {
|
|
|
173
173
|
/**
|
|
174
174
|
* Style for the Badge
|
|
175
175
|
*/
|
|
176
|
-
Style
|
|
177
|
-
/**
|
|
178
|
-
* Hide the Cell's Text (i.e. only display the Icon )
|
|
179
|
-
*/
|
|
180
|
-
HideText?: boolean;
|
|
176
|
+
Style?: AdaptableStyle;
|
|
181
177
|
/**
|
|
182
178
|
* Icon to display in Badge
|
|
183
179
|
*/
|
|
@@ -112,6 +112,9 @@ function StringFormatter(input, options = {}) {
|
|
|
112
112
|
if (preparedInput == null || preparedInput == undefined) {
|
|
113
113
|
return undefined;
|
|
114
114
|
}
|
|
115
|
+
if (options.Empty) {
|
|
116
|
+
return '';
|
|
117
|
+
}
|
|
115
118
|
let s = preparedInput;
|
|
116
119
|
if (options.Prefix !== undefined) {
|
|
117
120
|
s = options.Prefix + s;
|
|
@@ -360,7 +360,9 @@ const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormat
|
|
|
360
360
|
React.createElement(FormLayout_1.FormRow, { label: "Suffix" },
|
|
361
361
|
React.createElement(Input_1.default, { "data-name": "suffix", value: (_b = data.DisplayFormat.Options.Suffix) !== null && _b !== void 0 ? _b : '', onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) })),
|
|
362
362
|
React.createElement(FormLayout_1.FormRow, { label: "Content" },
|
|
363
|
-
React.createElement(Input_1.default, { "data-name": "content", value: (_c = data.DisplayFormat.Options.Content) !== null && _c !== void 0 ? _c : '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) }))
|
|
363
|
+
React.createElement(Input_1.default, { "data-name": "content", value: (_c = data.DisplayFormat.Options.Content) !== null && _c !== void 0 ? _c : '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) })),
|
|
364
|
+
React.createElement(FormLayout_1.FormRow, { label: "Empty" },
|
|
365
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "empty-checkbox", checked: data.DisplayFormat.Options.Empty, onChange: (checked) => setFormatOption('Empty', checked) })))))),
|
|
364
366
|
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, { marginTop: 2, keyboardNavigation: false },
|
|
365
367
|
React.createElement(Tabs_1.Tabs.Tab, null, "Custom Formats"),
|
|
366
368
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
@@ -1183,12 +1183,6 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1183
1183
|
desc: string;
|
|
1184
1184
|
isOpt: boolean;
|
|
1185
1185
|
ref: string;
|
|
1186
|
-
} | {
|
|
1187
|
-
name: string;
|
|
1188
|
-
kind: string;
|
|
1189
|
-
desc: string;
|
|
1190
|
-
ref: string;
|
|
1191
|
-
isOpt?: undefined;
|
|
1192
1186
|
})[];
|
|
1193
1187
|
};
|
|
1194
1188
|
BadgeStylePredicate: {
|