@deephaven/jsapi-utils 0.43.0 → 0.44.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.
Files changed (41) hide show
  1. package/dist/ConnectionUtils.js +39 -0
  2. package/dist/ConnectionUtils.js.map +1 -0
  3. package/dist/DateUtils.js +246 -0
  4. package/dist/DateUtils.js.map +1 -0
  5. package/dist/Formatter.js +144 -0
  6. package/dist/Formatter.js.map +1 -0
  7. package/dist/FormatterUtils.js +36 -0
  8. package/dist/FormatterUtils.js.map +1 -0
  9. package/dist/MessageUtils.js +124 -0
  10. package/dist/MessageUtils.js.map +1 -0
  11. package/dist/NoConsolesError.js +14 -0
  12. package/dist/NoConsolesError.js.map +1 -0
  13. package/dist/SessionUtils.js +101 -0
  14. package/dist/SessionUtils.js.map +1 -0
  15. package/dist/Settings.js +2 -0
  16. package/dist/Settings.js.map +1 -0
  17. package/dist/TableUtils.js +1367 -0
  18. package/dist/TableUtils.js.map +1 -0
  19. package/dist/ViewportDataUtils.js +136 -0
  20. package/dist/ViewportDataUtils.js.map +1 -0
  21. package/dist/formatters/BooleanColumnFormatter.js +20 -0
  22. package/dist/formatters/BooleanColumnFormatter.js.map +1 -0
  23. package/dist/formatters/CharColumnFormatter.js +11 -0
  24. package/dist/formatters/CharColumnFormatter.js.map +1 -0
  25. package/dist/formatters/DateTimeColumnFormatter.js +106 -0
  26. package/dist/formatters/DateTimeColumnFormatter.js.map +1 -0
  27. package/dist/formatters/DecimalColumnFormatter.js +115 -0
  28. package/dist/formatters/DecimalColumnFormatter.js.map +1 -0
  29. package/dist/formatters/DefaultColumnFormatter.js +10 -0
  30. package/dist/formatters/DefaultColumnFormatter.js.map +1 -0
  31. package/dist/formatters/IntegerColumnFormatter.js +112 -0
  32. package/dist/formatters/IntegerColumnFormatter.js.map +1 -0
  33. package/dist/formatters/StringColumnFormatter.js +10 -0
  34. package/dist/formatters/StringColumnFormatter.js.map +1 -0
  35. package/dist/formatters/TableColumnFormatter.js +59 -0
  36. package/dist/formatters/TableColumnFormatter.js.map +1 -0
  37. package/dist/formatters/index.js +10 -0
  38. package/dist/formatters/index.js.map +1 -0
  39. package/dist/index.js +13 -0
  40. package/dist/index.js.map +1 -0
  41. package/package.json +7 -7
