@illinois-grad/grad-vue 2.3.4 → 2.4.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.
Files changed (40) hide show
  1. package/README.md +20 -5
  2. package/dist/components/GAlertDialog.vue.d.ts +43 -12
  3. package/dist/components/GAppHeader.vue.d.ts +30 -18
  4. package/dist/components/GButton.vue.d.ts +77 -12
  5. package/dist/components/GClipboard.vue.d.ts +30 -5
  6. package/dist/components/GCurrencyInput.vue.d.ts +53 -10
  7. package/dist/components/GDateInput.vue.d.ts +53 -10
  8. package/dist/components/GDateRangeInput.vue.d.ts +74 -17
  9. package/dist/components/GDetailList.vue.d.ts +14 -11
  10. package/dist/components/GEmailInput.vue.d.ts +53 -10
  11. package/dist/components/GForm.vue.d.ts +54 -21
  12. package/dist/components/GHamburgerMenu.vue.d.ts +40 -6
  13. package/dist/components/GHistoryScroller.vue.d.ts +34 -2
  14. package/dist/components/GModal.vue.d.ts +78 -12
  15. package/dist/components/GOverlay.vue.d.ts +4 -1
  16. package/dist/components/GPopover.vue.d.ts +46 -21
  17. package/dist/components/GProgress.vue.d.ts +38 -5
  18. package/dist/components/GSearch.vue.d.ts +73 -2
  19. package/dist/components/GSelect.vue.d.ts +103 -26
  20. package/dist/components/GSelectButton.vue.d.ts +65 -16
  21. package/dist/components/GSidebar.vue.d.ts +62 -11
  22. package/dist/components/GSidebarMenu.vue.d.ts +125 -16
  23. package/dist/components/GSubmitButton.vue.d.ts +39 -11
  24. package/dist/components/GTable.vue.d.ts +86 -3
  25. package/dist/components/GTermSelector.vue.d.ts +48 -10
  26. package/dist/components/GTextInput.vue.d.ts +80 -18
  27. package/dist/components/GThreeWayToggle.vue.d.ts +54 -17
  28. package/dist/components/GUserMenu.vue.d.ts +61 -10
  29. package/dist/components/form/GFormErrorMessages.vue.d.ts +13 -5
  30. package/dist/components/table/GTableBody.vue.d.ts +5 -2
  31. package/dist/components/table/GTablePagination.vue.d.ts +43 -11
  32. package/dist/components/term/GTermSelectorControl.vue.d.ts +32 -10
  33. package/dist/compose/useOverlayStack.d.ts +10 -0
  34. package/dist/grad-vue.css +1 -1
  35. package/dist/grad-vue.js +1 -1
  36. package/dist/{main-DEKKtASV.js → main-BtQAK04Y.js} +1060 -1010
  37. package/dist/main-BtQAK04Y.js.map +1 -0
  38. package/dist/plugin.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/main-DEKKtASV.js.map +0 -1
