twcpt 0.0.3 → 0.0.4

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 (67) hide show
  1. package/dist/charts.cjs.js +1 -1
  2. package/dist/charts.d.ts +0 -7
  3. package/dist/charts.es.js +1 -9
  4. package/dist/components/j-tw-btn/index.d.ts +10 -10
  5. package/dist/components/j-tw-checkbox/index.d.ts +230 -0
  6. package/dist/components/j-tw-checkbox/types.d.ts +35 -0
  7. package/dist/components/j-tw-checkbox-group/index.d.ts +309 -0
  8. package/dist/components/j-tw-checkbox-group/types.d.ts +38 -0
  9. package/dist/components/j-tw-confirm-dialog/index.d.ts +704 -0
  10. package/dist/components/j-tw-confirm-dialog/jwConfirmDialog.d.ts +2 -0
  11. package/dist/components/j-tw-confirm-dialog/types.d.ts +79 -0
  12. package/dist/components/j-tw-date-picker/index.d.ts +63 -8
  13. package/dist/components/j-tw-date-picker/types.d.ts +15 -0
  14. package/dist/components/j-tw-dialog/index.d.ts +793 -0
  15. package/dist/components/j-tw-dialog/jwDialog.d.ts +38 -0
  16. package/dist/components/j-tw-dialog/types.d.ts +122 -0
  17. package/dist/components/j-tw-form/index.d.ts +368 -0
  18. package/dist/components/j-tw-form/types.d.ts +18 -0
  19. package/dist/components/j-tw-form-item/index.d.ts +248 -0
  20. package/dist/components/j-tw-form-item/types.d.ts +21 -0
  21. package/dist/components/j-tw-form-label/index.d.ts +66 -0
  22. package/dist/components/j-tw-input/index.d.ts +537 -0
  23. package/dist/components/j-tw-input/types.d.ts +76 -0
  24. package/dist/components/j-tw-messages/MessageItem.d.ts +84 -0
  25. package/dist/components/j-tw-messages/index.d.ts +110 -0
  26. package/dist/components/j-tw-messages/jwMessages.d.ts +2 -0
  27. package/dist/components/j-tw-messages/state.d.ts +23 -0
  28. package/dist/components/j-tw-messages/types.d.ts +31 -0
  29. package/dist/components/j-tw-radio/index.d.ts +168 -0
  30. package/dist/components/j-tw-radio/types.d.ts +29 -0
  31. package/dist/components/j-tw-radio-group/index.d.ts +244 -0
  32. package/dist/components/j-tw-radio-group/types.d.ts +37 -0
  33. package/dist/components/j-tw-status-img/index.d.ts +36 -0
  34. package/dist/components/j-tw-status-img/types.d.ts +3 -0
  35. package/dist/components/j-tw-table/index.d.ts +480 -0
  36. package/dist/components/j-tw-table/types.d.ts +157 -0
  37. package/dist/components/j-tw-tree-select/TreeNode.d.ts +124 -0
  38. package/dist/components/j-tw-tree-select/index.d.ts +292 -0
  39. package/dist/components/j-tw-tree-select/types.d.ts +110 -0
  40. package/dist/components/j-tw-tree-select-btn/TreeNode.d.ts +107 -0
  41. package/dist/components/j-tw-tree-select-btn/index.d.ts +171 -22
  42. package/dist/components/j-tw-tree-select-btn/types.d.ts +5 -0
  43. package/dist/global.d.ts +109 -49
  44. package/dist/index.css +1 -1
  45. package/dist/index.d.ts +37 -4
  46. package/dist/shims-svg.d.ts +4 -0
  47. package/dist/twcpt-styles.css +1 -1
  48. package/dist/twcpt.cjs.js +9 -5
  49. package/dist/twcpt.es.js +3552 -1666
  50. package/dist/types.d.ts +1 -1
  51. package/dist/utils/useBizRequest.d.ts +12 -0
  52. package/package.json +1 -3
  53. package/dist/charts-BRqaKjiE.js +0 -879
  54. package/dist/charts-lTMiYKQB.cjs +0 -1
  55. package/dist/components/j-ch-bar/index.d.ts +0 -50
  56. package/dist/components/j-ch-bar/types.d.ts +0 -42
  57. package/dist/components/j-ch-bar-line/index.d.ts +0 -49
  58. package/dist/components/j-ch-bar-line/types.d.ts +0 -42
  59. package/dist/components/j-ch-bubble/index.d.ts +0 -54
  60. package/dist/components/j-ch-bubble/types.d.ts +0 -51
  61. package/dist/components/j-ch-line/index.d.ts +0 -57
  62. package/dist/components/j-ch-line/types.d.ts +0 -42
  63. package/dist/components/j-ch-pie-doughnut/index.d.ts +0 -60
  64. package/dist/components/j-ch-pie-doughnut/types.d.ts +0 -55
  65. package/dist/components/j-ch-radar/index.d.ts +0 -49
  66. package/dist/components/j-ch-radar/types.d.ts +0 -42
  67. package/dist/utils/chart.d.ts +0 -28
