@web-utils/form-ui 1.0.0-beta3 → 1.0.0-beta30

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 (176) hide show
  1. package/api/index.d.ts +60 -0
  2. package/api/index.mjs +42 -0
  3. package/awesome-button/index.d.ts +60 -0
  4. package/awesome-button/index.mjs +49 -0
  5. package/base.css +1 -1
  6. package/chunks/4ZuVpQf6.mjs +478 -0
  7. package/chunks/B99alfW4.mjs +207 -0
  8. package/chunks/BQ77eAb3.mjs +71 -0
  9. package/chunks/BV_N8p9t.mjs +83 -0
  10. package/chunks/BV_P9a8o.mjs +100 -0
  11. package/chunks/BgDYHgyH.mjs +189 -0
  12. package/chunks/Bm5eiSmT.mjs +79 -0
  13. package/chunks/BmZieBZW.mjs +88 -0
  14. package/chunks/Br4i8stg.mjs +222 -0
  15. package/chunks/C3a15Ful.mjs +95 -0
  16. package/chunks/C4bM8miy.mjs +174 -0
  17. package/chunks/C9J3j0PX.mjs +93 -0
  18. package/chunks/CKErj8Ax.mjs +637 -0
  19. package/chunks/Cby3mvvZ.mjs +216 -0
  20. package/chunks/Cc3EJjbV.mjs +25 -0
  21. package/chunks/Cgl-hCE5.mjs +25 -0
  22. package/chunks/Ci1XxmdE.mjs +51 -0
  23. package/chunks/CkFapoKt.mjs +8 -0
  24. package/chunks/CsfgUCe9.mjs +17 -0
  25. package/chunks/CugRu2Ka.mjs +42 -0
  26. package/chunks/Cy-4nmyC.mjs +106 -0
  27. package/chunks/D1EOkWJ7.mjs +25 -0
  28. package/chunks/D1G2MMMx.mjs +1360 -0
  29. package/chunks/DO8dVGef.mjs +98 -0
  30. package/chunks/DazglPJZ.mjs +180 -0
  31. package/chunks/Dt6gY213.mjs +62 -0
  32. package/chunks/DtAYXPvz.mjs +108 -0
  33. package/chunks/JhyiXnbd.mjs +76 -0
  34. package/chunks/S64sNmuR.mjs +226 -0
  35. package/chunks/bnRb5PUB.mjs +108 -0
  36. package/chunks/dM-icPM8.mjs +107 -0
  37. package/chunks/pxFLMMUm.mjs +110 -0
  38. package/chunks/q1SlJP1y.mjs +171 -0
  39. package/confirm-button/index.d.ts +113 -0
  40. package/confirm-button/index.mjs +35 -0
  41. package/confirmable/index.d.ts +84 -0
  42. package/confirmable/index.mjs +8 -0
  43. package/constants/index.d.ts +42 -0
  44. package/constants/index.mjs +4 -0
  45. package/dict-render/index.d.ts +28 -0
  46. package/element-dialog/index.d.ts +374 -0
  47. package/element-dialog/index.mjs +2 -91
  48. package/empty-view/index.d.ts +29 -0
  49. package/empty-view/index.mjs +1 -1
  50. package/flex-scroll-area/index.d.ts +22 -0
  51. package/flex-scroll-area/index.mjs +1 -1
  52. package/form-advice/index.d.ts +9 -0
  53. package/form-advice/index.mjs +13 -12
  54. package/form-button/index.d.ts +114 -0
  55. package/form-button/index.mjs +36 -0
  56. package/form-cascader/index.d.ts +486 -0
  57. package/form-cascader/index.mjs +2 -0
  58. package/form-cell/index.d.ts +25 -0
  59. package/form-check-box-group/index.d.ts +295 -0
  60. package/form-check-box-group/index.mjs +1 -1
  61. package/form-checkbox/index.d.ts +273 -0
  62. package/form-checkbox/index.mjs +1 -1
  63. package/form-date-picker/index.d.ts +423 -0
  64. package/form-date-picker/index.mjs +1 -1
  65. package/form-holder/index.d.ts +166 -0
  66. package/form-holder/index.mjs +1 -1
  67. package/form-holder/style.css +1 -1
  68. package/form-image/index.d.ts +226 -0
  69. package/form-image/index.mjs +1 -1
  70. package/form-input/index.d.ts +389 -0
  71. package/form-input/index.mjs +1 -1
  72. package/form-input/style.css +1 -0
  73. package/form-input-cron-expression/index.d.ts +217 -0
  74. package/form-input-cron-expression/index.mjs +2 -0
  75. package/form-input-cron-expression/style.css +1 -0
  76. package/form-input-email/index.d.ts +363 -0
  77. package/form-input-email/index.mjs +1 -1
  78. package/form-input-id-card/index.d.ts +363 -0
  79. package/form-input-id-card/index.mjs +1 -1
  80. package/form-input-number/index.d.ts +327 -0
  81. package/form-input-number/index.mjs +1 -1
  82. package/form-input-phone-number/index.d.ts +363 -0
  83. package/form-input-phone-number/index.mjs +1 -1
  84. package/form-input-tag/index.d.ts +2 -0
  85. package/form-input-time/index.d.ts +2 -0
  86. package/form-item-config-provider/index.d.ts +22 -0
  87. package/form-item-config-provider/index.mjs +24 -0
  88. package/form-item-group/index.d.ts +94 -0
  89. package/form-item-group/index.mjs +2 -78
  90. package/form-item-group/style.css +1 -1
  91. package/form-item-x/index.d.ts +184 -0
  92. package/form-item-x/index.mjs +1 -1
  93. package/form-item-x/style.css +1 -0
  94. package/form-radio-group/index.d.ts +283 -0
  95. package/form-radio-group/index.mjs +1 -1
  96. package/form-rate/index.d.ts +321 -0
  97. package/form-rate/index.mjs +1 -1
  98. package/form-red-table/index.d.ts +21 -0
  99. package/form-red-table/index.mjs +27 -26
  100. package/form-row/index.d.ts +11 -0
  101. package/form-row/index.mjs +1 -1
  102. package/form-select/index.d.ts +542 -0
  103. package/form-select/index.mjs +1 -1
  104. package/form-slider/index.d.ts +350 -0
  105. package/form-slider/index.mjs +1 -1
  106. package/form-switch/index.d.ts +339 -0
  107. package/form-switch/index.mjs +1 -1
  108. package/form-text/index.d.ts +229 -0
  109. package/form-text/index.mjs +1 -1
  110. package/form-view/index.d.ts +2 -0
  111. package/form-view/index.mjs +1 -1
  112. package/helper/dictionary.d.ts +15 -0
  113. package/helper/dictionary.mjs +97 -0
  114. package/hook/useDictionary.d.ts +60 -0
  115. package/hook/useDictionary.mjs +15 -0
  116. package/hook/useVisibilityChange.d.ts +4 -0
  117. package/hook/useVisibilityChange.mjs +14 -0
  118. package/iframe-window/index.d.ts +9 -0
  119. package/iframe-window/index.mjs +37 -0
  120. package/iframe-window/style.css +1 -0
  121. package/index.d.ts +51 -0
  122. package/index.mjs +51 -37
  123. package/month-calendar/index.d.ts +80 -0
  124. package/package.json +12 -7
  125. package/pageable-table/index.d.ts +436 -0
  126. package/pageable-table/index.mjs +2 -0
  127. package/pageable-table/style.css +1 -0
  128. package/resize-observer/index.d.ts +8 -0
  129. package/resize-observer/index.mjs +40 -0
  130. package/resize-observer/style.css +1 -0
  131. package/resolver/index.d.ts +9 -0
  132. package/resolver/index.mjs +29 -0
  133. package/table-column/index.d.ts +160 -0
  134. package/table-column/index.mjs +2 -0
  135. package/table-column/style.css +1 -0
  136. package/table-column-def/index.d.ts +85 -0
  137. package/table-column-def/index.mjs +11 -0
  138. package/table-column-filter/index.d.ts +11 -0
  139. package/table-column-filterable/index.d.ts +10 -0
  140. package/table-view/index.d.ts +2 -0
  141. package/table-view/index.mjs +1 -1
  142. package/toolbar/index.d.ts +129 -0
  143. package/toolbar/index.mjs +1 -8
  144. package/toolbar/style.css +1 -0
  145. package/toolbar-button/index.d.ts +77 -0
  146. package/toolbar-button/index.mjs +1 -8
  147. package/vue-cron/index.d.ts +191 -0
  148. package/vue-cron/index.mjs +2 -0
  149. package/vue-cron/style.css +1 -0
  150. package/web-types.json +1 -1
  151. package/x-input-tag/index.d.ts +2 -0
  152. package/x-input-tag/index.mjs +226 -0
  153. package/x-input-tag/style.css +1 -0
  154. package/year-calendar/index.d.ts +99 -0
  155. package/year-calendar/index.mjs +2 -0
  156. package/year-calendar/style.css +1 -0
  157. package/chunks/B4M_TFeR.mjs +0 -152
  158. package/chunks/B5BIQCcK.mjs +0 -149
  159. package/chunks/BHNKrW1j.mjs +0 -61
  160. package/chunks/BO9jWhBl.mjs +0 -46
  161. package/chunks/BZ8aOa78.mjs +0 -35
  162. package/chunks/Bsz7y4Xp.mjs +0 -73
  163. package/chunks/Bxj372sF.mjs +0 -53
  164. package/chunks/C33EmJN8.mjs +0 -32
  165. package/chunks/C6Li3-l7.mjs +0 -28
  166. package/chunks/CBcdalMX.mjs +0 -35
  167. package/chunks/CdRsyF0n.mjs +0 -43
  168. package/chunks/ClNahmiU.mjs +0 -23
  169. package/chunks/CstztYMu.mjs +0 -28
  170. package/chunks/DC9b53M6.mjs +0 -32
  171. package/chunks/DDVAgRED.mjs +0 -36
  172. package/chunks/DpJQABVD.mjs +0 -91
  173. package/chunks/ZsLNWI9x.mjs +0 -46
  174. package/chunks/jn_iQrVZ.mjs +0 -28
  175. package/constants.mjs +0 -4
  176. package/input/style.css +0 -1
