@deephaven/iris-grid 0.85.11 → 0.85.13
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/CommonTypes.d.ts +6 -1
- package/dist/CommonTypes.d.ts.map +1 -1
- package/dist/CommonTypes.js.map +1 -1
- package/dist/IrisGridTableModelTemplate.d.ts +0 -2
- package/dist/IrisGridTableModelTemplate.d.ts.map +1 -1
- package/dist/IrisGridTableModelTemplate.js +4 -13
- package/dist/IrisGridTableModelTemplate.js.map +1 -1
- package/dist/IrisGridTreeTableModel.d.ts.map +1 -1
- package/dist/IrisGridTreeTableModel.js.map +1 -1
- package/dist/IrisGridUtils.d.ts +1 -1
- package/dist/IrisGridUtils.d.ts.map +1 -1
- package/dist/IrisGridUtils.js +15 -12
- package/dist/IrisGridUtils.js.map +1 -1
- package/dist/format-context-menus/DecimalFormatContextMenu.d.ts.map +1 -1
- package/dist/format-context-menus/DecimalFormatContextMenu.js +3 -0
- package/dist/format-context-menus/DecimalFormatContextMenu.js.map +1 -1
- package/dist/format-context-menus/IntegerFormatContextMenu.d.ts.map +1 -1
- package/dist/format-context-menus/IntegerFormatContextMenu.js +3 -0
- package/dist/format-context-menus/IntegerFormatContextMenu.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntegerFormatContextMenu.js","names":["IntegerColumnFormatter","FormatContextMenuUtils","IntegerFormatContextMenu","getOptions","dh","selectedFormat","onCustomFormatChange","formatItems","format","
|
|
1
|
+
{"version":3,"file":"IntegerFormatContextMenu.js","names":["IntegerColumnFormatter","FormatContextMenuUtils","IntegerFormatContextMenu","getOptions","dh","selectedFormat","onCustomFormatChange","formatItems","format","FORMAT_THOUSANDS","group","presetGroup","FORMAT_MILLIONS","FORMAT_SCIENTIFIC_NOTATION","defaultFormatOption","makeOption","defaultGroup","isDefaultSelected","presetFormatOptions","map","item","label","isSameFormat","isCustomSelected","customFormat","makeCustomFormat","customFormatOption","makeCustomFormatOption","customGroup","DEFAULT_FORMAT_STRING","formatString","newCustomFormat","isValid","_defineProperty"],"sources":["../../src/format-context-menus/IntegerFormatContextMenu.ts"],"sourcesContent":["import {\n IntegerColumnFormat,\n IntegerColumnFormatter,\n} from '@deephaven/jsapi-utils';\nimport type { dh as DhType } from '@deephaven/jsapi-types';\nimport FormatContextMenuUtils, {\n FormatContextMenuOption,\n} from './FormatContextMenuUtils';\n\nclass IntegerFormatContextMenu {\n static defaultGroup = 10;\n\n static presetGroup = 20;\n\n static customGroup = 30;\n\n /**\n * Creates list of formatting options for Integer context menu\n * @param dh JSAPI instance\n * @param selectedFormat Selected format object, null for no selected format\n * @param onCustomFormatChange Callback to call when the custom format is changed\n * @returns Array of formatting options for the context menu\n */\n static getOptions(\n dh: typeof DhType,\n selectedFormat: IntegerColumnFormat,\n onCustomFormatChange: (value: IntegerColumnFormat | null) => void\n ): FormatContextMenuOption[] {\n const formatItems = [\n {\n format: IntegerColumnFormatter.FORMAT_THOUSANDS,\n group: IntegerFormatContextMenu.presetGroup,\n },\n {\n format: IntegerColumnFormatter.FORMAT_MILLIONS,\n group: IntegerFormatContextMenu.presetGroup,\n },\n {\n format: IntegerColumnFormatter.FORMAT_SCIENTIFIC_NOTATION,\n group: IntegerFormatContextMenu.presetGroup,\n },\n ];\n\n const defaultFormatOption = FormatContextMenuUtils.makeOption(\n 'Default',\n null,\n IntegerFormatContextMenu.defaultGroup,\n FormatContextMenuUtils.isDefaultSelected(selectedFormat)\n );\n\n const presetFormatOptions = formatItems.map(item =>\n FormatContextMenuUtils.makeOption(\n item.format.label,\n item.format,\n item.group,\n IntegerColumnFormatter.isSameFormat(item.format, selectedFormat)\n )\n );\n\n const isCustomSelected =\n FormatContextMenuUtils.isCustomSelected(selectedFormat);\n\n const customFormat = isCustomSelected\n ? selectedFormat\n : IntegerColumnFormatter.makeCustomFormat();\n\n const customFormatOption = FormatContextMenuUtils.makeCustomFormatOption(\n customFormat,\n IntegerFormatContextMenu.customGroup,\n IntegerColumnFormatter.DEFAULT_FORMAT_STRING,\n isCustomSelected,\n formatString => {\n if (formatString != null) {\n const newCustomFormat =\n IntegerColumnFormatter.makeCustomFormat(formatString);\n if (IntegerColumnFormatter.isValid(dh, newCustomFormat)) {\n onCustomFormatChange(newCustomFormat);\n }\n } else {\n onCustomFormatChange(null);\n }\n }\n );\n\n return [defaultFormatOption, ...presetFormatOptions, customFormatOption];\n }\n}\n\nexport default IntegerFormatContextMenu;\n"],"mappings":";;;AAAA,SAEEA,sBAAsB,QACjB,wBAAwB;AAAC,OAEzBC,sBAAsB;AAI7B,MAAMC,wBAAwB,CAAC;EAO7B;AACF;AACA;AACA;AACA;AACA;AACA;EACE,OAAOC,UAAUA,CACfC,EAAiB,EACjBC,cAAmC,EACnCC,oBAAiE,EACtC;IAC3B,IAAMC,WAAW,GAAG,CAClB;MACEC,MAAM,EAAER,sBAAsB,CAACS,gBAAgB;MAC/CC,KAAK,EAAER,wBAAwB,CAACS;IAClC,CAAC,EACD;MACEH,MAAM,EAAER,sBAAsB,CAACY,eAAe;MAC9CF,KAAK,EAAER,wBAAwB,CAACS;IAClC,CAAC,EACD;MACEH,MAAM,EAAER,sBAAsB,CAACa,0BAA0B;MACzDH,KAAK,EAAER,wBAAwB,CAACS;IAClC,CAAC,CACF;IAED,IAAMG,mBAAmB,GAAGb,sBAAsB,CAACc,UAAU,CAC3D,SAAS,EACT,IAAI,EACJb,wBAAwB,CAACc,YAAY,EACrCf,sBAAsB,CAACgB,iBAAiB,CAACZ,cAAc,CACzD,CAAC;IAED,IAAMa,mBAAmB,GAAGX,WAAW,CAACY,GAAG,CAACC,IAAI,IAC9CnB,sBAAsB,CAACc,UAAU,CAC/BK,IAAI,CAACZ,MAAM,CAACa,KAAK,EACjBD,IAAI,CAACZ,MAAM,EACXY,IAAI,CAACV,KAAK,EACVV,sBAAsB,CAACsB,YAAY,CAACF,IAAI,CAACZ,MAAM,EAAEH,cAAc,CACjE,CACF,CAAC;IAED,IAAMkB,gBAAgB,GACpBtB,sBAAsB,CAACsB,gBAAgB,CAAClB,cAAc,CAAC;IAEzD,IAAMmB,YAAY,GAAGD,gBAAgB,GACjClB,cAAc,GACdL,sBAAsB,CAACyB,gBAAgB,CAAC,CAAC;IAE7C,IAAMC,kBAAkB,GAAGzB,sBAAsB,CAAC0B,sBAAsB,CACtEH,YAAY,EACZtB,wBAAwB,CAAC0B,WAAW,EACpC5B,sBAAsB,CAAC6B,qBAAqB,EAC5CN,gBAAgB,EAChBO,YAAY,IAAI;MACd,IAAIA,YAAY,IAAI,IAAI,EAAE;QACxB,IAAMC,eAAe,GACnB/B,sBAAsB,CAACyB,gBAAgB,CAACK,YAAY,CAAC;QACvD,IAAI9B,sBAAsB,CAACgC,OAAO,CAAC5B,EAAE,EAAE2B,eAAe,CAAC,EAAE;UACvDzB,oBAAoB,CAACyB,eAAe,CAAC;QACvC;MACF,CAAC,MAAM;QACLzB,oBAAoB,CAAC,IAAI,CAAC;MAC5B;IACF,CACF,CAAC;IAED,OAAO,CAACQ,mBAAmB,EAAE,GAAGI,mBAAmB,EAAEQ,kBAAkB,CAAC;EAC1E;AACF;AAACO,eAAA,CA7EK/B,wBAAwB,kBACN,EAAE;AAAA+B,eAAA,CADpB/B,wBAAwB,iBAGP,EAAE;AAAA+B,eAAA,CAHnB/B,wBAAwB,iBAKP,EAAE;AA0EzB,eAAeA,wBAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/iris-grid",
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.13",
|
|
4
4
|
"description": "Deephaven Iris Grid",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@deephaven/components": "^0.85.
|
|
35
|
-
"@deephaven/console": "^0.85.
|
|
34
|
+
"@deephaven/components": "^0.85.13",
|
|
35
|
+
"@deephaven/console": "^0.85.13",
|
|
36
36
|
"@deephaven/filters": "^0.85.0",
|
|
37
|
-
"@deephaven/grid": "^0.85.
|
|
37
|
+
"@deephaven/grid": "^0.85.13",
|
|
38
38
|
"@deephaven/icons": "^0.85.0",
|
|
39
|
-
"@deephaven/jsapi-components": "^0.85.
|
|
39
|
+
"@deephaven/jsapi-components": "^0.85.13",
|
|
40
40
|
"@deephaven/jsapi-types": "^1.0.0-dev0.34.0",
|
|
41
|
-
"@deephaven/jsapi-utils": "^0.85.
|
|
41
|
+
"@deephaven/jsapi-utils": "^0.85.12",
|
|
42
42
|
"@deephaven/log": "^0.85.0",
|
|
43
43
|
"@deephaven/react-hooks": "^0.85.11",
|
|
44
44
|
"@deephaven/storage": "^0.85.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "1d8d9c3d4093d7befee5d6ba66a8d732b748bce7"
|
|
83
83
|
}
|