@affino/datagrid-vue-app 0.1.48 → 0.1.50

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/internal.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { d as t, r } from "./chunks/dataGridOverlayThemeVars-vzY74EIz.js";
2
2
  import { buildDataGridChromePaneModel as i, buildDataGridChromeRenderModel as d } from "@affino/datagrid-chrome";
3
- import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-OUmmuuko.js";
4
- import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-BpEn4dPx.js";
3
+ import { D as l, a as n, r as G, b as D, c as S, d as u, u as g, e as b, f as T } from "./chunks/useDataGridAppRowModel-BCi5miT8.js";
4
+ import { _ as p, a as c, c as R, b as x, d as C, p as f, u as v, e as M, f as h, g as w, h as y, i as F, j as P, k as A, l as O, m as _, n as E, o as H } from "./chunks/DataGridGanttStageEntry-DQBFS3-m.js";
5
5
  import { _ as V } from "./chunks/DataGridAdvancedFilterPopover.vue_vue_type_script_setup_true_lang-DxZakgyj.js";
6
6
  import { _ as k } from "./chunks/DataGridFindReplacePopover.vue_vue_type_script_setup_true_lang-BEVRKG31.js";
7
7
  import { buildDataGridTimelineRenderModels as B, normalizeDataGridGanttOptions as I, resolveDataGridTimelineRange as L } from "@affino/datagrid-gantt";
@@ -40,8 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
40
40
  "onReset-all"?: (() => any) | undefined;
41
41
  "onUpdate-clause"?: ((payload: DataGridAppAdvancedFilterClausePatch) => any) | undefined;
42
42
  }, {
43
- labels: DataGridResolvedAdvancedFilterLabels;
44
43
  active: boolean;
44
+ labels: DataGridResolvedAdvancedFilterLabels;
45
45
  appliedFilterSummaryItems: readonly string[];
46
46
  hasAnyFilters: boolean;
47
47
  showActiveIcon: boolean;
@@ -28,16 +28,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
28
28
  disabledReason: string;
29
29
  }>>> & {
30
30
  onCancel?: (() => any) | undefined;
31
+ onClear?: (() => any) | undefined;
31
32
  onOpen?: (() => any) | undefined;
32
33
  onApply?: (() => any) | undefined;
33
- onClear?: (() => any) | undefined;
34
34
  "onUpdate-basis"?: ((basis: "source" | "filtered") => any) | undefined;
35
35
  "onToggle-column"?: ((key: string, enabled: boolean) => any) | undefined;
36
36
  "onUpdate-op"?: ((key: string, op: string) => any) | undefined;
37
37
  }, {
38
38
  disabled: boolean;
39
- disabledReason: string;
40
39
  active: boolean;
40
+ disabledReason: string;
41
41
  buttonLabel: string;
42
42
  }, {}>;
43
43
  declare const _default: typeof __VLS_export;
@@ -38,8 +38,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_WithDefaults<__V
38
38
  placement: "before" | "after";
39
39
  }) => any) | undefined;
40
40
  }, {
41
- labels: DataGridResolvedColumnLayoutLabels;
42
41
  active: boolean;
42
+ labels: DataGridResolvedColumnLayoutLabels;
43
43
  }, {}>;
44
44
  declare const _default: typeof __VLS_export;
45
45
  export default _default;
