@solar-taro/ui-vant 1.6.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/cascader/index.vue.d.ts +35 -99
  3. package/cascader-picker/index.vue.d.ts +11 -51
  4. package/date-range-picker/index.vue.d.ts +9 -36
  5. package/directives/bind-function.d.ts +0 -1
  6. package/directives/datetime-picker.d.ts +0 -1
  7. package/directives/readonly.d.ts +0 -1
  8. package/index.d.ts +0 -2
  9. package/index.js +21 -25
  10. package/index.scss +1 -0
  11. package/index10.js +292 -50
  12. package/index100.js +10 -17
  13. package/index101.js +5 -10
  14. package/index102.js +4 -5
  15. package/index103.js +4 -4
  16. package/index104.js +5 -4
  17. package/index105.js +6 -5
  18. package/index106.js +10 -7
  19. package/index107.js +6 -9
  20. package/index108.js +16 -5
  21. package/index109.js +4 -17
  22. package/index11.js +17 -303
  23. package/index110.js +4 -4
  24. package/index111.js +3 -4
  25. package/index112.js +3 -3
  26. package/index113.js +14 -3
  27. package/index114.js +7 -14
  28. package/index115.js +6 -8
  29. package/index116.js +5 -5
  30. package/index117.js +5 -5
  31. package/index118.js +5 -5
  32. package/index119.js +5 -5
  33. package/index12.js +28 -45
  34. package/index120.js +3 -6
  35. package/index121.js +17 -6
  36. package/index122.js +5 -793
  37. package/index123.js +4 -3
  38. package/index124.js +2 -16
  39. package/index125.js +8 -4
  40. package/index126.js +5 -3
  41. package/index127.js +4 -3
  42. package/index128.js +5 -9
  43. package/index129.js +3 -6
  44. package/index13.js +4 -18
  45. package/index130.js +2 -2
  46. package/index131.js +4 -5
  47. package/index132.js +5 -3
  48. package/index133.js +10 -31
  49. package/index134.js +6 -4
  50. package/index135.js +5 -3
  51. package/index136.js +7 -10
  52. package/index137.js +3 -7
  53. package/index14.js +62 -27
  54. package/index15.js +2 -5
  55. package/index16.js +2 -64
  56. package/index17.js +1 -1
  57. package/index18.js +2 -6
  58. package/index19.js +1 -1
  59. package/index2.js +1 -1
  60. package/index20.js +1 -1
  61. package/index23.js +10 -2
  62. package/index24.js +9 -2
  63. package/index25.js +6 -2
  64. package/index26.js +14 -2
  65. package/index27.js +4 -2
  66. package/index28.js +6 -3
  67. package/index29.js +789 -9
  68. package/index3.js +3 -3
  69. package/index30.js +31 -9
  70. package/index31.js +62 -8
  71. package/index32.js +3 -62
  72. package/index33.js +8 -4
  73. package/index34.js +6 -7
  74. package/index35.js +3 -6
  75. package/index36.js +2 -4
  76. package/index37.js +6 -2
  77. package/index38.js +9 -5
  78. package/index39.js +4 -9
  79. package/index4.js +1 -1
  80. package/index40.js +4 -5
  81. package/index41.js +3 -4
  82. package/index42.js +4 -3
  83. package/index43.js +7 -3
  84. package/index44.js +4 -7
  85. package/index45.js +5 -5
  86. package/index46.js +7 -5
  87. package/index47.js +5 -6
  88. package/index48.js +9 -6
  89. package/index49.js +5 -9
  90. package/index5.js +1 -1
  91. package/index50.js +7 -5
  92. package/index51.js +4 -6
  93. package/index52.js +10 -5
  94. package/index53.js +6 -9
  95. package/index54.js +17 -6
  96. package/index55.js +11 -17
  97. package/index56.js +6 -11
  98. package/index57.js +12 -6
  99. package/index58.js +3 -12
  100. package/index59.js +11 -3
  101. package/index6.js +92 -29
  102. package/index60.js +1 -1
  103. package/index61.js +1 -1
  104. package/index62.js +5 -11
  105. package/index63.js +5 -5
  106. package/index64.js +9 -6
  107. package/index65.js +15 -8
  108. package/index66.js +5 -15
  109. package/index67.js +5 -5
  110. package/index68.js +8 -5
  111. package/index69.js +6 -8
  112. package/index7.js +39 -90
  113. package/index70.js +5 -6
  114. package/index71.js +4 -4
  115. package/index72.js +6 -5
  116. package/index73.js +5 -5
  117. package/index74.js +26 -7
  118. package/index75.js +6 -26
  119. package/index76.js +39 -5
  120. package/index77.js +6 -39
  121. package/index78.js +5 -6
  122. package/index79.js +15 -6
  123. package/index8.js +264 -40
  124. package/index80.js +7 -14
  125. package/index81.js +2 -8
  126. package/index82.js +3 -2
  127. package/index83.js +13 -3
  128. package/index84.js +4 -12
  129. package/index85.js +3 -5
  130. package/index86.js +4 -3
  131. package/index87.js +4 -4
  132. package/index88.js +4 -4
  133. package/index89.js +4 -4
  134. package/index9.js +54 -262
  135. package/index90.js +4 -4
  136. package/index91.js +14 -3
  137. package/index92.js +13 -14
  138. package/index93.js +8 -13
  139. package/index94.js +3 -9
  140. package/index95.js +6 -3
  141. package/index96.js +5 -5
  142. package/index97.js +5 -5
  143. package/index98.js +7 -5
  144. package/index99.js +17 -7
  145. package/list/index.vue.d.ts +14 -9
  146. package/modal/index.vue.d.ts +19 -41
  147. package/opper-controller/index.vue.d.ts +8 -36
  148. package/overlay/overlay.d.ts +0 -1
  149. package/package.json +2 -2
  150. package/plugin.d.ts +0 -1
  151. package/select-picker/index.vue.d.ts +11 -45
  152. package/selector/index.vue.d.ts +86 -147
  153. package/index138.js +0 -9
  154. package/index139.js +0 -7
  155. package/index140.js +0 -10
  156. package/index141.js +0 -5
  157. package/item/index.d.ts +0 -1
  158. package/item/index.scss +0 -37
  159. package/item/index.vue.d.ts +0 -44
  160. package/tabbar/index.d.ts +0 -1
  161. package/tabbar/index.scss +0 -78
  162. package/tabbar/index.vue.d.ts +0 -58
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.6.5 (2025-11-10)
2
+
3
+ This was a version bump only for ui-vant to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.6.4 (2025-11-05)
2
6
 