@@ -1,29 +1,57 @@
1
- interface Props {
1
+ /**
2
+ * A submit button that integrates with GForm.
3
+ *
4
+ * When used inside a GForm, the button will automatically:
5
+ * - Show a loading state during form submission
6
+ * - Be disabled when specified
7
+ *
8
+ * @example
9
+ * <GForm v-model="formData" @submit="handleSubmit">
10
+ * <GTextInput name="email" label="Email" />
11
+ * <GSubmitButton>Submit</GSubmitButton>
12
+ * </GForm>
13
+ */
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
17
  /**
3
18
  * Disabled state
19
+ * @demo
4
20
  */
5
21
  disabled?: boolean;
6
22
  /**
7
23
  * Loading text to show during submission
24
+ * @demo
8
25
  */
9
26
  loadingText?: string;
10
27
  /**
11
28
  * Variant
29
+ * @demo
12
30
  */
13
31
  variant?: "primary" | "secondary" | "danger";
14
- }
15
- declare var __VLS_8: {};
16
- type __VLS_Slots = {} & {
17
- default?: (props: typeof __VLS_8) => any;
18
- };
19
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
32
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
33
+ /**
34
+ * Disabled state
35
+ * @demo
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Loading text to show during submission
40
+ * @demo
41
+ */
42
+ loadingText?: string;
43
+ /**
44
+ * Variant
45
+ * @demo
46
+ */
47
+ variant?: "primary" | "secondary" | "danger";
48
+ }> & Readonly<{}>, {
20
49
  disabled: boolean;
21
50
  variant: "primary" | "secondary" | "danger";
22
51
  loadingText: string;
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
- declare const _default: typeof __VLS_export;
26
- export default _default;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
53
+ default?: (props: {}) => any;
54
+ }>;
27
55
  type __VLS_WithSlots<T, S> = T & {
28
56
  new (): {
29
57
  $slots: S;
@@ -16,29 +16,114 @@ export interface BulkAction {
16
16
  */
17
17
  theme?: "primary" | "secondary" | "accent" | "danger";
18
18
  }
19
+ /**
20
+ * A data table component with support for grouping, sorting, filtering, and pagination.
21
+ *
22
+ * A heavy focus has been on performance. The table body doesn't use any
23
+ * Vue components, it's pure render functions. We've used it with
24
+ * 4000 rows and 14 columns loaded without issues.
25
+ *
26
+ * This is a bit complicated to use, so an example has been omitted here.
27
+ * Instead, look at the source for this demo: [GTable Demo Source](https://github.com/graduatecollege/grad-vue/blob/main/demo/components/demo/GTableDemo.vue).
28
+ *
29
+ * Here are some of the key points.
30
+ *
31
+ * Table content is provided with:
32
+ * - `columns` configuration using the `TableColumn` type.
33
+ * - At minimum the configuration must include `key` for which field of the data
34
+ * objects to use, and `label` for the column header.
35
+ * - `sortable: true` makes the column sortable.
36
+ * - `filter` can be used to provide a `TableColumnFilter` configuration.
37
+ * - `display` accepts a custom render function for the column data.
38
+ * - `trClass` and `tdClass` can be used to provide custom classes for table rows and cells.
39
+ * - `data` array with objects containing fields for the columns.
40
+ *
41
+ * Rows can be made clickable with `row-clickable`. In this case, one of the
42
+ * cells must contain a link. Clicking a row will emit a `row-click` event
43
+ * with the link `href` from the first link in the row.
44
+ *
45
+ * Grouping can be enabled by passing a column key to `groupBy`.
46
+ */
47
+ declare const _default: typeof __VLS_export;
48
+ export default _default;
19
49
  declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
20
50
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
21
51
  /**
22
52
  * Accessible label
53
+ * @demo Colleges
23
54
  */
24
55
  label: string;
56
+ /**
57
+ * The data to display in the table
58
+ *
59
+ * The data should be an array of objects, each representing a row in the table.
60
+ * Each object should have a unique `key` property that can be used to identify the row.
61
+ */
25
62
  data: T[];
63
+ /**
64
+ * The columns to display in the table
65
+ *
66
+ * Each column's key needs to match the key of a property in the data objects,
67
+ * which determines the data to display in that column by default. You can also
68
+ * provide a custom display function to customize the data display.
69
+ */
26
70
  columns: C[];
71
+ /**
72
+ * Result count for all of the possible results (not just the current page)
73
+ *
74
+ * This is shown in the toolbar.
75
+ */
27
76
  resultCount?: number;
77
+ /**
78
+ * A column key to group the data by
79
+ *
80
+ * If provided, the `groupRender` render function will be used to render the group header.
81
+ */
28
82
  groupBy?: keyof T;
29
- filtering?: UseFilteringReturn<any>;
83
+ /**
84
+ * A render function to customize the display of the group header.
85
+ *
86
+ * @param groupValue The value of the group key for the current row
87
+ * @param row The row object for the first row in the group
88
+ */
30
89
  groupRender?: (groupValue: any, row: T) => VNode;
90
+ /**
91
+ * Filtering object created with useFiltering()
92
+ */
93
+ filtering?: UseFilteringReturn<any>;
94
+ /**
95
+ * Make the table rows clickable
96
+ */
31
97
  rowClickable?: boolean;
98
+ /**
99
+ * A function to customize the classes applied to table rows
100
+ * @param row The row object
101
+ */
32
102
  rowClass?: (row: T) => string | string[] | undefined;
103
+ /**
104
+ * The starting index for this page
105
+ *
106
+ * This is used for the ARIA rowindex attribute, and is VERY important
107
+ * to not get wrong.
108
+ */
33
109
  startIndex: number;
34
110
  /**
35
111
  * Enable bulk selection with checkboxes
112
+ * @demo
36
113
  */
37
114
  bulkSelectionEnabled?: boolean;
115
+ /**
116
+ * Array of actions to show in the sticky toolbar when rows are selected
117
+ */
38
118
  bulkActions?: BulkAction[];
119
+ /**
120
+ * Optional change tracker for editable tables.
121
+ * Pass a composable from useTableChanges() to track user edits.
122
+ */
39
123
  changeTracker?: UseTableChangesReturn<T>;
40
124
  /**
41
125
  * Explicitly show the pagination bar even if the slot is empty
126
+ * @demo
42
127
  */
43
128
  showPagination?: boolean;
44
129
  } & {
@@ -70,8 +155,6 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
70
155
  }>) => import("vue").VNode & {
71
156
  __ctx?: Awaited<typeof __VLS_setup>;
72
157
  };
