@talxis/base-controls 1.2501.10 → 1.2503.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 (294) hide show
  1. package/dist/components/DatasetControl/DatasetControl.js +21 -34
  2. package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
  3. package/dist/components/DatasetControl/ErrorBoundary.js +33 -0
  4. package/dist/components/DatasetControl/ErrorBoundary.js.map +1 -0
  5. package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +10 -0
  6. package/dist/components/DatasetControl/QuickFind/QuickFind.js +38 -0
  7. package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -0
  8. package/dist/components/DatasetControl/styles.d.ts +3 -1
  9. package/dist/components/DatasetControl/styles.js +2 -2
  10. package/dist/components/DatasetControl/styles.js.map +1 -1
  11. package/dist/components/DatasetControl/translations.d.ts +8 -0
  12. package/dist/components/DatasetControl/translations.js +3 -1
  13. package/dist/components/DatasetControl/translations.js.map +1 -1
  14. package/dist/components/DateTime/DateTime.js +2 -1
  15. package/dist/components/DateTime/DateTime.js.map +1 -1
  16. package/dist/components/DateTime/components/Calendar.d.ts +2 -1
  17. package/dist/components/DateTime/components/Calendar.js +4 -4
  18. package/dist/components/DateTime/components/Calendar.js.map +1 -1
  19. package/dist/components/DateTime/hooks/useDateTime.js +18 -17
  20. package/dist/components/DateTime/hooks/useDateTime.js.map +1 -1
  21. package/dist/components/DateTime/translations.d.ts +1 -1
  22. package/dist/components/Decimal/Decimal.js +5 -1
  23. package/dist/components/Decimal/Decimal.js.map +1 -1
  24. package/dist/components/Duration/Duration.js +49 -26
  25. package/dist/components/Duration/Duration.js.map +1 -1
  26. package/dist/components/Duration/durationOptions.d.ts +1 -1
  27. package/dist/components/Grid/Grid.js +1 -1
  28. package/dist/components/Grid/Grid.js.map +1 -1
  29. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +78 -174
  30. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
  31. package/dist/components/Grid/core/components/AgGrid/context.d.ts +3 -0
  32. package/dist/components/Grid/core/components/AgGrid/context.js +6 -0
  33. package/dist/components/Grid/core/components/AgGrid/context.js.map +1 -0
  34. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +41 -6
  35. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +235 -49
  36. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
  37. package/dist/components/Grid/core/components/AgGrid/model/Comparator.d.ts +9 -0
  38. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js +86 -0
  39. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +1 -0
  40. package/dist/components/Grid/core/components/AgGrid/styles.d.ts +28 -32
  41. package/dist/components/Grid/core/components/AgGrid/styles.js +31 -35
  42. package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -1
  43. package/dist/components/Grid/core/components/Cell/Cell.d.ts +13 -0
  44. package/dist/components/Grid/core/components/Cell/Cell.js +145 -0
  45. package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -0
  46. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +3 -0
  47. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +212 -0
  48. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -0
  49. package/dist/components/Grid/core/components/Cell/CellContent/styles.d.ts +33 -0
  50. package/dist/components/Grid/core/components/Cell/CellContent/styles.js +39 -0
  51. package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +1 -0
  52. package/dist/components/Grid/core/components/Cell/Commands/Commands.js.map +1 -1
  53. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.d.ts +12 -0
  54. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js +112 -0
  55. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +1 -0
  56. package/dist/components/Grid/core/components/Cell/Notifications/styles.d.ts +39 -0
  57. package/dist/components/Grid/core/components/Cell/Notifications/styles.js +46 -0
  58. package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +1 -0
  59. package/dist/components/Grid/core/components/Cell/styles.d.ts +40 -0
  60. package/dist/components/Grid/core/components/Cell/styles.js +59 -0
  61. package/dist/components/Grid/core/components/Cell/styles.js.map +1 -0
  62. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +3 -2
  63. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -1
  64. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +31 -13
  65. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -1
  66. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts +3 -2
  67. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js +5 -4
  68. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +1 -1
  69. package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +3 -1
  70. package/dist/components/Grid/core/components/ColumnHeader/styles.js +4 -2
  71. package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +1 -1
  72. package/dist/components/Grid/core/components/Save/Save.js +5 -6
  73. package/dist/components/Grid/core/components/Save/Save.js.map +1 -1
  74. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +10 -7
  75. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -1
  76. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +1 -0
  77. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +26 -7
  78. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -1
  79. package/dist/components/Grid/core/controllers/useGridController.js +8 -2
  80. package/dist/components/Grid/core/controllers/useGridController.js.map +1 -1
  81. package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +2 -0
  82. package/dist/components/Grid/core/model/Grid.d.ts +17 -8
  83. package/dist/components/Grid/core/model/Grid.js +229 -45
  84. package/dist/components/Grid/core/model/Grid.js.map +1 -1
  85. package/dist/components/Grid/core/model/GridDependency.d.ts +1 -1
  86. package/dist/components/Grid/core/model/Metadata.d.ts +3 -2
  87. package/dist/components/Grid/core/services/KeyListener.d.ts +2 -0
  88. package/dist/components/Grid/core/services/KeyListener.js +6 -3
  89. package/dist/components/Grid/core/services/KeyListener.js.map +1 -1
  90. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +3 -3
  91. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +1 -1
  92. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +19 -7
  93. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.d.ts +2 -2
  94. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.js +9 -9
  95. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +1 -0
  96. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.d.ts +2 -2
  97. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.js +1 -1
  98. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +1 -0
  99. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.d.ts +2 -2
  100. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.js +15 -19
  101. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -0
  102. package/dist/components/Grid/filtering/model/Condition.d.ts +1 -1
  103. package/dist/components/Grid/filtering/model/Condition.js +1 -1
  104. package/dist/components/Grid/filtering/model/Condition.js.map +1 -1
  105. package/dist/components/Grid/interfaces.d.ts +1 -1
  106. package/dist/components/Grid/selection/model/Selection.d.ts +3 -4
  107. package/dist/components/Grid/selection/model/Selection.js +8 -26
  108. package/dist/components/Grid/selection/model/Selection.js.map +1 -1
  109. package/dist/components/Grid/sorting/Sorting.d.ts +1 -1
  110. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +1 -1
  111. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -1
  112. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +1 -1
  113. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +2 -0
  114. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +11 -0
  115. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +1 -0
  116. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +1 -0
  117. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +2 -0
  118. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +1 -0
  119. package/dist/components/GridCellRenderer/GridCellRenderer.d.ts +3 -0
  120. package/dist/components/GridCellRenderer/GridCellRenderer.js +252 -0
  121. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -0
  122. package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +5 -0
  123. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +69 -0
  124. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -0
  125. package/dist/components/GridCellRenderer/OptionSet/index.d.ts +1 -0
  126. package/dist/components/GridCellRenderer/OptionSet/index.js +2 -0
  127. package/dist/components/GridCellRenderer/OptionSet/index.js.map +1 -0
  128. package/dist/components/{Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet → GridCellRenderer/OptionSet}/styles.d.ts +10 -12
  129. package/dist/components/GridCellRenderer/OptionSet/styles.js +29 -0
  130. package/dist/components/GridCellRenderer/OptionSet/styles.js.map +1 -0
  131. package/dist/components/GridCellRenderer/index.d.ts +1 -0
  132. package/dist/components/GridCellRenderer/index.js +2 -0
  133. package/dist/components/GridCellRenderer/index.js.map +1 -0
  134. package/dist/components/GridCellRenderer/interfaces.d.ts +53 -0
  135. package/dist/components/GridCellRenderer/styles.d.ts +72 -0
  136. package/dist/components/GridCellRenderer/styles.js +105 -0
  137. package/dist/components/GridCellRenderer/styles.js.map +1 -0
  138. package/dist/components/GridCellRenderer/translations.d.ts +6 -0
  139. package/dist/components/GridCellRenderer/translations.js +11 -0
  140. package/dist/components/GridCellRenderer/translations.js.map +1 -0
  141. package/dist/components/GridCellRenderer/useComponentProps.d.ts +6 -0
  142. package/dist/components/GridCellRenderer/useComponentProps.js +10 -0
  143. package/dist/components/GridCellRenderer/useComponentProps.js.map +1 -0
  144. package/dist/components/Lookup/Lookup.js +8 -3
  145. package/dist/components/Lookup/Lookup.js.map +1 -1
  146. package/dist/components/Lookup/hooks/useFetchXml.d.ts +1 -1
  147. package/dist/components/Lookup/hooks/useLookup.d.ts +1 -1
  148. package/dist/components/Lookup/interfaces.d.ts +1 -1
  149. package/dist/components/Lookup/styles.d.ts +19 -7
  150. package/dist/components/Lookup/styles.js +22 -8
  151. package/dist/components/Lookup/styles.js.map +1 -1
  152. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +51 -28
  153. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
  154. package/dist/components/NestedControlRenderer/NestedControl.d.ts +86 -0
  155. package/dist/components/NestedControlRenderer/NestedControl.js +456 -0
  156. package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -0
  157. package/dist/components/NestedControlRenderer/NestedControlError.d.ts +4 -0
  158. package/dist/components/NestedControlRenderer/NestedControlError.js +13 -0
  159. package/dist/components/NestedControlRenderer/NestedControlError.js.map +1 -0
  160. package/dist/components/NestedControlRenderer/NestedControlRenderer.d.ts +3 -0
  161. package/dist/components/NestedControlRenderer/NestedControlRenderer.js +194 -0
  162. package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -0
  163. package/dist/components/NestedControlRenderer/index.d.ts +1 -0
  164. package/dist/components/NestedControlRenderer/index.js +2 -0
  165. package/dist/components/NestedControlRenderer/index.js.map +1 -0
  166. package/dist/components/NestedControlRenderer/interfaces.d.ts +118 -0
  167. package/dist/components/NestedControlRenderer/manifest/Control.d.ts +16 -0
  168. package/dist/components/NestedControlRenderer/manifest/Control.js +40 -0
  169. package/dist/components/NestedControlRenderer/manifest/Control.js.map +1 -0
  170. package/dist/components/NestedControlRenderer/manifest/Manifest.d.ts +5 -0
  171. package/dist/components/NestedControlRenderer/manifest/Manifest.js +12 -0
  172. package/dist/components/NestedControlRenderer/manifest/Manifest.js.map +1 -0
  173. package/dist/components/NestedControlRenderer/manifest/TypeGroup.d.ts +6 -0
  174. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js +13 -0
  175. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js.map +1 -0
  176. package/dist/components/NestedControlRenderer/manifest/index.d.ts +1 -0
  177. package/dist/components/NestedControlRenderer/manifest/index.js +2 -0
  178. package/dist/components/NestedControlRenderer/manifest/index.js.map +1 -0
  179. package/dist/components/NestedControlRenderer/manifest/property/Property.d.ts +16 -0
  180. package/dist/components/NestedControlRenderer/manifest/property/Property.js +34 -0
  181. package/dist/components/NestedControlRenderer/manifest/property/Property.js.map +1 -0
  182. package/dist/components/NestedControlRenderer/manifest/property/Value.d.ts +8 -0
  183. package/dist/components/NestedControlRenderer/manifest/property/Value.js +12 -0
  184. package/dist/components/NestedControlRenderer/manifest/property/Value.js.map +1 -0
  185. package/dist/components/NestedControlRenderer/properties/DateProperty.d.ts +5 -0
  186. package/dist/components/NestedControlRenderer/properties/DateProperty.js +22 -0
  187. package/dist/components/NestedControlRenderer/properties/DateProperty.js.map +1 -0
  188. package/dist/components/NestedControlRenderer/properties/FileProperty.d.ts +5 -0
  189. package/dist/components/NestedControlRenderer/properties/FileProperty.js +16 -0
  190. package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -0
  191. package/dist/components/NestedControlRenderer/properties/LookupProperty.d.ts +6 -0
  192. package/dist/components/NestedControlRenderer/properties/LookupProperty.js +36 -0
  193. package/dist/components/NestedControlRenderer/properties/LookupProperty.js.map +1 -0
  194. package/dist/components/NestedControlRenderer/properties/NumberProperty.d.ts +5 -0
  195. package/dist/components/NestedControlRenderer/properties/NumberProperty.js +17 -0
  196. package/dist/components/NestedControlRenderer/properties/NumberProperty.js.map +1 -0
  197. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.d.ts +5 -0
  198. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js +23 -0
  199. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js.map +1 -0
  200. package/dist/components/NestedControlRenderer/properties/Property.d.ts +16 -0
  201. package/dist/components/NestedControlRenderer/properties/Property.js +41 -0
  202. package/dist/components/NestedControlRenderer/properties/Property.js.map +1 -0
  203. package/dist/components/NestedControlRenderer/properties/TextProperty.d.ts +5 -0
  204. package/dist/components/NestedControlRenderer/properties/TextProperty.js +15 -0
  205. package/dist/components/NestedControlRenderer/properties/TextProperty.js.map +1 -0
  206. package/dist/components/NestedControlRenderer/styles.d.ts +14 -0
  207. package/dist/components/NestedControlRenderer/styles.js +21 -0
  208. package/dist/components/NestedControlRenderer/styles.js.map +1 -0
  209. package/dist/components/NestedControlRenderer/translations.d.ts +14 -0
  210. package/dist/components/NestedControlRenderer/translations.js +19 -0
  211. package/dist/components/NestedControlRenderer/translations.js.map +1 -0
  212. package/dist/components/OptionSet/OptionSet.js +3 -3
  213. package/dist/components/OptionSet/OptionSet.js.map +1 -1
  214. package/dist/components/OptionSet/useComboBoxTheme.js +17 -17
  215. package/dist/components/OptionSet/useComboBoxTheme.js.map +1 -1
  216. package/dist/components/TextField/TextField.js.map +1 -1
  217. package/dist/components/TextField/interfaces.d.ts +2 -2
  218. package/dist/components/TwoOptions/TwoOptions.js +2 -1
  219. package/dist/components/TwoOptions/TwoOptions.js.map +1 -1
  220. package/dist/components/index.d.ts +13 -0
  221. package/dist/components/index.js +15 -0
  222. package/dist/components/index.js.map +1 -0
  223. package/dist/hooks/index.d.ts +1 -0
  224. package/dist/hooks/index.js +1 -0
  225. package/dist/hooks/index.js.map +1 -1
  226. package/dist/hooks/useControl.d.ts +1 -7
  227. package/dist/hooks/useControl.js +12 -40
  228. package/dist/hooks/useControl.js.map +1 -1
  229. package/dist/hooks/useControlLabels.d.ts +14 -0
  230. package/dist/hooks/useControlLabels.js +47 -0
  231. package/dist/hooks/useControlLabels.js.map +1 -0
  232. package/dist/hooks/useControlSizing.d.ts +1 -1
  233. package/dist/hooks/useInputBasedControl.d.ts +2 -1
  234. package/dist/hooks/useInputBasedControl.js +3 -5
  235. package/dist/hooks/useInputBasedControl.js.map +1 -1
  236. package/dist/hooks/usePrevious.d.ts +1 -0
  237. package/dist/index.d.ts +453 -141
  238. package/dist/index.js +7 -2
  239. package/dist/index.js.map +1 -1
  240. package/dist/interfaces/context.d.ts +3 -2
  241. package/dist/interfaces/index.d.ts +1 -1
  242. package/dist/interfaces/property.d.ts +6 -1
  243. package/dist/utils/BaseControls.d.ts +16 -0
  244. package/dist/utils/BaseControls.js +82 -0
  245. package/dist/utils/BaseControls.js.map +1 -0
  246. package/dist/utils/index.d.ts +1 -0
  247. package/dist/utils/index.js +2 -0
  248. package/dist/utils/index.js.map +1 -1
  249. package/dist/utils/theme/ControlTheme.d.ts +2 -2
  250. package/dist/utils/theme/ControlTheme.js +1 -1
  251. package/dist/utils/theme/ControlTheme.js.map +1 -1
  252. package/dist/utils/theme/components/ThemeWrapper.d.ts +9 -0
  253. package/dist/utils/theme/components/ThemeWrapper.js +11 -0
  254. package/dist/utils/theme/components/ThemeWrapper.js.map +1 -0
  255. package/dist/utils/theme/components/index.d.ts +1 -0
  256. package/dist/utils/theme/components/index.js +2 -0
  257. package/dist/utils/theme/components/index.js.map +1 -0
  258. package/dist/utils/theme/hooks/useControlTheme.d.ts +1 -1
  259. package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
  260. package/dist/utils/theme/index.d.ts +1 -0
  261. package/dist/utils/theme/index.js +1 -0
  262. package/dist/utils/theme/index.js.map +1 -1
  263. package/package.json +3 -3
  264. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.d.ts +0 -10
  265. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js +0 -82
  266. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js.map +0 -1
  267. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.d.ts +0 -11
  268. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js +0 -93
  269. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js.map +0 -1
  270. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.d.ts +0 -36
  271. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js +0 -42
  272. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js.map +0 -1
  273. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.d.ts +0 -11
  274. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js +0 -221
  275. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js.map +0 -1
  276. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +0 -10
  277. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js +0 -49
  278. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js.map +0 -1
  279. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js +0 -27
  280. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js.map +0 -1
  281. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.d.ts +0 -99
  282. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js +0 -123
  283. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js.map +0 -1
  284. package/dist/components/Grid/core/components/Component/Component.js.map +0 -1
  285. package/dist/components/Grid/core/components/Component/controller/useComponentController.js.map +0 -1
  286. package/dist/components/Grid/core/components/Component/model/Component.js.map +0 -1
  287. package/dist/components/Grid/core/model/Metadata.js +0 -26
  288. package/dist/components/Grid/core/model/Metadata.js.map +0 -1
  289. package/dist/components/Grid/selection/controllers/useSelectionController.d.ts +0 -11
  290. package/dist/components/Grid/selection/controllers/useSelectionController.js +0 -21
  291. package/dist/components/Grid/selection/controllers/useSelectionController.js.map +0 -1
  292. package/dist/hooks/useRerender.d.ts +0 -1
  293. package/dist/hooks/useRerender.js +0 -9
  294. package/dist/hooks/useRerender.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- /// <reference types="powerapps-component-framework" />
