@talxis/base-controls 1.2605.1 → 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.
- package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js +1 -2
- package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js.map +1 -1
- package/dist/components/Lookup/Lookup.js +4 -1
- package/dist/components/Lookup/Lookup.js.map +1 -1
- package/dist/components/Lookup/hooks/useLookup.d.ts +4 -0
- package/dist/components/Lookup/translations.d.ts +4 -0
- package/dist/components/Lookup/translations.js +4 -0
- package/dist/components/Lookup/translations.js.map +1 -1
- package/dist/components/TaskGrid/TaskGrid.js +3 -4
- package/dist/components/TaskGrid/TaskGrid.js.map +1 -1
- package/dist/components/TaskGrid/TaskGridDatasetControl.d.ts +16 -5
- package/dist/components/TaskGrid/TaskGridDatasetControl.js +32 -13
- package/dist/components/TaskGrid/TaskGridDatasetControl.js.map +1 -1
- package/dist/components/TaskGrid/TaskGridDatasetControlFactory.d.ts +3 -2
- package/dist/components/TaskGrid/TaskGridDatasetControlFactory.js +7 -5
- package/dist/components/TaskGrid/TaskGridDatasetControlFactory.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/cell-renderers/add-task-button/AddTaskButton.js +3 -8
- package/dist/components/TaskGrid/components/grid/cell-renderers/add-task-button/AddTaskButton.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.d.ts +7 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.js +99 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/LookupManyCellRenderer.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/lookup-many/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.js +2 -1
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/PercentComplete.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/index.js +1 -1
- package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.d.ts +2 -7
- package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.js +44 -18
- package/dist/components/TaskGrid/components/grid/grid-customizer/GridCustomizer.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/grid-drag-handler/GridDragHandler.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.d.ts +13 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.js +82 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/LookupMany.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.d.ts +5 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.js +12 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/ColorfulLookupMany.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.d.ts +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.js +13 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.js +17 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/MultiValueContainer.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/multi-value-container/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.js +17 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/Option.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/index.js +2 -0
- package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → components/grid/lookup-many/colorful-lookup-many/components/option}/index.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.d.ts +14 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.js +21 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/components/option/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.d.ts +4 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.js +9 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/context.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/colorful-lookup-many/index.js +2 -0
- package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → components/grid/lookup-many/colorful-lookup-many}/index.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.d.ts +10 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js +15 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.js +15 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.d.ts +18 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.js +24 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.js +21 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/MultiValueLabel.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.d.ts +15 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.js +22 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.js +18 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/MultiValueRemove.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.d.ts +22 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.js +28 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/context.d.ts +4 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/context.js +9 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/context.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/index.d.ts +4 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/index.js +5 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.d.ts +5 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.js +12 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.d.ts +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js +13 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.js +17 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.d.ts +5 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.js +6 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.js +16 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.d.ts +10 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.js +11 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.d.ts +4 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.js +9 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js +27 -14
- package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js.map +1 -1
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.js +13 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/MultiValueContainer.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.d.ts +18 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.js +24 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-container/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.js +19 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/MultiValueLabel.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.d.ts +12 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.js +19 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-label/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.js +16 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/MultiValueRemove.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.d.ts +22 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.js +28 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/multi-value-remove/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/option/Option.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/components/option/styles.d.ts +16 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.js +15 -0
- package/dist/components/TaskGrid/components/grid/multi-record-selector/styles.js.map +1 -0
- package/dist/components/TaskGrid/components/header/Header.js +5 -4
- package/dist/components/TaskGrid/components/header/Header.js.map +1 -1
- package/dist/components/TaskGrid/components/header/edit-columns/EditColumns.js.map +1 -1
- package/dist/components/TaskGrid/components/header/view-switcher/create-view-dialog/CreateViewDialog.js.map +1 -1
- package/dist/components/TaskGrid/components/header/view-switcher/view-manager/ViewManager.js.map +1 -1
- package/dist/components/TaskGrid/context.d.ts +5 -4
- package/dist/components/TaskGrid/context.js.map +1 -1
- package/dist/components/TaskGrid/extensions/LexoRank.d.ts +7 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseCustomColumnsStrategy.d.ts +69 -0
- package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.js → extensions/dataverse/DataverseCustomColumnsStrategy.js} +35 -3
- package/dist/components/TaskGrid/extensions/dataverse/DataverseCustomColumnsStrategy.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.d.ts +20 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.js +42 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseGridCustomizerStrategy.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseSavedQueryStrategy.d.ts +49 -0
- package/dist/components/TaskGrid/{data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.js → extensions/dataverse/DataverseSavedQueryStrategy.js} +37 -15
- package/dist/components/TaskGrid/extensions/dataverse/DataverseSavedQueryStrategy.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.d.ts +100 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js +145 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.d.ts +122 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.js +453 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/index.d.ts +5 -0
- package/dist/components/TaskGrid/extensions/dataverse/index.js +6 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.d.ts +49 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.js +145 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.d.ts +11 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.js +16 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlDataProviderFactory.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.d.ts +2 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.js +29 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.js.map +1 -0
- package/dist/components/TaskGrid/interfaces.d.ts +30 -12
- package/dist/components/TaskGrid/labels.d.ts +1 -15
- package/dist/components/TaskGrid/labels.js +2 -16
- package/dist/components/TaskGrid/labels.js.map +1 -1
- package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → providers/custom-columns}/CustomColumnsDataProvider.d.ts +5 -1
- package/dist/components/TaskGrid/providers/custom-columns/CustomColumnsDataProvider.js.map +1 -0
- package/dist/components/TaskGrid/providers/custom-columns/index.d.ts +1 -0
- package/dist/components/TaskGrid/providers/custom-columns/index.js +2 -0
- package/dist/components/TaskGrid/providers/custom-columns/index.js.map +1 -0
- package/dist/components/TaskGrid/providers/index.d.ts +3 -0
- package/dist/components/TaskGrid/providers/index.js +4 -0
- package/dist/components/TaskGrid/providers/index.js.map +1 -0
- package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → providers/saved-query}/SavedQueryDataProvider.d.ts +13 -8
- package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → providers/saved-query}/SavedQueryDataProvider.js +87 -50
- package/dist/components/TaskGrid/providers/saved-query/SavedQueryDataProvider.js.map +1 -0
- package/dist/components/TaskGrid/providers/saved-query/index.d.ts +1 -0
- package/dist/components/TaskGrid/providers/saved-query/index.js +2 -0
- package/dist/components/TaskGrid/providers/saved-query/index.js.map +1 -0
- package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/TaskDataProvider.d.ts +15 -22
- package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/TaskDataProvider.js +35 -26
- package/dist/components/TaskGrid/providers/task/TaskDataProvider.js.map +1 -0
- package/dist/components/TaskGrid/providers/task/index.js.map +1 -0
- package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/RecordTree.js +2 -0
- package/dist/components/TaskGrid/providers/task/record-tree/RecordTree.js.map +1 -0
- package/dist/components/TaskGrid/providers/task/record-tree/index.js.map +1 -0
- package/dist/components/TaskGrid/providers/task/record-tree/patchDataBuilderPrepare.js.map +1 -0
- package/dist/index.d.ts +177 -165
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/dataset/adapters/VirtualDatasetAdapter.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/localization/LocalizationService.d.ts +15 -0
- package/dist/utils/localization/LocalizationService.js +17 -0
- package/dist/utils/localization/LocalizationService.js.map +1 -0
- package/dist/utils/localization/index.d.ts +1 -0
- package/dist/utils/localization/index.js +2 -0
- package/dist/utils/localization/index.js.map +1 -0
- package/package.json +5 -4
- package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/CustomColumnsDataProvider.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.d.ts +0 -33
- package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/index.d.ts +0 -2
- package/dist/components/TaskGrid/data-providers/custom-columns-data-provider/index.js +0 -3
- package/dist/components/TaskGrid/data-providers/index.d.ts +0 -3
- package/dist/components/TaskGrid/data-providers/index.js +0 -6
- package/dist/components/TaskGrid/data-providers/saved-query-data-provider/SavedQueryDataProvider.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.d.ts +0 -21
- package/dist/components/TaskGrid/data-providers/saved-query-data-provider/TalxisSavedQueryDataProvider.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/saved-query-data-provider/index.d.ts +0 -2
- package/dist/components/TaskGrid/data-providers/saved-query-data-provider/index.js +0 -3
- package/dist/components/TaskGrid/data-providers/task-data-provider/TaskDataProvider.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/task-data-provider/record-tree/RecordTree.js.map +0 -1
- package/dist/components/TaskGrid/data-providers/task-data-provider/record-tree/patchDataBuilderPrepare.js.map +0 -1
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → components/grid/cell-renderers/lookup-many}/index.js.map +0 -0
- /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
- /package/dist/components/TaskGrid/{data-providers → extensions/dataverse}/index.js.map +0 -0
- /package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → providers/custom-columns}/CustomColumnsDataProvider.js +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/index.d.ts +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/index.js +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/RecordTree.d.ts +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/index.d.ts +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/index.js +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/patchDataBuilderPrepare.d.ts +0 -0
- /package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/record-tree/patchDataBuilderPrepare.js +0 -0
package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { mergeStyleSets } from '@fluentui/react';
|
|
2
|
+
|
|
3
|
+
const getMultiValueRemoveStyles = (theme, height) => {
|
|
4
|
+
return mergeStyleSets({
|
|
5
|
+
root: {
|
|
6
|
+
display: 'inline-flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
marginLeft: 2,
|
|
10
|
+
padding: 1,
|
|
11
|
+
cursor: 'pointer',
|
|
12
|
+
borderRadius: 2,
|
|
13
|
+
color: theme.palette.neutralSecondary,
|
|
14
|
+
height: height ?? 20,
|
|
15
|
+
width: 20,
|
|
16
|
+
':hover': {
|
|
17
|
+
color: theme.palette.neutralPrimary,
|
|
18
|
+
backgroundColor: theme.palette.neutralLight,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
icon: {
|
|
22
|
+
fontSize: 10,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { getMultiValueRemoveStyles };
|
|
28
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/multi-value-remove/styles.ts"],"sourcesContent":["import { ITheme, mergeStyleSets } from '@fluentui/react';\n\nexport const getMultiValueRemoveStyles = (theme: ITheme, height?: number) => {\n return mergeStyleSets({\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginLeft: 2,\n padding: 1,\n cursor: 'pointer',\n borderRadius: 2,\n color: theme.palette.neutralSecondary,\n height: height ?? 20,\n width: 20,\n ':hover': {\n color: theme.palette.neutralPrimary,\n backgroundColor: theme.palette.neutralLight,\n },\n },\n icon: {\n fontSize: 10,\n },\n });\n};\n"],"names":[],"mappings":";;MAEa,yBAAyB,GAAG,CAAC,KAAa,EAAE,MAAe,KAAI;AACxE,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,IAAI,EAAE;AACF,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,cAAc,EAAE,QAAQ;AACxB,YAAA,UAAU,EAAE,CAAC;AACb,YAAA,OAAO,EAAE,CAAC;AACV,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,YAAY,EAAE,CAAC;AACf,YAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB;YACrC,MAAM,EAAE,MAAM,IAAI,EAAE;AACpB,YAAA,KAAK,EAAE,EAAE;AACT,YAAA,QAAQ,EAAE;AACN,gBAAA,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;AACnC,gBAAA,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY;AAC9C,aAAA;AACJ,SAAA;AACD,QAAA,IAAI,EAAE;AACF,YAAA,QAAQ,EAAE,EAAE;AACf,SAAA;AACJ,KAAA,CAAC,CAAC;AACP;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const LookupManyPropsContext = React__default.createContext(null);
|
|
4
|
+
const useLookupManyProps = () => {
|
|
5
|
+
return React__default.useContext(LookupManyPropsContext);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { LookupManyPropsContext, useLookupManyProps };
|
|
9
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../../../src/components/TaskGrid/components/grid/lookup-many/context.ts"],"sourcesContent":["import React from \"react\";\nimport { ILookupManyProps } from \"./LookupMany\";\n\nexport const LookupManyPropsContext = React.createContext<ILookupManyProps>(null as any);\n\nexport const useLookupManyProps = () => {\n return React.useContext(LookupManyPropsContext);\n} "],"names":["React"],"mappings":";;AAGa,MAAA,sBAAsB,GAAGA,cAAK,CAAC,aAAa,CAAmB,IAAW,EAAE;AAElF,MAAM,kBAAkB,GAAG,MAAK;AACnC,IAAA,OAAOA,cAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC;AACpD;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { LookupMany } from './LookupMany.js';
|
|
2
|
+
export * from 'react-select';
|
|
3
|
+
export { PeopleLookupMany } from './people-lookup-many/PeopleLookupMany.js';
|
|
4
|
+
export { ColorfulLookupMany } from './colorful-lookup-many/ColorfulLookupMany.js';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ILookupManyProps } from "../LookupMany";
|
|
2
|
+
export interface IPeopleLookupManyProps extends ILookupManyProps {
|
|
3
|
+
imageUrlPropertyName?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const PeopleLookupMany: (props: IPeopleLookupManyProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { LookupMany } from '../LookupMany.js';
|
|
3
|
+
import { DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS } from './components/index.js';
|
|
4
|
+
import { PeopleLookupManyPropsContext } from './context.js';
|
|
5
|
+
|
|
6
|
+
const PeopleLookupMany = (props) => {
|
|
7
|
+
const components = { ...DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS, ...props.components };
|
|
8
|
+
return jsx(PeopleLookupManyPropsContext.Provider, { value: props, children: jsx(LookupMany, { ...props, selectedRecordHeight: props.selectedRecordHeight ?? 28, components: components }) });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PeopleLookupMany };
|
|
12
|
+
//# sourceMappingURL=PeopleLookupMany.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeopleLookupMany.js","sources":["../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/PeopleLookupMany.tsx"],"sourcesContent":["import { ILookupManyProps, LookupMany } from \"../LookupMany\";\nimport { DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS } from \"./components\";\nimport { PeopleLookupManyPropsContext } from \"./context\";\n\nexport interface IPeopleLookupManyProps extends ILookupManyProps {\n imageUrlPropertyName?: string\n}\n\nexport const PeopleLookupMany = (props: IPeopleLookupManyProps) => {\n const components = { ...DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS, ...props.components };\n return <PeopleLookupManyPropsContext.Provider value={props}>\n <LookupMany\n {...props}\n selectedRecordHeight={props.selectedRecordHeight ?? 28}\n components={components}\n />\n </PeopleLookupManyPropsContext.Provider>\n}"],"names":["_jsx"],"mappings":";;;;;AAQa,MAAA,gBAAgB,GAAG,CAAC,KAA6B,KAAI;IAC9D,MAAM,UAAU,GAAG,EAAE,GAAG,qCAAqC,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;IACrF,OAAOA,GAAA,CAAC,4BAA4B,CAAC,QAAQ,EAAA,EAAC,KAAK,EAAE,KAAK,EAAA,QAAA,EACtDA,GAAC,CAAA,UAAU,EACH,EAAA,GAAA,KAAK,EACT,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,IAAI,EAAE,EACtD,UAAU,EAAE,UAAU,EACxB,CAAA,EAAA,CACkC,CAAA;AAC5C;;;;"}
|
package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { LookupManyComponents } from '../../components/index.js';
|
|
3
|
+
import { MultiValueLabel } from './multi-value-label/MultiValueLabel.js';
|
|
4
|
+
import { Option } from './option/Option.js';
|
|
5
|
+
|
|
6
|
+
const DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS = {
|
|
7
|
+
...LookupManyComponents,
|
|
8
|
+
onRenderMultiValueLabel: (props) => jsx(MultiValueLabel, { ...props }),
|
|
9
|
+
onRenderOption: (props) => jsx(Option, { ...props })
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { DEFAULT_PEOPLE_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/people-lookup-many/components/index.tsx"],"sourcesContent":["import { ILookupManyComponents, LookupManyComponents } from \"../../components\";\nimport { MultiValueLabel } from \"./multi-value-label\";\nimport { Option } from \"./option\";\n\nexport const DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS: ILookupManyComponents = {\n ...LookupManyComponents ,\n onRenderMultiValueLabel: (props) => <MultiValueLabel {...props} />,\n onRenderOption: (props) => <Option {...props} />\n}"],"names":["_jsx"],"mappings":";;;;;AAIa,MAAA,qCAAqC,GAA0B;AACxE,IAAA,GAAG,oBAAoB;IACvB,uBAAuB,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,eAAe,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;IAClE,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 MultiValueLabel: (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 * as React from 'react';
|
|
3
|
+
import { TooltipHost, Persona, PersonaSize } from '@fluentui/react';
|
|
4
|
+
import { getMultiValueLabelStyles } from './styles.js';
|
|
5
|
+
import { usePeopleLookupManyProps } from '../../context.js';
|
|
6
|
+
import { MultiValueLabel as MultiValueLabel$1 } from '../../../components/multi-value-label/MultiValueLabel.js';
|
|
7
|
+
|
|
8
|
+
const MultiValueLabel = (props) => {
|
|
9
|
+
const styles = React.useMemo(() => getMultiValueLabelStyles(), []);
|
|
10
|
+
const { imageUrlPropertyName = 'imageurl' } = usePeopleLookupManyProps();
|
|
11
|
+
const imageUrl = props.data.rawData?.[imageUrlPropertyName] ?? undefined;
|
|
12
|
+
const persona = (jsx(TooltipHost, { content: props.data.name, children: jsx(Persona, { text: props.data.name, size: PersonaSize.size24, imageUrl: imageUrl, hidePersonaDetails: true, styles: { root: styles.persona } }) }));
|
|
13
|
+
return jsx(MultiValueLabel$1, { ...props, children: persona });
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { MultiValueLabel };
|
|
17
|
+
//# sourceMappingURL=MultiValueLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiValueLabel.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/MultiValueLabel.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Persona, PersonaSize, TooltipHost } from '@fluentui/react';\nimport { MultiValueGenericProps } from 'react-select';\nimport { getMultiValueLabelStyles } from './styles';\nimport { usePeopleLookupManyProps } from '../../context';\nimport { MultiValueLabel as MultiValueLabelBase } from '../../../components/multi-value-label';\n\nexport const MultiValueLabel = (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const styles = React.useMemo(() => getMultiValueLabelStyles(), []);\n const {imageUrlPropertyName = 'imageurl'} = usePeopleLookupManyProps();\n const imageUrl = (props.data as any).rawData?.[imageUrlPropertyName] ?? undefined;\n\n const persona = (\n <TooltipHost content={props.data.name}>\n <Persona\n text={props.data.name}\n size={PersonaSize.size24}\n imageUrl={imageUrl}\n hidePersonaDetails\n styles={{ root: styles.persona }}\n />\n </TooltipHost>\n );\n\n return <MultiValueLabelBase {...props}>\n {persona}\n </MultiValueLabelBase>\n};\n"],"names":["_jsx","MultiValueLabelBase"],"mappings":";;;;;;;AAOa,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,oBAAoB,GAAG,UAAU,EAAC,GAAG,wBAAwB,EAAE,CAAC;AACvE,IAAA,MAAM,QAAQ,GAAI,KAAK,CAAC,IAAY,CAAC,OAAO,GAAG,oBAAoB,CAAC,IAAI,SAAS,CAAC;IAElF,MAAM,OAAO,IACTA,GAAA,CAAC,WAAW,EAAC,EAAA,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAA,QAAA,EACjCA,IAAC,OAAO,EAAA,EACJ,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,IAAI,EAAE,WAAW,CAAC,MAAM,EACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAA,IAAA,EAClB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,EAAA,CAClC,EACQ,CAAA,CACjB,CAAC;AAEF,IAAA,OAAOA,IAACC,iBAAmB,EAAA,EAAA,GAAK,KAAK,EAChC,QAAA,EAAA,OAAO,GACU,CAAA;AAC1B;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiValueLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-label/styles.ts"],"sourcesContent":["export const getMultiValueLabelStyles = () => ({\n persona: { margin: 0 }\n});\n"],"names":[],"mappings":"AAAa,MAAA,wBAAwB,GAAG,OAAO;AAC3C,IAAA,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;AACzB,CAAA;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { components } from 'react-select';
|
|
4
|
+
import { Persona, PersonaSize } from '@fluentui/react';
|
|
5
|
+
import { usePeopleLookupManyProps } from '../../context.js';
|
|
6
|
+
import { getOptionStyles } from './styles.js';
|
|
7
|
+
|
|
8
|
+
const Option = (props) => {
|
|
9
|
+
const { imageUrlPropertyName = 'imageurl' } = usePeopleLookupManyProps();
|
|
10
|
+
const styles = React.useMemo(() => getOptionStyles(), []);
|
|
11
|
+
const imageUrl = props.data.rawData?.[imageUrlPropertyName] ?? undefined;
|
|
12
|
+
return (jsx(components.Option, { ...props, children: jsxs("div", { style: styles.container, children: [jsx(Persona, { text: props.data.name, size: PersonaSize.size32, imageUrl: imageUrl, hidePersonaDetails: true, styles: { root: styles.persona } }), props.children] }) }));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Option };
|
|
16
|
+
//# sourceMappingURL=Option.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Option.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/Option.tsx"],"sourcesContent":["import * as React from 'react';\nimport { components, OptionProps } from 'react-select';\nimport { Persona, PersonaSize } from '@fluentui/react';\nimport { usePeopleLookupManyProps } from '../../context';\nimport { getOptionStyles } from './styles';\n\nexport const Option = (props: OptionProps<ComponentFramework.EntityReference, boolean, any>) => {\n const { imageUrlPropertyName = 'imageurl' } = usePeopleLookupManyProps();\n const styles = React.useMemo(() => getOptionStyles(), []);\n const imageUrl = (props.data as any).rawData?.[imageUrlPropertyName] ?? undefined;\n\n return (\n <components.Option {...props}>\n <div style={styles.container}>\n <Persona\n text={props.data.name}\n size={PersonaSize.size32}\n imageUrl={imageUrl}\n hidePersonaDetails\n styles={{ root: styles.persona }}\n />\n {props.children}\n </div>\n </components.Option>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAMa,MAAA,MAAM,GAAG,CAAC,KAAoE,KAAI;IAC3F,MAAM,EAAE,oBAAoB,GAAG,UAAU,EAAE,GAAG,wBAAwB,EAAE,CAAC;AACzE,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1D,IAAA,MAAM,QAAQ,GAAI,KAAK,CAAC,IAAY,CAAC,OAAO,GAAG,oBAAoB,CAAC,IAAI,SAAS,CAAC;IAElF,QACIA,GAAC,CAAA,UAAU,CAAC,MAAM,OAAK,KAAK,EAAA,QAAA,EACxBC,IAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,MAAM,CAAC,SAAS,EAAA,QAAA,EAAA,CACxBD,GAAC,CAAA,OAAO,EACJ,EAAA,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,IAAI,EAAE,WAAW,CAAC,MAAM,EACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAA,IAAA,EAClB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,EAClC,CAAA,EACD,KAAK,CAAC,QAAQ,CAAA,EAAA,CACb,EACU,CAAA,EACtB;AACN;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Option';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/option/styles.ts"],"sourcesContent":["export const getOptionStyles = () => ({\n container: {\n display: 'flex',\n alignItems: 'center',\n gap: 8\n },\n persona: { margin: 0 }\n});\n"],"names":[],"mappings":"AAAa,MAAA,eAAe,GAAG,OAAO;AAClC,IAAA,SAAS,EAAE;AACP,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,GAAG,EAAE,CAAC;AACT,KAAA;AACD,IAAA,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;AACzB,CAAA;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
const PeopleLookupManyPropsContext = React__default.createContext(null);
|
|
4
|
+
const usePeopleLookupManyProps = () => {
|
|
5
|
+
return React__default.useContext(PeopleLookupManyPropsContext);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { PeopleLookupManyPropsContext, usePeopleLookupManyProps };
|
|
9
|
+
//# sourceMappingURL=context.js.map
|
package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/context.ts"],"sourcesContent":["import React from \"react\";\nimport { IPeopleLookupManyProps } from \"./PeopleLookupMany\";\n\nexport const PeopleLookupManyPropsContext = React.createContext<IPeopleLookupManyProps>(null as any);\n\nexport const usePeopleLookupManyProps = () => {\n return React.useContext(PeopleLookupManyPropsContext);\n}"],"names":["React"],"mappings":";;AAGa,MAAA,4BAA4B,GAAGA,cAAK,CAAC,aAAa,CAAyB,IAAW,EAAE;AAE9F,MAAM,wBAAwB,GAAG,MAAK;AACzC,IAAA,OAAOA,cAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAC1D;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PeopleLookupMany';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ interface IMultiRecordSelectorProps {
|
|
|
6
6
|
dataProvider: IDataProvider;
|
|
7
7
|
container: HTMLElement;
|
|
8
8
|
selectedRecords?: ComponentFramework.EntityReference[];
|
|
9
|
+
onNavigate?: (record: ComponentFramework.EntityReference) => void;
|
|
9
10
|
onGetRef?: (ref: IMultRecordSelectorRef) => void;
|
|
10
11
|
onMenuToggle?: (isOpen: boolean) => void;
|
|
11
12
|
onOverrideComponentProps?: (props: AsyncProps<ComponentFramework.EntityReference, boolean, any>) => AsyncProps<ComponentFramework.EntityReference, boolean, any>;
|
package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
2
|
+
import { createElement } from 'react';
|
|
3
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
4
|
import AsyncSelect from 'react-select/async';
|
|
4
5
|
import { useLocalizationService } from '../../../context.js';
|
|
6
|
+
import { MultiValueContainer } from './components/multi-value-container/MultiValueContainer.js';
|
|
7
|
+
import { MultiValueRemove } from './components/multi-value-remove/MultiValueRemove.js';
|
|
8
|
+
import { MultiValueLabel } from './components/multi-value-label/MultiValueLabel.js';
|
|
9
|
+
import { getMultiRecordSelectorStyles } from './styles.js';
|
|
5
10
|
|
|
6
11
|
const MultiRecordSelector = (props) => {
|
|
7
12
|
const { dataProvider, onSelectionChange, selectedRecords = [], container } = props;
|
|
8
13
|
const localizationService = useLocalizationService();
|
|
9
14
|
const onOverrideComponentProps = props.onOverrideComponentProps ?? ((p) => p);
|
|
10
15
|
const ref = React.useRef(null);
|
|
16
|
+
const [renderKey, setRenderKey] = React.useState(0);
|
|
17
|
+
const isFirstRenderRef = React.useRef(true);
|
|
18
|
+
const [defaultOptions, setDefaultOptions] = React.useState(false);
|
|
11
19
|
const onLoadOptions = async (inputValue) => {
|
|
12
20
|
dataProvider.setSearchQuery(inputValue);
|
|
13
21
|
const records = await dataProvider.refresh();
|
|
@@ -34,6 +42,10 @@ const MultiRecordSelector = (props) => {
|
|
|
34
42
|
const onMenuOpen = (isOpen) => {
|
|
35
43
|
props.onMenuToggle?.(isOpen);
|
|
36
44
|
const controlElement = ref.current?.controlRef;
|
|
45
|
+
if (isOpen && !defaultOptions) {
|
|
46
|
+
setDefaultOptions(true);
|
|
47
|
+
setRenderKey(prev => prev + 1);
|
|
48
|
+
}
|
|
37
49
|
if (isOpen && controlElement) {
|
|
38
50
|
setTimeout(() => {
|
|
39
51
|
controlElement.scrollTop = controlElement.scrollHeight;
|
|
@@ -46,6 +58,12 @@ const MultiRecordSelector = (props) => {
|
|
|
46
58
|
container.removeEventListener('dblclick', openMenu);
|
|
47
59
|
};
|
|
48
60
|
}, []);
|
|
61
|
+
React.useEffect(() => {
|
|
62
|
+
if (!isFirstRenderRef.current) {
|
|
63
|
+
ref.current?.openMenu('first');
|
|
64
|
+
}
|
|
65
|
+
isFirstRenderRef.current = false;
|
|
66
|
+
}, [renderKey]);
|
|
49
67
|
props.onGetRef?.({ openMenu });
|
|
50
68
|
const componentProps = onOverrideComponentProps({
|
|
51
69
|
isMulti: true,
|
|
@@ -59,6 +77,7 @@ const MultiRecordSelector = (props) => {
|
|
|
59
77
|
menuPlacement: 'auto',
|
|
60
78
|
isClearable: false,
|
|
61
79
|
menuShouldScrollIntoView: false,
|
|
80
|
+
defaultOptions: defaultOptions,
|
|
62
81
|
noOptionsMessage: () => localizationService.getLocalizedString('noRecordsFound'),
|
|
63
82
|
loadingMessage: () => localizationService.getLocalizedString('loading'),
|
|
64
83
|
getOptionValue: (record) => record.id.guid,
|
|
@@ -67,25 +86,19 @@ const MultiRecordSelector = (props) => {
|
|
|
67
86
|
onMenuOpen: () => onMenuOpen(true),
|
|
68
87
|
onBlur: () => onMenuOpen(false),
|
|
69
88
|
loadOptions: onLoadOptions,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return {
|
|
73
|
-
...base,
|
|
74
|
-
maxHeight: 200,
|
|
75
|
-
overflow: 'auto',
|
|
76
|
-
border: 'none',
|
|
77
|
-
background: 'none',
|
|
78
|
-
boxShadow: 'none',
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
},
|
|
89
|
+
onNavigate: props.onNavigate,
|
|
90
|
+
styles: getMultiRecordSelectorStyles(),
|
|
82
91
|
components: {
|
|
83
92
|
IndicatorSeparator: () => jsx(Fragment, {}),
|
|
84
93
|
DropdownIndicator: () => jsx(Fragment, {}),
|
|
85
94
|
LoadingIndicator: () => jsx(Fragment, {}),
|
|
95
|
+
MultiValueContainer: MultiValueContainer,
|
|
96
|
+
MultiValueRemove: MultiValueRemove,
|
|
97
|
+
MultiValueLabel: MultiValueLabel,
|
|
98
|
+
//Option: Option,
|
|
86
99
|
},
|
|
87
100
|
});
|
|
88
|
-
return jsx(AsyncSelect, { ...componentProps });
|
|
101
|
+
return jsx(React.Fragment, { children: createElement(AsyncSelect, { ...componentProps, key: renderKey }) }, renderKey);
|
|
89
102
|
};
|
|
90
103
|
|
|
91
104
|
export { MultiRecordSelector };
|
package/dist/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiRecordSelector.js","sources":["../../../../../../src/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.tsx"],"sourcesContent":["import { IDataProvider } from '@talxis/client-libraries';\nimport * as React from 'react';\nimport { SelectInstance } from 'react-select';\nimport AsyncSelect from 'react-select/async';\nimport { AsyncProps } from 'react-select/dist/declarations/src/useAsync';\nimport { useLocalizationService } from '../../../context';\n\ninterface IMultiRecordSelectorProps {\n onSelectionChange: (selectedRecords: ComponentFramework.EntityReference[]) => void;\n dataProvider: IDataProvider;\n container: HTMLElement;\n selectedRecords?: ComponentFramework.EntityReference[];\n onGetRef?: (ref: IMultRecordSelectorRef) => void;\n onMenuToggle?: (isOpen: boolean) => void;\n onOverrideComponentProps?: (props: AsyncProps<ComponentFramework.EntityReference, boolean, any>) => AsyncProps<ComponentFramework.EntityReference, boolean, any>;\n}\n\nexport interface IMultRecordSelectorRef {\n openMenu: () => void;\n}\n\nexport const MultiRecordSelector = (props: IMultiRecordSelectorProps) => {\n const { dataProvider, onSelectionChange, selectedRecords = [], container } = props;\n const localizationService = useLocalizationService();\n const onOverrideComponentProps = props.onOverrideComponentProps ?? ((p) => p);\n const ref = React.useRef<SelectInstance>(null);\n\n const onLoadOptions = async (inputValue: string): Promise<ComponentFramework.EntityReference[]> => {\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 const openMenu = React.useCallback(() => {\n if (!componentProps.isDisabled) {\n ref.current?.focusInput();\n ref.current?.openMenu('first')\n }\n }, []);\n\n const onKeyDown = (event: React.KeyboardEvent) => {\n switch (event.key) {\n case 'Enter': {\n ref.current?.openMenu('first');\n }\n }\n }\n\n const onMenuOpen = (isOpen: boolean) => {\n props.onMenuToggle?.(isOpen);\n const controlElement = ref.current?.controlRef;\n if (isOpen && controlElement) {\n setTimeout(() => {\n controlElement.scrollTop = controlElement.scrollHeight;\n }, 0);\n }\n }\n\n React.useEffect(() => {\n container.addEventListener('dblclick', openMenu);\n return () => {\n container.removeEventListener('dblclick', openMenu);\n }\n }, []);\n\n props.onGetRef?.({ openMenu });\n const componentProps = onOverrideComponentProps({\n isMulti: true,\n //@ts-ignore - typings\n ref: ref,\n menuPortalTarget: document.body,\n onKeyDown: onKeyDown,\n openMenuOnClick: false,\n placeholder: '',\n value: selectedRecords,\n menuPlacement: 'auto',\n isClearable: false,\n menuShouldScrollIntoView: false,\n noOptionsMessage: () => localizationService.getLocalizedString('noRecordsFound'),\n loadingMessage: () => localizationService.getLocalizedString('loading'),\n getOptionValue: (record) => record.id.guid,\n getOptionLabel: (record) => record.name,\n onChange: (selectedRecords) => onSelectionChange(selectedRecords as ComponentFramework.EntityReference[]),\n onMenuOpen: () => onMenuOpen(true),\n onBlur: () => onMenuOpen(false),\n loadOptions: onLoadOptions,\n
|
|
1
|
+
{"version":3,"file":"MultiRecordSelector.js","sources":["../../../../../../src/components/TaskGrid/components/grid/multi-record-selector/MultiRecordSelector.tsx"],"sourcesContent":["import { IDataProvider } from '@talxis/client-libraries';\nimport * as React from 'react';\nimport { SelectInstance } from 'react-select';\nimport AsyncSelect from 'react-select/async';\nimport { AsyncProps } from 'react-select/dist/declarations/src/useAsync';\nimport { useLocalizationService } from '../../../context';\nimport { MultiValueContainer } from './components/multi-value-container/MultiValueContainer';\nimport { MultiValueRemove } from './components/multi-value-remove/MultiValueRemove';\nimport { MultiValueLabel } from './components/multi-value-label/MultiValueLabel';\nimport { getMultiRecordSelectorStyles } from './styles';\n\ninterface IMultiRecordSelectorProps {\n onSelectionChange: (selectedRecords: ComponentFramework.EntityReference[]) => void;\n dataProvider: IDataProvider;\n container: HTMLElement;\n selectedRecords?: ComponentFramework.EntityReference[];\n onNavigate?: (record: ComponentFramework.EntityReference) => void;\n onGetRef?: (ref: IMultRecordSelectorRef) => void;\n onMenuToggle?: (isOpen: boolean) => void;\n onOverrideComponentProps?: (props: AsyncProps<ComponentFramework.EntityReference, boolean, any>) => AsyncProps<ComponentFramework.EntityReference, boolean, any>;\n}\n\nexport interface IMultRecordSelectorRef {\n openMenu: () => void;\n}\n\nexport const MultiRecordSelector = (props: IMultiRecordSelectorProps) => {\n const { dataProvider, onSelectionChange, selectedRecords = [], container } = props;\n const localizationService = useLocalizationService();\n const onOverrideComponentProps = props.onOverrideComponentProps ?? ((p) => p);\n const ref = React.useRef<SelectInstance>(null);\n const [renderKey, setRenderKey] = React.useState(0);\n const isFirstRenderRef = React.useRef(true);\n const [defaultOptions, setDefaultOptions] = React.useState<boolean>(false);\n\n const onLoadOptions = async (inputValue: string): Promise<ComponentFramework.EntityReference[]> => {\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 const openMenu = React.useCallback(() => {\n if (!componentProps.isDisabled) {\n ref.current?.focusInput();\n ref.current?.openMenu('first')\n }\n }, []);\n\n const onKeyDown = (event: React.KeyboardEvent) => {\n switch (event.key) {\n case 'Enter': {\n ref.current?.openMenu('first');\n }\n }\n }\n\n const onMenuOpen = (isOpen: boolean) => {\n props.onMenuToggle?.(isOpen);\n const controlElement = ref.current?.controlRef;\n if(isOpen && !defaultOptions) {\n setDefaultOptions(true);\n setRenderKey(prev => prev + 1);\n }\n if (isOpen && controlElement) {\n setTimeout(() => {\n controlElement.scrollTop = controlElement.scrollHeight;\n }, 0);\n }\n }\n\n React.useEffect(() => {\n container.addEventListener('dblclick', openMenu);\n return () => {\n container.removeEventListener('dblclick', openMenu);\n }\n }, []);\n\n React.useEffect(() => {\n if (!isFirstRenderRef.current) {\n ref.current?.openMenu('first');\n }\n isFirstRenderRef.current = false;\n }, [renderKey]);\n\n\n props.onGetRef?.({ openMenu });\n const componentProps = onOverrideComponentProps({\n isMulti: true,\n //@ts-ignore - typings\n ref: ref,\n menuPortalTarget: document.body,\n onKeyDown: onKeyDown,\n openMenuOnClick: false,\n placeholder: '',\n value: selectedRecords,\n menuPlacement: 'auto',\n isClearable: false,\n menuShouldScrollIntoView: false,\n defaultOptions: defaultOptions,\n noOptionsMessage: () => localizationService.getLocalizedString('noRecordsFound'),\n loadingMessage: () => localizationService.getLocalizedString('loading'),\n getOptionValue: (record) => record.id.guid,\n getOptionLabel: (record) => record.name,\n onChange: (selectedRecords) => onSelectionChange(selectedRecords as ComponentFramework.EntityReference[]),\n onMenuOpen: () => onMenuOpen(true),\n onBlur: () => onMenuOpen(false),\n loadOptions: onLoadOptions,\n onNavigate: props.onNavigate,\n styles: getMultiRecordSelectorStyles(),\n components: {\n IndicatorSeparator: () => <></>,\n DropdownIndicator: () => <></>,\n LoadingIndicator: () => <></>,\n MultiValueContainer: MultiValueContainer,\n MultiValueRemove: MultiValueRemove,\n MultiValueLabel: MultiValueLabel,\n //Option: Option,\n },\n })\n return <React.Fragment key={renderKey}>\n <AsyncSelect {...componentProps} key={renderKey} />\n </React.Fragment>\n}"],"names":["_jsx","_Fragment","_createElement"],"mappings":"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"}
|
|
@@ -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,13 @@
|
|
|
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
|
+
|
|
6
|
+
const MultiValueContainer = ({ children, innerProps, selectProps }) => {
|
|
7
|
+
const theme = useTheme();
|
|
8
|
+
const styles = React.useMemo(() => getMultiValueContainerStyles(theme, selectProps.isDisabled), [theme, selectProps.isDisabled]);
|
|
9
|
+
return (jsx("div", { ...innerProps, className: styles.root, children: children }));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { MultiValueContainer };
|
|
13
|
+
//# sourceMappingURL=MultiValueContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiValueContainer.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/multi-record-selector/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';\n\nexport const MultiValueContainer = ({ children, innerProps, selectProps }: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const theme = useTheme();\n const styles = React.useMemo(() => getMultiValueContainerStyles(theme, selectProps.isDisabled), [theme, selectProps.isDisabled]);\n return (\n <div {...innerProps} className={styles.root}>\n {children}\n </div>\n );\n};"],"names":["_jsx"],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAA4E,KAAI;AACnJ,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,4BAA4B,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;AACjI,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,18 @@
|
|
|
1
|
+
import { ITheme } from '@fluentui/react';
|
|
2
|
+
export declare const getMultiValueContainerStyles: (theme: ITheme, isDisabled?: boolean) => 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) => {
|
|
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: 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/multi-record-selector/components/multi-value-container/styles.ts"],"sourcesContent":["import { ITheme, mergeStyleSets } from '@fluentui/react';\n\nexport const getMultiValueContainerStyles = (theme: ITheme, isDisabled?: boolean) => {\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: 20\n },\n });\n};\n"],"names":[],"mappings":";;MAEa,4BAA4B,GAAG,CAAC,KAAa,EAAE,UAAoB,KAAI;AAChF,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;AAClB,YAAA,MAAM,EAAE,EAAE;AACb,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: ({ children, selectProps }: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = ({ children, selectProps }) => {
|
|
7
|
+
const styles = React.useMemo(() => getMultiValueLabelStyles(), []);
|
|
8
|
+
const { onNavigate } = selectProps;
|
|
9
|
+
if (onNavigate) {
|
|
10
|
+
return (jsx(Link, { styles: { root: styles.link }, onClick: (e) => {
|
|
11
|
+
e.preventDefault();
|
|
12
|
+
onNavigate();
|
|
13
|
+
}, children: children }));
|
|
14
|
+
}
|
|
15
|
+
return jsx("span", { className: styles.root, children: children });
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { MultiValueLabel };
|
|
19
|
+
//# sourceMappingURL=MultiValueLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiValueLabel.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/multi-record-selector/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 = ({ children, selectProps }: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const styles = React.useMemo(() => getMultiValueLabelStyles(), []);\n const { onNavigate } = selectProps as any;\n\n if (onNavigate) {\n return (\n <Link\n styles={{root: styles.link}}\n onClick={(e) => {\n e.preventDefault();\n onNavigate();\n }}\n >\n {children}\n </Link>\n );\n }\n\n return <span className={styles.root}>{children}</span>;\n};\n"],"names":["_jsx"],"mappings":";;;;;AAKa,MAAA,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,WAAW,EAA4E,KAAI;AACnI,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,wBAAwB,EAAE,EAAE,EAAE,CAAC,CAAC;AACnE,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,WAAkB,CAAC;AAE1C,IAAA,IAAI,UAAU,EAAE;AACZ,QAAA,QACIA,GAAC,CAAA,IAAI,IACD,MAAM,EAAE,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAC,EAC3B,OAAO,EAAE,CAAC,CAAC,KAAI;gBACX,CAAC,CAAC,cAAc,EAAE,CAAC;AACnB,gBAAA,UAAU,EAAE,CAAC;AACjB,aAAC,EAEA,QAAA,EAAA,QAAQ,EACN,CAAA,EACT;AACL,KAAA;IAED,OAAOA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,CAAC;AAC3D;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const getMultiValueLabelStyles: () => import("@fluentui/react").IProcessedStyleSet<{
|
|
2
|
+
root: {
|
|
3
|
+
overflow: string;
|
|
4
|
+
textOverflow: string;
|
|
5
|
+
whiteSpace: string;
|
|
6
|
+
fontWeight: number;
|
|
7
|
+
};
|
|
8
|
+
link: {
|
|
9
|
+
fontWeight: number;
|
|
10
|
+
pointerEvents: string;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
},
|
|
11
|
+
link: {
|
|
12
|
+
fontWeight: 600,
|
|
13
|
+
pointerEvents: 'all',
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { getMultiValueLabelStyles };
|
|
19
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/multi-record-selector/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 },\n link: {\n fontWeight: 600,\n pointerEvents: 'all',\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;AAClB,SAAA;AACD,QAAA,IAAI,EAAE;AACF,YAAA,UAAU,EAAE,GAAG;AACf,YAAA,aAAa,EAAE,KAAK;AACvB,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,16 @@
|
|
|
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
|
+
|
|
6
|
+
const MultiValueRemove = ({ innerProps, selectProps }) => {
|
|
7
|
+
const theme = useTheme();
|
|
8
|
+
const styles = React.useMemo(() => getMultiValueRemoveStyles(theme), [theme]);
|
|
9
|
+
if (selectProps.isDisabled) {
|
|
10
|
+
return jsx(Fragment, {});
|
|
11
|
+
}
|
|
12
|
+
return (jsx("div", { ...innerProps, className: styles.root, children: jsx(Icon, { iconName: "Cancel", className: styles.icon }) }));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { MultiValueRemove };
|
|
16
|
+
//# sourceMappingURL=MultiValueRemove.js.map
|