@talxis/base-controls 1.2605.1 → 1.2606.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js +1 -2
- package/dist/components/DatasetControl/EditColumns/OptionText/OptionText.js.map +1 -1
- package/dist/components/Grid/cells/cell/Cell.js +2 -6
- package/dist/components/Grid/cells/cell/Cell.js.map +1 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js +1 -1
- package/dist/components/Grid/column-headers/column-header/ColumnHeader.js.map +1 -1
- package/dist/components/Grid/grid/ag-grid/AgGridModel.js +1 -1
- package/dist/components/Grid/grid/ag-grid/AgGridModel.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/components/TargetSelector.js +1 -1
- package/dist/components/Lookup/components/TargetSelector.js.map +1 -1
- package/dist/components/Lookup/hooks/useLookup.d.ts +8 -0
- package/dist/components/Lookup/translations.d.ts +8 -0
- package/dist/components/Lookup/translations.js +8 -0
- package/dist/components/Lookup/translations.js.map +1 -1
- package/dist/components/TaskGrid/TaskGrid.js +5 -6
- package/dist/components/TaskGrid/TaskGrid.js.map +1 -1
- package/dist/components/TaskGrid/TaskGridDatasetControl.d.ts +18 -5
- package/dist/components/TaskGrid/TaskGridDatasetControl.js +63 -30
- package/dist/components/TaskGrid/TaskGridDatasetControl.js.map +1 -1
- package/dist/components/TaskGrid/TaskGridDatasetControlFactory.d.ts +3 -2
- package/dist/components/TaskGrid/TaskGridDatasetControlFactory.js +10 -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 +102 -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 +4 -5
- 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/cell-renderers/percent-complete/styles.d.ts +0 -6
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/styles.js +0 -6
- package/dist/components/TaskGrid/components/grid/cell-renderers/percent-complete/styles.js.map +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 +47 -16
- 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/group-cell/styles.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/group-cell/styles.js +3 -0
- package/dist/components/TaskGrid/components/grid/group-cell/styles.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 +84 -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/components.d.ts +11 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/components.js +17 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/components.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/Menu.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/Menu.js +10 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/Menu.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/menu/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.d.ts +7 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-container/MultiValueContainer.js +16 -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/components.d.ts +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/components.js +15 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/components.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/index.js +2 -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-container/MultiValueContainer.d.ts +3 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/MultiValueContainer.js +12 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/MultiValueContainer.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/index.d.ts +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/index.js +2 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/index.js.map +1 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/styles.d.ts +9 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/styles.js +18 -0
- package/dist/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/styles.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 +20 -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.d.ts +1 -1
- package/dist/components/TaskGrid/components/header/Header.js +62 -47
- 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/dataverse/DataverseCustomColumnsStrategy.d.ts +75 -0
- package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider/TalxisCustomColumnsDataProviderStrategy.js → extensions/dataverse/DataverseCustomColumnsStrategy.js} +56 -21
- 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 +41 -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} +41 -19
- package/dist/components/TaskGrid/extensions/dataverse/DataverseSavedQueryStrategy.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.d.ts +102 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js +184 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskGridDescriptor.js.map +1 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.d.ts +124 -0
- package/dist/components/TaskGrid/extensions/dataverse/DataverseTaskStrategy.js +498 -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 +65 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/LookupManyHandler.js +208 -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 +35 -0
- package/dist/components/TaskGrid/extensions/dataverse/lookup-many/cell-renderer/FetchXmlLookupManyCellRenderer.js.map +1 -0
- package/dist/components/TaskGrid/interfaces.d.ts +58 -26
- 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 +11 -1
- package/dist/components/TaskGrid/{data-providers/custom-columns-data-provider → providers/custom-columns}/CustomColumnsDataProvider.js +3 -0
- 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 +14 -9
- package/dist/components/TaskGrid/{data-providers/saved-query-data-provider → providers/saved-query}/SavedQueryDataProvider.js +89 -69
- 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 +25 -39
- package/dist/components/TaskGrid/{data-providers/task-data-provider → providers/task}/TaskDataProvider.js +51 -34
- 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.d.ts +8 -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 +234 -196
- package/dist/index.js +1 -0
- package/dist/index.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/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/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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ThemeProvider } from '@fluentui/react';
|
|
3
|
+
import { components } from 'react-select';
|
|
4
|
+
|
|
5
|
+
const Menu = (props) => {
|
|
6
|
+
return jsx(ThemeProvider, { children: jsx(components.Menu, { ...props }) });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { Menu };
|
|
10
|
+
//# sourceMappingURL=Menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/components/menu/Menu.tsx"],"sourcesContent":["import { ThemeProvider } from '@fluentui/react';\nimport { components, MenuProps } from 'react-select';\n\nexport const Menu = (props: MenuProps<ComponentFramework.EntityReference, boolean, any>) => {\n return <ThemeProvider><components.Menu {...props} /></ThemeProvider>\n}"],"names":["_jsx"],"mappings":";;;;AAGa,MAAA,IAAI,GAAG,CAAC,KAAkE,KAAI;IACvF,OAAOA,GAAA,CAAC,aAAa,EAAA,EAAA,QAAA,EAACA,GAAC,CAAA,UAAU,CAAC,IAAI,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA,EAAA,CAAgB,CAAA;AACxE;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Menu';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="@types/powerapps-component-framework" />
|
|
2
|
+
import { MultiValueGenericProps } from 'react-select';
|
|
3
|
+
interface IMultiValueProps extends MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any> {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const MultiValueContainer: ({ children, innerProps, selectProps, className }: IMultiValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { getClassNames } from '@talxis/react-components';
|
|
7
|
+
|
|
8
|
+
const MultiValueContainer = ({ children, innerProps, selectProps, className }) => {
|
|
9
|
+
const theme = useTheme();
|
|
10
|
+
const props = useLookupManyProps();
|
|
11
|
+
const styles = React.useMemo(() => getMultiValueContainerStyles(theme, selectProps.isDisabled, props.selectedRecordHeight), [theme, selectProps.isDisabled, props.selectedRecordHeight]);
|
|
12
|
+
return (jsx("div", { ...innerProps, className: getClassNames([styles.root, className]), children: children }));
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { MultiValueContainer };
|
|
16
|
+
//# 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';\nimport { getClassNames } from '@talxis/react-components';\n\ninterface IMultiValueProps extends MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any> {\n className?: string;\n}\n\nexport const MultiValueContainer = ({ children, innerProps, selectProps, className }: IMultiValueProps) => {\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={getClassNames([styles.root, className])}>\n {children}\n </div>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;;;;AAWO,MAAM,mBAAmB,GAAG,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAoB,KAAI;AACtG,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;IACzL,QACIA,gBAAS,UAAU,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,YAClE,QAAQ,EAAA,CACP,EACR;AACN;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiValueContainer';
|
|
@@ -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;;;;"}
|
package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiValueLabel';
|
|
@@ -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
|
+
}>;
|
package/dist/components/TaskGrid/components/grid/lookup-many/components/multi-value-label/styles.js
ADDED
|
@@ -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
|
+
}>;
|
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/components.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/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;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { LookupManyComponents } from '../../components/components.js';
|
|
3
|
+
import { MultiValueLabel } from './multi-value-label/MultiValueLabel.js';
|
|
4
|
+
import { Option } from './option/Option.js';
|
|
5
|
+
import { MultiValueContainer } from './multi-value-container/MultiValueContainer.js';
|
|
6
|
+
|
|
7
|
+
const DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS = {
|
|
8
|
+
...LookupManyComponents,
|
|
9
|
+
onRenderMultiValueLabel: (props) => jsx(MultiValueLabel, { ...props }),
|
|
10
|
+
onRenderOption: (props) => jsx(Option, { ...props }),
|
|
11
|
+
onRenderMultiValueContainer: (props) => jsx(MultiValueContainer, { ...props })
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { DEFAULT_PEOPLE_LOOKUP_MANY_COMPONENTS };
|
|
15
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sources":["../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/components.tsx"],"sourcesContent":["import { ILookupManyComponents, LookupManyComponents } from \"../../components/components\";\nimport { MultiValueContainer } from \"./multi-value-container\";\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 onRenderMultiValueContainer: (props) => <MultiValueContainer {...props} />\n}"],"names":["_jsx"],"mappings":";;;;;;AAKa,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;IAChD,2BAA2B,EAAE,CAAC,KAAK,KAAKA,GAAC,CAAA,mBAAmB,EAAK,EAAA,GAAA,KAAK,EAAI,CAAA;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { MultiValueContainer as MultiValueContainer$1 } from '../../../components/multi-value-container/MultiValueContainer.js';
|
|
3
|
+
import { getMultiValueContainerStyles } from './styles.js';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
|
|
6
|
+
const MultiValueContainer = (props) => {
|
|
7
|
+
const styles = useMemo(() => getMultiValueContainerStyles(props.selectProps.isDisabled), [props.selectProps.isDisabled]);
|
|
8
|
+
return (jsx(MultiValueContainer$1, { ...props, className: styles.root }));
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { MultiValueContainer };
|
|
12
|
+
//# sourceMappingURL=MultiValueContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiValueContainer.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/MultiValueContainer.tsx"],"sourcesContent":["import { MultiValueGenericProps } from 'react-select';\nimport { MultiValueContainer as NativeMultiValueContainer } from '../../../components/multi-value-container/MultiValueContainer';\nimport { getMultiValueContainerStyles } from './styles';\nimport { useMemo } from 'react';\n\nexport const MultiValueContainer = (props: MultiValueGenericProps<ComponentFramework.EntityReference, boolean, any>) => {\n const styles = useMemo(() => getMultiValueContainerStyles(props.selectProps.isDisabled), [props.selectProps.isDisabled]);\n return (\n <NativeMultiValueContainer {...props} className={styles.root} />\n );\n};\n"],"names":["_jsx","NativeMultiValueContainer"],"mappings":";;;;;AAKa,MAAA,mBAAmB,GAAG,CAAC,KAA+E,KAAI;IACnH,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,4BAA4B,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;AACzH,IAAA,QACIA,GAAA,CAACC,qBAAyB,EAAA,EAAA,GAAK,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,CAAK,EACnE;AACN;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MultiValueContainer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mergeStyleSets } from '@fluentui/react';
|
|
2
|
+
|
|
3
|
+
const getMultiValueContainerStyles = (isDisabled) => {
|
|
4
|
+
return mergeStyleSets({
|
|
5
|
+
root: {
|
|
6
|
+
'&&': {
|
|
7
|
+
...(isDisabled ? {
|
|
8
|
+
border: 'none',
|
|
9
|
+
padding: '0px',
|
|
10
|
+
backgroundColor: 'transparent',
|
|
11
|
+
} : {})
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { getMultiValueContainerStyles };
|
|
18
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../../../../../src/components/TaskGrid/components/grid/lookup-many/people-lookup-many/components/multi-value-container/styles.ts"],"sourcesContent":["import { mergeStyleSets } from \"@fluentui/react\"\n\nexport const getMultiValueContainerStyles = (isDisabled: boolean) => {\n return mergeStyleSets({\n root: {\n '&&': {\n ...(isDisabled ? {\n border: 'none',\n padding: '0px',\n backgroundColor: 'transparent',\n } : {})\n }\n }\n })\n}\n"],"names":[],"mappings":";;AAEa,MAAA,4BAA4B,GAAG,CAAC,UAAmB,KAAI;AAChE,IAAA,OAAO,cAAc,CAAC;AAClB,QAAA,IAAI,EAAE;AACF,YAAA,IAAI,EAAE;AACF,gBAAA,IAAI,UAAU,GAAG;AACb,oBAAA,MAAM,EAAE,MAAM;AACd,oBAAA,OAAO,EAAE,KAAK;AACd,oBAAA,eAAe,EAAE,aAAa;iBACjC,GAAG,EAAE,CAAC;AACV,aAAA;AACJ,SAAA;AACJ,KAAA,CAAC,CAAA;AACN;;;;"}
|
|
@@ -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, { imageShouldFadeIn: false, 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 imageShouldFadeIn={false}\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,GAAC,CAAA,WAAW,IAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACjC,QAAA,EAAAA,GAAA,CAAC,OAAO,EAAA,EACJ,iBAAiB,EAAE,KAAK,EACxB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EACrB,IAAI,EAAE,WAAW,CAAC,MAAM,EACxB,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,QAClB,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":""}
|