@affino/datagrid-vue-app 0.1.39 → 0.1.40

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.
@@ -1,9 +1,78 @@
1
+ export type DataGridAdvancedFilterOperatorLabelKey = "contains" | "in" | "equals" | "not-equals" | "starts-with" | "ends-with" | "gt" | "gte" | "lt" | "lte" | "between" | "is-empty" | "not-empty" | "is-null" | "not-null";
2
+ export interface DataGridAdvancedFilterLabels {
3
+ buttonLabel?: string;
4
+ eyebrow?: string;
5
+ title?: string;
6
+ close?: string;
7
+ appliedEyebrow?: string;
8
+ appliedTitle?: string;
9
+ resetAllFilters?: string;
10
+ noFiltersApplied?: string;
11
+ joinLabel?: string;
12
+ joinAriaLabel?: string;
13
+ columnLabel?: string;
14
+ columnAriaLabel?: string;
15
+ operatorLabel?: string;
16
+ operatorAriaLabel?: string;
17
+ valueLabel?: string;
18
+ valuePlaceholder?: string;
19
+ valueAriaLabel?: string;
20
+ clearClause?: string;
21
+ removeClause?: string;
22
+ addClause?: string;
23
+ cancel?: string;
24
+ apply?: string;
25
+ activeSummaryPrefix?: string;
26
+ activeSummaryFallback?: string;
27
+ valuesSummaryLabel?: string;
28
+ blankValueLabel?: string;
29
+ betweenJoiner?: string;
30
+ notOperatorLabel?: string;
31
+ operators?: Partial<Record<DataGridAdvancedFilterOperatorLabelKey, string>>;
32
+ joins?: Partial<Record<"and" | "or", string>>;
33
+ }
34
+ export interface DataGridResolvedAdvancedFilterLabels {
35
+ buttonLabel: string;
36
+ eyebrow: string;
37
+ title: string;
38
+ close: string;
39
+ appliedEyebrow: string;
40
+ appliedTitle: string;
41
+ resetAllFilters: string;
42
+ noFiltersApplied: string;
43
+ joinLabel: string;
44
+ joinAriaLabel: string;
45
+ columnLabel: string;
46
+ columnAriaLabel: string;
47
+ operatorLabel: string;
48
+ operatorAriaLabel: string;
49
+ valueLabel: string;
50
+ valuePlaceholder: string;
51
+ valueAriaLabel: string;
52
+ clearClause: string;
53
+ removeClause: string;
54
+ addClause: string;
55
+ cancel: string;
56
+ apply: string;
57
+ activeSummaryPrefix: string;
58
+ activeSummaryFallback: string;
59
+ valuesSummaryLabel: string;
60
+ blankValueLabel: string;
61
+ betweenJoiner: string;
62
+ notOperatorLabel: string;
63
+ operators: Readonly<Record<DataGridAdvancedFilterOperatorLabelKey, string>>;
64
+ joins: Readonly<Record<"and" | "or", string>>;
65
+ }
1
66
  export interface DataGridAdvancedFilterOptions {
2
67
  enabled: boolean;
3
68
  buttonLabel: string;
69
+ labels: DataGridResolvedAdvancedFilterLabels;
4
70
  }
5
71
  export type DataGridAdvancedFilterProp = boolean | {
6
72
  enabled?: boolean;
7
73
  buttonLabel?: string;
74
+ labels?: DataGridAdvancedFilterLabels;
8
75
  } | null;
76
+ export declare const DEFAULT_DATAGRID_ADVANCED_FILTER_LABELS: DataGridResolvedAdvancedFilterLabels;
77
+ export declare function resolveDataGridAdvancedFilterOperatorLabel(labels: DataGridResolvedAdvancedFilterLabels, operator: string): string;
9
78
  export declare function resolveDataGridAdvancedFilter(input: DataGridAdvancedFilterProp | undefined): DataGridAdvancedFilterOptions;
@@ -1,9 +1,32 @@
1
+ export interface DataGridColumnLayoutLabels {
2
+ buttonLabel?: string;
3
+ eyebrow?: string;
4
+ title?: string;
5
+ close?: string;
6
+ cancel?: string;
7
+ apply?: string;
8
+ moveUp?: string;
9
+ moveDown?: string;
10
+ }
11
+ export interface DataGridResolvedColumnLayoutLabels {
12
+ buttonLabel: string;
13
+ eyebrow: string;
14
+ title: string;
15
+ close: string;
16
+ cancel: string;
17
+ apply: string;
18
+ moveUp: string;
19
+ moveDown: string;
20
+ }
1
21
  export interface DataGridColumnLayoutOptions {
2
22
  enabled: boolean;
3
23
  buttonLabel: string;
24
+ labels: DataGridResolvedColumnLayoutLabels;
4
25
  }
5
26
  export type DataGridColumnLayoutProp = boolean | {
6
27
  enabled?: boolean;
7
28
  buttonLabel?: string;
29
+ labels?: DataGridColumnLayoutLabels;
8
30
  } | null;
31
+ export declare const DEFAULT_DATAGRID_COLUMN_LAYOUT_LABELS: DataGridResolvedColumnLayoutLabels;
9
32
  export declare function resolveDataGridColumnLayout(input: DataGridColumnLayoutProp | undefined): DataGridColumnLayoutOptions;
