@atscript/vue-table 0.1.145 → 0.1.146

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,2 +1,2 @@
1
- import { t as _default } from "./as-table-actions.vue-DgMw3xJn.cjs";
1
+ import { t as _default } from "./as-table-actions.vue-BYphfAe2.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-actions.vue-BL4xy2-d.mjs";
1
+ import { t as _default } from "./as-table-actions.vue-C6hzRtS7.mjs";
2
2
  export { _default as default };
@@ -18,7 +18,7 @@ declare var __VLS_1: {
18
18
  defaultAction: TVueTableActionInfo | undefined;
19
19
  otherActions: TVueTableActionInfo[];
20
20
  trailingRowActions: TVueTableActionInfo[];
21
- level: "table" | "rows" | "row";
21
+ level: "row" | "rows" | "table";
22
22
  ids: Record<string, unknown>[];
23
23
  invoke: typeof invokeWith;
24
24
  }, __VLS_12: {
@@ -18,7 +18,7 @@ declare var __VLS_1: {
18
18
  defaultAction: TVueTableActionInfo | undefined;
19
19
  otherActions: TVueTableActionInfo[];
20
20
  trailingRowActions: TVueTableActionInfo[];
21
- level: "table" | "rows" | "row";
21
+ level: "row" | "rows" | "table";
22
22
  ids: Record<string, unknown>[];
23
23
  invoke: typeof invokeWith;
24
24
  }, __VLS_12: {
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-CXaFNCMi.cjs";
1
+ import { t as _default } from "./as-table-root.vue-Bjzp8TJl.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-DTos5nn3.mjs";
1
+ import { t as _default } from "./as-table-root.vue-XtDgUjO2.mjs";
2
2
  export { _default as default };
@@ -2571,13 +2571,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2571
2571
  "update:selectedRows": (value: unknown[]) => any;
2572
2572
  "update:urlQuery": (value: string | undefined) => any;
2573
2573
  } & {
2574
- action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2575
2574
  "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2575
+ action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2576
2576
  "unsupported-filter": (issue: UnsupportedFilter) => any;
2577
2577
  "fields-dropped": (report: DroppedFieldsReport) => any;
2578
2578
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2579
- onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2580
2579
  "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2580
+ onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2581
2581
  "onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
2582
2582
  "onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
2583
2583
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
@@ -2571,13 +2571,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2571
2571
  "update:selectedRows": (value: unknown[]) => any;
2572
2572
  "update:urlQuery": (value: string | undefined) => any;
2573
2573
  } & {
2574
- action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2575
2574
  "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2575
+ action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2576
2576
  "unsupported-filter": (issue: UnsupportedFilter) => any;
2577
2577
  "fields-dropped": (report: DroppedFieldsReport) => any;
2578
2578
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2579
- onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2580
2579
  "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2580
+ onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2581
2581
  "onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
2582
2582
  "onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
2583
2583
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-EfLWpNy3.cjs";
1
+ import { t as _default } from "./as-table.vue-BULJe49x.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-Cn1CXJ1Y.mjs";
1
+ import { t as _default } from "./as-table.vue-DgCtlV4u.mjs";
2
2
  export { _default as default };
@@ -93,12 +93,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
93
93
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
94
94
  "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
95
95
  }>, {
96
- select: SelectionMode;
97
96
  stickyHeader: boolean;
98
97
  virtualOverscan: number;
99
98
  reorderable: boolean;
100
99
  resizable: boolean;
101
100
  columnMinWidth: number;
101
+ select: SelectionMode;
102
102
  selectOn: SelectOn;
103
103
  rowDelete: boolean | RowDeleteOpt;
104
104
  rowActionsColumn: RowActionsColumnPlacement | false;
@@ -93,12 +93,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
93
93
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
94
94
  "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
95
95
  }>, {
96
- select: SelectionMode;
97
96
  stickyHeader: boolean;
98
97
  virtualOverscan: number;
99
98
  reorderable: boolean;
100
99
  resizable: boolean;
101
100
  columnMinWidth: number;
101
+ select: SelectionMode;
102
102
  selectOn: SelectOn;
103
103
  rowDelete: boolean | RowDeleteOpt;
104
104
  rowActionsColumn: RowActionsColumnPlacement | false;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-DCd8FtpC.cjs";
1
+ import { t as _default } from "./as-window-table.vue-ijutqrJ0.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-DN5hed6Y.mjs";
1
+ import { t as _default } from "./as-window-table.vue-CYFgK10g.mjs";
2
2
  export { _default as default };
@@ -110,10 +110,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
110
110
  "onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
111
111
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
112
112
  }>, {
113
- select: SelectionMode;
114
113
  reorderable: boolean;
115
114
  resizable: boolean;
116
115
  columnMinWidth: number;
116
+ select: SelectionMode;
117
117
  selectOn: SelectOn;
118
118
  rowDelete: boolean | RowDeleteOpt;
119
119
  rowActionsColumn: RowActionsColumnPlacement | false;
@@ -110,10 +110,10 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
110
110
  "onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
111
111
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
112
112
  }>, {
113
- select: SelectionMode;
114
113
  reorderable: boolean;
115
114
  resizable: boolean;
116
115
  columnMinWidth: number;
116
+ select: SelectionMode;
117
117
  selectOn: SelectOn;
118
118
  rowDelete: boolean | RowDeleteOpt;
119
119
  rowActionsColumn: RowActionsColumnPlacement | false;
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as _default$11 } from "./as-filters.vue-vH1FHn9L.cjs";
2
2
  import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
3
3
  import { A as TableNavBridge, C as RowSelectableVerdict, D as TAsTableControls, E as TAsCellTypeComponents, M as extractIdentifier, O as TVueTableActionInfo, S as RowSelectableHook, T as SelectOn, _ as RowActionsConfig, b as RowDeleteOpt, c as InvokeOpts, d as NavKeyOptions, h as ResolvedRowActions, i as ConfigTab, j as resolveRowActions, k as TableActionsState, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowAttrsHook, w as SelectAllState, x as RowHookContext, y as RowClassHook } from "./types-D1NxhrpW.cjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-DgMw3xJn.cjs";
5
- import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-CXaFNCMi.cjs";
6
- import { t as _default$15 } from "./as-table.vue-EfLWpNy3.cjs";
7
- import { t as _default$20 } from "./as-window-table.vue-DCd8FtpC.cjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-BYphfAe2.cjs";
5
+ import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-Bjzp8TJl.cjs";
6
+ import { t as _default$15 } from "./as-table.vue-BULJe49x.cjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-ijutqrJ0.cjs";
8
8
  import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
9
9
  import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
10
10
  import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as _default$11 } from "./as-filters.vue-dHbGmcbr.mjs";
