@web-utils/form-ui 1.0.0-beta23 → 1.0.0-beta25

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 (103) hide show
  1. package/api/index.d.ts +1 -1
  2. package/api/index.mjs +1 -1
  3. package/awesome-button/index.mjs +2 -49
  4. package/base.css +1 -1
  5. package/chunks/0nMB8MZ0.mjs +174 -0
  6. package/chunks/{DBL23JPA.mjs → 1UkAGJ03.mjs} +3 -3
  7. package/chunks/{CwjQbaXJ.mjs → 4G13cKOo.mjs} +3 -3
  8. package/chunks/{DbBdLuvW.mjs → B2PYq5pM.mjs} +3 -3
  9. package/chunks/{B-Y8YSMp.mjs → B8rugxZ0.mjs} +3 -3
  10. package/chunks/{CH7m94ce.mjs → BM8sdTDJ.mjs} +3 -3
  11. package/chunks/{INlqdzng.mjs → BYNkR7-j.mjs} +3 -3
  12. package/chunks/{BwuQhCIf.mjs → BdD1Rt-7.mjs} +6 -7
  13. package/chunks/{BzMaCcUd.mjs → BdHFJ9cK.mjs} +1 -1
  14. package/chunks/{CJv6Sn_v.mjs → BowPVbJ7.mjs} +3 -3
  15. package/chunks/{ENc67_lM.mjs → CAQ6-w1f.mjs} +4 -4
  16. package/chunks/{DP1YukLf.mjs → CjeZ3uKX.mjs} +7 -7
  17. package/chunks/{Cxvr9Z1r.mjs → Ckur6g6N.mjs} +1 -1
  18. package/chunks/CnVy7Ngb.mjs +474 -0
  19. package/chunks/{tIzKZ11j.mjs → CtK74qPE.mjs} +6 -7
  20. package/chunks/DDc6e1uO.mjs +62 -0
  21. package/chunks/{Bw1QPGNc.mjs → DJjmr9R3.mjs} +3 -3
  22. package/chunks/{3VI058Yv.mjs → DdZcziWU.mjs} +4 -4
  23. package/chunks/{DpH8CVbN.mjs → DgL5zblr.mjs} +17 -17
  24. package/chunks/{BcMgzZyZ.mjs → Dl5QgkX_.mjs} +6 -7
  25. package/chunks/{Cp9FIjnh.mjs → DnWeeCd1.mjs} +2 -2
  26. package/chunks/{rkRnszQn.mjs → MVhpewST.mjs} +2 -2
  27. package/chunks/{C2RhdxHB.mjs → U08ZaDiY.mjs} +199 -206
  28. package/chunks/{BIm5rmJm.mjs → Uhf6MK26.mjs} +2 -2
  29. package/chunks/{dDAvzX4k.mjs → XKBWlv3M.mjs} +3 -3
  30. package/chunks/iIcGTQmB.mjs +50 -0
  31. package/chunks/{y8u4cMEF.mjs → o7O5_GIP.mjs} +4 -4
  32. package/confirm-button/index.d.ts +82 -40
  33. package/confirm-button/index.mjs +1 -1
  34. package/confirmable/index.d.ts +83 -41
  35. package/confirmable/index.mjs +1 -1
  36. package/element-dialog/index.d.ts +295 -17
  37. package/element-dialog/index.mjs +1 -1
  38. package/empty-view/index.mjs +1 -1
  39. package/form-advice/index.mjs +1 -1
  40. package/form-button/index.d.ts +82 -40
  41. package/form-cascader/index.d.ts +11 -9
  42. package/form-cascader/index.mjs +1 -1
  43. package/form-check-box-group/index.d.ts +10 -8
  44. package/form-check-box-group/index.mjs +1 -1
  45. package/form-checkbox/index.d.ts +9 -7
  46. package/form-checkbox/index.mjs +1 -1
  47. package/form-date-picker/index.d.ts +11 -9
  48. package/form-date-picker/index.mjs +1 -1
  49. package/form-holder/index.d.ts +3 -3
  50. package/form-holder/index.mjs +1 -1
  51. package/form-image/index.d.ts +8 -6
  52. package/form-image/index.mjs +1 -1
  53. package/form-input/index.d.ts +13 -11
  54. package/form-input/index.mjs +1 -1
  55. package/form-input-cron-expression/index.d.ts +8 -6
  56. package/form-input-cron-expression/index.mjs +1 -1
  57. package/form-input-email/index.d.ts +9 -9
  58. package/form-input-email/index.mjs +1 -1
  59. package/form-input-id-card/index.d.ts +9 -9
  60. package/form-input-id-card/index.mjs +1 -1
  61. package/form-input-number/index.d.ts +10 -8
  62. package/form-input-number/index.mjs +1 -1
  63. package/form-input-phone-number/index.d.ts +9 -9
  64. package/form-input-phone-number/index.mjs +1 -1
  65. package/form-item-group/index.d.ts +1 -1
  66. package/form-item-x/index.d.ts +5 -5
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +9 -7
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.d.ts +9 -7
  71. package/form-rate/index.mjs +1 -1
  72. package/form-red-table/index.mjs +1 -1
  73. package/form-select/index.d.ts +10 -8
  74. package/form-select/index.mjs +1 -1
  75. package/form-slider/index.d.ts +9 -7
  76. package/form-slider/index.mjs +1 -1
  77. package/form-switch/index.d.ts +9 -7
  78. package/form-switch/index.mjs +1 -1
  79. package/form-text/index.d.ts +8 -6
  80. package/form-text/index.mjs +1 -1
  81. package/form-view/index.mjs +1 -1
  82. package/helper/dictionary.mjs +1 -1
  83. package/iframe-window/index.mjs +1 -1
  84. package/index.d.ts +2 -2
  85. package/index.mjs +30 -30
  86. package/month-calendar/index.d.ts +1 -1
  87. package/package.json +2 -1
  88. package/table-view/index.mjs +1 -1
  89. package/toolbar/index.mjs +1 -1
  90. package/toolbar-button/index.d.ts +2 -2
  91. package/vue-cron/index.mjs +1 -1
  92. package/web-types.json +13047 -1
  93. package/x-input-tag/index.d.ts +2 -0
  94. package/x-input-tag/index.mjs +226 -0
  95. package/x-input-tag/style.css +1 -0
  96. package/year-calendar/index.d.ts +1 -1
  97. package/year-calendar/index.mjs +2 -174
  98. package/year-calendar/style.css +1 -1
  99. package/chunks/Cnmu4eY-.mjs +0 -106
  100. package/chunks/CozfnlhM.mjs +0 -73
  101. package/chunks/D4Pknq4r.mjs +0 -53
  102. package/month-calendar/index.mjs +0 -312
  103. package/month-calendar/style.css +0 -1