@@ -0,0 +1,244 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ObjectPlugin } from 'vue';
2
+ import { JTWRadioOption } from './types';
3
+ import { SFCWithInstall } from 'element-plus/es/utils/index.mjs';
4
+ import { RadioGroupProps, radioOptionProp, RadioProps, ComponentSize, RadioButtonProps } from 'element-plus';
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ options: {
7
+ type: PropType<JTWRadioOption[]>;
8
+ default: undefined;
9
+ };
10
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
11
+ options: {
12
+ type: PropType<JTWRadioOption[]>;
13
+ default: undefined;
14
+ };
15
+ }>> & Readonly<{}>, {
16
+ options: JTWRadioOption[];
17
+ }, {}, {
18
+ ElRadioGroup: SFCWithInstall<{
19
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioGroupProps> & Readonly<{
20
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
22
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
24
+ change: (val: string | number | boolean | undefined) => void;
25
+ }, PublicProps, {
26
+ type: "radio" | "button";
27
+ fill: string;
28
+ props: radioOptionProp;
29
+ disabled: boolean;
30
+ validateEvent: boolean;
31
+ modelValue: string | number | boolean;
32
+ id: string;
33
+ name: string;
34
+ textColor: string;
35
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
36
+ P: {};
37
+ B: {};
38
+ D: {};
39
+ C: {};
40
+ M: {};
41
+ Defaults: {};
42
+ }, Readonly< RadioGroupProps> & Readonly<{
43
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
44
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
45
+ }>, {}, {}, {}, {}, {
46
+ type: "radio" | "button";
47
+ fill: string;
48
+ props: radioOptionProp;
49
+ disabled: boolean;
50
+ validateEvent: boolean;
51
+ modelValue: string | number | boolean;
52
+ id: string;
53
+ name: string;
54
+ textColor: string;
55
+ }>;
56
+ __isFragment?: never;
57
+ __isTeleport?: never;
58
+ __isSuspense?: never;
59
+ } & ComponentOptionsBase<Readonly< RadioGroupProps> & Readonly<{
60
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
62
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
63
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
64
+ change: (val: string | number | boolean | undefined) => void;
65
+ }, string, {
66
+ type: "radio" | "button";
67
+ fill: string;
68
+ props: radioOptionProp;
69
+ disabled: boolean;
70
+ validateEvent: boolean;
71
+ modelValue: string | number | boolean;
72
+ id: string;
73
+ name: string;
74
+ textColor: string;
75
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
76
+ $slots: {
77
+ default?: (props: {}) => any;
78
+ };
79
+ })>;
80
+ ElRadio: {
81
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioProps> & Readonly<{
82
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
83
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
84
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
85
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
86
+ change: (val: string | number | boolean | undefined) => void;
87
+ }, PublicProps, {
88
+ value: string | number | boolean;
89
+ label: string | number | boolean;
90
+ disabled: boolean;
91
+ modelValue: string | number | boolean;
92
+ border: boolean;
93
+ name: string;
94
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
95
+ P: {};
96
+ B: {};
97
+ D: {};
98
+ C: {};
99
+ M: {};
100
+ Defaults: {};
101
+ }, Readonly< RadioProps> & Readonly<{
102
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
104
+ }>, {}, {}, {}, {}, {
105
+ value: string | number | boolean;
106
+ label: string | number | boolean;
107
+ disabled: boolean;
108
+ modelValue: string | number | boolean;
109
+ border: boolean;
110
+ name: string;
111
+ }>;
112
+ __isFragment?: never;
113
+ __isTeleport?: never;
114
+ __isSuspense?: never;
115
+ } & ComponentOptionsBase<Readonly< RadioProps> & Readonly<{
116
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
117
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
118
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
119
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
120
+ change: (val: string | number | boolean | undefined) => void;
121
+ }, string, {
122
+ value: string | number | boolean;
123
+ label: string | number | boolean;
124
+ disabled: boolean;
125
+ modelValue: string | number | boolean;
126
+ border: boolean;
127
+ name: string;
128
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
129
+ $slots: {
130
+ default?: (props: {}) => any;
131
+ };
132
+ }) & ObjectPlugin & {
133
+ setPropsDefaults: (defaults: Partial<{
134
+ readonly border?: boolean | undefined;
135
+ readonly modelValue?: string | number | boolean | undefined;
136
+ readonly size?: ComponentSize | undefined;
137
+ readonly disabled?: boolean | undefined;
138
+ readonly label?: string | number | boolean | undefined;
139
+ readonly value?: string | number | boolean | undefined;
140
+ readonly name?: string | undefined;
141
+ readonly onChange?: ((val: string | number | boolean | undefined) => any) | undefined | undefined;
142
+ readonly "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined | undefined;
143
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps>) => void;
144
+ } & {
145
+ RadioButton: {
146
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
147
+ value: string | number | boolean;
148
+ label: string | number | boolean;
149
+ disabled: boolean;
150
+ modelValue: string | number | boolean;
151
+ name: string;
152
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
153
+ P: {};
154
+ B: {};
155
+ D: {};
156
+ C: {};
157
+ M: {};
158
+ Defaults: {};
159
+ }, Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
160
+ value: string | number | boolean;
161
+ label: string | number | boolean;
162
+ disabled: boolean;
163
+ modelValue: string | number | boolean;
164
+ name: string;
165
+ }>;
166
+ __isFragment?: never;
167
+ __isTeleport?: never;
168
+ __isSuspense?: never;
169
+ } & ComponentOptionsBase<Readonly< RadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
170
+ value: string | number | boolean;
171
+ label: string | number | boolean;
172
+ disabled: boolean;
173
+ modelValue: string | number | boolean;
174
+ name: string;
175
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
176
+ $slots: {
177
+ default?: (props: {}) => any;
178
+ };
179
+ });
180
+ RadioGroup: {
181
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< RadioGroupProps> & Readonly<{
182
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
183
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
184
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
185
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
186
+ change: (val: string | number | boolean | undefined) => void;
187
+ }, PublicProps, {
188
+ type: "radio" | "button";
189
+ fill: string;
190
+ props: radioOptionProp;
191
+ disabled: boolean;
192
+ validateEvent: boolean;
193
+ modelValue: string | number | boolean;
194
+ id: string;
195
+ name: string;
196
+ textColor: string;
197
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
198
+ P: {};
199
+ B: {};
200
+ D: {};
201
+ C: {};
202
+ M: {};
203
+ Defaults: {};
204
+ }, Readonly< RadioGroupProps> & Readonly<{
205
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
206
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
207
+ }>, {}, {}, {}, {}, {
208
+ type: "radio" | "button";
209
+ fill: string;
210
+ props: radioOptionProp;
211
+ disabled: boolean;
212
+ validateEvent: boolean;
213
+ modelValue: string | number | boolean;
214
+ id: string;
215
+ name: string;
216
+ textColor: string;
217
+ }>;
218
+ __isFragment?: never;
219
+ __isTeleport?: never;
220
+ __isSuspense?: never;
221
+ } & ComponentOptionsBase<Readonly< RadioGroupProps> & Readonly<{
222
+ onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
223
+ "onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
224
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
225
+ "update:modelValue": (val: string | number | boolean | undefined) => void;
226
+ change: (val: string | number | boolean | undefined) => void;
227
+ }, string, {
228
+ type: "radio" | "button";
229
+ fill: string;
230
+ props: radioOptionProp;
231
+ disabled: boolean;
232
+ validateEvent: boolean;
233
+ modelValue: string | number | boolean;
234
+ id: string;
235
+ name: string;
236
+ textColor: string;
237
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
238
+ $slots: {
239
+ default?: (props: {}) => any;
240
+ };
241
+ });
242
+ };
243
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
244
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { DefineComponent } from 'vue';
2
+ export interface JTWRadioOption {
3
+ label: string;
4
+ value: string | number | boolean;
5
+ disabled?: boolean;
6
+ }
7
+ export interface JTWRadioGroupProps {
8
+ modelValue?: string | number | boolean;
9
+ options?: JTWRadioOption[];
10
+ disabled?: boolean;
11
+ size?: 'large' | 'default' | 'small';
12
+ textColor?: string;
13
+ fill?: string;
14
+ validateEvent?: boolean;
15
+ label?: string;
16
+ name?: string;
17
+ id?: string;
18
+ }
19
+ export interface JTWRadioGroupEmits {
20
+ (e: 'update:modelValue', value: string | number | boolean): void;
21
+ (e: 'change', value: string | number | boolean): void;
22
+ }
23
+ export interface JTWRadioGroupSlots {
24
+ default?: () => any;
25
+ }
26
+ export type JTWRadioGroupEmitsOptions = {
27
+ 'update:modelValue': (value: string | number | boolean) => true;
28
+ change: (value: string | number | boolean) => true;
29
+ };
30
+ export type JTWRadioGroupComponent = DefineComponent<JTWRadioGroupProps, {}, {}, {}, {}, {}, {}, JTWRadioGroupEmitsOptions>;
31
+ export type JTWRadioGroupInstance = InstanceType<JTWRadioGroupComponent>;
32
+ export interface JTWRadioGroupTemplateProps extends JTWRadioGroupProps {
33
+ 'onUpdate:modelValue'?: (value: string | number | boolean) => void;
34
+ onChange?: (value: string | number | boolean) => void;
35
+ class?: string | Record<string, boolean> | Array<string | Record<string, boolean>>;
36
+ style?: string | Record<string, string>;
37
+ }
@@ -0,0 +1,36 @@
1
+ import { DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ width: {
8
+ type: (StringConstructor | NumberConstructor)[];
9
+ default: undefined;
10
+ };
11
+ height: {
12
+ type: (StringConstructor | NumberConstructor)[];
13
+ default: undefined;
14
+ };
15
+ }>, {
16
+ imageSrc: ComputedRef<string>;
17
+ imageStyle: ComputedRef<Record<string, string>>;
18
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
19
+ name: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ width: {
24
+ type: (StringConstructor | NumberConstructor)[];
25
+ default: undefined;
26
+ };
27
+ height: {
28
+ type: (StringConstructor | NumberConstructor)[];
29
+ default: undefined;
30
+ };
31
+ }>> & Readonly<{}>, {
32
+ name: string;
33
+ width: string | number;
34
+ height: string | number;
35
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
36
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export interface JTWStatusImgProps {
2
+ name?: string;
3
+ }