3
7
  This was a version bump only for ui-vant to align it with other projects, there were no code changes.
@@ -1,102 +1,38 @@
1
1
  import { TreeNode } from '@solar-kit/core';
2
-
3
- type CascaderOption = TreeNode<Record<string, any>>;
4
- declare function present(): void;
5
- declare function __VLS_template(): {
6
- default?(_: {
7
- present: typeof present;
8
- label: string;
9
- }): any;
2
+ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly onClose?: (() => any) | undefined;
5
+ readonly onSelect?: ((args_0: TreeNode<T>) => any) | undefined;
6
+ readonly onClear?: ((args_0: unknown) => any) | undefined;
7
+ readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onClose" | "onClear"> & ({
9
+ modelValue?: unknown;
10
+ } & {
11
+ label?: string;
12
+ placeholder?: string;
13
+ options: TreeNode<T>[];
14
+ labelKey?: keyof T;
15
+ valueKey?: keyof T;
16
+ required?: boolean;
17
+ disabled?: boolean;
18
+ delimiter?: string;
19
+ height?: string;
20
+ }) & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {
24
+ default?(_: {
25
+ present: () => void;
26
+ label: string;
27
+ }): any;
28
+ };
29
+ emit: (((evt: "close") => void) & ((evt: "select", args_0: TreeNode<T>) => void) & ((evt: "clear", args_0: unknown) => void)) & ((evt: "update:modelValue", value: unknown) => void);
30
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
31
+ [key: string]: any;
32
+ }> & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
10
34
  };
