@skyux/list-builder 5.0.0 → 5.0.1
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.
- package/bundles/skyux-list-builder.umd.js +312 -332
- package/bundles/skyux-list-builder.umd.js.map +1 -1
- package/documentation.json +184 -179
- package/esm2015/modules/list/list-data-response.model.js +1 -1
- package/esm2015/modules/list/list-data.provider.js +1 -1
- package/esm2015/modules/list/list-paging.component.js +1 -1
- package/esm2015/modules/list/list-view.component.js +8 -8
- package/esm2015/modules/list/list.component.js +45 -42
- package/esm2015/modules/list/list.module.js +8 -16
- package/esm2015/modules/list/state/filters/filters.orchestrator.js +2 -3
- package/esm2015/modules/list/state/items/items.orchestrator.js +10 -9
- package/esm2015/modules/list/state/items/load.action.js +1 -1
- package/esm2015/modules/list/state/list-state-action.type.js +1 -1
- package/esm2015/modules/list/state/list-state.model.js +1 -1
- package/esm2015/modules/list/state/list-state.rxstate.js +4 -4
- package/esm2015/modules/list/state/list-state.state-node.js +5 -6
- package/esm2015/modules/list/state/paging/paging.orchestrator.js +2 -3
- package/esm2015/modules/list/state/paging/set-max-pages.action.js +1 -1
- package/esm2015/modules/list/state/paging/set-page-number.action.js +1 -1
- package/esm2015/modules/list/state/search/search.orchestrator.js +5 -4
- package/esm2015/modules/list/state/search/set-functions.action.js +1 -1
- package/esm2015/modules/list/state/selected/selected.orchestrator.js +9 -10
- package/esm2015/modules/list/state/selected/set-items-selected.action.js +1 -1
- package/esm2015/modules/list/state/sort/set-field-selectors.action.js +1 -1
- package/esm2015/modules/list/state/sort/sort.model.js +1 -1
- package/esm2015/modules/list/state/sort/sort.orchestrator.js +4 -5
- package/esm2015/modules/list/state/toolbar/disable.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/load.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/toolbar.orchestrator.js +3 -4
- package/esm2015/modules/list/state/views/load.action.js +1 -1
- package/esm2015/modules/list/state/views/view.model.js +1 -1
- package/esm2015/modules/list/state/views/views.model.js +1 -1
- package/esm2015/modules/list/state/views/views.orchestrator.js +2 -4
- package/esm2015/modules/list-data-provider-in-memory/list-data-in-memory.provider.js +24 -14
- package/esm2015/modules/list-filters/filter.model.js +1 -1
- package/esm2015/modules/list-filters/list-filter-button.component.js +9 -9
- package/esm2015/modules/list-filters/list-filter-inline-item-renderer.component.js +7 -7
- package/esm2015/modules/list-filters/list-filter-inline-item.component.js +9 -8
- package/esm2015/modules/list-filters/list-filter-inline.component.js +12 -11
- package/esm2015/modules/list-filters/list-filter-inline.model.js +1 -1
- package/esm2015/modules/list-filters/list-filter-summary.component.js +8 -8
- package/esm2015/modules/list-filters/list-filters.module.js +10 -17
- package/esm2015/modules/list-paging/list-paging.component.js +14 -15
- package/esm2015/modules/list-paging/list-paging.module.js +8 -19
- package/esm2015/modules/list-toolbar/list-multiselect-toolbar.component.js +26 -25
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js +8 -8
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.js +1 -1
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +7 -7
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +10 -16
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +10 -14
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js +5 -5
- package/esm2015/modules/list-toolbar/list-toolbar-item-renderer.component.js +7 -7
- package/esm2015/modules/list-toolbar/list-toolbar-item.component.js +6 -6
- package/esm2015/modules/list-toolbar/list-toolbar-search-actions.component.js +5 -5
- package/esm2015/modules/list-toolbar/list-toolbar-sort.component.js +5 -5
- package/esm2015/modules/list-toolbar/list-toolbar-view-actions.component.js +5 -5
- package/esm2015/modules/list-toolbar/list-toolbar.component.js +69 -67
- package/esm2015/modules/list-toolbar/list-toolbar.module.js +10 -10
- package/esm2015/modules/list-toolbar/state/config/config.orchestrator.js +2 -4
- package/esm2015/modules/list-toolbar/state/toolbar-state-action.type.js +1 -1
- package/esm2015/modules/list-toolbar/state/toolbar-state.rxstate.js +4 -4
- package/esm2015/modules/list-toolbar/state/toolbar-state.state-node.js +5 -7
- package/esm2015/modules/shared/sky-list-builder-resources.module.js +24 -12
- package/fesm2015/skyux-list-builder.js +356 -373
- package/fesm2015/skyux-list-builder.js.map +1 -1
- package/package.json +13 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@skyux/list-builder-common'), require('@skyux/lists'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/popovers'), require('@skyux/layout'), require('@skyux/lookup'), require('@skyux/forms')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/list-builder', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators', '@skyux/list-builder-common', '@skyux/lists', '@skyux/i18n', '@skyux/indicators', '@skyux/popovers', '@skyux/layout', '@skyux/lookup', '@skyux/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux[
|
|
5
|
-
}(this, (function (exports, i0, i4, rxjs, operators, listBuilderCommon, i3, i5, i3$1, i2, i3$2, i8, i5$1) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder"] = {}), global.ng.core, global.ng.common, global.rxjs, global.rxjs.operators, global.listBuilderCommon, global.i3, global.i5, global.i3$1, global.i2, global.i3$2, global.i8, global.i5$1));
|
|
5
|
+
})(this, (function (exports, i0, i4, rxjs, operators, listBuilderCommon, i3, i5, i3$1, i2, i3$2, i8, i5$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -531,13 +529,13 @@
|
|
|
531
529
|
var pagedResult = result.slice(itemStart, itemStart + request.pageSize);
|
|
532
530
|
return new ListDataResponseModel({
|
|
533
531
|
count: result.length,
|
|
534
|
-
items: pagedResult
|
|
532
|
+
items: pagedResult,
|
|
535
533
|
});
|
|
536
534
|
}
|
|
537
535
|
else {
|
|
538
536
|
return new ListDataResponseModel({
|
|
539
537
|
count: result.length,
|
|
540
|
-
items: result
|
|
538
|
+
items: result,
|
|
541
539
|
});
|
|
542
540
|
}
|
|
543
541
|
}));
|
|
@@ -574,7 +572,9 @@
|
|
|
574
572
|
_this.lastFilters = filters;
|
|
575
573
|
var result = items;
|
|
576
574
|
// Apply filters.
|
|
577
|
-
if (!dataChanged &&
|
|
575
|
+
if (!dataChanged &&
|
|
576
|
+
!filtersChanged &&
|
|
577
|
+
_this.lastFilterResults !== undefined) {
|
|
578
578
|
result = _this.lastFilterResults;
|
|
579
579
|
}
|
|
580
580
|
else if (filters && filters.length > 0) {
|
|
@@ -600,10 +600,15 @@
|
|
|
600
600
|
}
|
|
601
601
|
// Apply search.
|
|
602
602
|
/* istanbul ignore next */
|
|
603
|
-
if (!dataChanged &&
|
|
603
|
+
if (!dataChanged &&
|
|
604
|
+
!searchChanged &&
|
|
605
|
+
_this.lastSearchResults !== undefined &&
|
|
606
|
+
!filtersChanged) {
|
|
604
607
|
result = _this.lastSearchResults;
|
|
605
608
|
}
|
|
606
|
-
else if (search &&
|
|
609
|
+
else if (search &&
|
|
610
|
+
search.searchText !== undefined &&
|
|
611
|
+
search.searchText.length > 0) {
|
|
607
612
|
var searchText_1 = search.searchText.toLowerCase();
|
|
608
613
|
var searchFunctions_1;
|
|
609
614
|
if (_this.searchFunction !== undefined) {
|
|
@@ -617,7 +622,8 @@
|
|
|
617
622
|
for (var i = 0; i < searchFunctions_1.length; i++) {
|
|
618
623
|
var searchFunction = searchFunctions_1[i];
|
|
619
624
|
var searchResult = searchFunction(item.data, searchText_1);
|
|
620
|
-
if ((typeof searchResult === 'string' &&
|
|
625
|
+
if ((typeof searchResult === 'string' &&
|
|
626
|
+
searchResult.indexOf(searchText_1) !== -1) ||
|
|
621
627
|
searchResult === true) {
|
|
622
628
|
isMatch = true;
|
|
623
629
|
break;
|
|
@@ -632,7 +638,9 @@
|
|
|
632
638
|
}
|
|
633
639
|
// Apply sort.
|
|
634
640
|
if (sort && sort.fieldSelectors.length > 0) {
|
|
635
|
-
result = result
|
|
641
|
+
result = result
|
|
642
|
+
.slice()
|
|
643
|
+
.sort(function (item1, item2) {
|
|
636
644
|
var compareResult = 0;
|
|
637
645
|
for (var i = 0; i < sort.fieldSelectors.length; i++) {
|
|
638
646
|
var selector = sort.fieldSelectors[i];
|
|
@@ -948,9 +956,9 @@
|
|
|
948
956
|
};
|
|
949
957
|
return ListStateDispatcher;
|
|
950
958
|
}(listBuilderCommon.StateDispatcher));
|
|
951
|
-
ListStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
952
|
-
ListStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
953
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
959
|
+
ListStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
960
|
+
ListStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListStateDispatcher });
|
|
961
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListStateDispatcher, decorators: [{
|
|
954
962
|
type: i0.Injectable
|
|
955
963
|
}] });
|
|
956
964
|
|
|
@@ -962,8 +970,7 @@
|
|
|
962
970
|
/* istanbul ignore next */
|
|
963
971
|
function ListFiltersOrchestrator() {
|
|
964
972
|
var _this = _super.call(this) || this;
|
|
965
|
-
_this
|
|
966
|
-
.register(ListFiltersUpdateAction, _this.update);
|
|
973
|
+
_this.register(ListFiltersUpdateAction, _this.update);
|
|
967
974
|
return _this;
|
|
968
975
|
}
|
|
969
976
|
ListFiltersOrchestrator.prototype.update = function (state, action) {
|
|
@@ -996,8 +1003,7 @@
|
|
|
996
1003
|
/* istanbul ignore next */
|
|
997
1004
|
function ListItemsOrchestrator() {
|
|
998
1005
|
var _this = _super.call(this) || this;
|
|
999
|
-
_this
|
|
1000
|
-
.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
1006
|
+
_this.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
1001
1007
|
.register(ListItemsLoadAction, _this.load)
|
|
1002
1008
|
.register(ListItemsSetSelectedAction, _this.setItemsSelected);
|
|
1003
1009
|
return _this;
|
|
@@ -1007,7 +1013,8 @@
|
|
|
1007
1013
|
};
|
|
1008
1014
|
ListItemsOrchestrator.prototype.load = function (state, action) {
|
|
1009
1015
|
var newListItems = action.items.map(function (g) { return new listBuilderCommon.ListItemModel(g.id, g.data, g.isSelected); });
|
|
1010
|
-
var resultItems =
|
|
1016
|
+
var resultItems = action.refresh
|
|
1017
|
+
? __spreadArray([], __read(newListItems)) : __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
|
|
1011
1018
|
var count = action.count === undefined ? resultItems.length : action.count;
|
|
1012
1019
|
return new listBuilderCommon.AsyncList(resultItems, action.dataChanged ? Date.now() : state.lastUpdate, false, count);
|
|
1013
1020
|
};
|
|
@@ -1016,7 +1023,7 @@
|
|
|
1016
1023
|
var newSelectedIds = action.items || [];
|
|
1017
1024
|
var newListItemModels = this.cloneListItemModelArray(state.items);
|
|
1018
1025
|
if (action.refresh) {
|
|
1019
|
-
newListItemModels.forEach(function (item) { return item.isSelected = undefined; });
|
|
1026
|
+
newListItemModels.forEach(function (item) { return (item.isSelected = undefined); });
|
|
1020
1027
|
}
|
|
1021
1028
|
newSelectedIds.map(function (s) {
|
|
1022
1029
|
var newItem = newListItemModels.find(function (i) { return i.id === s; });
|
|
@@ -1075,8 +1082,7 @@
|
|
|
1075
1082
|
/* istanbul ignore next */
|
|
1076
1083
|
function ListPagingOrchestrator() {
|
|
1077
1084
|
var _this = _super.call(this) || this;
|
|
1078
|
-
_this
|
|
1079
|
-
.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
1085
|
+
_this.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
1080
1086
|
.register(ListPagingSetItemsPerPageAction, _this.setItemsPerPage)
|
|
1081
1087
|
.register(ListPagingSetPageNumberAction, _this.setPageNumber);
|
|
1082
1088
|
return _this;
|
|
@@ -1111,9 +1117,7 @@
|
|
|
1111
1117
|
/* istanbul ignore next */
|
|
1112
1118
|
function ListViewsOrchestrator() {
|
|
1113
1119
|
var _this = _super.call(this) || this;
|
|
1114
|
-
_this
|
|
1115
|
-
.register(ListViewsSetActiveAction, _this.setActive)
|
|
1116
|
-
.register(ListViewsLoadAction, _this.load);
|
|
1120
|
+
_this.register(ListViewsSetActiveAction, _this.setActive).register(ListViewsLoadAction, _this.load);
|
|
1117
1121
|
return _this;
|
|
1118
1122
|
}
|
|
1119
1123
|
ListViewsOrchestrator.prototype.setActive = function (state, action) {
|
|
@@ -1160,8 +1164,7 @@
|
|
|
1160
1164
|
/* istanbul ignore next */
|
|
1161
1165
|
function ListToolbarOrchestrator() {
|
|
1162
1166
|
var _this = _super.call(this) || this;
|
|
1163
|
-
_this
|
|
1164
|
-
.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1167
|
+
_this.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1165
1168
|
.register(ListToolbarItemsDisableAction, _this.setDisabled)
|
|
1166
1169
|
.register(ListToolbarItemsLoadAction, _this.load)
|
|
1167
1170
|
.register(ListToolbarSetTypeAction, _this.setType)
|
|
@@ -1235,15 +1238,16 @@
|
|
|
1235
1238
|
/* istanbul ignore next */
|
|
1236
1239
|
function ListSearchOrchestrator() {
|
|
1237
1240
|
var _this = _super.call(this) || this;
|
|
1238
|
-
_this
|
|
1239
|
-
.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1241
|
+
_this.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1240
1242
|
.register(ListSearchSetFunctionsAction, _this.setFunctions)
|
|
1241
1243
|
.register(ListSearchSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1242
1244
|
.register(ListSearchSetOptionsAction, _this.setOptions);
|
|
1243
1245
|
return _this;
|
|
1244
1246
|
}
|
|
1245
1247
|
ListSearchOrchestrator.prototype.setSearchText = function (state, action) {
|
|
1246
|
-
return new ListSearchModel(Object.assign({}, state, {
|
|
1248
|
+
return new ListSearchModel(Object.assign({}, state, {
|
|
1249
|
+
searchText: action.searchText ? action.searchText : '',
|
|
1250
|
+
}));
|
|
1247
1251
|
};
|
|
1248
1252
|
ListSearchOrchestrator.prototype.setFunctions = function (state, action) {
|
|
1249
1253
|
return new ListSearchModel(Object.assign({}, state, { functions: __spreadArray([], __read(action.functions)) }));
|
|
@@ -1289,8 +1293,7 @@
|
|
|
1289
1293
|
/* istanbul ignore next */
|
|
1290
1294
|
function ListSelectedOrchestrator() {
|
|
1291
1295
|
var _this = _super.call(this) || this;
|
|
1292
|
-
_this
|
|
1293
|
-
.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1296
|
+
_this.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1294
1297
|
.register(ListSelectedSetItemSelectedAction, _this.setItemSelected)
|
|
1295
1298
|
.register(ListSelectedSetItemsSelectedAction, _this.setItemsSelected)
|
|
1296
1299
|
.register(ListSelectedLoadAction, _this.load);
|
|
@@ -1311,11 +1314,11 @@
|
|
|
1311
1314
|
};
|
|
1312
1315
|
ListSelectedOrchestrator.prototype.setItemsSelected = function (state, action) {
|
|
1313
1316
|
var newSelectedIds = action.items || [];
|
|
1314
|
-
var newListSelectedModel = action.refresh
|
|
1317
|
+
var newListSelectedModel = action.refresh
|
|
1318
|
+
? new ListSelectedModel()
|
|
1319
|
+
: this.cloneListSelectedModel(state.item);
|
|
1315
1320
|
if (newSelectedIds instanceof rxjs.Observable) {
|
|
1316
|
-
newSelectedIds
|
|
1317
|
-
.pipe(operators.take(1))
|
|
1318
|
-
.subscribe(function (selectedIds) {
|
|
1321
|
+
newSelectedIds.pipe(operators.take(1)).subscribe(function (selectedIds) {
|
|
1319
1322
|
selectedIds.map(function (s) { return newListSelectedModel.selectedIdMap.set(s, action.selected); });
|
|
1320
1323
|
});
|
|
1321
1324
|
}
|
|
@@ -1366,8 +1369,7 @@
|
|
|
1366
1369
|
/* istanbul ignore next */
|
|
1367
1370
|
function ListSortOrchestrator() {
|
|
1368
1371
|
var _this = _super.call(this) || this;
|
|
1369
|
-
_this
|
|
1370
|
-
.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1372
|
+
_this.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1371
1373
|
.register(ListSortSetAvailableAction, _this.setAvailable)
|
|
1372
1374
|
.register(ListSortSetGlobalAction, _this.setGlobal);
|
|
1373
1375
|
return _this;
|
|
@@ -1393,8 +1395,7 @@
|
|
|
1393
1395
|
__extends(ListState, _super);
|
|
1394
1396
|
function ListState(dispatcher) {
|
|
1395
1397
|
var _this = _super.call(this, new ListStateModel(), dispatcher) || this;
|
|
1396
|
-
_this
|
|
1397
|
-
.register('filters', ListFiltersOrchestrator)
|
|
1398
|
+
_this.register('filters', ListFiltersOrchestrator)
|
|
1398
1399
|
.register('items', ListItemsOrchestrator)
|
|
1399
1400
|
.register('paging', ListPagingOrchestrator)
|
|
1400
1401
|
.register('search', ListSearchOrchestrator)
|
|
@@ -1407,9 +1408,9 @@
|
|
|
1407
1408
|
}
|
|
1408
1409
|
return ListState;
|
|
1409
1410
|
}(listBuilderCommon.StateNode));
|
|
1410
|
-
ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1411
|
-
ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1412
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1411
|
+
ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListState, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1412
|
+
ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListState });
|
|
1413
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListState, decorators: [{
|
|
1413
1414
|
type: i0.Injectable
|
|
1414
1415
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
|
|
1415
1416
|
|
|
@@ -1426,7 +1427,9 @@
|
|
|
1426
1427
|
/* istanbul ignore next */
|
|
1427
1428
|
this.hasToolbar = this.state.pipe(operators.map(function (s) { return s.toolbar.exists; }));
|
|
1428
1429
|
this.active = this.state.pipe(operators.map(function (s) { return s.views.active === _this.viewId; }));
|
|
1429
|
-
this.active
|
|
1430
|
+
this.active
|
|
1431
|
+
.pipe(operators.distinctUntilChanged())
|
|
1432
|
+
.subscribe(function (isActive) { return isActive ? _this.onViewActive() : _this.onViewInactive(); });
|
|
1430
1433
|
}
|
|
1431
1434
|
Object.defineProperty(ListViewComponent.prototype, "id", {
|
|
1432
1435
|
get: function () {
|
|
@@ -1443,10 +1446,8 @@
|
|
|
1443
1446
|
configurable: true
|
|
1444
1447
|
});
|
|
1445
1448
|
/* istanbul ignore next */
|
|
1446
|
-
ListViewComponent.prototype.onViewActive = function () {
|
|
1447
|
-
};
|
|
1448
|
-
ListViewComponent.prototype.onViewInactive = function () {
|
|
1449
|
-
};
|
|
1449
|
+
ListViewComponent.prototype.onViewActive = function () { };
|
|
1450
|
+
ListViewComponent.prototype.onViewInactive = function () { };
|
|
1450
1451
|
return ListViewComponent;
|
|
1451
1452
|
}());
|
|
1452
1453
|
|
|
@@ -1491,7 +1492,6 @@
|
|
|
1491
1492
|
* Emits the filters applied to the list.
|
|
1492
1493
|
*/
|
|
1493
1494
|
this.appliedFiltersChange = new i0.EventEmitter();
|
|
1494
|
-
/* tslint:enable */
|
|
1495
1495
|
this.dataFirstLoad = false;
|
|
1496
1496
|
this.lastSelectedIds = [];
|
|
1497
1497
|
this.lastFilters = [];
|
|
@@ -1503,7 +1503,9 @@
|
|
|
1503
1503
|
this.dataFirstLoad = true;
|
|
1504
1504
|
}
|
|
1505
1505
|
if (this.listViews.length > 0) {
|
|
1506
|
-
var defaultView =
|
|
1506
|
+
var defaultView = this.defaultView === undefined
|
|
1507
|
+
? this.listViews.first
|
|
1508
|
+
: this.defaultView;
|
|
1507
1509
|
this.dispatcher.next(new ListViewsLoadAction(this.listViews.map(function (v) { return new ListViewModel(v.id, v.label); })));
|
|
1508
1510
|
// activate the default view
|
|
1509
1511
|
this.dispatcher.next(new ListViewsSetActiveAction(defaultView.id));
|
|
@@ -1563,9 +1565,11 @@
|
|
|
1563
1565
|
SkyListComponent.prototype.ngOnChanges = function (changes) {
|
|
1564
1566
|
var _this = this;
|
|
1565
1567
|
if (changes['appliedFilters'] &&
|
|
1566
|
-
changes['appliedFilters'].currentValue !==
|
|
1568
|
+
changes['appliedFilters'].currentValue !==
|
|
1569
|
+
changes['appliedFilters'].previousValue) {
|
|
1567
1570
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
1568
|
-
if (currentState.paging.pageNumber &&
|
|
1571
|
+
if (currentState.paging.pageNumber &&
|
|
1572
|
+
currentState.paging.pageNumber !== 1) {
|
|
1569
1573
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1570
1574
|
}
|
|
1571
1575
|
_this.dispatcher.filtersUpdate(_this.appliedFilters);
|
|
@@ -1623,7 +1627,7 @@
|
|
|
1623
1627
|
selectedChanged = true;
|
|
1624
1628
|
return selected;
|
|
1625
1629
|
})),
|
|
1626
|
-
data.pipe(operators.distinctUntilChanged())
|
|
1630
|
+
data.pipe(operators.distinctUntilChanged()),
|
|
1627
1631
|
], function (filters, search, sortFieldSelectors, itemsPerPage, pageNumber, isToolbarDisabled, selected, itemsData) {
|
|
1628
1632
|
cancelLastRequest.next();
|
|
1629
1633
|
cancelLastRequest.complete();
|
|
@@ -1639,29 +1643,30 @@
|
|
|
1639
1643
|
var initialItems = itemsData.map(function (d) { return new listBuilderCommon.ListItemModel(d.id || "sky-list-item-model-" + ++idIndex$1, d); });
|
|
1640
1644
|
response = rxjs.of(new ListDataResponseModel({
|
|
1641
1645
|
count: _this.initialTotal,
|
|
1642
|
-
items: initialItems
|
|
1646
|
+
items: initialItems,
|
|
1643
1647
|
})).pipe(operators.takeUntil(cancelLastRequest));
|
|
1644
1648
|
}
|
|
1645
1649
|
else {
|
|
1646
|
-
response = _this.dataProvider
|
|
1650
|
+
response = _this.dataProvider
|
|
1651
|
+
.get(new ListDataRequestModel({
|
|
1647
1652
|
filters: filters,
|
|
1648
1653
|
pageSize: itemsPerPage,
|
|
1649
1654
|
pageNumber: pageNumber,
|
|
1650
1655
|
search: search,
|
|
1651
1656
|
sort: new ListSortModel({ fieldSelectors: sortFieldSelectors }),
|
|
1652
|
-
isToolbarDisabled: isToolbarDisabled
|
|
1653
|
-
}))
|
|
1657
|
+
isToolbarDisabled: isToolbarDisabled,
|
|
1658
|
+
}))
|
|
1659
|
+
.pipe(operators.takeUntil(cancelLastRequest));
|
|
1654
1660
|
}
|
|
1655
1661
|
return response;
|
|
1656
|
-
})
|
|
1657
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1662
|
+
}).pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1658
1663
|
// Retain user selections from previous state.
|
|
1659
1664
|
// This is only necessary for grids component (based on item.isSelected).
|
|
1660
1665
|
operators.map(function (response) {
|
|
1661
1666
|
return response.pipe(operators.map(function (listDataResponseModel) {
|
|
1662
1667
|
return new ListDataResponseModel({
|
|
1663
1668
|
count: listDataResponseModel.count,
|
|
1664
|
-
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds)
|
|
1669
|
+
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds),
|
|
1665
1670
|
});
|
|
1666
1671
|
}));
|
|
1667
1672
|
}), operators.flatMap(function (value) { return value; }));
|
|
@@ -1680,8 +1685,7 @@
|
|
|
1680
1685
|
});
|
|
1681
1686
|
Object.defineProperty(SkyListComponent.prototype, "lastUpdate", {
|
|
1682
1687
|
get: function () {
|
|
1683
|
-
return this.state
|
|
1684
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined; }));
|
|
1688
|
+
return this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined; }));
|
|
1685
1689
|
},
|
|
1686
1690
|
enumerable: false,
|
|
1687
1691
|
configurable: true
|
|
@@ -1727,15 +1731,15 @@
|
|
|
1727
1731
|
};
|
|
1728
1732
|
return SkyListComponent;
|
|
1729
1733
|
}());
|
|
1730
|
-
SkyListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1731
|
-
SkyListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1732
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1734
|
+
SkyListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1735
|
+
SkyListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListComponent, selector: "sky-list", inputs: { data: "data", dataProvider: "dataProvider", defaultView: "defaultView", initialTotal: "initialTotal", selectedIds: "selectedIds", sortFields: "sortFields", appliedFilters: "appliedFilters", searchFunction: ["search", "searchFunction"] }, outputs: { selectedIdsChange: "selectedIdsChange", appliedFiltersChange: "appliedFiltersChange" }, providers: [ListState, ListStateDispatcher], queries: [{ propertyName: "listViews", predicate: ListViewComponent }], usesOnChanges: true, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1736
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListComponent, decorators: [{
|
|
1733
1737
|
type: i0.Component,
|
|
1734
1738
|
args: [{
|
|
1735
1739
|
selector: 'sky-list',
|
|
1736
1740
|
template: '<ng-content></ng-content>',
|
|
1737
1741
|
providers: [ListState, ListStateDispatcher],
|
|
1738
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1742
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1739
1743
|
}]
|
|
1740
1744
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { data: [{
|
|
1741
1745
|
type: i0.Input
|
|
@@ -1768,23 +1772,15 @@
|
|
|
1768
1772
|
}
|
|
1769
1773
|
return SkyListModule;
|
|
1770
1774
|
}());
|
|
1771
|
-
SkyListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1772
|
-
SkyListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1773
|
-
SkyListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1774
|
-
|
|
1775
|
-
]] });
|
|
1776
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListModule, decorators: [{
|
|
1775
|
+
SkyListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1776
|
+
SkyListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListModule, declarations: [SkyListComponent], imports: [i4.CommonModule], exports: [SkyListComponent] });
|
|
1777
|
+
SkyListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListModule, imports: [[i4.CommonModule]] });
|
|
1778
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListModule, decorators: [{
|
|
1777
1779
|
type: i0.NgModule,
|
|
1778
1780
|
args: [{
|
|
1779
|
-
declarations: [
|
|
1780
|
-
|
|
1781
|
-
],
|
|
1782
|
-
imports: [
|
|
1783
|
-
i4.CommonModule
|
|
1784
|
-
],
|
|
1785
|
-
exports: [
|
|
1786
|
-
SkyListComponent
|
|
1787
|
-
]
|
|
1781
|
+
declarations: [SkyListComponent],
|
|
1782
|
+
imports: [i4.CommonModule],
|
|
1783
|
+
exports: [SkyListComponent],
|
|
1788
1784
|
}]
|
|
1789
1785
|
}] });
|
|
1790
1786
|
|
|
@@ -1846,25 +1842,25 @@
|
|
|
1846
1842
|
new ListToolbarItemModel({
|
|
1847
1843
|
template: this.filterButtonTemplate,
|
|
1848
1844
|
location: 'left',
|
|
1849
|
-
index: this.filterButtonItemToolbarIndex
|
|
1850
|
-
})
|
|
1845
|
+
index: this.filterButtonItemToolbarIndex,
|
|
1846
|
+
}),
|
|
1851
1847
|
]);
|
|
1852
1848
|
};
|
|
1853
1849
|
return SkyListFilterButtonComponent;
|
|
1854
1850
|
}());
|
|
1855
|
-
SkyListFilterButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1856
|
-
SkyListFilterButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1857
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1851
|
+
SkyListFilterButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterButtonComponent, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1852
|
+
SkyListFilterButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListFilterButtonComponent, selector: "sky-list-filter-button", viewQueries: [{ propertyName: "filterButtonTemplate", first: true, predicate: ["filterButton"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
1853
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterButtonComponent, decorators: [{
|
|
1858
1854
|
type: i0.Component,
|
|
1859
1855
|
args: [{
|
|
1860
1856
|
selector: 'sky-list-filter-button',
|
|
1861
|
-
|
|
1857
|
+
template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
1862
1858
|
}]
|
|
1863
1859
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { filterButtonTemplate: [{
|
|
1864
1860
|
type: i0.ViewChild,
|
|
1865
1861
|
args: ['filterButton', {
|
|
1866
1862
|
read: i0.TemplateRef,
|
|
1867
|
-
static: true
|
|
1863
|
+
static: true,
|
|
1868
1864
|
}]
|
|
1869
1865
|
}] } });
|
|
1870
1866
|
|
|
@@ -1890,10 +1886,10 @@
|
|
|
1890
1886
|
setTimeout(function () {
|
|
1891
1887
|
_this.appliedFilters = _this.state.pipe(operators.map(function (state) {
|
|
1892
1888
|
return state.filters.filter(function (filter) {
|
|
1893
|
-
return filter.value !== '' &&
|
|
1889
|
+
return (filter.value !== '' &&
|
|
1894
1890
|
filter.value !== undefined &&
|
|
1895
1891
|
filter.value !== false &&
|
|
1896
|
-
filter.value !== filter.defaultValue;
|
|
1892
|
+
filter.value !== filter.defaultValue);
|
|
1897
1893
|
});
|
|
1898
1894
|
}));
|
|
1899
1895
|
});
|
|
@@ -1910,13 +1906,13 @@
|
|
|
1910
1906
|
};
|
|
1911
1907
|
return SkyListFilterSummaryComponent;
|
|
1912
1908
|
}());
|
|
1913
|
-
SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1914
|
-
SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1915
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1909
|
+
SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1910
|
+
SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListFilterSummaryComponent, selector: "sky-list-filter-summary", outputs: { summaryItemClick: "summaryItemClick" }, ngImport: i0__namespace, template: "<sky-filter-summary>\n <sky-filter-summary-item\n *ngFor=\"let item of appliedFilters | async; let i = index\"\n (dismiss)=\"filterSummaryItemDismiss(i)\"\n (itemClick)=\"filterSummaryItemClick(item)\"\n [dismissible]=\"item.dismissible\"\n >\n {{ item.label || item.value }}\n </sky-filter-summary-item>\n</sky-filter-summary>\n", components: [{ type: i3__namespace.λ5, selector: "sky-filter-summary" }, { type: i3__namespace.λ4, selector: "sky-filter-summary-item", inputs: ["dismissible"], outputs: ["dismiss", "itemClick"] }], directives: [{ type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4__namespace.AsyncPipe } });
|
|
1911
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, decorators: [{
|
|
1916
1912
|
type: i0.Component,
|
|
1917
1913
|
args: [{
|
|
1918
1914
|
selector: 'sky-list-filter-summary',
|
|
1919
|
-
|
|
1915
|
+
template: "<sky-filter-summary>\n <sky-filter-summary-item\n *ngFor=\"let item of appliedFilters | async; let i = index\"\n (dismiss)=\"filterSummaryItemDismiss(i)\"\n (itemClick)=\"filterSummaryItemClick(item)\"\n [dismissible]=\"item.dismissible\"\n >\n {{ item.label || item.value }}\n </sky-filter-summary-item>\n</sky-filter-summary>\n",
|
|
1920
1916
|
}]
|
|
1921
1917
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
|
|
1922
1918
|
type: i0.Output
|
|
@@ -1927,7 +1923,6 @@
|
|
|
1927
1923
|
*/
|
|
1928
1924
|
var SkyListFilterInlineItemComponent = /** @class */ (function () {
|
|
1929
1925
|
function SkyListFilterInlineItemComponent() {
|
|
1930
|
-
/* tslint:enable:no-input-rename */
|
|
1931
1926
|
this.onChange = new i0.EventEmitter();
|
|
1932
1927
|
}
|
|
1933
1928
|
SkyListFilterInlineItemComponent.prototype.ngOnInit = function () {
|
|
@@ -1937,20 +1932,22 @@
|
|
|
1937
1932
|
};
|
|
1938
1933
|
Object.defineProperty(SkyListFilterInlineItemComponent.prototype, "template", {
|
|
1939
1934
|
get: function () {
|
|
1940
|
-
return this.templates.length > 0
|
|
1935
|
+
return this.templates.length > 0
|
|
1936
|
+
? this.templates.first
|
|
1937
|
+
: this.templateInput;
|
|
1941
1938
|
},
|
|
1942
1939
|
enumerable: false,
|
|
1943
1940
|
configurable: true
|
|
1944
1941
|
});
|
|
1945
1942
|
return SkyListFilterInlineItemComponent;
|
|
1946
1943
|
}());
|
|
1947
|
-
SkyListFilterInlineItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1948
|
-
SkyListFilterInlineItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1949
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1944
|
+
SkyListFilterInlineItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1945
|
+
SkyListFilterInlineItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListFilterInlineItemComponent, selector: "sky-list-filter-inline-item", inputs: { name: "name", value: "value", defaultValue: "defaultValue", filterFunction: ["filter", "filterFunction"], templateInput: ["template", "templateInput"] }, queries: [{ propertyName: "templates", predicate: i0.TemplateRef }], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
1946
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineItemComponent, decorators: [{
|
|
1950
1947
|
type: i0.Component,
|
|
1951
1948
|
args: [{
|
|
1952
1949
|
selector: 'sky-list-filter-inline-item',
|
|
1953
|
-
template: '<ng-content></ng-content>'
|
|
1950
|
+
template: '<ng-content></ng-content>',
|
|
1954
1951
|
}]
|
|
1955
1952
|
}], propDecorators: { name: [{
|
|
1956
1953
|
type: i0.Input
|
|
@@ -1984,13 +1981,13 @@
|
|
|
1984
1981
|
};
|
|
1985
1982
|
return SkyListFilterInlineItemRendererComponent;
|
|
1986
1983
|
}());
|
|
1987
|
-
SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1988
|
-
SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1989
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1984
|
+
SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1985
|
+
SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListFilterInlineItemRendererComponent, selector: "sky-list-filter-inline-item-renderer", inputs: { template: "template", filter: "filter" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: '<ng-template #container></ng-template>', isInline: true });
|
|
1986
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, decorators: [{
|
|
1990
1987
|
type: i0.Component,
|
|
1991
1988
|
args: [{
|
|
1992
1989
|
selector: 'sky-list-filter-inline-item-renderer',
|
|
1993
|
-
template: '<ng-template #container></ng-template>'
|
|
1990
|
+
template: '<ng-template #container></ng-template>',
|
|
1994
1991
|
}]
|
|
1995
1992
|
}], propDecorators: { template: [{
|
|
1996
1993
|
type: i0.Input
|
|
@@ -2000,7 +1997,7 @@
|
|
|
2000
1997
|
type: i0.ViewChild,
|
|
2001
1998
|
args: ['container', {
|
|
2002
1999
|
read: i0.ViewContainerRef,
|
|
2003
|
-
static: true
|
|
2000
|
+
static: true,
|
|
2004
2001
|
}]
|
|
2005
2002
|
}] } });
|
|
2006
2003
|
|
|
@@ -2022,7 +2019,7 @@
|
|
|
2022
2019
|
filterFunction: filter.filterFunction,
|
|
2023
2020
|
template: filter.template,
|
|
2024
2021
|
value: filter.value,
|
|
2025
|
-
defaultValue: filter.defaultValue
|
|
2022
|
+
defaultValue: filter.defaultValue,
|
|
2026
2023
|
});
|
|
2027
2024
|
});
|
|
2028
2025
|
this.inlineFilters.forEach(function (filter) {
|
|
@@ -2035,7 +2032,8 @@
|
|
|
2035
2032
|
SkyListFilterInlineComponent.prototype.applyFilters = function () {
|
|
2036
2033
|
var _this = this;
|
|
2037
2034
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2038
|
-
if (currentState.paging.pageNumber &&
|
|
2035
|
+
if (currentState.paging.pageNumber &&
|
|
2036
|
+
currentState.paging.pageNumber !== 1) {
|
|
2039
2037
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2040
2038
|
}
|
|
2041
2039
|
_this.dispatcher.filtersUpdate(_this.getFilterModelFromInline(_this.inlineFilters));
|
|
@@ -2047,19 +2045,19 @@
|
|
|
2047
2045
|
name: filter.name,
|
|
2048
2046
|
value: filter.value,
|
|
2049
2047
|
filterFunction: filter.filterFunction,
|
|
2050
|
-
defaultValue: filter.defaultValue
|
|
2048
|
+
defaultValue: filter.defaultValue,
|
|
2051
2049
|
});
|
|
2052
2050
|
});
|
|
2053
2051
|
};
|
|
2054
2052
|
return SkyListFilterInlineComponent;
|
|
2055
2053
|
}());
|
|
2056
|
-
SkyListFilterInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2057
|
-
SkyListFilterInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2058
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2054
|
+
SkyListFilterInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineComponent, deps: [{ token: ListStateDispatcher }, { token: ListState }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2055
|
+
SkyListFilterInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListFilterInlineComponent, selector: "sky-list-filter-inline", queries: [{ propertyName: "filters", predicate: SkyListFilterInlineItemComponent }], ngImport: i0__namespace, template: "<ng-content></ng-content>\n\n<sky-filter-inline>\n <sky-filter-inline-item *ngFor=\"let filter of inlineFilters\">\n <sky-list-filter-inline-item-renderer\n [template]=\"filter.template\"\n [filter]=\"filter\"\n >\n </sky-list-filter-inline-item-renderer>\n </sky-filter-inline-item>\n</sky-filter-inline>\n", components: [{ type: i3__namespace.λ2, selector: "sky-filter-inline" }, { type: i3__namespace.λ3, selector: "sky-filter-inline-item" }, { type: SkyListFilterInlineItemRendererComponent, selector: "sky-list-filter-inline-item-renderer", inputs: ["template", "filter"] }], directives: [{ type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
2056
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFilterInlineComponent, decorators: [{
|
|
2059
2057
|
type: i0.Component,
|
|
2060
2058
|
args: [{
|
|
2061
2059
|
selector: 'sky-list-filter-inline',
|
|
2062
|
-
|
|
2060
|
+
template: "<ng-content></ng-content>\n\n<sky-filter-inline>\n <sky-filter-inline-item *ngFor=\"let filter of inlineFilters\">\n <sky-list-filter-inline-item-renderer\n [template]=\"filter.template\"\n [filter]=\"filter\"\n >\n </sky-list-filter-inline-item-renderer>\n </sky-filter-inline-item>\n</sky-filter-inline>\n",
|
|
2063
2061
|
}]
|
|
2064
2062
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }, { type: ListState }]; }, propDecorators: { filters: [{
|
|
2065
2063
|
type: i0.ContentChildren,
|
|
@@ -2071,21 +2069,17 @@
|
|
|
2071
2069
|
}
|
|
2072
2070
|
return SkyListFiltersModule;
|
|
2073
2071
|
}());
|
|
2074
|
-
SkyListFiltersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2075
|
-
SkyListFiltersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2072
|
+
SkyListFiltersModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFiltersModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2073
|
+
SkyListFiltersModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFiltersModule, declarations: [SkyListFilterButtonComponent,
|
|
2076
2074
|
SkyListFilterSummaryComponent,
|
|
2077
2075
|
SkyListFilterInlineItemComponent,
|
|
2078
2076
|
SkyListFilterInlineComponent,
|
|
2079
|
-
SkyListFilterInlineItemRendererComponent], imports: [i4.CommonModule,
|
|
2080
|
-
i3.SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
2077
|
+
SkyListFilterInlineItemRendererComponent], imports: [i4.CommonModule, i3.SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
2081
2078
|
SkyListFilterSummaryComponent,
|
|
2082
2079
|
SkyListFilterInlineItemComponent,
|
|
2083
2080
|
SkyListFilterInlineComponent] });
|
|
2084
|
-
SkyListFiltersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2085
|
-
|
|
2086
|
-
i3.SkyFilterModule
|
|
2087
|
-
]] });
|
|
2088
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListFiltersModule, decorators: [{
|
|
2081
|
+
SkyListFiltersModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFiltersModule, imports: [[i4.CommonModule, i3.SkyFilterModule]] });
|
|
2082
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListFiltersModule, decorators: [{
|
|
2089
2083
|
type: i0.NgModule,
|
|
2090
2084
|
args: [{
|
|
2091
2085
|
declarations: [
|
|
@@ -2093,18 +2087,15 @@
|
|
|
2093
2087
|
SkyListFilterSummaryComponent,
|
|
2094
2088
|
SkyListFilterInlineItemComponent,
|
|
2095
2089
|
SkyListFilterInlineComponent,
|
|
2096
|
-
SkyListFilterInlineItemRendererComponent
|
|
2097
|
-
],
|
|
2098
|
-
imports: [
|
|
2099
|
-
i4.CommonModule,
|
|
2100
|
-
i3.SkyFilterModule
|
|
2090
|
+
SkyListFilterInlineItemRendererComponent,
|
|
2101
2091
|
],
|
|
2092
|
+
imports: [i4.CommonModule, i3.SkyFilterModule],
|
|
2102
2093
|
exports: [
|
|
2103
2094
|
SkyListFilterButtonComponent,
|
|
2104
2095
|
SkyListFilterSummaryComponent,
|
|
2105
2096
|
SkyListFilterInlineItemComponent,
|
|
2106
|
-
SkyListFilterInlineComponent
|
|
2107
|
-
]
|
|
2097
|
+
SkyListFilterInlineComponent,
|
|
2098
|
+
],
|
|
2108
2099
|
}]
|
|
2109
2100
|
}] });
|
|
2110
2101
|
|
|
@@ -2152,8 +2143,7 @@
|
|
|
2152
2143
|
this.currentPageNumber = this.state.pipe(operators.map(function (s) { return s.paging.pageNumber; }));
|
|
2153
2144
|
this.maxDisplayedPages = this.state.pipe(operators.map(function (s) { return s.paging.maxDisplayedPages; }));
|
|
2154
2145
|
this.itemsPerPage = this.state.pipe(operators.map(function (s) { return s.paging.itemsPerPage; }));
|
|
2155
|
-
this.itemCount = this.state
|
|
2156
|
-
.pipe(operators.map(function (s) {
|
|
2146
|
+
this.itemCount = this.state.pipe(operators.map(function (s) {
|
|
2157
2147
|
return s.items;
|
|
2158
2148
|
}), operators.scan(function (previousValue, newValue) {
|
|
2159
2149
|
if (previousValue.lastUpdate > newValue.lastUpdate) {
|
|
@@ -2180,19 +2170,19 @@
|
|
|
2180
2170
|
};
|
|
2181
2171
|
return SkyListPagingComponent;
|
|
2182
2172
|
}(ListPagingComponent));
|
|
2183
|
-
SkyListPagingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2184
|
-
SkyListPagingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2185
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
2186
|
-
], usesInheritance: true, ngImport: i0__namespace, template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n
|
|
2187
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2173
|
+
SkyListPagingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2174
|
+
SkyListPagingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListPagingComponent, selector: "sky-list-paging", inputs: { pageSize: "pageSize", maxPages: "maxPages", pageNumber: "pageNumber" }, providers: [
|
|
2175
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
2176
|
+
], usesInheritance: true, ngImport: i0__namespace, template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n>\n</sky-paging>\n", components: [{ type: i3__namespace.λ7, selector: "sky-paging", inputs: ["currentPage", "itemCount", "maxPages", "pageSize", "pagingLabel"], outputs: ["currentPageChange"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2177
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingComponent, decorators: [{
|
|
2188
2178
|
type: i0.Component,
|
|
2189
2179
|
args: [{
|
|
2190
2180
|
selector: 'sky-list-paging',
|
|
2191
|
-
|
|
2181
|
+
template: "<sky-paging\n [pageSize]=\"itemsPerPage | async\"\n [maxPages]=\"maxDisplayedPages | async\"\n [currentPage]=\"currentPageNumber | async\"\n [itemCount]=\"itemCount | async\"\n (currentPageChange)=\"pageChange($event)\"\n>\n</sky-paging>\n",
|
|
2192
2182
|
providers: [
|
|
2193
|
-
{ provide: ListPagingComponent, useExisting: listPagingComponentRef }
|
|
2183
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
2194
2184
|
],
|
|
2195
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2185
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2196
2186
|
}]
|
|
2197
2187
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { pageSize: [{
|
|
2198
2188
|
type: i0.Input
|
|
@@ -2207,26 +2197,15 @@
|
|
|
2207
2197
|
}
|
|
2208
2198
|
return SkyListPagingModule;
|
|
2209
2199
|
}());
|
|
2210
|
-
SkyListPagingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2211
|
-
SkyListPagingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
i4.CommonModule,
|
|
2215
|
-
i3.SkyPagingModule
|
|
2216
|
-
]] });
|
|
2217
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListPagingModule, decorators: [{
|
|
2200
|
+
SkyListPagingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2201
|
+
SkyListPagingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingModule, declarations: [SkyListPagingComponent], imports: [i4.CommonModule, i3.SkyPagingModule], exports: [SkyListPagingComponent] });
|
|
2202
|
+
SkyListPagingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingModule, imports: [[i4.CommonModule, i3.SkyPagingModule]] });
|
|
2203
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListPagingModule, decorators: [{
|
|
2218
2204
|
type: i0.NgModule,
|
|
2219
2205
|
args: [{
|
|
2220
|
-
declarations: [
|
|
2221
|
-
|
|
2222
|
-
],
|
|
2223
|
-
imports: [
|
|
2224
|
-
i4.CommonModule,
|
|
2225
|
-
i3.SkyPagingModule
|
|
2226
|
-
],
|
|
2227
|
-
exports: [
|
|
2228
|
-
SkyListPagingComponent
|
|
2229
|
-
]
|
|
2206
|
+
declarations: [SkyListPagingComponent],
|
|
2207
|
+
imports: [i4.CommonModule, i3.SkyPagingModule],
|
|
2208
|
+
exports: [SkyListPagingComponent],
|
|
2230
2209
|
}]
|
|
2231
2210
|
}] });
|
|
2232
2211
|
|
|
@@ -2237,7 +2216,15 @@
|
|
|
2237
2216
|
* To update this file, simply rerun the command.
|
|
2238
2217
|
*/
|
|
2239
2218
|
var RESOURCES = {
|
|
2240
|
-
'EN-US': {
|
|
2219
|
+
'EN-US': {
|
|
2220
|
+
skyux_list_show_secondary_actions_button: { message: 'More' },
|
|
2221
|
+
skyux_list_multiselect_clear_all: { message: 'Clear all' },
|
|
2222
|
+
skyux_list_mutliselect_select_all: { message: 'Select all' },
|
|
2223
|
+
skyux_list_mutliselect_show_selected: {
|
|
2224
|
+
message: 'Only show selected items',
|
|
2225
|
+
},
|
|
2226
|
+
skyux_list_view_switcher_dropdown_title: { message: 'Select view' },
|
|
2227
|
+
},
|
|
2241
2228
|
};
|
|
2242
2229
|
var SkyListBuilderResourcesProvider = /** @class */ (function () {
|
|
2243
2230
|
function SkyListBuilderResourcesProvider() {
|
|
@@ -2255,22 +2242,26 @@
|
|
|
2255
2242
|
}
|
|
2256
2243
|
return SkyListBuilderResourcesModule;
|
|
2257
2244
|
}());
|
|
2258
|
-
SkyListBuilderResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2259
|
-
SkyListBuilderResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2260
|
-
SkyListBuilderResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
2245
|
+
SkyListBuilderResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2246
|
+
SkyListBuilderResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, exports: [i5.SkyI18nModule] });
|
|
2247
|
+
SkyListBuilderResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, providers: [
|
|
2248
|
+
{
|
|
2261
2249
|
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2262
2250
|
useClass: SkyListBuilderResourcesProvider,
|
|
2263
|
-
multi: true
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2251
|
+
multi: true,
|
|
2252
|
+
},
|
|
2253
|
+
], imports: [i5.SkyI18nModule] });
|
|
2254
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListBuilderResourcesModule, decorators: [{
|
|
2266
2255
|
type: i0.NgModule,
|
|
2267
2256
|
args: [{
|
|
2268
2257
|
exports: [i5.SkyI18nModule],
|
|
2269
|
-
providers: [
|
|
2258
|
+
providers: [
|
|
2259
|
+
{
|
|
2270
2260
|
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2271
2261
|
useClass: SkyListBuilderResourcesProvider,
|
|
2272
|
-
multi: true
|
|
2273
|
-
}
|
|
2262
|
+
multi: true,
|
|
2263
|
+
},
|
|
2264
|
+
],
|
|
2274
2265
|
}]
|
|
2275
2266
|
}] });
|
|
2276
2267
|
|
|
@@ -2302,9 +2293,9 @@
|
|
|
2302
2293
|
};
|
|
2303
2294
|
return SkyListSecondaryActionsService;
|
|
2304
2295
|
}());
|
|
2305
|
-
SkyListSecondaryActionsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2306
|
-
SkyListSecondaryActionsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2307
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2296
|
+
SkyListSecondaryActionsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2297
|
+
SkyListSecondaryActionsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsService });
|
|
2298
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsService, decorators: [{
|
|
2308
2299
|
type: i0.Injectable
|
|
2309
2300
|
}] });
|
|
2310
2301
|
|
|
@@ -2326,7 +2317,7 @@
|
|
|
2326
2317
|
this.actionService.actionsStream
|
|
2327
2318
|
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged())
|
|
2328
2319
|
.subscribe(function (actions) {
|
|
2329
|
-
var hasSecondaryActions =
|
|
2320
|
+
var hasSecondaryActions = actions.length > 0;
|
|
2330
2321
|
_this.dropdownHidden = !hasSecondaryActions;
|
|
2331
2322
|
_this.actions = actions;
|
|
2332
2323
|
_this.changeDetector.detectChanges();
|
|
@@ -2338,15 +2329,15 @@
|
|
|
2338
2329
|
};
|
|
2339
2330
|
return SkyListSecondaryActionsHostComponent;
|
|
2340
2331
|
}());
|
|
2341
|
-
SkyListSecondaryActionsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2342
|
-
SkyListSecondaryActionsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2343
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2332
|
+
SkyListSecondaryActionsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsHostComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2333
|
+
SkyListSecondaryActionsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host", ngImport: i0__namespace, template: "<div\n class=\"sky-list-secondary-actions\"\n [ngClass]=\"{ 'sky-list-secondary-actions-hidden': dropdownHidden }\"\n>\n <sky-dropdown\n [attr.title]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n [label]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n >\n <sky-dropdown-button>\n <sky-icon icon=\"ellipsis-h\"> </sky-icon>\n <span class=\"sky-list-secondary-actions-btn-text\">\n {{ 'skyux_list_show_secondary_actions_button' | skyLibResources }}\n </span>\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let action of actions\">\n <ng-container *ngTemplateOutlet=\"action.template\"> </ng-container>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-content> </ng-content>\n", styles: [".sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select{padding:6px 12px}.sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select sky-icon[icon=ellipsis-h]{font-size:1.33333em;line-height:.75em;vertical-align:-15%}.sky-list-secondary-actions-hidden{display:none}:host .sky-list-secondary-actions-btn-text{display:none}:host .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:none}:host-context(.sky-responsive-container-xs) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions-btn-text{display:none}:host-context(.sky-responsive-container-xs) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:none}@media (min-width: 768px){:host .sky-list-secondary-actions-btn-text{display:inline}:host .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:inline-block}}:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions-btn-text{display:inline}:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-lg) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:inline-block}\n"], components: [{ type: i2__namespace.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i2__namespace.λ2, selector: "sky-dropdown-button" }, { type: i3__namespace$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: i2__namespace.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i2__namespace.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2334
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsHostComponent, decorators: [{
|
|
2344
2335
|
type: i0.Component,
|
|
2345
2336
|
args: [{
|
|
2346
2337
|
selector: 'sky-list-secondary-actions-host',
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2338
|
+
template: "<div\n class=\"sky-list-secondary-actions\"\n [ngClass]=\"{ 'sky-list-secondary-actions-hidden': dropdownHidden }\"\n>\n <sky-dropdown\n [attr.title]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n [label]=\"'skyux_list_show_secondary_actions_button' | skyLibResources\"\n >\n <sky-dropdown-button>\n <sky-icon icon=\"ellipsis-h\"> </sky-icon>\n <span class=\"sky-list-secondary-actions-btn-text\">\n {{ 'skyux_list_show_secondary_actions_button' | skyLibResources }}\n </span>\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let action of actions\">\n <ng-container *ngTemplateOutlet=\"action.template\"> </ng-container>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-content> </ng-content>\n",
|
|
2339
|
+
styles: [".sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select{padding:6px 12px}.sky-list-secondary-actions ::ng-deep .sky-dropdown-button-type-select sky-icon[icon=ellipsis-h],
|
|
2340
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2350
2341
|
}]
|
|
2351
2342
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyListSecondaryActionsService }]; } });
|
|
2352
2343
|
|
|
@@ -2365,33 +2356,27 @@
|
|
|
2365
2356
|
id: 'secondary-actions',
|
|
2366
2357
|
template: this.secondaryActionsTemplate,
|
|
2367
2358
|
location: 'center',
|
|
2368
|
-
index: this.secondaryActionsItemToolbarIndex
|
|
2359
|
+
index: this.secondaryActionsItemToolbarIndex,
|
|
2369
2360
|
});
|
|
2370
|
-
this.dispatcher.toolbarAddItems([
|
|
2371
|
-
secondaryActionItem
|
|
2372
|
-
]);
|
|
2361
|
+
this.dispatcher.toolbarAddItems([secondaryActionItem]);
|
|
2373
2362
|
};
|
|
2374
2363
|
return SkyListSecondaryActionsComponent;
|
|
2375
2364
|
}());
|
|
2376
|
-
SkyListSecondaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2377
|
-
SkyListSecondaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2378
|
-
|
|
2379
|
-
], viewQueries: [{ propertyName: "secondaryActionsTemplate", first: true, predicate: ["secondaryActions"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #secondaryActions>\n <sky-list-secondary-actions-host>\n <ng-content></ng-content>\n </sky-list-secondary-actions-host>\n</ng-template>\n", components: [{ type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2380
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
2365
|
+
SkyListSecondaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2366
|
+
SkyListSecondaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListSecondaryActionsComponent, selector: "sky-list-secondary-actions", providers: [SkyListSecondaryActionsService], viewQueries: [{ propertyName: "secondaryActionsTemplate", first: true, predicate: ["secondaryActions"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #secondaryActions>\n <sky-list-secondary-actions-host>\n <ng-content></ng-content>\n </sky-list-secondary-actions-host>\n</ng-template>\n", components: [{ type: SkyListSecondaryActionsHostComponent, selector: "sky-list-secondary-actions-host" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
2367
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsComponent, decorators: [{
|
|
2381
2368
|
type: i0.Component,
|
|
2382
2369
|
args: [{
|
|
2383
2370
|
selector: 'sky-list-secondary-actions',
|
|
2384
|
-
|
|
2385
|
-
providers: [
|
|
2386
|
-
|
|
2387
|
-
],
|
|
2388
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
2371
|
+
template: "<ng-template #secondaryActions>\n <sky-list-secondary-actions-host>\n <ng-content></ng-content>\n </sky-list-secondary-actions-host>\n</ng-template>\n",
|
|
2372
|
+
providers: [SkyListSecondaryActionsService],
|
|
2373
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2389
2374
|
}]
|
|
2390
2375
|
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { secondaryActionsTemplate: [{
|
|
2391
2376
|
type: i0.ViewChild,
|
|
2392
2377
|
args: ['secondaryActions', {
|
|
2393
2378
|
read: i0.TemplateRef,
|
|
2394
|
-
static: true
|
|
2379
|
+
static: true,
|
|
2395
2380
|
}]
|
|
2396
2381
|
}] } });
|
|
2397
2382
|
|
|
@@ -2404,24 +2389,24 @@
|
|
|
2404
2389
|
}
|
|
2405
2390
|
SkyListSecondaryActionComponent.prototype.ngAfterContentInit = function () {
|
|
2406
2391
|
this.actionService.addSecondaryAction({
|
|
2407
|
-
template: this.templateRef
|
|
2392
|
+
template: this.templateRef,
|
|
2408
2393
|
});
|
|
2409
2394
|
};
|
|
2410
2395
|
return SkyListSecondaryActionComponent;
|
|
2411
2396
|
}());
|
|
2412
|
-
SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2413
|
-
SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2414
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2397
|
+
SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, deps: [{ token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2398
|
+
SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListSecondaryActionComponent, selector: "sky-list-secondary-action", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["listSecondaryAction"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n" });
|
|
2399
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, decorators: [{
|
|
2415
2400
|
type: i0.Component,
|
|
2416
2401
|
args: [{
|
|
2417
2402
|
selector: 'sky-list-secondary-action',
|
|
2418
|
-
|
|
2403
|
+
template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
2419
2404
|
}]
|
|
2420
2405
|
}], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
|
|
2421
2406
|
type: i0.ViewChild,
|
|
2422
2407
|
args: ['listSecondaryAction', {
|
|
2423
2408
|
read: i0.TemplateRef,
|
|
2424
|
-
static: true
|
|
2409
|
+
static: true,
|
|
2425
2410
|
}]
|
|
2426
2411
|
}] } });
|
|
2427
2412
|
|
|
@@ -2430,41 +2415,37 @@
|
|
|
2430
2415
|
}
|
|
2431
2416
|
return SkyListSecondaryActionsModule;
|
|
2432
2417
|
}());
|
|
2433
|
-
SkyListSecondaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2434
|
-
SkyListSecondaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2418
|
+
SkyListSecondaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2419
|
+
SkyListSecondaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, declarations: [SkyListSecondaryActionsComponent,
|
|
2435
2420
|
SkyListSecondaryActionsHostComponent,
|
|
2436
2421
|
SkyListSecondaryActionComponent], imports: [i4.CommonModule,
|
|
2437
2422
|
i2.SkyDropdownModule,
|
|
2438
2423
|
i5.SkyI18nModule,
|
|
2439
2424
|
i3$1.SkyIconModule,
|
|
2440
|
-
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent,
|
|
2441
|
-
|
|
2442
|
-
SkyListSecondaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, imports: [[
|
|
2425
|
+
SkyListBuilderResourcesModule], exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent] });
|
|
2426
|
+
SkyListSecondaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, imports: [[
|
|
2443
2427
|
i4.CommonModule,
|
|
2444
2428
|
i2.SkyDropdownModule,
|
|
2445
2429
|
i5.SkyI18nModule,
|
|
2446
2430
|
i3$1.SkyIconModule,
|
|
2447
|
-
SkyListBuilderResourcesModule
|
|
2431
|
+
SkyListBuilderResourcesModule,
|
|
2448
2432
|
]] });
|
|
2449
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2433
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, decorators: [{
|
|
2450
2434
|
type: i0.NgModule,
|
|
2451
2435
|
args: [{
|
|
2452
2436
|
declarations: [
|
|
2453
2437
|
SkyListSecondaryActionsComponent,
|
|
2454
2438
|
SkyListSecondaryActionsHostComponent,
|
|
2455
|
-
SkyListSecondaryActionComponent
|
|
2439
|
+
SkyListSecondaryActionComponent,
|
|
2456
2440
|
],
|
|
2457
2441
|
imports: [
|
|
2458
2442
|
i4.CommonModule,
|
|
2459
2443
|
i2.SkyDropdownModule,
|
|
2460
2444
|
i5.SkyI18nModule,
|
|
2461
2445
|
i3$1.SkyIconModule,
|
|
2462
|
-
SkyListBuilderResourcesModule
|
|
2446
|
+
SkyListBuilderResourcesModule,
|
|
2463
2447
|
],
|
|
2464
|
-
exports: [
|
|
2465
|
-
SkyListSecondaryActionsComponent,
|
|
2466
|
-
SkyListSecondaryActionComponent
|
|
2467
|
-
]
|
|
2448
|
+
exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
|
|
2468
2449
|
}]
|
|
2469
2450
|
}] });
|
|
2470
2451
|
|
|
@@ -2499,13 +2480,13 @@
|
|
|
2499
2480
|
});
|
|
2500
2481
|
return SkyListToolbarItemComponent;
|
|
2501
2482
|
}());
|
|
2502
|
-
SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2503
|
-
SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2504
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2483
|
+
SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2484
|
+
SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarItemComponent, selector: "sky-list-toolbar-item", inputs: { id: "id", index: "index", location: "location" }, queries: [{ propertyName: "templates", predicate: i0.TemplateRef }], ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
2485
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarItemComponent, decorators: [{
|
|
2505
2486
|
type: i0.Component,
|
|
2506
2487
|
args: [{
|
|
2507
2488
|
selector: 'sky-list-toolbar-item',
|
|
2508
|
-
template: '<ng-content></ng-content>'
|
|
2489
|
+
template: '<ng-content></ng-content>',
|
|
2509
2490
|
}]
|
|
2510
2491
|
}], propDecorators: { id: [{
|
|
2511
2492
|
type: i0.Input
|
|
@@ -2526,13 +2507,13 @@
|
|
|
2526
2507
|
}
|
|
2527
2508
|
return SkyListToolbarSortComponent;
|
|
2528
2509
|
}());
|
|
2529
|
-
SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2530
|
-
SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2531
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2510
|
+
SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarSortComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2511
|
+
SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarSortComponent, selector: "sky-list-toolbar-sort", inputs: { label: "label", field: "field", type: "type", descending: "descending" }, ngImport: i0__namespace, template: '', isInline: true });
|
|
2512
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarSortComponent, decorators: [{
|
|
2532
2513
|
type: i0.Component,
|
|
2533
2514
|
args: [{
|
|
2534
2515
|
selector: 'sky-list-toolbar-sort',
|
|
2535
|
-
template: ''
|
|
2516
|
+
template: '',
|
|
2536
2517
|
}]
|
|
2537
2518
|
}], propDecorators: { label: [{
|
|
2538
2519
|
type: i0.Input
|
|
@@ -2555,14 +2536,14 @@
|
|
|
2555
2536
|
}
|
|
2556
2537
|
return SkyListToolbarViewActionsComponent;
|
|
2557
2538
|
}());
|
|
2558
|
-
SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2559
|
-
SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2560
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2539
|
+
SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2540
|
+
SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarViewActionsComponent, selector: "sky-list-toolbar-view-actions", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: [":host{display:flex;align-items:center}:host::ng-deep>:not(:last-child){margin-right:5px}.sky-list-toolbar-view-actions ::ng-deep>:not(:last-child){margin-right:5px}\n"] });
|
|
2541
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, decorators: [{
|
|
2561
2542
|
type: i0.Component,
|
|
2562
2543
|
args: [{
|
|
2563
2544
|
selector: 'sky-list-toolbar-view-actions',
|
|
2564
|
-
|
|
2565
|
-
|
|
2545
|
+
template: "<ng-content></ng-content>\n",
|
|
2546
|
+
styles: [":host{display:flex;align-items:center}:host::ng-deep>:not(:last-child){margin-right:5px}.sky-list-toolbar-view-actions ::ng-deep>:not(:last-child){margin-right:5px}\n"],
|
|
2566
2547
|
}]
|
|
2567
2548
|
}] });
|
|
2568
2549
|
|
|
@@ -2598,9 +2579,9 @@
|
|
|
2598
2579
|
}
|
|
2599
2580
|
return ListToolbarStateDispatcher;
|
|
2600
2581
|
}(listBuilderCommon.StateDispatcher));
|
|
2601
|
-
ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2602
|
-
ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2603
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2582
|
+
ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2583
|
+
ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarStateDispatcher });
|
|
2584
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarStateDispatcher, decorators: [{
|
|
2604
2585
|
type: i0.Injectable
|
|
2605
2586
|
}] });
|
|
2606
2587
|
/**
|
|
@@ -2637,9 +2618,7 @@
|
|
|
2637
2618
|
/* istanbul ignore next */
|
|
2638
2619
|
function ListToolbarConfigOrchestrator() {
|
|
2639
2620
|
var _this = _super.call(this) || this;
|
|
2640
|
-
_this
|
|
2641
|
-
.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled)
|
|
2642
|
-
.register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
|
|
2621
|
+
_this.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
|
|
2643
2622
|
return _this;
|
|
2644
2623
|
}
|
|
2645
2624
|
ListToolbarConfigOrchestrator.prototype.setSearchEnabled = function (state, action) {
|
|
@@ -2668,16 +2647,14 @@
|
|
|
2668
2647
|
__extends(ListToolbarState, _super);
|
|
2669
2648
|
function ListToolbarState(initialState, dispatcher) {
|
|
2670
2649
|
var _this = _super.call(this, initialState, dispatcher) || this;
|
|
2671
|
-
_this
|
|
2672
|
-
.register('config', ListToolbarConfigOrchestrator)
|
|
2673
|
-
.begin();
|
|
2650
|
+
_this.register('config', ListToolbarConfigOrchestrator).begin();
|
|
2674
2651
|
return _this;
|
|
2675
2652
|
}
|
|
2676
2653
|
return ListToolbarState;
|
|
2677
2654
|
}(listBuilderCommon.StateNode));
|
|
2678
|
-
ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2679
|
-
ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
2680
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2655
|
+
ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarState, deps: [{ token: ListToolbarStateModel }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2656
|
+
ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarState });
|
|
2657
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: ListToolbarState, decorators: [{
|
|
2681
2658
|
type: i0.Injectable
|
|
2682
2659
|
}], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
|
|
2683
2660
|
|
|
@@ -2694,13 +2671,13 @@
|
|
|
2694
2671
|
};
|
|
2695
2672
|
return SkyListToolbarItemRendererComponent;
|
|
2696
2673
|
}());
|
|
2697
|
-
SkyListToolbarItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2698
|
-
SkyListToolbarItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2699
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2674
|
+
SkyListToolbarItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2675
|
+
SkyListToolbarItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: { template: "template" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: '<ng-template #container></ng-template>', isInline: true });
|
|
2676
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarItemRendererComponent, decorators: [{
|
|
2700
2677
|
type: i0.Component,
|
|
2701
2678
|
args: [{
|
|
2702
2679
|
selector: 'sky-list-toolbar-item-renderer',
|
|
2703
|
-
template: '<ng-template #container></ng-template>'
|
|
2680
|
+
template: '<ng-template #container></ng-template>',
|
|
2704
2681
|
}]
|
|
2705
2682
|
}], propDecorators: { template: [{
|
|
2706
2683
|
type: i0.Input
|
|
@@ -2708,7 +2685,7 @@
|
|
|
2708
2685
|
type: i0.ViewChild,
|
|
2709
2686
|
args: ['container', {
|
|
2710
2687
|
read: i0.ViewContainerRef,
|
|
2711
|
-
static: true
|
|
2688
|
+
static: true,
|
|
2712
2689
|
}]
|
|
2713
2690
|
}] } });
|
|
2714
2691
|
|
|
@@ -2742,7 +2719,7 @@
|
|
|
2742
2719
|
.subscribe(function (filters) {
|
|
2743
2720
|
var showSelectedFilter = filters.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2744
2721
|
if (showSelectedFilter) {
|
|
2745
|
-
_this.showOnlySelected =
|
|
2722
|
+
_this.showOnlySelected = showSelectedFilter.value === 'true';
|
|
2746
2723
|
}
|
|
2747
2724
|
});
|
|
2748
2725
|
};
|
|
@@ -2789,9 +2766,9 @@
|
|
|
2789
2766
|
// If "show selected" is checked and paging is enabled, go to page one.
|
|
2790
2767
|
/* istanbul ignore else */
|
|
2791
2768
|
if (isSelected) {
|
|
2792
|
-
this.state.pipe(operators.take(1))
|
|
2793
|
-
|
|
2794
|
-
|
|
2769
|
+
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2770
|
+
if (currentState.paging.pageNumber &&
|
|
2771
|
+
currentState.paging.pageNumber !== 1) {
|
|
2795
2772
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2796
2773
|
}
|
|
2797
2774
|
});
|
|
@@ -2809,7 +2786,7 @@
|
|
|
2809
2786
|
return _this.selectedIdMap.get(model.id);
|
|
2810
2787
|
}
|
|
2811
2788
|
},
|
|
2812
|
-
defaultValue: false.toString()
|
|
2789
|
+
defaultValue: false.toString(),
|
|
2813
2790
|
});
|
|
2814
2791
|
};
|
|
2815
2792
|
SkyListMultiselectToolbarComponent.prototype.showSelectedValuesEqual = function (prev, next) {
|
|
@@ -2820,7 +2797,8 @@
|
|
|
2820
2797
|
return true;
|
|
2821
2798
|
}
|
|
2822
2799
|
// Only one undefined.
|
|
2823
|
-
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2800
|
+
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2801
|
+
(!prevShowSelectedFilter && nextShowSelectedFilter)) {
|
|
2824
2802
|
return false;
|
|
2825
2803
|
}
|
|
2826
2804
|
// Defined, but with different "value".
|
|
@@ -2842,14 +2820,14 @@
|
|
|
2842
2820
|
};
|
|
2843
2821
|
return SkyListMultiselectToolbarComponent;
|
|
2844
2822
|
}());
|
|
2845
|
-
SkyListMultiselectToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2846
|
-
SkyListMultiselectToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2847
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2823
|
+
SkyListMultiselectToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListMultiselectToolbarComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2824
|
+
SkyListMultiselectToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: { showOnlySelected: "showOnlySelected" }, ngImport: i0__namespace, template: "<sky-toolbar class=\"sky-list-multiselect-toolbar\">\n <sky-toolbar-section>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"selectAllTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"clearSelectionsTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-view-actions>\n <ng-container *ngTemplateOutlet=\"showSelectedTemplate\"></ng-container>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n</sky-toolbar>\n\n<ng-template #selectAllTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-select-all'\"\n (click)=\"selectAll(); $event.preventDefault()\"\n >\n {{ 'skyux_list_mutliselect_select_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #clearSelectionsTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-clear-all'\"\n (click)=\"clearSelections(); $event.preventDefault()\"\n >\n {{ 'skyux_list_multiselect_clear_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #showSelectedTemplate>\n <sky-checkbox\n [attr.id]=\"multiselectToolbarId + '-show-selected'\"\n [checked]=\"showOnlySelected\"\n (change)=\"changeVisibleItems($event)\"\n >\n <sky-checkbox-label>\n {{ 'skyux_list_mutliselect_show_selected' | skyLibResources }}\n </sky-checkbox-label>\n </sky-checkbox>\n</ng-template>\n", styles: [":host-context(sky-toolbar +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container,:host-context(.sky-list-toolbar-search +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container{border-top:none}\n"], components: [{ type: i3__namespace$2.λ37, selector: "sky-toolbar" }, { type: i3__namespace$2.λ38, selector: "sky-toolbar-section" }, { type: i3__namespace$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3__namespace$2.λ40, selector: "sky-toolbar-view-actions" }, { type: i5__namespace$1.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i5__namespace$1.λ4, selector: "sky-checkbox-label" }], directives: [{ type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i5__namespace.SkyLibResourcesPipe } });
|
|
2825
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListMultiselectToolbarComponent, decorators: [{
|
|
2848
2826
|
type: i0.Component,
|
|
2849
2827
|
args: [{
|
|
2850
2828
|
selector: 'sky-list-multiselect-toolbar',
|
|
2851
|
-
|
|
2852
|
-
|
|
2829
|
+
template: "<sky-toolbar class=\"sky-list-multiselect-toolbar\">\n <sky-toolbar-section>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"selectAllTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer [template]=\"clearSelectionsTemplate\">\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-view-actions>\n <ng-container *ngTemplateOutlet=\"showSelectedTemplate\"></ng-container>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n</sky-toolbar>\n\n<ng-template #selectAllTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-select-all'\"\n (click)=\"selectAll(); $event.preventDefault()\"\n >\n {{ 'skyux_list_mutliselect_select_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #clearSelectionsTemplate>\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.id]=\"multiselectToolbarId + '-clear-all'\"\n (click)=\"clearSelections(); $event.preventDefault()\"\n >\n {{ 'skyux_list_multiselect_clear_all' | skyLibResources }}\n </button>\n</ng-template>\n\n<ng-template #showSelectedTemplate>\n <sky-checkbox\n [attr.id]=\"multiselectToolbarId + '-show-selected'\"\n [checked]=\"showOnlySelected\"\n (change)=\"changeVisibleItems($event)\"\n >\n <sky-checkbox-label>\n {{ 'skyux_list_mutliselect_show_selected' | skyLibResources }}\n </sky-checkbox-label>\n </sky-checkbox>\n</ng-template>\n",
|
|
2830
|
+
styles: [":host-context(sky-toolbar +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container,:host-context(.sky-list-toolbar-search +) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container{border-top:none}\n"],
|
|
2853
2831
|
}]
|
|
2854
2832
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { showOnlySelected: [{
|
|
2855
2833
|
type: i0.Input
|
|
@@ -2912,7 +2890,9 @@
|
|
|
2912
2890
|
});
|
|
2913
2891
|
Object.defineProperty(SkyListToolbarComponent.prototype, "isFilterBarDisplayed", {
|
|
2914
2892
|
get: function () {
|
|
2915
|
-
return !this.isToolbarDisabled &&
|
|
2893
|
+
return (!this.isToolbarDisabled &&
|
|
2894
|
+
this.hasInlineFilters &&
|
|
2895
|
+
this.inlineFilterBarExpanded);
|
|
2916
2896
|
},
|
|
2917
2897
|
enumerable: false,
|
|
2918
2898
|
configurable: true
|
|
@@ -2951,23 +2931,20 @@
|
|
|
2951
2931
|
id: 'sort-selector',
|
|
2952
2932
|
template: _this.sortSelectorTemplate,
|
|
2953
2933
|
location: 'left',
|
|
2954
|
-
index: _this.sortSelectorItemToolbarIndex
|
|
2955
|
-
})
|
|
2934
|
+
index: _this.sortSelectorItemToolbarIndex,
|
|
2935
|
+
}),
|
|
2956
2936
|
]);
|
|
2957
2937
|
}
|
|
2958
2938
|
else if (currentSort.length < 1 && _this.hasSortSelectors) {
|
|
2959
2939
|
_this.hasSortSelectors = false;
|
|
2960
|
-
_this.dispatcher.toolbarRemoveItems([
|
|
2961
|
-
'sort-selector'
|
|
2962
|
-
]);
|
|
2940
|
+
_this.dispatcher.toolbarRemoveItems(['sort-selector']);
|
|
2963
2941
|
}
|
|
2964
2942
|
});
|
|
2965
2943
|
this.searchTextInput = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.search.searchText; }), operators.distinctUntilChanged());
|
|
2966
2944
|
this.view = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.views.active; }), operators.distinctUntilChanged());
|
|
2967
2945
|
this.watchTemplates();
|
|
2968
2946
|
this.type = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (state) { return state.toolbar.type; }), operators.distinctUntilChanged());
|
|
2969
|
-
this.type.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2970
|
-
.subscribe(function (toolbarType) {
|
|
2947
|
+
this.type.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (toolbarType) {
|
|
2971
2948
|
if (toolbarType === 'search') {
|
|
2972
2949
|
_this.dispatcher.toolbarRemoveItems(['search']);
|
|
2973
2950
|
}
|
|
@@ -2976,28 +2953,28 @@
|
|
|
2976
2953
|
new ListToolbarItemModel({
|
|
2977
2954
|
id: 'search',
|
|
2978
2955
|
template: _this.searchTemplate,
|
|
2979
|
-
location: 'right'
|
|
2980
|
-
})
|
|
2956
|
+
location: 'right',
|
|
2957
|
+
}),
|
|
2981
2958
|
]);
|
|
2982
2959
|
}
|
|
2983
2960
|
});
|
|
2984
2961
|
this.isSearchEnabled = this.toolbarState.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.config; }), operators.distinctUntilChanged(), operators.map(function (c) { return c.searchEnabled; }));
|
|
2985
|
-
this.state
|
|
2986
|
-
.
|
|
2962
|
+
this.state
|
|
2963
|
+
.pipe(operators.map(function (s) { return s.toolbar; }), operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged(), operators.map(function (c) { return c.disabled; }))
|
|
2964
|
+
.subscribe(function (isDisabled) { return (_this.isToolbarDisabled = isDisabled); });
|
|
2987
2965
|
this.isSortSelectorEnabled = this.toolbarState.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.config; }), operators.distinctUntilChanged(), operators.map(function (c) { return c.sortSelectorEnabled; }));
|
|
2988
2966
|
this.isMultiselectEnabled = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.toolbar; }), operators.distinctUntilChanged(), operators.map(function (t) { return t.showMultiselectToolbar; }));
|
|
2989
2967
|
this.hasAppliedFilters = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.filters; }), operators.distinctUntilChanged(), operators.map(function (filters) {
|
|
2990
2968
|
var activeFilters = filters.filter(function (f) {
|
|
2991
|
-
return f.value !== '' &&
|
|
2969
|
+
return (f.value !== '' &&
|
|
2992
2970
|
f.value !== undefined &&
|
|
2993
2971
|
f.value !== false &&
|
|
2994
|
-
f.value !== f.defaultValue;
|
|
2972
|
+
f.value !== f.defaultValue);
|
|
2995
2973
|
});
|
|
2996
2974
|
return activeFilters.length > 0;
|
|
2997
2975
|
}));
|
|
2998
|
-
this.state.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2999
|
-
.
|
|
3000
|
-
_this.hasAdditionalToolbarSection = (current.toolbar.items.length > 0);
|
|
2976
|
+
this.state.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (current) {
|
|
2977
|
+
_this.hasAdditionalToolbarSection = current.toolbar.items.length > 0;
|
|
3001
2978
|
_this.changeDetector.detectChanges();
|
|
3002
2979
|
});
|
|
3003
2980
|
};
|
|
@@ -3005,18 +2982,15 @@
|
|
|
3005
2982
|
var _this = this;
|
|
3006
2983
|
// Inject custom toolbar items.
|
|
3007
2984
|
this.toolbarItems.forEach(function (toolbarItem) {
|
|
3008
|
-
_this.dispatcher.toolbarAddItems([
|
|
3009
|
-
new ListToolbarItemModel(toolbarItem)
|
|
3010
|
-
]);
|
|
2985
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(toolbarItem)]);
|
|
3011
2986
|
_this.customItemIds.push(toolbarItem.id);
|
|
3012
2987
|
});
|
|
3013
|
-
this.toolbarItems.changes
|
|
2988
|
+
this.toolbarItems.changes
|
|
2989
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
3014
2990
|
.subscribe(function (newItems) {
|
|
3015
2991
|
newItems.forEach(function (item) {
|
|
3016
2992
|
if (_this.customItemIds.indexOf(item.id) < 0) {
|
|
3017
|
-
_this.dispatcher.toolbarAddItems([
|
|
3018
|
-
new ListToolbarItemModel(item)
|
|
3019
|
-
]);
|
|
2993
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(item)]);
|
|
3020
2994
|
_this.customItemIds.push(item.id);
|
|
3021
2995
|
}
|
|
3022
2996
|
});
|
|
@@ -3034,23 +3008,23 @@
|
|
|
3034
3008
|
fieldSelector: sort.field,
|
|
3035
3009
|
fieldType: sort.type,
|
|
3036
3010
|
global: true,
|
|
3037
|
-
descending: sort.descending
|
|
3011
|
+
descending: sort.descending,
|
|
3038
3012
|
}); });
|
|
3039
3013
|
this.dispatcher.sortSetGlobal(sortModels);
|
|
3040
3014
|
// Add inline filters.
|
|
3041
|
-
this.showFilterSummary =
|
|
3042
|
-
this.hasInlineFilters =
|
|
3015
|
+
this.showFilterSummary = this.filterSummary.length > 0;
|
|
3016
|
+
this.hasInlineFilters = this.inlineFilter.length > 0;
|
|
3043
3017
|
if (this.hasInlineFilters) {
|
|
3044
3018
|
this.dispatcher.toolbarAddItems([
|
|
3045
3019
|
new ListToolbarItemModel({
|
|
3046
3020
|
template: this.inlineFilterButtonTemplate,
|
|
3047
3021
|
location: 'left',
|
|
3048
|
-
index: this.inlineFiltersItemToolbarIndex
|
|
3049
|
-
})
|
|
3022
|
+
index: this.inlineFiltersItemToolbarIndex,
|
|
3023
|
+
}),
|
|
3050
3024
|
]);
|
|
3051
3025
|
}
|
|
3052
3026
|
// Check for view actions
|
|
3053
|
-
this.hasViewActions =
|
|
3027
|
+
this.hasViewActions = this.viewActions.length > 0;
|
|
3054
3028
|
};
|
|
3055
3029
|
SkyListToolbarComponent.prototype.ngOnDestroy = function () {
|
|
3056
3030
|
this.searchApplied.complete();
|
|
@@ -3060,10 +3034,13 @@
|
|
|
3060
3034
|
SkyListToolbarComponent.prototype.setSort = function (sort) {
|
|
3061
3035
|
var _this = this;
|
|
3062
3036
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
3063
|
-
if (currentState.paging.pageNumber &&
|
|
3037
|
+
if (currentState.paging.pageNumber &&
|
|
3038
|
+
currentState.paging.pageNumber !== 1) {
|
|
3064
3039
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
3065
3040
|
}
|
|
3066
|
-
_this.dispatcher.sortSetFieldSelectors([
|
|
3041
|
+
_this.dispatcher.sortSetFieldSelectors([
|
|
3042
|
+
{ fieldSelector: sort.fieldSelector, descending: sort.descending },
|
|
3043
|
+
]);
|
|
3067
3044
|
});
|
|
3068
3045
|
};
|
|
3069
3046
|
SkyListToolbarComponent.prototype.inlineFilterButtonClick = function () {
|
|
@@ -3074,7 +3051,8 @@
|
|
|
3074
3051
|
this.searchApplied.next(searchText);
|
|
3075
3052
|
if (this.inMemorySearchEnabled) {
|
|
3076
3053
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
3077
|
-
if (currentState.paging.pageNumber &&
|
|
3054
|
+
if (currentState.paging.pageNumber &&
|
|
3055
|
+
currentState.paging.pageNumber !== 1) {
|
|
3078
3056
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
3079
3057
|
}
|
|
3080
3058
|
_this.dispatcher.searchSetText(searchText);
|
|
@@ -3082,16 +3060,17 @@
|
|
|
3082
3060
|
}
|
|
3083
3061
|
};
|
|
3084
3062
|
SkyListToolbarComponent.prototype.itemIsInView = function (itemView, activeView) {
|
|
3085
|
-
return
|
|
3063
|
+
return itemView === undefined || itemView === activeView;
|
|
3086
3064
|
};
|
|
3087
3065
|
SkyListToolbarComponent.prototype.getSortSelectors = function () {
|
|
3088
3066
|
return rxjs.combineLatest(this.state.pipe(operators.map(function (s) { return s.sort.available; }), operators.distinctUntilChanged()), this.state.pipe(operators.map(function (s) { return s.sort.global; }), operators.distinctUntilChanged()), this.state.pipe(operators.map(function (s) { return s.sort.fieldSelectors; }), operators.distinctUntilChanged()), function (available, global, fieldSelectors) {
|
|
3089
3067
|
// Get sorts that are in the global that are not in the available
|
|
3090
|
-
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
3068
|
+
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
3069
|
+
.length === 0; });
|
|
3091
3070
|
var resultSortSelectors = __spreadArray(__spreadArray([], __read(sorts)), __read(available)).map(function (sortLabels) {
|
|
3092
3071
|
var fs = fieldSelectors.filter(function (f) {
|
|
3093
|
-
return f.fieldSelector === sortLabels.fieldSelector
|
|
3094
|
-
|
|
3072
|
+
return (f.fieldSelector === sortLabels.fieldSelector &&
|
|
3073
|
+
f.descending === sortLabels.descending);
|
|
3095
3074
|
});
|
|
3096
3075
|
var selected = false;
|
|
3097
3076
|
if (fs.length > 0) {
|
|
@@ -3099,7 +3078,7 @@
|
|
|
3099
3078
|
}
|
|
3100
3079
|
return {
|
|
3101
3080
|
sort: sortLabels,
|
|
3102
|
-
selected: selected
|
|
3081
|
+
selected: selected,
|
|
3103
3082
|
};
|
|
3104
3083
|
});
|
|
3105
3084
|
return resultSortSelectors;
|
|
@@ -3117,7 +3096,8 @@
|
|
|
3117
3096
|
templates[item.location].push(item);
|
|
3118
3097
|
});
|
|
3119
3098
|
return templates;
|
|
3120
|
-
})
|
|
3099
|
+
})
|
|
3100
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
3121
3101
|
.subscribe(function (value) {
|
|
3122
3102
|
_this.leftTemplates = value.left;
|
|
3123
3103
|
_this.centerTemplates = value.center;
|
|
@@ -3127,24 +3107,24 @@
|
|
|
3127
3107
|
};
|
|
3128
3108
|
return SkyListToolbarComponent;
|
|
3129
3109
|
}());
|
|
3130
|
-
SkyListToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3131
|
-
SkyListToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
3110
|
+
SkyListToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: ListState }, { token: ListStateDispatcher }, { token: ListToolbarState }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3111
|
+
SkyListToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarComponent, selector: "sky-list-toolbar", inputs: { inMemorySearchEnabled: "inMemorySearchEnabled", placeholder: "placeholder", searchEnabled: "searchEnabled", sortSelectorEnabled: "sortSelectorEnabled", toolbarType: "toolbarType", searchText: "searchText" }, providers: [
|
|
3132
3112
|
ListToolbarState,
|
|
3133
3113
|
ListToolbarStateDispatcher,
|
|
3134
|
-
ListToolbarStateModel
|
|
3135
|
-
], queries: [{ propertyName: "toolbarItems", predicate: SkyListToolbarItemComponent }, { propertyName: "toolbarSorts", predicate: SkyListToolbarSortComponent }, { propertyName: "filterSummary", predicate: SkyListFilterSummaryComponent }, { propertyName: "inlineFilter", predicate: SkyListFilterInlineComponent }, { propertyName: "viewActions", predicate: SkyListToolbarViewActionsComponent }], viewQueries: [{ propertyName: "searchComponent", first: true, predicate: i8.SkySearchComponent, descendants: true, read: i8.SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n
|
|
3136
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3114
|
+
ListToolbarStateModel,
|
|
3115
|
+
], queries: [{ propertyName: "toolbarItems", predicate: SkyListToolbarItemComponent }, { propertyName: "toolbarSorts", predicate: SkyListToolbarSortComponent }, { propertyName: "filterSummary", predicate: SkyListFilterSummaryComponent }, { propertyName: "inlineFilter", predicate: SkyListFilterInlineComponent }, { propertyName: "viewActions", predicate: SkyListToolbarViewActionsComponent }], viewQueries: [{ propertyName: "searchComponent", first: true, predicate: i8.SkySearchComponent, descendants: true, read: i8.SkySearchComponent }, { propertyName: "searchTemplate", first: true, predicate: ["search"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "sortSelectorTemplate", first: true, predicate: ["sortSelector"], descendants: true, read: i0.TemplateRef, static: true }, { propertyName: "inlineFilterButtonTemplate", first: true, predicate: ["inlineFilterButton"], descendants: true, read: i0.TemplateRef, static: true }], ngImport: i0__namespace, template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n <sky-toolbar-section>\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n\n <sky-toolbar-section\n *ngIf=\"showFilterSummary && (hasAppliedFilters | async)\"\n >\n <ng-content select=\"sky-list-filter-summary\"> </ng-content>\n </sky-toolbar-section>\n </sky-toolbar>\n\n <div\n *ngIf=\"\n (type | async) === 'search' &&\n ((isSearchEnabled | async) || hasAdditionalToolbarSection)\n \"\n class=\"sky-list-toolbar-search\"\n >\n <sky-toolbar>\n <sky-toolbar-section *ngIf=\"isSearchEnabled | async\">\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer\n sky-cmp-id=\"search\"\n [template]=\"search\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n </sky-toolbar-section>\n <sky-toolbar-section [hidden]=\"!hasAdditionalToolbarSection\">\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n *ngIf=\"item.id !== 'search'\"\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n </sky-toolbar>\n </div>\n <div\n *ngIf=\"isFilterBarDisplayed\"\n [attr.aria-labelledby]=\"filterButtonId\"\n [id]=\"listFilterInlineId\"\n >\n <ng-content select=\"sky-list-filter-inline\"> </ng-content>\n </div>\n <sky-list-multiselect-toolbar *ngIf=\"isMultiselectEnabled | async\">\n </sky-list-multiselect-toolbar>\n</div>\n\n<ng-template #search>\n <div *ngIf=\"isSearchEnabled | async\" class=\"sky-list-toolbar-search-wrapper\">\n <sky-search\n [disabled]=\"isToolbarDisabled\"\n [expandMode]=\"(type | async) === 'search' ? 'fit' : 'responsive'\"\n [placeholderText]=\"placeholder\"\n [searchText]=\"searchTextInput | async\"\n (searchApply)=\"updateSearchText($event)\"\n >\n </sky-search>\n <ng-content select=\"sky-list-toolbar-search-actions\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #sortSelector>\n <div\n *ngIf=\"\n (isSortSelectorEnabled | async) && (sortSelectors | async).length > 0\n \"\n class=\"sky-toolbar-item-sort-container\"\n >\n <sky-sort [showButtonText]=\"true\">\n <sky-sort-item\n *ngFor=\"let item of sortSelectors | async\"\n [active]=\"item.selected\"\n (itemSelect)=\"setSort(item.sort)\"\n >\n {{ item.sort.text }}\n </sky-sort-item>\n </sky-sort>\n </div>\n</ng-template>\n\n<ng-template #inlineFilterButton>\n <sky-filter-button\n [active]=\"hasAppliedFilters | async\"\n [ariaControls]=\"filterButtonAriaControls\"\n [ariaExpanded]=\"inlineFilterBarExpanded\"\n [disabled]=\"isToolbarDisabled\"\n [filterButtonId]=\"filterButtonId\"\n [showButtonText]=\"true\"\n (filterButtonClick)=\"inlineFilterButtonClick()\"\n >\n </sky-filter-button>\n</ng-template>\n", styles: [".sky-list-toolbar-search-wrapper{display:flex}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-dismiss-absolute{padding:0;position:static}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-container{position:relative;height:100%}.sky-list-toolbar-search-wrapper ::ng-deep sky-search{flex:1 1 auto}.sky-list-toolbar-search-wrapper ::ng-deep sky-list-toolbar-search-actions{flex:0 0 auto;z-index:1}.sky-list-toolbar-container ::ng-deep .sky-toolbar-section-items sky-toolbar-item{flex:0 1 auto;align-self:flex-start}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section{padding-top:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section-items{display:block;width:100%}.sky-list-toolbar-search ::ng-deep .sky-toolbar-item{margin:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-container,.sky-list-toolbar-search ::ng-deep .sky-search-dismiss-absolute{background-color:#eeeeef}.sky-list-toolbar-search ::ng-deep input[type=text]:disabled,.sky-list-toolbar-search ::ng-deep .sky-search-btn:disabled{background-color:#cdcfd2;opacity:1}.sky-list-toolbar-container ::ng-deep sky-toolbar-item[sky-toolbar-id=sort-selector] .sky-toolbar-item{margin-right:0}.sky-list-toolbar-container ::ng-deep sky-checkbox{position:relative;top:-2px}\n"], components: [{ type: i3__namespace$2.λ37, selector: "sky-toolbar" }, { type: i3__namespace$2.λ38, selector: "sky-toolbar-section" }, { type: i3__namespace$2.λ39, selector: "sky-toolbar-item" }, { type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { type: i3__namespace$2.λ40, selector: "sky-toolbar-view-actions" }, { type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: ["showOnlySelected"] }, { type: i8__namespace.SkySearchComponent, selector: "sky-search", inputs: ["searchText", "expandMode", "debounceTime", "disabled", "placeholderText"], outputs: ["searchApply", "searchChange", "searchClear"] }, { type: i3__namespace.λ14, selector: "sky-sort", inputs: ["showButtonText"] }, { type: i3__namespace.λ13, selector: "sky-sort-item", inputs: ["active"], outputs: ["itemSelect"] }, { type: i3__namespace.λ1, selector: "sky-filter-button", inputs: ["filterButtonId", "ariaControls", "ariaExpanded", "active", "disabled", "showButtonText"], outputs: ["filterButtonClick"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
3116
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarComponent, decorators: [{
|
|
3137
3117
|
type: i0.Component,
|
|
3138
3118
|
args: [{
|
|
3139
3119
|
selector: 'sky-list-toolbar',
|
|
3140
|
-
|
|
3141
|
-
|
|
3120
|
+
template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n <sky-toolbar-section>\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n\n <sky-toolbar-section\n *ngIf=\"showFilterSummary && (hasAppliedFilters | async)\"\n >\n <ng-content select=\"sky-list-filter-summary\"> </ng-content>\n </sky-toolbar-section>\n </sky-toolbar>\n\n <div\n *ngIf=\"\n (type | async) === 'search' &&\n ((isSearchEnabled | async) || hasAdditionalToolbarSection)\n \"\n class=\"sky-list-toolbar-search\"\n >\n <sky-toolbar>\n <sky-toolbar-section *ngIf=\"isSearchEnabled | async\">\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer\n sky-cmp-id=\"search\"\n [template]=\"search\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n </sky-toolbar-section>\n <sky-toolbar-section [hidden]=\"!hasAdditionalToolbarSection\">\n <sky-toolbar-item *ngFor=\"let item of leftTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item *ngFor=\"let item of centerTemplates\">\n <sky-list-toolbar-item-renderer\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item\n *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer\n *ngIf=\"item.id !== 'search'\"\n [attr.sky-cmp-id]=\"item.id\"\n [template]=\"item.template\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <ng-content></ng-content>\n\n <sky-toolbar-view-actions *ngIf=\"hasViewActions\">\n <ng-content select=\"sky-list-toolbar-view-actions\"> </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n </sky-toolbar>\n </div>\n <div\n *ngIf=\"isFilterBarDisplayed\"\n [attr.aria-labelledby]=\"filterButtonId\"\n [id]=\"listFilterInlineId\"\n >\n <ng-content select=\"sky-list-filter-inline\"> </ng-content>\n </div>\n <sky-list-multiselect-toolbar *ngIf=\"isMultiselectEnabled | async\">\n </sky-list-multiselect-toolbar>\n</div>\n\n<ng-template #search>\n <div *ngIf=\"isSearchEnabled | async\" class=\"sky-list-toolbar-search-wrapper\">\n <sky-search\n [disabled]=\"isToolbarDisabled\"\n [expandMode]=\"(type | async) === 'search' ? 'fit' : 'responsive'\"\n [placeholderText]=\"placeholder\"\n [searchText]=\"searchTextInput | async\"\n (searchApply)=\"updateSearchText($event)\"\n >\n </sky-search>\n <ng-content select=\"sky-list-toolbar-search-actions\"></ng-content>\n </div>\n</ng-template>\n\n<ng-template #sortSelector>\n <div\n *ngIf=\"\n (isSortSelectorEnabled | async) && (sortSelectors | async).length > 0\n \"\n class=\"sky-toolbar-item-sort-container\"\n >\n <sky-sort [showButtonText]=\"true\">\n <sky-sort-item\n *ngFor=\"let item of sortSelectors | async\"\n [active]=\"item.selected\"\n (itemSelect)=\"setSort(item.sort)\"\n >\n {{ item.sort.text }}\n </sky-sort-item>\n </sky-sort>\n </div>\n</ng-template>\n\n<ng-template #inlineFilterButton>\n <sky-filter-button\n [active]=\"hasAppliedFilters | async\"\n [ariaControls]=\"filterButtonAriaControls\"\n [ariaExpanded]=\"inlineFilterBarExpanded\"\n [disabled]=\"isToolbarDisabled\"\n [filterButtonId]=\"filterButtonId\"\n [showButtonText]=\"true\"\n (filterButtonClick)=\"inlineFilterButtonClick()\"\n >\n </sky-filter-button>\n</ng-template>\n",
|
|
3121
|
+
styles: [".sky-list-toolbar-search-wrapper{display:flex}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-dismiss-absolute{padding:0;position:static}.sky-list-toolbar-search-wrapper ::ng-deep .sky-search-container{position:relative;height:100%}.sky-list-toolbar-search-wrapper ::ng-deep sky-search{flex:1 1 auto}.sky-list-toolbar-search-wrapper ::ng-deep sky-list-toolbar-search-actions{flex:0 0 auto;z-index:1}.sky-list-toolbar-container ::ng-deep .sky-toolbar-section-items sky-toolbar-item{flex:0 1 auto;align-self:flex-start}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section{padding-top:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-section-items{display:block;width:100%}.sky-list-toolbar-search ::ng-deep .sky-toolbar-item{margin:0}.sky-list-toolbar-search ::ng-deep .sky-toolbar-container,.sky-list-toolbar-search ::ng-deep .sky-search-dismiss-absolute{background-color:#eeeeef}.sky-list-toolbar-search ::ng-deep input[type=text],
|
|
3142
3122
|
providers: [
|
|
3143
3123
|
ListToolbarState,
|
|
3144
3124
|
ListToolbarStateDispatcher,
|
|
3145
|
-
ListToolbarStateModel
|
|
3125
|
+
ListToolbarStateModel,
|
|
3146
3126
|
],
|
|
3147
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3127
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3148
3128
|
}]
|
|
3149
3129
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: ListState }, { type: ListStateDispatcher }, { type: ListToolbarState }, { type: ListToolbarStateDispatcher }]; }, propDecorators: { inMemorySearchEnabled: [{
|
|
3150
3130
|
type: i0.Input
|
|
@@ -3156,7 +3136,7 @@
|
|
|
3156
3136
|
type: i0.ViewChild,
|
|
3157
3137
|
args: [i8.SkySearchComponent, {
|
|
3158
3138
|
read: i8.SkySearchComponent,
|
|
3159
|
-
static: false
|
|
3139
|
+
static: false,
|
|
3160
3140
|
}]
|
|
3161
3141
|
}], sortSelectorEnabled: [{
|
|
3162
3142
|
type: i0.Input
|
|
@@ -3183,19 +3163,19 @@
|
|
|
3183
3163
|
type: i0.ViewChild,
|
|
3184
3164
|
args: ['search', {
|
|
3185
3165
|
read: i0.TemplateRef,
|
|
3186
|
-
static: true
|
|
3166
|
+
static: true,
|
|
3187
3167
|
}]
|
|
3188
3168
|
}], sortSelectorTemplate: [{
|
|
3189
3169
|
type: i0.ViewChild,
|
|
3190
3170
|
args: ['sortSelector', {
|
|
3191
3171
|
read: i0.TemplateRef,
|
|
3192
|
-
static: true
|
|
3172
|
+
static: true,
|
|
3193
3173
|
}]
|
|
3194
3174
|
}], inlineFilterButtonTemplate: [{
|
|
3195
3175
|
type: i0.ViewChild,
|
|
3196
3176
|
args: ['inlineFilterButton', {
|
|
3197
3177
|
read: i0.TemplateRef,
|
|
3198
|
-
static: true
|
|
3178
|
+
static: true,
|
|
3199
3179
|
}]
|
|
3200
3180
|
}] } });
|
|
3201
3181
|
|
|
@@ -3207,15 +3187,15 @@
|
|
|
3207
3187
|
}
|
|
3208
3188
|
return SkyListToolbarSearchActionsComponent;
|
|
3209
3189
|
}());
|
|
3210
|
-
SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3211
|
-
SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
3212
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3190
|
+
SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3191
|
+
SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyListToolbarSearchActionsComponent, selector: "sky-list-toolbar-search-actions", ngImport: i0__namespace, template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
3192
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, decorators: [{
|
|
3213
3193
|
type: i0.Component,
|
|
3214
3194
|
args: [{
|
|
3215
3195
|
selector: 'sky-list-toolbar-search-actions',
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3196
|
+
template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n",
|
|
3197
|
+
styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"],
|
|
3198
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3219
3199
|
}]
|
|
3220
3200
|
}] });
|
|
3221
3201
|
|
|
@@ -3224,8 +3204,8 @@
|
|
|
3224
3204
|
}
|
|
3225
3205
|
return SkyListToolbarModule;
|
|
3226
3206
|
}());
|
|
3227
|
-
SkyListToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
3228
|
-
SkyListToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
3207
|
+
SkyListToolbarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3208
|
+
SkyListToolbarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, declarations: [SkyListToolbarComponent,
|
|
3229
3209
|
SkyListToolbarItemComponent,
|
|
3230
3210
|
SkyListToolbarItemRendererComponent,
|
|
3231
3211
|
SkyListMultiselectToolbarComponent,
|
|
@@ -3245,7 +3225,7 @@
|
|
|
3245
3225
|
SkyListToolbarSearchActionsComponent,
|
|
3246
3226
|
SkyListToolbarSortComponent,
|
|
3247
3227
|
SkyListToolbarViewActionsComponent] });
|
|
3248
|
-
SkyListToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
3228
|
+
SkyListToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, imports: [[
|
|
3249
3229
|
i4.CommonModule,
|
|
3250
3230
|
i5$1.SkyCheckboxModule,
|
|
3251
3231
|
i5.SkyI18nModule,
|
|
@@ -3255,9 +3235,9 @@
|
|
|
3255
3235
|
i3.SkyFilterModule,
|
|
3256
3236
|
SkyListFiltersModule,
|
|
3257
3237
|
i3$1.SkyIconModule,
|
|
3258
|
-
SkyListBuilderResourcesModule
|
|
3238
|
+
SkyListBuilderResourcesModule,
|
|
3259
3239
|
]] });
|
|
3260
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
3240
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, decorators: [{
|
|
3261
3241
|
type: i0.NgModule,
|
|
3262
3242
|
args: [{
|
|
3263
3243
|
declarations: [
|
|
@@ -3267,7 +3247,7 @@
|
|
|
3267
3247
|
SkyListMultiselectToolbarComponent,
|
|
3268
3248
|
SkyListToolbarSearchActionsComponent,
|
|
3269
3249
|
SkyListToolbarSortComponent,
|
|
3270
|
-
SkyListToolbarViewActionsComponent
|
|
3250
|
+
SkyListToolbarViewActionsComponent,
|
|
3271
3251
|
],
|
|
3272
3252
|
imports: [
|
|
3273
3253
|
i4.CommonModule,
|
|
@@ -3279,15 +3259,15 @@
|
|
|
3279
3259
|
i3.SkyFilterModule,
|
|
3280
3260
|
SkyListFiltersModule,
|
|
3281
3261
|
i3$1.SkyIconModule,
|
|
3282
|
-
SkyListBuilderResourcesModule
|
|
3262
|
+
SkyListBuilderResourcesModule,
|
|
3283
3263
|
],
|
|
3284
3264
|
exports: [
|
|
3285
3265
|
SkyListToolbarComponent,
|
|
3286
3266
|
SkyListToolbarItemComponent,
|
|
3287
3267
|
SkyListToolbarSearchActionsComponent,
|
|
3288
3268
|
SkyListToolbarSortComponent,
|
|
3289
|
-
SkyListToolbarViewActionsComponent
|
|
3290
|
-
]
|
|
3269
|
+
SkyListToolbarViewActionsComponent,
|
|
3270
|
+
],
|
|
3291
3271
|
}]
|
|
3292
3272
|
}] });
|
|
3293
3273
|
|
|
@@ -3357,19 +3337,19 @@
|
|
|
3357
3337
|
exports.SkyListSecondaryActionsModule = SkyListSecondaryActionsModule;
|
|
3358
3338
|
exports.SkyListToolbarComponent = SkyListToolbarComponent;
|
|
3359
3339
|
exports.SkyListToolbarModule = SkyListToolbarModule;
|
|
3360
|
-
exports
|
|
3361
|
-
exports
|
|
3362
|
-
exports
|
|
3363
|
-
exports
|
|
3364
|
-
exports
|
|
3365
|
-
exports
|
|
3366
|
-
exports
|
|
3367
|
-
exports
|
|
3368
|
-
exports
|
|
3369
|
-
exports
|
|
3370
|
-
exports
|
|
3340
|
+
exports["λ1"] = SkyListFilterButtonComponent;
|
|
3341
|
+
exports["λ10"] = SkyListToolbarViewActionsComponent;
|
|
3342
|
+
exports["λ11"] = SkyListToolbarSearchActionsComponent;
|
|
3343
|
+
exports["λ2"] = SkyListFilterSummaryComponent;
|
|
3344
|
+
exports["λ3"] = SkyListFilterInlineItemComponent;
|
|
3345
|
+
exports["λ4"] = SkyListFilterInlineComponent;
|
|
3346
|
+
exports["λ5"] = SkyListPagingComponent;
|
|
3347
|
+
exports["λ6"] = SkyListSecondaryActionComponent;
|
|
3348
|
+
exports["λ7"] = SkyListSecondaryActionsComponent;
|
|
3349
|
+
exports["λ8"] = SkyListToolbarItemComponent;
|
|
3350
|
+
exports["λ9"] = SkyListToolbarSortComponent;
|
|
3371
3351
|
|
|
3372
3352
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3373
3353
|
|
|
3374
|
-
}))
|
|
3354
|
+
}));
|
|
3375
3355
|
//# sourceMappingURL=skyux-list-builder.umd.js.map
|