@deephaven/iris-grid 1.22.1-alpha-pivot-builder.0 → 1.22.1

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 (50) hide show
  1. package/README.md +1 -284
  2. package/dist/CommonTypes.d.ts +2 -62
  3. package/dist/CommonTypes.d.ts.map +1 -1
  4. package/dist/CommonTypes.js.map +1 -1
  5. package/dist/IrisGrid.d.ts +2 -85
  6. package/dist/IrisGrid.d.ts.map +1 -1
  7. package/dist/IrisGrid.js +66 -246
  8. package/dist/IrisGrid.js.map +1 -1
  9. package/dist/IrisGridModel.d.ts +1 -30
  10. package/dist/IrisGridModel.d.ts.map +1 -1
  11. package/dist/IrisGridModel.js +1 -36
  12. package/dist/IrisGridModel.js.map +1 -1
  13. package/dist/IrisGridProxyModel.d.ts.map +1 -1
  14. package/dist/IrisGridProxyModel.js +2 -34
  15. package/dist/IrisGridProxyModel.js.map +1 -1
  16. package/dist/IrisGridTextCellRenderer.d.ts.map +1 -1
  17. package/dist/IrisGridTextCellRenderer.js +1 -1
  18. package/dist/IrisGridTextCellRenderer.js.map +1 -1
  19. package/dist/IrisGridUtils.d.ts +2 -25
  20. package/dist/IrisGridUtils.d.ts.map +1 -1
  21. package/dist/IrisGridUtils.js +42 -99
  22. package/dist/IrisGridUtils.js.map +1 -1
  23. package/dist/LazyIrisGrid.d.ts +1 -1
  24. package/dist/index.d.ts +0 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +0 -1
  27. package/dist/index.js.map +1 -1
  28. package/dist/sidebar/OptionType.d.ts +0 -8
  29. package/dist/sidebar/OptionType.d.ts.map +1 -1
  30. package/dist/sidebar/OptionType.js +0 -7
  31. package/dist/sidebar/OptionType.js.map +1 -1
  32. package/dist/sidebar/aggregations/AggregationUtils.d.ts.map +1 -1
  33. package/dist/sidebar/aggregations/AggregationUtils.js +2 -1
  34. package/dist/sidebar/aggregations/AggregationUtils.js.map +1 -1
  35. package/dist/sidebar/index.d.ts +2 -3
  36. package/dist/sidebar/index.d.ts.map +1 -1
  37. package/dist/sidebar/index.js.map +1 -1
  38. package/package.json +16 -16
  39. package/dist/IrisGridModelWidgetProps.d.ts +0 -26
  40. package/dist/IrisGridModelWidgetProps.d.ts.map +0 -1
  41. package/dist/IrisGridModelWidgetProps.js +0 -2
  42. package/dist/IrisGridModelWidgetProps.js.map +0 -1
  43. package/dist/sidebar/IrisGridTableOptionsWidgetProps.d.ts +0 -22
  44. package/dist/sidebar/IrisGridTableOptionsWidgetProps.d.ts.map +0 -1
  45. package/dist/sidebar/IrisGridTableOptionsWidgetProps.js +0 -2
  46. package/dist/sidebar/IrisGridTableOptionsWidgetProps.js.map +0 -1
  47. package/dist/sidebar/PluginTableOptionsErrorBoundary.d.ts +0 -30
  48. package/dist/sidebar/PluginTableOptionsErrorBoundary.d.ts.map +0 -1
  49. package/dist/sidebar/PluginTableOptionsErrorBoundary.js +0 -60
  50. package/dist/sidebar/PluginTableOptionsErrorBoundary.js.map +0 -1
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["IrisGrid","default","ColumnHeaderGroup","SHORTCUTS","IrisGridModel","IrisGridTableModel","IrisGridPartitionedTableModel","IrisGridTreeTableModel","IrisGridTableModelTemplate","IrisGridModelFactory","createDefaultIrisGridTheme","IrisGridTestUtils","IrisGridUtils","IrisGridCellRendererUtils"],"sources":["../src/index.ts"],"sourcesContent":["import IrisGrid from './LazyIrisGrid';\n\nexport default IrisGrid;\nexport { IrisGrid };\nexport * from './RemoteComponentModules';\nexport * from './sidebar';\nexport * from './AdvancedFilterCreator';\nexport * from './CommonTypes';\nexport * from './mousehandlers';\nexport * from './ColumnHeaderGroup';\nexport { default as ColumnHeaderGroup } from './ColumnHeaderGroup';\nexport * from './PartitionedGridModel';\nexport * from './IrisGrid';\nexport type { default as IrisGridType } from './IrisGrid';\nexport { default as SHORTCUTS } from './IrisGridShortcuts';\nexport { default as IrisGridModel } from './IrisGridModel';\nexport * from './IrisGridModel';\nexport * from './IrisGridModelWidgetProps';\nexport { default as IrisGridTableModel } from './IrisGridTableModel';\nexport * from './IrisGridTableModel';\nexport { default as IrisGridPartitionedTableModel } from './IrisGridPartitionedTableModel';\nexport { default as IrisGridTreeTableModel } from './IrisGridTreeTableModel';\nexport { default as IrisGridTableModelTemplate } from './IrisGridTableModelTemplate';\nexport * from './IrisGridTreeTableModel';\nexport * from './IrisGridTableModelTemplate';\nexport { default as IrisGridModelFactory } from './IrisGridModelFactory';\nexport { createDefaultIrisGridTheme } from './IrisGridTheme';\nexport type { IrisGridThemeType } from './IrisGridTheme';\nexport * from './IrisGridThemeProvider';\nexport { default as IrisGridTestUtils } from './IrisGridTestUtils';\nexport { default as IrisGridUtils } from './IrisGridUtils';\nexport * from './IrisGridUtils';\nexport * from './IrisGridMetricCalculator';\nexport * from './IrisGridRenderer';\nexport * from './IrisGridCacheUtils';\nexport { default as IrisGridCellRendererUtils } from './IrisGridCellRendererUtils';\n"],"mappings":"OAAOA,QAAQ;AAEf,eAAeA,QAAQ;AACvB,SAASA,QAAQ;AAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAOXC,OAAO,IAAIC,iBAAiB;AAAA;AAAA;AAAA,SAI5BD,OAAO,IAAIE,SAAS;AAAA,SACpBF,OAAO,IAAIG,aAAa;AAAA;AAAA;AAAA,SAGxBH,OAAO,IAAII,kBAAkB;AAAA;AAAA,SAE7BJ,OAAO,IAAIK,6BAA6B;AAAA,SACxCL,OAAO,IAAIM,sBAAsB;AAAA,SACjCN,OAAO,IAAIO,0BAA0B;AAAA;AAAA;AAAA,SAGrCP,OAAO,IAAIQ,oBAAoB;AAAA,SAC/BC,0BAA0B;AAAA;AAAA,SAG1BT,OAAO,IAAIU,iBAAiB;AAAA,SAC5BV,OAAO,IAAIW,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA,SAKxBX,OAAO,IAAIY,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["IrisGrid","default","ColumnHeaderGroup","SHORTCUTS","IrisGridModel","IrisGridTableModel","IrisGridPartitionedTableModel","IrisGridTreeTableModel","IrisGridTableModelTemplate","IrisGridModelFactory","createDefaultIrisGridTheme","IrisGridTestUtils","IrisGridUtils","IrisGridCellRendererUtils"],"sources":["../src/index.ts"],"sourcesContent":["import IrisGrid from './LazyIrisGrid';\n\nexport default IrisGrid;\nexport { IrisGrid };\nexport * from './RemoteComponentModules';\nexport * from './sidebar';\nexport * from './AdvancedFilterCreator';\nexport * from './CommonTypes';\nexport * from './mousehandlers';\nexport * from './ColumnHeaderGroup';\nexport { default as ColumnHeaderGroup } from './ColumnHeaderGroup';\nexport * from './PartitionedGridModel';\nexport * from './IrisGrid';\nexport type { default as IrisGridType } from './IrisGrid';\nexport { default as SHORTCUTS } from './IrisGridShortcuts';\nexport { default as IrisGridModel } from './IrisGridModel';\nexport * from './IrisGridModel';\nexport { default as IrisGridTableModel } from './IrisGridTableModel';\nexport * from './IrisGridTableModel';\nexport { default as IrisGridPartitionedTableModel } from './IrisGridPartitionedTableModel';\nexport { default as IrisGridTreeTableModel } from './IrisGridTreeTableModel';\nexport { default as IrisGridTableModelTemplate } from './IrisGridTableModelTemplate';\nexport * from './IrisGridTreeTableModel';\nexport * from './IrisGridTableModelTemplate';\nexport { default as IrisGridModelFactory } from './IrisGridModelFactory';\nexport { createDefaultIrisGridTheme } from './IrisGridTheme';\nexport type { IrisGridThemeType } from './IrisGridTheme';\nexport * from './IrisGridThemeProvider';\nexport { default as IrisGridTestUtils } from './IrisGridTestUtils';\nexport { default as IrisGridUtils } from './IrisGridUtils';\nexport * from './IrisGridUtils';\nexport * from './IrisGridMetricCalculator';\nexport * from './IrisGridRenderer';\nexport * from './IrisGridCacheUtils';\nexport { default as IrisGridCellRendererUtils } from './IrisGridCellRendererUtils';\n"],"mappings":"OAAOA,QAAQ;AAEf,eAAeA,QAAQ;AACvB,SAASA,QAAQ;AAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAOXC,OAAO,IAAIC,iBAAiB;AAAA;AAAA;AAAA,SAI5BD,OAAO,IAAIE,SAAS;AAAA,SACpBF,OAAO,IAAIG,aAAa;AAAA;AAAA,SAExBH,OAAO,IAAII,kBAAkB;AAAA;AAAA,SAE7BJ,OAAO,IAAIK,6BAA6B;AAAA,SACxCL,OAAO,IAAIM,sBAAsB;AAAA,SACjCN,OAAO,IAAIO,0BAA0B;AAAA;AAAA;AAAA,SAGrCP,OAAO,IAAIQ,oBAAoB;AAAA,SAC/BC,0BAA0B;AAAA;AAAA,SAG1BT,OAAO,IAAIU,iBAAiB;AAAA,SAC5BV,OAAO,IAAIW,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA,SAKxBX,OAAO,IAAIY,yBAAyB","ignoreList":[]}
@@ -14,13 +14,5 @@ declare enum OptionType {
14
14
  CONDITIONAL_FORMATTING_EDIT = "CONDITIONAL_FORMATTING_EDIT",
15
15
  GOTO = "GOTO"
16
16
  }
