@talxis/base-controls 1.2510.1 → 1.2512.2

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 (502) hide show
  1. package/dist/components/DatasetControl/DatasetControl.d.ts +2 -2
  2. package/dist/components/DatasetControl/DatasetControl.js +78 -57
  3. package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
  4. package/dist/components/DatasetControl/DatasetControlModel.d.ts +16 -0
  5. package/dist/components/DatasetControl/DatasetControlModel.js +32 -0
  6. package/dist/components/DatasetControl/DatasetControlModel.js.map +1 -0
  7. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.d.ts +3 -0
  8. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js +166 -0
  9. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js.map +1 -0
  10. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.d.ts +15 -0
  11. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js +59 -0
  12. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js.map +1 -0
  13. package/dist/components/DatasetControl/Filtering/interfaces.d.ts +31 -0
  14. package/dist/components/DatasetControl/Filtering/styles.d.ts +16 -0
  15. package/dist/components/DatasetControl/Filtering/styles.js +23 -0
  16. package/dist/components/DatasetControl/Filtering/styles.js.map +1 -0
  17. package/dist/components/DatasetControl/Filtering/translations.d.ts +154 -0
  18. package/dist/components/DatasetControl/Filtering/translations.js +43 -0
  19. package/dist/components/DatasetControl/Filtering/translations.js.map +1 -0
  20. package/dist/components/DatasetControl/Header/Header.d.ts +5 -0
  21. package/dist/components/DatasetControl/Header/Header.js +79 -0
  22. package/dist/components/DatasetControl/Header/Header.js.map +1 -0
  23. package/dist/components/DatasetControl/Header/styles.d.ts +19 -0
  24. package/dist/components/DatasetControl/Header/styles.js +26 -0
  25. package/dist/components/DatasetControl/Header/styles.js.map +1 -0
  26. package/dist/components/DatasetControl/Pagination/Pagination.d.ts +5 -0
  27. package/dist/components/DatasetControl/Pagination/Pagination.js +93 -0
  28. package/dist/components/DatasetControl/Pagination/Pagination.js.map +1 -0
  29. package/dist/components/DatasetControl/Pagination/PaginationModel.d.ts +10 -0
  30. package/dist/components/DatasetControl/Pagination/PaginationModel.js +45 -0
  31. package/dist/components/DatasetControl/Pagination/PaginationModel.js.map +1 -0
  32. package/dist/components/DatasetControl/Pagination/styles.d.ts +23 -0
  33. package/dist/components/DatasetControl/Pagination/styles.js +29 -0
  34. package/dist/components/DatasetControl/Pagination/styles.js.map +1 -0
  35. package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +4 -12
  36. package/dist/components/DatasetControl/QuickFind/QuickFind.js +37 -32
  37. package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -1
  38. package/dist/components/DatasetControl/QuickFind/styles.d.ts +1 -1
  39. package/dist/components/DatasetControl/QuickFind/styles.js +2 -2
  40. package/dist/components/DatasetControl/QuickFind/styles.js.map +1 -1
  41. package/dist/components/DatasetControl/index.d.ts +0 -1
  42. package/dist/components/DatasetControl/index.js +0 -2
  43. package/dist/components/DatasetControl/index.js.map +1 -1
  44. package/dist/components/DatasetControl/interfaces.d.ts +68 -23
  45. package/dist/components/DatasetControl/styles.d.ts +4 -11
  46. package/dist/components/DatasetControl/styles.js +5 -11
  47. package/dist/components/DatasetControl/styles.js.map +1 -1
  48. package/dist/components/DatasetControl/translations.d.ts +44 -0
  49. package/dist/components/DatasetControl/translations.js +15 -1
  50. package/dist/components/DatasetControl/translations.js.map +1 -1
  51. package/dist/components/DatasetControl/useModel.d.ts +4 -0
  52. package/dist/components/DatasetControl/useModel.js +9 -0
  53. package/dist/components/DatasetControl/useModel.js.map +1 -0
  54. package/dist/components/Grid/{core/components/Cell → cells/cell}/Cell.d.ts +3 -3
  55. package/dist/components/Grid/cells/cell/Cell.js +231 -0
  56. package/dist/components/Grid/cells/cell/Cell.js.map +1 -0
  57. package/dist/components/Grid/cells/cell/content/CellContent.d.ts +3 -0
  58. package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/CellContent.js +44 -35
  59. package/dist/components/Grid/cells/cell/content/CellContent.js.map +1 -0
  60. package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/styles.d.ts +4 -1
  61. package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/styles.js +8 -3
  62. package/dist/components/Grid/cells/cell/content/styles.js.map +1 -0
  63. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/Notifications.d.ts +1 -1
  64. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/Notifications.js +5 -5
  65. package/dist/components/Grid/cells/cell/notifications/Notifications.js.map +1 -0
  66. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/styles.js +1 -1
  67. package/dist/components/Grid/cells/cell/notifications/styles.js.map +1 -0
  68. package/dist/components/Grid/{core/components/Cell → cells/cell}/styles.d.ts +12 -6
  69. package/dist/components/Grid/{core/components/Cell → cells/cell}/styles.js +14 -20
  70. package/dist/components/Grid/cells/cell/styles.js.map +1 -0
  71. package/dist/components/Grid/cells/selection-cell/SelectionCell.d.ts +8 -0
  72. package/dist/components/Grid/cells/selection-cell/SelectionCell.js +78 -0
  73. package/dist/components/Grid/cells/selection-cell/SelectionCell.js.map +1 -0
  74. package/dist/components/Grid/cells/selection-cell/SelectionCellModel.d.ts +7 -0
  75. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/RecordSaveErrorCallout.d.ts +11 -0
  76. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/RecordSaveErrorCallout.js +19 -0
  77. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/RecordSaveErrorCallout.js.map +1 -0
  78. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/styles.d.ts +17 -0
  79. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/styles.js +24 -0
  80. package/dist/components/Grid/cells/selection-cell/record-save-error-callout/styles.js.map +1 -0
  81. package/dist/components/Grid/cells/selection-cell/styles.d.ts +27 -0
  82. package/dist/components/Grid/cells/selection-cell/styles.js +33 -0
  83. package/dist/components/Grid/cells/selection-cell/styles.js.map +1 -0
  84. package/dist/components/Grid/{core/components/ColumnHeader → column-headers/column-header}/ColumnHeader.d.ts +1 -1
  85. package/dist/components/Grid/column-headers/column-header/ColumnHeader.js +88 -0
  86. package/dist/components/Grid/column-headers/column-header/ColumnHeader.js.map +1 -0
  87. package/dist/components/Grid/{sorting/components/SortingContextualMenu/SortingContextualMenu.d.ts → column-headers/column-header/ColumnHeaderContextualMenu.d.ts} +3 -3
  88. package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js +115 -0
  89. package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js.map +1 -0
  90. package/dist/components/Grid/{filtering/components/FilterCallout → column-headers/column-header}/FilterCallout.d.ts +1 -1
  91. package/dist/components/Grid/column-headers/column-header/FilterCallout.js +107 -0
  92. package/dist/components/Grid/column-headers/column-header/FilterCallout.js.map +1 -0
  93. package/dist/components/Grid/column-headers/column-header/styles.d.ts +84 -0
  94. package/dist/components/Grid/{filtering/components/FilterCallout → column-headers/column-header}/styles.js +20 -11
  95. package/dist/components/Grid/column-headers/column-header/styles.js.map +1 -0
  96. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.d.ts +2 -0
  97. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js +45 -0
  98. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js.map +1 -0
  99. package/dist/components/Grid/{core/components/ColumnHeader/components/GlobalCheckbox → column-headers/record-selection-checkbox}/styles.d.ts +1 -3
  100. package/dist/components/Grid/{core/components/ColumnHeader/components/GlobalCheckbox → column-headers/record-selection-checkbox}/styles.js +1 -2
  101. package/dist/components/Grid/column-headers/record-selection-checkbox/styles.js.map +1 -0
  102. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.d.ts +6 -0
  103. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js +15 -0
  104. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js.map +1 -0
  105. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.d.ts +6 -0
  106. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js +13 -0
  107. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js.map +1 -0
  108. package/dist/components/Grid/{core/components/AgGrid/AgGrid.d.ts → grid/Grid.d.ts} +2 -2
  109. package/dist/components/Grid/grid/Grid.js +64 -0
  110. package/dist/components/Grid/grid/Grid.js.map +1 -0
  111. package/dist/components/Grid/grid/GridContext.d.ts +3 -0
  112. package/dist/components/Grid/grid/GridContext.js.map +1 -0
  113. package/dist/components/Grid/grid/GridModel.d.ts +110 -0
  114. package/dist/components/Grid/grid/GridModel.js +767 -0
  115. package/dist/components/Grid/grid/GridModel.js.map +1 -0
  116. package/dist/components/Grid/{core/components/AgGrid/model/Comparator.d.ts → grid/ValueComparator.d.ts} +1 -1
  117. package/dist/components/Grid/{core/components/AgGrid/model/Comparator.js → grid/ValueComparator.js} +7 -1
  118. package/dist/components/Grid/grid/ValueComparator.js.map +1 -0
  119. package/dist/components/Grid/{core/components/AgGrid/context.d.ts → grid/ag-grid/AgGridContext.d.ts} +2 -2
  120. package/dist/components/Grid/{core/components/AgGrid/context.js → grid/ag-grid/AgGridContext.js} +1 -1
  121. package/dist/components/Grid/grid/ag-grid/AgGridContext.js.map +1 -0
  122. package/dist/components/Grid/grid/ag-grid/AgGridModel.d.ts +90 -0
  123. package/dist/components/Grid/grid/ag-grid/AgGridModel.js +657 -0
  124. package/dist/components/Grid/grid/ag-grid/AgGridModel.js.map +1 -0
  125. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.d.ts +7 -0
  126. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js +38 -0
  127. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js.map +1 -0
  128. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.d.ts +2 -0
  129. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js +9 -0
  130. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js.map +1 -0
  131. package/dist/components/Grid/{core/components/AgGrid → grid}/styles.d.ts +24 -4
  132. package/dist/components/Grid/{core/components/AgGrid → grid}/styles.js +37 -6
  133. package/dist/components/Grid/grid/styles.js.map +1 -0
  134. package/dist/components/Grid/grid/useGridInstance.d.ts +2 -0
  135. package/dist/components/Grid/{core/hooks → grid}/useGridInstance.js +2 -2
  136. package/dist/components/Grid/grid/useGridInstance.js.map +1 -0
  137. package/dist/components/Grid/index.d.ts +1 -1
  138. package/dist/components/Grid/index.js +1 -1
  139. package/dist/components/Grid/interfaces.d.ts +10 -1
  140. package/dist/components/Grid/loading/full-row/FullRowLoading.d.ts +3 -0
  141. package/dist/components/Grid/loading/full-row/FullRowLoading.js +33 -0
  142. package/dist/components/Grid/loading/full-row/FullRowLoading.js.map +1 -0
  143. package/dist/components/Grid/loading/full-row/styles.d.ts +9 -0
  144. package/dist/components/Grid/loading/full-row/styles.js +16 -0
  145. package/dist/components/Grid/loading/full-row/styles.js.map +1 -0
  146. package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js +13 -0
  147. package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js.map +1 -0
  148. package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay → overlays/empty-records}/styles.d.ts +1 -1
  149. package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay → overlays/empty-records}/styles.js +1 -1
  150. package/dist/components/Grid/overlays/empty-records/styles.js.map +1 -0
  151. package/dist/components/Grid/overlays/loading/LoadingOverlay.js.map +1 -0
  152. package/dist/components/Grid/translations.d.ts +21 -177
  153. package/dist/components/Grid/translations.js +6 -48
  154. package/dist/components/Grid/translations.js.map +1 -1
  155. package/dist/components/GridCellRenderer/GridCellRenderer.js +99 -282
  156. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -1
  157. package/dist/components/GridCellRenderer/GridCellRendererModel.d.ts +51 -0
  158. package/dist/components/GridCellRenderer/GridCellRendererModel.js +211 -0
  159. package/dist/components/GridCellRenderer/GridCellRendererModel.js.map +1 -0
  160. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.d.ts +9 -0
  161. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js +53 -0
  162. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js.map +1 -0
  163. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.d.ts +20 -0
  164. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js +29 -0
  165. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js.map +1 -0
  166. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.d.ts +7 -0
  167. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js +76 -0
  168. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js.map +1 -0
  169. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.d.ts +18 -0
  170. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js +25 -0
  171. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js.map +1 -0
  172. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.d.ts +3 -0
  173. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js +52 -0
  174. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js.map +1 -0
  175. package/dist/components/GridCellRenderer/ValueRenderer/styles.d.ts +1666 -0
  176. package/dist/components/GridCellRenderer/ValueRenderer/styles.js +31 -0
  177. package/dist/components/GridCellRenderer/ValueRenderer/styles.js.map +1 -0
  178. package/dist/components/GridCellRenderer/interfaces.d.ts +53 -42
  179. package/dist/components/GridCellRenderer/properties/Email.d.ts +5 -0
  180. package/dist/components/GridCellRenderer/properties/Email.js +15 -0
  181. package/dist/components/GridCellRenderer/properties/Email.js.map +1 -0
  182. package/dist/components/GridCellRenderer/properties/File.d.ts +19 -0
  183. package/dist/components/GridCellRenderer/properties/File.js +99 -0
  184. package/dist/components/GridCellRenderer/properties/File.js.map +1 -0
  185. package/dist/components/GridCellRenderer/properties/Image.d.ts +4 -0
  186. package/dist/components/GridCellRenderer/properties/Image.js +15 -0
  187. package/dist/components/GridCellRenderer/properties/Image.js.map +1 -0
  188. package/dist/components/GridCellRenderer/properties/Lookup.d.ts +5 -0
  189. package/dist/components/GridCellRenderer/properties/Lookup.js +16 -0
  190. package/dist/components/GridCellRenderer/properties/Lookup.js.map +1 -0
  191. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.d.ts +5 -0
  192. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js +11 -0
  193. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js.map +1 -0
  194. package/dist/components/GridCellRenderer/properties/MultilineText.d.ts +4 -0
  195. package/dist/components/GridCellRenderer/properties/MultilineText.js +10 -0
  196. package/dist/components/GridCellRenderer/properties/MultilineText.js.map +1 -0
  197. package/dist/components/GridCellRenderer/properties/OptionSet.d.ts +5 -0
  198. package/dist/components/GridCellRenderer/properties/OptionSet.js +11 -0
  199. package/dist/components/GridCellRenderer/properties/OptionSet.js.map +1 -0
  200. package/dist/components/GridCellRenderer/properties/OptionSetBase.d.ts +7 -0
  201. package/dist/components/GridCellRenderer/properties/OptionSetBase.js +19 -0
  202. package/dist/components/GridCellRenderer/properties/OptionSetBase.js.map +1 -0
  203. package/dist/components/GridCellRenderer/properties/Phone.d.ts +9 -0
  204. package/dist/components/GridCellRenderer/properties/Phone.js +15 -0
  205. package/dist/components/GridCellRenderer/properties/Phone.js.map +1 -0
  206. package/dist/components/GridCellRenderer/properties/Property.d.ts +19 -0
  207. package/dist/components/GridCellRenderer/properties/Property.js +59 -0
  208. package/dist/components/GridCellRenderer/properties/Property.js.map +1 -0
  209. package/dist/components/GridCellRenderer/properties/TwoOptions.d.ts +5 -0
  210. package/dist/components/GridCellRenderer/properties/TwoOptions.js +11 -0
  211. package/dist/components/GridCellRenderer/properties/TwoOptions.js.map +1 -0
  212. package/dist/components/GridCellRenderer/properties/Url.d.ts +5 -0
  213. package/dist/components/GridCellRenderer/properties/Url.js +15 -0
  214. package/dist/components/GridCellRenderer/properties/Url.js.map +1 -0
  215. package/dist/components/GridCellRenderer/styles.d.ts +34 -60
  216. package/dist/components/GridCellRenderer/styles.js +69 -77
  217. package/dist/components/GridCellRenderer/styles.js.map +1 -1
  218. package/dist/components/GridCellRenderer/translations.d.ts +1 -1
  219. package/dist/components/GridCellRenderer/translations.js +30 -32
  220. package/dist/components/GridCellRenderer/translations.js.map +1 -1
  221. package/dist/components/GridCellRenderer/useModel.d.ts +4 -0
  222. package/dist/components/GridCellRenderer/useModel.js +9 -0
  223. package/dist/components/GridCellRenderer/useModel.js.map +1 -0
  224. package/dist/components/GridColumnHeader/GridColumnHeader.d.ts +3 -0
  225. package/dist/components/GridColumnHeader/GridColumnHeader.js +134 -0
  226. package/dist/components/GridColumnHeader/GridColumnHeader.js.map +1 -0
  227. package/dist/components/GridColumnHeader/GridColumnHeaderModel.d.ts +26 -0
  228. package/dist/components/GridColumnHeader/GridColumnHeaderModel.js +85 -0
  229. package/dist/components/GridColumnHeader/GridColumnHeaderModel.js.map +1 -0
  230. package/dist/components/GridColumnHeader/interfaces.d.ts +48 -0
  231. package/dist/components/GridColumnHeader/styles.d.ts +37 -0
  232. package/dist/components/GridColumnHeader/styles.js +55 -0
  233. package/dist/components/GridColumnHeader/styles.js.map +1 -0
  234. package/dist/components/GridColumnHeader/translations.d.ts +26 -0
  235. package/dist/components/GridColumnHeader/translations.js +29 -0
  236. package/dist/components/GridColumnHeader/translations.js.map +1 -0
  237. package/dist/components/GridInlineRibbon/GridInlineRibbon.d.ts +3 -0
  238. package/dist/components/GridInlineRibbon/GridInlineRibbon.js +113 -0
  239. package/dist/components/GridInlineRibbon/GridInlineRibbon.js.map +1 -0
  240. package/dist/components/GridInlineRibbon/GridInlineRibbonModel.d.ts +25 -0
  241. package/dist/components/GridInlineRibbon/GridInlineRibbonModel.js +49 -0
  242. package/dist/components/GridInlineRibbon/GridInlineRibbonModel.js.map +1 -0
  243. package/dist/components/GridInlineRibbon/index.d.ts +2 -0
  244. package/dist/components/GridInlineRibbon/index.js +2 -0
  245. package/dist/components/GridInlineRibbon/interfaces.d.ts +28 -0
  246. package/dist/components/GridInlineRibbon/styles.d.ts +22 -0
  247. package/dist/components/GridInlineRibbon/styles.js +29 -0
  248. package/dist/components/GridInlineRibbon/styles.js.map +1 -0
  249. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +2 -2
  250. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
  251. package/dist/components/NestedControlRenderer/NestedControl.d.ts +2 -0
  252. package/dist/components/NestedControlRenderer/NestedControl.js +5 -2
  253. package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -1
  254. package/dist/components/NestedControlRenderer/NestedControlRenderer.js +19 -6
  255. package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -1
  256. package/dist/components/NestedControlRenderer/index.d.ts +1 -0
  257. package/dist/components/NestedControlRenderer/interfaces.d.ts +4 -0
  258. package/dist/components/NestedControlRenderer/properties/FileProperty.js +1 -1
  259. package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -1
  260. package/dist/components/OptionSet/OptionSet.js +5 -4
  261. package/dist/components/OptionSet/OptionSet.js.map +1 -1
  262. package/dist/components/Ribbon/Ribbon.d.ts +3 -0
  263. package/dist/components/Ribbon/Ribbon.js +118 -0
  264. package/dist/components/Ribbon/Ribbon.js.map +1 -0
  265. package/dist/components/Ribbon/RibbonModel.d.ts +17 -0
  266. package/dist/components/Ribbon/RibbonModel.js +74 -0
  267. package/dist/components/Ribbon/RibbonModel.js.map +1 -0
  268. package/dist/components/Ribbon/interfaces.d.ts +24 -0
  269. package/dist/components/Ribbon/styles.d.ts +16 -0
  270. package/dist/components/Ribbon/styles.js +23 -0
  271. package/dist/components/Ribbon/styles.js.map +1 -0
  272. package/dist/components/TextField/TextField.js.map +1 -1
  273. package/dist/components/index.d.ts +1 -0
  274. package/dist/components/index.js +2 -3
  275. package/dist/components/index.js.map +1 -1
  276. package/dist/hooks/index.d.ts +1 -0
  277. package/dist/hooks/index.js +1 -0
  278. package/dist/hooks/index.js.map +1 -1
  279. package/dist/hooks/useControl.d.ts +1 -0
  280. package/dist/hooks/useControl.js +1 -0
  281. package/dist/hooks/useControl.js.map +1 -1
  282. package/dist/hooks/useEventEmitter.d.ts +2 -0
  283. package/dist/hooks/useEventEmitter.js +23 -0
  284. package/dist/hooks/useEventEmitter.js.map +1 -0
  285. package/dist/hooks/useInputBasedControl.js +2 -1
  286. package/dist/hooks/useInputBasedControl.js.map +1 -1
  287. package/dist/index.d.ts +508 -522
  288. package/dist/index.js +3 -3
  289. package/dist/interfaces/property.d.ts +1 -1
  290. package/dist/utils/BaseControls.d.ts +4 -1
  291. package/dist/utils/BaseControls.js +13 -1
  292. package/dist/utils/BaseControls.js.map +1 -1
  293. package/dist/utils/dataset/adapters/DatasetAdapter.d.ts +51 -40
  294. package/dist/utils/dataset/adapters/DatasetAdapter.js +221 -160
  295. package/dist/utils/dataset/adapters/DatasetAdapter.js.map +1 -1
  296. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.d.ts +60 -28
  297. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js +183 -119
  298. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js.map +1 -1
  299. package/dist/utils/dataset-control/DatasetControl.d.ts +69 -0
  300. package/dist/utils/dataset-control/DatasetControl.js +171 -0
  301. package/dist/utils/dataset-control/DatasetControl.js.map +1 -0
  302. package/dist/utils/dataset-control/index.d.ts +1 -0
  303. package/dist/utils/dataset-control/index.js +2 -0
  304. package/dist/utils/theme/components/ThemeWrapper.d.ts +1 -1
  305. package/dist/utils/theme/components/ThemeWrapper.js.map +1 -1
  306. package/dist/utils/theme/hooks/useControlTheme.js +2 -1
  307. package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
  308. package/package.json +8 -4
  309. package/dist/components/DatasetControl/Paging/DatasetPaging.d.ts +0 -3
  310. package/dist/components/DatasetControl/Paging/DatasetPaging.js +0 -69
  311. package/dist/components/DatasetControl/Paging/DatasetPaging.js.map +0 -1
  312. package/dist/components/DatasetControl/Paging/Paging.d.ts +0 -26
  313. package/dist/components/DatasetControl/Paging/Paging.js +0 -80
  314. package/dist/components/DatasetControl/Paging/Paging.js.map +0 -1
  315. package/dist/components/DatasetControl/Paging/index.d.ts +0 -3
  316. package/dist/components/DatasetControl/Paging/index.js +0 -3
  317. package/dist/components/DatasetControl/Paging/index.js.map +0 -1
  318. package/dist/components/DatasetControl/Paging/interfaces.d.ts +0 -16
  319. package/dist/components/DatasetControl/Paging/styles.d.ts +0 -35
  320. package/dist/components/DatasetControl/Paging/styles.js +0 -41
  321. package/dist/components/DatasetControl/Paging/styles.js.map +0 -1
  322. package/dist/components/DatasetControl/Paging/translations.d.ts +0 -38
  323. package/dist/components/DatasetControl/Paging/translations.js +0 -14
  324. package/dist/components/DatasetControl/Paging/translations.js.map +0 -1
  325. package/dist/components/Grid/Grid.d.ts +0 -3
  326. package/dist/components/Grid/Grid.js +0 -37
  327. package/dist/components/Grid/Grid.js.map +0 -1
  328. package/dist/components/Grid/GridContext.d.ts +0 -3
  329. package/dist/components/Grid/GridContext.js.map +0 -1
  330. package/dist/components/Grid/aggregation/Aggregation.d.ts +0 -18
  331. package/dist/components/Grid/aggregation/Aggregation.js +0 -129
  332. package/dist/components/Grid/aggregation/Aggregation.js.map +0 -1
  333. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +0 -203
  334. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +0 -1
  335. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js +0 -12
  336. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js.map +0 -1
  337. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js.map +0 -1
  338. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js.map +0 -1
  339. package/dist/components/Grid/core/components/AgGrid/context.js.map +0 -1
  340. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +0 -52
  341. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +0 -343
  342. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +0 -1
  343. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +0 -1
  344. package/dist/components/Grid/core/components/AgGrid/styles.js.map +0 -1
  345. package/dist/components/Grid/core/components/Cell/Cell.js +0 -158
  346. package/dist/components/Grid/core/components/Cell/Cell.js.map +0 -1
  347. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +0 -8
  348. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +0 -1
  349. package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +0 -1
  350. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +0 -1
  351. package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +0 -1
  352. package/dist/components/Grid/core/components/Cell/styles.js.map +0 -1
  353. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +0 -61
  354. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +0 -1
  355. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.d.ts +0 -2
  356. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +0 -50
  357. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +0 -1
  358. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +0 -1
  359. package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +0 -42
  360. package/dist/components/Grid/core/components/ColumnHeader/styles.js +0 -48
  361. package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +0 -1
  362. package/dist/components/Grid/core/components/Dialog/Constants.d.ts +0 -2
  363. package/dist/components/Grid/core/components/Dialog/Constants.js +0 -9
  364. package/dist/components/Grid/core/components/Dialog/Constants.js.map +0 -1
  365. package/dist/components/Grid/core/components/Dialog/Styles.d.ts +0 -2
  366. package/dist/components/Grid/core/components/Dialog/Styles.js +0 -61
  367. package/dist/components/Grid/core/components/Dialog/Styles.js.map +0 -1
  368. package/dist/components/Grid/core/components/Dialog/index.d.ts +0 -4
  369. package/dist/components/Grid/core/components/Dialog/index.js +0 -16
  370. package/dist/components/Grid/core/components/Dialog/index.js.map +0 -1
  371. package/dist/components/Grid/core/components/Dialog/interfaces/index.d.ts +0 -6
  372. package/dist/components/Grid/core/components/Dialog/interfaces/index.js +0 -2
  373. package/dist/components/Grid/core/components/Save/Save.d.ts +0 -2
  374. package/dist/components/Grid/core/components/Save/Save.js +0 -59
  375. package/dist/components/Grid/core/components/Save/Save.js.map +0 -1
  376. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.d.ts +0 -7
  377. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +0 -73
  378. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +0 -1
  379. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +0 -11
  380. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +0 -231
  381. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +0 -1
  382. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.d.ts +0 -39
  383. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js +0 -45
  384. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js.map +0 -1
  385. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.d.ts +0 -31
  386. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js +0 -37
  387. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js.map +0 -1
  388. package/dist/components/Grid/core/components/Save/styles.d.ts +0 -35
  389. package/dist/components/Grid/core/components/Save/styles.js +0 -42
  390. package/dist/components/Grid/core/components/Save/styles.js.map +0 -1
  391. package/dist/components/Grid/core/controllers/useGridController.d.ts +0 -7
  392. package/dist/components/Grid/core/controllers/useGridController.js +0 -29
  393. package/dist/components/Grid/core/controllers/useGridController.js.map +0 -1
  394. package/dist/components/Grid/core/enums/ConditionOperator.d.ts +0 -48
  395. package/dist/components/Grid/core/enums/ConditionOperator.js +0 -52
  396. package/dist/components/Grid/core/enums/ConditionOperator.js.map +0 -1
  397. package/dist/components/Grid/core/enums/DataType.d.ts +0 -25
  398. package/dist/components/Grid/core/enums/DataType.js +0 -30
  399. package/dist/components/Grid/core/enums/DataType.js.map +0 -1
  400. package/dist/components/Grid/core/hooks/useGridInstance.d.ts +0 -2
  401. package/dist/components/Grid/core/hooks/useGridInstance.js.map +0 -1
  402. package/dist/components/Grid/core/hooks/useRefreshCallback.d.ts +0 -2
  403. package/dist/components/Grid/core/hooks/useRefreshCallback.js +0 -20
  404. package/dist/components/Grid/core/hooks/useRefreshCallback.js.map +0 -1
  405. package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +0 -13
  406. package/dist/components/Grid/core/interfaces/IGridContext.d.ts +0 -4
  407. package/dist/components/Grid/core/model/Grid.d.ts +0 -83
  408. package/dist/components/Grid/core/model/Grid.js +0 -528
  409. package/dist/components/Grid/core/model/Grid.js.map +0 -1
  410. package/dist/components/Grid/core/model/GridDependency.d.ts +0 -13
  411. package/dist/components/Grid/core/model/GridDependency.js +0 -28
  412. package/dist/components/Grid/core/model/GridDependency.js.map +0 -1
  413. package/dist/components/Grid/core/services/KeyListener.d.ts +0 -12
  414. package/dist/components/Grid/core/services/KeyListener.js +0 -31
  415. package/dist/components/Grid/core/services/KeyListener.js.map +0 -1
  416. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js +0 -59
  417. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js.map +0 -1
  418. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.d.ts +0 -7
  419. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js +0 -56
  420. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js.map +0 -1
  421. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.d.ts +0 -7
  422. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +0 -73
  423. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +0 -1
  424. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.d.ts +0 -7
  425. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js +0 -90
  426. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js.map +0 -1
  427. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +0 -48
  428. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js +0 -146
  429. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js.map +0 -1
  430. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.d.ts +0 -11
  431. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js +0 -53
  432. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +0 -1
  433. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.d.ts +0 -9
  434. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js +0 -31
  435. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +0 -1
  436. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.d.ts +0 -10
  437. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js +0 -294
  438. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +0 -1
  439. package/dist/components/Grid/filtering/components/FilterCallout/styles.d.ts +0 -35
  440. package/dist/components/Grid/filtering/components/FilterCallout/styles.js.map +0 -1
  441. package/dist/components/Grid/filtering/constants.d.ts +0 -5
  442. package/dist/components/Grid/filtering/constants.js +0 -53
  443. package/dist/components/Grid/filtering/constants.js.map +0 -1
  444. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.d.ts +0 -21
  445. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js +0 -44
  446. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js.map +0 -1
  447. package/dist/components/Grid/filtering/model/Condition.d.ts +0 -49
  448. package/dist/components/Grid/filtering/model/Condition.js +0 -351
  449. package/dist/components/Grid/filtering/model/Condition.js.map +0 -1
  450. package/dist/components/Grid/filtering/model/Filtering.d.ts +0 -11
  451. package/dist/components/Grid/filtering/model/Filtering.js +0 -78
  452. package/dist/components/Grid/filtering/model/Filtering.js.map +0 -1
  453. package/dist/components/Grid/filtering/utils/FilteringUtilts.d.ts +0 -34
  454. package/dist/components/Grid/filtering/utils/FilteringUtilts.js +0 -195
  455. package/dist/components/Grid/filtering/utils/FilteringUtilts.js.map +0 -1
  456. package/dist/components/Grid/selection/model/Selection.d.ts +0 -12
  457. package/dist/components/Grid/selection/model/Selection.js +0 -55
  458. package/dist/components/Grid/selection/model/Selection.js.map +0 -1
  459. package/dist/components/Grid/sorting/Sorting.d.ts +0 -10
  460. package/dist/components/Grid/sorting/Sorting.js +0 -31
  461. package/dist/components/Grid/sorting/Sorting.js.map +0 -1
  462. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +0 -157
  463. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +0 -1
  464. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.d.ts +0 -9
  465. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js +0 -15
  466. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js.map +0 -1
  467. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +0 -9
  468. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +0 -22
  469. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js.map +0 -1
  470. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +0 -2
  471. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +0 -11
  472. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +0 -1
  473. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +0 -1
  474. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +0 -2
  475. package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +0 -5
  476. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +0 -75
  477. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +0 -1
  478. package/dist/components/GridCellRenderer/OptionSet/index.d.ts +0 -1
  479. package/dist/components/GridCellRenderer/OptionSet/index.js +0 -2
  480. package/dist/components/GridCellRenderer/OptionSet/index.js.map +0 -1
  481. package/dist/components/GridCellRenderer/OptionSet/styles.d.ts +0 -20
  482. package/dist/components/GridCellRenderer/OptionSet/styles.js +0 -29
  483. package/dist/components/GridCellRenderer/OptionSet/styles.js.map +0 -1
  484. package/dist/components/GridCellRenderer/RecordCommands/Icon.d.ts +0 -7
  485. package/dist/components/GridCellRenderer/RecordCommands/Icon.js +0 -32
  486. package/dist/components/GridCellRenderer/RecordCommands/Icon.js.map +0 -1
  487. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.d.ts +0 -13
  488. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js +0 -103
  489. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js.map +0 -1
  490. package/dist/components/GridCellRenderer/RecordCommands/styles.d.ts +0 -13
  491. package/dist/components/GridCellRenderer/RecordCommands/styles.js +0 -32
  492. package/dist/components/GridCellRenderer/RecordCommands/styles.js.map +0 -1
  493. package/dist/components/GridCellRenderer/useComponentProps.d.ts +0 -6
  494. package/dist/components/GridCellRenderer/useComponentProps.js +0 -10
  495. package/dist/components/GridCellRenderer/useComponentProps.js.map +0 -1
  496. /package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/styles.d.ts +0 -0
  497. /package/dist/components/Grid/{GridContext.js → grid/GridContext.js} +0 -0
  498. /package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.d.ts → overlays/empty-records/EmptyRecordsOverlay.d.ts} +0 -0
  499. /package/dist/components/Grid/{core/components/AgGrid/components/LoadingOverlay → overlays/loading}/LoadingOverlay.d.ts +0 -0
  500. /package/dist/components/Grid/{core/components/AgGrid/components/LoadingOverlay → overlays/loading}/LoadingOverlay.js +0 -0
  501. /package/dist/components/{Grid/core/components/Dialog/interfaces → GridInlineRibbon}/index.js.map +0 -0
  502. /package/dist/{components/GridCellRenderer/DefaultContentRenderer → utils/dataset-control}/index.js.map +0 -0
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /// <reference types="@types/powerapps-component-framework" />
2
2
  /// <reference types="react" />