2
2
  import { t as _default$13 } from "./as-preset-picker.vue-OaAV2v9z.mjs";
3
3
  import { A as TableNavBridge, C as RowSelectableVerdict, D as TAsTableControls, E as TAsCellTypeComponents, M as extractIdentifier, O as TVueTableActionInfo, S as RowSelectableHook, T as SelectOn, _ as RowActionsConfig, b as RowDeleteOpt, c as InvokeOpts, d as NavKeyOptions, h as ResolvedRowActions, i as ConfigTab, j as resolveRowActions, k as TableActionsState, l as LocalRowAction, m as ReactiveTableState, n as ApplyUrlQueryOptions, o as DroppedFieldsReport, p as QueryErrorKind, r as ColumnMenuConfig, t as ActionResult, u as MainActionRequest, v as RowAttrsHook, w as SelectAllState, x as RowHookContext, y as RowClassHook } from "./types-BEZ4_erB.mjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-BL4xy2-d.mjs";
5
- import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-DTos5nn3.mjs";
6
- import { t as _default$15 } from "./as-table.vue-Cn1CXJ1Y.mjs";
7
- import { t as _default$20 } from "./as-window-table.vue-DN5hed6Y.mjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-C6hzRtS7.mjs";
5
+ import { $ as useTableExport, A as CellLocale, B as injectPresetsApp, C as isSystemPresetId, Ct as UseLocalDraftReturn, D as formatCellValue, E as setDefaultClientFactory, F as useTableComponent, G as useTableFilter, H as useTableUrlQuery, I as UseAppPrefsOptions, J as ExportProgress, K as useTableNavBridge, L as UseAppPrefsReturn, M as useCellLocale, N as createDefaultCellTypes, O as getCellValue, P as createDefaultControls, Q as downloadExport, R as useAppPrefs, S as getDefaultClientFactory, St as UseLocalDraftOptions, T as resolveSystemPresets, U as useTableActions, V as UseTableUrlQueryOptions, W as useTableSearch, X as ExportRowsOptions, Y as ExportResult, Z as UseTableExportReturn, _ as SYSTEM_PRESET_PREFIX, _t as ActivePresetView, a as CsvOptions, at as BuildQueryOptions, b as UrlQuerySync, bt as usePresets, c as ExportScalar, ct as QueryFn, d as PresetCapabilities, dt as TableStateInternals, et as UseTableOptions, f as PresetData, ft as createStaticTableState, g as STANDARD_PRESET_ID, gt as useTableContextOptional, h as QueryOptions, ht as useTableContext, i as ClientFactory, it as useTableSelection, j as provideCellLocale, k as getColumnWidth, l as PRESET_ASPECTS, lt as TableContext, m as PresetSnapshotWire, mt as provideTableContext, n as AppConfData, nt as useTable, o as DisplayColumnDef, ot as CreateStaticTableStateOptions, p as PresetSnapshot, pt as createTableState, q as ExportCellFormatter, r as AsPresetEntryRow, rt as SelectionPersistence, s as ExportAbortError, st as CreateTableStateOptions, t as _default$19, tt as clearTableCache, u as PresetAspect, ut as TableModelRefs, v as SystemPreset, vt as UsePresetsOptions, w as resetDefaultClientFactory, wt as useLocalDraft, x as UserConfData, xt as StorageLike, y as SystemPresetInput, yt as UsePresetsReturn, z as AS_PRESETS_APP } from "./as-table-root.vue-XtDgUjO2.mjs";
6
+ import { t as _default$15 } from "./as-table.vue-DgCtlV4u.mjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-CYFgK10g.mjs";
8
8
  import { t as _default } from "./as-cell-array.vue-ow34clSF.mjs";
