@talxis/base-controls 1.2502.1 → 1.2503.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) 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/Decimal/Decimal.js +5 -1
  22. package/dist/components/Decimal/Decimal.js.map +1 -1
  23. package/dist/components/Duration/Duration.js +49 -26
  24. package/dist/components/Duration/Duration.js.map +1 -1
  25. package/dist/components/Grid/Grid.js +1 -1
  26. package/dist/components/Grid/Grid.js.map +1 -1
  27. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +78 -174
  28. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +1 -1
  29. package/dist/components/Grid/core/components/AgGrid/context.d.ts +3 -0
  30. package/dist/components/Grid/core/components/AgGrid/context.js +6 -0
  31. package/dist/components/Grid/core/components/AgGrid/context.js.map +1 -0
  32. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +40 -5
  33. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +235 -49
  34. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +1 -1
  35. package/dist/components/Grid/core/components/AgGrid/model/Comparator.d.ts +9 -0
  36. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js +86 -0
  37. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +1 -0
  38. package/dist/components/Grid/core/components/AgGrid/styles.d.ts +28 -32
  39. package/dist/components/Grid/core/components/AgGrid/styles.js +31 -35
  40. package/dist/components/Grid/core/components/AgGrid/styles.js.map +1 -1
  41. package/dist/components/Grid/core/components/Cell/Cell.d.ts +13 -0
  42. package/dist/components/Grid/core/components/Cell/Cell.js +145 -0
  43. package/dist/components/Grid/core/components/Cell/Cell.js.map +1 -0
  44. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.d.ts +3 -0
  45. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js +212 -0
  46. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +1 -0
  47. package/dist/components/Grid/core/components/Cell/CellContent/styles.d.ts +33 -0
  48. package/dist/components/Grid/core/components/Cell/CellContent/styles.js +39 -0
  49. package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +1 -0
  50. package/dist/components/Grid/core/components/Cell/Commands/Commands.js.map +1 -1
  51. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.d.ts +12 -0
  52. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js +112 -0
  53. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +1 -0
  54. package/dist/components/Grid/core/components/Cell/Notifications/styles.d.ts +39 -0
  55. package/dist/components/Grid/core/components/Cell/Notifications/styles.js +46 -0
  56. package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +1 -0
  57. package/dist/components/Grid/core/components/Cell/styles.d.ts +40 -0
  58. package/dist/components/Grid/core/components/Cell/styles.js +59 -0
  59. package/dist/components/Grid/core/components/Cell/styles.js.map +1 -0
  60. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +3 -2
  61. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +1 -1
  62. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +31 -13
  63. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +1 -1
  64. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.d.ts +3 -2
  65. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js +5 -4
  66. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +1 -1
  67. package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +3 -1
  68. package/dist/components/Grid/core/components/ColumnHeader/styles.js +4 -2
  69. package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +1 -1
  70. package/dist/components/Grid/core/components/Save/Save.js +5 -6
  71. package/dist/components/Grid/core/components/Save/Save.js.map +1 -1
  72. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +10 -7
  73. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +1 -1
  74. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +1 -0
  75. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +26 -7
  76. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +1 -1
  77. package/dist/components/Grid/core/controllers/useGridController.js +8 -2
  78. package/dist/components/Grid/core/controllers/useGridController.js.map +1 -1
  79. package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +2 -0
  80. package/dist/components/Grid/core/model/Grid.d.ts +16 -7
  81. package/dist/components/Grid/core/model/Grid.js +230 -45
  82. package/dist/components/Grid/core/model/Grid.js.map +1 -1
  83. package/dist/components/Grid/core/model/Metadata.d.ts +2 -1
  84. package/dist/components/Grid/core/services/KeyListener.d.ts +2 -0
  85. package/dist/components/Grid/core/services/KeyListener.js +6 -3
  86. package/dist/components/Grid/core/services/KeyListener.js.map +1 -1
  87. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +3 -3
  88. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +1 -1
  89. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +19 -7
  90. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.d.ts +2 -2
  91. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/Component.js +9 -9
  92. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +1 -0
  93. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.d.ts +2 -2
  94. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/controller/useComponentController.js +1 -1
  95. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +1 -0
  96. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.d.ts +2 -2
  97. package/dist/components/Grid/{core/components/Component → filtering/components/FilterCallout/components/LegacyControlRendering}/model/Component.js +15 -19
  98. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +1 -0
  99. package/dist/components/Grid/filtering/model/Condition.js +1 -1
  100. package/dist/components/Grid/filtering/model/Condition.js.map +1 -1
  101. package/dist/components/Grid/selection/model/Selection.d.ts +3 -4
  102. package/dist/components/Grid/selection/model/Selection.js +8 -26
  103. package/dist/components/Grid/selection/model/Selection.js.map +1 -1
  104. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +1 -1
  105. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +1 -1
  106. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +2 -0
  107. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +11 -0
  108. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +1 -0
  109. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +1 -0
  110. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +2 -0
  111. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +1 -0
  112. package/dist/components/GridCellRenderer/GridCellRenderer.d.ts +3 -0
  113. package/dist/components/GridCellRenderer/GridCellRenderer.js +252 -0
  114. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -0
  115. package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +5 -0
  116. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +69 -0
  117. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +1 -0
  118. package/dist/components/GridCellRenderer/OptionSet/index.d.ts +1 -0
  119. package/dist/components/GridCellRenderer/OptionSet/index.js +2 -0
  120. package/dist/components/GridCellRenderer/OptionSet/index.js.map +1 -0
  121. package/dist/components/{Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet → GridCellRenderer/OptionSet}/styles.d.ts +10 -12
  122. package/dist/components/GridCellRenderer/OptionSet/styles.js +29 -0
  123. package/dist/components/GridCellRenderer/OptionSet/styles.js.map +1 -0
  124. package/dist/components/GridCellRenderer/index.d.ts +1 -0
  125. package/dist/components/GridCellRenderer/index.js +2 -0
  126. package/dist/components/GridCellRenderer/index.js.map +1 -0
  127. package/dist/components/GridCellRenderer/interfaces.d.ts +53 -0
  128. package/dist/components/GridCellRenderer/styles.d.ts +72 -0
  129. package/dist/components/GridCellRenderer/styles.js +105 -0
  130. package/dist/components/GridCellRenderer/styles.js.map +1 -0
  131. package/dist/components/GridCellRenderer/translations.d.ts +6 -0
  132. package/dist/components/GridCellRenderer/translations.js +11 -0
  133. package/dist/components/GridCellRenderer/translations.js.map +1 -0
  134. package/dist/components/GridCellRenderer/useComponentProps.d.ts +6 -0
  135. package/dist/components/GridCellRenderer/useComponentProps.js +10 -0
  136. package/dist/components/GridCellRenderer/useComponentProps.js.map +1 -0
  137. package/dist/components/Lookup/Lookup.js +8 -3
  138. package/dist/components/Lookup/Lookup.js.map +1 -1
  139. package/dist/components/Lookup/styles.d.ts +19 -7
  140. package/dist/components/Lookup/styles.js +22 -8
  141. package/dist/components/Lookup/styles.js.map +1 -1
  142. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +51 -28
  143. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
  144. package/dist/components/NestedControlRenderer/NestedControl.d.ts +86 -0
  145. package/dist/components/NestedControlRenderer/NestedControl.js +456 -0
  146. package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -0
  147. package/dist/components/NestedControlRenderer/NestedControlError.d.ts +4 -0
  148. package/dist/components/NestedControlRenderer/NestedControlError.js +13 -0
  149. package/dist/components/NestedControlRenderer/NestedControlError.js.map +1 -0
  150. package/dist/components/NestedControlRenderer/NestedControlRenderer.d.ts +3 -0
  151. package/dist/components/NestedControlRenderer/NestedControlRenderer.js +194 -0
  152. package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -0
  153. package/dist/components/NestedControlRenderer/index.d.ts +1 -0
  154. package/dist/components/NestedControlRenderer/index.js +2 -0
  155. package/dist/components/NestedControlRenderer/index.js.map +1 -0
  156. package/dist/components/NestedControlRenderer/interfaces.d.ts +122 -0
  157. package/dist/components/NestedControlRenderer/manifest/Control.d.ts +16 -0
  158. package/dist/components/NestedControlRenderer/manifest/Control.js +40 -0
  159. package/dist/components/NestedControlRenderer/manifest/Control.js.map +1 -0
  160. package/dist/components/NestedControlRenderer/manifest/Manifest.d.ts +5 -0
  161. package/dist/components/NestedControlRenderer/manifest/Manifest.js +12 -0
  162. package/dist/components/NestedControlRenderer/manifest/Manifest.js.map +1 -0
  163. package/dist/components/NestedControlRenderer/manifest/TypeGroup.d.ts +6 -0
  164. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js +13 -0
  165. package/dist/components/NestedControlRenderer/manifest/TypeGroup.js.map +1 -0
  166. package/dist/components/NestedControlRenderer/manifest/index.d.ts +1 -0
  167. package/dist/components/NestedControlRenderer/manifest/index.js +2 -0
  168. package/dist/components/NestedControlRenderer/manifest/index.js.map +1 -0
  169. package/dist/components/NestedControlRenderer/manifest/property/Property.d.ts +16 -0
  170. package/dist/components/NestedControlRenderer/manifest/property/Property.js +34 -0
  171. package/dist/components/NestedControlRenderer/manifest/property/Property.js.map +1 -0
  172. package/dist/components/NestedControlRenderer/manifest/property/Value.d.ts +8 -0
  173. package/dist/components/NestedControlRenderer/manifest/property/Value.js +12 -0
  174. package/dist/components/NestedControlRenderer/manifest/property/Value.js.map +1 -0
  175. package/dist/components/NestedControlRenderer/properties/DateProperty.d.ts +5 -0
  176. package/dist/components/NestedControlRenderer/properties/DateProperty.js +20 -0
  177. package/dist/components/NestedControlRenderer/properties/DateProperty.js.map +1 -0
  178. package/dist/components/NestedControlRenderer/properties/FileProperty.d.ts +5 -0
  179. package/dist/components/NestedControlRenderer/properties/FileProperty.js +14 -0
  180. package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -0
  181. package/dist/components/NestedControlRenderer/properties/LookupProperty.d.ts +6 -0
  182. package/dist/components/NestedControlRenderer/properties/LookupProperty.js +35 -0
  183. package/dist/components/NestedControlRenderer/properties/LookupProperty.js.map +1 -0
  184. package/dist/components/NestedControlRenderer/properties/NumberProperty.d.ts +5 -0
  185. package/dist/components/NestedControlRenderer/properties/NumberProperty.js +15 -0
  186. package/dist/components/NestedControlRenderer/properties/NumberProperty.js.map +1 -0
  187. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.d.ts +5 -0
  188. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js +22 -0
  189. package/dist/components/NestedControlRenderer/properties/OptionSetProperty.js.map +1 -0
  190. package/dist/components/NestedControlRenderer/properties/Property.d.ts +17 -0
  191. package/dist/components/NestedControlRenderer/properties/Property.js +46 -0
  192. package/dist/components/NestedControlRenderer/properties/Property.js.map +1 -0
  193. package/dist/components/NestedControlRenderer/properties/TextProperty.d.ts +5 -0
  194. package/dist/components/NestedControlRenderer/properties/TextProperty.js +15 -0
  195. package/dist/components/NestedControlRenderer/properties/TextProperty.js.map +1 -0
  196. package/dist/components/NestedControlRenderer/styles.d.ts +14 -0
  197. package/dist/components/NestedControlRenderer/styles.js +21 -0
  198. package/dist/components/NestedControlRenderer/styles.js.map +1 -0
  199. package/dist/components/NestedControlRenderer/translations.d.ts +14 -0
  200. package/dist/components/NestedControlRenderer/translations.js +19 -0
  201. package/dist/components/NestedControlRenderer/translations.js.map +1 -0
  202. package/dist/components/OptionSet/OptionSet.js +3 -3
  203. package/dist/components/OptionSet/OptionSet.js.map +1 -1
  204. package/dist/components/OptionSet/useComboBoxTheme.js +17 -17
  205. package/dist/components/OptionSet/useComboBoxTheme.js.map +1 -1
  206. package/dist/components/TextField/TextField.js.map +1 -1
  207. package/dist/components/TextField/interfaces.d.ts +2 -2
  208. package/dist/components/TwoOptions/TwoOptions.js +2 -1
  209. package/dist/components/TwoOptions/TwoOptions.js.map +1 -1
  210. package/dist/components/index.d.ts +13 -0
  211. package/dist/components/index.js +15 -0
  212. package/dist/components/index.js.map +1 -0
  213. package/dist/hooks/index.d.ts +1 -0
  214. package/dist/hooks/index.js +1 -0
  215. package/dist/hooks/index.js.map +1 -1
  216. package/dist/hooks/useControl.d.ts +1 -7
  217. package/dist/hooks/useControl.js +12 -40
  218. package/dist/hooks/useControl.js.map +1 -1
  219. package/dist/hooks/useControlLabels.d.ts +14 -0
  220. package/dist/hooks/useControlLabels.js +47 -0
  221. package/dist/hooks/useControlLabels.js.map +1 -0
  222. package/dist/hooks/useInputBasedControl.d.ts +2 -1
  223. package/dist/hooks/useInputBasedControl.js +3 -5
  224. package/dist/hooks/useInputBasedControl.js.map +1 -1
  225. package/dist/hooks/usePrevious.d.ts +1 -0
  226. package/dist/index.d.ts +456 -140
  227. package/dist/index.js +7 -2
  228. package/dist/index.js.map +1 -1
  229. package/dist/interfaces/context.d.ts +2 -1
  230. package/dist/interfaces/index.d.ts +1 -1
  231. package/dist/interfaces/property.d.ts +5 -0
  232. package/dist/utils/BaseControls.d.ts +16 -0
  233. package/dist/utils/BaseControls.js +82 -0
  234. package/dist/utils/BaseControls.js.map +1 -0
  235. package/dist/utils/index.d.ts +1 -0
  236. package/dist/utils/index.js +2 -0
  237. package/dist/utils/index.js.map +1 -1
  238. package/dist/utils/theme/ControlTheme.d.ts +1 -1
  239. package/dist/utils/theme/ControlTheme.js +1 -1
  240. package/dist/utils/theme/ControlTheme.js.map +1 -1
  241. package/dist/utils/theme/components/ThemeWrapper.d.ts +9 -0
  242. package/dist/utils/theme/components/ThemeWrapper.js +11 -0
  243. package/dist/utils/theme/components/ThemeWrapper.js.map +1 -0
  244. package/dist/utils/theme/components/index.d.ts +1 -0
  245. package/dist/utils/theme/components/index.js +2 -0
  246. package/dist/utils/theme/components/index.js.map +1 -0
  247. package/dist/utils/theme/hooks/useControlTheme.d.ts +1 -1
  248. package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
  249. package/dist/utils/theme/index.d.ts +1 -0
  250. package/dist/utils/theme/index.js +1 -0
  251. package/dist/utils/theme/index.js.map +1 -1
  252. package/package.json +3 -3
  253. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.d.ts +0 -10
  254. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js +0 -82
  255. package/dist/components/Grid/core/components/Cell/EditableCell/EditableCell.js.map +0 -1
  256. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.d.ts +0 -11
  257. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js +0 -93
  258. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/Notifications.js.map +0 -1
  259. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.d.ts +0 -36
  260. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js +0 -42
  261. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/Notifications/styles.js.map +0 -1
  262. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.d.ts +0 -11
  263. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js +0 -221
  264. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyCell.js.map +0 -1
  265. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.d.ts +0 -10
  266. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js +0 -49
  267. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/ReadOnlyOptionSet.js.map +0 -1
  268. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js +0 -27
  269. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/ReadOnlyOptionSet/styles.js.map +0 -1
  270. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.d.ts +0 -99
  271. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js +0 -123
  272. package/dist/components/Grid/core/components/Cell/ReadOnlyCell/styles.js.map +0 -1
  273. package/dist/components/Grid/core/components/Component/Component.js.map +0 -1
  274. package/dist/components/Grid/core/components/Component/controller/useComponentController.js.map +0 -1
  275. package/dist/components/Grid/core/components/Component/model/Component.js.map +0 -1
  276. package/dist/components/Grid/core/model/Metadata.js +0 -26
  277. package/dist/components/Grid/core/model/Metadata.js.map +0 -1
  278. package/dist/components/Grid/selection/controllers/useSelectionController.d.ts +0 -11
  279. package/dist/components/Grid/selection/controllers/useSelectionController.js +0 -21
  280. package/dist/components/Grid/selection/controllers/useSelectionController.js.map +0 -1
  281. package/dist/hooks/useRerender.d.ts +0 -1
  282. package/dist/hooks/useRerender.js +0 -9
  283. package/dist/hooks/useRerender.js.map +0 -1
