@talxis/base-controls 0.0.1

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 (516) hide show
  1. package/README.md +41 -0
  2. package/dist/components/DatasetControl/DatasetControl.d.ts +3 -0
  3. package/dist/components/DatasetControl/DatasetControl.js +72 -0
  4. package/dist/components/DatasetControl/DatasetControl.js.map +1 -0
  5. package/dist/components/DatasetControl/Paging/DatasetPaging.d.ts +3 -0
  6. package/dist/components/DatasetControl/Paging/DatasetPaging.js +69 -0
  7. package/dist/components/DatasetControl/Paging/DatasetPaging.js.map +1 -0
  8. package/dist/components/DatasetControl/Paging/Paging.d.ts +26 -0
  9. package/dist/components/DatasetControl/Paging/Paging.js +80 -0
  10. package/dist/components/DatasetControl/Paging/Paging.js.map +1 -0
  11. package/dist/components/DatasetControl/Paging/index.d.ts +3 -0
  12. package/dist/components/DatasetControl/Paging/index.js +3 -0
  13. package/dist/components/DatasetControl/Paging/index.js.map +1 -0
  14. package/dist/components/DatasetControl/Paging/interfaces.d.ts +16 -0
  15. package/dist/components/DatasetControl/Paging/styles.d.ts +35 -0
  16. package/dist/components/DatasetControl/Paging/styles.js +41 -0
  17. package/dist/components/DatasetControl/Paging/styles.js.map +1 -0
  18. package/dist/components/DatasetControl/Paging/translations.d.ts +38 -0
  19. package/dist/components/DatasetControl/Paging/translations.js +14 -0
  20. package/dist/components/DatasetControl/Paging/translations.js.map +1 -0
  21. package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +13 -0
  22. package/dist/components/DatasetControl/QuickFind/QuickFind.js +59 -0
  23. package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -0
  24. package/dist/components/DatasetControl/QuickFind/styles.d.ts +8 -0
  25. package/dist/components/DatasetControl/QuickFind/styles.js +15 -0
  26. package/dist/components/DatasetControl/QuickFind/styles.js.map +1 -0
  27. package/dist/components/DatasetControl/index.d.ts +3 -0
  28. package/dist/components/DatasetControl/index.js +4 -0
  29. package/dist/components/DatasetControl/index.js.map +1 -0
  30. package/dist/components/DatasetControl/interfaces.d.ts +32 -0
  31. package/dist/components/DatasetControl/styles.d.ts +18 -0
  32. package/dist/components/DatasetControl/styles.js +29 -0
  33. package/dist/components/DatasetControl/styles.js.map +1 -0
  34. package/dist/components/DatasetControl/translations.d.ts +18 -0
  35. package/dist/components/DatasetControl/translations.js +9 -0
  36. package/dist/components/DatasetControl/translations.js.map +1 -0
  37. package/dist/components/DateTime/DateTime.d.ts +3 -0
  38. package/dist/components/DateTime/DateTime.js +149 -0
  39. package/dist/components/DateTime/DateTime.js.map +1 -0
  40. package/dist/components/DateTime/components/Calendar.d.ts +17 -0
  41. package/dist/components/DateTime/components/Calendar.js +63 -0
  42. package/dist/components/DateTime/components/Calendar.js.map +1 -0
  43. package/dist/components/DateTime/hooks/useDateTime.d.ts +32 -0
  44. package/dist/components/DateTime/hooks/useDateTime.js +150 -0
  45. package/dist/components/DateTime/hooks/useDateTime.js.map +1 -0
  46. package/dist/components/DateTime/index.d.ts +3 -0
  47. package/dist/components/DateTime/index.js +3 -0
  48. package/dist/components/DateTime/index.js.map +1 -0
  49. package/dist/components/DateTime/interfaces.d.ts +23 -0
  50. package/dist/components/DateTime/styles.d.ts +31 -0
  51. package/dist/components/DateTime/styles.js +37 -0
  52. package/dist/components/DateTime/styles.js.map +1 -0
  53. package/dist/components/DateTime/translations.d.ts +19 -0
  54. package/dist/components/DateTime/translations.js +23 -0
  55. package/dist/components/DateTime/translations.js.map +1 -0
  56. package/dist/components/Decimal/Decimal.d.ts +3 -0
  57. package/dist/components/Decimal/Decimal.js +204 -0
  58. package/dist/components/Decimal/Decimal.js.map +1 -0
  59. package/dist/components/Decimal/components/ArrowButtons.d.ts +10 -0
  60. package/dist/components/Decimal/components/ArrowButtons.js +38 -0
  61. package/dist/components/Decimal/components/ArrowButtons.js.map +1 -0
  62. package/dist/components/Decimal/components/styles.d.ts +20 -0
  63. package/dist/components/Decimal/components/styles.js +26 -0
  64. package/dist/components/Decimal/components/styles.js.map +1 -0
  65. package/dist/components/Decimal/index.d.ts +2 -0
  66. package/dist/components/Decimal/index.js +2 -0
  67. package/dist/components/Decimal/index.js.map +1 -0
  68. package/dist/components/Decimal/interfaces.d.ts +13 -0
  69. package/dist/components/Duration/Duration.d.ts +3 -0
  70. package/dist/components/Duration/Duration.js +155 -0
  71. package/dist/components/Duration/Duration.js.map +1 -0
  72. package/dist/components/Duration/durationOptions.d.ts +2 -0
  73. package/dist/components/Duration/durationOptions.js +27 -0
  74. package/dist/components/Duration/durationOptions.js.map +1 -0
  75. package/dist/components/Duration/index.d.ts +2 -0
  76. package/dist/components/Duration/index.js +2 -0
  77. package/dist/components/Duration/index.js.map +1 -0
  78. package/dist/components/Duration/interfaces.d.ts +13 -0
  79. package/dist/components/Duration/translations.d.ts +26 -0
  80. package/dist/components/Duration/translations.js +31 -0
  81. package/dist/components/Duration/translations.js.map +1 -0
  82. package/dist/components/Grid/Grid.d.ts +3 -0
  83. package/dist/components/Grid/Grid.js +37 -0
  84. package/dist/components/Grid/Grid.js.map +1 -0
  85. package/dist/components/Grid/GridContext.d.ts +3 -0
  86. package/dist/components/Grid/GridContext.js +6 -0
  87. package/dist/components/Grid/GridContext.js.map +1 -0
  88. package/dist/components/Grid/aggregation/Aggregation.d.ts +18 -0
  89. package/dist/components/Grid/aggregation/Aggregation.js +129 -0
  90. package/dist/components/Grid/aggregation/Aggregation.js.map +1 -0
  91. package/dist/components/Grid/constants.d.ts +1 -0
  92. package/dist/components/Grid/constants.js +4 -0
  93. package/dist/components/Grid/constants.js.map +1 -0
  94. package/dist/components/Grid/core/components/AgGrid/AgGrid.d.ts +5 -0
  95. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +203 -0
  96. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -0
  97. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.d.ts +2 -0
  98. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js +12 -0
  99. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js.map +1 -0
  100. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.d.ts +18 -0
  101. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js +23 -0
  102. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js.map +1 -0
  103. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.d.ts +2 -0
  104. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js +10 -0
  105. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js.map +1 -0
  106. package/dist/components/Grid/core/components/AgGrid/context.d.ts +3 -0
  107. package/dist/components/Grid/core/components/AgGrid/context.js +6 -0
  108. package/dist/components/Grid/core/components/AgGrid/context.js.map +1 -0
  109. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +52 -0
  110. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +343 -0
  111. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -0
  112. package/dist/components/Grid/core/components/AgGrid/model/Comparator.d.ts +9 -0
  113. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js +86 -0
  114. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +1 -0
  115. package/dist/components/Grid/core/components/AgGrid/styles.d.ts +72 -0
  116. package/dist/components/Grid/core/components/AgGrid/styles.js +78 -0
  117. package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -0
  118. package/dist/components/Grid/core/components/Cell/Cell.d.ts +13 -0
  119. package/dist/components/Grid/core/components/Cell/Cell.js +158 -0
  120. package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -0
  121. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +8 -0
  122. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +230 -0
  123. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -0
  124. package/dist/components/Grid/core/components/Cell/CellContent/styles.d.ts +33 -0
  125. package/dist/components/Grid/core/components/Cell/CellContent/styles.js +39 -0
  126. package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +1 -0
  127. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.d.ts +12 -0
  128. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js +112 -0
  129. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +1 -0
  130. package/dist/components/Grid/core/components/Cell/Notifications/styles.d.ts +39 -0
  131. package/dist/components/Grid/core/components/Cell/Notifications/styles.js +46 -0
  132. package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +1 -0
  133. package/dist/components/Grid/core/components/Cell/styles.d.ts +40 -0
  134. package/dist/components/Grid/core/components/Cell/styles.js +59 -0
  135. package/dist/components/Grid/core/components/Cell/styles.js.map +1 -0
  136. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.d.ts +6 -0
  137. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +61 -0
  138. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -0
  139. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.d.ts +2 -0
  140. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +50 -0
  141. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -0
  142. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts +14 -0
  143. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js +20 -0
  144. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +1 -0
  145. package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +42 -0
  146. package/dist/components/Grid/core/components/ColumnHeader/styles.js +48 -0
  147. package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +1 -0
  148. package/dist/components/Grid/core/components/Dialog/Constants.d.ts +2 -0
  149. package/dist/components/Grid/core/components/Dialog/Constants.js +9 -0
  150. package/dist/components/Grid/core/components/Dialog/Constants.js.map +1 -0
  151. package/dist/components/Grid/core/components/Dialog/Styles.d.ts +2 -0
  152. package/dist/components/Grid/core/components/Dialog/Styles.js +61 -0
  153. package/dist/components/Grid/core/components/Dialog/Styles.js.map +1 -0
  154. package/dist/components/Grid/core/components/Dialog/index.d.ts +4 -0
  155. package/dist/components/Grid/core/components/Dialog/index.js +16 -0
  156. package/dist/components/Grid/core/components/Dialog/index.js.map +1 -0
  157. package/dist/components/Grid/core/components/Dialog/interfaces/index.d.ts +6 -0
  158. package/dist/components/Grid/core/components/Dialog/interfaces/index.js +2 -0
  159. package/dist/components/Grid/core/components/Dialog/interfaces/index.js.map +1 -0
  160. package/dist/components/Grid/core/components/Save/Save.d.ts +2 -0
  161. package/dist/components/Grid/core/components/Save/Save.js +59 -0
  162. package/dist/components/Grid/core/components/Save/Save.js.map +1 -0
  163. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.d.ts +7 -0
  164. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +73 -0
  165. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -0
  166. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +11 -0
  167. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +231 -0
  168. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -0
  169. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.d.ts +39 -0
  170. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js +45 -0
  171. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js.map +1 -0
  172. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.d.ts +31 -0
  173. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js +37 -0
  174. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js.map +1 -0
  175. package/dist/components/Grid/core/components/Save/styles.d.ts +35 -0
  176. package/dist/components/Grid/core/components/Save/styles.js +42 -0
  177. package/dist/components/Grid/core/components/Save/styles.js.map +1 -0
  178. package/dist/components/Grid/core/controllers/useGridController.d.ts +7 -0
  179. package/dist/components/Grid/core/controllers/useGridController.js +29 -0
  180. package/dist/components/Grid/core/controllers/useGridController.js.map +1 -0
  181. package/dist/components/Grid/core/enums/ConditionOperator.d.ts +48 -0
  182. package/dist/components/Grid/core/enums/ConditionOperator.js +52 -0
  183. package/dist/components/Grid/core/enums/ConditionOperator.js.map +1 -0
  184. package/dist/components/Grid/core/enums/DataType.d.ts +25 -0
  185. package/dist/components/Grid/core/enums/DataType.js +30 -0
  186. package/dist/components/Grid/core/enums/DataType.js.map +1 -0
  187. package/dist/components/Grid/core/hooks/useGridInstance.d.ts +2 -0
  188. package/dist/components/Grid/core/hooks/useGridInstance.js +9 -0
  189. package/dist/components/Grid/core/hooks/useGridInstance.js.map +1 -0
  190. package/dist/components/Grid/core/hooks/useRefreshCallback.d.ts +2 -0
  191. package/dist/components/Grid/core/hooks/useRefreshCallback.js +20 -0
  192. package/dist/components/Grid/core/hooks/useRefreshCallback.js.map +1 -0
  193. package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +13 -0
  194. package/dist/components/Grid/core/interfaces/IGridContext.d.ts +4 -0
  195. package/dist/components/Grid/core/model/Grid.d.ts +81 -0
  196. package/dist/components/Grid/core/model/Grid.js +513 -0
  197. package/dist/components/Grid/core/model/Grid.js.map +1 -0
  198. package/dist/components/Grid/core/model/GridDependency.d.ts +13 -0
  199. package/dist/components/Grid/core/model/GridDependency.js +28 -0
  200. package/dist/components/Grid/core/model/GridDependency.js.map +1 -0
  201. package/dist/components/Grid/core/services/KeyListener.d.ts +12 -0
  202. package/dist/components/Grid/core/services/KeyListener.js +31 -0
  203. package/dist/components/Grid/core/services/KeyListener.js.map +1 -0
  204. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.d.ts +8 -0
  205. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js +59 -0
  206. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js.map +1 -0
  207. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.d.ts +7 -0
  208. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js +56 -0
  209. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js.map +1 -0
  210. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.d.ts +7 -0
  211. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +73 -0
  212. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +1 -0
  213. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.d.ts +7 -0
  214. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js +90 -0
  215. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js.map +1 -0
  216. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +48 -0
  217. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js +146 -0
  218. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js.map +1 -0
  219. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.d.ts +11 -0
  220. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js +53 -0
  221. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +1 -0
  222. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.d.ts +9 -0
  223. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js +31 -0
  224. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +1 -0
  225. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.d.ts +10 -0
  226. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js +294 -0
  227. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -0
  228. package/dist/components/Grid/filtering/components/FilterCallout/styles.d.ts +35 -0
  229. package/dist/components/Grid/filtering/components/FilterCallout/styles.js +40 -0
  230. package/dist/components/Grid/filtering/components/FilterCallout/styles.js.map +1 -0
  231. package/dist/components/Grid/filtering/constants.d.ts +5 -0
  232. package/dist/components/Grid/filtering/constants.js +53 -0
  233. package/dist/components/Grid/filtering/constants.js.map +1 -0
  234. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.d.ts +21 -0
  235. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js +44 -0
  236. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js.map +1 -0
  237. package/dist/components/Grid/filtering/model/Condition.d.ts +49 -0
  238. package/dist/components/Grid/filtering/model/Condition.js +347 -0
  239. package/dist/components/Grid/filtering/model/Condition.js.map +1 -0
  240. package/dist/components/Grid/filtering/model/Filtering.d.ts +11 -0
  241. package/dist/components/Grid/filtering/model/Filtering.js +78 -0
  242. package/dist/components/Grid/filtering/model/Filtering.js.map +1 -0
  243. package/dist/components/Grid/filtering/utils/FilteringUtilts.d.ts +34 -0
  244. package/dist/components/Grid/filtering/utils/FilteringUtilts.js +195 -0
  245. package/dist/components/Grid/filtering/utils/FilteringUtilts.js.map +1 -0
  246. package/dist/components/Grid/index.d.ts +2 -0
  247. package/dist/components/Grid/index.js +2 -0
  248. package/dist/components/Grid/index.js.map +1 -0
  249. package/dist/components/Grid/interfaces.d.ts +36 -0
  250. package/dist/components/Grid/selection/model/Selection.d.ts +12 -0
  251. package/dist/components/Grid/selection/model/Selection.js +54 -0
  252. package/dist/components/Grid/selection/model/Selection.js.map +1 -0
  253. package/dist/components/Grid/sorting/Sorting.d.ts +10 -0
  254. package/dist/components/Grid/sorting/Sorting.js +31 -0
  255. package/dist/components/Grid/sorting/Sorting.js.map +1 -0
  256. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.d.ts +8 -0
  257. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +157 -0
  258. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -0
  259. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.d.ts +9 -0
  260. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js +15 -0
  261. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js.map +1 -0
  262. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +9 -0
  263. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +22 -0
  264. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js.map +1 -0
  265. package/dist/components/Grid/translations.d.ts +366 -0
  266. package/dist/components/Grid/translations.js +99 -0
  267. package/dist/components/Grid/translations.js.map +1 -0
  268. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +2 -0
  269. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +11 -0
  270. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +1 -0
  271. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +1 -0
  272. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +2 -0
  273. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +1 -0
  274. package/dist/components/GridCellRenderer/GridCellRenderer.d.ts +3 -0
  275. package/dist/components/GridCellRenderer/GridCellRenderer.js +293 -0
  276. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -0
  277. package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +5 -0
  278. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +75 -0
  279. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -0
  280. package/dist/components/GridCellRenderer/OptionSet/index.d.ts +1 -0
  281. package/dist/components/GridCellRenderer/OptionSet/index.js +2 -0
  282. package/dist/components/GridCellRenderer/OptionSet/index.js.map +1 -0
  283. package/dist/components/GridCellRenderer/OptionSet/styles.d.ts +20 -0
  284. package/dist/components/GridCellRenderer/OptionSet/styles.js +29 -0
  285. package/dist/components/GridCellRenderer/OptionSet/styles.js.map +1 -0
  286. package/dist/components/GridCellRenderer/RecordCommands/Icon.d.ts +7 -0
  287. package/dist/components/GridCellRenderer/RecordCommands/Icon.js +32 -0
  288. package/dist/components/GridCellRenderer/RecordCommands/Icon.js.map +1 -0
  289. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.d.ts +13 -0
  290. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js +103 -0
  291. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js.map +1 -0
  292. package/dist/components/GridCellRenderer/RecordCommands/styles.d.ts +13 -0
  293. package/dist/components/GridCellRenderer/RecordCommands/styles.js +32 -0
  294. package/dist/components/GridCellRenderer/RecordCommands/styles.js.map +1 -0
  295. package/dist/components/GridCellRenderer/index.d.ts +2 -0
  296. package/dist/components/GridCellRenderer/index.js +2 -0
  297. package/dist/components/GridCellRenderer/index.js.map +1 -0
  298. package/dist/components/GridCellRenderer/interfaces.d.ts +66 -0
  299. package/dist/components/GridCellRenderer/styles.d.ts +85 -0
  300. package/dist/components/GridCellRenderer/styles.js +119 -0
  301. package/dist/components/GridCellRenderer/styles.js.map +1 -0
  302. package/dist/components/GridCellRenderer/translations.d.ts +30 -0
  303. package/dist/components/GridCellRenderer/translations.js +35 -0
  304. package/dist/components/GridCellRenderer/translations.js.map +1 -0
  305. package/dist/components/GridCellRenderer/useComponentProps.d.ts +6 -0
  306. package/dist/components/GridCellRenderer/useComponentProps.js +10 -0
  307. package/dist/components/GridCellRenderer/useComponentProps.js.map +1 -0
  308. package/dist/components/Lookup/Lookup.d.ts +3 -0
  309. package/dist/components/Lookup/Lookup.js +222 -0
  310. package/dist/components/Lookup/Lookup.js.map +1 -0
  311. package/dist/components/Lookup/components/RecordCreator.d.ts +10 -0
  312. package/dist/components/Lookup/components/RecordCreator.js +37 -0
  313. package/dist/components/Lookup/components/RecordCreator.js.map +1 -0
  314. package/dist/components/Lookup/components/TargetSelector.d.ts +9 -0
  315. package/dist/components/Lookup/components/TargetSelector.js +19 -0
  316. package/dist/components/Lookup/components/TargetSelector.js.map +1 -0
  317. package/dist/components/Lookup/hooks/useFetchXml.d.ts +6 -0
  318. package/dist/components/Lookup/hooks/useFetchXml.js +52 -0
  319. package/dist/components/Lookup/hooks/useFetchXml.js.map +1 -0
  320. package/dist/components/Lookup/hooks/useLoadedEntities.d.ts +6 -0
  321. package/dist/components/Lookup/hooks/useLoadedEntities.js +20 -0
  322. package/dist/components/Lookup/hooks/useLoadedEntities.js.map +1 -0
  323. package/dist/components/Lookup/hooks/useLookup.d.ts +43 -0
  324. package/dist/components/Lookup/hooks/useLookup.js +120 -0
  325. package/dist/components/Lookup/hooks/useLookup.js.map +1 -0
  326. package/dist/components/Lookup/index.d.ts +3 -0
  327. package/dist/components/Lookup/index.js +3 -0
  328. package/dist/components/Lookup/index.js.map +1 -0
  329. package/dist/components/Lookup/interfaces.d.ts +75 -0
  330. package/dist/components/Lookup/styles.d.ts +95 -0
  331. package/dist/components/Lookup/styles.js +112 -0
  332. package/dist/components/Lookup/styles.js.map +1 -0
  333. package/dist/components/Lookup/translations.d.ts +30 -0
  334. package/dist/components/Lookup/translations.js +33 -0
  335. package/dist/components/Lookup/translations.js.map +1 -0
  336. package/dist/components/MultiSelectOptionSet/ColofulOptions/ColorfulOptions.d.ts +8 -0
  337. package/dist/components/MultiSelectOptionSet/ColofulOptions/ColorfulOptions.js +42 -0
  338. package/dist/components/MultiSelectOptionSet/ColofulOptions/ColorfulOptions.js.map +1 -0
  339. package/dist/components/MultiSelectOptionSet/ColofulOptions/styles.d.ts +17 -0
  340. package/dist/components/MultiSelectOptionSet/ColofulOptions/styles.js +24 -0
  341. package/dist/components/MultiSelectOptionSet/ColofulOptions/styles.js.map +1 -0
  342. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.d.ts +3 -0
  343. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +132 -0
  344. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -0
  345. package/dist/components/MultiSelectOptionSet/index.d.ts +2 -0
  346. package/dist/components/MultiSelectOptionSet/index.js +2 -0
  347. package/dist/components/MultiSelectOptionSet/index.js.map +1 -0
  348. package/dist/components/MultiSelectOptionSet/interfaces.d.ts +13 -0
  349. package/dist/components/MultiSelectOptionSet/styles.d.ts +31 -0
  350. package/dist/components/MultiSelectOptionSet/styles.js +42 -0
  351. package/dist/components/MultiSelectOptionSet/styles.js.map +1 -0
  352. package/dist/components/NestedControlRenderer/NestedControl.d.ts +86 -0
  353. package/dist/components/NestedControlRenderer/NestedControl.js +456 -0
  354. package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -0
  355. package/dist/components/NestedControlRenderer/NestedControlError.d.ts +4 -0
  356. package/dist/components/NestedControlRenderer/NestedControlError.js +13 -0
  357. package/dist/components/NestedControlRenderer/NestedControlError.js.map +1 -0
  358. package/dist/components/NestedControlRenderer/NestedControlRenderer.d.ts +3 -0
  359. package/dist/components/NestedControlRenderer/NestedControlRenderer.js +194 -0
  360. package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -0
  361. package/dist/components/NestedControlRenderer/index.d.ts +1 -0
  362. package/dist/components/NestedControlRenderer/index.js +2 -0
  363. package/dist/components/NestedControlRenderer/index.js.map +1 -0
  364. package/dist/components/NestedControlRenderer/interfaces.d.ts +122 -0
  365. package/dist/components/NestedControlRenderer/manifest/Control.d.ts +16 -0
  366. package/dist/components/NestedControlRenderer/manifest/Control.js +40 -0
  367. package/dist/components/NestedControlRenderer/manifest/Control.js.map +1 -0
  368. package/dist/components/NestedControlRenderer/manifest/Manifest.d.ts +5 -0
  369. package/dist/components/NestedControlRenderer/manifest/Manifest.js +12 -0
  370. package/dist/components/NestedControlRenderer/manifest/Manifest.js.map +1 -0
  371. package/dist/components/NestedControlRenderer/manifest/TypeGroup.d.ts +6 -0
  372. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js +13 -0
  373. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js.map +1 -0
  374. package/dist/components/NestedControlRenderer/manifest/index.d.ts +1 -0
  375. package/dist/components/NestedControlRenderer/manifest/index.js +2 -0
  376. package/dist/components/NestedControlRenderer/manifest/index.js.map +1 -0
  377. package/dist/components/NestedControlRenderer/manifest/property/Property.d.ts +16 -0
  378. package/dist/components/NestedControlRenderer/manifest/property/Property.js +34 -0
  379. package/dist/components/NestedControlRenderer/manifest/property/Property.js.map +1 -0
  380. package/dist/components/NestedControlRenderer/manifest/property/Value.d.ts +8 -0
  381. package/dist/components/NestedControlRenderer/manifest/property/Value.js +12 -0
  382. package/dist/components/NestedControlRenderer/manifest/property/Value.js.map +1 -0
  383. package/dist/components/NestedControlRenderer/properties/DateProperty.d.ts +5 -0
  384. package/dist/components/NestedControlRenderer/properties/DateProperty.js +20 -0
  385. package/dist/components/NestedControlRenderer/properties/DateProperty.js.map +1 -0
  386. package/dist/components/NestedControlRenderer/properties/FileProperty.d.ts +5 -0
  387. package/dist/components/NestedControlRenderer/properties/FileProperty.js +14 -0
  388. package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -0
  389. package/dist/components/NestedControlRenderer/properties/LookupProperty.d.ts +6 -0
  390. package/dist/components/NestedControlRenderer/properties/LookupProperty.js +35 -0
  391. package/dist/components/NestedControlRenderer/properties/LookupProperty.js.map +1 -0
  392. package/dist/components/NestedControlRenderer/properties/NumberProperty.d.ts +5 -0
  393. package/dist/components/NestedControlRenderer/properties/NumberProperty.js +15 -0
  394. package/dist/components/NestedControlRenderer/properties/NumberProperty.js.map +1 -0
  395. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.d.ts +5 -0
  396. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js +18 -0
  397. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js.map +1 -0
  398. package/dist/components/NestedControlRenderer/properties/Property.d.ts +17 -0
  399. package/dist/components/NestedControlRenderer/properties/Property.js +46 -0
  400. package/dist/components/NestedControlRenderer/properties/Property.js.map +1 -0
  401. package/dist/components/NestedControlRenderer/properties/TextProperty.d.ts +5 -0
  402. package/dist/components/NestedControlRenderer/properties/TextProperty.js +15 -0
  403. package/dist/components/NestedControlRenderer/properties/TextProperty.js.map +1 -0
  404. package/dist/components/NestedControlRenderer/styles.d.ts +14 -0
  405. package/dist/components/NestedControlRenderer/styles.js +21 -0
  406. package/dist/components/NestedControlRenderer/styles.js.map +1 -0
  407. package/dist/components/NestedControlRenderer/translations.d.ts +14 -0
  408. package/dist/components/NestedControlRenderer/translations.js +19 -0
  409. package/dist/components/NestedControlRenderer/translations.js.map +1 -0
  410. package/dist/components/OptionSet/OptionSet.d.ts +3 -0
  411. package/dist/components/OptionSet/OptionSet.js +80 -0
  412. package/dist/components/OptionSet/OptionSet.js.map +1 -0
  413. package/dist/components/OptionSet/index.d.ts +2 -0
  414. package/dist/components/OptionSet/index.js +2 -0
  415. package/dist/components/OptionSet/index.js.map +1 -0
  416. package/dist/components/OptionSet/interfaces.d.ts +13 -0
  417. package/dist/components/OptionSet/shared.d.ts +5 -0
  418. package/dist/components/OptionSet/shared.js +19 -0
  419. package/dist/components/OptionSet/shared.js.map +1 -0
  420. package/dist/components/OptionSet/styles.d.ts +11 -0
  421. package/dist/components/OptionSet/styles.js +18 -0
  422. package/dist/components/OptionSet/styles.js.map +1 -0
  423. package/dist/components/OptionSet/useComboBoxTheme.d.ts +3 -0
  424. package/dist/components/OptionSet/useComboBoxTheme.js +61 -0
  425. package/dist/components/OptionSet/useComboBoxTheme.js.map +1 -0
  426. package/dist/components/TextField/TextField.d.ts +3 -0
  427. package/dist/components/TextField/TextField.js +120 -0
  428. package/dist/components/TextField/TextField.js.map +1 -0
  429. package/dist/components/TextField/index.d.ts +2 -0
  430. package/dist/components/TextField/index.js +2 -0
  431. package/dist/components/TextField/index.js.map +1 -0
  432. package/dist/components/TextField/interfaces.d.ts +14 -0
  433. package/dist/components/TwoOptions/TwoOptions.d.ts +3 -0
  434. package/dist/components/TwoOptions/TwoOptions.js +55 -0
  435. package/dist/components/TwoOptions/TwoOptions.js.map +1 -0
  436. package/dist/components/TwoOptions/index.d.ts +2 -0
  437. package/dist/components/TwoOptions/index.js +2 -0
  438. package/dist/components/TwoOptions/index.js.map +1 -0
  439. package/dist/components/TwoOptions/interfaces.d.ts +13 -0
  440. package/dist/components/index.d.ts +13 -0
  441. package/dist/components/index.js +17 -0
  442. package/dist/components/index.js.map +1 -0
  443. package/dist/constants.d.ts +15 -0
  444. package/dist/constants.js +35 -0
  445. package/dist/constants.js.map +1 -0
  446. package/dist/hooks/index.d.ts +7 -0
  447. package/dist/hooks/index.js +8 -0
  448. package/dist/hooks/index.js.map +1 -0
  449. package/dist/hooks/useControl.d.ts +17 -0
  450. package/dist/hooks/useControl.js +67 -0
  451. package/dist/hooks/useControl.js.map +1 -0
  452. package/dist/hooks/useControlLabels.d.ts +14 -0
  453. package/dist/hooks/useControlLabels.js +47 -0
  454. package/dist/hooks/useControlLabels.js.map +1 -0
  455. package/dist/hooks/useControlSizing.d.ts +5 -0
  456. package/dist/hooks/useControlSizing.js +15 -0
  457. package/dist/hooks/useControlSizing.js.map +1 -0
  458. package/dist/hooks/useFocusIn.d.ts +1 -0
  459. package/dist/hooks/useFocusIn.js +33 -0
  460. package/dist/hooks/useFocusIn.js.map +1 -0
  461. package/dist/hooks/useInputBasedControl.d.ts +37 -0
  462. package/dist/hooks/useInputBasedControl.js +36 -0
  463. package/dist/hooks/useInputBasedControl.js.map +1 -0
  464. package/dist/hooks/useMouseOver.d.ts +1 -0
  465. package/dist/hooks/useMouseOver.js +23 -0
  466. package/dist/hooks/useMouseOver.js.map +1 -0
  467. package/dist/hooks/usePrevious.d.ts +1 -0
  468. package/dist/index.d.ts +1504 -0
  469. package/dist/index.js +30 -0
  470. package/dist/index.js.map +1 -0
  471. package/dist/interfaces/context.d.ts +27 -0
  472. package/dist/interfaces/index.d.ts +9 -0
  473. package/dist/interfaces/index.js +2 -0
  474. package/dist/interfaces/index.js.map +1 -0
  475. package/dist/interfaces/parameters.d.ts +25 -0
  476. package/dist/interfaces/property.d.ts +67 -0
  477. package/dist/utils/BaseControls.d.ts +16 -0
  478. package/dist/utils/BaseControls.js +82 -0
  479. package/dist/utils/BaseControls.js.map +1 -0
  480. package/dist/utils/dataset/adapters/DatasetAdapter.d.ts +59 -0
  481. package/dist/utils/dataset/adapters/DatasetAdapter.js +229 -0
  482. package/dist/utils/dataset/adapters/DatasetAdapter.js.map +1 -0
  483. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.d.ts +48 -0
  484. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js +169 -0
  485. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js.map +1 -0
  486. package/dist/utils/dataset/adapters/index.d.ts +2 -0
  487. package/dist/utils/dataset/adapters/index.js +3 -0
  488. package/dist/utils/dataset/adapters/index.js.map +1 -0
  489. package/dist/utils/dataset/index.d.ts +1 -0
  490. package/dist/utils/dataset/index.js +3 -0
  491. package/dist/utils/dataset/index.js.map +1 -0
  492. package/dist/utils/index.d.ts +3 -0
  493. package/dist/utils/index.js +8 -0
  494. package/dist/utils/index.js.map +1 -0
  495. package/dist/utils/theme/ControlTheme.d.ts +21 -0
  496. package/dist/utils/theme/ControlTheme.js +39 -0
  497. package/dist/utils/theme/ControlTheme.js.map +1 -0
  498. package/dist/utils/theme/components/ThemeWrapper.d.ts +9 -0
  499. package/dist/utils/theme/components/ThemeWrapper.js +11 -0
  500. package/dist/utils/theme/components/ThemeWrapper.js.map +1 -0
  501. package/dist/utils/theme/components/index.d.ts +1 -0
  502. package/dist/utils/theme/components/index.js +2 -0
  503. package/dist/utils/theme/components/index.js.map +1 -0
  504. package/dist/utils/theme/hooks/index.d.ts +2 -0
  505. package/dist/utils/theme/hooks/index.js +3 -0
  506. package/dist/utils/theme/hooks/index.js.map +1 -0
  507. package/dist/utils/theme/hooks/useControlTheme.d.ts +3 -0
  508. package/dist/utils/theme/hooks/useControlTheme.js +12 -0
  509. package/dist/utils/theme/hooks/useControlTheme.js.map +1 -0
  510. package/dist/utils/theme/hooks/useControlThemeGenerator.d.ts +14 -0
  511. package/dist/utils/theme/hooks/useControlThemeGenerator.js +11 -0
  512. package/dist/utils/theme/hooks/useControlThemeGenerator.js.map +1 -0
  513. package/dist/utils/theme/index.d.ts +3 -0
  514. package/dist/utils/theme/index.js +5 -0
  515. package/dist/utils/theme/index.js.map +1 -0
  516. package/package.json +94 -0
