@affino/datagrid-vue-app 0.4.6 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/DataGrid.d.ts +5 -4
  2. package/dist/chunks/DataGridGanttStageEntry-B7apnhQj.js +13614 -0
  3. package/dist/chunks/useDataGridAppRowModel-B8MCx0Ep.js +5503 -0
  4. package/dist/config/dataGridRowSelection.d.ts +12 -0
  5. package/dist/gantt/dataGridGanttWheel.d.ts +7 -0
  6. package/dist/gantt.js +1 -1
  7. package/dist/host/DataGridDefaultRenderer.d.ts +9 -0
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +607 -573
  10. package/dist/internal.js +2 -2
  11. package/dist/overlays/DataGridAdvancedFilterPopover.vue.d.ts +1 -1
  12. package/dist/overlays/DataGridColumnMenu.vue.d.ts +11 -11
  13. package/dist/overlays/DataGridMenuOverlay.vue.d.ts +85 -0
  14. package/dist/overlays/dataGridMenuOverlay.d.ts +7 -0
  15. package/dist/stage/DataGridCellContentRenderer.d.ts +7 -15
  16. package/dist/stage/DataGridTableStageCenterPane.vue.d.ts +41 -2
  17. package/dist/stage/DataGridTableStageChromeLayer.vue.d.ts +15 -0
  18. package/dist/stage/DataGridTableStageHeader.vue.d.ts +2 -2
  19. package/dist/stage/dataGridTableStage.types.d.ts +9 -2
  20. package/dist/stage/dataGridTableStageBody.types.d.ts +2 -0
  21. package/dist/stage/useDataGridStageChromeCanvas.d.ts +6 -3
  22. package/dist/stage/useDataGridStageChromeModel.d.ts +2 -1
  23. package/dist/stage/useDataGridStageOverlays.d.ts +1 -0
  24. package/dist/stage/useDataGridStageViewportRuntime.d.ts +10 -5
  25. package/dist/stage/useDataGridTableStageColumns.d.ts +1 -0
  26. package/dist/stage/useDataGridTableStageRuntime.d.ts +5 -1
  27. package/dist/stage/useDataGridTableStageScrollSync.d.ts +0 -4
  28. package/package.json +4 -4
  29. package/dist/chunks/DataGridGanttStageEntry-7gs_CokC.js +0 -12544
  30. package/dist/chunks/useDataGridAppRowModel-C6u8Vt7F.js +0 -5659
@@ -0,0 +1,12 @@
1
+ export declare const DATA_GRID_ROW_SELECTION_DEFAULT_COLUMN_WIDTH = 108;
2
+ export declare const DATA_GRID_ROW_SELECTION_MIN_COLUMN_WIDTH = 40;
3
+ export interface DataGridRowSelectionOptions {
4
+ enabled?: boolean;
5
+ columnWidth?: number | null;
6
+ }
7
+ export type DataGridRowSelectionProp = boolean | DataGridRowSelectionOptions | null | undefined;
8
+ export interface DataGridResolvedRowSelectionOptions {
9
+ enabled: boolean;
10
+ columnWidth: number;
11
+ }
12
+ export declare function resolveDataGridRowSelection(input: DataGridRowSelectionProp): DataGridResolvedRowSelectionOptions;
@@ -7,4 +7,11 @@ export interface DataGridGanttWheelIntent {
7
7
  horizontalDelta: number;
8
8
  verticalDelta: number;
9
9
  }
10
+ export interface ResolveDataGridGanttWheelHandlingInput extends ResolveDataGridGanttWheelIntentInput {
11
+ nativeHorizontalScrollTarget: boolean;
12
+ }
13
+ export interface DataGridGanttWheelHandling extends DataGridGanttWheelIntent {
14
+ shouldPreventDefault: boolean;
15
+ }
10
16
  export declare function resolveDataGridGanttWheelIntent(input: ResolveDataGridGanttWheelIntentInput): DataGridGanttWheelIntent;
