@astryx-vue/core 0.1.0 → 0.1.1
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/README.md +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-BEyrkUtr.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-CO3mCs9A.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-BL2sDOWK.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-BqwJvw7o.js} +2 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-ByXCGhT8.js → Collapsible-BYg9soTk.js} +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-BOIb0zAp.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-DLcbgUBi.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-RitYX_Yx.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +1 -2
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CYvEV503.js +238 -0
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-Dnlp8cVx.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DIsqS1Qb.js +124 -0
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-aUZiDwHm.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-Bh8or2S6.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-C3S-4dIu.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-Kr4iJrNV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-BRStpeSB.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-DS6oTV_j.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-pwr93I-z.js +122 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DvEUIVEC.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-B7LX4RcP.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-D5zWaITo.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-DMOgWncm.js +163 -0
- package/dist/TimeField-DeQ1ukHl.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-jb1nLqZk.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DrWwVQBL.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-CV2J94bn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-DF9r4hTW.js} +2 -2
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CjbMCbkC.js → TopNav-BH_s3uap.js} +3 -3
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-D9cR-w7r.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-s4DC1Qem.js} +2 -2
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -1
- package/dist/{locale-56lkR7OK.js → context-BshXcNYX.js} +183 -18
- package/dist/{index-DjOdQv5B.d.ts → index--dh0s8Li.d.ts} +1 -1
- package/dist/{index-Cdi82rTW.d.ts → index-12ObcW99.d.ts} +6 -2
- package/dist/{index-JeZ0YTyd.d.ts → index-5R_pi3eT.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-AkMWQ97a.d.ts} +3 -3
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/{index-CxspvLBl.d.ts → index-Bc0dgVM5.d.ts} +5 -5
- package/dist/{index-4FM5lQdV.d.ts → index-BlWLperN.d.ts} +1 -1
- package/dist/{index-DBcbfStA.d.ts → index-BnNh5Iml.d.ts} +84 -1
- package/dist/{index-Cp0NlzQv.d.ts → index-Bovw9_8d.d.ts} +1 -1
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-C0S2Xzoi.d.ts → index-CNcQmDrK.d.ts} +93 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-CQ9F1f_F.d.ts} +535 -137
- package/dist/index-CR6sUmRT.d.ts +356 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-CsJpQElv.d.ts} +1 -1
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-C8NW9xre.d.ts → index-D3V7yRUP.d.ts} +7 -7
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-BeJqhW4l.d.ts → index-Q4gqBSIZ.d.ts} +2 -2
- package/dist/{index-Cz9ZHVf6.d.ts → index-g03bmR4K.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +54 -49
- package/dist/index.js +86 -64
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +49 -1
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/checkbox-list.css +15 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +2 -3
- package/styles/file-input.css +87 -0
- package/styles/icon.css +32 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/selector.css +10 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +11 -0
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { CSSProperties, ComputedRef, MaybeRefOrGetter, Ref, VNode, VNodeChild } from "vue";
|
|
2
|
+
//#region src/Table/types.d.ts
|
|
3
|
+
type TableDensity = 'compact' | 'balanced' | 'spacious';
|
|
4
|
+
type TableDividers = 'rows' | 'columns' | 'grid' | 'none';
|
|
5
|
+
type TableTextOverflow = 'wrap' | 'truncate';
|
|
6
|
+
type TableVerticalAlign = 'top' | 'middle' | 'bottom';
|
|
7
|
+
type TableColumnAlign = 'start' | 'center' | 'end';
|
|
8
|
+
type TableSortDirection = 'ascending' | 'descending';
|
|
9
|
+
interface ProportionalWidth {
|
|
10
|
+
type: 'proportional';
|
|
11
|
+
value: number;
|
|
12
|
+
minWidth?: number;
|
|
13
|
+
}
|
|
14
|
+
interface PixelWidth {
|
|
15
|
+
type: 'pixel';
|
|
16
|
+
value: number;
|
|
17
|
+
}
|
|
18
|
+
type ColumnWidth = ProportionalWidth | PixelWidth;
|
|
19
|
+
interface TableSortEntry<TSortKey extends string = string> {
|
|
20
|
+
sortKey: TSortKey;
|
|
21
|
+
direction: TableSortDirection;
|
|
22
|
+
}
|
|
23
|
+
type TableSortState<TSortKey extends string = string> = TableSortEntry<TSortKey>[];
|
|
24
|
+
interface TableColumn<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
25
|
+
key: string;
|
|
26
|
+
header?: string;
|
|
27
|
+
width?: ColumnWidth;
|
|
28
|
+
align?: TableColumnAlign;
|
|
29
|
+
verticalAlign?: TableVerticalAlign;
|
|
30
|
+
sortable?: boolean | {
|
|
31
|
+
sortKey?: string;
|
|
32
|
+
compare?: (a: T, b: T) => number;
|
|
33
|
+
};
|
|
34
|
+
/** Field key used by the filtering plugin. */
|
|
35
|
+
filter?: string;
|
|
36
|
+
renderCell?: (item: T, index: number) => VNodeChild;
|
|
37
|
+
}
|
|
38
|
+
interface TableFilterField {
|
|
39
|
+
key: string;
|
|
40
|
+
label: string;
|
|
41
|
+
type: 'string' | 'enum';
|
|
42
|
+
options?: readonly {
|
|
43
|
+
value: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}[];
|
|
46
|
+
}
|
|
47
|
+
type TableFilterValue = string | string[];
|
|
48
|
+
type TableFilterState = Record<string, TableFilterValue>;
|
|
49
|
+
interface TableSortContribution {
|
|
50
|
+
direction: TableSortDirection | null;
|
|
51
|
+
rank: number | null;
|
|
52
|
+
label: string;
|
|
53
|
+
onClick: (event: MouseEvent) => void;
|
|
54
|
+
}
|
|
55
|
+
interface TableFilterContribution {
|
|
56
|
+
variant: 'inline' | 'popover';
|
|
57
|
+
field: TableFilterField;
|
|
58
|
+
value: TableFilterValue | null;
|
|
59
|
+
onChange: (value: TableFilterValue | null) => void;
|
|
60
|
+
}
|
|
61
|
+
interface TableSelectionContribution<T> {
|
|
62
|
+
isAllSelected: () => boolean;
|
|
63
|
+
isIndeterminate: () => boolean;
|
|
64
|
+
isSelected: (row: T) => boolean;
|
|
65
|
+
isSelectable?: (row: T) => boolean;
|
|
66
|
+
selectAll: (selected: boolean) => void;
|
|
67
|
+
selectRow: (row: T, selected: boolean) => void;
|
|
68
|
+
rowLabel?: (row: T) => string;
|
|
69
|
+
hasRowHighlight?: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface TablePlugin<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
72
|
+
transformColumns?: (columns: TableColumn<T>[]) => TableColumn<T>[];
|
|
73
|
+
sortFor?: (column: TableColumn<T>) => TableSortContribution | null;
|
|
74
|
+
filterFor?: (column: TableColumn<T>) => TableFilterContribution | null;
|
|
75
|
+
selection?: TableSelectionContribution<T>;
|
|
76
|
+
widthFor?: (column: TableColumn<T>) => number | undefined;
|
|
77
|
+
onColumnResizeEnd?: (key: string, width: number) => void;
|
|
78
|
+
below?: () => VNodeChild;
|
|
79
|
+
}
|
|
80
|
+
interface TableProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
81
|
+
data?: readonly T[];
|
|
82
|
+
columns?: readonly TableColumn<T>[];
|
|
83
|
+
idKey?: string;
|
|
84
|
+
density?: TableDensity;
|
|
85
|
+
dividers?: TableDividers;
|
|
86
|
+
isStriped?: boolean;
|
|
87
|
+
hasHover?: boolean;
|
|
88
|
+
verticalAlign?: TableVerticalAlign;
|
|
89
|
+
textOverflow?: TableTextOverflow;
|
|
90
|
+
plugins?: Record<string, TablePlugin<T> | undefined>;
|
|
91
|
+
label?: string;
|
|
92
|
+
}
|
|
93
|
+
interface TableSlots {
|
|
94
|
+
default?: () => VNode[];
|
|
95
|
+
empty?: () => VNode[];
|
|
96
|
+
}
|
|
97
|
+
interface TableRowProps {
|
|
98
|
+
isHeaderRow?: boolean;
|
|
99
|
+
}
|
|
100
|
+
interface TableCellProps {
|
|
101
|
+
align?: TableColumnAlign;
|
|
102
|
+
colSpan?: number;
|
|
103
|
+
rowSpan?: number;
|
|
104
|
+
headers?: string;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/Table/columnUtils.d.ts
|
|
108
|
+
declare function proportional(value?: number, options?: {
|
|
109
|
+
minWidth?: number;
|
|
110
|
+
}): ProportionalWidth;
|
|
111
|
+
declare function pixel(value: number): PixelWidth;
|
|
112
|
+
interface ResolvedColumnWidth {
|
|
113
|
+
style: CSSProperties;
|
|
114
|
+
}
|
|
115
|
+
interface ResolvedColumnWidths {
|
|
116
|
+
columns: Map<string, ResolvedColumnWidth>;
|
|
117
|
+
tableMinWidth: number;
|
|
118
|
+
}
|
|
119
|
+
declare function resolveColumnWidths<T extends Record<string, unknown>>(columns: readonly TableColumn<T>[]): ResolvedColumnWidths;
|
|
120
|
+
declare function capitalize(value: string): string;
|
|
121
|
+
declare function cellText(value: unknown): string;
|
|
122
|
+
declare function paginateData<T>(data: readonly T[], page: number, pageSize: number): T[];
|
|
123
|
+
declare function generateColumns<T extends Record<string, unknown>>(data: readonly T[]): TableColumn<T>[];
|
|
124
|
+
declare function sortRows<T extends Record<string, unknown>>(rows: readonly T[], sort: readonly {
|
|
125
|
+
sortKey: string;
|
|
126
|
+
direction: 'ascending' | 'descending';
|
|
127
|
+
}[], columns?: readonly TableColumn<T>[]): T[];
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/Table/plugins/columnResize.d.ts
|
|
130
|
+
interface UseTableColumnResizeConfig {
|
|
131
|
+
columnWidths: Record<string, number>;
|
|
132
|
+
onColumnResizeEnd: (updates: Record<string, number>) => void;
|
|
133
|
+
}
|
|
134
|
+
declare function useTableColumnResize<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableColumnResizeConfig>): TablePlugin<T>;
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/Table/plugins/columnSettings.d.ts
|
|
137
|
+
interface ColumnSettingsOption<TColumnKey extends string = string> {
|
|
138
|
+
key: TColumnKey;
|
|
139
|
+
label: string;
|
|
140
|
+
isAlwaysVisible?: boolean;
|
|
141
|
+
}
|
|
142
|
+
interface UseTableColumnSettingsConfig<TColumnKey extends string = string> {
|
|
143
|
+
columns: readonly ColumnSettingsOption<TColumnKey>[];
|
|
144
|
+
activeColumnKeys: readonly TColumnKey[];
|
|
145
|
+
onChangeActiveColumnKeys?: (keys: TColumnKey[]) => void;
|
|
146
|
+
}
|
|
147
|
+
declare function useTableColumnSettingsState<TColumnKey extends string>(config: {
|
|
148
|
+
columns: readonly ColumnSettingsOption<TColumnKey>[];
|
|
149
|
+
activeColumnKeys: MaybeRefOrGetter<readonly TColumnKey[]>;
|
|
150
|
+
onChangeActiveColumnKeys: (keys: TColumnKey[]) => void;
|
|
151
|
+
}): {
|
|
152
|
+
readonly activeColumnKeys: readonly TColumnKey[];
|
|
153
|
+
setActiveColumnKeys: (keys: readonly TColumnKey[]) => void;
|
|
154
|
+
columnSettingsConfig: UseTableColumnSettingsConfig<TColumnKey>;
|
|
155
|
+
};
|
|
156
|
+
declare function useTableColumnSettings<T extends Record<string, unknown>, TColumnKey extends string = string>(config: MaybeRefOrGetter<UseTableColumnSettingsConfig<TColumnKey>>): TablePlugin<T>;
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/Table/plugins/filtering.d.ts
|
|
159
|
+
interface UseTableFilteringConfig {
|
|
160
|
+
filters: TableFilterState;
|
|
161
|
+
onFilterChange: (key: string, value: TableFilterValue | null) => void;
|
|
162
|
+
fields: readonly TableFilterField[];
|
|
163
|
+
variant?: 'inline' | 'popover';
|
|
164
|
+
}
|
|
165
|
+
declare function useTableFilterState(initial?: TableFilterState): {
|
|
166
|
+
filters: Ref<TableFilterState>;
|
|
167
|
+
onFilterChange: (key: string, value: TableFilterValue | null) => void;
|
|
168
|
+
clearAll: () => void;
|
|
169
|
+
};
|
|
170
|
+
declare function applyTableFilters<T extends Record<string, unknown>>(rows: readonly T[], filters: TableFilterState, fields?: readonly TableFilterField[]): T[];
|
|
171
|
+
declare function useTableFiltering<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableFilteringConfig>): TablePlugin<T>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/Table/plugins/pagination.d.ts
|
|
174
|
+
interface UseTablePaginationConfig {
|
|
175
|
+
page: number;
|
|
176
|
+
onPageChange: (page: number) => void;
|
|
177
|
+
totalItems?: number;
|
|
178
|
+
pageSize?: number;
|
|
179
|
+
pageSizeOptions?: number[];
|
|
180
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
181
|
+
position?: 'below' | 'above' | 'both' | 'none';
|
|
182
|
+
align?: 'start' | 'center' | 'end';
|
|
183
|
+
label?: string;
|
|
184
|
+
}
|
|
185
|
+
declare function useTablePagination<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTablePaginationConfig>): TablePlugin<T>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/Table/plugins/selection.d.ts
|
|
188
|
+
interface UseTableSelectionStateConfig<T extends Record<string, unknown>> {
|
|
189
|
+
data: MaybeRefOrGetter<readonly T[]>;
|
|
190
|
+
idKey: keyof T & string;
|
|
191
|
+
selectedKeys: MaybeRefOrGetter<ReadonlySet<string>>;
|
|
192
|
+
setSelectedKeys: (keys: Set<string>) => void;
|
|
193
|
+
getRowLabel?: (item: T) => string;
|
|
194
|
+
hasRowHighlight?: boolean;
|
|
195
|
+
}
|
|
196
|
+
declare function useTableSelectionState<T extends Record<string, unknown>>(config: UseTableSelectionStateConfig<T>): {
|
|
197
|
+
selectionConfig: UseTableSelectionConfig<T> & {
|
|
198
|
+
readonly rows: readonly T[];
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
interface UseTableSelectionConfig<T extends Record<string, unknown>> {
|
|
202
|
+
getIsItemSelected: (item: T) => boolean;
|
|
203
|
+
onSelectItem: (event: {
|
|
204
|
+
item: T;
|
|
205
|
+
isSelected: boolean;
|
|
206
|
+
}) => void;
|
|
207
|
+
onSelectAll: (event: {
|
|
208
|
+
isAllSelected: boolean;
|
|
209
|
+
}) => void;
|
|
210
|
+
getIsAllSelected: () => boolean;
|
|
211
|
+
getIsIndeterminate?: () => boolean;
|
|
212
|
+
getIsItemSelectable?: (item: T) => boolean;
|
|
213
|
+
getRowLabel?: (item: T) => string;
|
|
214
|
+
hasRowHighlight?: boolean;
|
|
215
|
+
}
|
|
216
|
+
declare function useTableSelection<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableSelectionConfig<T>>): TablePlugin<T>;
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/Table/plugins/sortable.d.ts
|
|
219
|
+
interface UseTableSortableConfig<TSortKey extends string = string> {
|
|
220
|
+
sort: TableSortState<TSortKey>;
|
|
221
|
+
onSortChange: (sort: TableSortState<TSortKey>) => void;
|
|
222
|
+
allowUnsortedState?: boolean;
|
|
223
|
+
isMultiSortEnabled?: boolean;
|
|
224
|
+
}
|
|
225
|
+
declare function useTableSortableState<T extends Record<string, unknown>>(options: {
|
|
226
|
+
data: MaybeRefOrGetter<readonly T[]>;
|
|
227
|
+
columns?: MaybeRefOrGetter<readonly TableColumn<T>[]>;
|
|
228
|
+
defaultSort?: TableSortState;
|
|
229
|
+
}): {
|
|
230
|
+
sortedData: ComputedRef<T[]>;
|
|
231
|
+
sort: Ref<TableSortState>;
|
|
232
|
+
sortConfig: UseTableSortableConfig;
|
|
233
|
+
};
|
|
234
|
+
declare function useTableSortable<T extends Record<string, unknown>>(config: MaybeRefOrGetter<UseTableSortableConfig>): TablePlugin<T>;
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/Table/Table.vue.d.ts
|
|
237
|
+
declare const __VLS_export$7: <T extends Record<string, unknown>>(__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<{
|
|
238
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<TableProps<T>> & (typeof globalThis extends {
|
|
239
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
240
|
+
} ? P : {});
|
|
241
|
+
expose: (exposed: {}) => void;
|
|
242
|
+
attrs: any;
|
|
243
|
+
slots: TableSlots;
|
|
244
|
+
emit: {};
|
|
245
|
+
}>) => import("vue").VNode & {
|
|
246
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
247
|
+
};
|
|
248
|
+
declare const _default$7: typeof __VLS_export$7;
|
|
249
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/Table/TableBody.vue.d.ts
|
|
252
|
+
declare var __VLS_1$6: {};
|
|
253
|
+
type __VLS_Slots$6 = {} & {
|
|
254
|
+
default?: (props: typeof __VLS_1$6) => any;
|
|
255
|
+
};
|
|
256
|
+
declare const __VLS_base$6: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
257
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
258
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
259
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
260
|
+
new (): {
|
|
261
|
+
$slots: S;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region src/Table/TableCell.vue.d.ts
|
|
266
|
+
declare var __VLS_1$5: {};
|
|
267
|
+
type __VLS_Slots$5 = {} & {
|
|
268
|
+
default?: (props: typeof __VLS_1$5) => any;
|
|
269
|
+
};
|
|
270
|
+
declare const __VLS_base$5: import("vue").DefineComponent<TableCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
271
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
272
|
+
declare const _default$5: typeof __VLS_export$5;
|
|
273
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
274
|
+
new (): {
|
|
275
|
+
$slots: S;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region src/Table/TableFooter.vue.d.ts
|
|
280
|
+
declare var __VLS_1$4: {};
|
|
281
|
+
type __VLS_Slots$4 = {} & {
|
|
282
|
+
default?: (props: typeof __VLS_1$4) => any;
|
|
283
|
+
};
|
|
284
|
+
declare const __VLS_base$4: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
285
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
286
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
287
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
288
|
+
new (): {
|
|
289
|
+
$slots: S;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/Table/TableHeader.vue.d.ts
|
|
294
|
+
declare var __VLS_1$3: {};
|
|
295
|
+
type __VLS_Slots$3 = {} & {
|
|
296
|
+
default?: (props: typeof __VLS_1$3) => any;
|
|
297
|
+
};
|
|
298
|
+
declare const __VLS_base$3: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
299
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
300
|
+
declare const _default$3: typeof __VLS_export$3;
|
|
301
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
302
|
+
new (): {
|
|
303
|
+
$slots: S;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/Table/TableHeaderCell.vue.d.ts
|
|
308
|
+
declare var __VLS_1$2: {};
|
|
309
|
+
type __VLS_Slots$2 = {} & {
|
|
310
|
+
default?: (props: typeof __VLS_1$2) => any;
|
|
311
|
+
};
|
|
312
|
+
declare const __VLS_base$2: import("vue").DefineComponent<TableCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
313
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
314
|
+
declare const _default$2: typeof __VLS_export$2;
|
|
315
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
316
|
+
new (): {
|
|
317
|
+
$slots: S;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/Table/TableRow.vue.d.ts
|
|
322
|
+
declare var __VLS_1$1: {};
|
|
323
|
+
type __VLS_Slots$1 = {} & {
|
|
324
|
+
default?: (props: typeof __VLS_1$1) => any;
|
|
325
|
+
};
|
|
326
|
+
declare const __VLS_base$1: import("vue").DefineComponent<TableRowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
327
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
328
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
329
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
330
|
+
new (): {
|
|
331
|
+
$slots: S;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/Table/TableSelectionToolbar.vue.d.ts
|
|
336
|
+
type __VLS_Props = {
|
|
337
|
+
count: number;
|
|
338
|
+
};
|
|
339
|
+
declare var __VLS_1: {};
|
|
340
|
+
type __VLS_Slots = {} & {
|
|
341
|
+
default?: (props: typeof __VLS_1) => any;
|
|
342
|
+
};
|
|
343
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
344
|
+
clear: () => any;
|
|
345
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
346
|
+
onClear?: (() => any) | undefined;
|
|
347
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
348
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
349
|
+
declare const _default: typeof __VLS_export;
|
|
350
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
351
|
+
new (): {
|
|
352
|
+
$slots: S;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
//#endregion
|
|
356
|
+
export { TableTextOverflow as $, generateColumns as A, TableColumn as B, UseTableColumnSettingsConfig as C, useTableColumnResize as D, UseTableColumnResizeConfig as E, sortRows as F, TableFilterState as G, TableDensity as H, ColumnWidth as I, TableProps as J, TableFilterValue as K, PixelWidth as L, pixel as M, proportional as N, capitalize as O, resolveColumnWidths as P, TableSortState as Q, ProportionalWidth as R, ColumnSettingsOption as S, useTableColumnSettingsState as T, TableDividers as U, TableColumnAlign as V, TableFilterField as W, TableSortDirection as X, TableRowProps as Y, TableSortEntry as Z, useTablePagination as _, _default$4 as a, useTableFilterState as b, _default$7 as c, useTableSortableState as d, TableVerticalAlign as et, UseTableSelectionConfig as f, UseTablePaginationConfig as g, useTableSelectionState as h, _default$3 as i, paginateData as j, cellText as k, UseTableSortableConfig as l, useTableSelection as m, _default$1 as n, _default$5 as o, UseTableSelectionStateConfig as p, TablePlugin as q, _default$2 as r, _default$6 as s, _default as t, useTableSortable as u, UseTableFilteringConfig as v, useTableColumnSettings as w, useTableFiltering as x, applyTableFilters as y, TableCellProps as z };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Ref, VNode } from "vue";
|
|
2
|
+
//#region src/TreeList/types.d.ts
|
|
3
|
+
type TreeListDensity = 'compact' | 'balanced' | 'spacious';
|
|
4
|
+
type TreeListVariant = 'lineGuides' | 'noGuides';
|
|
5
|
+
interface TreeListItemData {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Glyph name, or a CSS icon class starting with `i-`. */
|
|
10
|
+
icon?: string;
|
|
11
|
+
/** Trailing glyph or CSS icon class. */
|
|
12
|
+
endIcon?: string;
|
|
13
|
+
/** Compact trailing badge, for counts. */
|
|
14
|
+
badge?: string;
|
|
15
|
+
children?: TreeListItemData[];
|
|
16
|
+
href?: string;
|
|
17
|
+
target?: string;
|
|
18
|
+
isDisabled?: boolean;
|
|
19
|
+
isSelected?: boolean;
|
|
20
|
+
isExpanded?: boolean;
|
|
21
|
+
onClick?: (event: MouseEvent) => void;
|
|
22
|
+
}
|
|
23
|
+
interface TreeListProps {
|
|
24
|
+
items: TreeListItemData[];
|
|
25
|
+
/** @default 'balanced' */
|
|
26
|
+
density?: TreeListDensity;
|
|
27
|
+
/** @default 'lineGuides' */
|
|
28
|
+
variant?: TreeListVariant;
|
|
29
|
+
header?: string;
|
|
30
|
+
label?: string;
|
|
31
|
+
}
|
|
32
|
+
interface TreeListSlots {
|
|
33
|
+
header?: () => VNode[];
|
|
34
|
+
start?: (props: {
|
|
35
|
+
item: TreeListItemData;
|
|
36
|
+
}) => VNode[];
|
|
37
|
+
end?: (props: {
|
|
38
|
+
item: TreeListItemData;
|
|
39
|
+
}) => VNode[];
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/TreeList/TreeList.vue.d.ts
|
|
43
|
+
type __VLS_Slots = TreeListSlots;
|
|
44
|
+
declare const __VLS_base: import("vue").DefineComponent<TreeListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TreeListProps> & Readonly<{}>, {
|
|
45
|
+
variant: TreeListVariant;
|
|
46
|
+
density: TreeListDensity;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
50
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/TreeList/useTreeFocus.d.ts
|
|
57
|
+
interface UseTreeFocusOptions {
|
|
58
|
+
onToggleExpand?: (id: string) => void;
|
|
59
|
+
onActivate?: (current: HTMLElement) => boolean;
|
|
60
|
+
}
|
|
61
|
+
declare function useTreeFocus(options: UseTreeFocusOptions): {
|
|
62
|
+
treeRef: Ref<HTMLElement | null>;
|
|
63
|
+
handleKeyDown: (event: KeyboardEvent) => void;
|
|
64
|
+
handleFocus: () => void;
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { TreeListItemData as a, TreeListVariant as c, TreeListDensity as i, useTreeFocus as n, TreeListProps as o, _default as r, TreeListSlots as s, UseTreeFocusOptions as t };
|
|
@@ -34,7 +34,7 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
|
|
|
34
34
|
onChange?: ((value: number | null) => any) | undefined;
|
|
35
35
|
"onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
|
-
size: "
|
|
37
|
+
size: "md" | "sm" | "lg";
|
|
38
38
|
modelValue: number | null;
|
|
39
39
|
placeholder: string;
|
|
40
40
|
disabled: boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region src/Thumbnail/types.d.ts
|
|
2
|
+
type ThumbnailRemoveVisibility = 'always' | 'hover';
|
|
3
|
+
interface ThumbnailProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
/** Accessible name. Not drawn; used by the tooltip and the remove button. */
|
|
7
|
+
label?: string;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* When the remove button is visible. `hover` also reveals it on keyboard
|
|
12
|
+
* focus, and keeps it visible for coarse pointers.
|
|
13
|
+
* @default 'hover'
|
|
14
|
+
*/
|
|
15
|
+
showRemoveOn?: ThumbnailRemoveVisibility;
|
|
16
|
+
}
|
|
17
|
+
interface ThumbnailEmits {
|
|
18
|
+
remove: [event: MouseEvent];
|
|
19
|
+
click: [event: MouseEvent];
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/Thumbnail/Thumbnail.vue.d.ts
|
|
23
|
+
declare const __VLS_export: import("vue").DefineComponent<ThumbnailProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
click: (event: MouseEvent) => any;
|
|
25
|
+
remove: (event: MouseEvent) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<ThumbnailProps> & Readonly<{
|
|
27
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
+
onRemove?: ((event: MouseEvent) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
isDisabled: boolean;
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
showRemoveOn: ThumbnailRemoveVisibility;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ThumbnailRemoveVisibility as i, ThumbnailEmits as n, ThumbnailProps as r, _default as t };
|
|
@@ -76,27 +76,27 @@ declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
|
|
|
76
76
|
focus: () => void | undefined;
|
|
77
77
|
blur: () => void | undefined;
|
|
78
78
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
79
|
-
search: (query: string) => any;
|
|
80
79
|
change: (value: (string | number)[]) => any;
|
|
81
|
-
|
|
80
|
+
search: (query: string) => any;
|
|
82
81
|
"update:modelValue": (value: (string | number)[]) => any;
|
|
82
|
+
openChange: (isOpen: boolean) => any;
|
|
83
83
|
}, string, import("vue").PublicProps, Readonly<MultiSelectorProps> & Readonly<{
|
|
84
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
85
84
|
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
86
|
-
|
|
85
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
87
86
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
87
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
88
88
|
}>, {
|
|
89
89
|
size: MultiSelectorSize;
|
|
90
|
-
variant: MultiSelectorVariant;
|
|
91
90
|
required: boolean;
|
|
91
|
+
variant: MultiSelectorVariant;
|
|
92
92
|
modelValue: readonly (string | number)[];
|
|
93
|
+
status: MultiSelectorStatus;
|
|
93
94
|
labelHidden: boolean;
|
|
94
95
|
disabled: boolean;
|
|
95
|
-
status: MultiSelectorStatus;
|
|
96
96
|
clearable: boolean;
|
|
97
97
|
optional: boolean;
|
|
98
|
-
searchable: boolean;
|
|
99
98
|
presentation: MultiSelectorPresentation;
|
|
99
|
+
searchable: boolean;
|
|
100
100
|
selectAll: boolean;
|
|
101
101
|
triggerDisplay: MultiSelectorTriggerDisplay;
|
|
102
102
|
maxBadges: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { l as FieldStatusVariant, s as FieldStatusProps } from "./types-3eXh_5os.js";
|
|
2
|
+
//#region src/Field/FieldStatus.vue.d.ts
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<FieldStatusProps, {
|
|
4
|
+
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldStatusProps> & Readonly<{}>, {
|
|
6
|
+
variant: FieldStatusVariant;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { _default as t };
|
|
@@ -72,10 +72,10 @@ interface TokenizerSlots<T extends SearchableItem = SearchableItem> {
|
|
|
72
72
|
//#region src/Tokenizer/Tokenizer.vue.d.ts
|
|
73
73
|
declare const __VLS_export: <T extends SearchableItem>(__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<{
|
|
74
74
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<TokenizerProps<T> & {
|
|
75
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
76
75
|
onChange?: ((value: T[], change: TokenizerChange<T>) => any) | undefined;
|
|
77
|
-
|
|
76
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
78
77
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
78
|
+
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
79
79
|
}> & (typeof globalThis extends {
|
|
80
80
|
__VLS_PROPS_FALLBACK: infer P;
|
|
81
81
|
} ? P : {});
|
|
@@ -85,7 +85,7 @@ declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<
|
|
|
85
85
|
}>) => void;
|
|
86
86
|
attrs: any;
|
|
87
87
|
slots: TokenizerSlots<T>;
|
|
88
|
-
emit: ((evt: "
|
|
88
|
+
emit: ((evt: "change", value: T[], change: TokenizerChange<T>) => void) & ((evt: "search", query: string) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "openChange", isOpen: boolean) => void);
|
|
89
89
|
}>) => import("vue").VNode & {
|
|
90
90
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
91
91
|
};
|
|
@@ -24,9 +24,9 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
|
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
|
|
25
25
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
isIconOnly: boolean;
|
|
28
|
-
isDisabled: boolean;
|
|
29
27
|
size: NavItemSize;
|
|
28
|
+
isDisabled: boolean;
|
|
29
|
+
isIconOnly: boolean;
|
|
30
30
|
block: boolean;
|
|
31
31
|
isSelected: boolean;
|
|
32
32
|
plain: boolean;
|
|
@@ -84,10 +84,10 @@ declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
84
84
|
onOpenChange?: ((isOpen: boolean) => any) | undefined;
|
|
85
85
|
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
86
86
|
}>, {
|
|
87
|
-
placement: "above" | "below" | "start" | "end";
|
|
88
|
-
alignment: "center" | "start" | "end";
|
|
89
|
-
hideDelay: number;
|
|
90
87
|
hover: boolean;
|
|
88
|
+
placement: "start" | "end" | "above" | "below";
|
|
89
|
+
alignment: "start" | "end" | "center";
|
|
90
|
+
hideDelay: number;
|
|
91
91
|
showDelay: number;
|
|
92
92
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
93
93
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
125
125
|
onChange?: ((value: string) => any) | undefined;
|
|
126
126
|
"onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
|
|
127
127
|
}>, {
|
|
128
|
-
isDisabled: boolean;
|
|
129
128
|
size: SegmentedControlSize;
|
|
129
|
+
isDisabled: boolean;
|
|
130
130
|
layout: SegmentedControlLayout;
|
|
131
131
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
132
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps,
|
|
1
|
+
import { a as FieldSlots, l as FieldStatusVariant, n as FieldLabelSlots, r as FieldProps, t as FieldLabelProps } from "./types-3eXh_5os.js";
|
|
2
2
|
//#region src/Field/Field.vue.d.ts
|
|
3
3
|
type __VLS_Slots$1 = FieldSlots;
|
|
4
4
|
declare const __VLS_base$1: import("vue").DefineComponent<FieldProps, {
|
|
@@ -6,8 +6,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<FieldProps, {
|
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldProps> & Readonly<{}>, {
|
|
7
7
|
statusVariant: "tooltip" | FieldStatusVariant;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
declare const __VLS_export$
|
|
10
|
-
declare const _default$
|
|
9
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
10
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
11
11
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
12
12
|
new (): {
|
|
13
13
|
$slots: S;
|
|
@@ -22,20 +22,12 @@ declare const __VLS_base: import("vue").DefineComponent<FieldLabelProps, {
|
|
|
22
22
|
optionalLabel: string;
|
|
23
23
|
requiredLabel: string;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const __VLS_export
|
|
26
|
-
declare const _default
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|
|
28
28
|
new (): {
|
|
29
29
|
$slots: S;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
|
-
|
|
34
|
-
declare const __VLS_export: import("vue").DefineComponent<FieldStatusProps, {
|
|
35
|
-
element: Readonly<import("vue").ShallowRef<HTMLElement | null>>;
|
|
36
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FieldStatusProps> & Readonly<{}>, {
|
|
37
|
-
variant: FieldStatusVariant;
|
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
-
declare const _default: typeof __VLS_export;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { _default$1 as n, _default$2 as r, _default as t };
|
|
33
|
+
export { _default$1 as n, _default as t };
|