@web-utils/component 3.8.3 → 4.0.1

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 (211) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/index.mjs +13 -13
  4. package/card/style.css +1 -1
  5. package/carousel/style.css +1 -1
  6. package/chat/index.mjs +2 -2
  7. package/chat/style.css +1 -1
  8. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  9. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  10. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  11. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  12. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  13. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  14. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  15. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  16. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  17. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  18. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  19. package/chunks/core.DJEgjQW6.mjs +54 -0
  20. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  21. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  22. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  23. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/form-input.B8z37eqj.mjs +31 -0
  25. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  26. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  27. package/chunks/helper.BiMLcEEk.mjs +41 -0
  28. package/chunks/index.9OxHjTIE.mjs +16 -0
  29. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  30. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  31. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  32. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  33. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  34. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  35. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  36. package/color-picker/index.mjs +19 -37
  37. package/comment/style.css +1 -1
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.mjs +1 -1
  40. package/context-menu/style.css +1 -1
  41. package/count-up/index.mjs +13 -24
  42. package/custom-scrollbar/index.mjs +1 -2
  43. package/data-operatext/style.css +1 -1
  44. package/data-panel/style.css +1 -1
  45. package/data-pay/style.css +1 -1
  46. package/data-price/style.css +1 -1
  47. package/data-rotate/style.css +1 -1
  48. package/data-table-picker/index.mjs +1 -1
  49. package/data-tabs/style.css +1 -1
  50. package/dialog-form/index.mjs +16 -28
  51. package/dynamic-table/style.css +1 -1
  52. package/easy-popup/index.mjs +22 -40
  53. package/easy-popup/style.css +1 -1
  54. package/editable-tree/index.mjs +203 -250
  55. package/editable-tree/style.css +1 -1
  56. package/element-dialog/index.mjs +30 -52
  57. package/element-dialog/style.css +1 -1
  58. package/flex-column/index.mjs +13 -25
  59. package/flex-item/index.mjs +15 -27
  60. package/flex-row/index.mjs +13 -25
  61. package/flow/index.mjs +30 -32
  62. package/flow-designer/index.mjs +344 -375
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +64 -91
  66. package/form-block/index.mjs +33 -26
  67. package/form-card/index.mjs +25 -0
  68. package/form-cascader/index.mjs +70 -67
  69. package/form-checkbox/index.mjs +71 -0
  70. package/form-checkbox-group/index.mjs +33 -53
  71. package/form-date-picker/index.mjs +44 -73
  72. package/form-holder/index.mjs +60 -64
  73. package/form-holder/style.css +1 -0
  74. package/form-input/index.mjs +62 -40
  75. package/form-input-cron-expression/index.mjs +77 -0
  76. package/form-input-cron-expression/style.css +1 -0
  77. package/form-input-email/index.mjs +21 -33
  78. package/form-input-id-card/index.mjs +25 -38
  79. package/form-input-number/index.mjs +39 -42
  80. package/form-input-number/style.css +1 -1
  81. package/form-input-phone-number/index.mjs +26 -37
  82. package/form-input-tag/index.mjs +32 -34
  83. package/form-input-time/index.mjs +22 -37
  84. package/form-item/index.mjs +109 -101
  85. package/form-item/style.css +1 -1
  86. package/form-item-config-provider/index.mjs +18 -10
  87. package/form-item-group/index.mjs +73 -69
  88. package/form-item-group/style.css +1 -1
  89. package/form-radio-group/index.mjs +41 -36
  90. package/form-radio-group/style.css +1 -1
  91. package/form-select/index.mjs +142 -75
  92. package/form-select/style.css +1 -0
  93. package/form-switch/index.mjs +29 -34
  94. package/form-table/index.mjs +85 -0
  95. package/form-table-plus/index.mjs +109 -0
  96. package/form-textarea/index.mjs +23 -35
  97. package/form-tree-select/index.mjs +72 -0
  98. package/form-tree-select/style.css +1 -0
  99. package/form-tree-select-multiple/index.mjs +78 -0
  100. package/form-view/index.mjs +43 -77
  101. package/form-view/style.css +1 -1
  102. package/fy-array/index.mjs +2 -2
  103. package/fy-cascader/index.mjs +1 -1
  104. package/fy-checkbox/index.mjs +1 -1
  105. package/fy-code/index.mjs +1 -1
  106. package/fy-curd/index.mjs +12 -17
  107. package/fy-curd/style.css +1 -1
  108. package/fy-date/index.mjs +1 -1
  109. package/fy-draggable/index.mjs +5 -7
  110. package/fy-draggable/style.css +1 -1
  111. package/fy-dynamic/index.mjs +14 -16
  112. package/fy-empty/index.mjs +1 -1
  113. package/fy-empty/style.css +1 -1
  114. package/fy-form/index.mjs +117 -136
  115. package/fy-form/style.css +1 -1
  116. package/fy-form-design/index.mjs +319 -345
  117. package/fy-form-design/style.css +1 -1
  118. package/fy-input/index.mjs +2 -2
  119. package/fy-input-color/index.mjs +1 -1
  120. package/fy-input-icon/index.mjs +1 -1
  121. package/fy-input-map/index.mjs +21 -26
  122. package/fy-input-map/style.css +1 -1
  123. package/fy-input-number/index.mjs +1 -1
  124. package/fy-input-table/index.mjs +10 -12
  125. package/fy-input-tree/index.mjs +1 -1
  126. package/fy-radio/index.mjs +1 -1
  127. package/fy-rate/index.mjs +1 -1
  128. package/fy-select/index.mjs +4 -4
  129. package/fy-slider/index.mjs +2 -2
  130. package/fy-switch/index.mjs +1 -1
  131. package/fy-tabs/index.mjs +0 -1
  132. package/fy-time/index.mjs +1 -1
  133. package/fy-title/index.mjs +1 -1
  134. package/fy-tree/index.mjs +1 -1
  135. package/fy-u-editor/index.mjs +77 -103
  136. package/fy-upload/index.mjs +3 -3
  137. package/fy-upload/style.css +1 -1
  138. package/highlight-j-s/index.mjs +1 -1
  139. package/highlight-j-s/style.css +1 -1
  140. package/image-cropper/index.mjs +14 -65
  141. package/image-preview/index.mjs +17 -45
  142. package/image-preview/style.css +1 -1
  143. package/image-viewer/style.css +1 -1
  144. package/index.mjs +666 -496
  145. package/input-number/index.mjs +64 -9
  146. package/keyboard/style.css +1 -1
  147. package/license/index.mjs +1 -1
  148. package/login/index.mjs +1 -1
  149. package/monaco-editor/index.mjs +44 -74
  150. package/name-avatar/style.css +1 -1
  151. package/package.json +18 -17
  152. package/page-index/index.mjs +30 -54
  153. package/page-index-top/index.mjs +25 -47
  154. package/pageable-table/index.mjs +354 -226
  155. package/pageable-table/style.css +1 -1
  156. package/pageable-view/index.mjs +63 -106
  157. package/photo-swipe/index.mjs +51 -74
  158. package/picker-table-view/index.mjs +117 -0
  159. package/present-view/index.mjs +43 -77
  160. package/present-view/style.css +1 -1
  161. package/record-video/index.mjs +1 -1
  162. package/resize-observer/index.mjs +1 -1
  163. package/resize-observer/style.css +1 -1
  164. package/search/index.mjs +2 -2
  165. package/search/style.css +1 -1
  166. package/search-popover/index.mjs +28 -48
  167. package/search-popover/style.css +1 -1
  168. package/sign/index.mjs +2 -2
  169. package/sign-panel/style.css +1 -1
  170. package/skeleton-panel/index.mjs +38 -0
  171. package/skeleton-panel/style.css +1 -0
  172. package/split-pane/index.mjs +31 -49
  173. package/split-pane/style.css +1 -1
  174. package/sub-table/index.mjs +206 -0
  175. package/sub-table/style.css +1 -0
  176. package/sub-table-plus/index.mjs +231 -0
  177. package/sub-table-plus/style.css +1 -0
  178. package/swiper/index.mjs +18 -38
  179. package/swiper/style.css +1 -1
  180. package/tab/index.mjs +1 -1
  181. package/tab/style.css +1 -1
  182. package/tab-item/index.mjs +2 -2
  183. package/table-column/index.mjs +112 -37
  184. package/table-column/style.css +1 -0
  185. package/table-view/index.mjs +178 -135
  186. package/table-view/style.css +1 -1
  187. package/tabs-view/index.mjs +104 -0
  188. package/tabs-view/style.css +1 -0
  189. package/tag-render/index.mjs +13 -24
  190. package/text-ellipsis/index.mjs +1 -1
  191. package/toolbar/index.mjs +115 -58
  192. package/toolbar/style.css +1 -1
  193. package/toolbar-button/index.mjs +92 -48
  194. package/verify/index.mjs +1 -1
  195. package/vue-cron/index.mjs +48 -66
  196. package/vue-qr-code/index.mjs +14 -32
  197. package/vue-quill-editor/index.mjs +3 -3
  198. package/vue-tags-input/index.mjs +1 -1
  199. package/vue-tree-select/index.mjs +352 -393
  200. package/vue-tree-select/style.css +1 -1
  201. package/vue-video-player/index.mjs +36 -67
  202. package/watermark/index.mjs +21 -31
  203. package/web-types.json +9240 -3843
  204. package/x-input-tag/index.mjs +29 -61
  205. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  206. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  207. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  208. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  209. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  210. package/toolbar-button/style.css +0 -1
  211. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1 +1 @@
