@nokecy/qc-ui 0.6.6 → 0.6.7

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 +29 -12
  4. package/dist/cjs/ag-grid-plus/ag-gridPlus.d.ts +7 -6
  5. package/dist/cjs/ag-grid-plus/ag-gridPlus.js +166 -98
  6. package/dist/cjs/ag-grid-plus/context/gridContext.d.ts +12 -12
  7. package/dist/cjs/ag-grid-plus/context/gridContext.js +7 -2
  8. package/dist/cjs/ag-grid-plus/global.scss +31 -0
  9. package/dist/cjs/ag-grid-plus/gridManager/index.d.ts +8 -7
  10. package/dist/cjs/ag-grid-plus/gridManager/index.js +32 -21
  11. package/dist/cjs/ag-grid-plus/index.d.ts +9 -11
  12. package/dist/cjs/ag-grid-plus/index.js +11 -3
  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 +2 -1
  16. package/dist/cjs/ag-grid-plus/queryForm/index.d.ts +11 -11
  17. package/dist/cjs/ag-grid-plus/queryForm/index.js +72 -29
  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 +27 -8
  21. package/dist/cjs/ag-grid-plus/setting/index.d.ts +9 -8
  22. package/dist/cjs/ag-grid-plus/setting/index.js +141 -116
  23. package/dist/cjs/ag-grid-plus/settingItem/index.d.ts +3 -3
  24. package/dist/cjs/ag-grid-plus/settingItem/index.js +7 -2
  25. package/dist/cjs/ag-grid-plus/toolBar/index.d.ts +20 -20
  26. package/dist/cjs/ag-grid-plus/toolBar/index.js +57 -35
  27. package/dist/cjs/ag-grid-plus/toolBar/style.d.ts +5 -9
  28. package/dist/cjs/ag-grid-plus/toolBar/style.js +83 -81
  29. package/dist/cjs/ag-grid-plus/utils.d.ts +9 -9
  30. package/dist/cjs/ag-grid-plus/utils.js +67 -21
  31. package/dist/cjs/array-table/arrayAddBtn.d.ts +3 -3
  32. package/dist/cjs/array-table/arrayAddBtn.js +25 -6
  33. package/dist/cjs/array-table/arrayBase.d.ts +62 -62
  34. package/dist/cjs/array-table/arrayBase.js +69 -47
  35. package/dist/cjs/array-table/index.d.ts +6 -6
  36. package/dist/cjs/array-table/index.js +54 -28
  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 +16 -8
  40. package/dist/cjs/array-table/utils.d.ts +10 -10
  41. package/dist/cjs/array-table/utils.js +59 -28
  42. package/dist/cjs/array-table-index/index.d.ts +3 -3
  43. package/dist/cjs/array-table-index/index.js +15 -5
  44. package/dist/cjs/dashboard/dashboard/components/index.d.ts +2 -2
  45. package/dist/cjs/dashboard/dashboard/components/index.js +2 -0
  46. package/dist/cjs/dashboard/dashboard/components/modal/index.d.ts +3 -3
  47. package/dist/cjs/dashboard/dashboard/components/modal/index.js +9 -4
  48. package/dist/cjs/dashboard/dashboard/components/toolbar/index.d.ts +11 -11
  49. package/dist/cjs/dashboard/dashboard/components/toolbar/index.js +13 -5
  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 +234 -161
  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 +65 -41
  57. package/dist/cjs/dashboard/dashboard/utils.d.ts +9 -9
  58. package/dist/cjs/dashboard/dashboard/utils.js +70 -43
  59. package/dist/cjs/dashboard/index.d.ts +3 -3
  60. package/dist/cjs/dashboard/index.js +11 -4
  61. package/dist/cjs/dashboard/utils.d.ts +24 -24
  62. package/dist/cjs/dashboard/utils.js +59 -32
  63. package/dist/cjs/dashboard/widget/index.d.ts +13 -13
  64. package/dist/cjs/dashboard/widget/index.js +41 -20
  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 +74 -44
  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 +36 -20
  71. package/dist/cjs/dialogSelect/index.d.ts +4 -4
  72. package/dist/cjs/dialogSelect/index.js +44 -19
  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 +79 -42
  76. package/dist/cjs/editable/index.d.ts +8 -8
  77. package/dist/cjs/editable/index.js +146 -75
  78. package/dist/cjs/editable/style.d.ts +2 -2
  79. package/dist/cjs/editable/style.js +21 -17
  80. package/dist/cjs/extensible-grid/index.d.ts +4 -4
  81. package/dist/cjs/extensible-grid/index.js +14 -4
  82. package/dist/cjs/extensible-grid/interface.d.ts +14 -14
  83. package/dist/cjs/formDesigner/FormDesigner.d.ts +3 -4
  84. package/dist/cjs/formDesigner/FormDesigner.js +35 -13
  85. package/dist/cjs/formDesigner/ProCard/index.d.ts +2 -3
  86. package/dist/cjs/formDesigner/ProCard/index.js +14 -7
  87. package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.d.ts +5 -5
  88. package/dist/cjs/formDesigner/arrayTable/arrayTableSchema.js +2 -1
  89. package/dist/cjs/formDesigner/arrayTable/index.d.ts +1 -1
  90. package/dist/cjs/formDesigner/arrayTable/index.js +2 -0
  91. package/dist/cjs/formDesigner/arrayTable/preview.d.ts +3 -3
  92. package/dist/cjs/formDesigner/arrayTable/preview.js +50 -12
  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 +2 -0
  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 +2 -0
  99. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +4 -4
  100. package/dist/cjs/formDesigner/preWidgets/arrayTableIndex/preview.js +14 -7
  101. package/dist/cjs/formDesigner/preWidgets/card/index.d.ts +1 -1
  102. package/dist/cjs/formDesigner/preWidgets/card/index.js +2 -0
  103. package/dist/cjs/formDesigner/preWidgets/card/preview.d.ts +4 -4
  104. package/dist/cjs/formDesigner/preWidgets/card/preview.js +11 -1
  105. package/dist/cjs/formDesigner/preWidgets/index.d.ts +12 -12
  106. package/dist/cjs/formDesigner/preWidgets/index.js +24 -0
  107. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.d.ts +1 -1
  108. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/index.js +2 -0
  109. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +5 -5
  110. package/dist/cjs/formDesigner/preWidgets/preDefineProperty1/preview.js +16 -7
  111. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.d.ts +1 -1
  112. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/index.js +2 -0
  113. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +5 -5
  114. package/dist/cjs/formDesigner/preWidgets/preDefineProperty10/preview.js +16 -7
  115. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.d.ts +1 -1
  116. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/index.js +2 -0
  117. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +5 -5
  118. package/dist/cjs/formDesigner/preWidgets/preDefineProperty2/preview.js +16 -7
  119. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.d.ts +1 -1
  120. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/index.js +2 -0
  121. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +5 -5
  122. package/dist/cjs/formDesigner/preWidgets/preDefineProperty3/preview.js +16 -7
  123. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.d.ts +1 -1
  124. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/index.js +2 -0
  125. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +5 -5
  126. package/dist/cjs/formDesigner/preWidgets/preDefineProperty4/preview.js +16 -7
  127. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.d.ts +1 -1
  128. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/index.js +2 -0
  129. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +5 -5
  130. package/dist/cjs/formDesigner/preWidgets/preDefineProperty5/preview.js +16 -7
  131. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.d.ts +1 -1
  132. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/index.js +2 -0
  133. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +5 -5
  134. package/dist/cjs/formDesigner/preWidgets/preDefineProperty6/preview.js +16 -7
  135. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.d.ts +1 -1
  136. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/index.js +2 -0
  137. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +5 -5
  138. package/dist/cjs/formDesigner/preWidgets/preDefineProperty7/preview.js +16 -7
  139. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.d.ts +1 -1
  140. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/index.js +2 -0
  141. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +5 -5
  142. package/dist/cjs/formDesigner/preWidgets/preDefineProperty8/preview.js +16 -7
  143. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.d.ts +1 -1
  144. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/index.js +2 -0
  145. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +5 -5
  146. package/dist/cjs/formDesigner/preWidgets/preDefineProperty9/preview.js +16 -7
  147. package/dist/cjs/formDesigner/preWidgets/utils.d.ts +294 -294
  148. package/dist/cjs/formDesigner/preWidgets/utils.js +21 -10
  149. package/dist/cjs/formDesigner/widgets/ActionsWidget.d.ts +2 -2
  150. package/dist/cjs/formDesigner/widgets/ActionsWidget.js +15 -5
  151. package/dist/cjs/formDesigner/widgets/LogoWidget.d.ts +2 -2
  152. package/dist/cjs/formDesigner/widgets/LogoWidget.js +9 -3
  153. package/dist/cjs/formDesigner/widgets/PreviewWidget.d.ts +7 -7
  154. package/dist/cjs/formDesigner/widgets/PreviewWidget.js +27 -12
  155. package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.d.ts +7 -7
  156. package/dist/cjs/formDesigner/widgets/SchemaEditorWidget.js +11 -4
  157. package/dist/cjs/formDesigner/widgets/index.d.ts +4 -4
  158. package/dist/cjs/formDesigner/widgets/index.js +8 -0
  159. package/dist/cjs/formPro/context/formProContext.d.ts +13 -13
  160. package/dist/cjs/formPro/context/formProContext.js +7 -2
  161. package/dist/cjs/formPro/formLayoutPro.d.ts +9 -9
  162. package/dist/cjs/formPro/formLayoutPro.js +15 -4
  163. package/dist/cjs/formPro/index.d.ts +2 -2
  164. package/dist/cjs/formPro/index.js +2 -0
  165. package/dist/cjs/index.d.ts +12 -12
  166. package/dist/cjs/index.js +11 -0
  167. package/dist/esm/ag-grid-plus/_utils/boolSelect.d.ts +4 -4
  168. package/dist/esm/ag-grid-plus/_utils/boolSelect.js +36 -37
  169. package/dist/esm/ag-grid-plus/ag-gridPlus.d.ts +7 -6
  170. package/dist/esm/ag-grid-plus/ag-gridPlus.js +143 -95
  171. package/dist/esm/ag-grid-plus/context/gridContext.d.ts +12 -12
  172. package/dist/esm/ag-grid-plus/global.scss +31 -0
  173. package/dist/esm/ag-grid-plus/gridManager/index.d.ts +8 -7
  174. package/dist/esm/ag-grid-plus/gridManager/index.js +28 -19
  175. package/dist/esm/ag-grid-plus/index.d.ts +9 -11
  176. package/dist/esm/ag-grid-plus/index.js +0 -1
  177. package/dist/esm/ag-grid-plus/index.less +6 -6
  178. package/dist/esm/ag-grid-plus/interface.d.ts +39 -39
  179. package/dist/esm/ag-grid-plus/interface.js +1 -2
  180. package/dist/esm/ag-grid-plus/queryForm/index.d.ts +11 -11
  181. package/dist/esm/ag-grid-plus/queryForm/index.js +54 -26
  182. package/dist/esm/ag-grid-plus/queryForm/index.less +48 -48
  183. package/dist/esm/ag-grid-plus/queryForm/queryForm.d.ts +3 -3
  184. package/dist/esm/ag-grid-plus/queryForm/queryForm.js +14 -4
  185. package/dist/esm/ag-grid-plus/setting/index.d.ts +9 -8
  186. package/dist/esm/ag-grid-plus/setting/index.js +128 -129
  187. package/dist/esm/ag-grid-plus/settingItem/index.d.ts +3 -3
  188. package/dist/esm/ag-grid-plus/settingItem/index.js +3 -1
  189. package/dist/esm/ag-grid-plus/toolBar/index.d.ts +20 -20
  190. package/dist/esm/ag-grid-plus/toolBar/index.js +43 -32
  191. package/dist/esm/ag-grid-plus/toolBar/style.d.ts +5 -9
  192. package/dist/esm/ag-grid-plus/toolBar/style.js +83 -82
  193. package/dist/esm/ag-grid-plus/utils.d.ts +9 -9
  194. package/dist/esm/ag-grid-plus/utils.js +45 -13
  195. package/dist/esm/array-table/arrayAddBtn.d.ts +3 -3
  196. package/dist/esm/array-table/arrayAddBtn.js +15 -5
  197. package/dist/esm/array-table/arrayBase.d.ts +62 -62
  198. package/dist/esm/array-table/arrayBase.js +48 -43
  199. package/dist/esm/array-table/index.d.ts +6 -6
  200. package/dist/esm/array-table/index.js +33 -26
  201. package/dist/esm/array-table/interface.d.ts +16 -16
  202. package/dist/esm/array-table/preview.d.ts +3 -3
  203. package/dist/esm/array-table/preview.js +4 -6
  204. package/dist/esm/array-table/utils.d.ts +10 -10
  205. package/dist/esm/array-table/utils.js +35 -21
  206. package/dist/esm/array-table-index/index.d.ts +3 -3
  207. package/dist/esm/dashboard/dashboard/components/index.d.ts +2 -2
  208. package/dist/esm/dashboard/dashboard/components/modal/index.d.ts +3 -3
  209. package/dist/esm/dashboard/dashboard/components/modal/index.js +4 -2
  210. package/dist/esm/dashboard/dashboard/components/toolbar/index.d.ts +11 -11
  211. package/dist/esm/dashboard/dashboard/components/toolbar/index.js +6 -4
  212. package/dist/esm/dashboard/dashboard/components/toolbar/style/index.d.ts +1 -1
  213. package/dist/esm/dashboard/dashboard/components/toolbar/style/index.less +49 -49
  214. package/dist/esm/dashboard/dashboard/index.d.ts +62 -62
  215. package/dist/esm/dashboard/dashboard/index.js +207 -158
  216. package/dist/esm/dashboard/dashboard/index.less +173 -173
  217. package/dist/esm/dashboard/dashboard/service.d.ts +8 -8
  218. package/dist/esm/dashboard/dashboard/service.js +61 -45
  219. package/dist/esm/dashboard/dashboard/utils.d.ts +9 -9
  220. package/dist/esm/dashboard/dashboard/utils.js +55 -38
  221. package/dist/esm/dashboard/index.d.ts +3 -3
  222. package/dist/esm/dashboard/utils.d.ts +24 -24
  223. package/dist/esm/dashboard/utils.js +47 -30
  224. package/dist/esm/dashboard/widget/index.d.ts +13 -13
  225. package/dist/esm/dashboard/widget/index.js +30 -17
  226. package/dist/esm/dashboard/widget/index.less +7 -7
  227. package/dist/esm/dashboard/widget/selector/index.d.ts +4 -4
  228. package/dist/esm/dashboard/widget/selector/index.js +58 -40
  229. package/dist/esm/dashboard/widget/selector/index.less +172 -172
  230. package/dist/esm/dashboard/widget/utils.d.ts +4 -4
  231. package/dist/esm/dashboard/widget/utils.js +14 -16
  232. package/dist/esm/dialogSelect/index.d.ts +4 -4
  233. package/dist/esm/dialogSelect/index.js +35 -18
  234. package/dist/esm/dialogSelect/interface.d.ts +11 -11
  235. package/dist/esm/dialogSelect/selectModal.d.ts +6 -6
  236. package/dist/esm/dialogSelect/selectModal.js +67 -39
  237. package/dist/esm/editable/index.d.ts +8 -8
  238. package/dist/esm/editable/index.js +125 -71
  239. package/dist/esm/editable/style.d.ts +2 -2
  240. package/dist/esm/editable/style.js +15 -15
  241. package/dist/esm/extensible-grid/index.d.ts +4 -4
  242. package/dist/esm/extensible-grid/index.js +9 -3
  243. package/dist/esm/extensible-grid/interface.d.ts +14 -14
  244. package/dist/esm/formDesigner/FormDesigner.d.ts +3 -4
  245. package/dist/esm/formDesigner/FormDesigner.js +16 -10
  246. package/dist/esm/formDesigner/ProCard/index.d.ts +2 -3
  247. package/dist/esm/formDesigner/ProCard/index.js +9 -6
  248. package/dist/esm/formDesigner/arrayTable/arrayTableSchema.d.ts +5 -5
  249. package/dist/esm/formDesigner/arrayTable/index.d.ts +1 -1
  250. package/dist/esm/formDesigner/arrayTable/preview.d.ts +3 -3
  251. package/dist/esm/formDesigner/arrayTable/preview.js +25 -9
  252. package/dist/esm/formDesigner/arrayTable/styles.less +2 -2
  253. package/dist/esm/formDesigner/index.d.ts +2 -2
  254. package/dist/esm/formDesigner/index.less +2 -2
  255. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/index.d.ts +1 -1
  256. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.d.ts +4 -4
  257. package/dist/esm/formDesigner/preWidgets/arrayTableIndex/preview.js +6 -6
  258. package/dist/esm/formDesigner/preWidgets/card/index.d.ts +1 -1
  259. package/dist/esm/formDesigner/preWidgets/card/preview.d.ts +4 -4
  260. package/dist/esm/formDesigner/preWidgets/card/preview.js +1 -0
  261. package/dist/esm/formDesigner/preWidgets/index.d.ts +12 -12
  262. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/index.d.ts +1 -1
  263. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.d.ts +5 -5
  264. package/dist/esm/formDesigner/preWidgets/preDefineProperty1/preview.js +8 -6
  265. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/index.d.ts +1 -1
  266. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.d.ts +5 -5
  267. package/dist/esm/formDesigner/preWidgets/preDefineProperty10/preview.js +8 -6
  268. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/index.d.ts +1 -1
  269. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.d.ts +5 -5
  270. package/dist/esm/formDesigner/preWidgets/preDefineProperty2/preview.js +8 -6
  271. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/index.d.ts +1 -1
  272. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.d.ts +5 -5
  273. package/dist/esm/formDesigner/preWidgets/preDefineProperty3/preview.js +8 -6
  274. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/index.d.ts +1 -1
  275. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.d.ts +5 -5
  276. package/dist/esm/formDesigner/preWidgets/preDefineProperty4/preview.js +8 -6
  277. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/index.d.ts +1 -1
  278. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.d.ts +5 -5
  279. package/dist/esm/formDesigner/preWidgets/preDefineProperty5/preview.js +8 -6
  280. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/index.d.ts +1 -1
  281. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.d.ts +5 -5
  282. package/dist/esm/formDesigner/preWidgets/preDefineProperty6/preview.js +8 -6
  283. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/index.d.ts +1 -1
  284. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.d.ts +5 -5
  285. package/dist/esm/formDesigner/preWidgets/preDefineProperty7/preview.js +8 -6
  286. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/index.d.ts +1 -1
  287. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.d.ts +5 -5
  288. package/dist/esm/formDesigner/preWidgets/preDefineProperty8/preview.js +8 -6
  289. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/index.d.ts +1 -1
  290. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.d.ts +5 -5
  291. package/dist/esm/formDesigner/preWidgets/preDefineProperty9/preview.js +8 -6
  292. package/dist/esm/formDesigner/preWidgets/utils.d.ts +294 -294
  293. package/dist/esm/formDesigner/preWidgets/utils.js +6 -6
  294. package/dist/esm/formDesigner/widgets/ActionsWidget.d.ts +2 -2
  295. package/dist/esm/formDesigner/widgets/LogoWidget.d.ts +2 -2
  296. package/dist/esm/formDesigner/widgets/LogoWidget.js +0 -1
  297. package/dist/esm/formDesigner/widgets/PreviewWidget.d.ts +7 -7
  298. package/dist/esm/formDesigner/widgets/PreviewWidget.js +11 -8
  299. package/dist/esm/formDesigner/widgets/SchemaEditorWidget.d.ts +7 -7
  300. package/dist/esm/formDesigner/widgets/SchemaEditorWidget.js +4 -3
  301. package/dist/esm/formDesigner/widgets/index.d.ts +4 -4
  302. package/dist/esm/formPro/context/formProContext.d.ts +13 -13
  303. package/dist/esm/formPro/formLayoutPro.d.ts +9 -9
  304. package/dist/esm/formPro/formLayoutPro.js +9 -3
  305. package/dist/esm/formPro/index.d.ts +2 -2
  306. package/dist/esm/index.d.ts +12 -12
  307. package/dist/umd/qc-ui.min.css +1 -1
  308. package/dist/umd/qc-ui.min.js +1 -1
  309. package/package.json +64 -64
  310. package/dist/cjs/ag-grid-plus/ag-grid-theme-builder.css +0 -401
  311. package/dist/cjs/type.d.ts +0 -1
  312. package/dist/esm/ag-grid-plus/ag-grid-theme-builder.css +0 -401
  313. package/dist/esm/type.d.ts +0 -1
