2 * ============LICENSE_START=======================================================
 
   4 * ================================================================================
 
   5 * Copyright 2019 TechMahindra
 
   6 *=================================================================================
 
   7 * Licensed under the Apache License, Version 2.0 (the "License");
 
   8 * you may not use this file except in compliance with the License.
 
   9 * You may obtain a copy of the License at
 
  11 *     http://www.apache.org/licenses/LICENSE-2.0
 
  13 * Unless required by applicable law or agreed to in writing, software
 
  14 * distributed under the License is distributed on an "AS IS" BASIS,
 
  15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  16 * See the License for the specific language governing permissions and
 
  17 * limitations under the License.
 
  18 * ============LICENSE_END=========================================================
 
  20 <div cdkDropListGroup>
 
  21   <div class="sources-container">
 
  24       [cdkDropListData]="sourcesOptions"
 
  26       (cdkDropListDropped)="drop($event)">
 
  27         <div class="sources-box" *ngFor="let item of sourcesOptions" cdkDrag>
 
  28                 <mat-expansion-panel class="expansion-panel">
 
  29                         <mat-expansion-panel-header>
 
  33                         </mat-expansion-panel-header>
 
  34                         <json-editor [options]="options" [data]="selected(item)" on-change="onChange()"></json-editor>
 
  35                          </mat-expansion-panel>
 
  40   <div class="list-container">
 
  41     <h3>Source Options</h3>
 
  43         <input [(ngModel)]="searchText" type="input" matInput placeholder="search sources">
 
  44         <button matSuffix mat-icon-button><mat-icon>search</mat-icon></button>
 
  45         <mat-hint>db,mdsal,input,default,..</mat-hint>
 
  50       [cdkDropListData]="option"
 
  52       (cdkDropListDropped)="drop($event)">
 
  53       <div class="options-box" *ngFor="let item of option | search :searchText" cdkDrag>{{item}}</div>