1
+ /// <reference types="@types/powerapps-component-framework" />
2
2
  /// <reference types="react" />
3
- import { ITheme, IDatePickerProps, ITextFieldProps, IComboBoxProps, ITagPickerProps } from '@talxis/react-components';
4
- import { DeepPartial, IDataset } from '@talxis/client-libraries';
5
- import { ITheme as ITheme$1, IToggleProps } from '@fluentui/react';
3
+ import { ITheme, IDatePickerProps, ITextFieldProps, ITagPickerProps, IComboBoxProps } from '@talxis/react-components';
4
+ import { DeepPartial, DataType, IDataset, IColumn, IRecord } from '@talxis/client-libraries';
5
+ import { ITheme as ITheme$1, ThemeProviderProps, ILinkProps, ITextProps, IIconProps, IImageProps, ISpinnerProps, IShimmerProps, IMessageBar, IButtonProps, IToggleProps } from '@fluentui/react';
6
+ import React$1 from 'react';
6
7
  import { AgGridReactProps } from '@ag-grid-community/react';
7
8
 
8
9
  type ExcludedProps = Pick<ComponentFramework.PropertyTypes.Property, 'formatted'>;
@@ -11,6 +12,10 @@ interface IProperty extends Omit<Partial<ComponentFramework.PropertyTypes.Proper
11
12
  interface IStringProperty extends IProperty, Partial<ComponentFramework.PropertyTypes.StringProperty> {
12
13
  raw: string | null;
13
14
  }