@@ -0,0 +1,115 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ /* eslint class-methods-use-this: "off" */
5
+
6
+ import Log from '@deephaven/log';
7
+ import TableColumnFormatter from "./TableColumnFormatter.js";
8
+ var log = Log.module('DecimalColumnFormatter');
9
+ export class DecimalColumnFormatter extends TableColumnFormatter {
10
+ /**
11
+ * Validates format object
12
+ * @param dh JSAPI instance
13
+ * @param format Format object
14
+ * @returns true for valid object
15
+ */
16
+ static isValid(dh, format) {
17
+ try {
18
+ dh.i18n.NumberFormat.format(format.formatString, 0);
19
+ return true;
20
+ } catch (e) {
21
+ return false;
22
+ }
23
+ }
24
+
25
+ /**
26
+ * Create a DecimalColumnFormat object with the parameters specified
27
+ * @param label Label for the format
28
+ * @param formatString Format string for the format
29
+ * @param multiplier Optional multiplier for the formatter
30
+ * @param type Type of format created
31
+ * @returns DecimalColumnFormat object
32
+ */
33
+ static makeFormat(label, formatString) {
34
+ var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : TableColumnFormatter.TYPE_CONTEXT_PRESET;
35
+ var multiplier = arguments.length > 3 ? arguments[3] : undefined;
36
+ return {
37
+ label,
38
+ type,
39
+ formatString,
40
+ multiplier
41
+ };
42
+ }
43
+
44
+ /**
45
+ * Convenient function to create a DecimalFormatObject with Preset type set
46
+ * @param label Label for this format object
47
+ * @param formatString Format string to use
48
+ * @param multiplier Multiplier to use
49
+ * @returns DecimalColumnFormat object
50
+ */
51
+ static makePresetFormat(label) {
52
+ var formatString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
53
+ var multiplier = arguments.length > 2 ? arguments[2] : undefined;
54
+ return DecimalColumnFormatter.makeFormat(label, formatString, TableColumnFormatter.TYPE_CONTEXT_PRESET, multiplier);
55
+ }
56
+
57
+ /**
58
+ * Convenient function to create a DecimalFormatObject with a default 'Custom Format' label and Custom type
59
+ * @param formatString Format string to use
60
+ * @param multiplier Multiplier to use
61
+ * @returns DecimalColumnFormat object
62
+ */
63
+ static makeCustomFormat() {
64
+ var formatString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
65
+ var multiplier = arguments.length > 1 ? arguments[1] : undefined;
66
+ return DecimalColumnFormatter.makeFormat('Custom Format', formatString, TableColumnFormatter.TYPE_CONTEXT_CUSTOM, multiplier);
67
+ }
68
+ /**
69
+ * Check if the given formats match
70
+ * @param formatA format object to check
71
+ * @param formatB format object to check
72
+ * @returns True if the formats match
73
+ */
74
+ static isSameFormat(formatA, formatB) {
75
+ return formatA === formatB || formatA != null && formatB != null && formatA.type === formatB.type && formatA.formatString === formatB.formatString && formatA.multiplier === formatB.multiplier;
76
+ }
77
+ constructor(dh) {
78
+ var {
79
+ defaultFormatString = DecimalColumnFormatter.DEFAULT_FORMAT_STRING
80
+ } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
81
+ super();
82
+ _defineProperty(this, "defaultFormatString", void 0);
83
+ _defineProperty(this, "dh", void 0);
84
+ this.dh = dh;
85
+ this.defaultFormatString = defaultFormatString;
86
+ }
87
+
88
+ /**
89
+ * Format a value with the provided format object
90
+ * @param valueParam Value to format
91
+ * @param format Format object
92
+ * @returns Formatted string
93
+ */
94
+ format(valueParam) {
95
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
96
+ var formatString = format.formatString != null && format.formatString !== '' ? format.formatString : this.defaultFormatString;
97
+ var value = format.multiplier != null && format.multiplier !== 0 ? valueParam * format.multiplier : valueParam;
98
+ try {
99
+ return this.dh.i18n.NumberFormat.format(formatString, value);
100
+ } catch (e) {
101
+ log.error('Invalid format arguments');
102
+ }
103
+ return '';
104
+ }
105
+ }
106
+ _defineProperty(DecimalColumnFormatter, "DEFAULT_FORMAT_STRING", '###,##0.0000');
107
+ _defineProperty(DecimalColumnFormatter, "FORMAT_PERCENT", DecimalColumnFormatter.makePresetFormat('Percent', '##0.00%'));
108
+ _defineProperty(DecimalColumnFormatter, "FORMAT_BASIS_POINTS", DecimalColumnFormatter.makePresetFormat('Basis Points', '###,##0 bp', 10000));
109
+ _defineProperty(DecimalColumnFormatter, "FORMAT_MILLIONS", DecimalColumnFormatter.makePresetFormat('Millions', '###,##0.000 mm', 0.000001));
110
+ _defineProperty(DecimalColumnFormatter, "FORMAT_SCIENTIFIC_NOTATION", DecimalColumnFormatter.makePresetFormat('Scientific Notation', '0.0000E0'));
111
+ _defineProperty(DecimalColumnFormatter, "FORMAT_ROUND", DecimalColumnFormatter.makePresetFormat('Round', '###,##0'));
112
+ _defineProperty(DecimalColumnFormatter, "FORMAT_ROUND_TWO_DECIMALS", DecimalColumnFormatter.makePresetFormat('0.00', '###,##0.00'));
113
+ _defineProperty(DecimalColumnFormatter, "FORMAT_ROUND_FOUR_DECIMALS", DecimalColumnFormatter.makePresetFormat('0.0000', '###,##0.0000'));
114
+ export default DecimalColumnFormatter;
115
+ //# sourceMappingURL=DecimalColumnFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecimalColumnFormatter.js","names":["Log","TableColumnFormatter","log","module","DecimalColumnFormatter","isValid","dh","format","i18n","NumberFormat","formatString","e","makeFormat","label","type","TYPE_CONTEXT_PRESET","multiplier","makePresetFormat","makeCustomFormat","TYPE_CONTEXT_CUSTOM","isSameFormat","formatA","formatB","constructor","defaultFormatString","DEFAULT_FORMAT_STRING","valueParam","value","error"],"sources":["../../src/formatters/DecimalColumnFormatter.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport Log from '@deephaven/log';\nimport TableColumnFormatter, {\n TableColumnFormat,\n} from './TableColumnFormatter';\n\nconst log = Log.module('DecimalColumnFormatter');\n\nexport type DecimalColumnFormat = TableColumnFormat & {\n multiplier?: number | null;\n};\n\nexport type DecimalColumnFormatterOptions = {\n // Default format string to use. Defaults to DecimalColumnFormatter.DEFAULT_FORMAT_STRING\n defaultFormatString?: string;\n};\n\nexport class DecimalColumnFormatter extends TableColumnFormatter<number> {\n /**\n * Validates format object\n * @param dh JSAPI instance\n * @param format Format object\n * @returns true for valid object\n */\n static isValid(\n dh: DhType,\n format: Pick<TableColumnFormat, 'formatString'>\n ): boolean {\n try {\n dh.i18n.NumberFormat.format(format.formatString, 0);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n /**\n * Create a DecimalColumnFormat object with the parameters specified\n * @param label Label for the format\n * @param formatString Format string for the format\n * @param multiplier Optional multiplier for the formatter\n * @param type Type of format created\n * @returns DecimalColumnFormat object\n */\n static makeFormat(\n label: string,\n formatString: string,\n type = TableColumnFormatter.TYPE_CONTEXT_PRESET,\n multiplier?: number\n ): DecimalColumnFormat {\n return {\n label,\n type,\n formatString,\n multiplier,\n };\n }\n\n /**\n * Convenient function to create a DecimalFormatObject with Preset type set\n * @param label Label for this format object\n * @param formatString Format string to use\n * @param multiplier Multiplier to use\n * @returns DecimalColumnFormat object\n */\n static makePresetFormat(\n label: string,\n formatString = '',\n multiplier?: number\n ): DecimalColumnFormat {\n return DecimalColumnFormatter.makeFormat(\n label,\n formatString,\n TableColumnFormatter.TYPE_CONTEXT_PRESET,\n multiplier\n );\n }\n\n /**\n * Convenient function to create a DecimalFormatObject with a default 'Custom Format' label and Custom type\n * @param formatString Format string to use\n * @param multiplier Multiplier to use\n * @returns DecimalColumnFormat object\n */\n static makeCustomFormat(\n formatString = '',\n multiplier?: number\n ): DecimalColumnFormat {\n return DecimalColumnFormatter.makeFormat(\n 'Custom Format',\n formatString,\n TableColumnFormatter.TYPE_CONTEXT_CUSTOM,\n multiplier\n );\n }\n\n static DEFAULT_FORMAT_STRING = '###,##0.0000';\n\n static FORMAT_PERCENT = DecimalColumnFormatter.makePresetFormat(\n 'Percent',\n '##0.00%'\n );\n\n static FORMAT_BASIS_POINTS = DecimalColumnFormatter.makePresetFormat(\n 'Basis Points',\n '###,##0 bp',\n 10000\n );\n\n static FORMAT_MILLIONS = DecimalColumnFormatter.makePresetFormat(\n 'Millions',\n '###,##0.000 mm',\n 0.000001\n );\n\n static FORMAT_SCIENTIFIC_NOTATION = DecimalColumnFormatter.makePresetFormat(\n 'Scientific Notation',\n '0.0000E0'\n );\n\n static FORMAT_ROUND = DecimalColumnFormatter.makePresetFormat(\n 'Round',\n '###,##0'\n );\n\n static FORMAT_ROUND_TWO_DECIMALS = DecimalColumnFormatter.makePresetFormat(\n '0.00',\n '###,##0.00'\n );\n\n static FORMAT_ROUND_FOUR_DECIMALS = DecimalColumnFormatter.makePresetFormat(\n '0.0000',\n '###,##0.0000'\n );\n\n /**\n * Check if the given formats match\n * @param formatA format object to check\n * @param formatB format object to check\n * @returns True if the formats match\n */\n static isSameFormat(\n formatA: DecimalColumnFormat | null,\n formatB: DecimalColumnFormat | null\n ): boolean {\n return (\n formatA === formatB ||\n (formatA != null &&\n formatB != null &&\n formatA.type === formatB.type &&\n formatA.formatString === formatB.formatString &&\n formatA.multiplier === formatB.multiplier)\n );\n }\n\n defaultFormatString: string;\n\n dh: DhType;\n\n constructor(\n dh: DhType,\n {\n defaultFormatString = DecimalColumnFormatter.DEFAULT_FORMAT_STRING,\n }: DecimalColumnFormatterOptions = {}\n ) {\n super();\n\n this.dh = dh;\n this.defaultFormatString = defaultFormatString;\n }\n\n /**\n * Format a value with the provided format object\n * @param valueParam Value to format\n * @param format Format object\n * @returns Formatted string\n */\n format(\n valueParam: number,\n format: Partial<DecimalColumnFormat> = {}\n ): string {\n const formatString =\n format.formatString != null && format.formatString !== ''\n ? format.formatString\n : this.defaultFormatString;\n const value =\n format.multiplier != null && format.multiplier !== 0\n ? valueParam * format.multiplier\n : valueParam;\n try {\n return this.dh.i18n.NumberFormat.format(formatString, value);\n } catch (e) {\n log.error('Invalid format arguments');\n }\n return '';\n }\n}\n\nexport default DecimalColumnFormatter;\n"],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ /* eslint class-methods-use-this: "off" */
2
+ /* eslint no-unused-vars: "off" */
3
+ import TableColumnFormatter from "./TableColumnFormatter.js";
4
+ class DefaultColumnFormatter extends TableColumnFormatter {
5
+ format(value) {
6
+ return "".concat(value);
7
+ }
8
+ }
9
+ export default DefaultColumnFormatter;
10
+ //# sourceMappingURL=DefaultColumnFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultColumnFormatter.js","names":["TableColumnFormatter","DefaultColumnFormatter","format","value"],"sources":["../../src/formatters/DefaultColumnFormatter.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/* eslint no-unused-vars: \"off\" */\nimport TableColumnFormatter from './TableColumnFormatter';\n\nclass DefaultColumnFormatter extends TableColumnFormatter {\n format(value: unknown): string {\n return `${value}`;\n }\n}\n\nexport default DefaultColumnFormatter;\n"],"mappings":"AAAA;AACA;AAAA,OACOA,oBAAoB;AAE3B,MAAMC,sBAAsB,SAASD,oBAAoB,CAAC;EACxDE,MAAM,CAACC,KAAc,EAAU;IAC7B,iBAAUA,KAAK;EACjB;AACF;AAEA,eAAeF,sBAAsB"}
@@ -0,0 +1,112 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ /* eslint class-methods-use-this: "off" */
5
+
6
+ import Log from '@deephaven/log';
7
+ import TableColumnFormatter from "./TableColumnFormatter.js";
8
+ var log = Log.module('IntegerColumnFormatter');
9
+ /** Column formatter for integers/whole numbers */
10
+ export class IntegerColumnFormatter extends TableColumnFormatter {
11
+ /**
12
+ * Validates format object
13
+ * @param dh JSAPI instance
14
+ * @param format Format object
15
+ * @returns true for valid object
16
+ */
17
+ static isValid(dh, format) {
18
+ try {
19
+ dh.i18n.NumberFormat.format(format.formatString, 0);
20
+ return true;
21
+ } catch (e) {
22
+ return false;
23
+ }
24
+ }
25
+
26
+ /**
27
+ * Create an IntegerColumnFormat object with the parameters specified
28
+ * @param label Label for the format
29
+ * @param formatString Format string for the format
30
+ * @param multiplier Optional multiplier for the formatter
31
+ * @param type Type of format created
32
+ * @returns IntegerColumnFormat object
33
+ */
34
+ static makeFormat(label, formatString) {
35
+ var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : TableColumnFormatter.TYPE_CONTEXT_PRESET;
36
+ var multiplier = arguments.length > 3 ? arguments[3] : undefined;
37
+ return {
38
+ label,
39
+ type,
40
+ formatString,
41
+ multiplier
42
+ };
43
+ }
44
+
45
+ /**
46
+ * Convenient function to create a IntegerFormatObject with Preset type set
47
+ * @param label Label for this format object
48
+ * @param formatString Format string to use
49
+ * @param multiplier Multiplier to use
50
+ * @returns IntegerColumnFormat object
51
+ */
52
+ static makePresetFormat(label) {
53
+ var formatString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
54
+ var multiplier = arguments.length > 2 ? arguments[2] : undefined;
55
+ return IntegerColumnFormatter.makeFormat(label, formatString, TableColumnFormatter.TYPE_CONTEXT_PRESET, multiplier);
56
+ }
57
+
58
+ /**
59
+ * Convenient function to create a IntegerFormatObject with a default 'Custom Format' label and Custom type
60
+ * @param formatString Format string to use
61
+ * @param multiplier Multiplier to use
62
+ * @returns IntegerColumnFormat object
63
+ */
64
+ static makeCustomFormat() {
65
+ var formatString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
66
+ var multiplier = arguments.length > 1 ? arguments[1] : undefined;
67
+ return IntegerColumnFormatter.makeFormat('Custom Format', formatString, TableColumnFormatter.TYPE_CONTEXT_CUSTOM, multiplier);
68
+ }
69
+
70
+ /**
71
+ * Check if the given formats match
72
+ * @param formatA format object to check
73
+ * @param formatB format object to check
74
+ * @returns True if the formats match
75
+ */
76
+ static isSameFormat(formatA, formatB) {
77
+ return formatA === formatB || formatA != null && formatB != null && formatA.type === formatB.type && formatA.formatString === formatB.formatString && formatA.multiplier === formatB.multiplier;
78
+ }
79
+ constructor(dh) {
80
+ var {
81
+ defaultFormatString = IntegerColumnFormatter.DEFAULT_FORMAT_STRING
82
+ } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
83
+ super();
84
+ _defineProperty(this, "dh", void 0);
85
+ _defineProperty(this, "defaultFormatString", void 0);
86
+ this.dh = dh;
87
+ this.defaultFormatString = defaultFormatString;
88
+ }
89
+
90
+ /**
91
+ * Format a value with the provided format object
92
+ * @param valueParam Value to format
93
+ * @param format Format object
94
+ * @returns Formatted string
95
+ */
96
+ format(valueParam) {
97
+ var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
98
+ var formatString = format.formatString != null && format.formatString !== '' ? format.formatString : this.defaultFormatString;
99
+ var value = format.multiplier != null && format.multiplier !== 0 ? valueParam * format.multiplier : valueParam;
100
+ try {
101
+ return this.dh.i18n.NumberFormat.format(formatString, value);
102
+ } catch (e) {
103
+ log.error('Invalid format arguments');
104
+ }
105
+ return '';
106
+ }
107
+ }
108
+ _defineProperty(IntegerColumnFormatter, "DEFAULT_FORMAT_STRING", '###,##0');
109
+ _defineProperty(IntegerColumnFormatter, "FORMAT_MILLIONS", IntegerColumnFormatter.makePresetFormat('Millions', '###,##0.000 mm', 0.000001));
110
+ _defineProperty(IntegerColumnFormatter, "FORMAT_SCIENTIFIC_NOTATION", IntegerColumnFormatter.makePresetFormat('Scientific Notation', '0.0000E0'));
111
+ export default IntegerColumnFormatter;
112
+ //# sourceMappingURL=IntegerColumnFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntegerColumnFormatter.js","names":["Log","TableColumnFormatter","log","module","IntegerColumnFormatter","isValid","dh","format","i18n","NumberFormat","formatString","e","makeFormat","label","type","TYPE_CONTEXT_PRESET","multiplier","makePresetFormat","makeCustomFormat","TYPE_CONTEXT_CUSTOM","isSameFormat","formatA","formatB","constructor","defaultFormatString","DEFAULT_FORMAT_STRING","valueParam","value","error"],"sources":["../../src/formatters/IntegerColumnFormatter.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport Log from '@deephaven/log';\nimport TableColumnFormatter, {\n TableColumnFormat,\n} from './TableColumnFormatter';\n\nconst log = Log.module('IntegerColumnFormatter');\n\nexport type IntegerColumnFormat = TableColumnFormat & {\n multiplier?: number | null;\n};\n\nexport type IntegerColumnFormatterOptions = {\n // Default format string to use. Defaults to IntegerColumnFormatter.DEFAULT_FORMAT_STRING\n defaultFormatString?: string;\n};\n\n/** Column formatter for integers/whole numbers */\nexport class IntegerColumnFormatter extends TableColumnFormatter<number> {\n /**\n * Validates format object\n * @param dh JSAPI instance\n * @param format Format object\n * @returns true for valid object\n */\n static isValid(\n dh: DhType,\n format: Pick<TableColumnFormat, 'formatString'>\n ): boolean {\n try {\n dh.i18n.NumberFormat.format(format.formatString, 0);\n return true;\n } catch (e) {\n return false;\n }\n }\n\n /**\n * Create an IntegerColumnFormat object with the parameters specified\n * @param label Label for the format\n * @param formatString Format string for the format\n * @param multiplier Optional multiplier for the formatter\n * @param type Type of format created\n * @returns IntegerColumnFormat object\n */\n static makeFormat(\n label: string,\n formatString: string,\n type = TableColumnFormatter.TYPE_CONTEXT_PRESET,\n multiplier?: number\n ): IntegerColumnFormat {\n return {\n label,\n type,\n formatString,\n multiplier,\n };\n }\n\n /**\n * Convenient function to create a IntegerFormatObject with Preset type set\n * @param label Label for this format object\n * @param formatString Format string to use\n * @param multiplier Multiplier to use\n * @returns IntegerColumnFormat object\n */\n static makePresetFormat(\n label: string,\n formatString = '',\n multiplier?: number\n ): IntegerColumnFormat {\n return IntegerColumnFormatter.makeFormat(\n label,\n formatString,\n TableColumnFormatter.TYPE_CONTEXT_PRESET,\n multiplier\n );\n }\n\n /**\n * Convenient function to create a IntegerFormatObject with a default 'Custom Format' label and Custom type\n * @param formatString Format string to use\n * @param multiplier Multiplier to use\n * @returns IntegerColumnFormat object\n */\n static makeCustomFormat(\n formatString = '',\n multiplier?: number\n ): IntegerColumnFormat {\n return IntegerColumnFormatter.makeFormat(\n 'Custom Format',\n formatString,\n TableColumnFormatter.TYPE_CONTEXT_CUSTOM,\n multiplier\n );\n }\n\n /**\n * Check if the given formats match\n * @param formatA format object to check\n * @param formatB format object to check\n * @returns True if the formats match\n */\n static isSameFormat(\n formatA: IntegerColumnFormat | null,\n formatB: IntegerColumnFormat | null\n ): boolean {\n return (\n formatA === formatB ||\n (formatA != null &&\n formatB != null &&\n formatA.type === formatB.type &&\n formatA.formatString === formatB.formatString &&\n formatA.multiplier === formatB.multiplier)\n );\n }\n\n static DEFAULT_FORMAT_STRING = '###,##0';\n\n static FORMAT_MILLIONS = IntegerColumnFormatter.makePresetFormat(\n 'Millions',\n '###,##0.000 mm',\n 0.000001\n );\n\n static FORMAT_SCIENTIFIC_NOTATION = IntegerColumnFormatter.makePresetFormat(\n 'Scientific Notation',\n '0.0000E0'\n );\n\n dh: DhType;\n\n defaultFormatString: string;\n\n constructor(\n dh: DhType,\n {\n defaultFormatString = IntegerColumnFormatter.DEFAULT_FORMAT_STRING,\n }: IntegerColumnFormatterOptions = {}\n ) {\n super();\n this.dh = dh;\n this.defaultFormatString = defaultFormatString;\n }\n\n /**\n * Format a value with the provided format object\n * @param valueParam Value to format\n * @param format Format object\n * @returns Formatted string\n */\n format(\n valueParam: number,\n format: Partial<IntegerColumnFormat> = {}\n ): string {\n const formatString =\n format.formatString != null && format.formatString !== ''\n ? format.formatString\n : this.defaultFormatString;\n const value =\n format.multiplier != null && format.multiplier !== 0\n ? valueParam * format.multiplier\n : valueParam;\n try {\n return this.dh.i18n.NumberFormat.format(formatString, value);\n } catch (e) {\n log.error('Invalid format arguments');\n }\n return '';\n }\n}\n\nexport default IntegerColumnFormatter;\n"],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ /* eslint class-methods-use-this: "off" */
2
+ import TableColumnFormatter from "./TableColumnFormatter.js";
3
+ /** Column formatter for strings */
4
+ export class StringColumnFormatter extends TableColumnFormatter {
5
+ format(value) {
6
+ return value;
7
+ }
8
+ }
9
+ export default StringColumnFormatter;
10
+ //# sourceMappingURL=StringColumnFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringColumnFormatter.js","names":["TableColumnFormatter","StringColumnFormatter","format","value"],"sources":["../../src/formatters/StringColumnFormatter.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\nimport TableColumnFormatter from './TableColumnFormatter';\n\n/** Column formatter for strings */\nexport class StringColumnFormatter extends TableColumnFormatter<string> {\n format(value: string): string {\n return value;\n }\n}\n\nexport default StringColumnFormatter;\n"],"mappings":"AAAA;AAAA,OACOA,oBAAoB;AAE3B;AACA,OAAO,MAAMC,qBAAqB,SAASD,oBAAoB,CAAS;EACtEE,MAAM,CAACC,KAAa,EAAU;IAC5B,OAAOA,KAAK;EACd;AACF;AAEA,eAAeF,qBAAqB"}
@@ -0,0 +1,59 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ /* eslint class-methods-use-this: "off" */
5
+ /**
6
+ * Default column data formatter. Just interpolates the value as a string and returns.
7
+ * Extend this class and register with TableUtils to make use of it.
8
+ */
9
+
10
+ export class TableColumnFormatter {
11
+ /**
12
+ * Validates format object
13
+ * @param dh JSAPI instance
14
+ * @param format Format object
15
+ * @returns true for valid object
16
+ */
17
+ static isValid(dh, format) {
18
+ return true;
19
+ }
20
+
21
+ /**
22
+ * Check if the given formats match
23
+ * @param formatA format object to check
24
+ * @param formatB format object to check
25
+ * @returns True if the formats match
26
+ */
27
+ static isSameFormat(formatA, formatB) {
28
+ throw new Error('isSameFormat not implemented');
29
+ }
30
+
31
+ /**
32
+ * Create and return a Format object
33
+ * @param label The label of the format object
34
+ * @param formatString Format string to use for the format
35
+ * @param type The type of column to use for this format
36
+ * @returns A format object
37
+ */
38
+ static makeFormat(label, formatString, type) {
39
+ return {
40
+ label,
41
+ formatString,
42
+ type
43
+ };
44
+ }
45
+
46
+ /**
47
+ * @param value The value to format
48
+ * @param format Optional format object with value transformation options
49
+ * @returns String the formatted text string of the value passed in.
50
+ */
51
+ format(value, format) {
52
+ return '';
53
+ }
54
+ }
55
+ _defineProperty(TableColumnFormatter, "TYPE_GLOBAL", 'type-global');
56
+ _defineProperty(TableColumnFormatter, "TYPE_CONTEXT_PRESET", 'type-context-preset');
57
+ _defineProperty(TableColumnFormatter, "TYPE_CONTEXT_CUSTOM", 'type-context-custom');
58
+ export default TableColumnFormatter;
59
+ //# sourceMappingURL=TableColumnFormatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableColumnFormatter.js","names":["TableColumnFormatter","isValid","dh","format","isSameFormat","formatA","formatB","Error","makeFormat","label","formatString","type","value"],"sources":["../../src/formatters/TableColumnFormatter.ts"],"sourcesContent":["/* eslint class-methods-use-this: \"off\" */\n/**\n * Default column data formatter. Just interpolates the value as a string and returns.\n * Extend this class and register with TableUtils to make use of it.\n */\n\nimport type { dh as DhType } from '@deephaven/jsapi-types';\n\nexport type TableColumnFormatType =\n | 'type-global'\n | 'type-context-preset'\n | 'type-context-custom';\n\nexport type TableColumnFormat = {\n label: string;\n formatString: string;\n type: TableColumnFormatType;\n};\n\nexport class TableColumnFormatter<T = unknown> {\n static TYPE_GLOBAL: TableColumnFormatType = 'type-global';\n\n static TYPE_CONTEXT_PRESET: TableColumnFormatType = 'type-context-preset';\n\n static TYPE_CONTEXT_CUSTOM: TableColumnFormatType = 'type-context-custom';\n\n /**\n * Validates format object\n * @param dh JSAPI instance\n * @param format Format object\n * @returns true for valid object\n */\n static isValid(dh: DhType, format: TableColumnFormat): boolean {\n return true;\n }\n\n /**\n * Check if the given formats match\n * @param formatA format object to check\n * @param formatB format object to check\n * @returns True if the formats match\n */\n static isSameFormat(\n formatA: TableColumnFormat | null,\n formatB: TableColumnFormat | null\n ): boolean {\n throw new Error('isSameFormat not implemented');\n }\n\n /**\n * Create and return a Format object\n * @param label The label of the format object\n * @param formatString Format string to use for the format\n * @param type The type of column to use for this format\n * @returns A format object\n */\n static makeFormat(\n label: string,\n formatString: string,\n type: TableColumnFormatType\n ): TableColumnFormat {\n return { label, formatString, type };\n }\n\n /**\n * @param value The value to format\n * @param format Optional format object with value transformation options\n * @returns String the formatted text string of the value passed in.\n */\n format(value: T, format?: Partial<TableColumnFormat>): string {\n return '';\n }\n}\n\nexport default TableColumnFormatter;\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;;AAeA,OAAO,MAAMA,oBAAoB,CAAc;EAO7C;AACF;AACA;AACA;AACA;AACA;EACE,OAAOC,OAAO,CAACC,EAAU,EAAEC,MAAyB,EAAW;IAC7D,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;AACA;EACE,OAAOC,YAAY,CACjBC,OAAiC,EACjCC,OAAiC,EACxB;IACT,MAAM,IAAIC,KAAK,CAAC,8BAA8B,CAAC;EACjD;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,UAAU,CACfC,KAAa,EACbC,YAAoB,EACpBC,IAA2B,EACR;IACnB,OAAO;MAAEF,KAAK;MAAEC,YAAY;MAAEC;IAAK,CAAC;EACtC;;EAEA;AACF;AACA;AACA;AACA;EACER,MAAM,CAACS,KAAQ,EAAET,MAAmC,EAAU;IAC5D,OAAO,EAAE;EACX;AACF;AAAC,gBArDYH,oBAAoB,iBACa,aAAa;AAAA,gBAD9CA,oBAAoB,yBAGqB,qBAAqB;AAAA,gBAH9DA,oBAAoB,yBAKqB,qBAAqB;AAkD3E,eAAeA,oBAAoB"}
@@ -0,0 +1,10 @@
1
+ export { default as BooleanColumnFormatter } from "./BooleanColumnFormatter.js";
2
+ export { default as CharColumnFormatter } from "./CharColumnFormatter.js";
3
+ export * from "./DateTimeColumnFormatter.js";
4
+ export * from "./DecimalColumnFormatter.js";
5
+ export { default as DefaultColumnFormatter } from "./DefaultColumnFormatter.js";
6
+ export * from "./IntegerColumnFormatter.js";
7
+ export { default as TableColumnFormatter } from "./TableColumnFormatter.js";
8
+ export * from "./TableColumnFormatter.js";
9
+ export * from "./StringColumnFormatter.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","BooleanColumnFormatter","CharColumnFormatter","DefaultColumnFormatter","TableColumnFormatter"],"sources":["../../src/formatters/index.ts"],"sourcesContent":["export { default as BooleanColumnFormatter } from './BooleanColumnFormatter';\nexport { default as CharColumnFormatter } from './CharColumnFormatter';\nexport * from './DateTimeColumnFormatter';\nexport * from './DecimalColumnFormatter';\nexport { default as DefaultColumnFormatter } from './DefaultColumnFormatter';\nexport * from './IntegerColumnFormatter';\nexport { default as TableColumnFormatter } from './TableColumnFormatter';\nexport * from './TableColumnFormatter';\nexport * from './StringColumnFormatter';\n"],"mappings":"SAASA,OAAO,IAAIC,sBAAsB;AAAA,SACjCD,OAAO,IAAIE,mBAAmB;AAAA;AAAA;AAAA,SAG9BF,OAAO,IAAIG,sBAAsB;AAAA;AAAA,SAEjCH,OAAO,IAAII,oBAAoB;AAAA;AAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ export * from "./ConnectionUtils.js";
2
+ export * from "./formatters/index.js";
3
+ export * from "./DateUtils.js";
4
+ export * from "./Formatter.js";
5
+ export { default as FormatterUtils } from "./FormatterUtils.js";
6
+ export * from "./FormatterUtils.js";
7
+ export * from "./MessageUtils.js";
8
+ export * from "./NoConsolesError.js";
9
+ export * from "./SessionUtils.js";
10
+ export * from "./Settings.js";
11
+ export * from "./TableUtils.js";
12
+ export * from "./ViewportDataUtils.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","FormatterUtils"],"sources":["../src/index.ts"],"sourcesContent":["export * from './ConnectionUtils';\nexport * from './formatters';\nexport * from './DateUtils';\nexport * from './Formatter';\nexport { default as FormatterUtils } from './FormatterUtils';\nexport * from './FormatterUtils';\nexport * from './MessageUtils';\nexport * from './NoConsolesError';\nexport * from './SessionUtils';\nexport * from './Settings';\nexport * from './TableUtils';\nexport * from './ViewportDataUtils';\n"],"mappings":";;;;SAISA,OAAO,IAAIC,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/jsapi-utils",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Deephaven JSAPI Utils",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -21,16 +21,16 @@
21
21
  "build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
22
22
  },
23
23
  "dependencies": {
24
- "@deephaven/filters": "^0.43.0",
25
- "@deephaven/jsapi-types": "^0.43.0",
26
- "@deephaven/log": "^0.43.0",
27
- "@deephaven/utils": "^0.43.0",
24
+ "@deephaven/filters": "^0.44.0",
25
+ "@deephaven/jsapi-types": "^0.44.0",
26
+ "@deephaven/log": "^0.44.0",
27
+ "@deephaven/utils": "^0.44.0",
28
28
  "@react-stately/data": "^3.9.1",
29
29
  "lodash.clamp": "^4.0.3",
30
30
  "shortid": "^2.2.16"
31
31
  },
32
32
  "devDependencies": {
33
- "@deephaven/jsapi-shim": "^0.43.0"
33
+ "@deephaven/jsapi-shim": "^0.44.0"
34
34
  },
35
35
  "files": [
36
36
  "dist"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "b16776b5bdc15a02cd2897cd79d562ea38c60ed8"
42
+ "gitHead": "ba13c9139b3b7a5f5d64d79069f1de9d4727eeb6"
43
43
  }