@skyux/data-manager 5.7.2 → 5.8.2

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.
Files changed (23) hide show
  1. package/bundles/skyux-data-manager.umd.js +47 -0
  2. package/documentation.json +108 -29
  3. package/esm2015/lib/modules/data-manager/data-manager-filter-context.js +3 -0
  4. package/esm2015/lib/modules/data-manager/data-manager-filter-context.js.map +1 -1
  5. package/esm2015/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.js +10 -0
  6. package/esm2015/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.js.map +1 -1
  7. package/esm2015/lib/modules/data-manager/models/data-manager-state-options.js.map +1 -1
  8. package/esm2015/lib/modules/data-manager/models/data-manager-state.js +21 -0
  9. package/esm2015/lib/modules/data-manager/models/data-manager-state.js.map +1 -1
  10. package/esm2015/lib/modules/data-manager/models/data-view-config.js.map +1 -1
  11. package/esm2015/lib/modules/data-manager/models/data-view-state-options.js.map +1 -1
  12. package/esm2015/lib/modules/data-manager/models/data-view-state.js +13 -0
  13. package/esm2015/lib/modules/data-manager/models/data-view-state.js.map +1 -1
  14. package/fesm2015/skyux-data-manager.js +47 -0
  15. package/fesm2015/skyux-data-manager.js.map +1 -1
  16. package/lib/modules/data-manager/data-manager-filter-context.d.ts +6 -0
  17. package/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.d.ts +10 -0
  18. package/lib/modules/data-manager/models/data-manager-state-options.d.ts +3 -3
  19. package/lib/modules/data-manager/models/data-manager-state.d.ts +41 -0
  20. package/lib/modules/data-manager/models/data-view-config.d.ts +1 -1
  21. package/lib/modules/data-manager/models/data-view-state-options.d.ts +2 -2
  22. package/lib/modules/data-manager/models/data-view-state.d.ts +20 -0
  23. package/package.json +10 -10
@@ -412,15 +412,28 @@
412
412
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
413
413
  }
414
414
 
