Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular
Browse files Browse the repository at this point in the history
…into ddincheva/shiftWheel
  • Loading branch information
ddincheva committed Jan 18, 2021
2 parents 7fc38c7 + cd3d0bb commit 4106e6b
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 25 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ All notable changes for each version of this project will be documented in this
- `IgxDropDown`
- The `igx-drop-down-item` now allows for `igxPrefix`, `igxSuffix` and `igx-divider` directives to be passed as `ng-content` and they will be renderer accordingly in the item's content.
### General
- `IgxDialog`
- The dialog content has been moved inside the dialog window container in the template. This means that if you have added something in-between the opening and closing tags of the dialog, you may have to adjust its styling a bit since that content is now rendered inside a container that has padding on it.
- `IgxCalendar`
- A new string enumeration `IgxCalendarView` is exported. Either the new one or the current `CalendarView` can be used. `CalendarView` will be deprecated in a future release.
- `IgxRadioGroup`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
</div>
<ng-content *ngIf="!title" select="igx-dialog-title,[igxDialogTitle]"></ng-content>

<div class="igx-dialog__window-content" *ngIf="message">{{ message }}</div>
<ng-content *ngIf="!message"></ng-content>
<div class="igx-dialog__window-content">
{{ message }}
<ng-content *ngIf="!message"></ng-content>
</div>

<div *ngIf="leftButtonLabel || rightButtonLabel" class="igx-dialog__window-actions">
<button *ngIf="leftButtonLabel" type="button" [igxFocus]="isOpen" igxButton="{{ leftButtonType }}" igxButtonColor="{{ leftButtonColor }}" igxButtonBackground="{{ leftButtonBackgroundColor }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe('Dialog', () => {
dialog.open();
tick();
fixture.detectChanges();
const buttons = document.getElementsByClassName('custom-sample')[0].nextElementSibling.querySelectorAll('button');
const buttons = document.querySelectorAll('button');
const leftButton = buttons[0];
const rightButton = buttons[1];

Expand Down Expand Up @@ -313,10 +313,10 @@ describe('Dialog', () => {
fixture.detectChanges();

const dialogWindow = fixture.debugElement.query(By.css('.igx-dialog__window'));
expect(dialogWindow.children.length).toEqual(2);
expect(dialogWindow.children.length).toEqual(3);

expect(dialogWindow.children[0].nativeElement.innerText.toString()).toContain('TITLE');
expect(dialogWindow.children[1].nativeElement.innerText.toString()).toContain('BUTTONS');
expect(dialogWindow.children[2].nativeElement.innerText.toString()).toContain('BUTTONS');

dialog.close();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,8 @@ export class IgxDragDirective implements AfterContentInit, OnDestroy {
})
export class IgxDropDirective implements OnInit, OnDestroy {

private _data: any;

/**
* - Save data inside the `igxDrop` directive. This can be set when instancing `igxDrop` on an element.
* ```html
Expand All @@ -1335,7 +1337,6 @@ export class IgxDropDirective implements OnInit, OnDestroy {
* @memberof IgxDropDirective
*/
@Input('igxDrop')
private _data: any;
public get data(): any {
return this._data;
}
Expand Down
4 changes: 0 additions & 4 deletions src/app/dialog/dialog.sample.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 200px;
}

.login-form {
padding: 0 24px 24px 24px;
}

.icon {
font-size: .75em;
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/drag-drop/drag-drop.sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ <h4 class="sample-title">Ghost and base templating:</h4>
<br>
<h4 class="sample-title">Drag Handle:</h4>
<button igxButton="raised" igxRipple (click)="openDialog()" [style.width.px]="150">Open dialog</button>
<div igxToggle #toggleForm="toggle" class="igx-dialog" [style.width.px]="280"
<div igxToggle #toggleForm="toggle" class="igx-dialog" [style.width.px]="320"
igxDrag [ghost]="false" [dragTolerance]="0" [dragChannel]="'dialog'">
<div class="igx-dialog__window">
<div class="login-form">
<div class="igx-dialog__window-content">
<div class="dialogHeader">
<span [style.margin.px]="10">Sign In</span>
<igx-icon igxDragHandle fontSet="material" class="dialogHandle">control_camera</igx-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
border: 1px black dotted;
}

textarea {
max-width: 100%;
padding: 8px;
}

.columnOut {
display: flex;
height: 32px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@
<igx-dialog #jsonDialog title="Multi-row layout result:"
leftButtonLabel="Cancel" (onLeftButtonSelect)="jsonDialog.close()" rightButtonLabel="Copy" (onRightButtonSelect)="copyToClipboard()"
backgroundClick="true" [closeOnOutsideSelect]="true">
<div class="login-form">
<textarea #textArea rows="18" cols="101" readonly style="margin: 10px;">{{jsonCollection}}</textarea>
</div>
<textarea #textArea rows="18" cols="101" readonly>{{jsonCollection}}</textarea>
</igx-dialog>
</section>
10 changes: 4 additions & 6 deletions src/app/list/list.sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,9 @@ <h4 class="sample-title">
<igx-dialog #addFruitDialog title="Add Fruit" leftButtonLabel="Cancel" (onLeftButtonSelect)="addFruitDialog.close()" rightButtonLabel="Add"
rightButtonBackgroundColor="#0375be" rightButtonColor="white" (onRightButtonSelect)="onAddFruitButtonClicked(newFruitName.value);newFruitName.value='';"
backgroundClick="true" closeOnOutsideSelect="true">
<div class="sample-dialog-content">
<igx-input-group>
<label for="newFruit">Fruit Name</label>
<input id="newFruit" igxInput #newFruitName type="text" />
</igx-input-group>
</div>
<igx-input-group>
<label igxLabel for="newFruit">Fruit Name</label>
<input id="newFruit" igxInput #newFruitName type="text" />
</igx-input-group>
</igx-dialog>

4 changes: 0 additions & 4 deletions src/app/list/list.sample.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
position: relative;
}

.sample-dialog-content {
padding: 8px;
}

.sample-column.bootstrap {
display: none;
}
Expand Down

0 comments on commit 4106e6b

Please sign in to comment.