From 5abea29bd0fd978c4d34e50b6af312d98fc7633d Mon Sep 17 00:00:00 2001 From: Simeon Simeonoff Date: Mon, 11 Sep 2023 18:21:31 +0300 Subject: [PATCH 1/9] refactor(*): update samples to reflect displayDensity changes --- .../src/app/grid-crm/grid-crm.component.html | 4 +- .../src/app/grid-crm/grid-crm.component.scss | 5 +++ .../data-analysis-dock-manager.component.html | 2 +- .../data-analysis-dock-manager.component.scss | 4 ++ .../grid-dynamic-chart-data.component.html | 2 +- .../grid-dynamic-chart-data.component.scss | 1 + .../app/grid-finjs/grid-finjs.component.html | 1 - .../app/grid-finjs/grid-finjs.component.scss | 2 + .../grid-boston-marathon/grid.component.html | 2 +- .../grid-boston-marathon/grid.component.scss | 4 ++ .../grid-master-detail.component.html | 4 +- .../grid-master-detail.component.scss | 1 + .../tree-grid-finjs-sample.component.html | 1 - .../tree-grid-finjs-sample.component.scss | 4 ++ .../button-group-sample-5.component.html | 5 +-- .../button-group-sample-5.component.ts | 32 ++++++++++------ .../buttons-display-density.component.html | 14 ++++--- .../buttons-display-density.component.ts | 24 +++++++----- .../custom-grid-paging-style.component.html | 2 +- .../custom-grid-paging-style.component.scss | 1 + .../grid-cascading-combos.component.html | 2 +- .../grid-cascading-combos.component.scss | 1 + ...id-column-data-types-sample.component.html | 2 +- ...id-column-data-types-sample.component.scss | 1 + .../grid-displaydensity-sample.component.html | 4 +- .../grid-displaydensity-sample.component.ts | 35 ++++++++++-------- .../grid-editing-sample.component.html | 2 +- .../grid-editing-sample.component.scss | 3 +- ...el-style-filtering-sample-1.component.html | 4 +- ...xcel-style-filtering-sample-1.component.ts | 32 +++++++++------- .../grid-keyboardnav-sample.component.html | 2 +- .../grid-keyboardnav-sample.component.scss | 1 + .../grid-nested-data-bind2.html | 2 +- .../grid-nested-data-bind2.scss | 1 + .../grid-nested-data-bind.html | 4 +- .../grid-nested-data-bind.scss | 6 ++- .../grid-pager-sample.component.html | 2 +- .../grid-pager-sample.component.scss | 15 ++++---- .../grid-paging-sample.component.html | 2 +- .../grid-paging-sample.component.scss | 2 + .../grid-resize-line-styling-sample.html | 2 +- .../grid-resize-line-styling-sample.scss | 1 + .../grid-search-sample.component.html | 14 +++---- .../multi-column-header-template.html | 2 +- .../multi-column-header-template.scss | 5 ++- ...multi-column-headers-export.component.html | 2 +- ...multi-column-headers-export.component.scss | 1 + ...ulti-column-headers-styling.component.html | 2 +- ...ulti-column-headers-styling.component.scss | 1 + .../multi-column-headers.html | 2 +- .../multi-column-headers.scss | 1 + .../hgrid-keyboard-guide.component.html | 2 +- .../hgrid-keyboard-guide.component.scss | 1 + ...d-collapsible-column-groups.component.html | 2 +- ...d-collapsible-column-groups.component.scss | 3 ++ ...grid-cross-field-validation.component.html | 2 +- ...grid-cross-field-validation.component.scss | 9 ++++- .../hierarchical-grid-density.component.html | 5 +-- .../hierarchical-grid-density.component.ts | 33 +++++++++-------- ...el-style-filtering-sample-1.component.html | 4 +- ...xcel-style-filtering-sample-1.component.ts | 32 +++++++++------- ...-grid-multi-column-template.component.html | 2 +- ...-grid-multi-column-template.component.scss | 5 ++- ...al-grid-multi-column-export.component.html | 2 +- ...al-grid-multi-column-export.component.scss | 1 + ...l-grid-multi-column-styling.component.html | 2 +- ...l-grid-multi-column-styling.component.scss | 1 + ...rarchical-grid-multi-column.component.html | 2 +- ...rarchical-grid-multi-column.component.scss | 3 +- ...rarchical-grid-pager-sample.component.html | 3 +- ...rarchical-grid-pager-sample.component.scss | 1 + .../hGrid-state.component.html | 1 - .../hGrid-state.component.scss | 1 + ...rousel-no-navigation-sample.component.html | 2 +- ...rousel-no-navigation-sample.component.scss | 1 + .../list-sample-4.component.html | 4 +- .../list-sample-4/list-sample-4.component.ts | 25 ++++++++----- ...ion-strip-paragraph-styling.component.html | 2 +- ...ction-strip-paragraph-styling.component.ts | 1 - .../pivot-features.component.html | 5 +-- .../pivot-features.component.scss | 4 ++ .../default-theme-sample.component.html | 2 +- .../display-density.component.html | 2 +- .../display-density.component.ts | 37 +++++++++---------- .../tgrid-keyboardnav-guide.component.html | 2 +- .../tgrid-keyboardnav-guide.component.scss | 1 + .../tree-grid-add-row-sample.component.html | 2 +- ...d-collapsible-column-groups.component.html | 3 +- ...d-collapsible-column-groups.component.scss | 3 ++ ...-grid-displaydensity-sample.component.html | 4 +- ...ee-grid-displaydensity-sample.component.ts | 33 +++++++++-------- .../tree-grid-editing-sample.component.html | 2 +- ...el-style-filtering-sample-1.component.html | 4 +- ...xcel-style-filtering-sample-1.component.ts | 32 +++++++++------- ...up-by-load-on-demand-sample.component.scss | 2 + ...-keyboard-navigation-sample.component.html | 2 +- ...-keyboard-navigation-sample.component.scss | 1 + ...lumn-header-template-sample.component.html | 2 +- ...lumn-header-template-sample.component.scss | 3 +- ...multi-column-headers-export.component.html | 2 +- ...multi-column-headers-export.component.scss | 1 + ...multi-column-headers-sample.component.html | 2 +- ...multi-column-headers-sample.component.scss | 1 + ...ulti-column-headers-styling.component.html | 3 +- ...ulti-column-headers-styling.component.scss | 1 + .../tree-grid-pager-sample.component.html | 3 +- .../tree-grid-pager-sample.component.scss | 13 ++++--- .../tree-grid-paging-sample.component.html | 3 +- .../tree-grid-paging-sample.component.scss | 2 + ...ee-grid-paging-style-sample.component.html | 2 +- ...ee-grid-paging-style-sample.component.scss | 1 + .../tGrid-state.component.html | 1 - .../tGrid-state.component.scss | 1 + .../tree-grid-search-sample.component.html | 14 +++---- 114 files changed, 359 insertions(+), 260 deletions(-) diff --git a/projects/app-crm/src/app/grid-crm/grid-crm.component.html b/projects/app-crm/src/app/grid-crm/grid-crm.component.html index 7e9b64605f..97a61fbe35 100644 --- a/projects/app-crm/src/app/grid-crm/grid-crm.component.html +++ b/projects/app-crm/src/app/grid-crm/grid-crm.component.html @@ -1,5 +1,5 @@
- + @@ -15,7 +15,7 @@ Business Propeller
- + search clear diff --git a/projects/app-crm/src/app/grid-crm/grid-crm.component.scss b/projects/app-crm/src/app/grid-crm/grid-crm.component.scss index 141159e876..77ac0e95f9 100644 --- a/projects/app-crm/src/app/grid-crm/grid-crm.component.scss +++ b/projects/app-crm/src/app/grid-crm/grid-crm.component.scss @@ -50,7 +50,12 @@ $idle-text-color: color($light-palette, 'gray', 900) ); + input-group[type="search"] { + --ig-size: var(--ig-size-small); + } + .grid__wrapper { + --ig-size: var(--ig-size-medium); width: inherit; position: relative; height: 100%; diff --git a/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.html b/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.html index c182f1723d..ee24e31f30 100644 --- a/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.html +++ b/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.html @@ -1,7 +1,7 @@
diff --git a/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss b/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss index f2d745467a..e12f48a243 100644 --- a/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss +++ b/projects/app-lob/src/app/grid-dynamic-chart-data/data-analysis-dock-manager/data-analysis-dock-manager.component.scss @@ -17,6 +17,10 @@ height: 100vh; padding: 0 rem(8px) rem(8px) rem(8px); --igc-pane-content-background: #{contrast-color($color: 'gray', $variant: 900)}; + + igx-grid { + --ig-size: var(--ig-size-small); + } } .chart-types-container { diff --git a/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.html b/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.html index 57774daa80..e2b9e26abd 100644 --- a/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.html +++ b/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.html @@ -3,7 +3,7 @@ Excel like data analysis showcase application with Ignite UI Angular components and extras
- + diff --git a/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.scss b/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.scss index c908f89714..a57848e3ed 100644 --- a/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.scss +++ b/projects/app-lob/src/app/grid-dynamic-chart-data/grid-dynamic-chart-data.component.scss @@ -1,5 +1,6 @@ :host ::ng-deep { .grid-chart-contextmenu-wrapper { + --ig-size: var(--ig-size-small); width: 90%; margin: 50px auto; height: 80%; diff --git a/projects/app-lob/src/app/grid-finjs/grid-finjs.component.html b/projects/app-lob/src/app/grid-finjs/grid-finjs.component.html index 0c3c6538c2..daa9cafd2c 100644 --- a/projects/app-lob/src/app/grid-finjs/grid-finjs.component.html +++ b/projects/app-lob/src/app/grid-finjs/grid-finjs.component.html @@ -2,7 +2,6 @@ Boston Marathon 2023
- + diff --git a/projects/app-lob/src/app/grid/grid-boston-marathon/grid.component.scss b/projects/app-lob/src/app/grid/grid-boston-marathon/grid.component.scss index 334a303546..26c8e34f08 100644 --- a/projects/app-lob/src/app/grid/grid-boston-marathon/grid.component.scss +++ b/projects/app-lob/src/app/grid/grid-boston-marathon/grid.component.scss @@ -27,6 +27,10 @@ $progressBar-sample-theme: progress-linear-theme( justify-content: center; } +igx-grid { + --ig-size: var(--ig-size-medium); +} + :host { ::ng-deep { .igx-paginator > * { diff --git a/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.html b/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.html index dfbdb9c9ff..98360f4b1f 100644 --- a/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.html +++ b/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.html @@ -1,5 +1,5 @@
- + @@ -53,7 +53,7 @@
{{dataItem.name}}
diff --git a/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.scss b/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.scss index cbc1cbebaf..da52f2185a 100644 --- a/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.scss +++ b/projects/app-lob/src/app/grid/grid-master-detail/grid-master-detail.component.scss @@ -40,5 +40,6 @@ h6 { } .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: rem(4px) rem(16px); } diff --git a/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.html b/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.html index 08407ac8c4..ac2898a64b 100644 --- a/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.html +++ b/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.html @@ -32,7 +32,6 @@ width="100%" [moving]="true" [autoGenerate]="false" - displayDensity="compact" hiddenColumnsText="Hidden" [isLoading]="isLoading" [allowFiltering]="true" diff --git a/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.scss b/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.scss index d88fabdc26..00c7a92157 100644 --- a/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.scss +++ b/projects/app-lob/src/app/treegrid-finjs/tree-grid-finjs-sample.component.scss @@ -253,6 +253,10 @@ padding: rem(15px); display: flex; flex-direction: column; + + igx-tree-grid { + --ig-size: var(--ig-size-small); + } } igx-grid { diff --git a/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.html b/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.html index 1887a0bdff..baaf314768 100644 --- a/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.html +++ b/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.html @@ -1,6 +1,3 @@
- - +
diff --git a/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.ts b/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.ts index ed5b748287..6f90fc4264 100644 --- a/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.ts +++ b/src/app/data-entries/buttonGroup/button-group-sample-5/button-group-sample-5.component.ts @@ -1,5 +1,10 @@ -import { Component, OnInit } from '@angular/core'; -import { DisplayDensity } from 'igniteui-angular'; +import { Component, HostBinding, OnInit } from '@angular/core'; + +type Button = { + label: string, + selected: boolean, + togglable: boolean +} @Component({ selector: 'app-button-group-sample-5', @@ -7,22 +12,25 @@ import { DisplayDensity } from 'igniteui-angular'; templateUrl: './button-group-sample-5.component.html' }) export class ButtonGroupSample5Component implements OnInit { - public rippleColor = 'grey'; - - public displayDensity: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes: Button[]; public ngOnInit() { - this.displayDensities = [ - { label: 'compact', selected: this.displayDensity === 'compact', togglable: true }, - { label: 'cosy', selected: this.displayDensity === 'cosy', togglable: true }, - { label: 'comfortable', selected: this.displayDensity === 'comfortable', togglable: true } + this.sizes = [ + { label: 'small', selected: this.size === 'small', togglable: true }, + { label: 'medium', selected: this.size === 'medium', togglable: true }, + { label: 'large', selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.displayDensity = this.displayDensities[event.index].label; + public selectSize(event: any) { + this.size = this.sizes[event.index].label; } + + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } } diff --git a/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.html b/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.html index be6c654757..79b8bddfc5 100644 --- a/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.html +++ b/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.html @@ -1,22 +1,24 @@
- +
- +
- +
- +
- +
- diff --git a/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.ts b/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.ts index a0ab03fde2..6b6ee37f24 100644 --- a/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.ts +++ b/src/app/data-entries/buttons/buttons-display-density/buttons-display-density.component.ts @@ -1,5 +1,4 @@ -import { Component, OnInit } from '@angular/core'; -import { DisplayDensity } from 'igniteui-angular'; +import { Component, HostBinding, OnInit } from '@angular/core'; @Component({ selector: 'app-buttons-display-density', @@ -7,18 +6,23 @@ import { DisplayDensity } from 'igniteui-angular'; templateUrl: './buttons-display-density.component.html' }) export class ButtonsDisplayDensityComponent implements OnInit { - public density: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes; public ngOnInit(): void { - this.displayDensities = [ - { label: 'comfortable', selected: this.density === 'comfortable', togglable: true }, - { label: 'cosy', selected: this.density === 'cosy', togglable: true }, - { label: 'compact', selected: this.density === 'compact', togglable: true } + this.sizes = [ + { label: 'large', selected: this.size === 'large', togglable: true }, + { label: 'medium', selected: this.size === 'medium', togglable: true }, + { label: 'small', selected: this.size === 'small', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; } } diff --git a/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.html b/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.html index 5eab2ac57c..5678e95b1b 100644 --- a/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.html +++ b/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.scss b/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.scss index d75ea1fb2e..fec6d92554 100644 --- a/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.scss +++ b/src/app/grid/custom-grid-paging-style/custom-grid-paging-style.component.scss @@ -66,6 +66,7 @@ $dark-drop-down-theme: drop-down-theme( } .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 16px; } diff --git a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html index 09b643b496..37d541746e 100644 --- a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html +++ b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html @@ -1,6 +1,6 @@
- diff --git a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss index f9f5030e0d..4c53688301 100644 --- a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss +++ b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss @@ -1,4 +1,5 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; } diff --git a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html index ec4f364b3b..60cb307f0b 100644 --- a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html +++ b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html @@ -78,7 +78,7 @@ + [filterMode]="'excelStyleFilter'" [autoGenerate]="false" [height]="null"> diff --git a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss index 993e754607..d58355e454 100644 --- a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss +++ b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss @@ -1,6 +1,7 @@ @use '../../../variables' as *; .grid-wrapper { + --ig-size: var(--ig-size-small); margin: 15px; } diff --git a/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.html b/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.html index fee3667d06..2627aa48c0 100644 --- a/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.html +++ b/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.html @@ -1,7 +1,7 @@
- +
- + diff --git a/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.ts b/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.ts index c66bf4d2af..42f3743d4b 100644 --- a/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.ts +++ b/src/app/grid/grid-displaydensity-sample/grid-displaydensity-sample.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { DisplayDensity, IgxButtonGroupComponent, IgxGridComponent, IgxNumberSummaryOperand, +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; +import { IgxButtonGroupComponent, IgxGridComponent, IgxNumberSummaryOperand, IgxSummaryOperand, IgxSummaryResult } from 'igniteui-angular'; import { INVOICE_DATA } from '../../data/invoiceData'; @@ -25,39 +25,44 @@ class CustomNumberSummary { templateUrl: './grid-displaydensity-sample.component.html' }) export class GridDisplayDensitySampleComponent implements OnInit { - @ViewChild('grid', { read: IgxGridComponent, static: true }) public grid: IgxGridComponent; + @ViewChild(IgxButtonGroupComponent, { static: true }) public buttonGroup: IgxButtonGroupComponent; public data; - public density: DisplayDensity = 'compact'; - public displayDensities; + + public size = 'small'; + public sizes; public numberSummaries = CustomNumberSummary; public ngOnInit() { this.data = INVOICE_DATA; - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.grid.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; this.grid.reflow(); } diff --git a/src/app/grid/grid-editing-sample/grid-editing-sample.component.html b/src/app/grid/grid-editing-sample/grid-editing-sample.component.html index 7cb023173d..7ef34e7d5a 100644 --- a/src/app/grid/grid-editing-sample/grid-editing-sample.component.html +++ b/src/app/grid/grid-editing-sample/grid-editing-sample.component.html @@ -1,6 +1,6 @@
- + diff --git a/src/app/grid/grid-editing-sample/grid-editing-sample.component.scss b/src/app/grid/grid-editing-sample/grid-editing-sample.component.scss index 48bdfcb748..4c53688301 100644 --- a/src/app/grid/grid-editing-sample/grid-editing-sample.component.scss +++ b/src/app/grid/grid-editing-sample/grid-editing-sample.component.scss @@ -1,4 +1,5 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; } @@ -12,7 +13,7 @@ } #discontinued { - margin-top: 15px; + margin-top: 15px; } } diff --git a/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.html b/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.html index 68efb056b5..bd0320d517 100644 --- a/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.html +++ b/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.html @@ -1,8 +1,8 @@
- +
- + diff --git a/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.ts b/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.ts index 0ed345d2e9..94339eeae1 100644 --- a/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.ts +++ b/src/app/grid/grid-excel-style-filtering-sample-1/grid-excel-style-filtering-sample-1.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { DisplayDensity, IgxGridComponent } from 'igniteui-angular'; +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; +import { IgxGridComponent } from 'igniteui-angular'; import { DATA } from '../../data/nwindData'; @Component({ @@ -14,35 +14,39 @@ export class ExcelStyleFilteringSample1Component implements OnInit { public data: any[]; - public density: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes; constructor() { } public ngOnInit(): void { this.data = DATA; - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.grid1.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; this.grid1.reflow(); } diff --git a/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.html b/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.html index 25f0b31939..6cef71685a 100644 --- a/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.html +++ b/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.html @@ -1,6 +1,6 @@
- diff --git a/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.scss b/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.scss index e692144c67..350dfb9014 100644 --- a/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.scss +++ b/src/app/grid/grid-keyboardnav-guide-sample/grid-keyboardnav-sample.component.scss @@ -15,6 +15,7 @@ $custom-checkbox-theme: checkbox-theme( display: flex; .grid_wrapper { + --ig-size: var(--ig-size-small); padding-left: 15px; padding-top: 15px; width: 75%; diff --git a/src/app/grid/grid-nested-data-binding-2/grid-nested-data-bind2.html b/src/app/grid/grid-nested-data-binding-2/grid-nested-data-bind2.html index 9b1e549f93..7469cadf00 100644 --- a/src/app/grid/grid-nested-data-binding-2/grid-nested-data-bind2.html +++ b/src/app/grid/grid-nested-data-binding-2/grid-nested-data-bind2.html @@ -1,6 +1,6 @@
- +
- + - + diff --git a/src/app/grid/grid-nested-data-binding/grid-nested-data-bind.scss b/src/app/grid/grid-nested-data-binding/grid-nested-data-bind.scss index 17ccd3c5af..f3f7cb51c5 100644 --- a/src/app/grid/grid-nested-data-binding/grid-nested-data-bind.scss +++ b/src/app/grid/grid-nested-data-binding/grid-nested-data-bind.scss @@ -20,10 +20,14 @@ igx-expansion-panel { text-overflow: ellipsis; padding: .5rem 1rem; flex: 1 1 auto; - flex-direction: column; + flex-direction: column; } } +igx-input-group { + --ig-size: var(--ig-size-small); +} + ::ng-deep { .expand { padding: 2px; diff --git a/src/app/grid/grid-pager-sample/grid-pager-sample.component.html b/src/app/grid/grid-pager-sample/grid-pager-sample.component.html index 47f7c4ae77..0df3e4ca53 100644 --- a/src/app/grid/grid-pager-sample/grid-pager-sample.component.html +++ b/src/app/grid/grid-pager-sample/grid-pager-sample.component.html @@ -1,6 +1,6 @@
+ width="100%"> diff --git a/src/app/grid/grid-pager-sample/grid-pager-sample.component.scss b/src/app/grid/grid-pager-sample/grid-pager-sample.component.scss index 4874f398e9..3701f0f7bc 100644 --- a/src/app/grid/grid-pager-sample/grid-pager-sample.component.scss +++ b/src/app/grid/grid-pager-sample/grid-pager-sample.component.scss @@ -1,23 +1,24 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } igx-switch { margin: 24px; -} +} .options-container { - display: flex; - flex-direction: row; - align-items: center; + display: flex; + flex-direction: row; + align-items: center; padding: 0 1rem; } .options_container * { margin-right: 15px; } .select-input { - max-width: 150px; - padding-top: 5px; + max-width: 150px; + padding-top: 5px; padding-bottom: 5px; margin-left: 15px; -} \ No newline at end of file +} diff --git a/src/app/grid/grid-paging-sample/grid-paging-sample.component.html b/src/app/grid/grid-paging-sample/grid-paging-sample.component.html index 97f327e069..fd0bfc264e 100644 --- a/src/app/grid/grid-paging-sample/grid-paging-sample.component.html +++ b/src/app/grid/grid-paging-sample/grid-paging-sample.component.html @@ -1,6 +1,6 @@
- + diff --git a/src/app/grid/grid-paging-sample/grid-paging-sample.component.scss b/src/app/grid/grid-paging-sample/grid-paging-sample.component.scss index 4bc3ebc99c..c36c25d405 100644 --- a/src/app/grid/grid-paging-sample/grid-paging-sample.component.scss +++ b/src/app/grid/grid-paging-sample/grid-paging-sample.component.scss @@ -7,6 +7,8 @@ $progressBar-sample-theme: progress-linear-theme( .grid__wrapper { @include progress-linear($progressBar-sample-theme); + + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } diff --git a/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.html b/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.html index edf66931a2..f2b6640148 100644 --- a/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.html +++ b/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.scss b/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.scss index 8ac0097bf2..f6eaef0cf4 100644 --- a/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.scss +++ b/src/app/grid/grid-resize-line-styling-sample/grid-resize-line-styling-sample.scss @@ -21,5 +21,6 @@ $custom-grid-theme: grid-theme( } .grid__wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; } diff --git a/src/app/grid/grid-search-sample/grid-search-sample.component.html b/src/app/grid/grid-search-sample/grid-search-sample.component.html index 11637f1aea..c5b561bbe8 100644 --- a/src/app/grid/grid-search-sample/grid-search-sample.component.html +++ b/src/app/grid/grid-search-sample/grid-search-sample.component.html @@ -10,13 +10,13 @@
- - {{ grid.lastSearchInfo.activeMatchIndex + 1 }} of {{ grid.lastSearchInfo.matchInfoCache.length }} - results - - - No results - + + + + + + +
diff --git a/src/app/grid/multi-column-header-template/multi-column-header-template.html b/src/app/grid/multi-column-header-template/multi-column-header-template.html index 1dd143a534..024bba8da8 100644 --- a/src/app/grid/multi-column-header-template/multi-column-header-template.html +++ b/src/app/grid/multi-column-header-template/multi-column-header-template.html @@ -9,7 +9,7 @@
- + diff --git a/src/app/grid/multi-column-header-template/multi-column-header-template.scss b/src/app/grid/multi-column-header-template/multi-column-header-template.scss index 080b756433..69606dd344 100644 --- a/src/app/grid/multi-column-header-template/multi-column-header-template.scss +++ b/src/app/grid/multi-column-header-template/multi-column-header-template.scss @@ -1,12 +1,13 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } .column-group-template__container { - display: flex; + display: flex; align-items: center; } .column-group-template__icon { cursor: pointer; -} \ No newline at end of file +} diff --git a/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.html b/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.html index ff8c8eb2f7..177b22fd99 100644 --- a/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.html +++ b/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.html @@ -1,5 +1,5 @@
- + Export multi-column headers diff --git a/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.scss b/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.scss index 2649777ff2..40f8f54c54 100644 --- a/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.scss +++ b/src/app/grid/multi-column-headers-export/multi-column-headers-export.component.scss @@ -1,3 +1,4 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 15px; } diff --git a/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.html b/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.html index 11a9af267e..21e73d066d 100644 --- a/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.html +++ b/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.scss b/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.scss index 3bb0e2d891..e1dc781485 100644 --- a/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.scss +++ b/src/app/grid/multi-column-headers-styling/multi-column-headers-styling.component.scss @@ -13,5 +13,6 @@ $custom-theme: grid-theme( } .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } diff --git a/src/app/grid/multi-column-headers/multi-column-headers.html b/src/app/grid/multi-column-headers/multi-column-headers.html index 4ea5408458..c0198f1544 100644 --- a/src/app/grid/multi-column-headers/multi-column-headers.html +++ b/src/app/grid/multi-column-headers/multi-column-headers.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/grid/multi-column-headers/multi-column-headers.scss b/src/app/grid/multi-column-headers/multi-column-headers.scss index bc362e35dd..541c6c8003 100644 --- a/src/app/grid/multi-column-headers/multi-column-headers.scss +++ b/src/app/grid/multi-column-headers/multi-column-headers.scss @@ -1,4 +1,5 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } diff --git a/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.html b/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.html index 08fd6df676..f6d7d9c5d4 100644 --- a/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.html +++ b/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.html @@ -1,7 +1,7 @@
diff --git a/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.scss b/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.scss index 65eef84f9c..4e4ab393c2 100644 --- a/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.scss +++ b/src/app/hierarchical-grid/hgrid-keybarod-nav-guide-sample/hgrid-keyboard-guide.component.scss @@ -16,6 +16,7 @@ $custom-checkbox-theme: checkbox-theme( .grid_wrapper { + --ig-size: var(--ig-size-small); padding-left: 15px; padding-top: 15px; width: 75%; diff --git a/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.html b/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.html index cc22b35455..55319f09c1 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.html @@ -1,7 +1,7 @@
- + {{column.expanded ? 'expand_more' : 'chevron_right'}} diff --git a/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.scss b/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.scss index e69de29bb2..3f4940ba6f 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-collapsible-column-groups/hierarchical-grid-collapsible-column-groups.component.scss @@ -0,0 +1,3 @@ +igx-hierarchical-grid { + --ig-size: var(--ig-size-small); +} diff --git a/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.html b/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.html index 1e1594c4ac..f008c3b46d 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.html @@ -3,7 +3,7 @@
diff --git a/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.scss b/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.scss index e56b199e1b..d6fdedc686 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-cross-field-validation/hierarchical-grid-cross-field-validation.component.scss @@ -1,12 +1,17 @@ +.grid__wrapper { + --ig-size: var(--ig-size-small); +} -.top-row, .grid__wrapper { +.top-row, +.grid__wrapper { padding: 16px; padding-bottom: 0; } + .buttons-wrapper { display: flex; flex-direction: row; - justify-content: start; + justify-content: flex-start; padding: 10px 0; } diff --git a/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.html b/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.html index 9cbc037b3b..f31619891c 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.html @@ -1,7 +1,7 @@
- +
- + @@ -33,5 +33,4 @@ - diff --git a/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.ts b/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.ts index fbdf6f042e..8d6beb025f 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.ts +++ b/src/app/hierarchical-grid/hierarchical-grid-display-density/hierarchical-grid-density.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { DisplayDensity, IgxHierarchicalGridComponent } from 'igniteui-angular'; +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; +import { IgxHierarchicalGridComponent } from 'igniteui-angular'; import { CUSTOMERS } from '../../data/hierarchical-data'; @Component({ @@ -13,37 +13,40 @@ export class HGridDisplayDensitySampleComponent implements OnInit { private hierarchicalGrid: IgxHierarchicalGridComponent; public localdata; - public density: DisplayDensity = 'compact'; - public displayDensities; + public size = 'small'; + public sizes; constructor() { } public ngOnInit(): void { this.localdata = CUSTOMERS; - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.hierarchicalGrid.displayDensity = this.displayDensities[event.index].label; - this.hierarchicalGrid.reflow(); + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; } + public selectSize(event: any) { + this.size = this.sizes[event.index].label; + this.hierarchicalGrid.reflow(); + } } diff --git a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.html b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.html index 9550f4ab62..34948de79b 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.html @@ -1,8 +1,8 @@
- +
- diff --git a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.ts b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.ts index d15e06d808..0ed6ca1875 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.ts +++ b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-sample-1/hierarchical-grid-excel-style-filtering-sample-1.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { DisplayDensity, IgxHierarchicalGridComponent } from 'igniteui-angular'; +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; +import { IgxHierarchicalGridComponent } from 'igniteui-angular'; import { SINGERS } from '../../data/singersData'; @Component({ @@ -15,27 +15,27 @@ export class HGridExcelStyleFilteringSample1Component implements OnInit { public localdata; - public density: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes: any[]; constructor() { this.localdata = SINGERS; } public ngOnInit(): void { - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; @@ -43,9 +43,13 @@ export class HGridExcelStyleFilteringSample1Component implements OnInit { public formatter = (a) => a; - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.hierarchicalGrid.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; this.hierarchicalGrid.reflow(); } } diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.html b/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.html index ecbbe4f399..687d301909 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.html @@ -9,7 +9,7 @@
- + diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.scss b/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.scss index 080b756433..69606dd344 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-header-template/hierarchical-grid-multi-column-template.component.scss @@ -1,12 +1,13 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } .column-group-template__container { - display: flex; + display: flex; align-items: center; } .column-group-template__icon { cursor: pointer; -} \ No newline at end of file +} diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.html b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.html index 82e1b43c16..10c1626aec 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.html @@ -1,5 +1,5 @@
- + Export multi-column headers diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.scss b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.scss index b6f79f464f..17d9b1429e 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-export/hierarchical-grid-multi-column-export.component.scss @@ -1,3 +1,4 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.html b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.html index a59ba3c5ad..0e3654a8f6 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.scss b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.scss index 888bb53129..b0fc29f8f6 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers-styling/hierarchical-grid-multi-column-styling.component.scss @@ -13,5 +13,6 @@ $custom-theme: grid-theme( } .grid__wrapper { + --ig-size: var(--ig-size-small); padding: 16px; } diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.html b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.html index 6cc23ba370..de34512624 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.html @@ -1,5 +1,5 @@
- + diff --git a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.scss b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.scss index 109197c9a8..4c9580a6fe 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-multi-column-headers/hierarchical-grid-multi-column.component.scss @@ -1,7 +1,8 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 16px; } .igx-button--raised { margin-right: 5px; -} \ No newline at end of file +} diff --git a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html index 555e5b01c6..6e103b187e 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html @@ -1,6 +1,5 @@
- + diff --git a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.scss b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.scss index ed67dd5458..3701f0f7bc 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.scss @@ -1,4 +1,5 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } diff --git a/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.html b/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.html index 3aad1db564..84129f32f3 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.html @@ -48,7 +48,6 @@ [primaryKey]="'Photo'" [autoGenerate]="false" [columnSelection]="'multiple'" - displayDensity="cosy" [cellSelection]="'multiple'"> diff --git a/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.scss b/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.scss index e05b6128ef..bc3a4752f7 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-save-state/hGrid-state.component.scss @@ -31,6 +31,7 @@ } .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; width: 100%; diff --git a/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.html b/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.html index 96c52c0753..897b42cd2a 100644 --- a/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.html +++ b/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.html @@ -13,7 +13,7 @@
- +
diff --git a/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.scss b/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.scss index f832f482a0..f6bda84464 100644 --- a/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.scss +++ b/src/app/layouts/carousel/carousel-no-navigation-sample/carousel-no-navigation-sample.component.scss @@ -45,6 +45,7 @@ } igx-list { + --ig-size: var(--ig-size-small); justify-content: space-between; } diff --git a/src/app/lists/list/list-sample-4/list-sample-4.component.html b/src/app/lists/list/list-sample-4/list-sample-4.component.html index 2ac49e461d..6dce3afefe 100644 --- a/src/app/lists/list/list-sample-4/list-sample-4.component.html +++ b/src/app/lists/list/list-sample-4/list-sample-4.component.html @@ -1,5 +1,5 @@
- +
@@ -13,7 +13,7 @@
- + Contacts diff --git a/src/app/lists/list/list-sample-4/list-sample-4.component.ts b/src/app/lists/list/list-sample-4/list-sample-4.component.ts index b2915894cd..4e8fb64421 100644 --- a/src/app/lists/list/list-sample-4/list-sample-4.component.ts +++ b/src/app/lists/list/list-sample-4/list-sample-4.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit } from '@angular/core'; -import { DisplayDensity, IgxFilterOptions } from 'igniteui-angular'; +import { Component, HostBinding, OnInit } from '@angular/core'; +import { IgxFilterOptions } from 'igniteui-angular'; @Component({ selector: 'app-contact-list2', styleUrls: ['./list-sample-4.component.scss'], @@ -41,21 +41,26 @@ export class ListSample4Component implements OnInit { } ]; - public density: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes; constructor() { } public ngOnInit() { - this.displayDensities = [ - { label: 'comfortable', selected: this.density === 'comfortable', togglable: true }, - { label: 'cosy', selected: this.density === 'cosy', togglable: true }, - { label: 'compact', selected: this.density === 'compact', togglable: true } + this.sizes = [ + { label: 'large', selected: this.size === 'large', togglable: true }, + { label: 'medium', selected: this.size === 'medium', togglable: true }, + { label: 'small', selected: this.size === 'small', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; } public toggleFavorite(contact: any, event: Event) { diff --git a/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.html b/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.html index b16e453c33..a45f591a83 100644 --- a/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.html +++ b/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.html @@ -10,7 +10,7 @@ mollis luctus. Morbi lacinia orci augue, sed blandit est ornare placerat. Cras a ante nec mauris euismod aliquam vel pulvinar urna. Morbi tincidunt fringilla tortor, at ultricies neque rhoncus ac.

- + diff --git a/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.ts b/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.ts index aaa89a4600..0be22f2bcc 100644 --- a/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.ts +++ b/src/app/menus/action-strip/action-strip-paragraph-styling/action-strip-paragraph-styling.component.ts @@ -14,7 +14,6 @@ export class ActionStripStylingComponent { public textLeft = false; public textCenter = false; public textRight = false; - public displayDensity = DisplayDensity.comfortable; public textDelete() { this.paragraph.nativeElement.classList.add('text-strike-through'); diff --git a/src/app/pivot-grid/pivot-features/pivot-features.component.html b/src/app/pivot-grid/pivot-features/pivot-features.component.html index 1bb6c5309d..9fae7aa613 100644 --- a/src/app/pivot-grid/pivot-features/pivot-features.component.html +++ b/src/app/pivot-grid/pivot-features/pivot-features.component.html @@ -2,6 +2,5 @@ - - -
\ No newline at end of file + +
diff --git a/src/app/pivot-grid/pivot-features/pivot-features.component.scss b/src/app/pivot-grid/pivot-features/pivot-features.component.scss index a3e65f4a0f..8a26f2d959 100644 --- a/src/app/pivot-grid/pivot-features/pivot-features.component.scss +++ b/src/app/pivot-grid/pivot-features/pivot-features.component.scss @@ -24,6 +24,10 @@ igx-pivot-grid { flex: 1; } +igx-pivot-data-selector { + --ig-size: var(--ig-size-small); +} + .pivot-container { display: flex; align-items: flex-start; diff --git a/src/app/theming/default-theme-sample/default-theme-sample.component.html b/src/app/theming/default-theme-sample/default-theme-sample.component.html index 936fa196f1..62bfcbb474 100644 --- a/src/app/theming/default-theme-sample/default-theme-sample.component.html +++ b/src/app/theming/default-theme-sample/default-theme-sample.component.html @@ -29,7 +29,7 @@
+ #grid1 [allowFiltering]="true"> diff --git a/src/app/theming/display-density/display-density.component.html b/src/app/theming/display-density/display-density.component.html index c8ddd0db10..71bc6c9e40 100644 --- a/src/app/theming/display-density/display-density.component.html +++ b/src/app/theming/display-density/display-density.component.html @@ -1,5 +1,5 @@
- +
diff --git a/src/app/theming/display-density/display-density.component.ts b/src/app/theming/display-density/display-density.component.ts index 13c5040a6d..ec55d757e7 100644 --- a/src/app/theming/display-density/display-density.component.ts +++ b/src/app/theming/display-density/display-density.component.ts @@ -1,36 +1,31 @@ -import { Component, Inject, OnInit } from '@angular/core'; -import { DisplayDensityToken, IDisplayDensityOptions } from 'igniteui-angular'; +import { Component, HostBinding, OnInit } from '@angular/core'; @Component({ - providers: [{ provide: DisplayDensityToken, useValue: { displayDensity: 'comfortable' } }], selector: 'app-display-density', styleUrls: ['./display-density.component.scss'], templateUrl: './display-density.component.html' }) export class DisplayDensityComponent implements OnInit { - public displayDensities; - public density: any; - public user; - - constructor(@Inject(DisplayDensityToken) public displayDensityOptions: IDisplayDensityOptions) { } + public sizes: any[]; + public size = 'large'; + public user: any; public ngOnInit() { - const initialDensity = this.displayDensityOptions.displayDensity; - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: initialDensity === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: initialDensity === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: initialDensity === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; @@ -42,8 +37,12 @@ export class DisplayDensityComponent implements OnInit { }; } - public changeDensity(eventArgs) { - this.density = this.displayDensities[eventArgs.index].label; - this.displayDensityOptions.displayDensity = this.density; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(eventArgs: any) { + this.size = this.sizes[eventArgs.index].label; } } diff --git a/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.html b/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.html index 925169cbda..ae68d32a5e 100644 --- a/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.html +++ b/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.html @@ -1,6 +1,6 @@
- diff --git a/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.scss b/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.scss index 1d0ef598e0..d15b413092 100644 --- a/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.scss +++ b/src/app/tree-grid/tgrid-keyboard-guide/tgrid-keyboardnav-guide.component.scss @@ -15,6 +15,7 @@ $custom-checkbox-theme: checkbox-theme( display: flex; .grid_wrapper { + --ig-size: var(--ig-size-small); padding-left: 15px; padding-top: 15px; width: 75%; diff --git a/src/app/tree-grid/tree-grid-add-row-sample/tree-grid-add-row-sample.component.html b/src/app/tree-grid/tree-grid-add-row-sample/tree-grid-add-row-sample.component.html index 1efbc5c38a..599c5c684f 100644 --- a/src/app/tree-grid/tree-grid-add-row-sample/tree-grid-add-row-sample.component.html +++ b/src/app/tree-grid/tree-grid-add-row-sample/tree-grid-add-row-sample.component.html @@ -1,6 +1,6 @@
diff --git a/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.html b/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.html index 10eba02c59..f49651d9c6 100644 --- a/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.html +++ b/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.html @@ -1,8 +1,7 @@
- + {{column.expanded ? 'expand_more' : 'chevron_right'}} diff --git a/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.scss b/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.scss index e69de29bb2..d56f8843d3 100644 --- a/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.scss +++ b/src/app/tree-grid/tree-grid-collapsible-groups/tree-grid-collapsible-column-groups.component.scss @@ -0,0 +1,3 @@ +igx-tree-grid { + --ig-size: var(--ig-size-small); +} diff --git a/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.html b/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.html index 5a1439e28c..23b4ee26da 100644 --- a/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.html +++ b/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.html @@ -1,7 +1,7 @@
- +
- diff --git a/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.ts b/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.ts index fd10afb060..b04069539b 100644 --- a/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.ts +++ b/src/app/tree-grid/tree-grid-displaydensity-sample/tree-grid-displaydensity-sample.component.ts @@ -1,12 +1,10 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; import { - DisplayDensity, IgxButtonGroupComponent, IgxNumberSummaryOperand, IgxSummaryOperand, IgxSummaryResult, IgxTreeGridComponent } from 'igniteui-angular'; import { generateEmployeeDetailedFlatData } from '../data/employees-flat-detailed'; class CustomNumberSummary { - public operate(data?: any[]): IgxSummaryResult[] { const result = new IgxSummaryOperand().operate(data); result.push({ @@ -29,39 +27,42 @@ class CustomNumberSummary { templateUrl: './tree-grid-displaydensity-sample.component.html' }) export class TreeGridDisplaydensitySampleComponent implements OnInit { - @ViewChild('treeGrid', { read: IgxTreeGridComponent, static: true }) public treeGrid: IgxTreeGridComponent; @ViewChild(IgxButtonGroupComponent, { static: true }) public buttonGroup: IgxButtonGroupComponent; public data; - public density: DisplayDensity = 'compact'; - public displayDensities; + public size = 'small'; + public sizes; public numberSummaries = CustomNumberSummary; public ngOnInit() { this.data = generateEmployeeDetailedFlatData(); - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.treeGrid.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event) { + this.size = this.sizes[event.index].label; this.treeGrid.reflow(); } } diff --git a/src/app/tree-grid/tree-grid-editing-sample/tree-grid-editing-sample.component.html b/src/app/tree-grid/tree-grid-editing-sample/tree-grid-editing-sample.component.html index 6eed154f60..4e6647ef84 100644 --- a/src/app/tree-grid/tree-grid-editing-sample/tree-grid-editing-sample.component.html +++ b/src/app/tree-grid/tree-grid-editing-sample/tree-grid-editing-sample.component.html @@ -3,7 +3,7 @@ person_add Add Root Employee - diff --git a/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.html b/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.html index 9ec1806447..59ac361e15 100644 --- a/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.html +++ b/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.html @@ -1,8 +1,8 @@
- +
- diff --git a/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.ts b/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.ts index 97e3a123d2..c67aeae24b 100644 --- a/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.ts +++ b/src/app/tree-grid/tree-grid-excel-style-filtering-sample-1/tree-grid-excel-style-filtering-sample-1.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit, ViewChild } from '@angular/core'; -import { DisplayDensity, IgxTreeGridComponent, TreeGridFilteringStrategy } from 'igniteui-angular'; +import { Component, HostBinding, OnInit, ViewChild } from '@angular/core'; +import { IgxTreeGridComponent, TreeGridFilteringStrategy } from 'igniteui-angular'; import { ORDERS_DATA } from '../data/orders'; @Component({ @@ -22,35 +22,39 @@ export class TreeGridExcelStyleFilteringSample1Component implements OnInit { public filterStrategy = new TreeGridFilteringStrategy(['ID', 'Name']); - public density: DisplayDensity = 'comfortable'; - public displayDensities; + public size = 'large'; + public sizes: any[]; constructor() { } public ngOnInit(): void { this.data = ORDERS_DATA; - this.displayDensities = [ + this.sizes = [ { - label: 'compact', - selected: this.density === 'compact', + label: 'small', + selected: this.size === 'small', togglable: true }, { - label: 'cosy', - selected: this.density === 'cosy', + label: 'medium', + selected: this.size === 'medium', togglable: true }, { - label: 'comfortable', - selected: this.density === 'comfortable', + label: 'large', + selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event) { - this.density = this.displayDensities[event.index].label; - this.treegrid1.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event: any) { + this.size = this.sizes[event.index].label; this.treegrid1.reflow(); } diff --git a/src/app/tree-grid/tree-grid-group-by-load-on-demand-sample/tree-grid-group-by-load-on-demand-sample.component.scss b/src/app/tree-grid/tree-grid-group-by-load-on-demand-sample/tree-grid-group-by-load-on-demand-sample.component.scss index 41c8160c66..626380ebc6 100644 --- a/src/app/tree-grid/tree-grid-group-by-load-on-demand-sample/tree-grid-group-by-load-on-demand-sample.component.scss +++ b/src/app/tree-grid/tree-grid-group-by-load-on-demand-sample/tree-grid-group-by-load-on-demand-sample.component.scss @@ -6,6 +6,8 @@ } .grid__wrapper { + --ig-size: var(--ig-size-small); + position: relative; width: 100%; height: 100%; diff --git a/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.html b/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.html index 222ee869df..28ffe34246 100644 --- a/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.html +++ b/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.html @@ -1,6 +1,6 @@
+ (gridKeydown)="customKeydown($event)" [moving]="true" [autoGenerate]="false" [rowSelection]="selectionMode" [allowFiltering]="true"> diff --git a/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.scss b/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.scss index 2649777ff2..40f8f54c54 100644 --- a/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.scss +++ b/src/app/tree-grid/tree-grid-keyboard-navigation/tree-grid-keyboard-navigation-sample.component.scss @@ -1,3 +1,4 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 15px; } diff --git a/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.html b/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.html index 35aed46d4f..5c25af5bca 100644 --- a/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.html +++ b/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.html @@ -10,7 +10,7 @@ + [allowFiltering]="true" width="100%"> diff --git a/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.scss b/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.scss index 386cbb8c38..715340ac15 100644 --- a/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.scss +++ b/src/app/tree-grid/tree-grid-multi-column-header-template-sample/tree-grid-multi-column-header-template-sample.component.scss @@ -1,9 +1,10 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 10px; } .column-group-template__container { - display: flex; + display: flex; align-items: center; } diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.html b/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.html index b39644009e..8bd4024c4d 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.html +++ b/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.html @@ -1,6 +1,6 @@
+ [allowFiltering]="true" width="100%"> Export multi-column headers diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.scss b/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.scss index 2649777ff2..40f8f54c54 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.scss +++ b/src/app/tree-grid/tree-grid-multi-column-headers-export/tree-grid-multi-column-headers-export.component.scss @@ -1,3 +1,4 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 15px; } diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.html b/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.html index 31876621de..d021657255 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.html +++ b/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.html @@ -1,6 +1,6 @@
+ [allowFiltering]="true" width="100%"> diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.scss b/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.scss index 7324c76832..a2d3285174 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.scss +++ b/src/app/tree-grid/tree-grid-multi-column-headers-sample/tree-grid-multi-column-headers-sample.component.scss @@ -1,4 +1,5 @@ .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 10px; } diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.html b/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.html index c062f78422..8846034a5c 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.html +++ b/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.html @@ -1,6 +1,5 @@
- + diff --git a/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.scss b/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.scss index 7716dd5dbb..c04ddcf45c 100644 --- a/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.scss +++ b/src/app/tree-grid/tree-grid-multi-column-headers-styling/tree-grid-multi-column-headers-styling.component.scss @@ -13,5 +13,6 @@ $custom-theme: grid-theme( } .grid__wrapper { + --ig-size: var(--ig-size-small); margin: 10px; } diff --git a/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.html b/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.html index f7dd7ef097..fc63c11cad 100644 --- a/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.html +++ b/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.html @@ -1,6 +1,5 @@
- + diff --git a/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.scss b/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.scss index 57ab3f06c5..3701f0f7bc 100644 --- a/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.scss +++ b/src/app/tree-grid/tree-grid-pager-sample/tree-grid-pager-sample.component.scss @@ -1,23 +1,24 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } igx-switch { margin: 24px; -} +} .options-container { - display: flex; - flex-direction: row; - align-items: center; + display: flex; + flex-direction: row; + align-items: center; padding: 0 1rem; } .options_container * { margin-right: 15px; } .select-input { - max-width: 150px; - padding-top: 5px; + max-width: 150px; + padding-top: 5px; padding-bottom: 5px; margin-left: 15px; } diff --git a/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.html b/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.html index 906a65bf93..2885944f07 100644 --- a/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.html +++ b/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.html @@ -1,7 +1,6 @@
- + primaryKey="ID" foreignKey="ParentID"> diff --git a/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.scss b/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.scss index 4bc3ebc99c..c36c25d405 100644 --- a/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.scss +++ b/src/app/tree-grid/tree-grid-paging-sample/tree-grid-paging-sample.component.scss @@ -7,6 +7,8 @@ $progressBar-sample-theme: progress-linear-theme( .grid__wrapper { @include progress-linear($progressBar-sample-theme); + + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } diff --git a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.html b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.html index a85290deae..21742db1c0 100644 --- a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.html +++ b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.html @@ -1,6 +1,6 @@
+ primaryKey="ID" foreignKey="ParentID"> diff --git a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss index 4d5af1e574..ba503c0f50 100644 --- a/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss +++ b/src/app/tree-grid/tree-grid-paging-style/tree-grid-paging-style-sample.component.scss @@ -1,6 +1,7 @@ @use '../../../variables' as *; .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 10px; } diff --git a/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.html b/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.html index 0d96dc123b..3037948fc6 100644 --- a/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.html +++ b/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.html @@ -51,7 +51,6 @@ primaryKey="Name" [data]="localData" childDataKey="Employees" - displayDensity="cosy" [moving]="true" width="98%" height="800px" [autoGenerate]="false" diff --git a/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.scss b/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.scss index c13e245dd4..21b6a74925 100644 --- a/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.scss +++ b/src/app/tree-grid/tree-grid-save-state/tGrid-state.component.scss @@ -31,6 +31,7 @@ } .grid__wrapper { + --ig-size: var(--ig-size-medium); margin: 0 16px; padding-top: 16px; width: 100%; diff --git a/src/app/tree-grid/tree-grid-search-sample/tree-grid-search-sample.component.html b/src/app/tree-grid/tree-grid-search-sample/tree-grid-search-sample.component.html index abe4f59b6b..c35577a8c6 100644 --- a/src/app/tree-grid/tree-grid-search-sample/tree-grid-search-sample.component.html +++ b/src/app/tree-grid/tree-grid-search-sample/tree-grid-search-sample.component.html @@ -10,13 +10,13 @@
- - {{ treeGrid.lastSearchInfo.activeMatchIndex + 1 }} of {{ treeGrid.lastSearchInfo.matchInfoCache.length }} - results - - - No results - + + + + + + +
From 852903d2aaaad2786f568c21fbc3e8e399ae8b11 Mon Sep 17 00:00:00 2001 From: Simeon Simeonoff Date: Tue, 12 Sep 2023 12:13:05 +0300 Subject: [PATCH 2/9] refactor(*): update display density in samples --- .../grid-finjs-dock-manager.component.html | 12 ++++----- .../grid-finjs-dock-manager.component.scss | 7 ++++++ .../grid-finjs-dock-manager.component.ts | 1 - .../column-selection-sample.component.html | 2 +- .../column-selection-sample.component.scss | 6 ++++- ...batch-editing-remote-paging.component.html | 2 +- .../grid-cascading-combos.component.html | 7 +++--- .../grid-cascading-combos.component.scss | 4 +++ ...d-collapsible-column-groups.component.html | 2 +- ...d-collapsible-column-groups.component.scss | 3 +++ ...id-column-data-types-sample.component.html | 15 ++++++----- ...id-column-data-types-sample.component.scss | 5 ++++ .../crud-sample.component.html | 1 - ...custom-kb-navigation-sample.component.html | 2 +- ...custom-kb-navigation-sample.component.scss | 1 + ...le-filtering-load-on-demand.component.html | 2 +- ...le-filtering-load-on-demand.component.scss | 2 ++ ...d-filtering-template-sample.component.html | 4 +-- ...d-filtering-template-sample.component.scss | 5 ++++ .../grid-mrl-custom-navigation.component.html | 2 +- .../grid-mrl-custom-navigation.component.scss | 3 ++- ...id-multi-row-layout-styling.component.html | 3 +-- ...id-multi-row-layout-styling.component.scss | 1 + .../grid-multi-row-layout.component.html | 3 +-- .../grid-multi-row-layout.component.scss | 3 ++- .../grid-pager-sample.component.html | 10 +------- .../grid-pager-sample.component.ts | 2 -- .../remote-paging-sample.component.html | 1 - .../grid-save-state/grid-state.component.html | 4 +-- .../grid-save-state/grid-state.component.scss | 4 +++ .../grid-sorting-sample.component.html | 1 - .../grid-sorting-sample.component.scss | 4 +++ .../grid-sorting-styling.component.html | 2 +- .../grid-sorting-styling.component.scss | 4 +++ .../grid-summary-template.component.html | 4 +-- .../grid-summary-template.component.ts | 25 +++++++++++-------- ...hical-grid-column-selection.component.html | 2 +- ...hical-grid-column-selection.component.scss | 6 ++++- .../hgrid-summary-template.component.html | 4 +-- .../hgrid-summary-template.component.ts | 24 ++++++++++-------- ...le-filtering-load-on-demand.component.html | 2 +- ...le-filtering-load-on-demand.component.scss | 1 + ...cal-grid-filtering-template.component.html | 4 +-- ...cal-grid-filtering-template.component.scss | 7 +++++- ...rarchical-grid-pager-sample.component.html | 10 +------- ...action-strip-paragraph-menu.component.html | 2 +- .../action-strip-paragraph-menu.component.ts | 3 +-- .../action-strip-paragraph.component.html | 2 +- .../action-strip-paragraph.component.ts | 2 -- .../localization-all-resources.component.html | 2 +- .../localization-all-resources.component.scss | 1 + .../tree-grid-column-selection.component.html | 2 +- .../tree-grid-column-selection.component.scss | 6 ++++- ...le-filtering-load-on-demand.component.html | 2 +- ...le-filtering-load-on-demand.component.scss | 1 + ...d-filtering-template-sample.component.html | 4 +-- ...d-filtering-template-sample.component.scss | 5 ++++ ...up-by-load-on-demand-sample.component.html | 3 +-- .../tree-grid-pager-sample.component.html | 10 +------- ...e-grid-remote-paging-sample.component.html | 1 - .../tree-grid-sorting-sample.component.html | 1 - .../tree-grid-sorting-sample.component.scss | 1 + ...lidator-service-cross-field.component.scss | 2 +- .../treegrid-allData-summary.component.html | 2 +- .../treegrid-allData-summary.component.scss | 3 ++- .../treegrid-summary-template.component.html | 6 ++--- .../treegrid-summary-template.component.ts | 25 +++++++++++-------- 67 files changed, 173 insertions(+), 132 deletions(-) diff --git a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.html b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.html index 6a099873fd..f1c3b27b0d 100644 --- a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.html +++ b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.html @@ -9,7 +9,7 @@
- + view_list @@ -21,7 +21,7 @@
- + cell_wifi @@ -35,7 +35,7 @@
- @@ -67,7 +67,7 @@
- @@ -99,7 +99,7 @@
- @@ -131,7 +131,7 @@
- diff --git a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.scss b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.scss index cb28f1a0a1..dd4842ab34 100644 --- a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.scss +++ b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.scss @@ -128,6 +128,8 @@ } igx-grid { + --ig-size: var(--ig-size-small); + .grid-area { margin-block-start: 1rem; overflow-y: hidden; @@ -181,3 +183,8 @@ igx-grid { } } } + +igx-select { + --ig-size: var(--ig-size-small); +} + diff --git a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.ts b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.ts index dab61bd11a..787e8420c7 100644 --- a/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.ts +++ b/projects/app-lob/src/app/grid-finjs-dock-manager/grid-finjs-dock-manager.component.ts @@ -300,7 +300,6 @@ export class GridFinJSDockManagerComponent implements OnInit, OnDestroy, AfterVi }); grid.columnSelection = 'multiple'; grid.cellSelection = 'none'; - grid.displayDensity = 'compact'; // Use detectChanges because of ExpressionChangedAfterItHasBeenChecked Error when creating a dynamic pane this.cdr.detectChanges(); diff --git a/src/app/grid/column-selection-sample/column-selection-sample.component.html b/src/app/grid/column-selection-sample/column-selection-sample.component.html index e159a2e770..d6638b78eb 100644 --- a/src/app/grid/column-selection-sample/column-selection-sample.component.html +++ b/src/app/grid/column-selection-sample/column-selection-sample.component.html @@ -2,7 +2,7 @@ - + None Single diff --git a/src/app/grid/column-selection-sample/column-selection-sample.component.scss b/src/app/grid/column-selection-sample/column-selection-sample.component.scss index 98592bc91b..f5a78829cb 100644 --- a/src/app/grid/column-selection-sample/column-selection-sample.component.scss +++ b/src/app/grid/column-selection-sample/column-selection-sample.component.scss @@ -1,3 +1,7 @@ .grid-wrapper { padding: 16px; -} \ No newline at end of file +} + +igx-select { + --ig-size: var(--ig-size-small); +} diff --git a/src/app/grid/grid-batchEditing-remotePaging/batch-editing-remote-paging.component.html b/src/app/grid/grid-batchEditing-remotePaging/batch-editing-remote-paging.component.html index f62620aff3..98487aca7e 100644 --- a/src/app/grid/grid-batchEditing-remotePaging/batch-editing-remote-paging.component.html +++ b/src/app/grid/grid-batchEditing-remotePaging/batch-editing-remote-paging.component.html @@ -4,7 +4,7 @@ diff --git a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html index 37d541746e..233090a061 100644 --- a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html +++ b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.html @@ -8,7 +8,7 @@ + [displayKey]="'name'" width="100%"> @@ -17,7 +17,7 @@
+ [(ngModel)]="cell.value" [displayKey]="'name'" [disabled]="cell.row.cells[2].value === ''"> diff --git a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss index 4c53688301..b25245dba0 100644 --- a/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss +++ b/src/app/grid/grid-cascading-combos/grid-cascading-combos.component.scss @@ -1,6 +1,10 @@ .grid__wrapper { --ig-size: var(--ig-size-medium); padding: 16px; + + igx-simple-combo { + --ig-size: var(--ig-size-small); + } } .dialogNewRecord { diff --git a/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.html b/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.html index 21b5b6015a..6288fc7ad8 100644 --- a/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.html +++ b/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.html @@ -1,7 +1,7 @@
- + {{column.expanded ? 'expand_more' : 'chevron_right'}} diff --git a/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.scss b/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.scss index e69de29bb2..7a2f4eca34 100644 --- a/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.scss +++ b/src/app/grid/grid-collapsible-columnGroups/grid-collapsible-column-groups.component.scss @@ -0,0 +1,3 @@ +igx-grid { + --ig-size: var(--ig-size-medium); +} diff --git a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html index 60cb307f0b..7d53f6c9ed 100644 --- a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html +++ b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html @@ -1,6 +1,6 @@
- + Locale: {{ locale }} @@ -8,7 +8,7 @@ Applicable to date, number, currency and percent type columns - + DateTime format: @@ -17,7 +17,7 @@ Applied to 'dateTime' type column only - + Date format: @@ -26,7 +26,7 @@ Applied to 'date' type column only - + Time format: @@ -35,7 +35,7 @@ Applied to 'time' type column only - + Timezone: {{ timezone }} @@ -43,7 +43,7 @@ Applicable to dateTime type columns only - + Currency Code: {{ currencyCode }} @@ -55,7 +55,7 @@
- +
Set digits info @@ -72,7 +72,6 @@ {{ digitsInfoMessage }} - diff --git a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss index d58355e454..d211df30c1 100644 --- a/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss +++ b/src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.scss @@ -1,5 +1,10 @@ @use '../../../variables' as *; +igx-select, +igx-input-group { + --ig-size: var(--ig-size-small); +} + .grid-wrapper { --ig-size: var(--ig-size-small); margin: 15px; diff --git a/src/app/grid/grid-crud-sample/crud-sample.component.html b/src/app/grid/grid-crud-sample/crud-sample.component.html index 5482961e2f..0200c21bc8 100644 --- a/src/app/grid/grid-crud-sample/crud-sample.component.html +++ b/src/app/grid/grid-crud-sample/crud-sample.component.html @@ -17,7 +17,6 @@ [totalRecords]="totalCount" [(page)]="page" [(perPage)]="perPage" [selectOptions]="selectOptions" - [displayDensity]="grid.displayDensity" (pageChange)="paginate($event)" (perPageChange)="perPageChange($event)"> diff --git a/src/app/grid/grid-custom-kb-navigation/grid-custom-kb-navigation-sample.component.html b/src/app/grid/grid-custom-kb-navigation/grid-custom-kb-navigation-sample.component.html index 2881abaabc..5ca4d7e5a1 100644 --- a/src/app/grid/grid-custom-kb-navigation/grid-custom-kb-navigation-sample.component.html +++ b/src/app/grid/grid-custom-kb-navigation/grid-custom-kb-navigation-sample.component.html @@ -1,5 +1,5 @@
- - diff --git a/src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component.scss b/src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component.scss index 7797492956..fc196fc2dc 100644 --- a/src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component.scss +++ b/src/app/grid/grid-excel-style-filtering-load-on-demand/grid-excel-style-filtering-load-on-demand.component.scss @@ -1,4 +1,6 @@ .grid__wrapper { + --ig-size: var(--ig-size-medium); + margin: 0 auto; padding: 16px; } diff --git a/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.html b/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.html index dab60c03e5..3a15b8b1a8 100644 --- a/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.html +++ b/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.html @@ -20,7 +20,7 @@
- + search @@ -43,7 +43,7 @@
+ placeholder="Filter..." [displayFormat]="displayDateFormat" type="box"> search diff --git a/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.scss b/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.scss index 7aa7cbcb7e..06b4c8fd95 100644 --- a/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.scss +++ b/src/app/grid/grid-filtering-template-sample/grid-filtering-template-sample.component.scss @@ -1,3 +1,8 @@ +igx-input-group, +igx-date-picker { + --ig-size: var(--ig-size-small); +} + .grid__wrapper { padding-top: 16px; margin: 0 16px; diff --git a/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.html b/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.html index b97196dfa8..a3d3b11b61 100644 --- a/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.html +++ b/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.html @@ -4,7 +4,7 @@ height="570px" [data]="sourceData" [autoGenerate]="false" - [displayDensity]="'cosy'" (gridKeydown)="customNavigation($event)" > + (gridKeydown)="customNavigation($event)"> diff --git a/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.scss b/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.scss index a9820d407d..50da1cdef3 100644 --- a/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.scss +++ b/src/app/grid/grid-mrl-custom-navigation/grid-mrl-custom-navigation.component.scss @@ -1,3 +1,4 @@ .wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; -} \ No newline at end of file +} diff --git a/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.html b/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.html index c911f5129c..32ee570550 100644 --- a/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.html +++ b/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.html @@ -4,8 +4,7 @@ height="720px" [data]="sourceData" [autoGenerate]="false" - [sortingExpressions]="sort" - [displayDensity]="'cosy'"> + [sortingExpressions]="sort"> diff --git a/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.scss b/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.scss index c83ff630b0..1c0204ab9f 100644 --- a/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.scss +++ b/src/app/grid/grid-multi-row-layout-styling/grid-multi-row-layout-styling.component.scss @@ -1,6 +1,7 @@ @use '../../../variables' as *; .wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; } diff --git a/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.html b/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.html index f06fa5d985..725db49b29 100644 --- a/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.html +++ b/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.html @@ -6,8 +6,7 @@ [autoGenerate]="false" [groupingExpressions]="group" [sortingExpressions]="sort" - [allowFiltering]="true" - [displayDensity]="'cosy'"> + [allowFiltering]="true"> diff --git a/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.scss b/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.scss index a9820d407d..50da1cdef3 100644 --- a/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.scss +++ b/src/app/grid/grid-multi-row-layout/grid-multi-row-layout.component.scss @@ -1,3 +1,4 @@ .wrapper { + --ig-size: var(--ig-size-medium); padding: 16px; -} \ No newline at end of file +} diff --git a/src/app/grid/grid-pager-sample/grid-pager-sample.component.html b/src/app/grid/grid-pager-sample/grid-pager-sample.component.html index 0df3e4ca53..cb3c0ee479 100644 --- a/src/app/grid/grid-pager-sample/grid-pager-sample.component.html +++ b/src/app/grid/grid-pager-sample/grid-pager-sample.component.html @@ -2,7 +2,7 @@ + [selectOptions]="selectOptions"> @@ -29,14 +29,6 @@
- -
- - - {{ density }} - - -
Hide Dropdown Hide Pager
diff --git a/src/app/grid/grid-pager-sample/grid-pager-sample.component.ts b/src/app/grid/grid-pager-sample/grid-pager-sample.component.ts index ce41c429ae..8853688a53 100644 --- a/src/app/grid/grid-pager-sample/grid-pager-sample.component.ts +++ b/src/app/grid/grid-pager-sample/grid-pager-sample.component.ts @@ -12,7 +12,6 @@ export class GridPagerSampleComponent implements OnInit, AfterViewInit { paginator: IgxPaginatorComponent; public data: any[]; - public densityOptions: string[]; public isDropdownHidden = false; public isPagerHidden = false; public selectOptions = [5, 15, 20, 50]; @@ -26,7 +25,6 @@ export class GridPagerSampleComponent implements OnInit, AfterViewInit { public ngOnInit(): void { this.data = athletesData; - this.densityOptions = ['compact', 'cosy', 'comfortable']; } public ngAfterViewInit(): void { diff --git a/src/app/grid/grid-remote-paging-sample/remote-paging-sample.component.html b/src/app/grid/grid-remote-paging-sample/remote-paging-sample.component.html index f3b354b57d..701f729d96 100644 --- a/src/app/grid/grid-remote-paging-sample/remote-paging-sample.component.html +++ b/src/app/grid/grid-remote-paging-sample/remote-paging-sample.component.html @@ -11,7 +11,6 @@ [(page)]="page" [(perPage)]="perPage" [selectOptions]="selectOptions" - [displayDensity]="grid1.displayDensity" (pageChange)="paginate($event)" (perPageChange)="perPageChange($event)"> diff --git a/src/app/grid/grid-save-state/grid-state.component.html b/src/app/grid/grid-save-state/grid-state.component.html index fcd5cf6e37..694b5bc5ca 100644 --- a/src/app/grid/grid-save-state/grid-state.component.html +++ b/src/app/grid/grid-save-state/grid-state.component.html @@ -52,9 +52,9 @@ [data]="localData" [primaryKey]="'EmployeeID'" [rowEditable]="false" - [allowFiltering]="true" [filterMode]="'excelStyleFilter'" + [allowFiltering]="true" + [filterMode]="'excelStyleFilter'" [allowAdvancedFiltering]="true" - [displayDensity]="'cosy'" [cellSelection]="'multiple'" [rowSelection]="'none'"> diff --git a/src/app/grid/grid-save-state/grid-state.component.scss b/src/app/grid/grid-save-state/grid-state.component.scss index c13e245dd4..57a0304b82 100644 --- a/src/app/grid/grid-save-state/grid-state.component.scss +++ b/src/app/grid/grid-save-state/grid-state.component.scss @@ -34,4 +34,8 @@ margin: 0 16px; padding-top: 16px; width: 100%; + + igx-grid { + --ig-size: var(--ig-size-medium); + } } diff --git a/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.html b/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.html index d1985a612f..d3ce8a2797 100644 --- a/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.html +++ b/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.html @@ -12,7 +12,6 @@ diff --git a/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.scss b/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.scss index 6f05adbc6a..5c55bd400f 100644 --- a/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.scss +++ b/src/app/grid/grid-sorting-sample/grid-sorting-sample.component.scss @@ -1,3 +1,7 @@ +igx-simple-combo { + --ig-size: var(--ig-size-small); +} + .grid__wrapper { margin: 0 auto; padding: 16px; diff --git a/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.html b/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.html index 005e30c0bd..18fb50da4b 100644 --- a/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.html +++ b/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.html @@ -3,7 +3,7 @@ (sortingDone)="removeSorting($event)"> - + {{type.name}} diff --git a/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.scss b/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.scss index 78618f85ee..aae891bbed 100644 --- a/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.scss +++ b/src/app/grid/grid-sorting-styling/grid-sorting-styling.component.scss @@ -12,4 +12,8 @@ $custom-theme: grid-theme( .grid__wrapper { margin: 0 auto; padding: 16px; + + igx-select { + --ig-size: var(--ig-size-small); + } } diff --git a/src/app/grid/grid-summary-template/grid-summary-template.component.html b/src/app/grid/grid-summary-template/grid-summary-template.component.html index ee96fe00d8..8388b4c1be 100644 --- a/src/app/grid/grid-summary-template/grid-summary-template.component.html +++ b/src/app/grid/grid-summary-template/grid-summary-template.component.html @@ -5,10 +5,10 @@ Toggle Summaries - +
- diff --git a/src/app/grid/grid-summary-template/grid-summary-template.component.ts b/src/app/grid/grid-summary-template/grid-summary-template.component.ts index 454f0a8963..9c74ef9eb0 100644 --- a/src/app/grid/grid-summary-template/grid-summary-template.component.ts +++ b/src/app/grid/grid-summary-template/grid-summary-template.component.ts @@ -1,5 +1,5 @@ -import { Component, OnInit } from '@angular/core'; -import { DisplayDensity, IgxNumberSummaryOperand, IgxSummaryResult } from 'igniteui-angular'; +import { Component, HostBinding, OnInit } from '@angular/core'; +import { IgxNumberSummaryOperand, IgxSummaryResult } from 'igniteui-angular'; import { DATA } from '../../data/nwindData'; class DiscontinuedSummary { @@ -37,8 +37,8 @@ export class GridSummaryTemplateComponent implements OnInit { public discontinuedSummary = DiscontinuedSummary; public data; public summaryHeight = 135; - public displayDensity: DisplayDensity = 'cosy'; - public displayDensities; + public size = 'medium'; + public sizes; public hasSummary = true; constructor() { @@ -46,14 +46,19 @@ export class GridSummaryTemplateComponent implements OnInit { } public ngOnInit(): void { - this.displayDensities = [ - { label: 'compact', selected: this.displayDensity === 'compact', togglable: true }, - { label: 'cosy', selected: this.displayDensity === 'cosy', togglable: true }, - { label: 'comfortable', selected: this.displayDensity === 'comfortable', togglable: true } + this.sizes = [ + { label: 'small', selected: this.size === 'small', togglable: true }, + { label: 'medium', selected: this.size === 'medium', togglable: true }, + { label: 'large', selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event): void { - this.displayDensity = this.displayDensities[event.index].label; + public selectSize(event): void { + this.size = this.sizes[event.index].label; + } + + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; } } diff --git a/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.html b/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.html index ff5242158c..0201340974 100644 --- a/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.html +++ b/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.html @@ -3,7 +3,7 @@ [columnSelection]="currentColumnSelection"> - + None Single diff --git a/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.scss b/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.scss index c40111f6b3..65e97f912e 100644 --- a/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.scss +++ b/src/app/hierarchical-grid/column-selection/hierarchical-grid-column-selection.component.scss @@ -7,4 +7,8 @@ } .grid__wrapper { padding: 16px; -} \ No newline at end of file + + igx-select { + --ig-size: var(--ig-size-small); + } +} diff --git a/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.html b/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.html index b90108a7e1..9a23d90453 100644 --- a/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.html +++ b/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.html @@ -5,11 +5,11 @@
Toggle Summaries - +
- diff --git a/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.ts b/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.ts index 9a4e2b0218..12088e28d1 100644 --- a/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.ts +++ b/src/app/hierarchical-grid/hgrid-summary-template/hgrid-summary-template.component.ts @@ -1,6 +1,5 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, HostBinding, OnInit } from '@angular/core'; import { - DisplayDensity, IgxNumberSummaryOperand, IgxSummaryResult } from 'igniteui-angular'; @@ -55,22 +54,27 @@ export class HGridSummaryTemplateComponent implements OnInit { public grammySummary = GrammySummary; public numberSummary = CustomNumberSummary; public summaryHeight = 120; - public displayDensity: DisplayDensity = 'cosy'; - public displayDensities; + public size = 'medium'; + public sizes; public hasSummary = true; constructor() { } public ngOnInit(): void { this.localdata = SINGERS; - this.displayDensities = [ - { label: 'compact', selected: this.displayDensity === 'compact', togglable: true }, - { label: 'cosy', selected: this.displayDensity === 'cosy', togglable: true }, - { label: 'comfortable', selected: this.displayDensity === 'comfortable', togglable: true } + this.sizes = [ + { label: 'small', selected: this.size === 'small', togglable: true }, + { label: 'medium', selected: this.size === 'medium', togglable: true }, + { label: 'large', selected: this.size === 'large', togglable: true } ]; } - public selectDensity(event): void { - this.displayDensity = this.displayDensities[event.index].label; + @HostBinding('style.--ig-size') + protected get sizeStyle() { + return `var(--ig-size-${this.size})`; + } + + public selectSize(event): void { + this.size = this.sizes[event.index].label; } } diff --git a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.html b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.html index acabe02b56..8da95638ea 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.html @@ -1,5 +1,5 @@
- diff --git a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.scss b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.scss index a91a2aea90..d860adfd59 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-excel-style-filtering-load-on-demand/hierarchical-grid-excel-style-filtering-load-on-demand.component.scss @@ -1,4 +1,5 @@ .wrapper { + --ig-size: var(--ig-size-medium); margin: 16px; } diff --git a/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.html b/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.html index 3d6aae8dfb..d7e5d2d55b 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.html @@ -35,7 +35,7 @@
- + search @@ -58,7 +58,7 @@
+ placeholder="Filter..." [displayFormat]="displayDateFormat" type="box"> search diff --git a/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.scss b/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.scss index 11c1ffb8db..ed03094bd8 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.scss +++ b/src/app/hierarchical-grid/hierarchical-grid-filtering-template/hierarchical-grid-filtering-template.component.scss @@ -13,4 +13,9 @@ .grid__wrapper { margin: 0 auto; padding: 16px; -} \ No newline at end of file +} + +igx-input-group, +igx-date-picker { + --ig-size: var(--ig-size-small); +} diff --git a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html index 6e103b187e..ef54ef097d 100644 --- a/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html +++ b/src/app/hierarchical-grid/hierarchical-grid-pager-sample/hierarchical-grid-pager-sample.component.html @@ -1,6 +1,6 @@
- + @@ -46,14 +46,6 @@
- -
- - - {{ density }} - - -
Hide Dropdown Hide Pager
diff --git a/src/app/menus/action-strip/action-strip-paragraph-menu/action-strip-paragraph-menu.component.html b/src/app/menus/action-strip/action-strip-paragraph-menu/action-strip-paragraph-menu.component.html index ea7276b13d..22655ae1a7 100644 --- a/src/app/menus/action-strip/action-strip-paragraph-menu/action-strip-paragraph-menu.component.html +++ b/src/app/menus/action-strip/action-strip-paragraph-menu/action-strip-paragraph-menu.component.html @@ -10,7 +10,7 @@ mollis luctus. Morbi lacinia orci augue, sed blandit est ornare placerat. Cras a ante nec mauris euismod aliquam vel pulvinar urna. Morbi tincidunt fringilla tortor, at ultricies neque rhoncus ac.

- +