9
9
  import { t as _default$1 } from "./as-cell-date.vue-B4JCr1qP.mjs";
10
10
  import { t as _default$2 } from "./as-cell-json.vue-B-T3TuFj.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-table",
3
- "version": "0.1.145",
3
+ "version": "0.1.146",
4
4
  "description": "Type-driven table components for Atscript with Vue 3",
5
5
  "keywords": [
6
6
  "atscript",
@@ -167,13 +167,13 @@
167
167
  "access": "public"
168
168
  },
169
169
  "dependencies": {
170
- "@atscript/ui": "^0.1.145",
171
- "@atscript/ui-table": "^0.1.145",
172
- "@atscript/vue-form": "^0.1.145"
170
+ "@atscript/ui": "^0.1.146",
171
+ "@atscript/vue-form": "^0.1.146",
172
+ "@atscript/ui-table": "^0.1.146"
173
173
  },
174
174
  "devDependencies": {
175
- "@atscript/db-client": "^0.1.145",
176
- "@atscript/typescript": "^0.1.97",
175
+ "@atscript/db-client": "^0.1.146",
176
+ "@atscript/typescript": "^0.1.98",
177
177
  "@tanstack/vue-virtual": "^3.13.26",
178
178
  "@uniqu/core": "^0.1.11",
179
179
  "@uniqu/url": "^0.1.11",
@@ -189,7 +189,7 @@
189
189
  "vunor": "^0.3.2"
190
190
  },
191
191
  "peerDependencies": {
192
- "@atscript/db-client": "^0.1.145",
192
+ "@atscript/db-client": "^0.1.146",
193
193
  "@tanstack/vue-virtual": "^3.13.26",
194
194
  "@uniqu/url": "^0.1.11",
195
195
  "@vueuse/core": "^14.3.0",