@skyux/code-examples 14.4.0 → 14.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, inject, ChangeDetectionStrategy, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed, linkedSignal, untracked, ViewChild, InjectionToken } from '@angular/core';
|
|
2
|
+
import { Component, inject, ChangeDetectionStrategy, Input, viewChild, signal, effect, Injectable, ChangeDetectorRef, input, computed, model, resource, afterNextRender, linkedSignal, untracked, ViewChild, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i2 from '@skyux/action-bars';
|
|
4
4
|
import { SkySummaryActionBarModule } from '@skyux/action-bars';
|
|
5
5
|
import * as i1 from '@skyux/indicators';
|
|
@@ -15,7 +15,7 @@ import { SkyTabsModule, SkySectionedFormService, SkySectionedFormMessageType, Sk
|
|
|
15
15
|
import * as i1$4 from '@skyux/ag-grid';
|
|
16
16
|
import { SkyAgGridService, SkyCellType, SkyAgGridModule, SkyAgGridHeaderInfo } from '@skyux/ag-grid';
|
|
17
17
|
import * as i1$5 from '@skyux/layout';
|
|
18
|
-
import { SkyToolbarModule, SkyDescriptionListModule, SkyFluidGridModule, SkyActionButtonModule, SkyBackToTopModule,
|
|
18
|
+
import { SkyToolbarModule, SkyDescriptionListModule, SkyBoxModule, SkyFluidGridModule, SkyActionButtonModule, SkyBackToTopModule, SkyCardModule, SkyDefinitionListModule, SkyFormatModule, SkyInlineDeleteModule, SkyPageSummaryModule, SkyTextExpandRepeaterModule, SkyTextExpandModule } from '@skyux/layout';
|
|
19
19
|
import * as i2$1 from '@skyux/lookup';
|
|
20
20
|
import { SkySearchModule, SkyAutocompleteModule, SkyCountryFieldModule, SkyLookupModule, SkyLookupShowMoreCustomPickerContext, SkySelectionModalService } from '@skyux/lookup';
|
|
21
21
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
@@ -51,6 +51,7 @@ import * as i1$9 from '@skyux/icon';
|
|
|
51
51
|
import { SkyIconModule } from '@skyux/icon';
|
|
52
52
|
import * as i4$1 from '@angular/common';
|
|
53
53
|
import { CommonModule } from '@angular/common';
|
|
54
|
+
import { SkyDataGrid, SkyDataGridColumn } from '@skyux/data-grid';
|
|
54
55
|
import * as i2$8 from '@skyux/datetime';
|
|
55
56
|
import { SkyDatePipeModule, SkyDateRangeCalculatorId, SkyDateRangePickerModule, SkyDateRangeService, SkyDateRangeCalculatorType, SkyDatepickerModule, SkyTimepickerModule } from '@skyux/datetime';
|
|
56
57
|
import * as i1$a from '@skyux/errors';
|
|
@@ -245,7 +246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
245
246
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
246
247
|
}] });
|
|
247
248
|
|
|
248
|
-
const DEPARTMENTS$
|
|
249
|
+
const DEPARTMENTS$c = [
|
|
249
250
|
{
|
|
250
251
|
id: '1',
|
|
251
252
|
name: 'Marketing',
|
|
@@ -263,7 +264,7 @@ const DEPARTMENTS$a = [
|
|
|
263
264
|
name: 'Customer Support',
|
|
264
265
|
},
|
|
265
266
|
];
|
|
266
|
-
const JOB_TITLES$
|
|
267
|
+
const JOB_TITLES$c = {
|
|
267
268
|
Marketing: [
|
|
268
269
|
{
|
|
269
270
|
id: '1',
|
|
@@ -331,16 +332,16 @@ const AG_GRID_DEMO_DATA$b = [
|
|
|
331
332
|
name: 'Billy Bob',
|
|
332
333
|
age: 55,
|
|
333
334
|
startDate: new Date('12/1/1994'),
|
|
334
|
-
department: DEPARTMENTS$
|
|
335
|
-
jobTitle: JOB_TITLES$
|
|
335
|
+
department: DEPARTMENTS$c[3],
|
|
336
|
+
jobTitle: JOB_TITLES$c['Customer Support'][1],
|
|
336
337
|
},
|
|
337
338
|
{
|
|
338
339
|
selected: false,
|
|
339
340
|
name: 'Jane Deere',
|
|
340
341
|
age: 33,
|
|
341
342
|
startDate: new Date('7/15/2009'),
|
|
342
|
-
department: DEPARTMENTS$
|
|
343
|
-
jobTitle: JOB_TITLES$
|
|
343
|
+
department: DEPARTMENTS$c[2],
|
|
344
|
+
jobTitle: JOB_TITLES$c['Engineering'][2],
|
|
344
345
|
},
|
|
345
346
|
{
|
|
346
347
|
selected: false,
|
|
@@ -348,7 +349,7 @@ const AG_GRID_DEMO_DATA$b = [
|
|
|
348
349
|
age: 38,
|
|
349
350
|
startDate: new Date('9/1/2017'),
|
|
350
351
|
endDate: new Date('9/30/2017'),
|
|
351
|
-
department: DEPARTMENTS$
|
|
352
|
+
department: DEPARTMENTS$c[1],
|
|
352
353
|
},
|
|
353
354
|
{
|
|
354
355
|
selected: false,
|
|
@@ -356,32 +357,32 @@ const AG_GRID_DEMO_DATA$b = [
|
|
|
356
357
|
age: 51,
|
|
357
358
|
startDate: new Date('1/1/2012'),
|
|
358
359
|
endDate: new Date('6/15/2018'),
|
|
359
|
-
department: DEPARTMENTS$
|
|
360
|
-
jobTitle: JOB_TITLES$
|
|
360
|
+
department: DEPARTMENTS$c[2],
|
|
361
|
+
jobTitle: JOB_TITLES$c['Engineering'][4],
|
|
361
362
|
},
|
|
362
363
|
{
|
|
363
364
|
selected: true,
|
|
364
365
|
name: 'Emily Johnson',
|
|
365
366
|
age: 41,
|
|
366
367
|
startDate: new Date('1/15/2014'),
|
|
367
|
-
department: DEPARTMENTS$
|
|
368
|
-
jobTitle: JOB_TITLES$
|
|
368
|
+
department: DEPARTMENTS$c[0],
|
|
369
|
+
jobTitle: JOB_TITLES$c['Marketing'][2],
|
|
369
370
|
},
|
|
370
371
|
{
|
|
371
372
|
selected: false,
|
|
372
373
|
name: 'Nicole Davidson',
|
|
373
374
|
age: 22,
|
|
374
375
|
startDate: new Date('11/1/2019'),
|
|
375
|
-
department: DEPARTMENTS$
|
|
376
|
-
jobTitle: JOB_TITLES$
|
|
376
|
+
department: DEPARTMENTS$c[2],
|
|
377
|
+
jobTitle: JOB_TITLES$c['Engineering'][0],
|
|
377
378
|
},
|
|
378
379
|
{
|
|
379
380
|
selected: false,
|
|
380
381
|
name: 'Carl Roberts',
|
|
381
382
|
age: 23,
|
|
382
383
|
startDate: new Date('11/1/2019'),
|
|
383
|
-
department: DEPARTMENTS$
|
|
384
|
-
jobTitle: JOB_TITLES$
|
|
384
|
+
department: DEPARTMENTS$c[2],
|
|
385
|
+
jobTitle: JOB_TITLES$c['Engineering'][3],
|
|
385
386
|
},
|
|
386
387
|
];
|
|
387
388
|
|
|
@@ -495,7 +496,7 @@ let EditModalComponent$2 = class EditModalComponent {
|
|
|
495
496
|
cellEditorParams: (params) => {
|
|
496
497
|
return {
|
|
497
498
|
skyComponentProperties: {
|
|
498
|
-
data: DEPARTMENTS$
|
|
499
|
+
data: DEPARTMENTS$c,
|
|
499
500
|
selectionChange: (change) => {
|
|
500
501
|
this.#departmentSelectionChange(change, params.node);
|
|
501
502
|
},
|
|
@@ -518,7 +519,7 @@ let EditModalComponent$2 = class EditModalComponent {
|
|
|
518
519
|
const editParams = { skyComponentProperties: { data: [] } };
|
|
519
520
|
if (selectedDepartment) {
|
|
520
521
|
editParams.skyComponentProperties.data =
|
|
521
|
-
JOB_TITLES$
|
|
522
|
+
JOB_TITLES$c[selectedDepartment];
|
|
522
523
|
}
|
|
523
524
|
return editParams;
|
|
524
525
|
},
|
|
@@ -734,7 +735,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
734
735
|
args: [{ selector: 'app-ag-grid-data-entry-grid-basic-example', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AgGridAngular, SkyAgGridModule, SkySearchModule, SkyToolbarModule], template: "<sky-toolbar>\n <sky-toolbar-item>\n <button class=\"sky-btn sky-btn-primary\" type=\"button\" (click)=\"openModal()\">\n Edit\n </button>\n </sky-toolbar-item>\n <sky-toolbar-item>\n <sky-search\n [debounceTime]=\"250\"\n (searchApply)=\"searchApplied($event)\"\n (searchChange)=\"searchApplied($event)\"\n (searchClear)=\"searchApplied($event)\"\n />\n </sky-toolbar-item>\n</sky-toolbar>\n<sky-ag-grid-wrapper>\n <ag-grid-angular [gridOptions]=\"gridOptions\" />\n</sky-ag-grid-wrapper>\n" }]
|
|
735
736
|
}], ctorParameters: () => [] });
|
|
736
737
|
|
|
737
|
-
const DEPARTMENTS$
|
|
738
|
+
const DEPARTMENTS$b = [
|
|
738
739
|
{
|
|
739
740
|
id: '1',
|
|
740
741
|
name: 'Marketing',
|
|
@@ -752,7 +753,7 @@ const DEPARTMENTS$9 = [
|
|
|
752
753
|
name: 'Customer Support',
|
|
753
754
|
},
|
|
754
755
|
];
|
|
755
|
-
const JOB_TITLES$
|
|
756
|
+
const JOB_TITLES$b = {
|
|
756
757
|
Marketing: [
|
|
757
758
|
{
|
|
758
759
|
id: '1',
|
|
@@ -821,8 +822,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
821
822
|
name: 'Billy Bob',
|
|
822
823
|
age: 55,
|
|
823
824
|
startDate: new Date('12/1/1994'),
|
|
824
|
-
department: DEPARTMENTS$
|
|
825
|
-
jobTitle: JOB_TITLES$
|
|
825
|
+
department: DEPARTMENTS$b[3],
|
|
826
|
+
jobTitle: JOB_TITLES$b['Customer Support'][1],
|
|
826
827
|
},
|
|
827
828
|
{
|
|
828
829
|
id: 'aea50a38-aa1e-44e0-94b5-52d3f577767f',
|
|
@@ -830,8 +831,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
830
831
|
name: 'Jane Deere',
|
|
831
832
|
age: 33,
|
|
832
833
|
startDate: new Date('7/15/2009'),
|
|
833
|
-
department: DEPARTMENTS$
|
|
834
|
-
jobTitle: JOB_TITLES$
|
|
834
|
+
department: DEPARTMENTS$b[2],
|
|
835
|
+
jobTitle: JOB_TITLES$b['Engineering'][2],
|
|
835
836
|
},
|
|
836
837
|
{
|
|
837
838
|
id: 'e74afbe4-5016-4a20-9803-30a301835c4f',
|
|
@@ -840,8 +841,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
840
841
|
age: 38,
|
|
841
842
|
startDate: new Date('9/1/2017'),
|
|
842
843
|
endDate: new Date('9/30/2017'),
|
|
843
|
-
department: DEPARTMENTS$
|
|
844
|
-
jobTitle: JOB_TITLES$
|
|
844
|
+
department: DEPARTMENTS$b[1],
|
|
845
|
+
jobTitle: JOB_TITLES$b['Sales'][1],
|
|
845
846
|
},
|
|
846
847
|
{
|
|
847
848
|
id: '0274faf9-388e-497d-bced-f2bef3eafcfd',
|
|
@@ -850,8 +851,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
850
851
|
age: 51,
|
|
851
852
|
startDate: new Date('1/1/2012'),
|
|
852
853
|
endDate: new Date('6/15/2018'),
|
|
853
|
-
department: DEPARTMENTS$
|
|
854
|
-
jobTitle: JOB_TITLES$
|
|
854
|
+
department: DEPARTMENTS$b[2],
|
|
855
|
+
jobTitle: JOB_TITLES$b['Engineering'][4],
|
|
855
856
|
},
|
|
856
857
|
{
|
|
857
858
|
id: '09b7da69-0272-4fe0-ace3-658a6d8f175c',
|
|
@@ -859,8 +860,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
859
860
|
name: 'Emily Johnson',
|
|
860
861
|
age: 41,
|
|
861
862
|
startDate: new Date('1/15/2014'),
|
|
862
|
-
department: DEPARTMENTS$
|
|
863
|
-
jobTitle: JOB_TITLES$
|
|
863
|
+
department: DEPARTMENTS$b[0],
|
|
864
|
+
jobTitle: JOB_TITLES$b['Marketing'][2],
|
|
864
865
|
},
|
|
865
866
|
{
|
|
866
867
|
id: '3accf076-fff1-4229-bad3-7d2d42d2c42a',
|
|
@@ -868,8 +869,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
868
869
|
name: 'Nicole Davidson',
|
|
869
870
|
age: 22,
|
|
870
871
|
startDate: new Date('11/1/2019'),
|
|
871
|
-
department: DEPARTMENTS$
|
|
872
|
-
jobTitle: JOB_TITLES$
|
|
872
|
+
department: DEPARTMENTS$b[2],
|
|
873
|
+
jobTitle: JOB_TITLES$b['Engineering'][0],
|
|
873
874
|
},
|
|
874
875
|
{
|
|
875
876
|
id: 'a8456cf4-4f8d-40ee-a91a-ece9c2327fe4',
|
|
@@ -877,8 +878,8 @@ const AG_GRID_DEMO_DATA$a = [
|
|
|
877
878
|
name: 'Carl Roberts',
|
|
878
879
|
age: 23,
|
|
879
880
|
startDate: new Date('11/1/2019'),
|
|
880
|
-
department: DEPARTMENTS$
|
|
881
|
-
jobTitle: JOB_TITLES$
|
|
881
|
+
department: DEPARTMENTS$b[2],
|
|
882
|
+
jobTitle: JOB_TITLES$b['Engineering'][3],
|
|
882
883
|
},
|
|
883
884
|
];
|
|
884
885
|
|
|
@@ -934,7 +935,7 @@ let EditModalComponent$1 = class EditModalComponent {
|
|
|
934
935
|
cellEditorParams: (params) => {
|
|
935
936
|
return {
|
|
936
937
|
skyComponentProperties: {
|
|
937
|
-
data: DEPARTMENTS$
|
|
938
|
+
data: DEPARTMENTS$b,
|
|
938
939
|
selectionChange: (change) => {
|
|
939
940
|
this.#departmentSelectionChange(change, params.node);
|
|
940
941
|
},
|
|
@@ -957,7 +958,7 @@ let EditModalComponent$1 = class EditModalComponent {
|
|
|
957
958
|
const editParams = { skyComponentProperties: { data: [] } };
|
|
958
959
|
if (selectedDepartment) {
|
|
959
960
|
editParams.skyComponentProperties.data =
|
|
960
|
-
JOB_TITLES$
|
|
961
|
+
JOB_TITLES$b[selectedDepartment];
|
|
961
962
|
}
|
|
962
963
|
return editParams;
|
|
963
964
|
},
|
|
@@ -1019,7 +1020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1019
1020
|
}] });
|
|
1020
1021
|
|
|
1021
1022
|
let ExampleService$6 = class ExampleService {
|
|
1022
|
-
#jobs = Object.values(JOB_TITLES$
|
|
1023
|
+
#jobs = Object.values(JOB_TITLES$b).flat();
|
|
1023
1024
|
search(searchText) {
|
|
1024
1025
|
searchText = searchText.toUpperCase();
|
|
1025
1026
|
const matchingJobs = this.#jobs.filter((job) => job.name?.toUpperCase().includes(searchText));
|
|
@@ -1413,7 +1414,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1413
1414
|
], template: "<sky-data-manager>\n <sky-data-manager-toolbar>\n <sky-data-manager-toolbar-left-item>\n <button\n class=\"sky-btn sky-btn-primary\"\n type=\"button\"\n (click)=\"openModal()\"\n >\n Edit\n </button>\n </sky-data-manager-toolbar-left-item>\n <sky-filter-bar skyDataManagerFilterController>\n <sky-filter-item-modal\n filterId=\"hideSales\"\n labelText=\"Hide sales\"\n modalSize=\"small\"\n [modalComponent]=\"salesModal\"\n />\n <sky-filter-item-lookup\n filterId=\"jobTitle\"\n labelText=\"Job title\"\n searchDescriptorProperty=\"name\"\n searchIdProperty=\"id\"\n (searchAsync)=\"onJobTitleSearchAsync($event)\"\n />\n </sky-filter-bar>\n <sky-list-summary>\n <sky-list-summary-item\n [labelText]=\"recordCount() === 1 ? 'Record' : 'Records'\"\n [value]=\"recordCount()\"\n />\n </sky-list-summary>\n </sky-data-manager-toolbar>\n <app-view-grid [items]=\"items()\" />\n</sky-data-manager>\n" }]
|
|
1414
1415
|
}], ctorParameters: () => [] });
|
|
1415
1416
|
|
|
1416
|
-
const DEPARTMENTS$
|
|
1417
|
+
const DEPARTMENTS$a = [
|
|
1417
1418
|
{
|
|
1418
1419
|
id: '1',
|
|
1419
1420
|
name: 'Marketing',
|
|
@@ -1431,7 +1432,7 @@ const DEPARTMENTS$8 = [
|
|
|
1431
1432
|
name: 'Customer Support',
|
|
1432
1433
|
},
|
|
1433
1434
|
];
|
|
1434
|
-
const JOB_TITLES$
|
|
1435
|
+
const JOB_TITLES$a = {
|
|
1435
1436
|
Marketing: [
|
|
1436
1437
|
{
|
|
1437
1438
|
id: '1',
|
|
@@ -1499,16 +1500,16 @@ const AG_GRID_DEMO_DATA$9 = [
|
|
|
1499
1500
|
name: 'Billy Bob',
|
|
1500
1501
|
age: 55,
|
|
1501
1502
|
startDate: new Date('12/1/1994'),
|
|
1502
|
-
department: DEPARTMENTS$
|
|
1503
|
-
jobTitle: JOB_TITLES$
|
|
1503
|
+
department: DEPARTMENTS$a[3],
|
|
1504
|
+
jobTitle: JOB_TITLES$a['Customer Support'][1],
|
|
1504
1505
|
},
|
|
1505
1506
|
{
|
|
1506
1507
|
selected: false,
|
|
1507
1508
|
name: 'Jane Deere',
|
|
1508
1509
|
age: 33,
|
|
1509
1510
|
startDate: new Date('7/15/2009'),
|
|
1510
|
-
department: DEPARTMENTS$
|
|
1511
|
-
jobTitle: JOB_TITLES$
|
|
1511
|
+
department: DEPARTMENTS$a[2],
|
|
1512
|
+
jobTitle: JOB_TITLES$a['Engineering'][2],
|
|
1512
1513
|
},
|
|
1513
1514
|
{
|
|
1514
1515
|
selected: false,
|
|
@@ -1516,7 +1517,7 @@ const AG_GRID_DEMO_DATA$9 = [
|
|
|
1516
1517
|
age: 38,
|
|
1517
1518
|
startDate: new Date('9/1/2017'),
|
|
1518
1519
|
endDate: new Date('9/30/2017'),
|
|
1519
|
-
department: DEPARTMENTS$
|
|
1520
|
+
department: DEPARTMENTS$a[1],
|
|
1520
1521
|
},
|
|
1521
1522
|
{
|
|
1522
1523
|
selected: false,
|
|
@@ -1524,32 +1525,32 @@ const AG_GRID_DEMO_DATA$9 = [
|
|
|
1524
1525
|
age: 51,
|
|
1525
1526
|
startDate: new Date('1/1/2012'),
|
|
1526
1527
|
endDate: new Date('6/15/2018'),
|
|
1527
|
-
department: DEPARTMENTS$
|
|
1528
|
-
jobTitle: JOB_TITLES$
|
|
1528
|
+
department: DEPARTMENTS$a[2],
|
|
1529
|
+
jobTitle: JOB_TITLES$a['Engineering'][4],
|
|
1529
1530
|
},
|
|
1530
1531
|
{
|
|
1531
1532
|
selected: true,
|
|
1532
1533
|
name: 'Emily Johnson',
|
|
1533
1534
|
age: 41,
|
|
1534
1535
|
startDate: new Date('1/15/2014'),
|
|
1535
|
-
department: DEPARTMENTS$
|
|
1536
|
-
jobTitle: JOB_TITLES$
|
|
1536
|
+
department: DEPARTMENTS$a[0],
|
|
1537
|
+
jobTitle: JOB_TITLES$a['Marketing'][2],
|
|
1537
1538
|
},
|
|
1538
1539
|
{
|
|
1539
1540
|
selected: false,
|
|
1540
1541
|
name: 'Nicole Davidson',
|
|
1541
1542
|
age: 22,
|
|
1542
1543
|
startDate: new Date('11/1/2019'),
|
|
1543
|
-
department: DEPARTMENTS$
|
|
1544
|
-
jobTitle: JOB_TITLES$
|
|
1544
|
+
department: DEPARTMENTS$a[2],
|
|
1545
|
+
jobTitle: JOB_TITLES$a['Engineering'][0],
|
|
1545
1546
|
},
|
|
1546
1547
|
{
|
|
1547
1548
|
selected: false,
|
|
1548
1549
|
name: 'Carl Roberts',
|
|
1549
1550
|
age: 23,
|
|
1550
1551
|
startDate: new Date('11/1/2019'),
|
|
1551
|
-
department: DEPARTMENTS$
|
|
1552
|
-
jobTitle: JOB_TITLES$
|
|
1552
|
+
department: DEPARTMENTS$a[2],
|
|
1553
|
+
jobTitle: JOB_TITLES$a['Engineering'][3],
|
|
1553
1554
|
},
|
|
1554
1555
|
];
|
|
1555
1556
|
|
|
@@ -1691,7 +1692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1691
1692
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
1692
1693
|
}] });
|
|
1693
1694
|
|
|
1694
|
-
const DEPARTMENTS$
|
|
1695
|
+
const DEPARTMENTS$9 = [
|
|
1695
1696
|
{
|
|
1696
1697
|
id: '1',
|
|
1697
1698
|
name: 'Marketing',
|
|
@@ -1709,7 +1710,7 @@ const DEPARTMENTS$7 = [
|
|
|
1709
1710
|
name: 'Customer Support',
|
|
1710
1711
|
},
|
|
1711
1712
|
];
|
|
1712
|
-
const JOB_TITLES$
|
|
1713
|
+
const JOB_TITLES$9 = {
|
|
1713
1714
|
Marketing: [
|
|
1714
1715
|
{
|
|
1715
1716
|
id: '1',
|
|
@@ -1777,16 +1778,16 @@ const AG_GRID_DEMO_DATA$8 = [
|
|
|
1777
1778
|
name: 'Billy Bob',
|
|
1778
1779
|
age: 55,
|
|
1779
1780
|
startDate: new Date('12/1/1994'),
|
|
1780
|
-
department: DEPARTMENTS$
|
|
1781
|
-
jobTitle: JOB_TITLES$
|
|
1781
|
+
department: DEPARTMENTS$9[3],
|
|
1782
|
+
jobTitle: JOB_TITLES$9['Customer Support'][1],
|
|
1782
1783
|
},
|
|
1783
1784
|
{
|
|
1784
1785
|
selected: false,
|
|
1785
1786
|
name: 'Jane Deere',
|
|
1786
1787
|
age: 33,
|
|
1787
1788
|
startDate: new Date('7/15/2009'),
|
|
1788
|
-
department: DEPARTMENTS$
|
|
1789
|
-
jobTitle: JOB_TITLES$
|
|
1789
|
+
department: DEPARTMENTS$9[2],
|
|
1790
|
+
jobTitle: JOB_TITLES$9['Engineering'][2],
|
|
1790
1791
|
},
|
|
1791
1792
|
{
|
|
1792
1793
|
selected: false,
|
|
@@ -1794,7 +1795,7 @@ const AG_GRID_DEMO_DATA$8 = [
|
|
|
1794
1795
|
age: 38,
|
|
1795
1796
|
startDate: new Date('9/1/2017'),
|
|
1796
1797
|
endDate: new Date('9/30/2017'),
|
|
1797
|
-
department: DEPARTMENTS$
|
|
1798
|
+
department: DEPARTMENTS$9[1],
|
|
1798
1799
|
},
|
|
1799
1800
|
{
|
|
1800
1801
|
selected: false,
|
|
@@ -1802,32 +1803,32 @@ const AG_GRID_DEMO_DATA$8 = [
|
|
|
1802
1803
|
age: 51,
|
|
1803
1804
|
startDate: new Date('1/1/2012'),
|
|
1804
1805
|
endDate: new Date('6/15/2018'),
|
|
1805
|
-
department: DEPARTMENTS$
|
|
1806
|
-
jobTitle: JOB_TITLES$
|
|
1806
|
+
department: DEPARTMENTS$9[2],
|
|
1807
|
+
jobTitle: JOB_TITLES$9['Engineering'][4],
|
|
1807
1808
|
},
|
|
1808
1809
|
{
|
|
1809
1810
|
selected: true,
|
|
1810
1811
|
name: 'Emily Johnson',
|
|
1811
1812
|
age: 41,
|
|
1812
1813
|
startDate: new Date('1/15/2014'),
|
|
1813
|
-
department: DEPARTMENTS$
|
|
1814
|
-
jobTitle: JOB_TITLES$
|
|
1814
|
+
department: DEPARTMENTS$9[0],
|
|
1815
|
+
jobTitle: JOB_TITLES$9['Marketing'][2],
|
|
1815
1816
|
},
|
|
1816
1817
|
{
|
|
1817
1818
|
selected: false,
|
|
1818
1819
|
name: 'Nicole Davidson',
|
|
1819
1820
|
age: 22,
|
|
1820
1821
|
startDate: new Date('11/1/2019'),
|
|
1821
|
-
department: DEPARTMENTS$
|
|
1822
|
-
jobTitle: JOB_TITLES$
|
|
1822
|
+
department: DEPARTMENTS$9[2],
|
|
1823
|
+
jobTitle: JOB_TITLES$9['Engineering'][0],
|
|
1823
1824
|
},
|
|
1824
1825
|
{
|
|
1825
1826
|
selected: false,
|
|
1826
1827
|
name: 'Carl Roberts',
|
|
1827
1828
|
age: 23,
|
|
1828
1829
|
startDate: new Date('11/1/2019'),
|
|
1829
|
-
department: DEPARTMENTS$
|
|
1830
|
-
jobTitle: JOB_TITLES$
|
|
1830
|
+
department: DEPARTMENTS$9[2],
|
|
1831
|
+
jobTitle: JOB_TITLES$9['Engineering'][3],
|
|
1831
1832
|
},
|
|
1832
1833
|
];
|
|
1833
1834
|
|
|
@@ -1904,7 +1905,7 @@ class EditModalComponent {
|
|
|
1904
1905
|
cellEditorParams: (params) => {
|
|
1905
1906
|
return {
|
|
1906
1907
|
skyComponentProperties: {
|
|
1907
|
-
data: DEPARTMENTS$
|
|
1908
|
+
data: DEPARTMENTS$9,
|
|
1908
1909
|
selectionChange: (change) => {
|
|
1909
1910
|
this.#departmentSelectionChange(change, params.node);
|
|
1910
1911
|
},
|
|
@@ -1927,7 +1928,7 @@ class EditModalComponent {
|
|
|
1927
1928
|
const editParams = { skyComponentProperties: { data: [] } };
|
|
1928
1929
|
if (selectedDepartment) {
|
|
1929
1930
|
editParams.skyComponentProperties.data =
|
|
1930
|
-
JOB_TITLES$
|
|
1931
|
+
JOB_TITLES$9[selectedDepartment];
|
|
1931
1932
|
}
|
|
1932
1933
|
return editParams;
|
|
1933
1934
|
},
|
|
@@ -2208,7 +2209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2208
2209
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
2209
2210
|
}] });
|
|
2210
2211
|
|
|
2211
|
-
const DEPARTMENTS$
|
|
2212
|
+
const DEPARTMENTS$8 = [
|
|
2212
2213
|
{
|
|
2213
2214
|
id: '1',
|
|
2214
2215
|
name: 'Marketing',
|
|
@@ -2226,7 +2227,7 @@ const DEPARTMENTS$6 = [
|
|
|
2226
2227
|
name: 'Customer Support',
|
|
2227
2228
|
},
|
|
2228
2229
|
];
|
|
2229
|
-
const JOB_TITLES$
|
|
2230
|
+
const JOB_TITLES$8 = {
|
|
2230
2231
|
Marketing: [
|
|
2231
2232
|
{
|
|
2232
2233
|
id: '1',
|
|
@@ -2294,16 +2295,16 @@ const AG_GRID_DEMO_DATA$7 = [
|
|
|
2294
2295
|
name: 'Billy Bob',
|
|
2295
2296
|
age: 55,
|
|
2296
2297
|
startDate: new Date('12/1/1994'),
|
|
2297
|
-
department: DEPARTMENTS$
|
|
2298
|
-
jobTitle: JOB_TITLES$
|
|
2298
|
+
department: DEPARTMENTS$8[3],
|
|
2299
|
+
jobTitle: JOB_TITLES$8['Customer Support'][1],
|
|
2299
2300
|
},
|
|
2300
2301
|
{
|
|
2301
2302
|
selected: false,
|
|
2302
2303
|
name: 'Jane Deere',
|
|
2303
2304
|
age: 33,
|
|
2304
2305
|
startDate: new Date('7/15/2009'),
|
|
2305
|
-
department: DEPARTMENTS$
|
|
2306
|
-
jobTitle: JOB_TITLES$
|
|
2306
|
+
department: DEPARTMENTS$8[2],
|
|
2307
|
+
jobTitle: JOB_TITLES$8['Engineering'][2],
|
|
2307
2308
|
},
|
|
2308
2309
|
{
|
|
2309
2310
|
selected: false,
|
|
@@ -2311,7 +2312,7 @@ const AG_GRID_DEMO_DATA$7 = [
|
|
|
2311
2312
|
age: 38,
|
|
2312
2313
|
startDate: new Date('9/1/2017'),
|
|
2313
2314
|
endDate: new Date('9/30/2017'),
|
|
2314
|
-
department: DEPARTMENTS$
|
|
2315
|
+
department: DEPARTMENTS$8[1],
|
|
2315
2316
|
},
|
|
2316
2317
|
{
|
|
2317
2318
|
selected: false,
|
|
@@ -2319,32 +2320,32 @@ const AG_GRID_DEMO_DATA$7 = [
|
|
|
2319
2320
|
age: 51,
|
|
2320
2321
|
startDate: new Date('1/1/2012'),
|
|
2321
2322
|
endDate: new Date('6/15/2018'),
|
|
2322
|
-
department: DEPARTMENTS$
|
|
2323
|
-
jobTitle: JOB_TITLES$
|
|
2323
|
+
department: DEPARTMENTS$8[2],
|
|
2324
|
+
jobTitle: JOB_TITLES$8['Engineering'][4],
|
|
2324
2325
|
},
|
|
2325
2326
|
{
|
|
2326
2327
|
selected: true,
|
|
2327
2328
|
name: 'Emily Johnson',
|
|
2328
2329
|
age: 41,
|
|
2329
2330
|
startDate: new Date('1/15/2014'),
|
|
2330
|
-
department: DEPARTMENTS$
|
|
2331
|
-
jobTitle: JOB_TITLES$
|
|
2331
|
+
department: DEPARTMENTS$8[0],
|
|
2332
|
+
jobTitle: JOB_TITLES$8['Marketing'][2],
|
|
2332
2333
|
},
|
|
2333
2334
|
{
|
|
2334
2335
|
selected: false,
|
|
2335
2336
|
name: 'Nicole Davidson',
|
|
2336
2337
|
age: 22,
|
|
2337
2338
|
startDate: new Date('11/1/2019'),
|
|
2338
|
-
department: DEPARTMENTS$
|
|
2339
|
-
jobTitle: JOB_TITLES$
|
|
2339
|
+
department: DEPARTMENTS$8[2],
|
|
2340
|
+
jobTitle: JOB_TITLES$8['Engineering'][0],
|
|
2340
2341
|
},
|
|
2341
2342
|
{
|
|
2342
2343
|
selected: false,
|
|
2343
2344
|
name: 'Carl Roberts',
|
|
2344
2345
|
age: 23,
|
|
2345
2346
|
startDate: new Date('11/1/2019'),
|
|
2346
|
-
department: DEPARTMENTS$
|
|
2347
|
-
jobTitle: JOB_TITLES$
|
|
2347
|
+
department: DEPARTMENTS$8[2],
|
|
2348
|
+
jobTitle: JOB_TITLES$8['Engineering'][3],
|
|
2348
2349
|
},
|
|
2349
2350
|
];
|
|
2350
2351
|
|
|
@@ -2459,7 +2460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2459
2460
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
2460
2461
|
}] });
|
|
2461
2462
|
|
|
2462
|
-
const DEPARTMENTS$
|
|
2463
|
+
const DEPARTMENTS$7 = [
|
|
2463
2464
|
{
|
|
2464
2465
|
id: '1',
|
|
2465
2466
|
name: 'Marketing',
|
|
@@ -2477,7 +2478,7 @@ const DEPARTMENTS$5 = [
|
|
|
2477
2478
|
name: 'Customer Support',
|
|
2478
2479
|
},
|
|
2479
2480
|
];
|
|
2480
|
-
const JOB_TITLES$
|
|
2481
|
+
const JOB_TITLES$7 = {
|
|
2481
2482
|
Marketing: [
|
|
2482
2483
|
{
|
|
2483
2484
|
id: '1',
|
|
@@ -2544,51 +2545,51 @@ const AG_GRID_DEMO_DATA$6 = [
|
|
|
2544
2545
|
name: 'Billy Bob',
|
|
2545
2546
|
age: 55,
|
|
2546
2547
|
startDate: new Date('12/1/1994'),
|
|
2547
|
-
department: DEPARTMENTS$
|
|
2548
|
-
jobTitle: JOB_TITLES$
|
|
2548
|
+
department: DEPARTMENTS$7[3],
|
|
2549
|
+
jobTitle: JOB_TITLES$7['Customer Support'][1],
|
|
2549
2550
|
},
|
|
2550
2551
|
{
|
|
2551
2552
|
name: 'Jane Deere',
|
|
2552
2553
|
age: 33,
|
|
2553
2554
|
startDate: new Date('7/15/2009'),
|
|
2554
|
-
department: DEPARTMENTS$
|
|
2555
|
-
jobTitle: JOB_TITLES$
|
|
2555
|
+
department: DEPARTMENTS$7[2],
|
|
2556
|
+
jobTitle: JOB_TITLES$7['Engineering'][2],
|
|
2556
2557
|
},
|
|
2557
2558
|
{
|
|
2558
2559
|
name: 'John Doe',
|
|
2559
2560
|
age: 38,
|
|
2560
2561
|
startDate: new Date('9/1/2017'),
|
|
2561
2562
|
endDate: new Date('9/30/2017'),
|
|
2562
|
-
department: DEPARTMENTS$
|
|
2563
|
+
department: DEPARTMENTS$7[1],
|
|
2563
2564
|
},
|
|
2564
2565
|
{
|
|
2565
2566
|
name: 'David Smith',
|
|
2566
2567
|
age: 51,
|
|
2567
2568
|
startDate: new Date('1/1/2012'),
|
|
2568
2569
|
endDate: new Date('6/15/2018'),
|
|
2569
|
-
department: DEPARTMENTS$
|
|
2570
|
-
jobTitle: JOB_TITLES$
|
|
2570
|
+
department: DEPARTMENTS$7[2],
|
|
2571
|
+
jobTitle: JOB_TITLES$7['Engineering'][4],
|
|
2571
2572
|
},
|
|
2572
2573
|
{
|
|
2573
2574
|
name: 'Emily Johnson',
|
|
2574
2575
|
age: 41,
|
|
2575
2576
|
startDate: new Date('1/15/2014'),
|
|
2576
|
-
department: DEPARTMENTS$
|
|
2577
|
-
jobTitle: JOB_TITLES$
|
|
2577
|
+
department: DEPARTMENTS$7[0],
|
|
2578
|
+
jobTitle: JOB_TITLES$7['Marketing'][2],
|
|
2578
2579
|
},
|
|
2579
2580
|
{
|
|
2580
2581
|
name: 'Nicole Davidson',
|
|
2581
2582
|
age: 22,
|
|
2582
2583
|
startDate: new Date('11/1/2019'),
|
|
2583
|
-
department: DEPARTMENTS$
|
|
2584
|
-
jobTitle: JOB_TITLES$
|
|
2584
|
+
department: DEPARTMENTS$7[2],
|
|
2585
|
+
jobTitle: JOB_TITLES$7['Engineering'][0],
|
|
2585
2586
|
},
|
|
2586
2587
|
{
|
|
2587
2588
|
name: 'Carl Roberts',
|
|
2588
2589
|
age: 23,
|
|
2589
2590
|
startDate: new Date('11/1/2019'),
|
|
2590
|
-
department: DEPARTMENTS$
|
|
2591
|
-
jobTitle: JOB_TITLES$
|
|
2591
|
+
department: DEPARTMENTS$7[2],
|
|
2592
|
+
jobTitle: JOB_TITLES$7['Engineering'][3],
|
|
2592
2593
|
},
|
|
2593
2594
|
];
|
|
2594
2595
|
|
|
@@ -2667,7 +2668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
2667
2668
|
args: [{ selector: 'app-ag-grid-data-grid-basic-example', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AgGridAngular, SkyAgGridModule], template: "<sky-ag-grid-wrapper>\n <ag-grid-angular [gridOptions]=\"gridOptions\" [rowData]=\"gridData\" />\n</sky-ag-grid-wrapper>\n" }]
|
|
2668
2669
|
}], ctorParameters: () => [] });
|
|
2669
2670
|
|
|
2670
|
-
const DEPARTMENTS$
|
|
2671
|
+
const DEPARTMENTS$6 = [
|
|
2671
2672
|
{
|
|
2672
2673
|
id: '1',
|
|
2673
2674
|
name: 'Marketing',
|
|
@@ -2685,7 +2686,7 @@ const DEPARTMENTS$4 = [
|
|
|
2685
2686
|
name: 'Customer Support',
|
|
2686
2687
|
},
|
|
2687
2688
|
];
|
|
2688
|
-
const JOB_TITLES$
|
|
2689
|
+
const JOB_TITLES$6 = {
|
|
2689
2690
|
Marketing: [
|
|
2690
2691
|
{
|
|
2691
2692
|
id: '1',
|
|
@@ -2753,16 +2754,16 @@ const AG_GRID_DEMO_DATA$5 = [
|
|
|
2753
2754
|
name: 'Billy Bob',
|
|
2754
2755
|
age: 55,
|
|
2755
2756
|
startDate: new Date('12/1/1994'),
|
|
2756
|
-
department: DEPARTMENTS$
|
|
2757
|
-
jobTitle: JOB_TITLES$
|
|
2757
|
+
department: DEPARTMENTS$6[3],
|
|
2758
|
+
jobTitle: JOB_TITLES$6['Customer Support'][1],
|
|
2758
2759
|
},
|
|
2759
2760
|
{
|
|
2760
2761
|
id: 'aea50a38-aa1e-44e0-94b5-52d3f577767f',
|
|
2761
2762
|
name: 'Jane Deere',
|
|
2762
2763
|
age: 33,
|
|
2763
2764
|
startDate: new Date('7/15/2009'),
|
|
2764
|
-
department: DEPARTMENTS$
|
|
2765
|
-
jobTitle: JOB_TITLES$
|
|
2765
|
+
department: DEPARTMENTS$6[2],
|
|
2766
|
+
jobTitle: JOB_TITLES$6['Engineering'][2],
|
|
2766
2767
|
},
|
|
2767
2768
|
{
|
|
2768
2769
|
id: 'e74afbe4-5016-4a20-9803-30a301835c4f',
|
|
@@ -2770,8 +2771,8 @@ const AG_GRID_DEMO_DATA$5 = [
|
|
|
2770
2771
|
age: 38,
|
|
2771
2772
|
startDate: new Date('9/1/2017'),
|
|
2772
2773
|
endDate: new Date('9/30/2017'),
|
|
2773
|
-
department: DEPARTMENTS$
|
|
2774
|
-
jobTitle: JOB_TITLES$
|
|
2774
|
+
department: DEPARTMENTS$6[1],
|
|
2775
|
+
jobTitle: JOB_TITLES$6['Sales'][1],
|
|
2775
2776
|
},
|
|
2776
2777
|
{
|
|
2777
2778
|
id: '0274faf9-388e-497d-bced-f2bef3eafcfd',
|
|
@@ -2779,8 +2780,8 @@ const AG_GRID_DEMO_DATA$5 = [
|
|
|
2779
2780
|
age: 51,
|
|
2780
2781
|
startDate: new Date('1/1/2012'),
|
|
2781
2782
|
endDate: new Date('6/15/2018'),
|
|
2782
|
-
department: DEPARTMENTS$
|
|
2783
|
-
jobTitle: JOB_TITLES$
|
|
2783
|
+
department: DEPARTMENTS$6[2],
|
|
2784
|
+
jobTitle: JOB_TITLES$6['Engineering'][4],
|
|
2784
2785
|
},
|
|
2785
2786
|
{
|
|
2786
2787
|
id: '09b7da69-0272-4fe0-ace3-658a6d8f175c',
|
|
@@ -2788,29 +2789,29 @@ const AG_GRID_DEMO_DATA$5 = [
|
|
|
2788
2789
|
name: 'Emily Johnson',
|
|
2789
2790
|
age: 41,
|
|
2790
2791
|
startDate: new Date('1/15/2014'),
|
|
2791
|
-
department: DEPARTMENTS$
|
|
2792
|
-
jobTitle: JOB_TITLES$
|
|
2792
|
+
department: DEPARTMENTS$6[0],
|
|
2793
|
+
jobTitle: JOB_TITLES$6['Marketing'][2],
|
|
2793
2794
|
},
|
|
2794
2795
|
{
|
|
2795
2796
|
id: '3accf076-fff1-4229-bad3-7d2d42d2c42a',
|
|
2796
2797
|
name: 'Nicole Davidson',
|
|
2797
2798
|
age: 22,
|
|
2798
2799
|
startDate: new Date('11/1/2019'),
|
|
2799
|
-
department: DEPARTMENTS$
|
|
2800
|
-
jobTitle: JOB_TITLES$
|
|
2800
|
+
department: DEPARTMENTS$6[2],
|
|
2801
|
+
jobTitle: JOB_TITLES$6['Engineering'][0],
|
|
2801
2802
|
},
|
|
2802
2803
|
{
|
|
2803
2804
|
id: 'a8456cf4-4f8d-40ee-a91a-ece9c2327fe4',
|
|
2804
2805
|
name: 'Carl Roberts',
|
|
2805
2806
|
age: 23,
|
|
2806
2807
|
startDate: new Date('11/1/2019'),
|
|
2807
|
-
department: DEPARTMENTS$
|
|
2808
|
-
jobTitle: JOB_TITLES$
|
|
2808
|
+
department: DEPARTMENTS$6[2],
|
|
2809
|
+
jobTitle: JOB_TITLES$6['Engineering'][3],
|
|
2809
2810
|
},
|
|
2810
2811
|
];
|
|
2811
2812
|
|
|
2812
2813
|
let ExampleService$5 = class ExampleService {
|
|
2813
|
-
#jobs = Object.values(JOB_TITLES$
|
|
2814
|
+
#jobs = Object.values(JOB_TITLES$6).flat();
|
|
2814
2815
|
search(searchText) {
|
|
2815
2816
|
searchText = searchText.toUpperCase();
|
|
2816
2817
|
const matchingJobs = this.#jobs.filter((job) => job.name?.toUpperCase().includes(searchText));
|
|
@@ -3166,7 +3167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3166
3167
|
], template: "<sky-data-manager>\n <sky-data-manager-toolbar>\n <sky-filter-bar skyDataManagerFilterController>\n <sky-filter-item-modal\n filterId=\"hideSales\"\n labelText=\"Hide sales\"\n modalSize=\"small\"\n [modalComponent]=\"salesModal\"\n />\n <sky-filter-item-lookup\n filterId=\"jobTitle\"\n labelText=\"Job title\"\n searchDescriptorProperty=\"name\"\n searchIdProperty=\"id\"\n (searchAsync)=\"onJobTitleSearchAsync($event)\"\n />\n </sky-filter-bar>\n <sky-list-summary>\n <sky-list-summary-item\n [labelText]=\"recordCount() === 1 ? 'Record' : 'Records'\"\n [value]=\"recordCount()\"\n />\n </sky-list-summary>\n </sky-data-manager-toolbar>\n <app-view-grid [items]=\"items\" />\n</sky-data-manager>\n" }]
|
|
3167
3168
|
}], ctorParameters: () => [] });
|
|
3168
3169
|
|
|
3169
|
-
const DEPARTMENTS$
|
|
3170
|
+
const DEPARTMENTS$5 = [
|
|
3170
3171
|
{
|
|
3171
3172
|
id: '1',
|
|
3172
3173
|
name: 'Marketing',
|
|
@@ -3184,7 +3185,7 @@ const DEPARTMENTS$3 = [
|
|
|
3184
3185
|
name: 'Customer Support',
|
|
3185
3186
|
},
|
|
3186
3187
|
];
|
|
3187
|
-
const JOB_TITLES$
|
|
3188
|
+
const JOB_TITLES$5 = {
|
|
3188
3189
|
Marketing: [
|
|
3189
3190
|
{
|
|
3190
3191
|
id: '1',
|
|
@@ -3252,16 +3253,16 @@ const AG_GRID_DEMO_DATA$4 = [
|
|
|
3252
3253
|
name: 'Billy Bob',
|
|
3253
3254
|
age: 55,
|
|
3254
3255
|
startDate: new Date('12/1/1994'),
|
|
3255
|
-
department: DEPARTMENTS$
|
|
3256
|
-
jobTitle: JOB_TITLES$
|
|
3256
|
+
department: DEPARTMENTS$5[3],
|
|
3257
|
+
jobTitle: JOB_TITLES$5['Customer Support'][1],
|
|
3257
3258
|
},
|
|
3258
3259
|
{
|
|
3259
3260
|
id: 'aea50a38-aa1e-44e0-94b5-52d3f577767f',
|
|
3260
3261
|
name: 'Jane Deere',
|
|
3261
3262
|
age: 33,
|
|
3262
3263
|
startDate: new Date('7/15/2009'),
|
|
3263
|
-
department: DEPARTMENTS$
|
|
3264
|
-
jobTitle: JOB_TITLES$
|
|
3264
|
+
department: DEPARTMENTS$5[2],
|
|
3265
|
+
jobTitle: JOB_TITLES$5['Engineering'][2],
|
|
3265
3266
|
},
|
|
3266
3267
|
{
|
|
3267
3268
|
id: 'e74afbe4-5016-4a20-9803-30a301835c4f',
|
|
@@ -3269,8 +3270,8 @@ const AG_GRID_DEMO_DATA$4 = [
|
|
|
3269
3270
|
age: 38,
|
|
3270
3271
|
startDate: new Date('9/1/2017'),
|
|
3271
3272
|
endDate: new Date('9/30/2017'),
|
|
3272
|
-
department: DEPARTMENTS$
|
|
3273
|
-
jobTitle: JOB_TITLES$
|
|
3273
|
+
department: DEPARTMENTS$5[1],
|
|
3274
|
+
jobTitle: JOB_TITLES$5['Sales'][1],
|
|
3274
3275
|
},
|
|
3275
3276
|
{
|
|
3276
3277
|
id: '0274faf9-388e-497d-bced-f2bef3eafcfd',
|
|
@@ -3278,8 +3279,8 @@ const AG_GRID_DEMO_DATA$4 = [
|
|
|
3278
3279
|
age: 51,
|
|
3279
3280
|
startDate: new Date('1/1/2012'),
|
|
3280
3281
|
endDate: new Date('6/15/2018'),
|
|
3281
|
-
department: DEPARTMENTS$
|
|
3282
|
-
jobTitle: JOB_TITLES$
|
|
3282
|
+
department: DEPARTMENTS$5[2],
|
|
3283
|
+
jobTitle: JOB_TITLES$5['Engineering'][4],
|
|
3283
3284
|
},
|
|
3284
3285
|
{
|
|
3285
3286
|
id: '09b7da69-0272-4fe0-ace3-658a6d8f175c',
|
|
@@ -3287,29 +3288,29 @@ const AG_GRID_DEMO_DATA$4 = [
|
|
|
3287
3288
|
name: 'Emily Johnson',
|
|
3288
3289
|
age: 41,
|
|
3289
3290
|
startDate: new Date('1/15/2014'),
|
|
3290
|
-
department: DEPARTMENTS$
|
|
3291
|
-
jobTitle: JOB_TITLES$
|
|
3291
|
+
department: DEPARTMENTS$5[0],
|
|
3292
|
+
jobTitle: JOB_TITLES$5['Marketing'][2],
|
|
3292
3293
|
},
|
|
3293
3294
|
{
|
|
3294
3295
|
id: '3accf076-fff1-4229-bad3-7d2d42d2c42a',
|
|
3295
3296
|
name: 'Nicole Davidson',
|
|
3296
3297
|
age: 22,
|
|
3297
3298
|
startDate: new Date('11/1/2019'),
|
|
3298
|
-
department: DEPARTMENTS$
|
|
3299
|
-
jobTitle: JOB_TITLES$
|
|
3299
|
+
department: DEPARTMENTS$5[2],
|
|
3300
|
+
jobTitle: JOB_TITLES$5['Engineering'][0],
|
|
3300
3301
|
},
|
|
3301
3302
|
{
|
|
3302
3303
|
id: 'a8456cf4-4f8d-40ee-a91a-ece9c2327fe4',
|
|
3303
3304
|
name: 'Carl Roberts',
|
|
3304
3305
|
age: 23,
|
|
3305
3306
|
startDate: new Date('11/1/2019'),
|
|
3306
|
-
department: DEPARTMENTS$
|
|
3307
|
-
jobTitle: JOB_TITLES$
|
|
3307
|
+
department: DEPARTMENTS$5[2],
|
|
3308
|
+
jobTitle: JOB_TITLES$5['Engineering'][3],
|
|
3308
3309
|
},
|
|
3309
3310
|
];
|
|
3310
3311
|
|
|
3311
3312
|
let ExampleService$4 = class ExampleService {
|
|
3312
|
-
#jobs = Object.values(JOB_TITLES$
|
|
3313
|
+
#jobs = Object.values(JOB_TITLES$5).flat();
|
|
3313
3314
|
search(searchText) {
|
|
3314
3315
|
searchText = searchText.toUpperCase();
|
|
3315
3316
|
const matchingJobs = this.#jobs.filter((job) => job.name?.toUpperCase().includes(searchText));
|
|
@@ -3677,7 +3678,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3677
3678
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
3678
3679
|
}] });
|
|
3679
3680
|
|
|
3680
|
-
const DEPARTMENTS$
|
|
3681
|
+
const DEPARTMENTS$4 = [
|
|
3681
3682
|
{
|
|
3682
3683
|
id: '1',
|
|
3683
3684
|
name: 'Marketing',
|
|
@@ -3695,7 +3696,7 @@ const DEPARTMENTS$2 = [
|
|
|
3695
3696
|
name: 'Customer Support',
|
|
3696
3697
|
},
|
|
3697
3698
|
];
|
|
3698
|
-
const JOB_TITLES$
|
|
3699
|
+
const JOB_TITLES$4 = {
|
|
3699
3700
|
Marketing: [
|
|
3700
3701
|
{
|
|
3701
3702
|
id: '1',
|
|
@@ -3762,51 +3763,51 @@ const AG_GRID_DEMO_DATA$3 = [
|
|
|
3762
3763
|
name: 'Billy Bob',
|
|
3763
3764
|
age: 55,
|
|
3764
3765
|
startDate: new Date('12/1/1994'),
|
|
3765
|
-
department: DEPARTMENTS$
|
|
3766
|
-
jobTitle: JOB_TITLES$
|
|
3766
|
+
department: DEPARTMENTS$4[3],
|
|
3767
|
+
jobTitle: JOB_TITLES$4['Customer Support'][1],
|
|
3767
3768
|
},
|
|
3768
3769
|
{
|
|
3769
3770
|
name: 'Jane Deere',
|
|
3770
3771
|
age: 33,
|
|
3771
3772
|
startDate: new Date('7/15/2009'),
|
|
3772
|
-
department: DEPARTMENTS$
|
|
3773
|
-
jobTitle: JOB_TITLES$
|
|
3773
|
+
department: DEPARTMENTS$4[2],
|
|
3774
|
+
jobTitle: JOB_TITLES$4['Engineering'][2],
|
|
3774
3775
|
},
|
|
3775
3776
|
{
|
|
3776
3777
|
name: 'John Doe',
|
|
3777
3778
|
age: 38,
|
|
3778
3779
|
startDate: new Date('9/1/2017'),
|
|
3779
3780
|
endDate: new Date('9/30/2017'),
|
|
3780
|
-
department: DEPARTMENTS$
|
|
3781
|
+
department: DEPARTMENTS$4[1],
|
|
3781
3782
|
},
|
|
3782
3783
|
{
|
|
3783
3784
|
name: 'David Smith',
|
|
3784
3785
|
age: 51,
|
|
3785
3786
|
startDate: new Date('1/1/2012'),
|
|
3786
3787
|
endDate: new Date('6/15/2018'),
|
|
3787
|
-
department: DEPARTMENTS$
|
|
3788
|
-
jobTitle: JOB_TITLES$
|
|
3788
|
+
department: DEPARTMENTS$4[2],
|
|
3789
|
+
jobTitle: JOB_TITLES$4['Engineering'][4],
|
|
3789
3790
|
},
|
|
3790
3791
|
{
|
|
3791
3792
|
name: 'Emily Johnson',
|
|
3792
3793
|
age: 41,
|
|
3793
3794
|
startDate: new Date('1/15/2014'),
|
|
3794
|
-
department: DEPARTMENTS$
|
|
3795
|
-
jobTitle: JOB_TITLES$
|
|
3795
|
+
department: DEPARTMENTS$4[0],
|
|
3796
|
+
jobTitle: JOB_TITLES$4['Marketing'][2],
|
|
3796
3797
|
},
|
|
3797
3798
|
{
|
|
3798
3799
|
name: 'Nicole Davidson',
|
|
3799
3800
|
age: 22,
|
|
3800
3801
|
startDate: new Date('11/1/2019'),
|
|
3801
|
-
department: DEPARTMENTS$
|
|
3802
|
-
jobTitle: JOB_TITLES$
|
|
3802
|
+
department: DEPARTMENTS$4[2],
|
|
3803
|
+
jobTitle: JOB_TITLES$4['Engineering'][0],
|
|
3803
3804
|
},
|
|
3804
3805
|
{
|
|
3805
3806
|
name: 'Carl Roberts',
|
|
3806
3807
|
age: 23,
|
|
3807
3808
|
startDate: new Date('11/1/2019'),
|
|
3808
|
-
department: DEPARTMENTS$
|
|
3809
|
-
jobTitle: JOB_TITLES$
|
|
3809
|
+
department: DEPARTMENTS$4[2],
|
|
3810
|
+
jobTitle: JOB_TITLES$4['Engineering'][3],
|
|
3810
3811
|
},
|
|
3811
3812
|
];
|
|
3812
3813
|
|
|
@@ -3983,7 +3984,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3983
3984
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
3984
3985
|
}] });
|
|
3985
3986
|
|
|
3986
|
-
const DEPARTMENTS$
|
|
3987
|
+
const DEPARTMENTS$3 = [
|
|
3987
3988
|
{
|
|
3988
3989
|
id: '1',
|
|
3989
3990
|
name: 'Marketing',
|
|
@@ -4001,7 +4002,7 @@ const DEPARTMENTS$1 = [
|
|
|
4001
4002
|
name: 'Customer Support',
|
|
4002
4003
|
},
|
|
4003
4004
|
];
|
|
4004
|
-
const JOB_TITLES$
|
|
4005
|
+
const JOB_TITLES$3 = {
|
|
4005
4006
|
Marketing: [
|
|
4006
4007
|
{
|
|
4007
4008
|
id: '1',
|
|
@@ -4068,51 +4069,51 @@ const AG_GRID_DEMO_DATA$2 = [
|
|
|
4068
4069
|
name: 'Billy Bob',
|
|
4069
4070
|
age: 55,
|
|
4070
4071
|
startDate: new Date('12/1/1994'),
|
|
4071
|
-
department: DEPARTMENTS$
|
|
4072
|
-
jobTitle: JOB_TITLES$
|
|
4072
|
+
department: DEPARTMENTS$3[3],
|
|
4073
|
+
jobTitle: JOB_TITLES$3['Customer Support'][1],
|
|
4073
4074
|
},
|
|
4074
4075
|
{
|
|
4075
4076
|
name: 'Jane Deere',
|
|
4076
4077
|
age: 33,
|
|
4077
4078
|
startDate: new Date('7/15/2009'),
|
|
4078
|
-
department: DEPARTMENTS$
|
|
4079
|
-
jobTitle: JOB_TITLES$
|
|
4079
|
+
department: DEPARTMENTS$3[2],
|
|
4080
|
+
jobTitle: JOB_TITLES$3['Engineering'][2],
|
|
4080
4081
|
},
|
|
4081
4082
|
{
|
|
4082
4083
|
name: 'John Doe',
|
|
4083
4084
|
age: 38,
|
|
4084
4085
|
startDate: new Date('9/1/2017'),
|
|
4085
4086
|
endDate: new Date('9/30/2017'),
|
|
4086
|
-
department: DEPARTMENTS$
|
|
4087
|
+
department: DEPARTMENTS$3[1],
|
|
4087
4088
|
},
|
|
4088
4089
|
{
|
|
4089
4090
|
name: 'David Smith',
|
|
4090
4091
|
age: 51,
|
|
4091
4092
|
startDate: new Date('1/1/2012'),
|
|
4092
4093
|
endDate: new Date('6/15/2018'),
|
|
4093
|
-
department: DEPARTMENTS$
|
|
4094
|
-
jobTitle: JOB_TITLES$
|
|
4094
|
+
department: DEPARTMENTS$3[2],
|
|
4095
|
+
jobTitle: JOB_TITLES$3['Engineering'][4],
|
|
4095
4096
|
},
|
|
4096
4097
|
{
|
|
4097
4098
|
name: 'Emily Johnson',
|
|
4098
4099
|
age: 41,
|
|
4099
4100
|
startDate: new Date('1/15/2014'),
|
|
4100
|
-
department: DEPARTMENTS$
|
|
4101
|
-
jobTitle: JOB_TITLES$
|
|
4101
|
+
department: DEPARTMENTS$3[0],
|
|
4102
|
+
jobTitle: JOB_TITLES$3['Marketing'][2],
|
|
4102
4103
|
},
|
|
4103
4104
|
{
|
|
4104
4105
|
name: 'Nicole Davidson',
|
|
4105
4106
|
age: 22,
|
|
4106
4107
|
startDate: new Date('11/1/2019'),
|
|
4107
|
-
department: DEPARTMENTS$
|
|
4108
|
-
jobTitle: JOB_TITLES$
|
|
4108
|
+
department: DEPARTMENTS$3[2],
|
|
4109
|
+
jobTitle: JOB_TITLES$3['Engineering'][0],
|
|
4109
4110
|
},
|
|
4110
4111
|
{
|
|
4111
4112
|
name: 'Carl Roberts',
|
|
4112
4113
|
age: 23,
|
|
4113
4114
|
startDate: new Date('11/1/2019'),
|
|
4114
|
-
department: DEPARTMENTS$
|
|
4115
|
-
jobTitle: JOB_TITLES$
|
|
4115
|
+
department: DEPARTMENTS$3[2],
|
|
4116
|
+
jobTitle: JOB_TITLES$3['Engineering'][3],
|
|
4116
4117
|
},
|
|
4117
4118
|
];
|
|
4118
4119
|
|
|
@@ -4367,7 +4368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4367
4368
|
args: [{ selector: 'app-context-menu', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDropdownModule], template: "<sky-dropdown buttonType=\"context-menu\" [label]=\"contextMenuAriaLabel\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"deleteAriaLabel\"\n (click)=\"actionClicked('Delete')\"\n >\n Delete\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"markInactiveAriaLabel\"\n (click)=\"actionClicked('Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"moreInfoAriaLabel\"\n (click)=\"actionClicked('More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n" }]
|
|
4368
4369
|
}] });
|
|
4369
4370
|
|
|
4370
|
-
const DEPARTMENTS = [
|
|
4371
|
+
const DEPARTMENTS$2 = [
|
|
4371
4372
|
{
|
|
4372
4373
|
id: '1',
|
|
4373
4374
|
name: 'Marketing',
|
|
@@ -4385,7 +4386,7 @@ const DEPARTMENTS = [
|
|
|
4385
4386
|
name: 'Customer Support',
|
|
4386
4387
|
},
|
|
4387
4388
|
];
|
|
4388
|
-
const JOB_TITLES = {
|
|
4389
|
+
const JOB_TITLES$2 = {
|
|
4389
4390
|
Marketing: [
|
|
4390
4391
|
{
|
|
4391
4392
|
id: '1',
|
|
@@ -4453,16 +4454,16 @@ const AG_GRID_DEMO_DATA = [
|
|
|
4453
4454
|
name: 'Billy Bob',
|
|
4454
4455
|
age: 55,
|
|
4455
4456
|
startDate: new Date('12/1/1994'),
|
|
4456
|
-
department: DEPARTMENTS[3],
|
|
4457
|
-
jobTitle: JOB_TITLES['Customer Support'][1],
|
|
4457
|
+
department: DEPARTMENTS$2[3],
|
|
4458
|
+
jobTitle: JOB_TITLES$2['Customer Support'][1],
|
|
4458
4459
|
},
|
|
4459
4460
|
{
|
|
4460
4461
|
selected: false,
|
|
4461
4462
|
name: 'Jane Deere',
|
|
4462
4463
|
age: 33,
|
|
4463
4464
|
startDate: new Date('7/15/2009'),
|
|
4464
|
-
department: DEPARTMENTS[2],
|
|
4465
|
-
jobTitle: JOB_TITLES['Engineering'][2],
|
|
4465
|
+
department: DEPARTMENTS$2[2],
|
|
4466
|
+
jobTitle: JOB_TITLES$2['Engineering'][2],
|
|
4466
4467
|
},
|
|
4467
4468
|
{
|
|
4468
4469
|
selected: false,
|
|
@@ -4470,7 +4471,7 @@ const AG_GRID_DEMO_DATA = [
|
|
|
4470
4471
|
age: 38,
|
|
4471
4472
|
startDate: new Date('9/1/2017'),
|
|
4472
4473
|
endDate: new Date('9/30/2017'),
|
|
4473
|
-
department: DEPARTMENTS[1],
|
|
4474
|
+
department: DEPARTMENTS$2[1],
|
|
4474
4475
|
},
|
|
4475
4476
|
{
|
|
4476
4477
|
selected: false,
|
|
@@ -4478,32 +4479,32 @@ const AG_GRID_DEMO_DATA = [
|
|
|
4478
4479
|
age: 51,
|
|
4479
4480
|
startDate: new Date('1/1/2012'),
|
|
4480
4481
|
endDate: new Date('6/15/2018'),
|
|
4481
|
-
department: DEPARTMENTS[2],
|
|
4482
|
-
jobTitle: JOB_TITLES['Engineering'][4],
|
|
4482
|
+
department: DEPARTMENTS$2[2],
|
|
4483
|
+
jobTitle: JOB_TITLES$2['Engineering'][4],
|
|
4483
4484
|
},
|
|
4484
4485
|
{
|
|
4485
4486
|
selected: true,
|
|
4486
4487
|
name: 'Emily Johnson',
|
|
4487
4488
|
age: 41,
|
|
4488
4489
|
startDate: new Date('1/15/2014'),
|
|
4489
|
-
department: DEPARTMENTS[0],
|
|
4490
|
-
jobTitle: JOB_TITLES['Marketing'][2],
|
|
4490
|
+
department: DEPARTMENTS$2[0],
|
|
4491
|
+
jobTitle: JOB_TITLES$2['Marketing'][2],
|
|
4491
4492
|
},
|
|
4492
4493
|
{
|
|
4493
4494
|
selected: false,
|
|
4494
4495
|
name: 'Nicole Davidson',
|
|
4495
4496
|
age: 22,
|
|
4496
4497
|
startDate: new Date('11/1/2019'),
|
|
4497
|
-
department: DEPARTMENTS[2],
|
|
4498
|
-
jobTitle: JOB_TITLES['Engineering'][0],
|
|
4498
|
+
department: DEPARTMENTS$2[2],
|
|
4499
|
+
jobTitle: JOB_TITLES$2['Engineering'][0],
|
|
4499
4500
|
},
|
|
4500
4501
|
{
|
|
4501
4502
|
selected: false,
|
|
4502
4503
|
name: 'Carl Roberts',
|
|
4503
4504
|
age: 23,
|
|
4504
4505
|
startDate: new Date('11/1/2019'),
|
|
4505
|
-
department: DEPARTMENTS[2],
|
|
4506
|
-
jobTitle: JOB_TITLES['Engineering'][3],
|
|
4506
|
+
department: DEPARTMENTS$2[2],
|
|
4507
|
+
jobTitle: JOB_TITLES$2['Engineering'][3],
|
|
4507
4508
|
},
|
|
4508
4509
|
];
|
|
4509
4510
|
|
|
@@ -5183,6 +5184,525 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
5183
5184
|
type: Input
|
|
5184
5185
|
}] } });
|
|
5185
5186
|
|
|
5187
|
+
const DEPARTMENTS$1 = [
|
|
5188
|
+
{
|
|
5189
|
+
id: '1',
|
|
5190
|
+
name: 'Marketing',
|
|
5191
|
+
},
|
|
5192
|
+
{
|
|
5193
|
+
id: '2',
|
|
5194
|
+
name: 'Sales',
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
id: '3',
|
|
5198
|
+
name: 'Engineering',
|
|
5199
|
+
},
|
|
5200
|
+
{
|
|
5201
|
+
id: '4',
|
|
5202
|
+
name: 'Customer Support',
|
|
5203
|
+
},
|
|
5204
|
+
];
|
|
5205
|
+
const JOB_TITLES$1 = {
|
|
5206
|
+
Marketing: [
|
|
5207
|
+
{
|
|
5208
|
+
id: '1',
|
|
5209
|
+
name: 'Social Media Coordinator',
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
id: '2',
|
|
5213
|
+
name: 'Blog Manager',
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
id: '3',
|
|
5217
|
+
name: 'Events Manager',
|
|
5218
|
+
},
|
|
5219
|
+
],
|
|
5220
|
+
Sales: [
|
|
5221
|
+
{
|
|
5222
|
+
id: '4',
|
|
5223
|
+
name: 'Business Development Representative',
|
|
5224
|
+
},
|
|
5225
|
+
{
|
|
5226
|
+
id: '5',
|
|
5227
|
+
name: 'Account Executive',
|
|
5228
|
+
},
|
|
5229
|
+
],
|
|
5230
|
+
Engineering: [
|
|
5231
|
+
{
|
|
5232
|
+
id: '6',
|
|
5233
|
+
name: 'Software Engineer',
|
|
5234
|
+
},
|
|
5235
|
+
{
|
|
5236
|
+
id: '7',
|
|
5237
|
+
name: 'Senior Software Engineer',
|
|
5238
|
+
},
|
|
5239
|
+
{
|
|
5240
|
+
id: '8',
|
|
5241
|
+
name: 'Principal Software Engineer',
|
|
5242
|
+
},
|
|
5243
|
+
{
|
|
5244
|
+
id: '9',
|
|
5245
|
+
name: 'UX Designer',
|
|
5246
|
+
},
|
|
5247
|
+
{
|
|
5248
|
+
id: '10',
|
|
5249
|
+
name: 'Product Manager',
|
|
5250
|
+
},
|
|
5251
|
+
],
|
|
5252
|
+
'Customer Support': [
|
|
5253
|
+
{
|
|
5254
|
+
id: '11',
|
|
5255
|
+
name: 'Customer Support Representative',
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
id: '12',
|
|
5259
|
+
name: 'Account Manager',
|
|
5260
|
+
},
|
|
5261
|
+
{
|
|
5262
|
+
id: '13',
|
|
5263
|
+
name: 'Customer Support Specialist',
|
|
5264
|
+
},
|
|
5265
|
+
],
|
|
5266
|
+
};
|
|
5267
|
+
const DATA_GRID_DEMO_DATA$3 = [
|
|
5268
|
+
{
|
|
5269
|
+
id: '1',
|
|
5270
|
+
name: 'Billy Bob',
|
|
5271
|
+
age: 55,
|
|
5272
|
+
startDate: new Date('12/1/1994'),
|
|
5273
|
+
department: DEPARTMENTS$1[3],
|
|
5274
|
+
jobTitle: JOB_TITLES$1['Customer Support'][1],
|
|
5275
|
+
},
|
|
5276
|
+
{
|
|
5277
|
+
id: '2',
|
|
5278
|
+
name: 'Jane Deere',
|
|
5279
|
+
age: 33,
|
|
5280
|
+
startDate: new Date('7/15/2009'),
|
|
5281
|
+
department: DEPARTMENTS$1[2],
|
|
5282
|
+
jobTitle: JOB_TITLES$1['Engineering'][2],
|
|
5283
|
+
},
|
|
5284
|
+
{
|
|
5285
|
+
id: '3',
|
|
5286
|
+
name: 'John Doe',
|
|
5287
|
+
age: 38,
|
|
5288
|
+
startDate: new Date('9/1/2017'),
|
|
5289
|
+
endDate: new Date('9/30/2017'),
|
|
5290
|
+
department: DEPARTMENTS$1[1],
|
|
5291
|
+
},
|
|
5292
|
+
{
|
|
5293
|
+
id: '4',
|
|
5294
|
+
name: 'David Smith',
|
|
5295
|
+
age: 51,
|
|
5296
|
+
startDate: new Date('1/1/2012'),
|
|
5297
|
+
endDate: new Date('6/15/2018'),
|
|
5298
|
+
department: DEPARTMENTS$1[2],
|
|
5299
|
+
jobTitle: JOB_TITLES$1['Engineering'][4],
|
|
5300
|
+
},
|
|
5301
|
+
{
|
|
5302
|
+
id: '5',
|
|
5303
|
+
name: 'Emily Johnson',
|
|
5304
|
+
age: 41,
|
|
5305
|
+
startDate: new Date('1/15/2014'),
|
|
5306
|
+
department: DEPARTMENTS$1[0],
|
|
5307
|
+
jobTitle: JOB_TITLES$1['Marketing'][2],
|
|
5308
|
+
},
|
|
5309
|
+
{
|
|
5310
|
+
id: '6',
|
|
5311
|
+
name: 'Nicole Davidson',
|
|
5312
|
+
age: 22,
|
|
5313
|
+
startDate: new Date('11/1/2019'),
|
|
5314
|
+
department: DEPARTMENTS$1[2],
|
|
5315
|
+
jobTitle: JOB_TITLES$1['Engineering'][0],
|
|
5316
|
+
},
|
|
5317
|
+
{
|
|
5318
|
+
id: '7',
|
|
5319
|
+
name: 'Carl Roberts',
|
|
5320
|
+
age: 23,
|
|
5321
|
+
startDate: new Date('11/1/2019'),
|
|
5322
|
+
department: DEPARTMENTS$1[2],
|
|
5323
|
+
jobTitle: JOB_TITLES$1['Engineering'][3],
|
|
5324
|
+
},
|
|
5325
|
+
];
|
|
5326
|
+
|
|
5327
|
+
/**
|
|
5328
|
+
* @title Basic data grid
|
|
5329
|
+
*/
|
|
5330
|
+
class DataGridBasicExampleComponent {
|
|
5331
|
+
constructor() {
|
|
5332
|
+
this.gridData = signal(DATA_GRID_DEMO_DATA$3, ...(ngDevMode ? [{ debugName: "gridData" }] : []));
|
|
5333
|
+
this.selectedRowIds = model([], ...(ngDevMode ? [{ debugName: "selectedRowIds" }] : []));
|
|
5334
|
+
this.selectedNames = computed(() => {
|
|
5335
|
+
const selectedRowIds = this.selectedRowIds();
|
|
5336
|
+
return this.gridData()
|
|
5337
|
+
.filter((row) => selectedRowIds.includes(row.id))
|
|
5338
|
+
.map((row) => row.name)
|
|
5339
|
+
.sort((a, b) => a.localeCompare(b))
|
|
5340
|
+
.join(', ');
|
|
5341
|
+
}, ...(ngDevMode ? [{ debugName: "selectedNames" }] : []));
|
|
5342
|
+
}
|
|
5343
|
+
actionClicked(row, action) {
|
|
5344
|
+
alert(`${action} clicked for ${row.name}`);
|
|
5345
|
+
}
|
|
5346
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridBasicExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5347
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DataGridBasicExampleComponent, isStandalone: true, selector: "app-data-grid-basic-example", inputs: { selectedRowIds: { classPropertyName: "selectedRowIds", publicName: "selectedRowIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedRowIds: "selectedRowIdsChange" }, ngImport: i0, template: "@let names = selectedNames();\n\n<sky-box class=\"sky-theme-margin-bottom-l\">\n <sky-box-content>\n Selected rows: {{ names }}\n @if (!names) {\n <em class=\"sky-theme-font-body-deemphasized-m\">no rows selected</em>\n }\n </sky-box-content>\n</sky-box>\n\n<sky-data-grid\n data-sky-id=\"example-data-grid\"\n multiselect\n [data]=\"gridData()\"\n [(selectedRowIds)]=\"selectedRowIds\"\n>\n <sky-data-grid-column\n columnId=\"context\"\n headingText=\"Context menu\"\n headingHidden\n width=\"50\"\n [resizable]=\"false\"\n [sortable]=\"false\"\n [template]=\"contextMenu\"\n />\n <sky-data-grid-column field=\"name\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"60\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n <sky-data-grid-column\n field=\"endDate\"\n headingText=\"End date\"\n dataType=\"date\"\n />\n <sky-data-grid-column field=\"department\" headingText=\"Department\">\n <ng-template let-row=\"row\">{{ row.department?.name }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column field=\"jobTitle\" headingText=\"Title\">\n <ng-template let-row=\"row\">{{ row.jobTitle?.name }}</ng-template>\n </sky-data-grid-column>\n</sky-data-grid>\n\n<ng-template #contextMenu let-row=\"row\">\n <sky-dropdown\n buttonType=\"context-menu\"\n [attr.data-sky-id]=\"'context-menu-' + row.id\"\n [label]=\"`Context menu for ${row?.name}`\"\n >\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"`Mark ${row?.name} inactive`\"\n (click)=\"actionClicked(row, 'Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"`More info for ${row?.name}`\"\n (click)=\"actionClicked(row, 'More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: SkyBoxModule }, { kind: "component", type: i1$5.λ41, selector: "sky-box", inputs: ["headingText", "headingHidden", "headingLevel", "headingStyle", "helpPopoverContent", "helpPopoverTitle", "helpKey", "ariaLabel", "ariaLabelledBy", "ariaRole"] }, { kind: "component", type: i1$5.λ43, selector: "sky-box-content" }, { kind: "component", type: SkyDataGrid, selector: "sky-data-grid", inputs: ["autoSort", "autoPage", "columnFit", "compact", "data", "labelText", "loading", "minHeight", "multiselect", "pageSize", "pageQueryParam", "rowCount", "stacked", "topScrollEnabled", "page", "selectedRowIds", "sort"], outputs: ["pageChange", "selectedRowIdsChange", "sortChange"] }, { kind: "component", type: SkyDataGridColumn, selector: "sky-data-grid-column", inputs: ["columnHidden", "columnId", "dataType", "field", "flexWidth", "headingText", "headingHidden", "helpPopoverTitle", "helpPopoverContent", "locked", "resizable", "sortable", "template", "width", "wrapText"] }, { kind: "ngmodule", type: SkyDropdownModule }, { kind: "component", type: i1$3.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { kind: "component", type: i1$3.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }, { kind: "component", type: i1$3.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5348
|
+
}
|
|
5349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridBasicExampleComponent, decorators: [{
|
|
5350
|
+
type: Component,
|
|
5351
|
+
args: [{ selector: 'app-data-grid-basic-example', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyBoxModule, SkyDataGrid, SkyDataGridColumn, SkyDropdownModule], template: "@let names = selectedNames();\n\n<sky-box class=\"sky-theme-margin-bottom-l\">\n <sky-box-content>\n Selected rows: {{ names }}\n @if (!names) {\n <em class=\"sky-theme-font-body-deemphasized-m\">no rows selected</em>\n }\n </sky-box-content>\n</sky-box>\n\n<sky-data-grid\n data-sky-id=\"example-data-grid\"\n multiselect\n [data]=\"gridData()\"\n [(selectedRowIds)]=\"selectedRowIds\"\n>\n <sky-data-grid-column\n columnId=\"context\"\n headingText=\"Context menu\"\n headingHidden\n width=\"50\"\n [resizable]=\"false\"\n [sortable]=\"false\"\n [template]=\"contextMenu\"\n />\n <sky-data-grid-column field=\"name\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"60\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n <sky-data-grid-column\n field=\"endDate\"\n headingText=\"End date\"\n dataType=\"date\"\n />\n <sky-data-grid-column field=\"department\" headingText=\"Department\">\n <ng-template let-row=\"row\">{{ row.department?.name }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column field=\"jobTitle\" headingText=\"Title\">\n <ng-template let-row=\"row\">{{ row.jobTitle?.name }}</ng-template>\n </sky-data-grid-column>\n</sky-data-grid>\n\n<ng-template #contextMenu let-row=\"row\">\n <sky-dropdown\n buttonType=\"context-menu\"\n [attr.data-sky-id]=\"'context-menu-' + row.id\"\n [label]=\"`Context menu for ${row?.name}`\"\n >\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"`Mark ${row?.name} inactive`\"\n (click)=\"actionClicked(row, 'Mark inactive')\"\n >\n Mark inactive\n </button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button\n type=\"button\"\n [attr.aria-label]=\"`More info for ${row?.name}`\"\n (click)=\"actionClicked(row, 'More info')\"\n >\n More info\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</ng-template>\n" }]
|
|
5352
|
+
}], propDecorators: { selectedRowIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedRowIds", required: false }] }, { type: i0.Output, args: ["selectedRowIdsChange"] }] } });
|
|
5353
|
+
|
|
5354
|
+
const DATA_GRID_DEMO_DATA$2 = [
|
|
5355
|
+
{ id: '1', name: 'Billy Bob', age: 55, startDate: new Date('12/1/1994') },
|
|
5356
|
+
{ id: '2', name: 'Jane Deere', age: 33, startDate: new Date('7/15/2009') },
|
|
5357
|
+
{ id: '3', name: 'John Doe', age: 38, startDate: new Date('9/1/2017') },
|
|
5358
|
+
{ id: '4', name: 'David Smith', age: 51, startDate: new Date('1/1/2012') },
|
|
5359
|
+
{ id: '5', name: 'Emily Johnson', age: 41, startDate: new Date('1/15/2014') },
|
|
5360
|
+
{
|
|
5361
|
+
id: '6',
|
|
5362
|
+
name: 'Nicole Davidson',
|
|
5363
|
+
age: 22,
|
|
5364
|
+
startDate: new Date('11/1/2019'),
|
|
5365
|
+
},
|
|
5366
|
+
{ id: '7', name: 'Carl Roberts', age: 23, startDate: new Date('11/1/2019') },
|
|
5367
|
+
{ id: '8', name: 'Maria Garcia', age: 47, startDate: new Date('3/12/2003') },
|
|
5368
|
+
{ id: '9', name: 'Liang Chen', age: 36, startDate: new Date('5/30/2015') },
|
|
5369
|
+
{ id: '10', name: 'Aisha Khan', age: 29, startDate: new Date('8/4/2018') },
|
|
5370
|
+
{ id: '11', name: 'Tom Anderson', age: 60, startDate: new Date('2/2/1989') },
|
|
5371
|
+
{ id: '12', name: 'Sofia Rossi', age: 44, startDate: new Date('10/20/2006') },
|
|
5372
|
+
{
|
|
5373
|
+
id: '13',
|
|
5374
|
+
name: 'Noah Williams',
|
|
5375
|
+
age: 31,
|
|
5376
|
+
startDate: new Date('6/18/2013'),
|
|
5377
|
+
},
|
|
5378
|
+
{ id: '14', name: 'Priya Patel', age: 27, startDate: new Date('4/9/2020') },
|
|
5379
|
+
{ id: '15', name: 'Lucas Martin', age: 39, startDate: new Date('7/1/2011') },
|
|
5380
|
+
{ id: '16', name: 'Hannah Lee', age: 34, startDate: new Date('9/22/2016') },
|
|
5381
|
+
{ id: '17', name: 'Omar Haddad', age: 49, startDate: new Date('1/5/2001') },
|
|
5382
|
+
{ id: '18', name: 'Grace Kim', age: 26, startDate: new Date('12/12/2021') },
|
|
5383
|
+
{ id: '19', name: 'Ethan Brown', age: 53, startDate: new Date('3/30/1998') },
|
|
5384
|
+
{
|
|
5385
|
+
id: '20',
|
|
5386
|
+
name: 'Olivia Wilson',
|
|
5387
|
+
age: 42,
|
|
5388
|
+
startDate: new Date('5/14/2008'),
|
|
5389
|
+
},
|
|
5390
|
+
{ id: '21', name: 'Diego Torres', age: 37, startDate: new Date('8/27/2014') },
|
|
5391
|
+
{ id: '22', name: 'Mei Tanaka', age: 30, startDate: new Date('2/16/2017') },
|
|
5392
|
+
{ id: '23', name: 'Samuel Owens', age: 58, startDate: new Date('11/3/1992') },
|
|
5393
|
+
];
|
|
5394
|
+
function compareRows(a, b, field) {
|
|
5395
|
+
switch (field) {
|
|
5396
|
+
case 'age':
|
|
5397
|
+
return a.age - b.age;
|
|
5398
|
+
case 'startDate':
|
|
5399
|
+
return a.startDate.getTime() - b.startDate.getTime();
|
|
5400
|
+
default:
|
|
5401
|
+
return a.name.localeCompare(b.name);
|
|
5402
|
+
}
|
|
5403
|
+
}
|
|
5404
|
+
/**
|
|
5405
|
+
* Simulates a server request for a single page of sorted data. A real SPA would
|
|
5406
|
+
* issue this request to its backend and let the server apply the sort and paging.
|
|
5407
|
+
*/
|
|
5408
|
+
function getServerPage(options) {
|
|
5409
|
+
const { page, pageSize, sort } = options;
|
|
5410
|
+
const sorted = [...DATA_GRID_DEMO_DATA$2];
|
|
5411
|
+
if (sort) {
|
|
5412
|
+
sorted.sort((a, b) => compareRows(a, b, sort.field));
|
|
5413
|
+
if (sort.direction === 'desc') {
|
|
5414
|
+
sorted.reverse();
|
|
5415
|
+
}
|
|
5416
|
+
}
|
|
5417
|
+
const start = (page - 1) * pageSize;
|
|
5418
|
+
return {
|
|
5419
|
+
items: sorted.slice(start, start + pageSize),
|
|
5420
|
+
totalCount: DATA_GRID_DEMO_DATA$2.length,
|
|
5421
|
+
};
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
/**
|
|
5425
|
+
* @title Data grid with a server-side resource data source
|
|
5426
|
+
*/
|
|
5427
|
+
class DataGridLoadingExampleComponent {
|
|
5428
|
+
#behavior;
|
|
5429
|
+
constructor() {
|
|
5430
|
+
// Simulate network latency.
|
|
5431
|
+
this.delay = input(600, ...(ngDevMode ? [{ debugName: "delay" }] : []));
|
|
5432
|
+
this.pageSize = 5;
|
|
5433
|
+
this.page = signal(1, ...(ngDevMode ? [{ debugName: "page" }] : []));
|
|
5434
|
+
this.sort = signal({
|
|
5435
|
+
field: 'name',
|
|
5436
|
+
direction: 'asc',
|
|
5437
|
+
}, ...(ngDevMode ? [{ debugName: "sort" }] : []));
|
|
5438
|
+
// The total number of rows available on the server, used to size the paging
|
|
5439
|
+
// controls. It is held in its own signal so it persists across page loads.
|
|
5440
|
+
this.rowCount = signal(0, ...(ngDevMode ? [{ debugName: "rowCount" }] : []));
|
|
5441
|
+
// Demonstration resource. An actual SPA might use [httpResource](https://angular.dev/api/common/http/httpResource)
|
|
5442
|
+
// to load remote data. The server applies the sort and returns one page at a
|
|
5443
|
+
// time, so `autoSort` and `autoPage` are disabled on the grid below.
|
|
5444
|
+
this.data = resource({ ...(ngDevMode ? { debugName: "data" } : {}), params: () => ({
|
|
5445
|
+
behavior: this.#behavior(),
|
|
5446
|
+
delay: this.delay(),
|
|
5447
|
+
page: this.page(),
|
|
5448
|
+
pageSize: this.pageSize,
|
|
5449
|
+
sort: this.sort(),
|
|
5450
|
+
}),
|
|
5451
|
+
loader: async ({ params, abortSignal }) => {
|
|
5452
|
+
switch (params.behavior) {
|
|
5453
|
+
case 'data':
|
|
5454
|
+
await new Promise((resolve) => setTimeout(resolve, params.delay));
|
|
5455
|
+
return getServerPage(params);
|
|
5456
|
+
case 'empty':
|
|
5457
|
+
await new Promise((resolve) => setTimeout(resolve, params.delay));
|
|
5458
|
+
return { items: [], totalCount: 0 };
|
|
5459
|
+
case 'loading':
|
|
5460
|
+
return await new Promise((resolve) => {
|
|
5461
|
+
abortSignal.addEventListener('abort', () => {
|
|
5462
|
+
resolve({ items: [], totalCount: 0 });
|
|
5463
|
+
});
|
|
5464
|
+
});
|
|
5465
|
+
default:
|
|
5466
|
+
throw new Error();
|
|
5467
|
+
}
|
|
5468
|
+
} });
|
|
5469
|
+
this.#behavior = signal('data', ...(ngDevMode ? [{ debugName: "#behavior" }] : []));
|
|
5470
|
+
afterNextRender(() => {
|
|
5471
|
+
this.data.reload();
|
|
5472
|
+
});
|
|
5473
|
+
// Keep the paging controls in sync with the server's most recent total.
|
|
5474
|
+
effect(() => {
|
|
5475
|
+
const value = this.data.value();
|
|
5476
|
+
if (value) {
|
|
5477
|
+
this.rowCount.set(value.totalCount);
|
|
5478
|
+
}
|
|
5479
|
+
});
|
|
5480
|
+
}
|
|
5481
|
+
showData() {
|
|
5482
|
+
this.page.set(1);
|
|
5483
|
+
this.#behavior.set('data');
|
|
5484
|
+
}
|
|
5485
|
+
showEmpty() {
|
|
5486
|
+
this.#behavior.set('empty');
|
|
5487
|
+
}
|
|
5488
|
+
showLoading() {
|
|
5489
|
+
this.#behavior.set('loading');
|
|
5490
|
+
}
|
|
5491
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridLoadingExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5492
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: DataGridLoadingExampleComponent, isStandalone: true, selector: "app-data-grid-loading-example", inputs: { delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"sky-theme-margin-bottom-l\">\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-data-button\"\n (click)=\"showData()\"\n >\n Show data\n </button>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-empty-button\"\n (click)=\"showEmpty()\"\n >\n Show empty state\n </button>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-loading-button\"\n (click)=\"showLoading()\"\n >\n Show loading state\n </button>\n</div>\n\n<sky-data-grid\n data-sky-id=\"example-data-grid\"\n autoSort=\"false\"\n autoPage=\"false\"\n minHeight=\"100\"\n [data]=\"data.value()?.items ?? []\"\n [loading]=\"data.isLoading()\"\n [pageSize]=\"pageSize\"\n [rowCount]=\"rowCount()\"\n [(page)]=\"page\"\n [(sort)]=\"sort\"\n>\n <sky-data-grid-column\n field=\"name\"\n headingText=\"Name\"\n helpPopoverTitle=\"Server-side sorting and paging\"\n helpPopoverContent=\"Each sort or page change issues a new request to the server.\"\n />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"80\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n</sky-data-grid>\n", dependencies: [{ kind: "component", type: SkyDataGrid, selector: "sky-data-grid", inputs: ["autoSort", "autoPage", "columnFit", "compact", "data", "labelText", "loading", "minHeight", "multiselect", "pageSize", "pageQueryParam", "rowCount", "stacked", "topScrollEnabled", "page", "selectedRowIds", "sort"], outputs: ["pageChange", "selectedRowIdsChange", "sortChange"] }, { kind: "component", type: SkyDataGridColumn, selector: "sky-data-grid-column", inputs: ["columnHidden", "columnId", "dataType", "field", "flexWidth", "headingText", "headingHidden", "helpPopoverTitle", "helpPopoverContent", "locked", "resizable", "sortable", "template", "width", "wrapText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5493
|
+
}
|
|
5494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridLoadingExampleComponent, decorators: [{
|
|
5495
|
+
type: Component,
|
|
5496
|
+
args: [{ selector: 'app-data-grid-loading-example', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyDataGrid, SkyDataGridColumn], template: "<div class=\"sky-theme-margin-bottom-l\">\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-data-button\"\n (click)=\"showData()\"\n >\n Show data\n </button>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-empty-button\"\n (click)=\"showEmpty()\"\n >\n Show empty state\n </button>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"show-loading-button\"\n (click)=\"showLoading()\"\n >\n Show loading state\n </button>\n</div>\n\n<sky-data-grid\n data-sky-id=\"example-data-grid\"\n autoSort=\"false\"\n autoPage=\"false\"\n minHeight=\"100\"\n [data]=\"data.value()?.items ?? []\"\n [loading]=\"data.isLoading()\"\n [pageSize]=\"pageSize\"\n [rowCount]=\"rowCount()\"\n [(page)]=\"page\"\n [(sort)]=\"sort\"\n>\n <sky-data-grid-column\n field=\"name\"\n headingText=\"Name\"\n helpPopoverTitle=\"Server-side sorting and paging\"\n helpPopoverContent=\"Each sort or page change issues a new request to the server.\"\n />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"80\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n</sky-data-grid>\n" }]
|
|
5497
|
+
}], ctorParameters: () => [], propDecorators: { delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }] } });
|
|
5498
|
+
|
|
5499
|
+
const DEPARTMENTS = [
|
|
5500
|
+
{
|
|
5501
|
+
id: '1',
|
|
5502
|
+
name: 'Marketing',
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
id: '2',
|
|
5506
|
+
name: 'Sales',
|
|
5507
|
+
},
|
|
5508
|
+
{
|
|
5509
|
+
id: '3',
|
|
5510
|
+
name: 'Engineering',
|
|
5511
|
+
},
|
|
5512
|
+
{
|
|
5513
|
+
id: '4',
|
|
5514
|
+
name: 'Customer Support',
|
|
5515
|
+
},
|
|
5516
|
+
];
|
|
5517
|
+
const JOB_TITLES = {
|
|
5518
|
+
Marketing: [
|
|
5519
|
+
{
|
|
5520
|
+
id: '1',
|
|
5521
|
+
name: 'Social Media Coordinator',
|
|
5522
|
+
},
|
|
5523
|
+
{
|
|
5524
|
+
id: '2',
|
|
5525
|
+
name: 'Blog Manager',
|
|
5526
|
+
},
|
|
5527
|
+
{
|
|
5528
|
+
id: '3',
|
|
5529
|
+
name: 'Events Manager',
|
|
5530
|
+
},
|
|
5531
|
+
],
|
|
5532
|
+
Sales: [
|
|
5533
|
+
{
|
|
5534
|
+
id: '4',
|
|
5535
|
+
name: 'Business Development Representative',
|
|
5536
|
+
},
|
|
5537
|
+
{
|
|
5538
|
+
id: '5',
|
|
5539
|
+
name: 'Account Executive',
|
|
5540
|
+
},
|
|
5541
|
+
],
|
|
5542
|
+
Engineering: [
|
|
5543
|
+
{
|
|
5544
|
+
id: '6',
|
|
5545
|
+
name: 'Software Engineer',
|
|
5546
|
+
},
|
|
5547
|
+
{
|
|
5548
|
+
id: '7',
|
|
5549
|
+
name: 'Senior Software Engineer',
|
|
5550
|
+
},
|
|
5551
|
+
{
|
|
5552
|
+
id: '8',
|
|
5553
|
+
name: 'Principal Software Engineer',
|
|
5554
|
+
},
|
|
5555
|
+
{
|
|
5556
|
+
id: '9',
|
|
5557
|
+
name: 'UX Designer',
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
id: '10',
|
|
5561
|
+
name: 'Product Manager',
|
|
5562
|
+
},
|
|
5563
|
+
],
|
|
5564
|
+
'Customer Support': [
|
|
5565
|
+
{
|
|
5566
|
+
id: '11',
|
|
5567
|
+
name: 'Customer Support Representative',
|
|
5568
|
+
},
|
|
5569
|
+
{
|
|
5570
|
+
id: '12',
|
|
5571
|
+
name: 'Account Manager',
|
|
5572
|
+
},
|
|
5573
|
+
{
|
|
5574
|
+
id: '13',
|
|
5575
|
+
name: 'Customer Support Specialist',
|
|
5576
|
+
},
|
|
5577
|
+
],
|
|
5578
|
+
};
|
|
5579
|
+
const DATA_GRID_DEMO_DATA$1 = [
|
|
5580
|
+
{
|
|
5581
|
+
id: '1',
|
|
5582
|
+
name: 'Billy Bob',
|
|
5583
|
+
age: 55,
|
|
5584
|
+
startDate: new Date('12/1/1994'),
|
|
5585
|
+
department: DEPARTMENTS[3],
|
|
5586
|
+
jobTitle: JOB_TITLES['Customer Support'][1],
|
|
5587
|
+
active: true,
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
id: '2',
|
|
5591
|
+
name: 'Jane Deere',
|
|
5592
|
+
age: 33,
|
|
5593
|
+
startDate: new Date('7/15/2009'),
|
|
5594
|
+
department: DEPARTMENTS[2],
|
|
5595
|
+
jobTitle: JOB_TITLES['Engineering'][2],
|
|
5596
|
+
active: true,
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
id: '3',
|
|
5600
|
+
name: 'John Doe',
|
|
5601
|
+
age: 38,
|
|
5602
|
+
startDate: new Date('9/1/2017'),
|
|
5603
|
+
endDate: new Date('9/30/2017'),
|
|
5604
|
+
department: DEPARTMENTS[1],
|
|
5605
|
+
active: true,
|
|
5606
|
+
},
|
|
5607
|
+
{
|
|
5608
|
+
id: '4',
|
|
5609
|
+
name: 'David Smith',
|
|
5610
|
+
age: 51,
|
|
5611
|
+
startDate: new Date('1/1/2012'),
|
|
5612
|
+
endDate: new Date('6/15/2018'),
|
|
5613
|
+
department: DEPARTMENTS[2],
|
|
5614
|
+
jobTitle: JOB_TITLES['Engineering'][4],
|
|
5615
|
+
active: false,
|
|
5616
|
+
},
|
|
5617
|
+
{
|
|
5618
|
+
id: '5',
|
|
5619
|
+
name: 'Emily Johnson',
|
|
5620
|
+
age: 41,
|
|
5621
|
+
startDate: new Date('1/15/2014'),
|
|
5622
|
+
department: DEPARTMENTS[0],
|
|
5623
|
+
jobTitle: JOB_TITLES['Marketing'][2],
|
|
5624
|
+
active: true,
|
|
5625
|
+
},
|
|
5626
|
+
{
|
|
5627
|
+
id: '6',
|
|
5628
|
+
name: 'Nicole Davidson',
|
|
5629
|
+
age: 22,
|
|
5630
|
+
startDate: new Date('11/1/2019'),
|
|
5631
|
+
department: DEPARTMENTS[2],
|
|
5632
|
+
jobTitle: JOB_TITLES['Engineering'][0],
|
|
5633
|
+
active: true,
|
|
5634
|
+
},
|
|
5635
|
+
{
|
|
5636
|
+
id: '7',
|
|
5637
|
+
name: 'Carl Roberts',
|
|
5638
|
+
age: 23,
|
|
5639
|
+
startDate: new Date('11/1/2019'),
|
|
5640
|
+
department: DEPARTMENTS[2],
|
|
5641
|
+
jobTitle: JOB_TITLES['Engineering'][3],
|
|
5642
|
+
active: true,
|
|
5643
|
+
},
|
|
5644
|
+
];
|
|
5645
|
+
|
|
5646
|
+
/**
|
|
5647
|
+
* @title Data grid with paging using router query parameters
|
|
5648
|
+
*/
|
|
5649
|
+
class DataGridPagingExampleComponent {
|
|
5650
|
+
constructor() {
|
|
5651
|
+
this.data = DATA_GRID_DEMO_DATA$1;
|
|
5652
|
+
// For demo purposes, only use the query string if we're running the demo in its own SPA as a route and not on the documentation site.
|
|
5653
|
+
this.pageQueryParam = inject(ActivatedRoute, { optional: true })?.component ===
|
|
5654
|
+
DataGridPagingExampleComponent
|
|
5655
|
+
? 'page'
|
|
5656
|
+
: '';
|
|
5657
|
+
}
|
|
5658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridPagingExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5659
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DataGridPagingExampleComponent, isStandalone: true, selector: "app-data-grid-paging-example", ngImport: i0, template: "<sky-data-grid\n data-sky-id=\"example-data-grid\"\n pageSize=\"5\"\n [data]=\"data\"\n [pageQueryParam]=\"pageQueryParam\"\n>\n <sky-data-grid-column field=\"name\" flexWidth=\"3\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n flexWidth=\"1\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n flexWidth=\"2\"\n />\n <sky-data-grid-column\n field=\"endDate\"\n headingText=\"End date\"\n dataType=\"date\"\n flexWidth=\"2\"\n />\n <sky-data-grid-column\n field=\"department\"\n headingText=\"Department\"\n flexWidth=\"3\"\n >\n <ng-template let-value=\"value\">{{ value?.name ?? '' }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column field=\"jobTitle\" headingText=\"Job title\" flexWidth=\"4\">\n <ng-template let-value=\"value\">{{ value?.name ?? '' }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column\n field=\"active\"\n headingText=\"Active\"\n dataType=\"boolean\"\n flexWidth=\"1\"\n />\n</sky-data-grid>\n", dependencies: [{ kind: "component", type: SkyDataGrid, selector: "sky-data-grid", inputs: ["autoSort", "autoPage", "columnFit", "compact", "data", "labelText", "loading", "minHeight", "multiselect", "pageSize", "pageQueryParam", "rowCount", "stacked", "topScrollEnabled", "page", "selectedRowIds", "sort"], outputs: ["pageChange", "selectedRowIdsChange", "sortChange"] }, { kind: "component", type: SkyDataGridColumn, selector: "sky-data-grid-column", inputs: ["columnHidden", "columnId", "dataType", "field", "flexWidth", "headingText", "headingHidden", "helpPopoverTitle", "helpPopoverContent", "locked", "resizable", "sortable", "template", "width", "wrapText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5660
|
+
}
|
|
5661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridPagingExampleComponent, decorators: [{
|
|
5662
|
+
type: Component,
|
|
5663
|
+
args: [{ selector: 'app-data-grid-paging-example', imports: [SkyDataGrid, SkyDataGridColumn], changeDetection: ChangeDetectionStrategy.OnPush, template: "<sky-data-grid\n data-sky-id=\"example-data-grid\"\n pageSize=\"5\"\n [data]=\"data\"\n [pageQueryParam]=\"pageQueryParam\"\n>\n <sky-data-grid-column field=\"name\" flexWidth=\"3\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n flexWidth=\"1\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n flexWidth=\"2\"\n />\n <sky-data-grid-column\n field=\"endDate\"\n headingText=\"End date\"\n dataType=\"date\"\n flexWidth=\"2\"\n />\n <sky-data-grid-column\n field=\"department\"\n headingText=\"Department\"\n flexWidth=\"3\"\n >\n <ng-template let-value=\"value\">{{ value?.name ?? '' }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column field=\"jobTitle\" headingText=\"Job title\" flexWidth=\"4\">\n <ng-template let-value=\"value\">{{ value?.name ?? '' }}</ng-template>\n </sky-data-grid-column>\n <sky-data-grid-column\n field=\"active\"\n headingText=\"Active\"\n dataType=\"boolean\"\n flexWidth=\"1\"\n />\n</sky-data-grid>\n" }]
|
|
5664
|
+
}] });
|
|
5665
|
+
|
|
5666
|
+
const DATA_GRID_DEMO_DATA = [
|
|
5667
|
+
{ id: '1', name: 'Billy Bob', age: 55, startDate: new Date('12/1/1994') },
|
|
5668
|
+
{ id: '2', name: 'Jane Deere', age: 33, startDate: new Date('7/15/2009') },
|
|
5669
|
+
{ id: '3', name: 'John Doe', age: 38, startDate: new Date('9/1/2017') },
|
|
5670
|
+
{ id: '4', name: 'David Smith', age: 51, startDate: new Date('1/1/2012') },
|
|
5671
|
+
{ id: '5', name: 'Emily Johnson', age: 41, startDate: new Date('1/15/2014') },
|
|
5672
|
+
];
|
|
5673
|
+
|
|
5674
|
+
/**
|
|
5675
|
+
* @title Data grid with two-way sort binding
|
|
5676
|
+
*/
|
|
5677
|
+
class DataGridSortingExampleComponent {
|
|
5678
|
+
constructor() {
|
|
5679
|
+
this.data = DATA_GRID_DEMO_DATA;
|
|
5680
|
+
this.sort = signal({
|
|
5681
|
+
field: 'name',
|
|
5682
|
+
direction: 'asc',
|
|
5683
|
+
}, ...(ngDevMode ? [{ debugName: "sort" }] : []));
|
|
5684
|
+
this.sortDescription = computed(() => {
|
|
5685
|
+
const sort = this.sort();
|
|
5686
|
+
if (!sort) {
|
|
5687
|
+
return '(no sort applied)';
|
|
5688
|
+
}
|
|
5689
|
+
return `${sort.field} (${sort.direction === 'desc' ? 'descending' : 'ascending'})`;
|
|
5690
|
+
}, ...(ngDevMode ? [{ debugName: "sortDescription" }] : []));
|
|
5691
|
+
}
|
|
5692
|
+
sortByAgeDescending() {
|
|
5693
|
+
this.sort.set({ field: 'age', direction: 'desc' });
|
|
5694
|
+
}
|
|
5695
|
+
clearSort() {
|
|
5696
|
+
this.sort.set(undefined);
|
|
5697
|
+
}
|
|
5698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridSortingExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5699
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DataGridSortingExampleComponent, isStandalone: true, selector: "app-data-grid-sorting-example", ngImport: i0, template: "<sky-box class=\"sky-theme-margin-bottom-l\">\n <sky-box-content>\n Current sort:\n <strong data-sky-id=\"current-sort\" class=\"sky-theme-margin-right-s\">{{\n sortDescription()\n }}</strong>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"sort-by-age-button\"\n (click)=\"sortByAgeDescending()\"\n >\n Sort by age (descending)\n </button>\n <button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n data-sky-id=\"clear-sort-button\"\n (click)=\"clearSort()\"\n >\n Clear sort\n </button>\n </sky-box-content>\n</sky-box>\n\n<sky-data-grid data-sky-id=\"example-data-grid\" [data]=\"data\" [(sort)]=\"sort\">\n <sky-data-grid-column field=\"name\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"80\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n</sky-data-grid>\n", dependencies: [{ kind: "ngmodule", type: SkyBoxModule }, { kind: "component", type: i1$5.λ41, selector: "sky-box", inputs: ["headingText", "headingHidden", "headingLevel", "headingStyle", "helpPopoverContent", "helpPopoverTitle", "helpKey", "ariaLabel", "ariaLabelledBy", "ariaRole"] }, { kind: "component", type: i1$5.λ43, selector: "sky-box-content" }, { kind: "component", type: SkyDataGrid, selector: "sky-data-grid", inputs: ["autoSort", "autoPage", "columnFit", "compact", "data", "labelText", "loading", "minHeight", "multiselect", "pageSize", "pageQueryParam", "rowCount", "stacked", "topScrollEnabled", "page", "selectedRowIds", "sort"], outputs: ["pageChange", "selectedRowIdsChange", "sortChange"] }, { kind: "component", type: SkyDataGridColumn, selector: "sky-data-grid-column", inputs: ["columnHidden", "columnId", "dataType", "field", "flexWidth", "headingText", "headingHidden", "helpPopoverTitle", "helpPopoverContent", "locked", "resizable", "sortable", "template", "width", "wrapText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5700
|
+
}
|
|
5701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DataGridSortingExampleComponent, decorators: [{
|
|
5702
|
+
type: Component,
|
|
5703
|
+
args: [{ selector: 'app-data-grid-sorting-example', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyBoxModule, SkyDataGrid, SkyDataGridColumn], template: "<sky-box class=\"sky-theme-margin-bottom-l\">\n <sky-box-content>\n Current sort:\n <strong data-sky-id=\"current-sort\" class=\"sky-theme-margin-right-s\">{{\n sortDescription()\n }}</strong>\n <button\n class=\"sky-btn sky-btn-default sky-theme-margin-right-s\"\n type=\"button\"\n data-sky-id=\"sort-by-age-button\"\n (click)=\"sortByAgeDescending()\"\n >\n Sort by age (descending)\n </button>\n <button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n data-sky-id=\"clear-sort-button\"\n (click)=\"clearSort()\"\n >\n Clear sort\n </button>\n </sky-box-content>\n</sky-box>\n\n<sky-data-grid data-sky-id=\"example-data-grid\" [data]=\"data\" [(sort)]=\"sort\">\n <sky-data-grid-column field=\"name\" headingText=\"Name\" />\n <sky-data-grid-column\n field=\"age\"\n headingText=\"Age\"\n dataType=\"number\"\n width=\"80\"\n helpPopoverTitle=\"Age\"\n helpPopoverContent=\"The team member's current age, in years.\"\n />\n <sky-data-grid-column\n field=\"startDate\"\n headingText=\"Start date\"\n dataType=\"date\"\n />\n</sky-data-grid>\n" }]
|
|
5704
|
+
}] });
|
|
5705
|
+
|
|
5186
5706
|
const DATA_MANAGER_DEMO_DATA = [
|
|
5187
5707
|
{
|
|
5188
5708
|
id: '1',
|
|
@@ -14344,5 +14864,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
14344
14864
|
* Generated bundle index. Do not edit.
|
|
14345
14865
|
*/
|
|
14346
14866
|
|
|
14347
|
-
export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
|
|
14867
|
+
export { ActionBarsSummaryActionBarBasicExampleComponent, ActionBarsSummaryActionBarErrorExampleComponent, ActionBarsSummaryActionBarModalExampleComponent, ActionBarsSummaryActionBarTabExampleComponent, AgGridDataEntryGridBasicExampleComponent, AgGridDataEntryGridDataManagerAddedExampleComponent, AgGridDataEntryGridFocusExampleComponent, AgGridDataEntryGridInlineHelpExampleComponent, AgGridDataGridBasicExampleComponent, AgGridDataGridBasicMultiselectExampleComponent, AgGridDataGridDataManagerExampleComponent, AgGridDataGridDataManagerMultiselectExampleComponent, AgGridDataGridInlineHelpExampleComponent, AgGridDataGridPagingExampleComponent, AgGridDataGridTemplateRefColumnExampleComponent, AgGridDataGridTopScrollExampleComponent, AngularTreeComponentAngularTreeBasicExampleComponent, AngularTreeComponentAngularTreeHelpKeyExampleComponent, AngularTreeComponentAngularTreePreselectedNodesExampleComponent, AutonumericCurrencyExampleComponent, AutonumericInternationalFormattingExampleComponent, AutonumericOptionsProviderExampleComponent, AutonumericPresetExampleComponent, AvatarExampleComponent, ColorpickerBasicExampleComponent, ColorpickerHelpKeyExampleComponent, ColorpickerProgrammaticExampleComponent, CoreIdExampleComponent, CoreMediaQueryBasicExampleComponent, CoreMediaQueryResponsiveHostExampleComponent, CoreNumericBasicExampleComponent, DataGridBasicExampleComponent, DataGridLoadingExampleComponent, DataGridPagingExampleComponent, DataGridSortingExampleComponent, DataManagerBasicExampleComponent, DatetimeDatePipeBasicExampleComponent, DatetimeDateRangePickerBasicExampleComponent, DatetimeDateRangePickerCustomCalculatorExampleComponent, DatetimeDateRangePickerHelpKeyExampleComponent, DatetimeDatepickerBasicExampleComponent, DatetimeDatepickerCustomDatesExampleComponent, DatetimeDatepickerFuzzyExampleComponent, DatetimeTimepickerBasicExampleComponent, ErrorsErrorEmbeddedExampleComponent, ErrorsErrorModalExampleComponent, FilterBarLookupExampleComponent, FilterBarModalExampleComponent, FilterBarSelectableExampleComponent, FlyoutBasicExampleComponent, FlyoutCustomHeadersExampleComponent, FormsCharacterCountExampleComponent, FormsCheckboxBasicExampleComponent, FormsCheckboxHelpKeyExampleComponent, FormsCheckboxIconGroupExampleComponent, FormsFieldGroupBasicExampleComponent, FormsFieldGroupHelpKeyExampleComponent, FormsFileAttachmentBasicExampleComponent, FormsFileAttachmentHelpKeyExampleComponent, FormsFileDropBasicExampleComponent, FormsFileDropHelpKeyExampleComponent, FormsInputBoxBasicExampleComponent, FormsInputBoxWithCustomFormErrorsExampleComponent, FormsRadioHelpKeyExampleComponent, FormsRadioIconExampleComponent, FormsRadioStandardExampleComponent, FormsSelectionBoxCheckboxExampleComponent, FormsSelectionBoxRadioExampleComponent, FormsToggleSwitchBasicExampleComponent, FormsToggleSwitchHelpKeyExampleComponent, HelpInlineActionClickExampleComponent, HelpInlineHelpKeyExampleComponent, HelpInlinePopoverExampleComponent, IconBasicExampleComponent, IconIconButtonExampleComponent, IndicatorsAlertBasicExampleComponent, IndicatorsIllustrationBasicExampleComponent, IndicatorsKeyInfoBasicExampleComponent, IndicatorsKeyInfoHelpKeyExampleComponent, IndicatorsLabelBasicExampleComponent, IndicatorsStatusIndicatorBasicExampleComponent, IndicatorsStatusIndicatorHelpKeyExampleComponent, IndicatorsTextHighlightBasicExampleComponent, IndicatorsTokensBasicExampleComponent, IndicatorsTokensCustomExampleComponent, IndicatorsWaitElementExampleComponent, IndicatorsWaitPageExampleComponent, InlineFormBasicExampleComponent, InlineFormCustomButtonsExampleComponent, InlineFormRepeatersExampleComponent, LayoutActionButtonBasicExampleComponent, LayoutActionButtonPermalinkExampleComponent, LayoutBackToTopInfiniteScrollExampleComponent, LayoutBackToTopRepeaterExampleComponent, LayoutBoxBasicExampleComponent, LayoutBoxHelpKeyExampleComponent, LayoutCardBasicExampleComponent, LayoutDefinitionListBasicExampleComponent, LayoutDescriptionListHelpKeyExampleComponent, LayoutDescriptionListHorizontalExampleComponent, LayoutDescriptionListInlineHelpExampleComponent, LayoutDescriptionListLongDescriptionExampleComponent, LayoutDescriptionListVerticalExampleComponent, LayoutFluidGridExampleComponent, LayoutFormatExampleComponent, LayoutInlineDeleteCustomExampleComponent, LayoutInlineDeleteRepeaterExampleComponent, LayoutPageSummaryBasicExampleComponent, LayoutTextExpandInlineExampleComponent, LayoutTextExpandModalExampleComponent, LayoutTextExpandNewlineExampleComponent, LayoutTextExpandRepeaterExampleComponent, LayoutToolbarBasicExampleComponent, LayoutToolbarSectionedExampleComponent, ListsFilterInlineExampleComponent, ListsInfiniteScrollRepeaterExampleComponent, ListsListSummaryBasicExampleComponent, ListsPagingBasicExampleComponent, ListsPagingWithContentExampleComponent, ListsRepeaterAddRemoveExampleComponent, ListsRepeaterBasicExampleComponent, ListsRepeaterInlineFormExampleComponent, ListsSortBasicExampleComponent, LookupAddItemExampleComponent, LookupAutocompleteAdvancedExampleComponent, LookupAutocompleteAnyValueExampleComponent, LookupAutocompleteBasicExampleComponent, LookupAutocompleteCustomSearchExampleComponent, LookupAutocompleteSearchFiltersExampleComponent, LookupCountryFieldBasicExampleComponent, LookupCustomPickerExampleComponent, LookupMultiSelectExampleComponent, LookupResultTemplatesExampleComponent, LookupSearchBasicExampleComponent, LookupSelectionModalAddItemExampleComponent, LookupSelectionModalBasicExampleComponent, LookupSingleSelectExampleComponent, ModalsConfirmBasicWithControllerExampleComponent, ModalsConfirmBasicWithHarnessExampleComponent, ModalsModalBasicWithBannerExampleComponent, ModalsModalBasicWithControllerExampleComponent, ModalsModalBasicWithHarnessExampleComponent, ModalsModalBasicWithHarnessHelpKeyExampleComponent, ModalsModalWithErrorExampleComponent, NavbarExampleComponent, PagesActionHubExampleComponent, PagesPageDataManagerSplitViewFitLayoutExampleComponent, PagesPageHomePageBlocksLayoutExampleComponent, PagesPageListPageListLayoutExampleComponent, PagesPageListPageTabsLayoutExampleComponent, PagesPageRecordPageBlocksLayoutExampleComponent, PagesPageRecordPageTabsLayoutExampleComponent, PagesPageSplitViewPageFitLayoutExampleComponent, PhoneFieldBasicExampleComponent, PopoversDropdownBasicExampleComponent, PopoversPopoverBasicExampleComponent, PopoversPopoverProgrammaticExampleComponent, ProgressIndicatorPassiveIndicatorBasicExampleComponent, ProgressIndicatorWaterfallIndicatorBasicExampleComponent, ProgressIndicatorWizardBasicExampleComponent, RouterHrefBasicExampleComponent, SplitViewBasicExampleComponent, SplitViewPageBoundExampleComponent, TabsDynamicAddCloseExampleComponent, TabsDynamicExampleComponent, TabsSectionedFormModalExampleComponent, TabsStaticAddCloseExampleComponent, TabsStaticExampleComponent, TabsVerticalTabsBasicExampleComponent, TabsVerticalTabsGroupedExampleComponent, TabsVerticalTabsMixedExampleComponent, TabsWizardBasicExampleComponent, TextEditorExampleComponent, TextEditorHelpKeyExampleComponent, TextEditorRichTextDisplayExampleComponent, TilesBasicExampleComponent, ToastBasicExampleComponent, ToastCustomComponentExampleComponent, ValidationEmailValidationControlValidatorExampleComponent, ValidationEmailValidationDirectiveExampleComponent, ValidationUrlValidationControlValidatorExampleComponent, ValidationUrlValidationDirectiveExampleComponent };
|
|
14348
14868
|
//# sourceMappingURL=skyux-code-examples.mjs.map
|