@@ -0,0 +1,456 @@
1
+ import { PromiseCache, DataTypes } from '@talxis/client-libraries';
2
+ import { TextProperty } from './properties/TextProperty.js';
3
+ import { OptionSetProperty } from './properties/OptionSetProperty.js';
4
+ import { NumberProperty } from './properties/NumberProperty.js';
5
+ import { DateProperty } from './properties/DateProperty.js';
6
+ import { LookupProperty } from './properties/LookupProperty.js';
7
+ import { FileProperty } from './properties/FileProperty.js';
8
+ import { NestedControlError } from './NestedControlError.js';
9
+ import { Manifest } from './manifest/Manifest.js';
10
+ import { ControlTheme } from '../../utils/theme/ControlTheme.js';
11
+
12
+ const manifestCache = new PromiseCache();
13
+ const LOADED_CONTROLS = new Set();
14
+ class NestedControl {
15
+ constructor(options) {
16
+ this._pendingInitialRender = false;
17
+ this._errorMessage = '';
18
+ this._properties = new Map();
19
+ this._lastRenderedControlName = '';
20
+ this._hasCustomPcfBeenMounted = false;
21
+ this._customControlInstance = null;
22
+ this._customControlId = '';
23
+ this._manifest = null;
24
+ this._loading = false;
25
+ this._mutationObserver = new MutationObserver((mutations) => this._checkIfControlLoadedToDom(mutations));
26
+ this._destroyed = false;
27
+ this._initialized = false;
28
+ this._container = null;
29
+ this._hasControlBeenPatched = false;
30
+ this._options = options;
31
+ this._getPropertiesFromBindings();
32
+ }
33
+ getProps() {
34
+ if (!this._props) {
35
+ return this.refreshProps();
36
+ }
37
+ return this._props;
38
+ }
39
+ refreshProps() {
40
+ const parameters = this.getParameters();
41
+ const props = {
42
+ context: {
43
+ ...this.getOptions().parentPcfContext,
44
+ parameters: parameters,
45
+ mode: Object.create(this.getOptions().parentPcfContext.mode, {
46
+ isControlDisabled: {
47
+ value: this.getOptions().callbacks?.onGetControlStates?.()?.isControlDisabled ?? false
48
+ }
49
+ }),
50
+ factory: {
51
+ ...this.getOptions().parentPcfContext.factory,
52
+ requestRender: () => this.render()
53
+ },
54
+ fluentDesignLanguage: this._getFluentDesignLanguage(this.getOptions().parentPcfContext.fluentDesignLanguage)
55
+ },
56
+ parameters: parameters,
57
+ onNotifyOutputChanged: (outputs) => {
58
+ Object.entries(outputs).map(([name, output]) => {
59
+ this.getOptions().onGetBindings()[name]?.onNotifyOutputChanged?.(output);
60
+ });
61
+ this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs);
62
+ }
63
+ };
64
+ const result = this._overrideDecorator(() => props, this.getOptions().overrides?.onGetProps, () => [props]);
65
+ this._props = result;
66
+ return result;
67
+ }
68
+ getParameters() {
69
+ const parameters = {};
70
+ [...this._properties.entries()].map(([name, prop]) => {
71
+ const binding = this.getOptions().onGetBindings()[name];
72
+ //binding might not exist if we have switched controls
73
+ if (binding) {
74
+ parameters[name] = {
75
+ ...prop.getParameter(),
76
+ error: binding.error ?? false,
77
+ errorMessage: binding.errorMessage ?? null,
78
+ type: prop.dataType
79
+ };
80
+ }
81
+ });
82
+ return parameters;
83
+ }
84
+ isLoading() {
85
+ return this._loading;
86
+ }
87
+ setLoading(loading) {
88
+ this._loading = loading;
89
+ }
90
+ getOptions() {
91
+ return this._options;
92
+ }
93
+ async render() {
94
+ if (this._pendingInitialRender || this._destroyed) {
95
+ return;
96
+ }
97
+ await this._getPropertiesFromBindings();
98
+ if (this._destroyed) {
99
+ return;
100
+ }
101
+ this.refreshProps();
102
+ //if we detect a change in name, unmount the component before render
103
+ if (this._lastRenderedControlName && this._lastRenderedControlName !== this.getControlName()) {
104
+ this.unmount(true);
105
+ }
106
+ if (!this._customControlId) {
107
+ this._customControlId = crypto.randomUUID();
108
+ }
109
+ await this._overrideDecorator(async () => this._render(), this.getOptions().overrides?.onRender, () => [this, async () => this._render()]);
110
+ if (this._destroyed) {
111
+ return;
112
+ }
113
+ this._lastRenderedControlName = this.getControlName();
114
+ }
115
+ unmount(softUnmount) {
116
+ this._overrideDecorator(() => this._unmount(), this.getOptions().overrides?.onUnmount, () => [this, () => this._unmount()]);
117
+ this._lastRenderedControlName = '';
118
+ this._hasCustomPcfBeenMounted = false;
119
+ this._hasControlBeenPatched = false;
120
+ this._customControlId = '';
121
+ this._mutationObserver?.disconnect();
122
+ if (!softUnmount) {
123
+ this._mutationObserver = null;
124
+ this._customControlInstance = null;
125
+ this._props = undefined;
126
+ this._container = null;
127
+ this._properties.clear();
128
+ this._destroyed = true;
129
+ }
130
+ }
131
+ getErrorMessage() {
132
+ return this._errorMessage;
133
+ }
134
+ setError(message) {
135
+ this._errorMessage = message ?? '';
136
+ }
137
+ isMountedPcfComponent() {
138
+ return this._hasCustomPcfBeenMounted;
139
+ }
140
+ getContainer() {
141
+ let container = this.getOptions().onGetContainerElement?.();
142
+ if (container) {
143
+ this._container = container;
144
+ return container;
145
+ }
146
+ if (this._container) {
147
+ return this._container;
148
+ }
149
+ if (!container && this._container) {
150
+ return this._container;
151
+ }
152
+ throw new Error('Cannot render control if no container is specified!');
153
+ }
154
+ getControlName() {
155
+ const controlName = this.getOptions().onGetControlName?.();
156
+ if (!controlName) {
157
+ throw new Error("Cannot render control if it's name is not specified!");
158
+ }
159
+ return controlName;
160
+ }
161
+ getBindings() {
162
+ return this.getOptions().onGetBindings();
163
+ }
164
+ getCustomControlId() {
165
+ return this._customControlId;
166
+ }
167
+ _overrideDecorator(defaultMethod, override, getOverrideArgs) {
168
+ if (override && getOverrideArgs) {
169
+ return override(...getOverrideArgs());
170
+ }
171
+ else {
172
+ return defaultMethod();
173
+ }
174
+ }
175
+ _unmount() {
176
+ this.getOptions().parentPcfContext.factory.unbindDOMComponent(this._customControlId);
177
+ }
178
+ async _render() {
179
+ try {
180
+ if (!this._lastRenderedControlName) {
181
+ this._errorMessage = '';
182
+ this._pendingInitialRender = true;
183
+ const controlName = this.getControlName();
184
+ if (!LOADED_CONTROLS.has(controlName)) {
185
+ this._loading = true;
186
+ this.getOptions().callbacks?.onControlStateChanged?.();
187
+ }
188
+ this._mutationObserver?.observe(this.getContainer(), { childList: true, subtree: true });
189
+ try {
190
+ this._manifest = await this._getManifest(controlName);
191
+ }
192
+ catch (err) {
193
+ throw new NestedControlError({
194
+ message: `Could not find control named ${controlName} on this environment.`
195
+ }, this);
196
+ }
197
+ if (this._destroyed) {
198
+ return;
199
+ }
200
+ try {
201
+ const properties = {
202
+ controlstates: this.getOptions().callbacks?.onGetControlStates?.() ?? {},
203
+ parameters: this._getCustomControlParameters(this._manifest),
204
+ childeventlisteners: [{
205
+ eventname: "onInit",
206
+ eventhandler: (control) => {
207
+ this._customControlInstance = control;
208
+ this._patchUpdateView(this._customControlInstance, this._manifest);
209
+ }
210
+ }]
211
+ };
212
+ const component = this.getOptions().parentPcfContext.factory.createComponent(controlName, this._customControlId, properties);
213
+ this.getOptions().parentPcfContext.factory.bindDOMElement(component, this.getContainer());
214
+ this._hasCustomPcfBeenMounted = true;
215
+ }
216
+ catch (err) {
217
+ throw new NestedControlError(err, this);
218
+ }
219
+ this._pendingInitialRender = false;
220
+ }
221
+ //the PCF did not change, just call updateView
222
+ else {
223
+ this._customControlInstance?.updateView?.(this.getProps().context);
224
+ }
225
+ }
226
+ catch (err) {
227
+ this._pendingInitialRender = false;
228
+ this._pendingInitialRender = false;
229
+ console.error(err);
230
+ }
231
+ }
232
+ _getCustomControlNameWithoutPrefix() {
233
+ const parts = this._lastRenderedControlName.split('_');
234
+ return parts[1] ?? parts[0];
235
+ }
236
+ _checkIfControlLoadedToDom(mutations) {
237
+ try {
238
+ mutations.map(mutation => {
239
+ const target = mutation.target;
240
+ if (target.classList.contains(this._getCustomControlNameWithoutPrefix())) {
241
+ this._loading = false;
242
+ LOADED_CONTROLS.add(this._lastRenderedControlName);
243
+ this._mutationObserver?.disconnect();
244
+ if (!this._customControlInstance) {
245
+ this._unmount();
246
+ throw new NestedControlError({
247
+ message: `Custom control ${this._lastRenderedControlName} does not expose it's instance through fireEvent. Please add fireEvent to init() to avoid unintentional behavior.`
248
+ }, this);
249
+ }
250
+ else {
251
+ this.getOptions().callbacks?.onControlStateChanged?.();
252
+ }
253
+ }
254
+ });
255
+ }
256
+ catch (err) {
257
+ console.error(err);
258
+ }
259
+ }
260
+ async _getPropertiesFromBindings() {
261
+ const promises = [];
262
+ Object.entries(this.getOptions().onGetBindings()).map(([name, binding]) => {
263
+ if (!this._properties.get(name)) {
264
+ const getBinding = () => this.getOptions().onGetBindings()[name];
265
+ const propertyInstance = this._getPropertyInstance(getBinding);
266
+ const metadata = getBinding()?.metadata;
267
+ //push to promise only if we need to fetch the metadata asynchronously
268
+ if (metadata?.attributeName && metadata.entityName) {
269
+ promises.push(propertyInstance.init());
270
+ }
271
+ else {
272
+ propertyInstance.init();
273
+ }
274
+ this._properties.set(name, propertyInstance);
275
+ }
276
+ });
277
+ if (promises.length > 0) {
278
+ await Promise.all(promises);
279
+ }
280
+ if (!this._initialized) {
281
+ this._initialized = true;
282
+ this.getOptions().callbacks?.onInit?.(this);
283
+ }
284
+ }
285
+ _getPropertyInstance(onGetBinding) {
286
+ switch (onGetBinding().type) {
287
+ case DataTypes.TwoOptions:
288
+ case DataTypes.OptionSet:
289
+ case DataTypes.MultiSelectOptionSet: {
290
+ return new OptionSetProperty(this.getOptions(), onGetBinding);
291
+ }
292
+ case DataTypes.DateAndTimeDateAndTime:
293
+ case DataTypes.DateAndTimeDateOnly: {
294
+ return new DateProperty(this.getOptions(), onGetBinding);
295
+ }
296
+ case DataTypes.WholeNone:
297
+ case DataTypes.Decimal:
298
+ case DataTypes.Currency:
299
+ case DataTypes.WholeDuration: {
300
+ return new NumberProperty(this.getOptions(), onGetBinding);
301
+ }
302
+ case DataTypes.LookupSimple:
303
+ case DataTypes.LookupOwner:
304
+ case DataTypes.LookupCustomer:
305
+ case DataTypes.LookupRegarding: {
306
+ return new LookupProperty(this.getOptions(), onGetBinding);
307
+ }
308
+ case DataTypes.File:
309
+ case DataTypes.Image: {
310
+ return new FileProperty(this.getOptions(), onGetBinding);
311
+ }
312
+ default: {
313
+ return new TextProperty(this.getOptions(), onGetBinding);
314
+ }
315
+ }
316
+ }
317
+ _getPrimaryBindingName() {
318
+ const primaryBinding = Object.entries(this.getOptions().onGetBindings()).find(([key, binding]) => !binding.isStatic)?.[0];
319
+ if (!primaryBinding) {
320
+ throw new Error('Control needs to have atleast one non-static binding!');
321
+ }
322
+ return primaryBinding;
323
+ }
324
+ _getManifestPrimaryBinding(manifest) {
325
+ return [...manifest.control.properties.values()].find(prop => prop.isBindingProperty);
326
+ }
327
+ async _getManifest(controlName) {
328
+ return manifestCache.get(controlName, async () => {
329
+ const result = await this.getOptions().parentPcfContext.webAPI.retrieveMultipleRecords('customcontrol', `?$select=name,manifest&$filter=name eq '${controlName}'`);
330
+ const manifestXmlString = result.entities[0].manifest;
331
+ return new Manifest(manifestXmlString);
332
+ });
333
+ }
334
+ _getCustomControlParameters(manifest) {
335
+ const result = {};
336
+ const bindingParameters = this.getProps().parameters;
337
+ const manifestProperties = [...manifest.control.properties.values()];
338
+ manifestProperties.map(property => {
339
+ result[property.name] = {
340
+ Static: property.usage === 'input',
341
+ Primary: property.isBindingProperty,
342
+ //if no ofType is present, there is a type group and we need to get the type from the passed parameters above
343
+ Type: property.ofType ?? bindingParameters[property.name]?.type ?? 'SingleLine.Text',
344
+ //if static, we take the value that came from the parameter above
345
+ Value: (() => {
346
+ const binding = bindingParameters[property.name];
347
+ if (binding) {
348
+ return binding.raw;
349
+ }
350
+ if (property.usage === 'input') {
351
+ return property.defaultValue;
352
+ }
353
+ if (property.isBindingProperty) {
354
+ return bindingParameters[this._getPrimaryBindingName()].raw;
355
+ }
356
+ })(),
357
+ Usage: (() => {
358
+ switch (property.usage) {
359
+ case 'bound': {
360
+ return 3;
361
+ }
362
+ case 'input':
363
+ case 'output': {
364
+ return 0;
365
+ }
366
+ }
367
+ })(),
368
+ Attributes: (() => {
369
+ const getBindingMetadata = (bindingName) => {
370
+ const binding = this.getOptions().onGetBindings()[bindingName];
371
+ return binding?.metadata ? {
372
+ EntityLogicalName: binding.metadata.entityName,
373
+ LogicalName: binding.metadata.attributeName
374
+ } : undefined;
375
+ };
376
+ const propertyBindingMetadata = getBindingMetadata(property.name);
377
+ if (propertyBindingMetadata) {
378
+ return propertyBindingMetadata;
379
+ }
380
+ if (property.isBindingProperty) {
381
+ return getBindingMetadata(this._getPrimaryBindingName());
382
+ }
383
+ return undefined;
384
+ })(),
385
+ Callback: (value) => {
386
+ let binding = this.getOptions().onGetBindings()[property.name];
387
+ let bindingName = property.name;
388
+ if (!binding && !property.isBindingProperty) {
389
+ return;
390
+ }
391
+ if (!binding) {
392
+ bindingName = this._getPrimaryBindingName();
393
+ binding = this.getOptions().onGetBindings()[bindingName];
394
+ }
395
+ binding.onNotifyOutputChanged?.(value);
396
+ const boundBindings = Object.entries(this.getOptions().onGetBindings()).filter(([key, binding]) => !binding.isStatic);
397
+ const outputs = {};
398
+ boundBindings.map(([key, binding]) => {
399
+ outputs[key] = key === bindingName ? value : this.getProps().parameters[bindingName].raw;
400
+ });
401
+ this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs);
402
+ }
403
+ };
404
+ });
405
+ const nonManifestParameters = Object.entries(bindingParameters).filter(([key, value]) => !manifest.control.properties.get(key));
406
+ nonManifestParameters.map(([key, parameter]) => {
407
+ result[key] = {
408
+ Static: true,
409
+ Primary: false,
410
+ Type: parameter.type ?? 'SingleLine.Text',
411
+ Value: parameter.raw,
412
+ Usage: 0
413
+ };
414
+ });
415
+ return result;
416
+ }
417
+ _patchUpdateView(control, manifest) {
418
+ if (this._hasControlBeenPatched) {
419
+ return;
420
+ }
421
+ let originalContext = null;
422
+ const originalUpdateView = control.updateView.bind(control);
423
+ control.updateView = (context) => {
424
+ if (!originalContext) {
425
+ originalContext = context;
426
+ }
427
+ originalUpdateView(this._patchContext(manifest, originalContext));
428
+ };
429
+ this._hasControlBeenPatched = true;
430
+ }
431
+ _patchContext(manifest, originalContext) {
432
+ const context = this.getProps().context;
433
+ const contextParameters = originalContext.parameters;
434
+ const parameters = this.getProps().parameters;
435
+ const manifestBindingProperty = this._getManifestPrimaryBinding(manifest);
436
+ const primaryBindingName = this._getPrimaryBindingName();
437
+ context.resources = originalContext.resources;
438
+ context.events = originalContext.events;
439
+ context.parameters = {
440
+ ...contextParameters,
441
+ ...parameters,
442
+ [manifestBindingProperty.name]: parameters[primaryBindingName]
443
+ };
444
+ return context;
445
+ }
446
+ _getFluentDesignLanguage(fluentDesignLanguage) {
447
+ const v8Theme = ControlTheme.GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage);
448
+ return ControlTheme.GenerateFluentDesignLanguage(v8Theme.palette.themePrimary, v8Theme.semanticColors.bodyBackground, v8Theme.semanticColors.bodyText, {
449
+ v8FluentOverrides: fluentDesignLanguage?.v8FluentOverrides,
450
+ applicationTheme: fluentDesignLanguage?.applicationTheme ?? v8Theme
451
+ });
452
+ }
453
+ }
454
+
455
+ export { NestedControl };
456
+ //# sourceMappingURL=NestedControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestedControl.js","sources":["../../../src/components/NestedControlRenderer/NestedControl.ts"],"sourcesContent":["import { DataType, DataTypes, PromiseCache } from \"@talxis/client-libraries\";\nimport { Property } from \"./properties/Property\";\nimport { TextProperty } from \"./properties/TextProperty\";\nimport { OptionSetProperty } from \"./properties/OptionSetProperty\";\nimport { NumberProperty } from \"./properties/NumberProperty\";\nimport { DateProperty } from \"./properties/DateProperty\";\nimport { LookupProperty } from \"./properties/LookupProperty\";\nimport { IControl, IParameters, IProperty } from \"../../interfaces\";\nimport { ControlTheme, IFluentDesignState } from \"../../utils\";\nimport { Manifest } from \"./manifest\";\nimport { FileProperty } from \"./properties/FileProperty\";\nimport { NestedControlError } from \"./NestedControlError\";\nimport { IBinding, IControlStates } from \"./interfaces\";\n\n\nconst manifestCache = new PromiseCache();\nconst LOADED_CONTROLS = new Set<string>();\n\n\nexport interface IOptions {\n onGetBindings: () => {\n [key: string]: IBinding;\n }\n /**\n * PCF Context of parent control using this class. It will be used as base for nested control PCF context.\n */\n parentPcfContext: ComponentFramework.Context<any, any>;\n\n /**\n * Custom PCF to be rendered, if not provided you will get Base Control props.\n */\n /**\n* Container element into which the control will be rendered in.\n*/\n onGetContainerElement?: () => HTMLDivElement;\n onGetControlName?: () => string;\n callbacks?: {\n onInit?: (instance: NestedControl) => void;\n onGetControlStates?: () => IControlStates | undefined\n onNotifyOutputChanged?: (ouputs: any) => void;\n\n /**\n * Triggers when the control changes a state that should be visible in control renderer UI (for example loading)\n */\n onControlStateChanged?: () => void;\n },\n overrides?: {\n onGetProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;\n onRender?: (control: NestedControl, defaultRender: () => Promise<void>) => void;\n onUnmount?: (control: NestedControl, defaultUnmount: () => void) => void;\n }\n}\n\nexport class NestedControl {\n private _options: IOptions;\n private _pendingInitialRender: boolean = false;\n private _errorMessage: string = '';\n private _properties: Map<string, Property> = new Map();\n private _lastRenderedControlName: string = '';\n private _hasCustomPcfBeenMounted: boolean = false;\n private _customControlInstance: ComponentFramework.StandardControl<any, any> | null = null;\n private _customControlId: string = '';\n private _manifest: Manifest | null = null;\n private _loading: boolean = false;\n private _props: IControl<IParameters, any, any, any> | undefined;\n private _mutationObserver: MutationObserver | null = new MutationObserver((mutations) => this._checkIfControlLoadedToDom(mutations));\n private _destroyed: boolean = false;\n private _initialized: boolean = false;\n private _container: HTMLDivElement | null = null;\n private _hasControlBeenPatched: boolean = false;\n\n constructor(options: IOptions) {\n this._options = options;\n this._getPropertiesFromBindings()\n }\n\n public getProps(): IControl<IParameters, any, any, any> {\n if (!this._props) {\n return this.refreshProps()\n }\n return this._props;\n }\n\n public refreshProps() {\n const parameters: { [name: string]: IProperty } = this.getParameters();\n const props: IControl<any, any, any, any> = {\n context: {\n ...this.getOptions().parentPcfContext,\n parameters: parameters,\n mode: Object.create(this.getOptions().parentPcfContext.mode, {\n isControlDisabled: {\n value: this.getOptions().callbacks?.onGetControlStates?.()?.isControlDisabled ?? false\n }\n }),\n factory: {\n ...this.getOptions().parentPcfContext.factory,\n requestRender: () => this.render()\n },\n fluentDesignLanguage: this._getFluentDesignLanguage(this.getOptions().parentPcfContext.fluentDesignLanguage)\n },\n parameters: parameters,\n onNotifyOutputChanged: (outputs: any) => {\n Object.entries(outputs).map(([name, output]) => {\n this.getOptions().onGetBindings()[name]?.onNotifyOutputChanged?.(output)\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs);\n }\n }\n const result = this._overrideDecorator(() => props, this.getOptions().overrides?.onGetProps, () => [props] as any);\n this._props = result;\n return result;\n }\n\n public getParameters() {\n const parameters: { [name: string]: IProperty } = {};\n [...this._properties.entries()].map(([name, prop]) => {\n const binding = this.getOptions().onGetBindings()[name];\n //binding might not exist if we have switched controls\n if (binding) {\n parameters[name] = {\n ...prop.getParameter(),\n error: binding.error ?? false,\n errorMessage: binding.errorMessage ?? null,\n type: prop.dataType\n };\n }\n })\n return parameters;\n }\n\n public isLoading() {\n return this._loading;\n }\n\n public setLoading(loading: boolean) {\n this._loading = loading;\n }\n\n public getOptions() {\n return this._options;\n }\n\n public async render() {\n if (this._pendingInitialRender || this._destroyed) {\n return;\n }\n await this._getPropertiesFromBindings();\n if (this._destroyed) {\n return;\n }\n this.refreshProps();\n //if we detect a change in name, unmount the component before render\n if (this._lastRenderedControlName && this._lastRenderedControlName !== this.getControlName()) {\n this.unmount(true)\n }\n if (!this._customControlId) {\n this._customControlId = crypto.randomUUID();\n }\n await this._overrideDecorator(async () => this._render(), this.getOptions().overrides?.onRender, () => [this, async () => this._render()] as any);\n if (this._destroyed) {\n return;\n }\n this._lastRenderedControlName = this.getControlName();\n }\n public unmount(softUnmount?: boolean) {\n this._overrideDecorator(() => this._unmount(), this.getOptions().overrides?.onUnmount, () => [this, () => this._unmount()] as any)\n this._lastRenderedControlName = '';\n this._hasCustomPcfBeenMounted = false;\n this._hasControlBeenPatched = false;\n this._customControlId = '';\n this._mutationObserver?.disconnect();\n if (!softUnmount) {\n this._mutationObserver = null;\n this._customControlInstance = null;\n this._props = undefined;\n this._container = null;\n this._properties.clear();\n this._destroyed = true;\n }\n }\n public getErrorMessage(): string {\n return this._errorMessage;\n }\n public setError(message?: string) {\n this._errorMessage = message ?? '';\n }\n public isMountedPcfComponent() {\n return this._hasCustomPcfBeenMounted;\n }\n\n public getContainer() {\n let container = this.getOptions().onGetContainerElement?.();\n if (container) {\n this._container = container;\n return container;\n }\n if (this._container) {\n return this._container;\n }\n if (!container && this._container) {\n return this._container;\n }\n throw new Error('Cannot render control if no container is specified!');\n }\n\n public getControlName() {\n const controlName = this.getOptions().onGetControlName?.();\n if (!controlName) {\n throw new Error(\"Cannot render control if it's name is not specified!\");\n }\n return controlName;\n }\n\n public getBindings() {\n return this.getOptions().onGetBindings();\n }\n\n public getCustomControlId() {\n return this._customControlId;\n }\n\n private _overrideDecorator<T extends any[], K>(defaultMethod: () => K | Promise<K>, override?: (...args: T) => any, getOverrideArgs?: () => T) {\n if (override && getOverrideArgs) {\n return override(...getOverrideArgs());\n }\n else {\n return defaultMethod();\n }\n }\n\n private _unmount() {\n (this.getOptions().parentPcfContext as any).factory.unbindDOMComponent(this._customControlId)\n\n }\n private async _render(): Promise<void> {\n try {\n if (!this._lastRenderedControlName) {\n this._errorMessage = '';\n this._pendingInitialRender = true;\n const controlName = this.getControlName();\n if (!LOADED_CONTROLS.has(controlName)) {\n this._loading = true;\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n this._mutationObserver?.observe(this.getContainer(), { childList: true, subtree: true });\n try {\n this._manifest = await this._getManifest(controlName);\n }\n catch (err) {\n throw new NestedControlError({\n message: `Could not find control named ${controlName} on this environment.`\n }, this);\n }\n if (this._destroyed) {\n return;\n }\n try {\n const properties: any = {\n controlstates: this.getOptions().callbacks?.onGetControlStates?.() ?? {},\n parameters: this._getCustomControlParameters(this._manifest!),\n childeventlisteners: [{\n eventname: \"onInit\",\n eventhandler: (control: ComponentFramework.StandardControl<any, any>) => {\n this._customControlInstance = control;\n this._patchUpdateView(this._customControlInstance!, this._manifest!);\n }\n }]\n };\n const component = (this.getOptions().parentPcfContext as any).factory.createComponent(controlName, this._customControlId, properties);\n (this.getOptions().parentPcfContext as any).factory.bindDOMElement(component, this.getContainer());\n this._hasCustomPcfBeenMounted = true;\n }\n catch (err) {\n throw new NestedControlError(err as any, this);\n }\n this._pendingInitialRender = false;\n }\n //the PCF did not change, just call updateView\n else {\n this._customControlInstance?.updateView?.(this.getProps().context)\n }\n }\n catch (err) {\n this._pendingInitialRender = false;\n this._pendingInitialRender = false;\n console.error(err);\n }\n }\n\n private _getCustomControlNameWithoutPrefix() {\n const parts = this._lastRenderedControlName.split('_');\n return parts[1] ?? parts[0];\n }\n\n private _checkIfControlLoadedToDom(mutations: MutationRecord[]) {\n try {\n mutations.map(mutation => {\n const target = mutation.target as HTMLElement;\n if (target.classList.contains(this._getCustomControlNameWithoutPrefix())) {\n this._loading = false;\n LOADED_CONTROLS.add(this._lastRenderedControlName);\n this._mutationObserver?.disconnect();\n if (!this._customControlInstance) {\n this._unmount();\n throw new NestedControlError({\n message: `Custom control ${this._lastRenderedControlName} does not expose it's instance through fireEvent. Please add fireEvent to init() to avoid unintentional behavior.`\n }, this)\n }\n else {\n this.getOptions().callbacks?.onControlStateChanged?.();\n }\n }\n });\n }\n catch(err) {\n console.error(err);\n }\n }\n\n private async _getPropertiesFromBindings() {\n const promises: Promise<boolean>[] = [];\n Object.entries(this.getOptions().onGetBindings()).map(([name, binding]) => {\n if (!this._properties.get(name)) {\n const getBinding = () => this.getOptions().onGetBindings()[name];\n const propertyInstance = this._getPropertyInstance(getBinding);\n const metadata = getBinding()?.metadata;\n //push to promise only if we need to fetch the metadata asynchronously\n if (metadata?.attributeName && metadata.entityName) {\n promises.push(propertyInstance.init());\n }\n else {\n propertyInstance.init();\n }\n this._properties.set(name, propertyInstance);\n }\n })\n if (promises.length > 0) {\n await Promise.all(promises);\n }\n if (!this._initialized) {\n this._initialized = true;\n this.getOptions().callbacks?.onInit?.(this)\n }\n }\n\n private _getPropertyInstance(onGetBinding: () => IBinding) {\n switch (onGetBinding().type) {\n case DataTypes.TwoOptions:\n case DataTypes.OptionSet:\n case DataTypes.MultiSelectOptionSet: {\n return new OptionSetProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.DateAndTimeDateAndTime:\n case DataTypes.DateAndTimeDateOnly: {\n return new DateProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.WholeNone:\n case DataTypes.Decimal:\n case DataTypes.Currency:\n case DataTypes.WholeDuration: {\n return new NumberProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.LookupSimple:\n case DataTypes.LookupOwner:\n case DataTypes.LookupCustomer:\n case DataTypes.LookupRegarding: {\n return new LookupProperty(this.getOptions(), onGetBinding);\n }\n case DataTypes.File:\n case DataTypes.Image: {\n return new FileProperty(this.getOptions(), onGetBinding)\n }\n default: {\n return new TextProperty(this.getOptions(), onGetBinding);\n }\n }\n }\n private _getPrimaryBindingName(): string {\n const primaryBinding = Object.entries(this.getOptions().onGetBindings()).find(([key, binding]) => !binding.isStatic)?.[0];\n if (!primaryBinding) {\n throw new Error('Control needs to have atleast one non-static binding!');\n }\n return primaryBinding;\n }\n private _getManifestPrimaryBinding(manifest: Manifest) {\n return [...manifest.control.properties.values()].find(prop => prop.isBindingProperty)!;\n }\n private async _getManifest(controlName: string) {\n return manifestCache.get(controlName, async () => {\n const result = await this.getOptions().parentPcfContext.webAPI.retrieveMultipleRecords('customcontrol', `?$select=name,manifest&$filter=name eq '${controlName}'`);\n const manifestXmlString = result.entities[0].manifest;\n return new Manifest(manifestXmlString);\n })\n }\n private _getCustomControlParameters(manifest: Manifest) {\n const result: { [name: string]: any } = {};\n const bindingParameters = this.getProps().parameters;\n const manifestProperties = [...manifest.control.properties.values()];\n manifestProperties.map(property => {\n result[property.name] = {\n Static: property.usage === 'input',\n Primary: property.isBindingProperty,\n //if no ofType is present, there is a type group and we need to get the type from the passed parameters above\n Type: property.ofType ?? bindingParameters[property.name]?.type ?? 'SingleLine.Text',\n //if static, we take the value that came from the parameter above\n Value: (() => {\n const binding = bindingParameters[property.name];\n if (binding) {\n return binding.raw;\n }\n if (property.usage === 'input') {\n return property.defaultValue;\n }\n if (property.isBindingProperty) {\n return bindingParameters[this._getPrimaryBindingName()].raw;\n }\n })(),\n Usage: (() => {\n switch (property.usage) {\n case 'bound': {\n return 3;\n }\n case 'input':\n case 'output': {\n return 0;\n }\n }\n })(),\n Attributes: (() => {\n const getBindingMetadata = (bindingName: string) => {\n const binding = this.getOptions().onGetBindings()[bindingName];\n return binding?.metadata ? {\n EntityLogicalName: binding.metadata.entityName,\n LogicalName: binding.metadata.attributeName\n } : undefined;\n };\n const propertyBindingMetadata = getBindingMetadata(property.name);\n\n if (propertyBindingMetadata) {\n return propertyBindingMetadata;\n }\n\n if (property.isBindingProperty) {\n return getBindingMetadata(this._getPrimaryBindingName());\n }\n\n return undefined;\n })(),\n Callback: (value: any) => {\n let binding = this.getOptions().onGetBindings()[property.name];\n let bindingName = property.name;\n if (!binding && !property.isBindingProperty) {\n return;\n }\n if (!binding) {\n bindingName = this._getPrimaryBindingName();\n binding = this.getOptions().onGetBindings()[bindingName]\n }\n binding.onNotifyOutputChanged?.(value);\n const boundBindings = Object.entries(this.getOptions().onGetBindings()).filter(([key, binding]) => !binding.isStatic);\n const outputs: any = {};\n boundBindings.map(([key, binding]) => {\n outputs[key] = key === bindingName ? value : this.getProps().parameters[bindingName].raw\n })\n this.getOptions().callbacks?.onNotifyOutputChanged?.(outputs)\n }\n }\n })\n const nonManifestParameters = Object.entries(bindingParameters).filter(([key, value]) => !manifest.control.properties.get(key));\n nonManifestParameters.map(([key, parameter]) => {\n result[key] = {\n Static: true,\n Primary: false,\n Type: parameter.type ?? 'SingleLine.Text',\n Value: parameter.raw,\n Usage: 0\n }\n })\n return result;\n }\n private _patchUpdateView(control: ComponentFramework.StandardControl<any, any>, manifest: Manifest) {\n if (this._hasControlBeenPatched) {\n return;\n }\n let originalContext: ComponentFramework.Context<any, any> | null = null;\n const originalUpdateView = control.updateView.bind(control);\n control.updateView = (context) => {\n if (!originalContext) {\n originalContext = context;\n }\n originalUpdateView(this._patchContext(manifest, originalContext));\n }\n this._hasControlBeenPatched = true;\n }\n private _patchContext(manifest: Manifest, originalContext: ComponentFramework.Context<any, any>) {\n const context = this.getProps().context;\n const contextParameters = originalContext.parameters;\n const parameters = this.getProps().parameters;\n const manifestBindingProperty = this._getManifestPrimaryBinding(manifest);\n const primaryBindingName = this._getPrimaryBindingName();\n context.resources = originalContext.resources;\n context.events = originalContext.events;\n context.parameters = {\n ...contextParameters,\n ...parameters,\n [manifestBindingProperty.name]: parameters[primaryBindingName]\n }\n\n return context;\n }\n private _getFluentDesignLanguage(fluentDesignLanguage?: IFluentDesignState): IFluentDesignState {\n const v8Theme = ControlTheme.GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage);\n return ControlTheme.GenerateFluentDesignLanguage(v8Theme.palette.themePrimary, v8Theme.semanticColors.bodyBackground, v8Theme.semanticColors.bodyText, {\n v8FluentOverrides: fluentDesignLanguage?.v8FluentOverrides,\n applicationTheme: fluentDesignLanguage?.applicationTheme ?? v8Theme\n })\n }\n}"],"names":[],"mappings":";;;;;;;;;;;AAeA,MAAM,aAAa,GAAG,IAAI,YAAY,EAAE,CAAC;AACzC,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;MAqC7B,aAAa,CAAA;AAkBtB,IAAA,WAAA,CAAY,OAAiB,EAAA;QAhBrB,IAAqB,CAAA,qBAAA,GAAY,KAAK,CAAC;QACvC,IAAa,CAAA,aAAA,GAAW,EAAE,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAA0B,IAAI,GAAG,EAAE,CAAC;QAC/C,IAAwB,CAAA,wBAAA,GAAW,EAAE,CAAC;QACtC,IAAwB,CAA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lError extends Error {
3
+ constructor(error: Omit<Error, 'name'>, control: NestedControl);
4
+ }
@@ -0,0 +1,13 @@
1
+ class NestedControlError extends Error {
2
+ constructor(error, control) {
3
+ super(error.message);
4
+ this.name = 'NestedControlError';
5
+ this.stack = error.stack;
6
+ control.setError(error.message);
7
+ control.setLoading(false);
8
+ control.getOptions().callbacks?.onControlStateChanged?.();
9
+ }
10
+ }
11
+
12
+ export { NestedControlError };
13
+ //# sourceMappingURL=NestedControlError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NestedControlError.js","sources":["../../../src/components/NestedControlRenderer/NestedControlError.ts"],"sourcesContent":["import { NestedControl } from \"./NestedControl\";\n\nexport class NestedControlError extends Error {\n constructor(error: Omit<Error, 'name'>, control: NestedControl) {\n super(error.message)\n this.name = 'NestedControlError';\n this.stack = error.stack;\n control.setError(error.message);\n control.setLoading(false);\n control.getOptions().callbacks?.onControlStateChanged?.();\n }\n}"],"names":[],"mappings":"AAEM,MAAO,kBAAmB,SAAQ,KAAK,CAAA;IACzC,WAAY,CAAA,KAA0B,EAAE,OAAsB,EAAA;AAC1D,QAAA,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;AACpB,QAAA,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;AACjC,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,QAAA,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAChC,QAAA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC1B,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,qBAAqB,IAAI,CAAC;KAC7D;AACJ;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { INestedControlRenderer } from './interfaces';
3
+ export declare const NestedControlRenderer: (props: INestedControlRenderer) => JSX.Element;