@@ -1,66 +1,87 @@
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
+ 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
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.request = exports.formatLayout = exports.copy = exports.calcMinAndMax = void 0;
9
+
8
10
  var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
11
+
9
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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; }
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
+
11
16
  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
+
12
18
  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'
14
19
 
15
- var request = exports.request = /*#__PURE__*/function () {
20
+ var request = /*#__PURE__*/function () {
16
21
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, options) {
17
22
  var method, _options$data, dataId, dataType, bigData, res;
23
+
18
24
  return _regeneratorRuntime().wrap(function _callee$(_context) {
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();
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
+ }
39
52
  }
40
53
  }, _callee);
41
54
  }));
55
+
42
56
  return function request(_x, _x2) {
43
57
  return _ref.apply(this, arguments);
44
58
  };
45
59
  }();
46
-
47
- /**
48
- *复制字符串到系统剪切板
49
- *
50
- * @param {*} str
60
+ /**
61
+ *复制字符串到系统剪切板
62
+ *
63
+ * @param {*} str
51
64
  */
52
- var copy = exports.copy = function copy(str) {
65
+
66
+
67
+ exports.request = request;
68
+
69
+ var copy = function copy(str) {
53
70
  var save = function save(e) {
54
71
  e.clipboardData.setData('text/plain', str);
55
72
  e.preventDefault(); //阻止默认行为
56
73
  };
74
+
57
75
  document.addEventListener('copy', save);
58
76
  document.execCommand('copy');
59
77
  setTimeout(function () {
60
78
  document.removeEventListener('copy', save);
61
79
  }, 1000);
62
80
  };
63
- var formatLayout = exports.formatLayout = function formatLayout(layout) {
81
+
82
+ exports.copy = copy;
83
+
84
+ var formatLayout = function formatLayout(layout) {
64
85
  var data = (0, _cloneDeep2.default)(layout);
65
86
  data.forEach(function (item) {
66
87
  delete item.minW;
@@ -71,28 +92,34 @@ var formatLayout = exports.formatLayout = function formatLayout(layout) {
71
92
  delete item.static;
72
93
  });
73
94
  return data;
74
- };
95
+ }; //添加最大最小值
75
96
 
76
- //添加最大最小值
77
- var calcMinAndMax = exports.calcMinAndMax = function calcMinAndMax(data, widgets) {
97
+
98
+ exports.formatLayout = formatLayout;
99
+
100
+ var calcMinAndMax = function calcMinAndMax(data, widgets) {
78
101
  data.map(function (item, index) {
79
102
  var key = item.i.split('-')[0];
103
+
80
104
  if (!key) {
81
105
  return;
82
106
  }
107
+
83
108
  var _widgets$key = widgets[key],
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;
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;
92
117
  item.minW = minW;
93
118
  item.maxW = maxW;
94
119
  item.minH = minH;
95
120
  item.maxH = maxH;
96
121
  });
97
122
  return data;
98
- };
123
+ };
124
+
125
+ exports.calcMinAndMax = calcMinAndMax;
@@ -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,12 +1,15 @@
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
+ 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
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  var _exportNames = {};
8
9
  exports.default = void 0;
10
+
9
11
  var _dashboard = _interopRequireWildcard(require("./dashboard"));
12
+
10
13
  Object.keys(_dashboard).forEach(function (key) {
11
14
  if (key === "default" || key === "__esModule") return;
12
15
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -18,6 +21,10 @@ Object.keys(_dashboard).forEach(function (key) {
18
21
  }
19
22
  });
20
23
  });
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;
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;
@@ -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,6 +1,5 @@
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); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -9,44 +8,62 @@ exports.generateUuid = generateUuid;
9
8
  exports.getPosition = void 0;
