@kanunilabs/datagrid 1.9.1 → 1.9.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.
Files changed (44) hide show
  1. package/dist/datagrid.umd.js +8 -8
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.cts +7 -1
  4. package/dist/index.d.ts +7 -1
  5. package/dist/index.js +2 -2
  6. package/dist/styles.css +268 -1
  7. package/dist/themes/all.css +108 -0
  8. package/dist/themes/amber.css +3 -0
  9. package/dist/themes/aubergine.css +3 -0
  10. package/dist/themes/azure.css +3 -0
  11. package/dist/themes/burgundy.css +3 -0
  12. package/dist/themes/charcoal.css +3 -0
  13. package/dist/themes/contrast-dark.css +3 -0
  14. package/dist/themes/contrast-light.css +3 -0
  15. package/dist/themes/coral.css +3 -0
  16. package/dist/themes/corporate.css +3 -0
  17. package/dist/themes/deep-sea.css +3 -0
  18. package/dist/themes/editorial.css +3 -0
  19. package/dist/themes/ember.css +3 -0
  20. package/dist/themes/emerald.css +3 -0
  21. package/dist/themes/forest.css +3 -0
  22. package/dist/themes/glacier.css +3 -0
  23. package/dist/themes/graphite.css +3 -0
  24. package/dist/themes/indigo-night.css +3 -0
  25. package/dist/themes/indigo.css +3 -0
  26. package/dist/themes/ivory.css +3 -0
  27. package/dist/themes/lagoon.css +3 -0
  28. package/dist/themes/linen.css +3 -0
  29. package/dist/themes/midnight.css +3 -0
  30. package/dist/themes/mist.css +3 -0
  31. package/dist/themes/monochrome.css +3 -0
  32. package/dist/themes/onyx.css +3 -0
  33. package/dist/themes/orchid.css +3 -0
  34. package/dist/themes/porcelain.css +3 -0
  35. package/dist/themes/rose.css +3 -0
  36. package/dist/themes/sandstone.css +3 -0
  37. package/dist/themes/slate-night.css +3 -0
  38. package/dist/themes/slate.css +3 -0
  39. package/dist/themes/steel.css +3 -0
  40. package/dist/themes/stone.css +3 -0
  41. package/dist/themes/taupe.css +3 -0
  42. package/dist/themes/teal.css +3 -0
  43. package/dist/themes/terminal.css +3 -0
  44. package/package.json +4 -4
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { GridRowData, DataGridController, GridDictionary, GridDataType, LookupItem, LookupMatchMode, RowKey, EditingEngineOptions, EditingEngine, RowChange, EditMode, RowNode, GridColumnDef, DataGridCoreConfig, FilterRenderContextBase, FilterNode, GridThemeName, GridPaletteName, GridDensity, DescribeFilterOptions, CardViewOptions, StateStoringConfig, InferColumnsOptions } from '@kanunilabs/datagrid-core';
1
+ import { GridRowData, DataGridController, GridDictionary, GridDataType, LookupItem, LookupMatchMode, RowKey, EditingEngineOptions, EditingEngine, RowChange, EditMode, RowNode, GridColumnDef, DataGridCoreConfig, FilterRenderContextBase, FilterNode, GridThemeName, GridPaletteName, GridDensity, DescribeFilterOptions, CardViewOptions, StateStoringConfig, InferColumnsOptions, RowStatusSource } from '@kanunilabs/datagrid-core';
2
2
  export { CustomFilterOperator, CustomFilterOperatorId, DENSITY_ROW_HEIGHT, DataGridController, FilterNode, GRID_COLOR_SCHEMES, GridColorScheme, GridColumnDef, GridDensity, GridPaletteName, GridRowData, GridTheme, GridThemeName, RowKey, RowNode, SortDescriptor, THEME_ROW_HEIGHT, isPackagedTheme, presetRowHeight } from '@kanunilabs/datagrid-core';
3
3
 
4
4
  /** What a header menu is opened against — the React shape, verbatim. */
@@ -926,6 +926,12 @@ interface CreateGridConfig<TRow = GridRowData> extends Omit<DataGridCoreConfig<T
926
926
  enterpriseEdition?: boolean;
927
927
  /** Extra classes for a body cell (pending edit, range, fill preview…). */
928
928
  getCellClassName?: (ctx: CellSlotContext<TRow>) => string | undefined;
929
+ /**
930
+ * Where `rowStatus` reads the grid's own save status — the Enterprise
931
+ * wrapper's editing engine. With `editing` on here, the grid's own engine
932
+ * answers and this is not asked.
933
+ */
934
+ getRowStatusSource?: () => RowStatusSource | null;
929
935
  onCellPointerDown?: (ctx: CellSlotContext<TRow>, event: MouseEvent) => void;
930
936
  onCellPointerEnter?: (ctx: CellSlotContext<TRow>, event: MouseEvent) => void;
931
937
  onCellDoubleClick?: (ctx: CellSlotContext<TRow>) => void;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GridRowData, DataGridController, GridDictionary, GridDataType, LookupItem, LookupMatchMode, RowKey, EditingEngineOptions, EditingEngine, RowChange, EditMode, RowNode, GridColumnDef, DataGridCoreConfig, FilterRenderContextBase, FilterNode, GridThemeName, GridPaletteName, GridDensity, DescribeFilterOptions, CardViewOptions, StateStoringConfig, InferColumnsOptions } from '@kanunilabs/datagrid-core';
1
+ import { GridRowData, DataGridController, GridDictionary, GridDataType, LookupItem, LookupMatchMode, RowKey, EditingEngineOptions, EditingEngine, RowChange, EditMode, RowNode, GridColumnDef, DataGridCoreConfig, FilterRenderContextBase, FilterNode, GridThemeName, GridPaletteName, GridDensity, DescribeFilterOptions, CardViewOptions, StateStoringConfig, InferColumnsOptions, RowStatusSource } from '@kanunilabs/datagrid-core';
2
2
  export { CustomFilterOperator, CustomFilterOperatorId, DENSITY_ROW_HEIGHT, DataGridController, FilterNode, GRID_COLOR_SCHEMES, GridColorScheme, GridColumnDef, GridDensity, GridPaletteName, GridRowData, GridTheme, GridThemeName, RowKey, RowNode, SortDescriptor, THEME_ROW_HEIGHT, isPackagedTheme, presetRowHeight } from '@kanunilabs/datagrid-core';
3
3
 
4
4
  /** What a header menu is opened against — the React shape, verbatim. */
@@ -926,6 +926,12 @@ interface CreateGridConfig<TRow = GridRowData> extends Omit<DataGridCoreConfig<T
926
926
  enterpriseEdition?: boolean;
927
927
  /** Extra classes for a body cell (pending edit, range, fill preview…). */
928
928
  getCellClassName?: (ctx: CellSlotContext<TRow>) => string | undefined;
929
+ /**
930
+ * Where `rowStatus` reads the grid's own save status — the Enterprise
931
+ * wrapper's editing engine. With `editing` on here, the grid's own engine
932
+ * answers and this is not asked.
933
+ */
934
+ getRowStatusSource?: () => RowStatusSource | null;
929
935
  onCellPointerDown?: (ctx: CellSlotContext<TRow>, event: MouseEvent) => void;
930
936
  onCellPointerEnter?: (ctx: CellSlotContext<TRow>, event: MouseEvent) => void;
931
937
  onCellDoubleClick?: (ctx: CellSlotContext<TRow>) => void;