@web-utils/component 2.7.20 → 2.7.22

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 (290) hide show
  1. package/dist/chunks/{config.46422d7f.js → config.7dec2bf2.js} +2 -2
  2. package/dist/chunks/confirmable-mixin.35bd1934.js +104 -0
  3. package/dist/chunks/dataformat.9cc4428a.js +158 -0
  4. package/dist/chunks/dayjs.ed2e1b73.js +247 -0
  5. package/dist/chunks/detail.d47a021c.js +29 -0
  6. package/dist/chunks/dic.9de2fe5a.js +135 -0
  7. package/dist/chunks/{event.dd6f522d.js → event.fc358074.js} +31 -31
  8. package/dist/chunks/{form-input-mixin.ff5b58f7.js → form-input-mixin.760cd65d.js} +6 -6
  9. package/dist/chunks/form-item-mixin.fa314b67.js +139 -0
  10. package/dist/chunks/{form-pick-mixin.61ad06b2.js → form-pick-mixin.c4e0391b.js} +2 -2
  11. package/dist/chunks/init.e0133910.js +122 -0
  12. package/dist/chunks/{input-number-mixin.41a066be.js → input-number-mixin.6849fa63.js} +4 -4
  13. package/dist/chunks/{mixins.5a78e0db.js → mixins.6a394a6c.js} +4 -4
  14. package/dist/chunks/{packages.1fc9ccba.js → packages.419bde01.js} +7 -7
  15. package/dist/chunks/permission.07c49abf.js +16 -0
  16. package/dist/chunks/slot.a7387ecc.js +27 -0
  17. package/dist/chunks/tab-mixin.9d568df9.js +81 -0
  18. package/dist/chunks/util.89913643.js +261 -0
  19. package/dist/chunks/utils.d7f73f8d.js +185 -0
  20. package/dist/chunks/utils.f44207f4.js +26 -0
  21. package/dist/chunks/vueComponentNormalizer.77ec6792.js +32 -0
  22. package/dist/components/address-input/index.js +36 -36
  23. package/dist/components/affix/index.js +39 -39
  24. package/dist/components/aside-menu/index.js +29 -29
  25. package/dist/components/avatar/index.js +43 -43
  26. package/dist/components/awesome-button/index.js +64 -34
  27. package/dist/components/base.css +1 -1
  28. package/dist/components/capsule-tab/index.js +26 -26
  29. package/dist/components/card/index.js +49 -49
  30. package/dist/components/carousel/index.js +35 -35
  31. package/dist/components/chat/index.js +203 -203
  32. package/dist/components/chunk-file-uploader/index.js +46 -46
  33. package/dist/components/chunk-file-uploader-button/index.js +22 -22
  34. package/dist/components/chunk-file-uploader-drop/index.js +47 -29
  35. package/dist/components/chunk-file-uploader-file/index.js +119 -119
  36. package/dist/components/chunk-file-uploader-files/index.js +27 -27
  37. package/dist/components/chunk-file-uploader-list/index.js +27 -27
  38. package/dist/components/chunk-file-uploader-un-support/index.js +27 -27
  39. package/dist/components/code-mirror-editor/index.js +136 -136
  40. package/dist/components/color-picker/index.js +57 -39
  41. package/dist/components/column/index.js +66 -66
  42. package/dist/components/column-default/index.js +54 -54
  43. package/dist/components/column-dynamic/index.js +54 -54
  44. package/dist/components/column-menu/index.js +128 -128
  45. package/dist/components/column-slot/index.js +168 -168
  46. package/dist/components/comment/index.js +33 -33
  47. package/dist/components/confirm-button/index.js +18 -18
  48. package/dist/components/confirmable/index.js +17 -17
  49. package/dist/components/context-menu/index.js +89 -89
  50. package/dist/components/count-up/index.js +50 -39
  51. package/dist/components/custom-scrollbar/index.js +62 -49
  52. package/dist/components/data-box/index.js +41 -41
  53. package/dist/components/data-card/index.js +38 -38
  54. package/dist/components/data-cardtext/index.js +33 -33
  55. package/dist/components/data-display/index.js +37 -37
  56. package/dist/components/data-icons/index.js +40 -40
  57. package/dist/components/data-imgtext/index.js +44 -44
  58. package/dist/components/data-operatext/index.js +44 -44
  59. package/dist/components/data-panel/index.js +38 -38
  60. package/dist/components/data-pay/index.js +60 -60
  61. package/dist/components/data-price/index.js +38 -38
  62. package/dist/components/data-progress/index.js +39 -39
  63. package/dist/components/data-rotate/index.js +39 -39
  64. package/dist/components/data-table-picker/index.js +151 -53
  65. package/dist/components/data-tabs/index.js +39 -39
  66. package/dist/components/data-tabs/style.css +1 -1
  67. package/dist/components/dialog-column/index.js +50 -50
  68. package/dist/components/dialog-excel/index.js +68 -68
  69. package/dist/components/dialog-filter/index.js +84 -84
  70. package/dist/components/dialog-form/index.js +89 -89
  71. package/dist/components/dynamic-table/index.js +71 -71
  72. package/dist/components/e-charts/index.js +95 -94
  73. package/dist/components/easy-popup/index.js +87 -0
  74. package/dist/components/easy-popup/style.css +1 -0
  75. package/dist/components/editable-progress/index.js +48 -48
  76. package/dist/components/editable-tree/index.js +701 -348
  77. package/dist/components/egd-collapse/index.js +29 -29
  78. package/dist/components/egd-collapse-item/index.js +51 -51
  79. package/dist/components/element-dialog/index.js +74 -65
  80. package/dist/components/empty-view/index.js +26 -26
  81. package/dist/components/error-view/index.js +25 -25
  82. package/dist/components/flex-column/index.js +31 -19
  83. package/dist/components/flex-item/index.js +32 -20
  84. package/dist/components/flex-row/index.js +31 -19
  85. package/dist/components/flex-scroller/index.js +24 -24
  86. package/dist/components/flex-scroller/style.css +1 -1
  87. package/dist/components/flow/index.js +100 -100
  88. package/dist/components/flow-node/index.js +37 -37
  89. package/dist/components/flow-viewer/index.js +162 -0
  90. package/dist/components/flow-viewer/style.css +1 -0
  91. package/dist/components/form-button/index.js +32 -32
  92. package/dist/components/form-cascader/index.js +73 -61
  93. package/dist/components/form-checkbox-group/index.js +72 -61
  94. package/dist/components/form-date-picker/index.js +71 -62
  95. package/dist/components/form-group/index.js +38 -38
  96. package/dist/components/form-holder/index.js +50 -32
  97. package/dist/components/form-input/index.js +61 -50
  98. package/dist/components/form-input-email/index.js +55 -44
  99. package/dist/components/form-input-id-card/index.js +60 -49
  100. package/dist/components/form-input-number/index.js +60 -49
  101. package/dist/components/form-input-phone-number/index.js +56 -45
  102. package/dist/components/form-input-time/index.js +59 -48
  103. package/dist/components/form-item/index.js +107 -79
  104. package/dist/components/form-item-config-provider/index.js +19 -19
  105. package/dist/components/form-item-group/index.js +65 -65
  106. package/dist/components/form-radio-group/index.js +72 -61
  107. package/dist/components/form-select/index.js +63 -52
  108. package/dist/components/form-switch/index.js +56 -45
  109. package/dist/components/form-temp/index.js +50 -50
  110. package/dist/components/form-textarea/index.js +55 -44
  111. package/dist/components/form-view/index.js +172 -149
  112. package/dist/components/fy-array/index.js +64 -64
  113. package/dist/components/fy-article/index.js +34 -34
  114. package/dist/components/fy-cascader/index.js +52 -52
  115. package/dist/components/fy-checkbox/index.js +52 -52
  116. package/dist/components/fy-code/index.js +30 -30
  117. package/dist/components/fy-curd/index.js +317 -317
  118. package/dist/components/fy-date/index.js +45 -45
  119. package/dist/components/fy-dialog-form/index.js +115 -115
  120. package/dist/components/fy-draggable/index.js +120 -120
  121. package/dist/components/fy-draggable/style.css +1 -1
  122. package/dist/components/fy-dynamic/index.js +126 -126
  123. package/dist/components/fy-empty/index.js +26 -26
  124. package/dist/components/fy-form/index.js +384 -366
  125. package/dist/components/fy-form-design/index.js +6956 -459
  126. package/dist/components/fy-form-design/style.css +1 -1
  127. package/dist/components/fy-form-menu/index.js +45 -45
  128. package/dist/components/fy-input/index.js +61 -61
  129. package/dist/components/fy-input-color/index.js +41 -41
  130. package/dist/components/fy-input-icon/index.js +70 -70
  131. package/dist/components/fy-input-map/index.js +102 -102
  132. package/dist/components/fy-input-number/index.js +39 -39
  133. package/dist/components/fy-input-table/index.js +70 -70
  134. package/dist/components/fy-input-tree/index.js +105 -105
  135. package/dist/components/fy-progress/index.js +25 -25
  136. package/dist/components/fy-radio/index.js +36 -36
  137. package/dist/components/fy-rate/index.js +40 -40
  138. package/dist/components/fy-select/index.js +101 -101
  139. package/dist/components/fy-slider/index.js +42 -42
  140. package/dist/components/fy-switch/index.js +37 -37
  141. package/dist/components/fy-tabs/index.js +35 -35
  142. package/dist/components/fy-time/index.js +47 -47
  143. package/dist/components/fy-title/index.js +23 -23
  144. package/dist/components/fy-tree/index.js +157 -157
  145. package/dist/components/fy-u-editor/index.js +138 -105
  146. package/dist/components/fy-upload/index.js +270 -270
  147. package/dist/components/guide-steps/index.js +41 -41
  148. package/dist/components/header-menu/index.js +94 -94
  149. package/dist/components/header-search/index.js +121 -121
  150. package/dist/components/highlight-j-s/index.js +76 -0
  151. package/dist/components/highlight-j-s/style.css +1 -0
  152. package/dist/components/icon-card/index.js +28 -28
  153. package/dist/components/icon-temp/index.js +24 -24
  154. package/dist/components/iframe-window/index.js +24 -24
  155. package/dist/components/iframe-window/style.css +1 -1
  156. package/dist/components/image-cropper/index.js +128 -119
  157. package/dist/components/image-preview/index.js +140 -130
  158. package/dist/components/image-viewer/index.js +35 -35
  159. package/dist/components/input-number/index.js +116 -116
  160. package/dist/components/input-number-range/index.js +37 -37
  161. package/dist/components/j-s-x-component/index.js +4 -4
  162. package/dist/components/keep-view-alive/index.js +71 -71
  163. package/dist/components/keyboard/index.js +182 -182
  164. package/dist/components/keyboard/style.css +1 -1
  165. package/dist/components/license/index.js +54 -54
  166. package/dist/components/loading-view/index.js +25 -25
  167. package/dist/components/login/index.js +94 -94
  168. package/dist/components/name-avatar/index.js +26 -26
  169. package/dist/components/nav-bar/index.js +22 -22
  170. package/dist/components/not-implement/index.js +22 -22
  171. package/dist/components/notice/index.js +55 -55
  172. package/dist/components/page/index.js +20 -20
  173. package/dist/components/page-header/index.js +28 -28
  174. package/dist/components/page-index/index.js +86 -62
  175. package/dist/components/page-index-top/index.js +73 -51
  176. package/dist/components/page-skeleton/index.js +28 -28
  177. package/dist/components/page-skeleton-new/index.js +38 -38
  178. package/dist/components/pageable-table/index.js +206 -161
  179. package/dist/components/pageable-table/style.css +1 -1
  180. package/dist/components/pageable-view/index.js +169 -124
  181. package/dist/components/pageable-view/style.css +1 -1
  182. package/dist/components/photo-swipe/index.js +88 -66
  183. package/dist/components/process-designer/index.js +4668 -0
  184. package/dist/components/process-designer/style.css +1 -0
  185. package/dist/components/properties-panel/index.js +4791 -0
  186. package/dist/components/properties-panel/style.css +1 -0
  187. package/dist/components/queue/index.js +24 -24
  188. package/dist/components/record-video/index.js +55 -55
  189. package/dist/components/resize-observer/index.js +26 -26
  190. package/dist/components/search/index.js +64 -64
  191. package/dist/components/search-popover/index.js +119 -99
  192. package/dist/components/sign/index.js +66 -66
  193. package/dist/components/sign-panel/index.js +78 -78
  194. package/dist/components/sign-panel/style.css +1 -1
  195. package/dist/components/skeleton/index.js +35 -35
  196. package/dist/components/split-pane/index.js +108 -90
  197. package/dist/components/stateful/index.js +29 -29
  198. package/dist/components/static-pageable-table/index.js +30 -30
  199. package/dist/components/swiper/index.js +93 -73
  200. package/dist/components/tab/index.js +47 -47
  201. package/dist/components/tab-item/index.js +29 -29
  202. package/dist/components/table-column/index.js +37 -27
  203. package/dist/components/table-page/index.js +51 -51
  204. package/dist/components/table-view/index.js +175 -148
  205. package/dist/components/tag-render/index.js +50 -39
  206. package/dist/components/text-ellipsis/index.js +40 -40
  207. package/dist/components/tinymce-editor/index.js +85 -67
  208. package/dist/components/tinymce-wrapper/index.js +88 -78
  209. package/dist/components/toolbar/index.js +52 -52
  210. package/dist/components/toolbar-button/index.js +56 -38
  211. package/dist/components/trigger/index.js +27 -27
  212. package/dist/components/verify/index.js +33 -33
  213. package/dist/components/vue-tags-input/index.js +137 -137
  214. package/dist/components/watermark/index.js +37 -27
  215. package/dist/components/watermark/style.css +1 -1
  216. package/dist/index.css +1983 -228
  217. package/dist/index.es.js +23132 -12684
  218. package/package.json +18 -6
  219. package/web-types.json +307 -1
  220. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +0 -302
  221. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +0 -51
  222. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +0 -24
  223. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +0 -52
  224. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.116fbad4.js +0 -104
  225. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.99082e47.js +0 -133
  226. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +0 -96
  227. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +0 -48
  228. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +0 -96
  229. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +0 -31
  230. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +0 -130
  231. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +0 -125
  232. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.dfc91f07.js +0 -488
  233. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +0 -99
  234. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +0 -54
  235. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.b27540fd.js +0 -344
  236. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +0 -88
  237. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +0 -87
  238. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js +0 -465
  239. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +0 -240
  240. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.129c0ced.js +0 -476
  241. package/dist/chunks/FormConfig.vue_vue_type_template_lang.82463ce5.js +0 -220
  242. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js +0 -1821
  243. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.d4b05679.js +0 -247
  244. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js +0 -271
  245. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +0 -24
  246. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js +0 -229
  247. package/dist/chunks/confirmable-mixin.3a79781b.js +0 -75
  248. package/dist/chunks/dataformat.65b92bfe.js +0 -158
  249. package/dist/chunks/detail.d67573b1.js +0 -28
  250. package/dist/chunks/dic.70feb9b4.js +0 -135
  251. package/dist/chunks/form-item-mixin.79f6eaff.js +0 -128
  252. package/dist/chunks/init.7c58eb34.js +0 -122
  253. package/dist/chunks/monaco.cefcb9f5.js +0 -290
  254. package/dist/chunks/permission.ce5d2121.js +0 -16
  255. package/dist/chunks/slot.4b391395.js +0 -27
  256. package/dist/chunks/tab-mixin.8c0142e0.js +0 -81
  257. package/dist/chunks/util.23fe58fb.js +0 -261
  258. package/dist/chunks/utils.97652d86.js +0 -26
  259. package/dist/chunks/utils.fa73de78.js +0 -185
  260. package/dist/chunks/vueComponentNormalizer.71e2aa87.js +0 -32
  261. package/dist/components/afd-column/index.js +0 -57
  262. package/dist/components/config-array/index.js +0 -28
  263. package/dist/components/config-color/index.js +0 -28
  264. package/dist/components/config-custom/index.js +0 -62
  265. package/dist/components/config-date/index.js +0 -28
  266. package/dist/components/config-dynamic/index.js +0 -28
  267. package/dist/components/config-event/index.js +0 -74
  268. package/dist/components/config-group/index.js +0 -36
  269. package/dist/components/config-input/index.js +0 -29
  270. package/dist/components/config-map/index.js +0 -28
  271. package/dist/components/config-number/index.js +0 -28
  272. package/dist/components/config-rate/index.js +0 -71
  273. package/dist/components/config-rate/style.css +0 -1
  274. package/dist/components/config-select/index.js +0 -90
  275. package/dist/components/config-slider/index.js +0 -28
  276. package/dist/components/config-switch/index.js +0 -33
  277. package/dist/components/config-switch/style.css +0 -1
  278. package/dist/components/config-table/index.js +0 -122
  279. package/dist/components/config-textarea/index.js +0 -28
  280. package/dist/components/config-title/index.js +0 -33
  281. package/dist/components/config-tree/index.js +0 -122
  282. package/dist/components/config-tree/style.css +0 -1
  283. package/dist/components/config-u-editor/index.js +0 -34
  284. package/dist/components/config-upload/index.js +0 -58
  285. package/dist/components/form-config/index.js +0 -28
  286. package/dist/components/widget-config/index.js +0 -110
  287. package/dist/components/widget-form/index.js +0 -71
  288. package/dist/components/widget-form-group/index.js +0 -96
  289. package/dist/components/widget-form-item/index.js +0 -71
  290. package/dist/components/widget-form-table/index.js +0 -95