@@ -0,0 +1,1504 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
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';
6
+ import React$1 from 'react';
7
+ import { AgGridReactProps } from '@ag-grid-community/react';
8
+
9
+ type ExcludedProps = Pick<ComponentFramework.PropertyTypes.Property, 'formatted'>;
10
+ interface IProperty extends Omit<Partial<ComponentFramework.PropertyTypes.Property>, keyof ExcludedProps | 'attributes'> {
11
+ }
12
+ interface IStringProperty extends IProperty, Partial<ComponentFramework.PropertyTypes.StringProperty> {
13
+ raw: string | null;
14
+ }
15
+ interface IFileProperty extends IProperty {
16
+ raw: ComponentFramework.FileObject | null;
17
+ formatted: string;
18
+ }
19
+ interface IDecimalNumberProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.DecimalNumberProperty>, 'attributes'> {
20
+ raw: number | null;
21
+ type: 'Whole.None' | 'Decimal' | 'Currency';
22
+ formatted?: string;
23
+ attributes?: Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.DecimalNumberMetadata>;
24
+ }
25
+ interface IWholeNumberProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.WholeNumberProperty>, 'attributes'> {
26
+ raw: number | null;
27
+ attributes?: Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.DecimalNumberMetadata>;
28
+ }
29
+ interface IDateTimeProperty extends IProperty, Partial<ComponentFramework.PropertyTypes.DateTimeProperty> {
30
+ raw: Date | null;
31
+ attributes: Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.DateTimeMetadata> & {
32
+ Behavior: ComponentFramework.FormattingApi.Types.DateTimeFieldBehavior;
33
+ Format: string;
34
+ };
35
+ }
36
+ interface IOptionSetProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.OptionSetProperty>, 'attributes'> {
37
+ raw: number | null;
38
+ attributes: Omit<Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.OptionSetMetadata>, 'DefaultValue'> & {
39
+ Options: ComponentFramework.PropertyHelper.OptionMetadata[];
40
+ };
41
+ }
42
+ interface ITwoOptionsProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.TwoOptionsProperty>, 'attributes'> {
43
+ raw: boolean;
44
+ attributes: Omit<Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.OptionSetMetadata>, 'DefaultValue'> & {
45
+ Options: [ComponentFramework.PropertyHelper.OptionMetadata, ComponentFramework.PropertyHelper.OptionMetadata];
46
+ };
47
+ }
48
+ interface ITwoOptionsProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.TwoOptionsProperty>, 'attributes'> {
49
+ raw: boolean;
50
+ attributes: Omit<Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.OptionSetMetadata>, 'DefaultValue'> & {
51
+ Options: [ComponentFramework.PropertyHelper.OptionMetadata, ComponentFramework.PropertyHelper.OptionMetadata];
52
+ };
53
+ }
54
+ interface IMultiSelectOptionSetProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.MultiSelectOptionSetProperty>, 'attributes'> {
55
+ raw: number[] | null;
56
+ attributes: Omit<Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.OptionSetMetadata>, 'DefaultValue'> & {
57
+ Options: ComponentFramework.PropertyHelper.OptionMetadata[];
58
+ };
59
+ }
60
+ interface ILookupProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.LookupProperty>, 'attributes' | 'getViewId'> {
61
+ raw: ComponentFramework.LookupValue[];
62
+ attributes: Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.LookupMetadata> & {
63
+ Targets: string[];
64
+ };
65
+ /**
66
+ * Gets all views for entity (including non-lookup ones).
67
+ */
68
+ getAllViews: (entityName: string) => Promise<{
69
+ isDefault: boolean;
70
+ viewId: string;
71
+ fetchXml?: string;
72
+ }[]>;
73
+ }
74
+
75
+ interface IFluentDesignState extends ComponentFramework.FluentDesignState {
76
+ /**
77
+ * Optional overrides that will get applied when v8 theme is generated from fluentDesignLanguage
78
+ */
79
+ v8FluentOverrides?: DeepPartial<ITheme>;
80
+ /**
81
+ * The application's theme may differ from the control's theme. This is often the case when rendering a PCF as a cell customizer with conditional formatting.
82
+ * This object provides access to the application's theme, enabling you to render elements like callouts and other surfaces accurately.
83
+ */
84
+ applicationTheme?: ITheme;
85
+ }
86
+ declare class ControlTheme {
87
+ static GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage?: IFluentDesignState): ITheme;
88
+ static GenerateFluentDesignLanguage(primaryColor: string, backgroundColor: string, textColor: string, options?: {
89
+ v8FluentOverrides?: DeepPartial<ITheme>;
90
+ applicationTheme?: ITheme;
91
+ }): IFluentDesignState;
92
+ }
93
+
94
+ declare const useControlTheme: (fluentDesignLanguage?: IFluentDesignState) => ITheme;
95
+
96
+ declare const useControlThemeGenerator: (primaryColor: string, backgroundColor: string, textColor: string, options?: {
97
+ /**
98
+ * Optional overrides that will get applied when v8 theme is generated from fluentDesignLanguage
99
+ */
100
+ v8FluentOverrides?: DeepPartial<ITheme$1>;
101
+ /**
102
+ * The application's theme may differ from the control's theme. This is often the case when rendering a PCF as a cell customizer with conditional formatting.
103
+ * This object allows you to set application theme so PCF's can use it to render surfaces accurately.
104
+ */
105
+ applicationTheme?: ITheme$1;
106
+ }) => IFluentDesignState;
107
+
108
+ interface IThemeWrapper extends ThemeProviderProps {
109
+ fluentDesignLanguage?: ComponentFramework.FluentDesignState;
110
+ children?: React$1.ReactNode;
111
+ }
112
+ declare const ThemeWrapper: React$1.FC<IThemeWrapper>;
113
+
114
+ type BaseControl = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'DateTime' | 'Decimal' | 'Duration' | 'GridCellRenderer' | 'Lookup' | 'TwoOptions' | 'GridCellRenderer' | 'Grid' | 'DatasetControl' | 'NestedControl';
115
+ declare class BaseControls {
116
+ static get TextField(): 'TextField';
117
+ static get OptionSet(): 'OptionSet';
118
+ static get MultiSelectOptionSet(): 'MultiSelectOptionSet';
119
+ static get DateTime(): 'DateTime';
120
+ static get Decimal(): 'Decimal';
121
+ static get Duration(): 'Duration';
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
+ };
539
+ "filtermenu-filterby": {
540
+ 1029: string;
541
+ 1033: string;
542
+ };
543
+ "filtermenu-applybutton": {
544
+ 1029: string;
545
+ 1033: string;
546
+ };
547
+ "filtermenu-clearbutton": {
548
+ 1029: string;
549
+ 1033: string;
550
+ };
551
+ "filtersortmenu-sorttext-a-z": {
552
+ 1029: string;
553
+ 1033: string;
554
+ };
555
+ "filtersortmenu-sorttext-z-a": {
556
+ 1029: string;
557
+ 1033: string;
558
+ };
559
+ "filtersortmenu-sortdate-a-z": {
560
+ 1029: string;
561
+ 1033: string;
562
+ };
563
+ "filtersortmenu-sortdate-z-a": {
564
+ 1029: string;
565
+ 1033: string;
566
+ };
567
+ "filtersortmenu-sortnumber-a-z": {
568
+ 1029: string;
569
+ 1033: string;
570
+ };
571
+ "filtersortmenu-sortnumber-z-a": {
572
+ 1029: string;
573
+ 1033: string;
574
+ };
575
+ "filtersortmenu-sorttwooption-a-z": {
576
+ 1029: string;
577
+ 1033: string;
578
+ };
579
+ "filtersortmenu-sorttwooption-z-a": {
580
+ 1029: string;
581
+ 1033: string;
582
+ };
583
+ "filtersortmenu-sorttwooption-joint": {
584
+ 1029: string;
585
+ 1033: string;
586
+ };
587
+ "filtersortmenu-filterby": {
588
+ 1029: string;
589
+ 1033: string;
590
+ };
591
+ "filtersortmenu-clearfilter": {
592
+ 1029: string;
593
+ 1033: string;
594
+ };
595
+ "filtersortmenu-clearsorting": {
596
+ 1029: string;
597
+ 1033: string;
598
+ };
599
+ "filtersortmenu-total-none": {
600
+ 1029: string;
601
+ 1033: string;
602
+ };
603
+ "filtersortmenu-total-avg": {
604
+ 1029: string;
605
+ 1033: string;
606
+ };
607
+ "filtersortmenu-total-max": {
608
+ 1029: string;
609
+ 1033: string;
610
+ };
611
+ "filtersortmenu-total-min": {
612
+ 1029: string;
613
+ 1033: string;
614
+ };
615
+ "filtersortmenu-total-sum": {
616
+ 1029: string;
617
+ 1033: string;
618
+ };
619
+ "filtersortmenu-total-count": {
620
+ 1029: string;
621
+ 1033: string;
622
+ };
623
+ "filtersortmenu-total-countcolumn": {
624
+ 1029: string;
625
+ 1033: string;
626
+ };
627
+ "filtersortmenu-total": {
628
+ 1029: string;
629
+ 1033: string;
630
+ };
631
+ norecordsfound: {
632
+ 1029: string;
633
+ 1033: string;
634
+ };
635
+ "saving-changenotification": {
636
+ 1029: string;
637
+ 1033: string;
638
+ };
639
+ "saving-clickreview": {
640
+ 1029: string;
641
+ 1033: string;
642
+ };
643
+ "saving-save": {
644
+ 1029: string;
645
+ 1033: string;
646
+ };
647
+ "saving-saving": {
648
+ 1029: string;
649
+ 1033: string;
650
+ };
651
+ "saving-changepreview-title": {
652
+ 1033: string;
653
+ 1029: string;
654
+ };
655
+ "saving-validation-error": {
656
+ 1029: string;
657
+ 1033: string;
658
+ };
659
+ "saving-save-all": {
660
+ 1029: string;
661
+ 1033: string;
662
+ };
663
+ "saving-discard-all": {
664
+ 1029: string;
665
+ 1033: string;
666
+ };
667
+ "saving-discard": {
668
+ 1029: string;
669
+ 1033: string;
670
+ };
671
+ "saving-discard-changes": {
672
+ 1029: string;
673
+ 1033: string;
674
+ };
675
+ "saving-save-changes": {
676
+ 1029: string;
677
+ 1033: string;
678
+ };
679
+ "saving-discard-all-confirmation": {
680
+ 1029: string;
681
+ 1033: string;
682
+ };
683
+ "validation-input-value": {
684
+ 1029: string;
685
+ 1033: string;
686
+ };
687
+ "validation-email": {
688
+ 1029: string;
689
+ 1033: string;
690
+ };
691
+ "validation-url": {
692
+ 1029: string;
693
+ 1033: string;
694
+ };
695
+ "validation-date": {
696
+ 1029: string;
697
+ 1033: string;
698
+ };
699
+ "validation-number": {
700
+ 1029: string;
701
+ 1033: string;
702
+ };
703
+ "no-name": {
704
+ 1029: string;
705
+ 1033: string;
706
+ };
707
+ download: {
708
+ 1029: string;
709
+ 1033: string;
710
+ };
711
+ "value-not-editable": {
712
+ 1029: string;
713
+ 1033: string;
714
+ };
715
+ "original-value": {
716
+ 1029: string;
717
+ 1033: string;
718
+ };
719
+ "new-value": {
720
+ 1029: string;
721
+ 1033: string;
722
+ };
723
+ "error-2147750198": {
724
+ 1029: string;
725
+ 1033: string;
726
+ };
727
+ };
728
+
729
+ interface IGridComponentProps {
730
+ agGrid: AgGridReactProps;
731
+ registerRowGroupingModule: boolean;
732
+ container: any;
733
+ pagingProps: any;
734
+ licenseKey?: string;
735
+ }
736
+ interface IGrid extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof gridTranslations>>, IGridComponentProps> {
737
+ }
738
+ interface IGridParameters extends IParameters$1 {
739
+ EnableEditing?: Omit<ITwoOptionsProperty, 'attributes'>;
740
+ EnablePagination?: Omit<ITwoOptionsProperty, 'attributes'>;
741
+ EnableFiltering?: Omit<ITwoOptionsProperty, 'attributes'>;
742
+ EnableSorting?: Omit<ITwoOptionsProperty, 'attributes'>;
743
+ EnableNavigation?: Omit<ITwoOptionsProperty, 'attributes'>;
744
+ EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
745
+ EnableChangeEditor?: Omit<ITwoOptionsProperty, 'attributes'>;
746
+ EnableMultiEdit?: Omit<ITwoOptionsProperty, 'attributes'>;
747
+ EnableZebra?: Omit<ITwoOptionsProperty, 'attributes'>;
748
+ EnableAggregation?: Omit<ITwoOptionsProperty, 'attributes'>;
749
+ RowHeight?: Omit<IWholeNumberProperty, 'attributes'>;
750
+ EnablePageSizeSwitcher?: Omit<ITwoOptionsProperty, 'attributes'>;
751
+ Height?: IStringProperty;
752
+ InlineRibbonButtonIds?: IStringProperty;
753
+ SelectableRows?: Omit<ComponentFramework.PropertyTypes.EnumProperty<"none" | "single" | "multiple">, 'type'>;
754
+ Grid: IDataset;
755
+ }
756
+ interface IGridOutputs extends IOutputs$1 {
757
+ }
758
+
759
+ declare const Grid: (props: IGrid) => JSX.Element;
760
+
761
+ declare const datasetControlTranslations: {
762
+ search: {
763
+ 1029: string;
764
+ 1033: string;
765
+ };
766
+ records: {
767
+ 1029: string;
768
+ 1033: string;
769
+ };
770
+ generalError: {
771
+ 1029: string;
772
+ 1033: string;
773
+ };
774
+ reload: {
775
+ 1029: string;
776
+ 1033: string;
777
+ };
778
+ };
779
+
780
+ declare const datasetPagingTranslations: {
781
+ "paging-of": {
782
+ 1029: string;
783
+ 1033: string;
784
+ };
785
+ "paging-firstpage": {
786
+ 1029: string;
787
+ 1033: string;
788
+ };
789
+ "paging-previouspage": {
790
+ 1029: string;
791
+ 1033: string;
792
+ };
793
+ "paging-page": {
794
+ 1029: string;
795
+ 1033: string;
796
+ };
797
+ "paging-nextpage": {
798
+ 1029: string;
799
+ 1033: string;
800
+ };
801
+ "paging-lastpage": {
802
+ 1029: string;
803
+ 1033: string;
804
+ };
805
+ "paging-pages": {
806
+ 1029: string;
807
+ 1033: string;
808
+ };
809
+ "paging-pages-totalcount": {
810
+ 1029: string;
811
+ 1033: string;
812
+ };
813
+ "page-record-count": {
814
+ 1029: string;
815
+ 1033: string;
816
+ };
817
+ };
818
+
819
+ interface IDatasetPaging extends IControl<IDatasetPagingParameters, any, Partial<ITranslations<typeof datasetPagingTranslations>>, any> {
820
+ }
821
+ interface IDatasetPagingParameters extends IParameters$1 {
822
+ Dataset: IDataset;
823
+ /**
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.
825
+ */
826
+ EnablePagination?: Omit<ITwoOptionsProperty, 'attributes'>;
827
+ /**
828
+ * If set to false, the user will not be able to change the page size.
829
+ */
830
+ EnablePageSizeSwitcher?: Omit<ITwoOptionsProperty, 'attributes'>;
831
+ }
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;
856
+ }
857
+
858
+ interface IQuickFindProps {
859
+ textFieldProps: ITextFieldProps;
860
+ container: ThemeProviderProps;
861
+ }
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;
874
+ }
875
+ interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, IDatasetControlComponentProps> {
876
+ /**
877
+ * Tells the Dataset control which UI component should be used for the dataset.
878
+ */
879
+ onGetControlComponent: (props: IControl<IGridParameters, any, any, any>) => React$1.ReactElement<IControl<any, any, any, any>>;
880
+ }
881
+
882
+ declare const DatasetControl: (props: IDatasetControl) => JSX.Element;
883
+
884
+ declare const getDefaultDateTimeTranslations: (dateFormattingInfo: ComponentFramework.UserSettingApi.DateFormattingInfo) => {
885
+ time: {
886
+ 1029: string;
887
+ 1033: string;
888
+ };
889
+ goToToday: {
890
+ 1029: string;
891
+ 1033: string;
892
+ };
893
+ invalidTimeInput: {
894
+ 1029: string;
895
+ 1033: string;
896
+ };
897
+ days: string[];
898
+ months: string[];
899
+ shortDays: string[];
900
+ shortMonths: string[];
901
+ };
902
+
903
+ interface IDateTime extends IControl<IDateTimeParameters, IDateTimeOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDateTimeTranslations>>>, IDatePickerProps> {
904
+ }
905
+ interface IDateTimeParameters extends IInputParameters {
906
+ value: IDateTimeProperty;
907
+ EnableMonthPicker?: ITwoOptionsProperty;
908
+ EnableDayPicker?: ITwoOptionsProperty;
909
+ /**
910
+ * JSON array of dates that should not be selectable, example: ['2019-01-10', '2019-01-11']
911
+ */
912
+ RestrictedDates?: IStringProperty;
913
+ /**
914
+ * JSON array of week days that should not be selectable (0 = Sunday,...6 = Saturday), example: [0,2,3]
915
+ */
916
+ RestrictedDaysOfWeek?: IStringProperty;
917
+ }
918
+ interface IDateTimeOutputs extends IOutputs$1 {
919
+ value?: Date;
920
+ }
921
+
922
+ declare const DateTime: (componentProps: IDateTime) => JSX.Element;
923
+
924
+ declare const useDateTime: (props: IDateTime, ref: React.RefObject<HTMLDivElement>) => [boolean, ITheme, ITranslation<Partial<ITranslations<{
925
+ time: {
926
+ 1029: string;
927
+ 1033: string;
928
+ };
929
+ goToToday: {
930
+ 1029: string;
931
+ 1033: string;
932
+ };
933
+ invalidTimeInput: {
934
+ 1029: string;
935
+ 1033: string;
936
+ };
937
+ days: string[];
938
+ months: string[];
939
+ shortDays: string[];
940
+ shortMonths: string[];
941
+ }>>>, {
942
+ get: () => Date | undefined;
943
+ getFormatted: () => string | undefined;
944
+ set: (date?: Date, time?: string) => void;
945
+ setDateString: (value: string | undefined) => void;
946
+ clear: () => void;
947
+ parseDateString: (dateString: string) => Date | string;
948
+ }, {
949
+ shortDatePattern: string;
950
+ shortTimePattern: string;
951
+ fullDateTimePattern: string;
952
+ }];
953
+
954
+ interface IDecimal extends IControl<IDecimalParameters, IDecimalOutputs, any, ITextFieldProps> {
955
+ }
956
+ interface IDecimalParameters extends IInputParameters {
957
+ value: IDecimalNumberProperty;
958
+ EnableSpinButton?: Omit<ITwoOptionsProperty, 'attributes'>;
959
+ }
960
+ interface IDecimalOutputs extends IOutputs$1 {
961
+ value?: number;
962
+ }
963
+
964
+ declare const Decimal: (props: IDecimal) => JSX.Element;
965
+
966
+ declare const getDefaultGridRendererTranslations: () => {
967
+ download: {
968
+ 1029: string;
969
+ 1033: string;
970
+ };
971
+ max: {
972
+ 1029: string;
973
+ 1033: string;
974
+ };
975
+ min: {
976
+ 1029: string;
977
+ 1033: string;
978
+ };
979
+ avg: {
980
+ 1029: string;
981
+ 1033: string;
982
+ };
983
+ sum: {
984
+ 1029: string;
985
+ 1033: string;
986
+ };
987
+ count: {
988
+ 1029: string;
989
+ 1033: string;
990
+ };
991
+ countcolumn: {
992
+ 1029: string;
993
+ 1033: string;
994
+ };
995
+ };
996
+
997
+ interface IGridCellRenderer extends IControl<IGridCellRendererParameters, {}, ReturnType<typeof getDefaultGridRendererTranslations>, IGridCellRendererComponentProps> {
998
+ }
999
+ interface IGridCellRendererParameters extends IParameters$1 {
1000
+ value: any;
1001
+ ColumnAlignment: Omit<ComponentFramework.PropertyTypes.EnumProperty<"left" | "center" | "right">, 'type'>;
1002
+ CellType: Omit<ComponentFramework.PropertyTypes.EnumProperty<"renderer" | "editor">, 'type'>;
1003
+ EnableNavigation: Omit<ITwoOptionsProperty, 'attributes'>;
1004
+ PrefixIcon?: IStringProperty;
1005
+ SuffixIcon?: IStringProperty;
1006
+ AggregationFunction: Omit<ComponentFramework.PropertyTypes.EnumProperty<AggregationFunction | null>, 'type'>;
1007
+ Column: {
1008
+ raw: IColumn;
1009
+ };
1010
+ Dataset: {
1011
+ raw: IDataset;
1012
+ };
1013
+ Record: {
1014
+ raw: IRecord;
1015
+ };
1016
+ RecordCommands?: {
1017
+ raw: ICommand[];
1018
+ };
1019
+ }
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;
1028
+ }
1029
+ interface IRecordCommandsProps {
1030
+ containerProps: ThemeProviderProps;
1031
+ commandBarProps: ICommandBarProps;
1032
+ }
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
+ };
1055
+ }
1056
+
1057
+ declare const GridCellRenderer: (props: IGridCellRenderer) => JSX.Element;
1058
+
1059
+ declare const lookupTranslations: {
1060
+ search: {
1061
+ 1033: string;
1062
+ 1029: string;
1063
+ };
1064
+ newRecord: {
1065
+ 1033: string;
1066
+ 1029: string;
1067
+ };
1068
+ searching: {
1069
+ 1033: string;
1070
+ 1029: string;
1071
+ };
1072
+ noRecordsFound: {
1073
+ 1033: string;
1074
+ 1029: string;
1075
+ };
1076
+ resultsFrom: {
1077
+ 1033: string;
1078
+ 1029: string;
1079
+ };
1080
+ noName: {
1081
+ 1033: string;
1082
+ 1029: string;
1083
+ };
1084
+ placeholder: {
1085
+ 1033: string;
1086
+ 1029: string;
1087
+ };
1088
+ };
1089
+
1090
+ interface ILookup extends IControl<ILookupParameters, ILookupOutputs, Partial<ITranslations<typeof lookupTranslations>>, ITagPickerProps> {
1091
+ /**
1092
+ * If provided, the Lookup will use the returned values of this function to display search results.
1093
+ * @param {any} entityNames An array of entity names that he Lookup is currently targeting.
1094
+ * @param {any} query: User text input
1095
+ * @returns {any}
1096
+ */
1097
+ onSearch?: (entityNames: string[], query: string) => Promise<ComponentFramework.LookupValue[]>;
1098
+ /**
1099
+ * When new record is being created, this function is called beforehand and its return value is used to populate the form.
1100
+ * @param {any} entityName The name of the entity that is being created.
1101
+ * @returns
1102
+ */
1103
+ onGetOnCreateFormParameters?: (entityName: string) => {
1104
+ [key: string]: string;
1105
+ } | undefined;
1106
+ }
1107
+ interface ILookupParameters extends IBaseParameters {
1108
+ IsInlineNewEnabled?: Omit<ITwoOptionsProperty, 'attributes'>;
1109
+ MultipleEnabled?: Omit<ITwoOptionsProperty, 'attributes'>;
1110
+ EnableNavigation?: Omit<ITwoOptionsProperty, 'attributes'>;
1111
+ value: ILookupProperty;
1112
+ }
1113
+ interface ILookupOutputs extends IOutputs$1 {
1114
+ value?: ComponentFramework.LookupValue[];
1115
+ }
1116
+ interface IMetadata extends ComponentFramework.PropertyHelper.EntityMetadata {
1117
+ DisplayName: string;
1118
+ PrimaryNameAttribute: string;
1119
+ PrimaryIdAttribute: string;
1120
+ }
1121
+ interface IEntity {
1122
+ entityName: string;
1123
+ selected: boolean;
1124
+ metadata: Promise<IMetadata>;
1125
+ }
1126
+ interface ILayout {
1127
+ Name: string;
1128
+ Object: number;
1129
+ Rows: IRow[];
1130
+ CustomControlDescriptions: any[];
1131
+ Jump: string;
1132
+ Select: boolean;
1133
+ Icon: boolean;
1134
+ Preview: boolean;
1135
+ IconRenderer: string;
1136
+ }
1137
+ interface IRow {
1138
+ Name: string;
1139
+ Id: string;
1140
+ Cells: ICell[];
1141
+ MultiObjectIdField: string;
1142
+ LayoutStyle: string;
1143
+ }
1144
+ interface ICell {
1145
+ Name: string;
1146
+ Width: number;
1147
+ RelatedEntityName: string;
1148
+ IsHidden: boolean;
1149
+ ImageProviderWebresource: string;
1150
+ ImageProviderFunctionName: string;
1151
+ DisableSorting?: boolean;
1152
+ AddedBy?: string;
1153
+ Desc?: string;
1154
+ CellType?: string;
1155
+ DisableMetaDataBinding?: boolean;
1156
+ LabelId?: string;
1157
+ }
1158
+
1159
+ declare const Lookup: (props: ILookup) => JSX.Element;
1160
+
1161
+ declare const useLookup: (props: ILookup) => [ComponentFramework.LookupValue[], IEntity[], ITranslation<Partial<ITranslations<{
1162
+ search: {
1163
+ 1033: string;
1164
+ 1029: string;
1165
+ };
1166
+ newRecord: {
1167
+ 1033: string;
1168
+ 1029: string;
1169
+ };
1170
+ searching: {
1171
+ 1033: string;
1172
+ 1029: string;
1173
+ };
1174
+ noRecordsFound: {
1175
+ 1033: string;
1176
+ 1029: string;
1177
+ };
1178
+ resultsFrom: {
1179
+ 1033: string;
1180
+ 1029: string;
1181
+ };
1182
+ noName: {
1183
+ 1033: string;
1184
+ 1029: string;
1185
+ };
1186
+ placeholder: {
1187
+ 1033: string;
1188
+ 1029: string;
1189
+ };
1190
+ }>>>, {
1191
+ create: (entityName: string) => void;
1192
+ select: (record: ComponentFramework.LookupValue[] | undefined) => void;
1193
+ deselect: (record: ComponentFramework.LookupValue) => void;
1194
+ }, (entityName: string | null) => void, (query: string) => Promise<(ComponentFramework.LookupValue & {
1195
+ entityData: {
1196
+ [key: string]: any;
1197
+ };
1198
+ layout: ILayout;
1199
+ })[]>, ITheme];
1200
+
1201
+ interface IMultiSelectOptionSet extends IControl<IMultiSelectOptionSetParameters, IMultiSelectOptionSetOutputs, any, IComboBoxProps> {
1202
+ }
1203
+ interface IMultiSelectOptionSetParameters extends IInputParameters {
1204
+ value: IMultiSelectOptionSetProperty;
1205
+ EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
1206
+ }
1207
+ interface IMultiSelectOptionSetOutputs extends IOutputs$1 {
1208
+ value?: number[];
1209
+ }
1210
+
1211
+ declare const MultiSelectOptionSet: (props: IMultiSelectOptionSet) => JSX.Element;
1212
+
1213
+ interface IOptions {
1214
+ onGetBindings: () => {
1215
+ [key: string]: IBinding;
1216
+ };
1217
+ /**
1218
+ * PCF Context of parent control using this class. It will be used as base for nested control PCF context.
1219
+ */
1220
+ parentPcfContext: ComponentFramework.Context<any, any>;
1221
+ /**
1222
+ * Custom PCF to be rendered, if not provided you will get Base Control props.
1223
+ */
1224
+ /**
1225
+ * Container element into which the control will be rendered in.
1226
+ */
1227
+ onGetContainerElement?: () => HTMLDivElement;
1228
+ onGetControlName?: () => string;
1229
+ callbacks?: {
1230
+ onInit?: (instance: NestedControl) => void;
1231
+ onGetControlStates?: () => IControlStates | undefined;
1232
+ onNotifyOutputChanged?: (ouputs: any) => void;
1233
+ /**
1234
+ * Triggers when the control changes a state that should be visible in control renderer UI (for example loading)
1235
+ */
1236
+ onControlStateChanged?: () => void;
1237
+ };
1238
+ overrides?: {
1239
+ onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
1240
+ onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;
1241
+ onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;
1242
+ };
1243
+ }
1244
+ declare class NestedControl {
1245
+ private _options;
1246
+ private _pendingInitialRender;
1247
+ private _errorMessage;
1248
+ private _properties;
1249
+ private _lastRenderedControlName;
1250
+ private _hasCustomPcfBeenMounted;
1251
+ private _customControlInstance;
1252
+ private _customControlId;
1253
+ private _manifest;
1254
+ private _loading;
1255
+ private _props;
1256
+ private _mutationObserver;
1257
+ private _destroyed;
1258
+ private _initialized;
1259
+ private _container;
1260
+ private _hasControlBeenPatched;
1261
+ constructor(options: IOptions);
1262
+ getProps(): IControl<IParameters$1, any, any, any>;
1263
+ refreshProps(): any;
1264
+ getParameters(): {
1265
+ [name: string]: IProperty;
1266
+ };
1267
+ isLoading(): boolean;
1268
+ setLoading(loading: boolean): void;
1269
+ getOptions(): IOptions;
1270
+ render(): Promise<void>;
1271
+ unmount(softUnmount?: boolean): void;
1272
+ getErrorMessage(): string;
1273
+ setError(message?: string): void;
1274
+ isMountedPcfComponent(): boolean;
1275
+ getContainer(): HTMLDivElement;
1276
+ getControlName(): string;
1277
+ getBindings(): {
1278
+ [key: string]: IBinding;
1279
+ };
1280
+ getCustomControlId(): string;
1281
+ private _overrideDecorator;
1282
+ private _unmount;
1283
+ private _render;
1284
+ private _getCustomControlNameWithoutPrefix;
1285
+ private _checkIfControlLoadedToDom;
1286
+ private _getPropertiesFromBindings;
1287
+ private _getPropertyInstance;
1288
+ private _getPrimaryBindingName;
1289
+ private _getManifestPrimaryBinding;
1290
+ private _getManifest;
1291
+ private _getCustomControlParameters;
1292
+ private _patchUpdateView;
1293
+ private _patchContext;
1294
+ private _getFluentDesignLanguage;
1295
+ }
1296
+
1297
+ declare const getDefaultNestedControlRendererTranslations: () => {
1298
+ detail: {
1299
+ 1029: string;
1300
+ 1033: string;
1301
+ };
1302
+ control: {
1303
+ 1029: string;
1304
+ 1033: string;
1305
+ };
1306
+ failedToLoad: {
1307
+ 1029: string;
1308
+ 1033: string;
1309
+ };
1310
+ };
1311
+
1312
+ type ControlNameOptions = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'Lookup' | 'Decimal' | 'Duration' | 'DateTime' | 'GridCellRenderer' | (string & {});
1313
+ interface INestedControlRenderer extends IControl<INestedControlRendererParameters, IOutputs$1, ReturnType<typeof getDefaultNestedControlRendererTranslations>, INestedControlRendererComponentProps> {
1314
+ }
1315
+ interface INestedControlRendererParameters extends IParameters$1 {
1316
+ /**
1317
+ * Specifies the name of the control to be rendered. This can be either a custom PCF control or a base control.
1318
+ */
1319
+ ControlName: ControlNameOptions;
1320
+ /**
1321
+ * Optional bindings that will be passed to the control. These bindings provide data and metadata to the control.
1322
+ */
1323
+ Bindings?: {
1324
+ [key: string]: IBinding;
1325
+ };
1326
+ /**
1327
+ * Specifies the type of loading indicator to display before the control is fully loaded.
1328
+ * Options include 'spinner', 'shimmer', or 'none' for no loading indicator.
1329
+ */
1330
+ LoadingType?: 'spinner' | 'shimmer' | 'none';
1331
+ /**
1332
+ * Optional configuration to set the control's state, such as enabling or disabling the control.
1333
+ */
1334
+ ControlStates?: IControlStates;
1335
+ }
1336
+ interface INestedControlRendererComponentProps {
1337
+ /**
1338
+ * Props for the loading indicator that appears before the control is fully loaded.
1339
+ */
1340
+ loadingProps: {
1341
+ spinnerProps: ISpinnerProps;
1342
+ shimmerProps: IShimmerProps;
1343
+ containerProps: React.HTMLAttributes<HTMLDivElement>;
1344
+ };
1345
+ /**
1346
+ * Props for the message bar that displays error messages.
1347
+ */
1348
+ messageBarProps: IMessageBar & {
1349
+ buttonProps: IButtonProps;
1350
+ };
1351
+ /**
1352
+ * Props for the top-level container that wraps the control and other elements like the loading indicator.
1353
+ */
1354
+ rootContainerProps: React.HTMLAttributes<HTMLDivElement>;
1355
+ /**
1356
+ * Props for the container used to render the control.
1357
+ */
1358
+ controlContainerProps: React.HTMLAttributes<HTMLDivElement>;
1359
+ /**
1360
+ * Callback function that allows you to override the generated control props.
1361
+ */
1362
+ onOverrideControlProps: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
1363
+ /**
1364
+ * Callback function that allows you to override the default control render.
1365
+ */
1366
+ onOverrideRender: (control: NestedControl, isCustomPcfComponent: boolean, defaultRender: () => void) => void;
1367
+ /**
1368
+ * Callback function that allows you to override the default control unmount behavior.
1369
+ */
1370
+ onOverrideUnmount: (control: NestedControl, defaultUnmount: () => void) => void;
1371
+ }
1372
+ interface IBinding {
1373
+ /**
1374
+ * The data type of the binding.
1375
+ */
1376
+ type: DataType;
1377
+ /**
1378
+ * Indicates whether the binding is static or bound.
1379
+ */
1380
+ isStatic: boolean;
1381
+ /**
1382
+ * The value of the binding.
1383
+ */
1384
+ value: any;
1385
+ /**
1386
+ * Formatted value of the binding
1387
+ */
1388
+ formattedValue?: string | null;
1389
+ /**
1390
+ * Indicates whether the binding has an error.
1391
+ */
1392
+ error?: boolean;
1393
+ /**
1394
+ * The error message associated with the binding, if any.
1395
+ */
1396
+ errorMessage?: string;
1397
+ /**
1398
+ * Optional metadata for the binding.
1399
+ */
1400
+ metadata?: {
1401
+ /**
1402
+ * The entity name associated with the binding.
1403
+ */
1404
+ entityName?: string;
1405
+ /**
1406
+ * The logical name of the attribute associated with the binding.
1407
+ */
1408
+ attributeName?: string;
1409
+ /**
1410
+ * Callback function to override the metadata for the binding.
1411
+ * Always return the spread metadata attribute to ensure proper merging.
1412
+ */
1413
+ onOverrideMetadata?: (metadata: any) => any;
1414
+ };
1415
+ /**
1416
+ * Callback function to notify when the binding's output value changes.
1417
+ */
1418
+ onNotifyOutputChanged?: (newValue: any) => void;
1419
+ }
1420
+ interface IControlStates {
1421
+ /**
1422
+ * Indicates whether the control is disabled.
1423
+ */
1424
+ isControlDisabled?: boolean;
1425
+ }
1426
+
1427
+ declare const NestedControlRenderer: (props: INestedControlRenderer) => JSX.Element;
1428
+
1429
+ interface IOptionSet extends IControl<IOptionSetParameters, IOptionSetOutputs, any, IComboBoxProps> {
1430
+ }
1431
+ interface IOptionSetParameters extends IInputParameters {
1432
+ value: IOptionSetProperty;
1433
+ EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
1434
+ }
1435
+ interface IOptionSetOutputs extends IOutputs$1 {
1436
+ value?: number;
1437
+ }
1438
+
1439
+ declare const OptionSet: (props: IOptionSet) => JSX.Element;
1440
+
1441
+ interface ITextField extends IControl<ITextFieldParameters, ITextFieldOutputs, any, ITextFieldProps> {
1442
+ }
1443
+ interface ITextFieldParameters extends IInputParameters {
1444
+ isResizable?: Omit<ITwoOptionsProperty, 'attributes'>;
1445
+ EnableTypeSuffix?: Omit<ITwoOptionsProperty, 'attributes'>;
1446
+ value: IStringProperty;
1447
+ }
1448
+ interface ITextFieldOutputs extends IOutputs$1 {
1449
+ value?: string;
1450
+ }
1451
+
1452
+ declare const TextField: (props: ITextField) => JSX.Element;
1453
+
1454
+ interface ITwoOptions extends IControl<ITwoOptionsParameters, ITwoOptionsOutputs, any, IToggleProps> {
1455
+ }
1456
+ interface ITwoOptionsParameters extends IBaseParameters {
1457
+ value: ITwoOptionsProperty;
1458
+ EnableOptionSetColors?: Omit<ITwoOptionsProperty, 'attributes'>;
1459
+ }
1460
+ interface ITwoOptionsOutputs extends IOutputs$1 {
1461
+ value?: boolean;
1462
+ }
1463
+
1464
+ declare const TwoOptions: (props: ITwoOptions) => JSX.Element;
1465
+
1466
+ declare const getDefaultDurationTranslations: () => {
1467
+ minute: {
1468
+ 1029: string[];
1469
+ 1033: string[];
1470
+ };
1471
+ minutes: {
1472
+ 1029: string[];
1473
+ 1033: string[];
1474
+ };
1475
+ hour: {
1476
+ 1029: string[];
1477
+ 1033: string[];
1478
+ };
1479
+ hours: {
1480
+ 1029: string[];
1481
+ 1033: string[];
1482
+ };
1483
+ day: {
1484
+ 1029: string[];
1485
+ 1033: string[];
1486
+ };
1487
+ days: {
1488
+ 1029: string[];
1489
+ 1033: string[];
1490
+ };
1491
+ };
1492
+
1493
+ interface IDuration extends IControl<IDurationParameters, IDurationOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDurationTranslations>>>, IComboBoxProps> {
1494
+ }
1495
+ interface IDurationParameters extends IInputParameters {
1496
+ value: IWholeNumberProperty;
1497
+ }
1498
+ interface IDurationOutputs extends IOutputs$1 {
1499
+ value?: number;
1500
+ }
1501
+
1502
+ declare const Duration: (props: IDuration) => JSX.Element;
1503
+
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 };