@dao-style/core 0.3.2 → 0.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.
@@ -0,0 +1,47 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ total: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ selectedFormat: {
7
+ type: import("vue").PropType<(total: number) => string>;
8
+ default: undefined;
9
+ };
10
+ deselectText: {
11
+ type: StringConstructor;
12
+ default: undefined;
13
+ };
14
+ removeText: {
15
+ type: StringConstructor;
16
+ default: undefined;
17
+ };
18
+ }, {
19
+ text: import("vue").ComputedRef<{
20
+ remove: string;
21
+ deselect: string;
22
+ selected: string;
23
+ }>;
24
+ showSelf: import("vue").ComputedRef<boolean>;
25
+ onHandleDelete: () => void;
26
+ onHandleDeselect: () => void;
27
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "deselect")[], "delete" | "deselect", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
28
+ total?: unknown;
29
+ selectedFormat?: unknown;
30
+ deselectText?: unknown;
31
+ removeText?: unknown;
32
+ } & {
33
+ total: number;
34
+ } & {
35
+ selectedFormat?: ((total: number) => string) | undefined;
36
+ deselectText?: string | undefined;
37
+ removeText?: string | undefined;
38
+ }> & {
39
+ onDelete?: ((...args: any[]) => any) | undefined;
40
+ onDeselect?: ((...args: any[]) => any) | undefined;
41
+ }, {
42
+ total: number;
43
+ selectedFormat: (total: number) => string;
44
+ deselectText: string;
45
+ removeText: string;
46
+ }>;
47
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DaoBatchBar } from './batch-bar.vue';
2
+ export type { BatchBarPropsType } from './props';
@@ -0,0 +1,20 @@
1
+ import type { PropType, ExtractPropTypes } from 'vue';
2
+ export declare const BatchBarProps: {
3
+ total: {
4
+ type: NumberConstructor;
5
+ default: number;
6
+ };
7
+ selectedFormat: {
8
+ type: PropType<(total: number) => string>;
9
+ default: undefined;
10
+ };
11
+ deselectText: {
12
+ type: StringConstructor;
13
+ default: undefined;
14
+ };
15
+ removeText: {
16
+ type: StringConstructor;
17
+ default: undefined;
18
+ };
19
+ };
20
+ export declare type BatchBarPropsType = ExtractPropTypes<typeof BatchBarProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -17,8 +17,8 @@ declare const _default: import("vue").DefineComponent<{
17
17
  value?: unknown;
18
18
  to?: unknown;
19
19
  } & {} & {
20
- label?: string | undefined;
21
20
  value?: string | undefined;
21
+ label?: string | undefined;
22
22
  to?: import("vue-router").RouteLocationRaw | undefined;
23
23
  }>, {}>;
24
24
  export default _default;
@@ -13,8 +13,8 @@ export declare const breadcrumbProps: {
13
13
  value?: unknown;
14
14
  to?: unknown;
15
15
  } & {} & {
16
- label?: string | undefined;
17
16
  value?: string | undefined;
17
+ label?: string | undefined;
18
18
  to?: RouteLocationRaw | undefined;
19
19
  })[]>;
20
20
  default: () => never[];
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<{
9
9
  value?: unknown;
10
10
  to?: unknown;
11
11
  } & {} & {
12
- label?: string | undefined;
13
12
  value?: string | undefined;
13
+ label?: string | undefined;
14
14
  to?: import("vue-router").RouteLocationRaw | undefined;
15
15
  })[]>;
16
16
  default: () => never[];
@@ -40,8 +40,8 @@ declare const _default: import("vue").DefineComponent<{
40
40
  value?: unknown;
41
41
  to?: unknown;
42
42
  } & {} & {
43
- label?: string | undefined;
44
43
  value?: string | undefined;
44
+ label?: string | undefined;
45
45
  to?: import("vue-router").RouteLocationRaw | undefined;
46
46
  })[];
47
47
  separator: string;
