@web-utils/component 5.0.0-beta02 → 5.0.0-beta03

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 (212) hide show
  1. package/awesome-button/index.mjs +24 -30
  2. package/{utils/style.css → base.css} +1 -1
  3. package/chat/index.mjs +3 -12
  4. package/chunks/{EditableTree.D0ByhRTi.mjs → EditableTree.CV8b95tW.mjs} +11 -20
  5. package/chunks/{ElementBaseInfo.B3pY8TkD.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
  6. package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
  7. package/chunks/{ElementForm.D_lXbe--.mjs → ElementForm.C7yebHWH.mjs} +12 -39
  8. package/chunks/{ElementListeners.Cufwd4bp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
  9. package/chunks/{ElementMultiInstance.BhY8NY2z.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
  10. package/chunks/{ElementOtherConfig.DX1ZJ9w2.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
  11. package/chunks/{ElementProperties.BRafADXp.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
  12. package/chunks/{ElementTaskConfig.B6pqRir_.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
  13. package/chunks/{FlowCondition.Dvwji23j.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
  14. package/chunks/{FlowDesigner.LL-vXDIE.mjs → FlowDesigner.DH1ypcUw.mjs} +15 -15
  15. package/chunks/{FormCascader.DMY3uNc8.mjs → FormCascader.BXL8lKww.mjs} +348 -346
  16. package/chunks/{FormInputTime.BC4FfWwY.mjs → FormInputTime.DzTPiDNh.mjs} +243 -242
  17. package/chunks/{FormItem.BSXI2cZU.mjs → FormItem.B8iPLduv.mjs} +1 -1
  18. package/chunks/{FormItemGroup.D2Htta7J.mjs → FormItemGroup.CCGqEapT.mjs} +27 -22
  19. package/chunks/{FormSelect.CY0K-izg.mjs → FormSelect.t0jbTL_K.mjs} +396 -394
  20. package/chunks/{FormSwitch.DLqFXaFF.mjs → FormSwitch.uoFQ-xp_.mjs} +26 -25
  21. package/chunks/{FormTemp.PJFfNRls.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
  22. package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
  23. package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.CgyGhetD.mjs} +15 -13
  24. package/chunks/{FyFormDesign.BCxVyiWY.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
  25. package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
  26. package/chunks/{ImagePreview.ByEWJYdu.mjs → ImagePreview.DDFrZgo5.mjs} +97 -87
  27. package/chunks/{PageableTable.Ba3XSbZ5.mjs → PageableTable.DR-REJN5.mjs} +5 -6
  28. package/chunks/{SignalAndMessage.DYhKWs3X.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
  29. package/chunks/{TableColumn.72HOXQkb.mjs → TableColumn.Cq9Bvevm.mjs} +2 -2
  30. package/chunks/{TableView.BxfsOAxU.mjs → TableView.DMWMaGLA.mjs} +26 -33
  31. package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
  32. package/chunks/{UserTaskListeners.CkeyTpnn.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
  33. package/chunks/{VueCron.DEvY5-i7.mjs → VueCron.BmPnLuu3.mjs} +3 -39
  34. package/chunks/{VueTreeSelect.C6Ycu28Z.mjs → VueTreeSelect.GHx4Z2lG.mjs} +10 -6
  35. package/chunks/button.gVyl7Y__.mjs +927 -0
  36. package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
  37. package/chunks/chunk.A6TnG60p.mjs +13 -0
  38. package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
  39. package/chunks/constants.Dw7hXt67.mjs +4 -0
  40. package/chunks/{dictionary.CNNpjPL2.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
  41. package/chunks/{event.Dv4XTu8B.mjs → event.CmOTnori.mjs} +4 -7
  42. package/chunks/event.ZRs4J5TN.mjs +4 -0
  43. package/chunks/{focus-trap.FbvlqAGe.mjs → focus-trap.CuUc8N2C.mjs} +27 -27
  44. package/chunks/{form-input.BUGZmAI1.mjs → form-input.DdSb45Tz.mjs} +3 -3
  45. package/chunks/{form-item.Ca8U2bIR.mjs → form-item.fYYCXvCs.mjs} +110 -106
  46. package/chunks/{icon.CxCY22-F.mjs → icon.AJYLfX1m.mjs} +7 -7
  47. package/chunks/{icon.ym7735_x.mjs → icon.niAg1zTC.mjs} +3 -3
  48. package/chunks/{init.6jGmuY99.mjs → init.CtUEiRbU.mjs} +5 -5
  49. package/chunks/input.B_wW4aF-.mjs +548 -0
  50. package/chunks/install.BJl2MN77.mjs +73 -0
  51. package/chunks/message-box.wGWcYSSd.mjs +463 -0
  52. package/chunks/{message.C4NdvfbE.mjs → message.DnTACuzV.mjs} +100 -99
  53. package/chunks/overlay.Rhu_rfhx.mjs +122 -0
  54. package/chunks/{radio.CeLeSOEo.mjs → radio.BMkZBhl5.mjs} +45 -44
  55. package/chunks/{scroll.DWjS-gnW.mjs → scroll.BJIpzi2Q.mjs} +2 -2
  56. package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
  57. package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
  58. package/chunks/{tag.ZhEIVRpP.mjs → tag.B6yUaGj-.mjs} +15 -15
  59. package/chunks/teleport.87mkIv8m.mjs +22 -0
  60. package/chunks/{tooltip.DNiltmX1.mjs → tooltip.Dzjs7LZ8.mjs} +397 -410
  61. package/chunks/typescript.D0a40c7B.mjs +4 -0
  62. package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
  63. package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
  64. package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
  65. package/chunks/{use-empty-values.D8KYIiKR.mjs → use-empty-values.CxYKjLV9.mjs} +3 -3
  66. package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
  67. package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
  68. package/chunks/use-id.CyzdvfQn.mjs +15 -0
  69. package/chunks/{use-locale.Be9HCpTQ.mjs → use-locale.CBoQRFjH.mjs} +1 -1
  70. package/chunks/{typescript.CLl-2siQ.mjs → use-size.CoorvF12.mjs} +4 -4
  71. package/chunks/validator.Drv0r2Nb.mjs +5 -0
  72. package/chunks/{vnode.C3PXzhmg.mjs → vnode.raM3wMJz.mjs} +2 -2
  73. package/confirm-button/index.mjs +1 -1
  74. package/confirmable/index.mjs +1 -1
  75. package/context-menu/index.mjs +39 -38
  76. package/data-table-picker/index.mjs +2 -6
  77. package/dynamic-table/index.mjs +1 -2
  78. package/editable-tree/index.mjs +1 -1
  79. package/element-dialog/index.mjs +1 -1
  80. package/element-dialog/style.css +1 -1
  81. package/empty-view/index.mjs +18 -20
  82. package/error-view/index.mjs +17 -19
  83. package/flex-column/index.mjs +1 -1
  84. package/flex-item/index.mjs +1 -1
  85. package/flex-row/index.mjs +1 -1
  86. package/flow/index.mjs +1 -1
  87. package/flow-designer/index.mjs +1 -1
  88. package/form-block/index.mjs +1 -1
  89. package/form-cascader/index.mjs +1 -1
  90. package/form-checkbox/index.mjs +4 -4
  91. package/form-checkbox-group/index.mjs +6 -6
  92. package/form-date-picker/index.mjs +3 -3
  93. package/form-holder/index.mjs +1 -1
  94. package/form-input/index.mjs +4 -4
  95. package/form-input-cron-expression/index.mjs +4 -4
  96. package/form-input-email/index.mjs +5 -5
  97. package/form-input-id-card/index.mjs +4 -4
  98. package/form-input-phone-number/index.mjs +4 -4
  99. package/form-input-tag/index.mjs +2 -2
  100. package/form-input-time/index.mjs +1 -1
  101. package/form-item/index.mjs +1 -1
  102. package/form-item-group/index.mjs +1 -1
  103. package/form-radio-group/index.mjs +6 -6
  104. package/form-select/index.mjs +1 -1
  105. package/form-switch/index.mjs +1 -1
  106. package/form-table/index.mjs +2 -2
  107. package/form-table-plus/index.mjs +4 -4
  108. package/form-textarea/index.mjs +4 -4
  109. package/form-tree-select/index.mjs +3 -3
  110. package/form-tree-select-multiple/index.mjs +3 -3
  111. package/fy-array/index.mjs +1 -1
  112. package/fy-cascader/index.mjs +1 -1
  113. package/fy-checkbox/index.mjs +1 -1
  114. package/fy-code/index.mjs +2 -2
  115. package/fy-curd/index.mjs +1 -1
  116. package/fy-date/index.mjs +1 -1
  117. package/fy-dynamic/index.mjs +3 -7
  118. package/fy-form/index.mjs +1 -1
  119. package/fy-form/style.css +1 -1
  120. package/fy-form-design/index.mjs +1 -1
  121. package/fy-form-design/style.css +1 -1
  122. package/fy-input/index.mjs +1 -1
  123. package/fy-input-color/index.mjs +1 -2
  124. package/fy-input-icon/index.mjs +37 -32
  125. package/fy-input-map/index.mjs +1 -1
  126. package/fy-input-number/index.mjs +1 -1
  127. package/fy-input-table/index.mjs +1 -1
  128. package/fy-input-tree/index.mjs +3 -3
  129. package/fy-input-tree/style.css +1 -1
  130. package/fy-radio/index.mjs +2 -2
  131. package/fy-rate/index.mjs +2 -2
  132. package/fy-select/index.mjs +5 -5
  133. package/fy-slider/index.mjs +1 -1
  134. package/fy-switch/index.mjs +2 -2
  135. package/fy-time/index.mjs +1 -1
  136. package/fy-title/index.mjs +1 -1
  137. package/fy-tree/index.mjs +1 -1
  138. package/fy-u-editor/index.mjs +1 -1
  139. package/fy-upload/index.mjs +1 -1
  140. package/guide-steps/index.mjs +1 -1
  141. package/helper-function.d.ts +3 -4
  142. package/helper-function.mjs +31 -22
  143. package/iframe-window/index.mjs +30 -29
  144. package/image-cropper/index.mjs +144 -163
  145. package/image-cropper/style.css +1 -1
  146. package/image-preview/index.mjs +1 -1
  147. package/index.d.ts +1 -2
  148. package/index.mjs +91 -92
  149. package/input-number-range/index.mjs +0 -2
  150. package/keyboard/index.mjs +1 -1
  151. package/monaco-editor/index.mjs +1 -1
  152. package/nav-bar/index.mjs +1 -1
  153. package/notice/index.mjs +1 -4
  154. package/package.json +11 -13
  155. package/pageable-table/index.mjs +1 -1
  156. package/pageable-view/index.mjs +2 -2
  157. package/photo-swipe/index.mjs +1 -1
  158. package/picker-table-view/index.mjs +4 -8
  159. package/record-video/index.mjs +1 -1
  160. package/resize-observer/index.mjs +1 -1
  161. package/search/index.mjs +2 -2
  162. package/split-pane/index.mjs +1 -1
  163. package/static-pageable-table/index.mjs +1 -4
  164. package/sub-table/index.mjs +2 -5
  165. package/sub-table-plus/index.mjs +3 -6
  166. package/tab/index.mjs +1 -1
  167. package/tab-item/index.mjs +1 -1
  168. package/table-column/index.mjs +1 -1
  169. package/table-view/index.mjs +1 -1
  170. package/tag-render/index.mjs +28 -24
  171. package/toolbar/index.mjs +1 -1
  172. package/toolbar-button/index.mjs +2 -143
  173. package/vue-cron/index.mjs +1 -1
  174. package/vue-tags-input/index.mjs +1 -1
  175. package/vue-tree-select/index.mjs +1 -1
  176. package/watermark/index.mjs +1 -1
  177. package/web-types.json +250 -382
  178. package/x-input-tag/index.mjs +0 -3
  179. package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
  180. package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
  181. package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
  182. package/chunks/event.B4iwtUNO.mjs +0 -4
  183. package/chunks/input.C2GWsuXE.mjs +0 -547
  184. package/chunks/install.yLcn5MLL.mjs +0 -84
  185. package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
  186. package/chunks/use-global-config.DRovgom9.mjs +0 -57
  187. package/chunks/validator.DuBSEj8O.mjs +0 -5
  188. package/login/index.mjs +0 -252
  189. package/login/style.css +0 -1
  190. /package/chunks/{FormBlock.Co7l6USP.mjs → FormBlock.D6kZl7sm.mjs} +0 -0
  191. /package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
  192. /package/chunks/{Keyboard.4hi7CjGc.mjs → Keyboard.DBspwbYo.mjs} +0 -0
  193. /package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.Bq9d6JSz.mjs} +0 -0
  194. /package/chunks/{RecordVideo.VRFTaHSp.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
  195. /package/chunks/{SplitPane.Bwe5Rc0J.mjs → SplitPane.DNNid7WB.mjs} +0 -0
  196. /package/chunks/{Toolbar.BVziVmyT.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
  197. /package/chunks/{core.DXaMPWGV.mjs → core.Blrh_Fjl.mjs} +0 -0
  198. /package/chunks/{dataformat.CteBVoOe.mjs → dataformat.F7GtAoiN.mjs} +0 -0
  199. /package/chunks/{dic.C0abEij9.mjs → dic.NZCGhtA7.mjs} +0 -0
  200. /package/chunks/{dictionary.BRhZD-WH.mjs → dictionary.DXYdZefs.mjs} +0 -0
  201. /package/chunks/{form-pick.DT5kumy4.mjs → form-pick.BEC7lrNH.mjs} +0 -0
  202. /package/chunks/{form-validate.CUvMwtPN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
  203. /package/chunks/{packages.BLDb9e6G.mjs → packages.CONbEH13.mjs} +0 -0
  204. /package/chunks/{permission.C-IUDxQQ.mjs → permission.8WDtOmzA.mjs} +0 -0
  205. /package/chunks/{photo-swipe.BxnG4lip.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
  206. /package/chunks/{slot.DT5QwXL-.mjs → slot.CZCo32Cw.mjs} +0 -0
  207. /package/chunks/{sub-table-plus-props.CRX7ERxJ.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
  208. /package/chunks/{tab-mixin.7zuMMM1E.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
  209. /package/chunks/{util.Ce4MHRmD.mjs → util.fjuzrmWz.mjs} +0 -0
  210. /package/chunks/{utilSelf.BttmSVX6.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
  211. /package/chunks/{utils.BGJfM4oG.mjs → utils.C37EhJ-u.mjs} +0 -0
  212. /package/chunks/{utils.CSPl1l4f.mjs → utils.C8RvIGLM.mjs} +0 -0
@@ -106,7 +106,6 @@ function v(e, m, v, y, b, x) {
106
106
  return o(), i("div", h, [
107
107
  x.tags && x.tags.length && x.tags[0] ? (o(!0), i(t, { key: 0 }, s(x.tags, (e, t) => (o(), n(S, {
108
108
  key: e.id || e,
109
- size: "default",
110
109
  "disable-transitions": "",
111
110
  closable: !x.inputDisabled,
112
111
  onClose: (n) => x.handleClose(e, t)
@@ -120,7 +119,6 @@ function v(e, m, v, y, b, x) {
120
119
  modelValue: b.inputValue,
121
120
  "onUpdate:modelValue": m[0] || (m[0] = (e) => b.inputValue = e),
122
121
  class: "input-new-tag",
123
- size: "default",
124
122
  onKeyup: p(x.handleInputConfirm, ["enter"]),
125
123
  onBlur: x.handleInputConfirm
126
124
  }, null, 8, [
@@ -131,7 +129,6 @@ function v(e, m, v, y, b, x) {
131
129
  !x.inputDisabled && !b.inputVisible ? f((o(), n(w, {
132
130
  key: 3,
133
131
  class: "button-new-tag",
134
- size: "default",
135
132
  onClick: x.showInput
136
133
  }, {
137
134
  default: d(() => [...m[1] || (m[1] = [a(" + 添加 ", -1)])]),
@@ -1,251 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import { Fragment as t, Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d, resolveComponent as f, resolveDirective as p, toDisplayString as m, vShow as h, withCtx as g, withDirectives as _, withModifiers as v } from "vue";
3
- import { getComputedHeight as y, isDef as b } from "@web-utils/core";
4
- import { dialogDrag as x } from "@web-utils/vue/directives/dialog-drag";
5
- //#endregion
6
- //#region src/components/dialog/ElementDialog.vue
7
- var S = {
8
- name: "ElementDialog",
9
- components: { EmulateForm: {
10
- name: "EmulateForm",
11
- provide() {
12
- return { elForm: { disabled: !1 } };
13
- },
14
- render() {
15
- return this.$slots.default;
16
- }
17
- } },
18
- directives: { dialogDrag: x },
19
- mixins: [{ props: {
20
- visible: {
21
- type: Boolean,
22
- default: !1
23
- },
24
- openDelay: {},
25
- closeDelay: {},
26
- zIndex: {},
27
- modalFade: {
28
- type: Boolean,
29
- default: !0
30
- },
31
- modalClass: {},
32
- modal: {
33
- type: Boolean,
34
- default: !0
35
- },
36
- modalAppendToBody: {
37
- type: Boolean,
38
- default: !0
39
- },
40
- lockScroll: {
41
- type: Boolean,
42
- default: !0
43
- },
44
- closeOnPressEscape: {
45
- type: Boolean,
46
- default: !0
47
- },
48
- maxHeight: {
49
- type: String,
50
- default: "76vh"
51
- }
52
- } }],
53
- props: {
54
- title: {
55
- type: String,
56
- default: ""
57
- },
58
- appendToBody: {
59
- type: Boolean,
60
- default: !0
61
- },
62
- closeOnClickModal: {
63
- type: Boolean,
64
- default: !1
65
- },
66
- showClose: {
67
- type: Boolean,
68
- default: !0
69
- },
70
- showFullScreen: Boolean,
71
- width: { type: String },
72
- height: { type: String },
73
- customClass: {
74
- type: String,
75
- default: ""
76
- },
77
- top: {
78
- type: String,
79
- default: "10vh"
80
- },
81
- beforeClose: { type: Function },
82
- center: {
83
- type: Boolean,
84
- default: !0
85
- },
86
- destroyOnClose: Boolean,
87
- flexRow: Boolean,
88
- flexColumn: Boolean,
89
- bodyPadding: {
90
- type: Boolean,
91
- default: !0
92
- },
93
- embed: Boolean,
94
- verticalCenter: Boolean,
95
- offsetTop: Number
96
- },
97
- data() {
98
- return {
99
- fullScreen: !1,
100
- closed: !1,
101
- marginTop: 0
102
- };
103
- },
104
- computed: { style() {
105
- let e = { maxHeight: "100%" };
106
- return this.fullScreen || (this.width && (e.width = this.width), e.maxHeight = this.maxHeight), e["margin-top"] = this.marginTop, e;
107
- } },
108
- watch: {
109
- async visible(e) {
110
- e ? (this.closed = !1, this.$emit("open"), this.$el.addEventListener("scroll", this.updatePopper), await this.$nextTick(), this.$refs.dialog.scrollTop = 0, await this.computeTop(), this.appendToBody && document.body.appendChild(this.$el)) : (this.$el.removeEventListener("scroll", this.updatePopper), this.closed || this.$emit("close"));
111
- },
112
- fullScreen(e) {
113
- this.$emit("toggle-fullscreen", e);
114
- }
115
- },
116
- created() {
117
- this.$watch(() => ({
118
- offsetTop: this.offsetTop,
119
- verticalCenter: this.verticalCenter,
120
- top: this.top
121
- }), this.computeTop, { deep: !0 });
122
- },
123
- async mounted() {
124
- this.visible && (this.rendered = !0, this.open(), await this.computeTop(), this.appendToBody && document.body.appendChild(this.$el));
125
- },
126
- unmounted() {
127
- this.appendToBody && this.$el && this.$el.parentNode && this.$el.parentNode.removeChild(this.$el);
128
- },
129
- methods: {
130
- async computeTop() {
131
- await this.$nextTick(), this.verticalCenter ? this.marginTop = `${(document.body.offsetHeight - y(this.$refs.dialog)) / 2 + (b(this.offsetTop) ? this.offsetTop : 0)}px` : this.marginTop = this.top;
132
- },
133
- toggleFullScreen() {
134
- this.fullScreen = !this.fullScreen;
135
- },
136
- enterFullScreen() {
137
- this.fullScreen = !0;
138
- },
139
- exitFullScreen() {
140
- this.fullScreen = !1;
141
- },
142
- shouldShowFooter() {
143
- var e, t;
144
- return !!((e = (t = this.$slots).footer) != null && e.call(t));
145
- },
146
- handleWrapperClick() {
147
- this.closeOnClickModal && this.handleClose();
148
- },
149
- handleClose() {
150
- typeof this.beforeClose == "function" ? this.beforeClose(this.hide) : this.hide();
151
- },
152
- hide(e) {
153
- e !== !1 && (this.embed ? this.$parent.$emit("update:visible", !1) : this.$emit("update:visible", !1), this.$emit("close"), this.closed = !0);
154
- },
155
- updatePopper() {
156
- this.broadcast("ElSelectDropdown", "updatePopper"), this.broadcast("ElDropdownMenu", "updatePopper");
157
- },
158
- afterEnter() {
159
- this.$emit("opened");
160
- },
161
- afterLeave() {
162
- this.exitFullScreen(), this.$emit("closed");
163
- }
164
- }
165
- }, C = ["aria-label"], w = { class: "el-dialog__header" }, T = { class: "el-dialog__title" }, E = { class: "header-button-wrapper" }, D = {
166
- key: 1,
167
- class: "el-dialog__footer"
168
- };
169
- function O(e, y, b, x, S, O) {
170
- let k = f("ElButton"), A = f("EmulateForm"), j = p("dialog-drag");
171
- return u(), r(n, {
172
- name: "dialog-fade",
173
- onAfterEnter: O.afterEnter,
174
- onAfterLeave: O.afterLeave,
175
- persisted: ""
176
- }, {
177
- default: g(() => [_((u(), a("div", {
178
- class: "el-dialog__wrapper",
179
- onClick: y[0] || (y[0] = v((...e) => O.handleWrapperClick && O.handleWrapperClick(...e), ["self"]))
180
- }, [o("div", {
181
- ref: "dialog",
182
- role: "dialog",
183
- "aria-modal": "true",
184
- "aria-label": b.title || "dialog",
185
- class: c([
186
- "el-dialog",
187
- "element-dialog",
188
- "el-dialog-resizeable",
189
- "normalize",
190
- {
191
- "is-fullscreen": S.fullScreen,
192
- "el-dialog__body-padding": b.bodyPadding,
193
- "el-dialog--center": b.center,
194
- "el-dialog--flex-row": b.flexRow,
195
- "el-dialog--flex-column": b.flexColumn
196
- },
197
- b.customClass
198
- ]),
199
- style: l(O.style)
200
- }, [
201
- i(" 头部 "),
202
- o("div", w, [d(e.$slots, "title", {}, () => [o("span", T, m(b.title), 1)]), s(A, null, {
203
- default: g(() => [o("div", E, [
204
- d(e.$slots, "header-button"),
205
- b.showFullScreen ? (u(), r(k, {
206
- key: 0,
207
- disabled: !1,
208
- class: "header-button",
209
- type: "text",
210
- icon: S.fullScreen ? "el-icon-copy-document" : "el-icon-full-screen",
211
- size: "default",
212
- title: S.fullScreen ? "还原" : "最大化",
213
- onClick: O.toggleFullScreen
214
- }, null, 8, [
215
- "icon",
216
- "title",
217
- "onClick"
218
- ])) : i("v-if", !0),
219
- b.showClose ? (u(), r(k, {
220
- key: 1,
221
- disabled: !1,
222
- "aria-label": "Close",
223
- class: "header-button header-dialog-close",
224
- type: "text",
225
- title: "关闭",
226
- icon: "el-icon-close",
227
- size: "default",
228
- onClick: O.handleClose
229
- }, null, 8, ["onClick"])) : i("v-if", !0)
230
- ])]),
231
- _: 3
232
- })]),
233
- i(" 内容 "),
234
- e.rendered ? (u(), a("div", {
235
- key: 0,
236
- class: "el-dialog__body",
237
- style: l({ height: S.fullScreen ? "100%" : b.height })
238
- }, [b.destroyOnClose ? (u(), a(t, { key: 0 }, [e.visible ? d(e.$slots, "default", { key: 0 }) : i("v-if", !0)], 64)) : d(e.$slots, "default", { key: 1 })], 4)) : i("v-if", !0),
239
- i(" 底部 "),
240
- O.shouldShowFooter() ? (u(), a("div", D, [d(e.$slots, "footer", { handleClose: O.handleClose })])) : i("v-if", !0)
241
- ], 14, C)])), [[h, e.visible], [
242
- j,
243
- { onMove: O.updatePopper },
244
- S.fullScreen
245
- ]])]),
246
- _: 3
247
- }, 8, ["onAfterEnter", "onAfterLeave"]);
248
- }
249
- var k = /* @__PURE__ */ e(S, [["render", O]]);
250
- //#endregion
251
- export { k as t };
@@ -1,437 +0,0 @@
1
- import { _ as e, d as t, m as n, o as r, r as i, t as a } from "./install.yLcn5MLL.mjs";
2
- import { r as o, t as s } from "./event.B4iwtUNO.mjs";
3
- import { i as c } from "./typescript.CLl-2siQ.mjs";
4
- import { B as l, F as u, M as d, O as f, R as p, j as m, z as h } from "./style.BmlGmjpO.mjs";
5
- import { t as g } from "./use-deprecated.BfDSbZS9.mjs";
6
- import { a as _, i as v, n as y, r as b, t as x } from "./use-form-item.BlWa7ZKe.mjs";
7
- import { t as ee } from "./use-aria.BW7nWOl1.mjs";
8
- import { Fragment as te, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as D, defineComponent as O, getCurrentInstance as k, inject as A, isRef as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeStyle as ne, openBlock as F, provide as re, ref as I, renderList as ie, renderSlot as L, resolveDynamicComponent as R, toDisplayString as z, toRaw as B, toRefs as ae, unref as V, useSlots as H, vModelCheckbox as U, watch as W, withCtx as G, withDirectives as K, withModifiers as q } from "vue";
9
- import { isEqual as J, omit as oe, pick as se } from "lodash-unified";
10
- //#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
11
- var Y = {
12
- modelValue: {
13
- type: [
14
- Number,
15
- String,
16
- Boolean
17
- ],
18
- default: void 0
19
- },
20
- label: {
21
- type: [
22
- String,
23
- Boolean,
24
- Number,
25
- Object
26
- ],
27
- default: void 0
28
- },
29
- value: {
30
- type: [
31
- String,
32
- Boolean,
33
- Number,
34
- Object
35
- ],
36
- default: void 0
37
- },
38
- indeterminate: Boolean,
39
- disabled: {
40
- type: Boolean,
41
- default: void 0
42
- },
43
- checked: Boolean,
44
- name: {
45
- type: String,
46
- default: void 0
47
- },
48
- trueValue: {
49
- type: [String, Number],
50
- default: void 0
51
- },
52
- falseValue: {
53
- type: [String, Number],
54
- default: void 0
55
- },
56
- trueLabel: {
57
- type: [String, Number],
58
- default: void 0
59
- },
60
- falseLabel: {
61
- type: [String, Number],
62
- default: void 0
63
- },
64
- id: {
65
- type: String,
66
- default: void 0
67
- },
68
- border: Boolean,
69
- size: c,
70
- tabindex: [String, Number],
71
- validateEvent: {
72
- type: Boolean,
73
- default: !0
74
- },
75
- ariaLabel: String,
76
- ...ee(["ariaControls"])
77
- }, X = {
78
- [o]: (t) => e(t) || p(t) || u(t),
79
- change: (t) => e(t) || p(t) || u(t)
80
- }, Z = Symbol("checkboxGroupContextKey"), ce = m({
81
- modelValue: {
82
- type: d(Array),
83
- default: () => []
84
- },
85
- disabled: {
86
- type: Boolean,
87
- default: void 0
88
- },
89
- min: Number,
90
- max: Number,
91
- size: c,
92
- fill: String,
93
- textColor: String,
94
- tag: {
95
- type: String,
96
- default: "div"
97
- },
98
- validateEvent: {
99
- type: Boolean,
100
- default: !0
101
- },
102
- options: { type: d(Array) },
103
- props: {
104
- type: d(Object),
105
- default: () => ue
106
- },
107
- type: {
108
- type: String,
109
- values: ["checkbox", "button"],
110
- default: "checkbox"
111
- },
112
- ...ee(["ariaLabel"])
113
- }), le = {
114
- [o]: (e) => t(e),
115
- change: (e) => t(e)
116
- }, ue = {
117
- label: "label",
118
- value: "value",
119
- disabled: "disabled"
120
- }, de = ({ model: e, isChecked: t }) => {
121
- let n = A(Z, void 0), r = A(_, void 0), i = S(() => {
122
- var r, i;
123
- let a = n == null || (r = n.max) == null ? void 0 : r.value, o = n == null || (i = n.min) == null ? void 0 : i.value;
124
- return !l(a) && e.value.length >= a && !t.value || !l(o) && e.value.length <= o && t.value;
125
- });
126
- return {
127
- isDisabled: b(S(() => {
128
- var e;
129
- return n === void 0 ? (r == null ? void 0 : r.disabled) ?? i.value : ((e = n.disabled) == null ? void 0 : e.value) || i.value;
130
- })),
131
- isLimitDisabled: i
132
- };
133
- }, fe = (e, { model: t, isLimitExceeded: n, hasOwnLabel: r, isDisabled: i, isLabeledByFormItem: a }) => {
134
- let o = A(Z, void 0), { formItem: c } = x(), { emit: l } = k();
135
- function u(t) {
136
- return [
137
- !0,
138
- e.trueValue,
139
- e.trueLabel
140
- ].includes(t) ? e.trueValue ?? e.trueLabel ?? !0 : e.falseValue ?? e.falseLabel ?? !1;
141
- }
142
- function d(e, t) {
143
- l(s, u(e), t);
144
- }
145
- function p(e) {
146
- if (n.value) return;
147
- let t = e.target;
148
- l(s, u(t.checked), e);
149
- }
150
- async function m(o) {
151
- n.value || !r.value && !i.value && a.value && (o.composedPath().some((e) => e.tagName === "LABEL") || (t.value = u([
152
- !1,
153
- e.falseValue,
154
- e.falseLabel
155
- ].includes(t.value)), await N(), d(t.value, o)));
156
- }
157
- let h = S(() => (o == null ? void 0 : o.validateEvent) || e.validateEvent);
158
- return W(() => e.modelValue, () => {
159
- h.value && (c == null || c.validate("change").catch((e) => f(e)));
160
- }), {
161
- handleChange: p,
162
- onClickRoot: m
163
- };
164
- }, pe = (e) => {
165
- let n = I(!1), { emit: r } = k(), i = A(Z, void 0), a = S(() => l(i) === !1), s = I(!1), c = S({
166
- get() {
167
- var t;
168
- return a.value ? i == null || (t = i.modelValue) == null ? void 0 : t.value : e.modelValue ?? n.value;
169
- },
170
- set(e) {
171
- if (a.value && t(e)) {
172
- var l, u;
173
- s.value = (i == null || (l = i.max) == null ? void 0 : l.value) !== void 0 && e.length > (i == null ? void 0 : i.max.value) && e.length > c.value.length, s.value === !1 && (i == null || (u = i.changeEvent) == null || u.call(i, e));
174
- } else r(o, e), n.value = e;
175
- }
176
- });
177
- return {
178
- model: c,
179
- isGroup: a,
180
- isLimitExceeded: s
181
- };
182
- }, me = (e, r, { model: i }) => {
183
- let a = A(Z, void 0), o = I(!1), s = S(() => h(e.value) ? e.label : e.value), c = S(() => {
184
- let r = i.value;
185
- return u(r) ? r : t(r) ? n(s.value) ? r.map(B).some((e) => J(e, s.value)) : r.map(B).includes(s.value) : r == null ? !!r : r === e.trueValue || r === e.trueLabel;
186
- });
187
- return {
188
- checkboxButtonSize: v(S(() => {
189
- var e;
190
- return a == null || (e = a.size) == null ? void 0 : e.value;
191
- }), { prop: !0 }),
192
- isChecked: c,
193
- isFocused: o,
194
- checkboxSize: v(S(() => {
195
- var e;
196
- return a == null || (e = a.size) == null ? void 0 : e.value;
197
- })),
198
- hasOwnLabel: S(() => !!r.default || !h(s.value)),
199
- actualValue: s
200
- };
201
- }, he = (e, n) => {
202
- let { formItem: r } = x(), { model: i, isGroup: a, isLimitExceeded: o } = pe(e), { isFocused: s, isChecked: c, checkboxButtonSize: l, checkboxSize: u, hasOwnLabel: d, actualValue: f } = me(e, n, { model: i }), { isDisabled: p } = de({
203
- model: i,
204
- isChecked: c
205
- }), { inputId: m, isLabeledByFormItem: _ } = y(e, {
206
- formItemContext: r,
207
- disableIdGeneration: d,
208
- disableIdManagement: a
209
- }), { handleChange: v, onClickRoot: b } = fe(e, {
210
- model: i,
211
- isLimitExceeded: o,
212
- hasOwnLabel: d,
213
- isDisabled: p,
214
- isLabeledByFormItem: _
215
- });
216
- return (() => {
217
- function n() {
218
- t(i.value) && !i.value.includes(f.value) ? i.value.push(f.value) : i.value = e.trueValue ?? e.trueLabel ?? !0;
219
- }
220
- e.checked && n();
221
- })(), g({
222
- from: "label act as value",
223
- replacement: "value",
224
- version: "3.0.0",
225
- scope: "el-checkbox",
226
- ref: "https://element-plus.org/en-US/component/checkbox.html"
227
- }, S(() => a.value && h(e.value))), g({
228
- from: "true-label",
229
- replacement: "true-value",
230
- version: "3.0.0",
231
- scope: "el-checkbox",
232
- ref: "https://element-plus.org/en-US/component/checkbox.html"
233
- }, S(() => !!e.trueLabel)), g({
234
- from: "false-label",
235
- replacement: "false-value",
236
- version: "3.0.0",
237
- scope: "el-checkbox",
238
- ref: "https://element-plus.org/en-US/component/checkbox.html"
239
- }, S(() => !!e.falseLabel)), {
240
- inputId: m,
241
- isLabeledByFormItem: _,
242
- isChecked: c,
243
- isDisabled: p,
244
- isFocused: s,
245
- checkboxButtonSize: l,
246
- checkboxSize: u,
247
- hasOwnLabel: d,
248
- model: i,
249
- actualValue: f,
250
- handleChange: v,
251
- onClickRoot: b
252
- };
253
- }, ge = [
254
- "id",
255
- "indeterminate",
256
- "name",
257
- "tabindex",
258
- "disabled"
259
- ], _e = /* @__PURE__ */ O({
260
- name: "ElCheckbox",
261
- __name: "checkbox",
262
- props: Y,
263
- emits: X,
264
- setup(e) {
265
- let t = e, { inputId: n, isLabeledByFormItem: i, isChecked: a, isDisabled: o, isFocused: s, checkboxSize: c, hasOwnLabel: l, model: u, actualValue: d, handleChange: f, onClickRoot: p } = he(t, H()), m = S(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
266
- "true-value": t.trueValue ?? t.trueLabel ?? !0,
267
- "false-value": t.falseValue ?? t.falseLabel ?? !1
268
- } : { value: d.value }), h = r("checkbox"), g = S(() => [
269
- h.b(),
270
- h.m(c.value),
271
- h.is("disabled", o.value),
272
- h.is("bordered", t.border),
273
- h.is("checked", a.value)
274
- ]), _ = S(() => [
275
- h.e("input"),
276
- h.is("disabled", o.value),
277
- h.is("checked", a.value),
278
- h.is("indeterminate", t.indeterminate),
279
- h.is("focus", s.value)
280
- ]);
281
- return (t, r) => (F(), C(R(!V(l) && V(i) ? "span" : "label"), {
282
- for: !V(l) && V(i) ? null : V(n),
283
- class: P(g.value),
284
- "aria-controls": e.indeterminate ? e.ariaControls : null,
285
- "aria-checked": e.indeterminate ? "mixed" : void 0,
286
- "aria-label": e.ariaLabel,
287
- onClick: V(p)
288
- }, {
289
- default: G(() => [E("span", { class: P(_.value) }, [K(E("input", M({
290
- id: V(n),
291
- "onUpdate:modelValue": r[0] || (r[0] = (e) => j(u) ? u.value = e : null),
292
- class: V(h).e("original"),
293
- type: "checkbox",
294
- indeterminate: e.indeterminate,
295
- name: e.name,
296
- tabindex: e.tabindex,
297
- disabled: V(o)
298
- }, m.value, {
299
- onChange: r[1] || (r[1] = (...e) => V(f) && V(f)(...e)),
300
- onFocus: r[2] || (r[2] = (e) => s.value = !0),
301
- onBlur: r[3] || (r[3] = (e) => s.value = !1),
302
- onClick: r[4] || (r[4] = q(() => {}, ["stop"]))
303
- }), null, 16, ge), [[U, V(u)]]), E("span", { class: P(V(h).e("inner")) }, null, 2)], 2), V(l) ? (F(), T("span", {
304
- key: 0,
305
- class: P(V(h).e("label"))
306
- }, [L(t.$slots, "default"), t.$slots.default ? w("v-if", !0) : (F(), T(te, { key: 0 }, [D(z(e.label), 1)], 64))], 2)) : w("v-if", !0)]),
307
- _: 3
308
- }, 8, [
309
- "for",
310
- "class",
311
- "aria-controls",
312
- "aria-checked",
313
- "aria-label",
314
- "onClick"
315
- ]));
316
- }
317
- }), ve = [
318
- "name",
319
- "tabindex",
320
- "disabled"
321
- ], Q = /* @__PURE__ */ O({
322
- name: "ElCheckboxButton",
323
- __name: "checkbox-button",
324
- props: Y,
325
- emits: X,
326
- setup(e) {
327
- let t = e, { isFocused: n, isChecked: i, isDisabled: a, checkboxButtonSize: o, model: s, actualValue: c, handleChange: l } = he(t, H()), u = S(() => t.trueValue || t.falseValue || t.trueLabel || t.falseLabel ? {
328
- "true-value": t.trueValue ?? t.trueLabel ?? !0,
329
- "false-value": t.falseValue ?? t.falseLabel ?? !1
330
- } : { value: c.value }), d = A(Z, void 0), f = r("checkbox"), p = S(() => {
331
- var e, t;
332
- let n = (d == null || (e = d.fill) == null ? void 0 : e.value) ?? "";
333
- return {
334
- backgroundColor: n,
335
- borderColor: n,
336
- color: (d == null || (t = d.textColor) == null ? void 0 : t.value) ?? "",
337
- boxShadow: n ? `-1px 0 0 0 ${n}` : void 0
338
- };
339
- }), m = S(() => [
340
- f.b("button"),
341
- f.bm("button", o.value),
342
- f.is("disabled", a.value),
343
- f.is("checked", i.value),
344
- f.is("focus", n.value)
345
- ]);
346
- return (t, r) => (F(), T("label", { class: P(m.value) }, [K(E("input", M({
347
- "onUpdate:modelValue": r[0] || (r[0] = (e) => j(s) ? s.value = e : null),
348
- class: V(f).be("button", "original"),
349
- type: "checkbox",
350
- name: e.name,
351
- tabindex: e.tabindex,
352
- disabled: V(a)
353
- }, u.value, {
354
- onChange: r[1] || (r[1] = (...e) => V(l) && V(l)(...e)),
355
- onFocus: r[2] || (r[2] = (e) => n.value = !0),
356
- onBlur: r[3] || (r[3] = (e) => n.value = !1),
357
- onClick: r[4] || (r[4] = q(() => {}, ["stop"]))
358
- }), null, 16, ve), [[U, V(s)]]), t.$slots.default || e.label ? (F(), T("span", {
359
- key: 0,
360
- class: P(V(f).be("button", "inner")),
361
- style: ne(V(i) ? p.value : void 0)
362
- }, [L(t.$slots, "default", {}, () => [D(z(e.label), 1)])], 6)) : w("v-if", !0)], 2));
363
- }
364
- }), $ = /* @__PURE__ */ O({
365
- name: "ElCheckboxGroup",
366
- __name: "checkbox-group",
367
- props: ce,
368
- emits: le,
369
- setup(e, { emit: t }) {
370
- let n = e, i = t, a = r("checkbox"), c = b(), { formItem: l } = x(), { inputId: u, isLabeledByFormItem: d } = y(n, { formItemContext: l }), p = async (e) => {
371
- i(o, e), await N(), i(s, e);
372
- }, m = S({
373
- get() {
374
- return n.modelValue;
375
- },
376
- set(e) {
377
- p(e);
378
- }
379
- }), h = S(() => ({
380
- ...ue,
381
- ...n.props
382
- })), g = (e) => {
383
- let { label: t, value: n, disabled: r } = h.value, i = {
384
- label: e[t],
385
- value: e[n],
386
- disabled: e[r]
387
- };
388
- return {
389
- ...oe(e, [
390
- t,
391
- n,
392
- r
393
- ]),
394
- ...i
395
- };
396
- }, _ = S(() => n.type === "button" ? Q : _e);
397
- return re(Z, {
398
- ...se(ae(n), [
399
- "size",
400
- "min",
401
- "max",
402
- "validateEvent",
403
- "fill",
404
- "textColor"
405
- ]),
406
- disabled: c,
407
- modelValue: m,
408
- changeEvent: p
409
- }), W(() => n.modelValue, (e, t) => {
410
- n.validateEvent && !J(e, t) && (l == null || l.validate("change").catch((e) => f(e)));
411
- }), (t, n) => {
412
- var r;
413
- return F(), C(R(e.tag), {
414
- id: V(u),
415
- class: P(V(a).b("group")),
416
- role: "group",
417
- "aria-label": V(d) ? void 0 : e.ariaLabel || "checkbox-group",
418
- "aria-labelledby": V(d) ? (r = V(l)) == null ? void 0 : r.labelId : void 0
419
- }, {
420
- default: G(() => [L(t.$slots, "default", {}, () => [(F(!0), T(te, null, ie(e.options, (e, t) => (F(), C(R(_.value), M({ key: t }, { ref_for: !0 }, g(e)), null, 16))), 128))])]),
421
- _: 3
422
- }, 8, [
423
- "id",
424
- "class",
425
- "aria-label",
426
- "aria-labelledby"
427
- ]);
428
- };
429
- }
430
- }), ye = a(_e, {
431
- CheckboxButton: Q,
432
- CheckboxGroup: $
433
- });
434
- i(Q);
435
- var be = i($);
436
- //#endregion
437
- export { be as n, ye as t };