package/dist/gantt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as t } from "./chunks/DataGridGanttStageEntry-o99nyV0i.js";
1
+ import { D as t } from "./chunks/DataGridGanttStageEntry-BhNAeUxC.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,
@@ -2,7 +2,7 @@ import { type CSSProperties, type PropType, type Ref } from "vue";
2
2
  import type { DataGridColumnSnapshot, DataGridFilterSnapshot, DataGridGroupBySpec, DataGridPivotSpec, DataGridRowNode, DataGridRowModel, DataGridSortState, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
3
  import { type GridSelectionPointLike, type DataGridRowId, type DataGridRowSelectionSnapshot } from "@affino/datagrid-vue";
4
4
  import { type DataGridAppInspectorPanel, type DataGridAppToolbarModule } from "./DataGridModuleHost";
5
- import type { DataGridAdvancedFilterOptions } from "../config/dataGridAdvancedFilter";
5
+ import { type DataGridAdvancedFilterOptions } from "../config/dataGridAdvancedFilter";
6
6
  import type { DataGridAggregationsOptions } from "../config/dataGridAggregations";
7
7
  import type { DataGridFindReplaceOptions } from "../config/dataGridFindReplace";
8
8
  import type { DataGridGridLinesOptions } from "../config/dataGridGridLines";
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export declare const DataGrid: import("./DataGrid").DataGridComponent;
2
2
  export { default as DataGridModuleHost } from "./host/DataGridModuleHost";
3
3
  export { defineDataGridColumns } from "./config/dataGridFormulaOptions";
4
4
  export { defineDataGridCellClassResolver, defineDataGridCellStyleResolver, defineDataGridComponent, defineDataGridFilterCellReader, defineDataGridFilterCellStyleReader, defineDataGridSelectionCellReader, defineDataGridStructuralRowActionHandler, useDataGridRef, } from "./DataGrid";
5
- export type { DataGridCellClassResolver, DataGridCellStyleResolver, DataGridComponent, DataGridComponentFor, DataGridExposed, DataGridFilterCellReader, DataGridFilterCellStyleReader, DataGridInstance, DataGridProps, DataGridSelectionCellReader, } from "./DataGrid";
5
+ export type { DataGridCellClassResolver, DataGridCellStyleResolver, DataGridComponent, DataGridComponentFor, DataGridExposed, DataGridExposedRuntime, DataGridFilterCellReader, DataGridFilterCellStyleReader, DataGridInstance, DataGridProps, DataGridSelectionCellReader, } from "./DataGrid";
6
6
  export type { DataGridStructuralRowActionContext, DataGridStructuralRowActionHandler, DataGridStructuralRowActionId, } from "./dataGridStructuralRowActions";
7
7
  export type { DataGridAppClientRowModelOptions, DataGridAppCellRenderer, DataGridAppCellRendererContext, DataGridAppGroupCellRenderer, DataGridAppGroupCellRendererContext, DataGridAppCellRendererInteractiveContext, DataGridAppRowSurfaceContext, DataGridAppRowSurfaceKind, DataGridAppColumnInput, DataGridDeclarativeFormulaOptions, } from "./config/dataGridFormulaOptions";
8
8
  export type { DataGridAppToolbarModule, } from "./host/DataGridModuleHost";
@@ -14,11 +14,11 @@ export type { DataGridHistoryController, DataGridHistoryControlsMode, DataGridHi
14
14
  export type { DataGridTableStageHistoryAdapter, } from "./stage/useDataGridTableStageHistory";
15
15
  export type { DataGridTableStageCustomOverlay, } from "./stage/dataGridTableStage.types";
16
16
  export type { DataGridThemePreset, DataGridThemeProp, } from "./theme/dataGridTheme";
17
- export type { DataGridAdvancedFilterOptions, DataGridAdvancedFilterProp, } from "./config/dataGridAdvancedFilter";
17
+ export type { DataGridAdvancedFilterLabels, DataGridAdvancedFilterOperatorLabelKey, DataGridAdvancedFilterOptions, DataGridAdvancedFilterProp, DataGridResolvedAdvancedFilterLabels, } from "./config/dataGridAdvancedFilter";
18
18
  export type { DataGridFindReplaceOptions, DataGridFindReplaceProp, } from "./config/dataGridFindReplace";
19
19
  export type { DataGridGridLinesHeaderMode, DataGridGridLinesOptions, DataGridGridLinesPreset, DataGridGridLinesProp, } from "./config/dataGridGridLines";
20
20
  export type { DataGridSavedViewSnapshot, DataGridSavedViewStorageLike, } from "./config/dataGridSavedView";
21
- export type { DataGridColumnLayoutOptions, DataGridColumnLayoutProp, } from "./config/dataGridColumnLayout";
21
+ export type { DataGridColumnLayoutLabels, DataGridColumnLayoutOptions, DataGridColumnLayoutProp, DataGridResolvedColumnLayoutLabels, } from "./config/dataGridColumnLayout";
22
22
  export type { DataGridColumnReorderOptions, DataGridColumnReorderProp, } from "./config/dataGridColumnReorder";
23
23
  export type { DataGridRowReorderOptions, DataGridRowReorderProp, } from "./config/dataGridRowReorder";
24
24
  export { clearDataGridSavedViewInStorage, migrateDataGridSavedView, parseDataGridSavedView, readDataGridSavedViewFromStorage, serializeDataGridSavedView, writeDataGridSavedViewToStorage, } from "./config/dataGridSavedView";