@@ -55,8 +55,8 @@ declare const _default: import("vue").DefineComponent<{
55
55
  value?: unknown;
56
56
  to?: unknown;
57
57
  } & {} & {
58
- label?: string | undefined;
59
58
  value?: string | undefined;
59
+ label?: string | undefined;
60
60
  to?: import("vue-router").RouteLocationRaw | undefined;
61
61
  })[];
62
62
  separator: string;
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
10
10
  }, {
11
11
  onItemClick: () => void;
12
12
  isExpanded: import("vue").ComputedRef<boolean>;
13
- expansionType: import("vue").ComputedRef<"line" | "box" | undefined>;
13
+ expansionType: import("vue").ComputedRef<"line" | "box" | "doc" | undefined>;
14
14
  expansionMode: import("vue").ComputedRef<"manual" | "auto" | undefined>;
15
15
  onBeforeEnter: (el: Element) => void;
16
16
  onEnter: (el: Element) => void;
@@ -18,14 +18,16 @@ declare const _default: import("vue").DefineComponent<{
18
18
  onBeforeLeave: (el: Element) => void;
19
19
  onLeave: (el: Element) => void;
20
20
  onAfterLeave: (el: Element) => void;
21
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
22
22
  name?: unknown;
23
23
  title?: unknown;
24
24
  } & {
25
25
  title: string;
26
26
  } & {
27
27
  name?: import("./props").ExpansionName | undefined;
28
- }>, {
28
+ }> & {
29
+ onClose?: ((...args: any[]) => any) | undefined;
30
+ }, {
29
31
  title: string;
30
32
  }>;
31
33
  export default _default;
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
8
8
  default: boolean;
9
9
  };
10
10
  type: {
11
- type: import("vue").PropType<"line" | "box">;
11
+ type: import("vue").PropType<"line" | "box" | "doc">;
12
12
  default: string;
13
13
  };
14
14
  accordion: {
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  state: {
22
22
  expansionRecord: ExpansionName | ExpansionName[] | undefined;
23
23
  accordion: boolean;
24
- type?: "line" | "box" | undefined;
24
+ type?: "line" | "box" | "doc" | undefined;
25
25
  mode?: "manual" | "auto" | undefined;
26
26
  };
27
27
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
30
30
  type?: unknown;
31
31
  accordion?: unknown;
32
32
  } & {
33
- type: "line" | "box";
33
+ type: "line" | "box" | "doc";
34
34
  manual: boolean;
35
35
  accordion: boolean;
36
36
  } & {
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
40
40
  onChange?: ((...args: any[]) => any) | undefined;
41
41
  }, {
42
- type: "line" | "box";
42
+ type: "line" | "box" | "doc";
43
43
  manual: boolean;
44
44
  accordion: boolean;
45
45
  }>;
