@talxis/base-controls 1.2507.2 → 1.2509.1-alpha.0

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 (477) hide show
  1. package/dist/components/DatasetControl/DatasetControl.js +59 -55
  2. package/dist/components/DatasetControl/DatasetControl.js.map +1 -1
  3. package/dist/components/DatasetControl/DatasetControlModel.d.ts +37 -0
  4. package/dist/components/DatasetControl/DatasetControlModel.js +110 -0
  5. package/dist/components/DatasetControl/DatasetControlModel.js.map +1 -0
  6. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.d.ts +3 -0
  7. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js +166 -0
  8. package/dist/components/DatasetControl/Filtering/DatasetColumnFiltering.js.map +1 -0
  9. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.d.ts +16 -0
  10. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js +59 -0
  11. package/dist/components/DatasetControl/Filtering/DatasetColumnFilteringModel.js.map +1 -0
  12. package/dist/components/DatasetControl/Filtering/interfaces.d.ts +32 -0
  13. package/dist/components/DatasetControl/Filtering/styles.d.ts +16 -0
  14. package/dist/components/DatasetControl/Filtering/styles.js +23 -0
  15. package/dist/components/DatasetControl/Filtering/styles.js.map +1 -0
  16. package/dist/components/DatasetControl/Filtering/translations.d.ts +154 -0
  17. package/dist/components/DatasetControl/Filtering/translations.js +43 -0
  18. package/dist/components/DatasetControl/Filtering/translations.js.map +1 -0
  19. package/dist/components/DatasetControl/Header/Header.d.ts +5 -0
  20. package/dist/components/DatasetControl/Header/Header.js +89 -0
  21. package/dist/components/DatasetControl/Header/Header.js.map +1 -0
  22. package/dist/components/DatasetControl/Header/styles.d.ts +22 -0
  23. package/dist/components/DatasetControl/Header/styles.js +29 -0
  24. package/dist/components/DatasetControl/Header/styles.js.map +1 -0
  25. package/dist/components/DatasetControl/Pagination/Pagination.d.ts +5 -0
  26. package/dist/components/DatasetControl/Pagination/Pagination.js +91 -0
  27. package/dist/components/DatasetControl/Pagination/Pagination.js.map +1 -0
  28. package/dist/components/DatasetControl/Pagination/PaginationModel.d.ts +10 -0
  29. package/dist/components/DatasetControl/Pagination/PaginationModel.js +42 -0
  30. package/dist/components/DatasetControl/Pagination/PaginationModel.js.map +1 -0
  31. package/dist/components/DatasetControl/Pagination/styles.d.ts +17 -0
  32. package/dist/components/DatasetControl/Pagination/styles.js +23 -0
  33. package/dist/components/DatasetControl/Pagination/styles.js.map +1 -0
  34. package/dist/components/DatasetControl/QuickFind/QuickFind.d.ts +4 -12
  35. package/dist/components/DatasetControl/QuickFind/QuickFind.js +36 -32
  36. package/dist/components/DatasetControl/QuickFind/QuickFind.js.map +1 -1
  37. package/dist/components/DatasetControl/QuickFind/styles.d.ts +1 -1
  38. package/dist/components/DatasetControl/QuickFind/styles.js +2 -2
  39. package/dist/components/DatasetControl/QuickFind/styles.js.map +1 -1
  40. package/dist/components/DatasetControl/index.d.ts +0 -1
  41. package/dist/components/DatasetControl/index.js +0 -2
  42. package/dist/components/DatasetControl/index.js.map +1 -1
  43. package/dist/components/DatasetControl/interfaces.d.ts +54 -20
  44. package/dist/components/DatasetControl/styles.d.ts +4 -11
  45. package/dist/components/DatasetControl/styles.js +5 -11
  46. package/dist/components/DatasetControl/styles.js.map +1 -1
  47. package/dist/components/DatasetControl/translations.d.ts +44 -0
  48. package/dist/components/DatasetControl/translations.js +15 -1
  49. package/dist/components/DatasetControl/translations.js.map +1 -1
  50. package/dist/components/DatasetControl/useModel.d.ts +4 -0
  51. package/dist/components/DatasetControl/useModel.js +9 -0
  52. package/dist/components/DatasetControl/useModel.js.map +1 -0
  53. package/dist/components/DateTime/translations.d.ts +1 -0
  54. package/dist/components/Duration/durationOptions.d.ts +1 -0
  55. package/dist/components/Grid/{core/components/Cell → cells/cell}/Cell.d.ts +3 -3
  56. package/dist/components/Grid/cells/cell/Cell.js +302 -0
  57. package/dist/components/Grid/cells/cell/Cell.js.map +1 -0
  58. package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/CellContent.d.ts +2 -2
  59. package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/CellContent.js +41 -32
  60. package/dist/components/Grid/cells/cell/content/CellContent.js.map +1 -0
  61. package/dist/components/Grid/cells/cell/content/styles.js.map +1 -0
  62. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/Notifications.d.ts +1 -1
  63. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/Notifications.js +5 -5
  64. package/dist/components/Grid/cells/cell/notifications/Notifications.js.map +1 -0
  65. package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/styles.js +1 -1
  66. package/dist/components/Grid/cells/cell/notifications/styles.js.map +1 -0
  67. package/dist/components/Grid/{core/components/Cell → cells/cell}/styles.d.ts +34 -3
  68. package/dist/components/Grid/cells/cell/styles.js +78 -0
  69. package/dist/components/Grid/cells/cell/styles.js.map +1 -0
  70. package/dist/components/Grid/{core/components/ColumnHeader → column-headers/column-header}/ColumnHeader.d.ts +1 -1
  71. package/dist/components/Grid/column-headers/column-header/ColumnHeader.js +82 -0
  72. package/dist/components/Grid/column-headers/column-header/ColumnHeader.js.map +1 -0
  73. package/dist/components/Grid/{sorting/components/SortingContextualMenu/SortingContextualMenu.d.ts → column-headers/column-header/ColumnHeaderContextualMenu.d.ts} +3 -3
  74. package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js +115 -0
  75. package/dist/components/Grid/column-headers/column-header/ColumnHeaderContextualMenu.js.map +1 -0
  76. package/dist/components/Grid/{filtering/components/FilterCallout → column-headers/column-header}/FilterCallout.d.ts +1 -1
  77. package/dist/components/Grid/column-headers/column-header/FilterCallout.js +103 -0
  78. package/dist/components/Grid/column-headers/column-header/FilterCallout.js.map +1 -0
  79. package/dist/components/Grid/column-headers/column-header/styles.d.ts +84 -0
  80. package/dist/components/Grid/{filtering/components/FilterCallout → column-headers/column-header}/styles.js +20 -11
  81. package/dist/components/Grid/column-headers/column-header/styles.js.map +1 -0
  82. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.d.ts +2 -0
  83. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js +50 -0
  84. package/dist/components/Grid/column-headers/record-selection-checkbox/RecordSelectionCheckbox.js.map +1 -0
  85. package/dist/components/Grid/column-headers/record-selection-checkbox/styles.js.map +1 -0
  86. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.d.ts +6 -0
  87. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js +15 -0
  88. package/dist/components/Grid/errors/FullWidthCellRendererError/FullWidthCellRendererError.js.map +1 -0
  89. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.d.ts +6 -0
  90. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js +13 -0
  91. package/dist/components/Grid/errors/FullWidthCellRendererError/styles.js.map +1 -0
  92. package/dist/components/Grid/{core/components/AgGrid/AgGrid.d.ts → grid/Grid.d.ts} +2 -2
  93. package/dist/components/Grid/grid/Grid.js +64 -0
  94. package/dist/components/Grid/grid/Grid.js.map +1 -0
  95. package/dist/components/Grid/grid/GridContext.d.ts +3 -0
  96. package/dist/components/Grid/grid/GridContext.js.map +1 -0
  97. package/dist/components/Grid/grid/GridModel.d.ts +118 -0
  98. package/dist/components/Grid/grid/GridModel.js +787 -0
  99. package/dist/components/Grid/grid/GridModel.js.map +1 -0
  100. package/dist/components/Grid/{core/components/AgGrid/model/Comparator.d.ts → grid/ValueComparator.d.ts} +1 -1
  101. package/dist/components/Grid/{core/components/AgGrid/model/Comparator.js → grid/ValueComparator.js} +7 -1
  102. package/dist/components/Grid/grid/ValueComparator.js.map +1 -0
  103. package/dist/components/Grid/{core/components/AgGrid/context.d.ts → grid/ag-grid/AgGridContext.d.ts} +2 -2
  104. package/dist/components/Grid/{core/components/AgGrid/context.js → grid/ag-grid/AgGridContext.js} +1 -1
  105. package/dist/components/Grid/grid/ag-grid/AgGridContext.js.map +1 -0
  106. package/dist/components/Grid/grid/ag-grid/AgGridModel.d.ts +87 -0
  107. package/dist/components/Grid/grid/ag-grid/AgGridModel.js +554 -0
  108. package/dist/components/Grid/grid/ag-grid/AgGridModel.js.map +1 -0
  109. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.d.ts +7 -0
  110. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js +38 -0
  111. package/dist/components/Grid/grid/ag-grid/ServerSideDatasource.js.map +1 -0
  112. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.d.ts +2 -0
  113. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js +9 -0
  114. package/dist/components/Grid/grid/ag-grid/useAgGridInstance.js.map +1 -0
  115. package/dist/components/Grid/{core/components/AgGrid → grid}/styles.d.ts +24 -4
  116. package/dist/components/Grid/{core/components/AgGrid → grid}/styles.js +37 -6
  117. package/dist/components/Grid/grid/styles.js.map +1 -0
  118. package/dist/components/Grid/grid/useGridInstance.d.ts +2 -0
  119. package/dist/components/Grid/{core/hooks → grid}/useGridInstance.js +2 -2
  120. package/dist/components/Grid/grid/useGridInstance.js.map +1 -0
  121. package/dist/components/Grid/index.d.ts +1 -1
  122. package/dist/components/Grid/index.js +1 -1
  123. package/dist/components/Grid/interfaces.d.ts +10 -0
  124. package/dist/components/Grid/loading/full-row/FullRowLoading.d.ts +3 -0
  125. package/dist/components/Grid/loading/full-row/FullRowLoading.js +33 -0
  126. package/dist/components/Grid/loading/full-row/FullRowLoading.js.map +1 -0
  127. package/dist/components/Grid/loading/full-row/styles.d.ts +9 -0
  128. package/dist/components/Grid/loading/full-row/styles.js +16 -0
  129. package/dist/components/Grid/loading/full-row/styles.js.map +1 -0
  130. package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js +13 -0
  131. package/dist/components/Grid/overlays/empty-records/EmptyRecordsOverlay.js.map +1 -0
  132. package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay → overlays/empty-records}/styles.d.ts +1 -1
  133. package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay → overlays/empty-records}/styles.js +1 -1
  134. package/dist/components/Grid/overlays/empty-records/styles.js.map +1 -0
  135. package/dist/components/Grid/overlays/loading/LoadingOverlay.js.map +1 -0
  136. package/dist/components/Grid/translations.d.ts +20 -180
  137. package/dist/components/Grid/translations.js +5 -48
  138. package/dist/components/Grid/translations.js.map +1 -1
  139. package/dist/components/GridCellRenderer/GridCellRenderer.js +99 -282
  140. package/dist/components/GridCellRenderer/GridCellRenderer.js.map +1 -1
  141. package/dist/components/GridCellRenderer/GridCellRendererModel.d.ts +52 -0
  142. package/dist/components/GridCellRenderer/GridCellRendererModel.js +211 -0
  143. package/dist/components/GridCellRenderer/GridCellRendererModel.js.map +1 -0
  144. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.d.ts +10 -0
  145. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js +53 -0
  146. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/ColorfulOptionSetValueRenderer.js.map +1 -0
  147. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.d.ts +20 -0
  148. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js +29 -0
  149. package/dist/components/GridCellRenderer/ValueRenderer/ColorfulOptionSetValueRenderer/styles.js.map +1 -0
  150. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.d.ts +7 -0
  151. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js +76 -0
  152. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/FileRenderer.js.map +1 -0
  153. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.d.ts +18 -0
  154. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js +25 -0
  155. package/dist/components/GridCellRenderer/ValueRenderer/FileRenderer/styles.js.map +1 -0
  156. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.d.ts +3 -0
  157. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js +52 -0
  158. package/dist/components/GridCellRenderer/ValueRenderer/ValueRenderer.js.map +1 -0
  159. package/dist/components/GridCellRenderer/ValueRenderer/styles.d.ts +1666 -0
  160. package/dist/components/GridCellRenderer/ValueRenderer/styles.js +31 -0
  161. package/dist/components/GridCellRenderer/ValueRenderer/styles.js.map +1 -0
  162. package/dist/components/GridCellRenderer/interfaces.d.ts +54 -42
  163. package/dist/components/GridCellRenderer/properties/Email.d.ts +5 -0
  164. package/dist/components/GridCellRenderer/properties/Email.js +15 -0
  165. package/dist/components/GridCellRenderer/properties/Email.js.map +1 -0
  166. package/dist/components/GridCellRenderer/properties/File.d.ts +20 -0
  167. package/dist/components/GridCellRenderer/properties/File.js +99 -0
  168. package/dist/components/GridCellRenderer/properties/File.js.map +1 -0
  169. package/dist/components/GridCellRenderer/properties/Image.d.ts +4 -0
  170. package/dist/components/GridCellRenderer/properties/Image.js +15 -0
  171. package/dist/components/GridCellRenderer/properties/Image.js.map +1 -0
  172. package/dist/components/GridCellRenderer/properties/Lookup.d.ts +6 -0
  173. package/dist/components/GridCellRenderer/properties/Lookup.js +19 -0
  174. package/dist/components/GridCellRenderer/properties/Lookup.js.map +1 -0
  175. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.d.ts +6 -0
  176. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js +11 -0
  177. package/dist/components/GridCellRenderer/properties/MultiSelectOptionSet.js.map +1 -0
  178. package/dist/components/GridCellRenderer/properties/MultilineText.d.ts +4 -0
  179. package/dist/components/GridCellRenderer/properties/MultilineText.js +10 -0
  180. package/dist/components/GridCellRenderer/properties/MultilineText.js.map +1 -0
  181. package/dist/components/GridCellRenderer/properties/OptionSet.d.ts +6 -0
  182. package/dist/components/GridCellRenderer/properties/OptionSet.js +11 -0
  183. package/dist/components/GridCellRenderer/properties/OptionSet.js.map +1 -0
  184. package/dist/components/GridCellRenderer/properties/OptionSetBase.d.ts +8 -0
  185. package/dist/components/GridCellRenderer/properties/OptionSetBase.js +19 -0
  186. package/dist/components/GridCellRenderer/properties/OptionSetBase.js.map +1 -0
  187. package/dist/components/GridCellRenderer/properties/Phone.d.ts +9 -0
  188. package/dist/components/GridCellRenderer/properties/Phone.js +15 -0
  189. package/dist/components/GridCellRenderer/properties/Phone.js.map +1 -0
  190. package/dist/components/GridCellRenderer/properties/Property.d.ts +20 -0
  191. package/dist/components/GridCellRenderer/properties/Property.js +54 -0
  192. package/dist/components/GridCellRenderer/properties/Property.js.map +1 -0
  193. package/dist/components/GridCellRenderer/properties/TwoOptions.d.ts +6 -0
  194. package/dist/components/GridCellRenderer/properties/TwoOptions.js +11 -0
  195. package/dist/components/GridCellRenderer/properties/TwoOptions.js.map +1 -0
  196. package/dist/components/GridCellRenderer/properties/Url.d.ts +5 -0
  197. package/dist/components/GridCellRenderer/properties/Url.js +15 -0
  198. package/dist/components/GridCellRenderer/properties/Url.js.map +1 -0
  199. package/dist/components/GridCellRenderer/styles.d.ts +32 -60
  200. package/dist/components/GridCellRenderer/styles.js +67 -77
  201. package/dist/components/GridCellRenderer/styles.js.map +1 -1
  202. package/dist/components/GridCellRenderer/translations.d.ts +1 -1
  203. package/dist/components/GridCellRenderer/translations.js +30 -32
  204. package/dist/components/GridCellRenderer/translations.js.map +1 -1
  205. package/dist/components/GridCellRenderer/useModel.d.ts +4 -0
  206. package/dist/components/GridCellRenderer/useModel.js +9 -0
  207. package/dist/components/GridCellRenderer/useModel.js.map +1 -0
  208. package/dist/components/GridColumnHeader/GridColumnHeader.d.ts +3 -0
  209. package/dist/components/GridColumnHeader/GridColumnHeader.js +133 -0
  210. package/dist/components/GridColumnHeader/GridColumnHeader.js.map +1 -0
  211. package/dist/components/GridColumnHeader/GridColumnHeaderModel.d.ts +26 -0
  212. package/dist/components/GridColumnHeader/GridColumnHeaderModel.js +87 -0
  213. package/dist/components/GridColumnHeader/GridColumnHeaderModel.js.map +1 -0
  214. package/dist/components/GridColumnHeader/interfaces.d.ts +45 -0
  215. package/dist/components/GridColumnHeader/styles.d.ts +34 -0
  216. package/dist/components/GridColumnHeader/styles.js +52 -0
  217. package/dist/components/GridColumnHeader/styles.js.map +1 -0
  218. package/dist/components/GridColumnHeader/translations.d.ts +26 -0
  219. package/dist/components/GridColumnHeader/translations.js +29 -0
  220. package/dist/components/GridColumnHeader/translations.js.map +1 -0
  221. package/dist/components/Lookup/Lookup.js +39 -14
  222. package/dist/components/Lookup/Lookup.js.map +1 -1
  223. package/dist/components/Lookup/hooks/useFetchXml.d.ts +1 -0
  224. package/dist/components/Lookup/hooks/useLookup.d.ts +1 -0
  225. package/dist/components/Lookup/hooks/useLookup.js +68 -2
  226. package/dist/components/Lookup/hooks/useLookup.js.map +1 -1
  227. package/dist/components/Lookup/interfaces.d.ts +1 -0
  228. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js +2 -2
  229. package/dist/components/MultiSelectOptionSet/MultiSelectOptionSet.js.map +1 -1
  230. package/dist/components/NestedControlRenderer/NestedControl.d.ts +3 -0
  231. package/dist/components/NestedControlRenderer/NestedControl.js +5 -2
  232. package/dist/components/NestedControlRenderer/NestedControl.js.map +1 -1
  233. package/dist/components/NestedControlRenderer/NestedControlRenderer.js +11 -6
  234. package/dist/components/NestedControlRenderer/NestedControlRenderer.js.map +1 -1
  235. package/dist/components/NestedControlRenderer/interfaces.d.ts +4 -0
  236. package/dist/components/NestedControlRenderer/properties/FileProperty.js +1 -1
  237. package/dist/components/NestedControlRenderer/properties/FileProperty.js.map +1 -1
  238. package/dist/components/NestedControlRenderer/properties/Property.d.ts +1 -0
  239. package/dist/components/OptionSet/OptionSet.js +5 -4
  240. package/dist/components/OptionSet/OptionSet.js.map +1 -1
  241. package/dist/components/OptionSet/shared.d.ts +1 -0
  242. package/dist/components/Ribbon/Ribbon.d.ts +3 -0
  243. package/dist/components/Ribbon/Ribbon.js +97 -0
  244. package/dist/components/Ribbon/Ribbon.js.map +1 -0
  245. package/dist/components/Ribbon/RibbonModel.d.ts +4 -0
  246. package/dist/components/Ribbon/interfaces.d.ts +19 -0
  247. package/dist/components/Ribbon/styles.d.ts +11 -0
  248. package/dist/components/Ribbon/styles.js +18 -0
  249. package/dist/components/Ribbon/styles.js.map +1 -0
  250. package/dist/components/TextField/TextField.js +1 -1
  251. package/dist/components/TextField/TextField.js.map +1 -1
  252. package/dist/components/index.js +1 -3
  253. package/dist/components/index.js.map +1 -1
  254. package/dist/hooks/useControl.d.ts +1 -0
  255. package/dist/hooks/useControl.js +1 -0
  256. package/dist/hooks/useControl.js.map +1 -1
  257. package/dist/hooks/useControlSizing.d.ts +1 -0
  258. package/dist/hooks/useEventEmitter.d.ts +2 -0
  259. package/dist/hooks/useEventEmitter.js +18 -0
  260. package/dist/hooks/useEventEmitter.js.map +1 -0
  261. package/dist/hooks/useInputBasedControl.js +2 -1
  262. package/dist/hooks/useInputBasedControl.js.map +1 -1
  263. package/dist/index.d.ts +153 -288
  264. package/dist/index.js +1 -3
  265. package/dist/index.js.map +1 -1
  266. package/dist/interfaces/context.d.ts +1 -0
  267. package/dist/interfaces/property.d.ts +2 -1
  268. package/dist/utils/BaseControls.d.ts +2 -1
  269. package/dist/utils/BaseControls.js +5 -1
  270. package/dist/utils/BaseControls.js.map +1 -1
  271. package/dist/utils/dataset/adapters/DatasetAdapter.d.ts +1 -0
  272. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.d.ts +1 -5
  273. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js +4 -49
  274. package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js.map +1 -1
  275. package/dist/utils/theme/ControlTheme.d.ts +1 -0
  276. package/dist/utils/theme/components/ThemeWrapper.d.ts +1 -0
  277. package/dist/utils/theme/hooks/useControlTheme.js +2 -1
  278. package/dist/utils/theme/hooks/useControlTheme.js.map +1 -1
  279. package/package.json +9 -5
  280. package/dist/components/DatasetControl/Paging/DatasetPaging.d.ts +0 -3
  281. package/dist/components/DatasetControl/Paging/DatasetPaging.js +0 -69
  282. package/dist/components/DatasetControl/Paging/DatasetPaging.js.map +0 -1
  283. package/dist/components/DatasetControl/Paging/Paging.d.ts +0 -26
  284. package/dist/components/DatasetControl/Paging/Paging.js +0 -80
  285. package/dist/components/DatasetControl/Paging/Paging.js.map +0 -1
  286. package/dist/components/DatasetControl/Paging/index.d.ts +0 -3
  287. package/dist/components/DatasetControl/Paging/index.js +0 -3
  288. package/dist/components/DatasetControl/Paging/index.js.map +0 -1
  289. package/dist/components/DatasetControl/Paging/interfaces.d.ts +0 -16
  290. package/dist/components/DatasetControl/Paging/styles.d.ts +0 -35
  291. package/dist/components/DatasetControl/Paging/styles.js +0 -41
  292. package/dist/components/DatasetControl/Paging/styles.js.map +0 -1
  293. package/dist/components/DatasetControl/Paging/translations.d.ts +0 -38
  294. package/dist/components/DatasetControl/Paging/translations.js +0 -14
  295. package/dist/components/DatasetControl/Paging/translations.js.map +0 -1
  296. package/dist/components/Grid/Grid.d.ts +0 -3
  297. package/dist/components/Grid/Grid.js +0 -37
  298. package/dist/components/Grid/Grid.js.map +0 -1
  299. package/dist/components/Grid/GridContext.d.ts +0 -3
  300. package/dist/components/Grid/GridContext.js.map +0 -1
  301. package/dist/components/Grid/aggregation/Aggregation.d.ts +0 -18
  302. package/dist/components/Grid/aggregation/Aggregation.js +0 -129
  303. package/dist/components/Grid/aggregation/Aggregation.js.map +0 -1
  304. package/dist/components/Grid/core/components/AgGrid/AgGrid.js +0 -203
  305. package/dist/components/Grid/core/components/AgGrid/AgGrid.js.map +0 -1
  306. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js +0 -12
  307. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.js.map +0 -1
  308. package/dist/components/Grid/core/components/AgGrid/components/EmptyRecordsOverlay/styles.js.map +0 -1
  309. package/dist/components/Grid/core/components/AgGrid/components/LoadingOverlay/LoadingOverlay.js.map +0 -1
  310. package/dist/components/Grid/core/components/AgGrid/context.js.map +0 -1
  311. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.d.ts +0 -52
  312. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js +0 -343
  313. package/dist/components/Grid/core/components/AgGrid/model/AgGrid.js.map +0 -1
  314. package/dist/components/Grid/core/components/AgGrid/model/Comparator.js.map +0 -1
  315. package/dist/components/Grid/core/components/AgGrid/styles.js.map +0 -1
  316. package/dist/components/Grid/core/components/Cell/Cell.js +0 -158
  317. package/dist/components/Grid/core/components/Cell/Cell.js.map +0 -1
  318. package/dist/components/Grid/core/components/Cell/CellContent/CellContent.js.map +0 -1
  319. package/dist/components/Grid/core/components/Cell/CellContent/styles.js.map +0 -1
  320. package/dist/components/Grid/core/components/Cell/Notifications/Notifications.js.map +0 -1
  321. package/dist/components/Grid/core/components/Cell/Notifications/styles.js.map +0 -1
  322. package/dist/components/Grid/core/components/Cell/styles.js +0 -59
  323. package/dist/components/Grid/core/components/Cell/styles.js.map +0 -1
  324. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js +0 -61
  325. package/dist/components/Grid/core/components/ColumnHeader/ColumnHeader.js.map +0 -1
  326. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.d.ts +0 -2
  327. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js +0 -50
  328. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/GlobalCheckbox.js.map +0 -1
  329. package/dist/components/Grid/core/components/ColumnHeader/components/GlobalCheckbox/styles.js.map +0 -1
  330. package/dist/components/Grid/core/components/ColumnHeader/styles.d.ts +0 -42
  331. package/dist/components/Grid/core/components/ColumnHeader/styles.js +0 -48
  332. package/dist/components/Grid/core/components/ColumnHeader/styles.js.map +0 -1
  333. package/dist/components/Grid/core/components/Dialog/Constants.d.ts +0 -2
  334. package/dist/components/Grid/core/components/Dialog/Constants.js +0 -9
  335. package/dist/components/Grid/core/components/Dialog/Constants.js.map +0 -1
  336. package/dist/components/Grid/core/components/Dialog/Styles.d.ts +0 -2
  337. package/dist/components/Grid/core/components/Dialog/Styles.js +0 -61
  338. package/dist/components/Grid/core/components/Dialog/Styles.js.map +0 -1
  339. package/dist/components/Grid/core/components/Dialog/index.d.ts +0 -4
  340. package/dist/components/Grid/core/components/Dialog/index.js +0 -16
  341. package/dist/components/Grid/core/components/Dialog/index.js.map +0 -1
  342. package/dist/components/Grid/core/components/Dialog/interfaces/index.d.ts +0 -6
  343. package/dist/components/Grid/core/components/Dialog/interfaces/index.js +0 -2
  344. package/dist/components/Grid/core/components/Dialog/interfaces/index.js.map +0 -1
  345. package/dist/components/Grid/core/components/Save/Save.d.ts +0 -2
  346. package/dist/components/Grid/core/components/Save/Save.js +0 -59
  347. package/dist/components/Grid/core/components/Save/Save.js.map +0 -1
  348. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.d.ts +0 -7
  349. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js +0 -73
  350. package/dist/components/Grid/core/components/Save/components/ChangeEditor/ChangeEditor.js.map +0 -1
  351. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.d.ts +0 -11
  352. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js +0 -231
  353. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/ChangeGrid.js.map +0 -1
  354. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.d.ts +0 -39
  355. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js +0 -45
  356. package/dist/components/Grid/core/components/Save/components/ChangeEditor/components/ChangeGrid/styles.js.map +0 -1
  357. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.d.ts +0 -31
  358. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js +0 -37
  359. package/dist/components/Grid/core/components/Save/components/ChangeEditor/styles.js.map +0 -1
  360. package/dist/components/Grid/core/components/Save/styles.d.ts +0 -35
  361. package/dist/components/Grid/core/components/Save/styles.js +0 -42
  362. package/dist/components/Grid/core/components/Save/styles.js.map +0 -1
  363. package/dist/components/Grid/core/controllers/useGridController.d.ts +0 -7
  364. package/dist/components/Grid/core/controllers/useGridController.js +0 -29
  365. package/dist/components/Grid/core/controllers/useGridController.js.map +0 -1
  366. package/dist/components/Grid/core/enums/ConditionOperator.d.ts +0 -48
  367. package/dist/components/Grid/core/enums/ConditionOperator.js +0 -52
  368. package/dist/components/Grid/core/enums/ConditionOperator.js.map +0 -1
  369. package/dist/components/Grid/core/enums/DataType.d.ts +0 -25
  370. package/dist/components/Grid/core/enums/DataType.js +0 -30
  371. package/dist/components/Grid/core/enums/DataType.js.map +0 -1
  372. package/dist/components/Grid/core/hooks/useGridInstance.d.ts +0 -2
  373. package/dist/components/Grid/core/hooks/useGridInstance.js.map +0 -1
  374. package/dist/components/Grid/core/hooks/useRefreshCallback.d.ts +0 -2
  375. package/dist/components/Grid/core/hooks/useRefreshCallback.js +0 -20
  376. package/dist/components/Grid/core/hooks/useRefreshCallback.js.map +0 -1
  377. package/dist/components/Grid/core/interfaces/IGridColumn.d.ts +0 -13
  378. package/dist/components/Grid/core/interfaces/IGridContext.d.ts +0 -4
  379. package/dist/components/Grid/core/model/Grid.d.ts +0 -81
  380. package/dist/components/Grid/core/model/Grid.js +0 -513
  381. package/dist/components/Grid/core/model/Grid.js.map +0 -1
  382. package/dist/components/Grid/core/model/GridDependency.d.ts +0 -13
  383. package/dist/components/Grid/core/model/GridDependency.js +0 -28
  384. package/dist/components/Grid/core/model/GridDependency.js.map +0 -1
  385. package/dist/components/Grid/core/services/KeyListener.d.ts +0 -12
  386. package/dist/components/Grid/core/services/KeyListener.js +0 -31
  387. package/dist/components/Grid/core/services/KeyListener.js.map +0 -1
  388. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js +0 -59
  389. package/dist/components/Grid/filtering/components/FilterCallout/FilterCallout.js.map +0 -1
  390. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.d.ts +0 -7
  391. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js +0 -56
  392. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionOperator/ConditionOperator.js.map +0 -1
  393. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.d.ts +0 -7
  394. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js +0 -73
  395. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValue.js.map +0 -1
  396. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.d.ts +0 -7
  397. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js +0 -90
  398. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/ConditionValueBetween.js.map +0 -1
  399. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.d.ts +0 -48
  400. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js +0 -146
  401. package/dist/components/Grid/filtering/components/FilterCallout/components/ConditionValue/model/ConditionComponentValue.js.map +0 -1
  402. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.d.ts +0 -11
  403. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js +0 -53
  404. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.js.map +0 -1
  405. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.d.ts +0 -9
  406. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js +0 -31
  407. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.js.map +0 -1
  408. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.d.ts +0 -10
  409. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js +0 -294
  410. package/dist/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.js.map +0 -1
  411. package/dist/components/Grid/filtering/components/FilterCallout/styles.d.ts +0 -35
  412. package/dist/components/Grid/filtering/components/FilterCallout/styles.js.map +0 -1
  413. package/dist/components/Grid/filtering/constants.d.ts +0 -5
  414. package/dist/components/Grid/filtering/constants.js +0 -53
  415. package/dist/components/Grid/filtering/constants.js.map +0 -1
  416. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.d.ts +0 -21
  417. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js +0 -44
  418. package/dist/components/Grid/filtering/controller/useColumnFilterConditionController.js.map +0 -1
  419. package/dist/components/Grid/filtering/model/Condition.d.ts +0 -49
  420. package/dist/components/Grid/filtering/model/Condition.js +0 -347
  421. package/dist/components/Grid/filtering/model/Condition.js.map +0 -1
  422. package/dist/components/Grid/filtering/model/Filtering.d.ts +0 -11
  423. package/dist/components/Grid/filtering/model/Filtering.js +0 -78
  424. package/dist/components/Grid/filtering/model/Filtering.js.map +0 -1
  425. package/dist/components/Grid/filtering/utils/FilteringUtilts.d.ts +0 -34
  426. package/dist/components/Grid/filtering/utils/FilteringUtilts.js +0 -195
  427. package/dist/components/Grid/filtering/utils/FilteringUtilts.js.map +0 -1
  428. package/dist/components/Grid/selection/model/Selection.d.ts +0 -12
  429. package/dist/components/Grid/selection/model/Selection.js +0 -54
  430. package/dist/components/Grid/selection/model/Selection.js.map +0 -1
  431. package/dist/components/Grid/sorting/Sorting.d.ts +0 -10
  432. package/dist/components/Grid/sorting/Sorting.js +0 -31
  433. package/dist/components/Grid/sorting/Sorting.js.map +0 -1
  434. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js +0 -157
  435. package/dist/components/Grid/sorting/components/SortingContextualMenu/SortingContextualMenu.js.map +0 -1
  436. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.d.ts +0 -9
  437. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js +0 -15
  438. package/dist/components/Grid/sorting/components/SortingContextualMenu/styles.js.map +0 -1
  439. package/dist/components/Grid/sorting/controllers/useColumnSortingController.d.ts +0 -9
  440. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js +0 -22
  441. package/dist/components/Grid/sorting/controllers/useColumnSortingController.js.map +0 -1
  442. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.d.ts +0 -2
  443. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js +0 -11
  444. package/dist/components/GridCellRenderer/DefaultContentRenderer/DefaultContentRenderer.js.map +0 -1
  445. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.d.ts +0 -1
  446. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js +0 -2
  447. package/dist/components/GridCellRenderer/DefaultContentRenderer/index.js.map +0 -1
  448. package/dist/components/GridCellRenderer/OptionSet/OptionSet.d.ts +0 -5
  449. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js +0 -75
  450. package/dist/components/GridCellRenderer/OptionSet/OptionSet.js.map +0 -1
  451. package/dist/components/GridCellRenderer/OptionSet/index.d.ts +0 -1
  452. package/dist/components/GridCellRenderer/OptionSet/index.js +0 -2
  453. package/dist/components/GridCellRenderer/OptionSet/index.js.map +0 -1
  454. package/dist/components/GridCellRenderer/OptionSet/styles.d.ts +0 -20
  455. package/dist/components/GridCellRenderer/OptionSet/styles.js +0 -29
  456. package/dist/components/GridCellRenderer/OptionSet/styles.js.map +0 -1
  457. package/dist/components/GridCellRenderer/RecordCommands/Icon.d.ts +0 -7
  458. package/dist/components/GridCellRenderer/RecordCommands/Icon.js +0 -32
  459. package/dist/components/GridCellRenderer/RecordCommands/Icon.js.map +0 -1
  460. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.d.ts +0 -13
  461. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js +0 -103
  462. package/dist/components/GridCellRenderer/RecordCommands/RecordCommands.js.map +0 -1
  463. package/dist/components/GridCellRenderer/RecordCommands/styles.d.ts +0 -13
  464. package/dist/components/GridCellRenderer/RecordCommands/styles.js +0 -32
  465. package/dist/components/GridCellRenderer/RecordCommands/styles.js.map +0 -1
  466. package/dist/components/GridCellRenderer/useComponentProps.d.ts +0 -6
  467. package/dist/components/GridCellRenderer/useComponentProps.js +0 -10
  468. package/dist/components/GridCellRenderer/useComponentProps.js.map +0 -1
  469. /package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/styles.d.ts +0 -0
  470. /package/dist/components/Grid/{core/components/Cell/CellContent → cells/cell/content}/styles.js +0 -0
  471. /package/dist/components/Grid/{core/components/Cell/Notifications → cells/cell/notifications}/styles.d.ts +0 -0
  472. /package/dist/components/Grid/{core/components/ColumnHeader/components/GlobalCheckbox → column-headers/record-selection-checkbox}/styles.d.ts +0 -0
  473. /package/dist/components/Grid/{core/components/ColumnHeader/components/GlobalCheckbox → column-headers/record-selection-checkbox}/styles.js +0 -0
  474. /package/dist/components/Grid/{GridContext.js → grid/GridContext.js} +0 -0
  475. /package/dist/components/Grid/{core/components/AgGrid/components/EmptyRecordsOverlay/EmptyRecords.d.ts → overlays/empty-records/EmptyRecordsOverlay.d.ts} +0 -0
  476. /package/dist/components/Grid/{core/components/AgGrid/components/LoadingOverlay → overlays/loading}/LoadingOverlay.d.ts +0 -0
  477. /package/dist/components/Grid/{core/components/AgGrid/components/LoadingOverlay → overlays/loading}/LoadingOverlay.js +0 -0
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { IRecord } from "@talxis/client-libraries";
3
- import { IControl } from "../../../../../../../interfaces";
4
- import { IGridColumn } from "../../../../../core/interfaces/IGridColumn";
5
- export interface IControlProps {
6
- column: IGridColumn;
7
- record: IRecord;
8
- onNotifyOutputChanged: (value: any) => void;
9
- onOverrideControlProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;
10
- }
11
- export declare const Component: (props: IControlProps) => JSX.Element;
@@ -1,53 +0,0 @@
1
- import { jsx, Fragment } from 'react/jsx-runtime';
2
- import { DataType } from '../../../../../core/enums/DataType.js';
3
- import { useComponentController } from './controller/useComponentController.js';
4
- import { TextField } from '../../../../../../TextField/TextField.js';
5
- import { Duration } from '../../../../../../Duration/Duration.js';
6
- import { Lookup } from '../../../../../../Lookup/Lookup.js';
7
- import { Decimal } from '../../../../../../Decimal/Decimal.js';
8
- import { DateTime } from '../../../../../../DateTime/DateTime.js';
9
- import { MultiSelectOptionSet } from '../../../../../../MultiSelectOptionSet/MultiSelectOptionSet.js';
10
- import { TwoOptions } from '../../../../../../TwoOptions/TwoOptions.js';
11
- import { OptionSet } from '../../../../../../OptionSet/OptionSet.js';
12
-
13
- const Component = (props) => {
14
- const controller = useComponentController(props);
15
- const { column, componentProps } = { ...controller };
16
- if (!column) {
17
- return jsx(Fragment, {});
18
- }
19
- switch (column.dataType) {
20
- case DataType.TWO_OPTIONS: {
21
- return jsx(TwoOptions, { ...componentProps });
22
- }
23
- case DataType.OPTIONSET: {
24
- return jsx(OptionSet, { ...componentProps });
25
- }
26
- case DataType.MULTI_SELECT_OPTIONSET: {
27
- return jsx(MultiSelectOptionSet, { ...componentProps });
28
- }
29
- case DataType.DATE_AND_TIME_DATE_AND_TIME:
30
- case DataType.DATE_AND_TIME_DATE_ONLY: {
31
- return jsx(DateTime, { ...componentProps });
32
- }
33
- case DataType.DECIMAL:
34
- case DataType.WHOLE_NONE:
35
- case DataType.CURRENCY: {
36
- return jsx(Decimal, { ...componentProps });
37
- }
38
- case DataType.LOOKUP_SIMPLE:
39
- case DataType.LOOKUP_OWNER:
40
- case DataType.LOOKUP_CUSTOMER: {
41
- return jsx(Lookup, { ...componentProps });
42
- }
43
- case DataType.WHOLE_DURATION: {
44
- return jsx(Duration, { ...componentProps });
45
- }
46
- default: {
47
- return jsx(TextField, { ...componentProps });
48
- }
49
- }
50
- };
51
-
52
- export { Component };
53
- //# sourceMappingURL=Component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Component.js","sources":["../../../../../../../../src/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/Component.tsx"],"sourcesContent":["import { IRecord } from \"@talxis/client-libraries\";\nimport { IControl } from \"../../../../../../../interfaces\";\nimport { DateTime } from \"../../../../../../DateTime\";\nimport { Decimal } from \"../../../../../../Decimal\";\nimport { Duration } from \"../../../../../../Duration\";\nimport { Lookup } from \"../../../../../../Lookup\";\nimport { MultiSelectOptionSet } from \"../../../../../../MultiSelectOptionSet\";\nimport { OptionSet } from \"../../../../../../OptionSet\";\nimport { TwoOptions } from \"../../../../../../TwoOptions\";\nimport { DataType } from \"../../../../../core/enums/DataType\";\nimport { IGridColumn } from \"../../../../../core/interfaces/IGridColumn\";\nimport { useComponentController } from \"./controller/useComponentController\";\nimport { TextField } from \"../../../../../../TextField\";\n\nexport interface IControlProps {\n column: IGridColumn;\n record: IRecord\n onNotifyOutputChanged: (value: any) => void;\n onOverrideControlProps?: (props: IControl<any, any, any, any>) => IControl<any, any, any, any>;\n}\n\nexport const Component = (props: IControlProps) => {\n const controller = useComponentController(props);\n const {column, componentProps} = {...controller};\n if(!column) {\n return <></>\n }\n switch(column.dataType) {\n case DataType.TWO_OPTIONS: {\n return <TwoOptions {...componentProps!} />\n }\n case DataType.OPTIONSET: {\n return <OptionSet {...componentProps!} />\n }\n case DataType.MULTI_SELECT_OPTIONSET: {\n return <MultiSelectOptionSet {...componentProps!} />\n }\n case DataType.DATE_AND_TIME_DATE_AND_TIME:\n case DataType.DATE_AND_TIME_DATE_ONLY: {\n return <DateTime {...componentProps!} />\n }\n case DataType.DECIMAL:\n case DataType.WHOLE_NONE:\n case DataType.CURRENCY: {\n return <Decimal {...componentProps!} />\n }\n case DataType.LOOKUP_SIMPLE:\n case DataType.LOOKUP_OWNER:\n case DataType.LOOKUP_CUSTOMER: {\n return <Lookup {...componentProps!} />\n }\n case DataType.WHOLE_DURATION: {\n return <Duration {...componentProps!} />\n }\n default: {\n return <TextField {...componentProps!} />\n }\n }\n}"],"names":["_jsx"],"mappings":";;;;;;;;;;;;AAqBa,MAAA,SAAS,GAAG,CAAC,KAAoB,KAAI;AAC9C,IAAA,MAAM,UAAU,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACjD,MAAM,EAAC,MAAM,EAAE,cAAc,EAAC,GAAG,EAAC,GAAG,UAAU,EAAC,CAAC;IACjD,IAAG,CAAC,MAAM,EAAE;AACR,QAAA,OAAOA,iBAAK,CAAA;AACf,KAAA;IACD,QAAO,MAAM,CAAC,QAAQ;AAClB,QAAA,KAAK,QAAQ,CAAC,WAAW,EAAE;AACvB,YAAA,OAAOA,GAAC,CAAA,UAAU,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC7C,SAAA;AACD,QAAA,KAAK,QAAQ,CAAC,SAAS,EAAE;AACrB,YAAA,OAAOA,GAAC,CAAA,SAAS,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC5C,SAAA;AACD,QAAA,KAAK,QAAQ,CAAC,sBAAsB,EAAE;AAClC,YAAA,OAAOA,GAAC,CAAA,oBAAoB,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AACvD,SAAA;QACD,KAAK,QAAQ,CAAC,2BAA2B,CAAC;AAC1C,QAAA,KAAK,QAAQ,CAAC,uBAAuB,EAAE;AACnC,YAAA,OAAOA,GAAC,CAAA,QAAQ,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC3C,SAAA;QACD,KAAK,QAAQ,CAAC,OAAO,CAAC;QACtB,KAAK,QAAQ,CAAC,UAAU,CAAC;AACzB,QAAA,KAAK,QAAQ,CAAC,QAAQ,EAAE;AACpB,YAAA,OAAOA,GAAC,CAAA,OAAO,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC1C,SAAA;QACD,KAAK,QAAQ,CAAC,aAAa,CAAC;QAC5B,KAAK,QAAQ,CAAC,YAAY,CAAC;AAC3B,QAAA,KAAK,QAAQ,CAAC,eAAe,EAAE;AAC3B,YAAA,OAAOA,GAAC,CAAA,MAAM,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AACzC,SAAA;AACD,QAAA,KAAK,QAAQ,CAAC,cAAc,EAAE;AAC1B,YAAA,OAAOA,GAAC,CAAA,QAAQ,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC3C,SAAA;AACD,QAAA,SAAS;AACL,YAAA,OAAOA,GAAC,CAAA,SAAS,EAAK,EAAA,GAAA,cAAe,GAAI,CAAA;AAC5C,SAAA;AACJ,KAAA;AACL;;;;"}
@@ -1,9 +0,0 @@
1
- import { IControlProps } from "../Component";
2
- import { IGridColumn } from "../../../../../../core/interfaces/IGridColumn";
3
- import { IControl } from "../../../../../../../../interfaces";
4
- interface IControlController {
5
- column: IGridColumn;
6
- componentProps: IControl<any, any, any, any>;
7
- }
8
- export declare const useComponentController: (props: IControlProps) => IControlController | undefined;
9
- export {};
@@ -1,31 +0,0 @@
1
- import { useMemo, useState, useRef, useEffect } from 'react';
2
- import { Component } from '../model/Component.js';
3
- import { useGridInstance } from '../../../../../../core/hooks/useGridInstance.js';
4
-
5
- const useComponentController = (props) => {
6
- const grid = useGridInstance();
7
- const component = useMemo(() => new Component(grid), []);
8
- const [controller, setController] = useState();
9
- const mountedRef = useRef(true);
10
- useEffect(() => {
11
- (async () => {
12
- const componentProps = await component.getControlProps(props);
13
- if (!mountedRef.current) {
14
- return;
15
- }
16
- setController({
17
- column: props.column,
18
- componentProps: componentProps
19
- });
20
- })();
21
- }, [props]);
22
- useEffect(() => {
23
- return () => {
24
- mountedRef.current = false;
25
- };
26
- }, []);
27
- return controller;
28
- };
29
-
30
- export { useComponentController };
31
- //# sourceMappingURL=useComponentController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useComponentController.js","sources":["../../../../../../../../../src/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/controller/useComponentController.ts"],"sourcesContent":["import { useEffect, useMemo,useRef,useState } from \"react\"\nimport { IControlProps } from \"../Component\";\nimport { Component } from '../model/Component';\nimport { IGridColumn } from \"../../../../../../core/interfaces/IGridColumn\";\nimport { IControl } from \"../../../../../../../../interfaces\";\nimport { useGridInstance } from \"../../../../../../core/hooks/useGridInstance\";\n\ninterface IControlController {\n column: IGridColumn;\n componentProps: IControl<any, any, any, any>;\n}\n\nexport const useComponentController = (props: IControlProps): IControlController | undefined => {\n const grid = useGridInstance();\n const component = useMemo(() => new Component(grid), []);\n const [controller, setController] = useState<IControlController>();\n const mountedRef = useRef<boolean>(true);\n \n useEffect(() => {\n (async () => {\n const componentProps = await component.getControlProps(props);\n if(!mountedRef.current) {\n return;\n }\n setController({\n column: props.column,\n componentProps: componentProps\n })\n })();\n }, [props]);\n\n useEffect(() => {\n return () => {\n mountedRef.current = false;\n }\n }, []);\n\n return controller;\n}"],"names":[],"mappings":";;;;AAYa,MAAA,sBAAsB,GAAG,CAAC,KAAoB,KAAoC;AAC3F,IAAA,MAAM,IAAI,GAAG,eAAe,EAAE,CAAC;AAC/B,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,EAAsB,CAAC;AACnE,IAAA,MAAM,UAAU,GAAG,MAAM,CAAU,IAAI,CAAC,CAAC;IAEzC,SAAS,CAAC,MAAK;QACX,CAAC,YAAW;YACR,MAAM,cAAc,GAAG,MAAM,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC9D,YAAA,IAAG,CAAC,UAAU,CAAC,OAAO,EAAE;gBACpB,OAAO;AACV,aAAA;AACD,YAAA,aAAa,CAAC;gBACV,MAAM,EAAE,KAAK,CAAC,MAAM;AACpB,gBAAA,cAAc,EAAE,cAAc;AACjC,aAAA,CAAC,CAAA;SACL,GAAG,CAAC;AACT,KAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,SAAS,CAAC,MAAK;AACX,QAAA,OAAO,MAAK;AACR,YAAA,UAAU,CAAC,OAAO,GAAG,KAAK,CAAC;AAC/B,SAAC,CAAA;KACJ,EAAE,EAAE,CAAC,CAAC;AAEP,IAAA,OAAO,UAAU,CAAC;AACtB;;;;"}
@@ -1,10 +0,0 @@
1
- import { GridDependency } from "../../../../../../core/model/GridDependency";
2
- import { IControlProps } from "../Component";
3
- import { IControl } from "../../../../../../../../interfaces";
4
- export declare class Component extends GridDependency {
5
- private _debouncedGetLookupValue;
6
- private static _lookupSavedQueriesCache;
7
- getControlProps(props: IControlProps): Promise<IControl<any, any, any, any>>;
8
- private _getLookupValue;
9
- private _getComponentValue;
10
- }
@@ -1,294 +0,0 @@
1
- import dayjs from 'dayjs';
2
- import { GridDependency } from '../../../../../../core/model/GridDependency.js';
3
- import { Sanitizer } from '@talxis/client-libraries';
4
- import { DataType } from '../../../../../../core/enums/DataType.js';
5
-
6
- const debounce = (func, wait) => {
7
- let timeout = null;
8
- let promiseCache = null;
9
- return async (...args) => {
10
- if (!promiseCache) {
11
- promiseCache = func(...args);
12
- }
13
- if (timeout)
14
- clearTimeout(timeout);
15
- timeout = setTimeout(() => {
16
- promiseCache = null;
17
- }, wait);
18
- return promiseCache;
19
- };
20
- };
21
- //deprecated, used for filters only
22
- //filters should be moved to NestedControlRenderer
23
- class Component extends GridDependency {
24
- constructor() {
25
- super(...arguments);
26
- this._debouncedGetLookupValue = debounce(this._getLookupValue.bind(this), 50);
27
- }
28
- async getControlProps(props) {
29
- const { column, onNotifyOutputChanged, record } = { ...props };
30
- const value = this._getComponentValue(column, record.getValue(column.name));
31
- const formattedValue = record.getFormattedValue(column.name);
32
- const validation = record.getColumnInfo(column.name);
33
- const onOverrideControlProps = (props) => {
34
- return {
35
- ...props,
36
- parameters: {
37
- ...props.parameters,
38
- MultipleEnabled: {
39
- raw: true
40
- },
41
- IsInlineNewEnabled: {
42
- raw: false
43
- },
44
- ShowErrorMessage: {
45
- raw: true
46
- },
47
- EnableTypeSuffix: {
48
- raw: false
49
- }
50
- }
51
- };
52
- };
53
- switch (column.dataType) {
54
- case DataType.LOOKUP_SIMPLE:
55
- case DataType.LOOKUP_OWNER:
56
- case DataType.LOOKUP_CUSTOMER: {
57
- const columnMetadata = column.metadata;
58
- const targets = columnMetadata?.Targets ?? [];
59
- //@ts-ignore - typings
60
- if (column.dataType === DataType.LOOKUP_OWNER && window.TALXIS.Portal) {
61
- targets.push('systemuser', 'team');
62
- }
63
- let displayName = "";
64
- if (targets.length === 1) {
65
- displayName = (await this._pcfContext.utils.getEntityMetadata(targets[0])).DisplayName;
66
- }
67
- const result = {
68
- context: this._pcfContext,
69
- parameters: {
70
- value: {
71
- getAllViews: async (entityName, __queryType = 1) => {
72
- const cacheKey = `${entityName}_${__queryType}`;
73
- if (!Component._lookupSavedQueriesCache.get(cacheKey)) {
74
- Component._lookupSavedQueriesCache.set(cacheKey, new Promise(async (resolve) => {
75
- const response = await this._pcfContext.webAPI.retrieveMultipleRecords('savedquery', `?$filter=returnedtypecode eq '${entityName}' and querytype eq ${__queryType} and isdefault eq true&$select=name,savedqueryid,fetchxml`);
76
- resolve(response.entities[0]);
77
- }));
78
- }
79
- const result = await Component._lookupSavedQueriesCache.get(cacheKey);
80
- return [
81
- {
82
- isDefault: true,
83
- viewName: result.name,
84
- viewId: result.savedqueryid,
85
- fetchXml: result.fetchxml
86
- }
87
- ];
88
- },
89
- raw: await this._debouncedGetLookupValue(targets, value),
90
- attributes: {
91
- Targets: targets,
92
- DisplayName: displayName
93
- },
94
- error: validation?.error === false,
95
- errorMessage: validation?.errorMessage ?? "",
96
- },
97
- MultipleEnabled: {
98
- raw: true
99
- },
100
- IsInlineNewEnabled: {
101
- raw: false
102
- },
103
- ShowErrorMessage: {
104
- raw: true
105
- }
106
- },
107
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
108
- };
109
- return onOverrideControlProps(result);
110
- }
111
- case DataType.TWO_OPTIONS: {
112
- const twoOptionsValue = value;
113
- const options = column.metadata?.OptionSet ?? [];
114
- return onOverrideControlProps({
115
- context: this._pcfContext,
116
- parameters: {
117
- value: {
118
- raw: twoOptionsValue === true ? true : false,
119
- error: validation?.error === false,
120
- errorMessage: validation?.errorMessage ?? "",
121
- attributes: {
122
- Options: options
123
- }
124
- }
125
- },
126
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
127
- });
128
- }
129
- case DataType.OPTIONSET: {
130
- const optionSetValue = value;
131
- const options = column.metadata?.OptionSet ?? [];
132
- return onOverrideControlProps({
133
- context: this._pcfContext,
134
- parameters: {
135
- value: {
136
- raw: optionSetValue ?? null,
137
- error: validation?.error === false,
138
- errorMessage: validation?.errorMessage ?? "",
139
- attributes: {
140
- Options: options
141
- }
142
- },
143
- },
144
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
145
- });
146
- }
147
- case DataType.MULTI_SELECT_OPTIONSET: {
148
- const options = column.metadata?.OptionSet ?? [];
149
- const optionSetValue = value;
150
- return onOverrideControlProps({
151
- context: this._pcfContext,
152
- parameters: {
153
- value: {
154
- raw: optionSetValue ?? null,
155
- error: validation?.error === false,
156
- errorMessage: validation?.errorMessage ?? "",
157
- attributes: {
158
- Options: options
159
- }
160
- }
161
- },
162
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
163
- });
164
- }
165
- case DataType.DATE_AND_TIME_DATE_AND_TIME:
166
- case DataType.DATE_AND_TIME_DATE_ONLY: {
167
- const dateTimeValue = value;
168
- const metadata = column.metadata;
169
- const date = dayjs(dateTimeValue);
170
- return onOverrideControlProps({
171
- context: this._pcfContext,
172
- parameters: {
173
- value: {
174
- raw: date.isValid() ? date.toDate() : dateTimeValue,
175
- error: validation?.error === false,
176
- errorMessage: validation?.errorMessage ?? "",
177
- attributes: {
178
- Behavior: metadata?.Behavior,
179
- Format: column.dataType
180
- }
181
- }
182
- },
183
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
184
- });
185
- }
186
- case DataType.WHOLE_NONE:
187
- case DataType.DECIMAL:
188
- case DataType.CURRENCY:
189
- case DataType.WHOLE_DURATION: {
190
- const decimalValue = value;
191
- const metadata = column.metadata;
192
- const precision = metadata?.Precision;
193
- return onOverrideControlProps({
194
- context: this._pcfContext,
195
- parameters: {
196
- value: {
197
- raw: decimalValue ?? null,
198
- error: validation?.error === false,
199
- //formatted value is only used for currency => there is no way to get the currency symbol so the formatCurrency method is useless
200
- formatted: formattedValue,
201
- errorMessage: validation?.errorMessage ?? "",
202
- type: column.dataType,
203
- attributes: {
204
- Precision: precision
205
- }
206
- },
207
- NotifyOutputChangedOnUnmount: {
208
- //duration is ComboBox => no need to do this
209
- raw: column.dataType !== DataType.WHOLE_DURATION,
210
- }
211
- },
212
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
213
- });
214
- }
215
- default: {
216
- return onOverrideControlProps({
217
- context: this._pcfContext,
218
- parameters: {
219
- isResizable: {
220
- raw: false
221
- },
222
- NotifyOutputChangedOnUnmount: {
223
- raw: true,
224
- },
225
- value: {
226
- raw: value,
227
- type: column.dataType,
228
- error: validation?.error === false,
229
- errorMessage: validation?.errorMessage ?? ""
230
- }
231
- },
232
- onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)
233
- });
234
- }
235
- }
236
- }
237
- async _getLookupValue(targets, value) {
238
- if (!value || value.length === 0) {
239
- return [];
240
- }
241
- //this is case from filters where we only have the id to work it => we need to go through targets and search for the records
242
- if (!value[0].entityType) {
243
- for (const lookup of value) {
244
- for (const target of targets) {
245
- try {
246
- const lookupEntityMetadata = await this._pcfContext.utils.getEntityMetadata(target, []);
247
- const response = await this._pcfContext.webAPI.retrieveRecord(target, lookup.id, `?$select=${lookupEntityMetadata.PrimaryNameAttribute}`);
248
- lookup.entityType = target;
249
- lookup.name = response[lookupEntityMetadata.PrimaryNameAttribute];
250
- break;
251
- }
252
- catch (err) {
253
- continue;
254
- }
255
- }
256
- }
257
- }
258
- return value;
259
- }
260
- //map because getValue API does not return values 1:1 to PCF bindings
261
- _getComponentValue(column, value) {
262
- switch (column.dataType) {
263
- //getValue always returns string for TwoOptions
264
- case DataType.TWO_OPTIONS: {
265
- value = value == '1' ? true : false;
266
- break;
267
- }
268
- //getValue always returns string for OptionSet
269
- case DataType.OPTIONSET: {
270
- value = value ? parseInt(value) : null;
271
- break;
272
- }
273
- case DataType.MULTI_SELECT_OPTIONSET: {
274
- value = value ? value.split(',').map((x) => parseInt(x)) : null;
275
- break;
276
- }
277
- case DataType.LOOKUP_SIMPLE:
278
- case DataType.LOOKUP_CUSTOMER:
279
- case DataType.LOOKUP_OWNER: {
280
- //our implementation returns array, Power Apps returns object
281
- if (value && !Array.isArray(value)) {
282
- value = [value];
283
- }
284
- value = value?.map((x) => Sanitizer.Lookup.getLookupValue(x));
285
- break;
286
- }
287
- }
288
- return value;
289
- }
290
- }
291
- Component._lookupSavedQueriesCache = new Map;
292
-
293
- export { Component };
294
- //# sourceMappingURL=Component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Component.js","sources":["../../../../../../../../../src/components/Grid/filtering/components/FilterCallout/components/LegacyControlRendering/model/Component.ts"],"sourcesContent":["import dayjs from \"dayjs\";\nimport { GridDependency } from \"../../../../../../core/model/GridDependency\";\nimport { IControlProps } from \"../Component\";\nimport { IControl } from \"../../../../../../../../interfaces\";\nimport { Attribute, Sanitizer } from \"@talxis/client-libraries\";\nimport { DataType } from \"../../../../../../core/enums/DataType\";\nimport { ILookup } from \"../../../../../../../Lookup\";\nimport { ITwoOptions } from \"../../../../../../../TwoOptions\";\nimport { IOptionSet } from \"../../../../../../../OptionSet\";\nimport { IMultiSelectOptionSet } from \"../../../../../../../MultiSelectOptionSet\";\nimport { IDateTime } from \"../../../../../../../DateTime\";\nimport { IDecimal } from \"../../../../../../../Decimal\";\nimport { ITextField } from \"../../../../../../../TextField\";\nimport { IGridColumn } from \"../../../../../../core/interfaces/IGridColumn\";\n\nconst debounce = (func: (...args: any[]) => Promise<any>, wait: number) => {\n let timeout: NodeJS.Timeout | null = null;\n let promiseCache: Promise<any> | null = null;\n\n return async (...args: any[]) => {\n if (!promiseCache) {\n promiseCache = func(...args);\n }\n\n if (timeout) clearTimeout(timeout);\n\n timeout = setTimeout(() => {\n promiseCache = null;\n }, wait);\n\n return promiseCache;\n };\n};\n\n\n//deprecated, used for filters only\n//filters should be moved to NestedControlRenderer\nexport class Component extends GridDependency {\n private _debouncedGetLookupValue = debounce(this._getLookupValue.bind(this), 50);\n private static _lookupSavedQueriesCache = new Map<string, Promise<ComponentFramework.WebApi.Entity>>;\n\n public async getControlProps(props: IControlProps): Promise<IControl<any, any, any, any>> {\n const { column, onNotifyOutputChanged, record} = { ...props };\n const value = this._getComponentValue(column, record.getValue(column.name));\n const formattedValue = record.getFormattedValue(column.name);\n const validation = record.getColumnInfo(column.name);\n const onOverrideControlProps = (props: IControl<any, any, any, any>) => {\n return {\n ...props,\n parameters: {\n ...props.parameters,\n MultipleEnabled: {\n raw: true\n },\n IsInlineNewEnabled: {\n raw: false\n },\n ShowErrorMessage: {\n raw: true\n },\n EnableTypeSuffix: {\n raw: false\n }\n }\n }\n };\n switch (column.dataType) {\n case DataType.LOOKUP_SIMPLE:\n case DataType.LOOKUP_OWNER:\n case DataType.LOOKUP_CUSTOMER: {\n const columnMetadata = column.metadata\n const targets = columnMetadata?.Targets ?? [];\n //@ts-ignore - typings\n if (column.dataType === DataType.LOOKUP_OWNER && window.TALXIS.Portal) {\n targets.push('systemuser', 'team')\n }\n let displayName = \"\";\n if(targets.length === 1) {\n displayName = (await this._pcfContext.utils.getEntityMetadata(targets[0])).DisplayName;\n }\n const result = {\n context: this._pcfContext,\n parameters: {\n value: {\n getAllViews: async (entityName: string, __queryType: number = 1) => {\n const cacheKey = `${entityName}_${__queryType}`\n if (!Component._lookupSavedQueriesCache.get(cacheKey)) {\n Component._lookupSavedQueriesCache.set(cacheKey, new Promise(async (resolve) => {\n const response = await this._pcfContext.webAPI.retrieveMultipleRecords('savedquery', `?$filter=returnedtypecode eq '${entityName}' and querytype eq ${__queryType} and isdefault eq true&$select=name,savedqueryid,fetchxml`);\n resolve(response.entities[0])\n }))\n }\n const result = await Component._lookupSavedQueriesCache.get(cacheKey)!;\n return [\n {\n isDefault: true,\n viewName: result.name,\n viewId: result.savedqueryid,\n fetchXml: result.fetchxml\n }\n ]\n },\n raw: await this._debouncedGetLookupValue(targets, value),\n attributes: {\n Targets: targets,\n DisplayName: displayName\n },\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\",\n },\n MultipleEnabled: {\n raw: true\n },\n IsInlineNewEnabled: {\n raw: false\n },\n ShowErrorMessage: {\n raw: true\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n\n } as ILookup;\n return onOverrideControlProps(result);\n }\n case DataType.TWO_OPTIONS: {\n const twoOptionsValue = value as boolean | undefined | null;\n const options = column.metadata?.OptionSet ?? [];\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n value: {\n raw: twoOptionsValue === true ? true : false,\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\",\n attributes: {\n Options: options\n }\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n } as ITwoOptions)\n }\n case DataType.OPTIONSET: {\n const optionSetValue = value as number | null | undefined;\n const options = column.metadata?.OptionSet ?? [];\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n value: {\n raw: optionSetValue ?? null,\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\",\n attributes: {\n Options: options\n }\n },\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n } as IOptionSet);\n }\n case DataType.MULTI_SELECT_OPTIONSET: {\n const options = column.metadata?.OptionSet ?? [];\n const optionSetValue = value as number[] | null | undefined;\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n value: {\n raw: optionSetValue ?? null,\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\",\n attributes: {\n Options: options\n }\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n } as IMultiSelectOptionSet);\n }\n case DataType.DATE_AND_TIME_DATE_AND_TIME:\n case DataType.DATE_AND_TIME_DATE_ONLY: {\n const dateTimeValue = value as Date | null | undefined;\n const metadata = column.metadata;\n const date = dayjs(dateTimeValue);\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n value: {\n raw: date.isValid() ? date.toDate() : dateTimeValue,\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\",\n attributes: {\n Behavior: metadata?.Behavior,\n Format: column.dataType\n }\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n \n } as IDateTime);\n }\n case DataType.WHOLE_NONE:\n case DataType.DECIMAL:\n case DataType.CURRENCY:\n case DataType.WHOLE_DURATION: {\n const decimalValue = value as number | null | undefined\n const metadata = column.metadata\n const precision = metadata?.Precision;\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n value: {\n raw: decimalValue ?? null,\n error: validation?.error === false,\n //formatted value is only used for currency => there is no way to get the currency symbol so the formatCurrency method is useless\n formatted: formattedValue,\n errorMessage: validation?.errorMessage ?? \"\",\n type: column.dataType,\n attributes: {\n Precision: precision\n }\n },\n NotifyOutputChangedOnUnmount: {\n //duration is ComboBox => no need to do this\n raw: column.dataType !== DataType.WHOLE_DURATION,\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n\n } as IDecimal);\n }\n default: {\n return onOverrideControlProps({\n context: this._pcfContext,\n parameters: {\n isResizable: {\n raw: false\n },\n NotifyOutputChangedOnUnmount: {\n raw: true,\n },\n value: {\n raw: value,\n type: column.dataType,\n error: validation?.error === false,\n errorMessage: validation?.errorMessage ?? \"\"\n }\n },\n onNotifyOutputChanged: (outputs) => onNotifyOutputChanged(outputs.value)\n } as ITextField);\n }\n }\n }\n private async _getLookupValue(targets: string[], value: ComponentFramework.LookupValue[] | null | undefined): Promise<ComponentFramework.LookupValue[]> {\n if (!value || value.length === 0) {\n return [];\n }\n //this is case from filters where we only have the id to work it => we need to go through targets and search for the records\n if (!value[0].entityType) {\n for (const lookup of value) {\n for (const target of targets) {\n try {\n const lookupEntityMetadata = await this._pcfContext.utils.getEntityMetadata(target, []);\n const response = await this._pcfContext.webAPI.retrieveRecord(target, lookup.id, `?$select=${lookupEntityMetadata.PrimaryNameAttribute}`);\n lookup.entityType = target;\n lookup.name = response[lookupEntityMetadata.PrimaryNameAttribute];\n break;\n }\n catch (err) {\n continue;\n }\n }\n }\n }\n return value;\n }\n\n\n //map because getValue API does not return values 1:1 to PCF bindings\n private _getComponentValue(column: IGridColumn, value: any) {\n switch(column.dataType) {\n //getValue always returns string for TwoOptions\n case DataType.TWO_OPTIONS: {\n value = value == '1' ? true : false\n break;\n }\n //getValue always returns string for OptionSet\n case DataType.OPTIONSET: {\n value = value ? parseInt(value) : null;\n break;\n }\n case DataType.MULTI_SELECT_OPTIONSET: {\n value = value ? value.split(',').map((x: string) => parseInt(x)) : null;\n break;\n }\n case DataType.LOOKUP_SIMPLE:\n case DataType.LOOKUP_CUSTOMER:\n case DataType.LOOKUP_OWNER: {\n //our implementation returns array, Power Apps returns object\n if(value && !Array.isArray(value)) {\n value = [value];\n }\n value = value?.map((x: ComponentFramework.EntityReference) => Sanitizer.Lookup.getLookupValue(x))\n break;\n }\n }\n return value;\n }\n}"],"names":[],"mappings":";;;;;AAeA,MAAM,QAAQ,GAAG,CAAC,IAAsC,EAAE,IAAY,KAAI;IACtE,IAAI,OAAO,GAA0B,IAAI,CAAC;IAC1C,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C9B,YAAA,KAAK,QAAQ,CAAC,YAAY,EAAE;;gBAExB,IAAG,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AAC/B,oBAAA,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;AACnB,iBAAA;AACD,gBAAA,KAAK,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAqC,KAAK,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;gBACjG,MAAM;AACT,aAAA;AACJ,SAAA;AACD,QAAA,OAAO,KAAK,CAAC;KAChB;;AA5Qc,SAAwB,CAAA,wBAAA,GAAG,IAAI,GAAsD;;;;"}
@@ -1,35 +0,0 @@
1
- export declare const filterCalloutStyles: import("@fluentui/react").IProcessedStyleSet<{
2
- controls: {
3
- display: string;
4
- flexDirection: string;
5
- gap: number;
6
- flexGrow: number;
7
- };
8
- root: {
9
- minHeight: number;
10
- padding: number;
11
- '.ms-Callout-main': {
12
- display: string;
13
- flexDirection: string;
14
- gap: number;
15
- };
16
- '.TALXIS__combobox__root, [class*="TALXIS__textfield__root"], [class*="TALXIS__tag-picker__root"]': {
17
- padding: string;
18
- };
19
- };
20
- title: {
21
- fontWeight: number;
22
- flexGrow: number;
23
- };
24
- header: {
25
- display: string;
26
- i: {
27
- fontSize: number;
28
- };
29
- };
30
- footer: {
31
- display: string;
32
- gap: number;
33
- justifyContent: string;
34
- };
35
- }>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sources":["../../../../../../src/components/Grid/filtering/components/FilterCallout/styles.ts"],"sourcesContent":["import { mergeStyleSets } from \"@fluentui/react\";\n\nexport const filterCalloutStyles = mergeStyleSets({\n controls: {\n display: 'flex',\n flexDirection: 'column',\n gap: 10,\n flexGrow: 1\n },\n root: {\n minHeight: 200,\n padding: 16,\n '.ms-Callout-main': {\n display: 'flex',\n flexDirection: 'column',\n gap: 10\n },\n '.TALXIS__combobox__root, [class*=\"TALXIS__textfield__root\"], [class*=\"TALXIS__tag-picker__root\"]': {\n padding: `0x !important`\n }\n },\n title: {\n fontWeight: 600,\n flexGrow: 1\n },\n header: {\n display: 'flex',\n 'i': {\n fontSize: 12\n }\n },\n footer: {\n display: 'flex',\n gap: 10,\n justifyContent: 'flex-end'\n }\n});"],"names":[],"mappings":";;AAEO,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAC9C,IAAA,QAAQ,EAAE;AACN,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,aAAa,EAAE,QAAQ;AACvB,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,QAAQ,EAAE,CAAC;AACd,KAAA;AACD,IAAA,IAAI,EAAE;AACF,QAAA,SAAS,EAAE,GAAG;AACd,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,kBAAkB,EAAE;AAChB,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,aAAa,EAAE,QAAQ;AACvB,YAAA,GAAG,EAAE,EAAE;AACV,SAAA;AACD,QAAA,kGAAkG,EAAE;AAChG,YAAA,OAAO,EAAE,CAAe,aAAA,CAAA;AAC3B,SAAA;AACJ,KAAA;AACD,IAAA,KAAK,EAAE;AACH,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,CAAC;AACd,KAAA;AACD,IAAA,MAAM,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,GAAG,EAAE;AACD,YAAA,QAAQ,EAAE,EAAE;AACf,SAAA;AACJ,KAAA;AACD,IAAA,MAAM,EAAE;AACJ,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,cAAc,EAAE,UAAU;AAC7B,KAAA;AACJ,CAAA;;;;"}
@@ -1,5 +0,0 @@
1
- import { DatasetConditionOperator } from "../core/enums/ConditionOperator";
2
- export declare const OPERATORS: {
3
- type: DatasetConditionOperator;
4
- key: string;
5
- }[];
@@ -1,53 +0,0 @@
1
- import { DatasetConditionOperator } from '../core/enums/ConditionOperator.js';
2
-
3
- const OPERATORS = [
4
- { type: DatasetConditionOperator.None, key: 'condition-none' },
5
- { type: DatasetConditionOperator.Equal, key: 'condition-equal' },
6
- { type: DatasetConditionOperator.NotEqual, key: 'condition-notequal' },
7
- { type: DatasetConditionOperator.GreaterThan, key: 'condition-greaterthan' },
8
- { type: DatasetConditionOperator.LessThan, key: 'condition-lessthan' },
9
- { type: DatasetConditionOperator.GreaterEqual, key: 'condition-greaterequal' },
10
- { type: DatasetConditionOperator.LessEqual, key: 'condition-lessequal' },
11
- { type: DatasetConditionOperator.Like, key: 'condition-like' },
12
- { type: DatasetConditionOperator.NotLike, key: 'condition-notlike' },
13
- { type: DatasetConditionOperator.In, key: 'condition-in' },
14
- { type: DatasetConditionOperator.NotIn, key: 'condition-notin' },
15
- { type: DatasetConditionOperator.Between, key: 'condition-between' },
16
- { type: DatasetConditionOperator.NotBetween, key: 'condition-notbetween' },
17
- { type: DatasetConditionOperator.Null, key: 'condition-null' },
18
- { type: DatasetConditionOperator.NotNull, key: 'condition-notnull' },
19
- { type: DatasetConditionOperator.Yesterday, key: 'condition-yesterday' },
20
- { type: DatasetConditionOperator.Today, key: 'condition-today' },
21
- { type: DatasetConditionOperator.Tomorrow, key: 'condition-tomorrow' },
22
- { type: DatasetConditionOperator.Last7Days, key: 'condition-last7days' },
23
- { type: DatasetConditionOperator.Next7Days, key: 'condition-next7days' },
24
- { type: DatasetConditionOperator.LastWeek, key: 'condition-lastweek' },
25
- { type: DatasetConditionOperator.ThisWeek, key: 'condition-thisweek' },
26
- { type: DatasetConditionOperator.LastMonth, key: 'condition-lastmonth' },
27
- { type: DatasetConditionOperator.ThisMonth, key: 'condition-thismonth' },
28
- { type: DatasetConditionOperator.On, key: 'condition-on' },
29
- { type: DatasetConditionOperator.OnOrBefore, key: 'condition-onorbefore' },
30
- { type: DatasetConditionOperator.OnOrAfter, key: 'condition-onorafter' },
31
- { type: DatasetConditionOperator.LastYear, key: 'condition-lastyear' },
32
- { type: DatasetConditionOperator.ThisYear, key: 'condition-thisyear' },
33
- { type: DatasetConditionOperator.LastXDays, key: 'condition-lastxdays' },
34
- { type: DatasetConditionOperator.NextXDays, key: 'condition-nextxdays' },
35
- { type: DatasetConditionOperator.LastXMonths, key: 'condition-lastxmonths' },
36
- { type: DatasetConditionOperator.NextXMonths, key: 'condition-nextxmonths' },
37
- { type: DatasetConditionOperator.Contains, key: 'condition-contains' },
38
- { type: DatasetConditionOperator.BeginWith, key: 'condition-beginwith' },
39
- { type: DatasetConditionOperator.DoesNotBeginWith, key: 'condition-doesnotbeginwith' },
40
- { type: DatasetConditionOperator.EndsWith, key: 'condition-endswith' },
41
- { type: DatasetConditionOperator.DoesNotEndWith, key: 'condition-doesnotendwith' },
42
- { type: DatasetConditionOperator.InFiscalPeriodAndYear, key: 'condition-infiscalperiodandyear' },
43
- { type: DatasetConditionOperator.Above, key: 'condition-above' },
44
- { type: DatasetConditionOperator.Under, key: 'condition-under' },
45
- { type: DatasetConditionOperator.NotUnder, key: 'condition-notunder' },
46
- { type: DatasetConditionOperator.AboveOrEqual, key: 'condition-aboveorequal' },
47
- { type: DatasetConditionOperator.UnderOrEqual, key: 'condition-underorequal' },
48
- { type: DatasetConditionOperator.ContainValues, key: 'condition-containvalues' },
49
- { type: DatasetConditionOperator.DoesNotContainValues, key: 'condition-doesnotcontainvalues' }, // Added missing operator
50
- ];
51
-
52
- export { OPERATORS };
53
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../src/components/Grid/filtering/constants.ts"],"sourcesContent":["import { DatasetConditionOperator } from \"../core/enums/ConditionOperator\";\n\nexport const OPERATORS = [\n { type: DatasetConditionOperator.None, key: 'condition-none' },\n { type: DatasetConditionOperator.Equal, key: 'condition-equal' },\n { type: DatasetConditionOperator.NotEqual, key: 'condition-notequal' },\n { type: DatasetConditionOperator.GreaterThan, key: 'condition-greaterthan' },\n { type: DatasetConditionOperator.LessThan, key: 'condition-lessthan' },\n { type: DatasetConditionOperator.GreaterEqual, key: 'condition-greaterequal' },\n { type: DatasetConditionOperator.LessEqual, key: 'condition-lessequal' },\n { type: DatasetConditionOperator.Like, key: 'condition-like' },\n { type: DatasetConditionOperator.NotLike, key: 'condition-notlike' },\n { type: DatasetConditionOperator.In, key: 'condition-in' },\n { type: DatasetConditionOperator.NotIn, key: 'condition-notin' },\n { type: DatasetConditionOperator.Between, key: 'condition-between' },\n { type: DatasetConditionOperator.NotBetween, key: 'condition-notbetween' },\n { type: DatasetConditionOperator.Null, key: 'condition-null' },\n { type: DatasetConditionOperator.NotNull, key: 'condition-notnull' },\n { type: DatasetConditionOperator.Yesterday, key: 'condition-yesterday' },\n { type: DatasetConditionOperator.Today, key: 'condition-today' },\n { type: DatasetConditionOperator.Tomorrow, key: 'condition-tomorrow' },\n { type: DatasetConditionOperator.Last7Days, key: 'condition-last7days' },\n { type: DatasetConditionOperator.Next7Days, key: 'condition-next7days' },\n { type: DatasetConditionOperator.LastWeek, key: 'condition-lastweek' },\n { type: DatasetConditionOperator.ThisWeek, key: 'condition-thisweek' },\n { type: DatasetConditionOperator.LastMonth, key: 'condition-lastmonth' },\n { type: DatasetConditionOperator.ThisMonth, key: 'condition-thismonth' },\n { type: DatasetConditionOperator.On, key: 'condition-on' },\n { type: DatasetConditionOperator.OnOrBefore, key: 'condition-onorbefore' },\n { type: DatasetConditionOperator.OnOrAfter, key: 'condition-onorafter' },\n { type: DatasetConditionOperator.LastYear, key: 'condition-lastyear' },\n { type: DatasetConditionOperator.ThisYear, key: 'condition-thisyear' },\n { type: DatasetConditionOperator.LastXDays, key: 'condition-lastxdays' },\n { type: DatasetConditionOperator.NextXDays, key: 'condition-nextxdays' },\n { type: DatasetConditionOperator.LastXMonths, key: 'condition-lastxmonths' },\n { type: DatasetConditionOperator.NextXMonths, key: 'condition-nextxmonths' },\n { type: DatasetConditionOperator.Contains, key: 'condition-contains' },\n { type: DatasetConditionOperator.BeginWith, key: 'condition-beginwith' },\n { type: DatasetConditionOperator.DoesNotBeginWith, key: 'condition-doesnotbeginwith' },\n { type: DatasetConditionOperator.EndsWith, key: 'condition-endswith' },\n { type: DatasetConditionOperator.DoesNotEndWith, key: 'condition-doesnotendwith' },\n { type: DatasetConditionOperator.InFiscalPeriodAndYear, key: 'condition-infiscalperiodandyear' },\n { type: DatasetConditionOperator.Above, key: 'condition-above' },\n { type: DatasetConditionOperator.Under, key: 'condition-under' },\n { type: DatasetConditionOperator.NotUnder, key: 'condition-notunder' },\n { type: DatasetConditionOperator.AboveOrEqual, key: 'condition-aboveorequal' },\n { type: DatasetConditionOperator.UnderOrEqual, key: 'condition-underorequal' },\n { type: DatasetConditionOperator.ContainValues, key: 'condition-containvalues' },\n { type: DatasetConditionOperator.DoesNotContainValues, key: 'condition-doesnotcontainvalues' }, // Added missing operator\n];"],"names":[],"mappings":";;AAEa,MAAA,SAAS,GAAG;IACrB,EAAE,IAAI,EAAE,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,EAAE;IAC9D,EAAE,IAAI,EAAE,wBAAwB,CAAC,KAAK,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAChE,EAAE,IAAI,EAAE,wBAAwB,CAAC,QAAQ,EAAE,GAAG,EAAE,oBAAoB,EAAE;IACtE,EAAE,IAAI,EAAE,wBAAwB,CAAC,WAAW,EAAE,GAAG,EAAE,uBAAuB,EAAE;IAC5E,EAAE,IAAI,EAAE,wBAAwB,CAAC,QAAQ,EAAE,GAAG,EAAE,oBAAoB,EAAE;IACtE,EAAE,IAAI,EAAE,wBAAwB,CAAC,YAAY,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC9E,EAAE,IAAI,EAAE,wBAAwB,CAAC,SAAS,EAAE,GAAG,EAAE,qBAAqB,EAAE;IACxE,EAAE,IAAI,EAAE,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,EAAE;IAC9D,EAAE,IAAI,EAAE,wBAAwB,CAAC,OAAO,EAAE,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AAC,KAAK,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAChE,EAAE,IAAI,EAAE,wBAAwB,CAAC,QAAQ,EAAE,GAAG,EAAE,oBAAoB,EAAE;IACtE,EAAE,IAAI,EAAE,wBAAwB,CAAC,YAAY,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC9E,EAAE,IAAI,EAAE,wBAAwB,CAAC,YAAY,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC9E,EAAE,IAAI,EAAE,wBAAwB,CAAC,aAAa,EAAE,GAAG,EAAE,yBAAyB,EAAE;IAChF,EAAE,IAAI,EAAE,wBAAwB,CAAC,oBAAoB,EAAE,GAAG,EAAE,gCAAgC,EAAE;;;;;"}
@@ -1,21 +0,0 @@
1
- import { DatasetConditionOperator } from "../../core/enums/ConditionOperator";
2
- import { IGridColumn } from "../../core/interfaces/IGridColumn";
3
- export interface IColumnFilterConditionController {
4
- isAppliedToDataset: boolean;
5
- column: IGridColumn;
6
- value: {
7
- valid: boolean;
8
- get: () => any;
9
- set: (value: any) => void;
10
- };
11
- operator: {
12
- get: () => DatasetConditionOperator | undefined;
13
- set: (operator: DatasetConditionOperator) => void;
14
- };
15
- remove: () => void;
16
- save: () => Promise<boolean>;
17
- clear: () => void;
18
- setShouldShowError: (shouldShowError: boolean) => void;
19
- shouldShowError: () => boolean;
20
- }
21
- export declare const useColumnFilterConditionController: (column: IGridColumn) => IColumnFilterConditionController | null;