73
- declare const _default: typeof __VLS_export;
74
- export default _default;
75
158
  type __VLS_PrettifyLocal<T> = (T extends any ? {
76
159
  [K in keyof T]: T[K];
77
160
  } : {
@@ -1,33 +1,73 @@
1
- interface Props {
1
+ /**
2
+ * A button that shows the selected term. Clicking it opens a popover
3
+ * that allows jumping to a different term.
4
+ */
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import("vue").DefineComponent<{
2
8
  /**
3
9
  * Title for the popover.
10
+ * @demo Period Selection
4
11
  */
5
12
  title?: string;
6
13
  /**
7
14
  * Label for year select.
15
+ * @demo Select Year
8
16
  */
9
17
  yearLabel?: string;
10
18
  /**
11
19
  * Label for period select.
20
+ * @demo Term
12
21
  */
13
22
  periodLabel?: string;
23
+ /**
24
+ * List of possible term years
25
+ */
14
26
  termYears?: string[];
27
+ /**
28
+ * List of possible term names
29
+ */
15
30
  termNames?: string[];
16
- }
17
- type __VLS_Props = Props;
18
- type __VLS_ModelProps = {
31
+ } & {
19
32
  modelValue?: {
20
33
  year: string;
21
34
  name: string;
22
35
  };
23
- };
24
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
25
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
37
  "update:modelValue": (value: {
27
38
  year: string;
28
39
  name: string;
29
40
  }) => any;
30
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
41
+ }, string, import("vue").PublicProps, Readonly<{
42
+ /**
43
+ * Title for the popover.
44
+ * @demo Period Selection
45
+ */
46
+ title?: string;
47
+ /**
48
+ * Label for year select.
49
+ * @demo Select Year
50
+ */
51
+ yearLabel?: string;
52
+ /**
53
+ * Label for period select.
54
+ * @demo Term
55
+ */
56
+ periodLabel?: string;
57
+ /**
58
+ * List of possible term years
59
+ */
60
+ termYears?: string[];
61
+ /**
62
+ * List of possible term names
63
+ */
64
+ termNames?: string[];
65
+ } & {
66
+ modelValue?: {
67
+ year: string;
68
+ name: string;
69
+ };
70
+ }> & Readonly<{
31
71
  "onUpdate:modelValue"?: ((value: {
32
72
  year: string;
33
73
  name: string;
@@ -37,5 +77,3 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
37
77
  termYears: string[];
38
78
  termNames: string[];
39
79
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
- declare const _default: typeof __VLS_export;
41
- export default _default;
@@ -1,56 +1,119 @@
1
- type Props = {
1
+ /**
2
+ * A text input with styling for a label, instructions, and error messages.
3
+ *
4
+ * If `label` is omitted, an accessible label must be provided some other way.
5
+ * All non-prop attributes are passed through to the input element, including
6
+ * `id`.
7
+ *
8
+ * Errors are provided as an array of strings or computed values.
9
+ * Multiple errors will all be displayed.
10
+ */
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
14
  /**
3
15
  * Label
16
+ * @demo Example Label
4
17
  */
5
18
  label?: string;
6
19
  /**
7
20
  * Placeholder text
21
+ * @demo
8
22
  */
9
23
  placeholder?: string;
10
24
  /**
11
25
  * Disabled
26
+ * @demo
12
27
  */
13
28
  disabled?: boolean;
29
+ /**
30
+ * Error messages array (supports multiple validation errors)
31
+ */
14
32
  errors?: string[];
15
33
  /**
16
34
  * Instructions
35
+ * @demo
17
36
  */
18
37
  instructions?: string;
19
38
  /**
20
39
  * Prefix text (displayed before input)
40
+ * @demo
21
41
  */
22
42
  prefix?: string;
23
43
  /**
24
44
  * Suffix text (displayed after input)
45
+ * @demo
25
46
  */
26
47
  suffix?: string;
27
48
  /**
28
49
  * Debounce in milliseconds
50
+ * @demo
29
51
  */
30
52
  debounce?: number;
53
+ /**
54
+ * Name for form registration
55
+ */
31
56
  name?: string;
32
- };
33
- type __VLS_Props = Props;
34
- type __VLS_ModelProps = {
57
+ } & {
35
58
  modelValue?: string | null;
36
- };
37
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
38
- declare var __VLS_1: {};
39
- type __VLS_Slots = {} & {
40
- instructions?: (props: typeof __VLS_1) => any;
41
- };
42
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
+ "update:modelValue": (value: string | null | undefined) => any;
43
61
  change: (args_0: {
44
62
  was: string | null | undefined;
45
63
  to: string | null;
46
64
  }) => any;
47
- "update:modelValue": (value: string | null | undefined) => any;
48
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
65
+ }, string, import("vue").PublicProps, Readonly<{
66
+ /**
67
+ * Label
68
+ * @demo Example Label
69
+ */
70
+ label?: string;
71
+ /**
72
+ * Placeholder text
73
+ * @demo
74
+ */
75
+ placeholder?: string;
76
+ /**
77
+ * Disabled
78
+ * @demo
79
+ */
80
+ disabled?: boolean;
81
+ /**
82
+ * Error messages array (supports multiple validation errors)
83
+ */
84
+ errors?: string[];
85
+ /**
86
+ * Instructions
87
+ * @demo
88
+ */
89
+ instructions?: string;
90
+ /**
91
+ * Prefix text (displayed before input)
92
+ * @demo
93
+ */
94
+ prefix?: string;
95
+ /**
96
+ * Suffix text (displayed after input)
97
+ * @demo
98
+ */
99
+ suffix?: string;
100
+ /**
101
+ * Debounce in milliseconds
102
+ * @demo
103
+ */
104
+ debounce?: number;
105
+ /**
106
+ * Name for form registration
107
+ */
108
+ name?: string;
109
+ } & {
110
+ modelValue?: string | null;
111
+ }> & Readonly<{
112
+ "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
49
113
  onChange?: ((args_0: {
50
114
  was: string | null | undefined;
51
115
  to: string | null;
52
116
  }) => any) | undefined;
53
- "onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
54
117
  }>, {
55
118
  label: string;
56
119
  name: string;
@@ -61,10 +124,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
61
124
  prefix: string;
62
125
  suffix: string;
63
126
  debounce: number;
64
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
66
- declare const _default: typeof __VLS_export;
67
- export default _default;
127
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
128
+ instructions?: (props: {}) => any;
129
+ }>;
68
130
  type __VLS_WithSlots<T, S> = T & {
69
131
  new (): {
70
132
  $slots: S;
@@ -1,37 +1,74 @@
1
- interface Props {
1
+ /**
2
+ * This component acts like a radio button group condensed into a compact
3
+ * element with the goal of making it easy to go over many of them at once.
4
+ *
5
+ * In addition to the arrow keys changing the selected value, special key
6
+ * bindings exist for 'y' and 'n' to set yes and no respectively.
7
+ *
8
+ * A `describedby` prop can be passed with an ID to an element to be used as
9
+ * the `aria-describedby` for the group element.
10
+ *
11
+ * When the value changes, `v-model` is updated. A `change` event is also emitted
12
+ * if the value changed from user interaction.
13
+ *
14
+ * Slots:
15
+ * - `label`: Custom label content. Defaults to `label` prop if not provided.
16
+ */
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
20
  /**
3
21
  * Accessible label
22
+ * @demo Three-way toggle
4
23
  */
5
24
  label: string;
25
+ /**
26
+ * ID of an element that describes the input
27
+ */
6
28
  describedby?: string;
7
29
  /**
8
30
  * Error message
31
+ * @demo
9
32
  */
10
33
  error?: string;
11
34
  /**
12
35
  * Disabled
36
+ * @demo
13
37
  */
14
38
  disabled?: boolean;
15
- }
16
- type __VLS_Props = Props;
17
- type __VLS_ModelProps = {
39
+ } & {
18
40
  modelValue?: boolean | null;
19
- };
20
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
21
- declare var __VLS_1: {};
22
- type __VLS_Slots = {} & {
23
- label?: (props: typeof __VLS_1) => any;
24
- };
25
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
42
  change: (...args: any[]) => void;
27
43
  "update:modelValue": (value: boolean | null) => void;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
- onChange?: ((...args: any[]) => any) | undefined;
44
+ }, string, import("vue").PublicProps, Readonly<{
45
+ /**
46
+ * Accessible label
47
+ * @demo Three-way toggle
48
+ */
49
+ label: string;
50
+ /**
51
+ * ID of an element that describes the input
52
+ */
53
+ describedby?: string;
54
+ /**
55
+ * Error message
56
+ * @demo
57
+ */
58
+ error?: string;
59
+ /**
60
+ * Disabled
61
+ * @demo
62
+ */
63
+ disabled?: boolean;
64
+ } & {
65
+ modelValue?: boolean | null;
66
+ }> & Readonly<{
30
67
  "onUpdate:modelValue"?: ((value: boolean | null) => any) | undefined;
31
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
68
+ onChange?: ((...args: any[]) => any) | undefined;
69
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
70
+ label?: (props: {}) => any;
71
+ }>;
35
72
  type __VLS_WithSlots<T, S> = T & {
36
73
  new (): {
37
74
  $slots: S;
@@ -1,31 +1,82 @@
1
- interface Props {
1
+ /**
2
+ * User menu component for toolbars. Displays a button with the user's initials
3
+ * inside a colored circle. When clicked, it opens a popover with the user's
4
+ * email and a menu for account-related links.
5
+ *
6
+ * **Slots**:
7
+ * - `default` contains menu items (links or buttons) that will be wrapped in
8
+ * an unordered list for accessibility.
9
+ *
10
+ * **Props**:
11
+ * - `initials` - User's initials to display in the avatar
12
+ * - `email` - User's email to display in the popover
13
+ * - `color` - Background color for the avatar (should be deterministic)
14
+ * - `label` - Accessible label for the menu button. The initial will be prepended to this for the full label.
15
+ *
16
+ * Example:
17
+ *
18
+ * ```vue-html
19
+ * <GUserMenu
20
+ * initials="J"
21
+ * email="j@example.com"
22
+ * color="#4A90E2"
23
+ * >
24
+ * <router-link to="/profile">Profile</router-link>
25
+ * <a href="/settings">Settings</a>
26
+ * <button @click="handleLogout">Logout</button>
27
+ * </GUserMenu>
28
+ * ```
29
+ */
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
2
33
  /**
3
34
  * User initial(s)
35
+ * @demo J
4
36
  */
5
37
  initials: string;
6
38
  /**
7
39
  * User email
40
+ * @demo j@example.org
8
41
  */
9
42
  email: string;
10
43
  /**
11
44
  * Background color
45
+ * @demo
12
46
  */
13
47
  color?: string;
14
48
  /**
15
49
  * Accessible label
50
+ * @demo
16
51
  */
17
52
  label?: string;
18
- }
19
- type __VLS_Slots = {
20
- default(): any;
21
- };
22
- declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
53
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
54
+ /**
55
+ * User initial(s)
56
+ * @demo J
57
+ */
58
+ initials: string;
59
+ /**
60
+ * User email
61
+ * @demo j@example.org
62
+ */
63
+ email: string;
64
+ /**
65
+ * Background color
66
+ * @demo
67
+ */
68
+ color?: string;
69
+ /**
70
+ * Accessible label
71
+ * @demo
72
+ */
73
+ label?: string;
74
+ }> & Readonly<{}>, {
23
75
  label: string;
24
76
  color: string;
25
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
- declare const _default: typeof __VLS_export;
28
- export default _default;
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
78
+ default(): any;
79
+ }>;
29
80
  type __VLS_WithSlots<T, S> = T & {
30
81
  new (): {
31
82
  $slots: S;
@@ -3,7 +3,9 @@
3
3
  * This component is used by form input components to display validation errors
4
4
  * in a consistent way across all form fields.
5
5
  */
6
- interface Props {
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ declare const __VLS_export: import("vue").DefineComponent<{
7
9
  /**
8
10
  * Array of error messages to display
9
11
  */
@@ -12,7 +14,13 @@ interface Props {
12
14
  * ID for the error container (used for aria-describedby)
13
15
  */
14
16
  id: string;
15
- }
16
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
17
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
18
+ /**
19
+ * Array of error messages to display
20
+ */
21
+ errors: string[];
22
+ /**
23
+ * ID for the error container (used for aria-describedby)
24
+ */
25
+ id: string;
26
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,6 +1,11 @@
1
1
  import { type VNode } from "vue";
2
2
  import { TableColumn, TableRow } from "./TableColumn.ts";
3
3
  import { UseTableChangesReturn } from "../../compose/useTableChanges.ts";
4
+ /**
5
+ * Internal component for rendering the table body.
6
+ */
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
4
9
  declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
10
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
6
11
  data: T[];
@@ -40,8 +45,6 @@ declare const __VLS_export: <T extends TableRow, C extends TableColumn<T>>(__VLS
40
45
  }>) => import("vue").VNode & {
41
46
  __ctx?: Awaited<typeof __VLS_setup>;
42
47
  };
43
- declare const _default: typeof __VLS_export;
44
- export default _default;
45
48
  type __VLS_PrettifyLocal<T> = (T extends any ? {
46
49
  [K in keyof T]: T[K];
47
50
  } : {