@web-utils/form-ui 1.0.0-beta36 → 1.0.0-beta37

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 (75) hide show
  1. package/chunks/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
  2. package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
  3. package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
  4. package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
  5. package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
  6. package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
  7. package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
  8. package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
  9. package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
  10. package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
  11. package/chunks/{Buc52aVh.mjs → Byr79NWq.mjs} +11 -29
  12. package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
  13. package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
  14. package/chunks/CE8bze--.mjs +231 -0
  15. package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
  16. package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
  17. package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
  18. package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
  19. package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
  20. package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
  21. package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
  22. package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
  23. package/chunks/DjX-fB-E.mjs +35 -0
  24. package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
  25. package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
  26. package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
  27. package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
  28. package/editable-tree/index.d.ts +1 -1
  29. package/editable-tree/index.mjs +1 -1
  30. package/element-dialog/index.d.ts +1 -1
  31. package/element-dialog/index.mjs +1 -1
  32. package/form-cascader/index.d.ts +0 -14
  33. package/form-cascader/index.mjs +1 -1
  34. package/form-check-box-group/index.d.ts +0 -2
  35. package/form-check-box-group/index.mjs +1 -1
  36. package/form-checkbox/index.d.ts +36 -10
  37. package/form-checkbox/index.mjs +1 -1
  38. package/form-date-picker/index.mjs +1 -1
  39. package/form-holder/index.d.ts +2 -6
  40. package/form-holder/index.mjs +1 -1
  41. package/form-image/index.d.ts +2 -14
  42. package/form-image/index.mjs +1 -1
  43. package/form-input/index.d.ts +0 -24
  44. package/form-input/index.mjs +1 -1
  45. package/form-input-cron-expression/index.mjs +1 -1
  46. package/form-input-email/index.mjs +1 -1
  47. package/form-input-id-card/index.mjs +1 -1
  48. package/form-input-number/index.d.ts +0 -6
  49. package/form-input-number/index.mjs +1 -1
  50. package/form-input-phone-number/index.mjs +1 -1
  51. package/form-item-x/index.mjs +1 -1
  52. package/form-radio-group/index.d.ts +0 -2
  53. package/form-radio-group/index.mjs +1 -1
  54. package/form-rate/index.d.ts +0 -2
  55. package/form-rate/index.mjs +1 -1
  56. package/form-select/index.d.ts +0 -14
  57. package/form-select/index.mjs +1 -1
  58. package/form-slider/index.d.ts +0 -4
  59. package/form-slider/index.mjs +1 -1
  60. package/form-switch/index.d.ts +0 -2
  61. package/form-switch/index.mjs +1 -1
  62. package/form-text/index.mjs +1 -1
  63. package/helper/dictionary.mjs +1 -1
  64. package/iframe-window/index.mjs +1 -1
  65. package/index.mjs +25 -25
  66. package/package.json +1 -1
  67. package/pageable-table/index.d.ts +0 -38
  68. package/pageable-table/index.mjs +1 -1
  69. package/table-column/index.mjs +1 -1
  70. package/table-view/index.mjs +6 -6
  71. package/toolbar/index.mjs +1 -1
  72. package/toolbar-button/index.mjs +1 -1
  73. package/web-types.json +1 -1
  74. package/chunks/BLRY0zkF.mjs +0 -51
  75. package/chunks/BvsmTC3G.mjs +0 -229
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { useDictionary as r } from "../hook/useDictionary.mjs";
4
4
  import { computed as i, createVNode as a, isVNode as o, mergeProps as s, useModel as c } from "vue";
5
5
  import { ElRadio as l, ElRadioButton as u, ElRadioGroup as d } from "element-plus/es";
@@ -83,29 +83,25 @@ var f = {
83
83
  disabled: !0,
84
84
  type: !0,
85
85
  options: !0
86
- }, m = ["change"], h = (e) => n[e] === void 0 && p[e] !== !0;
86
+ }, m = (e) => n[e] === void 0 && p[e] !== !0;
87
87
  //#endregion