@@ -0,0 +1 @@
1
+ .process-panel__container{box-sizing:border-box;padding:0 8px;border-left:1px solid #eeeeee;box-shadow:0 0 8px #ccc;max-height:100%;overflow-y:auto}.panel-tab__title{font-weight:600;padding:0 8px;font-size:1.1em;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{width:100%;box-sizing:border-box;border-top:1px solid #eeeeee;padding:8px 16px}.panel-tab__content .panel-tab__content--title{display:flex;justify-content:space-between;padding-bottom:8px}.panel-tab__content .panel-tab__content--title span{flex:1;text-align:left}.element-property{width:100%;display:flex;align-items:flex-start;margin:8px 0}.element-property .element-property__label{display:block;width:90px;text-align:right;overflow:hidden;padding-right:12px;line-height:32px;font-size:14px;box-sizing:border-box}.element-property .element-property__value{flex:1;line-height:32px}.element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.list-property{flex-direction:column}.list-property .element-listener-item{width:100%;display:inline-grid;grid-template-columns:16px auto 32px 32px;grid-column-gap:8px}.list-property .element-listener-item+.element-listener-item{margin-top:8px}.listener-filed__title{display:inline-flex;width:100%;justify-content:space-between;align-items:center;margin-top:0}.listener-filed__title span{width:200px;text-align:left;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{margin-top:8px;width:100%;display:inline-flex;justify-content:space-around}.element-drawer__button>.el-button{width:100%}.el-collapse-item__content{padding-bottom:0}.el-input.is-disabled .el-input__inner{color:#999}.el-form-item.el-form-item--mini{margin-bottom:0}.el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}
@@ -1,17 +1,17 @@
1
- import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
2
- var o = function() {
3
- var e = this, t = e.$createElement, n = e._self._c || t;
4
- return n("div", {
1
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
2
+ var render = function() {
3
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
4
+ return _c("div", {
5
5
  class: ["avue-queue", {
6
- "avue-queue--block": e.block
6
+ "avue-queue--block": _vm.block
7
7
  }]
8
- }, [n("div", {
8
+ }, [_c("div", {
9
9
  ref: "queue",
10
10
  staticClass: "animated",
11
- class: e.animate
12
- }, [e._t("default")], 2)]);
13
- }, i = [];
14
- const l = {
11
+ class: _vm.animate
12
+ }, [_vm._t("default")], 2)]);
13
+ }, staticRenderFns = [];
14
+ const __vue2_script = {
15
15
  name: "Queue",
16
16
  props: {
17
17
  enter: {
@@ -47,30 +47,30 @@ const l = {
47
47
  },
48
48
  methods: {
49
49
  handleAnimate() {
50
- const e = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, t = document.documentElement.clientHeight, n = this.$refs.queue;
51
- e + t > n.offsetTop ? setTimeout(() => {
50
+ const top = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop, vh = document.documentElement.clientHeight, v = this.$refs.queue;
51
+ top + vh > v.offsetTop ? setTimeout(() => {
52
52
  this.animate = [this.enter, "avue-opacity--active"];
53
53
  }, this.delay) : this.animate = ["avue-opacity"];
54
54
  }
55
55
  }
56
- }, a = {};
57
- var u = /* @__PURE__ */ s(
58
- l,
59
- o,
60
- i,
56
+ }, __cssModules = {};
57
+ var __component__ = /* @__PURE__ */ normalizeComponent(
58
+ __vue2_script,
59
+ render,
60
+ staticRenderFns,
61
61
  !1,
62
- r,
62
+ __vue2_injectStyles,
63
63
  null,
64
64
  null,
65
65
  null
66
66
  );
67
- function r(e) {
68
- for (let t in a)
69
- this[t] = a[t];
67
+ function __vue2_injectStyles(context) {
68
+ for (let o in __cssModules)
69
+ this[o] = __cssModules[o];
70
70
  }
71
- const d = /* @__PURE__ */ function() {
72
- return u.exports;
71
+ const Queue = /* @__PURE__ */ function() {
72
+ return __component__.exports;
73
73
  }();
74
74
  export {
75
- d as default
75
+ Queue as default
76
76
  };
@@ -1,13 +1,13 @@
1
- import { s as r } from "../../chunks/util.23fe58fb.js";
2
- import { n as o } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- let n = class {
1
+ import { s as setPx } from "../../chunks/util.89913643.js";
2
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
3
+ let RecordVideo$1 = class {
4
4
  /**
5
5
  * 构造函数
6
6
  *
7
7
  * @param {Object} videoObj 视频对象
8
8
  */
9
- constructor(t) {
10
- this.video = t, this.mediaRecorder = null, this.chunks = [];
9
+ constructor(videoObj) {
10
+ this.video = videoObj, this.mediaRecorder = null, this.chunks = [];
11
11
  }
12
12
  /**
13
13
  * 初始化
@@ -15,7 +15,7 @@ let n = class {
15
15
  * @return {Object} promise
16
16
  */
17
17
  init() {
18
- return new Promise((t, i) => {
18
+ return new Promise((resolve, reject) => {
19
19
  navigator.mediaDevices.getUserMedia({
20
20
  audio: !0,
21
21
  video: !0
@@ -23,14 +23,14 @@ let n = class {
23
23
  // width: this.videoWidth,
24
24
  // height: this.videoHeight
25
25
  // }
26
- }).then((s) => {
27
- "srcObject" in this.video ? this.video.srcObject = s : this.video.src = window.URL.createObjectURL(s), this.video.addEventListener("loadmetadata", () => {
26
+ }).then((stream) => {
27
+ "srcObject" in this.video ? this.video.srcObject = stream : this.video.src = window.URL.createObjectURL(stream), this.video.addEventListener("loadmetadata", () => {
28
28
  this.video.play();
29
- }), this.mediaRecorder = new MediaRecorder(s), this.mediaRecorder.addEventListener("dataavailable", (d) => {
30
- this.chunks.push(d.data);
31
- }), t();
32
- }).catch((s) => {
33
- i(s);
29
+ }), this.mediaRecorder = new MediaRecorder(stream), this.mediaRecorder.addEventListener("dataavailable", (e) => {
30
+ this.chunks.push(e.data);
31
+ }), resolve();
32
+ }).catch((error) => {
33
+ reject(error);
34
34
  });
35
35
  });
36
36
  }
@@ -56,29 +56,29 @@ let n = class {
56
56
  return !0;
57
57
  }
58
58
  };
59
- var c = function() {
60
- var e = this, t = e.$createElement, i = e._self._c || t;
61
- return i("div", {
59
+ var render = function() {
60
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
61
+ return _c("div", {
62
62
  staticClass: "avue-video",
63
- style: e.styleName
64
- }, [i("div", {
63
+ style: _vm.styleName
64
+ }, [_c("div", {
65
65
  staticClass: "avue-video__border"
66
- }, [i("span", {
67
- style: e.borderStyleName
68
- }), i("span", {
69
- style: e.borderStyleName
70
- }), i("span", {
71
- style: e.borderStyleName
72
- }), i("span", {
73
- style: e.borderStyleName
74
- })]), i("img", {
66
+ }, [_c("span", {
67
+ style: _vm.borderStyleName
68
+ }), _c("span", {
69
+ style: _vm.borderStyleName
70
+ }), _c("span", {
71
+ style: _vm.borderStyleName
72
+ }), _c("span", {
73
+ style: _vm.borderStyleName
74
+ })]), _c("img", {
75
75
  staticClass: "avue-video__img",
76
- style: e.imgStyleName,
76
+ style: _vm.imgStyleName,
77
77
  attrs: {
78
- src: e.background,
78
+ src: _vm.background,
79
79
  alt: ""
80
80
  }
81
- }), i("video", {
81
+ }), _c("video", {
82
82
  ref: "main",
83
83
  staticClass: "avue-video__main",
84
84
  attrs: {
@@ -89,8 +89,8 @@ var c = function() {
89
89
  muted: !0
90
90
  }
91
91
  })]);
92
- }, l = [];
93
- const h = {
92
+ }, staticRenderFns = [];
93
+ const __vue2_script = {
94
94
  name: "RecordVideo",
95
95
  props: {
96
96
  background: {
@@ -109,19 +109,19 @@ const h = {
109
109
  computed: {
110
110
  styleName() {
111
111
  return {
112
- width: r(this.width)
112
+ width: setPx(this.width)
113
113
  };
114
114
  },
115
115
  imgStyleName() {
116
116
  return {
117
- width: r(this.width / 2)
117
+ width: setPx(this.width / 2)
118
118
  };
119
119
  },
120
120
  borderStyleName() {
121
121
  return {
122
- width: r(this.width / 15),
123
- height: r(this.width / 15),
124
- borderWidth: r(5)
122
+ width: setPx(this.width / 15),
123
+ height: setPx(this.width / 15),
124
+ borderWidth: setPx(5)
125
125
  };
126
126
  }
127
127
  },
@@ -130,7 +130,7 @@ const h = {
130
130
  },
131
131
  methods: {
132
132
  init() {
133
- this.videoObj = new n(this.$refs.main), this.videoObj.init().then(() => {
133
+ this.videoObj = new RecordVideo$1(this.$refs.main), this.videoObj.init().then(() => {
134
134
  this.videoObj.mediaRecorder.addEventListener("stop", this.getData, !1);
135
135
  });
136
136
  },
@@ -141,33 +141,33 @@ const h = {
141
141
  this.videoObj.stopRecord();
142
142
  },
143
143
  getData() {
144
- const e = new Blob(this.videoObj.chunks, {
144
+ const blob = new Blob(this.videoObj.chunks, {
145
145
  type: "video/mp4"
146
- }), t = new FileReader();
147
- t.readAsDataURL(e), t.addEventListener("loadend", () => {
148
- const i = t.result;
149
- this.$emit("data-change", i);
146
+ }), reader = new FileReader();
147
+ reader.readAsDataURL(blob), reader.addEventListener("loadend", () => {
148
+ const videoBase64 = reader.result;
149
+ this.$emit("data-change", videoBase64);
150
150
  });
151
151
  }
152
152
  }
153
- }, a = {};
154
- var v = /* @__PURE__ */ o(
155
- h,
156
- c,
157
- l,
153
+ }, __cssModules = {};
154
+ var __component__ = /* @__PURE__ */ normalizeComponent(
155
+ __vue2_script,
156
+ render,
157
+ staticRenderFns,
158
158
  !1,
159
- m,
159
+ __vue2_injectStyles,
160
160
  null,
161
161
  null,
162
162
  null
163
163
  );
164
- function m(e) {
165
- for (let t in a)
166
- this[t] = a[t];
164
+ function __vue2_injectStyles(context) {
165
+ for (let o in __cssModules)
166
+ this[o] = __cssModules[o];
167
167
  }
168
- const R = /* @__PURE__ */ function() {
169
- return v.exports;
168
+ const RecordVideo2 = /* @__PURE__ */ function() {
169
+ return __component__.exports;
170
170
  }();
171
171
  export {
172
- R as default
172
+ RecordVideo2 as default
173
173
  };
@@ -1,26 +1,26 @@
1
- import { g as o } from "../../chunks/utils.fa73de78.js";
2
- import { n as h } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- var a = function() {
4
- var e = this, t = e.$createElement, r = e._self._c || t;
5
- return r("div", {
1
+ import { j as getInternetExplorerVersion } from "../../chunks/utils.d7f73f8d.js";
2
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
3
+ var render = function() {
4
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
5
+ return _c("div", {
6
6
  staticClass: "resize-observer",
7
7
  attrs: {
8
8
  tabindex: "-1"
9
9
  }
10
10
  });
11
- }, l = [];
12
- let i;
13
- function s() {
14
- s.init || (s.init = !0, i = o() !== -1);
11
+ }, staticRenderFns = [];
12
+ let isIE;
13
+ function initCompat() {
14
+ initCompat.init || (initCompat.init = !0, isIE = getInternetExplorerVersion() !== -1);
15
15
  }
16
- const c = {
16
+ const __vue2_script = {
17
17
  name: "ResizeObserver",
18
18
  mounted() {
19
- s(), this.$nextTick(() => {
19
+ initCompat(), this.$nextTick(() => {
20
20
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight;
21
21
  });
22
- const e = document.createElement("object");
23
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", i && this.$el.appendChild(e), e.data = "about:blank", i || this.$el.appendChild(e);
22
+ const object = document.createElement("object");
23
+ this._resizeObject = object, object.setAttribute("aria-hidden", "true"), object.setAttribute("tabindex", -1), object.onload = this.addResizeHandlers, object.type = "text/html", isIE && this.$el.appendChild(object), object.data = "about:blank", isIE || this.$el.appendChild(object);
24
24
  },
25
25
  beforeDestroy() {
26
26
  this.removeResizeHandlers();
@@ -36,27 +36,27 @@ const c = {
36
36
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
37
37
  },
38
38
  removeResizeHandlers() {
39
- this._resizeObject && this._resizeObject.onload && (!i && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
39
+ this._resizeObject && this._resizeObject.onload && (!isIE && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
40
40
  }
41
41
  }
42
- }, n = {};
43
- var d = /* @__PURE__ */ h(
44
- c,
45
- a,
46
- l,
42
+ }, __cssModules = {};
43
+ var __component__ = /* @__PURE__ */ normalizeComponent(
44
+ __vue2_script,
45
+ render,
46
+ staticRenderFns,
47
47
  !1,
48
- _,
48
+ __vue2_injectStyles,
49
49
  null,
50
50
  null,
51
51
  null
52
52
  );
53
- function _(e) {
54
- for (let t in n)
55
- this[t] = n[t];
53
+ function __vue2_injectStyles(context) {
54
+ for (let o in __cssModules)
55
+ this[o] = __cssModules[o];
56
56
  }
57
- const m = /* @__PURE__ */ function() {
58
- return d.exports;
57
+ const ResizeObserver = /* @__PURE__ */ function() {
58
+ return __component__.exports;
59
59
  }();
60
60
  export {
61
- m as default
61
+ ResizeObserver as default
62
62
  };
@@ -1,47 +1,47 @@
1
- import { k as i } from "../../chunks/util.23fe58fb.js";
2
- import { i as n } from "../../chunks/init.7c58eb34.js";
3
- import { isBlank as o } from "@web-utils/core";
4
- import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
- var h = function() {
6
- var t = this, e = t.$createElement, r = t._self._c || e;
7
- return r("ElRow", {
1
+ import { D as DIC_PROPS } from "../../chunks/util.89913643.js";
2
+ import { i as init } from "../../chunks/init.e0133910.js";
3
+ import { isBlank } from "@web-utils/core";
4
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.77ec6792.js";
5
+ var render = function() {
6
+ var _vm = this, _h = _vm.$createElement, _c = _vm._self._c || _h;
7
+ return _c("ElRow", {
8
8
  class: ["avue-search", {
9
- "avue--card": t.isCard
9
+ "avue--card": _vm.isCard
10
10
  }],
11
11
  attrs: {
12
12
  span: 24
13
13
  }
14
- }, t._l(t.columnOption, function(s) {
15
- return r("ElCol", {
16
- key: s.prop,
14
+ }, _vm._l(_vm.columnOption, function(column) {
15
+ return _c("ElCol", {
16
+ key: column.prop,
17
17
  staticClass: "avue-search__item",
18
18
  attrs: {
19
- span: s.span || 24
19
+ span: column.span || 24
20
20
  }
21
- }, [r("p", {
21
+ }, [_c("p", {
22
22
  staticClass: "avue-search__title"
23
- }, [t._v(" " + t._s(s.label) + ": ")]), r("div", {
23
+ }, [_vm._v(" " + _vm._s(column.label) + ": ")]), _c("div", {
24
24
  staticClass: "avue-search__content"
25
- }, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
26
- dic: t.DIC[s.prop]
27
- }) : t._l(t.DIC[s.prop], function(a) {
28
- return r("span", {
29
- key: t.getKey(a, s.props, t.valueKey),
25
+ }, [_vm.mainSlot.includes(column.prop) ? _vm._t(column.prop, null, {
26
+ dic: _vm.DIC[column.prop]
27
+ }) : _vm._l(_vm.DIC[column.prop], function(item) {
28
+ return _c("span", {
29
+ key: _vm.getKey(item, column.props, _vm.valueKey),
30
30
  class: ["avue-search__tags", {
31
- "avue-search__tags--active": t.getActive(a, s)
31
+ "avue-search__tags--active": _vm.getActive(item, column)
32
32
  }],
33
33
  on: {
34
- click: function(v) {
35
- return t.handleClick(s, a);
34
+ click: function($event) {
35
+ return _vm.handleClick(column, item);
36
36
  }
37
37
  }
38
- }, [t._v(t._s(t.getKey(a, s.props, t.labelKey)))]);
38
+ }, [_vm._v(_vm._s(_vm.getKey(item, column.props, _vm.labelKey)))]);
39
39
  })], 2)]);
40
40
  }), 1);
41
- }, u = [];
42
- const c = {
41
+ }, staticRenderFns = [];
42
+ const __vue2_script = {
43
43
  name: "Search",
44
- mixins: [n],
44
+ mixins: [init],
45
45
  props: {
46
46
  value: [String, Object, Number, Boolean, Array]
47
47
  },
@@ -50,24 +50,24 @@ const c = {
50
50
  get() {
51
51
  return this.value;
52
52
  },
53
- set(t) {
54
- this.setVal(t);
53
+ set(val) {
54
+ this.setVal(val);
55
55
  }
56
56
  },
57
57
  props() {
58
58
  return this.parentOption.props || {};
59
59
  },
60
60
  labelKey() {
61
- return i.label;
61
+ return DIC_PROPS.label;
62
62
  },
63
63
  valueKey() {
64
- return i.value;
64
+ return DIC_PROPS.value;
65
65
  },
66
66
  mainSlot() {
67
- const t = [];
68
- return this.propOption.forEach((e) => {
69
- this.$scopedSlots[e.prop] && t.push(e.prop);
70
- }), t;
67
+ const result = [];
68
+ return this.propOption.forEach((item) => {
69
+ this.$scopedSlots[item.prop] && result.push(item.prop);
70
+ }), result;
71
71
  },
72
72
  isCard() {
73
73
  return this.parentOption.card;
@@ -84,8 +84,8 @@ const c = {
84
84
  },
85
85
  watch: {
86
86
  value: {
87
- handler(t) {
88
- this.setVal(t);
87
+ handler(val) {
88
+ this.setVal(val);
89
89
  },
90
90
  deep: !0
91
91
  }
@@ -94,50 +94,50 @@ const c = {
94
94
  this.dataFormat();
95
95
  },
96
96
  methods: {
97
- setVal(t) {
98
- this.$emit("input", t), this.$emit("change", t);
97
+ setVal(val) {
98
+ this.$emit("input", val), this.$emit("change", val);
99
99
  },
100
- getKey(t = {}, e = {}, r) {
101
- return t[e[r] || this.props[r] || r];
100
+ getKey(item = {}, props = {}, key) {
101
+ return item[props[key] || this.props[key] || key];
102
102
  },
103
103
  dataFormat() {
104
- this.propOption.forEach((t) => {
105
- const e = t.prop;
106
- o(this.form[e]) && this.$set(this.form, e, t.multiple === !1 ? "" : []);
104
+ this.propOption.forEach((ele) => {
105
+ const prop = ele.prop;
106
+ isBlank(this.form[prop]) && this.$set(this.form, prop, ele.multiple === !1 ? "" : []);
107
107
  });
108
108
  },
109
- getActive(t, e) {
110
- const r = this.getKey(t, e.props, this.valueKey);
111
- return e.multiple === !1 ? this.form[e.prop] === r : this.form[e.prop].includes(r);
109
+ getActive(item, column) {
110
+ const value = this.getKey(item, column.props, this.valueKey);
111
+ return column.multiple === !1 ? this.form[column.prop] === value : this.form[column.prop].includes(value);
112
112
  },
113
- handleClick(t, e) {
114
- const r = this.getKey(e, t.props, this.valueKey);
115
- if (t.multiple === !1)
116
- this.form[t.prop] = r;
113
+ handleClick(column, item) {
114
+ const value = this.getKey(item, column.props, this.valueKey);
115
+ if (column.multiple === !1)
116
+ this.form[column.prop] = value;
117
117
  else {
118
- const s = this.form[t.prop].indexOf(r);
119
- s === -1 ? this.form[t.prop].push(r) : this.form[t.prop].splice(s, 1);
118
+ const index = this.form[column.prop].indexOf(value);
119
+ index === -1 ? this.form[column.prop].push(value) : this.form[column.prop].splice(index, 1);
120
120
  }
121
121
  }
122
122
  }
123
- }, p = {};
124
- var _ = /* @__PURE__ */ l(
125
- c,
126
- h,
127
- u,
123
+ }, __cssModules = {};
124
+ var __component__ = /* @__PURE__ */ normalizeComponent(
125
+ __vue2_script,
126
+ render,
127
+ staticRenderFns,
128
128
  !1,
129
- f,
129
+ __vue2_injectStyles,
130
130
  null,
131
131
  null,
132
132
  null
133
133
  );
134
- function f(t) {
135
- for (let e in p)
136
- this[e] = p[e];
134
+ function __vue2_injectStyles(context) {
135
+ for (let o in __cssModules)
136
+ this[o] = __cssModules[o];
137
137
  }
138
- const g = /* @__PURE__ */ function() {
139
- return _.exports;
138
+ const Search = /* @__PURE__ */ function() {
139
+ return __component__.exports;
140
140
  }();
141
141
  export {
142
- g as default
142
+ Search as default
143
143
  };