sit-onyx 1.0.0-beta.166 → 1.0.0-beta.168
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/components/OnyxDataGrid/features/all.d.ts +2 -0
- package/dist/components/OnyxDataGrid/features/index.d.ts +1 -1
- package/dist/components/OnyxDataGrid/features/renderer.d.ts +1 -0
- package/dist/components/OnyxDataGrid/features/stickyColumns/TestCase.vue.d.ts +10 -0
- package/dist/components/OnyxDataGrid/features/stickyColumns/stickyColumns.d.ts +10 -0
- package/dist/components/OnyxDataGrid/features/stickyColumns/types.d.ts +12 -0
- package/dist/components/examples/DataGrid/StickyColumnDataGrid.vue.d.ts +10 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +1240 -1189
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./selection/types";
|
|
2
2
|
export * from "./sorting/types";
|
|
3
|
+
export * from "./stickyColumns/types";
|
|
3
4
|
export { useFiltering } from "./filtering/filtering";
|
|
4
5
|
export { useSelection } from "./selection/selection";
|
|
5
6
|
export { useSorting } from "./sorting/sorting";
|
|
7
|
+
export { useStickyColumns } from "./stickyColumns/stickyColumns";
|
|
@@ -36,7 +36,7 @@ export type ColumnGroupConfig = Record<string, {
|
|
|
36
36
|
/**
|
|
37
37
|
* Column config used internally and by the `modifyColumns` functions.
|
|
38
38
|
*/
|
|
39
|
-
export type InternalColumnConfig<TEntry extends DataGridEntry, TColumnGroup extends ColumnGroupConfig = any, TTypes = PropertyKey> = {
|
|
39
|
+
export type InternalColumnConfig<TEntry extends DataGridEntry, TColumnGroup extends ColumnGroupConfig = any, TTypes extends PropertyKey = PropertyKey> = {
|
|
40
40
|
/**
|
|
41
41
|
* Attributes that should be set on all `td` elements
|
|
42
42
|
*/
|
|
@@ -2,6 +2,7 @@ import type { DataGridEntry } from "../types";
|
|
|
2
2
|
import type { DataGridFeature, TypeRenderer, TypeRenderMap } from "./index";
|
|
3
3
|
import "./renderer.scss";
|
|
4
4
|
export type DefaultSupportedTypes = "string" | "number";
|
|
5
|
+
export declare const FALLBACK_RENDER_VALUE: "-";
|
|
5
6
|
export declare const createRenderer: <TEntry extends DataGridEntry>(features: DataGridFeature<TEntry, TypeRenderMap<TEntry>, symbol>[]) => {
|
|
6
7
|
/**
|
|
7
8
|
* Returns a renderer for any given component and type.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DataGridEntry, OnyxDataGridProps } from "../../../..";
|
|
2
|
+
import type { StickyColumnsOptions } from "./types";
|
|
3
|
+
type __VLS_Props = Pick<OnyxDataGridProps<any, any, any, any, any>, "columns" | "data"> & {
|
|
4
|
+
/**
|
|
5
|
+
* config
|
|
6
|
+
*/
|
|
7
|
+
stickyColumnsOptions?: StickyColumnsOptions<DataGridEntry>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ModifyColumns } from "..";
|
|
2
|
+
import type { DataGridEntry } from "../../types";
|
|
3
|
+
import "./stickyColumns.scss";
|
|
4
|
+
import type { StickyColumnsOptions } from "./types";
|
|
5
|
+
export declare const STICKY_COLUMNS_FEATURE: unique symbol;
|
|
6
|
+
export declare const useStickyColumns: <TEntry extends DataGridEntry>(options?: StickyColumnsOptions<TEntry>) => {
|
|
7
|
+
name: symbol;
|
|
8
|
+
watch: (import("vue").ComputedRef<"left" | "right"> | import("vue").ComputedRef<(keyof TEntry)[]>)[];
|
|
9
|
+
modifyColumns: ModifyColumns<TEntry>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DataGridEntry } from "../../types";
|
|
2
|
+
export type StickyColumnsOptions<TEntry extends DataGridEntry> = {
|
|
3
|
+
/**
|
|
4
|
+
* Defines the columns that should remain sticky.
|
|
5
|
+
*/
|
|
6
|
+
columns: (keyof TEntry)[];
|
|
7
|
+
/**
|
|
8
|
+
* * Determines the side to which the columns are sticked.
|
|
9
|
+
* @default `left`
|
|
10
|
+
*/
|
|
11
|
+
position?: "left" | "right";
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StickyColumnsOptions } from "../../OnyxDataGrid/features/stickyColumns/types";
|
|
2
|
+
type TEntry = (typeof data)[number];
|
|
3
|
+
type __VLS_Props = StickyColumnsOptions<TEntry>;
|
|
4
|
+
declare const data: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
rank: number;
|
|
8
|
+
}[];
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|