@web-utils/form-ui 1.0.0-beta101 → 1.0.0-beta103

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 (144) hide show
  1. package/base.css +1 -1
  2. package/basic-container/style.css +1 -1
  3. package/chunks/{CCwW9An-.mjs → 05cBonkg.mjs} +8 -8
  4. package/chunks/{BABpWSRr2.mjs → 2ppSIFnP2.mjs} +2 -2
  5. package/chunks/{CtwvKHKB.mjs → 42M5JpU3.mjs} +1 -1
  6. package/chunks/{T_Uvq_1c.mjs → 6jiZKUQH.mjs} +2 -2
  7. package/chunks/{DTeHffqJ.mjs → B3NKBppp.mjs} +44 -43
  8. package/chunks/{CjXRUqu72.mjs → BBYWucM92.mjs} +1 -1
  9. package/chunks/{BcDeI1ZH.mjs → BC-9gTho.mjs} +2 -2
  10. package/chunks/{C23Qaggp.mjs → BTwJcMAx.mjs} +1 -1
  11. package/chunks/{DIsjIzhf.mjs → BYVBQJL5.mjs} +1 -1
  12. package/chunks/{DQVIughS.mjs → Bi1CCXtG.mjs} +2 -2
  13. package/chunks/BjHwvNqs2.mjs +108 -0
  14. package/chunks/{CA_-hYlN.mjs → C0DbgnGL.mjs} +1 -1
  15. package/chunks/{CCkHwxt7.mjs → C7mOqnUa.mjs} +10 -10
  16. package/chunks/{8zvAoiTw2.mjs → CHR5LzdL2.mjs} +18 -18
  17. package/chunks/{C9IM5k4q.mjs → CONymKa-.mjs} +7 -7
  18. package/chunks/{CcW1bkgt.mjs → CPovuVcI.mjs} +2 -2
  19. package/chunks/{B7hlyq1n2.mjs → CSpJhypz2.mjs} +1 -1
  20. package/chunks/{CoQf1XX62.mjs → CVmPV_-T2.mjs} +1 -1
  21. package/chunks/{wkrkYyvs.mjs → CW1nopZH.mjs} +1 -1
  22. package/chunks/{D0E2XxLJ2.mjs → C_dyLuL32.mjs} +1 -1
  23. package/chunks/{DzfHfYvS2.mjs → CflIHq0r2.mjs} +2 -2
  24. package/chunks/{BanS-yUY2.mjs → CjD2N_2i2.mjs} +1 -1
  25. package/chunks/{CP0tXU4m.mjs → Ckf1Zcdp.mjs} +2 -2
  26. package/chunks/{DN2JYsQQ2.mjs → CsOtjwy72.mjs} +1 -1
  27. package/chunks/{3Zmtl1F82.mjs → D-flGan22.mjs} +1 -1
  28. package/chunks/{NYkLWtyw2.mjs → D2d-ooa12.mjs} +2 -2
  29. package/chunks/{D8C17D2k.mjs → D4w8N1yE.mjs} +7 -7
  30. package/chunks/{BUKFXHGg.mjs → D9pQE4ht.mjs} +1 -1
  31. package/chunks/{CikaZjdo2.mjs → DA21LvP52.mjs} +1 -1
  32. package/chunks/{G5TPeMtF2.mjs → DToOCCc02.mjs} +1 -1
  33. package/chunks/{CtwS0oB3.mjs → D_ZM34Wa.mjs} +3 -3
  34. package/chunks/{BdrgibgS.mjs → DeDwBJo9.mjs} +2 -2
  35. package/chunks/{dgRz6V6p2.mjs → DgVOdSzC2.mjs} +2 -2
  36. package/chunks/{Bglnw37E.mjs → DnIxbKwv.mjs} +2 -2
  37. package/chunks/{CPGrGc4W.mjs → I0MicfAz.mjs} +2 -2
  38. package/chunks/{D7kTwnJK2.mjs → LLme9CX42.mjs} +2 -2
  39. package/chunks/{DEvsHOVL2.mjs → QLk8HdjZ2.mjs} +19 -19
  40. package/chunks/{BqgrLeBK2.mjs → TTSXblQW2.mjs} +1 -1
  41. package/chunks/{sl7eKGeX.mjs → Vvh5Eeyc.mjs} +3 -3
  42. package/chunks/{C1SZzAUY2.mjs → WxKn7nmS2.mjs} +15 -15
  43. package/chunks/{mTmx7TI02.mjs → ip3X8oBz2.mjs} +3 -3
  44. package/chunks/{CHpa1noK.mjs → oWyVoFSm.mjs} +4 -4
  45. package/chunks/{Dziwe2852.mjs → s-rHlCFG2.mjs} +1 -1
  46. package/chunks/{CKuwy9g12.mjs → uFnMFFcl2.mjs} +1 -1
  47. package/chunks/{CYjby4eo.mjs → vCOhFr2x.mjs} +1 -1
  48. package/chunks/{BwPq7wF-.mjs → z4R8t_Xx.mjs} +2 -2
  49. package/data-table-picker/index.mjs +2 -2
  50. package/data-tabs/index.mjs +1 -1
  51. package/dialog-form/index.mjs +3 -3
  52. package/dict-render/index.mjs +1 -1
  53. package/editable-tree/index.mjs +1 -1
  54. package/flex-box/index.mjs +1 -1
  55. package/flex-column/index.mjs +1 -1
  56. package/flex-item/index.mjs +1 -1
  57. package/flex-row/index.mjs +1 -1
  58. package/flow-designer/index.mjs +1 -1
  59. package/form-cascader/index.mjs +1 -1
  60. package/form-checkbox/index.mjs +1 -1
  61. package/form-checkbox-group/index.mjs +1 -1
  62. package/form-date-picker/index.d.ts +4 -8
  63. package/form-date-picker/index.mjs +1 -1
  64. package/form-image/index.mjs +1 -1
  65. package/form-input/index.mjs +1 -1
  66. package/form-input-cron-expression/index.mjs +1 -1
  67. package/form-input-email/index.mjs +1 -1
  68. package/form-input-id-card/index.mjs +1 -1
  69. package/form-input-number/index.mjs +1 -1
  70. package/form-input-phone-number/index.mjs +1 -1
  71. package/form-input-tag/index.mjs +1 -1
  72. package/form-input-time/index.mjs +1 -1
  73. package/form-item/index.mjs +1 -1
  74. package/form-radio-group/index.mjs +1 -1
  75. package/form-rate/index.mjs +1 -1
  76. package/form-select/index.mjs +1 -1
  77. package/form-slider/index.mjs +1 -1
  78. package/form-switch/index.mjs +1 -1
  79. package/form-table/index.mjs +1 -1
  80. package/form-table-plus/index.mjs +1 -1
  81. package/form-text/index.mjs +1 -1
  82. package/form-textarea/index.mjs +1 -1
  83. package/form-time-select/index.mjs +1 -1
  84. package/form-tree-select/index.mjs +1 -1
  85. package/form-tree-select-multiple/index.mjs +1 -1
  86. package/form-view/index.mjs +1 -1
  87. package/fy-array/index.mjs +2 -2
  88. package/fy-cascader/index.mjs +1 -1
  89. package/fy-checkbox/index.mjs +1 -1
  90. package/fy-curd/index.mjs +1 -1
  91. package/fy-date/index.mjs +1 -1
  92. package/fy-dynamic/index.mjs +1 -1
  93. package/fy-empty/index.mjs +1 -1
  94. package/fy-form/index.mjs +1 -1
  95. package/fy-input/index.mjs +2 -2
  96. package/fy-input-color/index.mjs +1 -1
  97. package/fy-input-icon/index.mjs +1 -1
  98. package/fy-input-map/index.mjs +2 -2
  99. package/fy-input-number/index.mjs +1 -1
  100. package/fy-input-table/index.mjs +3 -3
  101. package/fy-input-tree/index.mjs +1 -1
  102. package/fy-radio/index.mjs +1 -1
  103. package/fy-rate/index.mjs +1 -1
  104. package/fy-select/index.mjs +1 -1
  105. package/fy-slider/index.mjs +2 -2
  106. package/fy-switch/index.mjs +1 -1
  107. package/fy-time/index.mjs +1 -1
  108. package/fy-title/index.mjs +1 -1
  109. package/fy-tree/index.mjs +3 -3
  110. package/fy-u-editor/index.mjs +1 -1
  111. package/fy-upload/index.mjs +1 -1
  112. package/helper/input.mjs +1 -1
  113. package/image-cropper/index.mjs +1 -1
  114. package/index.css +1 -1
  115. package/index.mjs +80 -80
  116. package/nav-bar/index.mjs +1 -1
  117. package/package.json +3 -3
  118. package/pageable-table/index.mjs +1 -1
  119. package/props/date.d.ts +1 -3
  120. package/props/date.mjs +0 -4
  121. package/sub-table/index.mjs +1 -1
  122. package/sub-table-plus/index.mjs +1 -1
  123. package/swiper/index.mjs +1 -1
  124. package/table-column/index.mjs +1 -1
  125. package/table-column-def/index.mjs +1 -1
  126. package/table-view/index.mjs +7 -7
  127. package/tag-render/index.mjs +1 -1
  128. package/toolbar/index.mjs +1 -1
  129. package/toolbar-button/index.mjs +1 -1
  130. package/vue-cron/index.mjs +1 -1
  131. package/web-types.json +1 -1
  132. package/x-input-tag/index.mjs +1 -1
  133. package/chunks/CmynK-Bt2.mjs +0 -108
  134. package/chunks/{CsiD_AYs.mjs → CBHGpbDK.mjs} +0 -0
  135. package/chunks/{C_QfuxeQ.mjs → CCjn2JCp.mjs} +0 -0
  136. package/chunks/{BH2LN3pm.mjs → COpinz-g.mjs} +0 -0
  137. package/chunks/{BTDWXFoi.mjs → C_fp2mPJ.mjs} +1 -1
  138. package/chunks/{fJ2ezOVH.mjs → CcY69nzE.mjs} +1 -1
  139. package/chunks/{_7MDfW_y.mjs → Cmqxxo7L.mjs} +0 -0
  140. package/chunks/{BWNDImpw.mjs → CrlSxRr5.mjs} +1 -1
  141. /package/chunks/{tzjUpVIj.mjs → DCyWgXtl.mjs} +0 -0
  142. /package/chunks/{Cun90-R7.mjs → DJe2Reym.mjs} +0 -0
  143. /package/chunks/{B7DACryk.mjs → DOLQ28wD.mjs} +0 -0
  144. /package/chunks/{BrZxnDdM.mjs → SO3lCLOQ.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "../chunks/B1MSrc6f.mjs";
2
- import { t } from "../chunks/DTeHffqJ.mjs";
2
+ import { t } from "../chunks/B3NKBppp.mjs";
3
3
  import { ElInput as n, ElMessage as r, ElPopover as i, ElTag as a, formContextKey as o, formItemContextKey as s } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
5
5
  import "element-plus/es/components/input/style/css";
@@ -1,108 +0,0 @@
1
- import { useDictionary as e } from "../vue/hooks/useDictionary.mjs";
2
- import { n as t, o as n } from "./_7MDfW_y.mjs";
3
- import { allProps as r, predicate as i } from "../props/select.mjs";
4
- import { ElOption as a, ElSelect as o } from "element-plus/es";
5
- import "element-plus/es/components/base/style/css";
6
- import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
7
- import { isNumber as f, isPlainObject as p, isString as m } from "@web-utils/core";
8
- import "element-plus/es/components/select/style/css";
9
- import "element-plus/es/components/option/style/css";
10
- //#endregion
11
- //#region src/components/form/FormSelect.vue
12
- var h = {
13
- name: "FormSelect",
14
- inheritAttrs: !1,
15
- props: { ...r },
16
- emits: { ...t },
17
- setup(t, { emit: r, slots: h, attrs: g }) {
18
- let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = n(t, {
19
- emit: r,
20
- slots: h,
21
- attrs: g,
22
- predicate: i,
23
- messagePrefix: "请选择"
24
- }), C = u(null), w = u(!1);
25
- d(() => {
26
- if (t.multiple && t.multipleStringMode) {
27
- var e;
28
- C.value = (e = t.modelValue) == null ? void 0 : e.split(",").filter((e) => e);
29
- } else C.value = t.modelValue;
30
- });
31
- let T = (e) => {
32
- if (t.multiple && t.multipleStringMode ? _(e.join(t.multipleStringSeparator)) : _(e), t.emitLabel) {
33
- let n = O.value.find((n) => n[t.props.value] === e), i = n == null ? void 0 : n[t.props.label];
34
- i !== t.optionLabel && r("update:optionLabel", i);
35
- }
36
- }, { dictItems: E } = e(t), D = u([]), O = s(() => {
37
- if (t.dictType) return E.value;
38
- if (t.remote) return D.value;
39
- if (t.gender) return [{
40
- [t.props.label]: "男",
41
- [t.props.value]: t.chinese ? "男" : t.typing ? 1 : "1"
42
- }, {
43
- [t.props.label]: "女",
44
- [t.props.value]: t.chinese ? "女" : t.typing ? 2 : "2"
45
- }];
46
- if (t.confirm) return [{
47
- [t.props.label]: "是",
48
- [t.props.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
49
- }, {
50
- [t.props.label]: "否",
51
- [t.props.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
52
- }];
53
- if (t.all) return [{
54
- [t.props.value]: "",
55
- [t.props.label]: "全部"
56
- }, ...t.options];
57
- if (t.start && t.end) return Array(t.end - t.start + 1).fill(1).map((e, n) => ({
58
- [t.props.label]: t.start + n,
59
- [t.props.value]: t.start + n
60
- }));
61
- if (t.year) {
62
- let e = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
63
- f(t.year) && (r = t.year);
64
- for (let i = -r; i <= r; i++) {
65
- let r = e + i;
66
- n.push({
67
- [t.props.label]: r,
68
- [t.props.value]: r
69
- });
70
- }
71
- return n;
72
- }
73
- return t.options ? t.options.map((e) => (e[t.props.value] = e[t.props.value] ?? e[t.props.label], e)) : [];
74
- }), k = async (e) => {
75
- try {
76
- var n;
77
- w.value = !0;
78
- let r = await t.remoteMethod(e, t.prop);
79
- ((n = r.data.data) == null ? void 0 : n.length) >= 0 ? m(r.data.data[0]) ? D.value = r.data.data.map((e) => ({
80
- [t.props.value]: e,
81
- [t.props.label]: e
82
- })) : p(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
83
- } catch {}
84
- w.value = !1;
85
- };
86
- return d(() => {
87
- t.remote && k();
88
- }), () => v({ vNodes: c(o, l(x.value, S.value, {
89
- offset: t.dropDownOffset,
90
- "model-value": C.value,
91
- "onUpdate:modelValue": T,
92
- disabled: b.value,
93
- placeholder: y.value
94
- }), {
95
- ...h,
96
- default: h.default || (() => {
97
- var e;
98
- return (e = O.value) == null ? void 0 : e.map(({ [t.props.value]: e, [t.props.label]: n }) => c(a, {
99
- key: e,
100
- label: n,
101
- value: e
102
- }, null));
103
- })
104
- }) });
105
- }
106
- };
107
- //#endregion
108
- export { h as t };
File without changes
File without changes
File without changes
@@ -3,8 +3,8 @@ import { ElForm as t, ElFormItem as n, ElInput as r, ElOption as i, ElSelect as
3
3
  import "element-plus/es/components/base/style/css";
4
4
  import "element-plus/es/components/input/style/css";
5
5
  import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createVNode as u, openBlock as d, withCtx as f, withModifiers as p } from "vue";
6
- import "element-plus/es/components/form/style/css";
7
6
  import "element-plus/es/components/form-item/style/css";
7
+ import "element-plus/es/components/form/style/css";
8
8
  import "element-plus/es/components/select/style/css";
9
9
  import "element-plus/es/components/option/style/css";
10
10
  //#region src/components/bpmn-process-designer/components/penal/flow-condition/FlowCondition.vue
@@ -5,8 +5,8 @@ import "element-plus/es/components/base/style/css";
5
5
  import "element-plus/es/components/input/style/css";
6
6
  import { Fragment as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createVNode as p, openBlock as m, renderList as h, withCtx as g, withModifiers as _ } from "vue";
7
7
  import { fastClone as v } from "@web-utils/core";
8
- import "element-plus/es/components/form/style/css";
9
8
  import "element-plus/es/components/form-item/style/css";
9
+ import "element-plus/es/components/form/style/css";
10
10
  import "element-plus/es/components/select/style/css";
11
11
  import "element-plus/es/components/option/style/css";
12
12
  import "element-plus/es/components/switch/style/css";
File without changes
@@ -4,9 +4,9 @@ import "element-plus/es/components/base/style/css";
4
4
  import "element-plus/es/components/input/style/css";
5
5
  import { Fragment as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, openBlock as h, withCtx as g, withModifiers as _ } from "vue";
6
6
  import "element-plus/es/components/tooltip/style/css";
7
+ import "element-plus/es/components/form-item/style/css";
7
8
  import "element-plus/es/components/checkbox/style/css";
8
9
  import "element-plus/es/components/form/style/css";
9
- import "element-plus/es/components/form-item/style/css";
10
10
  import "element-plus/es/components/select/style/css";
11
11
  import "element-plus/es/components/option/style/css";
12
12
  import "../style/element-multi-instance.css";
File without changes
File without changes
File without changes
File without changes