@talxis/base-controls 1.2604.2 → 1.2605.2-alpha

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 (248) hide show
  1. package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js +1 -2
  2. package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js.map +1 -1
  3. package/dist/components/Lookup/Lookup.js +4 -1
  4. package/dist/components/Lookup/Lookup.js.map +1 -1
  5. package/dist/components/Lookup/hooks/useLookup.d.ts +4 -0
  6. package/dist/components/Lookup/translations.d.ts +4 -0
  7. package/dist/components/Lookup/translations.js +4 -0
  8. package/dist/components/Lookup/translations.js.map +1 -1
  9. package/dist/components/TaskGrid/TaskGrid.js +3 -4
  10. package/dist/components/TaskGrid/TaskGrid.js.map +1 -1
  11. package/dist/components/TaskGrid/TaskGridDatasetControl.d.ts +16 -5
  12. package/dist/components/TaskGrid/TaskGridDatasetControl.js +32 -13
  13. package/dist/components/TaskGrid/TaskGridDatasetControl.js.map +1 -1
  14. package/dist/components/TaskGrid/TaskGridDatasetControlFactory.d.ts +3 -2
  15. package/dist/components/TaskGrid/TaskGridDatasetControlFactory.js +7 -5
  16. package/dist/components/TaskGrid/TaskGridDatasetControlFactory.js.map +1 -1
  17. package/dist/components/TaskGrid/components/grid/cell-renderers/add-task-button/AddTaskButton.js +3 -8
  18. package/dist/components/TaskGrid/components/grid/cell-renderers/add-task-button/AddTaskButton.js.map +1 -1
  19. package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.d.ts +7 -0
  20. package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.js +99 -0
  21. package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.js.map +1 -0
  22. package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/index.d.ts +1 -0
  23. package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/index.js +2 -0
  24. package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.d.ts +1 -0
  25. package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.js +2 -1
  26. package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.js.map +1 -1
  27. package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/index.js +1 -1
  28. package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.d.ts +2 -7
  29. package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.js +44 -18
  30. package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.js.map +1 -1
  31. package/dist/components/TaskGrid/components/grid/grid-drag-handler/GridDragHandler.js.map +1 -1
  32. package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.d.ts +13 -0
  33. package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.js +82 -0
  34. package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.js.map +1 -0
  35. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.d.ts +5 -0
  36. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.js +12 -0
  37. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.js.map +1 -0
  38. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.d.ts +2 -0
  39. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.js +13 -0
  40. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.js.map +1 -0
  41. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.d.ts +3 -0
  42. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.js +17 -0
  43. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.js.map +1 -0
  44. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/index.d.ts +1 -0
  45. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/index.js +2 -0
  46. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.d.ts +3 -0
  47. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.js +17 -0
  48. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.js.map +1 -0
  49. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/index.d.ts +1 -0
  50. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/index.js +2 -0
  51. package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → components/grid/lookup-many/colorful-lookup-many/components/option}/index.js.map +1 -1
  52. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.d.ts +14 -0
  53. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.js +21 -0
  54. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.js.map +1 -0
  55. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.d.ts +4 -0
  56. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.js +9 -0
  57. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.js.map +1 -0
  58. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/index.d.ts +1 -0
  59. package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/index.js +2 -0
  60. package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → components/grid/lookup-many/colorful-lookup-many}/index.js.map +1 -1
  61. package/dist/components/TaskGrid/components/grid/lookup-many/components/index.d.ts +10 -0
  62. package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js +15 -0
  63. package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js.map +1 -0
  64. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.d.ts +3 -0
  65. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.js +15 -0
  66. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.js.map +1 -0
  67. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.d.ts +1 -0
  68. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.js +2 -0
  69. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.js.map +1 -0
  70. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.d.ts +18 -0
  71. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.js +24 -0
  72. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.js.map +1 -0
  73. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.d.ts +3 -0
  74. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.js +21 -0
  75. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.js.map +1 -0
  76. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.d.ts +1 -0
  77. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.js +2 -0
  78. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.js.map +1 -0
  79. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.d.ts +15 -0
  80. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.js +22 -0
  81. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.js.map +1 -0
  82. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.d.ts +3 -0
  83. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.js +18 -0
  84. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.js.map +1 -0
  85. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.d.ts +22 -0
  86. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.js +28 -0
  87. package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.js.map +1 -0
  88. package/dist/components/TaskGrid/components/grid/lookup-many/context.d.ts +4 -0
  89. package/dist/components/TaskGrid/components/grid/lookup-many/context.js +9 -0
  90. package/dist/components/TaskGrid/components/grid/lookup-many/context.js.map +1 -0
  91. package/dist/components/TaskGrid/components/grid/lookup-many/index.d.ts +4 -0
  92. package/dist/components/TaskGrid/components/grid/lookup-many/index.js +5 -0
  93. package/dist/components/TaskGrid/components/grid/lookup-many/index.js.map +1 -0
  94. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.d.ts +5 -0
  95. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.js +12 -0
  96. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.js.map +1 -0
  97. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.d.ts +2 -0
  98. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js +13 -0
  99. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js.map +1 -0
  100. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.d.ts +3 -0
  101. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.js +17 -0
  102. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.js.map +1 -0
  103. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.d.ts +1 -0
  104. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.js +2 -0
  105. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.js.map +1 -0
  106. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.d.ts +5 -0
  107. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.js +6 -0
  108. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.js.map +1 -0
  109. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.d.ts +3 -0
  110. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.js +16 -0
  111. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.js.map +1 -0
  112. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.d.ts +1 -0
  113. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.js +2 -0
  114. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.js.map +1 -0
  115. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.d.ts +10 -0
  116. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.js +11 -0
  117. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.js.map +1 -0
  118. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.d.ts +4 -0
  119. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.js +9 -0
  120. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.js.map +1 -0
  121. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.d.ts +1 -0
  122. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.js +2 -0
  123. package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.js.map +1 -0
  124. package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.d.ts +1 -0
  125. package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js +27 -14
  126. package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js.map +1 -1
  127. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.d.ts +3 -0
  128. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.js +13 -0
  129. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.js.map +1 -0
  130. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.d.ts +18 -0
  131. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.js +24 -0
  132. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.js.map +1 -0
  133. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.d.ts +3 -0
  134. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.js +19 -0
  135. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.js.map +1 -0
  136. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.d.ts +12 -0
  137. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.js +19 -0
  138. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.js.map +1 -0
  139. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.d.ts +3 -0
  140. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.js +16 -0
  141. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.js.map +1 -0
  142. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.d.ts +22 -0
  143. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.js +28 -0
  144. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.js.map +1 -0
  145. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/option/Option.d.ts +3 -0
  146. package/dist/components/TaskGrid/components/grid/multi-record-selector/components/option/styles.d.ts +16 -0
  147. package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.d.ts +3 -0
  148. package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.js +15 -0
  149. package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.js.map +1 -0
  150. package/dist/components/TaskGrid/components/header/Header.js +5 -4
  151. package/dist/components/TaskGrid/components/header/Header.js.map +1 -1
  152. package/dist/components/TaskGrid/components/header/edit-columns/EditColumns.js.map +1 -1
  153. package/dist/components/TaskGrid/components/header/view-switcher/create-view-dialog/CreateViewDialog.js.map +1 -1
  154. package/dist/components/TaskGrid/components/header/view-switcher/view-manager/ViewManager.js.map +1 -1
  155. package/dist/components/TaskGrid/context.d.ts +5 -4
  156. package/dist/components/TaskGrid/context.js.map +1 -1
  157. package/dist/components/TaskGrid/extensions/LexoRank.d.ts +7 -0
  158. package/dist/components/TaskGrid/extensions/dataverse/DataverseCustomColumnsStrategy.d.ts +69 -0
  159. package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.js → extensions/dataverse/DataverseCustomColumnsStrategy.js} +35 -3
  160. package/dist/components/TaskGrid/extensions/dataverse/DataverseCustomColumnsStrategy.js.map +1 -0
  161. package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.d.ts +20 -0
  162. package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.js +42 -0
  163. package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.js.map +1 -0
  164. package/dist/components/TaskGrid/extensions/dataverse/DataverseSavedQueryStrategy.d.ts +49 -0
  165. package/dist/components/TaskGrid/{data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.js → extensions/dataverse/DataverseSavedQueryStrategy.js} +37 -15
  166. package/dist/components/TaskGrid/extensions/dataverse/DataverseSavedQueryStrategy.js.map +1 -0
  167. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.d.ts +100 -0
  168. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js +145 -0
  169. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js.map +1 -0
  170. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.d.ts +122 -0
  171. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.js +453 -0
  172. package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.js.map +1 -0
  173. package/dist/components/TaskGrid/extensions/dataverse/index.d.ts +5 -0
  174. package/dist/components/TaskGrid/extensions/dataverse/index.js +6 -0
  175. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.d.ts +49 -0
  176. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.js +145 -0
  177. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.js.map +1 -0
  178. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.d.ts +11 -0
  179. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.js +16 -0
  180. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.js.map +1 -0
  181. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.d.ts +2 -0
  182. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.js +29 -0
  183. package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.js.map +1 -0
  184. package/dist/components/TaskGrid/interfaces.d.ts +30 -12
  185. package/dist/components/TaskGrid/labels.d.ts +1 -15
  186. package/dist/components/TaskGrid/labels.js +2 -16
  187. package/dist/components/TaskGrid/labels.js.map +1 -1
  188. package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → providers/custom-columns}/CustomColumnsDataProvider.d.ts +5 -1
  189. package/dist/components/TaskGrid/providers/custom-columns/CustomColumnsDataProvider.js.map +1 -0
  190. package/dist/components/TaskGrid/providers/custom-columns/index.d.ts +1 -0
  191. package/dist/components/TaskGrid/providers/custom-columns/index.js +2 -0
  192. package/dist/components/TaskGrid/providers/custom-columns/index.js.map +1 -0
  193. package/dist/components/TaskGrid/providers/index.d.ts +3 -0
  194. package/dist/components/TaskGrid/providers/index.js +4 -0
  195. package/dist/components/TaskGrid/providers/index.js.map +1 -0
  196. package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → providers/saved-query}/SavedQueryDataProvider.d.ts +13 -8
  197. package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → providers/saved-query}/SavedQueryDataProvider.js +87 -50
  198. package/dist/components/TaskGrid/providers/saved-query/SavedQueryDataProvider.js.map +1 -0
  199. package/dist/components/TaskGrid/providers/saved-query/index.d.ts +1 -0
  200. package/dist/components/TaskGrid/providers/saved-query/index.js +2 -0
  201. package/dist/components/TaskGrid/providers/saved-query/index.js.map +1 -0
  202. package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/TaskDataProvider.d.ts +15 -22
  203. package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/TaskDataProvider.js +35 -26
  204. package/dist/components/TaskGrid/providers/task/TaskDataProvider.js.map +1 -0
  205. package/dist/components/TaskGrid/providers/task/index.js.map +1 -0
  206. package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/RecordTree.js +2 -0
  207. package/dist/components/TaskGrid/providers/task/record-tree/RecordTree.js.map +1 -0
  208. package/dist/components/TaskGrid/providers/task/record-tree/index.js.map +1 -0
  209. package/dist/components/TaskGrid/providers/task/record-tree/patchDataBuilderPrepare.js.map +1 -0
  210. package/dist/index.d.ts +177 -165
  211. package/dist/index.js +1 -0
  212. package/dist/index.js.map +1 -1
  213. package/dist/utils/index.d.ts +1 -0
  214. package/dist/utils/index.js +1 -0
  215. package/dist/utils/index.js.map +1 -1
  216. package/dist/utils/localization/LocalizationService.d.ts +15 -0
  217. package/dist/utils/localization/LocalizationService.js +17 -0
  218. package/dist/utils/localization/LocalizationService.js.map +1 -0
  219. package/dist/utils/localization/index.d.ts +1 -0
  220. package/dist/utils/localization/index.js +2 -0
  221. package/dist/utils/localization/index.js.map +1 -0
  222. package/package.json +5 -4
  223. package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/CustomColumnsDataProvider.js.map +0 -1
  224. package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.d.ts +0 -33
  225. package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.js.map +0 -1
  226. package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/index.d.ts +0 -2
  227. package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/index.js +0 -3
  228. package/dist/components/TaskGrid/data-providers/index.d.ts +0 -3
  229. package/dist/components/TaskGrid/data-providers/index.js +0 -6
  230. package/dist/components/TaskGrid/data-providers/saved-query-data-provider/SavedQueryDataProvider.js.map +0 -1
  231. package/dist/components/TaskGrid/data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.d.ts +0 -21
  232. package/dist/components/TaskGrid/data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.js.map +0 -1
  233. package/dist/components/TaskGrid/data-providers/saved-query-data-provider/index.d.ts +0 -2
  234. package/dist/components/TaskGrid/data-providers/saved-query-data-provider/index.js +0 -3
  235. package/dist/components/TaskGrid/data-providers/task-data-provider/TaskDataProvider.js.map +0 -1
  236. package/dist/components/TaskGrid/data-providers/task-data-provider/record-tree/RecordTree.js.map +0 -1
  237. package/dist/components/TaskGrid/data-providers/task-data-provider/record-tree/patchDataBuilderPrepare.js.map +0 -1
  238. /package/dist/components/TaskGrid/{data-providers/task-data-provider → components/grid/cell-renderers/lookup-many}/index.js.map +0 -0
  239. /package/dist/components/TaskGrid/{data-providers/task-data-provider/record-tree → components/grid/lookup-many/colorful-lookup-many/components/multi-value-container}/index.js.map +0 -0
  240. /package/dist/components/TaskGrid/{data-providers → extensions/dataverse}/index.js.map +0 -0
  241. /package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → providers/custom-columns}/CustomColumnsDataProvider.js +0 -0
  242. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/index.d.ts +0 -0
  243. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/index.js +0 -0
  244. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/RecordTree.d.ts +0 -0
  245. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/index.d.ts +0 -0
  246. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/index.js +0 -0
  247. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/patchDataBuilderPrepare.d.ts +0 -0
  248. /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/patchDataBuilderPrepare.js +0 -0