17
+ export declare function resolveDataGridGanttWheelHandling(input: ResolveDataGridGanttWheelHandlingInput): DataGridGanttWheelHandling;
package/dist/gantt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as t } from "./chunks/DataGridGanttStageEntry-7gs_CokC.js";
1
+ import { D as t } from "./chunks/DataGridGanttStageEntry-B7apnhQj.js";
2
2
  import { buildDataGridTimelineRenderModels as r, normalizeDataGridGanttOptions as n, resolveDataGridTimelineRange as o } from "@affino/datagrid-gantt";
3
3
  export {
4
4
  t as DataGridGanttStage,
@@ -247,6 +247,10 @@ declare const _default: import("vue").DefineComponent<{
247
247
  type: BooleanConstructor;
248
248
  default: boolean;
249
249
  };
250
+ rowSelectionColumnWidth: {
251
+ type: NumberConstructor;
252
+ default: number;
253
+ };
250
254
  rowReorder: {
251
255
  type: PropType<DataGridRowReorderOptions>;
252
256
  required: true;
@@ -510,6 +514,10 @@ declare const _default: import("vue").DefineComponent<{
510
514
  type: BooleanConstructor;
511
515
  default: boolean;
512
516
  };
517
+ rowSelectionColumnWidth: {
518
+ type: NumberConstructor;
519
+ default: number;
520
+ };
513
521
  rowReorder: {
514
522
  type: PropType<DataGridRowReorderOptions>;
515
523
  required: true;
@@ -604,6 +612,7 @@ declare const _default: import("vue").DefineComponent<{
604
612
  maxRows: number | null;
605
613
  fillHandle: boolean;
606
614
  readSelectionCell: ((row: DataGridRowNode<Record<string, unknown>>, columnKey: string) => unknown) | undefined;
615
+ rowSelectionColumnWidth: number;
607
616
  viewMode: DataGridAppViewMode;
608
617
  toolbarModules: readonly DataGridAppToolbarModule[];
609
618
  registerHistoryController: (controller: DataGridHistoryController | null) => void;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export type { DataGridStatePersistenceOptions, DataGridStatePersistenceProp, Dat
26
26
  export type { DataGridColumnLayoutLabels, DataGridColumnLayoutOptions, DataGridColumnLayoutProp, DataGridResolvedColumnLayoutLabels, } from "./config/dataGridColumnLayout";
27
27
  export type { DataGridColumnReorderOptions, DataGridColumnReorderProp, } from "./config/dataGridColumnReorder";
28
28
  export type { DataGridRowReorderOptions, DataGridRowReorderProp, } from "./config/dataGridRowReorder";
29
+ export type { DataGridResolvedRowSelectionOptions, DataGridRowSelectionOptions, DataGridRowSelectionProp, } from "./config/dataGridRowSelection";
29
30
  export { clearDataGridSavedViewInStorage, migrateDataGridSavedView, parseDataGridSavedView, readDataGridSavedViewFromStorage, serializeDataGridSavedView, writeDataGridSavedViewToStorage, } from "./config/dataGridSavedView";
30
31
  export type { DataGridAggregationsOptions, DataGridAggregationsProp, } from "./config/dataGridAggregations";
31
32
  export type { DataGridColumnMenuActionKey, DataGridColumnMenuActionOption, DataGridColumnMenuActionOptions, DataGridColumnMenuColumnOptions, DataGridColumnMenuColumnInputOptions, DataGridColumnMenuCustomLeafItem, DataGridColumnMenuCustomItem, DataGridColumnMenuCustomItemContext, DataGridColumnMenuCustomItemPlacement, DataGridColumnMenuCustomSubmenuItem, DataGridColumnMenuDisabledReasons, DataGridColumnMenuItemKey, DataGridColumnMenuItemLabels, DataGridColumnMenuLabels, DataGridColumnMenuInputProp, DataGridColumnMenuOptions, DataGridColumnMenuProp, DataGridColumnMenuTriggerMode, DataGridDefinedColumnMenu, } from "./overlays/dataGridColumnMenu";