amis-core 2.6.0 → 2.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 (451) hide show
  1. package/package.json +2 -2
  2. package/esm/Root.d.ts +0 -46
  3. package/esm/Root.js +0 -89
  4. package/esm/RootRenderer.d.ts +0 -27
  5. package/esm/RootRenderer.js +0 -279
  6. package/esm/SchemaRenderer.d.ts +0 -37
  7. package/esm/SchemaRenderer.js +0 -332
  8. package/esm/Scoped.d.ts +0 -38
  9. package/esm/Scoped.js +0 -262
  10. package/esm/WithRootStore.d.ts +0 -719
  11. package/esm/WithRootStore.js +0 -34
  12. package/esm/WithStore.d.ts +0 -5
  13. package/esm/WithStore.js +0 -181
  14. package/esm/actions/Action.d.ts +0 -40
  15. package/esm/actions/Action.js +0 -186
  16. package/esm/actions/AjaxAction.d.ts +0 -27
  17. package/esm/actions/AjaxAction.js +0 -96
  18. package/esm/actions/BreakAction.d.ts +0 -15
  19. package/esm/actions/BreakAction.js +0 -31
  20. package/esm/actions/BroadcastAction.d.ts +0 -19
  21. package/esm/actions/BroadcastAction.js +0 -46
  22. package/esm/actions/CmptAction.d.ts +0 -21
  23. package/esm/actions/CmptAction.js +0 -66
  24. package/esm/actions/ContinueAction.d.ts +0 -15
  25. package/esm/actions/ContinueAction.js +0 -31
  26. package/esm/actions/CopyAction.d.ts +0 -20
  27. package/esm/actions/CopyAction.js +0 -39
  28. package/esm/actions/CustomAction.d.ts +0 -22
  29. package/esm/actions/CustomAction.js +0 -74
  30. package/esm/actions/DialogAction.d.ts +0 -60
  31. package/esm/actions/DialogAction.js +0 -101
  32. package/esm/actions/DrawerAction.d.ts +0 -33
  33. package/esm/actions/DrawerAction.js +0 -65
  34. package/esm/actions/EmailAction.d.ts +0 -23
  35. package/esm/actions/EmailAction.js +0 -39
  36. package/esm/actions/LinkAction.d.ts +0 -24
  37. package/esm/actions/LinkAction.js +0 -43
  38. package/esm/actions/LoopAction.d.ts +0 -19
  39. package/esm/actions/LoopAction.js +0 -103
  40. package/esm/actions/PageAction.d.ts +0 -39
  41. package/esm/actions/PageAction.js +0 -74
  42. package/esm/actions/ParallelAction.d.ts +0 -8
  43. package/esm/actions/ParallelAction.js +0 -36
  44. package/esm/actions/SwitchAction.d.ts +0 -11
  45. package/esm/actions/SwitchAction.js +0 -48
  46. package/esm/actions/ToastAction.d.ts +0 -19
  47. package/esm/actions/ToastAction.js +0 -31
  48. package/esm/actions/index.d.ts +0 -20
  49. package/esm/components/LazyComponent.d.ts +0 -32
  50. package/esm/components/LazyComponent.js +0 -90
  51. package/esm/components/Overlay.d.ts +0 -44
  52. package/esm/components/Overlay.js +0 -255
  53. package/esm/components/PopOver.d.ts +0 -90
  54. package/esm/components/PopOver.js +0 -120
  55. package/esm/env.d.ts +0 -176
  56. package/esm/env.js +0 -12
  57. package/esm/envOverwrite.d.ts +0 -4
  58. package/esm/envOverwrite.js +0 -39
  59. package/esm/factory.d.ts +0 -85
  60. package/esm/factory.js +0 -301
  61. package/esm/index.d.ts +0 -44
  62. package/esm/index.js +0 -174
  63. package/esm/locale.d.ts +0 -84
  64. package/esm/locale.js +0 -117
  65. package/esm/renderers/Form.d.ts +0 -389
  66. package/esm/renderers/Form.js +0 -1221
  67. package/esm/renderers/Item.d.ts +0 -906
  68. package/esm/renderers/Item.js +0 -863
  69. package/esm/renderers/Options.d.ts +0 -158
  70. package/esm/renderers/Options.js +0 -908
  71. package/esm/renderers/Placeholder.d.ts +0 -6
  72. package/esm/renderers/Placeholder.js +0 -23
  73. package/esm/renderers/builtin.d.ts +0 -1
  74. package/esm/renderers/builtin.js +0 -25
  75. package/esm/renderers/register.d.ts +0 -6
  76. package/esm/renderers/register.js +0 -79
  77. package/esm/renderers/wrapControl.d.ts +0 -437
  78. package/esm/renderers/wrapControl.js +0 -509
  79. package/esm/store/app.d.ts +0 -92
  80. package/esm/store/app.js +0 -189
  81. package/esm/store/combo.d.ts +0 -10223
  82. package/esm/store/combo.js +0 -149
  83. package/esm/store/crud.d.ts +0 -128
  84. package/esm/store/crud.js +0 -447
  85. package/esm/store/form.d.ts +0 -4252
  86. package/esm/store/form.js +0 -650
  87. package/esm/store/formItem.d.ts +0 -133
  88. package/esm/store/formItem.js +0 -847
  89. package/esm/store/iRenderer.d.ts +0 -46
  90. package/esm/store/iRenderer.js +0 -185
  91. package/esm/store/index.d.ts +0 -125
  92. package/esm/store/index.js +0 -90
  93. package/esm/store/list.d.ts +0 -272
  94. package/esm/store/list.js +0 -246
  95. package/esm/store/manager.d.ts +0 -115
  96. package/esm/store/manager.js +0 -49
  97. package/esm/store/modal.d.ts +0 -84
  98. package/esm/store/modal.js +0 -50
  99. package/esm/store/node.d.ts +0 -22
  100. package/esm/store/node.js +0 -89
  101. package/esm/store/pagination.d.ts +0 -58
  102. package/esm/store/pagination.js +0 -56
  103. package/esm/store/root.d.ts +0 -85
  104. package/esm/store/root.js +0 -53
  105. package/esm/store/service.d.ts +0 -71
  106. package/esm/store/service.js +0 -411
  107. package/esm/store/table.d.ts +0 -10085
  108. package/esm/store/table.js +0 -1136
  109. package/esm/store/table2.d.ts +0 -474
  110. package/esm/store/table2.js +0 -560
  111. package/esm/theme.d.ts +0 -89
  112. package/esm/theme.js +0 -127
  113. package/esm/types.d.ts +0 -489
  114. package/esm/utils/Animation.d.ts +0 -22
  115. package/esm/utils/Animation.js +0 -285
  116. package/esm/utils/ColorScale.d.ts +0 -19
  117. package/esm/utils/ColorScale.js +0 -100
  118. package/esm/utils/DataSchema.d.ts +0 -25
  119. package/esm/utils/DataSchema.js +0 -112
  120. package/esm/utils/DataScope.d.ts +0 -26
  121. package/esm/utils/DataScope.js +0 -158
  122. package/esm/utils/RootClose.d.ts +0 -4
  123. package/esm/utils/RootClose.js +0 -22
  124. package/esm/utils/SimpleMap.d.ts +0 -8
  125. package/esm/utils/SimpleMap.js +0 -37
  126. package/esm/utils/api.d.ts +0 -34
  127. package/esm/utils/api.js +0 -595
  128. package/esm/utils/attachmentAdpator.d.ts +0 -8
  129. package/esm/utils/attachmentAdpator.js +0 -86
  130. package/esm/utils/autobind.d.ts +0 -7
  131. package/esm/utils/autobind.js +0 -89
  132. package/esm/utils/columnsSplit.d.ts +0 -1
  133. package/esm/utils/columnsSplit.js +0 -42
  134. package/esm/utils/dataMapping.d.ts +0 -9
  135. package/esm/utils/dataMapping.js +0 -141
  136. package/esm/utils/date.d.ts +0 -4
  137. package/esm/utils/date.js +0 -80
  138. package/esm/utils/debug.d.ts +0 -29
  139. package/esm/utils/debug.js +0 -379
  140. package/esm/utils/decodeEntity.d.ts +0 -5
  141. package/esm/utils/decodeEntity.js +0 -16
  142. package/esm/utils/dom.d.ts +0 -13
  143. package/esm/utils/dom.js +0 -188
  144. package/esm/utils/errors.d.ts +0 -6
  145. package/esm/utils/errors.js +0 -19
  146. package/esm/utils/escapeHtml.d.ts +0 -1
  147. package/esm/utils/escapeHtml.js +0 -20
  148. package/esm/utils/filter-schema.d.ts +0 -13
  149. package/esm/utils/filter-schema.js +0 -68
  150. package/esm/utils/filter.d.ts +0 -1
  151. package/esm/utils/filter.js +0 -493
  152. package/esm/utils/formatDuration.d.ts +0 -1
  153. package/esm/utils/formatDuration.js +0 -23
  154. package/esm/utils/formula.d.ts +0 -16
  155. package/esm/utils/formula.js +0 -219
  156. package/esm/utils/getVariable.d.ts +0 -3
  157. package/esm/utils/getVariable.js +0 -25
  158. package/esm/utils/grammar.d.ts +0 -4
  159. package/esm/utils/grammar.js +0 -50
  160. package/esm/utils/handleAction.d.ts +0 -7
  161. package/esm/utils/handleAction.js +0 -34
  162. package/esm/utils/helper.d.ts +0 -323
  163. package/esm/utils/helper.js +0 -1261
  164. package/esm/utils/highlight.d.ts +0 -1
  165. package/esm/utils/highlight.js +0 -44
  166. package/esm/utils/icon.d.ts +0 -16
  167. package/esm/utils/icon.js +0 -35
  168. package/esm/utils/image.d.ts +0 -18
  169. package/esm/utils/image.js +0 -47
  170. package/esm/utils/index.d.ts +0 -55
  171. package/esm/utils/isPureVariable.d.ts +0 -1
  172. package/esm/utils/isPureVariable.js +0 -22
  173. package/esm/utils/json-schema-2-amis-schema.d.ts +0 -6
  174. package/esm/utils/json-schema-2-amis-schema.js +0 -56
  175. package/esm/utils/keyToPath.d.ts +0 -6
  176. package/esm/utils/keyToPath.js +0 -30
  177. package/esm/utils/makeSorter.d.ts +0 -1
  178. package/esm/utils/makeSorter.js +0 -26
  179. package/esm/utils/normalizeLink.d.ts +0 -1
  180. package/esm/utils/normalizeLink.js +0 -43
  181. package/esm/utils/normalizeOptions.d.ts +0 -7
  182. package/esm/utils/normalizeOptions.js +0 -84
  183. package/esm/utils/object.d.ts +0 -15
  184. package/esm/utils/object.js +0 -142
  185. package/esm/utils/offset.d.ts +0 -15
  186. package/esm/utils/offset.js +0 -32
  187. package/esm/utils/offsetParent.d.ts +0 -5
  188. package/esm/utils/offsetParent.js +0 -23
  189. package/esm/utils/optionValueCompare.d.ts +0 -3
  190. package/esm/utils/optionValueCompare.js +0 -25
  191. package/esm/utils/position.d.ts +0 -26
  192. package/esm/utils/position.js +0 -54
  193. package/esm/utils/prettyBytes.d.ts +0 -1
  194. package/esm/utils/prettyBytes.js +0 -25
  195. package/esm/utils/renderer-event.d.ts +0 -62
  196. package/esm/utils/renderer-event.js +0 -206
  197. package/esm/utils/replaceText.d.ts +0 -3
  198. package/esm/utils/replaceText.js +0 -38
  199. package/esm/utils/resize-sensor.d.ts +0 -6
  200. package/esm/utils/resize-sensor.js +0 -172
  201. package/esm/utils/resolveVariable.d.ts +0 -1
  202. package/esm/utils/resolveVariable.js +0 -35
  203. package/esm/utils/resolveVariableAndFilter.d.ts +0 -1
  204. package/esm/utils/resolveVariableAndFilter.js +0 -33
  205. package/esm/utils/scrollPosition.d.ts +0 -16
  206. package/esm/utils/scrollPosition.js +0 -33
  207. package/esm/utils/string2regExp.d.ts +0 -1
  208. package/esm/utils/string2regExp.js +0 -14
  209. package/esm/utils/stripNumber.d.ts +0 -1
  210. package/esm/utils/stripNumber.js +0 -16
  211. package/esm/utils/style.d.ts +0 -10
  212. package/esm/utils/style.js +0 -58
  213. package/esm/utils/toNumber.d.ts +0 -7
  214. package/esm/utils/toNumber.js +0 -18
  215. package/esm/utils/tokenize.d.ts +0 -1
  216. package/esm/utils/tokenize.js +0 -29
  217. package/esm/utils/tpl-builtin.d.ts +0 -18
  218. package/esm/utils/tpl-builtin.js +0 -59
  219. package/esm/utils/tpl-lodash.d.ts +0 -4
  220. package/esm/utils/tpl-lodash.js +0 -62
  221. package/esm/utils/tpl.d.ts +0 -11
  222. package/esm/utils/tpl.js +0 -131
  223. package/esm/utils/uncontrollable.d.ts +0 -4
  224. package/esm/utils/uncontrollable.js +0 -14
  225. package/esm/utils/validations.d.ts +0 -39
  226. package/esm/utils/validations.js +0 -440
  227. package/lib/Root.d.ts +0 -46
  228. package/lib/Root.js +0 -102
  229. package/lib/RootRenderer.d.ts +0 -27
  230. package/lib/RootRenderer.js +0 -290
  231. package/lib/SchemaRenderer.d.ts +0 -37
  232. package/lib/SchemaRenderer.js +0 -342
  233. package/lib/Scoped.d.ts +0 -38
  234. package/lib/Scoped.js +0 -274
  235. package/lib/WithRootStore.d.ts +0 -719
  236. package/lib/WithRootStore.js +0 -44
  237. package/lib/WithStore.d.ts +0 -5
  238. package/lib/WithStore.js +0 -190
  239. package/lib/actions/Action.d.ts +0 -40
  240. package/lib/actions/Action.js +0 -197
  241. package/lib/actions/AjaxAction.d.ts +0 -27
  242. package/lib/actions/AjaxAction.js +0 -100
  243. package/lib/actions/BreakAction.d.ts +0 -15
  244. package/lib/actions/BreakAction.js +0 -35
  245. package/lib/actions/BroadcastAction.d.ts +0 -19
  246. package/lib/actions/BroadcastAction.js +0 -50
  247. package/lib/actions/CmptAction.d.ts +0 -21
  248. package/lib/actions/CmptAction.js +0 -70
  249. package/lib/actions/ContinueAction.d.ts +0 -15
  250. package/lib/actions/ContinueAction.js +0 -35
  251. package/lib/actions/CopyAction.d.ts +0 -20
  252. package/lib/actions/CopyAction.js +0 -43
  253. package/lib/actions/CustomAction.d.ts +0 -22
  254. package/lib/actions/CustomAction.js +0 -78
  255. package/lib/actions/DialogAction.d.ts +0 -60
  256. package/lib/actions/DialogAction.js +0 -108
  257. package/lib/actions/DrawerAction.d.ts +0 -33
  258. package/lib/actions/DrawerAction.js +0 -70
  259. package/lib/actions/EmailAction.d.ts +0 -23
  260. package/lib/actions/EmailAction.js +0 -48
  261. package/lib/actions/LinkAction.d.ts +0 -24
  262. package/lib/actions/LinkAction.js +0 -47
  263. package/lib/actions/LoopAction.d.ts +0 -19
  264. package/lib/actions/LoopAction.js +0 -107
  265. package/lib/actions/PageAction.d.ts +0 -39
  266. package/lib/actions/PageAction.js +0 -80
  267. package/lib/actions/ParallelAction.d.ts +0 -8
  268. package/lib/actions/ParallelAction.js +0 -40
  269. package/lib/actions/SwitchAction.d.ts +0 -11
  270. package/lib/actions/SwitchAction.js +0 -52
  271. package/lib/actions/ToastAction.d.ts +0 -19
  272. package/lib/actions/ToastAction.js +0 -35
  273. package/lib/actions/index.d.ts +0 -20
  274. package/lib/components/LazyComponent.d.ts +0 -32
  275. package/lib/components/LazyComponent.js +0 -99
  276. package/lib/components/Overlay.d.ts +0 -44
  277. package/lib/components/Overlay.js +0 -266
  278. package/lib/components/PopOver.d.ts +0 -90
  279. package/lib/components/PopOver.js +0 -129
  280. package/lib/env.d.ts +0 -176
  281. package/lib/env.js +0 -20
  282. package/lib/envOverwrite.d.ts +0 -4
  283. package/lib/envOverwrite.js +0 -43
  284. package/lib/factory.d.ts +0 -85
  285. package/lib/factory.js +0 -324
  286. package/lib/index.d.ts +0 -44
  287. package/lib/index.js +0 -460
  288. package/lib/locale.d.ts +0 -84
  289. package/lib/locale.js +0 -133
  290. package/lib/renderers/Form.d.ts +0 -389
  291. package/lib/renderers/Form.js +0 -1234
  292. package/lib/renderers/Item.d.ts +0 -906
  293. package/lib/renderers/Item.js +0 -879
  294. package/lib/renderers/Options.d.ts +0 -158
  295. package/lib/renderers/Options.js +0 -920
  296. package/lib/renderers/Placeholder.d.ts +0 -6
  297. package/lib/renderers/Placeholder.js +0 -31
  298. package/lib/renderers/builtin.d.ts +0 -1
  299. package/lib/renderers/builtin.js +0 -27
  300. package/lib/renderers/register.d.ts +0 -6
  301. package/lib/renderers/register.js +0 -83
  302. package/lib/renderers/wrapControl.d.ts +0 -437
  303. package/lib/renderers/wrapControl.js +0 -520
  304. package/lib/store/app.d.ts +0 -92
  305. package/lib/store/app.js +0 -193
  306. package/lib/store/combo.d.ts +0 -10223
  307. package/lib/store/combo.js +0 -154
  308. package/lib/store/crud.d.ts +0 -128
  309. package/lib/store/crud.js +0 -455
  310. package/lib/store/form.d.ts +0 -4252
  311. package/lib/store/form.js +0 -664
  312. package/lib/store/formItem.d.ts +0 -133
  313. package/lib/store/formItem.js +0 -858
  314. package/lib/store/iRenderer.d.ts +0 -46
  315. package/lib/store/iRenderer.js +0 -189
  316. package/lib/store/index.d.ts +0 -125
  317. package/lib/store/index.js +0 -101
  318. package/lib/store/list.d.ts +0 -272
  319. package/lib/store/list.js +0 -256
  320. package/lib/store/manager.d.ts +0 -115
  321. package/lib/store/manager.js +0 -56
  322. package/lib/store/modal.d.ts +0 -84
  323. package/lib/store/modal.js +0 -54
  324. package/lib/store/node.d.ts +0 -22
  325. package/lib/store/node.js +0 -93
  326. package/lib/store/pagination.d.ts +0 -58
  327. package/lib/store/pagination.js +0 -60
  328. package/lib/store/root.d.ts +0 -85
  329. package/lib/store/root.js +0 -57
  330. package/lib/store/service.d.ts +0 -71
  331. package/lib/store/service.js +0 -415
  332. package/lib/store/table.d.ts +0 -10085
  333. package/lib/store/table.js +0 -1148
  334. package/lib/store/table2.d.ts +0 -474
  335. package/lib/store/table2.js +0 -571
  336. package/lib/theme.d.ts +0 -89
  337. package/lib/theme.js +0 -145
  338. package/lib/types.d.ts +0 -489
  339. package/lib/utils/Animation.d.ts +0 -22
  340. package/lib/utils/Animation.js +0 -290
  341. package/lib/utils/ColorScale.d.ts +0 -19
  342. package/lib/utils/ColorScale.js +0 -105
  343. package/lib/utils/DataSchema.d.ts +0 -25
  344. package/lib/utils/DataSchema.js +0 -116
  345. package/lib/utils/DataScope.d.ts +0 -26
  346. package/lib/utils/DataScope.js +0 -162
  347. package/lib/utils/RootClose.d.ts +0 -4
  348. package/lib/utils/RootClose.js +0 -30
  349. package/lib/utils/SimpleMap.d.ts +0 -8
  350. package/lib/utils/SimpleMap.js +0 -46
  351. package/lib/utils/api.d.ts +0 -34
  352. package/lib/utils/api.js +0 -621
  353. package/lib/utils/attachmentAdpator.d.ts +0 -8
  354. package/lib/utils/attachmentAdpator.js +0 -91
  355. package/lib/utils/autobind.d.ts +0 -7
  356. package/lib/utils/autobind.js +0 -94
  357. package/lib/utils/columnsSplit.d.ts +0 -1
  358. package/lib/utils/columnsSplit.js +0 -51
  359. package/lib/utils/dataMapping.d.ts +0 -9
  360. package/lib/utils/dataMapping.js +0 -151
  361. package/lib/utils/date.d.ts +0 -4
  362. package/lib/utils/date.js +0 -90
  363. package/lib/utils/debug.d.ts +0 -29
  364. package/lib/utils/debug.js +0 -392
  365. package/lib/utils/decodeEntity.d.ts +0 -5
  366. package/lib/utils/decodeEntity.js +0 -20
  367. package/lib/utils/dom.d.ts +0 -13
  368. package/lib/utils/dom.js +0 -199
  369. package/lib/utils/errors.d.ts +0 -6
  370. package/lib/utils/errors.js +0 -23
  371. package/lib/utils/escapeHtml.d.ts +0 -1
  372. package/lib/utils/escapeHtml.js +0 -24
  373. package/lib/utils/filter-schema.d.ts +0 -13
  374. package/lib/utils/filter-schema.js +0 -78
  375. package/lib/utils/filter.d.ts +0 -1
  376. package/lib/utils/filter.js +0 -503
  377. package/lib/utils/formatDuration.d.ts +0 -1
  378. package/lib/utils/formatDuration.js +0 -27
  379. package/lib/utils/formula.d.ts +0 -16
  380. package/lib/utils/formula.js +0 -234
  381. package/lib/utils/getVariable.d.ts +0 -3
  382. package/lib/utils/getVariable.js +0 -29
  383. package/lib/utils/grammar.d.ts +0 -4
  384. package/lib/utils/grammar.js +0 -54
  385. package/lib/utils/handleAction.d.ts +0 -7
  386. package/lib/utils/handleAction.js +0 -39
  387. package/lib/utils/helper.d.ts +0 -323
  388. package/lib/utils/helper.js +0 -1361
  389. package/lib/utils/highlight.d.ts +0 -1
  390. package/lib/utils/highlight.js +0 -52
  391. package/lib/utils/icon.d.ts +0 -16
  392. package/lib/utils/icon.js +0 -43
  393. package/lib/utils/image.d.ts +0 -18
  394. package/lib/utils/image.js +0 -56
  395. package/lib/utils/index.d.ts +0 -55
  396. package/lib/utils/isPureVariable.d.ts +0 -1
  397. package/lib/utils/isPureVariable.js +0 -26
  398. package/lib/utils/json-schema-2-amis-schema.d.ts +0 -6
  399. package/lib/utils/json-schema-2-amis-schema.js +0 -60
  400. package/lib/utils/keyToPath.d.ts +0 -6
  401. package/lib/utils/keyToPath.js +0 -34
  402. package/lib/utils/makeSorter.d.ts +0 -1
  403. package/lib/utils/makeSorter.js +0 -30
  404. package/lib/utils/normalizeLink.d.ts +0 -1
  405. package/lib/utils/normalizeLink.js +0 -47
  406. package/lib/utils/normalizeOptions.d.ts +0 -7
  407. package/lib/utils/normalizeOptions.js +0 -92
  408. package/lib/utils/object.d.ts +0 -15
  409. package/lib/utils/object.js +0 -156
  410. package/lib/utils/offset.d.ts +0 -15
  411. package/lib/utils/offset.js +0 -37
  412. package/lib/utils/offsetParent.d.ts +0 -5
  413. package/lib/utils/offsetParent.js +0 -28
  414. package/lib/utils/optionValueCompare.d.ts +0 -3
  415. package/lib/utils/optionValueCompare.js +0 -30
  416. package/lib/utils/position.d.ts +0 -26
  417. package/lib/utils/position.js +0 -59
  418. package/lib/utils/prettyBytes.d.ts +0 -1
  419. package/lib/utils/prettyBytes.js +0 -29
  420. package/lib/utils/renderer-event.d.ts +0 -62
  421. package/lib/utils/renderer-event.js +0 -218
  422. package/lib/utils/replaceText.d.ts +0 -3
  423. package/lib/utils/replaceText.js +0 -46
  424. package/lib/utils/resize-sensor.d.ts +0 -6
  425. package/lib/utils/resize-sensor.js +0 -177
  426. package/lib/utils/resolveVariable.d.ts +0 -1
  427. package/lib/utils/resolveVariable.js +0 -39
  428. package/lib/utils/resolveVariableAndFilter.d.ts +0 -1
  429. package/lib/utils/resolveVariableAndFilter.js +0 -37
  430. package/lib/utils/scrollPosition.d.ts +0 -16
  431. package/lib/utils/scrollPosition.js +0 -37
  432. package/lib/utils/string2regExp.d.ts +0 -1
  433. package/lib/utils/string2regExp.js +0 -18
  434. package/lib/utils/stripNumber.d.ts +0 -1
  435. package/lib/utils/stripNumber.js +0 -20
  436. package/lib/utils/style.d.ts +0 -10
  437. package/lib/utils/style.js +0 -67
  438. package/lib/utils/toNumber.d.ts +0 -7
  439. package/lib/utils/toNumber.js +0 -22
  440. package/lib/utils/tokenize.d.ts +0 -1
  441. package/lib/utils/tokenize.js +0 -33
  442. package/lib/utils/tpl-builtin.d.ts +0 -18
  443. package/lib/utils/tpl-builtin.js +0 -75
  444. package/lib/utils/tpl-lodash.d.ts +0 -4
  445. package/lib/utils/tpl-lodash.js +0 -71
  446. package/lib/utils/tpl.d.ts +0 -11
  447. package/lib/utils/tpl.js +0 -140
  448. package/lib/utils/uncontrollable.d.ts +0 -4
  449. package/lib/utils/uncontrollable.js +0 -22
  450. package/lib/utils/validations.d.ts +0 -39
  451. package/lib/utils/validations.js +0 -455