@@ -0,0 +1,82 @@
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { useLocalizationService } from '../../../context.js';
4
+ import { MultiValueRemove } from './components/multi-value-remove/MultiValueRemove.js';
5
+ import { LookupManyComponents } from './components/index.js';
6
+ import { LookupManyPropsContext } from './context.js';
7
+
8
+ //can be used as base for new lookup (is task grid independent)
9
+ const LookupMany = (props) => {
10
+ const { dataProvider, selectedRecords = [], isDisabled = false, onRecordSelect, onRecordOpen } = props;
11
+ const components = { ...LookupManyComponents, ...props.components };
12
+ const defaultOptionsPromiseRef = React.useRef(null);
13
+ const defaultOptionsResolveRef = React.useRef(null);
14
+ const localizationService = useLocalizationService();
15
+ const hasBeenUnmountedRef = React.useRef(false);
16
+ const MultiValueContainerComponent = React.useRef(components.onRenderMultiValueContainer);
17
+ const MultiValueLabel = React.useRef(components.onRenderMultiValueLabel);
18
+ const Option = React.useRef(components.onRenderOption);
19
+ const onLoadOptions = async (inputValue) => {
20
+ if (!defaultOptionsPromiseRef.current) {
21
+ defaultOptionsPromiseRef.current = new Promise((resolve) => {
22
+ defaultOptionsResolveRef.current = resolve;
23
+ });
24
+ }
25
+ await defaultOptionsPromiseRef.current;
26
+ if (hasBeenUnmountedRef.current)
27
+ return [];
28
+ dataProvider.setSearchQuery(inputValue);
29
+ const records = await dataProvider.refresh();
30
+ return records.map(record => {
31
+ return {
32
+ ...record.getNamedReference(),
33
+ rawData: record.getRawData()
34
+ };
35
+ });
36
+ };
37
+ //resolve the promise so initial load starts
38
+ const onFocus = () => {
39
+ setTimeout(() => {
40
+ defaultOptionsResolveRef.current?.();
41
+ }, 0);
42
+ };
43
+ React.useEffect(() => {
44
+ return () => {
45
+ hasBeenUnmountedRef.current = true;
46
+ defaultOptionsResolveRef.current?.();
47
+ };
48
+ }, []);
49
+ return jsx(LookupManyPropsContext.Provider, { value: props, children: components.onRenderSelect({
50
+ isMulti: true,
51
+ isDisabled: isDisabled,
52
+ menuPortalTarget: document.body,
53
+ value: selectedRecords,
54
+ menuPlacement: 'auto',
55
+ placeholder: '',
56
+ isClearable: false,
57
+ menuShouldScrollIntoView: false,
58
+ closeMenuOnSelect: false,
59
+ //@ts-ignore
60
+ defaultOptions: true,
61
+ components: {
62
+ IndicatorSeparator: () => jsx(Fragment, {}),
63
+ DropdownIndicator: () => jsx(Fragment, {}),
64
+ LoadingIndicator: () => jsx(Fragment, {}),
65
+ MultiValueContainer: MultiValueContainerComponent.current,
66
+ MultiValueRemove: MultiValueRemove,
67
+ MultiValueLabel: MultiValueLabel.current,
68
+ Option: Option.current,
69
+ },
70
+ noOptionsMessage: () => localizationService.getLocalizedString('noRecordsFound'),
71
+ loadingMessage: () => localizationService.getLocalizedString('loading'),
72
+ getOptionValue: (record) => record.id.guid,
73
+ getOptionLabel: (record) => record.name,
74
+ onChange: (selectedRecords) => onRecordSelect?.(selectedRecords),
75
+ onFocus: onFocus,
76
+ loadOptions: onLoadOptions,
77
+ onNavigate: onRecordOpen
78
+ }) });
79
+ };
80
+
81
+ export { LookupMany };
82
+ //# sourceMappingURL=LookupMany.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LookupMany.js","sources":["../../../../../../src/components/TaskGrid/components/grid/lookup-many/LookupMany.tsx"],"sourcesContent":["import { IDataProvider } from '@talxis/client-libraries';\nimport * as React from 'react';\nimport { useLocalizationService } from '../../../context';\nimport { MultiValueRemove } from './components/multi-value-remove/MultiValueRemove';\nimport { LookupManyComponents, ILookupManyComponents } from './components';\nimport { LookupManyPropsContext } from './context';\n\nexport interface ILookupManyProps {\n dataProvider: IDataProvider;\n selectedRecordHeight?: number;\n isDisabled?: boolean;\n selectedRecords?: ComponentFramework.EntityReference[];\n components?: Partial<ILookupManyComponents>;\n onRecordSelect?: (selectedRecords: ComponentFramework.EntityReference[]) => void;\n onRecordOpen?: (record: ComponentFramework.EntityReference) => void;\n}\n\n//can be used as base for new lookup (is task grid independent)\n\nexport const LookupMany = (props: ILookupManyProps) => {\n const { dataProvider, selectedRecords = [], isDisabled = false, onRecordSelect, onRecordOpen } = props;\n const components = { ...LookupManyComponents, ...props.components };\n const defaultOptionsPromiseRef = React.useRef<Promise<any> | null>(null);\n const defaultOptionsResolveRef = React.useRef<any>(null);\n const localizationService = useLocalizationService();\n const hasBeenUnmountedRef = React.useRef(false);\n const MultiValueContainerComponent = React.useRef(components.onRenderMultiValueContainer);\n const MultiValueLabel = React.useRef(components.onRenderMultiValueLabel);\n const Option = React.useRef(components.onRenderOption);\n\n const onLoadOptions = async (inputValue: string): Promise<ComponentFramework.EntityReference[]> => {\n if (!defaultOptionsPromiseRef.current) {\n defaultOptionsPromiseRef.current = new Promise((resolve) => {\n defaultOptionsResolveRef.current = resolve;\n });\n }\n await defaultOptionsPromiseRef.current;\n if(hasBeenUnmountedRef.current) return [];\n dataProvider.setSearchQuery(inputValue);\n const records = await dataProvider.refresh();\n return records.map(record => {\n return {\n ...record.getNamedReference(),\n rawData: record.getRawData()\n }\n })\n }\n\n //resolve the promise so initial load starts\n const onFocus = () => {\n setTimeout(() => {\n defaultOptionsResolveRef.current?.();\n }, 0);\n }\n\n React.useEffect(() => {\n return () => {\n hasBeenUnmountedRef.current = true;\n defaultOptionsResolveRef.current?.();\n }\n }, []);\n\n\n return <LookupManyPropsContext.Provider value={props}>\n {components.onRenderSelect({\n isMulti: true,\n isDisabled: isDisabled,\n menuPortalTarget: document.body,\n value: selectedRecords,\n menuPlacement: 'auto',\n placeholder: '',\n isClearable: false,\n menuShouldScrollIntoView: false,\n closeMenuOnSelect: false,\n //@ts-ignore\n defaultOptions: true,\n components: {\n IndicatorSeparator: () => <></>,\n DropdownIndicator: () => <></>,\n LoadingIndicator: () => <></>,\n MultiValueContainer: MultiValueContainerComponent.current,\n MultiValueRemove: MultiValueRemove,\n MultiValueLabel: MultiValueLabel.current,\n Option: Option.current,\n },\n\n noOptionsMessage: () => localizationService.getLocalizedString('noRecordsFound'),\n loadingMessage: () => localizationService.getLocalizedString('loading'),\n getOptionValue: (record) => record.id.guid,\n getOptionLabel: (record) => record.name,\n onChange: (selectedRecords) => onRecordSelect?.(selectedRecords as ComponentFramework.EntityReference[]),\n onFocus: onFocus,\n loadOptions: onLoadOptions,\n onNavigate: onRecordOpen\n })}\n </LookupManyPropsContext.Provider>\n}\n"],"names":["_jsx","_Fragment"],"mappings":";;;;;;;AAiBA;AAEa,MAAA,UAAU,GAAG,CAAC,KAAuB,KAAI;AAClD,IAAA,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,EAAE,EAAE,UAAU,GAAG,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IACvG,MAAM,UAAU,GAAG,EAAE,GAAG,oBAAoB,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;IACpE,MAAM,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAsB,IAAI,CAAC,CAAC;IACzE,MAAM,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAM,IAAI,CAAC,CAAC;AACzD,IAAA,MAAM,mBAAmB,GAAG,sBAAsB,EAAE,CAAC;IACrD,MAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,4BAA4B,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAC1F,MAAM,eAAe,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAEvD,IAAA,MAAM,aAAa,GAAG,OAAO,UAAkB,KAAmD;AAC9F,QAAA,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE;YACnC,wBAAwB,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,KAAI;AACvD,gBAAA,wBAAwB,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/C,aAAC,CAAC,CAAC;AACN,SAAA;QACD,MAAM,wBAAwB,CAAC,OAAO,CAAC;QACvC,IAAG,mBAAmB,CAAC,OAAO;AAAE,YAAA,OAAO,EAAE,CAAC;AAC1C,QAAA,YAAY,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AACxC,QAAA,MAAM,OAAO,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAC;AAC7C,QAAA,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,IAAG;YACxB,OAAO;gBACH,GAAG,MAAM,CAAC,iBAAiB,EAAE;AAC7B,gBAAA,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE;aAC/B,CAAA;AACL,SAAC,CAAC,CAAA;AACN,KAAC,CAAA;;IAGD,MAAM,OAAO,GAAG,MAAK;QACjB,UAAU,CAAC,MAAK;AACZ,YAAA,wBAAwB,CAAC,OAAO,IAAI,CAAC;SACxC,EAAE,CAAC,CAAC,CAAC;AACV,KAAC,CAAA;AAED,IAAA,KAAK,CAAC,SAAS,CAAC,MAAK;AACjB,QAAA,OAAO,MAAK;AACR,YAAA,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;AACnC,YAAA,wBAAwB,CAAC,OAAO,IAAI,CAAC;AACzC,SAAC,CAAA;KACJ,EAAE,EAAE,CAAC,CAAC;AAGP,IAAA,OAAOA,GAAC,CAAA,sBAAsB,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,KAAK,EAC/C,QAAA,EAAA,UAAU,CAAC,cAAc,CAAC;AACvB,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,UAAU,EAAE,UAAU;YACtB,gBAAgB,EAAE,QAAQ,CAAC,IAAI;AAC/B,YAAA,KAAK,EAAE,eAAe;AACtB,YAAA,aAAa,EAAE,MAAM;AACrB,YAAA,WAAW,EAAE,EAAE;AACf,YAAA,WAAW,EAAE,KAAK;AAClB,YAAA,wBAAwB,EAAE,KAAK;AAC/B,YAAA,iBAAiB,EAAE,KAAK;;AAExB,YAAA,cAAc,EAAE,IAAI;AACpB,YAAA,UAAU,EAAE;AACR,gBAAA,kBAAkB,EAAE,MAAMA,GAAK,CAAAC,QAAA,EAAA,EAAA,CAAA;AAC/B,gBAAA,iBAAiB,EAAE,MAAMD,GAAK,CAAAC,QAAA,EAAA,EAAA,CAAA;AAC9B,gBAAA,gBAAgB,EAAE,MAAMD,GAAK,CAAAC,QAAA,EAAA,EAAA,CAAA;gBAC7B,mBAAmB,EAAE,4BAA4B,CAAC,OAAO;AACzD,gBAAA,gBAAgB,EAAE,gBAAgB;gBAClC,eAAe,EAAE,eAAe,CAAC,OAAO;gBACxC,MAAM,EAAE,MAAM,CAAC,OAAO;AACzB,aAAA;YAED,gBAAgB,EAAE,MAAM,mBAAmB,CAAC,kBAAkB,CAAC,gBAAgB,CAAC;YAChF,cAAc,EAAE,MAAM,mBAAmB,CAAC,kBAAkB,CAAC,SAAS,CAAC;YACvE,cAAc,EAAE,CAAC,MAAM,KAAK,MAAM,CAAC,EAAE,CAAC,IAAI;YAC1C,cAAc,EAAE,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI;YACvC,QAAQ,EAAE,CAAC,eAAe,KAAK,cAAc,GAAG,eAAuD,CAAC;AACxG,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,WAAW,EAAE,aAAa;AAC1B,YAAA,UAAU,EAAE,YAAY;AAC3B,SAAA,CAAC,GAC4B,CAAA;AACtC;;;;"}
@@ -0,0 +1,5 @@
1
+ import { ILookupManyProps } from "../LookupMany";
2
+ export interface IColorfulLookupManyProps extends ILookupManyProps {
3
+ colorPropertyName?: string;
4
+ }
5
+ export declare const ColorfulLookupMany: (props: IColorfulLookupManyProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { LookupMany } from '../LookupMany.js';
3
+ import { DEFAULT_TAG_LOOKUP_MANY_COMPONENTS } from './components/index.js';
4
+ import { ColorfulLookupManyPropsContext } from './context.js';
5
+
6
+ const ColorfulLookupMany = (props) => {
7
+ const components = { ...DEFAULT_TAG_LOOKUP_MANY_COMPONENTS, ...props.components };
8
+ return jsx(ColorfulLookupManyPropsContext.Provider, { value: props, children: jsx(LookupMany, { ...props, components: components }) });
9
+ };
10
+
11
+ export { ColorfulLookupMany };
12
+ //# sourceMappingURL=ColorfulLookupMany.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorfulLookupMany.js","sources":["../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.tsx"],"sourcesContent":["import { ILookupManyProps, LookupMany } from \"../LookupMany\";\nimport { DEFAULT_TAG_LOOKUP_MANY_COMPONENTS } from \"./components\";\nimport { ColorfulLookupManyPropsContext } from \"./context\";\n\nexport interface IColorfulLookupManyProps extends ILookupManyProps {\n colorPropertyName?: string;\n}\n\nexport const ColorfulLookupMany = (props: IColorfulLookupManyProps) => {\n const components = { ...DEFAULT_TAG_LOOKUP_MANY_COMPONENTS, ...props.components };\n return <ColorfulLookupManyPropsContext.Provider value={props}>\n <LookupMany\n {...props}\n components={components}\n />\n </ColorfulLookupManyPropsContext.Provider>\n}\n"],"names":["_jsx"],"mappings":";;;;;AAQa,MAAA,kBAAkB,GAAG,CAAC,KAA+B,KAAI;IAClE,MAAM,UAAU,GAAG,EAAE,GAAG,kCAAkC,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;AAClF,IAAA,OAAOA,IAAC,8BAA8B,CAAC,QAAQ,EAAC,EAAA,KAAK,EAAE,KAAK,EAAA,QAAA,EACxDA,IAAC,UAAU,EAAA,EAAA,GACH,KAAK,EACT,UAAU,EAAE,UAAU,EAAA,CACxB,GACoC,CAAA;AAC9C;;;;"}
@@ -0,0 +1,2 @@
1
+ import { ILookupManyComponents } from "../../components";
2
+ export declare const DEFAULT_TAG_LOOKUP_MANY_COMPONENTS: ILookupManyComponents;
@@ -0,0 +1,13 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { LookupManyComponents } from '../../components/index.js';
3
+ import { MultiValueContainer } from './multi-value-container/MultiValueContainer.js';
4
+ import { Option } from './option/Option.js';
5
+
6
+ const DEFAULT_TAG_LOOKUP_MANY_COMPONENTS = {
7
+ ...LookupManyComponents,
8
+ onRenderMultiValueContainer: (props) => jsx(MultiValueContainer, { ...props }),
9
+ onRenderOption: (props) => jsx(Option, { ...props })
10
+ };
11
+
12
+ export { DEFAULT_TAG_LOOKUP_MANY_COMPONENTS };
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.tsx"],"sourcesContent":["import { LookupManyComponents, ILookupManyComponents } from \"../../components\";\nimport { MultiValueContainer } from \"./multi-value-container\";\nimport { Option } from \"./option\";\n\nexport const DEFAULT_TAG_LOOKUP_MANY_COMPONENTS: ILookupManyComponents = {\n ...LookupManyComponents,\n onRenderMultiValueContainer: (props) => <MultiValueContainer {...props} />,\n onRenderOption: (props) => <Option {...props} />\n}\n"],"names":["_jsx"],"mappings":";;;;;AAIa,MAAA,kCAAkC,GAA0B;AACrE,IAAA,GAAG,oBAAoB;IACvB,2BAA2B,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,mBAAmB,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;IAC1E,cAAc,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,MAAM,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ import { MultiValueGenericProps } from 'react-select';
3
+ export declare const MultiValueContainer: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useTheme, ThemeProvider } from '@fluentui/react';
3
+ import { Theming, useThemeGenerator } from '@talxis/react-components';
4
+ import { MultiValueContainer as MultiValueContainer$1 } from '../../../components/multi-value-container/MultiValueContainer.js';
5
+ import { useColorfulLookupManyProps } from '../../context.js';
6
+
7
+ const MultiValueContainer = (props) => {
8
+ const theme = useTheme();
9
+ const { colorPropertyName = 'color' } = useColorfulLookupManyProps();
10
+ const backgroundColor = props.data.rawData?.[colorPropertyName] ?? theme.palette.neutralLight;
11
+ const textColor = Theming.GetTextColorForBackground(backgroundColor);
12
+ const tagTheme = useThemeGenerator(textColor, backgroundColor, textColor);
13
+ return (jsx(ThemeProvider, { theme: tagTheme, applyTo: 'none', children: jsx(MultiValueContainer$1, { ...props }) }));
14
+ };
15
+
16
+ export { MultiValueContainer };
17
+ //# sourceMappingURL=MultiValueContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiValueContainer.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.tsx"],"sourcesContent":["import { ThemeProvider, useTheme } from '@fluentui/react';\nimport { MultiValueGenericProps } from 'react-select';\nimport { Theming, useThemeGenerator } from '@talxis/react-components';\nimport { MultiValueContainer as NativeMultiValueContainer } from '../../../components/multi-value-container/MultiValueContainer';\nimport { useColorfulLookupManyProps } from '../../context';\n\nexport const MultiValueContainer = (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const theme = useTheme();\n const { colorPropertyName = 'color' } = useColorfulLookupManyProps();\n const backgroundColor = (props.data as any).rawData?.[colorPropertyName] ?? theme.palette.neutralLight;\n const textColor = Theming.GetTextColorForBackground(backgroundColor);\n const tagTheme = useThemeGenerator(textColor, backgroundColor, textColor);\n\n return (\n <ThemeProvider theme={tagTheme} applyTo='none'>\n <NativeMultiValueContainer {...props} />\n </ThemeProvider>\n );\n};\n"],"names":["_jsx","NativeMultiValueContainer"],"mappings":";;;;;;AAMa,MAAA,mBAAmB,GAAG,CAAC,KAA+E,KAAI;AACnH,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,iBAAiB,GAAG,OAAO,EAAE,GAAG,0BAA0B,EAAE,CAAC;AACrE,IAAA,MAAM,eAAe,GAAI,KAAK,CAAC,IAAY,CAAC,OAAO,GAAG,iBAAiB,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IACvG,MAAM,SAAS,GAAG,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,CAAC,CAAC;AAE1E,IAAA,QACIA,GAAC,CAAA,aAAa,IAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,MAAM,EAAA,QAAA,EAC1CA,IAACC,qBAAyB,EAAA,EAAA,GAAK,KAAK,EAAI,CAAA,EAAA,CAC5B,EAClB;AACN;;;;"}
@@ -0,0 +1,2 @@
1
+ export { MultiValueContainer } from './MultiValueContainer.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ import { OptionProps } from 'react-select';
3
+ export declare const Option: (props: OptionProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { components } from 'react-select';
4
+ import { useTheme } from '@fluentui/react';
5
+ import { useColorfulLookupManyProps } from '../../context.js';
6
+ import { getOptionStyles } from './styles.js';
7
+
8
+ const Option = (props) => {
9
+ const theme = useTheme();
10
+ const { colorPropertyName = 'color' } = useColorfulLookupManyProps();
11
+ const color = props.data.rawData?.[colorPropertyName] ?? theme.palette.neutralLight;
12
+ const styles = React.useMemo(() => getOptionStyles(color), [color]);
13
+ return (jsx(components.Option, { ...props, children: jsxs("div", { className: styles.container, children: [jsx("span", { className: styles.dot }), props.children] }) }));
14
+ };
15
+
16
+ export { Option };
17
+ //# sourceMappingURL=Option.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Option.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.tsx"],"sourcesContent":["import * as React from 'react';\nimport { components, OptionProps } from 'react-select';\nimport { useTheme } from '@fluentui/react';\nimport { useColorfulLookupManyProps } from '../../context';\nimport { getOptionStyles } from './styles';\n\nexport const Option = (props: OptionProps<ComponentFramework.EntityReference, boolean, any>) => {\n const theme = useTheme();\n const { colorPropertyName = 'color' } = useColorfulLookupManyProps();\n const color = (props.data as any).rawData?.[colorPropertyName] ?? theme.palette.neutralLight\n const styles = React.useMemo(() => getOptionStyles(color), [color]);\n\n return (\n <components.Option {...props}>\n <div className={styles.container}>\n <span className={styles.dot} />\n {props.children}\n </div>\n </components.Option>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAMa,MAAA,MAAM,GAAG,CAAC,KAAoE,KAAI;AAC3F,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,iBAAiB,GAAG,OAAO,EAAE,GAAG,0BAA0B,EAAE,CAAC;AACrE,IAAA,MAAM,KAAK,GAAI,KAAK,CAAC,IAAY,CAAC,OAAO,GAAG,iBAAiB,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAA;AAC5F,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAEpE,IAAA,QACIA,GAAA,CAAC,UAAU,CAAC,MAAM,EAAA,EAAA,GAAK,KAAK,EAAA,QAAA,EACxBC,IAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,SAAS,EAC5B,QAAA,EAAA,CAAAD,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,GAAG,EAAA,CAAI,EAC9B,KAAK,CAAC,QAAQ,CACb,EAAA,CAAA,EAAA,CACU,EACtB;AACN;;;;"}
@@ -0,0 +1,2 @@
1
+ export { Option } from './Option.js';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export declare const getOptionStyles: (color: string) => import("@fluentui/react").IProcessedStyleSet<{
2
+ container: {
3
+ display: string;
4
+ alignItems: string;
5
+ gap: number;
6
+ };
7
+ dot: {
8
+ width: number;
9
+ height: number;
10
+ borderRadius: string;
11
+ backgroundColor: string;
12
+ flexShrink: number;
13
+ };
14
+ }>;
@@ -0,0 +1,21 @@
1
+ import { mergeStyleSets } from '@fluentui/react';
2
+
3
+ const getOptionStyles = (color) => {
4
+ return mergeStyleSets({
5
+ container: {
6
+ display: 'flex',
7
+ alignItems: 'center',
8
+ gap: 8,
9
+ },
10
+ dot: {
11
+ width: 12,
12
+ height: 12,
13
+ borderRadius: '50%',
14
+ backgroundColor: color,
15
+ flexShrink: 0,
16
+ },
17
+ });
18
+ };
19
+
20
+ export { getOptionStyles };
21
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.ts"],"sourcesContent":["import { mergeStyleSets } from '@fluentui/react';\n\nexport const getOptionStyles = (color: string) => {\n return mergeStyleSets({\n container: {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n },\n dot: {\n width: 12,\n height: 12,\n borderRadius: '50%',\n backgroundColor: color,\n flexShrink: 0,\n },\n });\n};\n"],"names":[],"mappings":";;AAEa,MAAA,eAAe,GAAG,CAAC,KAAa,KAAI;AAC7C,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,SAAS,EAAE;AACP,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,GAAG,EAAE,CAAC;AACT,SAAA;AACD,QAAA,GAAG,EAAE;AACD,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,eAAe,EAAE,KAAK;AACtB,YAAA,UAAU,EAAE,CAAC;AAChB,SAAA;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { IColorfulLookupManyProps } from "./ColorfulLookupMany";
3
+ export declare const ColorfulLookupManyPropsContext: React.Context<IColorfulLookupManyProps>;
4
+ export declare const useColorfulLookupManyProps: () => IColorfulLookupManyProps;
@@ -0,0 +1,9 @@
1
+ import React__default from 'react';
2
+
3
+ const ColorfulLookupManyPropsContext = React__default.createContext(null);
4
+ const useColorfulLookupManyProps = () => {
5
+ return React__default.useContext(ColorfulLookupManyPropsContext);
6
+ };
7
+
8
+ export { ColorfulLookupManyPropsContext, useColorfulLookupManyProps };
9
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sources":["../../../../../../../src/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.ts"],"sourcesContent":["import React from \"react\";\nimport { IColorfulLookupManyProps } from \"./ColorfulLookupMany\";\n\nexport const ColorfulLookupManyPropsContext = React.createContext<IColorfulLookupManyProps>(null as any);\n\nexport const useColorfulLookupManyProps = () => {\n return React.useContext(ColorfulLookupManyPropsContext);\n}\n"],"names":["React"],"mappings":";;AAGa,MAAA,8BAA8B,GAAGA,cAAK,CAAC,aAAa,CAA2B,IAAW,EAAE;AAElG,MAAM,0BAA0B,GAAG,MAAK;AAC3C,IAAA,OAAOA,cAAK,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAC5D;;;;"}
@@ -0,0 +1 @@
1
+ export * from './ColorfulLookupMany';
@@ -0,0 +1,2 @@
1
+ export { ColorfulLookupMany } from './ColorfulLookupMany.js';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ /// <reference types="react" />
3
+ import { MultiValueGenericProps, OptionProps, Props } from "react-select";
4
+ export interface ILookupManyComponents {
5
+ onRenderMultiValueContainer: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;
6
+ onRenderMultiValueLabel: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;
7
+ onRenderSelect: (selectProps: Props<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;
8
+ onRenderOption: (props: OptionProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;
9
+ }
10
+ export declare const LookupManyComponents: ILookupManyComponents;
@@ -0,0 +1,15 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { components } from 'react-select';
3
+ import AsyncSelect from 'react-select/async';
4
+ import { MultiValueContainer } from './multi-value-container/MultiValueContainer.js';
5
+ import { MultiValueLabel } from './multi-value-label/MultiValueLabel.js';
6
+
7
+ const LookupManyComponents = {
8
+ onRenderSelect: (selectProps) => jsx(AsyncSelect, { ...selectProps }),
9
+ onRenderMultiValueContainer: (props) => jsx(MultiValueContainer, { ...props }),
10
+ onRenderMultiValueLabel: (props) => jsx(MultiValueLabel, { ...props }),
11
+ onRenderOption: (props) => jsx(components.Option, { ...props })
12
+ };
13
+
14
+ export { LookupManyComponents };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/index.tsx"],"sourcesContent":["import { MultiValueGenericProps, OptionProps, Props, components } from \"react-select\";\nimport AsyncSelect from \"react-select/async\";\nimport { MultiValueLabel } from \"./multi-value-label\";\nimport { MultiValueContainer } from \"./multi-value-container\";\n\nexport interface ILookupManyComponents {\n onRenderMultiValueContainer: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;\n onRenderMultiValueLabel: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;\n onRenderSelect: (selectProps: Props<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;\n onRenderOption: (props: OptionProps<ComponentFramework.EntityReference, boolean, any>) => JSX.Element;\n}\n\nexport const LookupManyComponents: ILookupManyComponents = {\n onRenderSelect: (selectProps) => <AsyncSelect {...selectProps} />,\n onRenderMultiValueContainer: (props) => <MultiValueContainer {...props} />,\n onRenderMultiValueLabel: (props) => <MultiValueLabel {...props} />,\n onRenderOption: (props) => <components.Option {...props} />\n}"],"names":["_jsx"],"mappings":";;;;;;AAYa,MAAA,oBAAoB,GAA0B;IACvD,cAAc,EAAE,CAAC,WAAW,KAAKA,GAAC,CAAA,WAAW,EAAK,EAAA,GAAA,WAAW,EAAI,CAAA;IACjE,2BAA2B,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,mBAAmB,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;IAC1E,uBAAuB,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,eAAe,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;AAClE,IAAA,cAAc,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,UAAU,CAAC,MAAM,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ import { MultiValueGenericProps } from 'react-select';
3
+ export declare const MultiValueContainer: ({ children, innerProps, selectProps }: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { useTheme } from '@fluentui/react';
4
+ import { getMultiValueContainerStyles } from './styles.js';
5
+ import { useLookupManyProps } from '../../context.js';
6
+
7
+ const MultiValueContainer = ({ children, innerProps, selectProps }) => {
8
+ const theme = useTheme();
9
+ const props = useLookupManyProps();
10
+ const styles = React.useMemo(() => getMultiValueContainerStyles(theme, selectProps.isDisabled, props.selectedRecordHeight), [theme, selectProps.isDisabled, props.selectedRecordHeight]);
11
+ return (jsx("div", { ...innerProps, className: styles.root, children: children }));
12
+ };
13
+
14
+ export { MultiValueContainer };
15
+ //# sourceMappingURL=MultiValueContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiValueContainer.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useTheme } from '@fluentui/react';\nimport { MultiValueGenericProps } from 'react-select';\nimport { getMultiValueContainerStyles } from './styles';\nimport { useLookupManyProps } from '../../context';\n\nexport const MultiValueContainer = ({ children, innerProps, selectProps }: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const theme = useTheme();\n const props = useLookupManyProps();\n const styles = React.useMemo(() => getMultiValueContainerStyles(theme, selectProps.isDisabled, props.selectedRecordHeight), [theme, selectProps.isDisabled, props.selectedRecordHeight]);\n return (\n <div {...innerProps} className={styles.root}>\n {children}\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;AAMO,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAA4E,KAAI;AACnJ,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;AACzB,IAAA,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;AACnC,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,4BAA4B,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;AACzL,IAAA,QACIA,GAAA,CAAA,KAAA,EAAA,EAAA,GAAS,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EACtC,QAAQ,EAAA,CACP,EACR;AACN;;;;"}
@@ -0,0 +1,2 @@
1
+ export { MultiValueContainer } from './MultiValueContainer.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { ITheme } from '@fluentui/react';
2
+ export declare const getMultiValueContainerStyles: (theme: ITheme, isDisabled?: boolean, height?: number) => import("@fluentui/react").IProcessedStyleSet<{
3
+ root: {
4
+ display: string;
5
+ alignItems: string;
6
+ backgroundColor: string;
7
+ border: string;
8
+ borderRadius: number;
9
+ margin: string;
10
+ padding: string;
11
+ paddingRight: number;
12
+ fontSize: number;
13
+ color: string;
14
+ maxWidth: number;
15
+ overflow: string;
16
+ height: number;
17
+ };
18
+ }>;
@@ -0,0 +1,24 @@
1
+ import { mergeStyleSets } from '@fluentui/react';
2
+
3
+ const getMultiValueContainerStyles = (theme, isDisabled, height) => {
4
+ return mergeStyleSets({
5
+ root: {
6
+ display: 'inline-flex',
7
+ alignItems: 'center',
8
+ backgroundColor: theme.palette.neutralLighter,
9
+ border: `1px solid ${theme.palette.neutralLight}`,
10
+ borderRadius: 2,
11
+ margin: '2px 4px 2px 0',
12
+ padding: '1px 4px',
13
+ paddingRight: isDisabled ? 4 : 0,
14
+ fontSize: 12,
15
+ color: theme.palette.neutralPrimary,
16
+ maxWidth: 200,
17
+ overflow: 'hidden',
18
+ height: height ?? 20
19
+ },
20
+ });
21
+ };
22
+
23
+ export { getMultiValueContainerStyles };
24
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.ts"],"sourcesContent":["import { ITheme, mergeStyleSets } from '@fluentui/react';\n\nexport const getMultiValueContainerStyles = (theme: ITheme, isDisabled?: boolean, height?: number) => {\n return mergeStyleSets({\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n backgroundColor: theme.palette.neutralLighter,\n border: `1px solid ${theme.palette.neutralLight}`,\n borderRadius: 2,\n margin: '2px 4px 2px 0',\n padding: '1px 4px',\n paddingRight: isDisabled ? 4 : 0,\n fontSize: 12,\n color: theme.palette.neutralPrimary,\n maxWidth: 200,\n overflow: 'hidden',\n height: height ?? 20\n },\n });\n};\n"],"names":[],"mappings":";;AAEa,MAAA,4BAA4B,GAAG,CAAC,KAAa,EAAE,UAAoB,EAAE,MAAe,KAAI;AACjG,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,IAAI,EAAE;AACF,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;AAC7C,YAAA,MAAM,EAAE,CAAa,UAAA,EAAA,KAAK,CAAC,OAAO,CAAC,YAAY,CAAE,CAAA;AACjD,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,MAAM,EAAE,eAAe;AACvB,YAAA,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,UAAU,GAAG,CAAC,GAAG,CAAC;AAChC,YAAA,QAAQ,EAAE,EAAE;AACZ,YAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;AACnC,YAAA,QAAQ,EAAE,GAAG;AACb,YAAA,QAAQ,EAAE,QAAQ;YAClB,MAAM,EAAE,MAAM,IAAI,EAAE;AACvB,SAAA;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ import { MultiValueGenericProps } from 'react-select';
3
+ export declare const MultiValueLabel: (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { Link } from '@fluentui/react';
4
+ import { getMultiValueLabelStyles } from './styles.js';
5
+
6
+ const MultiValueLabel = (props) => {
7
+ const styles = React.useMemo(() => getMultiValueLabelStyles(), []);
8
+ const { selectProps, data, children } = props;
9
+ const { onNavigate } = selectProps;
10
+ const label = jsx("span", { title: data.name, className: styles.root, children: children });
11
+ if (onNavigate) {
12
+ return (jsx(Link, { styles: { root: styles.link }, onClick: (e) => {
13
+ e.preventDefault();
14
+ onNavigate(data);
15
+ }, children: label }));
16
+ }
17
+ return label;
18
+ };
19
+
20
+ export { MultiValueLabel };
21
+ //# sourceMappingURL=MultiValueLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiValueLabel.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Link } from '@fluentui/react';\nimport { MultiValueGenericProps } from 'react-select';\nimport { getMultiValueLabelStyles } from './styles';\n\nexport const MultiValueLabel = (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const styles = React.useMemo(() => getMultiValueLabelStyles(), []);\n const {selectProps, data, children} = props;\n const { onNavigate } = selectProps as any;\n\n const label = <span title={data.name} className={styles.root}>{children}</span>;\n\n if (onNavigate) {\n return (\n <Link\n styles={{ root: styles.link }}\n onClick={(e) => {\n e.preventDefault();\n onNavigate(data);\n }}\n >\n {label}\n </Link>\n );\n }\n return label;\n};\n"],"names":["_jsx"],"mappings":";;;;;AAKa,MAAA,eAAe,GAAG,CAAC,KAA+E,KAAI;AAC/G,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,wBAAwB,EAAE,EAAE,EAAE,CAAC,CAAC;IACnE,MAAM,EAAC,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAC,GAAG,KAAK,CAAC;AAC5C,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,WAAkB,CAAC;AAE1C,IAAA,MAAM,KAAK,GAAGA,GAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAG,QAAA,EAAA,QAAQ,GAAQ,CAAC;AAEhF,IAAA,IAAI,UAAU,EAAE;AACZ,QAAA,QACIA,GAAC,CAAA,IAAI,IACD,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EAC7B,OAAO,EAAE,CAAC,CAAC,KAAI;gBACX,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,UAAU,CAAC,IAAI,CAAC,CAAC;AACrB,aAAC,EAEA,QAAA,EAAA,KAAK,EACH,CAAA,EACT;AACL,KAAA;AACD,IAAA,OAAO,KAAK,CAAC;AACjB;;;;"}
@@ -0,0 +1,2 @@
1
+ export { MultiValueLabel } from './MultiValueLabel.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ export declare const getMultiValueLabelStyles: () => import("@fluentui/react").IProcessedStyleSet<{
2
+ root: {
3
+ overflow: string;
4
+ textOverflow: string;
5
+ whiteSpace: string;
6
+ fontWeight: number;
7
+ display: string;
8
+ };
9
+ link: {
10
+ fontWeight: number;
11
+ pointerEvents: string;
12
+ overflow: string;
13
+ display: string;
14
+ };
15
+ }>;
@@ -0,0 +1,22 @@
1
+ import { mergeStyleSets } from '@fluentui/react';
2
+
3
+ const getMultiValueLabelStyles = () => {
4
+ return mergeStyleSets({
5
+ root: {
6
+ overflow: 'hidden',
7
+ textOverflow: 'ellipsis',
8
+ whiteSpace: 'nowrap',
9
+ fontWeight: 600,
10
+ display: 'block',
11
+ },
12
+ link: {
13
+ fontWeight: 600,
14
+ pointerEvents: 'all',
15
+ overflow: 'hidden',
16
+ display: 'block',
17
+ }
18
+ });
19
+ };
20
+
21
+ export { getMultiValueLabelStyles };
22
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.ts"],"sourcesContent":["import { mergeStyleSets } from '@fluentui/react';\n\nexport const getMultiValueLabelStyles = () => {\n return mergeStyleSets({\n root: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n fontWeight: 600,\n display: 'block',\n },\n link: {\n fontWeight: 600,\n pointerEvents: 'all',\n overflow: 'hidden',\n display: 'block',\n }\n });\n};\n"],"names":[],"mappings":";;AAEO,MAAM,wBAAwB,GAAG,MAAK;AACzC,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,IAAI,EAAE;AACF,YAAA,QAAQ,EAAE,QAAQ;AAClB,YAAA,YAAY,EAAE,UAAU;AACxB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,UAAU,EAAE,GAAG;AACf,YAAA,OAAO,EAAE,OAAO;AACnB,SAAA;AACD,QAAA,IAAI,EAAE;AACF,YAAA,UAAU,EAAE,GAAG;AACf,YAAA,aAAa,EAAE,KAAK;AACpB,YAAA,QAAQ,EAAE,QAAQ;AAClB,YAAA,OAAO,EAAE,OAAO;AACnB,SAAA;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="@types/powerapps-component-framework" />
2
+ import { MultiValueRemoveProps } from 'react-select';
3
+ export declare const MultiValueRemove: ({ innerProps, selectProps }: MultiValueRemoveProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import { useTheme, Icon } from '@fluentui/react';
4
+ import { getMultiValueRemoveStyles } from './styles.js';
5
+ import { useLookupManyProps } from '../../context.js';
6
+
7
+ const MultiValueRemove = ({ innerProps, selectProps }) => {
8
+ const theme = useTheme();
9
+ const props = useLookupManyProps();
10
+ const styles = React.useMemo(() => getMultiValueRemoveStyles(theme, props.selectedRecordHeight), [theme, props.selectedRecordHeight]);
11
+ if (selectProps.isDisabled) {
12
+ return jsx(Fragment, {});
13
+ }
14
+ return (jsx("div", { ...innerProps, className: styles.root, children: jsx(Icon, { iconName: "Cancel", className: styles.icon }) }));
15
+ };
16
+
17
+ export { MultiValueRemove };
18
+ //# sourceMappingURL=MultiValueRemove.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiValueRemove.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Icon, useTheme } from '@fluentui/react';\nimport { MultiValueRemoveProps } from 'react-select';\nimport { getMultiValueRemoveStyles } from './styles';\nimport { useLookupManyProps } from '../../context';\n\nexport const MultiValueRemove = ({ innerProps, selectProps }: MultiValueRemoveProps<ComponentFramework.EntityReference, boolean, any>) => {\n const theme = useTheme();\n const props = useLookupManyProps();\n const styles = React.useMemo(() => getMultiValueRemoveStyles(theme, props.selectedRecordHeight), [theme, props.selectedRecordHeight]);\n if(selectProps.isDisabled) {\n return <></>\n }\n return (\n <div {...innerProps} className={styles.root}>\n <Icon iconName=\"Cancel\" className={styles.icon} />\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;AAMa,MAAA,gBAAgB,GAAG,CAAC,EAAE,UAAU,EAAE,WAAW,EAA2E,KAAI;AACrI,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;AACzB,IAAA,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,yBAAyB,CAAC,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACtI,IAAG,WAAW,CAAC,UAAU,EAAE;AACvB,QAAA,OAAOA,iBAAK,CAAA;AACf,KAAA;IACD,QACIA,GAAS,CAAA,KAAA,EAAA,EAAA,GAAA,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EACvCA,GAAC,CAAA,IAAI,IAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,CAAI,EAChD,CAAA,EACR;AACN;;;;"}
@@ -0,0 +1,22 @@
1
+ import { ITheme } from '@fluentui/react';
2
+ export declare const getMultiValueRemoveStyles: (theme: ITheme, height?: number) => import("@fluentui/react").IProcessedStyleSet<{
3
+ root: {
4
+ display: string;
5
+ alignItems: string;
6
+ justifyContent: string;
7
+ marginLeft: number;
8
+ padding: number;
9
+ cursor: string;
10
+ borderRadius: number;
11
+ color: string;
12
+ height: number;
13
+ width: number;
14
+ ':hover': {
15
+ color: string;
16
+ backgroundColor: string;
17
+ };
18
+ };
19
+ icon: {
20
+ fontSize: number;
21
+ };
22
+ }>;