mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	 843a6c5bbb
			
		
	
	
		843a6c5bbb
		
			
		
	
	
	
	
		
			
			* Releases updated version of datahub-web client UI code * Fix typo in yarn lock * Change yarn lock to match yarn registry directories * Previous commit missed some paths * Even more changes to yarnlock missing in previous commit * Include codegen file for typings * Add files to get parity for datahub-web and current OS datahub-midtier * Add in typo fix from previous commit - change to proper license * Implement proper OS fix for person entity picture url * Workarounds for open source DH issues * Fixes institutional memory api and removes unopensourced tabs for datasets * Fixes search dataset deprecation and user search issue as a result of changes * Remove internal only options in the avatar menu
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import Component from '@glimmer/component';
 | |
| import { IDynamicComponent } from '@datahub/shared/types/dynamic-component';
 | |
| 
 | |
| export interface IDynamicComponentsTooltipArgs {
 | |
|   options: {
 | |
|     // The component that will be placed in the trigger for the tooltip
 | |
|     triggerComponent: IDynamicComponent;
 | |
|     // The event (in accordance with ember-tooltips) that will trigger the tooltip content
 | |
|     triggerOn?: 'click' | 'hover' | 'focus';
 | |
|     // Any custom class(es) to add to the tooltip component itself
 | |
|     className?: string;
 | |
|     // The component(s) that we want to display in the tooltip content
 | |
|     contentComponents: Array<IDynamicComponent>;
 | |
|   };
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * The purpose of the dynamic tooltip component is to be able to render a tooltip in our generic
 | |
|  * rendering logic, for example, when using render props.
 | |
|  *
 | |
|  * @example
 | |
|  * // In render props:
 | |
|  * {
 | |
|  *   name: 'dynamic-components/tooltip'
 | |
|  *   options: {
 | |
|  *     triggerComponent: {
 | |
|  *       name: 'dynamic-components/icon',
 | |
|  *       options: { icon: 'question-circle', prefix: 'far' }
 | |
|  *     },
 | |
|  *     triggerOn: 'hover',
 | |
|  *     contentComponents: [
 | |
|  *       { name: 'dynamic-component/text', options: { text: 'Click here to learn more!' } },
 | |
|  *       {
 | |
|  *         name: 'dynamic-component/wiki-link',
 | |
|  *         options: { wikiKey: 'appHelp' }
 | |
|  *        }
 | |
|  *     ]
 | |
|  *   }
 | |
|  * }
 | |
|  */
 | |
| export default class DynamicComponentsTooltip extends Component<IDynamicComponentsTooltipArgs> {}
 |