yuyeon 0.1.0-rc.20 → 0.1.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/yuyeon.js +2660 -2591
- package/dist/yuyeon.umd.cjs +11 -11
- package/lib/components/index.mjs +1 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/menu/YMenu.mjs +2 -1
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/panel/YDividePanel.scss +1 -1
- package/lib/components/snackbar/YSnackbar.mjs +42 -37
- package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
- package/lib/components/table/YDataTableRow.mjs +5 -2
- package/lib/components/table/YDataTableRow.mjs.map +1 -1
- package/lib/components/table/composibles/header.mjs +1 -1
- package/lib/components/table/composibles/header.mjs.map +1 -1
- package/lib/components/table/composibles/sorting.mjs.map +1 -1
- package/lib/components/text-interpolation/YTi.mjs +46 -0
- package/lib/components/text-interpolation/YTi.mjs.map +1 -0
- package/lib/components/text-interpolation/index.mjs +2 -0
- package/lib/components/text-interpolation/index.mjs.map +1 -0
- package/lib/components/tooltip/YTooltip.mjs +1 -0
- package/lib/components/tooltip/YTooltip.mjs.map +1 -1
- package/lib/util/parser.mjs +31 -0
- package/lib/util/parser.mjs.map +1 -0
- package/lib/util/string.mjs +30 -0
- package/lib/util/string.mjs.map +1 -1
- package/package.json +2 -1
- package/types/components/dropdown/YDropdown.d.ts +19 -7
- package/types/components/index.d.ts +1 -0
- package/types/components/layer/scroll-strategies.d.ts +2 -2
- package/types/components/menu/YMenu.d.ts +20 -11
- package/types/components/select/YSelect.d.ts +162 -111
- package/types/components/snackbar/YSnackbar.d.ts +483 -20
- package/types/components/table/YDataTable.d.ts +176 -14
- package/types/components/table/YDataTableServer.d.ts +176 -14
- package/types/components/table/composibles/header.d.ts +95 -5
- package/types/components/table/composibles/sorting.d.ts +22 -4
- package/types/components/text-interpolation/YTi.d.ts +20 -0
- package/types/components/text-interpolation/index.d.ts +1 -0
- package/types/components/tooltip/YTooltip.d.ts +14 -8
- package/types/shims.d.ts +2 -1
- package/types/util/parser.d.ts +4 -0
- package/types/util/string.d.ts +4 -0
|
@@ -138,14 +138,32 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
138
138
|
default: unknown extends Defaults["valueEqual"] ? typeof import('../../util').deepEqual : typeof import('../../util').deepEqual | Defaults["valueEqual"];
|
|
139
139
|
};
|
|
140
140
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
141
|
-
type: PropType<readonly
|
|
141
|
+
type: PropType<readonly {
|
|
142
|
+
readonly key: string;
|
|
143
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
144
|
+
}[]>;
|
|
142
145
|
default: () => never[];
|
|
143
146
|
} : Omit<{
|
|
144
|
-
type: PropType<readonly
|
|
147
|
+
type: PropType<readonly {
|
|
148
|
+
readonly key: string;
|
|
149
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
150
|
+
}[]>;
|
|
145
151
|
default: () => never[];
|
|
146
152
|
}, "default" | "type"> & {
|
|
147
|
-
type: PropType<unknown extends Defaults["sortBy"] ? readonly
|
|
148
|
-
|
|
153
|
+
type: PropType<unknown extends Defaults["sortBy"] ? readonly {
|
|
154
|
+
readonly key: string;
|
|
155
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
156
|
+
}[] : readonly {
|
|
157
|
+
readonly key: string;
|
|
158
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
159
|
+
}[] | Defaults["sortBy"]>;
|
|
160
|
+
default: unknown extends Defaults["sortBy"] ? readonly {
|
|
161
|
+
readonly key: string;
|
|
162
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
163
|
+
}[] : readonly {
|
|
164
|
+
readonly key: string;
|
|
165
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
166
|
+
}[] | Defaults["sortBy"];
|
|
149
167
|
};
|
|
150
168
|
items: unknown extends Defaults["items"] ? {
|
|
151
169
|
type: PropType<any[]>;
|
|
@@ -182,14 +200,104 @@ export declare const pressDataTableProps: <Defaults extends {
|
|
|
182
200
|
default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
|
|
183
201
|
};
|
|
184
202
|
headers: unknown extends Defaults["headers"] ? {
|
|
185
|
-
type: PropType<
|
|
203
|
+
type: PropType<readonly {
|
|
204
|
+
readonly key: string;
|
|
205
|
+
readonly text: string;
|
|
206
|
+
readonly value?: any;
|
|
207
|
+
readonly colspan?: number | undefined;
|
|
208
|
+
readonly rowspan?: number | undefined;
|
|
209
|
+
readonly fixed?: boolean | undefined;
|
|
210
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
211
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
212
|
+
readonly width?: string | number | undefined;
|
|
213
|
+
readonly minWidth?: string | undefined;
|
|
214
|
+
readonly maxWidth?: string | undefined;
|
|
215
|
+
readonly sortable?: boolean | undefined;
|
|
216
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
217
|
+
readonly mustSort?: boolean | undefined;
|
|
218
|
+
}[]>;
|
|
186
219
|
default: () => never[];
|
|
187
220
|
} : Omit<{
|
|
188
|
-
type: PropType<
|
|
221
|
+
type: PropType<readonly {
|
|
222
|
+
readonly key: string;
|
|
223
|
+
readonly text: string;
|
|
224
|
+
readonly value?: any;
|
|
225
|
+
readonly colspan?: number | undefined;
|
|
226
|
+
readonly rowspan?: number | undefined;
|
|
227
|
+
readonly fixed?: boolean | undefined;
|
|
228
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
229
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
230
|
+
readonly width?: string | number | undefined;
|
|
231
|
+
readonly minWidth?: string | undefined;
|
|
232
|
+
readonly maxWidth?: string | undefined;
|
|
233
|
+
readonly sortable?: boolean | undefined;
|
|
234
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
235
|
+
readonly mustSort?: boolean | undefined;
|
|
236
|
+
}[]>;
|
|
189
237
|
default: () => never[];
|
|
190
238
|
}, "default" | "type"> & {
|
|
191
|
-
type: PropType<unknown extends Defaults["headers"] ?
|
|
192
|
-
|
|
239
|
+
type: PropType<unknown extends Defaults["headers"] ? readonly {
|
|
240
|
+
readonly key: string;
|
|
241
|
+
readonly text: string;
|
|
242
|
+
readonly value?: any;
|
|
243
|
+
readonly colspan?: number | undefined;
|
|
244
|
+
readonly rowspan?: number | undefined;
|
|
245
|
+
readonly fixed?: boolean | undefined;
|
|
246
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
247
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
248
|
+
readonly width?: string | number | undefined;
|
|
249
|
+
readonly minWidth?: string | undefined;
|
|
250
|
+
readonly maxWidth?: string | undefined;
|
|
251
|
+
readonly sortable?: boolean | undefined;
|
|
252
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
253
|
+
readonly mustSort?: boolean | undefined;
|
|
254
|
+
}[] : readonly {
|
|
255
|
+
readonly key: string;
|
|
256
|
+
readonly text: string;
|
|
257
|
+
readonly value?: any;
|
|
258
|
+
readonly colspan?: number | undefined;
|
|
259
|
+
readonly rowspan?: number | undefined;
|
|
260
|
+
readonly fixed?: boolean | undefined;
|
|
261
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
262
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
263
|
+
readonly width?: string | number | undefined;
|
|
264
|
+
readonly minWidth?: string | undefined;
|
|
265
|
+
readonly maxWidth?: string | undefined;
|
|
266
|
+
readonly sortable?: boolean | undefined;
|
|
267
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
268
|
+
readonly mustSort?: boolean | undefined;
|
|
269
|
+
}[] | Defaults["headers"]>;
|
|
270
|
+
default: unknown extends Defaults["headers"] ? readonly {
|
|
271
|
+
readonly key: string;
|
|
272
|
+
readonly text: string;
|
|
273
|
+
readonly value?: any;
|
|
274
|
+
readonly colspan?: number | undefined;
|
|
275
|
+
readonly rowspan?: number | undefined;
|
|
276
|
+
readonly fixed?: boolean | undefined;
|
|
277
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
278
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
279
|
+
readonly width?: string | number | undefined;
|
|
280
|
+
readonly minWidth?: string | undefined;
|
|
281
|
+
readonly maxWidth?: string | undefined;
|
|
282
|
+
readonly sortable?: boolean | undefined;
|
|
283
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
284
|
+
readonly mustSort?: boolean | undefined;
|
|
285
|
+
}[] : readonly {
|
|
286
|
+
readonly key: string;
|
|
287
|
+
readonly text: string;
|
|
288
|
+
readonly value?: any;
|
|
289
|
+
readonly colspan?: number | undefined;
|
|
290
|
+
readonly rowspan?: number | undefined;
|
|
291
|
+
readonly fixed?: boolean | undefined;
|
|
292
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
293
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
294
|
+
readonly width?: string | number | undefined;
|
|
295
|
+
readonly minWidth?: string | undefined;
|
|
296
|
+
readonly maxWidth?: string | undefined;
|
|
297
|
+
readonly sortable?: boolean | undefined;
|
|
298
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
299
|
+
readonly mustSort?: boolean | undefined;
|
|
300
|
+
}[] | Defaults["headers"];
|
|
193
301
|
};
|
|
194
302
|
width: unknown extends Defaults["width"] ? PropType<string | number> : {
|
|
195
303
|
type: PropType<unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"]>;
|
|
@@ -282,7 +390,10 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
282
390
|
default: typeof import('../../util').deepEqual;
|
|
283
391
|
};
|
|
284
392
|
sortBy: {
|
|
285
|
-
type: PropType<readonly
|
|
393
|
+
type: PropType<readonly {
|
|
394
|
+
readonly key: string;
|
|
395
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
396
|
+
}[]>;
|
|
286
397
|
default: () => never[];
|
|
287
398
|
};
|
|
288
399
|
items: {
|
|
@@ -299,7 +410,22 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
299
410
|
};
|
|
300
411
|
returnItem: BooleanConstructor;
|
|
301
412
|
headers: {
|
|
302
|
-
type: PropType<
|
|
413
|
+
type: PropType<readonly {
|
|
414
|
+
readonly key: string;
|
|
415
|
+
readonly text: string;
|
|
416
|
+
readonly value?: any;
|
|
417
|
+
readonly colspan?: number | undefined;
|
|
418
|
+
readonly rowspan?: number | undefined;
|
|
419
|
+
readonly fixed?: boolean | undefined;
|
|
420
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
421
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
422
|
+
readonly width?: string | number | undefined;
|
|
423
|
+
readonly minWidth?: string | undefined;
|
|
424
|
+
readonly maxWidth?: string | undefined;
|
|
425
|
+
readonly sortable?: boolean | undefined;
|
|
426
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
427
|
+
readonly mustSort?: boolean | undefined;
|
|
428
|
+
}[]>;
|
|
303
429
|
default: () => never[];
|
|
304
430
|
};
|
|
305
431
|
width: PropType<string | number>;
|
|
@@ -376,7 +502,10 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
376
502
|
default: typeof import('../../util').deepEqual;
|
|
377
503
|
};
|
|
378
504
|
sortBy: {
|
|
379
|
-
type: PropType<readonly
|
|
505
|
+
type: PropType<readonly {
|
|
506
|
+
readonly key: string;
|
|
507
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
508
|
+
}[]>;
|
|
380
509
|
default: () => never[];
|
|
381
510
|
};
|
|
382
511
|
items: {
|
|
@@ -393,7 +522,22 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
393
522
|
};
|
|
394
523
|
returnItem: BooleanConstructor;
|
|
395
524
|
headers: {
|
|
396
|
-
type: PropType<
|
|
525
|
+
type: PropType<readonly {
|
|
526
|
+
readonly key: string;
|
|
527
|
+
readonly text: string;
|
|
528
|
+
readonly value?: any;
|
|
529
|
+
readonly colspan?: number | undefined;
|
|
530
|
+
readonly rowspan?: number | undefined;
|
|
531
|
+
readonly fixed?: boolean | undefined;
|
|
532
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
533
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
534
|
+
readonly width?: string | number | undefined;
|
|
535
|
+
readonly minWidth?: string | undefined;
|
|
536
|
+
readonly maxWidth?: string | undefined;
|
|
537
|
+
readonly sortable?: boolean | undefined;
|
|
538
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
539
|
+
readonly mustSort?: boolean | undefined;
|
|
540
|
+
}[]>;
|
|
397
541
|
default: () => never[];
|
|
398
542
|
};
|
|
399
543
|
width: PropType<string | number>;
|
|
@@ -438,10 +582,28 @@ export declare const YDataTable: import('vue').DefineComponent<{
|
|
|
438
582
|
enableSelect: boolean;
|
|
439
583
|
selectStrategy: "page" | "all" | "single";
|
|
440
584
|
tag: string;
|
|
441
|
-
headers:
|
|
585
|
+
headers: readonly {
|
|
586
|
+
readonly key: string;
|
|
587
|
+
readonly text: string;
|
|
588
|
+
readonly value?: any;
|
|
589
|
+
readonly colspan?: number | undefined;
|
|
590
|
+
readonly rowspan?: number | undefined;
|
|
591
|
+
readonly fixed?: boolean | undefined;
|
|
592
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
593
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
594
|
+
readonly width?: string | number | undefined;
|
|
595
|
+
readonly minWidth?: string | undefined;
|
|
596
|
+
readonly maxWidth?: string | undefined;
|
|
597
|
+
readonly sortable?: boolean | undefined;
|
|
598
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
599
|
+
readonly mustSort?: boolean | undefined;
|
|
600
|
+
}[];
|
|
442
601
|
itemSelectable: any;
|
|
443
602
|
valueEqual: typeof import('../../util').deepEqual;
|
|
444
|
-
sortBy: readonly
|
|
603
|
+
sortBy: readonly {
|
|
604
|
+
readonly key: string;
|
|
605
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
606
|
+
}[];
|
|
445
607
|
hideNoData: boolean;
|
|
446
608
|
noDataText: string;
|
|
447
609
|
pageSize: string | number;
|
|
@@ -141,14 +141,32 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
141
141
|
default: unknown extends Defaults["valueEqual"] ? typeof import('../../util').deepEqual : typeof import('../../util').deepEqual | Defaults["valueEqual"];
|
|
142
142
|
};
|
|
143
143
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
144
|
-
type: PropType<readonly
|
|
144
|
+
type: PropType<readonly {
|
|
145
|
+
readonly key: string;
|
|
146
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
147
|
+
}[]>;
|
|
145
148
|
default: () => never[];
|
|
146
149
|
} : Omit<{
|
|
147
|
-
type: PropType<readonly
|
|
150
|
+
type: PropType<readonly {
|
|
151
|
+
readonly key: string;
|
|
152
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
153
|
+
}[]>;
|
|
148
154
|
default: () => never[];
|
|
149
155
|
}, "default" | "type"> & {
|
|
150
|
-
type: PropType<unknown extends Defaults["sortBy"] ? readonly
|
|
151
|
-
|
|
156
|
+
type: PropType<unknown extends Defaults["sortBy"] ? readonly {
|
|
157
|
+
readonly key: string;
|
|
158
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
159
|
+
}[] : readonly {
|
|
160
|
+
readonly key: string;
|
|
161
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
162
|
+
}[] | Defaults["sortBy"]>;
|
|
163
|
+
default: unknown extends Defaults["sortBy"] ? readonly {
|
|
164
|
+
readonly key: string;
|
|
165
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
166
|
+
}[] : readonly {
|
|
167
|
+
readonly key: string;
|
|
168
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
169
|
+
}[] | Defaults["sortBy"];
|
|
152
170
|
};
|
|
153
171
|
items: unknown extends Defaults["items"] ? {
|
|
154
172
|
type: PropType<any[]>;
|
|
@@ -185,14 +203,104 @@ export declare const pressDataTableServerProps: <Defaults extends {
|
|
|
185
203
|
default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
|
|
186
204
|
};
|
|
187
205
|
headers: unknown extends Defaults["headers"] ? {
|
|
188
|
-
type: PropType<
|
|
206
|
+
type: PropType<readonly {
|
|
207
|
+
readonly key: string;
|
|
208
|
+
readonly text: string;
|
|
209
|
+
readonly value?: any;
|
|
210
|
+
readonly colspan?: number | undefined;
|
|
211
|
+
readonly rowspan?: number | undefined;
|
|
212
|
+
readonly fixed?: boolean | undefined;
|
|
213
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
214
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
215
|
+
readonly width?: string | number | undefined;
|
|
216
|
+
readonly minWidth?: string | undefined;
|
|
217
|
+
readonly maxWidth?: string | undefined;
|
|
218
|
+
readonly sortable?: boolean | undefined;
|
|
219
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
220
|
+
readonly mustSort?: boolean | undefined;
|
|
221
|
+
}[]>;
|
|
189
222
|
default: () => never[];
|
|
190
223
|
} : Omit<{
|
|
191
|
-
type: PropType<
|
|
224
|
+
type: PropType<readonly {
|
|
225
|
+
readonly key: string;
|
|
226
|
+
readonly text: string;
|
|
227
|
+
readonly value?: any;
|
|
228
|
+
readonly colspan?: number | undefined;
|
|
229
|
+
readonly rowspan?: number | undefined;
|
|
230
|
+
readonly fixed?: boolean | undefined;
|
|
231
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
232
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
233
|
+
readonly width?: string | number | undefined;
|
|
234
|
+
readonly minWidth?: string | undefined;
|
|
235
|
+
readonly maxWidth?: string | undefined;
|
|
236
|
+
readonly sortable?: boolean | undefined;
|
|
237
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
238
|
+
readonly mustSort?: boolean | undefined;
|
|
239
|
+
}[]>;
|
|
192
240
|
default: () => never[];
|
|
193
241
|
}, "default" | "type"> & {
|
|
194
|
-
type: PropType<unknown extends Defaults["headers"] ?
|
|
195
|
-
|
|
242
|
+
type: PropType<unknown extends Defaults["headers"] ? readonly {
|
|
243
|
+
readonly key: string;
|
|
244
|
+
readonly text: string;
|
|
245
|
+
readonly value?: any;
|
|
246
|
+
readonly colspan?: number | undefined;
|
|
247
|
+
readonly rowspan?: number | undefined;
|
|
248
|
+
readonly fixed?: boolean | undefined;
|
|
249
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
250
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
251
|
+
readonly width?: string | number | undefined;
|
|
252
|
+
readonly minWidth?: string | undefined;
|
|
253
|
+
readonly maxWidth?: string | undefined;
|
|
254
|
+
readonly sortable?: boolean | undefined;
|
|
255
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
256
|
+
readonly mustSort?: boolean | undefined;
|
|
257
|
+
}[] : readonly {
|
|
258
|
+
readonly key: string;
|
|
259
|
+
readonly text: string;
|
|
260
|
+
readonly value?: any;
|
|
261
|
+
readonly colspan?: number | undefined;
|
|
262
|
+
readonly rowspan?: number | undefined;
|
|
263
|
+
readonly fixed?: boolean | undefined;
|
|
264
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
265
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
266
|
+
readonly width?: string | number | undefined;
|
|
267
|
+
readonly minWidth?: string | undefined;
|
|
268
|
+
readonly maxWidth?: string | undefined;
|
|
269
|
+
readonly sortable?: boolean | undefined;
|
|
270
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
271
|
+
readonly mustSort?: boolean | undefined;
|
|
272
|
+
}[] | Defaults["headers"]>;
|
|
273
|
+
default: unknown extends Defaults["headers"] ? readonly {
|
|
274
|
+
readonly key: string;
|
|
275
|
+
readonly text: string;
|
|
276
|
+
readonly value?: any;
|
|
277
|
+
readonly colspan?: number | undefined;
|
|
278
|
+
readonly rowspan?: number | undefined;
|
|
279
|
+
readonly fixed?: boolean | undefined;
|
|
280
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
281
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
282
|
+
readonly width?: string | number | undefined;
|
|
283
|
+
readonly minWidth?: string | undefined;
|
|
284
|
+
readonly maxWidth?: string | undefined;
|
|
285
|
+
readonly sortable?: boolean | undefined;
|
|
286
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
287
|
+
readonly mustSort?: boolean | undefined;
|
|
288
|
+
}[] : readonly {
|
|
289
|
+
readonly key: string;
|
|
290
|
+
readonly text: string;
|
|
291
|
+
readonly value?: any;
|
|
292
|
+
readonly colspan?: number | undefined;
|
|
293
|
+
readonly rowspan?: number | undefined;
|
|
294
|
+
readonly fixed?: boolean | undefined;
|
|
295
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
296
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
297
|
+
readonly width?: string | number | undefined;
|
|
298
|
+
readonly minWidth?: string | undefined;
|
|
299
|
+
readonly maxWidth?: string | undefined;
|
|
300
|
+
readonly sortable?: boolean | undefined;
|
|
301
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
302
|
+
readonly mustSort?: boolean | undefined;
|
|
303
|
+
}[] | Defaults["headers"];
|
|
196
304
|
};
|
|
197
305
|
width: unknown extends Defaults["width"] ? PropType<string | number> : {
|
|
198
306
|
type: PropType<unknown extends Defaults["width"] ? string | number : NonNullable<string | number> | Defaults["width"]>;
|
|
@@ -315,7 +423,10 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
315
423
|
default: typeof import('../../util').deepEqual;
|
|
316
424
|
};
|
|
317
425
|
sortBy: {
|
|
318
|
-
type: PropType<readonly
|
|
426
|
+
type: PropType<readonly {
|
|
427
|
+
readonly key: string;
|
|
428
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
429
|
+
}[]>;
|
|
319
430
|
default: () => never[];
|
|
320
431
|
};
|
|
321
432
|
items: {
|
|
@@ -332,7 +443,22 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
332
443
|
};
|
|
333
444
|
returnItem: BooleanConstructor;
|
|
334
445
|
headers: {
|
|
335
|
-
type: PropType<
|
|
446
|
+
type: PropType<readonly {
|
|
447
|
+
readonly key: string;
|
|
448
|
+
readonly text: string;
|
|
449
|
+
readonly value?: any;
|
|
450
|
+
readonly colspan?: number | undefined;
|
|
451
|
+
readonly rowspan?: number | undefined;
|
|
452
|
+
readonly fixed?: boolean | undefined;
|
|
453
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
454
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
455
|
+
readonly width?: string | number | undefined;
|
|
456
|
+
readonly minWidth?: string | undefined;
|
|
457
|
+
readonly maxWidth?: string | undefined;
|
|
458
|
+
readonly sortable?: boolean | undefined;
|
|
459
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
460
|
+
readonly mustSort?: boolean | undefined;
|
|
461
|
+
}[]>;
|
|
336
462
|
default: () => never[];
|
|
337
463
|
};
|
|
338
464
|
width: PropType<string | number>;
|
|
@@ -410,7 +536,10 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
410
536
|
default: typeof import('../../util').deepEqual;
|
|
411
537
|
};
|
|
412
538
|
sortBy: {
|
|
413
|
-
type: PropType<readonly
|
|
539
|
+
type: PropType<readonly {
|
|
540
|
+
readonly key: string;
|
|
541
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
542
|
+
}[]>;
|
|
414
543
|
default: () => never[];
|
|
415
544
|
};
|
|
416
545
|
items: {
|
|
@@ -427,7 +556,22 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
427
556
|
};
|
|
428
557
|
returnItem: BooleanConstructor;
|
|
429
558
|
headers: {
|
|
430
|
-
type: PropType<
|
|
559
|
+
type: PropType<readonly {
|
|
560
|
+
readonly key: string;
|
|
561
|
+
readonly text: string;
|
|
562
|
+
readonly value?: any;
|
|
563
|
+
readonly colspan?: number | undefined;
|
|
564
|
+
readonly rowspan?: number | undefined;
|
|
565
|
+
readonly fixed?: boolean | undefined;
|
|
566
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
567
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
568
|
+
readonly width?: string | number | undefined;
|
|
569
|
+
readonly minWidth?: string | undefined;
|
|
570
|
+
readonly maxWidth?: string | undefined;
|
|
571
|
+
readonly sortable?: boolean | undefined;
|
|
572
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
573
|
+
readonly mustSort?: boolean | undefined;
|
|
574
|
+
}[]>;
|
|
431
575
|
default: () => never[];
|
|
432
576
|
};
|
|
433
577
|
width: PropType<string | number>;
|
|
@@ -475,10 +619,28 @@ export declare const YDataTableServer: import('vue').DefineComponent<{
|
|
|
475
619
|
enableSelect: boolean;
|
|
476
620
|
selectStrategy: "page" | "all" | "single";
|
|
477
621
|
tag: string;
|
|
478
|
-
headers:
|
|
622
|
+
headers: readonly {
|
|
623
|
+
readonly key: string;
|
|
624
|
+
readonly text: string;
|
|
625
|
+
readonly value?: any;
|
|
626
|
+
readonly colspan?: number | undefined;
|
|
627
|
+
readonly rowspan?: number | undefined;
|
|
628
|
+
readonly fixed?: boolean | undefined;
|
|
629
|
+
readonly classes?: string | readonly string[] | import('./types/common').DataTableCellClassesFn | undefined;
|
|
630
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
631
|
+
readonly width?: string | number | undefined;
|
|
632
|
+
readonly minWidth?: string | undefined;
|
|
633
|
+
readonly maxWidth?: string | undefined;
|
|
634
|
+
readonly sortable?: boolean | undefined;
|
|
635
|
+
readonly sort?: import('./types').DataTableCompareFn | undefined;
|
|
636
|
+
readonly mustSort?: boolean | undefined;
|
|
637
|
+
}[];
|
|
479
638
|
itemSelectable: any;
|
|
480
639
|
valueEqual: typeof import('../../util').deepEqual;
|
|
481
|
-
sortBy: readonly
|
|
640
|
+
sortBy: readonly {
|
|
641
|
+
readonly key: string;
|
|
642
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
643
|
+
}[];
|
|
482
644
|
hideNoData: boolean;
|
|
483
645
|
noDataText: string;
|
|
484
646
|
pageSize: string | number;
|
|
@@ -5,14 +5,104 @@ export declare const pressDataTableHeader: <Defaults extends {
|
|
|
5
5
|
headers?: unknown;
|
|
6
6
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
7
7
|
headers: unknown extends Defaults["headers"] ? {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<readonly {
|
|
9
|
+
readonly key: string;
|
|
10
|
+
readonly text: string;
|
|
11
|
+
readonly value?: any;
|
|
12
|
+
readonly colspan?: number | undefined;
|
|
13
|
+
readonly rowspan?: number | undefined;
|
|
14
|
+
readonly fixed?: boolean | undefined;
|
|
15
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
16
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
17
|
+
readonly width?: string | number | undefined;
|
|
18
|
+
readonly minWidth?: string | undefined;
|
|
19
|
+
readonly maxWidth?: string | undefined;
|
|
20
|
+
readonly sortable?: boolean | undefined;
|
|
21
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
22
|
+
readonly mustSort?: boolean | undefined;
|
|
23
|
+
}[]>;
|
|
9
24
|
default: () => never[];
|
|
10
25
|
} : Omit<{
|
|
11
|
-
type: PropType<
|
|
26
|
+
type: PropType<readonly {
|
|
27
|
+
readonly key: string;
|
|
28
|
+
readonly text: string;
|
|
29
|
+
readonly value?: any;
|
|
30
|
+
readonly colspan?: number | undefined;
|
|
31
|
+
readonly rowspan?: number | undefined;
|
|
32
|
+
readonly fixed?: boolean | undefined;
|
|
33
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
34
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
35
|
+
readonly width?: string | number | undefined;
|
|
36
|
+
readonly minWidth?: string | undefined;
|
|
37
|
+
readonly maxWidth?: string | undefined;
|
|
38
|
+
readonly sortable?: boolean | undefined;
|
|
39
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
40
|
+
readonly mustSort?: boolean | undefined;
|
|
41
|
+
}[]>;
|
|
12
42
|
default: () => never[];
|
|
13
43
|
}, "default" | "type"> & {
|
|
14
|
-
type: PropType<unknown extends Defaults["headers"] ?
|
|
15
|
-
|
|
44
|
+
type: PropType<unknown extends Defaults["headers"] ? readonly {
|
|
45
|
+
readonly key: string;
|
|
46
|
+
readonly text: string;
|
|
47
|
+
readonly value?: any;
|
|
48
|
+
readonly colspan?: number | undefined;
|
|
49
|
+
readonly rowspan?: number | undefined;
|
|
50
|
+
readonly fixed?: boolean | undefined;
|
|
51
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
52
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
53
|
+
readonly width?: string | number | undefined;
|
|
54
|
+
readonly minWidth?: string | undefined;
|
|
55
|
+
readonly maxWidth?: string | undefined;
|
|
56
|
+
readonly sortable?: boolean | undefined;
|
|
57
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
58
|
+
readonly mustSort?: boolean | undefined;
|
|
59
|
+
}[] : readonly {
|
|
60
|
+
readonly key: string;
|
|
61
|
+
readonly text: string;
|
|
62
|
+
readonly value?: any;
|
|
63
|
+
readonly colspan?: number | undefined;
|
|
64
|
+
readonly rowspan?: number | undefined;
|
|
65
|
+
readonly fixed?: boolean | undefined;
|
|
66
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
67
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
68
|
+
readonly width?: string | number | undefined;
|
|
69
|
+
readonly minWidth?: string | undefined;
|
|
70
|
+
readonly maxWidth?: string | undefined;
|
|
71
|
+
readonly sortable?: boolean | undefined;
|
|
72
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
73
|
+
readonly mustSort?: boolean | undefined;
|
|
74
|
+
}[] | Defaults["headers"]>;
|
|
75
|
+
default: unknown extends Defaults["headers"] ? readonly {
|
|
76
|
+
readonly key: string;
|
|
77
|
+
readonly text: string;
|
|
78
|
+
readonly value?: any;
|
|
79
|
+
readonly colspan?: number | undefined;
|
|
80
|
+
readonly rowspan?: number | undefined;
|
|
81
|
+
readonly fixed?: boolean | undefined;
|
|
82
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
83
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
84
|
+
readonly width?: string | number | undefined;
|
|
85
|
+
readonly minWidth?: string | undefined;
|
|
86
|
+
readonly maxWidth?: string | undefined;
|
|
87
|
+
readonly sortable?: boolean | undefined;
|
|
88
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
89
|
+
readonly mustSort?: boolean | undefined;
|
|
90
|
+
}[] : readonly {
|
|
91
|
+
readonly key: string;
|
|
92
|
+
readonly text: string;
|
|
93
|
+
readonly value?: any;
|
|
94
|
+
readonly colspan?: number | undefined;
|
|
95
|
+
readonly rowspan?: number | undefined;
|
|
96
|
+
readonly fixed?: boolean | undefined;
|
|
97
|
+
readonly classes?: string | readonly string[] | import('../types/common').DataTableCellClassesFn | undefined;
|
|
98
|
+
readonly align?: "start" | "end" | "center" | undefined;
|
|
99
|
+
readonly width?: string | number | undefined;
|
|
100
|
+
readonly minWidth?: string | undefined;
|
|
101
|
+
readonly maxWidth?: string | undefined;
|
|
102
|
+
readonly sortable?: boolean | undefined;
|
|
103
|
+
readonly sort?: import('../types').DataTableCompareFn | undefined;
|
|
104
|
+
readonly mustSort?: boolean | undefined;
|
|
105
|
+
}[] | Defaults["headers"];
|
|
16
106
|
};
|
|
17
107
|
};
|
|
18
108
|
export declare const Y_DATA_TABLE_HEADER_KEY: InjectionKey<{
|
|
@@ -20,7 +110,7 @@ export declare const Y_DATA_TABLE_HEADER_KEY: InjectionKey<{
|
|
|
20
110
|
columns: Ref<InternalDataTableHeader[]>;
|
|
21
111
|
}>;
|
|
22
112
|
type HeaderProps = {
|
|
23
|
-
headers: DeepReadonly<DataTableHeader[] |
|
|
113
|
+
headers: DeepReadonly<DataTableHeader[]> | undefined;
|
|
24
114
|
};
|
|
25
115
|
export declare function createHeader(props: HeaderProps, options?: {
|
|
26
116
|
enableSelect?: Ref<boolean>;
|
|
@@ -6,14 +6,32 @@ export declare const pressDataTableSortProps: <Defaults extends {
|
|
|
6
6
|
multiSort?: unknown;
|
|
7
7
|
} = {}>(defaults?: Defaults | undefined) => {
|
|
8
8
|
sortBy: unknown extends Defaults["sortBy"] ? {
|
|
9
|
-
type: PropType<readonly
|
|
9
|
+
type: PropType<readonly {
|
|
10
|
+
readonly key: string;
|
|
11
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
12
|
+
}[]>;
|
|
10
13
|
default: () => never[];
|
|
11
14
|
} : Omit<{
|
|
12
|
-
type: PropType<readonly
|
|
15
|
+
type: PropType<readonly {
|
|
16
|
+
readonly key: string;
|
|
17
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
18
|
+
}[]>;
|
|
13
19
|
default: () => never[];
|
|
14
20
|
}, "default" | "type"> & {
|
|
15
|
-
type: PropType<unknown extends Defaults["sortBy"] ? readonly
|
|
16
|
-
|
|
21
|
+
type: PropType<unknown extends Defaults["sortBy"] ? readonly {
|
|
22
|
+
readonly key: string;
|
|
23
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
24
|
+
}[] : readonly {
|
|
25
|
+
readonly key: string;
|
|
26
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
27
|
+
}[] | Defaults["sortBy"]>;
|
|
28
|
+
default: unknown extends Defaults["sortBy"] ? readonly {
|
|
29
|
+
readonly key: string;
|
|
30
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
31
|
+
}[] : readonly {
|
|
32
|
+
readonly key: string;
|
|
33
|
+
readonly order?: boolean | "desc" | "asc" | undefined;
|
|
34
|
+
}[] | Defaults["sortBy"];
|
|
17
35
|
};
|
|
18
36
|
multiSort: unknown extends Defaults["multiSort"] ? BooleanConstructor : {
|
|
19
37
|
type: PropType<unknown extends Defaults["multiSort"] ? boolean : boolean | Defaults["multiSort"]>;
|