d2coreui 23.0.15 → 23.0.17

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 (438) hide show
  1. package/components/codemirror/SyntaxHighlighter.js.map +1 -0
  2. package/components/color/colorSwatch.d.ts +13 -18
  3. package/components/color/colorSwatch.js.map +1 -0
  4. package/{lib/esm/components → components}/date/dateRangeInput.js +1 -1
  5. package/components/date/dateRangeInput.js.map +1 -0
  6. package/{lib/esm/components → components}/date/dateTimeInput.js +1 -1
  7. package/components/date/dateTimeInput.js.map +1 -0
  8. package/{lib/esm/components → components}/date/durationInput.js +2 -2
  9. package/components/date/durationInput.js.map +1 -0
  10. package/{lib/esm/components → components}/grid/cell/cellEditorUtils.js.map +1 -1
  11. package/components/grid/cell/rangeSelector.d.ts +78 -9
  12. package/components/grid/cell/rangeSelector.js +527 -674
  13. package/components/grid/columnUtils.js.map +1 -0
  14. package/{lib/esm/components → components}/grid/export/contextMenu.js +4 -4
  15. package/components/grid/export/progressPopup.js.map +1 -0
  16. package/{lib/esm/components → components}/grid/export/worker/clipboardExport.js.map +1 -1
  17. package/{lib/esm/components → components}/grid/export/worker/csvExport.js.map +1 -1
  18. package/{lib/esm/components → components}/grid/export/worker/txtExport.js.map +1 -1
  19. package/components/icons/ant-design-double-right-outline.svg +5 -5
  20. package/components/icons/ant-design_close-outline.svg +5 -5
  21. package/components/icons/undoIcon.js.map +1 -0
  22. package/components/input/draftUtils.js.map +1 -0
  23. package/components/input/draftail.d.ts +1 -186
  24. package/components/input/draftail.js +2 -1
  25. package/{lib/esm/components → components}/input/draftail.js.map +1 -1
  26. package/components/input/mask/inputMaskCore.js.map +1 -0
  27. package/components/input/mask/pattern.js.map +1 -0
  28. package/components/input/passwordInput.js.map +1 -0
  29. package/components/input/textarea/extractSpansOfClasses.js.map +1 -0
  30. package/components/input/textarea/getRanges.js.map +1 -0
  31. package/{lib/esm/components → components}/input/textarea/getType.js.map +1 -1
  32. package/{lib/esm/components → components}/input/textarea/highlighedContents.js.map +1 -1
  33. package/components/input/textarea/mentionsWithHighlighting.js.map +1 -0
  34. package/{lib/esm/components → components}/keyboard/keyboardUtils.js.map +1 -1
  35. package/components/platformSpecific.js.map +1 -0
  36. package/{lib/esm/components → components}/text/impl/innerSize.js.map +1 -1
  37. package/components/text/impl/series.js.map +1 -0
  38. package/{lib/esm/components → components}/text/impl/shallowEqual.js.map +1 -1
  39. package/{lib/esm/components → components}/text/impl/uniqueId.js.map +1 -1
  40. package/components/text/impl/whilst.js.map +1 -0
  41. package/i18n/components.cs.json +101 -101
  42. package/i18n/components.sk.json +101 -101
  43. package/i18n/components.uk.json +101 -101
  44. package/i18n/componentsLocaleHolder.js +29 -24
  45. package/i18n/componentsLocaleHolder.js.map +1 -0
  46. package/package.json +1 -1
  47. package/style/ag-grid/_ag-theme-antd-vars.scss +194 -194
  48. package/style/ag-grid/ag-theme-antd.scss +87 -87
  49. package/style/ag-grid/aggrid-adaptations.css +42 -42
  50. package/style/ag-grid/aggrid.scss +11 -11
  51. package/style/flexLayout/flexLayout.scss +130 -130
  52. package/style/flexLayout/flexLayoutBase.scss +623 -623
  53. package/style/flexLayout/new/_base.scss +616 -616
  54. package/style/flexLayout/new/flexLayoutBase.scss +621 -621
  55. package/style/flexLayout/new/light.scss +107 -107
  56. package/style/flexLayout/old/_base.scss +551 -551
  57. package/style/flexLayout/old/light.scss +16 -16
  58. package/style/form/niceFormItem.css +38 -38
  59. package/style/loading.css +31 -31
  60. package/style/splitPane/splitPane.css +48 -48
  61. package/tsconfig.build.json +24 -24
  62. package/tsconfig.json +11 -11
  63. package/components/clipboard/clipboardUtils.ts +0 -53
  64. package/components/codemirror/SyntaxHighlighter.tsx +0 -58
  65. package/components/collapse/expandable.tsx +0 -48
  66. package/components/color/colorPicker.tsx +0 -121
  67. package/components/color/colorSwatch.jsx +0 -87
  68. package/components/color/colorUtils.ts +0 -60
  69. package/components/date/dateRangeInput.tsx +0 -468
  70. package/components/date/dateRangeInputAdvancedPanel.tsx +0 -238
  71. package/components/date/dateRangeInputConfirm.tsx +0 -200
  72. package/components/date/dateTimeInput.tsx +0 -633
  73. package/components/date/durationInput.tsx +0 -375
  74. package/components/form/NiceFormItem.tsx +0 -32
  75. package/components/grid/cell/beanAccessor.ts +0 -17
  76. package/components/grid/cell/cellEditorUtils.ts +0 -12
  77. package/components/grid/cell/customEnumCellEditor.tsx +0 -130
  78. package/components/grid/cell/dataGridCellEditorComponent.tsx +0 -61
  79. package/components/grid/cell/dateCellEditor.tsx +0 -83
  80. package/components/grid/cell/durationCellEditor.tsx +0 -105
  81. package/components/grid/cell/hexaOctetStringCellEditor.tsx +0 -101
  82. package/components/grid/cell/hexaValueCellEditor.tsx +0 -92
  83. package/components/grid/cell/numberCellEditor.tsx +0 -115
  84. package/components/grid/cell/simpleStatusTextCellEditor.tsx +0 -168
  85. package/components/grid/cell/statusTextCellEditor.tsx +0 -198
  86. package/components/grid/cell/tableDefaultRowStyleRules.ts +0 -51
  87. package/components/grid/cell/textCellEditor.tsx +0 -94
  88. package/components/grid/cell/withAgGridHooks.tsx +0 -15
  89. package/components/grid/columnUtils.ts +0 -29
  90. package/components/grid/config/columnTransfer.tsx +0 -258
  91. package/components/grid/config/dataGridEditor.tsx +0 -328
  92. package/components/grid/config/rowHeightCalculator.tsx +0 -29
  93. package/components/grid/config/rowStylePicker.tsx +0 -196
  94. package/components/grid/dataGrid.tsx +0 -2183
  95. package/components/grid/detail/detailHeaderPanel.tsx +0 -59
  96. package/components/grid/export/contextMenu.tsx +0 -154
  97. package/components/grid/export/progressPopup.tsx +0 -106
  98. package/components/grid/export/worker/clipboardExport.ts +0 -10
  99. package/components/grid/export/worker/csvExport.ts +0 -10
  100. package/components/grid/export/worker/pdfExport.ts +0 -98
  101. package/components/grid/export/worker/txtExport.ts +0 -21
  102. package/components/grid/extendedDataGrid.tsx +0 -974
  103. package/components/grid/filter/customColumnFilter.tsx +0 -14
  104. package/components/grid/filter/dataGridColumnFilter.tsx +0 -70
  105. package/components/grid/filter/dateColumnFilter.tsx +0 -34
  106. package/components/grid/filter/textColumnFilter.tsx +0 -37
  107. package/components/grid/filter/wildcardQuickFilterEngine.ts +0 -50
  108. package/components/grid/header/simpleHeader.tsx +0 -270
  109. package/components/grid/panel/dataGridPagination.tsx +0 -123
  110. package/components/grid/panel/loadingOverlay.tsx +0 -14
  111. package/components/grid/panel/noRecordsOverlay.tsx +0 -16
  112. package/components/grid/panel/tablePagination.tsx +0 -77
  113. package/components/icons/dropdownArrow.tsx +0 -67
  114. package/components/icons/undoIcon.tsx +0 -16
  115. package/components/input/autoCompleteInput.tsx +0 -174
  116. package/components/input/draftUtils.tsx +0 -62
  117. package/components/input/hexaFormattedInput.tsx +0 -64
  118. package/components/input/mask/helpers.ts +0 -154
  119. package/components/input/mask/inputMaskCore.ts +0 -452
  120. package/components/input/mask/pattern.ts +0 -122
  121. package/components/input/maskedInput.tsx +0 -275
  122. package/components/input/passwordInput.tsx +0 -62
  123. package/components/input/simpleAutoComplete.tsx +0 -60
  124. package/components/input/textarea/extractSpansOfClasses.tsx +0 -125
  125. package/components/input/textarea/getRanges.ts +0 -82
  126. package/components/input/textarea/getType.ts +0 -23
  127. package/components/input/textarea/highlighedContents.tsx +0 -20
  128. package/components/input/textarea/highlightedTextarea.css +0 -61
  129. package/components/input/textarea/mentionsWithHighlighting.tsx +0 -95
  130. package/components/keyboard/keyboardUtils.ts +0 -42
  131. package/components/modal/draggableModalProvider.tsx +0 -37
  132. package/components/modal/impl/clamp.ts +0 -4
  133. package/components/modal/impl/draggableModal.tsx +0 -36
  134. package/components/modal/impl/draggableModalContext.ts +0 -14
  135. package/components/modal/impl/draggableModalInner.tsx +0 -114
  136. package/components/modal/impl/draggableModalReducer.ts +0 -285
  137. package/components/modal/impl/getWindowSize.ts +0 -6
  138. package/components/modal/impl/index.ts +0 -5
  139. package/components/modal/impl/resizeHandle.tsx +0 -12
  140. package/components/modal/impl/useDrag.ts +0 -57
  141. package/components/modal/impl/usePrevious.ts +0 -11
  142. package/components/modal/impl/useResize.ts +0 -79
  143. package/components/modal/modalDialog.tsx +0 -172
  144. package/components/picker/enumValuePicker.tsx +0 -48
  145. package/components/platformSpecific.ts +0 -39
  146. package/components/scrollTo/dom-scroll-into-view.d.ts +0 -1
  147. package/components/scrollTo/onlyText.ts +0 -36
  148. package/components/scrollTo/scrollTo.tsx +0 -324
  149. package/components/style/withCss.tsx +0 -14
  150. package/components/style/withInputNumberCss.tsx +0 -18
  151. package/components/svg.d.ts +0 -1
  152. package/components/table/dragSortingTable.tsx +0 -123
  153. package/components/text/impl/innerSize.ts +0 -15
  154. package/components/text/impl/series.ts +0 -37
  155. package/components/text/impl/shallowEqual.ts +0 -19
  156. package/components/text/impl/uniqueId.ts +0 -5
  157. package/components/text/impl/whilst.ts +0 -25
  158. package/components/text/textFit.tsx +0 -229
  159. package/i18n/componentsLocaleLoader.d.ts +0 -9
  160. package/lib/esm/components/codemirror/SyntaxHighlighter.js.map +0 -1
  161. package/lib/esm/components/color/colorSwatch.d.ts +0 -13
  162. package/lib/esm/components/color/colorSwatch.js.map +0 -1
  163. package/lib/esm/components/date/dateRangeInput.js.map +0 -1
  164. package/lib/esm/components/date/dateTimeInput.js.map +0 -1
  165. package/lib/esm/components/date/durationInput.js.map +0 -1
  166. package/lib/esm/components/grid/cell/rangeSelector.d.ts +0 -78
  167. package/lib/esm/components/grid/cell/rangeSelector.js +0 -527
  168. package/lib/esm/components/grid/columnUtils.js.map +0 -1
  169. package/lib/esm/components/grid/export/progressPopup.js.map +0 -1
  170. package/lib/esm/components/icons/undoIcon.js.map +0 -1
  171. package/lib/esm/components/input/draftUtils.js.map +0 -1
  172. package/lib/esm/components/input/draftail.d.ts +0 -1
  173. package/lib/esm/components/input/draftail.js +0 -2
  174. package/lib/esm/components/input/mask/inputMaskCore.js.map +0 -1
  175. package/lib/esm/components/input/mask/pattern.js.map +0 -1
  176. package/lib/esm/components/input/passwordInput.js.map +0 -1
  177. package/lib/esm/components/input/textarea/extractSpansOfClasses.js.map +0 -1
  178. package/lib/esm/components/input/textarea/getRanges.js.map +0 -1
  179. package/lib/esm/components/input/textarea/mentionsWithHighlighting.js.map +0 -1
  180. package/lib/esm/components/platformSpecific.js.map +0 -1
  181. package/lib/esm/components/text/impl/series.js.map +0 -1
  182. package/lib/esm/components/text/impl/whilst.js.map +0 -1
  183. package/lib/esm/i18n/components.cs.json +0 -101
  184. package/lib/esm/i18n/components.sk.json +0 -101
  185. package/lib/esm/i18n/components.uk.json +0 -101
  186. package/lib/esm/i18n/componentsLocaleHolder.js +0 -29
  187. package/lib/esm/i18n/componentsLocaleHolder.js.map +0 -1
  188. package/lib/esm/package.json +0 -70
  189. package/lib/esm/tsconfig.build.json +0 -24
  190. package/lib/esm/tsconfig.json +0 -11
  191. /package/{lib/esm/components → components}/clipboard/clipboardUtils.d.ts +0 -0
  192. /package/{lib/esm/components → components}/clipboard/clipboardUtils.js +0 -0
  193. /package/{lib/esm/components → components}/clipboard/clipboardUtils.js.map +0 -0
  194. /package/{lib/esm/components → components}/codemirror/SyntaxHighlighter.d.ts +0 -0
  195. /package/{lib/esm/components → components}/codemirror/SyntaxHighlighter.js +0 -0
  196. /package/{lib/esm/components → components}/collapse/expandable.d.ts +0 -0
  197. /package/{lib/esm/components → components}/collapse/expandable.js +0 -0
  198. /package/{lib/esm/components → components}/collapse/expandable.js.map +0 -0
  199. /package/{lib/esm/components → components}/color/colorPicker.d.ts +0 -0
  200. /package/{lib/esm/components → components}/color/colorPicker.js +0 -0
  201. /package/{lib/esm/components → components}/color/colorPicker.js.map +0 -0
  202. /package/{lib/esm/components → components}/color/colorSwatch.js +0 -0
  203. /package/{lib/esm/components → components}/color/colorUtils.d.ts +0 -0
  204. /package/{lib/esm/components → components}/color/colorUtils.js +0 -0
  205. /package/{lib/esm/components → components}/color/colorUtils.js.map +0 -0
  206. /package/{lib/esm/components → components}/date/dateRangeInput.d.ts +0 -0
  207. /package/{lib/esm/components → components}/date/dateRangeInputAdvancedPanel.d.ts +0 -0
  208. /package/{lib/esm/components → components}/date/dateRangeInputAdvancedPanel.js +0 -0
  209. /package/{lib/esm/components → components}/date/dateRangeInputAdvancedPanel.js.map +0 -0
  210. /package/{lib/esm/components → components}/date/dateRangeInputConfirm.d.ts +0 -0
  211. /package/{lib/esm/components → components}/date/dateRangeInputConfirm.js +0 -0
  212. /package/{lib/esm/components → components}/date/dateRangeInputConfirm.js.map +0 -0
  213. /package/{lib/esm/components → components}/date/dateTimeInput.d.ts +0 -0
  214. /package/{lib/esm/components → components}/date/durationInput.d.ts +0 -0
  215. /package/{lib/esm/components → components}/form/NiceFormItem.d.ts +0 -0
  216. /package/{lib/esm/components → components}/form/NiceFormItem.js +0 -0
  217. /package/{lib/esm/components → components}/form/NiceFormItem.js.map +0 -0
  218. /package/{lib/esm/components → components}/grid/cell/beanAccessor.d.ts +0 -0
  219. /package/{lib/esm/components → components}/grid/cell/beanAccessor.js +0 -0
  220. /package/{lib/esm/components → components}/grid/cell/beanAccessor.js.map +0 -0
  221. /package/{lib/esm/components → components}/grid/cell/cellEditorUtils.d.ts +0 -0
  222. /package/{lib/esm/components → components}/grid/cell/cellEditorUtils.js +0 -0
  223. /package/{lib/esm/components → components}/grid/cell/customEnumCellEditor.d.ts +0 -0
  224. /package/{lib/esm/components → components}/grid/cell/customEnumCellEditor.js +0 -0
  225. /package/{lib/esm/components → components}/grid/cell/customEnumCellEditor.js.map +0 -0
  226. /package/{lib/esm/components → components}/grid/cell/dataGridCellEditorComponent.d.ts +0 -0
  227. /package/{lib/esm/components → components}/grid/cell/dataGridCellEditorComponent.js +0 -0
  228. /package/{lib/esm/components → components}/grid/cell/dataGridCellEditorComponent.js.map +0 -0
  229. /package/{lib/esm/components → components}/grid/cell/dateCellEditor.d.ts +0 -0
  230. /package/{lib/esm/components → components}/grid/cell/dateCellEditor.js +0 -0
  231. /package/{lib/esm/components → components}/grid/cell/dateCellEditor.js.map +0 -0
  232. /package/{lib/esm/components → components}/grid/cell/durationCellEditor.d.ts +0 -0
  233. /package/{lib/esm/components → components}/grid/cell/durationCellEditor.js +0 -0
  234. /package/{lib/esm/components → components}/grid/cell/durationCellEditor.js.map +0 -0
  235. /package/{lib/esm/components → components}/grid/cell/hexaOctetStringCellEditor.d.ts +0 -0
  236. /package/{lib/esm/components → components}/grid/cell/hexaOctetStringCellEditor.js +0 -0
  237. /package/{lib/esm/components → components}/grid/cell/hexaOctetStringCellEditor.js.map +0 -0
  238. /package/{lib/esm/components → components}/grid/cell/hexaValueCellEditor.d.ts +0 -0
  239. /package/{lib/esm/components → components}/grid/cell/hexaValueCellEditor.js +0 -0
  240. /package/{lib/esm/components → components}/grid/cell/hexaValueCellEditor.js.map +0 -0
  241. /package/{lib/esm/components → components}/grid/cell/numberCellEditor.d.ts +0 -0
  242. /package/{lib/esm/components → components}/grid/cell/numberCellEditor.js +0 -0
  243. /package/{lib/esm/components → components}/grid/cell/numberCellEditor.js.map +0 -0
  244. /package/{lib/esm/components → components}/grid/cell/rangeSelector.js.map +0 -0
  245. /package/{lib/esm/components → components}/grid/cell/simpleStatusTextCellEditor.d.ts +0 -0
  246. /package/{lib/esm/components → components}/grid/cell/simpleStatusTextCellEditor.js +0 -0
  247. /package/{lib/esm/components → components}/grid/cell/simpleStatusTextCellEditor.js.map +0 -0
  248. /package/{lib/esm/components → components}/grid/cell/statusTextCellEditor.d.ts +0 -0
  249. /package/{lib/esm/components → components}/grid/cell/statusTextCellEditor.js +0 -0
  250. /package/{lib/esm/components → components}/grid/cell/statusTextCellEditor.js.map +0 -0
  251. /package/{lib/esm/components → components}/grid/cell/tableDefaultRowStyleRules.d.ts +0 -0
  252. /package/{lib/esm/components → components}/grid/cell/tableDefaultRowStyleRules.js +0 -0
  253. /package/{lib/esm/components → components}/grid/cell/tableDefaultRowStyleRules.js.map +0 -0
  254. /package/{lib/esm/components → components}/grid/cell/textCellEditor.d.ts +0 -0
  255. /package/{lib/esm/components → components}/grid/cell/textCellEditor.js +0 -0
  256. /package/{lib/esm/components → components}/grid/cell/textCellEditor.js.map +0 -0
  257. /package/{lib/esm/components → components}/grid/cell/withAgGridHooks.d.ts +0 -0
  258. /package/{lib/esm/components → components}/grid/cell/withAgGridHooks.js +0 -0
  259. /package/{lib/esm/components → components}/grid/cell/withAgGridHooks.js.map +0 -0
  260. /package/{lib/esm/components → components}/grid/columnUtils.d.ts +0 -0
  261. /package/{lib/esm/components → components}/grid/columnUtils.js +0 -0
  262. /package/{lib/esm/components → components}/grid/config/columnTransfer.d.ts +0 -0
  263. /package/{lib/esm/components → components}/grid/config/columnTransfer.js +0 -0
  264. /package/{lib/esm/components → components}/grid/config/columnTransfer.js.map +0 -0
  265. /package/{lib/esm/components → components}/grid/config/dataGridEditor.d.ts +0 -0
  266. /package/{lib/esm/components → components}/grid/config/dataGridEditor.js +0 -0
  267. /package/{lib/esm/components → components}/grid/config/dataGridEditor.js.map +0 -0
  268. /package/{lib/esm/components → components}/grid/config/rowHeightCalculator.d.ts +0 -0
  269. /package/{lib/esm/components → components}/grid/config/rowHeightCalculator.js +0 -0
  270. /package/{lib/esm/components → components}/grid/config/rowHeightCalculator.js.map +0 -0
  271. /package/{lib/esm/components → components}/grid/config/rowStylePicker.d.ts +0 -0
  272. /package/{lib/esm/components → components}/grid/config/rowStylePicker.js +0 -0
  273. /package/{lib/esm/components → components}/grid/config/rowStylePicker.js.map +0 -0
  274. /package/{lib/esm/components → components}/grid/dataGrid.d.ts +0 -0
  275. /package/{lib/esm/components → components}/grid/dataGrid.js +0 -0
  276. /package/{lib/esm/components → components}/grid/dataGrid.js.map +0 -0
  277. /package/{lib/esm/components → components}/grid/detail/detailHeaderPanel.d.ts +0 -0
  278. /package/{lib/esm/components → components}/grid/detail/detailHeaderPanel.js +0 -0
  279. /package/{lib/esm/components → components}/grid/detail/detailHeaderPanel.js.map +0 -0
  280. /package/{lib/esm/components → components}/grid/export/contextMenu.d.ts +0 -0
  281. /package/{lib/esm/components → components}/grid/export/contextMenu.js.map +0 -0
  282. /package/{lib/esm/components → components}/grid/export/progressPopup.d.ts +0 -0
  283. /package/{lib/esm/components → components}/grid/export/progressPopup.js +0 -0
  284. /package/{lib/esm/components → components}/grid/export/worker/clipboardExport.d.ts +0 -0
  285. /package/{lib/esm/components → components}/grid/export/worker/clipboardExport.js +0 -0
  286. /package/{lib/esm/components → components}/grid/export/worker/csvExport.d.ts +0 -0
  287. /package/{lib/esm/components → components}/grid/export/worker/csvExport.js +0 -0
  288. /package/{lib/esm/components → components}/grid/export/worker/pdfExport.d.ts +0 -0
  289. /package/{lib/esm/components → components}/grid/export/worker/pdfExport.js +0 -0
  290. /package/{lib/esm/components → components}/grid/export/worker/pdfExport.js.map +0 -0
  291. /package/{lib/esm/components → components}/grid/export/worker/txtExport.d.ts +0 -0
  292. /package/{lib/esm/components → components}/grid/export/worker/txtExport.js +0 -0
  293. /package/{lib/esm/components → components}/grid/extendedDataGrid.d.ts +0 -0
  294. /package/{lib/esm/components → components}/grid/extendedDataGrid.js +0 -0
  295. /package/{lib/esm/components → components}/grid/extendedDataGrid.js.map +0 -0
  296. /package/{lib/esm/components → components}/grid/filter/customColumnFilter.d.ts +0 -0
  297. /package/{lib/esm/components → components}/grid/filter/customColumnFilter.js +0 -0
  298. /package/{lib/esm/components → components}/grid/filter/customColumnFilter.js.map +0 -0
  299. /package/{lib/esm/components → components}/grid/filter/dataGridColumnFilter.d.ts +0 -0
  300. /package/{lib/esm/components → components}/grid/filter/dataGridColumnFilter.js +0 -0
  301. /package/{lib/esm/components → components}/grid/filter/dataGridColumnFilter.js.map +0 -0
  302. /package/{lib/esm/components → components}/grid/filter/dateColumnFilter.d.ts +0 -0
  303. /package/{lib/esm/components → components}/grid/filter/dateColumnFilter.js +0 -0
  304. /package/{lib/esm/components → components}/grid/filter/dateColumnFilter.js.map +0 -0
  305. /package/{lib/esm/components → components}/grid/filter/textColumnFilter.d.ts +0 -0
  306. /package/{lib/esm/components → components}/grid/filter/textColumnFilter.js +0 -0
  307. /package/{lib/esm/components → components}/grid/filter/textColumnFilter.js.map +0 -0
  308. /package/{lib/esm/components → components}/grid/filter/wildcardQuickFilterEngine.d.ts +0 -0
  309. /package/{lib/esm/components → components}/grid/filter/wildcardQuickFilterEngine.js +0 -0
  310. /package/{lib/esm/components → components}/grid/filter/wildcardQuickFilterEngine.js.map +0 -0
  311. /package/{lib/esm/components → components}/grid/header/simpleHeader.d.ts +0 -0
  312. /package/{lib/esm/components → components}/grid/header/simpleHeader.js +0 -0
  313. /package/{lib/esm/components → components}/grid/header/simpleHeader.js.map +0 -0
  314. /package/{lib/esm/components → components}/grid/panel/dataGridPagination.d.ts +0 -0
  315. /package/{lib/esm/components → components}/grid/panel/dataGridPagination.js +0 -0
  316. /package/{lib/esm/components → components}/grid/panel/dataGridPagination.js.map +0 -0
  317. /package/{lib/esm/components → components}/grid/panel/loadingOverlay.d.ts +0 -0
  318. /package/{lib/esm/components → components}/grid/panel/loadingOverlay.js +0 -0
  319. /package/{lib/esm/components → components}/grid/panel/loadingOverlay.js.map +0 -0
  320. /package/{lib/esm/components → components}/grid/panel/noRecordsOverlay.d.ts +0 -0
  321. /package/{lib/esm/components → components}/grid/panel/noRecordsOverlay.js +0 -0
  322. /package/{lib/esm/components → components}/grid/panel/noRecordsOverlay.js.map +0 -0
  323. /package/{lib/esm/components → components}/grid/panel/tablePagination.d.ts +0 -0
  324. /package/{lib/esm/components → components}/grid/panel/tablePagination.js +0 -0
  325. /package/{lib/esm/components → components}/grid/panel/tablePagination.js.map +0 -0
  326. /package/{lib/esm/components → components}/icons/dropdownArrow.d.ts +0 -0
  327. /package/{lib/esm/components → components}/icons/dropdownArrow.js +0 -0
  328. /package/{lib/esm/components → components}/icons/dropdownArrow.js.map +0 -0
  329. /package/{lib/esm/components → components}/icons/undoIcon.d.ts +0 -0
  330. /package/{lib/esm/components → components}/icons/undoIcon.js +0 -0
  331. /package/{lib/esm/components → components}/input/autoCompleteInput.d.ts +0 -0
  332. /package/{lib/esm/components → components}/input/autoCompleteInput.js +0 -0
  333. /package/{lib/esm/components → components}/input/autoCompleteInput.js.map +0 -0
  334. /package/{lib/esm/components → components}/input/draftUtils.d.ts +0 -0
  335. /package/{lib/esm/components → components}/input/draftUtils.js +0 -0
  336. /package/{lib/esm/components → components}/input/hexaFormattedInput.d.ts +0 -0
  337. /package/{lib/esm/components → components}/input/hexaFormattedInput.js +0 -0
  338. /package/{lib/esm/components → components}/input/hexaFormattedInput.js.map +0 -0
  339. /package/{lib/esm/components → components}/input/mask/helpers.d.ts +0 -0
  340. /package/{lib/esm/components → components}/input/mask/helpers.js +0 -0
  341. /package/{lib/esm/components → components}/input/mask/helpers.js.map +0 -0
  342. /package/{lib/esm/components → components}/input/mask/inputMaskCore.d.ts +0 -0
  343. /package/{lib/esm/components → components}/input/mask/inputMaskCore.js +0 -0
  344. /package/{lib/esm/components → components}/input/mask/pattern.d.ts +0 -0
  345. /package/{lib/esm/components → components}/input/mask/pattern.js +0 -0
  346. /package/{lib/esm/components → components}/input/maskedInput.d.ts +0 -0
  347. /package/{lib/esm/components → components}/input/maskedInput.js +0 -0
  348. /package/{lib/esm/components → components}/input/maskedInput.js.map +0 -0
  349. /package/{lib/esm/components → components}/input/passwordInput.d.ts +0 -0
  350. /package/{lib/esm/components → components}/input/passwordInput.js +0 -0
  351. /package/{lib/esm/components → components}/input/simpleAutoComplete.d.ts +0 -0
  352. /package/{lib/esm/components → components}/input/simpleAutoComplete.js +0 -0
  353. /package/{lib/esm/components → components}/input/simpleAutoComplete.js.map +0 -0
  354. /package/{lib/esm/components → components}/input/textarea/extractSpansOfClasses.d.ts +0 -0
  355. /package/{lib/esm/components → components}/input/textarea/extractSpansOfClasses.js +0 -0
  356. /package/{lib/esm/components → components}/input/textarea/getRanges.d.ts +0 -0
  357. /package/{lib/esm/components → components}/input/textarea/getRanges.js +0 -0
  358. /package/{lib/esm/components → components}/input/textarea/getType.d.ts +0 -0
  359. /package/{lib/esm/components → components}/input/textarea/getType.js +0 -0
  360. /package/{lib/esm/components → components}/input/textarea/highlighedContents.d.ts +0 -0
  361. /package/{lib/esm/components → components}/input/textarea/highlighedContents.js +0 -0
  362. /package/{lib/esm/components → components}/input/textarea/mentionsWithHighlighting.d.ts +0 -0
  363. /package/{lib/esm/components → components}/input/textarea/mentionsWithHighlighting.js +0 -0
  364. /package/{lib/esm/components → components}/keyboard/keyboardUtils.d.ts +0 -0
  365. /package/{lib/esm/components → components}/keyboard/keyboardUtils.js +0 -0
  366. /package/{lib/esm/components → components}/modal/draggableModalProvider.d.ts +0 -0
  367. /package/{lib/esm/components → components}/modal/draggableModalProvider.js +0 -0
  368. /package/{lib/esm/components → components}/modal/draggableModalProvider.js.map +0 -0
  369. /package/{lib/esm/components → components}/modal/impl/clamp.d.ts +0 -0
  370. /package/{lib/esm/components → components}/modal/impl/clamp.js +0 -0
  371. /package/{lib/esm/components → components}/modal/impl/clamp.js.map +0 -0
  372. /package/{lib/esm/components → components}/modal/impl/draggableModal.d.ts +0 -0
  373. /package/{lib/esm/components → components}/modal/impl/draggableModal.js +0 -0
  374. /package/{lib/esm/components → components}/modal/impl/draggableModal.js.map +0 -0
  375. /package/{lib/esm/components → components}/modal/impl/draggableModalContext.d.ts +0 -0
  376. /package/{lib/esm/components → components}/modal/impl/draggableModalContext.js +0 -0
  377. /package/{lib/esm/components → components}/modal/impl/draggableModalContext.js.map +0 -0
  378. /package/{lib/esm/components → components}/modal/impl/draggableModalInner.d.ts +0 -0
  379. /package/{lib/esm/components → components}/modal/impl/draggableModalInner.js +0 -0
  380. /package/{lib/esm/components → components}/modal/impl/draggableModalInner.js.map +0 -0
  381. /package/{lib/esm/components → components}/modal/impl/draggableModalReducer.d.ts +0 -0
  382. /package/{lib/esm/components → components}/modal/impl/draggableModalReducer.js +0 -0
  383. /package/{lib/esm/components → components}/modal/impl/draggableModalReducer.js.map +0 -0
  384. /package/{lib/esm/components → components}/modal/impl/getWindowSize.d.ts +0 -0
  385. /package/{lib/esm/components → components}/modal/impl/getWindowSize.js +0 -0
  386. /package/{lib/esm/components → components}/modal/impl/getWindowSize.js.map +0 -0
  387. /package/{lib/esm/components → components}/modal/impl/index.d.ts +0 -0
  388. /package/{lib/esm/components → components}/modal/impl/index.js +0 -0
  389. /package/{lib/esm/components → components}/modal/impl/index.js.map +0 -0
  390. /package/{lib/esm/components → components}/modal/impl/resizeHandle.d.ts +0 -0
  391. /package/{lib/esm/components → components}/modal/impl/resizeHandle.js +0 -0
  392. /package/{lib/esm/components → components}/modal/impl/resizeHandle.js.map +0 -0
  393. /package/{lib/esm/components → components}/modal/impl/useDrag.d.ts +0 -0
  394. /package/{lib/esm/components → components}/modal/impl/useDrag.js +0 -0
  395. /package/{lib/esm/components → components}/modal/impl/useDrag.js.map +0 -0
  396. /package/{lib/esm/components → components}/modal/impl/usePrevious.d.ts +0 -0
  397. /package/{lib/esm/components → components}/modal/impl/usePrevious.js +0 -0
  398. /package/{lib/esm/components → components}/modal/impl/usePrevious.js.map +0 -0
  399. /package/{lib/esm/components → components}/modal/impl/useResize.d.ts +0 -0
  400. /package/{lib/esm/components → components}/modal/impl/useResize.js +0 -0
  401. /package/{lib/esm/components → components}/modal/impl/useResize.js.map +0 -0
  402. /package/{lib/esm/components → components}/modal/modalDialog.d.ts +0 -0
  403. /package/{lib/esm/components → components}/modal/modalDialog.js +0 -0
  404. /package/{lib/esm/components → components}/modal/modalDialog.js.map +0 -0
  405. /package/{lib/esm/components → components}/picker/enumValuePicker.d.ts +0 -0
  406. /package/{lib/esm/components → components}/picker/enumValuePicker.js +0 -0
  407. /package/{lib/esm/components → components}/picker/enumValuePicker.js.map +0 -0
  408. /package/{lib/esm/components → components}/platformSpecific.d.ts +0 -0
  409. /package/{lib/esm/components → components}/platformSpecific.js +0 -0
  410. /package/{lib/esm/components → components}/scrollTo/onlyText.d.ts +0 -0
  411. /package/{lib/esm/components → components}/scrollTo/onlyText.js +0 -0
  412. /package/{lib/esm/components → components}/scrollTo/onlyText.js.map +0 -0
  413. /package/{lib/esm/components → components}/scrollTo/scrollTo.d.ts +0 -0
  414. /package/{lib/esm/components → components}/scrollTo/scrollTo.js +0 -0
  415. /package/{lib/esm/components → components}/scrollTo/scrollTo.js.map +0 -0
  416. /package/{lib/esm/components → components}/style/withCss.d.ts +0 -0
  417. /package/{lib/esm/components → components}/style/withCss.js +0 -0
  418. /package/{lib/esm/components → components}/style/withCss.js.map +0 -0
  419. /package/{lib/esm/components → components}/style/withInputNumberCss.d.ts +0 -0
  420. /package/{lib/esm/components → components}/style/withInputNumberCss.js +0 -0
  421. /package/{lib/esm/components → components}/style/withInputNumberCss.js.map +0 -0
  422. /package/{lib/esm/components → components}/table/dragSortingTable.d.ts +0 -0
  423. /package/{lib/esm/components → components}/table/dragSortingTable.js +0 -0
  424. /package/{lib/esm/components → components}/table/dragSortingTable.js.map +0 -0
  425. /package/{lib/esm/components → components}/text/impl/innerSize.d.ts +0 -0
  426. /package/{lib/esm/components → components}/text/impl/innerSize.js +0 -0
  427. /package/{lib/esm/components → components}/text/impl/series.d.ts +0 -0
  428. /package/{lib/esm/components → components}/text/impl/series.js +0 -0
  429. /package/{lib/esm/components → components}/text/impl/shallowEqual.d.ts +0 -0
  430. /package/{lib/esm/components → components}/text/impl/shallowEqual.js +0 -0
  431. /package/{lib/esm/components → components}/text/impl/uniqueId.d.ts +0 -0
  432. /package/{lib/esm/components → components}/text/impl/uniqueId.js +0 -0
  433. /package/{lib/esm/components → components}/text/impl/whilst.d.ts +0 -0
  434. /package/{lib/esm/components → components}/text/impl/whilst.js +0 -0
  435. /package/{lib/esm/components → components}/text/textFit.d.ts +0 -0
  436. /package/{lib/esm/components → components}/text/textFit.js +0 -0
  437. /package/{lib/esm/components → components}/text/textFit.js.map +0 -0
  438. /package/{lib/esm/i18n → i18n}/componentsLocaleHolder.d.ts +0 -0
