tiddy 2.5.0 → 2.5.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +51 -51
  2. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as vue69 from "vue";
2
- import { AllowedComponentProps, CSSProperties, Component, ComputedRef, DefineComponent, ExtractPublicPropTypes, HTMLAttributes, PropType, Raw, Ref as Ref$1, Slot } from "vue";
1
+ import * as vue14 from "vue";
2
+ import { AllowedComponentProps, CSSProperties, Component, ComputedRef, DefineComponent, ExtractPublicPropTypes, HTMLAttributes, PropType, Raw, Ref, Slot } from "vue";
3
3
  import * as element_plus0 from "element-plus";
4
4
  import { DialogInstance, DialogProps, FormInstance, FormItemProp, FormItemProps, FormItemRule, FormProps, SelectInstance, TableColumnInstance, TableInstance } from "element-plus";
5
5
 
@@ -128,7 +128,7 @@ declare const widgetFieldPropsDef: {
128
128
  default: undefined;
129
129
  };
130
130
  };
131
- type PropsOf<C> = C extends DefineComponent<infer P, any, any, any, any> ? P : C extends (new (...args: any) => any) ? InstanceType<C> extends {
131
+ type PropsOf<C> = C extends (new (...args: any[]) => any) ? InstanceType<C>['$props'] : C extends DefineComponent<any, any, any, any, any, any, any, any> ? InstanceType<C> extends {
132
132
  $props: infer P;
133
133
  } ? P : Record<string, any> : Record<string, any>;
134
134
  type TdWidgetFieldProps = ExtractPublicPropTypes<typeof widgetFieldPropsDef> & AllowedComponentProps & Record<PropertyKey, any>;
@@ -244,7 +244,7 @@ declare const tdformItemProps: {
244
244
  };
245
245
  };
246
246
  type TdFormItemProps = ExtractPublicPropTypes<typeof tdformItemProps> & Partial<FormItemProps>;
247
- type PropsOrRef<T> = { [K in keyof T]?: OrRef<T[K]> } | Ref$1<T>;
247
+ type PropsOrRef<T> = { [K in keyof T]?: OrRef<T[K]> } | Ref<T>;
248
248
  declare function widget<T>(c: T | Raw<T>, props?: PropsOrRef<PropsOf<T> & HTMLAttributes>): {
249
249
  component: T | Raw<T>;
250
250
  widget: PropsOrRef<PropsOf<T> & HTMLAttributes> | undefined;
@@ -256,7 +256,7 @@ declare function isValidateError(prop: string): boolean;
256
256
  declare const expose$1: {
257
257
  reValidateErrorFields: typeof reValidateErrorFields;
258
258
  isValidateError: typeof isValidateError;
259
- model: vue69.ComputedRef<unknown>;
259
+ model: vue14.ComputedRef<unknown>;
260
260
  };
261
261
  type __TdFormExpose = typeof expose$1 & FormInstance;
262
262
  declare var __VLS_11$2: {}, __VLS_13$1: {}, __VLS_19$1: {};
@@ -267,24 +267,24 @@ type __VLS_Slots$4 = {} & {
267
267
  } & {
268
268
  suffix?: (props: typeof __VLS_19$1) => any;
269
269
  };
270
- declare const __VLS_base$4: vue69.DefineComponent<vue69.ExtractPropTypes<{
270
+ declare const __VLS_base$4: vue14.DefineComponent<vue14.ExtractPropTypes<{
271
271
  fields: {
272
- type: vue69.PropType<TdFormFieldProps[]>;
272
+ type: vue14.PropType<TdFormFieldProps[]>;
273
273
  default: () => never[];
274
274
  };
275
275
  item: {
276
- type: vue69.PropType<element_plus0.FormItemProps>;
276
+ type: vue14.PropType<element_plus0.FormItemProps>;
277
277
  default: () => {};
278
278
  };
279
- }>, __TdFormExpose, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {
279
+ }>, __TdFormExpose, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {
280
280
  submit: (data: any) => any;
281
- }, string, vue69.PublicProps, Readonly<vue69.ExtractPropTypes<{
281
+ }, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
282
282
  fields: {
283
- type: vue69.PropType<TdFormFieldProps[]>;
283
+ type: vue14.PropType<TdFormFieldProps[]>;
284
284
  default: () => never[];
285
285
  };
286
286
  item: {
287
- type: vue69.PropType<element_plus0.FormItemProps>;
287
+ type: vue14.PropType<element_plus0.FormItemProps>;
288
288
  default: () => {};
289
289
  };
290
290
  }>> & Readonly<{
@@ -292,7 +292,7 @@ declare const __VLS_base$4: vue69.DefineComponent<vue69.ExtractPropTypes<{
292
292
  }>, {
293
293
  fields: TdFormFieldProps[];
294
294
  item: element_plus0.FormItemProps;
295
- }, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
295
+ }, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
296
296
  declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
297
297
  declare const _default$2: typeof __VLS_export$6;
298
298
  type __VLS_WithSlots$4<T, S> = T & {
@@ -304,37 +304,37 @@ type __VLS_WithSlots$4<T, S> = T & {
304
304
  //#region src/form/form-item.vue.d.ts
305
305
  declare var __VLS_10$1: string | number, __VLS_11$1: any;
306
306
  type __VLS_Slots$3 = {} & { [K in NonNullable<typeof __VLS_10$1>]?: (props: typeof __VLS_11$1) => any };
307
- declare const __VLS_base$3: vue69.DefineComponent<vue69.ExtractPropTypes<{
307
+ declare const __VLS_base$3: vue14.DefineComponent<vue14.ExtractPropTypes<{
308
308
  messageLabel: {
309
- type: vue69.PropType<OrRef<string>>;
309
+ type: vue14.PropType<OrRef<string>>;
310
310
  default: string;
311
311
  };
312
312
  formatMessage: {
313
- type: vue69.PropType<AnyFunction>;
313
+ type: vue14.PropType<AnyFunction>;
314
314
  default: null;
315
315
  };
316
316
  hideRequiredAsterisk: {
317
- type: vue69.PropType<boolean>;
317
+ type: vue14.PropType<boolean>;
318
318
  default: boolean;
319
319
  };
320
- }>, {}, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<vue69.ExtractPropTypes<{
320
+ }>, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
321
321
  messageLabel: {
322
- type: vue69.PropType<OrRef<string>>;
322
+ type: vue14.PropType<OrRef<string>>;
323
323
  default: string;
324
324
  };
325
325
  formatMessage: {
326
- type: vue69.PropType<AnyFunction>;
326
+ type: vue14.PropType<AnyFunction>;
327
327
  default: null;
328
328
  };
329
329
  hideRequiredAsterisk: {
330
- type: vue69.PropType<boolean>;
330
+ type: vue14.PropType<boolean>;
331
331
  default: boolean;
332
332
  };
333
333
  }>> & Readonly<{}>, {
334
334
  hideRequiredAsterisk: boolean;
335
- messageLabel: any;
335
+ messageLabel: OrRef<string>;
336
336
  formatMessage: AnyFunction;
337
- }, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
337
+ }, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
338
338
  declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
339
339
  declare const _default$4: typeof __VLS_export$5;
340
340
  type __VLS_WithSlots$3<T, S> = T & {
@@ -344,7 +344,7 @@ type __VLS_WithSlots$3<T, S> = T & {
344
344
  };
345
345
  //#endregion
346
346
  //#region src/form/form-field.vue.d.ts
347
- declare const __VLS_export$4: vue69.DefineComponent<{}, {}, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
347
+ declare const __VLS_export$4: vue14.DefineComponent<{}, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
348
348
  declare const _default$3: typeof __VLS_export$4;
349
349
  //#endregion
350
350
  //#region src/form/index.d.ts
@@ -367,11 +367,11 @@ type TableColumnProp = {
367
367
  default: () => never[];
368
368
  };
369
369
  hide: {
370
- type: PropType<boolean | Ref$1<boolean>>;
370
+ type: PropType<boolean | Ref<boolean>>;
371
371
  default: false;
372
372
  };
373
373
  dangerouslyUseHTMLString: {
374
- type: PropType<boolean | Ref$1<boolean>>;
374
+ type: PropType<boolean | Ref<boolean>>;
375
375
  default: false;
376
376
  };
377
377
  };
@@ -392,19 +392,19 @@ type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof
392
392
  } & {
393
393
  after?: (props: typeof __VLS_19) => any;
394
394
  };
395
- declare const __VLS_base$2: vue69.DefineComponent<vue69.ExtractPropTypes<{
395
+ declare const __VLS_base$2: vue14.DefineComponent<vue14.ExtractPropTypes<{
396
396
  columns: {
397
- type: vue69.PropType<TdTableColumnProps[]>;
397
+ type: vue14.PropType<TdTableColumnProps[]>;
398
398
  default: () => never[];
399
399
  };
400
- }>, TableInstance, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<vue69.ExtractPropTypes<{
400
+ }>, TableInstance, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
401
401
  columns: {
402
- type: vue69.PropType<TdTableColumnProps[]>;
402
+ type: vue14.PropType<TdTableColumnProps[]>;
403
403
  default: () => never[];
404
404
  };
405
405
  }>> & Readonly<{}>, {
406
406
  columns: TdTableColumnProps[];
407
- }, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
407
+ }, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
408
408
  declare const __VLS_export$3: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
