@nokecy/qc-ui 0.6.7 → 0.7.0

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 (313) hide show
  1. package/README.md +23 -23
  2. package/dist/cjs/ag-grid-plus/_utils/boolSelect.d.ts +4 -4
  3. package/dist/cjs/ag-grid-plus/_utils/boolSelect.js +12 -29
  4. package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +350 -0
  5. package/dist/cjs/ag-grid-plus/ag-gridPlus.d.ts +6 -7
  6. package/dist/cjs/ag-grid-plus/ag-gridPlus.js +98 -166
  7. package/dist/cjs/ag-grid-plus/context/gridContext.d.ts +12 -12
  8. package/dist/cjs/ag-grid-plus/context/gridContext.js +2 -7
  9. package/dist/cjs/ag-grid-plus/gridManager/index.d.ts +7 -8
  10. package/dist/cjs/ag-grid-plus/gridManager/index.js +21 -32
  11. package/dist/cjs/ag-grid-plus/index.d.ts +11 -9
  12. package/dist/cjs/ag-grid-plus/index.js +3 -11
  13. package/dist/cjs/ag-grid-plus/index.less +6 -6
  14. package/dist/cjs/ag-grid-plus/interface.d.ts +39 -39
  15. package/dist/cjs/ag-grid-plus/interface.js +1 -2
  16. package/dist/cjs/ag-grid-plus/queryForm/index.d.ts +11 -11
  17. package/dist/cjs/ag-grid-plus/queryForm/index.js +29 -72
  18. package/dist/cjs/ag-grid-plus/queryForm/index.less +48 -48
  19. package/dist/cjs/ag-grid-plus/queryForm/queryForm.d.ts +3 -3
  20. package/dist/cjs/ag-grid-plus/queryForm/queryForm.js +28 -46
  21. package/dist/cjs/ag-grid-plus/setting/index.d.ts +8 -9
  22. package/dist/cjs/ag-grid-plus/setting/index.js +116 -141
  23. package/dist/cjs/ag-grid-plus/settingItem/index.d.ts +3 -3
  24. package/dist/cjs/ag-grid-plus/settingItem/index.js +2 -7
  25. package/dist/cjs/ag-grid-plus/toolBar/index.d.ts +20 -20
  26. package/dist/cjs/ag-grid-plus/toolBar/index.js +35 -57
  27. package/dist/cjs/ag-grid-plus/toolBar/style.d.ts +9 -5
  28. package/dist/cjs/ag-grid-plus/toolBar/style.js +81 -83
  29. package/dist/cjs/ag-grid-plus/utils.d.ts +9 -9
  30. package/dist/cjs/ag-grid-plus/utils.js +21 -67
  31. package/dist/cjs/array-table/arrayAddBtn.d.ts +3 -3
  32. package/dist/cjs/array-table/arrayAddBtn.js +6 -25
  33. package/dist/cjs/array-table/arrayBase.d.ts +62 -62
  34. package/dist/cjs/array-table/arrayBase.js +47 -69
  35. package/dist/cjs/array-table/index.d.ts +6 -6
  36. package/dist/cjs/array-table/index.js +29 -55
  37. package/dist/cjs/array-table/interface.d.ts +16 -16
  38. package/dist/cjs/array-table/preview.d.ts +3 -3
  39. package/dist/cjs/array-table/preview.js +8 -16
  40. package/dist/cjs/array-table/utils.d.ts +10 -10
  41. package/dist/cjs/array-table/utils.js +28 -59
  42. package/dist/cjs/array-table-index/index.d.ts +3 -3
  43. package/dist/cjs/array-table-index/index.js +5 -15
  44. package/dist/cjs/dashboard/dashboard/components/index.d.ts +2 -2
  45. package/dist/cjs/dashboard/dashboard/components/index.js +0 -2
  46. package/dist/cjs/dashboard/dashboard/components/modal/index.d.ts +3 -3
  47. package/dist/cjs/dashboard/dashboard/components/modal/index.js +4 -9
  48. package/dist/cjs/dashboard/dashboard/components/toolbar/index.d.ts +11 -11
  49. package/dist/cjs/dashboard/dashboard/components/toolbar/index.js +5 -13
  50. package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.d.ts +1 -1
  51. package/dist/cjs/dashboard/dashboard/components/toolbar/style/index.less +49 -49
  52. package/dist/cjs/dashboard/dashboard/index.d.ts +62 -62
  53. package/dist/cjs/dashboard/dashboard/index.js +161 -234
  54. package/dist/cjs/dashboard/dashboard/index.less +173 -173
  55. package/dist/cjs/dashboard/dashboard/service.d.ts +8 -8
  56. package/dist/cjs/dashboard/dashboard/service.js +41 -65
  57. package/dist/cjs/dashboard/dashboard/utils.d.ts +9 -9
  58. package/dist/cjs/dashboard/dashboard/utils.js +43 -70
  59. package/dist/cjs/dashboard/index.d.ts +3 -3
  60. package/dist/cjs/dashboard/index.js +4 -11
  61. package/dist/cjs/dashboard/utils.d.ts +24 -24
  62. package/dist/cjs/dashboard/utils.js +32 -59
  63. package/dist/cjs/dashboard/widget/index.d.ts +13 -13
  64. package/dist/cjs/dashboard/widget/index.js +20 -41
  65. package/dist/cjs/dashboard/widget/index.less +7 -7
  66. package/dist/cjs/dashboard/widget/selector/index.d.ts +4 -4
  67. package/dist/cjs/dashboard/widget/selector/index.js +44 -74
  68. package/dist/cjs/dashboard/widget/selector/index.less +172 -172
  69. package/dist/cjs/dashboard/widget/utils.d.ts +4 -4
  70. package/dist/cjs/dashboard/widget/utils.js +20 -36
  71. package/dist/cjs/dialogSelect/index.d.ts +4 -4
  72. package/dist/cjs/dialogSelect/index.js +19 -44
  73. package/dist/cjs/dialogSelect/interface.d.ts +11 -11
  74. package/dist/cjs/dialogSelect/selectModal.d.ts +6 -6
  75. package/dist/cjs/dialogSelect/selectModal.js +42 -79
  76. package/dist/cjs/editable/index.d.ts +8 -8
  77. package/dist/cjs/editable/index.js +75 -146
  78. package/dist/cjs/editable/style.d.ts +2 -2
  79. package/dist/cjs/editable/style.js +17 -21
  80. package/dist/cjs/extensible-grid/index.d.ts +4 -4
  81. package/dist/cjs/extensible-grid/index.js +4 -14
  82. package/dist/cjs/extensible-grid/interface.d.ts +14 -14
  83. package/dist/cjs/formDesigner/FormDesigner.d.ts +4 -3
  84. package/dist/cjs/formDesigner/FormDesigner.js +13 -35
  85. package/dist/cjs/formDesigner/ProCard/index.d.ts +3 -2
  86. package/dist/cjs/formDesigner/ProCard/index.js +7 -14
  87. package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.d.ts +5 -5
  88. package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.js +1 -2
  89. package/dist/cjs/formDesigner/arrayTable/index.d.ts +1 -1
  90. package/dist/cjs/formDesigner/arrayTable/index.js +0 -2
  91. package/dist/cjs/formDesigner/arrayTable/preview.d.ts +3 -3
  92. package/dist/cjs/formDesigner/arrayTable/preview.js +12 -50
  93. package/dist/cjs/formDesigner/arrayTable/styles.less +2 -2
  94. package/dist/cjs/formDesigner/index.d.ts +2 -2
  95. package/dist/cjs/formDesigner/index.js +0 -2
  96. package/dist/cjs/formDesigner/index.less +2 -2
  97. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/index.d.ts +1 -1
  98. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/index.js +0 -2
  99. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +4 -4
  100. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.js +7 -14
  101. package/dist/cjs/formDesigner/preWidgets/card/index.d.ts +1 -1
  102. package/dist/cjs/formDesigner/preWidgets/card/index.js +0 -2
  103. package/dist/cjs/formDesigner/preWidgets/card/preview.d.ts +4 -4
  104. package/dist/cjs/formDesigner/preWidgets/card/preview.js +1 -11
  105. package/dist/cjs/formDesigner/preWidgets/index.d.ts +12 -12
  106. package/dist/cjs/formDesigner/preWidgets/index.js +0 -24
  107. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.d.ts +1 -1
  108. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.js +0 -2
  109. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +5 -5
  110. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.js +7 -16
  111. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.d.ts +1 -1
  112. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.js +0 -2
  113. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +5 -5
  114. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.js +7 -16
  115. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.d.ts +1 -1
  116. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.js +0 -2
  117. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +5 -5
  118. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.js +7 -16
  119. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.d.ts +1 -1
  120. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.js +0 -2
  121. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +5 -5
  122. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.js +7 -16
  123. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.d.ts +1 -1
  124. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.js +0 -2
  125. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +5 -5
  126. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.js +7 -16
  127. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.d.ts +1 -1
  128. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.js +0 -2
  129. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +5 -5
  130. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.js +7 -16
  131. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.d.ts +1 -1
  132. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.js +0 -2
  133. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +5 -5
  134. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.js +7 -16
  135. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.d.ts +1 -1
  136. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.js +0 -2
  137. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +5 -5
  138. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.js +7 -16
  139. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.d.ts +1 -1
  140. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.js +0 -2
  141. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +5 -5
  142. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.js +7 -16
  143. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.d.ts +1 -1
  144. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.js +0 -2
  145. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +5 -5
  146. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.js +7 -16
  147. package/dist/cjs/formDesigner/preWidgets/utils.d.ts +294 -294
  148. package/dist/cjs/formDesigner/preWidgets/utils.js +10 -21
  149. package/dist/cjs/formDesigner/widgets/ActionsWidget.d.ts +2 -2
  150. package/dist/cjs/formDesigner/widgets/ActionsWidget.js +5 -15
  151. package/dist/cjs/formDesigner/widgets/LogoWidget.d.ts +2 -2
  152. package/dist/cjs/formDesigner/widgets/LogoWidget.js +3 -9
  153. package/dist/cjs/formDesigner/widgets/PreviewWidget.d.ts +7 -7
  154. package/dist/cjs/formDesigner/widgets/PreviewWidget.js +12 -27
  155. package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.d.ts +7 -7
  156. package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.js +4 -11
  157. package/dist/cjs/formDesigner/widgets/index.d.ts +4 -4
  158. package/dist/cjs/formDesigner/widgets/index.js +0 -8
  159. package/dist/cjs/formPro/context/formProContext.d.ts +13 -13
  160. package/dist/cjs/formPro/context/formProContext.js +2 -7
  161. package/dist/cjs/formPro/formLayoutPro.d.ts +9 -9
  162. package/dist/cjs/formPro/formLayoutPro.js +4 -15
  163. package/dist/cjs/formPro/index.d.ts +2 -2
  164. package/dist/cjs/formPro/index.js +0 -2
  165. package/dist/cjs/index.d.ts +12 -12
  166. package/dist/cjs/index.js +0 -11
  167. package/dist/cjs/type.d.ts +1 -0
  168. package/dist/esm/ag-grid-plus/_utils/boolSelect.d.ts +4 -4
  169. package/dist/esm/ag-grid-plus/_utils/boolSelect.js +37 -36
  170. package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +350 -0
  171. package/dist/esm/ag-grid-plus/ag-gridPlus.d.ts +6 -7
  172. package/dist/esm/ag-grid-plus/ag-gridPlus.js +95 -143
  173. package/dist/esm/ag-grid-plus/context/gridContext.d.ts +12 -12
  174. package/dist/esm/ag-grid-plus/gridManager/index.d.ts +7 -8
  175. package/dist/esm/ag-grid-plus/gridManager/index.js +19 -28
  176. package/dist/esm/ag-grid-plus/index.d.ts +11 -9
  177. package/dist/esm/ag-grid-plus/index.js +1 -0
  178. package/dist/esm/ag-grid-plus/index.less +6 -6
  179. package/dist/esm/ag-grid-plus/interface.d.ts +39 -39
  180. package/dist/esm/ag-grid-plus/interface.js +2 -1
  181. package/dist/esm/ag-grid-plus/queryForm/index.d.ts +11 -11
  182. package/dist/esm/ag-grid-plus/queryForm/index.js +26 -54
  183. package/dist/esm/ag-grid-plus/queryForm/index.less +48 -48
  184. package/dist/esm/ag-grid-plus/queryForm/queryForm.d.ts +3 -3
  185. package/dist/esm/ag-grid-plus/queryForm/queryForm.js +23 -29
  186. package/dist/esm/ag-grid-plus/setting/index.d.ts +8 -9
  187. package/dist/esm/ag-grid-plus/setting/index.js +129 -128
  188. package/dist/esm/ag-grid-plus/settingItem/index.d.ts +3 -3
  189. package/dist/esm/ag-grid-plus/settingItem/index.js +1 -3
  190. package/dist/esm/ag-grid-plus/toolBar/index.d.ts +20 -20
  191. package/dist/esm/ag-grid-plus/toolBar/index.js +32 -43
  192. package/dist/esm/ag-grid-plus/toolBar/style.d.ts +9 -5
  193. package/dist/esm/ag-grid-plus/toolBar/style.js +82 -83
  194. package/dist/esm/ag-grid-plus/utils.d.ts +9 -9
  195. package/dist/esm/ag-grid-plus/utils.js +13 -45
  196. package/dist/esm/array-table/arrayAddBtn.d.ts +3 -3
  197. package/dist/esm/array-table/arrayAddBtn.js +5 -15
  198. package/dist/esm/array-table/arrayBase.d.ts +62 -62
  199. package/dist/esm/array-table/arrayBase.js +43 -48
  200. package/dist/esm/array-table/index.d.ts +6 -6
  201. package/dist/esm/array-table/index.js +27 -34
  202. package/dist/esm/array-table/interface.d.ts +16 -16
  203. package/dist/esm/array-table/preview.d.ts +3 -3
  204. package/dist/esm/array-table/preview.js +6 -4
  205. package/dist/esm/array-table/utils.d.ts +10 -10
  206. package/dist/esm/array-table/utils.js +21 -35
  207. package/dist/esm/array-table-index/index.d.ts +3 -3
  208. package/dist/esm/dashboard/dashboard/components/index.d.ts +2 -2
  209. package/dist/esm/dashboard/dashboard/components/modal/index.d.ts +3 -3
  210. package/dist/esm/dashboard/dashboard/components/modal/index.js +2 -4
  211. package/dist/esm/dashboard/dashboard/components/toolbar/index.d.ts +11 -11
  212. package/dist/esm/dashboard/dashboard/components/toolbar/index.js +4 -6
  213. package/dist/esm/dashboard/dashboard/components/toolbar/style/index.d.ts +1 -1
  214. package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +49 -49
  215. package/dist/esm/dashboard/dashboard/index.d.ts +62 -62
  216. package/dist/esm/dashboard/dashboard/index.js +158 -207
  217. package/dist/esm/dashboard/dashboard/index.less +173 -173
  218. package/dist/esm/dashboard/dashboard/service.d.ts +8 -8
  219. package/dist/esm/dashboard/dashboard/service.js +45 -61
  220. package/dist/esm/dashboard/dashboard/utils.d.ts +9 -9
  221. package/dist/esm/dashboard/dashboard/utils.js +38 -55
  222. package/dist/esm/dashboard/index.d.ts +3 -3
  223. package/dist/esm/dashboard/utils.d.ts +24 -24
  224. package/dist/esm/dashboard/utils.js +30 -47
  225. package/dist/esm/dashboard/widget/index.d.ts +13 -13
  226. package/dist/esm/dashboard/widget/index.js +17 -30
  227. package/dist/esm/dashboard/widget/index.less +7 -7
  228. package/dist/esm/dashboard/widget/selector/index.d.ts +4 -4
  229. package/dist/esm/dashboard/widget/selector/index.js +40 -58
  230. package/dist/esm/dashboard/widget/selector/index.less +172 -172
  231. package/dist/esm/dashboard/widget/utils.d.ts +4 -4
  232. package/dist/esm/dashboard/widget/utils.js +16 -14
  233. package/dist/esm/dialogSelect/index.d.ts +4 -4
  234. package/dist/esm/dialogSelect/index.js +18 -35
  235. package/dist/esm/dialogSelect/interface.d.ts +11 -11
  236. package/dist/esm/dialogSelect/selectModal.d.ts +6 -6
  237. package/dist/esm/dialogSelect/selectModal.js +39 -67
  238. package/dist/esm/editable/index.d.ts +8 -8
  239. package/dist/esm/editable/index.js +71 -125
  240. package/dist/esm/editable/style.d.ts +2 -2
  241. package/dist/esm/editable/style.js +15 -15
  242. package/dist/esm/extensible-grid/index.d.ts +4 -4
  243. package/dist/esm/extensible-grid/index.js +3 -9
  244. package/dist/esm/extensible-grid/interface.d.ts +14 -14
  245. package/dist/esm/formDesigner/FormDesigner.d.ts +4 -3
  246. package/dist/esm/formDesigner/FormDesigner.js +10 -16
  247. package/dist/esm/formDesigner/ProCard/index.d.ts +3 -2
  248. package/dist/esm/formDesigner/ProCard/index.js +6 -9
  249. package/dist/esm/formDesigner/arrayTable/arrayTableSchema.d.ts +5 -5
  250. package/dist/esm/formDesigner/arrayTable/index.d.ts +1 -1
  251. package/dist/esm/formDesigner/arrayTable/preview.d.ts +3 -3
  252. package/dist/esm/formDesigner/arrayTable/preview.js +9 -25
  253. package/dist/esm/formDesigner/arrayTable/styles.less +2 -2
  254. package/dist/esm/formDesigner/index.d.ts +2 -2
  255. package/dist/esm/formDesigner/index.less +2 -2
  256. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/index.d.ts +1 -1
  257. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +4 -4
  258. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.js +6 -6
  259. package/dist/esm/formDesigner/preWidgets/card/index.d.ts +1 -1
  260. package/dist/esm/formDesigner/preWidgets/card/preview.d.ts +4 -4
  261. package/dist/esm/formDesigner/preWidgets/card/preview.js +0 -1
  262. package/dist/esm/formDesigner/preWidgets/index.d.ts +12 -12
  263. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/index.d.ts +1 -1
  264. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +5 -5
  265. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.js +6 -8
  266. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/index.d.ts +1 -1
  267. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +5 -5
  268. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.js +6 -8
  269. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/index.d.ts +1 -1
  270. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +5 -5
  271. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.js +6 -8
  272. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/index.d.ts +1 -1
  273. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +5 -5
  274. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.js +6 -8
  275. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/index.d.ts +1 -1
  276. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +5 -5
  277. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.js +6 -8
  278. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/index.d.ts +1 -1
  279. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +5 -5
  280. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.js +6 -8
  281. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/index.d.ts +1 -1
  282. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +5 -5
  283. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.js +6 -8
  284. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/index.d.ts +1 -1
  285. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +5 -5
  286. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.js +6 -8
  287. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/index.d.ts +1 -1
  288. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +5 -5
  289. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.js +6 -8
  290. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/index.d.ts +1 -1
  291. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +5 -5
  292. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.js +6 -8
  293. package/dist/esm/formDesigner/preWidgets/utils.d.ts +294 -294
  294. package/dist/esm/formDesigner/preWidgets/utils.js +6 -6
  295. package/dist/esm/formDesigner/widgets/ActionsWidget.d.ts +2 -2
  296. package/dist/esm/formDesigner/widgets/LogoWidget.d.ts +2 -2
  297. package/dist/esm/formDesigner/widgets/LogoWidget.js +1 -0
  298. package/dist/esm/formDesigner/widgets/PreviewWidget.d.ts +7 -7
  299. package/dist/esm/formDesigner/widgets/PreviewWidget.js +8 -11
  300. package/dist/esm/formDesigner/widgets/SchemaEditorWidget.d.ts +7 -7
  301. package/dist/esm/formDesigner/widgets/SchemaEditorWidget.js +3 -4
  302. package/dist/esm/formDesigner/widgets/index.d.ts +4 -4
  303. package/dist/esm/formPro/context/formProContext.d.ts +13 -13
  304. package/dist/esm/formPro/formLayoutPro.d.ts +9 -9
  305. package/dist/esm/formPro/formLayoutPro.js +3 -9
  306. package/dist/esm/formPro/index.d.ts +2 -2
  307. package/dist/esm/index.d.ts +12 -12
  308. package/dist/esm/type.d.ts +1 -0
  309. package/dist/umd/qc-ui.min.css +1 -1
  310. package/dist/umd/qc-ui.min.js +1 -1
  311. package/package.json +64 -64
  312. package/dist/cjs/ag-grid-plus/global.scss +0 -31
  313. package/dist/esm/ag-grid-plus/global.scss +0 -31