415
+ /**
416
+ * Provides options for defining how data is displayed, such as which columns appear.
417
+ */
415
418
  var SkyDataViewState = /** @class */ (function () {
416
419
  function SkyDataViewState(data) {
420
+ /**
421
+ * The IDs of the columns able to be displayed for column-based views. This property is required when utilizing a grid-based view, a column picker, or both.
422
+ */
417
423
  this.columnIds = [];
424
+ /**
425
+ * The IDs of the columns displayed for column-based views.
426
+ */
418
427
  this.displayedColumnIds = [];
419
428
  this.viewId = data.viewId;
420
429
  this.columnIds = data.columnIds || [];
421
430
  this.displayedColumnIds = data.displayedColumnIds || [];
422
431
  this.additionalData = data.additionalData;
423
432
  }
433
+ /**
434
+ * Returns the `SkyDataViewStateOptions` for the current view.
435
+ * @returns The `SkyDataViewStateOptions`.
436
+ */
424
437
  SkyDataViewState.prototype.getViewStateOptions = function () {
425
438
  return {
426
439
  viewId: this.viewId,
@@ -432,8 +445,14 @@
432
445
  return SkyDataViewState;
433
446
  }());
434
447
 
448
+ /**
449
+ * Provides options that control which data to display.
450
+ */
435
451
  var SkyDataManagerState = /** @class */ (function () {
436
452
  function SkyDataManagerState(data) {
453
+ /**
454
+ * The states of the individual views.
455
+ */
437
456
  this.views = [];
438
457
  var views = data.views && data.views.map(function (view) { return new SkyDataViewState(view); });
439
458
  this.activeSortOption = data.activeSortOption;
@@ -444,6 +463,10 @@
444
463
  this.searchText = data.searchText;
445
464
  this.views = views || [];
446
465
  }
466
+ /**
467
+ * Returns the `SkyDataManagerStateOptions` for the data manager.
468
+ * @returns The `SkyDataManagerStateOptions` for the data manager.
469
+ */
447
470
  SkyDataManagerState.prototype.getStateOptions = function () {
448
471
  var viewStates = this.views.map(function (view) {
449
472
  return view.getViewStateOptions();
@@ -458,9 +481,20 @@
458
481
  views: viewStates,
459
482
  };
460
483
  };
484
+ /**
485
+ * Returns the `SkyDataViewState` for the specified view.
486
+ * @param viewId The ID for the view.
487
+ * @returns The `SkyDataViewState` for the specified view.
488
+ */
461
489
  SkyDataManagerState.prototype.getViewStateById = function (viewId) {
462
490
  return this.views.find(function (view) { return view.viewId === viewId; });
463
491
  };
492
+ /**
493
+ * Adds a `SkyDataViewState` to a view or updates an existing view.
494
+ * @param viewId The ID for the view.
495
+ * @param view The `SkyDataViewState` option to add or update.
496
+ * @returns The state of the data manager for the specified view.
497
+ */
464
498
  SkyDataManagerState.prototype.addOrUpdateView = function (viewId, view) {
465
499
  var existingViewIndex = this.views.findIndex(function (v) { return v.viewId === viewId; });
466
500
  if (existingViewIndex !== -1) {
@@ -776,9 +810,19 @@
776
810
  type: i0.Injectable
777
811
  }], ctorParameters: function () { return [{ type: i1__namespace.SkyUIConfigService }]; } });
778
812
 
813
+ /**
814
+ * These options specify the sorting strategy applied to columns when `columnPickerEnabled` is enabled.
815
+ */
779
816
  exports.SkyDataManagerColumnPickerSortStrategy = void 0;
780
817
  (function (SkyDataManagerColumnPickerSortStrategy) {
818
+ /**
819
+ * No sorting is applied to the columns.
820
+ */
781
821
  SkyDataManagerColumnPickerSortStrategy["None"] = "none";
822
+ /**
823
+ * If `sortEnabled` is set to `true`, then the selected columns are displayed before the unselected columns. Unselected columns are sorted alphabetically.
824
+ * If `sortEnabled` is set to `false`, then the columns are displayed in the order specified by `columnOptions`.
825
+ */
782
826
  SkyDataManagerColumnPickerSortStrategy["SelectedThenAlphabetical"] = "selectedThenAlphabetical";
783
827
  })(exports.SkyDataManagerColumnPickerSortStrategy || (exports.SkyDataManagerColumnPickerSortStrategy = {}));
784
828
 
@@ -876,6 +920,9 @@
876
920
  }]
877
921
  }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyDataManagerService }]; } });
878
922
 