@@ -1,1361 +0,0 @@
1
- /**
2
- * amis-core v2.6.0
3
- * Copyright 2018-2022 fex
4
- */
5
-
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- var tslib = require('tslib');
11
- var isPlainObject = require('lodash/isPlainObject');
12
- var isEqual = require('lodash/isEqual');
13
- var isNaN = require('lodash/isNaN');
14
- var uniq = require('lodash/uniq');
15
- var last = require('lodash/last');
16
- var merge = require('lodash/merge');
17
- var tpl = require('./tpl.js');
18
- var qs = require('qs');
19
- var autobind$1 = require('./autobind.js');
20
- require('amis-formula');
21
- require('moment');
22
- var object = require('./object.js');
23
- var isPureVariable = require('./isPureVariable.js');
24
- var resolveVariable = require('./resolveVariable.js');
25
- var resolveVariableAndFilter = require('./resolveVariableAndFilter.js');
26
- require('./filter.js');
27
- var mobx = require('mobx');
28
- var string2regExp = require('./string2regExp.js');
29
- var getVariable = require('./getVariable.js');
30
- var keyToPath = require('./keyToPath.js');
31
-
32
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
33
-
34
- var isPlainObject__default = /*#__PURE__*/_interopDefaultLegacy(isPlainObject);
35
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
36
- var isNaN__default = /*#__PURE__*/_interopDefaultLegacy(isNaN);
37
- var uniq__default = /*#__PURE__*/_interopDefaultLegacy(uniq);
38
- var last__default = /*#__PURE__*/_interopDefaultLegacy(last);
39
- var merge__default = /*#__PURE__*/_interopDefaultLegacy(merge);
40
- var qs__default = /*#__PURE__*/_interopDefaultLegacy(qs);
41
-
42
- function preventDefault(event) {
43
- if (typeof event.cancelable !== 'boolean' || event.cancelable) {
44
- event.preventDefault();
45
- }
46
- }
47
- function isMobile() {
48
- var _a, _b;
49
- return (_b = (_a = window).matchMedia) === null || _b === void 0 ? void 0 : _b.call(_a, '(max-width: 768px)').matches;
50
- }
51
- function range(num, min, max) {
52
- return Math.min(Math.max(num, min), max);
53
- }
54
- /**
55
- * 给目标对象添加其他属性,可读取但是不会被遍历。
56
- * @param target
57
- * @param props
58
- */
59
- function injectPropsToObject(target, props) {
60
- var sup = Object.create(target.__super || null);
61
- Object.keys(props).forEach(function (key) { return (sup[key] = props[key]); });
62
- var result = Object.create(sup);
63
- Object.keys(target).forEach(function (key) { return (result[key] = target[key]); });
64
- return result;
65
- }
66
- function isSuperDataModified(data, prevData, store) {
67
- var keys = [];
68
- if (store && store.storeType === 'FormStore') {
69
- keys = uniq__default["default"](store.items
70
- .map(function (item) { return "".concat(item.name).replace(/\..*$/, ''); })
71
- .concat(Object.keys(store.data)));
72
- }
73
- else {
74
- keys = Object.keys(store.data);
75
- }
76
- if (Array.isArray(keys) && keys.length) {
77
- return keys.some(function (key) { return data[key] !== prevData[key]; });
78
- }
79
- return false;
80
- }
81
- function syncDataFromSuper(data, superObject, prevSuperObject, store, force) {
82
- var obj = tslib.__assign({}, data);
83
- var keys = [];
84
- // 如果是 form store,则从父级同步 formItem 种东西。
85
- if (store && store.storeType === 'FormStore') {
86
- keys = uniq__default["default"](store.items
87
- .map(function (item) { return "".concat(item.name).replace(/\..*$/, ''); })
88
- .concat(Object.keys(obj)));
89
- }
90
- else if (force) {
91
- keys = Object.keys(obj);
92
- }
93
- if (superObject || prevSuperObject) {
94
- keys.forEach(function (key) {
95
- if (!key) {
96
- return;
97
- }
98
- if (((superObject && typeof superObject[key] !== 'undefined') ||
99
- (prevSuperObject && typeof prevSuperObject[key] !== 'undefined')) &&
100
- ((prevSuperObject && !superObject) ||
101
- (!prevSuperObject && superObject) ||
102
- prevSuperObject[key] !== superObject[key])) {
103
- obj[key] = superObject[key];
104
- }
105
- });
106
- }
107
- return obj;
108
- }
109
- /**
110
- * 生成 8 位随机数字。
111
- *
112
- * @return {string} 8位随机数字
113
- */
114
- function guid() {
115
- function s4() {
116
- return Math.floor((1 + Math.random()) * 0x10000)
117
- .toString(16)
118
- .substring(1);
119
- }
120
- return s4() + s4() + s4();
121
- }
122
- function findIndex(arr, detect) {
123
- for (var i = 0, len = arr.length; i < len; i++) {
124
- if (detect(arr[i], i)) {
125
- return i;
126
- }
127
- }
128
- return -1;
129
- }
130
- function hasOwnPropertyInPath(data, key) {
131
- var parts = keyToPath.keyToPath(key);
132
- while (parts.length) {
133
- var key_1 = parts.shift();
134
- if (!object.isObject(data) || !data.hasOwnProperty(key_1)) {
135
- return false;
136
- }
137
- data = data[key_1];
138
- }
139
- return true;
140
- }
141
- function noop() { }
142
- function anyChanged(attrs, from, to, strictMode) {
143
- if (strictMode === void 0) { strictMode = true; }
144
- return (typeof attrs === 'string' ? attrs.split(/\s*,\s*/) : attrs).some(function (key) { return (strictMode ? from[key] !== to[key] : from[key] != to[key]); });
145
- }
146
- function rmUndefined(obj) {
147
- var newObj = {};
148
- if (typeof obj !== 'object') {
149
- return obj;
150
- }
151
- var keys = Object.keys(obj);
152
- keys.forEach(function (key) {
153
- if (obj[key] !== undefined) {
154
- newObj[key] = obj[key];
155
- }
156
- });
157
- return newObj;
158
- }
159
- function isObjectShallowModified(prev, next, strictMode, ignoreUndefined, statck) {
160
- if (strictMode === void 0) { strictMode = true; }
161
- if (ignoreUndefined === void 0) { ignoreUndefined = false; }
162
- if (statck === void 0) { statck = []; }
163
- if (Array.isArray(prev) && Array.isArray(next)) {
164
- return prev.length !== next.length
165
- ? true
166
- : prev.some(function (prev, index) {
167
- return isObjectShallowModified(prev, next[index], strictMode, ignoreUndefined, statck);
168
- });
169
- }
170
- else if (isNaN__default["default"](prev) && isNaN__default["default"](next)) {
171
- return false;
172
- }
173
- else if (null == prev ||
174
- null == next ||
175
- !object.isObject(prev) ||
176
- !object.isObject(next) ||
177
- mobx.isObservable(prev) ||
178
- mobx.isObservable(next)) {
179
- return strictMode ? prev !== next : prev != next;
180
- }
181
- if (ignoreUndefined) {
182
- prev = rmUndefined(prev);
183
- next = rmUndefined(next);
184
- }
185
- var keys = Object.keys(prev);
186
- var nextKeys = Object.keys(next);
187
- if (keys.length !== nextKeys.length ||
188
- keys.sort().join(',') !== nextKeys.sort().join(',')) {
189
- return true;
190
- }
191
- // 避免循环引用死循环。
192
- if (~statck.indexOf(prev)) {
193
- return false;
194
- }
195
- statck.push(prev);
196
- for (var i = keys.length - 1; i >= 0; i--) {
197
- var key = keys[i];
198
- if (isObjectShallowModified(prev[key], next[key], strictMode, ignoreUndefined, statck)) {
199
- return true;
200
- }
201
- }
202
- return false;
203
- }
204
- function isArrayChildrenModified(prev, next, strictMode) {
205
- if (strictMode === void 0) { strictMode = true; }
206
- if (!Array.isArray(prev) || !Array.isArray(next)) {
207
- return strictMode ? prev !== next : prev != next;
208
- }
209
- if (prev.length !== next.length) {
210
- return true;
211
- }
212
- for (var i = prev.length - 1; i >= 0; i--) {
213
- if (strictMode
214
- ? prev[i] !== next[i]
215
- : prev[i] != next[i] ||
216
- isArrayChildrenModified(prev[i].children, next[i].children, strictMode)) {
217
- return true;
218
- }
219
- }
220
- return false;
221
- }
222
- function immutableExtends(to, from, deep) {
223
- // 不是对象,不可以merge
224
- if (!object.isObject(to) || !object.isObject(from)) {
225
- return to;
226
- }
227
- var ret = to;
228
- Object.keys(from).forEach(function (key) {
229
- var origin = to[key];
230
- var value = from[key];
231
- // todo 支持深度merge
232
- if (origin !== value) {
233
- // 一旦有修改,就创建个新对象。
234
- ret = ret !== to ? ret : tslib.__assign({}, to);
235
- ret[key] = value;
236
- }
237
- });
238
- return ret;
239
- }
240
- // 即将抛弃
241
- function makeColumnClassBuild(steps, classNameTpl) {
242
- if (classNameTpl === void 0) { classNameTpl = 'col-sm-$value'; }
243
- var count = 12;
244
- var step = Math.floor(count / steps);
245
- return function (schema) {
246
- if (schema.columnClassName &&
247
- /\bcol-(?:xs|sm|md|lg)-(\d+)\b/.test(schema.columnClassName)) {
248
- var flex = parseInt(RegExp.$1, 10);
249
- count -= flex;
250
- steps--;
251
- step = Math.floor(count / steps);
252
- return schema.columnClassName;
253
- }
254
- else if (schema.columnClassName) {
255
- count -= step;
256
- steps--;
257
- return schema.columnClassName;
258
- }
259
- count -= step;
260
- steps--;
261
- return classNameTpl.replace('$value', '' + step);
262
- };
263
- }
264
- function hasVisibleExpression(schema) {
265
- return (schema === null || schema === void 0 ? void 0 : schema.visibleOn) || (schema === null || schema === void 0 ? void 0 : schema.hiddenOn);
266
- }
267
- function isVisible(schema, data) {
268
- return !(schema.hidden ||
269
- schema.visible === false ||
270
- (schema.hiddenOn && tpl.evalExpression(schema.hiddenOn, data) === true) ||
271
- (schema.visibleOn && tpl.evalExpression(schema.visibleOn, data) === false));
272
- }
273
- function isUnfolded(node, config) {
274
- var foldedField = config.foldedField, unfoldedField = config.unfoldedField;
275
- unfoldedField = unfoldedField || 'unfolded';
276
- foldedField = foldedField || 'folded';
277
- var ret = false;
278
- if (unfoldedField && typeof node[unfoldedField] !== 'undefined') {
279
- ret = !!node[unfoldedField];
280
- }
281
- else if (foldedField && typeof node[foldedField] !== 'undefined') {
282
- ret = !node[foldedField];
283
- }
284
- return ret;
285
- }
286
- /**
287
- * 过滤掉被隐藏的数组元素
288
- */
289
- function visibilityFilter(items, data) {
290
- return items.filter(function (item) {
291
- return isVisible(item, data);
292
- });
293
- }
294
- function isDisabled(schema, data) {
295
- return (schema.disabled ||
296
- (schema.disabledOn && tpl.evalExpression(schema.disabledOn, data)));
297
- }
298
- function hasAbility(schema, ability, data, defaultValue) {
299
- if (defaultValue === void 0) { defaultValue = true; }
300
- return schema.hasOwnProperty(ability)
301
- ? schema[ability]
302
- : schema.hasOwnProperty("".concat(ability, "On"))
303
- ? tpl.evalExpression(schema["".concat(ability, "On")], data || schema)
304
- : defaultValue;
305
- }
306
- function makeHorizontalDeeper(horizontal, count) {
307
- if (count > 1 && /\bcol-(xs|sm|md|lg)-(\d+)\b/.test(horizontal.left)) {
308
- var flex = parseInt(RegExp.$2, 10) * count;
309
- return {
310
- leftFixed: horizontal.leftFixed,
311
- left: flex,
312
- right: 12 - flex,
313
- offset: flex
314
- };
315
- }
316
- else if (count > 1 && typeof horizontal.left === 'number') {
317
- var flex = horizontal.left * count;
318
- return {
319
- leftFixed: horizontal.leftFixed,
320
- left: flex,
321
- right: 12 - flex,
322
- offset: flex
323
- };
324
- }
325
- return horizontal;
326
- }
327
- function promisify(fn) {
328
- // 避免重复处理
329
- if (fn._promisified) {
330
- return fn;
331
- }
332
- var promisified = function () {
333
- try {
334
- var ret_1 = fn.apply(null, arguments);
335
- if (ret_1 && ret_1.then) {
336
- return ret_1;
337
- }
338
- else if (typeof ret_1 === 'function') {
339
- // thunk support
340
- return new Promise(function (resolve, reject) {
341
- return ret_1(function (error, value) {
342
- return error ? reject(error) : resolve(value);
343
- });
344
- });
345
- }
346
- return Promise.resolve(ret_1);
347
- }
348
- catch (e) {
349
- return Promise.reject(e);
350
- }
351
- };
352
- promisified.raw = fn;
353
- promisified._promisified = true;
354
- return promisified;
355
- }
356
- /**
357
- *
358
- * @param node 当前元素
359
- * @param compute 自定义计算,找到的父元素是否满足特殊场景
360
- * @returns 返回控制当前元素滚动的父元素
361
- */
362
- function getScrollParent(node, compute) {
363
- if (compute === void 0) { compute = function () { return true; }; }
364
- if (node == null) {
365
- return null;
366
- }
367
- var style = getComputedStyle(node);
368
- if (!style) {
369
- return null;
370
- }
371
- var text = style.getPropertyValue('overflow') +
372
- style.getPropertyValue('overflow-x') +
373
- style.getPropertyValue('overflow-y');
374
- if (node.nodeName === 'BODY' || (/auto|scroll/.test(text) && compute(node))) {
375
- return node;
376
- }
377
- return getScrollParent(node.parentNode, compute);
378
- }
379
- /**
380
- * Deep diff between two object, using lodash
381
- * @param {Object} object Object compared
382
- * @param {Object} base Object to compare with
383
- * @return {Object} Return a new object who represent the diff
384
- */
385
- function difference(object$1, base, keepProps) {
386
- function changes(object$1, base) {
387
- if (object.isObject(object$1) && object.isObject(base)) {
388
- var keys = uniq__default["default"](Object.keys(object$1).concat(Object.keys(base)));
389
- var result_1 = {};
390
- keys.forEach(function (key) {
391
- var a = object$1[key];
392
- var b = base[key];
393
- if (keepProps && ~keepProps.indexOf(key)) {
394
- result_1[key] = a;
395
- }
396
- if (isEqual__default["default"](a, b)) {
397
- return;
398
- }
399
- if (!object$1.hasOwnProperty(key)) {
400
- result_1[key] = undefined;
401
- }
402
- else if (Array.isArray(a) && Array.isArray(b)) {
403
- result_1[key] = a;
404
- }
405
- else {
406
- result_1[key] = changes(a, b);
407
- }
408
- });
409
- return result_1;
410
- }
411
- else {
412
- return object$1;
413
- }
414
- }
415
- return changes(object$1, base);
416
- }
417
- var padArr = function (arr, size, fillUndefined) {
418
- if (size === void 0) { size = 4; }
419
- if (fillUndefined === void 0) { fillUndefined = false; }
420
- var ret = [[]];
421
- var pool = arr.concat();
422
- var from = 0;
423
- while (pool.length || (fillUndefined && ret[ret.length - 1].length < size)) {
424
- var host = ret[from] || (ret[from] = []);
425
- if (host.length >= size) {
426
- from += 1;
427
- continue;
428
- }
429
- host.push(pool.shift());
430
- }
431
- return ret;
432
- };
433
- function __uri(id) {
434
- return id;
435
- }
436
- // xs < 768px
437
- // sm >= 768px
438
- // md >= 992px
439
- // lg >= 1200px
440
- function isBreakpoint(str) {
441
- if (typeof str !== 'string') {
442
- return !!str;
443
- }
444
- var breaks = str.split(/\s*,\s*|\s+/);
445
- if (window.matchMedia) {
446
- return breaks.some(function (item) {
447
- return item === '*' ||
448
- (item === 'xs' &&
449
- matchMedia("screen and (max-width: 767px)").matches) ||
450
- (item === 'sm' &&
451
- matchMedia("screen and (min-width: 768px) and (max-width: 991px)")
452
- .matches) ||
453
- (item === 'md' &&
454
- matchMedia("screen and (min-width: 992px) and (max-width: 1199px)")
455
- .matches) ||
456
- (item === 'lg' && matchMedia("screen and (min-width: 1200px)").matches);
457
- });
458
- }
459
- else {
460
- var width_1 = window.innerWidth;
461
- return breaks.some(function (item) {
462
- return item === '*' ||
463
- (item === 'xs' && width_1 < 768) ||
464
- (item === 'sm' && width_1 >= 768 && width_1 < 992) ||
465
- (item === 'md' && width_1 >= 992 && width_1 < 1200) ||
466
- (item === 'lg' && width_1 >= 1200);
467
- });
468
- }
469
- }
470
- function until(fn, when, getCanceler, interval) {
471
- var _this = this;
472
- if (interval === void 0) { interval = 5000; }
473
- var timer;
474
- var stoped = false;
475
- return new Promise(function (resolve, reject) {
476
- var cancel = function () {
477
- clearTimeout(timer);
478
- stoped = true;
479
- };
480
- var check = function () { return tslib.__awaiter(_this, void 0, void 0, function () {
481
- var ret, e_1;
482
- return tslib.__generator(this, function (_a) {
483
- switch (_a.label) {
484
- case 0:
485
- _a.trys.push([0, 2, , 3]);
486
- return [4 /*yield*/, fn()];
487
- case 1:
488
- ret = _a.sent();
489
- if (stoped) {
490
- return [2 /*return*/];
491
- }
492
- else if (when(ret)) {
493
- stoped = true;
494
- resolve(ret);
495
- }
496
- else {
497
- timer = setTimeout(check, interval);
498
- }
499
- return [3 /*break*/, 3];
500
- case 2:
501
- e_1 = _a.sent();
502
- reject(e_1);
503
- return [3 /*break*/, 3];
504
- case 3: return [2 /*return*/];
505
- }
506
- });
507
- }); };
508
- check();
509
- getCanceler && getCanceler(cancel);
510
- });
511
- }
512
- function omitControls(controls, omitItems) {
513
- return controls.filter(function (control) { return !~omitItems.indexOf(control.name || control._name); });
514
- }
515
- function isEmpty(thing) {
516
- if (object.isObject(thing) && Object.keys(thing).length) {
517
- return false;
518
- }
519
- return true;
520
- }
521
- /**
522
- * 基于时间戳的 uuid
523
- *
524
- * @returns uniqueId
525
- */
526
- var uuid = function () {
527
- return (+new Date()).toString(36);
528
- };
529
- // 参考 https://github.com/streamich/v4-uuid
530
- var str = function () {
531
- return ('00000000000000000' + (Math.random() * 0xffffffffffffffff).toString(16)).slice(-16);
532
- };
533
- var uuidv4 = function () {
534
- var a = str();
535
- var b = str();
536
- return (a.slice(0, 8) +
537
- '-' +
538
- a.slice(8, 12) +
539
- '-4' +
540
- a.slice(13) +
541
- '-a' +
542
- b.slice(1, 4) +
543
- '-' +
544
- b.slice(4));
545
- };
546
- /**
547
- * 类似于 arr.map 方法,此方法主要针对类似下面示例的树形结构。
548
- * [
549
- * {
550
- * children: []
551
- * },
552
- * // 其他成员
553
- * ]
554
- *
555
- * @param {Tree} tree 树形数据
556
- * @param {Function} iterator 处理函数,返回的数据会被替换成新的。
557
- * @return {Tree} 返回处理过的 tree
558
- */
559
- function mapTree(tree, iterator, level, depthFirst, paths) {
560
- if (level === void 0) { level = 1; }
561
- if (depthFirst === void 0) { depthFirst = false; }
562
- if (paths === void 0) { paths = []; }
563
- return tree.map(function (item, index) {
564
- if (depthFirst) {
565
- var children = item.children
566
- ? mapTree(item.children, iterator, level + 1, depthFirst, paths.concat(item))
567
- : undefined;
568
- children && (item = tslib.__assign(tslib.__assign({}, item), { children: children }));
569
- item = iterator(item, index, level, paths) || tslib.__assign({}, item);
570
- return item;
571
- }
572
- item = iterator(item, index, level, paths) || tslib.__assign({}, item);
573
- if (item.children && item.children.splice) {
574
- item.children = mapTree(item.children, iterator, level + 1, depthFirst, paths.concat(item));
575
- }
576
- return item;
577
- });
578
- }
579
- /**
580
- * 遍历树
581
- * @param tree
582
- * @param iterator
583
- */
584
- function eachTree(tree, iterator, level, paths) {
585
- if (level === void 0) { level = 1; }
586
- if (paths === void 0) { paths = []; }
587
- tree.map(function (item, index) {
588
- var _a;
589
- var currentPath = paths.concat(item);
590
- iterator(item, index, level, currentPath);
591
- if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.splice) {
592
- eachTree(item.children, iterator, level + 1, currentPath);
593
- }
594
- });
595
- }
596
- /**
597
- * 在树中查找节点。
598
- * @param tree
599
- * @param iterator
600
- */
601
- function findTree(tree, iterator) {
602
- var result = null;
603
- everyTree(tree, function (item, key, level, paths) {
604
- if (iterator(item, key, level, paths)) {
605
- result = item;
606
- return false;
607
- }
608
- return true;
609
- });
610
- return result;
611
- }
612
- /**
613
- * 在树中查找节点, 返回下标数组。
614
- * @param tree
615
- * @param iterator
616
- */
617
- function findTreeIndex(tree, iterator) {
618
- var idx = [];
619
- findTree(tree, function (item, index, level, paths) {
620
- if (iterator(item, index, level, paths)) {
621
- idx = [index];
622
- paths = paths.concat();
623
- paths.unshift({
624
- children: tree
625
- });
626
- for (var i = paths.length - 1; i > 0; i--) {
627
- var prev = paths[i - 1];
628
- var current = paths[i];
629
- idx.unshift(prev.children.indexOf(current));
630
- }
631
- return true;
632
- }
633
- return false;
634
- });
635
- return idx.length ? idx : undefined;
636
- }
637
- function getTree(tree, idx) {
638
- var indexes = Array.isArray(idx) ? idx.concat() : [idx];
639
- var lastIndex = indexes.pop();
640
- var list = tree;
641
- for (var i = 0, len = indexes.length; i < len; i++) {
642
- var index = indexes[i];
643
- if (!list[index]) {
644
- list = null;
645
- break;
646
- }
647
- list = list[index].children;
648
- }
649
- return list ? list[lastIndex] : undefined;
650
- }
651
- /**
652
- * 过滤树节点
653
- *
654
- * @param tree
655
- * @param iterator
656
- */
657
- function filterTree(tree, iterator, level, depthFirst) {
658
- if (level === void 0) { level = 1; }
659
- if (depthFirst === void 0) { depthFirst = false; }
660
- if (depthFirst) {
661
- return tree
662
- .map(function (item) {
663
- var children = item.children
664
- ? filterTree(item.children, iterator, level + 1, depthFirst)
665
- : undefined;
666
- if (Array.isArray(children) && Array.isArray(item.children)) {
667
- item = tslib.__assign(tslib.__assign({}, item), { children: children });
668
- }
669
- return item;
670
- })
671
- .filter(function (item, index) { return iterator(item, index, level); });
672
- }
673
- return tree
674
- .filter(function (item, index) { return iterator(item, index, level); })
675
- .map(function (item) {
676
- var _a;
677
- if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.splice) {
678
- var children = filterTree(item.children, iterator, level + 1, depthFirst);
679
- if (Array.isArray(children) && Array.isArray(item.children)) {
680
- item = tslib.__assign(tslib.__assign({}, item), { children: children });
681
- }
682
- }
683
- return item;
684
- });
685
- }
686
- /**
687
- * 判断树中每个节点是否满足某个条件。
688
- * @param tree
689
- * @param iterator
690
- */
691
- function everyTree(tree, iterator, level, paths, indexes) {
692
- if (level === void 0) { level = 1; }
693
- if (paths === void 0) { paths = []; }
694
- if (indexes === void 0) { indexes = []; }
695
- if (!Array.isArray(tree) && !mobx.isObservableArray(tree)) {
696
- return false;
697
- }
698
- return tree.every(function (item, index) {
699
- var _a;
700
- var value = iterator(item, index, level, paths, indexes);
701
- if (value && ((_a = item.children) === null || _a === void 0 ? void 0 : _a.splice)) {
702
- return everyTree(item.children, iterator, level + 1, paths.concat(item), indexes.concat(index));
703
- }
704
- return value;
705
- });
706
- }
707
- /**
708
- * 判断树中是否有某些节点满足某个条件。
709
- * @param tree
710
- * @param iterator
711
- */
712
- function someTree(tree, iterator) {
713
- var result = false;
714
- everyTree(tree, function (item, key, level, paths) {
715
- if (iterator(item, key, level, paths)) {
716
- result = true;
717
- return false;
718
- }
719
- return true;
720
- });
721
- return result;
722
- }
723
- function flattenTree(tree, mapper) {
724
- var flattened = [];
725
- eachTree(tree, function (item, index, level, paths) {
726
- return flattened.push(mapper ? mapper(item, index, level, paths) : item);
727
- });
728
- return flattened;
729
- }
730
- function flattenTreeWithLeafNodes(tree, mapper) {
731
- var flattened = [];
732
- eachTree(tree, function (item, index) {
733
- if (!item.hasOwnProperty('children')) {
734
- flattened.push(mapper ? mapper(item, index) : item);
735
- }
736
- });
737
- return flattened;
738
- }
739
- /**
740
- * 操作树,遵循 imutable, 每次返回一个新的树。
741
- * 类似数组的 splice 不同的地方这个方法不修改原始数据,
742
- * 同时第二个参数不是下标,而是下标数组,分别代表每一层的下标。
743
- *
744
- * 至于如何获取下标数组,请查看 findTreeIndex
745
- *
746
- * @param tree
747
- * @param idx
748
- * @param deleteCount
749
- * @param ...items
750
- */
751
- function spliceTree(tree, idx, deleteCount) {
752
- if (deleteCount === void 0) { deleteCount = 0; }
753
- var items = [];
754
- for (var _i = 3; _i < arguments.length; _i++) {
755
- items[_i - 3] = arguments[_i];
756
- }
757
- var list = tree.concat();
758
- if (typeof idx === 'number') {
759
- list.splice.apply(list, tslib.__spreadArray([idx, deleteCount], items, false));
760
- }
761
- else if (Array.isArray(idx) && idx.length) {
762
- idx = idx.concat();
763
- var lastIdx = idx.pop();
764
- var host = idx.reduce(function (list, idx) {
765
- var child = tslib.__assign(tslib.__assign({}, list[idx]), { children: list[idx].children ? list[idx].children.concat() : [] });
766
- list[idx] = child;
767
- return child.children;
768
- }, list);
769
- host.splice.apply(host, tslib.__spreadArray([lastIdx, deleteCount], items, false));
770
- }
771
- return list;
772
- }
773
- /**
774
- * 计算树的深度
775
- * @param tree
776
- */
777
- function getTreeDepth(tree) {
778
- return Math.max.apply(Math, tree.map(function (item) {
779
- if (Array.isArray(item.children)) {
780
- return 1 + getTreeDepth(item.children);
781
- }
782
- return 1;
783
- }));
784
- }
785
- /**
786
- * 从树中获取某个值的所有祖先
787
- * @param tree
788
- * @param value
789
- */
790
- function getTreeAncestors(tree, value, includeSelf) {
791
- if (includeSelf === void 0) { includeSelf = false; }
792
- var ancestors = null;
793
- findTree(tree, function (item, index, level, paths) {
794
- if (item === value) {
795
- ancestors = paths;
796
- if (includeSelf) {
797
- ancestors.push(item);
798
- }
799
- return true;
800
- }
801
- return false;
802
- });
803
- return ancestors;
804
- }
805
- /**
806
- * 从树中获取某个值的上级
807
- * @param tree
808
- * @param value
809
- */
810
- function getTreeParent(tree, value) {
811
- var ancestors = getTreeAncestors(tree, value);
812
- return (ancestors === null || ancestors === void 0 ? void 0 : ancestors.length) ? ancestors[ancestors.length - 1] : null;
813
- }
814
- function ucFirst(str) {
815
- return typeof str === 'string'
816
- ? str.substring(0, 1).toUpperCase() + str.substring(1)
817
- : str;
818
- }
819
- function lcFirst(str) {
820
- return str ? str.substring(0, 1).toLowerCase() + str.substring(1) : '';
821
- }
822
- function camel(str) {
823
- return str
824
- ? str
825
- .split(/[\s_\-]/)
826
- .map(function (item, index) { return (index === 0 ? lcFirst(item) : ucFirst(item)); })
827
- .join('')
828
- : '';
829
- }
830
- function getWidthRate(value, strictMode) {
831
- if (strictMode === void 0) { strictMode = false; }
832
- if (typeof value === 'string' && /\bcol\-\w+\-(\d+)\b/.test(value)) {
833
- return parseInt(RegExp.$1, 10);
834
- }
835
- return strictMode ? 0 : value || 0;
836
- }
837
- function getLevelFromClassName(value, defaultValue) {
838
- if (defaultValue === void 0) { defaultValue = 'default'; }
839
- if (/\b(?:btn|text)-(link|primary|secondary|info|success|warning|danger|light|dark)\b/.test(value)) {
840
- return RegExp.$1;
841
- }
842
- return defaultValue;
843
- }
844
- function pickEventsProps(props) {
845
- var ret = {};
846
- props &&
847
- Object.keys(props).forEach(function (key) { return /^on/.test(key) && (ret[key] = props[key]); });
848
- return ret;
849
- }
850
- var autobind = autobind$1.autobindMethod;
851
- var bulkBindFunctions = function (context, funNames) {
852
- funNames.forEach(function (key) { return (context[key] = context[key].bind(context)); });
853
- };
854
- function sortArray(items, field, dir) {
855
- return items.sort(function (a, b) {
856
- var ret;
857
- var a1 = a[field];
858
- var b1 = b[field];
859
- if (typeof a1 === 'number' && typeof b1 === 'number') {
860
- ret = a1 < b1 ? -1 : a1 === b1 ? 0 : 1;
861
- }
862
- else {
863
- ret = String(a1).localeCompare(String(b1));
864
- }
865
- return ret * dir;
866
- });
867
- }
868
- // 只判断一层, 如果层级很深,form-data 也不好表达。
869
- function hasFile(object) {
870
- return Object.keys(object).some(function (key) {
871
- var value = object[key];
872
- return (value instanceof File ||
873
- (Array.isArray(value) && value.length && value[0] instanceof File));
874
- });
875
- }
876
- function qsstringify(data, options, keepEmptyArray) {
877
- if (options === void 0) { options = {
878
- arrayFormat: 'indices',
879
- encodeValuesOnly: true
880
- }; }
881
- // qs会保留空字符串。fix: Combo模式的空数组,无法清空。改为存为空字符串;只转换一层
882
- keepEmptyArray &&
883
- Object.keys(data).forEach(function (key) {
884
- Array.isArray(data[key]) && !data[key].length && (data[key] = '');
885
- });
886
- return qs__default["default"].stringify(data, options);
887
- }
888
- function qsparse(data, options) {
889
- if (options === void 0) { options = {
890
- arrayFormat: 'indices',
891
- encodeValuesOnly: true,
892
- depth: 1000,
893
- arrayLimit: 1000 /** array元素数量超出限制,会被自动转化为object格式,默认值1000 */
894
- }; }
895
- return qs__default["default"].parse(data, options);
896
- }
897
- function object2formData(data, options, fd) {
898
- if (options === void 0) { options = {
899
- arrayFormat: 'indices',
900
- encodeValuesOnly: true
901
- }; }
902
- if (fd === void 0) { fd = new FormData(); }
903
- var fileObjects = [];
904
- var others = {};
905
- Object.keys(data).forEach(function (key) {
906
- var value = data[key];
907
- if (value instanceof File) {
908
- fileObjects.push([key, value]);
909
- }
910
- else if (Array.isArray(value) &&
911
- value.length &&
912
- value[0] instanceof File) {
913
- value.forEach(function (value) { return fileObjects.push(["".concat(key, "[]"), value]); });
914
- }
915
- else {
916
- others[key] = value;
917
- }
918
- });
919
- // 因为 key 的格式太多了,偷个懒,用 qs 来处理吧。
920
- qsstringify(others, options)
921
- .split('&')
922
- .forEach(function (item) {
923
- var parts = item.split('=');
924
- // form-data/multipart 是不需要 encode 值的。
925
- parts[0] && fd.append(parts[0], decodeURIComponent(parts[1]));
926
- });
927
- // Note: File类型字段放在后面,可以支持第三方云存储鉴权
928
- fileObjects.forEach(function (fileObject) {
929
- return fd.append(fileObject[0], fileObject[1], fileObject[1].name);
930
- });
931
- return fd;
932
- }
933
- function chainFunctions() {
934
- var fns = [];
935
- for (var _i = 0; _i < arguments.length; _i++) {
936
- fns[_i] = arguments[_i];
937
- }
938
- return function () {
939
- var args = [];
940
- for (var _i = 0; _i < arguments.length; _i++) {
941
- args[_i] = arguments[_i];
942
- }
943
- return fns.reduce(function (ret, fn) {
944
- return ret === false
945
- ? false
946
- : typeof fn == 'function'
947
- ? fn.apply(void 0, args) : undefined;
948
- }, undefined);
949
- };
950
- }
951
- function chainEvents(props, schema) {
952
- var ret = {};
953
- Object.keys(props).forEach(function (key) {
954
- if (key.substr(0, 2) === 'on' &&
955
- typeof props[key] === 'function' &&
956
- typeof schema[key] === 'function' &&
957
- schema[key] !== props[key]) {
958
- // 表单项里面的 onChange 很特殊,这个不要处理。
959
- if (props.formStore && key === 'onChange') {
960
- ret[key] = props[key];
961
- }
962
- else {
963
- ret[key] = chainFunctions(schema[key], props[key]);
964
- }
965
- }
966
- else {
967
- ret[key] = props[key];
968
- }
969
- });
970
- return ret;
971
- }
972
- function mapObject(value, fn, skipFn) {
973
- // 如果value值满足skipFn条件则不做map操作
974
- skipFn =
975
- skipFn && typeof skipFn === 'function'
976
- ? skipFn
977
- : function (value) {
978
- // File类型处理之后会变成plain object
979
- if (value instanceof File) {
980
- return true;
981
- }
982
- return false;
983
- };
984
- if (!!skipFn(value)) {
985
- return value;
986
- }
987
- if (Array.isArray(value)) {
988
- return value.map(function (item) { return mapObject(item, fn); });
989
- }
990
- if (object.isObject(value)) {
991
- var tmpValue_1 = tslib.__assign({}, value);
992
- Object.keys(tmpValue_1).forEach(function (key) {
993
- tmpValue_1[key] = mapObject(tmpValue_1[key], fn);
994
- });
995
- return tmpValue_1;
996
- }
997
- return fn(value);
998
- }
999
- function loadScript(src) {
1000
- return new Promise(function (ok, fail) {
1001
- var script = document.createElement('script');
1002
- script.onerror = function (reason) { return fail(reason); };
1003
- if (~src.indexOf('{{callback}}')) {
1004
- var callbackFn_1 = "loadscriptcallback_".concat(uuid());
1005
- window[callbackFn_1] = function () {
1006
- ok();
1007
- delete window[callbackFn_1];
1008
- };
1009
- src = src.replace('{{callback}}', callbackFn_1);
1010
- }
1011
- else {
1012
- script.onload = function () { return ok(); };
1013
- }
1014
- script.src = src;
1015
- document.head.appendChild(script);
1016
- });
1017
- }
1018
- var SkipOperation = /** @class */ (function (_super) {
1019
- tslib.__extends(SkipOperation, _super);
1020
- function SkipOperation() {
1021
- return _super !== null && _super.apply(this, arguments) || this;
1022
- }
1023
- return SkipOperation;
1024
- }(Error));
1025
- /**
1026
- * 检查对象是否有循环引用,来自 https://stackoverflow.com/a/34909127
1027
- * @param obj
1028
- */
1029
- function isCyclic(obj) {
1030
- var seenObjects = [];
1031
- function detect(obj) {
1032
- if (obj && typeof obj === 'object') {
1033
- if (seenObjects.indexOf(obj) !== -1) {
1034
- return true;
1035
- }
1036
- seenObjects.push(obj);
1037
- for (var key in obj) {
1038
- if (obj.hasOwnProperty(key) && detect(obj[key])) {
1039
- return true;
1040
- }
1041
- }
1042
- }
1043
- return false;
1044
- }
1045
- return detect(obj);
1046
- }
1047
- function internalFindObjectsWithKey(obj, key) {
1048
- var objects = [];
1049
- for (var k in obj) {
1050
- if (!obj.hasOwnProperty(k))
1051
- continue;
1052
- if (k === key) {
1053
- objects.push(obj);
1054
- }
1055
- else if (typeof obj[k] === 'object') {
1056
- objects = objects.concat(internalFindObjectsWithKey(obj[k], key));
1057
- }
1058
- }
1059
- return objects;
1060
- }
1061
- /**
1062
- * 深度查找具有某个 key 名字段的对象,实际实现是 internalFindObjectsWithKey,这里包一层是为了做循环引用检测
1063
- * @param obj
1064
- * @param key
1065
- */
1066
- function findObjectsWithKey(obj, key) {
1067
- // 避免循环引用导致死循环
1068
- if (isCyclic(obj)) {
1069
- return [];
1070
- }
1071
- return internalFindObjectsWithKey(obj, key);
1072
- }
1073
- var scrollbarWidth;
1074
- /**
1075
- * 获取浏览器滚动条宽度 https://stackoverflow.com/a/13382873
1076
- */
1077
- function getScrollbarWidth() {
1078
- if (typeof scrollbarWidth !== 'undefined') {
1079
- return scrollbarWidth;
1080
- }
1081
- // Creating invisible container
1082
- var outer = document.createElement('div');
1083
- outer.style.visibility = 'hidden';
1084
- outer.style.overflow = 'scroll'; // forcing scrollbar to appear
1085
- // @ts-ignore
1086
- outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps
1087
- document.body.appendChild(outer);
1088
- // Creating inner element and placing it in the container
1089
- var inner = document.createElement('div');
1090
- outer.appendChild(inner);
1091
- // Calculating difference between container's full width and the child width
1092
- scrollbarWidth = outer.offsetWidth - inner.offsetWidth;
1093
- // Removing temporary elements from the DOM
1094
- // @ts-ignore
1095
- outer.parentNode.removeChild(outer);
1096
- return scrollbarWidth;
1097
- }
1098
- // 后续改用 FormulaExec['formula']
1099
- function resolveValueByName(data, name, canAccessSuper) {
1100
- return isPureVariable.isPureVariable(name)
1101
- ? resolveVariableAndFilter.resolveVariableAndFilter(name, data)
1102
- : resolveVariable.resolveVariable(name, data, canAccessSuper);
1103
- }
1104
- // 统一的获取 value 值方法
1105
- function getPropValue(props, getter, canAccessSuper) {
1106
- var _a, _b;
1107
- var name = props.name, value = props.value, data = props.data, defaultValue = props.defaultValue;
1108
- return ((_b = (_a = value !== null && value !== void 0 ? value : getter === null || getter === void 0 ? void 0 : getter(props)) !== null && _a !== void 0 ? _a : resolveValueByName(data, name, canAccessSuper)) !== null && _b !== void 0 ? _b : defaultValue);
1109
- }
1110
- // 检测 value 是否有变化,有变化就执行 onChange
1111
- function detectPropValueChanged(props, prevProps, onChange, getter) {
1112
- var nextValue;
1113
- if (typeof props.value !== 'undefined') {
1114
- props.value !== prevProps.value && onChange(props.value);
1115
- }
1116
- else if ((nextValue = getter === null || getter === void 0 ? void 0 : getter(props)) !== undefined) {
1117
- nextValue !== getter(prevProps) && onChange(nextValue);
1118
- }
1119
- else if (typeof props.name === 'string' &&
1120
- (nextValue = resolveValueByName(props.data, props.name)) !== undefined) {
1121
- nextValue !== resolveValueByName(prevProps.data, prevProps.name) &&
1122
- onChange(nextValue);
1123
- }
1124
- else if (props.defaultValue !== prevProps.defaultValue) {
1125
- onChange(props.defaultValue);
1126
- }
1127
- }
1128
- // 去掉字符串中的 html 标签,不完全准确但效率比较高
1129
- function removeHTMLTag(str) {
1130
- return typeof str === 'string' ? str.replace(/<\/?[^>]+(>|$)/g, '') : str;
1131
- }
1132
- /**
1133
- * 将路径格式的value转换成普通格式的value值
1134
- *
1135
- * @example
1136
- *
1137
- * 'a/b/c' => 'c';
1138
- * {label: 'A/B/C', value: 'a/b/c'} => {label: 'C', value: 'c'};
1139
- * 'a/b/c,a/d' => 'c,d';
1140
- * ['a/b/c', 'a/d'] => ['c', 'd'];
1141
- * [{label: 'A/B/C', value: 'a/b/c'},{label: 'A/D', value: 'a/d'}] => [{label: 'C', value: 'c'},{label: 'D', value: 'd'}]
1142
- */
1143
- function normalizeNodePath(value, enableNodePath, labelField, valueField, pathSeparator, delimiter) {
1144
- var _a;
1145
- if (labelField === void 0) { labelField = 'label'; }
1146
- if (valueField === void 0) { valueField = 'value'; }
1147
- if (pathSeparator === void 0) { pathSeparator = '/'; }
1148
- if (delimiter === void 0) { delimiter = ','; }
1149
- var nodeValueArray = [];
1150
- var nodePathArray = [];
1151
- var getLastNodeFromPath = function (path) {
1152
- return last__default["default"](path ? path.toString().split(pathSeparator) : []);
1153
- };
1154
- if (typeof value === 'undefined' || !enableNodePath) {
1155
- return { nodeValueArray: nodeValueArray, nodePathArray: nodePathArray };
1156
- }
1157
- // 尾节点为当前options中value值
1158
- if (Array.isArray(value)) {
1159
- value.forEach(function (nodePath) {
1160
- var _a;
1161
- if (nodePath && nodePath.hasOwnProperty(valueField)) {
1162
- nodeValueArray.push(tslib.__assign(tslib.__assign({}, nodePath), (_a = {}, _a[labelField] = getLastNodeFromPath(nodePath[labelField]), _a[valueField] = getLastNodeFromPath(nodePath[valueField]), _a)));
1163
- nodePathArray.push(nodePath[valueField]);
1164
- }
1165
- else {
1166
- nodeValueArray.push(getLastNodeFromPath(nodePath));
1167
- nodePathArray.push(nodePath);
1168
- }
1169
- });
1170
- }
1171
- else if (typeof value === 'string') {
1172
- value
1173
- .toString()
1174
- .split(delimiter)
1175
- .forEach(function (path) {
1176
- nodeValueArray.push(getLastNodeFromPath(path));
1177
- nodePathArray.push(path);
1178
- });
1179
- }
1180
- else {
1181
- nodeValueArray.push(tslib.__assign(tslib.__assign({}, value), (_a = {}, _a[labelField] = getLastNodeFromPath(value[labelField]), _a[valueField || 'value'] = getLastNodeFromPath(value[valueField]), _a)));
1182
- nodePathArray.push(value[valueField]);
1183
- }
1184
- return { nodeValueArray: nodeValueArray, nodePathArray: nodePathArray };
1185
- }
1186
- // 主要用于排除点击输入框和链接等情况
1187
- function isClickOnInput(e) {
1188
- var target = e.target;
1189
- var formItem;
1190
- if (!e.currentTarget.contains(target) ||
1191
- ~['INPUT', 'TEXTAREA'].indexOf(target.tagName) ||
1192
- ((formItem = target.closest("button, a, [data-role=\"form-item\"]")) &&
1193
- e.currentTarget.contains(formItem))) {
1194
- return true;
1195
- }
1196
- return false;
1197
- }
1198
- // 计算字符串 hash
1199
- function hashCode(s) {
1200
- return s.split('').reduce(function (a, b) {
1201
- a = (a << 5) - a + b.charCodeAt(0);
1202
- return a & a;
1203
- }, 0);
1204
- }
1205
- /**
1206
- * 遍历 schema
1207
- * @param json
1208
- * @param mapper
1209
- */
1210
- function JSONTraverse(json, mapper) {
1211
- Object.keys(json).forEach(function (key) {
1212
- var value = json[key];
1213
- if (!mobx.isObservable(value)) {
1214
- if (isPlainObject__default["default"](value) || Array.isArray(value)) {
1215
- JSONTraverse(value, mapper);
1216
- }
1217
- else {
1218
- mapper(value, key, json);
1219
- }
1220
- }
1221
- });
1222
- }
1223
- function convertArrayValueToMoment(value, types, mom) {
1224
- if (value.length === 0)
1225
- return mom;
1226
- for (var i = 0; i < types.length; i++) {
1227
- var type = types[i];
1228
- // @ts-ignore
1229
- mom.set(type, value[i]);
1230
- }
1231
- return mom;
1232
- }
1233
- function getRange(min, max, step) {
1234
- if (step === void 0) { step = 1; }
1235
- var arr = [];
1236
- for (var i = min; i <= max; i += step) {
1237
- arr.push(i);
1238
- }
1239
- return arr;
1240
- }
1241
- function repeatCount(count, iterator) {
1242
- var result = [];
1243
- var index = 0;
1244
- while (count--) {
1245
- result.push(iterator(index++));
1246
- }
1247
- return result;
1248
- }
1249
- function isNumeric(value) {
1250
- if (typeof value === 'number') {
1251
- return true;
1252
- }
1253
- return /^[-+]?(?:\d*[.])?\d+$/.test(value);
1254
- }
1255
- /**
1256
- * 获取URL链接中的query参数(包含hash mode)
1257
- *
1258
- * @param location Location对象,或者类Location结构的对象
1259
- */
1260
- function parseQuery(location) {
1261
- var _a, _b;
1262
- var query = (location && !(location instanceof Location) && (location === null || location === void 0 ? void 0 : location.query)) ||
1263
- (location && (location === null || location === void 0 ? void 0 : location.search) && qsparse(location.search.substring(1))) ||
1264
- (window.location.search && qsparse(window.location.search.substring(1)));
1265
- /* 处理hash中的query */
1266
- var hashQuery = ((_a = window.location) === null || _a === void 0 ? void 0 : _a.hash) && typeof ((_b = window.location) === null || _b === void 0 ? void 0 : _b.hash) === 'string'
1267
- ? qsparse(window.location.hash.replace(/^#.*\?/gi, ''))
1268
- : {};
1269
- var normalizedQuery = isPlainObject__default["default"](query) ? query : {};
1270
- return merge__default["default"](normalizedQuery, hashQuery);
1271
- }
1272
-
1273
- exports.cloneObject = object.cloneObject;
1274
- exports.createObject = object.createObject;
1275
- exports.deleteVariable = object.deleteVariable;
1276
- exports.extendObject = object.extendObject;
1277
- exports.isObject = object.isObject;
1278
- exports.setVariable = object.setVariable;
1279
- exports.string2regExp = string2regExp.string2regExp;
1280
- exports.getVariable = getVariable.getVariable;
1281
- exports.keyToPath = keyToPath.keyToPath;
1282
- exports.JSONTraverse = JSONTraverse;
1283
- exports.SkipOperation = SkipOperation;
1284
- exports.__uri = __uri;
1285
- exports.anyChanged = anyChanged;
1286
- exports.autobind = autobind;
1287
- exports.bulkBindFunctions = bulkBindFunctions;
1288
- exports.camel = camel;
1289
- exports.chainEvents = chainEvents;
1290
- exports.chainFunctions = chainFunctions;
1291
- exports.convertArrayValueToMoment = convertArrayValueToMoment;
1292
- exports.detectPropValueChanged = detectPropValueChanged;
1293
- exports.difference = difference;
1294
- exports.eachTree = eachTree;
1295
- exports.everyTree = everyTree;
1296
- exports.filterTree = filterTree;
1297
- exports.findIndex = findIndex;
1298
- exports.findObjectsWithKey = findObjectsWithKey;
1299
- exports.findTree = findTree;
1300
- exports.findTreeIndex = findTreeIndex;
1301
- exports.flattenTree = flattenTree;
1302
- exports.flattenTreeWithLeafNodes = flattenTreeWithLeafNodes;
1303
- exports.getLevelFromClassName = getLevelFromClassName;
1304
- exports.getPropValue = getPropValue;
1305
- exports.getRange = getRange;
1306
- exports.getScrollParent = getScrollParent;
1307
- exports.getScrollbarWidth = getScrollbarWidth;
1308
- exports.getTree = getTree;
1309
- exports.getTreeAncestors = getTreeAncestors;
1310
- exports.getTreeDepth = getTreeDepth;
1311
- exports.getTreeParent = getTreeParent;
1312
- exports.getWidthRate = getWidthRate;
1313
- exports.guid = guid;
1314
- exports.hasAbility = hasAbility;
1315
- exports.hasFile = hasFile;
1316
- exports.hasOwnPropertyInPath = hasOwnPropertyInPath;
1317
- exports.hasVisibleExpression = hasVisibleExpression;
1318
- exports.hashCode = hashCode;
1319
- exports.immutableExtends = immutableExtends;
1320
- exports.injectPropsToObject = injectPropsToObject;
1321
- exports.isArrayChildrenModified = isArrayChildrenModified;
1322
- exports.isBreakpoint = isBreakpoint;
1323
- exports.isClickOnInput = isClickOnInput;
1324
- exports.isDisabled = isDisabled;
1325
- exports.isEmpty = isEmpty;
1326
- exports.isMobile = isMobile;
1327
- exports.isNumeric = isNumeric;
1328
- exports.isObjectShallowModified = isObjectShallowModified;
1329
- exports.isSuperDataModified = isSuperDataModified;
1330
- exports.isUnfolded = isUnfolded;
1331
- exports.isVisible = isVisible;
1332
- exports.lcFirst = lcFirst;
1333
- exports.loadScript = loadScript;
1334
- exports.makeColumnClassBuild = makeColumnClassBuild;
1335
- exports.makeHorizontalDeeper = makeHorizontalDeeper;
1336
- exports.mapObject = mapObject;
1337
- exports.mapTree = mapTree;
1338
- exports.noop = noop;
1339
- exports.normalizeNodePath = normalizeNodePath;
1340
- exports.object2formData = object2formData;
1341
- exports.omitControls = omitControls;
1342
- exports.padArr = padArr;
1343
- exports.parseQuery = parseQuery;
1344
- exports.pickEventsProps = pickEventsProps;
1345
- exports.preventDefault = preventDefault;
1346
- exports.promisify = promisify;
1347
- exports.qsparse = qsparse;
1348
- exports.qsstringify = qsstringify;
1349
- exports.range = range;
1350
- exports.removeHTMLTag = removeHTMLTag;
1351
- exports.repeatCount = repeatCount;
1352
- exports.rmUndefined = rmUndefined;
1353
- exports.someTree = someTree;
1354
- exports.sortArray = sortArray;
1355
- exports.spliceTree = spliceTree;
1356
- exports.syncDataFromSuper = syncDataFromSuper;
1357
- exports.ucFirst = ucFirst;
1358
- exports.until = until;
1359
- exports.uuid = uuid;
1360
- exports.uuidv4 = uuidv4;
1361
- exports.visibilityFilter = visibilityFilter;