88
88
  //#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
89
- function g(e) {
89
+ function h(e) {
90
90
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !o(e);
91
91
  }
92
92
  //#endregion
93
93
  //#region src/components/form/FormRadioGroup.vue
94
- var _ = {
94
+ var g = {
95
95
  name: "FormRadioGroup",
96
96
  inheritAttrs: !1,
97
97
  props: { ...f },
98
- emits: {
99
- ...t,
100
- change: null
101
- },
102
- setup(t, { emit: n, slots: o, attrs: f }) {
103
- let p = c(t, "modelValue"), { render: _, disabled: v, autoBind: y } = e(t, {
104
- emit: n,
105
- slots: o,
106
- attrs: f,
107
- events: m,
108
- predicate: h,
98
+ emits: { ...t },
99
+ setup(t, { slots: n, attrs: o, emit: f }) {
100
+ let p = c(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = e(t, {
101
+ emit: f,
102
+ slots: n,
103
+ attrs: o,
104
+ predicate: m,
109
105
  messagePrefix: "请选择"
110
106
  }), b = i(() => t.classic ? "label" : t.labelProp), x = i(() => t.classic ? "value" : t.valueProp), { dictItems: S } = r(t), C = i(() => t.dictType ? S.value : t.gender ? [{
111
107
  [b.value]: "男",
@@ -120,26 +116,26 @@ var _ = {
120
116
  [b.value]: "否",
121
117
  [x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
122
118
  }] : t.options);
123
- return () => _({ vNodes: a(d, s(y.value, {
119
+ return () => g({ vNodes: a(d, s(v.value, y.value, {
124
120
  modelValue: p.value,
125
121
  "onUpdate:modelValue": (e) => p.value = e,
126
- disabled: v.value
122
+ disabled: _.value
127
123
  }), {
128
- ...o,
129
- default: o.default || (() => {
124
+ ...n,
125
+ default: n.default || (() => {
130
126
  var e;
131
127
  return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? a(u, {
132
128
  key: e,
133
129
  value: e,
134
130
  disabled: r
135
- }, g(n) ? n : { default: () => [n] }) : a(l, {
131
+ }, h(n) ? n : { default: () => [n] }) : a(l, {
136
132
  key: e,
137
133
  value: e,
138
134
  disabled: r
139
- }, g(n) ? n : { default: () => [n] }));
135
+ }, h(n) ? n : { default: () => [n] }));
140
136
  })
141
137
  }) });
142
138
  }
143
139
  };
144
140
  //#endregion
145
- export { _ as t };
141
+ export { g as t };
@@ -1,4 +1,4 @@
1
- import { c as e, s as t } from "./BvsmTC3G.mjs";
1
+ import { c as e, s as t } from "./CE8bze--.mjs";
2
2
  //#region src/components/form/props/common.ts
3
3
  var n = {
4
4
  ...e,
@@ -1,5 +1,5 @@
1
- import { i as e, n as t } from "./BvsmTC3G.mjs";
2
- import { n } from "./D7hD-ppq.mjs";
1
+ import { i as e, n as t } from "./CE8bze--.mjs";
2
+ import { n } from "./CRrdgtwT.mjs";
3
3
  import { createVNode as r, mergeProps as i, useModel as a } from "vue";
4
4
  import { ElCheckbox as o } from "element-plus/es";
5
5
  //#region src/components/form/props/checkbox.ts
@@ -22,8 +22,14 @@ var s = {
22
22
  Boolean,
23
23
  Object
24
24
  ],
25
- trueValue: [String, Number],
26
- falseValue: [String, Number],
25
+ trueValue: {
26
+ type: [String, Number],
27
+ default: "1"
28
+ },
29
+ falseValue: {
30
+ type: [String, Number],
31
+ default: "0"
32
+ },
27
33
  border: {
28
34
  type: Boolean,
29
35
  default: !1
@@ -46,35 +52,37 @@ var s = {
46
52
  id: String,
47
53
  ariaControls: String,
48
54
  ariaLabel: String,
49
- trueLabel: [String, Number],
50
- falseLabel: [String, Number],
55
+ trueLabel: {
56
+ type: [String, Number],
57
+ default: "1"
58
+ },
59
+ falseLabel: {
60
+ type: [String, Number],
61
+ default: "0"
62
+ },
51
63
  controls: String
52
64
  }, c = {
53
65
  modelValue: !0,
54
66
  labelValue: !0
55
- }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
67
+ }, l = (e) => n[e] === void 0 && c[e] !== !0, u = {
56
68
  name: "FormCheckbox",
57
69
  inheritAttrs: !1,
58
70
  props: { ...s },
59
- emits: {
60
- ...t,
61
- change: null
62
- },
71
+ emits: { ...t },
63
72
  setup(t, { emit: n, slots: s, attrs: c }) {
64
- let d = a(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
73
+ let u = a(t, "modelValue"), { render: d, disabled: f, listeners: p, inputProps: m } = e(t, {
65
74
  emit: n,
66
75
  slots: s,
67
76
  attrs: c,
68
- events: l,
69
- predicate: u
77
+ predicate: l
70
78
  });
71
- return () => f({ vNodes: r(o, i(m.value, {
79
+ return () => d({ vNodes: r(o, i(m.value, p.value, {
72
80
  label: t.labelValue,
73
- modelValue: d.value,
74
- "onUpdate:modelValue": (e) => d.value = e,
75
- disabled: p.value
81
+ modelValue: u.value,
82
+ "onUpdate:modelValue": (e) => u.value = e,
83
+ disabled: f.value
76
84
  }), { default: s.default }) });
77
85
  }
78
86
  };
79
87
  //#endregion
80
- export { d as t };
88
+ export { u as t };
@@ -1,7 +1,7 @@
1
- import { o as e } from "./BX-cVxlK.mjs";
1
+ import { o as e } from "./cmuHpsX6.mjs";
2
2
  import { goBack as t, hasAuthority as n } from "../api/index.mjs";
3
3
  import { toolbarContextKey as r } from "../constants/index.mjs";
4
- import { t as i } from "./DQKi5eEl.mjs";
4
+ import { t as i } from "./XqRTtFfp.mjs";
5
5
  import { NOOP as a, capitalize as o } from "@web-utils/core";
6
6
  import { Comment as s, createVNode as c } from "vue";
7
7
  //#region src/components/toolbar/Toolbar.vue?vue&type=script&lang.jsx
@@ -1,8 +1,8 @@
1
- import { u as e } from "./BX-cVxlK.mjs";
2
- import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withModifiers as y } from "vue";
3
- import { ElDialog as b } from "element-plus/es";
1
+ import { u as e } from "./cmuHpsX6.mjs";
2
+ import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, toHandlers as h, unref as g, useModel as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
3
+ import { ElDialog as x } from "element-plus/es";
4
4
  //#region src/components/dialog/props.ts
5
- var x = {
5
+ var S = {
6
6
  modelValue: {
7
7
  type: Boolean,
8
8
  default: !1
@@ -94,79 +94,63 @@ var x = {
94
94
  embed: Boolean,
95
95
  showFullscreen: Boolean,
96
96
  showFullScreen: Boolean
97
- }, S = {
97
+ }, C = {
98
98
  embed: !0,
99
99
  height: !0,
100
100
  showFullscreen: !0,
101
101
  showFullScreen: !0,
102
102
  fullscreen: !0,
103
103
  showClose: !0
104
- }, C = [
105
- "open",
106
- "opened",
107
- "close",
108
- "closed",
109
- "open-auto-focus",
110
- "close-auto-focus"
111
- ], w = (e) => S[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
104
+ }, w = (e) => C[e] !== !0, T = { class: "dialog-title" }, E = { class: "dialog-header-buttons" }, D = {
112
105
  __name: "ElementDialog",
113
- props: /* @__PURE__ */ c({ ...x }, {
106
+ props: /* @__PURE__ */ c({ ...S }, {
114
107
  modelValue: {
115
108
  type: Boolean,
116
109
  default: !1
117
110
  },
118
111
  modelModifiers: {}
119
112
  }),
120
- emits: /* @__PURE__ */ c({
121
- open: null,
122
- opened: null,
123
- close: null,
124
- closed: null,
125
- "open-auto-focus": null,
126
- "close-auto-focus": null,
127
- "toggle-fullscreen": null
128
- }, ["update:modelValue"]),
129
- setup(c, { expose: x, emit: S }) {
130
- let D = g(c, "modelValue"), O = c, k = S, A = e(O, {
131
- emit: k,
132
- events: C,
133
- predicate: w
134
- }), j = _("dialog"), M = f(O.fullscreen), N = () => {
135
- M.value = !M.value, k("toggle-fullscreen", M.value);
136
- }, P = t(() => M.value ? "100%" : O.height), F = s(), I = () => {
137
- O.embed ? (F.parent.emit("update:visible", !1), F.parent.emit("update:modelValue", !1)) : j.value.handleClose();
113
+ emits: /* @__PURE__ */ c({ "toggle-fullscreen": null }, ["update:modelValue"]),
114
+ setup(c, { expose: S, emit: C }) {
115
+ let D = _(c, "modelValue"), O = c, k = C, { autoBindProps: A, listeners: j } = e(O, {
116
+ predicate: w,
117
+ removeOn: !0
118
+ }), M = v("dialog"), N = f(O.fullscreen), P = () => {
119
+ N.value = !N.value, k("toggle-fullscreen", N.value);
120
+ }, F = t(() => N.value ? "100%" : O.height), I = s(), L = () => {
121
+ O.embed ? (I.parent.emit("update:visible", !1), I.parent.emit("update:modelValue", !1)) : M.value.handleClose();
138
122
  };
139
- return x({
140
- close: I,
141
- hide: I
123
+ return S({
124
+ close: L,
125
+ hide: L
142
126
  }), (e, t) => {
143
- let s = b;
127
+ let s = x;
144
128
  return d(), n(s, l({
145
129
  ref: "dialog",
146
130
  modelValue: D.value,
147
131
  "onUpdate:modelValue": t[0] || (t[0] = (e) => D.value = e)
148
- }, h(A), {
132
+ }, g(A), {
149
133
  "show-close": !1,
150
- fullscreen: h(M),
151
- style: { "--dialog-body-height": h(P) }
152
- }), o({
153
- header: v(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
134
+ fullscreen: g(N),
135
+ style: { "--dialog-body-height": g(F) }
136
+ }, h(g(j))), o({
137
+ header: y(() => [r(" @slot 对话框标题的内容;会替换标题部分,但会移除关闭按钮 "), p(e.$slots, "header", {}, () => [a("div", T, m(e.title), 1), a("div", E, [e.showFullscreen || e.showFullScreen ? (d(), i("i", {
154
138
  key: 0,
155
139
  class: u(["dialog-header-button", {
156
140
  "el-icon-full-screen": !e.fullscreen,
157
141
  "el-icon-copy-document": e.fullscreen
158
142
  }]),
159
- onClick: y(N, ["stop"])
143
+ onClick: b(P, ["stop"])
160
144
  }, null, 2)) : r("v-if", !0), e.showClose ? (d(), i("i", {
161
145
  key: 1,
162
146
  class: "dialog-header-button el-icon-close",
163
- onClick: y(I, ["stop"])
147
+ onClick: b(L, ["stop"])
164
148
  })) : r("v-if", !0)])])]),
165
- default: v(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
149
+ default: y(() => [r(" @slot 对话框的默认内容 "), p(e.$slots, "default")]),
166
150
  _: 2
167
151
  }, [e.$slots.footer ? {
168
152
  name: "footer",
169
- fn: v(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: I })]),
153
+ fn: y(() => [r(" @slot Dialog 按钮操作区的内容 "), p(e.$slots, "footer", { close: L })]),
170
154
  key: "0"
171
155
  } : void 0]), 1040, [
172
156
  "modelValue",