@@ -3,7 +3,28 @@ export type DataGridColumnMenuItemKey = (typeof DATAGRID_COLUMN_MENU_ITEM_KEYS)[
3
3
  export declare const DATAGRID_COLUMN_MENU_TRIGGER_MODES: readonly ["button", "contextmenu", "button+contextmenu"];
4
4
  export type DataGridColumnMenuTriggerMode = (typeof DATAGRID_COLUMN_MENU_TRIGGER_MODES)[number];
5
5
  export type DataGridColumnMenuCustomItemPlacement = "start" | "end" | `before:${DataGridColumnMenuItemKey}` | `after:${DataGridColumnMenuItemKey}`;
6
- export type DataGridColumnMenuItemLabels = Readonly<Partial<Record<DataGridColumnMenuItemKey, string>>>;
6
+ export interface DataGridColumnMenuLabels {
7
+ sort?: string;
8
+ group?: string;
9
+ pin?: string;
10
+ filter?: string;
11
+ activeState?: string;
12
+ groupLevel?: string;
13
+ textFilterPlaceholder?: string;
14
+ valueSearchPlaceholder?: string;
15
+ valueFilterDisabledByRowLimitHint?: string;
16
+ valueFilterUnavailableHint?: string;
17
+ filterValuesAriaLabel?: string;
18
+ loadingValues?: string;
19
+ unableToLoadValues?: string;
20
+ noMatchingValues?: string;
21
+ noValues?: string;
22
+ selectedValuesSummary?: string;
23
+ valuesWindowSummary?: string;
24
+ selectAtLeastOneValueHint?: string;
25
+ blankValue?: string;
26
+ }
27
+ export type DataGridColumnMenuItemLabels = Readonly<DataGridColumnMenuLabels>;
7
28
  export type DataGridColumnMenuDisabledReasons = Readonly<Partial<Record<DataGridColumnMenuItemKey, string>>>;
8
29
  export declare const DATAGRID_COLUMN_MENU_ACTION_KEYS: readonly ["sortAsc", "sortDesc", "clearSort", "toggleGroup", "pinMenu", "pinLeft", "pinRight", "unpin", "clearFilter", "addCurrentSelectionToFilter", "selectAllValues", "clearAllValues", "applyFilter", "cancelFilter"];
9
30
  export type DataGridColumnMenuActionKey = (typeof DATAGRID_COLUMN_MENU_ACTION_KEYS)[number];
@@ -0,0 +1,2 @@
1
+ export { default as DataGridQuickFilterInput } from "./host/DataGridQuickFilterInput";
2
+ export type { DataGridQuickFilterOptions, DataGridQuickFilterProp, DataGridResolvedQuickFilterOptions, } from "./config/dataGridQuickFilter";
@@ -0,0 +1,4 @@
1
+ import { D as a } from "./chunks/DataGridQuickFilterInput-TYJI9vo6.js";
2
+ export {
3
+ a as DataGridQuickFilterInput
4
+ };
@@ -0,0 +1,8 @@
1
+ import type { DataGridRowModel } from "@affino/datagrid-vue";
2
+ export type DataGridTableStageAutoSizeRowModel<TRow> = Pick<DataGridRowModel<TRow>, "getSnapshot" | "getRow" | "getRowCount" | "getRowsInRange">;
3
+ export interface ResolveDataGridTableStageAutoSizeRowsInput<TRow> {
4
+ rowModel: Partial<DataGridTableStageAutoSizeRowModel<TRow>> | null | undefined;
5
+ fallbackRows: readonly TRow[];
6
+ sampleLimit: number;
7
+ }
8
+ export declare function resolveDataGridTableStageAutoSizeRows<TRow>(input: ResolveDataGridTableStageAutoSizeRowsInput<TRow>): readonly TRow[];
@@ -1,5 +1,5 @@
1
1
  import { type ComputedRef, type CSSProperties, type Ref } from "vue";
2
- import type { DataGridFilterSnapshot, DataGridGroupBySpec, DataGridGroupExpansionSnapshot, DataGridPaginationSnapshot, DataGridRowNode, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, DataGridSortState, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
2
+ import type { DataGridFilterSnapshot, DataGridGroupBySpec, DataGridGroupExpansionSnapshot, DataGridPaginationSnapshot, DataGridRowNode, DataGridRowModel, DataGridColumnSnapshot, DataGridRowSelectionSnapshot, DataGridSelectionSnapshot, DataGridSortState, UseDataGridRuntimeResult } from "@affino/datagrid-vue";
3
3
  import type { DataGridCopyRange } from "@affino/datagrid-vue/advanced";
4
4
  import { type DataGridAppPasteOptions } from "@affino/datagrid-vue/app";
5
5
  import type { DataGridCellEditablePredicate } from "../dataGridEditability";
@@ -73,6 +73,9 @@ export interface UseDataGridTableStageRuntimeOptions<TRow extends Record<string,
73
73
  runtimeRowModel?: {
74
74
  subscribe: UseDataGridRuntimeResult<TRow>["rowModel"]["subscribe"];
75
75
  getSnapshot: UseDataGridRuntimeResult<TRow>["rowModel"]["getSnapshot"];
76
+ getRow?: DataGridRowModel<TRow>["getRow"];
77
+ getRowCount?: DataGridRowModel<TRow>["getRowCount"];
78
+ getRowsInRange?: DataGridRowModel<TRow>["getRowsInRange"];
76
79
  dataSource?: {
77
80
  resolveFillBoundary?: (request: DataGridAppResolveFillBoundaryRequest) => Promise<DataGridAppResolveFillBoundaryResult> | DataGridAppResolveFillBoundaryResult;
78
81
  commitFillOperation?: (request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affino/datagrid-vue-app",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "Declarative Vue DataGrid component for Affino",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,6 +26,10 @@
26
26
  "types": "./dist/advanced-filter.d.ts",
27
27
  "import": "./dist/advanced-filter.js"
28
28
  },
29
+ "./quick-filter": {
30
+ "types": "./dist/quick-filter.d.ts",
31
+ "import": "./dist/quick-filter.js"
32
+ },
29
33
  "./find-replace": {
30
34
  "types": "./dist/find-replace.d.ts",
31
35
  "import": "./dist/find-replace.js"
@@ -41,10 +45,10 @@
41
45
  "dependencies": {
42
46
  "@affino/menu-vue": "^2.1.1",
43
47
  "@affino/popover-vue": "^1.1.0",
44
- "@affino/datagrid-gantt": "0.1.2",
45
- "@affino/datagrid-vue": "0.3.35",
48
+ "@affino/datagrid-chrome": "0.1.1",
49
+ "@affino/datagrid-vue": "0.3.37",
46
50
  "@affino/datagrid-theme": "0.2.2",
47
- "@affino/datagrid-chrome": "0.1.1"
51
+ "@affino/datagrid-gantt": "0.1.2"
48
52
  },
49
53
  "peerDependencies": {
50
54
  "vue": "^3.3.0"