17
- /**
18
- * Identifier for a sidebar entry. Built-in entries use the closed
19
- * `OptionType` enum; plugin-supplied entries use a namespaced string
20
- * (convention: `plugin:<plugin-name>:<id>`). The page-switch
21
- * distinguishes the two by the presence of `configPage` on the
22
- * `OptionItem`, not by inspecting the key.
23
- */
24
- export type OptionItemKey = OptionType | string;
25
17
  export default OptionType;
26
18
  //# sourceMappingURL=OptionType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../src/sidebar/OptionType.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACb,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,gBAAgB,sBAAsB;IACtC,aAAa,kBAAkB;IAC/B,qBAAqB,0BAA0B;IAC/C,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,2BAA2B,gCAAgC;IAC3D,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,IAAI,SAAS;CACd;AAED;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"OptionType.d.ts","sourceRoot":"","sources":["../../src/sidebar/OptionType.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU;IACb,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,gBAAgB,sBAAsB;IACtC,aAAa,kBAAkB;IAC/B,qBAAqB,0BAA0B;IAC/C,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,2BAA2B,gCAAgC;IAC3D,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,IAAI,SAAS;CACd;AAED,eAAe,UAAU,CAAC"}
@@ -15,12 +15,5 @@ var OptionType = /*#__PURE__*/function (OptionType) {
15
15
  OptionType["GOTO"] = "GOTO";
16
16
  return OptionType;
17
17
  }(OptionType || {});
18
- /**
19
- * Identifier for a sidebar entry. Built-in entries use the closed
20
- * `OptionType` enum; plugin-supplied entries use a namespaced string
21
- * (convention: `plugin:<plugin-name>:<id>`). The page-switch
22
- * distinguishes the two by the presence of `configPage` on the
23
- * `OptionItem`, not by inspecting the key.
24
- */
25
18
  export default OptionType;