15
+ interface IFileProperty extends IProperty {
16
+ raw: ComponentFramework.FileObject | null;
17
+ formatted: string;
18
+ }
14
19
  interface IDecimalNumberProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.DecimalNumberProperty>, 'attributes'> {
15
20
  raw: number | null;
16
21
  type: 'Whole.None' | 'Decimal' | 'Currency';
@@ -19,6 +24,7 @@ interface IDecimalNumberProperty extends IProperty, Omit<Partial<ComponentFramew
19
24
  }
20
25
  interface IWholeNumberProperty extends IProperty, Omit<Partial<ComponentFramework.PropertyTypes.WholeNumberProperty>, 'attributes'> {
21
26
  raw: number | null;
27
+ attributes?: Partial<ComponentFramework.PropertyHelper.FieldPropertyMetadata.DecimalNumberMetadata>;
22
28
  }
23
29
  interface IDateTimeProperty extends IProperty, Partial<ComponentFramework.PropertyTypes.DateTimeProperty> {
24
30
  raw: Date | null;
@@ -85,7 +91,7 @@ declare class ControlTheme {
85
91
  }): IFluentDesignState;
86
92
  }
87
93
 
88
- declare const useControlTheme: (fluentDesignLanguage?: IFluentDesignState) => ITheme$1;
94
+ declare const useControlTheme: (fluentDesignLanguage?: IFluentDesignState) => ITheme;
89
95
 