11
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
- modelValue: import('vue').PropType<unknown>;
13
- disabled: {
14
- type: import('vue').PropType<boolean>;
15
- };
16
- label: {
17
- type: import('vue').PropType<string>;
18
- };
19
- required: {
20
- type: import('vue').PropType<boolean>;
21
- };
22
- height: {
23
- type: import('vue').PropType<string>;
24
- default: string;
25
- };
26
- placeholder: {
27
- type: import('vue').PropType<string>;
28
- default: string;
29
- };
30
- options: {
31
- type: import('vue').PropType<CascaderOption[]>;
32
- required: true;
33
- };
34
- labelKey: {
35
- type: import('vue').PropType<string>;
36
- default: string;
37
- };
38
- valueKey: {
39
- type: import('vue').PropType<string>;
40
- default: string;
41
- };
42
- delimiter: {
43
- type: import('vue').PropType<string>;
44
- default: string;
45
- };
46
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
- close: () => void;
48
- select: (args_0: TreeNode<Record<string, any>>) => void;
49
- clear: (args_0: unknown) => void;
50
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
51
- modelValue: import('vue').PropType<unknown>;
52
- disabled: {
53
- type: import('vue').PropType<boolean>;
54
- };
55
- label: {
56
- type: import('vue').PropType<string>;
57
- };
58
- required: {
59
- type: import('vue').PropType<boolean>;
60
- };
61
- height: {
62
- type: import('vue').PropType<string>;
63
- default: string;
64
- };
65
- placeholder: {
66
- type: import('vue').PropType<string>;
67
- default: string;
68
- };
69
- options: {
70
- type: import('vue').PropType<CascaderOption[]>;
71
- required: true;
72
- };
73
- labelKey: {
74
- type: import('vue').PropType<string>;
75
- default: string;
76
- };
77
- valueKey: {
78
- type: import('vue').PropType<string>;
79
- default: string;
80
- };
81
- delimiter: {
82
- type: import('vue').PropType<string>;
83
- default: string;
84
- };
85
- }>> & Readonly<{
86
- onClose?: (() => any) | undefined;
87
- onSelect?: ((args_0: TreeNode<Record<string, any>>) => any) | undefined;
88
- onClear?: ((args_0: unknown) => any) | undefined;
89
- }>, {
90
- height: string;
91
- placeholder: string;
92
- labelKey: string;
93
- valueKey: string;
94
- delimiter: string;
95
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
96
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
97
35
  export default _default;
98
- type __VLS_WithTemplateSlots<T, S> = T & {
99
- new (): {
100
- $slots: S;
101
- };
102
- };
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ type __VLS_Props = {
2
2
  show: boolean;
3
3
  labelKey?: string;
4
4
  valueKey?: string;
@@ -10,64 +10,24 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
10
  options: any[][];
11
11
  modelValue: string | number | undefined;
12
12
  required?: boolean;
13
- }>, {
14
- labelKey: string;
15
- valueKey: string;
16
- pidKey: string;
17
- searchable: boolean;
18
- options: () => never[];
19
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
- cancel: (args_0: any) => void;
21
- close: () => void;
22
- confirm: (args_0: any) => void;
23
- "update:modelValue": (args_0: any) => void;
24
- "update:show": (args_0: boolean) => void;
25
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
- show: boolean;
27
- labelKey?: string;
28
- valueKey?: string;
29
- pidKey?: string;
30
- searchable?: boolean;
31
- title: string;
32
- loading?: boolean;
33
- /** [[level1 list], [level2 list], [level3 list]] */
34
- options: any[][];
35
- modelValue: string | number | undefined;
36
- required?: boolean;
37
- }>, {
38
- labelKey: string;
39
- valueKey: string;
40
- pidKey: string;
41
- searchable: boolean;
42
- options: () => never[];
43
- }>>> & Readonly<{
13
+ };
14
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ cancel: (args_0: any) => any;
16
+ close: () => any;
17
+ confirm: (args_0: any) => any;
18
+ "update:show": (args_0: boolean) => any;
19
+ "update:modelValue": (args_0: any) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
44
21
  onCancel?: ((args_0: any) => any) | undefined;
45
22
  onClose?: (() => any) | undefined;
46
23
  onConfirm?: ((args_0: any) => any) | undefined;
47
- "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
48
24
  "onUpdate:show"?: ((args_0: boolean) => any) | undefined;
25
+ "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
49
26
  }>, {
50
27
  options: any[][];
51
28
  labelKey: string;
52
29
  valueKey: string;
53
30
  searchable: boolean;
54
31
  pidKey: string;
55
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
33
  export default _default;
57
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
- type __VLS_TypePropsToRuntimeProps<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
- } : {
62
- type: import('vue').PropType<T[K]>;
63
- required: true;
64
- };
65
- };
66
- type __VLS_WithDefaults<P, D> = {
67
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
68
- default: D[K];
69
- }> : P[K];
70
- };
71
- type __VLS_Prettify<T> = {
72
- [K in keyof T]: T[K];
73
- } & {};
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
2
  id?: string;
3
3
  type?: "date" | "datetime";
4
4
  label?: string;
@@ -9,17 +9,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
9
9
  format?: string;
10
10
  minDate?: number;
11
11
  maxDate?: number;
12
- }>, {
13
- id: () => string;
14
- type: string;
15
- minDate: () => number;
16
- maxDate: () => number;
17
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
- "update:modelValue": (v: [(number | undefined)?, (number | undefined)?]) => void;
19
- confirm: (v: [number, number]) => void;
20
- clear: (v: [(number | undefined)?, (number | undefined)?]) => void;
21
- close: () => void;
22
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ close: () => any;
14
+ clear: (v: [(number | undefined)?, (number | undefined)?]) => any;
15
+ confirm: (v: [number, number]) => any;
16
+ "update:modelValue": (v: [(number | undefined)?, (number | undefined)?]) => any;
17
+ }, string, import('vue').PublicProps, Readonly<{
23
18
  id?: string;
24
19
  type?: "date" | "datetime";
25
20
  label?: string;
@@ -30,12 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
30
25
  format?: string;
31
26
  minDate?: number;
32
27
  maxDate?: number;
33
- }>, {
34
- id: () => string;
35
- type: string;
36
- minDate: () => number;
37
- maxDate: () => number;
38
- }>>> & Readonly<{
28
+ }> & Readonly<{
39
29
  onClose?: (() => any) | undefined;
40
30
  onClear?: ((v: [(number | undefined)?, (number | undefined)?]) => any) | undefined;
41
31
  onConfirm?: ((v: [number, number]) => any) | undefined;
@@ -45,29 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
45
35
  id: string;
46
36
  minDate: number;
47
37
  maxDate: number;
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
49
39
  default?(_: {
50
40
  present: () => void;
51
41
  }): any;
52
42
  }>;
53
43
  export default _default;
54
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
- type __VLS_TypePropsToRuntimeProps<T> = {
56
- [K in keyof T]-?: {} extends Pick<T, K> ? {
57
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
58
- } : {
59
- type: import('vue').PropType<T[K]>;
60
- required: true;
61
- };
62
- };
63
- type __VLS_WithDefaults<P, D> = {
64
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
- default: D[K];
66
- }> : P[K];
67
- };
68
- type __VLS_Prettify<T> = {
69
- [K in keyof T]: T[K];
70
- } & {};
71
44
  type __VLS_WithTemplateSlots<T, S> = T & {
72
45
  new (): {
73
46
  $slots: S;
@@ -1,5 +1,4 @@
1
1
  import { Directive } from 'vue';
2
-
3
2
  export declare const vBindFn: Directive<{
4
3
  id: string;
5
4
  }, (...args: any[]) => any>;
@@ -1,5 +1,4 @@
1
1
  import { Directive } from 'vue';
2
-
3
2
  export declare const vDatetimePicker: Directive<{
4
3
  id: string;
5
4
  }>;
@@ -1,3 +1,2 @@
1
1
  import { Directive } from 'vue';
2
-
3
2
  export declare const vReadonly: Directive<any, boolean | undefined>;
package/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './cascader';
2
2
  export * from './cascader-picker';
3
3
  export * from './date-range-picker';
4
4
  export * from './directives';
5
- export * from './item';
6
5
  export * from './list';
7
6
  export * from './modal';
8
7
  export * from './opper-controller';
@@ -10,4 +9,3 @@ export * from './overlay';
10
9
  export * from './plugin';
11
10
  export * from './select-picker';
12
11
  export * from './selector';
13
- export * from './tabbar';
package/index.js CHANGED
@@ -1,36 +1,32 @@
1
1
  import { SolarVant as o } from "./index2.js";
2
2
  import { default as a } from "./index3.js";
3
- import { default as u } from "./index4.js";
3
+ import { default as l } from "./index4.js";
4
4
  import { default as p } from "./index5.js";
5
- import { default as n } from "./index6.js";
5
+ import { default as d } from "./index6.js";
6
6
  import { default as x } from "./index7.js";
7
- import { default as S } from "./index8.js";
7
+ import { default as i } from "./index8.js";
8
8
  import { default as c } from "./index9.js";
9
9
  import { default as v } from "./index10.js";
10
- import { default as P } from "./index11.js";
11
- import { default as C } from "./index12.js";
12
- import { vBindFn as b } from "./index13.js";
13
- import { vDatetimePicker as R } from "./index14.js";
14
- import { vReadonly as F } from "./index15.js";
15
- import { Dialog as L, Notify as M, dialog as N, notify as T, setupOverlay as V } from "./index16.js";
10
+ import { vBindFn as P } from "./index11.js";
11
+ import { vDatetimePicker as C } from "./index12.js";
12
+ import { vReadonly as O } from "./index13.js";
13
+ import { Dialog as B, Notify as F, dialog as L, notify as M, setupOverlay as N } from "./index14.js";
16
14
  export {
17
- L as Dialog,
18
- M as Notify,
15
+ B as Dialog,
16
+ F as Notify,
19
17
  o as SolarVant,
20
18
  a as SunCascader,
21
- u as SunCascaderPicker,
19
+ l as SunCascaderPicker,
22
20
  p as SunDateRangePicker,
23
- n as SunItem,
24
- x as SunList,
25
- S as SunModal,
26
- c as SunOpperController,
27
- v as SunSelectPicker,
28
- P as SunSelector,
29
- C as SunTabbar,
30
- N as dialog,
31
- T as notify,
32
- V as setupOverlay,
33
- b as vBindFn,
34
- R as vDatetimePicker,
35
- F as vReadonly
21
+ d as SunList,
22
+ x as SunModal,
23
+ i as SunOpperController,
24
+ c as SunSelectPicker,
25
+ v as SunSelector,
26
+ L as dialog,
27
+ M as notify,
28
+ N as setupOverlay,
29
+ P as vBindFn,
30
+ C as vDatetimePicker,
31
+ O as vReadonly
36
32
  };
package/index.scss CHANGED
@@ -59,6 +59,7 @@ page > view {
59
59
 
60
60
  --overlay-background-color: rgba(0, 0, 0, 0.6);
61
61
 
62
+ --van-tab-height: 44px;
62
63
  --van-tabs-height: 44px;
63
64
  --van-search-height: 54px;
64
65