26
19
  //# sourceMappingURL=OptionType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OptionType.js","names":["OptionType"],"sources":["../../src/sidebar/OptionType.ts"],"sourcesContent":["enum OptionType {\n ADVANCED_SETTINGS = 'ADVANCED_SETTINGS',\n AGGREGATIONS = 'AGGREGATIONS',\n AGGREGATION_EDIT = 'AGGREGATIONS_EDIT',\n CHART_BUILDER = 'CHART_BUILDER',\n CUSTOM_COLUMN_BUILDER = 'CUSTOM_COLUMN_BUILDER',\n QUICK_FILTERS = 'QUICK_FILTERS',\n ROLLUP_ROWS = 'ROLLUP_ROWS',\n SEARCH_BAR = 'SEARCH_BAR',\n SELECT_DISTINCT = 'SELECT_DISTINCT',\n TABLE_EXPORTER = 'TABLE_EXPORTER',\n VISIBILITY_ORDERING_BUILDER = 'VISIBILITY_ORDERING_BUILDER',\n CONDITIONAL_FORMATTING = 'CONDITIONAL_FORMATTING',\n CONDITIONAL_FORMATTING_EDIT = 'CONDITIONAL_FORMATTING_EDIT',\n GOTO = 'GOTO',\n}\n\n/**\n * Identifier for a sidebar entry. Built-in entries use the closed\n * `OptionType` enum; plugin-supplied entries use a namespaced string\n * (convention: `plugin:<plugin-name>:<id>`). The page-switch\n * distinguishes the two by the presence of `configPage` on the\n * `OptionItem`, not by inspecting the key.\n */\nexport type OptionItemKey = OptionType | string;\n\nexport default OptionType;\n"],"mappings":"IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU;AAiBf;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,eAAeA,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"OptionType.js","names":["OptionType"],"sources":["../../src/sidebar/OptionType.ts"],"sourcesContent":["enum OptionType {\n ADVANCED_SETTINGS = 'ADVANCED_SETTINGS',\n AGGREGATIONS = 'AGGREGATIONS',\n AGGREGATION_EDIT = 'AGGREGATIONS_EDIT',\n CHART_BUILDER = 'CHART_BUILDER',\n CUSTOM_COLUMN_BUILDER = 'CUSTOM_COLUMN_BUILDER',\n QUICK_FILTERS = 'QUICK_FILTERS',\n ROLLUP_ROWS = 'ROLLUP_ROWS',\n SEARCH_BAR = 'SEARCH_BAR',\n SELECT_DISTINCT = 'SELECT_DISTINCT',\n TABLE_EXPORTER = 'TABLE_EXPORTER',\n VISIBILITY_ORDERING_BUILDER = 'VISIBILITY_ORDERING_BUILDER',\n CONDITIONAL_FORMATTING = 'CONDITIONAL_FORMATTING',\n CONDITIONAL_FORMATTING_EDIT = 'CONDITIONAL_FORMATTING_EDIT',\n GOTO = 'GOTO',\n}\n\nexport default OptionType;\n"],"mappings":"IAAKA,UAAU,0BAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA,EAAVA,UAAU;AAiBf,eAAeA,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"AggregationUtils.d.ts","sourceRoot":"","sources":["../../../src/sidebar/aggregations/AggregationUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,kBAAkB,wBAe9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,SAAU,oBAAoB,KAAG,OAM9D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SAAU,oBAAoB,KAAG,OAO/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,kBACZ,oBAAoB,cACvB,MAAM,KACjB,OA2BF,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,SAAS,aAAa,EAAE,iBAClB,oBAAoB,KAClC,aAAa,EAGb,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YACzB,SAAS,aAAa,EAAE,iBAClB,oBAAoB,YACzB,SAAS,MAAM,EAAE,UACnB,OAAO,KACd,MAAM,EAGwD,CAAC;;sCA/CjD,oBAAoB,cACvB,MAAM,KACjB,OAAO;8BA9B8B,oBAAoB,KAAG,OAAO;+BAa7B,oBAAoB,KAAG,OAAO;kCA+C5D,SAAS,aAAa,EAAE,iBAClB,oBAAoB,KAClC,aAAa,EAAE;uCAMP,SAAS,aAAa,EAAE,iBAClB,oBAAoB,YACzB,SAAS,MAAM,EAAE,UACnB,OAAO,KACd,MAAM,EAAE;;AAKX,wBAME"}