@@ -0,0 +1,113 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ stop: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ prevent: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ text: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ message: StringConstructor;
15
+ confirmable: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ confirmText: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ confirmType: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ confirmTitle: StringConstructor;
28
+ loadable: BooleanConstructor;
29
+ loadingText: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tag: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
+ stop: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ prevent: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ text: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ message: StringConstructor;
51
+ confirmable: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ confirmText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ confirmType: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ confirmTitle: StringConstructor;
64
+ loadable: BooleanConstructor;
65
+ loadingText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ tag: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ }>> & Readonly<{}>, {
74
+ text: string;
75
+ stop: boolean;
76
+ prevent: boolean;
77
+ loadable: boolean;
78
+ loadingText: string;
79
+ confirmable: boolean;
80
+ confirmType: string;
81
+ confirmText: string;
82
+ tag: string;
83
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | {
84
+ props: {
85
+ type: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ size: StringConstructor;
90
+ icon: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ nativeType: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ loading: BooleanConstructor;
99
+ disabled: BooleanConstructor;
100
+ plain: BooleanConstructor;
101
+ autofocus: BooleanConstructor;
102
+ round: BooleanConstructor;
103
+ text: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ tag: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ };
112
+ }, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
113
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { t as e } from "../chunks/Bm5eiSmT.mjs";
2
+ //#region src/components/button/ConfirmButton.vue
3
+ var t = {
4
+ name: "ConfirmButton",
5
+ mixins: [e, { props: {
6
+ type: {
7
+ type: String,
8
+ default: "danger"
9
+ },
10
+ size: String,
11
+ icon: {
12
+ type: String,
13
+ default: ""
14
+ },
15
+ nativeType: {
16
+ type: String,
17
+ default: "button"
18
+ },
19
+ loading: Boolean,
20
+ disabled: Boolean,
21
+ plain: Boolean,
22
+ autofocus: Boolean,
23
+ round: Boolean,
24
+ text: {
25
+ type: String,
26
+ default: "删除"
27
+ },
28
+ tag: {
29
+ type: String,
30
+ default: "ElButton"
31
+ }
32
+ } }]
33
+ };
34
+ //#endregion
35
+ export { t as default };
@@ -0,0 +1,84 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ stop: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ prevent: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ text: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ message: StringConstructor;
15
+ confirmable: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ confirmText: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ confirmType: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ confirmTitle: StringConstructor;
28
+ loadable: BooleanConstructor;
29
+ loadingText: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ tag: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
+ stop: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ prevent: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ text: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ message: StringConstructor;
51
+ confirmable: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ confirmText: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ confirmType: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ confirmTitle: StringConstructor;
64
+ loadable: BooleanConstructor;
65
+ loadingText: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ tag: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ }>> & Readonly<{}>, {
74
+ text: string;
75
+ stop: boolean;
76
+ prevent: boolean;
77
+ loadable: boolean;
78
+ loadingText: string;
79
+ confirmable: boolean;
80
+ confirmType: string;
81
+ confirmText: string;
82
+ tag: string;
83
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
84
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { t as e } from "../chunks/Bm5eiSmT.mjs";
2
+ //#region src/components/button/Confirmable.vue
3
+ var t = {
4
+ name: "Confirmable",
5
+ mixins: [e]
6
+ };
7
+ //#endregion
8
+ export { t as default };
@@ -0,0 +1,42 @@
1
+ import { InjectionKey } from 'vue';
2
+ export declare const formHolderContextKey: InjectionKey<{
3
+ tableForm: boolean;
4
+ disabled: boolean;
5
+ enabledFields: string[];
6
+ requiredFields: string[];
7
+ enabledFieldsMap: Record<string, boolean | undefined>;
8
+ disabledFieldsMap: Record<string, boolean | undefined>;
9
+ requiredFieldsMap: Record<string, boolean | undefined>;
10
+ disabledFields: string[];
11
+ scrollIntoRequiredField: () => Promise<void> | any;
12
+ formRef: unknown;
13
+ validate: () => Promise<void> | any;
14
+ validateField: () => any;
15
+ resetFields: () => any;
16
+ scrollToField: () => any;
17
+ clearValidate: () => any;
18
+ getField: () => any;
19
+ setInitialValues: () => any;
20
+ getFields: () => any;
21
+ }>;
22
+ export declare const formItemGroupContextKey: InjectionKey<{
23
+ disabled: boolean;
24
+ enabled: boolean;
25
+ isDisabled: boolean;
26
+ size: string;
27
+ }>;
28
+ export declare const formItemConfigProviderContextKey: InjectionKey<{
29
+ reactive: boolean;
30
+ block: boolean;
31
+ wrapCol: boolean;
32
+ }>;
33
+ export declare const formViewContextKey: unique symbol;
34
+ export declare const formEntityContextKey: unique symbol;
35
+ export declare const formItemConfigContextKey: unique symbol;
36
+ export declare const flowContextKey: unique symbol;
37
+ export declare const toolbarContextKey: unique symbol;
38
+ export declare const tableViewContextKey: unique symbol;
39
+ export declare const pageableTableContextKey: unique symbol;
40
+ export declare const columnSizeContextKey: unique symbol;
41
+ export declare const columnsContextKey: unique symbol;
42
+ export declare const setColumnSizeContextKey: unique symbol;
@@ -0,0 +1,4 @@
1
+ //#region src/constants/index.ts
2
+ var e = Symbol("formHolder"), t = Symbol("formItemGroup"), n = Symbol("formItemConfigProvider"), r = Symbol("formView"), i = Symbol("formEntity"), a = Symbol("formItemConfig"), o = Symbol("flowContext"), s = Symbol("toolbar"), c = Symbol("tableView"), l = Symbol("pageableTable"), u = Symbol("columnSize"), d = Symbol("columns"), f = Symbol("setColumnSize");
3
+ //#endregion
4
+ export { u as columnSizeContextKey, d as columnsContextKey, o as flowContextKey, i as formEntityContextKey, e as formHolderContextKey, a as formItemConfigContextKey, n as formItemConfigProviderContextKey, t as formItemGroupContextKey, r as formViewContextKey, l as pageableTableContextKey, f as setColumnSizeContextKey, c as tableViewContextKey, s as toolbarContextKey };
@@ -0,0 +1,28 @@
1
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
+ row: ObjectConstructor;
3
+ column: ObjectConstructor;
4
+ dictType: StringConstructor;
5
+ options: ArrayConstructor;
6
+ treeDict: BooleanConstructor;
7
+ idAsValue: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ labelAsValue: BooleanConstructor;
12
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
13
+ row: ObjectConstructor;
14
+ column: ObjectConstructor;
15
+ dictType: StringConstructor;
16
+ options: ArrayConstructor;
17
+ treeDict: BooleanConstructor;
18
+ idAsValue: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ labelAsValue: BooleanConstructor;
23
+ }>> & Readonly<{}>, {
24
+ treeDict: boolean;
25
+ idAsValue: boolean;
26
+ labelAsValue: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export default _default;