2024-11-05 00:21:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								{{--
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$name - string
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$autofocus - boolean, optional
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$entityTypes - string, optional
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$entityPermission - string, optional
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$selectorEndpoint - string, optional
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								$selectorSize - string, optional (compact)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								--}}
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-07 16:57:48 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								<div class="form-group entity-selector-container">
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-13 06:10:37 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    <div component="entity-selector"
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-25 21:13:17 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								         refs="entity-selector-popup@selector"
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-13 06:10:37 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								         class="entity-selector {{$selectorSize ?? ''}}"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								         option:entity-selector:entity-types="{{ $entityTypes ?? 'book,chapter,page' }}"
							 | 
						
					
						
							
								
									
										
										
										
											2023-12-11 23:55:43 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								         option:entity-selector:entity-permission="{{ $entityPermission ?? 'view' }}"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								         option:entity-selector:search-endpoint="{{ $selectorEndpoint ?? '/search/entity-selector' }}">
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-13 06:10:37 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <input refs="entity-selector@input" type="hidden" name="{{$name}}" value="">
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-25 21:13:17 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <input refs="entity-selector@search" type="text" placeholder="{{ trans('common.search') }}" @if($autofocus ?? false) autofocus @endif>
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        <div class="text-center loading" refs="entity-selector@loading">@include('common.loading-icon')</div>
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-13 06:10:37 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div refs="entity-selector@results"></div>
							 | 
						
					
						
							
								
									
										
										
										
											2016-06-25 22:31:38 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    </div>
							 | 
						
					
						
							
								
									
										
										
										
											2019-03-31 00:54:15 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								</div>
							 |