1
- .process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.process-panel__container .el-select{display:block}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.flow-drawer .listener-filed__title{justify-content:normal;padding-bottom:6px}.flow-drawer .el-select,.flow-dialog .el-select{display:block}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;width:-webkit-max-content;width:-moz-max-content;width:max-content;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
1
+ .process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow:hidden auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.process-panel__container .el-select{display:block}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.flow-drawer .listener-filed__title{justify-content:normal;padding-bottom:6px}.flow-drawer .el-select,.flow-dialog .el-select{display:block}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;width:max-content;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:#409effcc}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow:scroll auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
@@ -1,4 +1,4 @@
1
- import { s as o } from "../chunks/util.CoahLDYn.mjs";
1
+ import { s as o } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const n = {
4
4
  name: "FlowNode",
@@ -1,45 +1,17 @@
1
- var _ = Object.defineProperty, b = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var g = Object.getOwnPropertySymbols;
4
- var M = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
- var u = (i, t, e) => t in i ? _(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, w = (i, t) => {
6
- for (var e in t || (t = {}))
7
- M.call(t, e) && u(i, e, t[e]);
8
- if (g)
9
- for (var e of g(t))
10
- V.call(t, e) && u(i, e, t[e]);
11
- return i;
12
- }, y = (i, t) => b(i, x(t));
13
- var v = (i, t, e) => new Promise((s, n) => {
14
- var l = (r) => {
15
- try {
16
- a(e.next(r));
17
- } catch (o) {
18
- n(o);
19
- }
20
- }, h = (r) => {
21
- try {
22
- a(e.throw(r));
23
- } catch (o) {
24
- n(o);
25
- }
26
- }, a = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(l, h);
27
- a((e = e.apply(i, t)).next());
28
- });
29
- import A from "bpmn-js/lib/NavigatedViewer";
30
- import d from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
31
- import { create as p, attr as c, append as m } from "tiny-svg";
32
- import { query as E } from "min-dom";
33
- import $ from "../easy-popup/index.mjs";
1
+ import u from "bpmn-js/lib/NavigatedViewer";
2
+ import c from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
3
+ import { create as l, attr as a, append as p } from "tiny-svg";
4
+ import { query as w } from "min-dom";
5
+ import y from "../easy-popup/index.mjs";
34
6
  import "../easy-popup/style.css";
35
- import { n as F } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
36
- const f = d.prototype._handleWheel, S = {
7
+ import { n as v } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
+ const m = c.prototype._handleWheel, k = {
37
9
  __init__: ["zoomScroll"],
38
- zoomScroll: ["type", d]
39
- }, B = {
10
+ zoomScroll: ["type", c]
11
+ }, _ = {
40
12
  name: "FlowViewer",
41
13
  components: {
42
- EasyPopup: $
14
+ EasyPopup: y
43
15
  },
44
16
  props: {
45
17
  xml: {
@@ -72,45 +44,46 @@ const f = d.prototype._handleWheel, S = {
72
44
  },
73
45
  watch: {
74
46
  xml(i) {
75
- var t;
76
- (t = this.bpmnViewer) == null || t.importXML(i);
47
+ var e;
48
+ (e = this.bpmnViewer) == null || e.importXML(i);
77
49
  }
78
50
  },
79
51
  mounted() {
80
- d.prototype._handleWheel = this.ctrlKey ? f : function(i) {
81
- const { target: t, deltaMode: e, clientX: s, clientY: n, deltaX: l, deltaY: h } = i;
82
- f.call(this, {
83
- target: t,
84
- deltaMode: e,
85
- clientX: s,
52
+ c.prototype._handleWheel = this.ctrlKey ? m : function(i) {
53
+ const { target: e, deltaMode: t, clientX: o, clientY: n, deltaX: h, deltaY: s } = i;
54
+ m.call(this, {
55
+ target: e,
56
+ deltaMode: t,
57
+ clientX: o,
86
58
  clientY: n,
87
- deltaX: l,
88
- deltaY: h,
59
+ deltaX: h,
60
+ deltaY: s,
89
61
  preventDefault() {
90
62
  i.preventDefault();
91
63
  },
92
64
  ctrlKey: !0
93
65
  });
94
- }, this.bpmnViewer = new A(y(w({}, this.options), {
66
+ }, this.bpmnViewer = new u({
67
+ ...this.options,
95
68
  container: this.$refs.container,
96
- additionalModules: [S]
97
- })), this.bpmnViewer.on("import.done", (i) => {
98
- const t = i.error, e = i.warnings;
99
- t ? this.$emit("error", t) : this.$emit("shown", e), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
100
- const s = this.bpmnViewer.get("eventBus");
101
- this.events && this.events.forEach((o) => {
102
- s.on(o, (k) => {
103
- this.$emit(o.replace(".", "-"), k.element);
69
+ additionalModules: [k]
70
+ }), this.bpmnViewer.on("import.done", (i) => {
71
+ const e = i.error, t = i.warnings;
72
+ e ? this.$emit("error", e) : this.$emit("shown", t), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
73
+ const o = this.bpmnViewer.get("eventBus");
74
+ this.events && this.events.forEach((r) => {
75
+ o.on(r, (g) => {
76
+ this.$emit(r.replace(".", "-"), g.element);
77
+ });
78
+ }), this.nodePopup && o.on("element.mousemove", (r) => {
79
+ r.element.type === "bpmn:UserTask" && requestAnimationFrame(async () => {
80
+ this.element = r.element, await this.$nextTick(), this.$refs.popup.show(r.originalEvent);
104
81
  });
105
- }), this.nodePopup && s.on("element.mousemove", (o) => {
106
- o.element.type === "bpmn:UserTask" && requestAnimationFrame(() => v(this, null, function* () {
107
- this.element = o.element, yield this.$nextTick(), this.$refs.popup.show(o.originalEvent);
108
- }));
109
- }), this.nodePopup && s.on("element.out", () => {
82
+ }), this.nodePopup && o.on("element.out", () => {
110
83
  this.$refs.popup.hide(), this.element = {};
111
84
  }), this.highlightFlow(this.historicActivities, this.activities);
112
- const n = p("marker");
113
- c(n, {
85
+ const n = l("marker");
86
+ a(n, {
114
87
  id: "sequenceflow-arrow-green",
115
88
  viewBox: "0 0 20 20",
116
89
  refX: "11",
@@ -119,13 +92,13 @@ const f = d.prototype._handleWheel, S = {
119
92
  markerHeight: "10",
120
93
  orient: "auto"
121
94
  });
122
- const l = p("path");
123
- c(l, {
95
+ const h = l("path");
96
+ a(h, {
124
97
  d: "M 1 5 L 11 10 L 1 15 Z",
125
98
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
126
- }), m(n, l);
127
- const h = p("marker");
128
- c(h, {
99
+ }), p(n, h);
100
+ const s = l("marker");
101
+ a(s, {
129
102
  id: "conditional-default-flow-marker-green",
130
103
  viewBox: "0 0 20 20",
131
104
  refX: "0",
@@ -134,52 +107,52 @@ const f = d.prototype._handleWheel, S = {
134
107
  markerHeight: "10",
135
108
  orient: "auto"
136
109
  });
137
- const a = p("path");
138
- c(a, {
110
+ const d = l("path");
111
+ a(d, {
139
112
  d: "M 6 4 L 10 16",
140
113
  style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
141
- }), m(h, a);
142
- const r = E("defs", this.$el);
143
- m(r, n), m(r, h);
114
+ }), p(s, d);
115
+ const f = w("defs", this.$el);
116
+ p(f, n), p(f, s);
144
117
  }), this.bpmnViewer.importXML(this.xml), this.$watch(
145
118
  () => ({
146
119
  activities: this.activities,
147
120
  historicActivities: this.historicActivities
148
121
  }),
149
- ({ activities: i, historicActivities: t }) => {
150
- this.highlightFlow(t, i);
122
+ ({ activities: i, historicActivities: e }) => {
123
+ this.highlightFlow(e, i);
151
124
  }
152
125
  );
153
126
  },
154
127
  beforeDestroy() {
155
128
  var i;
156
- d.prototype._handleWheel = f, (i = this.bpmnViewer) == null || i.destroy();
129
+ c.prototype._handleWheel = m, (i = this.bpmnViewer) == null || i.destroy();
157
130
  },
158
131
  methods: {
159
132
  fitViewportCenter(i = "center") {
160
133
  this.canvas.zoom("fit-viewport", i);
161
134
  },
162
- highlightFlow(i, t) {
163
- this.elementRegistry.getAll().forEach((e) => {
164
- ["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(e.type) && (i.includes(e.id) && !t.includes(e.id) ? this.canvas.addMarker(e, "highlight") : this.canvas.removeMarker(e, "highlight")), e.type === "bpmn:SequenceFlow" && (i.includes(e.id) ? this.canvas.addMarker(e, "highlight-line") : this.canvas.removeMarker(e, "highlight-line")), e.type === "bpmn:UserTask" && (t.includes(e.id) ? this.canvas.addMarker(e, "highlight-current") : this.canvas.removeMarker(e, "highlight-current"));
135
+ highlightFlow(i, e) {
136
+ this.elementRegistry.getAll().forEach((t) => {
137
+ ["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(t.type) && (i.includes(t.id) && !e.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
165
138
  });
166
139
  }
167
140
  }
168
141
  };
169
- var C = function() {
170
- var t = this, e = t._self._c;
171
- return e("div", { ref: "container", staticClass: "flow-viewer flow-background-image", style: { "--highlight-color": t.highlightColor } }, [e("EasyPopup", { ref: "popup", attrs: { "append-to-body": "", "flex-column": "", offset: { x: 6, y: 6 } } }, [t._t("default", function() {
172
- return [t._v(" " + t._s(t.element) + " ")];
173
- }, { element: t.element })], 2)], 1);
174
- }, P = [], W = /* @__PURE__ */ F(
175
- B,
176
- C,
177
- P,
142
+ var b = function() {
143
+ var e = this, t = e._self._c;
144
+ return t("div", { ref: "container", staticClass: "flow-viewer flow-background-image", style: { "--highlight-color": e.highlightColor } }, [t("EasyPopup", { ref: "popup", attrs: { "append-to-body": "", "flex-column": "", offset: { x: 6, y: 6 } } }, [e._t("default", function() {
145
+ return [e._v(" " + e._s(e.element) + " ")];
146
+ }, { element: e.element })], 2)], 1);
147
+ }, x = [], M = /* @__PURE__ */ v(
148
+ _,
149
+ b,
150
+ x,
178
151
  !1,
179
152
  null,
180
153
  null
181
154
  );
182
- const D = W.exports;
155
+ const C = M.exports;
183
156
  export {
184
- D as default
157
+ C as default
185
158
  };
@@ -1,5 +1,6 @@
1
- import { h as a } from "vue";
2
- const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], s = ["$emit", "validate", "clearValidate"], n = {
1
+ import { h as o } from "vue";
2
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], n = ["$emit", "validate", "clearValidate"], d = {
3
4
  name: "FormBlock",
4
5
  inject: {
5
6
  elForm: {
@@ -58,7 +59,7 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
58
59
  handler() {
59
60
  this.formConfig.disabled = this.available(), r.forEach((e) => {
60
61
  var i;
61
- e !== "disabled" && (s.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
62
+ e !== "disabled" && (n.includes(e) ? this.formConfig[e] = (i = this.elForm[e]) == null ? void 0 : i.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
62
63
  });
63
64
  }
64
65
  }
@@ -73,30 +74,27 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
73
74
  available() {
74
75
  return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
75
76
  },
76
- dispatch(e, i, o) {
77
+ dispatch(e, i, a) {
77
78
  let t = this.$parent || this.$root, l = t.$options.name;
78
79
  for (; t && (!l || l !== e); )
79
80
  t = t.$parent, t && (l = t.$options.name);
80
- t && t.$emit.apply(t, [i].concat(o));
81
+ t && t.$emit.apply(t, [i].concat(a));
81
82
  },
82
83
  renderDefault() {
83
84
  const {
84
85
  wrapRow: e,
85
86
  gutter: i,
86
- formConfig: o,
87
+ formConfig: a,
87
88
  $scopedSlots: t
88
89
  } = this;
89
- return e ? (
90
- // eslint-disable-next-line no-undef
91
- a("ElRow", {
92
- attrs: {
93
- gutter: i
94
- }
95
- }, [t.default({
96
- disabled: o.disabled
97
- })])
98
- ) : t.default({
99
- disabled: o.disabled
90
+ return e ? o("ElRow", {
91
+ attrs: {
92
+ gutter: i
93
+ }
94
+ }, [t.default({
95
+ disabled: a.disabled
96
+ })]) : t.default({
97
+ disabled: a.disabled
100
98
  });
101
99
  },
102
100
  toggle() {
@@ -110,31 +108,40 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
110
108
  const {
111
109
  renderDefault: e,
112
110
  blockTitle: i,
113
- active: o,
111
+ active: a,
114
112
  expand: t,
115
113
  toggle: l
116
114
  } = this;
117
- return a("div", {
115
+ return o("div", {
118
116
  class: ["form-block", {
119
- "default-active": o
117
+ "default-active": a
120
118
  }]
121
- }, [a("div", {
119
+ }, [o("div", {
122
120
  class: "form-block-title",
123
121
  on: {
124
122
  click: l
125
123
  }
126
- }, [a("span", {
124
+ }, [o("span", {
127
125
  class: "flex-item"
128
- }, [i]), " ", a("i", {
126
+ }, [i]), " ", o("i", {
129
127
  class: t ? "el-icon-arrow-down" : "el-icon-arrow-right"
130
- })]), a("ElCollapseTransition", [a("div", {
128
+ })]), o("ElCollapseTransition", [o("div", {
131
129
  directives: [{
132
130
  name: "show",
133
131
  value: t
134
132
  }]
135
133
  }, [e()])])]);
136
134
  }
137
- };
135
+ }, m = null, c = null;
136
+ var f = /* @__PURE__ */ s(
137
+ d,
138
+ m,
139
+ c,
140
+ !1,
141
+ null,
142
+ null
143
+ );
144
+ const u = f.exports;
138
145
  export {
139
- n as default
146
+ u as default
140
147
  };
@@ -0,0 +1,25 @@
1
+ import { inject as n } from "vue";
2
+ import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const a = {
4
+ name: "FormCard"
5
+ }, f = /* @__PURE__ */ Object.assign(a, {
6
+ setup(s) {
7
+ return { __sfc: !0, formView: n("formView") };
8
+ }
9
+ });
10
+ var c = function() {
11
+ var e;
12
+ var r = this, t = r._self._c, o = r._self._setupProxy;
13
+ return t("div", { staticClass: "form-card", style: (e = o.formView) == null ? void 0 : e.formCardStyle }, [t("div", { staticClass: "form-content" }, [r._t("default")], 2)]);
14
+ }, m = [], i = /* @__PURE__ */ _(
15
+ f,
16
+ c,
17
+ m,
18
+ !1,
19
+ null,
20
+ null
21
+ );
22
+ const u = i.exports;
23
+ export {
24
+ u as default
25
+ };
@@ -1,47 +1,32 @@
1
- var i = Object.defineProperty;
2
- var n = Object.getOwnPropertySymbols;
3
- var p = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
4
- var o = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
5
- for (var r in e || (e = {}))
6
- p.call(e, r) && o(t, r, e[r]);
7
- if (n)
8
- for (var r of n(e))
9
- u.call(e, r) && o(t, r, e[r]);
10
- return t;
11
- };
12
- import { f as c } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
13
- import { f as d } from "../chunks/form-pick-mixin.BFTIVn_i.mjs";
14
- import s from "element-ui/lib/cascader";
15
- import { d as m, n as f } from "../chunks/index.MAFc4eFi.mjs";
16
- import { setParent as h, findTreeChildren as y } from "@web-utils/core";
17
- import { cloneDeep as v } from "@web-utils/integrations/lodash";
18
- import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
19
- const b = Object.keys(s.props || s.default.props).filter(
1
+ import { f as a } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
3
+ import o from "element-ui/lib/cascader";
4
+ import { c as n, n as u } from "../chunks/index.d3MV3Wq2.mjs";
5
+ import { isArray as s, setParent as p, isString as c, findTreeChildren as f } from "@web-utils/core";
6
+ import { cloneDeep as d } from "@web-utils/integrations/lodash";
7
+ import { d as m } from "../chunks/dictionary.DqiP9x2m.mjs";
8
+ import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
9
+ const y = Object.keys(o.props).filter(
20
10
  (t) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(t)
21
- ), S = {
11
+ ), v = {
22
12
  name: "FormCascader",
23
- mixins: [c, d],
13
+ mixins: [a, i, m],
24
14
  props: {
25
- value: {
26
- type: [String, Number]
27
- },
15
+ value: [String, Number, Array],
28
16
  options: {
29
17
  type: Array,
30
18
  default: () => []
31
19
  },
32
- showAllLevels: Boolean,
33
- separator: {
34
- type: String,
35
- default: "/"
36
- },
37
- last: {
20
+ showAllLevels: {
38
21
  type: Boolean,
39
22
  default: !0
40
23
  },
41
- checkStrictly: {
42
- type: Boolean,
43
- default: !0
24
+ separator: {
25
+ type: String,
26
+ default: "/"
44
27
  },
28
+ last: Boolean,
29
+ checkStrictly: Boolean,
45
30
  labelKey: {
46
31
  type: String,
47
32
  default: "label"
@@ -49,64 +34,82 @@ const b = Object.keys(s.props || s.default.props).filter(
49
34
  valueKey: {
50
35
  type: String,
51
36
  default: "value"
37
+ },
38
+ emitPath: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ join: {
43
+ type: Boolean,
44
+ default: !0
45
+ },
46
+ idAsValue: {
47
+ type: Boolean,
48
+ default: !0
49
+ },
50
+ labelAsValue: Boolean,
51
+ treeDict: {
52
+ type: Boolean,
53
+ default: !0
52
54
  }
53
55
  },
54
- data() {
55
- return {
56
- innerOptions: []
57
- };
58
- },
59
56
  computed: {
60
57
  inputProps() {
61
- return m(l(l({}, f(this.$attrs)), this.$props), b);
58
+ return n({ ...u(this.$attrs), ...this.$props }, y);
62
59
  },
63
60
  inputVal() {
64
- let [t] = y(this.innerOptions, (r) => r[this.valueKey] === this.value);
65
- const e = [];
66
- for (; t; )
67
- e.push(t[this.valueKey]), t = t.parent;
68
- return e.reverse();
69
- }
70
- },
71
- watch: {
72
- options: {
73
- immediate: !0,
74
- handler(t) {
75
- if (t) {
76
- const e = v(t);
77
- h(e), this.innerOptions = e;
78
- } else
79
- this.innerOptions = [];
61
+ if (this.join)
62
+ return s(this.value) ? this.value : c(this.value) ? this.value.split(this.separator) : [];
63
+ if (this.last) {
64
+ let [t] = f(this.innerOptions, (r) => r[this.valueKey] === this.value);
65
+ const e = [];
66
+ for (; t; )
67
+ e.push(t[this.valueKey]), t = t.parent;
68
+ return e.reverse();
80
69
  }
70
+ return this.value;
71
+ },
72
+ innerOptions() {
73
+ if (this.dictType)
74
+ return this.dictItems;
75
+ if (this.options) {
76
+ const t = d(this.options);
77
+ return this.last && p(t), t;
78
+ } else
79
+ return [];
81
80
  }
82
81
  },
83
82
  methods: {
84
83
  emitInput(t) {
85
- const e = this.last ? t[t.length - 1] : t;
86
- this.$emit("input", e);
84
+ if (this.join && s(t))
85
+ this.$emit("input", t.join(this.separator));
86
+ else {
87
+ const e = this.last ? t[t.length - 1] : t;
88
+ this.$emit("input", e);
89
+ }
87
90
  }
88
91
  }
89
92
  };
90
- var k = function() {
93
+ var _ = function() {
91
94
  var e = this, r = e._self._c;
92
95
  return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
93
96
  return [e._t("default", function() {
94
- return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
97
+ return [r("ElCascader", e._g(e._b({ class: { "is-readonly": e.readonly }, staticStyle: { width: "100%" }, attrs: { clearable: "", value: e.inputVal, "show-all-levels": e.showAllLevels, separator: e.separator, readonly: e.readonly, options: e.innerOptions, props: { checkStrictly: e.checkStrictly, label: e.labelKey, value: e.valueKey, emitPath: e.emitPath, expandTrigger: "hover" }, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElCascader", e.inputProps, !1), e.listeners))];
95
98
  })];
96
- }, proxy: !0 }, { key: "error", fn: function({ error: a }) {
97
- return [e._t("error", null, { error: a })];
99
+ }, proxy: !0 }, { key: "error", fn: function({ error: l }) {
100
+ return [e._t("error", null, { error: l })];
98
101
  } }, { key: "label", fn: function() {
99
102
  return [e._t("label")];
100
103
  }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
101
- }, P = [], w = /* @__PURE__ */ _(
102
- S,
103
- k,
104
- P,
104
+ }, b = [], P = /* @__PURE__ */ h(
105
+ v,
106
+ _,
107
+ b,
105
108
  !1,
106
109
  null,
107
110
  null
108
111
  );
109
- const B = w.exports;
112
+ const K = P.exports;
110
113
  export {
111
- B as default
114
+ K as default
112
115
  };
@@ -0,0 +1,71 @@
1
+ import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
2
+ import a from "element-ui/lib/checkbox";
3
+ import { v as s, c as n, n as i } from "../chunks/index.d3MV3Wq2.mjs";
4
+ import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ const p = Object.keys(a.props).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), c = {
6
+ name: "FormCheckbox",
7
+ mixins: [o],
8
+ props: {
9
+ value: [String, Number],
10
+ readonlyGrey: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ picker: Boolean,
15
+ trueLabel: {
16
+ type: [String, Number],
17
+ default: "1"
18
+ },
19
+ falseLabel: {
20
+ type: [String, Number],
21
+ default: "0"
22
+ }
23
+ },
24
+ data() {
25
+ return {
26
+ isValidValue: !1
27
+ };
28
+ },
29
+ computed: {
30
+ inputProps() {
31
+ return n({ ...i(this.$attrs), ...this.$props }, p);
32
+ }
33
+ },
34
+ watch: {
35
+ async value(r) {
36
+ this.isValidValue = await s(this.prop, r, this.computeRules);
37
+ }
38
+ },
39
+ methods: {
40
+ emitInput(r) {
41
+ this.$emit("input", r);
42
+ }
43
+ }
44
+ };
45
+ var d = function() {
46
+ var e = this, t = e._self._c;
47
+ return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
48
+ return [e._t("default", function() {
49
+ return [t("ElCheckbox", e._g(e._b({ ref: "input", class: { "is-readonly": e.readonlyGrey && e.readonly && !e.picker, "el-input-cursor-pointer": e.picker && !e.inputDisabled }, attrs: { value: e.value, readonly: e.readonly || e.picker, "true-label": e.trueLabel, "false-label": e.falseLabel, disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { input: e.emitInput } }, "ElCheckbox", e.inputProps, !1), e.listeners)), e.isValidValue && e.$slots.warn ? t("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
50
+ })];
51
+ }, proxy: !0 }, { key: "error", fn: function({ error: l }) {
52
+ return [e.$scopedSlots.error && e.$scopedSlots.error(l) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
53
+ return [e._v(e._s(l))];
54
+ }, { error: l })], 2) : e._e()];
55
+ } }, { key: "label", fn: function() {
56
+ return [e._t("label")];
57
+ }, proxy: !0 }, { key: "tips", fn: function() {
58
+ return [e._t("tips")];
59
+ }, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
60
+ }, f = [], m = /* @__PURE__ */ u(
61
+ c,
62
+ d,
63
+ f,
64
+ !1,
65
+ null,
66
+ null
67
+ );
68
+ const v = m.exports;
69
+ export {
70
+ v as default
71
+ };