@adaptabletools/adaptable 15.3.5 → 15.3.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "15.3.5",
3
+ "version": "15.3.6",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1686515793471;
1
+ declare const _default: 1686558881853;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1686515793471;
3
+ exports.default = 1686558881853;
@@ -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: AdaptableStyle;
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,
@@ -43,7 +43,7 @@ exports.editorButtonsSearch = [
43
43
  {
44
44
  functionName: 'EQ',
45
45
  data: '=',
46
- icon: 'equal',
46
+ icon: 'equals',
47
47
  },
48
48
  {
49
49
  functionName: 'NEQ',
@@ -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: {