@@ -1,6 +1,6 @@
1
1
  import type { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare type ExpansionName = symbol | string | number;
3
- declare const expansionType: readonly ["line", "box"];
3
+ declare const expansionType: readonly ["line", "box", "doc"];
4
4
  declare type TypeExpansionType = typeof expansionType[number];
5
5
  export declare const expansionProps: {
6
6
  modelValue: {
@@ -11,7 +11,7 @@ export declare const expansionProps: {
11
11
  default: boolean;
12
12
  };
13
13
  type: {
14
- type: PropType<"line" | "box">;
14
+ type: PropType<"line" | "box" | "doc">;
15
15
  default: string;
16
16
  };
17
17
  accordion: {
@@ -1,4 +1,5 @@
1
1
  export * from './action-icon';
2
+ export * from './batch-bar';
2
3
  export * from './button';
3
4
  export * from './card';
4
5
  export * from './checkbox';
@@ -39,8 +39,8 @@ declare const _default: import("vue").DefineComponent<{
39
39
  } & {
40
40
  name: string;
41
41
  disabled: boolean;
42
- label: string;
43
42
  value: string | number | boolean;
43
+ label: string;
44
44
  modelValue: string | number | boolean;
45
45
  } & {}> & {
46
46
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -48,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
48
48
  }, {
49
49
  name: string;
50
50
  disabled: boolean;
51
- label: string;
52
51
  value: string | number | boolean;
52
+ label: string;
53
53
  modelValue: string | number | boolean;
54
54
  }>;
55
55
  export default _default;
@@ -3,7 +3,7 @@ import { SearchFn } from './types';
3
3
  import type { ValidateStatus } from '../../utils/types';
4
4
  declare const _default: {
5
5
  modelValue: {
6
- type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
6
+ type: (StringConstructor | BooleanConstructor | NumberConstructor | ArrayConstructor)[];
7
7
  default: undefined;
8
8
  };
9
9
  placeholder: {
@@ -2,7 +2,7 @@ import type { Options as PopperOptions } from '@popperjs/core';
2
2
  import { DaoSelectOption, OptionValue } from './types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
5
+ type: (StringConstructor | BooleanConstructor | NumberConstructor | ArrayConstructor)[];
6
6
  default: undefined;
7
7
  };
8
8
  placeholder: {
@@ -2,7 +2,31 @@ import type { PropType } from 'vue';
2
2
  import type { DaoTableColumn, DaoTableSort } from './type';
3
3
  declare type DataPropType = Record<string, unknown>[];
4
4
  declare type SelectablePropType = ((row: DataPropType[number], index: number) => boolean) | boolean;
5
- declare const tableProps: {
5
+ export declare const tableProps: {
6
+ search: {
7
+ type: PropType<Record<string, import("../toolbar/types").SearchValue[]>>;
8
+ default: () => {};
9
+ };
10
+ searchPlaceholder: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ searchOptions: {
15
+ type: PropType<import("../toolbar/types").SearchOption[]>;
16
+ default: () => never[];
17
+ };
18
+ fuzzy: {
19
+ type: PropType<import("../toolbar/types").FuzzyOption>;
20
+ default: undefined;
21
+ };
22
+ hideRefresh: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ hideSearch: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
6
30
  id: {
7
31
  type: PropType<string>;
8
32
  require: boolean;
@@ -80,5 +104,25 @@ declare const tableProps: {
80
104
  type: PropType<import("../pagination/pagination-props").PaginationLayoutKey[]>;
81
105
  default: string[];
82
106
  };
107
+ hideBatchBar: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ hideToolbar: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ selectedFormat: {
116
+ type: PropType<(total: number) => string>;
117
+ default: undefined;
118
+ };
119
+ deselectText: {
120
+ type: StringConstructor;
121
+ default: undefined;
122
+ };
123
+ removeText: {
124
+ type: StringConstructor;
125
+ default: undefined;
126
+ };
83
127
  };
84
- export default tableProps;
128
+ export {};
@@ -3,6 +3,30 @@ import withDefaultValue from '../../utils/default-value';
3
3
  import type { DaoTableColumn, DefaultWidthType } from './type';
4
4
  import { TdMouseEvent } from './components/tdAction.vue';
5
5
  declare const _default: import("vue").DefineComponent<{
6
+ search: {
7
+ type: import("vue").PropType<Record<string, import("../toolbar/types").SearchValue[]>>;
8
+ default: () => {};
9
+ };
10
+ searchPlaceholder: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ searchOptions: {
15
+ type: import("vue").PropType<import("../toolbar/types").SearchOption[]>;
16
+ default: () => never[];
17
+ };
18
+ fuzzy: {
19
+ type: import("vue").PropType<import("../toolbar/types").FuzzyOption>;
20
+ default: undefined;
21
+ };
22
+ hideRefresh: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ hideSearch: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
6
30
  id: {
7
31
  type: import("vue").PropType<string>;
8
32
  require: boolean;
@@ -80,6 +104,26 @@ declare const _default: import("vue").DefineComponent<{
80
104
  type: import("vue").PropType<import("../pagination/pagination-props").PaginationLayoutKey[]>;
81
105
  default: string[];
82
106
  };
107
+ hideBatchBar: {
108
+ type: BooleanConstructor;
109
+ default: boolean;
110
+ };
111
+ hideToolbar: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ selectedFormat: {
116
+ type: import("vue").PropType<(total: number) => string>;
117
+ default: undefined;
118
+ };
119
+ deselectText: {
120
+ type: StringConstructor;
121
+ default: undefined;
122
+ };
123
+ removeText: {
124
+ type: StringConstructor;
125
+ default: undefined;
126
+ };
83
127
  }, {
84
128
  textContent: import("vue").ComputedRef<{
85
129
  emptyText: string;
@@ -147,7 +191,24 @@ declare const _default: import("vue").DefineComponent<{
147
191
  toggleSelected: (row: Record<string, unknown>) => void;
148
192
  toggleSelectedAll: () => void;
149
193
  withDefaultValue: typeof withDefaultValue;
150
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click")[], "select" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
194
+ batchDelete: () => void;
195
+ deselect: () => void;
196
+ showBatchBar: import("vue").ComputedRef<boolean>;
197
+ onSearch: () => void;
198
+ onRefresh: () => void;
199
+ showToolbar: import("vue").ComputedRef<boolean>;
200
+ searchModel: Ref<{
201
+ [x: string]: (string | number | boolean | unknown[] | {
202
+ [x: string]: unknown;
203
+ })[];
204
+ }> | import("vue").WritableComputedRef<Record<string, import("../toolbar/types").SearchValue[]>>;
205
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "select" | "search" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:search" | "refresh" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click")[], "search" | "delete" | "select" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:search" | "refresh" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
206
+ search?: unknown;
207
+ searchPlaceholder?: unknown;
208
+ searchOptions?: unknown;
209
+ fuzzy?: unknown;
210
+ hideRefresh?: unknown;
211
+ hideSearch?: unknown;
151
212
  id?: unknown;
152
213
  columns?: unknown;
153
214
  data?: unknown;
@@ -167,33 +228,53 @@ declare const _default: import("vue").DefineComponent<{
167
228
  emptyText?: unknown;
168
229
  noShadow?: unknown;
169
230
  pageLayout?: unknown;
231
+ hideBatchBar?: unknown;
232
+ hideToolbar?: unknown;
233
+ selectedFormat?: unknown;
234
+ deselectText?: unknown;
235
+ removeText?: unknown;
170
236
  } & {
237
+ search: Record<string, import("../toolbar/types").SearchValue[]>;
171
238
  sort: import("./type").DaoTableSort;
172
239
  data: Record<string, unknown>[];
173
- showHeader: boolean;
174
240
  total: number;
241
+ showHeader: boolean;
242
+ searchPlaceholder: string;
175
243
  columns: DaoTableColumn[];
176
244
  pageSize: number;
177
245
  pageSizeOptions: number[];
178
246
  compact: boolean;
179
247
  currentPage: number;
180
248
  pageSizerWidth: number;
249
+ searchOptions: import("../toolbar/types").SearchOption[];
250
+ hideRefresh: boolean;
251
+ hideSearch: boolean;
181
252
  selectable: boolean | ((row: Record<string, unknown>, index: number) => boolean);
182
253
  selectedRows: Record<string, unknown>[];
183
254
  expandable: boolean;
184
255
  noShadow: boolean;
185
256
  pageLayout: import("../pagination/pagination-props").PaginationLayoutKey[];
257
+ hideBatchBar: boolean;
258
+ hideToolbar: boolean;
186
259
  } & {
260
+ selectedFormat?: ((total: number) => string) | undefined;
261
+ deselectText?: string | undefined;
262
+ removeText?: string | undefined;
187
263
  pageFormat?: ((val: number) => string) | undefined;
188
264
  totalFormat?: ((val: number) => string) | undefined;
265
+ fuzzy?: import("../toolbar/types").FuzzyOption | undefined;
189
266
  id?: string | undefined;
190
267
  emptyText?: string | undefined;
191
268
  }> & {
269
+ onDelete?: ((...args: any[]) => any) | undefined;
192
270
  onSelect?: ((...args: any[]) => any) | undefined;
193
271
  onNext?: ((...args: any[]) => any) | undefined;
194
272
  onPrev?: ((...args: any[]) => any) | undefined;
195
273
  "onUpdate:page-size"?: ((...args: any[]) => any) | undefined;
196
274
  "onUpdate:current-page"?: ((...args: any[]) => any) | undefined;
275
+ onSearch?: ((...args: any[]) => any) | undefined;
276
+ "onUpdate:search"?: ((...args: any[]) => any) | undefined;
277
+ onRefresh?: ((...args: any[]) => any) | undefined;
197
278
  "onUpdate:selectedRows"?: ((...args: any[]) => any) | undefined;
198
279
  onSortChange?: ((...args: any[]) => any) | undefined;
199
280
  onHideColumn?: ((...args: any[]) => any) | undefined;
@@ -203,10 +284,15 @@ declare const _default: import("vue").DefineComponent<{
203
284
  onSizeChange?: ((...args: any[]) => any) | undefined;
204
285
  "onRow-click"?: ((...args: any[]) => any) | undefined;
205
286
  }, {
287
+ search: Record<string, import("../toolbar/types").SearchValue[]>;
206
288
  sort: import("./type").DaoTableSort;
207
289
  data: Record<string, unknown>[];
208
- showHeader: boolean;
209
290
  total: number;
291
+ selectedFormat: (total: number) => string;
292
+ deselectText: string;
293
+ removeText: string;
294
+ showHeader: boolean;
295
+ searchPlaceholder: string;
210
296
  columns: DaoTableColumn[];
211
297
  pageSize: number;
212
298
  pageSizeOptions: number[];
@@ -214,11 +300,17 @@ declare const _default: import("vue").DefineComponent<{
214
300
  compact: boolean;
215
301
  currentPage: number;
216
302
  pageSizerWidth: number;
303
+ searchOptions: import("../toolbar/types").SearchOption[];
304
+ fuzzy: import("../toolbar/types").FuzzyOption;
305
+ hideRefresh: boolean;
306
+ hideSearch: boolean;
217
307
  selectable: boolean | ((row: Record<string, unknown>, index: number) => boolean);
218
308
  selectedRows: Record<string, unknown>[];
219
309
  expandable: boolean;
220
310
  emptyText: string;
221
311
  noShadow: boolean;
222
312
  pageLayout: import("../pagination/pagination-props").PaginationLayoutKey[];
313
+ hideBatchBar: boolean;
314
+ hideToolbar: boolean;
223
315
  }>;
224
316
  export default _default;
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<{
22
22
  disabled?: unknown;
23
23
  } & {
24
24
  disabled: boolean;
25
- label: DaoTabItemLabel;
26
25
  value: string;
26
+ label: DaoTabItemLabel;
27
27
  } & {}>, {
28
28
  disabled: boolean;
29
29
  }>;
@@ -21,15 +21,15 @@ declare const _default: import("vue").DefineComponent<{
21
21
  label?: unknown;
22
22
  value?: unknown;
23
23
  } & {
24
- label: string;
25
24
  value: string;
25
+ label: string;
26
26
  separator: string;
27
27
  closable: boolean;
28
28
  } & {}> & {
29
29
  onClose?: ((...args: any[]) => any) | undefined;
30
30
  }, {
31
- label: string;
32
31
  value: string;
32
+ label: string;
33
33
  separator: string;
34
34
  closable: boolean;
35
35
  }>;
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  };
6
6
  prop: {
7
7
  type: import("vue").PropType<{
8
- type: "link" | "default" | "custom" | "action";
8
+ type: "link" | "default" | "action" | "custom";
9
9
  icon?: string | undefined;
10
10
  }>;
11
11
  default: () => {
@@ -20,13 +20,13 @@ declare const _default: import("vue").DefineComponent<{
20
20
  } & {
21
21
  tag: string;
22
22
  prop: {
23
- type: "link" | "default" | "custom" | "action";
23
+ type: "link" | "default" | "action" | "custom";
24
24
  icon?: string | undefined;
25
25
  };
26
26
  } & {}>, {
27
27
  tag: string;
28
28
  prop: {
29
- type: "link" | "default" | "custom" | "action";
29
+ type: "link" | "default" | "action" | "custom";
30
30
  icon?: string | undefined;
31
31
  };
32
32
  }>;
@@ -0,0 +1,29 @@
1
+ import type { PropType } from 'vue';
2
+ import type { SearchValue, SearchOption, FuzzyOption } from './types';
3
+ declare const toolbarProps: {
4
+ search: {
5
+ type: PropType<Record<string, SearchValue[]>>;
6
+ default: () => {};
7
+ };
8
+ searchPlaceholder: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ searchOptions: {
13
+ type: PropType<SearchOption[]>;
14
+ default: () => never[];
15
+ };
16
+ fuzzy: {
17
+ type: PropType<FuzzyOption>;
18
+ default: undefined;
19
+ };
20
+ hideRefresh: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ hideSearch: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ };
29
+ export default toolbarProps;
@@ -1,8 +1,7 @@
1
- import { PropType } from 'vue';
2
- import type { SearchValue, SearchOption, FuzzyOption } from './types';
1
+ import type { SearchValue } from './types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  search: {
5
- type: PropType<Record<string, SearchValue[]>>;
4
+ type: import("vue").PropType<Record<string, SearchValue[]>>;
6
5
  default: () => {};
7
6
  };
8
7
  searchPlaceholder: {
@@ -10,11 +9,11 @@ declare const _default: import("vue").DefineComponent<{
10
9
  default: string;
11
10
  };
12
11
  searchOptions: {
13
- type: PropType<SearchOption[]>;
12
+ type: import("vue").PropType<import("./types").SearchOption[]>;
14
13
  default: () => never[];
15
14
  };
16
15
  fuzzy: {
17
- type: PropType<FuzzyOption>;
16
+ type: import("vue").PropType<import("./types").FuzzyOption>;
18
17
  default: undefined;
19
18
  };
20
19
  hideRefresh: {
@@ -51,11 +50,11 @@ declare const _default: import("vue").DefineComponent<{
51
50
  } & {
52
51
  search: Record<string, SearchValue[]>;
53
52
  searchPlaceholder: string;
54
- searchOptions: SearchOption[];
53
+ searchOptions: import("./types").SearchOption[];
55
54
  hideRefresh: boolean;
56
55
  hideSearch: boolean;
57
56
  } & {
58
- fuzzy?: FuzzyOption | undefined;
57
+ fuzzy?: import("./types").FuzzyOption | undefined;
59
58
  }> & {
60
59
  onSearch?: ((...args: any[]) => any) | undefined;
61
60
  "onUpdate:search"?: ((...args: any[]) => any) | undefined;
@@ -63,8 +62,8 @@ declare const _default: import("vue").DefineComponent<{
63
62
  }, {
64
63
  search: Record<string, SearchValue[]>;
65
64
  searchPlaceholder: string;
66
- searchOptions: SearchOption[];
67
- fuzzy: FuzzyOption;
65
+ searchOptions: import("./types").SearchOption[];
66
+ fuzzy: import("./types").FuzzyOption;
68
67
  hideRefresh: boolean;
69
68
  hideSearch: boolean;
70
69
  }>;
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
67
67
  }) => void;
68
68
  onClear: () => void;
69
69
  onCheckAll: (checked: boolean) => void;
70
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "add" | "clear" | "refresh" | "checkAll")[], "update:modelValue" | "change" | "add" | "clear" | "refresh" | "checkAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
70
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "add" | "refresh" | "clear" | "checkAll")[], "update:modelValue" | "change" | "add" | "clear" | "refresh" | "checkAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
71
71
  source?: unknown;
72
72
  modelValue?: unknown;
73
73
  disabledKeys?: unknown;