90
96
  declare const useControlThemeGenerator: (primaryColor: string, backgroundColor: string, textColor: string, options?: {
91
97
  /**
@@ -99,13 +105,35 @@ declare const useControlThemeGenerator: (primaryColor: string, backgroundColor:
99
105
  applicationTheme?: ITheme$1;
100
106
  }) => IFluentDesignState;
101
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
+
102
130
  interface IOutputs$1 {
103
131
  [key: string]: any;
104
132
  }
105
133
  interface IContext extends ComponentFramework.Context<any> {
106
134
  fluentDesignLanguage?: IFluentDesignState;
107
135
  }
108
- interface IControl<TParameters, TOutputs, TTranslations, TComponentProps> {
136
+ interface IControl<TParameters extends IParameters$1, TOutputs, TTranslations, TComponentProps> {
109
137
  context: IContext;
110
138
  parameters: TParameters;
111
139
  translations?: TTranslations;
@@ -128,7 +156,7 @@ interface IOutputs {
128
156
  [key: string]: any;
129
157
  }
130
158
  interface IParameters$1 {
131
- [key: string]: IProperty | undefined;
159
+ [key: string]: IProperty | undefined | any;
132
160
  }
133
161
 
134
162
  type ITranslation<T> = {
@@ -138,6 +166,13 @@ interface IDefaultTranslations {
138
166
  [LCID: number]: string | string[];
139
167
  [key: string]: any;
140
168
  }
169
+ interface ILabelsOptions<TTranslations> {
170
+ languageId: number;
171
+ translations?: TTranslations;
172
+ defaultTranslations?: IDefaultTranslations;
173
+ }
174
+ declare const useControlLabels: <TTranslations>(options: ILabelsOptions<TTranslations>) => Required<ITranslation<TTranslations>>;
175
+
141
176
  interface IControlController<TTranslations, TOutputs> {
142
177
  labels: Required<ITranslation<TTranslations>>;
143
178
  sizing: {
@@ -220,125 +255,6 @@ declare const useInputBasedControl: <TValue, TParameters extends IInputParameter
220
255
 
221
256
  declare const useMouseOver: (ref: React.RefObject<HTMLElement>) => boolean;
222
257
 
223
- declare const getDefaultDateTimeTranslations: (dateFormattingInfo: ComponentFramework.UserSettingApi.DateFormattingInfo) => {
224
- time: {
225
- 1029: string;
226
- 1033: string;
227
- };
228
- goToToday: {
229
- 1029: string;
230
- 1033: string;
231
- };
232
- invalidTimeInput: {
233
- 1029: string;
234
- 1033: string;
235
- };
236
- days: string[];
237
- months: string[];
238
- shortDays: string[];
239
- shortMonths: string[];
240
- };
241
-
242
- interface IDateTime extends IControl<IDateTimeParameters, IDateTimeOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDateTimeTranslations>>>, IDatePickerProps> {
243
- }
244
- interface IDateTimeParameters extends IInputParameters {
245
- value: IDateTimeProperty;
246
- EnableMonthPicker?: ITwoOptionsProperty;
247
- EnableDayPicker?: ITwoOptionsProperty;
248
- /**
249
- * JSON array of dates that should not be selectable, example: ['2019-01-10', '2019-01-11']
250
- */
251
- RestrictedDates?: IStringProperty;
252
- /**
253
- * JSON array of week days that should not be selectable (0 = Sunday,...6 = Saturday), example: [0,2,3]
254
- */
255
- RestrictedDaysOfWeek?: IStringProperty;
256
- }
257
- interface IDateTimeOutputs extends IOutputs$1 {
258
- value?: Date;
259
- }
260
-
261
- declare const DateTime: (componentProps: IDateTime) => JSX.Element;
262
-
263
- declare const useDateTime: (props: IDateTime, ref: React.RefObject<HTMLDivElement>) => [boolean, ITheme, ITranslation<Partial<ITranslations<{
264
- time: {
265
- 1029: string;
266
- 1033: string;
267
- };
268
- goToToday: {
269
- 1029: string;
270
- 1033: string;
271
- };
272
- invalidTimeInput: {
273
- 1029: string;
274
- 1033: string;
275
- };
276
- days: string[];
277
- months: string[];
278
- shortDays: string[];
279
- shortMonths: string[];
280
- }>>>, {
281
- get: () => Date | undefined;
282
- getFormatted: () => string | undefined;
283
- set: (date?: Date, time?: string) => void;
284
- setDateString: (value: string | undefined) => void;
285
- clear: () => void;
286
- }, {
287
- shortDatePattern: string;
288
- shortTimePattern: string;
289
- fullDateTimePattern: string;
290
- }];
291
-
292
- interface IDecimal extends IControl<IDecimalParameters, IDecimalOutputs, any, ITextFieldProps> {
293
- }
294
- interface IDecimalParameters extends IInputParameters {
295
- value: IDecimalNumberProperty;
296
- EnableSpinButton?: Omit<ITwoOptionsProperty, 'attributes'>;
297
- }
298
- interface IDecimalOutputs extends IOutputs$1 {
299
- value?: number;
300
- }
301
-
302
- declare const Decimal: (props: IDecimal) => JSX.Element;
303
-
304
- declare const getDefaultDurationTranslations: () => {
305
- minute: {
306
- 1029: string[];
307
- 1033: string[];
308
- };
309
- minutes: {
310
- 1029: string[];
311
- 1033: string[];
312
- };
313
- hour: {
314
- 1029: string[];
315
- 1033: string[];
316
- };
317
- hours: {
318
- 1029: string[];
319
- 1033: string[];
320
- };
321
- day: {
322
- 1029: string[];
323
- 1033: string[];
324
- };
325
- days: {
326
- 1029: string[];
327
- 1033: string[];
328
- };
329
- };
330
-
331
- interface IDuration extends IControl<IDurationParameters, IDurationOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDurationTranslations>>>, IComboBoxProps> {
332
- }
333
- interface IDurationParameters extends IInputParameters {
334
- value: IWholeNumberProperty;
335
- }
336
- interface IDurationOutputs extends IOutputs$1 {
337
- value?: number;
338
- }
339
-
340
- declare const Duration: (props: IDuration) => JSX.Element;
341
-
342
258
  declare const gridTranslations: {
343
259
  "condition-none": {
344
260
  1029: string;
@@ -712,6 +628,171 @@ interface IGridOutputs extends IOutputs$1 {
712
628
 
713
629
  declare const Grid: (props: IGrid) => JSX.Element;
714
630
 
631
+ declare const datasetControlTranslations: {
632
+ search: {
633
+ 1029: string;
634
+ 1033: string;
635
+ };
636
+ records: {
637
+ 1029: string;
638
+ 1033: string;
639
+ };
640
+ generalError: {
641
+ 1029: string;
642
+ 1033: string;
643
+ };
644
+ reload: {
645
+ 1029: string;
646
+ 1033: string;
647
+ };
648
+ };
649
+
650
+ interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, any & {
651
+ onDatasetInit: () => void;
652
+ }> {
653
+ EnableQuickFind?: Omit<ITwoOptionsProperty, 'attributes'>;
654
+ }
655
+
656
+ declare const DatasetControl: (props: IDatasetControl) => JSX.Element;
657
+
658
+ declare const getDefaultDateTimeTranslations: (dateFormattingInfo: ComponentFramework.UserSettingApi.DateFormattingInfo) => {
659
+ time: {
660
+ 1029: string;
661
+ 1033: string;
662
+ };
663
+ goToToday: {
664
+ 1029: string;
665
+ 1033: string;
666
+ };
667
+ invalidTimeInput: {
668
+ 1029: string;
669
+ 1033: string;
670
+ };
671
+ days: string[];
672
+ months: string[];
673
+ shortDays: string[];
674
+ shortMonths: string[];
675
+ };
676
+
677
+ interface IDateTime extends IControl<IDateTimeParameters, IDateTimeOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDateTimeTranslations>>>, IDatePickerProps> {
678
+ }
679
+ interface IDateTimeParameters extends IInputParameters {
680
+ value: IDateTimeProperty;
681
+ EnableMonthPicker?: ITwoOptionsProperty;
682
+ EnableDayPicker?: ITwoOptionsProperty;
683
+ /**
684
+ * JSON array of dates that should not be selectable, example: ['2019-01-10', '2019-01-11']
685
+ */
686
+ RestrictedDates?: IStringProperty;
687
+ /**
688
+ * JSON array of week days that should not be selectable (0 = Sunday,...6 = Saturday), example: [0,2,3]
689
+ */
690
+ RestrictedDaysOfWeek?: IStringProperty;
691
+ }
692
+ interface IDateTimeOutputs extends IOutputs$1 {
693
+ value?: Date;
694
+ }
695
+
696
+ declare const DateTime: (componentProps: IDateTime) => JSX.Element;
697
+
698
+ declare const useDateTime: (props: IDateTime, ref: React.RefObject<HTMLDivElement>) => [boolean, ITheme, ITranslation<Partial<ITranslations<{
699
+ time: {
700
+ 1029: string;
701
+ 1033: string;
702
+ };
703
+ goToToday: {
704
+ 1029: string;
705
+ 1033: string;
706
+ };
707
+ invalidTimeInput: {
708
+ 1029: string;
709
+ 1033: string;
710
+ };
711
+ days: string[];
712
+ months: string[];
713
+ shortDays: string[];
714
+ shortMonths: string[];
715
+ }>>>, {
716
+ get: () => Date | undefined;
717
+ getFormatted: () => string | undefined;
718
+ set: (date?: Date, time?: string) => void;
719
+ setDateString: (value: string | undefined) => void;
720
+ clear: () => void;
721
+ }, {
722
+ shortDatePattern: string;
723
+ shortTimePattern: string;
724
+ fullDateTimePattern: string;
725
+ }];
726
+
727
+ interface IDecimal extends IControl<IDecimalParameters, IDecimalOutputs, any, ITextFieldProps> {
728
+ }
729
+ interface IDecimalParameters extends IInputParameters {
730
+ value: IDecimalNumberProperty;
731
+ EnableSpinButton?: Omit<ITwoOptionsProperty, 'attributes'>;
732
+ }
733
+ interface IDecimalOutputs extends IOutputs$1 {
734
+ value?: number;
735
+ }
736
+
737
+ declare const Decimal: (props: IDecimal) => JSX.Element;
738
+
739
+ declare const getDefaultGridRendererTranslations: () => {
740
+ download: {
741
+ 1029: string;
742
+ 1033: string;
743
+ };
744
+ };
745
+
746
+ interface IGridCellRenderer extends IControl<IGridCellRendererParameters, {}, ReturnType<typeof getDefaultGridRendererTranslations>, IGridCellRendererComponentProps> {
747
+ }
748
+ interface IGridCellRendererParameters extends IParameters$1 {
749
+ value: any;
750
+ ColumnAlignment: Omit<ComponentFramework.PropertyTypes.EnumProperty<"left" | "center" | "right">, 'type'>;
751
+ CellType: Omit<ComponentFramework.PropertyTypes.EnumProperty<"renderer" | "editor">, 'type'>;
752
+ EnableNavigation: Omit<ITwoOptionsProperty, 'attributes'>;
753
+ PrefixIcon?: IStringProperty;
754
+ SuffixIcon?: IStringProperty;
755
+ Column: {
756
+ raw: IColumn;
757
+ };
758
+ Dataset: {
759
+ raw: IDataset;
760
+ };
761
+ Record: {
762
+ raw: IRecord;
763
+ };
764
+ }
765
+ interface IOptionSetProps {
766
+ containerProps: React.HTMLAttributes<HTMLDivElement>;
767
+ onGetOptionProps: (props: IOptionProps) => IOptionProps;
768
+ }
769
+ interface IOptionProps {
770
+ containerProps: ThemeProviderProps;
771
+ option: ComponentFramework.PropertyHelper.OptionMetadata;
772
+ textProps: ITextProps;
773
+ }
774
+ interface IGridCellRendererComponentProps {
775
+ onGetOptionSetProps: (props: IOptionSetProps) => IOptionSetProps;
776
+ onGetLinkProps: (props: ILinkProps) => ILinkProps;
777
+ rootContainerProps: ThemeProviderProps;
778
+ contentWrapperProps: React.HTMLAttributes<HTMLDivElement>;
779
+ textProps: ITextProps;
780
+ fileProps: {
781
+ containerProps: React.HTMLAttributes<HTMLDivElement>;
782
+ iconProps: Omit<IIconProps, 'iconName'> & {
783
+ onGetIconName: (iconName: string) => string;
784
+ };
785
+ imageProps: Omit<IImageProps, 'src'> & {
786
+ onGetSrc: (src: string) => string;
787
+ };
788
+ loadingProps: {
789
+ spinnerProps: ISpinnerProps;
790
+ };
791
+ };
792
+ }
793
+
794
+ declare const GridCellRenderer: (props: IGridCellRenderer) => JSX.Element;
795
+
715
796
  declare const lookupTranslations: {
716
797
  search: {
717
798
  1033: string;
@@ -857,6 +938,218 @@ interface IMultiSelectOptionSetOutputs extends IOutputs$1 {
857
938
 
858
939
  declare const MultiSelectOptionSet: (props: IMultiSelectOptionSet) => JSX.Element;
859
940
 
941
+ interface IOptions {
942
+ onGetBindings: () => {
943
+ [key: string]: IBinding;
944
+ };
945
+ /**
946
+ * PCF Context of parent control using this class. It will be used as base for nested control PCF context.
947
+ */
948
+ parentPcfContext: ComponentFramework.Context<any, any>;
949
+ /**
950
+ * Custom PCF to be rendered, if not provided you will get Base Control props.
951
+ */
952
+ /**
953
+ * Container element into which the control will be rendered in.
954
+ */
955
+ onGetContainerElement?: () => HTMLDivElement;
956
+ onGetControlName?: () => string;
957
+ callbacks?: {
958
+ onInit?: (instance: NestedControl) => void;
959
+ onGetControlStates?: () => IControlStates | undefined;
960
+ onNotifyOutputChanged?: (ouputs: any) => void;
961
+ /**
962
+ * Triggers when the control changes a state that should be visible in control renderer UI (for example loading)
963
+ */
964
+ onControlStateChanged?: () => void;
965
+ };
966
+ overrides?: {
967
+ onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
968
+ onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;
969
+ onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;
970
+ };
971
+ }
972
+ declare class NestedControl {
973
+ private _options;
974
+ private _pendingInitialRender;
975
+ private _errorMessage;
976
+ private _properties;
977
+ private _lastRenderedControlName;
978
+ private _hasCustomPcfBeenMounted;
979
+ private _customControlInstance;
980
+ private _customControlId;
981
+ private _manifest;
982
+ private _loading;
983
+ private _props;
984
+ private _mutationObserver;
985
+ private _destroyed;
986
+ private _initialized;
987
+ private _container;
988
+ private _hasControlBeenPatched;
989
+ constructor(options: IOptions);
990
+ getProps(): IControl<IParameters$1, any, any, any>;
991
+ refreshProps(): any;
992
+ getParameters(): {
993
+ [name: string]: IProperty;
994
+ };
995
+ isLoading(): boolean;
996
+ setLoading(loading: boolean): void;
997
+ getOptions(): IOptions;
998
+ render(): Promise<void>;
999
+ unmount(softUnmount?: boolean): void;
1000
+ getErrorMessage(): string;
1001
+ setError(message?: string): void;
1002
+ isMountedPcfComponent(): boolean;
1003
+ getContainer(): HTMLDivElement;
1004
+ getControlName(): string;
1005
+ getBindings(): {
1006
+ [key: string]: IBinding;
1007
+ };
1008
+ getCustomControlId(): string;
1009
+ private _overrideDecorator;
1010
+ private _unmount;
1011
+ private _render;
1012
+ private _getCustomControlNameWithoutPrefix;
1013
+ private _checkIfControlLoadedToDom;
1014
+ private _getPropertiesFromBindings;
1015
+ private _getPropertyInstance;
1016
+ private _getPrimaryBindingName;
1017
+ private _getManifestPrimaryBinding;
1018
+ private _getManifest;
1019
+ private _getCustomControlParameters;
1020
+ private _patchUpdateView;
1021
+ private _patchContext;
1022
+ private _getFluentDesignLanguage;
1023
+ }
1024
+
1025
+ declare const getDefaultNestedControlRendererTranslations: () => {
1026
+ detail: {
1027
+ 1029: string;
1028
+ 1033: string;
1029
+ };
1030
+ control: {
1031
+ 1029: string;
1032
+ 1033: string;
1033
+ };
1034
+ failedToLoad: {
1035
+ 1029: string;
1036
+ 1033: string;
1037
+ };
1038
+ };
1039
+
1040
+ type ControlNameOptions = 'TextField' | 'OptionSet' | 'MultiSelectOptionSet' | 'Lookup' | 'Decimal' | 'Duration' | 'DateTime' | 'GridCellRenderer' | (string & {});
1041
+ interface INestedControlRenderer extends IControl<INestedControlRendererParameters, IOutputs$1, ReturnType<typeof getDefaultNestedControlRendererTranslations>, INestedControlRendererComponentProps> {
1042
+ }
1043
+ interface INestedControlRendererParameters extends IParameters$1 {
1044
+ /**
1045
+ * Specifies the name of the control to be rendered. This can be either a custom PCF control or a base control.
1046
+ */
1047
+ ControlName: ControlNameOptions;
1048
+ /**
1049
+ * Optional bindings that will be passed to the control. These bindings provide data and metadata to the control.
1050
+ */
1051
+ Bindings?: {
1052
+ [key: string]: IBinding;
1053
+ };
1054
+ /**
1055
+ * Specifies the type of loading indicator to display before the control is fully loaded.
1056
+ * Options include 'spinner', 'shimmer', or 'none' for no loading indicator.
1057
+ */
1058
+ LoadingType?: 'spinner' | 'shimmer' | 'none';
1059
+ /**
1060
+ * Optional configuration to set the control's state, such as enabling or disabling the control.
1061
+ */
1062
+ ControlStates?: IControlStates;
1063
+ }
1064
+ interface INestedControlRendererComponentProps {
1065
+ /**
1066
+ * Props for the loading indicator that appears before the control is fully loaded.
1067
+ */
1068
+ loadingProps: {
1069
+ spinnerProps: ISpinnerProps;
1070
+ shimmerProps: IShimmerProps;
1071
+ containerProps: React.HTMLAttributes<HTMLDivElement>;
1072
+ };
1073
+ /**
1074
+ * Props for the message bar that displays error messages.
1075
+ */
1076
+ messageBarProps: IMessageBar & {
1077
+ buttonProps: IButtonProps;
1078
+ };
1079
+ /**
1080
+ * Props for the top-level container that wraps the control and other elements like the loading indicator.
1081
+ */
1082
+ rootContainerProps: React.HTMLAttributes<HTMLDivElement>;
1083
+ /**
1084
+ * Props for the container used to render the control.
1085
+ */
1086
+ controlContainerProps: React.HTMLAttributes<HTMLDivElement>;
1087
+ /**
1088
+ * Callback function that allows you to override the generated control props.
1089
+ */
1090
+ onOverrideControlProps: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
1091
+ /**
1092
+ * Callback function that allows you to override the default control render.
1093
+ */
1094
+ onOverrideRender: (control: NestedControl, isCustomPcfComponent: boolean, defaultRender: () => void) => void;
1095
+ /**
1096
+ * Callback function that allows you to override the default control unmount behavior.
1097
+ */
1098
+ onOverrideUnmount: (control: NestedControl, defaultUnmount: () => void) => void;
1099
+ }
1100
+ interface IBinding {
1101
+ /**
1102
+ * The data type of the binding.
1103
+ */
1104
+ type: DataType;
1105
+ /**
1106
+ * Indicates whether the binding is static or bound.
1107
+ */
1108
+ isStatic: boolean;
1109
+ /**
1110
+ * The value of the binding.
1111
+ */
1112
+ value: any;
1113
+ /**
1114
+ * Indicates whether the binding has an error.
1115
+ */
1116
+ error?: boolean;
1117
+ /**
1118
+ * The error message associated with the binding, if any.
1119
+ */
1120
+ errorMessage?: string;
1121
+ /**
1122
+ * Optional metadata for the binding.
1123
+ */
1124
+ metadata?: {
1125
+ /**
1126
+ * The entity name associated with the binding.
1127
+ */
1128
+ entityName?: string;
1129
+ /**
1130
+ * The logical name of the attribute associated with the binding.
1131
+ */
1132
+ attributeName?: string;
1133
+ /**
1134
+ * Callback function to override the metadata for the binding.
1135
+ * Always return the spread metadata attribute to ensure proper merging.
1136
+ */
1137
+ onOverrideMetadata?: (metadata: any) => any;
1138
+ };
1139
+ /**
1140
+ * Callback function to notify when the binding's output value changes.
1141
+ */
1142
+ onNotifyOutputChanged?: (newValue: any) => void;
1143
+ }
1144
+ interface IControlStates {
1145
+ /**
1146
+ * Indicates whether the control is disabled.
1147
+ */
1148
+ isControlDisabled?: boolean;
1149
+ }
1150
+
1151
+ declare const NestedControlRenderer: (props: INestedControlRenderer) => JSX.Element;
1152
+
860
1153
  interface IOptionSet extends IControl<IOptionSetParameters, IOptionSetOutputs, any, IComboBoxProps> {
861
1154
  }
862
1155
  interface IOptionSetParameters extends IInputParameters {
@@ -872,8 +1165,8 @@ declare const OptionSet: (props: IOptionSet) => JSX.Element;
872
1165
  interface ITextField extends IControl<ITextFieldParameters, ITextFieldOutputs, any, ITextFieldProps> {
873
1166
  }
874
1167
  interface ITextFieldParameters extends IInputParameters {
875
- isResizable?: ITwoOptionsProperty;
876
- EnableTypeSuffix?: ITwoOptionsProperty;
1168
+ isResizable?: Omit<ITwoOptionsProperty, 'attributes'>;
1169
+ EnableTypeSuffix?: Omit<ITwoOptionsProperty, 'attributes'>;
877
1170
  value: IStringProperty;
878
1171
  }
879
1172
  interface ITextFieldOutputs extends IOutputs$1 {
@@ -894,23 +1187,42 @@ interface ITwoOptionsOutputs extends IOutputs$1 {
894
1187
 
895
1188
  declare const TwoOptions: (props: ITwoOptions) => JSX.Element;
896
1189
 
897
- declare const datasetControlTranslations: {
898
- search: {
899
- 1029: string;
900
- 1033: string;
1190
+ declare const getDefaultDurationTranslations: () => {
1191
+ minute: {
1192
+ 1029: string[];
1193
+ 1033: string[];
901
1194
  };
902
- records: {
903
- 1029: string;
904
- 1033: string;
1195
+ minutes: {
1196
+ 1029: string[];
1197
+ 1033: string[];
1198
+ };
1199
+ hour: {
1200
+ 1029: string[];
1201
+ 1033: string[];
1202
+ };
1203
+ hours: {
1204
+ 1029: string[];
1205
+ 1033: string[];
1206
+ };
1207
+ day: {
1208
+ 1029: string[];
1209
+ 1033: string[];
1210
+ };
1211
+ days: {
1212
+ 1029: string[];
1213
+ 1033: string[];
905
1214
  };
906
1215
  };
907
1216
 
908
- interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partial<ITranslation<typeof datasetControlTranslations & typeof gridTranslations>>, any & {
909
- onDatasetInit: () => void;
910
- }> {
911
- EnableQuickFind?: Omit<ITwoOptionsProperty, 'attributes'>;
1217
+ interface IDuration extends IControl<IDurationParameters, IDurationOutputs, Partial<ITranslations<ReturnType<typeof getDefaultDurationTranslations>>>, IComboBoxProps> {
1218
+ }
1219
+ interface IDurationParameters extends IInputParameters {
1220
+ value: IWholeNumberProperty;
1221
+ }
1222
+ interface IDurationOutputs extends IOutputs$1 {
1223
+ value?: number;
912
1224
  }
913
1225
 
914
- declare const DatasetControl: (props: IDatasetControl) => JSX.Element;
1226
+ declare const Duration: (props: IDuration) => JSX.Element;
915
1227
 
916
- export { ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, IContext, IControl, IControlController, IDatasetControl, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFluentDesignState, IGrid, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, OptionSet, TextField, TwoOptions, useControl, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
1228
+ export { BaseControl, BaseControls, ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, GridCellRenderer, IContext, IControl, IControlController, IDatasetControl, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFileProperty, IFluentDesignState, IGrid, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, NestedControlRenderer, OptionSet, TextField, ThemeWrapper, TwoOptions, useControl, useControlLabels, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };