@illinois-grad/grad-vue 3.0.19 → 4.0.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.
@@ -2189,25 +2189,25 @@
2189
2189
  },
2190
2190
  {
2191
2191
  "kind": "field",
2192
- "name": "sortField",
2192
+ "name": "sorts",
2193
2193
  "type": {
2194
- "text": "keyof TableRow"
2194
+ "text": "TableSort<TableRow>[]"
2195
2195
  },
2196
2196
  "optional": true
2197
2197
  },
2198
2198
  {
2199
2199
  "kind": "field",
2200
- "name": "sortOrder",
2200
+ "name": "filter",
2201
2201
  "type": {
2202
- "text": "1 | -1"
2202
+ "text": "Partial<Record<keyof TableRow, any>>"
2203
2203
  },
2204
2204
  "optional": true
2205
2205
  },
2206
2206
  {
2207
2207
  "kind": "field",
2208
- "name": "filter",
2208
+ "name": "columnVisibility",
2209
2209
  "type": {
2210
- "text": "Partial<Record<keyof TableRow, any>>"
2210
+ "text": "Partial<Record<Extract<keyof TableRow, string>, boolean>>"
2211
2211
  },
2212
2212
  "optional": true
2213
2213
  },
@@ -111,10 +111,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
111
111
  onChange?: ((value: string[]) => any) | undefined;
112
112
  }>, {
113
113
  label: string;
114
+ required: boolean;
114
115
  radio: boolean;
115
116
  name: string;
116
117
  instructions: string;
117
118
  errors: string[];
118
- required: boolean;
119
119
  formKey: string;
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -97,10 +97,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
97
97
  }>, {
98
98
  label: string;
99
99
  placeholder: string;
100
+ required: boolean;
100
101
  name: string;
101
102
  instructions: string;
102
103
  errors: string[];
103
- required: boolean;
104
104
  formKey: string;
105
105
  disabled: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -97,10 +97,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
97
97
  }>, {
98
98
  label: string;
99
99
  placeholder: string;
100
+ required: boolean;
100
101
  name: string;
101
102
  instructions: string;
102
103
  errors: string[];
103
- required: boolean;
104
104
  formKey: string;
105
105
  disabled: boolean;
106
106
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -118,10 +118,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
118
118
  }) => any) | undefined;
119
119
  }>, {
120
120
  label: string;
121
+ required: boolean;
121
122
  name: string;
122
123
  instructions: string;
123
124
  errors: string[];
124
- required: boolean;
125
125
  formKey: string;
126
126
  disabled: boolean;
127
127
  startLabel: string;
@@ -85,9 +85,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
85
85
  }>, {
86
86
  label: string;
87
87
  placeholder: string;
88
+ required: boolean;
88
89
  name: string;
89
90
  instructions: string;
90
91
  errors: string[];
91
- required: boolean;
92
92
  disabled: boolean;
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -130,9 +130,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
130
130
  "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
131
131
  onChange?: ((files: File[]) => any) | undefined;
132
132
  }>, {
133
+ required: boolean;
133
134
  instructions: string;
134
135
  errors: string[];
135
- required: boolean;
136
136
  disabled: boolean;
137
137
  multiple: boolean;
138
138
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -146,8 +146,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
146
146
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
147
147
  onChange?: ((value: (string | number)[]) => any) | undefined;
148
148
  }>, {
149
- errors: string[];
150
149
  required: boolean;
150
+ errors: string[];
151
151
  disabled: boolean;
152
152
  hiddenLabel: boolean;
153
153
  searchDescription: boolean;
@@ -160,8 +160,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
160
160
  }> & Readonly<{
161
161
  "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
162
162
  }>, {
163
- errors: string[];
164
163
  required: boolean;
164
+ errors: string[];
165
165
  disabled: boolean;
166
166
  searchDescription: boolean;
167
167
  searchable: boolean;
@@ -103,9 +103,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
103
103
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
104
104
  }>, {
105
105
  size: "small" | "medium" | "large";
106
+ required: boolean;
106
107
  name: string;
107
108
  errors: string[];
108
- required: boolean;
109
109
  formKey: string;
110
110
  disabled: boolean;
111
111
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,4 @@
1
- import { TableColumn, TableRow } from "./table/TableColumn.ts";
1
+ import { TableColumn, TableRow, TableSort } from "./table/TableColumn.ts";
2
2
  import { VNode } from "vue";
3
3
  import { UseFilteringReturn } from "../compose/useFiltering.ts";
4
4
  import { CellChangePayload, UseTableChangesReturn } from "../compose/useTableChanges.ts";
@@ -127,16 +127,16 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
127
127
  */
128
128
  showPagination?: boolean;
129
129
  } & {
130
- sortField?: keyof T;
131
- sortOrder?: 1 | -1;
130
+ sorts?: TableSort<T>[];
132
131
  filter?: Partial<Record<keyof T, any>>;
132
+ columnVisibility?: Partial<Record<Extract<keyof T, string>, boolean>>;
133
133
  selectedRows?: string[];
134
134
  }) & {
135
135
  "onRow-click"?: ((link: string) => any) | undefined;
136
136
  "onCell-change"?: ((payload: CellChangePayload<T, Extract<keyof T, string>>) => any) | undefined;
137
- "onUpdate:sortField"?: ((value: keyof T | undefined) => any) | undefined;
138
- "onUpdate:sortOrder"?: ((value: 1 | -1 | undefined) => any) | undefined;
137
+ "onUpdate:sorts"?: ((value: TableSort<T, Extract<keyof T, string>>[]) => any) | undefined;
139
138
  "onUpdate:filter"?: ((value: Partial<Record<keyof T, any>>) => any) | undefined;
139
+ "onUpdate:columnVisibility"?: ((value: Partial<Record<Extract<keyof T, string>, boolean>>) => any) | undefined;
140
140
  "onUpdate:selectedRows"?: ((value: string[]) => any) | undefined;
141
141
  "onBulk-action"?: ((actionId: string, selectedKeys: string[]) => any) | undefined;
142
142
  }> & (typeof globalThis extends {
@@ -151,7 +151,7 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
151
151
  (e: "row-click", link: string): void;
152
152
  (e: "bulk-action", actionId: string, selectedKeys: string[]): void;
153
153
  (e: "cell-change", payload: CellChangePayload<T>): void;
154
- } & (((event: "update:sortField", value: keyof T | undefined) => void) & ((event: "update:sortOrder", value: 1 | -1 | undefined) => void) & ((event: "update:filter", value: Partial<Record<keyof T, any>>) => void) & ((event: "update:selectedRows", value: string[]) => void));
154
+ } & (((event: "update:sorts", value: TableSort<T, Extract<keyof T, string>>[]) => void) & ((event: "update:filter", value: Partial<Record<keyof T, any>>) => void) & ((event: "update:columnVisibility", value: Partial<Record<Extract<keyof T, string>, boolean>>) => void) & ((event: "update:selectedRows", value: string[]) => void));
155
155
  }>) => import("vue").VNode & {
156
156
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
157
157
  };
@@ -139,10 +139,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
139
139
  }>, {
140
140
  label: string;
141
141
  placeholder: string;
142
+ required: boolean;
142
143
  name: string;
143
144
  instructions: string;
144
145
  errors: string[];
145
- required: boolean;
146
146
  formKey: string;
147
147
  disabled: boolean;
148
148
  prefix: string;
@@ -150,10 +150,10 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
150
150
  }>, {
151
151
  label: string;
152
152
  placeholder: string;
153
+ required: boolean;
153
154
  name: string;
154
155
  instructions: string;
155
156
  errors: string[];
156
- required: boolean;
157
157
  formKey: string;
158
158
  disabled: boolean;
159
159
  readonly: boolean;
@@ -78,6 +78,10 @@ export interface EditableColumnConfig {
78
78
  labelKey?: string;
79
79
  }
80
80
  type ColumnKey<T> = Extract<keyof T, string>;
81
+ export interface TableSort<T extends TableRow, K extends ColumnKey<T> = ColumnKey<T>> {
82
+ key: K;
83
+ order: 1 | -1;
84
+ }
81
85
  export interface TableColumn<T extends TableRow, K extends ColumnKey<T> = ColumnKey<T>> {
82
86
  key: K;
83
87
  label: string;
@@ -3,12 +3,8 @@ type UseCustomElementAttrsOptions = {
3
3
  };
4
4
  export declare function isCustomElementMode(): boolean;
5
5
  export declare function useCustomElementAttrs(options?: UseCustomElementAttrsOptions): {
6
- attrs: {
7
- [x: string]: unknown;
8
- };
6
+ attrs: import("vue").Attrs;
9
7
  isCustomElement: boolean;
10
- forwardedAttrs: import("vue").ComputedRef<{
11
- [x: string]: unknown;
12
- }>;
8
+ forwardedAttrs: import("vue").ComputedRef<Record<string, unknown>>;
13
9
  };
14
10
  export {};