1
+ {"version":3,"file":"AggregationUtils.d.ts","sourceRoot":"","sources":["../../../src/sidebar/aggregations/AggregationUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,kBAAkB,wBAe9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,SAAU,oBAAoB,KAAG,OAM9D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SAAU,oBAAoB,KAAG,OAO/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,kBACZ,oBAAoB,cACvB,MAAM,KACjB,OA4BF,CAAC;AAEF,eAAO,MAAM,kBAAkB,YACpB,SAAS,aAAa,EAAE,iBAClB,oBAAoB,KAClC,aAAa,EAGb,CAAC;AAEJ,eAAO,MAAM,uBAAuB,YACzB,SAAS,aAAa,EAAE,iBAClB,oBAAoB,YACzB,SAAS,MAAM,EAAE,UACnB,OAAO,KACd,MAAM,EAGwD,CAAC;;sCAhDjD,oBAAoB,cACvB,MAAM,KACjB,OAAO;8BA9B8B,oBAAoB,KAAG,OAAO;+BAa7B,oBAAoB,KAAG,OAAO;kCAgD5D,SAAS,aAAa,EAAE,iBAClB,oBAAoB,KAClC,aAAa,EAAE;uCAMP,SAAS,aAAa,EAAE,iBAClB,oBAAoB,YACzB,SAAS,MAAM,EAAE,UACnB,OAAO,KACd,MAAM,EAAE;;AAKX,wBAME"}
@@ -39,10 +39,11 @@ export var isValidOperation = (operationType, columnType) => {
39
39
  case AggregationOperation.COUNT:
40
40
  case AggregationOperation.FIRST:
41
41
  case AggregationOperation.LAST:
42
+ return true;
42
43
  case AggregationOperation.COUNT_DISTINCT:
43
44
  case AggregationOperation.DISTINCT:
44
45
  case AggregationOperation.UNIQUE:
45
- return true;
46
+ return !TableUtils.isArrayType(columnType);
46
47
  case AggregationOperation.MEDIAN:
47
48
  case AggregationOperation.MIN:
48
49
  case AggregationOperation.MAX:
@@ -1 +1 @@
1
- {"version":3,"file":"AggregationUtils.js","names":["TableUtils","AggregationOperation","SELECTABLE_OPTIONS","SUM","ABS_SUM","MIN","MAX","VAR","AVG","MEDIAN","STD","FIRST","LAST","COUNT_DISTINCT","DISTINCT","COUNT","UNIQUE","isRollupOperation","type","isRollupProhibited","isValidOperation","operationType","columnType","isNumberType","isDateType","isTextType","SKIP","filterValidColumns","columns","filter","c","isProxy","getOperationColumnNames","selected","invert","map","_ref","name","includes"],"sources":["../../../src/sidebar/aggregations/AggregationUtils.ts"],"sourcesContent":["import { TableUtils } from '@deephaven/jsapi-utils';\nimport { type DisplayColumn } from '../../IrisGridModel';\nimport AggregationOperation from './AggregationOperation';\n\nexport const SELECTABLE_OPTIONS = [\n AggregationOperation.SUM,\n AggregationOperation.ABS_SUM,\n AggregationOperation.MIN,\n AggregationOperation.MAX,\n AggregationOperation.VAR,\n AggregationOperation.AVG,\n AggregationOperation.MEDIAN,\n AggregationOperation.STD,\n AggregationOperation.FIRST,\n AggregationOperation.LAST,\n AggregationOperation.COUNT_DISTINCT,\n AggregationOperation.DISTINCT,\n AggregationOperation.COUNT,\n AggregationOperation.UNIQUE,\n];\n\n/**\n * Check if an operation requires a rollup/table grouping\n * @param type The operation to check\n * @returns True if this operation applies to the whole table, false if applies to columns\n */\nexport const isRollupOperation = (type: AggregationOperation): boolean => {\n switch (type) {\n // currently no rollup only operations, but there has been in the past\n default:\n return false;\n }\n};\n\n/**\n * Check if an operation is not supported for a rollup/table grouping\n * @param type The operation to check\n * @returns True if this operation is not supported for a rollup/table grouping\n */\nexport const isRollupProhibited = (type: AggregationOperation): boolean => {\n switch (type) {\n case AggregationOperation.MEDIAN:\n return true;\n default:\n return false;\n }\n};\n\n/**\n * Check if an operation is valid against the given column type\n * @param operationType The operation to check\n * @param columnType The column type to check against\n */\nexport const isValidOperation = (\n operationType: AggregationOperation,\n columnType: string\n): boolean => {\n switch (operationType) {\n case AggregationOperation.COUNT:\n case AggregationOperation.FIRST:\n case AggregationOperation.LAST:\n case AggregationOperation.COUNT_DISTINCT:\n case AggregationOperation.DISTINCT:\n case AggregationOperation.UNIQUE:\n return true;\n case AggregationOperation.MEDIAN:\n case AggregationOperation.MIN:\n case AggregationOperation.MAX:\n return (\n TableUtils.isNumberType(columnType) ||\n TableUtils.isDateType(columnType) ||\n TableUtils.isTextType(columnType)\n );\n case AggregationOperation.SUM:\n case AggregationOperation.ABS_SUM:\n case AggregationOperation.VAR:\n case AggregationOperation.AVG:\n case AggregationOperation.STD:\n return TableUtils.isNumberType(columnType);\n case AggregationOperation.SKIP:\n return false;\n // No default case - if AggregationOperation is added, we'll get a compile time error\n }\n};\n\nexport const filterValidColumns = (\n columns: readonly DisplayColumn[],\n operationType: AggregationOperation\n): DisplayColumn[] =>\n columns.filter(\n c => c.isProxy !== true && isValidOperation(operationType, c.type)\n );\n\nexport const getOperationColumnNames = (\n columns: readonly DisplayColumn[],\n operationType: AggregationOperation,\n selected: readonly string[],\n invert: boolean\n): string[] =>\n filterValidColumns(columns, operationType)\n .map(({ name }) => name)\n .filter(name => (selected.includes(name) ? !invert : invert));\n\nexport default {\n isValidOperation,\n isRollupOperation,\n isRollupProhibited,\n filterValidColumns,\n getOperationColumnNames,\n};\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,wBAAwB;AAAC,OAE7CC,oBAAoB;AAE3B,OAAO,IAAMC,kBAAkB,GAAG,CAChCD,oBAAoB,CAACE,GAAG,EACxBF,oBAAoB,CAACG,OAAO,EAC5BH,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AACH,UAAU,CAAC;IAErC,KAAKrB,oBAAoB,CAACE,GAAG;IAC7B,KAAKF,oBAAoB,CAACG,OAAO;IACjC,KAAKH,oBAAoB,CAACM,GAAG;IAC7B,KAAKN,oBAAoB,CAACO,GAAG;IAC7B,KAAKP,oBAAoB,CAACS,GAAG;MAC3B,OAAOV,UAAU,CAACuB,YAAY,CAACD,UAAU,CAAC;IAC5C,KAAKrB,oBAAoB,CAACyB,IAAI;MAC5B,OAAO,KAAK;IACd;EACF;AACF,CAAC;AAED,OAAO,IAAMC,kBAAkB,GAAGA,CAChCC,OAAiC,EACjCP,aAAmC,KAEnCO,OAAO,CAACC,MAAM,CACZC,CAAC,IAAIA,CAAC,CAACC,OAAO,KAAK,IAAI,IAAIX,gBAAgB,CAACC,aAAa,EAAES,CAAC,CAACZ,IAAI,CACnE,CAAC;AAEH,OAAO,IAAMc,uBAAuB,GAAGA,CACrCJ,OAAiC,EACjCP,aAAmC,EACnCY,QAA2B,EAC3BC,MAAe,KAEfP,kBAAkB,CAACC,OAAO,EAAEP,aAAa,CAAC,CACvCc,GAAG,CAACC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,EAAC,CACvBR,MAAM,CAACQ,IAAI,IAAKJ,QAAQ,CAACK,QAAQ,CAACD,IAAI,CAAC,GAAG,CAACH,MAAM,GAAGA,MAAO,CAAC;AAEjE,eAAe;EACbd,gBAAgB;EAChBH,iBAAiB;EACjBE,kBAAkB;EAClBQ,kBAAkB;EAClBK;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"AggregationUtils.js","names":["TableUtils","AggregationOperation","SELECTABLE_OPTIONS","SUM","ABS_SUM","MIN","MAX","VAR","AVG","MEDIAN","STD","FIRST","LAST","COUNT_DISTINCT","DISTINCT","COUNT","UNIQUE","isRollupOperation","type","isRollupProhibited","isValidOperation","operationType","columnType","isArrayType","isNumberType","isDateType","isTextType","SKIP","filterValidColumns","columns","filter","c","isProxy","getOperationColumnNames","selected","invert","map","_ref","name","includes"],"sources":["../../../src/sidebar/aggregations/AggregationUtils.ts"],"sourcesContent":["import { TableUtils } from '@deephaven/jsapi-utils';\nimport { type DisplayColumn } from '../../IrisGridModel';\nimport AggregationOperation from './AggregationOperation';\n\nexport const SELECTABLE_OPTIONS = [\n AggregationOperation.SUM,\n AggregationOperation.ABS_SUM,\n AggregationOperation.MIN,\n AggregationOperation.MAX,\n AggregationOperation.VAR,\n AggregationOperation.AVG,\n AggregationOperation.MEDIAN,\n AggregationOperation.STD,\n AggregationOperation.FIRST,\n AggregationOperation.LAST,\n AggregationOperation.COUNT_DISTINCT,\n AggregationOperation.DISTINCT,\n AggregationOperation.COUNT,\n AggregationOperation.UNIQUE,\n];\n\n/**\n * Check if an operation requires a rollup/table grouping\n * @param type The operation to check\n * @returns True if this operation applies to the whole table, false if applies to columns\n */\nexport const isRollupOperation = (type: AggregationOperation): boolean => {\n switch (type) {\n // currently no rollup only operations, but there has been in the past\n default:\n return false;\n }\n};\n\n/**\n * Check if an operation is not supported for a rollup/table grouping\n * @param type The operation to check\n * @returns True if this operation is not supported for a rollup/table grouping\n */\nexport const isRollupProhibited = (type: AggregationOperation): boolean => {\n switch (type) {\n case AggregationOperation.MEDIAN:\n return true;\n default:\n return false;\n }\n};\n\n/**\n * Check if an operation is valid against the given column type\n * @param operationType The operation to check\n * @param columnType The column type to check against\n */\nexport const isValidOperation = (\n operationType: AggregationOperation,\n columnType: string\n): boolean => {\n switch (operationType) {\n case AggregationOperation.COUNT:\n case AggregationOperation.FIRST:\n case AggregationOperation.LAST:\n return true;\n case AggregationOperation.COUNT_DISTINCT:\n case AggregationOperation.DISTINCT:\n case AggregationOperation.UNIQUE:\n return !TableUtils.isArrayType(columnType);\n case AggregationOperation.MEDIAN:\n case AggregationOperation.MIN:\n case AggregationOperation.MAX:\n return (\n TableUtils.isNumberType(columnType) ||\n TableUtils.isDateType(columnType) ||\n TableUtils.isTextType(columnType)\n );\n case AggregationOperation.SUM:\n case AggregationOperation.ABS_SUM:\n case AggregationOperation.VAR:\n case AggregationOperation.AVG:\n case AggregationOperation.STD:\n return TableUtils.isNumberType(columnType);\n case AggregationOperation.SKIP:\n return false;\n // No default case - if AggregationOperation is added, we'll get a compile time error\n }\n};\n\nexport const filterValidColumns = (\n columns: readonly DisplayColumn[],\n operationType: AggregationOperation\n): DisplayColumn[] =>\n columns.filter(\n c => c.isProxy !== true && isValidOperation(operationType, c.type)\n );\n\nexport const getOperationColumnNames = (\n columns: readonly DisplayColumn[],\n operationType: AggregationOperation,\n selected: readonly string[],\n invert: boolean\n): string[] =>\n filterValidColumns(columns, operationType)\n .map(({ name }) => name)\n .filter(name => (selected.includes(name) ? !invert : invert));\n\nexport default {\n isValidOperation,\n isRollupOperation,\n isRollupProhibited,\n filterValidColumns,\n getOperationColumnNames,\n};\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,wBAAwB;AAAC,OAE7CC,oBAAoB;AAE3B,OAAO,IAAMC,kBAAkB,GAAG,CAChCD,oBAAoB,CAACE,GAAG,EACxBF,oBAAoB,CAACG,OAAO,EAC5BH,oBAAoB,CAACI,GAAG,EACxBJ,oBAAoB,CAACK,GAAG,EACxBL,oBAAoB,CAACM,GAAG,EACxBN,oBAAoB,CAACO,GAAG,EACxBP,oBAAoB,CAACQ,MAAM,EAC3BR,oBAAoB,CAACS,GAAG,EACxBT,oBAAoB,CAACU,KAAK,EAC1BV,oBAAoB,CAACW,IAAI,EACzBX,oBAAoB,CAACY,cAAc,EACnCZ,oBAAoB,CAACa,QAAQ,EAC7Bb,oBAAoB,CAACc,KAAK,EAC1Bd,oBAAoB,CAACe,MAAM,CAC5B;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,iBAAiB,GAAIC,IAA0B,IAAc;EACxE,QAAQA,IAAI;IACV;IACA;MACE,OAAO,KAAK;EAChB;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,kBAAkB,GA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AgB,CAACC,aAAa,EAAEU,CAAC,CAACb,IAAI,CACnE,CAAC;AAEH,OAAO,IAAMe,uBAAuB,GAAGA,CACrCJ,OAAiC,EACjCR,aAAmC,EACnCa,QAA2B,EAC3BC,MAAe,KAEfP,kBAAkB,CAACC,OAAO,EAAER,aAAa,CAAC,CACvCe,GAAG,CAACC,IAAA;EAAA,IAAC;IAAEC;EAAK,CAAC,GAAAD,IAAA;EAAA,OAAKC,IAAI;AAAA,EAAC,CACvBR,MAAM,CAACQ,IAAI,IAAKJ,QAAQ,CAACK,QAAQ,CAACD,IAAI,CAAC,GAAG,CAACH,MAAM,GAAGA,MAAO,CAAC;AAEjE,eAAe;EACbf,gBAAgB;EAChBH,iBAAiB;EACjBE,kBAAkB;EAClBS,kBAAkB;EAClBK;AACF,CAAC","ignoreList":[]}
@@ -4,7 +4,7 @@ import AggregationEdit from './aggregations/AggregationEdit';
4
4
  import AggregationUtils from './aggregations/AggregationUtils';
5
5
  import ChartBuilder from './ChartBuilder';
6
6
  import CustomColumnBuilder from './CustomColumnBuilder';
7
- import OptionType, { type OptionItemKey } from './OptionType';
7
+ import OptionType from './OptionType';
8
8
  import RollupRows from './RollupRows';
9
9
  import TableCsvExporter from './TableCsvExporter';
10
10
  import TableSaver from './TableSaver';
@@ -12,8 +12,7 @@ import VisibilityOrderingBuilder from './visibility-ordering-builder/VisibilityO
12
12
  import { type FormattingRule } from './conditional-formatting/ConditionalFormattingUtils';
13
13
  import AdvancedSettingsType from './AdvancedSettingsType';
14
14
  import DownloadServiceWorkerUtils from './DownloadServiceWorkerUtils';
15
- import { type IrisGridTableOptionsWidgetProps, type TableOptionsTransform } from './IrisGridTableOptionsWidgetProps';
16
- export { AdvancedSettings, Aggregations, AggregationEdit, AggregationUtils, ChartBuilder, CustomColumnBuilder, OptionType, type OptionItemKey, RollupRows, TableCsvExporter, TableSaver, VisibilityOrderingBuilder, AdvancedSettingsType, DownloadServiceWorkerUtils, type IrisGridTableOptionsWidgetProps, type TableOptionsTransform, };
15
+ export { AdvancedSettings, Aggregations, AggregationEdit, AggregationUtils, ChartBuilder, CustomColumnBuilder, OptionType, RollupRows, TableCsvExporter, TableSaver, VisibilityOrderingBuilder, AdvancedSettingsType, DownloadServiceWorkerUtils, };
17
16
  export type { FormattingRule as SidebarFormattingRule };
18
17
  export * from './aggregations';
19
18
  export * from './RollupRows';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,UAAU,EAAE,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,yBAAyB,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,EAC3B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,KAAK,+BAA+B,EACpC,KAAK,qB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1 @@
1
- {"version":3,"file":"index.js","names":["AdvancedSettings","Aggregations","AggregationEdit","AggregationUtils","ChartBuilder","CustomColumnBuilder","OptionType","RollupRows","TableCsvExporter","TableSaver","VisibilityOrderingBuilder","AdvancedSettingsType","DownloadServiceWorkerUtils"],"sources":["../../src/sidebar/index.ts"],"sourcesContent":["import AdvancedSettings from './AdvancedSettings';\nimport Aggregations from './aggregations/Aggregations';\nimport AggregationEdit from './aggregations/AggregationEdit';\nimport AggregationUtils from './aggregations/AggregationUtils';\nimport ChartBuilder from './ChartBuilder';\nimport CustomColumnBuilder from './CustomColumnBuilder';\nimport OptionType, { type OptionItemKey } from './OptionType';\nimport RollupRows from './RollupRows';\nimport TableCsvExporter from './TableCsvExporter';\nimport TableSaver from './TableSaver';\nimport VisibilityOrderingBuilder from './visibility-ordering-builder/VisibilityOrderingBuilder';\nimport { type FormattingRule } from './conditional-formatting/ConditionalFormattingUtils';\nimport AdvancedSettingsType from './AdvancedSettingsType';\nimport DownloadServiceWorkerUtils from './DownloadServiceWorkerUtils';\nimport {\n type IrisGridTableOptionsWidgetProps,\n type TableOptionsTransform,\n} from './IrisGridTableOptionsWidgetProps';\n\nexport {\n AdvancedSettings,\n Aggregations,\n AggregationEdit,\n AggregationUtils,\n ChartBuilder,\n CustomColumnBuilder,\n OptionType,\n type OptionItemKey,\n RollupRows,\n TableCsvExporter,\n TableSaver,\n VisibilityOrderingBuilder,\n AdvancedSettingsType,\n DownloadServiceWorkerUtils,\n type IrisGridTableOptionsWidgetProps,\n type TableOptionsTransform,\n};\n\nexport type { FormattingRule as SidebarFormattingRule };\nexport * from './aggregations';\nexport * from './RollupRows';\nexport * from './ChartBuilder';\nexport * from './InputEditor';\nexport * from './icons';\n"],"mappings":"OAAOA,gBAAgB;AAAA,OAChBC,YAAY;AAAA,OACZC,eAAe;AAAA,OACfC,gBAAgB;AAAA,OAChBC,YAAY;AAAA,OACZC,mBAAmB;AAAA,OACnBC,UAAU;AAAA,OACVC,UAAU;AAAA,OACVC,gBAAgB;AAAA,OAChBC,UAAU;AAAA,OACVC,yBAAyB;AAAA,OAEzBC,oBAAoB;AAAA,OACpBC,0BAA0B;AAMjC,SACEZ,gBAAgB,EAChBC,YAAY,EACZC,eAAe,EACfC,gBAAgB,EAChBC,YAAY,EACZC,mBAAmB,EACnBC,UAAU,EAEVC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,yBAAyB,EACzBC,oBAAoB,EACpBC,0BAA0B;AAG1B;AAAA;AAAA;AAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["AdvancedSettings","Aggregations","AggregationEdit","AggregationUtils","ChartBuilder","CustomColumnBuilder","OptionType","RollupRows","TableCsvExporter","TableSaver","VisibilityOrderingBuilder","AdvancedSettingsType","DownloadServiceWorkerUtils"],"sources":["../../src/sidebar/index.ts"],"sourcesContent":["import AdvancedSettings from './AdvancedSettings';\nimport Aggregations from './aggregations/Aggregations';\nimport AggregationEdit from './aggregations/AggregationEdit';\nimport AggregationUtils from './aggregations/AggregationUtils';\nimport ChartBuilder from './ChartBuilder';\nimport CustomColumnBuilder from './CustomColumnBuilder';\nimport OptionType from './OptionType';\nimport RollupRows from './RollupRows';\nimport TableCsvExporter from './TableCsvExporter';\nimport TableSaver from './TableSaver';\nimport VisibilityOrderingBuilder from './visibility-ordering-builder/VisibilityOrderingBuilder';\nimport { type FormattingRule } from './conditional-formatting/ConditionalFormattingUtils';\nimport AdvancedSettingsType from './AdvancedSettingsType';\nimport DownloadServiceWorkerUtils from './DownloadServiceWorkerUtils';\n\nexport {\n AdvancedSettings,\n Aggregations,\n AggregationEdit,\n AggregationUtils,\n ChartBuilder,\n CustomColumnBuilder,\n OptionType,\n RollupRows,\n TableCsvExporter,\n TableSaver,\n VisibilityOrderingBuilder,\n AdvancedSettingsType,\n DownloadServiceWorkerUtils,\n};\n\nexport type { FormattingRule as SidebarFormattingRule };\nexport * from './aggregations';\nexport * from './RollupRows';\nexport * from './ChartBuilder';\nexport * from './InputEditor';\nexport * from './icons';\n"],"mappings":"OAAOA,gBAAgB;AAAA,OAChBC,YAAY;AAAA,OACZC,eAAe;AAAA,OACfC,gBAAgB;AAAA,OAChBC,YAAY;AAAA,OACZC,mBAAmB;AAAA,OACnBC,UAAU;AAAA,OACVC,UAAU;AAAA,OACVC,gBAAgB;AAAA,OAChBC,UAAU;AAAA,OACVC,yBAAyB;AAAA,OAEzBC,oBAAoB;AAAA,OACpBC,0BAA0B;AAEjC,SACEZ,gBAAgB,EAChBC,YAAY,EACZC,eAAe,EACfC,gBAAgB,EAChBC,YAAY,EACZC,mBAAmB,EACnBC,UAAU,EACVC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,yBAAyB,EACzBC,oBAAoB,EACpBC,0BAA0B;AAC1B;AAAA;AAAA;AAAA;AAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/iris-grid",
3
- "version": "1.22.1-alpha-pivot-builder.0+fb17c45",
3
+ "version": "1.22.1",
4
4
  "description": "Deephaven Iris Grid",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -31,18 +31,18 @@
31
31
  "build:sass": "sass --embed-sources --load-path=../../node_modules ./src:./dist"
32
32
  },
33
33
  "dependencies": {
34
- "@deephaven/components": "^1.22.1-alpha-pivot-builder.0+fb17c45",
35
- "@deephaven/console": "^1.22.1-alpha-pivot-builder.0+fb17c45",
36
- "@deephaven/filters": "^1.22.1-alpha-pivot-builder.0+fb17c45",
37
- "@deephaven/grid": "^1.22.1-alpha-pivot-builder.0+fb17c45",
38
- "@deephaven/icons": "^1.22.1-alpha-pivot-builder.0+fb17c45",
39
- "@deephaven/jsapi-components": "^1.22.1-alpha-pivot-builder.0+fb17c45",
34
+ "@deephaven/components": "^1.22.1",
35
+ "@deephaven/console": "^1.22.1",
36
+ "@deephaven/filters": "^1.1.0",
37
+ "@deephaven/grid": "^1.22.1",
38
+ "@deephaven/icons": "^1.2.0",
39
+ "@deephaven/jsapi-components": "^1.22.1",
40
40
  "@deephaven/jsapi-types": "^1.0.0-dev0.40.4",
41
- "@deephaven/jsapi-utils": "^1.22.1-alpha-pivot-builder.0+fb17c45",
42
- "@deephaven/log": "^1.22.1-alpha-pivot-builder.0+fb17c45",
43
- "@deephaven/react-hooks": "^1.22.1-alpha-pivot-builder.0+fb17c45",
44
- "@deephaven/storage": "^1.22.1-alpha-pivot-builder.0+fb17c45",
45
- "@deephaven/utils": "^1.22.1-alpha-pivot-builder.0+fb17c45",
41
+ "@deephaven/jsapi-utils": "^1.22.1",
42
+ "@deephaven/log": "^1.8.0",
43
+ "@deephaven/react-hooks": "^1.21.1",
44
+ "@deephaven/storage": "^1.8.0",
45
+ "@deephaven/utils": "^1.10.0",
46
46
  "@dnd-kit/core": "^6.1.0",
47
47
  "@dnd-kit/modifiers": "^9.0.0",
48
48
  "@dnd-kit/sortable": "^10.0.0",
@@ -66,9 +66,9 @@
66
66
  "react-dom": ">=18.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@deephaven/jsapi-shim": "^1.22.1-alpha-pivot-builder.0+fb17c45",
70
- "@deephaven/mocks": "^1.22.1-alpha-pivot-builder.0+fb17c45",
71
- "@deephaven/test-utils": "^1.22.1-alpha-pivot-builder.0+fb17c45",
69
+ "@deephaven/jsapi-shim": "^1.9.0",
70
+ "@deephaven/mocks": "^1.1.0",
71
+ "@deephaven/test-utils": "^1.8.0",
72
72
  "deep-equal": "2.2.3"
73
73
  },
74
74
  "files": [
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "fb17c45114ceb8f1ab670ac20dac74f8e8bd65fb"
84
+ "gitHead": "d0ac1eabfef8efac88058247aeaef0ed526722d1"
85
85
  }
@@ -1,26 +0,0 @@
1
- import type IrisGridModel from './IrisGridModel';
2
- /**
3
- * Transform applied to the model an IrisGrid host (panel or widget) builds,
4
- * before it is handed to `<IrisGrid>`. Lets middleware wrap or augment the
5
- * host-built model (e.g. wrap it in a proxy that swaps its inner model) without
6
- * taking over model construction, so the middleware can stay a chained layer
7
- * instead of replacing the base component.
8
- *
9
- * The returned model must be a drop-in for the input — the host owns its
10
- * lifecycle and will call `close()` on whatever this returns. May be async to
11
- * allow the transform to await dependencies before returning.
12
- */
13
- export type IrisGridModelTransform = (model: IrisGridModel) => IrisGridModel | Promise<IrisGridModel>;
14
- /**
15
- * Opt-in prop for components that build an `IrisGridModel` from a `fetch`
16
- * (e.g. `IrisGridPanel`, `GridWidgetPlugin`). Threaded down the middleware
17
- * chain so IrisGrid-aware plugins can post-process the model without it being
18
- * added to the generic widget/panel prop surface.
19
- *
20
- * The transform is applied when the model is (re)built, so it must be
21
- * referentially stable — an unstable `transformModel` will rebuild the model.
22
- */
23
- export interface IrisGridModelWidgetProps {
24
- transformModel?: IrisGridModelTransform;
25
- }
26
- //# sourceMappingURL=IrisGridModelWidgetProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IrisGridModelWidgetProps.d.ts","sourceRoot":"","sources":["../src/IrisGridModelWidgetProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AAEjD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,aAAa,KACjB,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACvC,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IrisGridModelWidgetProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IrisGridModelWidgetProps.js","names":[],"sources":["../src/IrisGridModelWidgetProps.ts"],"sourcesContent":["import type IrisGridModel from './IrisGridModel';\n\n/**\n * Transform applied to the model an IrisGrid host (panel or widget) builds,\n * before it is handed to `<IrisGrid>`. Lets middleware wrap or augment the\n * host-built model (e.g. wrap it in a proxy that swaps its inner model) without\n * taking over model construction, so the middleware can stay a chained layer\n * instead of replacing the base component.\n *\n * The returned model must be a drop-in for the input — the host owns its\n * lifecycle and will call `close()` on whatever this returns. May be async to\n * allow the transform to await dependencies before returning.\n */\nexport type IrisGridModelTransform = (\n model: IrisGridModel\n) => IrisGridModel | Promise<IrisGridModel>;\n\n/**\n * Opt-in prop for components that build an `IrisGridModel` from a `fetch`\n * (e.g. `IrisGridPanel`, `GridWidgetPlugin`). Threaded down the middleware\n * chain so IrisGrid-aware plugins can post-process the model without it being\n * added to the generic widget/panel prop surface.\n *\n * The transform is applied when the model is (re)built, so it must be\n * referentially stable — an unstable `transformModel` will rebuild the model.\n */\nexport interface IrisGridModelWidgetProps {\n transformModel?: IrisGridModelTransform;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,22 +0,0 @@
1
- import { type OptionItem } from '../CommonTypes';
2
- /**
3
- * Transform applied to the built-in Table Options items before they are
4
- * rendered. Receives the items already filtered by what the current model
5
- * supports and returns the items to actually render. Must be referentially
6
- * stable and side-effect-free (it's called inside memoization).
7
- */
8
- export type TableOptionsTransform = (defaults: readonly OptionItem[]) => readonly OptionItem[];
9
- /**
10
- * Opt-in props for components that wrap `<IrisGrid>` (e.g. `IrisGridPanel`,
11
- * `GridWidgetPlugin`). Threaded down the middleware chain so IrisGrid-aware
12
- * hosts can forward the transform to `IrisGrid#transformTableOptions`
13
- * without it being added to the generic widget/panel prop surface.
14
- *
15
- * Middleware authors compose by reading the incoming `transformTableOptions`,
16
- * running it first, layering their own changes on top, and forwarding the
17
- * composed transform to the next component in the chain.
18
- */
19
- export interface IrisGridTableOptionsWidgetProps {
20
- transformTableOptions?: TableOptionsTransform;
21
- }
22
- //# sourceMappingURL=IrisGridTableOptionsWidgetProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IrisGridTableOptionsWidgetProps.d.ts","sourceRoot":"","sources":["../../src/sidebar/IrisGridTableOptionsWidgetProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,QAAQ,EAAE,SAAS,UAAU,EAAE,KAC5B,SAAS,UAAU,EAAE,CAAC;AAE3B;;;;;;;;;GASG;AACH,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IrisGridTableOptionsWidgetProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IrisGridTableOptionsWidgetProps.js","names":[],"sources":["../../src/sidebar/IrisGridTableOptionsWidgetProps.ts"],"sourcesContent":["import { type OptionItem } from '../CommonTypes';\n\n/**\n * Transform applied to the built-in Table Options items before they are\n * rendered. Receives the items already filtered by what the current model\n * supports and returns the items to actually render. Must be referentially\n * stable and side-effect-free (it's called inside memoization).\n */\nexport type TableOptionsTransform = (\n defaults: readonly OptionItem[]\n) => readonly OptionItem[];\n\n/**\n * Opt-in props for components that wrap `<IrisGrid>` (e.g. `IrisGridPanel`,\n * `GridWidgetPlugin`). Threaded down the middleware chain so IrisGrid-aware\n * hosts can forward the transform to `IrisGrid#transformTableOptions`\n * without it being added to the generic widget/panel prop surface.\n *\n * Middleware authors compose by reading the incoming `transformTableOptions`,\n * running it first, layering their own changes on top, and forwarding the\n * composed transform to the next component in the chain.\n */\nexport interface IrisGridTableOptionsWidgetProps {\n transformTableOptions?: TableOptionsTransform;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,30 +0,0 @@
1
- import React, { type ErrorInfo, type ReactNode } from 'react';
2
- type Props = {
3
- /** Identifier for the failing item, used for log correlation. */
4
- itemType: string;
5
- /**
6
- * Optional callback to pop the failing page off the sidebar stack.
7
- * When provided, the fallback UI shows a Back button wired to it.
8
- */
9
- onBack?: () => void;
10
- children: ReactNode;
11
- };
12
- type State = {
13
- hasError: boolean;
14
- };
15
- /**
16
- * Tiny error boundary scoped to a single plugin-supplied sidebar page.
17
- * If the plugin's `configPage` throws during render, we log the error
18
- * once and render a minimal fallback ("Failed to render" + Back button)
19
- * rather than tearing down the entire `IrisGrid` subtree or leaving a
20
- * blank panel. Used only by the page-switch `default` case in
21
- * `IrisGrid.tsx`.
22
- */
23
- export default class PluginTableOptionsErrorBoundary extends React.Component<Props, State> {
24
- static getDerivedStateFromError(): State;
25
- constructor(props: Props);
26
- componentDidCatch(error: Error, info: ErrorInfo): void;
27
- render(): ReactNode;
28
- }
29
- export {};
30
- //# sourceMappingURL=PluginTableOptionsErrorBoundary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginTableOptionsErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/sidebar/PluginTableOptionsErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK9D,KAAK,KAAK,GAAG;IACX,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,KAAK,KAAK,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,KAAK,CAAC,SAAS,CAC1E,KAAK,EACL,KAAK,CACN;IACC,MAAM,CAAC,wBAAwB,IAAI,KAAK;gBAI5B,KAAK,EAAE,KAAK;IAKxB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAStD,MAAM,IAAI,SAAS;CAuBpB"}
@@ -1,60 +0,0 @@
1
- import React from 'react';
2
- import Log from '@deephaven/log';
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- var log = Log.module('PluginTableOptionsErrorBoundary');
5
- /**
6
- * Tiny error boundary scoped to a single plugin-supplied sidebar page.
7
- * If the plugin's `configPage` throws during render, we log the error
8
- * once and render a minimal fallback ("Failed to render" + Back button)
9
- * rather than tearing down the entire `IrisGrid` subtree or leaving a
10
- * blank panel. Used only by the page-switch `default` case in
11
- * `IrisGrid.tsx`.
12
- */
13
- export default class PluginTableOptionsErrorBoundary extends React.Component {
14
- static getDerivedStateFromError() {
15
- return {
16
- hasError: true
17
- };
18
- }
19
- constructor(props) {
20
- super(props);
21
- this.state = {
22
- hasError: false
23
- };
24
- }
25
- componentDidCatch(error, info) {
26
- var {
27
- itemType
28
- } = this.props;
29
- log.error("Plugin sidebar page \"".concat(itemType, "\" threw during render; suppressing."), error, info);
30
- }
31
- render() {
32
- var {
33
- hasError
34
- } = this.state;
35
- var {
36
- children,
37
- itemType,
38
- onBack
39
- } = this.props;
40
- if (!hasError) {
41
- return children;
42
- }
43
- return /*#__PURE__*/_jsxs("div", {
44
- className: "plugin-sidebar-error",
45
- role: "alert",
46
- "data-testid": "plugin-sidebar-error",
47
- children: [/*#__PURE__*/_jsxs("p", {
48
- children: ["This sidebar page (", /*#__PURE__*/_jsx("code", {
49
- children: itemType
50
- }), ") failed to render."]
51
- }), onBack != null && /*#__PURE__*/_jsx("button", {
52
- type: "button",
53
- className: "btn btn-secondary",
54
- onClick: onBack,
55
- children: "Back"
56
- })]
57
- });
58
- }
59
- }
60
- //# sourceMappingURL=PluginTableOptionsErrorBoundary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginTableOptionsErrorBoundary.js","names":["React","Log","jsx","_jsx","jsxs","_jsxs","log","module","PluginTableOptionsErrorBoundary","Component","getDerivedStateFromError","hasError","constructor","props","state","componentDidCatch","error","info","itemType","concat","render","children","onBack","className","role","type","onClick"],"sources":["../../src/sidebar/PluginTableOptionsErrorBoundary.tsx"],"sourcesContent":["import React, { type ErrorInfo, type ReactNode } from 'react';\nimport Log from '@deephaven/log';\n\nconst log = Log.module('PluginTableOptionsErrorBoundary');\n\ntype Props = {\n /** Identifier for the failing item, used for log correlation. */\n itemType: string;\n /**\n * Optional callback to pop the failing page off the sidebar stack.\n * When provided, the fallback UI shows a Back button wired to it.\n */\n onBack?: () => void;\n children: ReactNode;\n};\n\ntype State = { hasError: boolean };\n\n/**\n * Tiny error boundary scoped to a single plugin-supplied sidebar page.\n * If the plugin's `configPage` throws during render, we log the error\n * once and render a minimal fallback (\"Failed to render\" + Back button)\n * rather than tearing down the entire `IrisGrid` subtree or leaving a\n * blank panel. Used only by the page-switch `default` case in\n * `IrisGrid.tsx`.\n */\nexport default class PluginTableOptionsErrorBoundary extends React.Component<\n Props,\n State\n> {\n static getDerivedStateFromError(): State {\n return { hasError: true };\n }\n\n constructor(props: Props) {\n super(props);\n this.state = { hasError: false };\n }\n\n componentDidCatch(error: Error, info: ErrorInfo): void {\n const { itemType } = this.props;\n log.error(\n `Plugin sidebar page \"${itemType}\" threw during render; suppressing.`,\n error,\n info\n );\n }\n\n render(): ReactNode {\n const { hasError } = this.state;\n const { children, itemType, onBack } = this.props;\n if (!hasError) {\n return children;\n }\n return (\n <div\n className=\"plugin-sidebar-error\"\n role=\"alert\"\n data-testid=\"plugin-sidebar-error\"\n >\n <p>\n This sidebar page (<code>{itemType}</code>) failed to render.\n </p>\n {onBack != null && (\n <button type=\"button\" className=\"btn btn-secondary\" onClick={onBack}>\n Back\n </button>\n )}\n </div>\n );\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAA0C,OAAO;AAC7D,OAAOC,GAAG,MAAM,gBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjC,IAAMC,GAAG,GAAGL,GAAG,CAACM,MAAM,CAAC,iCAAiC,CAAC;AAezD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAMC,+BAA+B,SAASR,KAAK,CA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