@@ -1,9 +1,9 @@
1
- import { t as e } from "./BzMaCcUd.mjs";
1
+ import { t as e } from "./BdHFJ9cK.mjs";
2
2
  import { formHolderContextKey as t, formItemConfigProviderContextKey as n, formItemGroupContextKey as r } from "../constants/index.mjs";
3
3
  import { computed as i, createVNode as a, h as o, inject as s, mergeProps as c, nextTick as l, unref as u, useTemplateRef as d } from "vue";
4
4
  import { ElCol as f, rowContextKey as p } from "element-plus";
5
5
  import { ElCol as m, ElFormItem as h, ElTooltip as g } from "element-plus/es";
6
- //#region src/components/form/props/form-item.js
6
+ //#region src/components/form/props/form-item.ts
7
7
  var _ = {
8
8
  prop: [String, Array],
9
9
  label: String,
@@ -1,9 +1,9 @@
1
- import { i as e, n as t } from "./BIm5rmJm.mjs";
2
- import { n, t as r } from "./Cp9FIjnh.mjs";
1
+ import { i as e, n as t } from "./Uhf6MK26.mjs";
2
+ import { n, t as r } from "./DnWeeCd1.mjs";
3
3
  import { isString as i } from "@web-utils/core";
4
4
  import { computed as a, createVNode as o, mergeProps as s } from "vue";
5
5
  import { ElInputNumber as c } from "element-plus/es";
6
- //#region src/components/form/props/input-number.js
6
+ //#region src/components/form/props/input-number.ts
7
7
  var l = {
8
8
  ...n,
9
9
  ...r,
@@ -0,0 +1,50 @@
1
+ import { isFunction as e } from "@web-utils/core";
2
+ import { h as t, ref as n, resolveComponent as r } from "vue";
3
+ //#endregion
4
+ //#region src/components/button/AwesomeButton.vue
5
+ var i = {
6
+ name: "AwesomeButton",
7
+ inheritAttrs: !1,
8
+ props: {
9
+ type: {
10
+ type: String,
11
+ default: "primary"
12
+ },
13
+ size: String,
14
+ icon: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ nativeType: {
19
+ type: String,
20
+ default: "button"
21
+ },
22
+ loading: Boolean,
23
+ disabled: Boolean,
24
+ plain: Boolean,
25
+ autofocus: Boolean,
26
+ round: Boolean,
27
+ text: {
28
+ type: String,
29
+ default: ""
30
+ }
31
+ },
32
+ setup(i, { attrs: a, slots: o }) {
33
+ let s = r("ElButton"), { text: c, ...l } = i, { onClick: u, ...d } = a, f = n(!1), p = async (t) => {
34
+ if (f.value = !0, e(u)) try {
35
+ await u(t);
36
+ } catch (e) {
37
+ console.error(e);
38
+ }
39
+ f.value = !1;
40
+ };
41
+ return () => t(s, {
42
+ ...d,
43
+ ...l,
44
+ disabled: f.value,
45
+ onClick: p
46
+ }, { default: o.default || (() => c) });
47
+ }
48
+ };
49
+ //#endregion
50
+ export { i as t };
@@ -1,11 +1,11 @@
1
- import { i as e, n as t } from "./BIm5rmJm.mjs";
2
- import { n, t as r } from "./Cp9FIjnh.mjs";
1
+ import { i as e, n as t } from "./Uhf6MK26.mjs";
2
+ import { n, t as r } from "./DnWeeCd1.mjs";
3
3
  import { useDictionary as i } from "../hook/useDictionary.mjs";
4
4
  import { findTreeChildren as a, isArray as o, isString as s, setParent as c } from "@web-utils/core";
5
5
  import { computed as l, createVNode as u, mergeProps as d } from "vue";
6
6
  import { cloneDeep as f } from "@web-utils/integrations/lodash";
7
7
  import { ElCascader as p } from "element-plus/es";
8
- //#region src/components/form/props/cascader.js
8
+ //#region src/components/form/props/cascader.ts
9
9
  var m = {
10
10
  ...n,
11
11
  ...r,
@@ -42,7 +42,7 @@ var m = {
42
42
  maxCollapseTagsTooltipHeight: [String, Number],
43
43
  separator: {
44
44
  type: String,
45
- default: " / "
45
+ default: "/"
46
46
  },
47
47
  filterable: {
48
48
  type: Boolean,
@@ -1,44 +1,86 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, {
2
- inheritAttrs: boolean;
3
- props: {
4
- stop: {
5
- type: BooleanConstructor;
6
- default: boolean;
7
- };
8
- prevent: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- text: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- message: StringConstructor;
17
- confirmable: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- confirmText: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- confirmType: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- confirmTitle: StringConstructor;
30
- loadable: BooleanConstructor;
31
- loadingText: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- tag: {
36
- type: StringConstructor;
37
- default: string;
38
- };
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;
39
72
  };
40
- render(): any;
41
- } | {
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> | {
42
84
  props: {
43
85
  type: {
44
86
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/DpH8CVbN.mjs";
1
+ import { t as e } from "../chunks/DgL5zblr.mjs";
2
2
  //#region src/components/button/ConfirmButton.vue
3
3
  var t = {
4
4
  name: "ConfirmButton",
@@ -1,42 +1,84 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, {
2
- inheritAttrs: boolean;
3
- props: {
4
- stop: {
5
- type: BooleanConstructor;
6
- default: boolean;
7
- };
8
- prevent: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- text: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- message: StringConstructor;
17
- confirmable: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
- confirmText: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- confirmType: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- confirmTitle: StringConstructor;
30
- loadable: BooleanConstructor;
31
- loadingText: {
32
- type: StringConstructor;
33
- default: string;
34
- };
35
- tag: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
- };
40
- render(): any;
41
- }, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
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>;
42
84
  export default _default;
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/DpH8CVbN.mjs";
1
+ import { t as e } from "../chunks/DgL5zblr.mjs";
2
2
  //#region src/components/button/Confirmable.vue
3
3
  var t = {
4
4
  name: "Confirmable",