3
- import { ITheme, ITextFieldProps, IDatePickerProps, ICommandBarProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
4
- import { DeepPartial, DataType, IDataset, Dataset, IDataProvider, PowerAppsDatasetProvider, AggregationFunction, IColumn, IRecord, ICommand } from '@talxis/client-libraries';
5
- import { ITheme as ITheme$1, ThemeProviderProps, ITextProps, ILinkProps, ILabelProps, IIconProps, IImageProps, ISpinnerProps, IShimmerProps, IMessageBar, IButtonProps, IToggleProps } from '@fluentui/react';
3
+ import { ITheme, ICommandBarProps, ITextFieldProps, IDatePickerProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
4
+ import { DeepPartial, DataType, IDataset, EventEmitter, IInterceptor, ICommand, AggregationFunction, IColumn, IRecord, Dataset, IDataProvider, IRawRecord, IEventEmitter } from '@talxis/client-libraries';
5
+ import { ITheme as ITheme$1, ThemeProviderProps, IShimmerProps, IButtonProps, IMessageBarProps, ILabelProps, IIconProps, ITextProps, ILinkProps, IImageProps, ISpinnerProps, IMessageBar, IToggleProps } from '@fluentui/react';
6
6
  import React$1 from 'react';
7
7
  import { AgGridReactProps } from '@ag-grid-community/react';
8
8
 
@@ -14,7 +14,7 @@ interface IStringProperty extends IProperty, Partial<ComponentFramework.Property
14
14
  }
15
15
  interface IFileProperty extends IProperty {
16
16
  raw: ComponentFramework.FileObject | null;
17
- formatted: string;
17
+ formatted?: string;
18
18
  }
19
19
  interface IDecimalNumberProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.DecimalNumberProperty>, 'attributes'> {
20
20
  raw: number | null;
@@ -109,9 +109,9 @@ interface IThemeWrapper extends ThemeProviderProps {
109
109
  fluentDesignLanguage?: ComponentFramework.FluentDesignState;
110
110
  children?: React$1.ReactNode;
111
111
  }
112
- declare const ThemeWrapper: React$1.FC<IThemeWrapper>;
112
+ declare const ThemeWrapper: (props: IThemeWrapper) => JSX.Element;
113
113
 
114
- type BaseControl = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'DateTime' | 'Decimal' | 'Duration' | 'GridCellRenderer' | 'Lookup' | 'TwoOptions' | 'GridCellRenderer' | 'Grid' | 'DatasetControl' | 'NestedControl';
114
+ type BaseControl = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'DateTime' | 'Decimal' | 'Duration' | 'GridCellRenderer' | 'Lookup' | 'TwoOptions' | 'GridCellRenderer' | 'Grid' | 'DatasetControl' | 'NestedControl' | 'GridColumnHeader' | 'Ribbon' | 'GridInlineRibbon';
115
115
  declare class BaseControls {
116
116
  static get TextField(): 'TextField';
117
117
  static get OptionSet(): 'OptionSet';
@@ -120,422 +120,17 @@ declare class BaseControls {
120
120
  static get Decimal(): 'Decimal';
121
121
  static get Duration(): 'Duration';
122
122
  static get GridCellRenderer(): 'GridCellRenderer';
123
- static get Lookup(): 'Lookup';
124
- static get TwoOptions(): 'TwoOptions';
125
- static GetControlNameForDataType(dataType: DataType): "Decimal" | "TextField" | "OptionSet" | "MultiSelectOptionSet" | "DateTime" | "Duration" | "Lookup" | "TwoOptions";
126
- static GetAll(): BaseControl[];
127
- static IsBaseControl(name: string): boolean;
128
- }
129
-
130
- interface IInputs {
131
- [key: string]: any;
132
- }
133
- interface IOutputs$3 {
134
- DatasetControl?: any;
135
- }
136
- interface IParameterGetters$1 {
137
- onGetDataset: () => ComponentFramework.PropertyTypes.DataSet | IDataset;
138
- onGetColumns?: () => string | null;
139
- onGetHeight?: () => string | null;
140
- onGetHomePageGridClientApiRibbonButtonId?: () => string | null;
141
- onGetInlineRibbonButtonIds?: () => string | null;
142
- /**
143
- * Callback that gets triggered and awaited before the dataset is initialized. Useful for setting initialization code that needs to run before the dataset is ready.
144
- */
145
- onInitialize?: () => void | Promise<void>;
146
- }
147
- declare class DatasetAdapter {
148
- private _container;
149
- private _dataset;
150
- private _context;
151
- private _lastUsedColumns?;
152
- private _pendingForceRefresh;
153
- private _powerAppsDatasetProvider?;
154
- private _client;
155
- private _notifyOutputChanged;
156
- private _resolveGetOutputs;
157
- private _getOutputsPromise;
158
- private _initialRender;
159
- private _homePageGridClientApiRibbonButtonId?;
160
- private _parameters;
161
- private _datasetPropertyName;
162
- init(context: ComponentFramework.Context<IInputs, IOutputs$3>, notifyOutputChanged: () => void, container: HTMLDivElement, parameters: IParameterGetters$1): void;
163
- /**
164
- * Returns true if the control should re-render or false if it should not.
165
- */
166
- updateView(context: ComponentFramework.Context<IInputs, IOutputs$3>): boolean | undefined;
167
- getDataset(): ComponentFramework.PropertyTypes.DataSet | IDataset | Dataset<IDataProvider> | Dataset<PowerAppsDatasetProvider>;
168
- getOutputs(): IOutputs$3;
169
- destroy(): void;
170
- getHeight(): string | null;
171
- private _onDatasetInit;
172
- private _getColumns;
173
- private _getMergedColumns;
174
- private _getFullHeightStyles;
175
- private _getCurrentFetchXml;
176
- private _isHomePageGrid;
177
- private _refreshOnChange;
178
- private _getGlobalDatasetInstanceName;
179
- private _getNormalizedFetchXml;
180
- private _setViewColumns;
181
- private _getRefreshStatus;
182
- private _forceRefresh;
183
- private _getPowerAppsDatasetProvider;
184
- private _getDatasetPropertyName;
185
- }
186
-
187
- interface IOutputs$2 {
188
- DatasetControl?: any;
189
- }
190
- interface IParameterGetters {
191
- dataProviderType: "Memory" | "FetchXml" | 'Custom';
192
- onGetData: () => string | null;
193
- onGetColumns: () => string | null;
194
- onGetEntityMetadata: () => string | null;
195
- customDataProvider?: IDataProvider;
196
- onGetHeight?: () => string | null;
197
- /**
198
- * Callback that gets triggered and awaited before the dataset is initialized. Useful for setting initialization code that needs to run before the dataset is ready.
199
- */
200
- onInitialize?: () => void | Promise<void>;
201
- }
202
- /**
203
- * Helper class that holds boilerplate code for handling a virtual dataset in PCF, like syncing data, columns, and metadata from parameters.
204
- *
205
- */
206
- declare class VirtualDatasetAdapter {
207
- private _providerClasses;
208
- private _dataset;
209
- private _parsedData;
210
- private _lastUsedColumns;
211
- private _lastUsedData;
212
- private _lastUsedMetadata;
213
- private _dataProviderClass;
214
- private _container;
215
- private _notifyOutputChanged;
216
- private _resolveGetOutputs;
217
- private _getOutputsPromise;
218
- private _parameters;
219
- init(notifyOutputChanged: () => void, container: HTMLDivElement, parameters: IParameterGetters): this;
220
- updateView(): void;
221
- getDataset(): Dataset<IDataProvider>;
222
- destroy(): void;
223
- getOutputs(): IOutputs$2;
224
- private _onDatasetInit;
225
- private _getData;
226
- private _getColumns;
227
- private _shouldMergeColumns;
228
- private _getMergedColumns;
229
- private _getEntityMetadata;
230
- private _refreshOnChange;
231
- private _getFullTabStyles;
232
- }
233
-
234
- interface IOutputs$1 {
235
- [key: string]: any;
236
- }
237
- interface IContext extends ComponentFramework.Context<any> {
238
- fluentDesignLanguage?: IFluentDesignState;
239
- }
240
- interface IControl<TParameters extends IParameters$1, TOutputs, TTranslations, TComponentProps> {
241
- context: IContext;
242
- parameters: TParameters;
243
- translations?: TTranslations;
244
- state?: ComponentFramework.Dictionary;
245
- /**
246
- * Fires when the component changes the parameter value. It is usually fired directly after the change occurs in the value.
247
- * Exceptions are input based component where it fires on the blur event.
248
- */
249
- onNotifyOutputChanged?: (outputs: TOutputs) => void;
250
- /**
251
- * Allows you to override the props of the internal component that the control uses for UI rendering. Might not work on every control. ONLY USE WHEN ABSOLUTELY NECESSARY AND CONSULT YOUR INTENTIONS WITH BRY!
252
- */
253
- onOverrideComponentProps?: (props: TComponentProps) => TComponentProps;
254
- }
255
- type ITranslations<T> = {
256
- [Property in keyof T]: T[Property] extends string[] ? string[] : string;
257
- };
258
-
259
- interface IOutputs {
260
- [key: string]: any;
261
- }
262
- interface IParameters$1 {
263
- [key: string]: IProperty | undefined | any;
264
- }
265
-
266
- type ITranslation<T> = {
267
- [Property in keyof Required<T>]: (variables?: any) => string;
268
- };
269
- interface IDefaultTranslations {
270
- [LCID: number]: string | string[];
271
- [key: string]: any;
272
- }
273
- interface ILabelsOptions<TTranslations> {
274
- languageId: number;
275
- translations?: TTranslations;
276
- defaultTranslations?: IDefaultTranslations;
277
- }
278
- declare const useControlLabels: <TTranslations>(options: ILabelsOptions<TTranslations>) => Required<ITranslation<TTranslations>>;
279
-
280
- interface IControlController<TTranslations, TOutputs> {
281
- labels: Required<ITranslation<TTranslations>>;
282
- sizing: {
283
- width?: number;
284
- height?: number;
285
- };
286
- theme: ITheme;
287
- onNotifyOutputChanged: (outputs: TOutputs) => void;
288
- }
289
- /**
290
- * Provides automatic checking if the given outputs are different from the provided inputs. Use the provided method any time you want
291
- * to notify the framework that you wish to write changes. The hook will notify the framework only if the provided output differs from the current inputs.
292
- */
293
- declare const useControl: <TParameters extends IParameters$1, TOutputs extends IOutputs, TTranslations>(name: string, props: IControl<TParameters, TOutputs, TTranslations, any>, defaultTranslations?: IDefaultTranslations) => IControlController<TTranslations, TOutputs>;
294
-
295
- declare const useControlSizing: (mode: ComponentFramework.Mode) => {
296
- height?: number;
297
- width?: number;
298
- };
299
-
300
- declare const useFocusIn: (ref: React.RefObject<HTMLElement>, delay?: number) => boolean;
301
-
302
- interface IParameters {
303
- [key: string]: IProperty | undefined;
304
- }
305
- interface IInputParameters extends IBaseParameters {
306
- value: IProperty;
307
- /**
308
- * Tells the control to trigger `notifyOutputChanged` on it's unmount changes occured in bound parameter value.
309
- * Should only be use in edge cases in input based controls where the notifyOutputChanged cannot be called naturally via the blur event.
310
- */
311
- NotifyOutputChangedOnUnmount?: Omit<ITwoOptionsProperty, 'attributes'>;
312
- EnableCopyButton?: Omit<ITwoOptionsProperty, 'attributes'>;
313
- EnableDeleteButton?: Omit<ITwoOptionsProperty, 'attributes'>;
314
- /**
315
- * Shows the error message within the control. By default, the error is represented only by red outline.
316
- */
317
- ShowErrorMessage?: Omit<ITwoOptionsProperty, 'attributes'>;
318
- }
319
- interface IBaseParameters extends IParameters {
320
- /**
321
- * Decides whether the input should get focus on first render.
322
- */
323
- AutoFocus?: Omit<ITwoOptionsProperty, 'attributes'>;
324
- ForceDisable?: Omit<ITwoOptionsProperty, 'attributes'>;
325
- }
326
-
327
- /**
328
- * Description
329
- * @param {any} value:any
330
- * @returns {any}
331
- */
332
- interface IControlOptions {
333
- defaultTranslations?: IDefaultTranslations;
334
- /**
335
- * Formatting function that will format the bound value every time a new one comes from the props.
336
- */
337
- formatter?: (value: any) => any;
338
- valueExtractor?: (value: any) => any;
339
- }
340
- /**
341
- * Use when working with components that need to store value changes internally before triggering `notifyOutputChanged`.
342
- * An example of this is a standard Decimal component - we do not want to trigger `notifyOutputChanged` on every value change,
343
- * since this would trigger decimal validation on every keystroke which would result in a bad UX. In this case, the `notifyOutputChanged` should
344
- * be triggered when the user looses focus on the component (`onBlur` event).
345
- * @returns {[]} The hook returns an array with three props. First `value` prop is a value that will will always be in sync with the value that comes from the `value` parameter.
346
- * Use this for displaying the up-to-date value to the user.
347
- * Second prop contains the translations for this component.
348
- *
349
- * Third prop is a method that can be used to change the current value. The new value will get propagated to the `value` variable returned from this hook. This method wont propagate the value to the framework.
350
- *
351
- * The last prop is a method that will notify the framework that you wish to write changes.
352
- * The method will notify the framework only if the provided output differs from the current inputs.
353
- */
354
- interface IInputBasedControlController<TValue, TTranslations, TOutputs> extends IControlController<TTranslations, TOutputs> {
355
- value: TValue;
356
- setValue: (value: TValue) => void;
357
- }
358
- declare const useInputBasedControl: <TValue, TParameters extends IInputParameters, TOutputs extends IOutputs$1, TTranslations>(name: string, props: IControl<TParameters, TOutputs, TTranslations, any>, options?: IControlOptions) => IInputBasedControlController<TValue, TTranslations, TOutputs>;
359
-
360
- declare const useMouseOver: (ref: React.RefObject<HTMLElement>) => boolean;
361
-
362
- declare const gridTranslations: {
363
- "condition-none": {
364
- 1029: string;
365
- 1033: string;
366
- };
367
- "condition-equal": {
368
- 1029: string;
369
- 1033: string;
370
- };
371
- "condition-notequal": {
372
- 1029: string;
373
- 1033: string;
374
- };
375
- "condition-greaterthan": {
376
- 1029: string;
377
- 1033: string;
378
- };
379
- "condition-lessthan": {
380
- 1029: string;
381
- 1033: string;
382
- };
383
- "condition-greaterequal": {
384
- 1029: string;
385
- 1033: string;
386
- };
387
- "condition-lessequal": {
388
- 1029: string;
389
- 1033: string;
390
- };
391
- "condition-like": {
392
- 1029: string;
393
- 1033: string;
394
- };
395
- "condition-notlike": {
396
- 1029: string;
397
- 1033: string;
398
- };
399
- "condition-null": {
400
- 1029: string;
401
- 1033: string;
402
- };
403
- "condition-notnull": {
404
- 1029: string;
405
- 1033: string;
406
- };
407
- "condition-beginwith": {
408
- 1029: string;
409
- 1033: string;
410
- };
411
- "condition-doesnotbeginwith": {
412
- 1029: string;
413
- 1033: string;
414
- };
415
- "condition-endswith": {
416
- 1029: string;
417
- 1033: string;
418
- };
419
- "condition-doesnotendwith": {
420
- 1029: string;
421
- 1033: string;
422
- };
423
- "condition-yesterday": {
424
- 1029: string;
425
- 1033: string;
426
- };
427
- "condition-today": {
428
- 1029: string;
429
- 1033: string;
430
- };
431
- "condition-tomorrow": {
432
- 1029: string;
433
- 1033: string;
434
- };
435
- "condition-last7days": {
436
- 1029: string;
437
- 1033: string;
438
- };
439
- "condition-next7days": {
440
- 1029: string;
441
- 1033: string;
442
- };
443
- "condition-lastweek": {
444
- 1029: string;
445
- 1033: string;
446
- };
447
- "condition-thisweek": {
448
- 1029: string;
449
- 1033: string;
450
- };
451
- "condition-lastmonth": {
452
- 1029: string;
453
- 1033: string;
454
- };
455
- "condition-thismonth": {
456
- 1029: string;
457
- 1033: string;
458
- };
459
- "condition-on": {
460
- 1029: string;
461
- 1033: string;
462
- };
463
- "condition-onorbefore": {
464
- 1029: string;
465
- 1033: string;
466
- };
467
- "condition-onorafter": {
468
- 1029: string;
469
- 1033: string;
470
- };
471
- "condition-lastyear": {
472
- 1029: string;
473
- 1033: string;
474
- };
475
- "condition-thisyear": {
476
- 1029: string;
477
- 1033: string;
478
- };
479
- "condition-lastxdays": {
480
- 1029: string;
481
- 1033: string;
482
- };
483
- "condition-nextxdays": {
484
- 1029: string;
485
- 1033: string;
486
- };
487
- "condition-lastxmonths": {
488
- 1029: string;
489
- 1033: string;
490
- };
491
- "condition-nextxmonths": {
492
- 1029: string;
493
- 1033: string;
494
- };
495
- "condition-contains": {
496
- 1029: string;
497
- 1033: string;
498
- };
499
- "condition-infiscalperiodandyear": {
500
- 1029: string;
501
- 1033: string;
502
- };
503
- "condition-above": {
504
- 1029: string;
505
- 1033: string;
506
- };
507
- "condition-under": {
508
- 1029: string;
509
- 1033: string;
510
- };
511
- "condition-notunder": {
512
- 1029: string;
513
- 1033: string;
514
- };
515
- "condition-aboveorequal": {
516
- 1029: string;
517
- 1033: string;
518
- };
519
- "condition-underorequal": {
520
- 1029: string;
521
- 1033: string;
522
- };
523
- "condition-containvalues": {
524
- 1029: string;
525
- 1033: string;
526
- };
527
- "condition-doesnotcontainvalues": {
528
- 1029: string;
529
- 1033: string;
530
- };
531
- "condition-between": {
532
- 1029: string;
533
- 1033: string;
534
- };
535
- "condition-notbetween": {
536
- 1029: string;
537
- 1033: string;
538
- };
123
+ static get Lookup(): 'Lookup';
124
+ static get TwoOptions(): 'TwoOptions';
125
+ static get GridColumnHeader(): 'GridColumnHeader';
126
+ static get Ribbon(): 'Ribbon';
127
+ static get GridInlineRibbon(): 'GridInlineRibbon';
128
+ static GetControlNameForDataType(dataType: DataType): "Decimal" | "TextField" | "OptionSet" | "MultiSelectOptionSet" | "DateTime" | "Duration" | "Lookup" | "TwoOptions";
129
+ static GetAll(): BaseControl[];
130
+ static IsBaseControl(name: string): boolean;
131
+ }
132
+
133
+ declare const gridTranslations: {
539
134
  "filtermenu-filterby": {
540
135
  1029: string;
541
136
  1033: string;
@@ -628,6 +223,14 @@ declare const gridTranslations: {
628
223
  1029: string;
629
224
  1033: string;
630
225
  };
226
+ "filtersortmenu-group": {
227
+ 1029: string;
228
+ 1033: string;
229
+ };
230
+ "filtersortmenu-ungroup": {
231
+ 1029: string;
232
+ 1033: string;
233
+ };
631
234
  norecordsfound: {
632
235
  1029: string;
633
236
  1033: string;
@@ -676,6 +279,18 @@ declare const gridTranslations: {
676
279
  1029: string;
677
280
  1033: string;
678
281
  };
282
+ "saving-autosave-success": {
283
+ 1029: string;
284
+ 1033: string;
285
+ };
286
+ "saving-autosave-error": {
287
+ 1029: string;
288
+ 1033: string;
289
+ };
290
+ "saving-unsaved-changes": {
291
+ 1029: string;
292
+ 1033: string;
293
+ };
679
294
  "saving-discard-all-confirmation": {
680
295
  1029: string;
681
296
  1033: string;
@@ -720,7 +335,7 @@ declare const gridTranslations: {
720
335
  1029: string;
721
336
  1033: string;
722
337
  };
723
- "error-2147750198": {
338
+ maximumGroupChildrenLimitReached: {
724
339
  1029: string;
725
340
  1033: string;
726
341
  };
@@ -735,23 +350,32 @@ interface IGridComponentProps {
735
350
  }
736
351
  interface IGrid extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof gridTranslations>>, IGridComponentProps> {
737
352
  }
738
- interface IGridParameters extends IParameters$1 {
353
+ interface IGridParameters extends IParameters {
354
+ Grid: IDataset;
739
355
  EnableEditing?: Omit<ITwoOptionsProperty, 'attributes'>;
740
356
  EnablePagination?: Omit<ITwoOptionsProperty, 'attributes'>;
741
357
  EnableFiltering?: Omit<ITwoOptionsProperty, 'attributes'>;
742
358
  EnableSorting?: Omit<ITwoOptionsProperty, 'attributes'>;
743
359
  EnableNavigation?: Omit<ITwoOptionsProperty, 'attributes'>;
360
+ EnableQuickFind?: Omit<ITwoOptionsProperty, 'attributes'>;
744
361
  EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
362
+ EnableRecordCount?: Omit<ITwoOptionsProperty, 'attributes'>;
745
363
  EnableChangeEditor?: Omit<ITwoOptionsProperty, 'attributes'>;
746
364
  EnableMultiEdit?: Omit<ITwoOptionsProperty, 'attributes'>;
747
365
  EnableZebra?: Omit<ITwoOptionsProperty, 'attributes'>;
366
+ EnableGrouping?: Omit<ITwoOptionsProperty, 'attributes'>;
748
367
  EnableAggregation?: Omit<ITwoOptionsProperty, 'attributes'>;
368
+ EnableGroupedColumnsPinning?: Omit<ITwoOptionsProperty, 'attributes'>;
369
+ EnableCommandBar?: Omit<ITwoOptionsProperty, 'attributes'>;
749
370
  RowHeight?: Omit<IWholeNumberProperty, 'attributes'>;
750
371
  EnablePageSizeSwitcher?: Omit<ITwoOptionsProperty, 'attributes'>;
372
+ EnableAutoSave?: Omit<ITwoOptionsProperty, 'attributes'>;
373
+ DefaultExpandedGroupLevel?: Omit<IWholeNumberProperty, 'attributes'>;
751
374
  Height?: IStringProperty;
752
375
  InlineRibbonButtonIds?: IStringProperty;
376
+ GroupingType?: Omit<ComponentFramework.PropertyTypes.EnumProperty<"nested" | "flat">, 'type'>;
753
377
  SelectableRows?: Omit<ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">, 'type'>;
754
- Grid: IDataset;
378
+ LicenseKey?: IStringProperty;
755
379
  }
756
380
  interface IGridOutputs extends IOutputs$1 {
757
381
  }
@@ -775,9 +399,14 @@ declare const datasetControlTranslations: {
775
399
  1029: string;
776
400
  1033: string;
777
401
  };
778
- };
779
-
780
- declare const datasetPagingTranslations: {
402
+ "unsaved-changes": {
403
+ 1029: string;
404
+ 1033: string;
405
+ };
406
+ "saving-discard-all-confirmation": {
407
+ 1029: string;
408
+ 1033: string;
409
+ };
781
410
  "paging-of": {
782
411
  1029: string;
783
412
  1033: string;
@@ -816,70 +445,136 @@ declare const datasetPagingTranslations: {
816
445
  };
817
446
  };
818
447
 
819
- interface IDatasetPaging extends IControl<IDatasetPagingParameters, any, Partial<ITranslations<typeof datasetPagingTranslations>>, any> {
448
+ interface IRibbonComponentProps {
449
+ onRender: (props: IComponentProps$2, defaultRender: (props: IComponentProps$2) => React.ReactElement) => React.ReactElement;
450
+ }
451
+ interface IComponentProps$2 {
452
+ container: ThemeProviderProps;
453
+ isLoading: boolean;
454
+ onRenderLoading: (props: IShimmerProps, defaultRender: (props: IShimmerProps) => React.ReactElement) => React.ReactElement;
455
+ onRenderCommandBar: (props: ICommandBarProps, defaultRender: (props: ICommandBarProps) => React.ReactElement) => React.ReactElement;
456
+ }
457
+
458
+ interface IDatasetControlEvents {
459
+ onRecordCommandsLoaded: () => void;
460
+ onInitialized: () => void;
461
+ }
462
+ interface IDatasetControlInterceptors {
463
+ onInitialize: () => Promise<void>;
464
+ }
465
+ interface IDatasetControl extends EventEmitter<IDatasetControlEvents> {
466
+ setInterceptor<K extends keyof IDatasetControlInterceptors>(event: K, interceptor: IInterceptor<IDatasetControlInterceptors, K>): void;
467
+ isPaginationVisible(): boolean;
468
+ isRecordCountVisible(): boolean;
469
+ isPageSizeSwitcherVisible(): boolean;
470
+ isQuickFindVisible(): boolean;
471
+ isAutoSaveEnabled(): boolean;
472
+ isRibbonVisible(): boolean;
473
+ getHeight(): string | null;
474
+ getDataset(): IDataset;
475
+ getPcfContext(): ComponentFramework.Context<any>;
476
+ getParameters(): IDatasetControlParameters;
477
+ loadCommands(ids: string[]): Promise<void>;
478
+ retrieveRecordCommands(): ICommand[];
479
+ areCommandsLoaded(): boolean;
480
+ destroy(): void;
481
+ init(): Promise<void>;
482
+ getState(): ComponentFramework.Dictionary;
483
+ saveState(): void;
820
484
  }
821
- interface IDatasetPagingParameters extends IParameters$1 {
822
- Dataset: IDataset;
485
+
486
+ interface IDatasetControlProps extends Omit<IControl<IDatasetControlParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, IDatasetControlComponentProps>, 'parameters' | 'context' | 'state'> {
823
487
  /**
824
- * If set to false, the user will not be able to navigate through pages. The component will still display the total number of records and the current page.
488
+ * Gets the instance of the Dataset control model.
825
489
  */
826
- EnablePagination?: Omit<ITwoOptionsProperty, 'attributes'>;
490
+ onGetDatasetControlInstance: () => IDatasetControl;
827
491
  /**
828
- * If set to false, the user will not be able to change the page size.
492
+ * Tells the Dataset control which UI component should be used for the dataset.
829
493
  */
830
- EnablePageSizeSwitcher?: Omit<ITwoOptionsProperty, 'attributes'>;
494
+ onGetControlComponent: (props: Omit<IDatasetControlProps, 'onOverrideComponentProps'> & {
495
+ parameters: IDatasetControlParameters;
496
+ context: ComponentFramework.Context<any, any>;
497
+ state: ComponentFramework.Dictionary;
498
+ }) => React$1.ReactElement<IControl<any, any, any, any>>;
831
499
  }
832
-
833
- declare const DatasetPaging: (props: IDatasetPaging) => JSX.Element;
834
-
835
- type ILabels = Required<ITranslation<typeof datasetPagingTranslations>>;
836
- declare class Paging {
837
- private _getParameters;
838
- private _getLabels;
839
- constructor(getParameters: () => IDatasetPagingParameters, getLabels: () => ILabels);
840
- get pageNumber(): number;
841
- get pageSize(): number;
842
- get totalResultCount(): number;
843
- get hasPreviousPage(): boolean;
844
- get hasNextPage(): boolean;
845
- get pageFirstRecordOrder(): number;
846
- get formattedTotalResultCount(): string;
847
- get pageLastRecordOrder(): string;
848
- get isEnabled(): boolean;
849
- loadNextPage(): void;
850
- loadPreviousPage(): void;
851
- loadExactPage(pageNumber: number): void;
852
- setPageSize(pageSize: number): void;
853
- reset(): void;
854
- toString(): string;
855
- private _getDataset;
500
+ interface IDatasetControlParameters extends IGridParameters {
501
+ ClientApiWebresourceName?: IStringProperty;
502
+ ClientApiFunctionName?: IStringProperty;
503
+ }
504
+ interface IDatasetControlComponentProps {
505
+ onRender: (props: IComponentProps$1, defaultRender: (props: IComponentProps$1) => React$1.ReactElement) => React$1.ReactElement;
506
+ }
507
+ interface IComponentProps$1 {
508
+ container: ThemeProviderProps;
509
+ onRenderControlContainer: (props: IControlContainerProps, defaultRender: (props: IControlContainerProps) => React$1.ReactElement) => React$1.ReactElement;
510
+ onRenderHeader: (props: IHeaderProps, defaultRender: (props: IHeaderProps) => React$1.ReactElement) => React$1.ReactElement;
511
+ onRenderFooter: (props: IFooterProps, defaultRender: (props: IFooterProps) => React$1.ReactElement) => React$1.ReactElement;
512
+ }
513
+ interface IControlContainerProps {
514
+ controlContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
515
+ }
516
+ interface IFooterProps {
517
+ footerContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
518
+ onRenderPagination: (props: IPaginationProps, defaultRender: (props: IPaginationProps) => React$1.ReactElement) => React$1.ReactElement;
519
+ }
520
+ interface IPaginationProps {
521
+ paginationContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
522
+ commandBarProps: ICommandBarProps;
523
+ pageSizeSwitcherProps: IButtonProps;
524
+ onRenderCommandBar: (props: ICommandBarProps, defaultRender: (props: ICommandBarProps) => React$1.ReactElement) => React$1.ReactElement;
525
+ onRenderPageSizeSwitcher: (props: IButtonProps, defaultRender: (props: IButtonProps) => React$1.ReactElement) => React$1.ReactElement;
526
+ }
527
+ interface IHeaderProps {
528
+ headerContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
529
+ onRenderRibbonQuickFindWrapper: (props: IRibbonQuickFindWrapperProps, defaultRender: (props: IRibbonQuickFindWrapperProps) => React$1.ReactElement) => React$1.ReactElement;
530
+ onRenderErrorMessageBar: (props: IErrorMessageBarProps, defaultRender: (props: IErrorMessageBarProps) => React$1.ReactElement) => React$1.ReactElement;
531
+ onRenderUnsavedChangesMessageBar: (props: IUnsavedChangesMesssageBarProps, defaultRender: (props: IUnsavedChangesMesssageBarProps) => React$1.ReactElement) => React$1.ReactElement;
532
+ }
533
+ interface IRibbonQuickFindWrapperProps {
534
+ ribbonQuickFindContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
535
+ onRenderQuickFind: (props: IQuickFindProps, defaultRender: (props: IQuickFindProps) => React$1.ReactElement) => React$1.ReactElement;
536
+ onRenderRibbon: IRibbonComponentProps['onRender'];
537
+ }
538
+ interface IErrorMessageBarProps {
539
+ messageBarProps: IMessageBarProps;
540
+ onRenderMessageBar: (props: IMessageBarProps, defaultRender: (props: IMessageBarProps) => React$1.ReactElement) => React$1.ReactElement;
541
+ }
542
+ interface IUnsavedChangesMesssageBarProps {
543
+ messageBarProps: IMessageBarProps;
544
+ onRenderSaveBtn: (props: IButtonProps, defaultRender: (props: IButtonProps) => React$1.ReactElement) => React$1.ReactElement;
545
+ onRenderDiscardBtn: (props: IButtonProps, defaultRender: (props: IButtonProps) => React$1.ReactElement) => React$1.ReactElement;
856
546
  }
857
-
858
547
  interface IQuickFindProps {
859
548
  textFieldProps: ITextFieldProps;
860
- container: ThemeProviderProps;
549
+ onRenderTextField: (props: ITextFieldProps, defaultRender: (props: ITextFieldProps) => React$1.ReactElement) => React$1.ReactElement;
861
550
  }
862
- interface IDatasetControlComponentProps {
863
- onDatasetInit: () => void;
864
- containerProps: ThemeProviderProps;
865
- headerProps: {
866
- headerContainerProps: React$1.HTMLAttributes<HTMLDivElement>;
867
- /**
868
- * Can be used to override the default header renderer (includes QuickFind).
869
- */
870
- onRender: (renderQuickFind: () => React$1.ReactElement) => React$1.ReactElement;
871
- onGetQuickFindProps: (props: IQuickFindProps) => IQuickFindProps;
872
- };
873
- onRenderPagination: (props: IDatasetPaging, renderPagination: (props: IDatasetPaging) => React$1.ReactElement<IDatasetPaging>) => React$1.ReactElement;
551
+
552
+ declare const DatasetControl: (props: IDatasetControlProps) => JSX.Element;
553
+
554
+ interface IParameters$1 {
555
+ [key: string]: IProperty | undefined;
874
556
  }
875
- interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, IDatasetControlComponentProps> {
557
+ interface IInputParameters extends IBaseParameters {
558
+ value: IProperty;
876
559
  /**
877
- * Tells the Dataset control which UI component should be used for the dataset.
560
+ * Tells the control to trigger `notifyOutputChanged` on it's unmount changes occured in bound parameter value.
561
+ * Should only be use in edge cases in input based controls where the notifyOutputChanged cannot be called naturally via the blur event.
562
+ */
563
+ NotifyOutputChangedOnUnmount?: Omit<ITwoOptionsProperty, 'attributes'>;
564
+ EnableCopyButton?: Omit<ITwoOptionsProperty, 'attributes'>;
565
+ EnableDeleteButton?: Omit<ITwoOptionsProperty, 'attributes'>;
566
+ /**
567
+ * Shows the error message within the control. By default, the error is represented only by red outline.
878
568
  */
879
- onGetControlComponent: (props: IControl<IGridParameters, any, any, any>) => React$1.ReactElement<IControl<any, any, any, any>>;
569
+ ShowErrorMessage?: Omit<ITwoOptionsProperty, 'attributes'>;
570
+ }
571
+ interface IBaseParameters extends IParameters$1 {
572
+ /**
573
+ * Decides whether the input should get focus on first render.
574
+ */
575
+ AutoFocus?: Omit<ITwoOptionsProperty, 'attributes'>;
576
+ ForceDisable?: Omit<ITwoOptionsProperty, 'attributes'>;
880
577
  }
881
-
882
- declare const DatasetControl: (props: IDatasetControl) => JSX.Element;
883
578
 
884
579
  declare const getDefaultDateTimeTranslations: (dateFormattingInfo: ComponentFramework.UserSettingApi.DateFormattingInfo) => {
885
580
  time: {
@@ -963,7 +658,7 @@ interface IDecimalOutputs extends IOutputs$1 {
963
658
 
964
659
  declare const Decimal: (props: IDecimal) => JSX.Element;
965
660
 
966
- declare const getDefaultGridRendererTranslations: () => {
661
+ declare const gridGroupCellRendererTranslations: {
967
662
  download: {
968
663
  1029: string;
969
664
  1033: string;
@@ -994,64 +689,75 @@ declare const getDefaultGridRendererTranslations: () => {
994
689
  };
995
690
  };
996
691
 
997
- interface IGridCellRenderer extends IControl<IGridCellRendererParameters, {}, ReturnType<typeof getDefaultGridRendererTranslations>, IGridCellRendererComponentProps> {
692
+ interface IGridCellRenderer extends IControl<IGridCellRendererParameters, {}, typeof gridGroupCellRendererTranslations, IGridCellRendererComponentProps> {
998
693
  }
999
- interface IGridCellRendererParameters extends IParameters$1 {
694
+ interface IGridCellRendererParameters extends IParameters {
1000
695
  value: any;
1001
696
  ColumnAlignment: Omit<ComponentFramework.PropertyTypes.EnumProperty<"left" | "center" | "right">, 'type'>;
1002
697
  CellType: Omit<ComponentFramework.PropertyTypes.EnumProperty<"renderer" | "editor">, 'type'>;
1003
698
  EnableNavigation: Omit<ITwoOptionsProperty, 'attributes'>;
1004
- PrefixIcon?: IStringProperty;
1005
- SuffixIcon?: IStringProperty;
1006
699
  AggregationFunction: Omit<ComponentFramework.PropertyTypes.EnumProperty<AggregationFunction | null>, 'type'>;
700
+ AggregatedValue: IDecimalNumberProperty | IWholeNumberProperty;
1007
701
  Column: {
1008
702
  raw: IColumn;
1009
703
  };
704
+ /**
705
+ * This dataset instance is always the main dataset, even if the current cell is being rendered via a child data provider.
706
+ * You can access the child DataProvider via the `getDataProvider()` method on the record instance.
707
+ */
1010
708
  Dataset: {
1011
709
  raw: IDataset;
1012
710
  };
1013
711
  Record: {
1014
712
  raw: IRecord;
1015
713
  };
1016
- RecordCommands?: {
1017
- raw: ICommand[];
1018
- };
714
+ PrefixIcon: IStringProperty;
715
+ SuffixIcon: IStringProperty;
1019
716
  }
1020
- interface IOptionSetProps {
1021
- containerProps: React.HTMLAttributes<HTMLDivElement>;
1022
- onGetOptionProps: (props: IOptionProps) => IOptionProps;
1023
- }
1024
- interface IOptionProps {
1025
- containerProps: ThemeProviderProps;
1026
- option: ComponentFramework.PropertyHelper.OptionMetadata;
1027
- textProps: ITextProps;
717
+ interface IGridCellRendererComponentProps {
718
+ onRender: (props: IComponentProps, defaultRender: (props: IComponentProps) => React.ReactElement) => React.ReactElement;
1028
719
  }
1029
- interface IRecordCommandsProps {
1030
- containerProps: ThemeProviderProps;
1031
- commandBarProps: ICommandBarProps;
720
+ interface IComponentProps {
721
+ container: ThemeProviderProps;
722
+ onRenderContentContainer: (props: IContentContainerProps, defaultRender: (props: IContentContainerProps) => React.ReactElement) => React.ReactElement;
723
+ onRenderAggregationLabel: (props: ILabelProps, defaultRender: (props: ILabelProps) => React.ReactElement) => React.ReactElement;
724
+ }
725
+ interface IContentContainerProps {
726
+ container: React.HTMLAttributes<HTMLDivElement>;
727
+ onRenderPrefixIcon: (props: IIconProps, defaultRender: (props: IIconProps) => React.ReactElement) => React.ReactElement;
728
+ onRenderSuffixIcon: (props: IIconProps, defaultRender: (props: IIconProps) => React.ReactElement) => React.ReactElement;
729
+ onRenderInnerContainer: (props: IInnerContentContainerProps, defaultRender: (props: IInnerContentContainerProps) => React.ReactElement) => React.ReactElement;
730
+ }
731
+ interface IInnerContentContainerProps {
732
+ container: React.HTMLAttributes<HTMLDivElement>;
733
+ onRenderAggregatedValue: (props: ITextProps, defaultRender: (props: ITextProps) => React.ReactElement) => React.ReactElement;
734
+ onRenderValueContainer: (props: IValueContainerProps, defaultRender: (props: IValueContainerProps) => React.ReactElement) => React.ReactElement;
735
+ }
736
+ interface IValueContainerProps {
737
+ container: React.HTMLAttributes<HTMLDivElement>;
738
+ onRenderValue: (props: IValueRendererProps, defaultRender: (props: IValueRendererProps) => React.ReactElement) => React.ReactElement;
739
+ }
740
+ interface IValueRendererProps {
741
+ onRenderPlaceholder: (props: ITextProps, defaultRender: (props: ITextProps) => React.ReactElement) => React.ReactElement;
742
+ onRenderText: (props: ITextProps, defaultRender: (props: ITextProps) => React.ReactElement) => React.ReactElement;
743
+ onRenderLink: (props: ILinkProps, defaultRender: (props: ILinkProps) => React.ReactElement) => React.ReactElement;
744
+ onRenderFile: (props: IFileRendererProps, defaultRender: (props: IFileRendererProps) => React.ReactElement) => React.ReactElement;
745
+ onRenderColorfulOptionSet: (props: IColorfulOptionSetValueRendererProps, defaultRender: (props: IColorfulOptionSetValueRendererProps) => React.ReactElement) => React.ReactElement;
746
+ }
747
+ interface IColorfulOptionSetValueRendererProps {
748
+ container: React.HTMLAttributes<HTMLDivElement>;
749
+ onRenderOption: (props: IColorfulOptionValueRendererProps, defaultRender: (props: IColorfulOptionValueRendererProps) => React.ReactElement) => React.ReactElement;
750
+ }
751
+ interface IColorfulOptionValueRendererProps {
752
+ container: ThemeProviderProps;
753
+ onRenderText: (props: ITextProps, defaultRender: (props: ITextProps) => React.ReactElement) => React.ReactElement;
1032
754
  }
1033
- interface IGridCellRendererComponentProps {
1034
- onGetOptionSetProps: (props: IOptionSetProps) => IOptionSetProps;
1035
- onGetLinkProps: (props: ILinkProps) => ILinkProps;
1036
- onGetRecordCommandsProps: (props: IRecordCommandsProps) => IRecordCommandsProps;
1037
- onRenderContent: (defaultRenderer: () => JSX.Element) => JSX.Element;
1038
- onRenderAggregationLabel: (props: ILabelProps, defaultRenderer: (props: ILabelProps) => React.ReactElement) => React.ReactElement;
1039
- rootContainerProps: ThemeProviderProps;
1040
- prefixSuffixWrapperProps: React.HTMLAttributes<HTMLDivElement>;
1041
- contentWrapperProps: React.HTMLAttributes<HTMLDivElement>;
1042
- textProps: ITextProps;
1043
- fileProps: {
1044
- containerProps: React.HTMLAttributes<HTMLDivElement>;
1045
- iconProps: Omit<IIconProps, 'iconName'> & {
1046
- onGetIconName: (iconName: string) => string;
1047
- };
1048
- imageProps: Omit<IImageProps, 'src'> & {
1049
- onGetSrc: (src: string) => string;
1050
- };
1051
- loadingProps: {
1052
- spinnerProps: ISpinnerProps;
1053
- };
1054
- };
755
+ interface IFileRendererProps {
756
+ container: React.HTMLAttributes<HTMLDivElement>;
757
+ onRenderFileAttachmentIcon: (props: IIconProps, defaultRender: (props: IIconProps) => React.ReactElement) => React.ReactElement;
758
+ onRenderImageThumbnail: (props: IImageProps, defaultRender: (props: IImageProps) => React.ReactElement) => React.ReactElement;
759
+ onRenderLoading: (props: ISpinnerProps, defaultRender: (props: ISpinnerProps) => React.ReactElement) => React.ReactElement;
760
+ onRenderLink: (props: ILinkProps, defaultRender: (props: ILinkProps) => React.ReactElement) => React.ReactElement;
1055
761
  }
1056
762
 
1057
763
  declare const GridCellRenderer: (props: IGridCellRenderer) => JSX.Element;
@@ -1239,6 +945,7 @@ interface IOptions {
1239
945
  onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
1240
946
  onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;
1241
947
  onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;
948
+ onIsLoading?: () => boolean;
1242
949
  };
1243
950
  }
1244
951
  declare class NestedControl {
@@ -1259,7 +966,8 @@ declare class NestedControl {
1259
966
  private _container;
1260
967
  private _hasControlBeenPatched;
1261
968
  constructor(options: IOptions);
1262
- getProps(): IControl<IParameters$1, any, any, any>;
969
+ getProps(): IControl<IParameters, any, any, any>;
970
+ getControlInstance(): ComponentFramework.StandardControl<any, any, ComponentFramework.IEventBag> | null;
1263
971
  refreshProps(): any;
1264
972
  getParameters(): {
1265
973
  [name: string]: IProperty;
@@ -1312,7 +1020,7 @@ declare const getDefaultNestedControlRendererTranslations: () => {
1312
1020
  type ControlNameOptions = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'Lookup' | 'Decimal' | 'Duration' | 'DateTime' | 'GridCellRenderer' | (string & {});
1313
1021
  interface INestedControlRenderer extends IControl<INestedControlRendererParameters, IOutputs$1, ReturnType<typeof getDefaultNestedControlRendererTranslations>, INestedControlRendererComponentProps> {
1314
1022
  }
1315
- interface INestedControlRendererParameters extends IParameters$1 {
1023
+ interface INestedControlRendererParameters extends IParameters {
1316
1024
  /**
1317
1025
  * Specifies the name of the control to be rendered. This can be either a custom PCF control or a base control.
1318
1026
  */
@@ -1368,6 +1076,10 @@ interface INestedControlRendererComponentProps {
1368
1076
  * Callback function that allows you to override the default control unmount behavior.
1369
1077
  */
1370
1078
  onOverrideUnmount: (control: NestedControl, defaultUnmount: () => void) => void;
1079
+ /**
1080
+ * Can be used to override the loading state of the control.
1081
+ */
1082
+ onOverrideIsLoading: () => boolean;
1371
1083
  }
1372
1084
  interface IBinding {
1373
1085
  /**
@@ -1501,4 +1213,278 @@ interface IDurationOutputs extends IOutputs$1 {
1501
1213
 
1502
1214
  declare const Duration: (props: IDuration) => JSX.Element;
1503
1215
 
1504
- export { BaseControl, BaseControls, ControlTheme, DatasetAdapter, DatasetControl, DatasetPaging, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDatasetControlComponentProps, IDatasetPaging, IDatasetPagingParameters, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridCellRenderer, IGridCellRendererComponentProps, IGridCellRendererParameters, IGridComponentProps, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionProps, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOptionSetProps, IOutputs, IParameters$1 as IParameters, IProperty, IQuickFindProps, IRecordCommandsProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, Paging, TextField, ThemeWrapper, TwoOptions, VirtualDatasetAdapter, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
1216
+ interface IGridInlineRibbon extends IControl<IRibbonParameters, any, any, IGridInlineRibbonComponentProps> {
1217
+ }
1218
+ interface IRibbonParameters {
1219
+ Dataset: {
1220
+ raw: IDataset;
1221
+ };
1222
+ Record: {
1223
+ raw: IRecord;
1224
+ };
1225
+ /**
1226
+ * A comma-separated list of command button IDs to display in the ribbon. If specified, only these buttons will be shown.
1227
+ * The button still might not be visible if it's Enable Rules evaluate to false
1228
+ */
1229
+ CommandButtonIds?: IStringProperty;
1230
+ }
1231
+ interface IGridInlineRibbonComponentProps {
1232
+ onRender: (props: IContainerProps, defaultRender: (props: IContainerProps) => JSX.Element) => JSX.Element;
1233
+ }
1234
+ interface IContainerProps {
1235
+ container: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
1236
+ onRenderRibbon: IRibbonComponentProps['onRender'];
1237
+ }
1238
+
1239
+ declare const GridInlineRibbon: (props: IGridInlineRibbon) => JSX.Element;
1240
+
1241
+ interface IInputs$1 {
1242
+ Grid: ComponentFramework.PropertyTypes.DataSet;
1243
+ RibbonGroupingDataset?: ComponentFramework.PropertyTypes.DataSet;
1244
+ EnableQuickFind?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1245
+ Columns?: ComponentFramework.PropertyTypes.StringProperty;
1246
+ Height?: ComponentFramework.PropertyTypes.StringProperty;
1247
+ RowHeight?: ComponentFramework.PropertyTypes.WholeNumberProperty;
1248
+ EnableEditing?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1249
+ EnablePagination?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1250
+ EnableFiltering?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1251
+ EnableSorting?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1252
+ EnableNavigation?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1253
+ EnableOptionSetColors?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1254
+ EnableAggregation?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1255
+ EnableGrouping?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1256
+ EnableAutoSave?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1257
+ EnableCommandBar?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1258
+ EnableZebra?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1259
+ EnableGroupedColumnsPinning?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1260
+ EnablePageSizeSwitcher?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1261
+ EnableRecordCount?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1262
+ HomePageGridClientApiRibbonButtonId?: ComponentFramework.PropertyTypes.StringProperty;
1263
+ InlineRibbonButtonIds?: ComponentFramework.PropertyTypes.StringProperty;
1264
+ DefaultExpandedGroupLevel?: ComponentFramework.PropertyTypes.WholeNumberProperty;
1265
+ SelectableRows?: ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">;
1266
+ GroupingType?: ComponentFramework.PropertyTypes.EnumProperty<"nested" | "flat">;
1267
+ ClientApiWebresourceName?: ComponentFramework.PropertyTypes.StringProperty;
1268
+ ClientApiFunctionName?: ComponentFramework.PropertyTypes.StringProperty;
1269
+ }
1270
+ interface IDatasetAdapterOptions {
1271
+ onInitialize?: () => Promise<void>;
1272
+ }
1273
+ interface IOutputs$3 {
1274
+ DatasetControl?: any;
1275
+ }
1276
+ declare class DatasetAdapter {
1277
+ private _container;
1278
+ private _dataset;
1279
+ private _context;
1280
+ private _client;
1281
+ private _scheduleForRefresh;
1282
+ private _options?;
1283
+ private _state;
1284
+ private _datasetControl;
1285
+ constructor(options?: IDatasetAdapterOptions);
1286
+ init(context: ComponentFramework.Context<IInputs$1, IOutputs$3>, container: HTMLDivElement, state: ComponentFramework.Dictionary): void;
1287
+ updateView(context: ComponentFramework.Context<IInputs$1, IOutputs$3>, onRenderComponent: (datasetControlProps: Omit<IDatasetControlProps, 'onGetControlComponent'>) => void): void;
1288
+ getDataset(): IDataset;
1289
+ destroy(): void;
1290
+ private _getDatasetControlParameters;
1291
+ private _getDatasetDynamicData;
1292
+ private _isAutoSaveEnabled;
1293
+ private _isEditingEnabled;
1294
+ private _getHeight;
1295
+ private _syncPowerAppsDatasetOnNativeRefresh;
1296
+ private _syncPowerAppsDatasetSetup;
1297
+ private _flushInvalidState;
1298
+ private _harmonizeFetchXml;
1299
+ private _parseQueryKey;
1300
+ private _getColumns;
1301
+ private _getMergedColumns;
1302
+ private _getFullHeightStyles;
1303
+ private _getCurrentSearchQuery;
1304
+ private _isHomePageGrid;
1305
+ private _getPowerAppsDatasetProvider;
1306
+ }
1307
+
1308
+ interface IOutputs$2 {
1309
+ DatasetControl?: any;
1310
+ }
1311
+ interface IInputs {
1312
+ Data: ComponentFramework.PropertyTypes.StringProperty | {
1313
+ raw: IRawRecord[];
1314
+ };
1315
+ EntityMetadata: ComponentFramework.PropertyTypes.StringProperty;
1316
+ DataProvider: ComponentFramework.PropertyTypes.EnumProperty<"Memory" | "FetchXml">;
1317
+ EnableQuickFind?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1318
+ Columns?: ComponentFramework.PropertyTypes.StringProperty;
1319
+ Height?: ComponentFramework.PropertyTypes.StringProperty;
1320
+ RowHeight?: ComponentFramework.PropertyTypes.WholeNumberProperty;
1321
+ EnableEditing?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1322
+ EnablePagination?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1323
+ EnableFiltering?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1324
+ EnableSorting?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1325
+ EnableNavigation?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1326
+ EnableOptionSetColors?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1327
+ EnableAggregation?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1328
+ EnableGrouping?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1329
+ EnableAutoSave?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1330
+ EnableCommandBar?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1331
+ EnableZebra?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1332
+ EnableGroupedColumnsPinning?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1333
+ EnablePageSizeSwitcher?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1334
+ EnableRecordCount?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1335
+ HomePageGridClientApiRibbonButtonId?: ComponentFramework.PropertyTypes.StringProperty;
1336
+ InlineRibbonButtonIds?: ComponentFramework.PropertyTypes.StringProperty;
1337
+ DefaultExpandedGroupLevel?: ComponentFramework.PropertyTypes.WholeNumberProperty;
1338
+ SelectableRows?: ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">;
1339
+ GroupingType?: ComponentFramework.PropertyTypes.EnumProperty<"nested" | "flat">;
1340
+ IsLocalHarnessDebugMode?: ComponentFramework.PropertyTypes.EnumProperty<"true" | "false">;
1341
+ }
1342
+ interface IVirtualDatasetAdapterOptions {
1343
+ /**
1344
+ * Runs a promise that is awaited when the dataset control is initialized, before loading the first data.
1345
+ */
1346
+ onInitialize?: () => Promise<void>;
1347
+ /**
1348
+ * If provided, this function is called when the dataset is initialized and awaited before loading first data.
1349
+ */
1350
+ CustomDataProviderClass?: new (...args: any) => IDataProvider;
1351
+ }
1352
+ /**
1353
+ * Helper class that holds boilerplate code for handling a virtual dataset in PCF, like syncing data, columns, and metadata from parameters.
1354
+ *
1355
+ */
1356
+ declare class VirtualDatasetAdapter {
1357
+ private _context;
1358
+ private _dataset;
1359
+ private _container;
1360
+ private _options?;
1361
+ private _initialized;
1362
+ private _state;
1363
+ private _datasetControl;
1364
+ constructor(options?: IVirtualDatasetAdapterOptions);
1365
+ init(context: ComponentFramework.Context<IInputs, IOutputs$2>, container: HTMLDivElement, state: ComponentFramework.Dictionary): this | undefined;
1366
+ /**
1367
+ * @param {?() => void} [onRenderEmptyData] - Only called when the data parameter is set to `null`. This should usually not happen since it's a required parameter, but Power Apps can pass null in certain scenarios (for example on a form with new record).
1368
+ */
1369
+ updateView(context: ComponentFramework.Context<IInputs, IOutputs$2>, onRenderComponent: (datasetControlProps: Omit<IDatasetControlProps, 'onGetControlComponent'>) => void, onRenderEmptyData?: () => void): void;
1370
+ getDataset(): Dataset<IDataProvider>;
1371
+ getDatasetControl(): IDatasetControl;
1372
+ private _isEditingEnabled;
1373
+ private _isAutoSaveEnabled;
1374
+ private _isCommandBarEnabled;
1375
+ private _createDummyDatasetControl;
1376
+ private _getDatasetControlParameters;
1377
+ private _getDataProviderInstance;
1378
+ private _getColumns;
1379
+ private _getMergedColumns;
1380
+ private _getEntityMetadata;
1381
+ private _getFullTabStyles;
1382
+ }
1383
+
1384
+ interface IOutputs$1 {
1385
+ [key: string]: any;
1386
+ }
1387
+ interface IContext extends ComponentFramework.Context<any> {
1388
+ fluentDesignLanguage?: IFluentDesignState;
1389
+ }
1390
+ interface IControl<TParameters extends IParameters, TOutputs, TTranslations, TComponentProps> {
1391
+ context: IContext;
1392
+ parameters: TParameters;
1393
+ translations?: TTranslations;
1394
+ state?: ComponentFramework.Dictionary;
1395
+ /**
1396
+ * Fires when the component changes the parameter value. It is usually fired directly after the change occurs in the value.
1397
+ * Exceptions are input based component where it fires on the blur event.
1398
+ */
1399
+ onNotifyOutputChanged?: (outputs: TOutputs) => void;
1400
+ /**
1401
+ * Allows you to override the props of the internal component that the control uses for UI rendering. Might not work on every control. ONLY USE WHEN ABSOLUTELY NECESSARY AND CONSULT YOUR INTENTIONS WITH BRY!
1402
+ */
1403
+ onOverrideComponentProps?: (props: TComponentProps) => TComponentProps;
1404
+ }
1405
+ type ITranslations<T> = {
1406
+ [Property in keyof T]: T[Property] extends string[] ? string[] : string;
1407
+ };
1408
+
1409
+ interface IOutputs {
1410
+ [key: string]: any;
1411
+ }
1412
+ interface IParameters {
1413
+ [key: string]: IProperty | undefined | any;
1414
+ }
1415
+
1416
+ type ITranslation<T> = {
1417
+ [Property in keyof Required<T>]: (variables?: any) => string;
1418
+ };
1419
+ interface IDefaultTranslations {
1420
+ [LCID: number]: string | string[];
1421
+ [key: string]: any;
1422
+ }
1423
+ interface ILabelsOptions<TTranslations> {
1424
+ languageId: number;
1425
+ translations?: TTranslations;
1426
+ defaultTranslations?: IDefaultTranslations;
1427
+ }
1428
+ declare const useControlLabels: <TTranslations>(options: ILabelsOptions<TTranslations>) => Required<ITranslation<TTranslations>>;
1429
+
1430
+ interface IControlController<TTranslations, TOutputs> {
1431
+ labels: Required<ITranslation<TTranslations>>;
1432
+ sizing: {
1433
+ width?: number;
1434
+ height?: number;
1435
+ };
1436
+ className: string;
1437
+ theme: ITheme;
1438
+ onNotifyOutputChanged: (outputs: TOutputs) => void;
1439
+ }
1440
+ /**
1441
+ * Provides automatic checking if the given outputs are different from the provided inputs. Use the provided method any time you want
1442
+ * to notify the framework that you wish to write changes. The hook will notify the framework only if the provided output differs from the current inputs.
1443
+ */
1444
+ declare const useControl: <TParameters extends IParameters, TOutputs extends IOutputs, TTranslations>(name: string, props: IControl<TParameters, TOutputs, TTranslations, any>, defaultTranslations?: IDefaultTranslations) => IControlController<TTranslations, TOutputs>;
1445
+
1446
+ declare const useControlSizing: (mode: ComponentFramework.Mode) => {
1447
+ height?: number;
1448
+ width?: number;
1449
+ };
1450
+
1451
+ declare const useFocusIn: (ref: React.RefObject<HTMLElement>, delay?: number) => boolean;
1452
+
1453
+ /**
1454
+ * Description
1455
+ * @param {any} value:any
1456
+ * @returns {any}
1457
+ */
1458
+ interface IControlOptions {
1459
+ defaultTranslations?: IDefaultTranslations;
1460
+ /**
1461
+ * Formatting function that will format the bound value every time a new one comes from the props.
1462
+ */
1463
+ formatter?: (value: any) => any;
1464
+ valueExtractor?: (value: any) => any;
1465
+ }
1466
+ /**
1467
+ * Use when working with components that need to store value changes internally before triggering `notifyOutputChanged`.
1468
+ * An example of this is a standard Decimal component - we do not want to trigger `notifyOutputChanged` on every value change,
1469
+ * since this would trigger decimal validation on every keystroke which would result in a bad UX. In this case, the `notifyOutputChanged` should
1470
+ * be triggered when the user looses focus on the component (`onBlur` event).
1471
+ * @returns {[]} The hook returns an array with three props. First `value` prop is a value that will will always be in sync with the value that comes from the `value` parameter.
1472
+ * Use this for displaying the up-to-date value to the user.
1473
+ * Second prop contains the translations for this component.
1474
+ *
1475
+ * Third prop is a method that can be used to change the current value. The new value will get propagated to the `value` variable returned from this hook. This method wont propagate the value to the framework.
1476
+ *
1477
+ * The last prop is a method that will notify the framework that you wish to write changes.
1478
+ * The method will notify the framework only if the provided output differs from the current inputs.
1479
+ */
1480
+ interface IInputBasedControlController<TValue, TTranslations, TOutputs> extends IControlController<TTranslations, TOutputs> {
1481
+ value: TValue;
1482
+ setValue: (value: TValue) => void;
1483
+ }
1484
+ declare const useInputBasedControl: <TValue, TParameters extends IInputParameters, TOutputs extends IOutputs$1, TTranslations>(name: string, props: IControl<TParameters, TOutputs, TTranslations, any>, options?: IControlOptions) => IInputBasedControlController<TValue, TTranslations, TOutputs>;
1485
+
1486
+ declare const useMouseOver: (ref: React.RefObject<HTMLElement>) => boolean;
1487
+
1488
+ declare const useEventEmitter: <T extends { [K in keyof T]: (...args: any[]) => any; }>(emitter: IEventEmitter<T>, event: keyof T | (keyof T)[], callback: T[keyof T]) => void;
1489
+
1490
+ export { BaseControl, BaseControls, ControlTheme, DatasetAdapter, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, GridInlineRibbon, IBinding, IColorfulOptionSetValueRendererProps, IColorfulOptionValueRendererProps, IComponentProps$1 as IComponentProps, IContext, IControl, IControlController, IControlStates, IDatasetControlComponentProps, IDatasetControlParameters, IDatasetControlProps, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFileRendererProps, IFluentDesignState, IFooterProps, IGrid, IGridCellRenderer, IGridCellRendererComponentProps, IGridCellRendererParameters, IGridComponentProps, IGridInlineRibbon, IGridOutputs, IGridParameters, IHeaderProps, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, INestedControlRenderer, INestedControlRendererComponentProps, INestedControlRendererParameters, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IPaginationProps, IParameters, IProperty, IQuickFindProps, IRibbonParameters, IRibbonQuickFindWrapperProps, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IValueRendererProps, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, VirtualDatasetAdapter, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useEventEmitter, useFocusIn, useInputBasedControl, useLookup, useMouseOver };