@@ -1,87 +1,66 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.request = exports.formatLayout = exports.copy = exports.calcMinAndMax = void 0;
9
-
10
8
  var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
15
-
10
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
16
11
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
17
-
18
12
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
13
+ // import { updateApi as modifySmartChartConfig } from '@/pages/common/widgets/smartchart/service'
19
14
 
20
- var request = /*#__PURE__*/function () {
15
+ var request = exports.request = /*#__PURE__*/function () {
21
16
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, options) {
22
17
  var method, _options$data, dataId, dataType, bigData, res;
23
-
24
18
  return _regeneratorRuntime().wrap(function _callee$(_context) {
25
- while (1) {
26
- switch (_context.prev = _context.next) {
27
- case 0:
28
- method = options.method, _options$data = options.data, dataId = _options$data.dataId, dataType = _options$data.dataType, bigData = _options$data.bigData;
29
- _context.t0 = method;
30
- _context.next = _context.t0 === 'POST' ? 4 : _context.t0 === 'GET' ? 6 : _context.t0 === 'DELETE' ? 8 : 9;
31
- break;
32
-
33
- case 4:
34
- localStorage.setItem("".concat(dataId, "-").concat(dataType), bigData);
35
- return _context.abrupt("break", 9);
36
-
37
- case 6:
38
- res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
39
- return _context.abrupt("break", 9);
40
-
41
- case 8:
42
- localStorage.removeItem("".concat(dataId, "-").concat(dataType));
43
-
44
- case 9:
45
- res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
46
- return _context.abrupt("return", res);
47
-
48
- case 11:
49
- case "end":
50
- return _context.stop();
51
- }
19
+ while (1) switch (_context.prev = _context.next) {
20
+ case 0:
21
+ method = options.method, _options$data = options.data, dataId = _options$data.dataId, dataType = _options$data.dataType, bigData = _options$data.bigData;
22
+ _context.t0 = method;
23
+ _context.next = _context.t0 === 'POST' ? 4 : _context.t0 === 'GET' ? 6 : _context.t0 === 'DELETE' ? 8 : 9;
24
+ break;
25
+ case 4:
26
+ localStorage.setItem("".concat(dataId, "-").concat(dataType), bigData);
27
+ return _context.abrupt("break", 9);
28
+ case 6:
29
+ res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
30
+ return _context.abrupt("break", 9);
31
+ case 8:
32
+ localStorage.removeItem("".concat(dataId, "-").concat(dataType));
33
+ case 9:
34
+ res = localStorage.getItem("".concat(dataId, "-").concat(dataType));
35
+ return _context.abrupt("return", res);
36
+ case 11:
37
+ case "end":
38
+ return _context.stop();
52
39
  }
53
40
  }, _callee);
54
41
  }));
