Skip to content

Commit d99e274

Browse files
committed
Merge branch 'gedinakova/pdf-custom-font-live-editing' of https://github.com/IgniteUI/igniteui-angular-samples into gedinakova/pdf-custom-font-live-editing
2 parents ea2280a + e7871e5 commit d99e274

34 files changed

Lines changed: 371 additions & 781 deletions

File tree

package-lock.json

Lines changed: 8 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@
7373
"file-saver": "^2.0.2",
7474
"fuse.js": "^7.1.0",
7575
"hammerjs": "^2.0.8",
76-
"igniteui-angular": "^21.1.0-rc.1",
76+
"igniteui-angular": "^21.1.0-rc.2",
7777
"igniteui-angular-charts": "^20.2.0",
7878
"igniteui-angular-core": "^20.2.0",
7979
"igniteui-angular-extras": "^21.0.0",
80-
"igniteui-angular-i18n": "^21.1.0-rc.1",
80+
"igniteui-angular-i18n": "^21.1.0-rc.2",
8181
"igniteui-dockmanager": "^1.17.0",
8282
"igniteui-grid-lite": "^0.5.0",
8383
"igniteui-i18n-resources": "^1.0.2",
@@ -113,8 +113,8 @@
113113
"@angular/compiler": "^21.0.0"
114114
},
115115
"igniteui-angular-extras": {
116-
"igniteui-angular": "^21.1.0-rc.1",
117-
"@infragistics/igniteui-angular": "^21.1.0-rc.1",
116+
"igniteui-angular": "^21.1.0-rc.2",
117+
"@infragistics/igniteui-angular": "^21.1.0-rc.2",
118118
"@angular/core": "^21.0.0",
119119
"@angular/common": "^21.0.0",
120120
"@angular/animations": "^21.0.0"
Lines changed: 67 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,68 @@
11
<div class="grid-lite-wrapper">
2-
<section class="panel">
3-
<igc-button variant="outlined">Column properties</igc-button>
4-
<igc-switch
5-
label-position="before"
6-
[checked]="hasFormatters"
7-
(igcChange)="toggleFormatters($event.detail.checked)">
8-
Value formatters:
9-
</igc-switch>
10-
</section>
11-
12-
<igc-grid-lite
13-
#gridLite
14-
[columns]="columns"
15-
[data]="data">
16-
</igc-grid-lite>
17-
</div>
2+
<section class="panel">
3+
<button igxButton="outlined" [igxToggleAction]="dropdown" [igxDropDownItemNavigation]="dropdown">
4+
Column Properties
5+
</button>
6+
<igx-drop-down #dropdown [isOverlay]="true" [autoClose]="false" [closed]="false">
7+
@for (column of columns; track column) {
8+
<igx-drop-down-item>
9+
<div class="config">
10+
<span class="config-key">{{ column.header }}</span>
11+
<igx-checkbox
12+
#hiddenChk
13+
[checked]="column.hidden"
14+
(click)="$event.stopPropagation()"
15+
(change)="toggleColumnProperty(column, 'hidden', hiddenChk.checked)">
16+
Hidden
17+
</igx-checkbox>
18+
<igx-checkbox
19+
#resizableChk
20+
[checked]="column.resizable"
21+
(click)="$event.stopPropagation()"
22+
(change)="toggleColumnProperty(column, 'resizable', resizableChk.checked)">
23+
Resizable
24+
</igx-checkbox>
25+
<igx-checkbox
26+
#filterChk
27+
[checked]="column.filterable"
28+
(click)="$event.stopPropagation()"
29+
(change)="toggleColumnProperty(column, 'filterable', filterChk.checked)">
30+
Filter
31+
</igx-checkbox>
32+
<igx-checkbox
33+
#sortableChk
34+
[checked]="column.sortable"
35+
(click)="$event.stopPropagation()"
36+
(change)="toggleColumnProperty(column, 'sortable', sortableChk.checked)">
37+
Sort
38+
</igx-checkbox>
39+
</div>
40+
</igx-drop-down-item>
41+
}
42+
</igx-drop-down>
43+
44+
<igx-switch
45+
labelPosition="before"
46+
[checked]="hasFormatters"
47+
(igxChange)="toggleFormatters($event)">
48+
Value formatters:
49+
</igx-switch>
50+
</section>
51+
52+
<igc-grid-lite [data]="data">
53+
@for (col of columns; track col) {
54+
<igc-grid-lite-column
55+
[field]="col.field"
56+
[header]="col.header"
57+
[dataType]="col.dataType"
58+
[hidden]="col.hidden"
59+
[resizable]="col.resizable"
60+
[sortable]="col.sortable"
61+
[filterable]="col.filterable"
62+
[cellTemplate]="col.field === 'price' || col.field === 'total'
63+
? (hasFormatters ? formatCurrency : undefined)
64+
: (col.field === 'rating' ? ratingTemplate : undefined)">
65+
</igc-grid-lite-column>
66+
}
67+
</igc-grid-lite>
68+
</div>
Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
1-
:host {
2-
contain: content;
3-
--ig-size: 2;
1+
.panel {
2+
margin: 1rem 0;
3+
display: flex;
4+
flex-flow: row nowrap;
5+
justify-content: space-between;
6+
align-items: center;
47
}
58

6-
.grid-lite-wrapper {
7-
width: 100%;
8-
height: calc(100% - 50px);
9+
.config {
10+
display: grid;
11+
grid-template-columns: 180px repeat(4, max-content);
12+
column-gap: 1rem;
13+
align-items: center;
14+
width: 100%;
915
}
1016

11-
.panel {
12-
margin: 1rem 0;
13-
display: flex;
14-
flex-flow: row nowrap;
15-
justify-content: space-between;
16-
align-items: center;
17+
.config-key {
18+
font-weight: bold;
19+
white-space: nowrap;
20+
}
21+
22+
.config igx-checkbox {
23+
white-space: nowrap;
24+
}
25+
26+
.grid-lite-wrapper {
27+
width: 100%;
28+
height: 100%;
1729
}
1830

1931
igc-grid-lite {
20-
min-height: 65vh;
32+
min-height: 65vh;
33+
--ig-size: 2;
2134
}

0 commit comments

Comments
 (0)