@deephaven/iris-grid 0.9.2-beta.0 → 0.9.3-fix-fontawesome.2
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/dist/AdvancedFilterCreator.css.map +1 -1
- package/dist/ColumnStatistics.css.map +1 -1
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +2 -1
- package/dist/Formatter.js.map +1 -1
- package/dist/IrisGrid.css +1 -0
- package/dist/IrisGrid.css.map +1 -1
- package/dist/IrisGrid.d.ts +7 -0
- package/dist/IrisGrid.d.ts.map +1 -1
- package/dist/IrisGrid.js +41 -8
- package/dist/IrisGrid.js.map +1 -1
- package/dist/IrisGridRenderer.d.ts.map +1 -1
- package/dist/IrisGridRenderer.js +27 -0
- package/dist/IrisGridRenderer.js.map +1 -1
- package/dist/IrisGridTableModel.d.ts.map +1 -1
- package/dist/IrisGridTableModel.js +14 -7
- package/dist/IrisGridTableModel.js.map +1 -1
- package/dist/IrisGridTheme.d.ts.map +1 -1
- package/dist/IrisGridTheme.js +1 -0
- package/dist/IrisGridTheme.js.map +1 -1
- package/dist/IrisGridTheme.module.css +1 -0
- package/dist/IrisGridTheme.module.css.map +1 -1
- package/dist/IrisGridUtils.d.ts.map +1 -1
- package/dist/IrisGridUtils.js +8 -0
- package/dist/IrisGridUtils.js.map +1 -1
- package/dist/formatters/StringColumnFormatter.d.ts +7 -0
- package/dist/formatters/StringColumnFormatter.d.ts.map +1 -0
- package/dist/formatters/StringColumnFormatter.js +13 -0
- package/dist/formatters/StringColumnFormatter.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/sidebar/ChartBuilder.css.map +1 -1
- package/dist/sidebar/CustomColumnBuilder.css.map +1 -1
- package/dist/sidebar/CustomColumnBuilder.d.ts +3 -0
- package/dist/sidebar/CustomColumnBuilder.d.ts.map +1 -1
- package/dist/sidebar/CustomColumnBuilder.js +41 -17
- package/dist/sidebar/CustomColumnBuilder.js.map +1 -1
- package/dist/sidebar/InputEditor.css.map +1 -1
- package/dist/sidebar/SelectDistinctBuilder.css.map +1 -1
- package/dist/sidebar/TableCsvExporter.css.map +1 -1
- package/dist/sidebar/VisibilityOrderingBuilder.css.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/AdvancedFilterCreator.scss","../../../node_modules/bootstrap/scss/_variables.scss","../../components/scss/bootstrap_overrides.scss","../../components/scss/new_variables.scss"],"names":[],"mappings":"AAEA;EACE;;AAEA;EACE;EACA;;AAGF;EACE;EACA;EACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/AdvancedFilterCreator.scss","../../../node_modules/bootstrap/scss/_variables.scss","../../components/scss/bootstrap_overrides.scss","../../components/scss/new_variables.scss"],"names":[],"mappings":"AAEA;EACE;;AAEA;EACE;EACA;;AAGF;EACE;EACA;EACA,eC62BgC;ED52BhC,YC42BgC;ED32BhC,YEUO;;AFPT;EACE;;AAGF;EACE,gBCm2BgC;;ADl2BhC;EACE;EACA,OELK;EFML;EACA;EACA;EACA;;AAIJ;EACE;EACA;EACA;;AAEA;EACE;;AAMA;EACE;EACA,OE3BG;EF4BH;EACA;EACA;EACA,aGjDG;;AHoDL;EACE,OE3CS;;AFgDf;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;;AACA;AAAA;EACE;EACA;EACA,eGtEK;EHuEL,OErDK;;AFwDP;AAAA;AAAA;AAAA;EAEE;EACA,OElEW;EFmEX;EACA;;AAEA;AAAA;AAAA;AAAA;EACE,OExEQ;EFyER;;AAKN;EACE;EACA;EACA;;AAKE;EACE,OE9EG;;AFiFL;EACE;;AAEA;EACE,OE7FO;;AF8FP;EACE,OE/FK;EFgGL;;AAIJ;EACE,OEtGM;;AFyGR;EACE","file":"AdvancedFilterCreator.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/ColumnStatistics.scss","../../components/scss/bootstrap_overrides.scss","../../components/scss/new_variables.scss","../../../node_modules/bootstrap/scss/_variables.scss"],"names":[],"mappings":"AAEA;EACE;EACA;EACA,OCQe;EDPf;EACA;EACA;;;AAGF;EACE,aEVS;EFWT;;AACA;EACE;EACA;;;AAIJ;EACE;EACA,OCDS;EDET;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA,SEnCS;EFoCT,aEpCS;;AFqCT;EACE;;AACA;EAEE;;AAIJ;EACE,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/ColumnStatistics.scss","../../components/scss/bootstrap_overrides.scss","../../components/scss/new_variables.scss","../../../node_modules/bootstrap/scss/_variables.scss"],"names":[],"mappings":"AAEA;EACE;EACA;EACA,OCQe;EDPf;EACA;EACA;;;AAGF;EACE,aEVS;EFWT;;AACA;EACE;EACA;;;AAIJ;EACE;EACA,OCDS;EDET;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA,SEnCS;EFoCT,aEpCS;;AFqCT;EACE;;AACA;EAEE;;AAIJ;EACE,aGwFK;;AHrFP;EACE;EACA,eGmFK;EHlFL;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;;;AAGF;AAAA;EAEE;EACA;EACA,OCzDS","file":"ColumnStatistics.css"}
|
package/dist/Formatter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Formatter.d.ts","sourceRoot":"","sources":["../src/Formatter.ts"],"names":[],"mappings":"AACA,OAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAGL,uBAAuB,EACvB,sBAAsB,EAEtB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Formatter.d.ts","sourceRoot":"","sources":["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AC,MAAM,EAAE,iBAAiB,CAAC,GAAG,SAAS;IAa7C;;;;;OAKG;IACH,eAAe,CACb,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,iBAAiB,GAAG,IAAI;IAK3B,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,oBAAoB;IAUhE;;;;;;OAMG;IACH,kBAAkB,CAChB,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,MAAM,EAClB,UAAU,SAAK,EACf,cAAc,CAAC,EAAE,iBAAiB,GACjC,MAAM;IAYT;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF;AAED,eAAe,SAAS,CAAC"}
|
package/dist/Formatter.js
CHANGED
|
@@ -3,6 +3,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
3
3
|
import { Log } from '@deephaven/log';
|
|
4
4
|
import TableUtils from "./TableUtils.js";
|
|
5
5
|
import { BooleanColumnFormatter, CharColumnFormatter, DateTimeColumnFormatter, DecimalColumnFormatter, DefaultColumnFormatter, IntegerColumnFormatter } from "./formatters/index.js";
|
|
6
|
+
import StringColumnFormatter from "./formatters/StringColumnFormatter.js";
|
|
6
7
|
var log = Log.module('Formatter');
|
|
7
8
|
|
|
8
9
|
class Formatter {
|
|
@@ -73,7 +74,7 @@ class Formatter {
|
|
|
73
74
|
// - defaultColumnFormatter
|
|
74
75
|
this.defaultColumnFormatter = new DefaultColumnFormatter(); // Default formatters by data type
|
|
75
76
|
|
|
76
|
-
this.typeFormatterMap = new Map([[TableUtils.dataType.BOOLEAN, new BooleanColumnFormatter()], [TableUtils.dataType.CHAR, new CharColumnFormatter()], [TableUtils.dataType.DATETIME, new DateTimeColumnFormatter(dateTimeOptions)], [TableUtils.dataType.DECIMAL, new DecimalColumnFormatter(decimalFormatOptions)], [TableUtils.dataType.INT, new IntegerColumnFormatter(integerFormatOptions)]]); // Formats indexed by data type and column name
|
|
77
|
+
this.typeFormatterMap = new Map([[TableUtils.dataType.BOOLEAN, new BooleanColumnFormatter()], [TableUtils.dataType.CHAR, new CharColumnFormatter()], [TableUtils.dataType.DATETIME, new DateTimeColumnFormatter(dateTimeOptions)], [TableUtils.dataType.DECIMAL, new DecimalColumnFormatter(decimalFormatOptions)], [TableUtils.dataType.INT, new IntegerColumnFormatter(integerFormatOptions)], [TableUtils.dataType.STRING, new StringColumnFormatter()]]); // Formats indexed by data type and column name
|
|
77
78
|
|
|
78
79
|
this.columnFormatMap = Formatter.makeColumnFormatMap(columnFormattingRules);
|
|
79
80
|
}
|
package/dist/Formatter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Formatter.ts"],"names":["Log","TableUtils","BooleanColumnFormatter","CharColumnFormatter","DateTimeColumnFormatter","DecimalColumnFormatter","DefaultColumnFormatter","IntegerColumnFormatter","log","module","Formatter","makeColumnFormatMap","columnFormattingRules","Map","reduce","map","next","dataType","getNormalizedType","columnType","has","set","formatMap","get","columnName","format","makeColumnFormattingRule","constructor","dateTimeOptions","decimalFormatOptions","integerFormatOptions","defaultColumnFormatter","typeFormatterMap","BOOLEAN","CHAR","DATETIME","DECIMAL","INT","columnFormatMap","getColumnFormatMapForType","createIfNecessary","warn","undefined","getColumnFormat","getColumnTypeFormatter","columnTypeFormatter","getFormattedString","value","formatOverride","formatter","timeZone","dhTimeZone","id"],"mappings":";;AAAA,SAASA,GAAT,QAAoB,gBAApB;OACOC,U;SAELC,sB,EACAC,mB,EACAC,uB,EACAC,sB,EACAC,sB,EACAC,sB;AAKF,IAAMC,GAAG,GAAGR,GAAG,CAACS,MAAJ,CAAW,WAAX,CAAZ;;AAUA,MAAMC,SAAN,CAAgB;AACd;AACF;AACA;AACA;AACA;AAC4B,SAAnBC,mBAAmB,CACxBC,qBADwB,EAE2B;AACnD,QAAIA,qBAAqB,IAAI,IAA7B,EAAmC;AACjC,aAAO,IAAIC,GAAJ,EAAP;AACD;;AACD,WAAOD,qBAAqB,CAACE,MAAt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,CAAP,uEAA2C,IAA3C;AACD;;AAEDoB,EAAAA,sBAAsB,CAACzB,UAAD,EAA2C;AAC/D,QAAMF,QAAQ,GAAGhB,UAAU,CAACiB,iBAAX,CAA6BC,UAA7B,CAAjB;AACA,QAAI0B,mBAAmB,GAAG,KAAKd,sBAA/B;;AACA,QAAId,QAAJ,EAAc;AAAA;;AACZ4B,MAAAA,mBAAmB,4BACjB,KAAKb,gBAAL,CAAsBT,GAAtB,CAA0BN,QAA1B,CADiB,yEACsB4B,mBADzC;AAED;;AACD,WAAOA,mBAAP;AACD;AAED;AACF;AACA;AACA;AACA;AACA;AACA;;;AACEC,EAAAA,kBAAkB,CAChBC,KADgB,EAEhB5B,UAFgB,EAKR;AAAA,QAFRK,UAEQ,uEAFK,EAEL;AAAA,QADRwB,cACQ;;AACR,QAAID,KAAK,IAAI,IAAb,EAAmB;AACjB,aAAO,EAAP;AACD;;AAED,QAAME,SAAS,GAAG,KAAKL,sBAAL,CAA4BzB,UAA5B,CAAlB;AACA,QAAMM,MAAM,GACVuB,cAAc,IAAI,KAAKL,eAAL,CAAqBxB,UAArB,EAAiCK,UAAjC,CADpB;AAGA,WAAOyB,SAAS,CAACxB,MAAV,CAAiBsB,KAAjB,EAAwBtB,MAAxB,aAAwBA,MAAxB,cAAwBA,MAAxB,GAAkCiB,SAAlC,CAAP;AACD;AAED;AACF;AACA;AACA;;;AACc,MAARQ,QAAQ,GAAW;AAAA;;AACrB,QAAMD,SAAS,GAAG,KAAKjB,gBAAL,CAAsBT,GAAtB,CAChBtB,UAAU,CAACgB,QAAX,CAAoBkB,QADJ,CAAlB;AAGA,WAAOc,SAAP,aAAOA,SAAP,gDAAOA,SAAS,CAAEE,UAAlB,0DAAO,sBAAuBC,EAA9B;AACD;;AA/Ka;;AAkLhB,eAAe1C,SAAf","sourcesContent":["import { Log } from '@deephaven/log';\nimport TableUtils, { DataType } from './TableUtils';\nimport {\n BooleanColumnFormatter,\n CharColumnFormatter,\n DateTimeColumnFormatter,\n DecimalColumnFormatter,\n DefaultColumnFormatter,\n IntegerColumnFormatter,\n TableColumnFormat,\n TableColumnFormatter,\n} from './formatters';\n\nconst log = Log.module('Formatter');\n\ntype ColumnName = string;\n\nexport interface FormattingRule {\n columnType: string;\n columnName: string;\n format: TableColumnFormat;\n}\n\nclass Formatter {\n /**\n * Converts FormattingRule[] to Map\n * @param columnFormattingRules Array or column formatting rules\n * @returns Map of columnName-to-format Maps indexed by normalized dataType\n */\n static makeColumnFormatMap(\n columnFormattingRules: FormattingRule[]\n ): Map<DataType, Map<ColumnName, TableColumnFormat>> {\n if (columnFormattingRules == null) {\n return new Map();\n }\n return columnFormattingRules.reduce((map, next) => {\n const dataType = TableUtils.getNormalizedType(next.columnType);\n if (dataType === null) {\n return map;\n }\n\n if (!map.has(dataType)) {\n map.set(dataType, new Map());\n }\n const formatMap = map.get(dataType);\n formatMap?.set(next.columnName, next.format);\n return map;\n }, new Map<DataType, Map<ColumnName, TableColumnFormat>>());\n }\n\n /**\n * Creates a column formatting rule\n * @param columnType Normalized data type\n * @param columnName Column name\n * @param format Format object\n */\n static makeColumnFormattingRule(\n columnType: DataType,\n columnName: string,\n format: TableColumnFormat\n ): FormattingRule {\n return {\n columnType,\n columnName,\n format,\n };\n }\n\n /**\n * @param columnFormattingRules Optional array of column formatting rules\n * @param dateTimeOptions Optional object with DateTime configuration\n * @param decimalFormatOptions Optional object with Decimal configuration\n * @param integerFormatOptions Optional object with Integer configuration\n */\n constructor(\n columnFormattingRules: FormattingRule[] = [],\n dateTimeOptions?: ConstructorParameters<typeof DateTimeColumnFormatter>[0],\n decimalFormatOptions?: ConstructorParameters<\n typeof DecimalColumnFormatter\n >[0],\n integerFormatOptions?: ConstructorParameters<\n typeof IntegerColumnFormatter\n >[0]\n ) {\n // Formatting order:\n // - columnFormatMap[type][name]\n // - typeFormatterMap[type]\n // - defaultColumnFormatter\n\n this.defaultColumnFormatter = new DefaultColumnFormatter();\n\n // Default formatters by data type\n this.typeFormatterMap = new Map<DataType, TableColumnFormatter>([\n [TableUtils.dataType.BOOLEAN, new BooleanColumnFormatter()],\n [TableUtils.dataType.CHAR, new CharColumnFormatter()],\n [\n TableUtils.dataType.DATETIME,\n new DateTimeColumnFormatter(dateTimeOptions),\n ],\n [\n TableUtils.dataType.DECIMAL,\n new DecimalColumnFormatter(decimalFormatOptions),\n ],\n [\n TableUtils.dataType.INT,\n new IntegerColumnFormatter(integerFormatOptions),\n ],\n ]);\n\n // Formats indexed by data type and column name\n this.columnFormatMap = Formatter.makeColumnFormatMap(columnFormattingRules);\n }\n\n defaultColumnFormatter: TableColumnFormatter;\n\n typeFormatterMap: Map<DataType, TableColumnFormatter>;\n\n columnFormatMap: Map<DataType, Map<string, TableColumnFormat>>;\n\n /**\n * Gets columnFormatMap indexed by name for a given column type, creates new Map entry if necessary\n * @param columnType column type\n * @param createIfNecessary create new entry if true\n * @returns Map of format strings indexed by column name or undefined if it doesn't exist\n */\n getColumnFormatMapForType(\n columnType: string,\n createIfNecessary = false\n ): Map<string, TableColumnFormat> | undefined {\n const dataType = TableUtils.getNormalizedType(columnType);\n if (dataType === null) {\n log.warn(`Unknown columnType ${columnType}`);\n return undefined;\n }\n\n if (createIfNecessary && !this.columnFormatMap.has(dataType)) {\n this.columnFormatMap.set(dataType, new Map());\n }\n return this.columnFormatMap.get(dataType);\n }\n\n /**\n * Gets a column format object for a given column type and name\n * @param columnType column type\n * @param columnName column name\n * @returns format object or null for Default\n */\n getColumnFormat(\n columnType: string,\n columnName: string\n ): TableColumnFormat | null {\n const columnFormatMap = this.getColumnFormatMapForType(columnType);\n return columnFormatMap?.get(columnName) ?? null;\n }\n\n getColumnTypeFormatter(columnType: string): TableColumnFormatter {\n const dataType = TableUtils.getNormalizedType(columnType);\n let columnTypeFormatter = this.defaultColumnFormatter;\n if (dataType) {\n columnTypeFormatter =\n this.typeFormatterMap.get(dataType) ?? columnTypeFormatter;\n }\n return columnTypeFormatter;\n }\n\n /**\n * Gets formatted string for a given value, column type and name\n * @param value Value to format\n * @param columnType Column type used to determine the formatting settings\n * @param columnName Column name used to determine the formatting settings\n * @param formatOverride Format object passed to the formatter in place of the format defined in columnFormatMap\n */\n getFormattedString(\n value: unknown,\n columnType: string,\n columnName = '',\n formatOverride?: TableColumnFormat\n ): string {\n if (value == null) {\n return '';\n }\n\n const formatter = this.getColumnTypeFormatter(columnType);\n const format =\n formatOverride || this.getColumnFormat(columnType, columnName);\n\n return formatter.format(value, format ?? undefined);\n }\n\n /**\n * Gets the timeZone name\n * @returns The time zone name E.g. America/New_York\n */\n get timeZone(): string {\n const formatter = this.typeFormatterMap.get(\n TableUtils.dataType.DATETIME\n ) as DateTimeColumnFormatter;\n return formatter?.dhTimeZone?.id;\n }\n}\n\nexport default Formatter;\n"],"file":"Formatter.js"}
|
|
1
|
+
{"version":3,"sources":["../src/Formatter.ts"],"names":["Log","TableUtils","BooleanColumnFormatter","CharColumnFormatter","DateTimeColumnFormatter","DecimalColumnFormatter","DefaultColumnFormatter","IntegerColumnFormatter","StringColumnFormatter","log","module","Formatter","makeColumnFormatMap","columnFormattingRules","Map","reduce","map","next","dataType","getNormalizedType","columnType","has","set","formatMap","get","columnName","format","makeColumnFormattingRule","constructor","dateTimeOptions","decimalFormatOptions","integerFormatOptions","defaultColumnFormatter","typeFormatterMap","BOOLEAN","CHAR","DATETIME","DECIMAL","INT","STRING","columnFormatMap","getColumnFormatMapForType","createIfNecessary","warn","undefined","getColumnFormat","getColumnTypeFormatter","columnTypeFormatter","getFormattedString","value","formatOverride","formatter","timeZone","dhTimeZone","id"],"mappings":";;AAAA,SAASA,GAAT,QAAoB,gBAApB;OACOC,U;SAELC,sB,EACAC,mB,EACAC,uB,EACAC,sB,EACAC,sB,EACAC,sB;OAIKC,qB;AAEP,IAAMC,GAAG,GAAGT,GAAG,CAACU,MAAJ,CAAW,WAAX,CAAZ;;AAUA,MAAMC,SAAN,CAAgB;AACd;AACF;AACA;AACA;AACA;AAC4B,SAAnBC,mBAAmB,CACxBC,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P,aAAOA,SAAP,gDAAOA,SAAS,CAAEE,UAAlB,0DAAO,sBAAuBC,EAA9B;AACD;;AAhLa;;AAmLhB,eAAe3C,SAAf","sourcesContent":["import { Log } from '@deephaven/log';\nimport TableUtils, { DataType } from './TableUtils';\nimport {\n BooleanColumnFormatter,\n CharColumnFormatter,\n DateTimeColumnFormatter,\n DecimalColumnFormatter,\n DefaultColumnFormatter,\n IntegerColumnFormatter,\n TableColumnFormat,\n TableColumnFormatter,\n} from './formatters';\nimport StringColumnFormatter from './formatters/StringColumnFormatter';\n\nconst log = Log.module('Formatter');\n\ntype ColumnName = string;\n\nexport interface FormattingRule {\n columnType: string;\n columnName: string;\n format: TableColumnFormat;\n}\n\nclass Formatter {\n /**\n * Converts FormattingRule[] to Map\n * @param columnFormattingRules Array or column formatting rules\n * @returns Map of columnName-to-format Maps indexed by normalized dataType\n */\n static makeColumnFormatMap(\n columnFormattingRules: FormattingRule[]\n ): Map<DataType, Map<ColumnName, TableColumnFormat>> {\n if (columnFormattingRules == null) {\n return new Map();\n }\n return columnFormattingRules.reduce((map, next) => {\n const dataType = TableUtils.getNormalizedType(next.columnType);\n if (dataType === null) {\n return map;\n }\n\n if (!map.has(dataType)) {\n map.set(dataType, new Map());\n }\n const formatMap = map.get(dataType);\n formatMap?.set(next.columnName, next.format);\n return map;\n }, new Map<DataType, Map<ColumnName, TableColumnFormat>>());\n }\n\n /**\n * Creates a column formatting rule\n * @param columnType Normalized data type\n * @param columnName Column name\n * @param format Format object\n */\n static makeColumnFormattingRule(\n columnType: DataType,\n columnName: string,\n format: TableColumnFormat\n ): FormattingRule {\n return {\n columnType,\n columnName,\n format,\n };\n }\n\n /**\n * @param columnFormattingRules Optional array of column formatting rules\n * @param dateTimeOptions Optional object with DateTime configuration\n * @param decimalFormatOptions Optional object with Decimal configuration\n * @param integerFormatOptions Optional object with Integer configuration\n */\n constructor(\n columnFormattingRules: FormattingRule[] = [],\n dateTimeOptions?: ConstructorParameters<typeof DateTimeColumnFormatter>[0],\n decimalFormatOptions?: ConstructorParameters<\n typeof DecimalColumnFormatter\n >[0],\n integerFormatOptions?: ConstructorParameters<\n typeof IntegerColumnFormatter\n >[0]\n ) {\n // Formatting order:\n // - columnFormatMap[type][name]\n // - typeFormatterMap[type]\n // - defaultColumnFormatter\n\n this.defaultColumnFormatter = new DefaultColumnFormatter();\n\n // Default formatters by data type\n this.typeFormatterMap = new Map<DataType, TableColumnFormatter>([\n [TableUtils.dataType.BOOLEAN, new BooleanColumnFormatter()],\n [TableUtils.dataType.CHAR, new CharColumnFormatter()],\n [\n TableUtils.dataType.DATETIME,\n new DateTimeColumnFormatter(dateTimeOptions),\n ],\n [\n TableUtils.dataType.DECIMAL,\n new DecimalColumnFormatter(decimalFormatOptions),\n ],\n [\n TableUtils.dataType.INT,\n new IntegerColumnFormatter(integerFormatOptions),\n ],\n [TableUtils.dataType.STRING, new StringColumnFormatter()],\n ]);\n\n // Formats indexed by data type and column name\n this.columnFormatMap = Formatter.makeColumnFormatMap(columnFormattingRules);\n }\n\n defaultColumnFormatter: TableColumnFormatter;\n\n typeFormatterMap: Map<DataType, TableColumnFormatter>;\n\n columnFormatMap: Map<DataType, Map<string, TableColumnFormat>>;\n\n /**\n * Gets columnFormatMap indexed by name for a given column type, creates new Map entry if necessary\n * @param columnType column type\n * @param createIfNecessary create new entry if true\n * @returns Map of format strings indexed by column name or undefined if it doesn't exist\n */\n getColumnFormatMapForType(\n columnType: string,\n createIfNecessary = false\n ): Map<string, TableColumnFormat> | undefined {\n const dataType = TableUtils.getNormalizedType(columnType);\n if (dataType === null) {\n log.warn(`Unknown columnType ${columnType}`);\n return undefined;\n }\n\n if (createIfNecessary && !this.columnFormatMap.has(dataType)) {\n this.columnFormatMap.set(dataType, new Map());\n }\n return this.columnFormatMap.get(dataType);\n }\n\n /**\n * Gets a column format object for a given column type and name\n * @param columnType column type\n * @param columnName column name\n * @returns format object or null for Default\n */\n getColumnFormat(\n columnType: string,\n columnName: string\n ): TableColumnFormat | null {\n const columnFormatMap = this.getColumnFormatMapForType(columnType);\n return columnFormatMap?.get(columnName) ?? null;\n }\n\n getColumnTypeFormatter(columnType: string): TableColumnFormatter {\n const dataType = TableUtils.getNormalizedType(columnType);\n let columnTypeFormatter = this.defaultColumnFormatter;\n if (dataType) {\n columnTypeFormatter =\n this.typeFormatterMap.get(dataType) ?? columnTypeFormatter;\n }\n return columnTypeFormatter;\n }\n\n /**\n * Gets formatted string for a given value, column type and name\n * @param value Value to format\n * @param columnType Column type used to determine the formatting settings\n * @param columnName Column name used to determine the formatting settings\n * @param formatOverride Format object passed to the formatter in place of the format defined in columnFormatMap\n */\n getFormattedString(\n value: unknown,\n columnType: string,\n columnName = '',\n formatOverride?: TableColumnFormat\n ): string {\n if (value == null) {\n return '';\n }\n\n const formatter = this.getColumnTypeFormatter(columnType);\n const format =\n formatOverride || this.getColumnFormat(columnType, columnName);\n\n return formatter.format(value, format ?? undefined);\n }\n\n /**\n * Gets the timeZone name\n * @returns The time zone name E.g. America/New_York\n */\n get timeZone(): string {\n const formatter = this.typeFormatterMap.get(\n TableUtils.dataType.DATETIME\n ) as DateTimeColumnFormatter;\n return formatter?.dhTimeZone?.id;\n }\n}\n\nexport default Formatter;\n"],"file":"Formatter.js"}
|
package/dist/IrisGrid.css
CHANGED
package/dist/IrisGrid.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../src/IrisGridTheme.module.scss","../../components/scss/bootstrap_overrides.scss","../src/IrisGrid.scss","../../../node_modules/bootstrap/scss/_variables.scss"],"names":[],"mappings":"AAAA;AAOA;EACE,SCmBS;EDlBT;EACA,WCCc;EDAd,cCEe;EDDf,wBCeS;EDdT,8BCQS;EDPT,qCCFc;EDGd,uBCPO;EDQP,0BCoDW;EDnDX,yBCUS;EDTT;EACA;EACA,iBAjBgB;EAkBhB,yBCdK;EDeL,gCCKS;EDJT;EACA;EAEA;EACA,qBCFS;EDGT,yBCLS;EDMT,yBCHS;EDIT,kBCRS;EDST,wBCVS;EDWT,yBCZS;EDcT,YCrBe;EDsBf,uBC7BM;ED8BN,uBCjCI;EDkCJ,mBChCO;EDiCP,YCjCO;EDkCP;EACA,kBCrCI;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/IrisGridTheme.module.scss","../../components/scss/bootstrap_overrides.scss","../src/IrisGrid.scss","../../../node_modules/bootstrap/scss/_variables.scss"],"names":[],"mappings":"AAAA;AAOA;EACE,SCmBS;EDlBT;EACA,WCCc;EDAd,cCEe;EDDf,wBCeS;EDdT,8BCQS;EDPT,qCCFc;EDGd,uBCPO;EDQP,0BCoDW;EDnDX,yBCUS;EDTT;EACA;EACA,iBAjBgB;EAkBhB,yBCdK;EDeL,gCCKS;EDJT;EACA;EAEA;EACA,qBCFS;EDGT,yBCLS;EDMT,yBCHS;EDIT,kBCRS;EDST,wBCVS;EDWT,yBCZS;EDcT,YCrBe;EDsBf,uBC7BM;ED8BN,uBCjCI;EDkCJ,mBChCO;EDiCP,YCjCO;EDkCP;EACA,kBCrCI;EDsCJ,mBCpBS;EDuBT;EAKA,yBCrCc;EDsCd,wBCzBS;ED0BT;EAKA;EAKA,4BCxCS;EDyCT,wBC3DI;ED4DJ,mBCnDc;EDqDd,aC3CS;ED4CT,8BC1DO;ED2DP,iCCCW;EDAX;EACA,iBC/CS;EDgDT,mBClDS;EDmDT,yBCrDS;EDsDT,8BC1De;ED4Df,yBCnDS;EDoDT,gCCnDS;EDoDT,8BCpDS;EDqDT,8BClDS;;;ACXX;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA,OA/BsB;EAgCtB,WAhCsB;EAiCtB,YDdO;ECeP;EACA;EAGA;EACA;;AAEA;AAAA;AAAA;EAGE,YDzBK;;AC4BP;EACE;;AAGF;EACE;;AAIJ;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA,eCiEK;;AD9DP;EACE;EACA;EACA;EAEA;EACA;EACA;EACA,MA9Ea;EA+Eb;EACA;;AAEA;EACE;EACA;EACA;EACA;EAKA;EACA;EACA;EACA;;AAGA;EACE;;AAIF;EACE;;AAIJ;EACE,ODnGW;ECoGX,YDxFK;;AC0FL;EACE,YAxGU;;AA2GZ;EACE,ODrHF;;ACsHE;EACE,YA5GgB;;;AAmH1B;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,ODlIS;ECmIT;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA,YDxCW;ECyCX;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;AACA;EACE;EACA;;AAEA;EACE;EACA;;AAEF;EACE;EACA;;AAKA;EACE;;AAEF;EACE;;AAGJ;EACE,OD9KK;;AC+KL;EACE,OD5LQ;;;ACkMhB;EACE,YDvLS;;ACyLP;EACE;EACA;EACA,YD5LK;EC6LL;EACA;;AAEF;EACE,cDjMK;;;ACsMX;EACE;EACA;;;AAGF;EACE;EACA;;AAEA;EACE;;AAEF;EACE;EAEA,YApOuB;;AAsOzB;EACE,YAvOuB;;AAyOzB;EACE,YA1OuB;EA2OvB;;AAEF;EAEE;;AAGF;EACE;;AAEF;EACE;EAEA,WA5PsB;;AA8PxB;EACE,WA/PsB;;AAiQxB;EACE,WAlQsB;EAmQtB;;AAEF;EAEE;;;AAIJ;EACE,kBDzNa;;AC2Nb;EAEE,kBDzQY","file":"IrisGrid.css"}
|
package/dist/IrisGrid.d.ts
CHANGED
|
@@ -265,6 +265,7 @@ export class IrisGrid extends React.Component<any, any, any> {
|
|
|
265
265
|
reverse(reverseType: any): void;
|
|
266
266
|
isReversible(): any;
|
|
267
267
|
toggleFilterBar(focusIndex?: any): void;
|
|
268
|
+
isTableSearchAvailable(): any;
|
|
268
269
|
toggleSearchBar(): void;
|
|
269
270
|
commitPending(): Promise<void>;
|
|
270
271
|
discardPending(): Promise<void>;
|
|
@@ -355,6 +356,8 @@ export namespace IrisGrid {
|
|
|
355
356
|
}>>;
|
|
356
357
|
const isSelectingColumn: PropTypes.Requireable<boolean>;
|
|
357
358
|
const isSelectingPartition: PropTypes.Requireable<boolean>;
|
|
359
|
+
const isStuckToBottom: PropTypes.Requireable<boolean>;
|
|
360
|
+
const isStuckToRight: PropTypes.Requireable<boolean>;
|
|
358
361
|
const columnSelectionValidator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
359
362
|
const columnAllowedCursor: PropTypes.Requireable<string>;
|
|
360
363
|
const columnNotAllowedCursor: PropTypes.Requireable<string>;
|
|
@@ -441,6 +444,10 @@ export namespace IrisGrid {
|
|
|
441
444
|
export { isSelectingColumn_1 as isSelectingColumn };
|
|
442
445
|
const isSelectingPartition_1: boolean;
|
|
443
446
|
export { isSelectingPartition_1 as isSelectingPartition };
|
|
447
|
+
const isStuckToBottom_1: boolean;
|
|
448
|
+
export { isStuckToBottom_1 as isStuckToBottom };
|
|
449
|
+
const isStuckToRight_1: boolean;
|
|
450
|
+
export { isStuckToRight_1 as isStuckToRight };
|
|
444
451
|
const columnSelectionValidator_1: null;
|
|
445
452
|
export { columnSelectionValidator_1 as columnSelectionValidator };
|
|
446
453
|
const columnAllowedCursor_1: null;
|
package/dist/IrisGrid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IrisGrid.d.ts","sourceRoot":"","sources":["../src/IrisGrid.jsx"],"names":[],"mappings":"AAiHA;IACE,2BAAyB;IAEzB,2BAAyB;IAEzB,mCAAiC;IAEjC,sHAOC;IAED,wBA0QC;
|
|
1
|
+
{"version":3,"file":"IrisGrid.d.ts","sourceRoot":"","sources":["../src/IrisGrid.jsx"],"names":[],"mappings":"AAiHA;IACE,2BAAyB;IAEzB,2BAAyB;IAEzB,mCAAiC;IAEjC,sHAOC;IAED,wBA0QC;IAm2CD,yEAOC;IAED,2FA0BC;IAED,iCAEC;IAED,4CAEC;IAED,iDAeC;IA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;QACD,mDAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;QAYd,6CAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAcb,2CAAQ"}
|
package/dist/IrisGrid.js
CHANGED
|
@@ -1596,14 +1596,35 @@ export class IrisGrid extends Component {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
|
+
isTableSearchAvailable() {
|
|
1600
|
+
var _model$layoutHints3, _dh$SearchDisplayMode, _dh$SearchDisplayMode2;
|
|
1601
|
+
|
|
1602
|
+
var {
|
|
1603
|
+
model,
|
|
1604
|
+
canToggleSearch
|
|
1605
|
+
} = this.props;
|
|
1606
|
+
var searchDisplayMode = model === null || model === void 0 ? void 0 : (_model$layoutHints3 = model.layoutHints) === null || _model$layoutHints3 === void 0 ? void 0 : _model$layoutHints3.searchDisplayMode;
|
|
1607
|
+
|
|
1608
|
+
if (searchDisplayMode === ((_dh$SearchDisplayMode = dh.SearchDisplayMode) === null || _dh$SearchDisplayMode === void 0 ? void 0 : _dh$SearchDisplayMode.SEARCH_DISPLAY_HIDE)) {
|
|
1609
|
+
return false;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
if (searchDisplayMode === ((_dh$SearchDisplayMode2 = dh.SearchDisplayMode) === null || _dh$SearchDisplayMode2 === void 0 ? void 0 : _dh$SearchDisplayMode2.SEARCH_DISPLAY_SHOW)) {
|
|
1613
|
+
return true;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
return canToggleSearch;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1599
1619
|
toggleSearchBar() {
|
|
1600
1620
|
var {
|
|
1601
1621
|
showSearchBar
|
|
1602
1622
|
} = this.state;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1623
|
+
|
|
1624
|
+
if (!this.isTableSearchAvailable()) {
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1607
1628
|
var update = !showSearchBar;
|
|
1608
1629
|
this.setState({
|
|
1609
1630
|
showSearchBar: update
|
|
@@ -2393,14 +2414,15 @@ export class IrisGrid extends Component {
|
|
|
2393
2414
|
customFilters,
|
|
2394
2415
|
getDownloadWorker,
|
|
2395
2416
|
isSelectingColumn,
|
|
2417
|
+
isStuckToBottom,
|
|
2418
|
+
isStuckToRight,
|
|
2396
2419
|
model,
|
|
2397
2420
|
name,
|
|
2398
2421
|
onlyFetchVisibleColumns,
|
|
2399
2422
|
alwaysFetchColumns,
|
|
2400
2423
|
advancedSettings,
|
|
2401
2424
|
onAdvancedSettingsChange,
|
|
2402
|
-
canDownloadCsv
|
|
2403
|
-
canToggleSearch
|
|
2425
|
+
canDownloadCsv
|
|
2404
2426
|
} = this.props;
|
|
2405
2427
|
var {
|
|
2406
2428
|
metricCalculator,
|
|
@@ -2658,7 +2680,12 @@ export class IrisGrid extends Component {
|
|
|
2658
2680
|
interactive: true,
|
|
2659
2681
|
options: popperOptions,
|
|
2660
2682
|
ref: this.handleTooltipRef,
|
|
2661
|
-
referenceObject: virtualReference
|
|
2683
|
+
referenceObject: virtualReference,
|
|
2684
|
+
onExited: () => {
|
|
2685
|
+
this.setState({
|
|
2686
|
+
shownColumnTooltip: null
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2662
2689
|
}, /*#__PURE__*/React.createElement(ColumnStatistics, {
|
|
2663
2690
|
model: model,
|
|
2664
2691
|
column: column,
|
|
@@ -2827,7 +2854,7 @@ export class IrisGrid extends Component {
|
|
|
2827
2854
|
}
|
|
2828
2855
|
}
|
|
2829
2856
|
|
|
2830
|
-
var optionItems = this.getCachedOptionItems(model.isChartBuilderAvailable, model.isCustomColumnsAvailable, model.isRollupAvailable, model.isTotalsAvailable, model.isSelectDistinctAvailable, model.isExportAvailable, this.toggleFilterBarAction, this.toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv,
|
|
2857
|
+
var optionItems = this.getCachedOptionItems(model.isChartBuilderAvailable, model.isCustomColumnsAvailable, model.isRollupAvailable, model.isTotalsAvailable, model.isSelectDistinctAvailable, model.isExportAvailable, this.toggleFilterBarAction, this.toggleSearchBarAction, isFilterBarShown, showSearchBar, canDownloadCsv, this.isTableSearchAvailable());
|
|
2831
2858
|
var openOptionsStack = openOptions.map(option => {
|
|
2832
2859
|
switch (option.type) {
|
|
2833
2860
|
case OptionType.CHART_BUILDER:
|
|
@@ -2973,6 +3000,8 @@ export class IrisGrid extends Component {
|
|
|
2973
3000
|
this.grid = grid;
|
|
2974
3001
|
},
|
|
2975
3002
|
isStickyBottom: !model.isEditable,
|
|
3003
|
+
isStuckToBottom: isStuckToBottom,
|
|
3004
|
+
isStuckToRight: isStuckToRight,
|
|
2976
3005
|
metricCalculator: metricCalculator,
|
|
2977
3006
|
model: model,
|
|
2978
3007
|
keyHandlers: keyHandlers,
|
|
@@ -3148,6 +3177,8 @@ IrisGrid.propTypes = {
|
|
|
3148
3177
|
}),
|
|
3149
3178
|
isSelectingColumn: PropTypes.bool,
|
|
3150
3179
|
isSelectingPartition: PropTypes.bool,
|
|
3180
|
+
isStuckToBottom: PropTypes.bool,
|
|
3181
|
+
isStuckToRight: PropTypes.bool,
|
|
3151
3182
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
3152
3183
|
columnSelectionValidator: PropTypes.func,
|
|
3153
3184
|
columnAllowedCursor: PropTypes.string,
|
|
@@ -3206,6 +3237,8 @@ IrisGrid.defaultProps = {
|
|
|
3206
3237
|
onSelectionChanged: () => {},
|
|
3207
3238
|
isSelectingColumn: false,
|
|
3208
3239
|
isSelectingPartition: false,
|
|
3240
|
+
isStuckToBottom: false,
|
|
3241
|
+
isStuckToRight: false,
|
|
3209
3242
|
columnSelectionValidator: null,
|
|
3210
3243
|
columnAllowedCursor: null,
|
|
3211
3244
|
columnNotAllowedCursor: null,
|