923
+ /**
924
+ * Sets the state of the filters.
925
+ */
879
926
  var SkyDataManagerFilterModalContext = /** @class */ (function () {
880
927
  function SkyDataManagerFilterModalContext() {
881
928
  }
@@ -37,6 +37,9 @@
37
37
  "kind": 8,
38
38
  "kindString": "Enumeration",
39
39
  "flags": {},
40
+ "comment": {
41
+ "shortText": "These options specify the sorting strategy applied to columns when `columnPickerEnabled` is enabled."
42
+ },
40
43
  "children": [
41
44
  {
42
45
  "id": 235,
@@ -44,10 +47,13 @@
44
47
  "kind": 16,
45
48
  "kindString": "Enumeration member",
46
49
  "flags": {},
50
+ "comment": {
51
+ "shortText": "No sorting is applied to the columns."
52
+ },
47
53
  "sources": [
48
54
  {
49
55
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-column-picker-sort-strategy.ts",
50
- "line": 2,
56
+ "line": 8,
51
57
  "character": 2
52
58
  }
53
59
  ],
@@ -59,10 +65,13 @@
59
65
  "kind": 16,
60
66
  "kindString": "Enumeration member",
61
67
  "flags": {},
68
+ "comment": {
69
+ "shortText": "If `sortEnabled` is set to `true`, then the selected columns are displayed before the unselected columns. Unselected columns are sorted alphabetically.\nIf `sortEnabled` is set to `false`, then the columns are displayed in the order specified by `columnOptions`."
70
+ },
62
71
  "sources": [
63
72
  {
64
73
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-column-picker-sort-strategy.ts",
65
- "line": 3,
74
+ "line": 13,
66
75
  "character": 2
67
76
  }
68
77
  ],
@@ -82,7 +91,7 @@
82
91
  "sources": [
83
92
  {
84
93
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-column-picker-sort-strategy.ts",
85
- "line": 1,
94
+ "line": 4,
86
95
  "character": 12
87
96
  }
88
97
  ]
@@ -93,6 +102,9 @@
93
102
  "kind": 128,
94
103
  "kindString": "Class",
95
104
  "flags": {},
105
+ "comment": {
106
+ "shortText": "Sets the state of the filters."
107
+ },
96
108
  "children": [
97
109
  {
98
110
  "id": 227,
@@ -102,10 +114,13 @@
102
114
  "flags": {
103
115
  "isPublic": true
104
116
  },
117
+ "comment": {
118
+ "shortText": "Sets the state of the filters."
119
+ },
105
120
  "sources": [
106
121
  {
107
122
  "fileName": "projects/data-manager/src/modules/data-manager/data-manager-filter-context.ts",
108
- "line": 4,
123
+ "line": 10,
109
124
  "character": 9
110
125
  }
111
126
  ],
@@ -135,7 +150,7 @@
135
150
  "sources": [
136
151
  {
137
152
  "fileName": "projects/data-manager/src/modules/data-manager/data-manager-filter-context.ts",
138
- "line": 3,
153
+ "line": 6,
139
154
  "character": 13
140
155
  }
141
156
  ]
@@ -982,6 +997,9 @@
982
997
  "kind": 128,
983
998
  "kindString": "Class",
984
999
  "flags": {},
1000
+ "comment": {
1001
+ "shortText": "Provides options that control which data to display."
1002
+ },
985
1003
  "children": [
986
1004
  {
987
1005
  "id": 255,
@@ -992,7 +1010,7 @@
992
1010
  "sources": [
993
1011
  {
994
1012
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
995
- "line": 16,
1013
+ "line": 42,
996
1014
  "character": 2
997
1015
  }
998
1016
  ],
@@ -1033,10 +1051,13 @@
1033
1051
  "flags": {
1034
1052
  "isPublic": true
1035
1053
  },
1054
+ "comment": {
1055
+ "shortText": "The selected SkyDataManagerSortOption to apply."
1056
+ },
1036
1057
  "sources": [
1037
1058
  {
1038
1059
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1039
- "line": 8,
1060
+ "line": 14,
1040
1061
  "character": 9
1041
1062
  }
1042
1063
  ],
@@ -1054,10 +1075,13 @@
1054
1075
  "flags": {
1055
1076
  "isPublic": true
1056
1077
  },
1078
+ "comment": {
1079
+ "shortText": "An untyped property that tracks any state information that's relevant to a data\nmanager but that the existing properties do not cover."
1080
+ },
1057
1081
  "sources": [
1058
1082
  {
1059
1083
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1060
- "line": 9,
1084
+ "line": 19,
1061
1085
  "character": 9
1062
1086
  }
1063
1087
  ],
@@ -1074,10 +1098,13 @@
1074
1098
  "flags": {
1075
1099
  "isPublic": true
1076
1100
  },
1101
+ "comment": {
1102
+ "shortText": "The state of the filters."
1103
+ },
1077
1104
  "sources": [
1078
1105
  {
1079
1106
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1080
- "line": 10,
1107
+ "line": 23,
1081
1108
  "character": 9
1082
1109
  }
1083
1110
  ],
@@ -1095,10 +1122,13 @@
1095
1122
  "flags": {
1096
1123
  "isPublic": true
1097
1124
  },
1125
+ "comment": {
1126
+ "shortText": "Indicates whether to display only the selected rows or objects. The multiselect toolbar\nuses this property."
1127
+ },
1098
1128
  "sources": [
1099
1129
  {
1100
1130
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1101
- "line": 11,
1131
+ "line": 28,
1102
1132
  "character": 9
1103
1133
  }
1104
1134
  ],
@@ -1115,10 +1145,13 @@
1115
1145
  "flags": {
1116
1146
  "isPublic": true
1117
1147
  },
1148
+ "comment": {
1149
+ "shortText": "The search text to apply."
1150
+ },
1118
1151
  "sources": [
1119
1152
  {
1120
1153
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1121
- "line": 12,
1154
+ "line": 32,
1122
1155
  "character": 9
1123
1156
  }
1124
1157
  ],
@@ -1135,10 +1168,13 @@
1135
1168
  "flags": {
1136
1169
  "isPublic": true
1137
1170
  },
1171
+ "comment": {
1172
+ "shortText": "The currently selected rows or objects."
1173
+ },
1138
1174
  "sources": [
1139
1175
  {
1140
1176
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1141
- "line": 13,
1177
+ "line": 36,
1142
1178
  "character": 9
1143
1179
  }
1144
1180
  ],
@@ -1158,10 +1194,13 @@
1158
1194
  "flags": {
1159
1195
  "isPublic": true
1160
1196
  },
1197
+ "comment": {
1198
+ "shortText": "The states of the individual views."
1199
+ },
1161
1200
  "sources": [
1162
1201
  {
1163
1202
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1164
- "line": 14,
1203
+ "line": 40,
1165
1204
  "character": 9
1166
1205
  }
1167
1206
  ],
@@ -1186,7 +1225,7 @@
1186
1225
  "sources": [
1187
1226
  {
1188
1227
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1189
- "line": 49,
1228
+ "line": 90,
1190
1229
  "character": 9
1191
1230
  }
1192
1231
  ],
@@ -1197,6 +1236,10 @@
1197
1236
  "kind": 4096,
1198
1237
  "kindString": "Call signature",
1199
1238
  "flags": {},
1239
+ "comment": {
1240
+ "shortText": "Adds a `SkyDataViewState` to a view or updates an existing view.",
1241
+ "returns": "The state of the data manager for the specified view.\n"
1242
+ },
1200
1243
  "parameters": [
1201
1244
  {
1202
1245
  "id": 272,
@@ -1204,6 +1247,9 @@
1204
1247
  "kind": 32768,
1205
1248
  "kindString": "Parameter",
1206
1249
  "flags": {},
1250
+ "comment": {
1251
+ "shortText": "The ID for the view."
1252
+ },
1207
1253
  "type": {
1208
1254
  "type": "intrinsic",
1209
1255
  "name": "string"
@@ -1215,6 +1261,9 @@
1215
1261
  "kind": 32768,
1216
1262
  "kindString": "Parameter",
1217
1263
  "flags": {},
1264
+ "comment": {
1265
+ "shortText": "The `SkyDataViewState` option to add or update."
1266
+ },
1218
1267
  "type": {
1219
1268
  "type": "reference",
1220
1269
  "id": 306,
@@ -1241,7 +1290,7 @@
1241
1290
  "sources": [
1242
1291
  {
1243
1292
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1244
- "line": 29,
1293
+ "line": 59,
1245
1294
  "character": 9
1246
1295
  }
1247
1296
  ],
@@ -1252,6 +1301,10 @@
1252
1301
  "kind": 4096,
1253
1302
  "kindString": "Call signature",
1254
1303
  "flags": {},
1304
+ "comment": {
1305
+ "shortText": "Returns the `SkyDataManagerStateOptions` for the data manager.",
1306
+ "returns": "The `SkyDataManagerStateOptions` for the data manager.\n"
1307
+ },
1255
1308
  "type": {
1256
1309
  "type": "reference",
1257
1310
  "id": 274,
@@ -1271,7 +1324,7 @@
1271
1324
  "sources": [
1272
1325
  {
1273
1326
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1274
- "line": 45,
1327
+ "line": 80,
1275
1328
  "character": 9
1276
1329
  }
1277
1330
  ],
@@ -1282,6 +1335,10 @@
1282
1335
  "kind": 4096,
1283
1336
  "kindString": "Call signature",
1284
1337
  "flags": {},
1338
+ "comment": {
1339
+ "shortText": "Returns the `SkyDataViewState` for the specified view.",
1340
+ "returns": "The `SkyDataViewState` for the specified view.\n"
1341
+ },
1285
1342
  "parameters": [
1286
1343
  {
1287
1344
  "id": 269,
@@ -1289,6 +1346,9 @@
1289
1346
  "kind": 32768,
1290
1347
  "kindString": "Parameter",
1291
1348
  "flags": {},
1349
+ "comment": {
1350
+ "shortText": "The ID for the view."
1351
+ },
1292
1352
  "type": {
1293
1353
  "type": "intrinsic",
1294
1354
  "name": "string"
@@ -1338,7 +1398,7 @@
1338
1398
  "sources": [
1339
1399
  {
1340
1400
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-manager-state.ts",
1341
- "line": 7,
1401
+ "line": 10,
1342
1402
  "character": 13
1343
1403
  }
1344
1404
  ]
@@ -1349,6 +1409,9 @@
1349
1409
  "kind": 128,
1350
1410
  "kindString": "Class",
1351
1411
  "flags": {},
1412
+ "comment": {
1413
+ "shortText": "Provides options for defining how data is displayed, such as which columns appear."
1414
+ },
1352
1415
  "children": [
1353
1416
  {
1354
1417
  "id": 307,
@@ -1359,7 +1422,7 @@
1359
1422
  "sources": [
1360
1423
  {
1361
1424
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1362
- "line": 9,
1425
+ "line": 25,
1363
1426
  "character": 2
1364
1427
  }
1365
1428
  ],
@@ -1400,10 +1463,13 @@
1400
1463
  "flags": {
1401
1464
  "isPublic": true
1402
1465
  },
1466
+ "comment": {
1467
+ "shortText": "An untyped property that tracks any view-specific state information\nthat is relevant to a data manager but that existing properties do not cover."
1468
+ },
1403
1469
  "sources": [
1404
1470
  {
1405
1471
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1406
- "line": 7,
1472
+ "line": 23,
1407
1473
  "character": 9
1408
1474
  }
1409
1475
  ],
@@ -1420,10 +1486,13 @@
1420
1486
  "flags": {
1421
1487
  "isPublic": true
1422
1488
  },
1489
+ "comment": {
1490
+ "shortText": "The IDs of the columns able to be displayed for column-based views. This property is required when utilizing a grid-based view, a column picker, or both."
1491
+ },
1423
1492
  "sources": [
1424
1493
  {
1425
1494
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1426
- "line": 4,
1495
+ "line": 10,
1427
1496
  "character": 9
1428
1497
  }
1429
1498
  ],
@@ -1444,10 +1513,13 @@
1444
1513
  "flags": {
1445
1514
  "isPublic": true
1446
1515
  },
1516
+ "comment": {
1517
+ "shortText": "The IDs of the columns displayed for column-based views."
1518
+ },
1447
1519
  "sources": [
1448
1520
  {
1449
1521
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1450
- "line": 5,
1522
+ "line": 14,
1451
1523
  "character": 9
1452
1524
  }
1453
1525
  ],
@@ -1468,10 +1540,13 @@
1468
1540
  "flags": {
1469
1541
  "isPublic": true
1470
1542
  },
1543
+ "comment": {
1544
+ "shortText": "The ID of this view."
1545
+ },
1471
1546
  "sources": [
1472
1547
  {
1473
1548
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1474
- "line": 6,
1549
+ "line": 18,
1475
1550
  "character": 9
1476
1551
  }
1477
1552
  ],
@@ -1491,7 +1566,7 @@
1491
1566
  "sources": [
1492
1567
  {
1493
1568
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1494
- "line": 16,
1569
+ "line": 36,
1495
1570
  "character": 9
1496
1571
  }
1497
1572
  ],
@@ -1502,6 +1577,10 @@
1502
1577
  "kind": 4096,
1503
1578
  "kindString": "Call signature",
1504
1579
  "flags": {},
1580
+ "comment": {
1581
+ "shortText": "Returns the `SkyDataViewStateOptions` for the current view.",
1582
+ "returns": "The `SkyDataViewStateOptions`.\n"
1583
+ },
1505
1584
  "type": {
1506
1585
  "type": "reference",
1507
1586
  "id": 316,
@@ -1540,7 +1619,7 @@
1540
1619
  "sources": [
1541
1620
  {
1542
1621
  "fileName": "projects/data-manager/src/modules/data-manager/models/data-view-state.ts",
1543
- "line": 3,
1622
+ "line": 6,
1544
1623
  "character": 13
1545
1624
  }
1546
1625
  ]
@@ -3887,7 +3966,7 @@
3887
3966
  "isOptional": true
3888
3967
  },
3889
3968
  "comment": {
3890
- "shortText": "An untyped property that can track any state information relevant to a data\nmanager that the existing properties do not cover."
3969
+ "shortText": "An untyped property that tracks any state information that's relevant to a data\nmanager but that the existing properties do not cover."
3891
3970
  },
3892
3971
  "sources": [
3893
3972
  {
@@ -3910,7 +3989,7 @@
3910
3989
  "isOptional": true
3911
3990
  },
3912
3991
  "comment": {
3913
- "shortText": "The state of filters."
3992
+ "shortText": "The state of the filters."
3914
3993
  },
3915
3994
  "sources": [
3916
3995
  {
@@ -4285,7 +4364,7 @@
4285
4364
  "isOptional": true
4286
4365
  },
4287
4366
  "comment": {
4288
- "shortText": "Inidicates whether to display the filter button for this view."
4367
+ "shortText": "Indicates whether to display the filter button for this view."
4289
4368
  },
4290
4369
  "sources": [
4291
4370
  {
@@ -4625,7 +4704,7 @@
4625
4704
  "isOptional": true
4626
4705
  },
4627
4706
  "comment": {
4628
- "shortText": "An untyped property that can track any view-specific state information\nrelevant to a data manager that existing properties do not cover."
4707
+ "shortText": "An untyped property that tracks any view-specific state information\nthat is relevant to a data manager but that existing properties do not cover."
4629
4708
  },
4630
4709
  "sources": [
4631
4710
  {
@@ -4808,7 +4887,7 @@
4808
4887
  {
4809
4888
  "fileName": "data-manager-demo.module.ts",
4810
4889
  "filePath": "/projects/data-manager/documentation/code-examples/data-manager/basic/data-manager-demo.module.ts",
4811
- "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SkyDataManagerModule } from '@skyux/data-manager';\nimport { SkyCheckboxModule } from '@skyux/forms';\nimport { SkyCardModule, SkyToolbarModule } from '@skyux/layout';\nimport { SkyRepeaterModule } from '@skyux/lists';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { DataManagerFiltersModalDemoComponent } from './data-filter-modal.component';\nimport { DataManagerDemoComponent } from './data-manager-demo.component';\nimport { DataViewCardsDemoComponent } from './data-view-cards.component';\nimport { DataViewRepeaterDemoComponent } from './data-view-repeater.component';\n\n@NgModule({\n declarations: [\n DataManagerDemoComponent,\n DataManagerFiltersModalDemoComponent,\n DataViewCardsDemoComponent,\n DataViewRepeaterDemoComponent,\n ],\n imports: [\n CommonModule,\n FormsModule,\n SkyCardModule,\n SkyCheckboxModule,\n SkyDataManagerModule,\n SkyModalModule,\n SkyRepeaterModule,\n SkyToolbarModule,\n ],\n exports: [DataManagerDemoComponent],\n})\nexport class DataManagerDemoModule {}\n"
4890
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SkyDataManagerModule } from '@skyux/data-manager';\nimport { SkyCheckboxModule } from '@skyux/forms';\nimport { SkyCardModule, SkyToolbarModule } from '@skyux/layout';\nimport { SkyRepeaterModule } from '@skyux/lists';\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { DataManagerFiltersModalDemoComponent } from './data-filter-modal.component';\nimport { DataManagerDemoComponent } from './data-manager-demo.component';\nimport { DataViewCardsDemoComponent } from './data-view-cards.component';\nimport { DataViewRepeaterDemoComponent } from './data-view-repeater.component';\n\n@NgModule({\n declarations: [\n DataManagerDemoComponent,\n DataManagerFiltersModalDemoComponent,\n DataViewCardsDemoComponent,\n DataViewRepeaterDemoComponent,\n ],\n imports: [\n CommonModule,\n FormsModule,\n SkyCardModule,\n SkyCheckboxModule,\n SkyDataManagerModule,\n SkyModalModule,\n SkyRepeaterModule,\n SkyToolbarModule,\n ],\n exports: [DataManagerDemoComponent],\n entryComponents: [\n DataManagerDemoComponent,\n DataManagerFiltersModalDemoComponent,\n ],\n})\nexport class DataManagerDemoModule {}\n"
4812
4891
  },
4813
4892
  {
4814
4893
  "fileName": "data-view-cards.component.html",
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Sets the state of the filters.
3
+ */
1
4
  export class SkyDataManagerFilterModalContext {
2
5
  }
3
6
  //# sourceMappingURL=data-manager-filter-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-manager-filter-context.js","sourceRoot":"","sources":["../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/data-manager-filter-context.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,gCAAgC;CAE5C","sourcesContent":["import { SkyDataManagerFilterData } from './models/data-manager-filter-data';\n\nexport class SkyDataManagerFilterModalContext {\n public filterData: SkyDataManagerFilterData;\n}\n"]}
1
+ {"version":3,"file":"data-manager-filter-context.js","sourceRoot":"","sources":["../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/data-manager-filter-context.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gCAAgC;CAK5C","sourcesContent":["import { SkyDataManagerFilterData } from './models/data-manager-filter-data';\n\n/**\n * Sets the state of the filters.\n */\nexport class SkyDataManagerFilterModalContext {\n /**\n * Sets the state of the filters.\n */\n public filterData: SkyDataManagerFilterData;\n}\n"]}
@@ -1,6 +1,16 @@
1
+ /**
2
+ * These options specify the sorting strategy applied to columns when `columnPickerEnabled` is enabled.
3
+ */
1
4
  export var SkyDataManagerColumnPickerSortStrategy;
2
5
  (function (SkyDataManagerColumnPickerSortStrategy) {
6
+ /**
7
+ * No sorting is applied to the columns.
8
+ */
3
9
  SkyDataManagerColumnPickerSortStrategy["None"] = "none";
10
+ /**
11
+ * If `sortEnabled` is set to `true`, then the selected columns are displayed before the unselected columns. Unselected columns are sorted alphabetically.
12
+ * If `sortEnabled` is set to `false`, then the columns are displayed in the order specified by `columnOptions`.
13
+ */
4
14
  SkyDataManagerColumnPickerSortStrategy["SelectedThenAlphabetical"] = "selectedThenAlphabetical";
5
15
  })(SkyDataManagerColumnPickerSortStrategy || (SkyDataManagerColumnPickerSortStrategy = {}));
6
16
  //# sourceMappingURL=data-manager-column-picker-sort-strategy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-manager-column-picker-sort-strategy.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,sCAGX;AAHD,WAAY,sCAAsC;IAChD,uDAAa,CAAA;IACb,+FAAqD,CAAA;AACvD,CAAC,EAHW,sCAAsC,KAAtC,sCAAsC,QAGjD","sourcesContent":["export enum SkyDataManagerColumnPickerSortStrategy {\n None = 'none',\n SelectedThenAlphabetical = 'selectedThenAlphabetical',\n}\n"]}
1
+ {"version":3,"file":"data-manager-column-picker-sort-strategy.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,sCAUX;AAVD,WAAY,sCAAsC;IAChD;;OAEG;IACH,uDAAa,CAAA;IACb;;;OAGG;IACH,+FAAqD,CAAA;AACvD,CAAC,EAVW,sCAAsC,KAAtC,sCAAsC,QAUjD","sourcesContent":["/**\n * These options specify the sorting strategy applied to columns when `columnPickerEnabled` is enabled.\n */\nexport enum SkyDataManagerColumnPickerSortStrategy {\n /**\n * No sorting is applied to the columns.\n */\n None = 'none',\n /**\n * If `sortEnabled` is set to `true`, then the selected columns are displayed before the unselected columns. Unselected columns are sorted alphabetically.\n * If `sortEnabled` is set to `false`, then the columns are displayed in the order specified by `columnOptions`.\n */\n SelectedThenAlphabetical = 'selectedThenAlphabetical',\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"data-manager-state-options.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/models/data-manager-state-options.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyDataManagerFilterData } from './data-manager-filter-data';\nimport { SkyDataManagerSortOption } from './data-manager-sort-option';\nimport { SkyDataViewStateOptions } from './data-view-state-options';\n\nexport interface SkyDataManagerStateOptions {\n /**\n * The selected SkyDataManagerSortOption to apply.\n */\n activeSortOption?: SkyDataManagerSortOption;\n /**\n * An untyped property that can track any state information relevant to a data\n * manager that the existing properties do not cover.\n */\n additionalData?: any;\n /**\n * The state of filters.\n */\n filterData?: SkyDataManagerFilterData;\n /**\n * Indicates whether to display only the selected rows or objects. The multiselect toolbar\n * uses this property.\n */\n onlyShowSelected?: boolean;\n /**\n * The search text to apply.\n */\n searchText?: string;\n /**\n * The currently selected rows or objects.\n */\n selectedIds?: string[];\n /**\n * The states of the individual views.\n */\n views?: SkyDataViewStateOptions[];\n}\n"]}
1
+ {"version":3,"file":"data-manager-state-options.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/data-manager/src/lib/modules/data-manager/models/data-manager-state-options.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyDataManagerFilterData } from './data-manager-filter-data';\nimport { SkyDataManagerSortOption } from './data-manager-sort-option';\nimport { SkyDataViewStateOptions } from './data-view-state-options';\n\nexport interface SkyDataManagerStateOptions {\n /**\n * The selected SkyDataManagerSortOption to apply.\n */\n activeSortOption?: SkyDataManagerSortOption;\n /**\n * An untyped property that tracks any state information that's relevant to a data\n * manager but that the existing properties do not cover.\n */\n additionalData?: any;\n /**\n * The state of the filters.\n */\n filterData?: SkyDataManagerFilterData;\n /**\n * Indicates whether to display only the selected rows or objects. The multiselect toolbar\n * uses this property.\n */\n onlyShowSelected?: boolean;\n /**\n * The search text to apply.\n */\n searchText?: string;\n /**\n * The currently selected rows or objects.\n */\n selectedIds?: string[];\n /**\n * The states of the individual views.\n */\n views?: SkyDataViewStateOptions[];\n}\n"]}
@@ -1,6 +1,12 @@
1
1
  import { SkyDataViewState } from './data-view-state';
2
+ /**
3
+ * Provides options that control which data to display.
4
+ */
2
5
  export class SkyDataManagerState {
3
6
  constructor(data) {
7
+ /**
8
+ * The states of the individual views.
9
+ */
4
10
  this.views = [];
5
11
  const views = data.views && data.views.map((view) => new SkyDataViewState(view));
6
12
  this.activeSortOption = data.activeSortOption;
@@ -11,6 +17,10 @@ export class SkyDataManagerState {
11
17
  this.searchText = data.searchText;
12
18
  this.views = views || [];
13
19
  }
20
+ /**
21
+ * Returns the `SkyDataManagerStateOptions` for the data manager.
22
+ * @returns The `SkyDataManagerStateOptions` for the data manager.
23
+ */
14
24
  getStateOptions() {
15
25
  const viewStates = this.views.map((view) => {
16
26
  return view.getViewStateOptions();
@@ -25,9 +35,20 @@ export class SkyDataManagerState {
25
35
  views: viewStates,
26
36
  };
27
37
  }
38
+ /**
39
+ * Returns the `SkyDataViewState` for the specified view.
40
+ * @param viewId The ID for the view.
41
+ * @returns The `SkyDataViewState` for the specified view.
42
+ */
28
43
  getViewStateById(viewId) {
29
44
  return this.views.find((view) => view.viewId === viewId);
30
45
  }
46
+ /**
47
+ * Adds a `SkyDataViewState` to a view or updates an existing view.
48
+ * @param viewId The ID for the view.
49
+ * @param view The `SkyDataViewState` option to add or update.
50
+ * @returns The state of the data manager for the specified view.
51
+ */
31
52
  addOrUpdateView(viewId, view) {
32
53
  const existingViewIndex = this.views.findIndex((v) => v.viewId === viewId);
33
54
  if (existingViewIndex !== -1) {