409
409
  declare const _default$5: typeof __VLS_export$3;
410
410
  type __VLS_WithSlots$2<T, S> = T & {
@@ -414,55 +414,55 @@ type __VLS_WithSlots$2<T, S> = T & {
414
414
  };
415
415
  //#endregion
416
416
  //#region src/table/table-col.vue.d.ts
417
- declare const __VLS_export$2: vue69.DefineComponent<vue69.ExtractPropTypes<{
417
+ declare const __VLS_export$2: vue14.DefineComponent<vue14.ExtractPropTypes<{
418
418
  slots: {
419
- type: vue69.PropType<OrArray<SlotDef>>;
419
+ type: vue14.PropType<OrArray<SlotDef>>;
420
420
  default: null;
421
421
  };
422
422
  columns: {
423
- type: vue69.PropType<TdTableColumnProps[]>;
423
+ type: vue14.PropType<TdTableColumnProps[]>;
424
424
  default: () => never[];
425
425
  };
426
426
  transform: {
427
- type: vue69.PropType<AnyFunction[]>;
427
+ type: vue14.PropType<AnyFunction[]>;
428
428
  default: () => never[];
429
429
  };
430
430
  hide: {
431
- type: vue69.PropType<boolean | vue69.Ref<boolean>>;
431
+ type: vue14.PropType<boolean | vue14.Ref<boolean>>;
432
432
  default: false;
433
433
  };
434
434
  dangerouslyUseHTMLString: {
435
- type: vue69.PropType<boolean | vue69.Ref<boolean>>;
435
+ type: vue14.PropType<boolean | vue14.Ref<boolean>>;
436
436
  default: false;
437
437
  };
438
- }>, {}, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<vue69.ExtractPropTypes<{
438
+ }>, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
439
439
  slots: {
440
- type: vue69.PropType<OrArray<SlotDef>>;
440
+ type: vue14.PropType<OrArray<SlotDef>>;
441
441
  default: null;
442
442
  };
443
443
  columns: {
444
- type: vue69.PropType<TdTableColumnProps[]>;
444
+ type: vue14.PropType<TdTableColumnProps[]>;
445
445
  default: () => never[];
446
446
  };
447
447
  transform: {
448
- type: vue69.PropType<AnyFunction[]>;
448
+ type: vue14.PropType<AnyFunction[]>;
449
449
  default: () => never[];
450
450
  };
451
451
  hide: {
452
- type: vue69.PropType<boolean | vue69.Ref<boolean>>;
452
+ type: vue14.PropType<boolean | vue14.Ref<boolean>>;
453
453
  default: false;
454
454
  };
455
455
  dangerouslyUseHTMLString: {
456
- type: vue69.PropType<boolean | vue69.Ref<boolean>>;
456
+ type: vue14.PropType<boolean | vue14.Ref<boolean>>;
457
457
  default: false;
458
458
  };
459
459
  }>> & Readonly<{}>, {
460
+ hide: boolean | vue14.Ref<boolean, boolean>;
460
461
  slots: OrArray<SlotDef>;
461
462
  columns: TdTableColumnProps[];
462
463
  transform: AnyFunction[];
463
- hide: boolean | vue69.Ref<boolean, boolean>;
464
- dangerouslyUseHTMLString: boolean | vue69.Ref<boolean, boolean>;
465
- }, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
464
+ dangerouslyUseHTMLString: boolean | vue14.Ref<boolean, boolean>;
465
+ }, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
466
466
  declare const _default$6: typeof __VLS_export$2;