@@ -1,78 +0,0 @@
1
- export class RangeSelector extends BeanStub<"destroyed"> {
2
- constructor();
3
- beanName: string;
4
- wireBeans(beans: any): void;
5
- rowModel: any;
6
- dragService: any;
7
- columnModel: any;
8
- visibleColsService: any;
9
- cellNavigationService: any;
10
- pinnedRowModel: any;
11
- rowPositionUtils: any;
12
- cellPositionUtils: any;
13
- ctrlsService: any;
14
- valueService: any;
15
- mouseEventService: any;
16
- gridApi: any;
17
- eGridDiv: any;
18
- focusService: any;
19
- postConstruct(): void;
20
- cellRanges: any[] | undefined;
21
- bodyScrollListener: (() => void) | undefined;
22
- dragging: boolean | undefined;
23
- autoScrollService: AutoScrollService | undefined;
24
- cellPositionEquals(cellA: any, cellB: any): boolean;
25
- onColumnVisibleChange(): void;
26
- refreshLastRangeStart(): void;
27
- isContiguousRange(cellRange: any): boolean;
28
- getRangeStartRow(cellRange: any): any;
29
- getRangeEndRow(cellRange: any): any;
30
- setRangeToCell(cell: any, appendRange?: boolean): void;
31
- newestRangeStartCell: any;
32
- extendLatestRangeToCell(cellPosition: any): void;
33
- updateRangeEnd(cellRange: any, cellPosition: any, silent: any): void;
34
- refreshRangeStart(cellRange: any): void;
35
- getRangeEdgeColumns(cellRange: any): {
36
- left: any;
37
- right: any;
38
- };
39
- extendLatestRangeInDirection(key: any): any;
40
- setCellRange(params: any): void;
41
- setCellRanges(cellRanges: any): void;
42
- createCellRangeFromCellRangeParams(params: any): {
43
- startRow: {
44
- rowIndex: any;
45
- rowPinned: any;
46
- } | undefined;
47
- endRow: {
48
- rowIndex: any;
49
- rowPinned: any;
50
- } | undefined;
51
- columns: any;
52
- startColumn: any;
53
- } | undefined;
54
- addCellRange(params: any): void;
55
- getCellRanges(): any[] | undefined;
56
- isEmpty(): boolean;
57
- isMoreThanOneCell(): boolean;
58
- removeAllCellRanges(silent: any): void;
59
- onBodyScroll(): void;
60
- isCellInAnyRange(cell: any): boolean;
61
- isCellInSpecificRange(cell: any, range: any): any;
62
- isLastCellOfRange(cellRange: any, cell: any): boolean;
63
- isBottomRightCell(cellRange: any, cell: any): boolean;
64
- getCellRangeCount(cell: any): number;
65
- isRowInRange(rowIndex: any, floating: any, cellRange: any): any;
66
- getDraggingRange(): any;
67
- onDragStart(mouseEvent: any): void;
68
- draggingCell: any;
69
- lastMouseEvent: any;
70
- draggingRange: any;
71
- onDragging(mouseEvent: any): void;
72
- focusCell(cellPosition: any): void;
73
- onDragStop(): void;
74
- dispatchChangedEvent(started: any, finished: any, id: any): void;
75
- calculateColumnsBetween(columnFrom: any, columnTo: any): any[] | undefined;
76
- }
77
- import { BeanStub } from "ag-grid-community";
78
- import { AutoScrollService } from "ag-grid-community";
@@ -1,527 +0,0 @@
1
- import { _areEqual, _exists, _includes, _isDomLayout, _last, _makeNull, _missing, _removeFromArray, _shallowCompare, AutoScrollService, BeanStub } from "ag-grid-community";
2
- export class RangeSelector extends BeanStub {
3
- constructor() {
4
- super(...arguments);
5
- this.beanName = "RangeSelector";
6
- }
7
- wireBeans(beans) {
8
- this.rowModel = beans.rowModel;
9
- this.dragService = beans.dragService;
10
- this.columnModel = beans.columnModel;
11
- this.visibleColsService = beans.visibleColsService;
12
- this.cellNavigationService = beans.cellNavigationService;
13
- this.pinnedRowModel = beans.pinnedRowModel;
14
- this.rowPositionUtils = beans.rowPositionUtils;
15
- this.cellPositionUtils = beans.cellPositionUtils;
16
- this.ctrlsService = beans.ctrlsService;
17
- this.valueService = beans.valueService;
18
- this.eventService = beans.eventService;
19
- this.mouseEventService = beans.mouseEventService;
20
- this.gridApi = beans.gridApi;
21
- this.eGridDiv = beans.eGridDiv;
22
- this.focusService = beans.focusService;
23
- this.gos = beans.gos;
24
- }
25
- postConstruct() {
26
- this.cellRanges = [];
27
- this.bodyScrollListener = this.onBodyScroll.bind(this);
28
- this.dragging = false;
29
- this.eventService.addEventListener("newColumnsLoaded", () => this.removeAllCellRanges());
30
- this.eventService.addEventListener("columnPivotModeChanged", () => this.removeAllCellRanges());
31
- this.eventService.addEventListener("columnRowGroupChanged", () => this.removeAllCellRanges());
32
- this.eventService.addEventListener("columnPivotChanged", () => this.removeAllCellRanges());
33
- this.eventService.addEventListener("columnGroupOpened", this.refreshLastRangeStart.bind(this));
34
- this.eventService.addEventListener("columnMoved", this.refreshLastRangeStart.bind(this));
35
- this.eventService.addEventListener("columnPinned", this.refreshLastRangeStart.bind(this));
36
- this.eventService.addEventListener("columnVisible", this.onColumnVisibleChange.bind(this));
37
- this.ctrlsService.whenReady(this, () => {
38
- const gridBodyCon = this.ctrlsService.getGridBodyCtrl();
39
- this.autoScrollService = new AutoScrollService({
40
- scrollContainer: gridBodyCon.getBodyViewportElement(),
41
- scrollAxis: 'xy',
42
- getVerticalPosition: () => gridBodyCon.getScrollFeature().getVScrollPosition().top,
43
- setVerticalPosition: (position) => gridBodyCon.getScrollFeature().setVerticalScrollPosition(position),
44
- getHorizontalPosition: () => gridBodyCon.getScrollFeature().getHScrollPosition().left,
45
- setHorizontalPosition: (position) => gridBodyCon.getScrollFeature().setHorizontalScrollPosition(position),
46
- shouldSkipVerticalScroll: () => !_isDomLayout(this.gos, 'normal'),
47
- shouldSkipHorizontalScroll: () => !gridBodyCon.getScrollFeature().isHorizontalScrollShowing()
48
- });
49
- });
50
- const params = {
51
- eElement: this.eGridDiv,
52
- onDragStart: this.onDragStart.bind(this),
53
- onDragStop: this.onDragStop.bind(this),
54
- onDragging: this.onDragging.bind(this)
55
- };
56
- this.dragService.addDragSource(params);
57
- this.dragService.addDestroyFunc(() => this.dragService.removeDragSource(params));
58
- }
59
- cellPositionEquals(cellA, cellB) {
60
- const colsMatch = cellA.column === cellB.column;
61
- const floatingMatch = cellA.rowPinned === cellB.rowPinned;
62
- const indexMatch = cellA.rowIndex === cellB.rowIndex;
63
- return colsMatch && floatingMatch && indexMatch;
64
- }
65
- onColumnVisibleChange() {
66
- this.refreshLastRangeStart();
67
- this.cellRanges.forEach(cellRange => {
68
- const beforeCols = cellRange.columns;
69
- cellRange.columns = cellRange.columns.filter(col => col.isVisible());
70
- const colsInRangeChanged = !_areEqual(beforeCols, cellRange.columns);
71
- if (colsInRangeChanged) {
72
- this.dispatchChangedEvent(false, true, cellRange.id);
73
- }
74
- });
75
- }
76
- refreshLastRangeStart() {
77
- const lastRange = _last(this.cellRanges);
78
- if (!lastRange) {
79
- return;
80
- }
81
- this.refreshRangeStart(lastRange);
82
- }
83
- isContiguousRange(cellRange) {
84
- const rangeColumns = cellRange.columns;
85
- if (!rangeColumns.length) {
86
- return false;
87
- }
88
- const allColumns = this.visibleColsService.getAllCols();
89
- const allPositions = rangeColumns.map(c => allColumns.indexOf(c)).sort((a, b) => a - b);
90
- return _last(allPositions) - allPositions[0] + 1 === rangeColumns.length;
91
- }
92
- getRangeStartRow(cellRange) {
93
- if (cellRange.startRow && cellRange.endRow) {
94
- return this.rowPositionUtils.before(cellRange.startRow, cellRange.endRow) ?
95
- cellRange.startRow : cellRange.endRow;
96
- }
97
- const rowPinned = this.pinnedRowModel.getPinnedTopRowCount() > 0 ? 'top' : null;
98
- return { rowIndex: 0, rowPinned };
99
- }
100
- getRangeEndRow(cellRange) {
101
- if (cellRange.startRow && cellRange.endRow) {
102
- return this.rowPositionUtils.before(cellRange.startRow, cellRange.endRow) ?
103
- cellRange.endRow : cellRange.startRow;
104
- }
105
- const pinnedBottomRowCount = this.pinnedRowModel.getPinnedBottomRowCount();
106
- const pinnedBottom = pinnedBottomRowCount > 0;
107
- if (pinnedBottom) {
108
- return {
109
- rowIndex: pinnedBottomRowCount - 1,
110
- rowPinned: 'bottom'
111
- };
112
- }
113
- return {
114
- rowIndex: this.rowModel.getRowCount() - 1,
115
- rowPinned: null
116
- };
117
- }
118
- setRangeToCell(cell, appendRange = false) {
119
- const columns = this.calculateColumnsBetween(cell.column, cell.column);
120
- if (!columns) {
121
- return;
122
- }
123
- this.removeAllCellRanges(true);
124
- const rowForCell = {
125
- rowIndex: cell.rowIndex,
126
- rowPinned: cell.rowPinned
127
- };
128
- let cellRange;
129
- for (let i = 0; i < this.cellRanges.length; i++) {
130
- const range = this.cellRanges[i];
131
- const matches = (range.columns && range.columns.length === 1 && range.columns[0] === cell.column) &&
132
- this.rowPositionUtils.sameRow(rowForCell, range.startRow) &&
133
- this.rowPositionUtils.sameRow(rowForCell, range.endRow);
134
- if (matches) {
135
- cellRange = range;
136
- break;
137
- }
138
- }
139
- if (cellRange) {
140
- const atEndOfList = _last(this.cellRanges) === cellRange;
141
- if (!atEndOfList) {
142
- _removeFromArray(this.cellRanges, cellRange);
143
- this.cellRanges.push(cellRange);
144
- }
145
- }
146
- else {
147
- cellRange = {
148
- startRow: rowForCell,
149
- endRow: rowForCell,
150
- columns: columns,
151
- startColumn: cell.column
152
- };
153
- this.cellRanges.push(cellRange);
154
- }
155
- this.newestRangeStartCell = cell;
156
- this.onDragStop();
157
- this.dispatchChangedEvent(true, true, cellRange.id);
158
- }
159
- extendLatestRangeToCell(cellPosition) {
160
- if (this.isEmpty() || !this.newestRangeStartCell) {
161
- return;
162
- }
163
- const cellRange = _last(this.cellRanges);
164
- this.updateRangeEnd(cellRange, cellPosition);
165
- }
166
- updateRangeEnd(cellRange, cellPosition, silent) {
167
- silent = !!silent;
168
- const endColumn = cellPosition.column;
169
- const colsToAdd = this.calculateColumnsBetween(cellRange.startColumn, endColumn);
170
- if (!colsToAdd || this.isLastCellOfRange(cellRange, cellPosition)) {
171
- return;
172
- }
173
- cellRange.columns = colsToAdd;
174
- cellRange.endRow = { rowIndex: cellPosition.rowIndex, rowPinned: cellPosition.rowPinned };
175
- if (!silent) {
176
- this.dispatchChangedEvent(true, true, cellRange.id);
177
- }
178
- }
179
- refreshRangeStart(cellRange) {
180
- const { startColumn, columns } = cellRange;
181
- const moveColInCellRange = (colToMove, moveToFront) => {
182
- const otherCols = cellRange.columns.filter(col => col !== colToMove);
183
- if (colToMove) {
184
- cellRange.startColumn = colToMove;
185
- cellRange.columns = moveToFront ? [colToMove, ...otherCols] : [...otherCols, colToMove];
186
- }
187
- else {
188
- cellRange.columns = otherCols;
189
- }
190
- };
191
- const { left, right } = this.getRangeEdgeColumns(cellRange);
192
- const shouldMoveLeftCol = startColumn === columns[0] && startColumn !== left;
193
- if (shouldMoveLeftCol) {
194
- moveColInCellRange(left, true);
195
- return;
196
- }
197
- const shouldMoveRightCol = startColumn === _last(columns) && startColumn === right;
198
- if (shouldMoveRightCol) {
199
- moveColInCellRange(right, false);
200
- return;
201
- }
202
- }
203
- getRangeEdgeColumns(cellRange) {
204
- const allColumns = this.visibleColsService.getAllCols();
205
- const allIndices = cellRange.columns
206
- .map(c => allColumns.indexOf(c))
207
- .filter(i => i > -1)
208
- .sort((a, b) => a - b);
209
- return {
210
- left: allColumns[allIndices[0]],
211
- right: allColumns[_last(allIndices)]
212
- };
213
- }
214
- extendLatestRangeInDirection(key) {
215
- if (this.isEmpty() || !this.newestRangeStartCell) {
216
- return;
217
- }
218
- const lastRange = _last(this.cellRanges);
219
- const startCell = this.newestRangeStartCell;
220
- const firstCol = lastRange.columns[0];
221
- const lastCol = _last(lastRange.columns);
222
- const endCellIndex = lastRange.endRow.rowIndex;
223
- const endCellFloating = lastRange.endRow.rowPinned;
224
- const endCellColumn = startCell.column === firstCol ? lastCol : firstCol;
225
- const endCell = { column: endCellColumn, rowIndex: endCellIndex, rowPinned: endCellFloating };
226
- const newEndCell = this.cellNavigationService.getNextCellToFocus(key, endCell);
227
- if (!newEndCell) {
228
- return;
229
- }
230
- this.setCellRange({
231
- rowStartIndex: startCell.rowIndex,
232
- rowStartPinned: startCell.rowPinned,
233
- rowEndIndex: newEndCell.rowIndex,
234
- rowEndPinned: newEndCell.rowPinned,
235
- columnStart: startCell.column,
236
- columnEnd: newEndCell.column
237
- });
238
- return newEndCell;
239
- }
240
- setCellRange(params) {
241
- this.removeAllCellRanges(true);
242
- this.addCellRange(params);
243
- }
244
- setCellRanges(cellRanges) {
245
- if (_shallowCompare(this.cellRanges, cellRanges)) {
246
- return;
247
- }
248
- this.removeAllCellRanges(true);
249
- cellRanges.forEach(newRange => {
250
- if (newRange.columns && newRange.startRow) {
251
- this.newestRangeStartCell = {
252
- rowIndex: newRange.startRow.rowIndex,
253
- rowPinned: newRange.startRow.rowPinned,
254
- column: newRange.columns[0]
255
- };
256
- }
257
- this.cellRanges.push(newRange);
258
- });
259
- this.dispatchChangedEvent(false, true);
260
- }
261
- createCellRangeFromCellRangeParams(params) {
262
- let columns;
263
- if (params.columns) {
264
- columns = params.columns.map(c => this.columnModel.getColumnWithValidation(c)).filter(c => c);
265
- }
266
- else {
267
- const columnStart = this.columnModel.getColumnWithValidation(params.columnStart);
268
- const columnEnd = this.columnModel.getColumnWithValidation(params.columnEnd);
269
- if (!columnStart || !columnEnd) {
270
- return;
271
- }
272
- columns = this.calculateColumnsBetween(columnStart, columnEnd);
273
- }
274
- if (!columns) {
275
- return;
276
- }
277
- const startRow = params.rowStartIndex != null ? {
278
- rowIndex: params.rowStartIndex,
279
- rowPinned: params.rowStartPinned
280
- } : undefined;
281
- const endRow = params.rowEndIndex != null ? {
282
- rowIndex: params.rowEndIndex,
283
- rowPinned: params.rowEndPinned
284
- } : undefined;
285
- return {
286
- startRow: startRow,
287
- endRow: endRow,
288
- columns: columns,
289
- startColumn: columns[0]
290
- };
291
- }
292
- addCellRange(params) {
293
- const newRange = this.createCellRangeFromCellRangeParams(params);
294
- if (newRange) {
295
- this.cellRanges.push(newRange);
296
- this.dispatchChangedEvent(false, true, newRange.id);
297
- }
298
- }
299
- getCellRanges() {
300
- return this.cellRanges;
301
- }
302
- isEmpty() {
303
- return this.cellRanges.length === 0;
304
- }
305
- isMoreThanOneCell() {
306
- if (this.cellRanges.length === 0) {
307
- return false;
308
- }
309
- else if (this.cellRanges.length > 1) {
310
- return true;
311
- }
312
- const range = this.cellRanges[0];
313
- const startRow = this.getRangeStartRow(range);
314
- const endRow = this.getRangeEndRow(range);
315
- return startRow.rowPinned !== endRow.rowPinned ||
316
- startRow.rowIndex !== endRow.rowIndex ||
317
- range.columns.length !== 1;
318
- }
319
- removeAllCellRanges(silent) {
320
- if (this.isEmpty()) {
321
- return;
322
- }
323
- this.onDragStop();
324
- this.cellRanges.length = 0;
325
- if (!silent) {
326
- this.dispatchChangedEvent(false, true);
327
- }
328
- }
329
- onBodyScroll() {
330
- this.onDragging(this.lastMouseEvent);
331
- }
332
- isCellInAnyRange(cell) {
333
- return this.getCellRangeCount(cell) > 0;
334
- }
335
- isCellInSpecificRange(cell, range) {
336
- const columnInRange = range.columns !== null && _includes(range.columns, cell.column);
337
- const rowInRange = this.isRowInRange(cell.rowIndex, cell.rowPinned, range);
338
- return columnInRange && rowInRange;
339
- }
340
- isLastCellOfRange(cellRange, cell) {
341
- const { startRow, endRow } = cellRange;
342
- const lastRow = this.rowPositionUtils.before(startRow, endRow) ? endRow : startRow;
343
- const isLastRow = cell.rowIndex === lastRow.rowIndex && cell.rowPinned === lastRow.rowPinned;
344
- const rangeFirstIndexColumn = cellRange.columns[0];
345
- const rangeLastIndexColumn = _last(cellRange.columns);
346
- const lastRangeColumn = cellRange.startColumn === rangeFirstIndexColumn ? rangeLastIndexColumn : rangeFirstIndexColumn;
347
- const isLastColumn = cell.column === lastRangeColumn;
348
- return isLastColumn && isLastRow;
349
- }
350
- isBottomRightCell(cellRange, cell) {
351
- const allColumns = this.visibleColsService.getAllCols();
352
- const allPositions = cellRange.columns.map(c => allColumns.indexOf(c)).sort((a, b) => a - b);
353
- const { startRow, endRow } = cellRange;
354
- const lastRow = this.rowPositionUtils.before(startRow, endRow) ? endRow : startRow;
355
- const isRightColumn = allColumns.indexOf(cell.column) === _last(allPositions);
356
- const isLastRow = cell.rowIndex === lastRow.rowIndex && _makeNull(cell.rowPinned) === _makeNull(lastRow.rowPinned);
357
- return isRightColumn && isLastRow;
358
- }
359
- getCellRangeCount(cell) {
360
- if (this.isEmpty()) {
361
- return 0;
362
- }
363
- return this.cellRanges.filter(cellRange => this.isCellInSpecificRange(cell, cellRange)).length;
364
- }
365
- isRowInRange(rowIndex, floating, cellRange) {
366
- const firstRow = this.getRangeStartRow(cellRange);
367
- const lastRow = this.getRangeEndRow(cellRange);
368
- const thisRow = { rowIndex: rowIndex, rowPinned: floating };
369
- const equalsFirstRow = thisRow.rowIndex === firstRow.rowIndex && thisRow.rowPinned == firstRow.rowPinned;
370
- const equalsLastRow = thisRow.rowIndex === lastRow.rowIndex && thisRow.rowPinned == lastRow.rowPinned;
371
- if (equalsFirstRow || equalsLastRow) {
372
- return true;
373
- }
374
- const afterFirstRow = !this.rowPositionUtils.before(thisRow, firstRow);
375
- const beforeLastRow = this.rowPositionUtils.before(thisRow, lastRow);
376
- return afterFirstRow && beforeLastRow;
377
- }
378
- getDraggingRange() {
379
- return this.draggingRange;
380
- }
381
- onDragStart(mouseEvent) {
382
- const { shiftKey } = mouseEvent;
383
- const mouseCell = this.mouseEventService.getCellPositionForEvent(mouseEvent);
384
- if (_missing(mouseCell)) {
385
- return;
386
- }
387
- if (!shiftKey || _exists(_last(this.cellRanges).type)) {
388
- this.removeAllCellRanges(true);
389
- }
390
- this.dragging = true;
391
- this.draggingCell = mouseCell;
392
- this.lastMouseEvent = mouseEvent;
393
- if (!shiftKey) {
394
- this.newestRangeStartCell = mouseCell;
395
- }
396
- if (this.cellRanges.length > 0) {
397
- this.draggingRange = _last(this.cellRanges);
398
- }
399
- else {
400
- const mouseRowPosition = {
401
- rowIndex: mouseCell.rowIndex,
402
- rowPinned: mouseCell.rowPinned
403
- };
404
- this.draggingRange = {
405
- startRow: mouseRowPosition,
406
- endRow: mouseRowPosition,
407
- columns: [mouseCell.column],
408
- startColumn: this.newestRangeStartCell.column
409
- };
410
- this.cellRanges.push(this.draggingRange);
411
- }
412
- this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener);
413
- this.dispatchChangedEvent(true, false, this.draggingRange.id);
414
- }
415
- onDragging(mouseEvent) {
416
- if (!this.dragging || !mouseEvent) {
417
- return;
418
- }
419
- this.lastMouseEvent = mouseEvent;
420
- const cellPosition = this.mouseEventService.getCellPositionForEvent(mouseEvent);
421
- const isMouseAndStartInPinned = (position) => cellPosition && cellPosition.rowPinned === position && this.newestRangeStartCell.rowPinned === position;
422
- const skipVerticalScroll = isMouseAndStartInPinned('top') || isMouseAndStartInPinned('bottom');
423
- this.autoScrollService.check(mouseEvent, skipVerticalScroll);
424
- if (!cellPosition ||
425
- !this.draggingCell ||
426
- this.cellPositionEquals(this.draggingCell, cellPosition)) {
427
- return;
428
- }
429
- const columns = this.calculateColumnsBetween(this.newestRangeStartCell.column, cellPosition.column);
430
- if (!columns) {
431
- return;
432
- }
433
- this.draggingCell = cellPosition;
434
- this.draggingRange.endRow = {
435
- rowIndex: cellPosition.rowIndex,
436
- rowPinned: cellPosition.rowPinned
437
- };
438
- this.draggingRange.columns = columns;
439
- this.dispatchChangedEvent(false, false, this.draggingRange.id);
440
- this.focusCell(cellPosition);
441
- }
442
- focusCell(cellPosition) {
443
- const cellFocused = this.focusService.isCellFocused(cellPosition);
444
- if (!cellFocused) {
445
- this.focusService.setFocusedCell(cellPosition.rowIndex, cellPosition.column, cellPosition.rowPinned, true);
446
- }
447
- }
448
- onDragStop() {
449
- if (!this.dragging) {
450
- return;
451
- }
452
- const { id } = this.draggingRange;
453
- this.autoScrollService.ensureCleared();
454
- this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener);
455
- this.lastMouseEvent = null;
456
- this.dragging = false;
457
- this.draggingRange = undefined;
458
- this.draggingCell = undefined;
459
- this.dispatchChangedEvent(false, true, id);
460
- }
461
- dispatchChangedEvent(started, finished, id) {
462
- this.cellRanges.map((cellRange) => {
463
- let currentRow = this.getRangeStartRow(cellRange);
464
- const lastRow = this.getRangeEndRow(cellRange);
465
- const nodesToBeSelected = [];
466
- while (true) {
467
- const finishedAllRows = _missing(currentRow) || !currentRow || this.rowPositionUtils.before(lastRow, currentRow);
468
- if (finishedAllRows || !currentRow || !cellRange.columns) {
469
- break;
470
- }
471
- const rowNode = this.rowPositionUtils.getRowNode(currentRow);
472
- if (!rowNode) {
473
- break;
474
- }
475
- if (!rowNode.isSelected()) {
476
- rowNode.setSelected(true);
477
- }
478
- nodesToBeSelected.push(rowNode.data);
479
- currentRow = this.cellNavigationService.getRowBelow(currentRow);
480
- }
481
- this.gridApi.getSelectedNodes().forEach((node) => {
482
- if (!nodesToBeSelected.some(nodeToBeSelected => node.data === nodeToBeSelected)) {
483
- node.setSelected(false);
484
- }
485
- });
486
- });
487
- const eventCellSelection = {
488
- type: "cellSelectionChanged",
489
- started: started,
490
- finished: finished,
491
- id: id,
492
- };
493
- this.eventService.dispatchEvent(eventCellSelection);
494
- const eventRangeSelection = {
495
- type: "rangeSelectionChanged",
496
- started: started,
497
- finished: finished,
498
- id: id,
499
- };
500
- this.eventService.dispatchEvent(eventRangeSelection);
501
- }
502
- calculateColumnsBetween(columnFrom, columnTo) {
503
- const allColumns = this.visibleColsService.getAllCols();
504
- const isSameColumn = columnFrom === columnTo;
505
- const fromIndex = allColumns.indexOf(columnFrom);
506
- if (fromIndex < 0) {
507
- console.warn(`ag-Grid: column ${columnFrom.getId()} is not visible`);
508
- return undefined;
509
- }
510
- const toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);
511
- if (toIndex < 0) {
512
- console.warn(`ag-Grid: column ${columnTo.getId()} is not visible`);
513
- return undefined;
514
- }
515
- if (isSameColumn) {
516
- return [columnFrom];
517
- }
518
- const firstIndex = Math.min(fromIndex, toIndex);
519
- const lastIndex = firstIndex === fromIndex ? toIndex : fromIndex;
520
- const columns = [];
521
- for (let i = firstIndex; i <= lastIndex; i++) {
522
- columns.push(allColumns[i]);
523
- }
524
- return columns;
525
- }
526
- }
527
- //# sourceMappingURL=rangeSelector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"columnUtils.js","sourceRoot":"","sources":["../../../../components/grid/columnUtils.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,WAAW;IACpB,MAAM,CAAC,iBAAiB,CAAC,YAA0B,EAAE,iBAA8C;QAC/F,MAAM,YAAY,GAAG,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAA,EAAE;YAClD,OAAO;gBACH,OAAO,EAAE,SAAS,CAAC,OAAO;gBAC1B,KAAK,EAAE,SAAS,CAAC,KAAK;gBACtB,IAAI,EAAE,SAAS,CAAC,WAAW;gBAC3B,IAAI,EAAE,SAAS,CAAC,WAAW;gBAC3B,MAAM,EAAE,SAAS,CAAC,aAAa;gBAC/B,KAAK,EAAE,SAAS,CAAC,YAAY;gBAC7B,UAAU,EAAE,SAAS,CAAC,iBAAiB;gBACvC,QAAQ,EAAE,SAAS,CAAC,eAAe;gBACnC,aAAa,EAAE,SAAS,CAAC,oBAAoB;gBAC7C,IAAI,EAAE,SAAS,CAAC,WAAW;gBAC3B,SAAS,EAAE,SAAS,CAAC,gBAAgB;gBACrC,KAAK,EAAE,SAAS,CAAC,YAAY;aACjB,CAAC;QACrB,CAAC,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,CAAC,kBAAkB,EAAE,KAAK,EAAC,EAAE;YAC9C,MAAM,kBAAkB,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAA,EAAE,CAAC,WAAW,CAAC,KAAK,KAAK,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC3G,IAAG,CAAC,kBAAkB,EAAE,CAAC;gBACrB,YAAY,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,kBAAkB,CAAC,CAAC;YACtD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["import {ColDef, ColumnState} from \"ag-grid-community\";\r\nimport {DataGridColDef} from \"./dataGrid\";\r\n\r\nexport class ColumnUtils {\r\n static mergeColumnsState(columnsState:ColumnState[], columnsDefinition: ColDef[] | DataGridColDef[]) {\r\n const defaultState = columnsDefinition.map(columnDef=> {\r\n return {\r\n aggFunc: columnDef.aggFunc,\r\n colId: columnDef.colId,\r\n flex: columnDef.initialFlex,\r\n hide: columnDef.initialHide,\r\n pinned: columnDef.initialPinned,\r\n pivot: columnDef.initialPivot,\r\n pivotIndex: columnDef.initialPivotIndex,\r\n rowGroup: columnDef.initialRowGroup,\r\n rowGroupIndex: columnDef.initialRowGroupIndex,\r\n sort: columnDef.initialSort,\r\n sortIndex: columnDef.initialSortIndex,\r\n width: columnDef.initialWidth,\r\n } as ColumnState;\r\n });\r\n defaultState.forEach((defaultColumnState, index)=>{\r\n const definedColumnState = columnsState.find(columnState=> columnState.colId === defaultColumnState.colId);\r\n if(!definedColumnState) {\r\n columnsState.splice(index, 0, defaultColumnState);\r\n }\r\n });\r\n }\r\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"progressPopup.js","sourceRoot":"","sources":["../../../../../components/grid/export/progressPopup.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,YAAY,EAAE,QAAQ,EAAC,MAAM,MAAM,CAAC;AAC5C,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAWpC,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAChF,YAAY,KAAiC;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG;YACT,OAAO,EAAE,CAAC;SACb,CAAC;IACN,CAAC;IAED,iBAAiB;QACb,IAAI,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;IAED,oBAAoB;QAChB,IAAI,IAAI,CAAC,KAAK,CAAC,qBAAqB,EAAE,CAAC;YACnC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED,YAAY,CAAC,OAAe;QACxB,IAAI,CAAC,QAAQ,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IACtC,CAAC;IAED,MAAM;QACF,MAAM,KAAmC,IAAI,CAAC,KAAK,EAA7C,EAAC,qBAAqB,OAAuB,EAAlB,IAAI,cAA/B,yBAAgC,CAAa,CAAC;QACpD,OAAO,oBAAC,QAAQ,kBAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,IAAM,IAAI,EAAG,CAAC;IAC9D,CAAC;CACJ;AAED,MAAM,CAAC,OAAO,OAAO,aAAa;IAM9B,YAAY,KAAa;QAHzB,iBAAY,GAAuC,IAAI,CAAC;QACxD,oBAAe,GAAY,KAAK,CAAC;QAG7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,uBAAuB;QACzB,YAAY,CAAC,IAAI,CAAC;YACd,OAAO,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAC,CAAC,CAAC;YACjH,GAAG,EAAE,QAAQ;YACb,WAAW,EAAE,oBAAC,WAAW,IAAC,qBAAqB,EAAE,CAAC,YAAY,EAAE,EAAE;oBAC9D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;gBACrC,CAAC,GAAG;YACJ,IAAI,EAAE,oBAAC,eAAe,OAAE;YACxB,QAAQ,EAAE,CAAC;SACd,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,cAAc,CAAC,WAAmB;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,eAAuB;QAChC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YACxB,MAAM,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACzC,CAAC;QACD,IAAI,eAAe,KAAK,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;QACD,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QACvC,CAAC;IACL,CAAC;IAED,KAAK;QACD,YAAY,CAAC,OAAO,CAAC;YACjB,OAAO,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAC,CAAC,CAAC;YACjH,GAAG,EAAE,QAAQ;YACb,WAAW,EAAE,oBAAC,QAAQ,IAAC,OAAO,EAAE,GAAG,GAAG;SACzC,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,KAAK;QACD,YAAY,CAAC,KAAK,CAAC;YACf,OAAO,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAC,CAAC,CAAC;YACjH,GAAG,EAAE,QAAQ;YACb,WAAW,EAAE,oBAAC,QAAQ,IAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,GAAG;SAC9D,CAAC,CAAC;QACH,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,EAAU;QACZ,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC;CACJ","sourcesContent":["import React from \"react\";\r\nimport {LoadingOutlined} from \"@ant-design/icons\";\r\nimport {notification, Progress} from \"antd\";\r\nimport i18n from \"d2core/i18n/i18n\";\r\nimport {ProgressProps} from \"antd/lib/progress/progress\";\r\n\r\ninterface ProgressBarProps extends ProgressProps {\r\n registerUpdateHandler(updateHandler: ((percent: number) => void) | null): void\r\n}\r\n\r\ninterface ProgressBarState {\r\n percent: number\r\n}\r\n\r\nexport class ProgressBar extends React.Component<ProgressBarProps, ProgressBarState> {\r\n constructor(props: Readonly<ProgressBarProps>) {\r\n super(props);\r\n this.state = {\r\n percent: 0,\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n if (this.props.registerUpdateHandler) {\r\n this.props.registerUpdateHandler(this.makeProgress.bind(this));\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n if (this.props.registerUpdateHandler) {\r\n this.props.registerUpdateHandler(null);\r\n }\r\n }\r\n\r\n makeProgress(percent: number) {\r\n this.setState({percent: percent});\r\n }\r\n\r\n render() {\r\n const {registerUpdateHandler, ...rest} = this.props;\r\n return <Progress percent={this.state.percent} {...rest}/>;\r\n }\r\n}\r\n\r\nexport default class ProgressPopup {\r\n title: string;\r\n recordCount?: number;\r\n makeProgress: ((percent: number) => void) | null = null;\r\n progressVisible: boolean = false;\r\n\r\n constructor(title: string) {\r\n this.title = title;\r\n }\r\n\r\n async initializeProgressPopup() {\r\n notification.open({\r\n message: this.title + (this.recordCount === undefined ? \"\" : i18n(\" (%{n} records)\", {n: \"\" + this.recordCount})),\r\n key: \"export\",\r\n description: <ProgressBar registerUpdateHandler={(makeProgress) => {\r\n this.makeProgress = makeProgress;\r\n }}/>,\r\n icon: <LoadingOutlined/>,\r\n duration: 0\r\n });\r\n this.progressVisible = true;\r\n await this.sleep(100);\r\n }\r\n\r\n setRecordCount(recordCount: number) {\r\n this.recordCount = recordCount;\r\n }\r\n\r\n async update(progressPercent: number) {\r\n if (!this.progressVisible) {\r\n await this.initializeProgressPopup();\r\n }\r\n if (progressPercent === 100) {\r\n this.close();\r\n }\r\n if (this.makeProgress) {\r\n this.makeProgress(progressPercent);\r\n }\r\n }\r\n\r\n close() {\r\n notification.success({\r\n message: this.title + (this.recordCount === undefined ? \"\" : i18n(\" (%{n} records)\", {n: \"\" + this.recordCount})),\r\n key: \"export\",\r\n description: <Progress percent={100}/>\r\n });\r\n this.progressVisible = false;\r\n }\r\n\r\n error() {\r\n notification.error({\r\n message: this.title + (this.recordCount === undefined ? \"\" : i18n(\" (%{n} records)\", {n: \"\" + this.recordCount})),\r\n key: \"export\",\r\n description: <Progress status={\"exception\"} percent={100}/>\r\n });\r\n this.progressVisible = false;\r\n }\r\n\r\n sleep(ms: number): Promise<void> {\r\n return new Promise(resolve => setTimeout(resolve, ms));\r\n }\r\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"undoIcon.js","sourceRoot":"","sources":["../../../../components/icons/undoIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,sCAAsC,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAgC,EAAE,EAAE,CAAC,CACnD,oBAAC,IAAI,IAAC,SAAS,EAAE,GAAG,EAAE,CAAC,6BAAK,mBAAmB,EAAC,eAAe,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAC7E,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1C,8BACI,CAAC,EAAC,yYAAyY,EAC3Y,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAC,GAAG,CACrD,GAAG,CAAC,CAAC;AAEf,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAE,EAAE,CAAC,CACvD,oBAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAC1F,CAAA;AAED,OAAO,EAAC,QAAQ,EAAE,YAAY,EAAC,CAAC","sourcesContent":["import React, {CSSProperties} from \"react\";\r\nimport Icon from \"@ant-design/icons/es/components/Icon\";\r\n\r\nconst UndoIcon = (props: { style?: CSSProperties }) => (\r\n <Icon component={() => <svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 14 14\" width={14} height={14}\r\n style={props.style}>\r\n <path\r\n d=\"m 8.327691,3.3283097 c 2.800837,0 5.07135,2.3743226 5.07135,5.303197 0,2.9288733 -2.270513,5.3031963 -5.07135,5.3031963 H 4.946796 v -0.883866 h 3.380895 c 2.334032,0 4.226127,-1.978602 4.226127,-4.4193303 0,-2.4407292 -1.892095,-4.4193308 -4.226127,-4.4193308 H 2.338436 L 4.904535,6.8955935 4.306962,7.5204869 0.720677,3.7702428 4.306962,0.01999879 4.904535,0.64489216 2.338436,3.3283097 Z\"\r\n style={{display: \"inline\", fill: \"currentColor\"}}/>\r\n </svg>}/>);\r\n\r\nconst UndoMenuIcon = (props: { style?: CSSProperties }) => (\r\n <UndoIcon style={Object.assign({marginRight: 6, width: 12, height: 12}, props.style)}/>\r\n)\r\n\r\nexport {UndoIcon, UndoMenuIcon};"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"draftUtils.js","sourceRoot":"","sources":["../../../../components/input/draftUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAA6C,MAAM,UAAU,CAAA;AACnF,OAAO,EAAC,aAAa,EAAuB,MAAM,eAAe,CAAA;AACjE,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,cAAc,GAAyB;IACzC,WAAW,EAAE,CAAC,KAA2B,EAAE,EAAE;QACzC,IAAK,KAAgB,KAAI,MAAM,EAAE,CAAC;YAC9B,OAAO,8BAAM,SAAS,EAAE,wBAAwB,GAAI,CAAC;QACzD,CAAC;QACD,KAAK,CAAC;QAEN,OAAO;IACX,CAAC;IAED,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;QACnB,IAAK,KAAa,CAAC,IAAI,KAAK,UAAU,CAAC,UAAU,EAAE,CAAC;YAChD,OAAO,uCAAa,CAAA;QACxB,CAAC;QAGD,IAAK,KAAa,CAAC,IAAI,KAAK,UAAU,CAAC,MAAM,EAAE,CAAC;YAC5C,OAAO;gBACH,KAAK,EAAE,EAAE;gBACT,GAAG,EAAE,EAAE;aACV,CAAA;QACL,CAAC;QAED,OAAO,IAAI,CAAA;IACf,CAAC;IAED,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,EAAE;QACnC,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,CAAC,IAAI,EAAE,CAAC;YACnC,OAAO,2BAAG,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,IAAG,YAAY,CAAK,CAAA;QACvD,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,CAAC,KAAK,EAAE,CAAC;YACpC,OAAO,6BAAK,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;QAC7D,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW,CAAC,eAAe,EAAE,CAAC;YAC9C,OAAO,+BAAK,CAAA;QAChB,CAAC;QAED,OAAO,YAAY,CAAA;IACvB,CAAC;CACJ,CAAA;AAGD,MAAM,kBAAkB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,UAAU;IAE3B,MAAM,CAAC,MAAM,CAAC,GAAyB;QACnC,IAAI,GAAG,EAAE,CAAC;YACN,OAAO,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QACnD,CAAC;aAAM,CAAC;YACJ,OAAO,EAAE,CAAC;QACd,CAAC;IACL,CAAC;CAEJ","sourcesContent":["import {convertFromRaw, DraftInlineStyleType, RawDraftContentState} from \"draft-js\"\r\nimport {convertToHTML, IConvertToHTMLConfig} from \"draft-convert\"\r\nimport {BLOCK_TYPE, ENTITY_TYPE} from \"./draftail\"\r\nimport React from \"react\";\r\n\r\nconst exporterConfig: IConvertToHTMLConfig = {\r\n styleToHTML: (style: DraftInlineStyleType) => {\r\n if ((style as string)=== 'MARK') {\r\n return <span className={\"marked-message-content\"} />;\r\n }\r\n style;\r\n // @ts-ignore\r\n return;\r\n },\r\n\r\n blockToHTML: (block) => {\r\n if ((block as any).type === BLOCK_TYPE.BLOCKQUOTE) {\r\n return <blockquote/>\r\n }\r\n\r\n // Discard atomic blocks, as they get converted based on their entity.\r\n if ((block as any).type === BLOCK_TYPE.ATOMIC) {\r\n return {\r\n start: \"\",\r\n end: \"\",\r\n }\r\n }\r\n\r\n return null\r\n },\r\n\r\n entityToHTML: (entity, originalText) => {\r\n if (entity.type === ENTITY_TYPE.LINK) {\r\n return <a href={entity.data.url}>{originalText}</a>\r\n }\r\n\r\n if (entity.type === ENTITY_TYPE.IMAGE) {\r\n return <img src={entity.data.src} alt={entity.data.alt}/>\r\n }\r\n\r\n if (entity.type === ENTITY_TYPE.HORIZONTAL_RULE) {\r\n return <hr/>\r\n }\r\n\r\n return originalText\r\n },\r\n}\r\n\r\n\r\nconst conversionFunction = convertToHTML(exporterConfig);\r\n\r\nexport default class DraftUtils {\r\n\r\n static toHTML(raw: RawDraftContentState): string {\r\n if (raw) {\r\n return conversionFunction(convertFromRaw(raw));\r\n } else {\r\n return \"\";\r\n }\r\n }\r\n\r\n}"]}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from "draftail";
2
- //# sourceMappingURL=draftail.js.map