10
9
  exports.randomNum = randomNum;
11
10
  exports.reducer = reducer;
11
+
12
12
  var _antd = require("antd");
13
+
13
14
  var _excluded = ["content", "okType"];
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); }
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
+
19
22
  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
+
20
24
  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
+
21
26
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
+
22
28
  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
+
23
30
  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); }
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; } }
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
+
26
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
+
27
38
  function randomNum(minNum, maxNum) {
28
39
  switch (arguments.length) {
29
40
  case 1:
30
41
  return Math.floor(Math.random() * minNum + 1);
31
42
  break;
43
+
32
44
  case 2:
33
45
  return Math.floor(Math.random() * (maxNum - minNum + 1) + minNum);
34
46
  break;
47
+
35
48
  default:
36
49
  return 0;
37
50
  break;
38
51
  }
39
52
  }
40
- var getPosition = exports.getPosition = function getPosition(random, fontSize) {
53
+
54
+ var getPosition = function getPosition(random, fontSize) {
41
55
  if (!random) {
42
56
  return {
43
57
  fontSize: fontSize
44
58
  };
45
59
  }
60
+
46
61
  var fontSizeRange = random.fontSizeRange;
62
+
47
63
  var _fontSizeRange = _slicedToArray(fontSizeRange, 2),
48
- minNum = _fontSizeRange[0],
49
- maxNum = _fontSizeRange[1];
64
+ minNum = _fontSizeRange[0],
65
+ maxNum = _fontSizeRange[1];
66
+
50
67
  var fontSizeFin = randomNum(minNum, maxNum);
51
68
  var top = randomNum(0, 100) + '%';
52
69
  var left = randomNum(0, 100) + '%';
@@ -56,12 +73,15 @@ var getPosition = exports.getPosition = function getPosition(random, fontSize) {
56
73
  left: left
57
74
  };
58
75
  };
59
-
60
- /*
61
- 生成uuid
62
- len:number 长度
63
- radix:number 进制
76
+ /*
77
+ 生成uuid
78
+ len:number 长度
79
+ radix:number 进制
64
80
  */
81
+
82
+
83
+ exports.getPosition = getPosition;
84
+
65
85
  function generateUuid() {
66
86
  var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
67
87
  var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
@@ -69,19 +89,20 @@ function generateUuid() {
69
89
  var uuid = [];
70
90
  var i;
71
91
  radix = radix || chars.length;
92
+
72
93
  if (len) {
73
94
  // Compact form
74
- for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
95
+ for (i = 0; i < len; i++) {
96
+ uuid[i] = chars[0 | Math.random() * radix];
97
+ }
75
98
  } else {
76
99
  // rfc4122, version 4 form
77
- var r;
100
+ var r; // rfc4122 requires these characters
78
101
 
79
- // rfc4122 requires these characters
80
102
  uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
81
- uuid[14] = '4';
82
-
83
- // Fill in random data. At i==19 set the high bits of clock sequence as
103
+ uuid[14] = '4'; // Fill in random data. At i==19 set the high bits of clock sequence as
84
104
  // per rfc4122, sec. 4.1.5
105
+
85
106
  for (i = 0; i < 36; i++) {
86
107
  if (!uuid[i]) {
87
108
  r = 0 | Math.random() * 16;
@@ -89,20 +110,24 @@ function generateUuid() {
89
110
  }
90
111
  }
91
112
  }
113
+
92
114
  return uuid.join('');
93
115
  }
116
+
94
117
  var confirm = _antd.Modal.confirm;
95
- /**
96
- * 异步确认弹窗,抛出确认或取消布尔值
97
- *
98
- * @param {confirmUtilAsyncProps} props
118
+ /**
119
+ * 异步确认弹窗,抛出确认或取消布尔值
120
+ *
121
+ * @param {confirmUtilAsyncProps} props
99
122
  */
100
- var confirmUtilAsync = exports.confirmUtilAsync = function confirmUtilAsync(props) {
123
+
124
+ var confirmUtilAsync = function confirmUtilAsync(props) {
101
125
  return new Promise(function (resolve, reject) {
102
126
  var content = props.content,
103
- _props$okType = props.okType,
104
- okType = _props$okType === void 0 ? 'primary' : _props$okType,
105
- restProps = _objectWithoutProperties(props, _excluded);
127
+ _props$okType = props.okType,
128
+ okType = _props$okType === void 0 ? 'primary' : _props$okType,
129
+ restProps = _objectWithoutProperties(props, _excluded);
130
+
106
131
  confirm(_objectSpread({
107
132
  title: '提示',
108
133
  content: content,
@@ -124,9 +149,11 @@ var confirmUtilAsync = exports.confirmUtilAsync = function confirmUtilAsync(prop
124
149
  }
125
150
  }, restProps));
126
151
  });
127
- };
152
+ }; // 基础reducer
153
+
154
+
155
+ exports.confirmUtilAsync = confirmUtilAsync;
128
156
 
129
- // 基础reducer
130
157
  function reducer(state, action) {
131
158
  switch (action.type) {
132
159
  case 'save':
@@ -1,13 +1,13 @@
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
+ /// <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,42 +1,61 @@
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
+ 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
+
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
9
+
8
10
  var _get2 = _interopRequireDefault(require("lodash/get"));
11
+
9
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
+
10
14
  var _react = _interopRequireWildcard(require("react"));
15
+
11
16
  require("./index.less");
17
+
12
18
  var _utils = require("./utils");
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; }
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
+
15
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); }
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
+
21
32
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+
22
34
  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
+
23
36
  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); }
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; } }
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
+
26
42
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
+
27
44
  //widget渲染器
28
45
  var Widget = function Widget(props) {
29
46
  var widgets = props.widgets,
30
- widgetKey = props.widgetKey,
31
- widgetType = props.widgetType,
32
- editMode = props.editMode,
33
- onDeleteWidget = props.onDeleteWidget,
34
- widgetWrapClassName = props.widgetWrapClassName,
35
- widgetWrapStyle = props.widgetWrapStyle;
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
+
36
54
  var _useState = (0, _react.useState)(false),
37
- _useState2 = _slicedToArray(_useState, 2),
38
- configShow = _useState2[0],
39
- setConfigShow = _useState2[1];
55
+ _useState2 = _slicedToArray(_useState, 2),
56
+ configShow = _useState2[0],
57
+ setConfigShow = _useState2[1];
58
+
40
59
  var component = (0, _get2.default)(widgets, widgetType + '.component');
41
60
  var configComponent = (0, _get2.default)(widgets, widgetType + '.configComponent');
42
61
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -53,4 +72,6 @@ var Widget = function Widget(props) {
53
72
  setVisible: setConfigShow
54
73
  })));
55
74
  };
56
- var _default = exports.default = Widget;
75
+
76
+ var _default = Widget;
77
+ exports.default = _default;
@@ -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
+ }