467
467
  //#endregion
468
468
  //#region src/table/index.d.ts
@@ -495,7 +495,7 @@ declare var __VLS_13: "default" | "title" | "header" | "footer", __VLS_14: {
495
495
  titleClass?: string | undefined;
496
496
  };
497
497
  type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any };
498
- declare const __VLS_base$1: vue69.DefineComponent<{}, __TdDialogExpose, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any>;
498
+ declare const __VLS_base$1: vue14.DefineComponent<{}, __TdDialogExpose, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
499
499
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
500
500
  declare const _default: typeof __VLS_export$1;
501
501
  type __VLS_WithSlots$1<T, S> = T & {
@@ -534,7 +534,7 @@ type __VLS_Props = {
534
534
  };
535
535
  declare var __VLS_10: string | number, __VLS_11: any;
536
536
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any };
537
- declare const __VLS_base: vue69.DefineComponent<__VLS_Props, SelectInstance, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue69.ComponentProvideOptions, false, {}, any>;
537
+ declare const __VLS_base: vue14.DefineComponent<__VLS_Props, SelectInstance, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, false, {}, any>;
538
538
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
539
539
  declare const _default$1: typeof __VLS_export;
540
540
  type __VLS_WithSlots<T, S> = T & {
@@ -547,10 +547,10 @@ type __VLS_WithSlots<T, S> = T & {
547
547
  type TdEnumSelectInstance = InstanceType<typeof _default$1>;
548
548
  //#endregion
549
549
  //#region src/hooks/use-reuse.d.ts
550
- declare function useReuse(): (vue69.DefineComponent<{}, () => null, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any> | vue69.DefineComponent<{}, () => vue69.VNode<vue69.RendererNode, vue69.RendererElement, {
550
+ declare function useReuse(): (vue14.DefineComponent<{}, () => null, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any> | vue14.DefineComponent<{}, () => vue14.VNode<vue14.RendererNode, vue14.RendererElement, {
551
551
  [key: string]: any;
552
- }>[] | undefined, {}, {}, {}, vue69.ComponentOptionsMixin, vue69.ComponentOptionsMixin, {}, string, vue69.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue69.ComponentProvideOptions, true, {}, any> | vue69.ComputedRef<Readonly<{
553
- [name: string]: vue69.Slot<any> | undefined;
552
+ }>[] | undefined, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any> | vue14.ComputedRef<Readonly<{
553
+ [name: string]: vue14.Slot<any> | undefined;
554
554
  }>>)[];
555
555
  //#endregion
556
556
  //#region src/utils/index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiddy",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "packageManager": "pnpm@10.11.0",
5
5
  "description": "A set of Vue 3 components based on element-plus",
6
6
  "type": "module",
@@ -30,6 +30,7 @@
30
30
  "play": "vite",
31
31
  "test": "vitest",
32
32
  "type": "vue-tsc --noEmit",
33
+ "pretype": "pnpm run build",
33
34
  "format": "biome format --write .",
34
35
  "prepublishOnly": "pnpm run build",
35
36
  "docs:dev": "vitepress dev docs",