55
-
56
42
  return function request(_x, _x2) {
57
43
  return _ref.apply(this, arguments);
58
44
  };
59
45
  }();
60
- /**
61
- *复制字符串到系统剪切板
62
- *
63
- * @param {*} str
64
- */
65
46
 
66
-
67
- exports.request = request;
68
-
69
- var copy = function copy(str) {
47
+ /**
48
+ *复制字符串到系统剪切板
49
+ *
50
+ * @param {*} str
51
+ */
52
+ var copy = exports.copy = function copy(str) {
70
53
  var save = function save(e) {
71
54
  e.clipboardData.setData('text/plain', str);
72
55
  e.preventDefault(); //阻止默认行为
73
56
  };
74
-
75
57
  document.addEventListener('copy', save);
76
58
  document.execCommand('copy');
77
59
  setTimeout(function () {
78
60
  document.removeEventListener('copy', save);
79
61
  }, 1000);
80
62
  };
81
-
82
- exports.copy = copy;
83
-
84
- var formatLayout = function formatLayout(layout) {
63
+ var formatLayout = exports.formatLayout = function formatLayout(layout) {
85
64
  var data = (0, _cloneDeep2.default)(layout);
86
65
  data.forEach(function (item) {
87
66
  delete item.minW;
@@ -92,34 +71,28 @@ var formatLayout = function formatLayout(layout) {
92
71
  delete item.static;
93
72
  });
94
73
  return data;
95
- }; //添加最大最小值
96
-
97
-
98
- exports.formatLayout = formatLayout;
74
+ };
99
75
 
100
- var calcMinAndMax = function calcMinAndMax(data, widgets) {
76
+ //添加最大最小值
77
+ var calcMinAndMax = exports.calcMinAndMax = function calcMinAndMax(data, widgets) {
101
78
  data.map(function (item, index) {
102
79
  var key = item.i.split('-')[0];
103
-
104
80
  if (!key) {
105
81
  return;
106
82
  }
107
-
108
83
  var _widgets$key = widgets[key],
109
- _widgets$key$minW = _widgets$key.minW,
110
- minW = _widgets$key$minW === void 0 ? 1 : _widgets$key$minW,
111
- _widgets$key$maxW = _widgets$key.maxW,
112
- maxW = _widgets$key$maxW === void 0 ? 12 : _widgets$key$maxW,
113
- _widgets$key$minH = _widgets$key.minH,
114
- minH = _widgets$key$minH === void 0 ? 1 : _widgets$key$minH,
115
- _widgets$key$maxH = _widgets$key.maxH,
116
- maxH = _widgets$key$maxH === void 0 ? 100 : _widgets$key$maxH;
84
+ _widgets$key$minW = _widgets$key.minW,
85
+ minW = _widgets$key$minW === void 0 ? 1 : _widgets$key$minW,
86
+ _widgets$key$maxW = _widgets$key.maxW,
87
+ maxW = _widgets$key$maxW === void 0 ? 12 : _widgets$key$maxW,
88
+ _widgets$key$minH = _widgets$key.minH,
89
+ minH = _widgets$key$minH === void 0 ? 1 : _widgets$key$minH,
90
+ _widgets$key$maxH = _widgets$key.maxH,
91
+ maxH = _widgets$key$maxH === void 0 ? 100 : _widgets$key$maxH;
117
92
  item.minW = minW;
118
93
  item.maxW = maxW;
119
94
  item.minH = minH;
120
95
  item.maxH = maxH;
121
96
  });
122
97
  return data;
123
- };
124
-
125
- exports.calcMinAndMax = calcMinAndMax;
98
+ };
@@ -1,3 +1,3 @@
1
- export * from './dashboard';
2
- import Dashboard from './dashboard';
3
- export default Dashboard;
1
+ export * from './dashboard';
2
+ import Dashboard from './dashboard';
3
+ export default Dashboard;
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  var _exportNames = {};
9
8
  exports.default = void 0;
10
-
11
9
  var _dashboard = _interopRequireWildcard(require("./dashboard"));
12
-
13
10
  Object.keys(_dashboard).forEach(function (key) {
14
11
  if (key === "default" || key === "__esModule") return;
15
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -21,10 +18,6 @@ Object.keys(_dashboard).forEach(function (key) {
21
18
  }
22
19
  });
23
20
  });
24
-
25
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
-
27
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
28
-
29
- var _default = _dashboard.default;
30
- exports.default = _default;
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
+ var _default = exports.default = _dashboard.default;
@@ -1,24 +1,24 @@
1
- import { ReactNode } from 'react';
2
- export declare function randomNum(minNum: number, maxNum: number): number;
3
- export declare const getPosition: (random: any, fontSize: number) => {
4
- fontSize: number;
5
- top?: undefined;
6
- left?: undefined;
7
- } | {
8
- fontSize: number;
9
- top: string;
10
- left: string;
11
- };
12
- export declare function generateUuid(len?: number, radix?: number): string;
13
- interface confirmUtilAsyncProps {
14
- content: string | ReactNode;
15
- [key: string]: any;
16
- }
17
- /**
18
- * 异步确认弹窗,抛出确认或取消布尔值
19
- *
20
- * @param {confirmUtilAsyncProps} props
21
- */
22
- export declare const confirmUtilAsync: (props: confirmUtilAsyncProps) => Promise<boolean>;
23
- export declare function reducer(state: any, action: any): any;
24
- export {};
1
+ import { ReactNode } from 'react';
2
+ export declare function randomNum(minNum: number, maxNum: number): number;
3
+ export declare const getPosition: (random: any, fontSize: number) => {
4
+ fontSize: number;
5
+ top?: undefined;
6
+ left?: undefined;
7
+ } | {
8
+ fontSize: number;
9
+ top: string;
10
+ left: string;
11
+ };
12
+ export declare function generateUuid(len?: number, radix?: number): string;
13
+ interface confirmUtilAsyncProps {
14
+ content: string | ReactNode;
15
+ [key: string]: any;
16
+ }
17
+ /**
18
+ * 异步确认弹窗,抛出确认或取消布尔值
19
+ *
20
+ * @param {confirmUtilAsyncProps} props
21
+ */
22
+ export declare const confirmUtilAsync: (props: confirmUtilAsyncProps) => Promise<boolean>;
23
+ export declare function reducer(state: any, action: any): any;
24
+ export {};
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -8,62 +9,44 @@ exports.generateUuid = generateUuid;
8
9
  exports.getPosition = void 0;
9
10
  exports.randomNum = randomNum;
10
11
  exports.reducer = reducer;
11
-
12
12
  var _antd = require("antd");
13
-
14
13
  var _excluded = ["content", "okType"];
15
-
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
-
18
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
14
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
22
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
-
24
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
-
26
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
-
28
22
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
29
-
30
23
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
31
-
32
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
33
-
34
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
35
-
24
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
36
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
-
38
27
  function randomNum(minNum, maxNum) {
39
28
  switch (arguments.length) {
40
29
  case 1:
41
30
  return Math.floor(Math.random() * minNum + 1);
42
31
  break;
43
-
44
32
  case 2:
45
33
  return Math.floor(Math.random() * (maxNum - minNum + 1) + minNum);
46
34
  break;
47
-
48
35
  default:
49
36
  return 0;
50
37
  break;
51
38
  }
52
39
  }
53
-
54
- var getPosition = function getPosition(random, fontSize) {
40
+ var getPosition = exports.getPosition = function getPosition(random, fontSize) {
55
41
  if (!random) {
56
42
  return {
57
43
  fontSize: fontSize
58
44
  };
59
45
  }
60
-
61
46
  var fontSizeRange = random.fontSizeRange;
62
-
63
47
  var _fontSizeRange = _slicedToArray(fontSizeRange, 2),
64
- minNum = _fontSizeRange[0],
65
- maxNum = _fontSizeRange[1];
66
-
48
+ minNum = _fontSizeRange[0],
49
+ maxNum = _fontSizeRange[1];
67
50
  var fontSizeFin = randomNum(minNum, maxNum);
68
51
  var top = randomNum(0, 100) + '%';
69
52
  var left = randomNum(0, 100) + '%';
@@ -73,15 +56,12 @@ var getPosition = function getPosition(random, fontSize) {
73
56
  left: left
74
57
  };
75
58
  };
76
- /*
77
- 生成uuid
78
- len:number 长度
79
- radix:number 进制
80
- */
81
-
82
-
83
- exports.getPosition = getPosition;
84
59
 
60
+ /*
61
+ 生成uuid
62
+ len:number 长度
63
+ radix:number 进制
64
+ */
85
65
  function generateUuid() {
86
66
  var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
87
67
  var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
@@ -89,20 +69,19 @@ function generateUuid() {
89
69
  var uuid = [];
90
70
  var i;
91
71
  radix = radix || chars.length;
92
-
93
72
  if (len) {
94
73
  // Compact form
95
- for (i = 0; i < len; i++) {
96
- uuid[i] = chars[0 | Math.random() * radix];
97
- }
74
+ for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
98
75
  } else {
99
76
  // rfc4122, version 4 form
100
- var r; // rfc4122 requires these characters
77
+ var r;
101
78
 
79
+ // rfc4122 requires these characters
102
80
  uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
103
- uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock sequence as
104
- // per rfc4122, sec. 4.1.5
81
+ uuid[14] = '4';
105
82
 
83
+ // Fill in random data. At i==19 set the high bits of clock sequence as
84
+ // per rfc4122, sec. 4.1.5
106
85
  for (i = 0; i < 36; i++) {
107
86
  if (!uuid[i]) {
108
87
  r = 0 | Math.random() * 16;
@@ -110,24 +89,20 @@ function generateUuid() {
110
89
  }
111
90
  }
112
91
  }
113
-
114
92
  return uuid.join('');
115
93
  }
116
-
117
94
  var confirm = _antd.Modal.confirm;
118
- /**
119
- * 异步确认弹窗,抛出确认或取消布尔值
120
- *
121
- * @param {confirmUtilAsyncProps} props
95
+ /**
96
+ * 异步确认弹窗,抛出确认或取消布尔值
97
+ *
98
+ * @param {confirmUtilAsyncProps} props
122
99
  */
123
-
124
- var confirmUtilAsync = function confirmUtilAsync(props) {
100
+ var confirmUtilAsync = exports.confirmUtilAsync = function confirmUtilAsync(props) {
125
101
  return new Promise(function (resolve, reject) {
126
102
  var content = props.content,
127
- _props$okType = props.okType,
128
- okType = _props$okType === void 0 ? 'primary' : _props$okType,
129
- restProps = _objectWithoutProperties(props, _excluded);
130
-
103
+ _props$okType = props.okType,
104
+ okType = _props$okType === void 0 ? 'primary' : _props$okType,
105
+ restProps = _objectWithoutProperties(props, _excluded);
131
106
  confirm(_objectSpread({
132
107
  title: '提示',
133
108
  content: content,
@@ -149,11 +124,9 @@ var confirmUtilAsync = function confirmUtilAsync(props) {
149
124
  }
150
125
  }, restProps));
151
126
  });
152
- }; // 基础reducer
153
-
154
-
155
- exports.confirmUtilAsync = confirmUtilAsync;
127
+ };
156
128
 
129
+ // 基础reducer
157
130
  function reducer(state, action) {
158
131
  switch (action.type) {
159
132
  case 'save':
@@ -1,13 +1,13 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- interface WidgetProps {
4
- widgets: any;
5
- widgetKey: string;
6
- widgetType: string;
7
- height: number;
8
- editMode: boolean;
9
- onDeleteWidget?: Function;
10
- [key: string]: any;
11
- }
12
- declare const Widget: (props: WidgetProps) => JSX.Element;
13
- export default Widget;
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface WidgetProps {
4
+ widgets: any;
5
+ widgetKey: string;
6
+ widgetType: string;
7
+ height: number;
8
+ editMode: boolean;
9
+ onDeleteWidget?: Function;
10
+ [key: string]: any;
11
+ }
12
+ declare const Widget: (props: WidgetProps) => React.JSX.Element;
13
+ export default Widget;
@@ -1,61 +1,42 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
-
10
8
  var _get2 = _interopRequireDefault(require("lodash/get"));
11
-
12
9
  var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
10
  var _react = _interopRequireWildcard(require("react"));
15
-
16
11
  require("./index.less");
17
-
18
12
  var _utils = require("./utils");
19
-
20
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
-
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
16
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
32
21
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
-
34
22
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
-
36
23
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
-
38
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
39
-
40
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
41
-
24
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
25
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
42
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
-
44
27
  //widget渲染器
45
28
  var Widget = function Widget(props) {
46
29
  var widgets = props.widgets,
47
- widgetKey = props.widgetKey,
48
- widgetType = props.widgetType,
49
- editMode = props.editMode,
50
- onDeleteWidget = props.onDeleteWidget,
51
- widgetWrapClassName = props.widgetWrapClassName,
52
- widgetWrapStyle = props.widgetWrapStyle;
53
-
30
+ widgetKey = props.widgetKey,
31
+ widgetType = props.widgetType,
32
+ editMode = props.editMode,
33
+ onDeleteWidget = props.onDeleteWidget,
34
+ widgetWrapClassName = props.widgetWrapClassName,
35
+ widgetWrapStyle = props.widgetWrapStyle;
54
36
  var _useState = (0, _react.useState)(false),
55
- _useState2 = _slicedToArray(_useState, 2),
56
- configShow = _useState2[0],
57
- setConfigShow = _useState2[1];
58
-
37
+ _useState2 = _slicedToArray(_useState, 2),
38
+ configShow = _useState2[0],
39
+ setConfigShow = _useState2[1];
59
40
  var component = (0, _get2.default)(widgets, widgetType + '.component');
60
41
  var configComponent = (0, _get2.default)(widgets, widgetType + '.configComponent');
61
42
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -72,6 +53,4 @@ var Widget = function Widget(props) {
72
53
  setVisible: setConfigShow
73
54
  })));
74
55
  };
75
-
76
- var _default = Widget;
77
- exports.default = _default;
56
+ var _default = exports.default = Widget;
@@ -1,7 +1,7 @@
1
- .react-dashboard-widget {
2
- width: 100%;
3
- height: 100%;
4
- position: relative;
5
- border:1px solid rgba(128,128,128,0.3);
6
- overflow:hidden;
7
- }
1
+ .react-dashboard-widget {
2
+ width: 100%;
3
+ height: 100%;
4
+ position: relative;
5
+ border:1px solid rgba(128,128,128,0.3);
6
+ overflow:hidden;
7
+ }