@skyux/list-builder 5.0.0-beta.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/LICENSE +21 -0
- package/bundles/skyux-list-builder.umd.js +1308 -1130
- package/bundles/skyux-list-builder.umd.js.map +1 -1
- package/documentation.json +6679 -0
- package/esm2015/modules/list/list-data-request.model.js +1 -1
- 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 +9 -8
- package/esm2015/modules/list/list.component.js +81 -87
- package/esm2015/modules/list/list.module.js +15 -18
- package/esm2015/modules/list/state/filters/filters.orchestrator.js +2 -3
- package/esm2015/modules/list/state/filters/update.action.js +1 -1
- package/esm2015/modules/list/state/items/items.orchestrator.js +12 -9
- package/esm2015/modules/list/state/items/load.action.js +1 -1
- package/esm2015/modules/list/state/items/set-items-selected.action.js +4 -2
- package/esm2015/modules/list/state/items/set-loading.action.js +1 -1
- package/esm2015/modules/list/state/list-state-action.type.js +2 -1
- package/esm2015/modules/list/state/list-state.model.js +1 -1
- package/esm2015/modules/list/state/list-state.rxstate.js +10 -8
- package/esm2015/modules/list/state/list-state.state-node.js +11 -14
- package/esm2015/modules/list/state/paging/paging.model.js +1 -1
- package/esm2015/modules/list/state/paging/paging.orchestrator.js +2 -3
- package/esm2015/modules/list/state/paging/set-items-per-page.action.js +1 -1
- 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.model.js +1 -1
- package/esm2015/modules/list/state/search/search.orchestrator.js +5 -4
- package/esm2015/modules/list/state/search/set-field-selectors.action.js +1 -1
- package/esm2015/modules/list/state/search/set-functions.action.js +1 -1
- package/esm2015/modules/list/state/search/set-options.action.js +1 -1
- package/esm2015/modules/list/state/search/set-search-text.action.js +1 -1
- package/esm2015/modules/list/state/selected/load.action.js +1 -1
- package/esm2015/modules/list/state/selected/selected.model.js +1 -1
- package/esm2015/modules/list/state/selected/selected.orchestrator.js +9 -10
- package/esm2015/modules/list/state/selected/set-item-selected.action.js +1 -1
- package/esm2015/modules/list/state/selected/set-items-selected.action.js +1 -1
- package/esm2015/modules/list/state/selected/set-loading.action.js +1 -1
- package/esm2015/modules/list/state/sort/label.model.js +1 -1
- package/esm2015/modules/list/state/sort/set-available.action.js +1 -1
- package/esm2015/modules/list/state/sort/set-field-selectors.action.js +1 -1
- package/esm2015/modules/list/state/sort/set-global.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/remove.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/set-exists.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/set-type.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/show-multiselect-toolbar.action.js +1 -1
- package/esm2015/modules/list/state/toolbar/toolbar-item.model.js +1 -1
- package/esm2015/modules/list/state/toolbar/toolbar.model.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/set-active.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 +25 -14
- package/esm2015/modules/list-filters/filter.model.js +1 -1
- package/esm2015/modules/list-filters/list-filter-button.component.js +23 -24
- package/esm2015/modules/list-filters/list-filter-inline-item-renderer.component.js +24 -24
- package/esm2015/modules/list-filters/list-filter-inline-item.component.js +32 -32
- package/esm2015/modules/list-filters/list-filter-inline.component.js +28 -26
- package/esm2015/modules/list-filters/list-filter-inline.model.js +1 -1
- package/esm2015/modules/list-filters/list-filter-summary.component.js +22 -23
- package/esm2015/modules/list-filters/list-filters.module.js +33 -27
- package/esm2015/modules/list-paging/list-paging.component.js +37 -40
- package/esm2015/modules/list-paging/list-paging.module.js +15 -19
- package/esm2015/modules/list-toolbar/list-multiselect-toolbar.component.js +45 -41
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js +22 -23
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-action.js +2 -1
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +22 -20
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +26 -30
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +34 -23
- package/esm2015/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js +10 -9
- package/esm2015/modules/list-toolbar/list-toolbar-item-renderer.component.js +22 -21
- package/esm2015/modules/list-toolbar/list-toolbar-item.component.js +23 -24
- package/esm2015/modules/list-toolbar/list-toolbar-search-actions.component.js +15 -13
- package/esm2015/modules/list-toolbar/list-toolbar-sort.component.js +21 -23
- package/esm2015/modules/list-toolbar/list-toolbar-view-actions.component.js +14 -12
- package/esm2015/modules/list-toolbar/list-toolbar.component.js +142 -139
- package/esm2015/modules/list-toolbar/list-toolbar.module.js +62 -31
- package/esm2015/modules/list-toolbar/state/config/config.model.js +1 -1
- package/esm2015/modules/list-toolbar/state/config/config.orchestrator.js +2 -4
- package/esm2015/modules/list-toolbar/state/config/set-search-enabled.action.js +1 -1
- package/esm2015/modules/list-toolbar/state/config/set-sort-selector-enabled.action.js +1 -1
- package/esm2015/modules/list-toolbar/state/toolbar-state-action.type.js +2 -1
- package/esm2015/modules/list-toolbar/state/toolbar-state.model.js +1 -1
- package/esm2015/modules/list-toolbar/state/toolbar-state.rxstate.js +9 -8
- package/esm2015/modules/list-toolbar/state/toolbar-state.state-node.js +12 -17
- package/esm2015/modules/shared/sky-list-builder-resources.module.js +53 -0
- package/esm2015/public-api.js +78 -0
- package/esm2015/skyux-list-builder.js +2 -23
- package/fesm2015/skyux-list-builder.js +992 -915
- package/fesm2015/skyux-list-builder.js.map +1 -1
- package/modules/list/list.component.d.ts +3 -0
- package/modules/list/list.module.d.ts +6 -0
- package/modules/list/state/list-state.rxstate.d.ts +3 -0
- package/modules/list/state/list-state.state-node.d.ts +3 -0
- package/modules/list-filters/list-filter-button.component.d.ts +3 -0
- package/modules/list-filters/list-filter-inline-item-renderer.component.d.ts +3 -0
- package/modules/list-filters/list-filter-inline-item.component.d.ts +3 -0
- package/modules/list-filters/list-filter-inline.component.d.ts +3 -0
- package/modules/list-filters/list-filter-summary.component.d.ts +3 -0
- package/modules/list-filters/list-filters.module.d.ts +11 -0
- package/modules/list-paging/list-paging.component.d.ts +3 -0
- package/modules/list-paging/list-paging.module.d.ts +7 -0
- package/modules/list-toolbar/list-multiselect-toolbar.component.d.ts +3 -0
- package/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.d.ts +3 -0
- package/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.d.ts +3 -0
- package/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.d.ts +3 -0
- package/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.d.ts +12 -0
- package/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar-item-renderer.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar-item.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar-search-actions.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar-sort.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar-view-actions.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar.component.d.ts +3 -0
- package/modules/list-toolbar/list-toolbar.module.d.ts +20 -0
- package/modules/list-toolbar/state/toolbar-state.rxstate.d.ts +3 -0
- package/modules/list-toolbar/state/toolbar-state.state-node.d.ts +3 -0
- package/modules/shared/sky-list-builder-resources.module.d.ts +14 -0
- package/package.json +16 -31
- package/{public_api.d.ts → public-api.d.ts} +11 -0
- package/skyux-list-builder.d.ts +2 -22
- package/CHANGELOG.md +0 -161
- package/bundles/skyux-list-builder.umd.min.js +0 -16
- package/bundles/skyux-list-builder.umd.min.js.map +0 -1
- package/esm2015/modules/shared/list-builder-resources.module.js +0 -17
- package/esm2015/plugin-resources/list-builder-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -63
- package/esm5/modules/list/list-data-request.model.js +0 -20
- package/esm5/modules/list/list-data-response.model.js +0 -11
- package/esm5/modules/list/list-data.provider.js +0 -10
- package/esm5/modules/list/list-paging.component.js +0 -15
- package/esm5/modules/list/list-view.component.js +0 -38
- package/esm5/modules/list/list.component.js +0 -337
- package/esm5/modules/list/list.module.js +0 -24
- package/esm5/modules/list/state/filters/filters.orchestrator.js +0 -22
- package/esm5/modules/list/state/filters/update.action.js +0 -11
- package/esm5/modules/list/state/items/items.orchestrator.js +0 -55
- package/esm5/modules/list/state/items/load.action.js +0 -16
- package/esm5/modules/list/state/items/set-items-selected.action.js +0 -15
- package/esm5/modules/list/state/items/set-loading.action.js +0 -12
- package/esm5/modules/list/state/list-state-action.type.js +0 -1
- package/esm5/modules/list/state/list-state.model.js +0 -26
- package/esm5/modules/list/state/list-state.rxstate.js +0 -91
- package/esm5/modules/list/state/list-state.state-node.js +0 -42
- package/esm5/modules/list/state/paging/paging.model.js +0 -16
- package/esm5/modules/list/state/paging/paging.orchestrator.js +0 -33
- package/esm5/modules/list/state/paging/set-items-per-page.action.js +0 -11
- package/esm5/modules/list/state/paging/set-max-pages.action.js +0 -11
- package/esm5/modules/list/state/paging/set-page-number.action.js +0 -11
- package/esm5/modules/list/state/search/search.model.js +0 -34
- package/esm5/modules/list/state/search/search.orchestrator.js +0 -51
- package/esm5/modules/list/state/search/set-field-selectors.action.js +0 -12
- package/esm5/modules/list/state/search/set-functions.action.js +0 -12
- package/esm5/modules/list/state/search/set-options.action.js +0 -13
- package/esm5/modules/list/state/search/set-search-text.action.js +0 -11
- package/esm5/modules/list/state/selected/load.action.js +0 -11
- package/esm5/modules/list/state/selected/selected.model.js +0 -11
- package/esm5/modules/list/state/selected/selected.orchestrator.js +0 -62
- package/esm5/modules/list/state/selected/set-item-selected.action.js +0 -12
- package/esm5/modules/list/state/selected/set-items-selected.action.js +0 -15
- package/esm5/modules/list/state/selected/set-loading.action.js +0 -12
- package/esm5/modules/list/state/sort/label.model.js +0 -27
- package/esm5/modules/list/state/sort/set-available.action.js +0 -11
- package/esm5/modules/list/state/sort/set-field-selectors.action.js +0 -11
- package/esm5/modules/list/state/sort/set-global.action.js +0 -11
- package/esm5/modules/list/state/sort/sort.model.js +0 -29
- package/esm5/modules/list/state/sort/sort.orchestrator.js +0 -36
- package/esm5/modules/list/state/toolbar/disable.action.js +0 -11
- package/esm5/modules/list/state/toolbar/load.action.js +0 -13
- package/esm5/modules/list/state/toolbar/remove.action.js +0 -11
- package/esm5/modules/list/state/toolbar/set-exists.action.js +0 -11
- package/esm5/modules/list/state/toolbar/set-type.action.js +0 -11
- package/esm5/modules/list/state/toolbar/show-multiselect-toolbar.action.js +0 -11
- package/esm5/modules/list/state/toolbar/toolbar-item.model.js +0 -18
- package/esm5/modules/list/state/toolbar/toolbar.model.js +0 -19
- package/esm5/modules/list/state/toolbar/toolbar.orchestrator.js +0 -86
- package/esm5/modules/list/state/views/load.action.js +0 -11
- package/esm5/modules/list/state/views/set-active.action.js +0 -11
- package/esm5/modules/list/state/views/view.model.js +0 -12
- package/esm5/modules/list/state/views/views.model.js +0 -15
- package/esm5/modules/list/state/views/views.orchestrator.js +0 -28
- package/esm5/modules/list-data-provider-in-memory/list-data-in-memory.provider.js +0 -157
- package/esm5/modules/list-filters/filter.model.js +0 -20
- package/esm5/modules/list-filters/list-filter-button.component.js +0 -45
- package/esm5/modules/list-filters/list-filter-inline-item-renderer.component.js +0 -37
- package/esm5/modules/list-filters/list-filter-inline-item.component.js +0 -50
- package/esm5/modules/list-filters/list-filter-inline.component.js +0 -73
- package/esm5/modules/list-filters/list-filter-inline.model.js +0 -23
- package/esm5/modules/list-filters/list-filter-summary.component.js +0 -62
- package/esm5/modules/list-filters/list-filters.module.js +0 -38
- package/esm5/modules/list-paging/list-paging.component.js +0 -102
- package/esm5/modules/list-paging/list-paging.module.js +0 -26
- package/esm5/modules/list-toolbar/list-multiselect-toolbar.component.js +0 -153
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.js +0 -34
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-action.js +0 -1
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +0 -49
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +0 -49
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +0 -38
- package/esm5/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.js +0 -36
- package/esm5/modules/list-toolbar/list-toolbar-item-renderer.component.js +0 -32
- package/esm5/modules/list-toolbar/list-toolbar-item.component.js +0 -53
- package/esm5/modules/list-toolbar/list-toolbar-search-actions.component.js +0 -20
- package/esm5/modules/list-toolbar/list-toolbar-sort.component.js +0 -30
- package/esm5/modules/list-toolbar/list-toolbar-view-actions.component.js +0 -22
- package/esm5/modules/list-toolbar/list-toolbar.component.js +0 -375
- package/esm5/modules/list-toolbar/list-toolbar.module.js +0 -59
- package/esm5/modules/list-toolbar/state/config/config.model.js +0 -16
- package/esm5/modules/list-toolbar/state/config/config.orchestrator.js +0 -28
- package/esm5/modules/list-toolbar/state/config/set-search-enabled.action.js +0 -11
- package/esm5/modules/list-toolbar/state/config/set-sort-selector-enabled.action.js +0 -13
- package/esm5/modules/list-toolbar/state/toolbar-state-action.type.js +0 -1
- package/esm5/modules/list-toolbar/state/toolbar-state.model.js +0 -12
- package/esm5/modules/list-toolbar/state/toolbar-state.rxstate.js +0 -29
- package/esm5/modules/list-toolbar/state/toolbar-state.state-node.js +0 -29
- package/esm5/modules/shared/list-builder-resources.module.js +0 -20
- package/esm5/plugin-resources/list-builder-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -63
- package/esm5/skyux-list-builder.js +0 -26
- package/fesm5/skyux-list-builder.js +0 -2884
- package/fesm5/skyux-list-builder.js.map +0 -1
- package/modules/shared/list-builder-resources.module.d.ts +0 -2
- package/plugin-resources/list-builder-resources-provider.d.ts +0 -5
- package/skyux-list-builder.metadata.json +0 -1
- package/src/assets/img/list-toolbar-context.png +0 -0
- package/src/assets/img/toolbar-anatomy.png +0 -0
- package/src/assets/locales/resources_en_US.json +0 -22
|
@@ -1,228 +1,37 @@
|
|
|
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 = global || self, factory((global.skyux = global.skyux || {}, global.skyux[
|
|
5
|
-
}(this, (function (exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var extendStatics = function(d, b) {
|
|
24
|
-
extendStatics = Object.setPrototypeOf ||
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var __assign = function() {
|
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39
|
-
s = arguments[i];
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
return __assign.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
62
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function __param(paramIndex, decorator) {
|
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
75
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
77
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
78
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
79
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
80
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function __generator(thisArg, body) {
|
|
85
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
86
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
87
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88
|
-
function step(op) {
|
|
89
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
90
|
-
while (_) try {
|
|
91
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
92
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
93
|
-
switch (op[0]) {
|
|
94
|
-
case 0: case 1: t = op; break;
|
|
95
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
96
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
97
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
98
|
-
default:
|
|
99
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
100
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
101
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
102
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
103
|
-
if (t[2]) _.ops.pop();
|
|
104
|
-
_.trys.pop(); continue;
|
|
105
|
-
}
|
|
106
|
-
op = body.call(thisArg, _);
|
|
107
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
108
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function __createBinding(o, m, k, k2) {
|
|
113
|
-
if (k2 === undefined) k2 = k;
|
|
114
|
-
o[k2] = m[k];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function __exportStar(m, exports) {
|
|
118
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function __values(o) {
|
|
122
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
123
|
-
if (m) return m.call(o);
|
|
124
|
-
if (o && typeof o.length === "number") return {
|
|
125
|
-
next: function () {
|
|
126
|
-
if (o && i >= o.length) o = void 0;
|
|
127
|
-
return { value: o && o[i++], done: !o };
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function __read(o, n) {
|
|
134
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
135
|
-
if (!m) return o;
|
|
136
|
-
var i = m.call(o), r, ar = [], e;
|
|
137
|
-
try {
|
|
138
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
139
|
-
}
|
|
140
|
-
catch (error) { e = { error: error }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
144
|
-
}
|
|
145
|
-
finally { if (e) throw e.error; }
|
|
146
|
-
}
|
|
147
|
-
return ar;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function __spread() {
|
|
151
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
152
|
-
ar = ar.concat(__read(arguments[i]));
|
|
153
|
-
return ar;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function __spreadArrays() {
|
|
157
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
158
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
159
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
160
|
-
r[k] = a[j];
|
|
161
|
-
return r;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
function __await(v) {
|
|
165
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
169
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
170
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
171
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
172
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
173
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
174
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
175
|
-
function fulfill(value) { resume("next", value); }
|
|
176
|
-
function reject(value) { resume("throw", value); }
|
|
177
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function __asyncDelegator(o) {
|
|
181
|
-
var i, p;
|
|
182
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
183
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function __asyncValues(o) {
|
|
187
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
188
|
-
var m = o[Symbol.asyncIterator], i;
|
|
189
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
190
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
191
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function __makeTemplateObject(cooked, raw) {
|
|
195
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
196
|
-
return cooked;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
function __importStar(mod) {
|
|
200
|
-
if (mod && mod.__esModule) return mod;
|
|
201
|
-
var result = {};
|
|
202
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
203
|
-
result.default = mod;
|
|
204
|
-
return result;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function __importDefault(mod) {
|
|
208
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
212
|
-
if (!privateMap.has(receiver)) {
|
|
213
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
214
|
-
}
|
|
215
|
-
return privateMap.get(receiver);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
219
|
-
if (!privateMap.has(receiver)) {
|
|
220
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
221
|
-
}
|
|
222
|
-
privateMap.set(receiver, value);
|
|
223
|
-
return value;
|
|
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
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
224
23
|
}
|
|
225
24
|
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
28
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
29
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
32
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
33
|
+
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
34
|
+
|
|
226
35
|
var ListDataRequestModel = /** @class */ (function () {
|
|
227
36
|
function ListDataRequestModel(data) {
|
|
228
37
|
/**
|
|
@@ -346,6 +155,324 @@
|
|
|
346
155
|
return ListSortSetFieldSelectorsAction;
|
|
347
156
|
}());
|
|
348
157
|
|
|
158
|
+
/*! *****************************************************************************
|
|
159
|
+
Copyright (c) Microsoft Corporation.
|
|
160
|
+
|
|
161
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
162
|
+
purpose with or without fee is hereby granted.
|
|
163
|
+
|
|
164
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
165
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
166
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
167
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
168
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
169
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
170
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
171
|
+
***************************************************************************** */
|
|
172
|
+
/* global Reflect, Promise */
|
|
173
|
+
var extendStatics = function (d, b) {
|
|
174
|
+
extendStatics = Object.setPrototypeOf ||
|
|
175
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
176
|
+
function (d, b) { for (var p in b)
|
|
177
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
178
|
+
d[p] = b[p]; };
|
|
179
|
+
return extendStatics(d, b);
|
|
180
|
+
};
|
|
181
|
+
function __extends(d, b) {
|
|
182
|
+
if (typeof b !== "function" && b !== null)
|
|
183
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
184
|
+
extendStatics(d, b);
|
|
185
|
+
function __() { this.constructor = d; }
|
|
186
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
187
|
+
}
|
|
188
|
+
var __assign = function () {
|
|
189
|
+
__assign = Object.assign || function __assign(t) {
|
|
190
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
191
|
+
s = arguments[i];
|
|
192
|
+
for (var p in s)
|
|
193
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
194
|
+
t[p] = s[p];
|
|
195
|
+
}
|
|
196
|
+
return t;
|
|
197
|
+
};
|
|
198
|
+
return __assign.apply(this, arguments);
|
|
199
|
+
};
|
|
200
|
+
function __rest(s, e) {
|
|
201
|
+
var t = {};
|
|
202
|
+
for (var p in s)
|
|
203
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
204
|
+
t[p] = s[p];
|
|
205
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
206
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
207
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
208
|
+
t[p[i]] = s[p[i]];
|
|
209
|
+
}
|
|
210
|
+
return t;
|
|
211
|
+
}
|
|
212
|
+
function __decorate(decorators, target, key, desc) {
|
|
213
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
214
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
215
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
216
|
+
else
|
|
217
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
218
|
+
if (d = decorators[i])
|
|
219
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
220
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
221
|
+
}
|
|
222
|
+
function __param(paramIndex, decorator) {
|
|
223
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
224
|
+
}
|
|
225
|
+
function __metadata(metadataKey, metadataValue) {
|
|
226
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
227
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
228
|
+
}
|
|
229
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
230
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
231
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
232
|
+
function fulfilled(value) { try {
|
|
233
|
+
step(generator.next(value));
|
|
234
|
+
}
|
|
235
|
+
catch (e) {
|
|
236
|
+
reject(e);
|
|
237
|
+
} }
|
|
238
|
+
function rejected(value) { try {
|
|
239
|
+
step(generator["throw"](value));
|
|
240
|
+
}
|
|
241
|
+
catch (e) {
|
|
242
|
+
reject(e);
|
|
243
|
+
} }
|
|
244
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
245
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function __generator(thisArg, body) {
|
|
249
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
250
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
251
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
252
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
253
|
+
function step(op) {
|
|
254
|
+
if (f)
|
|
255
|
+
throw new TypeError("Generator is already executing.");
|
|
256
|
+
while (_)
|
|
257
|
+
try {
|
|
258
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
259
|
+
return t;
|
|
260
|
+
if (y = 0, t)
|
|
261
|
+
op = [op[0] & 2, t.value];
|
|
262
|
+
switch (op[0]) {
|
|
263
|
+
case 0:
|
|
264
|
+
case 1:
|
|
265
|
+
t = op;
|
|
266
|
+
break;
|
|
267
|
+
case 4:
|
|
268
|
+
_.label++;
|
|
269
|
+
return { value: op[1], done: false };
|
|
270
|
+
case 5:
|
|
271
|
+
_.label++;
|
|
272
|
+
y = op[1];
|
|
273
|
+
op = [0];
|
|
274
|
+
continue;
|
|
275
|
+
case 7:
|
|
276
|
+
op = _.ops.pop();
|
|
277
|
+
_.trys.pop();
|
|
278
|
+
continue;
|
|
279
|
+
default:
|
|
280
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
281
|
+
_ = 0;
|
|
282
|
+
continue;
|
|
283
|
+
}
|
|
284
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
285
|
+
_.label = op[1];
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
289
|
+
_.label = t[1];
|
|
290
|
+
t = op;
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
293
|
+
if (t && _.label < t[2]) {
|
|
294
|
+
_.label = t[2];
|
|
295
|
+
_.ops.push(op);
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
if (t[2])
|
|
299
|
+
_.ops.pop();
|
|
300
|
+
_.trys.pop();
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
op = body.call(thisArg, _);
|
|
304
|
+
}
|
|
305
|
+
catch (e) {
|
|
306
|
+
op = [6, e];
|
|
307
|
+
y = 0;
|
|
308
|
+
}
|
|
309
|
+
finally {
|
|
310
|
+
f = t = 0;
|
|
311
|
+
}
|
|
312
|
+
if (op[0] & 5)
|
|
313
|
+
throw op[1];
|
|
314
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
318
|
+
if (k2 === undefined)
|
|
319
|
+
k2 = k;
|
|
320
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
321
|
+
}) : (function (o, m, k, k2) {
|
|
322
|
+
if (k2 === undefined)
|
|
323
|
+
k2 = k;
|
|
324
|
+
o[k2] = m[k];
|
|
325
|
+
});
|
|
326
|
+
function __exportStar(m, o) {
|
|
327
|
+
for (var p in m)
|
|
328
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
329
|
+
__createBinding(o, m, p);
|
|
330
|
+
}
|
|
331
|
+
function __values(o) {
|
|
332
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
333
|
+
if (m)
|
|
334
|
+
return m.call(o);
|
|
335
|
+
if (o && typeof o.length === "number")
|
|
336
|
+
return {
|
|
337
|
+
next: function () {
|
|
338
|
+
if (o && i >= o.length)
|
|
339
|
+
o = void 0;
|
|
340
|
+
return { value: o && o[i++], done: !o };
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
344
|
+
}
|
|
345
|
+
function __read(o, n) {
|
|
346
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
347
|
+
if (!m)
|
|
348
|
+
return o;
|
|
349
|
+
var i = m.call(o), r, ar = [], e;
|
|
350
|
+
try {
|
|
351
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
352
|
+
ar.push(r.value);
|
|
353
|
+
}
|
|
354
|
+
catch (error) {
|
|
355
|
+
e = { error: error };
|
|
356
|
+
}
|
|
357
|
+
finally {
|
|
358
|
+
try {
|
|
359
|
+
if (r && !r.done && (m = i["return"]))
|
|
360
|
+
m.call(i);
|
|
361
|
+
}
|
|
362
|
+
finally {
|
|
363
|
+
if (e)
|
|
364
|
+
throw e.error;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
return ar;
|
|
368
|
+
}
|
|
369
|
+
/** @deprecated */
|
|
370
|
+
function __spread() {
|
|
371
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
372
|
+
ar = ar.concat(__read(arguments[i]));
|
|
373
|
+
return ar;
|
|
374
|
+
}
|
|
375
|
+
/** @deprecated */
|
|
376
|
+
function __spreadArrays() {
|
|
377
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
378
|
+
s += arguments[i].length;
|
|
379
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
380
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
381
|
+
r[k] = a[j];
|
|
382
|
+
return r;
|
|
383
|
+
}
|
|
384
|
+
function __spreadArray(to, from, pack) {
|
|
385
|
+
if (pack || arguments.length === 2)
|
|
386
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
387
|
+
if (ar || !(i in from)) {
|
|
388
|
+
if (!ar)
|
|
389
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
390
|
+
ar[i] = from[i];
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
394
|
+
}
|
|
395
|
+
function __await(v) {
|
|
396
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
397
|
+
}
|
|
398
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
399
|
+
if (!Symbol.asyncIterator)
|
|
400
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
401
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
402
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
403
|
+
function verb(n) { if (g[n])
|
|
404
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
405
|
+
function resume(n, v) { try {
|
|
406
|
+
step(g[n](v));
|
|
407
|
+
}
|
|
408
|
+
catch (e) {
|
|
409
|
+
settle(q[0][3], e);
|
|
410
|
+
} }
|
|
411
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
412
|
+
function fulfill(value) { resume("next", value); }
|
|
413
|
+
function reject(value) { resume("throw", value); }
|
|
414
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
415
|
+
resume(q[0][0], q[0][1]); }
|
|
416
|
+
}
|
|
417
|
+
function __asyncDelegator(o) {
|
|
418
|
+
var i, p;
|
|
419
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
420
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
421
|
+
}
|
|
422
|
+
function __asyncValues(o) {
|
|
423
|
+
if (!Symbol.asyncIterator)
|
|
424
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
425
|
+
var m = o[Symbol.asyncIterator], i;
|
|
426
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
427
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
428
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
429
|
+
}
|
|
430
|
+
function __makeTemplateObject(cooked, raw) {
|
|
431
|
+
if (Object.defineProperty) {
|
|
432
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
cooked.raw = raw;
|
|
436
|
+
}
|
|
437
|
+
return cooked;
|
|
438
|
+
}
|
|
439
|
+
;
|
|
440
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
441
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
442
|
+
}) : function (o, v) {
|
|
443
|
+
o["default"] = v;
|
|
444
|
+
};
|
|
445
|
+
function __importStar(mod) {
|
|
446
|
+
if (mod && mod.__esModule)
|
|
447
|
+
return mod;
|
|
448
|
+
var result = {};
|
|
449
|
+
if (mod != null)
|
|
450
|
+
for (var k in mod)
|
|
451
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
452
|
+
__createBinding(result, mod, k);
|
|
453
|
+
__setModuleDefault(result, mod);
|
|
454
|
+
return result;
|
|
455
|
+
}
|
|
456
|
+
function __importDefault(mod) {
|
|
457
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
458
|
+
}
|
|
459
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
460
|
+
if (kind === "a" && !f)
|
|
461
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
462
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
463
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
464
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
465
|
+
}
|
|
466
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
467
|
+
if (kind === "m")
|
|
468
|
+
throw new TypeError("Private method is not writable");
|
|
469
|
+
if (kind === "a" && !f)
|
|
470
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
471
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
472
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
473
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
474
|
+
}
|
|
475
|
+
|
|
349
476
|
/**
|
|
350
477
|
* Specifies a function to dynamically manage the data source when users change the text
|
|
351
478
|
* in the list field. The search function must return an array or a promise of an array.
|
|
@@ -371,14 +498,14 @@
|
|
|
371
498
|
this.fieldSelectors = [];
|
|
372
499
|
if (data) {
|
|
373
500
|
this.searchText = data.searchText;
|
|
374
|
-
this.functions =
|
|
501
|
+
this.functions = __spreadArray([], __read(data.functions));
|
|
375
502
|
this.fieldSelectors = data.fieldSelectors;
|
|
376
503
|
}
|
|
377
504
|
}
|
|
378
505
|
return ListSearchModel;
|
|
379
506
|
}());
|
|
380
507
|
|
|
381
|
-
var idIndex = 0;
|
|
508
|
+
var idIndex$3 = 0;
|
|
382
509
|
var SkyListInMemoryDataProvider = /** @class */ (function (_super) {
|
|
383
510
|
__extends(SkyListInMemoryDataProvider, _super);
|
|
384
511
|
function SkyListInMemoryDataProvider(data, searchFunction) {
|
|
@@ -387,9 +514,7 @@
|
|
|
387
514
|
_this.searchFunction = searchFunction;
|
|
388
515
|
if (data) {
|
|
389
516
|
data.subscribe(function (items) {
|
|
390
|
-
_this.items.next(items.map(function (d) {
|
|
391
|
-
return new listBuilderCommon.ListItemModel(d.id || "sky-list-data-in-memory-provider-item-" + ++idIndex, d);
|
|
392
|
-
}));
|
|
517
|
+
_this.items.next(items.map(function (d) { return new listBuilderCommon.ListItemModel(d.id || "sky-list-data-in-memory-provider-item-" + ++idIndex$3, d); }));
|
|
393
518
|
});
|
|
394
519
|
}
|
|
395
520
|
return _this;
|
|
@@ -404,13 +529,13 @@
|
|
|
404
529
|
var pagedResult = result.slice(itemStart, itemStart + request.pageSize);
|
|
405
530
|
return new ListDataResponseModel({
|
|
406
531
|
count: result.length,
|
|
407
|
-
items: pagedResult
|
|
532
|
+
items: pagedResult,
|
|
408
533
|
});
|
|
409
534
|
}
|
|
410
535
|
else {
|
|
411
536
|
return new ListDataResponseModel({
|
|
412
537
|
count: result.length,
|
|
413
|
-
items: result
|
|
538
|
+
items: result,
|
|
414
539
|
});
|
|
415
540
|
}
|
|
416
541
|
}));
|
|
@@ -447,7 +572,9 @@
|
|
|
447
572
|
_this.lastFilters = filters;
|
|
448
573
|
var result = items;
|
|
449
574
|
// Apply filters.
|
|
450
|
-
if (!dataChanged &&
|
|
575
|
+
if (!dataChanged &&
|
|
576
|
+
!filtersChanged &&
|
|
577
|
+
_this.lastFilterResults !== undefined) {
|
|
451
578
|
result = _this.lastFilterResults;
|
|
452
579
|
}
|
|
453
580
|
else if (filters && filters.length > 0) {
|
|
@@ -472,10 +599,16 @@
|
|
|
472
599
|
_this.lastFilterResults = undefined;
|
|
473
600
|
}
|
|
474
601
|
// Apply search.
|
|
475
|
-
|
|
602
|
+
/* istanbul ignore next */
|
|
603
|
+
if (!dataChanged &&
|
|
604
|
+
!searchChanged &&
|
|
605
|
+
_this.lastSearchResults !== undefined &&
|
|
606
|
+
!filtersChanged) {
|
|
476
607
|
result = _this.lastSearchResults;
|
|
477
608
|
}
|
|
478
|
-
else if (search &&
|
|
609
|
+
else if (search &&
|
|
610
|
+
search.searchText !== undefined &&
|
|
611
|
+
search.searchText.length > 0) {
|
|
479
612
|
var searchText_1 = search.searchText.toLowerCase();
|
|
480
613
|
var searchFunctions_1;
|
|
481
614
|
if (_this.searchFunction !== undefined) {
|
|
@@ -489,7 +622,8 @@
|
|
|
489
622
|
for (var i = 0; i < searchFunctions_1.length; i++) {
|
|
490
623
|
var searchFunction = searchFunctions_1[i];
|
|
491
624
|
var searchResult = searchFunction(item.data, searchText_1);
|
|
492
|
-
if ((typeof searchResult === 'string' &&
|
|
625
|
+
if ((typeof searchResult === 'string' &&
|
|
626
|
+
searchResult.indexOf(searchText_1) !== -1) ||
|
|
493
627
|
searchResult === true) {
|
|
494
628
|
isMatch = true;
|
|
495
629
|
break;
|
|
@@ -504,7 +638,9 @@
|
|
|
504
638
|
}
|
|
505
639
|
// Apply sort.
|
|
506
640
|
if (sort && sort.fieldSelectors.length > 0) {
|
|
507
|
-
result = result
|
|
641
|
+
result = result
|
|
642
|
+
.slice()
|
|
643
|
+
.sort(function (item1, item2) {
|
|
508
644
|
var compareResult = 0;
|
|
509
645
|
for (var i = 0; i < sort.fieldSelectors.length; i++) {
|
|
510
646
|
var selector = sort.fieldSelectors[i];
|
|
@@ -792,6 +928,7 @@
|
|
|
792
928
|
ListStateDispatcher.prototype.searchSetFunctions = function (sortFunctions) {
|
|
793
929
|
this.next(new ListSearchSetFunctionsAction(sortFunctions));
|
|
794
930
|
};
|
|
931
|
+
/* istanbul ignore next */
|
|
795
932
|
ListStateDispatcher.prototype.searchSetFieldSelectors = function (fieldSelectors) {
|
|
796
933
|
this.next(new ListSearchSetFieldSelectorsAction(fieldSelectors));
|
|
797
934
|
};
|
|
@@ -817,11 +954,13 @@
|
|
|
817
954
|
if (refresh === void 0) { refresh = false; }
|
|
818
955
|
this.next(new ListSelectedSetItemsSelectedAction(selectedIds, selected, refresh));
|
|
819
956
|
};
|
|
820
|
-
ListStateDispatcher = __decorate([
|
|
821
|
-
core.Injectable()
|
|
822
|
-
], ListStateDispatcher);
|
|
823
957
|
return ListStateDispatcher;
|
|
824
958
|
}(listBuilderCommon.StateDispatcher));
|
|
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: [{
|
|
962
|
+
type: i0.Injectable
|
|
963
|
+
}] });
|
|
825
964
|
|
|
826
965
|
/**
|
|
827
966
|
* @internal
|
|
@@ -831,12 +970,11 @@
|
|
|
831
970
|
/* istanbul ignore next */
|
|
832
971
|
function ListFiltersOrchestrator() {
|
|
833
972
|
var _this = _super.call(this) || this;
|
|
834
|
-
_this
|
|
835
|
-
.register(ListFiltersUpdateAction, _this.update);
|
|
973
|
+
_this.register(ListFiltersUpdateAction, _this.update);
|
|
836
974
|
return _this;
|
|
837
975
|
}
|
|
838
976
|
ListFiltersOrchestrator.prototype.update = function (state, action) {
|
|
839
|
-
return
|
|
977
|
+
return __spreadArray([], __read(action.filters));
|
|
840
978
|
};
|
|
841
979
|
return ListFiltersOrchestrator;
|
|
842
980
|
}(ListStateOrchestrator));
|
|
@@ -845,7 +983,9 @@
|
|
|
845
983
|
* @internal
|
|
846
984
|
*/
|
|
847
985
|
var ListItemsSetSelectedAction = /** @class */ (function () {
|
|
848
|
-
function ListItemsSetSelectedAction(items,
|
|
986
|
+
function ListItemsSetSelectedAction(items,
|
|
987
|
+
/* istanbul ignore next */
|
|
988
|
+
selected, refresh) {
|
|
849
989
|
if (selected === void 0) { selected = false; }
|
|
850
990
|
if (refresh === void 0) { refresh = true; }
|
|
851
991
|
this.items = items;
|
|
@@ -863,8 +1003,7 @@
|
|
|
863
1003
|
/* istanbul ignore next */
|
|
864
1004
|
function ListItemsOrchestrator() {
|
|
865
1005
|
var _this = _super.call(this) || this;
|
|
866
|
-
_this
|
|
867
|
-
.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
1006
|
+
_this.register(ListItemsSetLoadingAction, _this.setLoading)
|
|
868
1007
|
.register(ListItemsLoadAction, _this.load)
|
|
869
1008
|
.register(ListItemsSetSelectedAction, _this.setItemsSelected);
|
|
870
1009
|
return _this;
|
|
@@ -874,18 +1013,21 @@
|
|
|
874
1013
|
};
|
|
875
1014
|
ListItemsOrchestrator.prototype.load = function (state, action) {
|
|
876
1015
|
var newListItems = action.items.map(function (g) { return new listBuilderCommon.ListItemModel(g.id, g.data, g.isSelected); });
|
|
877
|
-
var resultItems =
|
|
1016
|
+
var resultItems = action.refresh
|
|
1017
|
+
? __spreadArray([], __read(newListItems)) : __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
|
|
878
1018
|
var count = action.count === undefined ? resultItems.length : action.count;
|
|
879
1019
|
return new listBuilderCommon.AsyncList(resultItems, action.dataChanged ? Date.now() : state.lastUpdate, false, count);
|
|
880
1020
|
};
|
|
881
1021
|
ListItemsOrchestrator.prototype.setItemsSelected = function (state, action) {
|
|
1022
|
+
/* istanbul ignore next */
|
|
882
1023
|
var newSelectedIds = action.items || [];
|
|
883
1024
|
var newListItemModels = this.cloneListItemModelArray(state.items);
|
|
884
1025
|
if (action.refresh) {
|
|
885
|
-
newListItemModels.forEach(function (item) { return item.isSelected = undefined; });
|
|
1026
|
+
newListItemModels.forEach(function (item) { return (item.isSelected = undefined); });
|
|
886
1027
|
}
|
|
887
1028
|
newSelectedIds.map(function (s) {
|
|
888
1029
|
var newItem = newListItemModels.find(function (i) { return i.id === s; });
|
|
1030
|
+
/* istanbul ignore next */
|
|
889
1031
|
if (newItem) {
|
|
890
1032
|
newItem.isSelected = action.selected;
|
|
891
1033
|
}
|
|
@@ -940,8 +1082,7 @@
|
|
|
940
1082
|
/* istanbul ignore next */
|
|
941
1083
|
function ListPagingOrchestrator() {
|
|
942
1084
|
var _this = _super.call(this) || this;
|
|
943
|
-
_this
|
|
944
|
-
.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
1085
|
+
_this.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
|
|
945
1086
|
.register(ListPagingSetItemsPerPageAction, _this.setItemsPerPage)
|
|
946
1087
|
.register(ListPagingSetPageNumberAction, _this.setPageNumber);
|
|
947
1088
|
return _this;
|
|
@@ -976,9 +1117,7 @@
|
|
|
976
1117
|
/* istanbul ignore next */
|
|
977
1118
|
function ListViewsOrchestrator() {
|
|
978
1119
|
var _this = _super.call(this) || this;
|
|
979
|
-
_this
|
|
980
|
-
.register(ListViewsSetActiveAction, _this.setActive)
|
|
981
|
-
.register(ListViewsLoadAction, _this.load);
|
|
1120
|
+
_this.register(ListViewsSetActiveAction, _this.setActive).register(ListViewsLoadAction, _this.load);
|
|
982
1121
|
return _this;
|
|
983
1122
|
}
|
|
984
1123
|
ListViewsOrchestrator.prototype.setActive = function (state, action) {
|
|
@@ -1025,8 +1164,7 @@
|
|
|
1025
1164
|
/* istanbul ignore next */
|
|
1026
1165
|
function ListToolbarOrchestrator() {
|
|
1027
1166
|
var _this = _super.call(this) || this;
|
|
1028
|
-
_this
|
|
1029
|
-
.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1167
|
+
_this.register(ListToolbarSetExistsAction, _this.setExists)
|
|
1030
1168
|
.register(ListToolbarItemsDisableAction, _this.setDisabled)
|
|
1031
1169
|
.register(ListToolbarItemsLoadAction, _this.load)
|
|
1032
1170
|
.register(ListToolbarSetTypeAction, _this.setType)
|
|
@@ -1062,7 +1200,7 @@
|
|
|
1062
1200
|
}
|
|
1063
1201
|
return new ListToolbarItemModel(item);
|
|
1064
1202
|
});
|
|
1065
|
-
var items =
|
|
1203
|
+
var items = __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
|
|
1066
1204
|
items = items.sort(function (a, b) {
|
|
1067
1205
|
if (a.index < b.index) {
|
|
1068
1206
|
return -1;
|
|
@@ -1100,21 +1238,22 @@
|
|
|
1100
1238
|
/* istanbul ignore next */
|
|
1101
1239
|
function ListSearchOrchestrator() {
|
|
1102
1240
|
var _this = _super.call(this) || this;
|
|
1103
|
-
_this
|
|
1104
|
-
.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1241
|
+
_this.register(ListSearchSetSearchTextAction, _this.setSearchText)
|
|
1105
1242
|
.register(ListSearchSetFunctionsAction, _this.setFunctions)
|
|
1106
1243
|
.register(ListSearchSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1107
1244
|
.register(ListSearchSetOptionsAction, _this.setOptions);
|
|
1108
1245
|
return _this;
|
|
1109
1246
|
}
|
|
1110
1247
|
ListSearchOrchestrator.prototype.setSearchText = function (state, action) {
|
|
1111
|
-
return new ListSearchModel(Object.assign({}, state, {
|
|
1248
|
+
return new ListSearchModel(Object.assign({}, state, {
|
|
1249
|
+
searchText: action.searchText ? action.searchText : '',
|
|
1250
|
+
}));
|
|
1112
1251
|
};
|
|
1113
1252
|
ListSearchOrchestrator.prototype.setFunctions = function (state, action) {
|
|
1114
|
-
return new ListSearchModel(Object.assign({}, state, { functions:
|
|
1253
|
+
return new ListSearchModel(Object.assign({}, state, { functions: __spreadArray([], __read(action.functions)) }));
|
|
1115
1254
|
};
|
|
1116
1255
|
ListSearchOrchestrator.prototype.setFieldSelectors = function (state, action) {
|
|
1117
|
-
return new ListSearchModel(Object.assign({}, state, { fieldSelectors:
|
|
1256
|
+
return new ListSearchModel(Object.assign({}, state, { fieldSelectors: __spreadArray([], __read(action.fieldSelectors)) }));
|
|
1118
1257
|
};
|
|
1119
1258
|
ListSearchOrchestrator.prototype.setOptions = function (state, action) {
|
|
1120
1259
|
var result = state;
|
|
@@ -1154,8 +1293,7 @@
|
|
|
1154
1293
|
/* istanbul ignore next */
|
|
1155
1294
|
function ListSelectedOrchestrator() {
|
|
1156
1295
|
var _this = _super.call(this) || this;
|
|
1157
|
-
_this
|
|
1158
|
-
.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1296
|
+
_this.register(ListSelectedSetLoadingAction, _this.setLoading)
|
|
1159
1297
|
.register(ListSelectedSetItemSelectedAction, _this.setItemSelected)
|
|
1160
1298
|
.register(ListSelectedSetItemsSelectedAction, _this.setItemsSelected)
|
|
1161
1299
|
.register(ListSelectedLoadAction, _this.load);
|
|
@@ -1176,11 +1314,11 @@
|
|
|
1176
1314
|
};
|
|
1177
1315
|
ListSelectedOrchestrator.prototype.setItemsSelected = function (state, action) {
|
|
1178
1316
|
var newSelectedIds = action.items || [];
|
|
1179
|
-
var newListSelectedModel = action.refresh
|
|
1317
|
+
var newListSelectedModel = action.refresh
|
|
1318
|
+
? new ListSelectedModel()
|
|
1319
|
+
: this.cloneListSelectedModel(state.item);
|
|
1180
1320
|
if (newSelectedIds instanceof rxjs.Observable) {
|
|
1181
|
-
newSelectedIds
|
|
1182
|
-
.pipe(operators.take(1))
|
|
1183
|
-
.subscribe(function (selectedIds) {
|
|
1321
|
+
newSelectedIds.pipe(operators.take(1)).subscribe(function (selectedIds) {
|
|
1184
1322
|
selectedIds.map(function (s) { return newListSelectedModel.selectedIdMap.set(s, action.selected); });
|
|
1185
1323
|
});
|
|
1186
1324
|
}
|
|
@@ -1231,8 +1369,7 @@
|
|
|
1231
1369
|
/* istanbul ignore next */
|
|
1232
1370
|
function ListSortOrchestrator() {
|
|
1233
1371
|
var _this = _super.call(this) || this;
|
|
1234
|
-
_this
|
|
1235
|
-
.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1372
|
+
_this.register(ListSortSetFieldSelectorsAction, _this.setFieldSelectors)
|
|
1236
1373
|
.register(ListSortSetAvailableAction, _this.setAvailable)
|
|
1237
1374
|
.register(ListSortSetGlobalAction, _this.setGlobal);
|
|
1238
1375
|
return _this;
|
|
@@ -1258,8 +1395,7 @@
|
|
|
1258
1395
|
__extends(ListState, _super);
|
|
1259
1396
|
function ListState(dispatcher) {
|
|
1260
1397
|
var _this = _super.call(this, new ListStateModel(), dispatcher) || this;
|
|
1261
|
-
_this
|
|
1262
|
-
.register('filters', ListFiltersOrchestrator)
|
|
1398
|
+
_this.register('filters', ListFiltersOrchestrator)
|
|
1263
1399
|
.register('items', ListItemsOrchestrator)
|
|
1264
1400
|
.register('paging', ListPagingOrchestrator)
|
|
1265
1401
|
.register('search', ListSearchOrchestrator)
|
|
@@ -1270,48 +1406,48 @@
|
|
|
1270
1406
|
.begin();
|
|
1271
1407
|
return _this;
|
|
1272
1408
|
}
|
|
1273
|
-
ListState.ctorParameters = function () { return [
|
|
1274
|
-
{ type: ListStateDispatcher }
|
|
1275
|
-
]; };
|
|
1276
|
-
ListState = __decorate([
|
|
1277
|
-
core.Injectable()
|
|
1278
|
-
], ListState);
|
|
1279
1409
|
return ListState;
|
|
1280
1410
|
}(listBuilderCommon.StateNode));
|
|
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: [{
|
|
1414
|
+
type: i0.Injectable
|
|
1415
|
+
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
|
|
1281
1416
|
|
|
1282
|
-
var idIndex$
|
|
1417
|
+
var idIndex$2 = 0;
|
|
1283
1418
|
/**
|
|
1284
1419
|
* @internal
|
|
1285
1420
|
*/
|
|
1286
1421
|
var ListViewComponent = /** @class */ (function () {
|
|
1287
1422
|
function ListViewComponent(state, defaultName) {
|
|
1288
1423
|
var _this = this;
|
|
1289
|
-
this.viewId = "sky-list-view-cmp-" + ++idIndex$
|
|
1424
|
+
this.viewId = "sky-list-view-cmp-" + ++idIndex$2;
|
|
1290
1425
|
this.state = state;
|
|
1291
1426
|
this.viewName = defaultName;
|
|
1427
|
+
/* istanbul ignore next */
|
|
1292
1428
|
this.hasToolbar = this.state.pipe(operators.map(function (s) { return s.toolbar.exists; }));
|
|
1293
1429
|
this.active = this.state.pipe(operators.map(function (s) { return s.views.active === _this.viewId; }));
|
|
1294
|
-
this.active
|
|
1430
|
+
this.active
|
|
1431
|
+
.pipe(operators.distinctUntilChanged())
|
|
1432
|
+
.subscribe(function (isActive) { return isActive ? _this.onViewActive() : _this.onViewInactive(); });
|
|
1295
1433
|
}
|
|
1296
1434
|
Object.defineProperty(ListViewComponent.prototype, "id", {
|
|
1297
1435
|
get: function () {
|
|
1298
1436
|
return this.viewId;
|
|
1299
1437
|
},
|
|
1300
|
-
enumerable:
|
|
1438
|
+
enumerable: false,
|
|
1301
1439
|
configurable: true
|
|
1302
1440
|
});
|
|
1303
1441
|
Object.defineProperty(ListViewComponent.prototype, "label", {
|
|
1304
1442
|
get: function () {
|
|
1305
1443
|
return this.viewName;
|
|
1306
1444
|
},
|
|
1307
|
-
enumerable:
|
|
1445
|
+
enumerable: false,
|
|
1308
1446
|
configurable: true
|
|
1309
1447
|
});
|
|
1310
1448
|
/* istanbul ignore next */
|
|
1311
|
-
ListViewComponent.prototype.onViewActive = function () {
|
|
1312
|
-
};
|
|
1313
|
-
ListViewComponent.prototype.onViewInactive = function () {
|
|
1314
|
-
};
|
|
1449
|
+
ListViewComponent.prototype.onViewActive = function () { };
|
|
1450
|
+
ListViewComponent.prototype.onViewInactive = function () { };
|
|
1315
1451
|
return ListViewComponent;
|
|
1316
1452
|
}());
|
|
1317
1453
|
|
|
@@ -1326,12 +1462,12 @@
|
|
|
1326
1462
|
return ListViewModel;
|
|
1327
1463
|
}());
|
|
1328
1464
|
|
|
1329
|
-
var idIndex$
|
|
1465
|
+
var idIndex$1 = 0;
|
|
1330
1466
|
var SkyListComponent = /** @class */ (function () {
|
|
1331
1467
|
function SkyListComponent(state, dispatcher) {
|
|
1332
1468
|
this.state = state;
|
|
1333
1469
|
this.dispatcher = dispatcher;
|
|
1334
|
-
this.id = "sky-list-cmp-" + ++idIndex$
|
|
1470
|
+
this.id = "sky-list-cmp-" + ++idIndex$1;
|
|
1335
1471
|
/**
|
|
1336
1472
|
* Specifies the data to display. The list component requires this property or the
|
|
1337
1473
|
* `dataProvider` property. For checklist or multiselect grids, each row requires an
|
|
@@ -1351,12 +1487,11 @@
|
|
|
1351
1487
|
/**
|
|
1352
1488
|
* For list views that support item selection, emits the selected entries.
|
|
1353
1489
|
*/
|
|
1354
|
-
this.selectedIdsChange = new
|
|
1490
|
+
this.selectedIdsChange = new i0.EventEmitter();
|
|
1355
1491
|
/**
|
|
1356
1492
|
* Emits the filters applied to the list.
|
|
1357
1493
|
*/
|
|
1358
|
-
this.appliedFiltersChange = new
|
|
1359
|
-
/* tslint:enable */
|
|
1494
|
+
this.appliedFiltersChange = new i0.EventEmitter();
|
|
1360
1495
|
this.dataFirstLoad = false;
|
|
1361
1496
|
this.lastSelectedIds = [];
|
|
1362
1497
|
this.lastFilters = [];
|
|
@@ -1368,7 +1503,9 @@
|
|
|
1368
1503
|
this.dataFirstLoad = true;
|
|
1369
1504
|
}
|
|
1370
1505
|
if (this.listViews.length > 0) {
|
|
1371
|
-
var defaultView =
|
|
1506
|
+
var defaultView = this.defaultView === undefined
|
|
1507
|
+
? this.listViews.first
|
|
1508
|
+
: this.defaultView;
|
|
1372
1509
|
this.dispatcher.next(new ListViewsLoadAction(this.listViews.map(function (v) { return new ListViewModel(v.id, v.label); })));
|
|
1373
1510
|
// activate the default view
|
|
1374
1511
|
this.dispatcher.next(new ListViewsSetActiveAction(defaultView.id));
|
|
@@ -1428,9 +1565,11 @@
|
|
|
1428
1565
|
SkyListComponent.prototype.ngOnChanges = function (changes) {
|
|
1429
1566
|
var _this = this;
|
|
1430
1567
|
if (changes['appliedFilters'] &&
|
|
1431
|
-
changes['appliedFilters'].currentValue !==
|
|
1568
|
+
changes['appliedFilters'].currentValue !==
|
|
1569
|
+
changes['appliedFilters'].previousValue) {
|
|
1432
1570
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
1433
|
-
if (currentState.paging.pageNumber &&
|
|
1571
|
+
if (currentState.paging.pageNumber &&
|
|
1572
|
+
currentState.paging.pageNumber !== 1) {
|
|
1434
1573
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1435
1574
|
}
|
|
1436
1575
|
_this.dispatcher.filtersUpdate(_this.appliedFilters);
|
|
@@ -1488,7 +1627,7 @@
|
|
|
1488
1627
|
selectedChanged = true;
|
|
1489
1628
|
return selected;
|
|
1490
1629
|
})),
|
|
1491
|
-
data.pipe(operators.distinctUntilChanged())
|
|
1630
|
+
data.pipe(operators.distinctUntilChanged()),
|
|
1492
1631
|
], function (filters, search, sortFieldSelectors, itemsPerPage, pageNumber, isToolbarDisabled, selected, itemsData) {
|
|
1493
1632
|
cancelLastRequest.next();
|
|
1494
1633
|
cancelLastRequest.complete();
|
|
@@ -1501,37 +1640,38 @@
|
|
|
1501
1640
|
var response;
|
|
1502
1641
|
if (_this.dataFirstLoad) {
|
|
1503
1642
|
_this.dataFirstLoad = false;
|
|
1504
|
-
var initialItems = itemsData.map(function (d) { return new listBuilderCommon.ListItemModel(d.id || "sky-list-item-model-" + ++idIndex$
|
|
1643
|
+
var initialItems = itemsData.map(function (d) { return new listBuilderCommon.ListItemModel(d.id || "sky-list-item-model-" + ++idIndex$1, d); });
|
|
1505
1644
|
response = rxjs.of(new ListDataResponseModel({
|
|
1506
1645
|
count: _this.initialTotal,
|
|
1507
|
-
items: initialItems
|
|
1646
|
+
items: initialItems,
|
|
1508
1647
|
})).pipe(operators.takeUntil(cancelLastRequest));
|
|
1509
1648
|
}
|
|
1510
1649
|
else {
|
|
1511
|
-
response = _this.dataProvider
|
|
1650
|
+
response = _this.dataProvider
|
|
1651
|
+
.get(new ListDataRequestModel({
|
|
1512
1652
|
filters: filters,
|
|
1513
1653
|
pageSize: itemsPerPage,
|
|
1514
1654
|
pageNumber: pageNumber,
|
|
1515
1655
|
search: search,
|
|
1516
1656
|
sort: new ListSortModel({ fieldSelectors: sortFieldSelectors }),
|
|
1517
|
-
isToolbarDisabled: isToolbarDisabled
|
|
1518
|
-
}))
|
|
1657
|
+
isToolbarDisabled: isToolbarDisabled,
|
|
1658
|
+
}))
|
|
1659
|
+
.pipe(operators.takeUntil(cancelLastRequest));
|
|
1519
1660
|
}
|
|
1520
1661
|
return response;
|
|
1521
|
-
})
|
|
1522
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1662
|
+
}).pipe(operators.takeUntil(this.ngUnsubscribe),
|
|
1523
1663
|
// Retain user selections from previous state.
|
|
1524
1664
|
// This is only necessary for grids component (based on item.isSelected).
|
|
1525
1665
|
operators.map(function (response) {
|
|
1526
1666
|
return response.pipe(operators.map(function (listDataResponseModel) {
|
|
1527
1667
|
return new ListDataResponseModel({
|
|
1528
1668
|
count: listDataResponseModel.count,
|
|
1529
|
-
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds)
|
|
1669
|
+
items: _this.getItemsAndRetainSelections(listDataResponseModel.items, _this.lastSelectedIds),
|
|
1530
1670
|
});
|
|
1531
1671
|
}));
|
|
1532
1672
|
}), operators.flatMap(function (value) { return value; }));
|
|
1533
1673
|
},
|
|
1534
|
-
enumerable:
|
|
1674
|
+
enumerable: false,
|
|
1535
1675
|
configurable: true
|
|
1536
1676
|
});
|
|
1537
1677
|
Object.defineProperty(SkyListComponent.prototype, "selectedItems", {
|
|
@@ -1540,31 +1680,28 @@
|
|
|
1540
1680
|
return items.filter(function (i) { return selected.item.selectedIdMap.get(i.id); });
|
|
1541
1681
|
}).pipe(operators.takeUntil(this.ngUnsubscribe));
|
|
1542
1682
|
},
|
|
1543
|
-
enumerable:
|
|
1683
|
+
enumerable: false,
|
|
1544
1684
|
configurable: true
|
|
1545
1685
|
});
|
|
1546
1686
|
Object.defineProperty(SkyListComponent.prototype, "lastUpdate", {
|
|
1547
1687
|
get: function () {
|
|
1548
|
-
return this.state
|
|
1549
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) {
|
|
1550
|
-
return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined;
|
|
1551
|
-
}));
|
|
1688
|
+
return this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.items.lastUpdate ? new Date(s.items.lastUpdate) : undefined; }));
|
|
1552
1689
|
},
|
|
1553
|
-
enumerable:
|
|
1690
|
+
enumerable: false,
|
|
1554
1691
|
configurable: true
|
|
1555
1692
|
});
|
|
1556
1693
|
Object.defineProperty(SkyListComponent.prototype, "views", {
|
|
1557
1694
|
get: function () {
|
|
1558
1695
|
return this.listViews.toArray();
|
|
1559
1696
|
},
|
|
1560
|
-
enumerable:
|
|
1697
|
+
enumerable: false,
|
|
1561
1698
|
configurable: true
|
|
1562
1699
|
});
|
|
1563
1700
|
Object.defineProperty(SkyListComponent.prototype, "itemCount", {
|
|
1564
1701
|
get: function () {
|
|
1565
1702
|
return this.dataProvider.count();
|
|
1566
1703
|
},
|
|
1567
|
-
enumerable:
|
|
1704
|
+
enumerable: false,
|
|
1568
1705
|
configurable: true
|
|
1569
1706
|
});
|
|
1570
1707
|
SkyListComponent.prototype.getItemsAndRetainSelections = function (newList, selectedIds) {
|
|
@@ -1592,72 +1729,60 @@
|
|
|
1592
1729
|
}
|
|
1593
1730
|
return true;
|
|
1594
1731
|
};
|
|
1595
|
-
SkyListComponent.ctorParameters = function () { return [
|
|
1596
|
-
{ type: ListState },
|
|
1597
|
-
{ type: ListStateDispatcher }
|
|
1598
|
-
]; };
|
|
1599
|
-
__decorate([
|
|
1600
|
-
core.Input()
|
|
1601
|
-
], SkyListComponent.prototype, "data", void 0);
|
|
1602
|
-
__decorate([
|
|
1603
|
-
core.Input()
|
|
1604
|
-
], SkyListComponent.prototype, "dataProvider", void 0);
|
|
1605
|
-
__decorate([
|
|
1606
|
-
core.Input()
|
|
1607
|
-
], SkyListComponent.prototype, "defaultView", void 0);
|
|
1608
|
-
__decorate([
|
|
1609
|
-
core.Input()
|
|
1610
|
-
], SkyListComponent.prototype, "initialTotal", void 0);
|
|
1611
|
-
__decorate([
|
|
1612
|
-
core.Input()
|
|
1613
|
-
], SkyListComponent.prototype, "selectedIds", void 0);
|
|
1614
|
-
__decorate([
|
|
1615
|
-
core.Input()
|
|
1616
|
-
], SkyListComponent.prototype, "sortFields", void 0);
|
|
1617
|
-
__decorate([
|
|
1618
|
-
core.Input()
|
|
1619
|
-
], SkyListComponent.prototype, "appliedFilters", void 0);
|
|
1620
|
-
__decorate([
|
|
1621
|
-
core.Output()
|
|
1622
|
-
], SkyListComponent.prototype, "selectedIdsChange", void 0);
|
|
1623
|
-
__decorate([
|
|
1624
|
-
core.Output()
|
|
1625
|
-
], SkyListComponent.prototype, "appliedFiltersChange", void 0);
|
|
1626
|
-
__decorate([
|
|
1627
|
-
core.Input('search')
|
|
1628
|
-
], SkyListComponent.prototype, "searchFunction", void 0);
|
|
1629
|
-
__decorate([
|
|
1630
|
-
core.ContentChildren(ListViewComponent)
|
|
1631
|
-
], SkyListComponent.prototype, "listViews", void 0);
|
|
1632
|
-
SkyListComponent = __decorate([
|
|
1633
|
-
core.Component({
|
|
1634
|
-
selector: 'sky-list',
|
|
1635
|
-
template: '<ng-content></ng-content>',
|
|
1636
|
-
providers: [ListState, ListStateDispatcher],
|
|
1637
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
1638
|
-
})
|
|
1639
|
-
], SkyListComponent);
|
|
1640
1732
|
return SkyListComponent;
|
|
1641
1733
|
}());
|
|
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: [{
|
|
1737
|
+
type: i0.Component,
|
|
1738
|
+
args: [{
|
|
1739
|
+
selector: 'sky-list',
|
|
1740
|
+
template: '<ng-content></ng-content>',
|
|
1741
|
+
providers: [ListState, ListStateDispatcher],
|
|
1742
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1743
|
+
}]
|
|
1744
|
+
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { data: [{
|
|
1745
|
+
type: i0.Input
|
|
1746
|
+
}], dataProvider: [{
|
|
1747
|
+
type: i0.Input
|
|
1748
|
+
}], defaultView: [{
|
|
1749
|
+
type: i0.Input
|
|
1750
|
+
}], initialTotal: [{
|
|
1751
|
+
type: i0.Input
|
|
1752
|
+
}], selectedIds: [{
|
|
1753
|
+
type: i0.Input
|
|
1754
|
+
}], sortFields: [{
|
|
1755
|
+
type: i0.Input
|
|
1756
|
+
}], appliedFilters: [{
|
|
1757
|
+
type: i0.Input
|
|
1758
|
+
}], selectedIdsChange: [{
|
|
1759
|
+
type: i0.Output
|
|
1760
|
+
}], appliedFiltersChange: [{
|
|
1761
|
+
type: i0.Output
|
|
1762
|
+
}], searchFunction: [{
|
|
1763
|
+
type: i0.Input,
|
|
1764
|
+
args: ['search']
|
|
1765
|
+
}], listViews: [{
|
|
1766
|
+
type: i0.ContentChildren,
|
|
1767
|
+
args: [ListViewComponent]
|
|
1768
|
+
}] } });
|
|
1642
1769
|
|
|
1643
1770
|
var SkyListModule = /** @class */ (function () {
|
|
1644
1771
|
function SkyListModule() {
|
|
1645
1772
|
}
|
|
1646
|
-
SkyListModule = __decorate([
|
|
1647
|
-
core.NgModule({
|
|
1648
|
-
declarations: [
|
|
1649
|
-
SkyListComponent
|
|
1650
|
-
],
|
|
1651
|
-
imports: [
|
|
1652
|
-
common.CommonModule
|
|
1653
|
-
],
|
|
1654
|
-
exports: [
|
|
1655
|
-
SkyListComponent
|
|
1656
|
-
]
|
|
1657
|
-
})
|
|
1658
|
-
], SkyListModule);
|
|
1659
1773
|
return SkyListModule;
|
|
1660
1774
|
}());
|
|
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: [{
|
|
1779
|
+
type: i0.NgModule,
|
|
1780
|
+
args: [{
|
|
1781
|
+
declarations: [SkyListComponent],
|
|
1782
|
+
imports: [i4.CommonModule],
|
|
1783
|
+
exports: [SkyListComponent],
|
|
1784
|
+
}]
|
|
1785
|
+
}] });
|
|
1661
1786
|
|
|
1662
1787
|
var ListFilterModel = /** @class */ (function () {
|
|
1663
1788
|
function ListFilterModel(data) {
|
|
@@ -1683,7 +1808,7 @@
|
|
|
1683
1808
|
*/
|
|
1684
1809
|
var SkyListFilterInlineModel = /** @class */ (function () {
|
|
1685
1810
|
function SkyListFilterInlineModel(data) {
|
|
1686
|
-
this.onChange = new
|
|
1811
|
+
this.onChange = new i0.EventEmitter();
|
|
1687
1812
|
if (data) {
|
|
1688
1813
|
this.name = data.name;
|
|
1689
1814
|
this.filterFunction = data.filterFunction;
|
|
@@ -1717,27 +1842,27 @@
|
|
|
1717
1842
|
new ListToolbarItemModel({
|
|
1718
1843
|
template: this.filterButtonTemplate,
|
|
1719
1844
|
location: 'left',
|
|
1720
|
-
index: this.filterButtonItemToolbarIndex
|
|
1721
|
-
})
|
|
1845
|
+
index: this.filterButtonItemToolbarIndex,
|
|
1846
|
+
}),
|
|
1722
1847
|
]);
|
|
1723
1848
|
};
|
|
1724
|
-
SkyListFilterButtonComponent.ctorParameters = function () { return [
|
|
1725
|
-
{ type: ListStateDispatcher }
|
|
1726
|
-
]; };
|
|
1727
|
-
__decorate([
|
|
1728
|
-
core.ViewChild('filterButton', {
|
|
1729
|
-
read: core.TemplateRef,
|
|
1730
|
-
static: true
|
|
1731
|
-
})
|
|
1732
|
-
], SkyListFilterButtonComponent.prototype, "filterButtonTemplate", void 0);
|
|
1733
|
-
SkyListFilterButtonComponent = __decorate([
|
|
1734
|
-
core.Component({
|
|
1735
|
-
selector: 'sky-list-filter-button',
|
|
1736
|
-
template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
1737
|
-
})
|
|
1738
|
-
], SkyListFilterButtonComponent);
|
|
1739
1849
|
return SkyListFilterButtonComponent;
|
|
1740
1850
|
}());
|
|
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: [{
|
|
1854
|
+
type: i0.Component,
|
|
1855
|
+
args: [{
|
|
1856
|
+
selector: 'sky-list-filter-button',
|
|
1857
|
+
template: "<ng-template #filterButton>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
1858
|
+
}]
|
|
1859
|
+
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { filterButtonTemplate: [{
|
|
1860
|
+
type: i0.ViewChild,
|
|
1861
|
+
args: ['filterButton', {
|
|
1862
|
+
read: i0.TemplateRef,
|
|
1863
|
+
static: true,
|
|
1864
|
+
}]
|
|
1865
|
+
}] } });
|
|
1741
1866
|
|
|
1742
1867
|
/**
|
|
1743
1868
|
* Creates a filter summary based on the
|
|
@@ -1753,7 +1878,7 @@
|
|
|
1753
1878
|
* Emits a `ListFilterModel` when users select a summary item. A common use case is
|
|
1754
1879
|
* to open a filter modal when this event is received.
|
|
1755
1880
|
*/
|
|
1756
|
-
this.summaryItemClick = new
|
|
1881
|
+
this.summaryItemClick = new i0.EventEmitter();
|
|
1757
1882
|
}
|
|
1758
1883
|
SkyListFilterSummaryComponent.prototype.ngAfterContentInit = function () {
|
|
1759
1884
|
var _this = this;
|
|
@@ -1761,10 +1886,10 @@
|
|
|
1761
1886
|
setTimeout(function () {
|
|
1762
1887
|
_this.appliedFilters = _this.state.pipe(operators.map(function (state) {
|
|
1763
1888
|
return state.filters.filter(function (filter) {
|
|
1764
|
-
return filter.value !== '' &&
|
|
1889
|
+
return (filter.value !== '' &&
|
|
1765
1890
|
filter.value !== undefined &&
|
|
1766
1891
|
filter.value !== false &&
|
|
1767
|
-
filter.value !== filter.defaultValue;
|
|
1892
|
+
filter.value !== filter.defaultValue);
|
|
1768
1893
|
});
|
|
1769
1894
|
}));
|
|
1770
1895
|
});
|
|
@@ -1779,29 +1904,26 @@
|
|
|
1779
1904
|
SkyListFilterSummaryComponent.prototype.filterSummaryItemClick = function (item) {
|
|
1780
1905
|
this.summaryItemClick.emit(item);
|
|
1781
1906
|
};
|
|
1782
|
-
SkyListFilterSummaryComponent.ctorParameters = function () { return [
|
|
1783
|
-
{ type: ListState },
|
|
1784
|
-
{ type: ListStateDispatcher }
|
|
1785
|
-
]; };
|
|
1786
|
-
__decorate([
|
|
1787
|
-
core.Output()
|
|
1788
|
-
], SkyListFilterSummaryComponent.prototype, "summaryItemClick", void 0);
|
|
1789
|
-
SkyListFilterSummaryComponent = __decorate([
|
|
1790
|
-
core.Component({
|
|
1791
|
-
selector: 'sky-list-filter-summary',
|
|
1792
|
-
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"
|
|
1793
|
-
})
|
|
1794
|
-
], SkyListFilterSummaryComponent);
|
|
1795
1907
|
return SkyListFilterSummaryComponent;
|
|
1796
1908
|
}());
|
|
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: [{
|
|
1912
|
+
type: i0.Component,
|
|
1913
|
+
args: [{
|
|
1914
|
+
selector: 'sky-list-filter-summary',
|
|
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",
|
|
1916
|
+
}]
|
|
1917
|
+
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
|
|
1918
|
+
type: i0.Output
|
|
1919
|
+
}] } });
|
|
1797
1920
|
|
|
1798
1921
|
/**
|
|
1799
1922
|
* Creates a filter in the list's inline filter area.
|
|
1800
1923
|
*/
|
|
1801
1924
|
var SkyListFilterInlineItemComponent = /** @class */ (function () {
|
|
1802
1925
|
function SkyListFilterInlineItemComponent() {
|
|
1803
|
-
|
|
1804
|
-
this.onChange = new core.EventEmitter();
|
|
1926
|
+
this.onChange = new i0.EventEmitter();
|
|
1805
1927
|
}
|
|
1806
1928
|
SkyListFilterInlineItemComponent.prototype.ngOnInit = function () {
|
|
1807
1929
|
if (this.name === undefined || this.name.length === 0) {
|
|
@@ -1810,37 +1932,74 @@
|
|
|
1810
1932
|
};
|
|
1811
1933
|
Object.defineProperty(SkyListFilterInlineItemComponent.prototype, "template", {
|
|
1812
1934
|
get: function () {
|
|
1813
|
-
return this.templates.length > 0
|
|
1935
|
+
return this.templates.length > 0
|
|
1936
|
+
? this.templates.first
|
|
1937
|
+
: this.templateInput;
|
|
1814
1938
|
},
|
|
1815
|
-
enumerable:
|
|
1939
|
+
enumerable: false,
|
|
1816
1940
|
configurable: true
|
|
1817
1941
|
});
|
|
1818
|
-
__decorate([
|
|
1819
|
-
core.Input()
|
|
1820
|
-
], SkyListFilterInlineItemComponent.prototype, "name", void 0);
|
|
1821
|
-
__decorate([
|
|
1822
|
-
core.Input()
|
|
1823
|
-
], SkyListFilterInlineItemComponent.prototype, "value", void 0);
|
|
1824
|
-
__decorate([
|
|
1825
|
-
core.Input()
|
|
1826
|
-
], SkyListFilterInlineItemComponent.prototype, "defaultValue", void 0);
|
|
1827
|
-
__decorate([
|
|
1828
|
-
core.Input('filter')
|
|
1829
|
-
], SkyListFilterInlineItemComponent.prototype, "filterFunction", void 0);
|
|
1830
|
-
__decorate([
|
|
1831
|
-
core.Input('template')
|
|
1832
|
-
], SkyListFilterInlineItemComponent.prototype, "templateInput", void 0);
|
|
1833
|
-
__decorate([
|
|
1834
|
-
core.ContentChildren(core.TemplateRef)
|
|
1835
|
-
], SkyListFilterInlineItemComponent.prototype, "templates", void 0);
|
|
1836
|
-
SkyListFilterInlineItemComponent = __decorate([
|
|
1837
|
-
core.Component({
|
|
1838
|
-
selector: 'sky-list-filter-inline-item',
|
|
1839
|
-
template: '<ng-content></ng-content>'
|
|
1840
|
-
})
|
|
1841
|
-
], SkyListFilterInlineItemComponent);
|
|
1842
1942
|
return SkyListFilterInlineItemComponent;
|
|
1843
1943
|
}());
|
|
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: [{
|
|
1947
|
+
type: i0.Component,
|
|
1948
|
+
args: [{
|
|
1949
|
+
selector: 'sky-list-filter-inline-item',
|
|
1950
|
+
template: '<ng-content></ng-content>',
|
|
1951
|
+
}]
|
|
1952
|
+
}], propDecorators: { name: [{
|
|
1953
|
+
type: i0.Input
|
|
1954
|
+
}], value: [{
|
|
1955
|
+
type: i0.Input
|
|
1956
|
+
}], defaultValue: [{
|
|
1957
|
+
type: i0.Input
|
|
1958
|
+
}], filterFunction: [{
|
|
1959
|
+
type: i0.Input,
|
|
1960
|
+
args: ['filter']
|
|
1961
|
+
}], templateInput: [{
|
|
1962
|
+
type: i0.Input,
|
|
1963
|
+
args: ['template']
|
|
1964
|
+
}], templates: [{
|
|
1965
|
+
type: i0.ContentChildren,
|
|
1966
|
+
args: [i0.TemplateRef]
|
|
1967
|
+
}] } });
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* @internal
|
|
1971
|
+
*/
|
|
1972
|
+
var SkyListFilterInlineItemRendererComponent = /** @class */ (function () {
|
|
1973
|
+
function SkyListFilterInlineItemRendererComponent() {
|
|
1974
|
+
}
|
|
1975
|
+
SkyListFilterInlineItemRendererComponent.prototype.ngOnInit = function () {
|
|
1976
|
+
/* istanbul ignore else */
|
|
1977
|
+
/* sanity check */
|
|
1978
|
+
if (this.template !== undefined) {
|
|
1979
|
+
this.container.createEmbeddedView(this.template, this);
|
|
1980
|
+
}
|
|
1981
|
+
};
|
|
1982
|
+
return SkyListFilterInlineItemRendererComponent;
|
|
1983
|
+
}());
|
|
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: [{
|
|
1987
|
+
type: i0.Component,
|
|
1988
|
+
args: [{
|
|
1989
|
+
selector: 'sky-list-filter-inline-item-renderer',
|
|
1990
|
+
template: '<ng-template #container></ng-template>',
|
|
1991
|
+
}]
|
|
1992
|
+
}], propDecorators: { template: [{
|
|
1993
|
+
type: i0.Input
|
|
1994
|
+
}], filter: [{
|
|
1995
|
+
type: i0.Input
|
|
1996
|
+
}], container: [{
|
|
1997
|
+
type: i0.ViewChild,
|
|
1998
|
+
args: ['container', {
|
|
1999
|
+
read: i0.ViewContainerRef,
|
|
2000
|
+
static: true,
|
|
2001
|
+
}]
|
|
2002
|
+
}] } });
|
|
1844
2003
|
|
|
1845
2004
|
/**
|
|
1846
2005
|
* Creates an inline filter area for the list. Place each filter
|
|
@@ -1860,7 +2019,7 @@
|
|
|
1860
2019
|
filterFunction: filter.filterFunction,
|
|
1861
2020
|
template: filter.template,
|
|
1862
2021
|
value: filter.value,
|
|
1863
|
-
defaultValue: filter.defaultValue
|
|
2022
|
+
defaultValue: filter.defaultValue,
|
|
1864
2023
|
});
|
|
1865
2024
|
});
|
|
1866
2025
|
this.inlineFilters.forEach(function (filter) {
|
|
@@ -1873,7 +2032,8 @@
|
|
|
1873
2032
|
SkyListFilterInlineComponent.prototype.applyFilters = function () {
|
|
1874
2033
|
var _this = this;
|
|
1875
2034
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
1876
|
-
if (currentState.paging.pageNumber &&
|
|
2035
|
+
if (currentState.paging.pageNumber &&
|
|
2036
|
+
currentState.paging.pageNumber !== 1) {
|
|
1877
2037
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
1878
2038
|
}
|
|
1879
2039
|
_this.dispatcher.filtersUpdate(_this.getFilterModelFromInline(_this.inlineFilters));
|
|
@@ -1885,87 +2045,59 @@
|
|
|
1885
2045
|
name: filter.name,
|
|
1886
2046
|
value: filter.value,
|
|
1887
2047
|
filterFunction: filter.filterFunction,
|
|
1888
|
-
defaultValue: filter.defaultValue
|
|
2048
|
+
defaultValue: filter.defaultValue,
|
|
1889
2049
|
});
|
|
1890
2050
|
});
|
|
1891
2051
|
};
|
|
1892
|
-
SkyListFilterInlineComponent.ctorParameters = function () { return [
|
|
1893
|
-
{ type: ListStateDispatcher },
|
|
1894
|
-
{ type: ListState }
|
|
1895
|
-
]; };
|
|
1896
|
-
__decorate([
|
|
1897
|
-
core.ContentChildren(SkyListFilterInlineItemComponent)
|
|
1898
|
-
], SkyListFilterInlineComponent.prototype, "filters", void 0);
|
|
1899
|
-
SkyListFilterInlineComponent = __decorate([
|
|
1900
|
-
core.Component({
|
|
1901
|
-
selector: 'sky-list-filter-inline',
|
|
1902
|
-
template: "<ng-content></ng-content>\n\n<sky-filter-inline>\n <sky-filter-inline-item\n *ngFor=\"let filter of inlineFilters\">\n <sky-list-filter-inline-item-renderer\n [template]=\"filter.template\"\n [filter]=\"filter\">\n </sky-list-filter-inline-item-renderer>\n </sky-filter-inline-item>\n</sky-filter-inline>\n"
|
|
1903
|
-
})
|
|
1904
|
-
], SkyListFilterInlineComponent);
|
|
1905
2052
|
return SkyListFilterInlineComponent;
|
|
1906
2053
|
}());
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
}
|
|
1920
|
-
};
|
|
1921
|
-
__decorate([
|
|
1922
|
-
core.Input()
|
|
1923
|
-
], SkyListFilterInlineItemRendererComponent.prototype, "template", void 0);
|
|
1924
|
-
__decorate([
|
|
1925
|
-
core.Input()
|
|
1926
|
-
], SkyListFilterInlineItemRendererComponent.prototype, "filter", void 0);
|
|
1927
|
-
__decorate([
|
|
1928
|
-
core.ViewChild('container', {
|
|
1929
|
-
read: core.ViewContainerRef,
|
|
1930
|
-
static: true
|
|
1931
|
-
})
|
|
1932
|
-
], SkyListFilterInlineItemRendererComponent.prototype, "container", void 0);
|
|
1933
|
-
SkyListFilterInlineItemRendererComponent = __decorate([
|
|
1934
|
-
core.Component({
|
|
1935
|
-
selector: 'sky-list-filter-inline-item-renderer',
|
|
1936
|
-
template: '<ng-template #container></ng-template>'
|
|
1937
|
-
})
|
|
1938
|
-
], SkyListFilterInlineItemRendererComponent);
|
|
1939
|
-
return SkyListFilterInlineItemRendererComponent;
|
|
1940
|
-
}());
|
|
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: [{
|
|
2057
|
+
type: i0.Component,
|
|
2058
|
+
args: [{
|
|
2059
|
+
selector: 'sky-list-filter-inline',
|
|
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",
|
|
2061
|
+
}]
|
|
2062
|
+
}], ctorParameters: function () { return [{ type: ListStateDispatcher }, { type: ListState }]; }, propDecorators: { filters: [{
|
|
2063
|
+
type: i0.ContentChildren,
|
|
2064
|
+
args: [SkyListFilterInlineItemComponent]
|
|
2065
|
+
}] } });
|
|
1941
2066
|
|
|
1942
2067
|
var SkyListFiltersModule = /** @class */ (function () {
|
|
1943
2068
|
function SkyListFiltersModule() {
|
|
1944
2069
|
}
|
|
1945
|
-
SkyListFiltersModule = __decorate([
|
|
1946
|
-
core.NgModule({
|
|
1947
|
-
declarations: [
|
|
1948
|
-
SkyListFilterButtonComponent,
|
|
1949
|
-
SkyListFilterSummaryComponent,
|
|
1950
|
-
SkyListFilterInlineItemComponent,
|
|
1951
|
-
SkyListFilterInlineComponent,
|
|
1952
|
-
SkyListFilterInlineItemRendererComponent
|
|
1953
|
-
],
|
|
1954
|
-
imports: [
|
|
1955
|
-
common.CommonModule,
|
|
1956
|
-
lists.SkyFilterModule
|
|
1957
|
-
],
|
|
1958
|
-
exports: [
|
|
1959
|
-
SkyListFilterButtonComponent,
|
|
1960
|
-
SkyListFilterSummaryComponent,
|
|
1961
|
-
SkyListFilterInlineItemComponent,
|
|
1962
|
-
SkyListFilterInlineComponent,
|
|
1963
|
-
SkyListFilterInlineItemRendererComponent
|
|
1964
|
-
]
|
|
1965
|
-
})
|
|
1966
|
-
], SkyListFiltersModule);
|
|
1967
2070
|
return SkyListFiltersModule;
|
|
1968
2071
|
}());
|
|
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,
|
|
2074
|
+
SkyListFilterSummaryComponent,
|
|
2075
|
+
SkyListFilterInlineItemComponent,
|
|
2076
|
+
SkyListFilterInlineComponent,
|
|
2077
|
+
SkyListFilterInlineItemRendererComponent], imports: [i4.CommonModule, i3.SkyFilterModule], exports: [SkyListFilterButtonComponent,
|
|
2078
|
+
SkyListFilterSummaryComponent,
|
|
2079
|
+
SkyListFilterInlineItemComponent,
|
|
2080
|
+
SkyListFilterInlineComponent] });
|
|
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: [{
|
|
2083
|
+
type: i0.NgModule,
|
|
2084
|
+
args: [{
|
|
2085
|
+
declarations: [
|
|
2086
|
+
SkyListFilterButtonComponent,
|
|
2087
|
+
SkyListFilterSummaryComponent,
|
|
2088
|
+
SkyListFilterInlineItemComponent,
|
|
2089
|
+
SkyListFilterInlineComponent,
|
|
2090
|
+
SkyListFilterInlineItemRendererComponent,
|
|
2091
|
+
],
|
|
2092
|
+
imports: [i4.CommonModule, i3.SkyFilterModule],
|
|
2093
|
+
exports: [
|
|
2094
|
+
SkyListFilterButtonComponent,
|
|
2095
|
+
SkyListFilterSummaryComponent,
|
|
2096
|
+
SkyListFilterInlineItemComponent,
|
|
2097
|
+
SkyListFilterInlineComponent,
|
|
2098
|
+
],
|
|
2099
|
+
}]
|
|
2100
|
+
}] });
|
|
1969
2101
|
|
|
1970
2102
|
/**
|
|
1971
2103
|
* Provides a SKY UX-themed pagination control to display list data across multiple pages.
|
|
@@ -1980,6 +2112,8 @@
|
|
|
1980
2112
|
return ListPagingComponent;
|
|
1981
2113
|
}());
|
|
1982
2114
|
|
|
2115
|
+
/* istanbul ignore next */
|
|
2116
|
+
var listPagingComponentRef = i0.forwardRef(function () { return SkyListPagingComponent; });
|
|
1983
2117
|
/**
|
|
1984
2118
|
* Displays a pagination control for a SKY UX-themed list of data.
|
|
1985
2119
|
*/
|
|
@@ -2004,14 +2138,12 @@
|
|
|
2004
2138
|
_this.pageNumber = 1;
|
|
2005
2139
|
return _this;
|
|
2006
2140
|
}
|
|
2007
|
-
SkyListPagingComponent_1 = SkyListPagingComponent;
|
|
2008
2141
|
SkyListPagingComponent.prototype.ngOnInit = function () {
|
|
2009
2142
|
var _this = this;
|
|
2010
2143
|
this.currentPageNumber = this.state.pipe(operators.map(function (s) { return s.paging.pageNumber; }));
|
|
2011
2144
|
this.maxDisplayedPages = this.state.pipe(operators.map(function (s) { return s.paging.maxDisplayedPages; }));
|
|
2012
2145
|
this.itemsPerPage = this.state.pipe(operators.map(function (s) { return s.paging.itemsPerPage; }));
|
|
2013
|
-
this.itemCount = this.state
|
|
2014
|
-
.pipe(operators.map(function (s) {
|
|
2146
|
+
this.itemCount = this.state.pipe(operators.map(function (s) {
|
|
2015
2147
|
return s.items;
|
|
2016
2148
|
}), operators.scan(function (previousValue, newValue) {
|
|
2017
2149
|
if (previousValue.lastUpdate > newValue.lastUpdate) {
|
|
@@ -2024,15 +2156,9 @@
|
|
|
2024
2156
|
return result.count;
|
|
2025
2157
|
}), operators.distinctUntilChanged());
|
|
2026
2158
|
// subscribe to or use inputs
|
|
2027
|
-
listBuilderCommon.getValue(this.pageSize, function (pageSize) {
|
|
2028
|
-
|
|
2029
|
-
});
|
|
2030
|
-
listBuilderCommon.getValue(this.maxPages, function (maxPages) {
|
|
2031
|
-
return _this.dispatcher.next(new ListPagingSetMaxPagesAction(Number(maxPages)));
|
|
2032
|
-
});
|
|
2033
|
-
listBuilderCommon.getValue(this.pageNumber, function (pageNumber) {
|
|
2034
|
-
return _this.dispatcher.next(new ListPagingSetPageNumberAction(Number(pageNumber)));
|
|
2035
|
-
});
|
|
2159
|
+
listBuilderCommon.getValue(this.pageSize, function (pageSize) { return _this.dispatcher.next(new ListPagingSetItemsPerPageAction(Number(pageSize))); });
|
|
2160
|
+
listBuilderCommon.getValue(this.maxPages, function (maxPages) { return _this.dispatcher.next(new ListPagingSetMaxPagesAction(Number(maxPages))); });
|
|
2161
|
+
listBuilderCommon.getValue(this.pageNumber, function (pageNumber) { return _this.dispatcher.next(new ListPagingSetPageNumberAction(Number(pageNumber))); });
|
|
2036
2162
|
};
|
|
2037
2163
|
SkyListPagingComponent.prototype.pageChange = function (currentPage) {
|
|
2038
2164
|
var _this = this;
|
|
@@ -2042,82 +2168,102 @@
|
|
|
2042
2168
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(currentPage)));
|
|
2043
2169
|
});
|
|
2044
2170
|
};
|
|
2045
|
-
var SkyListPagingComponent_1;
|
|
2046
|
-
SkyListPagingComponent.ctorParameters = function () { return [
|
|
2047
|
-
{ type: ListState },
|
|
2048
|
-
{ type: ListStateDispatcher }
|
|
2049
|
-
]; };
|
|
2050
|
-
__decorate([
|
|
2051
|
-
core.Input()
|
|
2052
|
-
], SkyListPagingComponent.prototype, "pageSize", void 0);
|
|
2053
|
-
__decorate([
|
|
2054
|
-
core.Input()
|
|
2055
|
-
], SkyListPagingComponent.prototype, "maxPages", void 0);
|
|
2056
|
-
__decorate([
|
|
2057
|
-
core.Input()
|
|
2058
|
-
], SkyListPagingComponent.prototype, "pageNumber", void 0);
|
|
2059
|
-
SkyListPagingComponent = SkyListPagingComponent_1 = __decorate([
|
|
2060
|
-
core.Component({
|
|
2061
|
-
selector: 'sky-list-paging',
|
|
2062
|
-
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",
|
|
2063
|
-
providers: [
|
|
2064
|
-
/* tslint:disable */
|
|
2065
|
-
{ provide: ListPagingComponent, useExisting: core.forwardRef(function () { return SkyListPagingComponent_1; }) }
|
|
2066
|
-
/* tslint:enable */
|
|
2067
|
-
],
|
|
2068
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
2069
|
-
})
|
|
2070
|
-
], SkyListPagingComponent);
|
|
2071
2171
|
return SkyListPagingComponent;
|
|
2072
2172
|
}(ListPagingComponent));
|
|
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: [{
|
|
2178
|
+
type: i0.Component,
|
|
2179
|
+
args: [{
|
|
2180
|
+
selector: 'sky-list-paging',
|
|
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",
|
|
2182
|
+
providers: [
|
|
2183
|
+
{ provide: ListPagingComponent, useExisting: listPagingComponentRef },
|
|
2184
|
+
],
|
|
2185
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2186
|
+
}]
|
|
2187
|
+
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { pageSize: [{
|
|
2188
|
+
type: i0.Input
|
|
2189
|
+
}], maxPages: [{
|
|
2190
|
+
type: i0.Input
|
|
2191
|
+
}], pageNumber: [{
|
|
2192
|
+
type: i0.Input
|
|
2193
|
+
}] } });
|
|
2073
2194
|
|
|
2074
2195
|
var SkyListPagingModule = /** @class */ (function () {
|
|
2075
2196
|
function SkyListPagingModule() {
|
|
2076
2197
|
}
|
|
2077
|
-
SkyListPagingModule = __decorate([
|
|
2078
|
-
core.NgModule({
|
|
2079
|
-
declarations: [
|
|
2080
|
-
SkyListPagingComponent
|
|
2081
|
-
],
|
|
2082
|
-
imports: [
|
|
2083
|
-
common.CommonModule,
|
|
2084
|
-
lists.SkyPagingModule
|
|
2085
|
-
],
|
|
2086
|
-
exports: [
|
|
2087
|
-
SkyListPagingComponent
|
|
2088
|
-
]
|
|
2089
|
-
})
|
|
2090
|
-
], SkyListPagingModule);
|
|
2091
2198
|
return SkyListPagingModule;
|
|
2092
2199
|
}());
|
|
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: [{
|
|
2204
|
+
type: i0.NgModule,
|
|
2205
|
+
args: [{
|
|
2206
|
+
declarations: [SkyListPagingComponent],
|
|
2207
|
+
imports: [i4.CommonModule, i3.SkyPagingModule],
|
|
2208
|
+
exports: [SkyListPagingComponent],
|
|
2209
|
+
}]
|
|
2210
|
+
}] });
|
|
2093
2211
|
|
|
2212
|
+
/**
|
|
2213
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
2214
|
+
* The contents of this file were automatically generated by
|
|
2215
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-list-builder' schematic.
|
|
2216
|
+
* To update this file, simply rerun the command.
|
|
2217
|
+
*/
|
|
2218
|
+
var RESOURCES = {
|
|
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
|
+
},
|
|
2228
|
+
};
|
|
2094
2229
|
var SkyListBuilderResourcesProvider = /** @class */ (function () {
|
|
2095
2230
|
function SkyListBuilderResourcesProvider() {
|
|
2096
|
-
this.resources = { "EN-US": { "skyux_list_show_secondary_actions_button": "More", "skyux_list_multiselect_clear_all": "Clear all", "skyux_list_mutliselect_select_all": "Select all", "skyux_list_mutliselect_show_selected": "Only show selected items", "skyux_list_view_switcher_dropdown_title": "Select view" } };
|
|
2097
2231
|
}
|
|
2098
2232
|
SkyListBuilderResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
2099
|
-
return
|
|
2233
|
+
return i5.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
2100
2234
|
};
|
|
2101
|
-
SkyListBuilderResourcesProvider = __decorate([
|
|
2102
|
-
core.Injectable()
|
|
2103
|
-
], SkyListBuilderResourcesProvider);
|
|
2104
2235
|
return SkyListBuilderResourcesProvider;
|
|
2105
2236
|
}());
|
|
2106
|
-
|
|
2237
|
+
/**
|
|
2238
|
+
* Import into any component library module that needs to use resource strings.
|
|
2239
|
+
*/
|
|
2107
2240
|
var SkyListBuilderResourcesModule = /** @class */ (function () {
|
|
2108
2241
|
function SkyListBuilderResourcesModule() {
|
|
2109
2242
|
}
|
|
2110
|
-
SkyListBuilderResourcesModule = __decorate([
|
|
2111
|
-
core.NgModule({
|
|
2112
|
-
providers: [{
|
|
2113
|
-
provide: i18n.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2114
|
-
useClass: SkyListBuilderResourcesProvider,
|
|
2115
|
-
multi: true
|
|
2116
|
-
}]
|
|
2117
|
-
})
|
|
2118
|
-
], SkyListBuilderResourcesModule);
|
|
2119
2243
|
return SkyListBuilderResourcesModule;
|
|
2120
2244
|
}());
|
|
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
|
+
{
|
|
2249
|
+
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2250
|
+
useClass: SkyListBuilderResourcesProvider,
|
|
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: [{
|
|
2255
|
+
type: i0.NgModule,
|
|
2256
|
+
args: [{
|
|
2257
|
+
exports: [i5.SkyI18nModule],
|
|
2258
|
+
providers: [
|
|
2259
|
+
{
|
|
2260
|
+
provide: i5.SKY_LIB_RESOURCES_PROVIDERS,
|
|
2261
|
+
useClass: SkyListBuilderResourcesProvider,
|
|
2262
|
+
multi: true,
|
|
2263
|
+
},
|
|
2264
|
+
],
|
|
2265
|
+
}]
|
|
2266
|
+
}] });
|
|
2121
2267
|
|
|
2122
2268
|
/**
|
|
2123
2269
|
* @internal
|
|
@@ -2145,11 +2291,55 @@
|
|
|
2145
2291
|
this.secondaryActionsSubject.complete();
|
|
2146
2292
|
this.actionsStream.complete();
|
|
2147
2293
|
};
|
|
2148
|
-
SkyListSecondaryActionsService = __decorate([
|
|
2149
|
-
core.Injectable()
|
|
2150
|
-
], SkyListSecondaryActionsService);
|
|
2151
2294
|
return SkyListSecondaryActionsService;
|
|
2152
2295
|
}());
|
|
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: [{
|
|
2299
|
+
type: i0.Injectable
|
|
2300
|
+
}] });
|
|
2301
|
+
|
|
2302
|
+
// Note: this component is needed to ensure any reactive styles placed in the element have
|
|
2303
|
+
// their host to be based off of. Without this component the host is not written via the dispatcher.
|
|
2304
|
+
/**
|
|
2305
|
+
* @internal
|
|
2306
|
+
*/
|
|
2307
|
+
var SkyListSecondaryActionsHostComponent = /** @class */ (function () {
|
|
2308
|
+
function SkyListSecondaryActionsHostComponent(changeDetector, actionService) {
|
|
2309
|
+
this.changeDetector = changeDetector;
|
|
2310
|
+
this.actionService = actionService;
|
|
2311
|
+
this.dropdownHidden = false;
|
|
2312
|
+
this.actions = [];
|
|
2313
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
2314
|
+
}
|
|
2315
|
+
SkyListSecondaryActionsHostComponent.prototype.ngOnInit = function () {
|
|
2316
|
+
var _this = this;
|
|
2317
|
+
this.actionService.actionsStream
|
|
2318
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged())
|
|
2319
|
+
.subscribe(function (actions) {
|
|
2320
|
+
var hasSecondaryActions = actions.length > 0;
|
|
2321
|
+
_this.dropdownHidden = !hasSecondaryActions;
|
|
2322
|
+
_this.actions = actions;
|
|
2323
|
+
_this.changeDetector.detectChanges();
|
|
2324
|
+
});
|
|
2325
|
+
};
|
|
2326
|
+
SkyListSecondaryActionsHostComponent.prototype.ngOnDestroy = function () {
|
|
2327
|
+
this.ngUnsubscribe.next();
|
|
2328
|
+
this.ngUnsubscribe.complete();
|
|
2329
|
+
};
|
|
2330
|
+
return SkyListSecondaryActionsHostComponent;
|
|
2331
|
+
}());
|
|
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: [{
|
|
2335
|
+
type: i0.Component,
|
|
2336
|
+
args: [{
|
|
2337
|
+
selector: 'sky-list-secondary-actions-host',
|
|
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,
|
|
2341
|
+
}]
|
|
2342
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyListSecondaryActionsService }]; } });
|
|
2153
2343
|
|
|
2154
2344
|
/**
|
|
2155
2345
|
* Adds a dropdown to the list toolbar for secondary actions. If the dropdown does not
|
|
@@ -2166,33 +2356,29 @@
|
|
|
2166
2356
|
id: 'secondary-actions',
|
|
2167
2357
|
template: this.secondaryActionsTemplate,
|
|
2168
2358
|
location: 'center',
|
|
2169
|
-
index: this.secondaryActionsItemToolbarIndex
|
|
2359
|
+
index: this.secondaryActionsItemToolbarIndex,
|
|
2170
2360
|
});
|
|
2171
|
-
this.dispatcher.toolbarAddItems([
|
|
2172
|
-
secondaryActionItem
|
|
2173
|
-
]);
|
|
2361
|
+
this.dispatcher.toolbarAddItems([secondaryActionItem]);
|
|
2174
2362
|
};
|
|
2175
|
-
SkyListSecondaryActionsComponent.ctorParameters = function () { return [
|
|
2176
|
-
{ type: ListStateDispatcher }
|
|
2177
|
-
]; };
|
|
2178
|
-
__decorate([
|
|
2179
|
-
core.ViewChild('secondaryActions', {
|
|
2180
|
-
read: core.TemplateRef,
|
|
2181
|
-
static: true
|
|
2182
|
-
})
|
|
2183
|
-
], SkyListSecondaryActionsComponent.prototype, "secondaryActionsTemplate", void 0);
|
|
2184
|
-
SkyListSecondaryActionsComponent = __decorate([
|
|
2185
|
-
core.Component({
|
|
2186
|
-
selector: 'sky-list-secondary-actions',
|
|
2187
|
-
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",
|
|
2188
|
-
providers: [
|
|
2189
|
-
SkyListSecondaryActionsService
|
|
2190
|
-
],
|
|
2191
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
2192
|
-
})
|
|
2193
|
-
], SkyListSecondaryActionsComponent);
|
|
2194
2363
|
return SkyListSecondaryActionsComponent;
|
|
2195
2364
|
}());
|
|
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: [{
|
|
2368
|
+
type: i0.Component,
|
|
2369
|
+
args: [{
|
|
2370
|
+
selector: 'sky-list-secondary-actions',
|
|
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,
|
|
2374
|
+
}]
|
|
2375
|
+
}], ctorParameters: function () { return [{ type: ListStateDispatcher }]; }, propDecorators: { secondaryActionsTemplate: [{
|
|
2376
|
+
type: i0.ViewChild,
|
|
2377
|
+
args: ['secondaryActions', {
|
|
2378
|
+
read: i0.TemplateRef,
|
|
2379
|
+
static: true,
|
|
2380
|
+
}]
|
|
2381
|
+
}] } });
|
|
2196
2382
|
|
|
2197
2383
|
/**
|
|
2198
2384
|
* Adds actions to the secondary actions dropdown in the list toolbar.
|
|
@@ -2203,98 +2389,67 @@
|
|
|
2203
2389
|
}
|
|
2204
2390
|
SkyListSecondaryActionComponent.prototype.ngAfterContentInit = function () {
|
|
2205
2391
|
this.actionService.addSecondaryAction({
|
|
2206
|
-
template: this.templateRef
|
|
2392
|
+
template: this.templateRef,
|
|
2207
2393
|
});
|
|
2208
2394
|
};
|
|
2209
|
-
SkyListSecondaryActionComponent.ctorParameters = function () { return [
|
|
2210
|
-
{ type: SkyListSecondaryActionsService }
|
|
2211
|
-
]; };
|
|
2212
|
-
__decorate([
|
|
2213
|
-
core.ViewChild('listSecondaryAction', {
|
|
2214
|
-
read: core.TemplateRef,
|
|
2215
|
-
static: true
|
|
2216
|
-
})
|
|
2217
|
-
], SkyListSecondaryActionComponent.prototype, "templateRef", void 0);
|
|
2218
|
-
SkyListSecondaryActionComponent = __decorate([
|
|
2219
|
-
core.Component({
|
|
2220
|
-
selector: 'sky-list-secondary-action',
|
|
2221
|
-
template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n"
|
|
2222
|
-
})
|
|
2223
|
-
], SkyListSecondaryActionComponent);
|
|
2224
2395
|
return SkyListSecondaryActionComponent;
|
|
2225
2396
|
}());
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
var _this = this;
|
|
2242
|
-
this.actionService.actionsStream
|
|
2243
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged())
|
|
2244
|
-
.subscribe(function (actions) {
|
|
2245
|
-
var hasSecondaryActions = (actions.length > 0);
|
|
2246
|
-
_this.dropdownHidden = !hasSecondaryActions;
|
|
2247
|
-
_this.actions = actions;
|
|
2248
|
-
_this.changeDetector.detectChanges();
|
|
2249
|
-
});
|
|
2250
|
-
};
|
|
2251
|
-
SkyListSecondaryActionsHostComponent.prototype.ngOnDestroy = function () {
|
|
2252
|
-
this.ngUnsubscribe.next();
|
|
2253
|
-
this.ngUnsubscribe.complete();
|
|
2254
|
-
};
|
|
2255
|
-
SkyListSecondaryActionsHostComponent.ctorParameters = function () { return [
|
|
2256
|
-
{ type: core.ChangeDetectorRef },
|
|
2257
|
-
{ type: SkyListSecondaryActionsService }
|
|
2258
|
-
]; };
|
|
2259
|
-
SkyListSecondaryActionsHostComponent = __decorate([
|
|
2260
|
-
core.Component({
|
|
2261
|
-
selector: 'sky-list-secondary-actions-host',
|
|
2262
|
-
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\n icon=\"ellipsis-h\"\n >\n </sky-icon>\n <span\n class=\"sky-list-secondary-actions-btn-text\"\n >\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\">\n </ng-container>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n</div>\n<ng-content>\n</ng-content>\n",
|
|
2263
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2264
|
-
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-lg) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-xs) .sky-list-secondary-actions-btn-text{display:none}:host-context(.sky-responsive-container-lg) .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-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret,:host-context(.sky-responsive-container-xs) .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-lg) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-md) .sky-list-secondary-actions-btn-text,:host-context(.sky-responsive-container-sm) .sky-list-secondary-actions-btn-text{display:inline}:host-context(.sky-responsive-container-lg) .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-sm) .sky-list-secondary-actions ::ng-deep .sky-dropdown-caret{display:inline-block}"]
|
|
2265
|
-
})
|
|
2266
|
-
], SkyListSecondaryActionsHostComponent);
|
|
2267
|
-
return SkyListSecondaryActionsHostComponent;
|
|
2268
|
-
}());
|
|
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: [{
|
|
2400
|
+
type: i0.Component,
|
|
2401
|
+
args: [{
|
|
2402
|
+
selector: 'sky-list-secondary-action',
|
|
2403
|
+
template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n",
|
|
2404
|
+
}]
|
|
2405
|
+
}], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
|
|
2406
|
+
type: i0.ViewChild,
|
|
2407
|
+
args: ['listSecondaryAction', {
|
|
2408
|
+
read: i0.TemplateRef,
|
|
2409
|
+
static: true,
|
|
2410
|
+
}]
|
|
2411
|
+
}] } });
|
|
2269
2412
|
|
|
2270
2413
|
var SkyListSecondaryActionsModule = /** @class */ (function () {
|
|
2271
2414
|
function SkyListSecondaryActionsModule() {
|
|
2272
2415
|
}
|
|
2273
|
-
SkyListSecondaryActionsModule = __decorate([
|
|
2274
|
-
core.NgModule({
|
|
2275
|
-
declarations: [
|
|
2276
|
-
SkyListSecondaryActionsComponent,
|
|
2277
|
-
SkyListSecondaryActionsHostComponent,
|
|
2278
|
-
SkyListSecondaryActionComponent
|
|
2279
|
-
],
|
|
2280
|
-
imports: [
|
|
2281
|
-
common.CommonModule,
|
|
2282
|
-
popovers.SkyDropdownModule,
|
|
2283
|
-
i18n.SkyI18nModule,
|
|
2284
|
-
indicators.SkyIconModule,
|
|
2285
|
-
SkyListBuilderResourcesModule
|
|
2286
|
-
],
|
|
2287
|
-
exports: [
|
|
2288
|
-
SkyListSecondaryActionsComponent,
|
|
2289
|
-
SkyListSecondaryActionsHostComponent,
|
|
2290
|
-
SkyListSecondaryActionComponent
|
|
2291
|
-
]
|
|
2292
|
-
})
|
|
2293
|
-
], SkyListSecondaryActionsModule);
|
|
2294
2416
|
return SkyListSecondaryActionsModule;
|
|
2295
2417
|
}());
|
|
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,
|
|
2420
|
+
SkyListSecondaryActionsHostComponent,
|
|
2421
|
+
SkyListSecondaryActionComponent], imports: [i4.CommonModule,
|
|
2422
|
+
i2.SkyDropdownModule,
|
|
2423
|
+
i5.SkyI18nModule,
|
|
2424
|
+
i3$1.SkyIconModule,
|
|
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: [[
|
|
2427
|
+
i4.CommonModule,
|
|
2428
|
+
i2.SkyDropdownModule,
|
|
2429
|
+
i5.SkyI18nModule,
|
|
2430
|
+
i3$1.SkyIconModule,
|
|
2431
|
+
SkyListBuilderResourcesModule,
|
|
2432
|
+
]] });
|
|
2433
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListSecondaryActionsModule, decorators: [{
|
|
2434
|
+
type: i0.NgModule,
|
|
2435
|
+
args: [{
|
|
2436
|
+
declarations: [
|
|
2437
|
+
SkyListSecondaryActionsComponent,
|
|
2438
|
+
SkyListSecondaryActionsHostComponent,
|
|
2439
|
+
SkyListSecondaryActionComponent,
|
|
2440
|
+
],
|
|
2441
|
+
imports: [
|
|
2442
|
+
i4.CommonModule,
|
|
2443
|
+
i2.SkyDropdownModule,
|
|
2444
|
+
i5.SkyI18nModule,
|
|
2445
|
+
i3$1.SkyIconModule,
|
|
2446
|
+
SkyListBuilderResourcesModule,
|
|
2447
|
+
],
|
|
2448
|
+
exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
|
|
2449
|
+
}]
|
|
2450
|
+
}] });
|
|
2296
2451
|
|
|
2297
|
-
var idIndex
|
|
2452
|
+
var idIndex = 0;
|
|
2298
2453
|
/**
|
|
2299
2454
|
* Defines a toolbar item for the list toolbar.
|
|
2300
2455
|
*/
|
|
@@ -2303,7 +2458,7 @@
|
|
|
2303
2458
|
/**
|
|
2304
2459
|
* Specifies the ID of the item.
|
|
2305
2460
|
*/
|
|
2306
|
-
this.id = "sky-list-toolbar-item-" + ++idIndex
|
|
2461
|
+
this.id = "sky-list-toolbar-item-" + ++idIndex;
|
|
2307
2462
|
/**
|
|
2308
2463
|
* Specifies the index of the item at the given item location.
|
|
2309
2464
|
* @default -1
|
|
@@ -2320,29 +2475,29 @@
|
|
|
2320
2475
|
get: function () {
|
|
2321
2476
|
return this.templates.length > 0 ? this.templates.first : undefined;
|
|
2322
2477
|
},
|
|
2323
|
-
enumerable:
|
|
2478
|
+
enumerable: false,
|
|
2324
2479
|
configurable: true
|
|
2325
2480
|
});
|
|
2326
|
-
__decorate([
|
|
2327
|
-
core.Input()
|
|
2328
|
-
], SkyListToolbarItemComponent.prototype, "id", void 0);
|
|
2329
|
-
__decorate([
|
|
2330
|
-
core.Input()
|
|
2331
|
-
], SkyListToolbarItemComponent.prototype, "index", void 0);
|
|
2332
|
-
__decorate([
|
|
2333
|
-
core.Input()
|
|
2334
|
-
], SkyListToolbarItemComponent.prototype, "location", void 0);
|
|
2335
|
-
__decorate([
|
|
2336
|
-
core.ContentChildren(core.TemplateRef)
|
|
2337
|
-
], SkyListToolbarItemComponent.prototype, "templates", void 0);
|
|
2338
|
-
SkyListToolbarItemComponent = __decorate([
|
|
2339
|
-
core.Component({
|
|
2340
|
-
selector: 'sky-list-toolbar-item',
|
|
2341
|
-
template: '<ng-content></ng-content>'
|
|
2342
|
-
})
|
|
2343
|
-
], SkyListToolbarItemComponent);
|
|
2344
2481
|
return SkyListToolbarItemComponent;
|
|
2345
2482
|
}());
|
|
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: [{
|
|
2486
|
+
type: i0.Component,
|
|
2487
|
+
args: [{
|
|
2488
|
+
selector: 'sky-list-toolbar-item',
|
|
2489
|
+
template: '<ng-content></ng-content>',
|
|
2490
|
+
}]
|
|
2491
|
+
}], propDecorators: { id: [{
|
|
2492
|
+
type: i0.Input
|
|
2493
|
+
}], index: [{
|
|
2494
|
+
type: i0.Input
|
|
2495
|
+
}], location: [{
|
|
2496
|
+
type: i0.Input
|
|
2497
|
+
}], templates: [{
|
|
2498
|
+
type: i0.ContentChildren,
|
|
2499
|
+
args: [i0.TemplateRef]
|
|
2500
|
+
}] } });
|
|
2346
2501
|
|
|
2347
2502
|
/**
|
|
2348
2503
|
* Adds a sort dropdown to the list toolbar.
|
|
@@ -2350,26 +2505,25 @@
|
|
|
2350
2505
|
var SkyListToolbarSortComponent = /** @class */ (function () {
|
|
2351
2506
|
function SkyListToolbarSortComponent() {
|
|
2352
2507
|
}
|
|
2353
|
-
__decorate([
|
|
2354
|
-
core.Input()
|
|
2355
|
-
], SkyListToolbarSortComponent.prototype, "label", void 0);
|
|
2356
|
-
__decorate([
|
|
2357
|
-
core.Input()
|
|
2358
|
-
], SkyListToolbarSortComponent.prototype, "field", void 0);
|
|
2359
|
-
__decorate([
|
|
2360
|
-
core.Input()
|
|
2361
|
-
], SkyListToolbarSortComponent.prototype, "type", void 0);
|
|
2362
|
-
__decorate([
|
|
2363
|
-
core.Input()
|
|
2364
|
-
], SkyListToolbarSortComponent.prototype, "descending", void 0);
|
|
2365
|
-
SkyListToolbarSortComponent = __decorate([
|
|
2366
|
-
core.Component({
|
|
2367
|
-
selector: 'sky-list-toolbar-sort',
|
|
2368
|
-
template: ''
|
|
2369
|
-
})
|
|
2370
|
-
], SkyListToolbarSortComponent);
|
|
2371
2508
|
return SkyListToolbarSortComponent;
|
|
2372
2509
|
}());
|
|
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: [{
|
|
2513
|
+
type: i0.Component,
|
|
2514
|
+
args: [{
|
|
2515
|
+
selector: 'sky-list-toolbar-sort',
|
|
2516
|
+
template: '',
|
|
2517
|
+
}]
|
|
2518
|
+
}], propDecorators: { label: [{
|
|
2519
|
+
type: i0.Input
|
|
2520
|
+
}], field: [{
|
|
2521
|
+
type: i0.Input
|
|
2522
|
+
}], type: [{
|
|
2523
|
+
type: i0.Input
|
|
2524
|
+
}], descending: [{
|
|
2525
|
+
type: i0.Input
|
|
2526
|
+
}] } });
|
|
2373
2527
|
|
|
2374
2528
|
/**
|
|
2375
2529
|
* Adds a section on the right side of the toolbar for items that substantially change
|
|
@@ -2380,15 +2534,18 @@
|
|
|
2380
2534
|
var SkyListToolbarViewActionsComponent = /** @class */ (function () {
|
|
2381
2535
|
function SkyListToolbarViewActionsComponent() {
|
|
2382
2536
|
}
|
|
2383
|
-
SkyListToolbarViewActionsComponent = __decorate([
|
|
2384
|
-
core.Component({
|
|
2385
|
-
selector: 'sky-list-toolbar-view-actions',
|
|
2386
|
-
template: "<ng-content></ng-content>\n",
|
|
2387
|
-
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}"]
|
|
2388
|
-
})
|
|
2389
|
-
], SkyListToolbarViewActionsComponent);
|
|
2390
2537
|
return SkyListToolbarViewActionsComponent;
|
|
2391
2538
|
}());
|
|
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: [{
|
|
2542
|
+
type: i0.Component,
|
|
2543
|
+
args: [{
|
|
2544
|
+
selector: 'sky-list-toolbar-view-actions',
|
|
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"],
|
|
2547
|
+
}]
|
|
2548
|
+
}] });
|
|
2392
2549
|
|
|
2393
2550
|
/**
|
|
2394
2551
|
* @internal
|
|
@@ -2412,31 +2569,6 @@
|
|
|
2412
2569
|
return ListToolbarConfigSetSortSelectorEnabledAction;
|
|
2413
2570
|
}());
|
|
2414
2571
|
|
|
2415
|
-
/**
|
|
2416
|
-
* @internal
|
|
2417
|
-
*/
|
|
2418
|
-
var ListToolbarConfigModel = /** @class */ (function () {
|
|
2419
|
-
function ListToolbarConfigModel(data) {
|
|
2420
|
-
this.searchEnabled = true;
|
|
2421
|
-
this.sortSelectorEnabled = true;
|
|
2422
|
-
if (data) {
|
|
2423
|
-
this.searchEnabled = data.searchEnabled;
|
|
2424
|
-
this.sortSelectorEnabled = data.sortSelectorEnabled;
|
|
2425
|
-
}
|
|
2426
|
-
}
|
|
2427
|
-
return ListToolbarConfigModel;
|
|
2428
|
-
}());
|
|
2429
|
-
|
|
2430
|
-
/**
|
|
2431
|
-
* @internal
|
|
2432
|
-
*/
|
|
2433
|
-
var ListToolbarStateModel = /** @class */ (function () {
|
|
2434
|
-
function ListToolbarStateModel() {
|
|
2435
|
-
this.config = new ListToolbarConfigModel();
|
|
2436
|
-
}
|
|
2437
|
-
return ListToolbarStateModel;
|
|
2438
|
-
}());
|
|
2439
|
-
|
|
2440
2572
|
/**
|
|
2441
2573
|
* @internal
|
|
2442
2574
|
*/
|
|
@@ -2445,11 +2577,13 @@
|
|
|
2445
2577
|
function ListToolbarStateDispatcher() {
|
|
2446
2578
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2447
2579
|
}
|
|
2448
|
-
ListToolbarStateDispatcher = __decorate([
|
|
2449
|
-
core.Injectable()
|
|
2450
|
-
], ListToolbarStateDispatcher);
|
|
2451
2580
|
return ListToolbarStateDispatcher;
|
|
2452
2581
|
}(listBuilderCommon.StateDispatcher));
|
|
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: [{
|
|
2585
|
+
type: i0.Injectable
|
|
2586
|
+
}] });
|
|
2453
2587
|
/**
|
|
2454
2588
|
* @internal
|
|
2455
2589
|
*/
|
|
@@ -2464,15 +2598,28 @@
|
|
|
2464
2598
|
/**
|
|
2465
2599
|
* @internal
|
|
2466
2600
|
*/
|
|
2467
|
-
var
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
.
|
|
2474
|
-
|
|
2475
|
-
|
|
2601
|
+
var ListToolbarConfigModel = /** @class */ (function () {
|
|
2602
|
+
function ListToolbarConfigModel(data) {
|
|
2603
|
+
this.searchEnabled = true;
|
|
2604
|
+
this.sortSelectorEnabled = true;
|
|
2605
|
+
if (data) {
|
|
2606
|
+
this.searchEnabled = data.searchEnabled;
|
|
2607
|
+
this.sortSelectorEnabled = data.sortSelectorEnabled;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
return ListToolbarConfigModel;
|
|
2611
|
+
}());
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* @internal
|
|
2615
|
+
*/
|
|
2616
|
+
var ListToolbarConfigOrchestrator = /** @class */ (function (_super) {
|
|
2617
|
+
__extends(ListToolbarConfigOrchestrator, _super);
|
|
2618
|
+
/* istanbul ignore next */
|
|
2619
|
+
function ListToolbarConfigOrchestrator() {
|
|
2620
|
+
var _this = _super.call(this) || this;
|
|
2621
|
+
_this.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
|
|
2622
|
+
return _this;
|
|
2476
2623
|
}
|
|
2477
2624
|
ListToolbarConfigOrchestrator.prototype.setSearchEnabled = function (state, action) {
|
|
2478
2625
|
return new ListToolbarConfigModel(Object.assign({}, state, { searchEnabled: action.enabled }));
|
|
@@ -2483,6 +2630,16 @@
|
|
|
2483
2630
|
return ListToolbarConfigOrchestrator;
|
|
2484
2631
|
}(ListToolbarStateOrchestrator));
|
|
2485
2632
|
|
|
2633
|
+
/**
|
|
2634
|
+
* @internal
|
|
2635
|
+
*/
|
|
2636
|
+
var ListToolbarStateModel = /** @class */ (function () {
|
|
2637
|
+
function ListToolbarStateModel() {
|
|
2638
|
+
this.config = new ListToolbarConfigModel();
|
|
2639
|
+
}
|
|
2640
|
+
return ListToolbarStateModel;
|
|
2641
|
+
}());
|
|
2642
|
+
|
|
2486
2643
|
/**
|
|
2487
2644
|
* @internal
|
|
2488
2645
|
*/
|
|
@@ -2490,20 +2647,191 @@
|
|
|
2490
2647
|
__extends(ListToolbarState, _super);
|
|
2491
2648
|
function ListToolbarState(initialState, dispatcher) {
|
|
2492
2649
|
var _this = _super.call(this, initialState, dispatcher) || this;
|
|
2493
|
-
_this
|
|
2494
|
-
.register('config', ListToolbarConfigOrchestrator)
|
|
2495
|
-
.begin();
|
|
2650
|
+
_this.register('config', ListToolbarConfigOrchestrator).begin();
|
|
2496
2651
|
return _this;
|
|
2497
2652
|
}
|
|
2498
|
-
ListToolbarState.ctorParameters = function () { return [
|
|
2499
|
-
{ type: ListToolbarStateModel },
|
|
2500
|
-
{ type: ListToolbarStateDispatcher }
|
|
2501
|
-
]; };
|
|
2502
|
-
ListToolbarState = __decorate([
|
|
2503
|
-
core.Injectable()
|
|
2504
|
-
], ListToolbarState);
|
|
2505
2653
|
return ListToolbarState;
|
|
2506
2654
|
}(listBuilderCommon.StateNode));
|
|
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: [{
|
|
2658
|
+
type: i0.Injectable
|
|
2659
|
+
}], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* @internal
|
|
2663
|
+
*/
|
|
2664
|
+
var SkyListToolbarItemRendererComponent = /** @class */ (function () {
|
|
2665
|
+
function SkyListToolbarItemRendererComponent() {
|
|
2666
|
+
}
|
|
2667
|
+
SkyListToolbarItemRendererComponent.prototype.ngOnInit = function () {
|
|
2668
|
+
if (this.template !== undefined) {
|
|
2669
|
+
this.container.createEmbeddedView(this.template, this);
|
|
2670
|
+
}
|
|
2671
|
+
};
|
|
2672
|
+
return SkyListToolbarItemRendererComponent;
|
|
2673
|
+
}());
|
|
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: [{
|
|
2677
|
+
type: i0.Component,
|
|
2678
|
+
args: [{
|
|
2679
|
+
selector: 'sky-list-toolbar-item-renderer',
|
|
2680
|
+
template: '<ng-template #container></ng-template>',
|
|
2681
|
+
}]
|
|
2682
|
+
}], propDecorators: { template: [{
|
|
2683
|
+
type: i0.Input
|
|
2684
|
+
}], container: [{
|
|
2685
|
+
type: i0.ViewChild,
|
|
2686
|
+
args: ['container', {
|
|
2687
|
+
read: i0.ViewContainerRef,
|
|
2688
|
+
static: true,
|
|
2689
|
+
}]
|
|
2690
|
+
}] } });
|
|
2691
|
+
|
|
2692
|
+
var uniqueId = 0;
|
|
2693
|
+
/**
|
|
2694
|
+
* @internal
|
|
2695
|
+
*/
|
|
2696
|
+
var SkyListMultiselectToolbarComponent = /** @class */ (function () {
|
|
2697
|
+
function SkyListMultiselectToolbarComponent(state, dispatcher) {
|
|
2698
|
+
this.state = state;
|
|
2699
|
+
this.dispatcher = dispatcher;
|
|
2700
|
+
this.showOnlySelected = false;
|
|
2701
|
+
this.multiselectToolbarId = "sky-list-multiselect-toolbar-" + uniqueId++;
|
|
2702
|
+
this.selectedIdMap = new Map();
|
|
2703
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
2704
|
+
}
|
|
2705
|
+
SkyListMultiselectToolbarComponent.prototype.ngOnInit = function () {
|
|
2706
|
+
var _this = this;
|
|
2707
|
+
this.state
|
|
2708
|
+
.pipe(operators.map(function (t) { return t.selected.item; }), operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged(this.selectedMapEqual))
|
|
2709
|
+
.subscribe(function (model) {
|
|
2710
|
+
_this.selectedIdMap = model.selectedIdMap;
|
|
2711
|
+
if (_this.showOnlySelected) {
|
|
2712
|
+
_this.reapplyFilter(true);
|
|
2713
|
+
}
|
|
2714
|
+
});
|
|
2715
|
+
// If 'show-selected' filter is programatically set from a child component (e.g. checkilst),
|
|
2716
|
+
// make sure the checked state of the 'show-selected' checkbox stays in sync.
|
|
2717
|
+
this.state
|
|
2718
|
+
.pipe(operators.map(function (t) { return t.filters; }), operators.takeUntil(this.ngUnsubscribe), operators.distinctUntilChanged(this.showSelectedValuesEqual))
|
|
2719
|
+
.subscribe(function (filters) {
|
|
2720
|
+
var showSelectedFilter = filters.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2721
|
+
if (showSelectedFilter) {
|
|
2722
|
+
_this.showOnlySelected = showSelectedFilter.value === 'true';
|
|
2723
|
+
}
|
|
2724
|
+
});
|
|
2725
|
+
};
|
|
2726
|
+
SkyListMultiselectToolbarComponent.prototype.ngOnDestroy = function () {
|
|
2727
|
+
this.ngUnsubscribe.next();
|
|
2728
|
+
this.ngUnsubscribe.complete();
|
|
2729
|
+
};
|
|
2730
|
+
SkyListMultiselectToolbarComponent.prototype.selectAll = function () {
|
|
2731
|
+
var _this = this;
|
|
2732
|
+
this.state
|
|
2733
|
+
.pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
|
|
2734
|
+
.subscribe(function (items) {
|
|
2735
|
+
_this.dispatcher.setSelected(items.map(function (item) { return item.id; }), true);
|
|
2736
|
+
if (_this.showOnlySelected) {
|
|
2737
|
+
_this.reapplyFilter(_this.showOnlySelected);
|
|
2738
|
+
}
|
|
2739
|
+
});
|
|
2740
|
+
};
|
|
2741
|
+
SkyListMultiselectToolbarComponent.prototype.clearSelections = function () {
|
|
2742
|
+
var _this = this;
|
|
2743
|
+
this.state
|
|
2744
|
+
.pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
|
|
2745
|
+
.subscribe(function (items) {
|
|
2746
|
+
_this.dispatcher.setSelected(items.map(function (item) { return item.id; }), false);
|
|
2747
|
+
if (_this.showOnlySelected) {
|
|
2748
|
+
_this.reapplyFilter(_this.showOnlySelected);
|
|
2749
|
+
}
|
|
2750
|
+
});
|
|
2751
|
+
};
|
|
2752
|
+
SkyListMultiselectToolbarComponent.prototype.changeVisibleItems = function (change) {
|
|
2753
|
+
this.showOnlySelected = change.checked;
|
|
2754
|
+
this.reapplyFilter(change.checked);
|
|
2755
|
+
};
|
|
2756
|
+
SkyListMultiselectToolbarComponent.prototype.reapplyFilter = function (isSelected) {
|
|
2757
|
+
var _this = this;
|
|
2758
|
+
var self = this;
|
|
2759
|
+
this.state
|
|
2760
|
+
.pipe(operators.map(function (state) { return state.filters; }), operators.take(1))
|
|
2761
|
+
.subscribe(function (filters) {
|
|
2762
|
+
filters = filters.filter(function (filter) { return filter.name !== 'show-selected'; });
|
|
2763
|
+
filters.push(self.getShowSelectedFilter(isSelected));
|
|
2764
|
+
_this.dispatcher.filtersUpdate(filters);
|
|
2765
|
+
});
|
|
2766
|
+
// If "show selected" is checked and paging is enabled, go to page one.
|
|
2767
|
+
/* istanbul ignore else */
|
|
2768
|
+
if (isSelected) {
|
|
2769
|
+
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2770
|
+
if (currentState.paging.pageNumber &&
|
|
2771
|
+
currentState.paging.pageNumber !== 1) {
|
|
2772
|
+
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2773
|
+
}
|
|
2774
|
+
});
|
|
2775
|
+
}
|
|
2776
|
+
this.dispatcher.toolbarSetDisabled(isSelected);
|
|
2777
|
+
};
|
|
2778
|
+
SkyListMultiselectToolbarComponent.prototype.getShowSelectedFilter = function (isSelected) {
|
|
2779
|
+
var _this = this;
|
|
2780
|
+
return new ListFilterModel({
|
|
2781
|
+
name: 'show-selected',
|
|
2782
|
+
value: isSelected.toString(),
|
|
2783
|
+
filterFunction: function (model, showOnlySelected) {
|
|
2784
|
+
/* istanbul ignore else */
|
|
2785
|
+
if (showOnlySelected.toString() !== false.toString()) {
|
|
2786
|
+
return _this.selectedIdMap.get(model.id);
|
|
2787
|
+
}
|
|
2788
|
+
},
|
|
2789
|
+
defaultValue: false.toString(),
|
|
2790
|
+
});
|
|
2791
|
+
};
|
|
2792
|
+
SkyListMultiselectToolbarComponent.prototype.showSelectedValuesEqual = function (prev, next) {
|
|
2793
|
+
var prevShowSelectedFilter = prev.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2794
|
+
var nextShowSelectedFilter = next.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2795
|
+
// Both undefined.
|
|
2796
|
+
if (!prevShowSelectedFilter && !nextShowSelectedFilter) {
|
|
2797
|
+
return true;
|
|
2798
|
+
}
|
|
2799
|
+
// Only one undefined.
|
|
2800
|
+
if ((prevShowSelectedFilter && !nextShowSelectedFilter) ||
|
|
2801
|
+
(!prevShowSelectedFilter && nextShowSelectedFilter)) {
|
|
2802
|
+
return false;
|
|
2803
|
+
}
|
|
2804
|
+
// Defined, but with different "value".
|
|
2805
|
+
return prevShowSelectedFilter.value === nextShowSelectedFilter.value;
|
|
2806
|
+
};
|
|
2807
|
+
SkyListMultiselectToolbarComponent.prototype.selectedMapEqual = function (prev, next) {
|
|
2808
|
+
if (prev.selectedIdMap.size !== next.selectedIdMap.size) {
|
|
2809
|
+
return false;
|
|
2810
|
+
}
|
|
2811
|
+
for (var i = 0; i < next.selectedIdMap.size; i++) {
|
|
2812
|
+
var key = Array.from(next.selectedIdMap.keys())[i];
|
|
2813
|
+
var value = next.selectedIdMap.get(key);
|
|
2814
|
+
/* istanbul ignore next */
|
|
2815
|
+
if (value !== prev.selectedIdMap.get(key)) {
|
|
2816
|
+
return false;
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
return true;
|
|
2820
|
+
};
|
|
2821
|
+
return SkyListMultiselectToolbarComponent;
|
|
2822
|
+
}());
|
|
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: [{
|
|
2826
|
+
type: i0.Component,
|
|
2827
|
+
args: [{
|
|
2828
|
+
selector: 'sky-list-multiselect-toolbar',
|
|
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"],
|
|
2831
|
+
}]
|
|
2832
|
+
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { showOnlySelected: [{
|
|
2833
|
+
type: i0.Input
|
|
2834
|
+
}] } });
|
|
2507
2835
|
|
|
2508
2836
|
var nextId = 0;
|
|
2509
2837
|
/**
|
|
@@ -2557,21 +2885,23 @@
|
|
|
2557
2885
|
set: function (value) {
|
|
2558
2886
|
this._inMemorySearchEnabled = value;
|
|
2559
2887
|
},
|
|
2560
|
-
enumerable:
|
|
2888
|
+
enumerable: false,
|
|
2561
2889
|
configurable: true
|
|
2562
2890
|
});
|
|
2563
2891
|
Object.defineProperty(SkyListToolbarComponent.prototype, "isFilterBarDisplayed", {
|
|
2564
2892
|
get: function () {
|
|
2565
|
-
return !this.isToolbarDisabled &&
|
|
2893
|
+
return (!this.isToolbarDisabled &&
|
|
2894
|
+
this.hasInlineFilters &&
|
|
2895
|
+
this.inlineFilterBarExpanded);
|
|
2566
2896
|
},
|
|
2567
|
-
enumerable:
|
|
2897
|
+
enumerable: false,
|
|
2568
2898
|
configurable: true
|
|
2569
2899
|
});
|
|
2570
2900
|
Object.defineProperty(SkyListToolbarComponent.prototype, "filterButtonAriaControls", {
|
|
2571
2901
|
get: function () {
|
|
2572
2902
|
return this.isFilterBarDisplayed ? this.listFilterInlineId : undefined;
|
|
2573
2903
|
},
|
|
2574
|
-
enumerable:
|
|
2904
|
+
enumerable: false,
|
|
2575
2905
|
configurable: true
|
|
2576
2906
|
});
|
|
2577
2907
|
SkyListToolbarComponent.prototype.ngOnInit = function () {
|
|
@@ -2601,23 +2931,20 @@
|
|
|
2601
2931
|
id: 'sort-selector',
|
|
2602
2932
|
template: _this.sortSelectorTemplate,
|
|
2603
2933
|
location: 'left',
|
|
2604
|
-
index: _this.sortSelectorItemToolbarIndex
|
|
2605
|
-
})
|
|
2934
|
+
index: _this.sortSelectorItemToolbarIndex,
|
|
2935
|
+
}),
|
|
2606
2936
|
]);
|
|
2607
2937
|
}
|
|
2608
2938
|
else if (currentSort.length < 1 && _this.hasSortSelectors) {
|
|
2609
2939
|
_this.hasSortSelectors = false;
|
|
2610
|
-
_this.dispatcher.toolbarRemoveItems([
|
|
2611
|
-
'sort-selector'
|
|
2612
|
-
]);
|
|
2940
|
+
_this.dispatcher.toolbarRemoveItems(['sort-selector']);
|
|
2613
2941
|
}
|
|
2614
2942
|
});
|
|
2615
2943
|
this.searchTextInput = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.search.searchText; }), operators.distinctUntilChanged());
|
|
2616
2944
|
this.view = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.views.active; }), operators.distinctUntilChanged());
|
|
2617
2945
|
this.watchTemplates();
|
|
2618
2946
|
this.type = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (state) { return state.toolbar.type; }), operators.distinctUntilChanged());
|
|
2619
|
-
this.type.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2620
|
-
.subscribe(function (toolbarType) {
|
|
2947
|
+
this.type.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (toolbarType) {
|
|
2621
2948
|
if (toolbarType === 'search') {
|
|
2622
2949
|
_this.dispatcher.toolbarRemoveItems(['search']);
|
|
2623
2950
|
}
|
|
@@ -2626,28 +2953,28 @@
|
|
|
2626
2953
|
new ListToolbarItemModel({
|
|
2627
2954
|
id: 'search',
|
|
2628
2955
|
template: _this.searchTemplate,
|
|
2629
|
-
location: 'right'
|
|
2630
|
-
})
|
|
2956
|
+
location: 'right',
|
|
2957
|
+
}),
|
|
2631
2958
|
]);
|
|
2632
2959
|
}
|
|
2633
2960
|
});
|
|
2634
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; }));
|
|
2635
|
-
this.state
|
|
2636
|
-
.
|
|
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); });
|
|
2637
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; }));
|
|
2638
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; }));
|
|
2639
2967
|
this.hasAppliedFilters = this.state.pipe(operators.takeUntil(this.ngUnsubscribe), operators.map(function (s) { return s.filters; }), operators.distinctUntilChanged(), operators.map(function (filters) {
|
|
2640
2968
|
var activeFilters = filters.filter(function (f) {
|
|
2641
|
-
return f.value !== '' &&
|
|
2969
|
+
return (f.value !== '' &&
|
|
2642
2970
|
f.value !== undefined &&
|
|
2643
2971
|
f.value !== false &&
|
|
2644
|
-
f.value !== f.defaultValue;
|
|
2972
|
+
f.value !== f.defaultValue);
|
|
2645
2973
|
});
|
|
2646
2974
|
return activeFilters.length > 0;
|
|
2647
2975
|
}));
|
|
2648
|
-
this.state.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2649
|
-
.
|
|
2650
|
-
_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;
|
|
2651
2978
|
_this.changeDetector.detectChanges();
|
|
2652
2979
|
});
|
|
2653
2980
|
};
|
|
@@ -2655,18 +2982,15 @@
|
|
|
2655
2982
|
var _this = this;
|
|
2656
2983
|
// Inject custom toolbar items.
|
|
2657
2984
|
this.toolbarItems.forEach(function (toolbarItem) {
|
|
2658
|
-
_this.dispatcher.toolbarAddItems([
|
|
2659
|
-
new ListToolbarItemModel(toolbarItem)
|
|
2660
|
-
]);
|
|
2985
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(toolbarItem)]);
|
|
2661
2986
|
_this.customItemIds.push(toolbarItem.id);
|
|
2662
2987
|
});
|
|
2663
|
-
this.toolbarItems.changes
|
|
2988
|
+
this.toolbarItems.changes
|
|
2989
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2664
2990
|
.subscribe(function (newItems) {
|
|
2665
2991
|
newItems.forEach(function (item) {
|
|
2666
2992
|
if (_this.customItemIds.indexOf(item.id) < 0) {
|
|
2667
|
-
_this.dispatcher.toolbarAddItems([
|
|
2668
|
-
new ListToolbarItemModel(item)
|
|
2669
|
-
]);
|
|
2993
|
+
_this.dispatcher.toolbarAddItems([new ListToolbarItemModel(item)]);
|
|
2670
2994
|
_this.customItemIds.push(item.id);
|
|
2671
2995
|
}
|
|
2672
2996
|
});
|
|
@@ -2679,30 +3003,28 @@
|
|
|
2679
3003
|
});
|
|
2680
3004
|
_this.dispatcher.toolbarRemoveItems(itemsToRemove);
|
|
2681
3005
|
});
|
|
2682
|
-
var sortModels = this.toolbarSorts.map(function (sort) {
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
});
|
|
2690
|
-
});
|
|
3006
|
+
var sortModels = this.toolbarSorts.map(function (sort) { return new ListSortLabelModel({
|
|
3007
|
+
text: sort.label,
|
|
3008
|
+
fieldSelector: sort.field,
|
|
3009
|
+
fieldType: sort.type,
|
|
3010
|
+
global: true,
|
|
3011
|
+
descending: sort.descending,
|
|
3012
|
+
}); });
|
|
2691
3013
|
this.dispatcher.sortSetGlobal(sortModels);
|
|
2692
3014
|
// Add inline filters.
|
|
2693
|
-
this.showFilterSummary =
|
|
2694
|
-
this.hasInlineFilters =
|
|
3015
|
+
this.showFilterSummary = this.filterSummary.length > 0;
|
|
3016
|
+
this.hasInlineFilters = this.inlineFilter.length > 0;
|
|
2695
3017
|
if (this.hasInlineFilters) {
|
|
2696
3018
|
this.dispatcher.toolbarAddItems([
|
|
2697
3019
|
new ListToolbarItemModel({
|
|
2698
3020
|
template: this.inlineFilterButtonTemplate,
|
|
2699
3021
|
location: 'left',
|
|
2700
|
-
index: this.inlineFiltersItemToolbarIndex
|
|
2701
|
-
})
|
|
3022
|
+
index: this.inlineFiltersItemToolbarIndex,
|
|
3023
|
+
}),
|
|
2702
3024
|
]);
|
|
2703
3025
|
}
|
|
2704
3026
|
// Check for view actions
|
|
2705
|
-
this.hasViewActions =
|
|
3027
|
+
this.hasViewActions = this.viewActions.length > 0;
|
|
2706
3028
|
};
|
|
2707
3029
|
SkyListToolbarComponent.prototype.ngOnDestroy = function () {
|
|
2708
3030
|
this.searchApplied.complete();
|
|
@@ -2712,10 +3034,13 @@
|
|
|
2712
3034
|
SkyListToolbarComponent.prototype.setSort = function (sort) {
|
|
2713
3035
|
var _this = this;
|
|
2714
3036
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2715
|
-
if (currentState.paging.pageNumber &&
|
|
3037
|
+
if (currentState.paging.pageNumber &&
|
|
3038
|
+
currentState.paging.pageNumber !== 1) {
|
|
2716
3039
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2717
3040
|
}
|
|
2718
|
-
_this.dispatcher.sortSetFieldSelectors([
|
|
3041
|
+
_this.dispatcher.sortSetFieldSelectors([
|
|
3042
|
+
{ fieldSelector: sort.fieldSelector, descending: sort.descending },
|
|
3043
|
+
]);
|
|
2719
3044
|
});
|
|
2720
3045
|
};
|
|
2721
3046
|
SkyListToolbarComponent.prototype.inlineFilterButtonClick = function () {
|
|
@@ -2726,7 +3051,8 @@
|
|
|
2726
3051
|
this.searchApplied.next(searchText);
|
|
2727
3052
|
if (this.inMemorySearchEnabled) {
|
|
2728
3053
|
this.state.pipe(operators.take(1)).subscribe(function (currentState) {
|
|
2729
|
-
if (currentState.paging.pageNumber &&
|
|
3054
|
+
if (currentState.paging.pageNumber &&
|
|
3055
|
+
currentState.paging.pageNumber !== 1) {
|
|
2730
3056
|
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2731
3057
|
}
|
|
2732
3058
|
_this.dispatcher.searchSetText(searchText);
|
|
@@ -2734,16 +3060,17 @@
|
|
|
2734
3060
|
}
|
|
2735
3061
|
};
|
|
2736
3062
|
SkyListToolbarComponent.prototype.itemIsInView = function (itemView, activeView) {
|
|
2737
|
-
return
|
|
3063
|
+
return itemView === undefined || itemView === activeView;
|
|
2738
3064
|
};
|
|
2739
3065
|
SkyListToolbarComponent.prototype.getSortSelectors = function () {
|
|
2740
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) {
|
|
2741
3067
|
// Get sorts that are in the global that are not in the available
|
|
2742
|
-
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
2743
|
-
|
|
3068
|
+
var sorts = global.filter(function (g) { return available.filter(function (a) { return a.fieldSelector === g.fieldSelector; })
|
|
3069
|
+
.length === 0; });
|
|
3070
|
+
var resultSortSelectors = __spreadArray(__spreadArray([], __read(sorts)), __read(available)).map(function (sortLabels) {
|
|
2744
3071
|
var fs = fieldSelectors.filter(function (f) {
|
|
2745
|
-
return f.fieldSelector === sortLabels.fieldSelector
|
|
2746
|
-
|
|
3072
|
+
return (f.fieldSelector === sortLabels.fieldSelector &&
|
|
3073
|
+
f.descending === sortLabels.descending);
|
|
2747
3074
|
});
|
|
2748
3075
|
var selected = false;
|
|
2749
3076
|
if (fs.length > 0) {
|
|
@@ -2751,7 +3078,7 @@
|
|
|
2751
3078
|
}
|
|
2752
3079
|
return {
|
|
2753
3080
|
sort: sortLabels,
|
|
2754
|
-
selected: selected
|
|
3081
|
+
selected: selected,
|
|
2755
3082
|
};
|
|
2756
3083
|
});
|
|
2757
3084
|
return resultSortSelectors;
|
|
@@ -2769,7 +3096,8 @@
|
|
|
2769
3096
|
templates[item.location].push(item);
|
|
2770
3097
|
});
|
|
2771
3098
|
return templates;
|
|
2772
|
-
})
|
|
3099
|
+
})
|
|
3100
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2773
3101
|
.subscribe(function (value) {
|
|
2774
3102
|
_this.leftTemplates = value.left;
|
|
2775
3103
|
_this.centerTemplates = value.center;
|
|
@@ -2777,258 +3105,79 @@
|
|
|
2777
3105
|
_this.changeDetector.markForCheck();
|
|
2778
3106
|
});
|
|
2779
3107
|
};
|
|
2780
|
-
SkyListToolbarComponent.ctorParameters = function () { return [
|
|
2781
|
-
{ type: core.ChangeDetectorRef },
|
|
2782
|
-
{ type: ListState },
|
|
2783
|
-
{ type: ListStateDispatcher },
|
|
2784
|
-
{ type: ListToolbarState },
|
|
2785
|
-
{ type: ListToolbarStateDispatcher }
|
|
2786
|
-
]; };
|
|
2787
|
-
__decorate([
|
|
2788
|
-
core.Input()
|
|
2789
|
-
], SkyListToolbarComponent.prototype, "inMemorySearchEnabled", null);
|
|
2790
|
-
__decorate([
|
|
2791
|
-
core.Input()
|
|
2792
|
-
], SkyListToolbarComponent.prototype, "placeholder", void 0);
|
|
2793
|
-
__decorate([
|
|
2794
|
-
core.Input()
|
|
2795
|
-
], SkyListToolbarComponent.prototype, "searchEnabled", void 0);
|
|
2796
|
-
__decorate([
|
|
2797
|
-
core.ViewChild(lookup.SkySearchComponent, {
|
|
2798
|
-
read: lookup.SkySearchComponent,
|
|
2799
|
-
static: false
|
|
2800
|
-
})
|
|
2801
|
-
], SkyListToolbarComponent.prototype, "searchComponent", void 0);
|
|
2802
|
-
__decorate([
|
|
2803
|
-
core.Input()
|
|
2804
|
-
], SkyListToolbarComponent.prototype, "sortSelectorEnabled", void 0);
|
|
2805
|
-
__decorate([
|
|
2806
|
-
core.Input()
|
|
2807
|
-
], SkyListToolbarComponent.prototype, "toolbarType", void 0);
|
|
2808
|
-
__decorate([
|
|
2809
|
-
core.Input()
|
|
2810
|
-
], SkyListToolbarComponent.prototype, "searchText", void 0);
|
|
2811
|
-
__decorate([
|
|
2812
|
-
core.ContentChildren(SkyListToolbarItemComponent)
|
|
2813
|
-
], SkyListToolbarComponent.prototype, "toolbarItems", void 0);
|
|
2814
|
-
__decorate([
|
|
2815
|
-
core.ContentChildren(SkyListToolbarSortComponent)
|
|
2816
|
-
], SkyListToolbarComponent.prototype, "toolbarSorts", void 0);
|
|
2817
|
-
__decorate([
|
|
2818
|
-
core.ContentChildren(SkyListFilterSummaryComponent)
|
|
2819
|
-
], SkyListToolbarComponent.prototype, "filterSummary", void 0);
|
|
2820
|
-
__decorate([
|
|
2821
|
-
core.ContentChildren(SkyListFilterInlineComponent)
|
|
2822
|
-
], SkyListToolbarComponent.prototype, "inlineFilter", void 0);
|
|
2823
|
-
__decorate([
|
|
2824
|
-
core.ContentChildren(SkyListToolbarViewActionsComponent)
|
|
2825
|
-
], SkyListToolbarComponent.prototype, "viewActions", void 0);
|
|
2826
|
-
__decorate([
|
|
2827
|
-
core.ViewChild('search', {
|
|
2828
|
-
read: core.TemplateRef,
|
|
2829
|
-
static: true
|
|
2830
|
-
})
|
|
2831
|
-
], SkyListToolbarComponent.prototype, "searchTemplate", void 0);
|
|
2832
|
-
__decorate([
|
|
2833
|
-
core.ViewChild('sortSelector', {
|
|
2834
|
-
read: core.TemplateRef,
|
|
2835
|
-
static: true
|
|
2836
|
-
})
|
|
2837
|
-
], SkyListToolbarComponent.prototype, "sortSelectorTemplate", void 0);
|
|
2838
|
-
__decorate([
|
|
2839
|
-
core.ViewChild('inlineFilterButton', {
|
|
2840
|
-
read: core.TemplateRef,
|
|
2841
|
-
static: true
|
|
2842
|
-
})
|
|
2843
|
-
], SkyListToolbarComponent.prototype, "inlineFilterButtonTemplate", void 0);
|
|
2844
|
-
SkyListToolbarComponent = __decorate([
|
|
2845
|
-
core.Component({
|
|
2846
|
-
selector: 'sky-list-toolbar',
|
|
2847
|
-
template: "<div class=\"sky-list-toolbar-container\">\n <sky-toolbar *ngIf=\"(type | async) !== 'search'\">\n\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 *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\n select=\"sky-list-toolbar-view-actions\"\n >\n </ng-content>\n </sky-toolbar-view-actions>\n </sky-toolbar-section>\n\n <sky-toolbar-section *ngIf=\"showFilterSummary && (hasAppliedFilters | async)\">\n <ng-content select=\"sky-list-filter-summary\">\n </ng-content>\n </sky-toolbar-section>\n </sky-toolbar>\n\n <div *ngIf=\"(type | async) === 'search' &&\n ((isSearchEnabled | async) || hasAdditionalToolbarSection)\"\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 *ngFor=\"let item of rightTemplates\"\n [attr.sky-toolbar-id]=\"item.id\"\n >\n <sky-list-toolbar-item-renderer *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\n select=\"sky-list-toolbar-view-actions\"\n >\n </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\">\n </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\"\n class=\"sky-list-toolbar-search-wrapper\"\n >\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\n select=\"sky-list-toolbar-search-actions\"\n ></ng-content>\n </div>\n</ng-template>\n\n<ng-template #sortSelector>\n <div *ngIf=\"(isSortSelectorEnabled | async) && (sortSelectors | async).length > 0\"\n class=\"sky-toolbar-item-sort-container\"\n >\n <sky-sort [showButtonText]=\"true\">\n <sky-sort-item *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",
|
|
2848
|
-
providers: [
|
|
2849
|
-
ListToolbarState,
|
|
2850
|
-
ListToolbarStateDispatcher,
|
|
2851
|
-
ListToolbarStateModel
|
|
2852
|
-
],
|
|
2853
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
2854
|
-
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-search-dismiss-absolute,.sky-list-toolbar-search ::ng-deep .sky-toolbar-container{background-color:#eeeeef}.sky-list-toolbar-search ::ng-deep .sky-search-btn:disabled,.sky-list-toolbar-search ::ng-deep input[type=text]: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}"]
|
|
2855
|
-
})
|
|
2856
|
-
], SkyListToolbarComponent);
|
|
2857
3108
|
return SkyListToolbarComponent;
|
|
2858
3109
|
}());
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
})
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
.pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
|
|
2931
|
-
.subscribe(function (items) {
|
|
2932
|
-
_this.dispatcher.setSelected(items.map(function (item) { return item.id; }), true);
|
|
2933
|
-
if (_this.showOnlySelected) {
|
|
2934
|
-
_this.reapplyFilter(_this.showOnlySelected);
|
|
2935
|
-
}
|
|
2936
|
-
});
|
|
2937
|
-
};
|
|
2938
|
-
SkyListMultiselectToolbarComponent.prototype.clearSelections = function () {
|
|
2939
|
-
var _this = this;
|
|
2940
|
-
this.state
|
|
2941
|
-
.pipe(operators.map(function (state) { return state.items.items; }), operators.take(1))
|
|
2942
|
-
.subscribe(function (items) {
|
|
2943
|
-
_this.dispatcher.setSelected(items.map(function (item) { return item.id; }), false);
|
|
2944
|
-
if (_this.showOnlySelected) {
|
|
2945
|
-
_this.reapplyFilter(_this.showOnlySelected);
|
|
2946
|
-
}
|
|
2947
|
-
});
|
|
2948
|
-
};
|
|
2949
|
-
SkyListMultiselectToolbarComponent.prototype.changeVisibleItems = function (change) {
|
|
2950
|
-
this.showOnlySelected = change.checked;
|
|
2951
|
-
this.reapplyFilter(change.checked);
|
|
2952
|
-
};
|
|
2953
|
-
SkyListMultiselectToolbarComponent.prototype.reapplyFilter = function (isSelected) {
|
|
2954
|
-
var _this = this;
|
|
2955
|
-
var self = this;
|
|
2956
|
-
this.state
|
|
2957
|
-
.pipe(operators.map(function (state) { return state.filters; }), operators.take(1))
|
|
2958
|
-
.subscribe(function (filters) {
|
|
2959
|
-
filters = filters.filter(function (filter) { return filter.name !== 'show-selected'; });
|
|
2960
|
-
filters.push(self.getShowSelectedFilter(isSelected));
|
|
2961
|
-
_this.dispatcher.filtersUpdate(filters);
|
|
2962
|
-
});
|
|
2963
|
-
// If "show selected" is checked and paging is enabled, go to page one.
|
|
2964
|
-
/* istanbul ignore else */
|
|
2965
|
-
if (isSelected) {
|
|
2966
|
-
this.state.pipe(operators.take(1))
|
|
2967
|
-
.subscribe(function (currentState) {
|
|
2968
|
-
if (currentState.paging.pageNumber && currentState.paging.pageNumber !== 1) {
|
|
2969
|
-
_this.dispatcher.next(new ListPagingSetPageNumberAction(Number(1)));
|
|
2970
|
-
}
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
|
-
this.dispatcher.toolbarSetDisabled(isSelected);
|
|
2974
|
-
};
|
|
2975
|
-
SkyListMultiselectToolbarComponent.prototype.getShowSelectedFilter = function (isSelected) {
|
|
2976
|
-
var _this = this;
|
|
2977
|
-
return new ListFilterModel({
|
|
2978
|
-
name: 'show-selected',
|
|
2979
|
-
value: isSelected.toString(),
|
|
2980
|
-
filterFunction: function (model, showOnlySelected) {
|
|
2981
|
-
/* istanbul ignore else */
|
|
2982
|
-
if (showOnlySelected.toString() !== false.toString()) {
|
|
2983
|
-
return _this.selectedIdMap.get(model.id);
|
|
2984
|
-
}
|
|
2985
|
-
},
|
|
2986
|
-
defaultValue: false.toString()
|
|
2987
|
-
});
|
|
2988
|
-
};
|
|
2989
|
-
SkyListMultiselectToolbarComponent.prototype.showSelectedValuesEqual = function (prev, next) {
|
|
2990
|
-
var prevShowSelectedFilter = prev.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2991
|
-
var nextShowSelectedFilter = next.find(function (filter) { return filter.name === 'show-selected'; });
|
|
2992
|
-
// Both undefined.
|
|
2993
|
-
if (!prevShowSelectedFilter && !nextShowSelectedFilter) {
|
|
2994
|
-
return true;
|
|
2995
|
-
}
|
|
2996
|
-
// Only one undefined.
|
|
2997
|
-
if ((prevShowSelectedFilter && !nextShowSelectedFilter) || (!prevShowSelectedFilter && nextShowSelectedFilter)) {
|
|
2998
|
-
return false;
|
|
2999
|
-
}
|
|
3000
|
-
// Defined, but with different "value".
|
|
3001
|
-
return prevShowSelectedFilter.value === nextShowSelectedFilter.value;
|
|
3002
|
-
};
|
|
3003
|
-
SkyListMultiselectToolbarComponent.prototype.selectedMapEqual = function (prev, next) {
|
|
3004
|
-
if (prev.selectedIdMap.size !== next.selectedIdMap.size) {
|
|
3005
|
-
return false;
|
|
3006
|
-
}
|
|
3007
|
-
for (var i = 0; i < next.selectedIdMap.size; i++) {
|
|
3008
|
-
var key = Array.from(next.selectedIdMap.keys())[i];
|
|
3009
|
-
var value = next.selectedIdMap.get(key);
|
|
3010
|
-
if (value !== prev.selectedIdMap.get(key)) {
|
|
3011
|
-
return false;
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
|
-
return true;
|
|
3015
|
-
};
|
|
3016
|
-
SkyListMultiselectToolbarComponent.ctorParameters = function () { return [
|
|
3017
|
-
{ type: ListState },
|
|
3018
|
-
{ type: ListStateDispatcher }
|
|
3019
|
-
]; };
|
|
3020
|
-
__decorate([
|
|
3021
|
-
core.Input()
|
|
3022
|
-
], SkyListMultiselectToolbarComponent.prototype, "showOnlySelected", void 0);
|
|
3023
|
-
SkyListMultiselectToolbarComponent = __decorate([
|
|
3024
|
-
core.Component({
|
|
3025
|
-
selector: 'sky-list-multiselect-toolbar',
|
|
3026
|
-
template: "<sky-toolbar\n class=\"sky-list-multiselect-toolbar\"\n>\n <sky-toolbar-section>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer\n [template]=\"selectAllTemplate\"\n >\n </sky-list-toolbar-item-renderer>\n </sky-toolbar-item>\n <sky-toolbar-item>\n <sky-list-toolbar-item-renderer\n [template]=\"clearSelectionsTemplate\"\n >\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",
|
|
3027
|
-
styles: [":host-context(.sky-list-toolbar-search+) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container,:host-context(sky-toolbar+) .sky-list-multiselect-toolbar ::ng-deep .sky-toolbar-container{border-top:none}"]
|
|
3028
|
-
})
|
|
3029
|
-
], SkyListMultiselectToolbarComponent);
|
|
3030
|
-
return SkyListMultiselectToolbarComponent;
|
|
3031
|
-
}());
|
|
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: [
|
|
3112
|
+
ListToolbarState,
|
|
3113
|
+
ListToolbarStateDispatcher,
|
|
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: [{
|
|
3117
|
+
type: i0.Component,
|
|
3118
|
+
args: [{
|
|
3119
|
+
selector: 'sky-list-toolbar',
|
|
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],
|
|
3122
|
+
providers: [
|
|
3123
|
+
ListToolbarState,
|
|
3124
|
+
ListToolbarStateDispatcher,
|
|
3125
|
+
ListToolbarStateModel,
|
|
3126
|
+
],
|
|
3127
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
3128
|
+
}]
|
|
3129
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: ListState }, { type: ListStateDispatcher }, { type: ListToolbarState }, { type: ListToolbarStateDispatcher }]; }, propDecorators: { inMemorySearchEnabled: [{
|
|
3130
|
+
type: i0.Input
|
|
3131
|
+
}], placeholder: [{
|
|
3132
|
+
type: i0.Input
|
|
3133
|
+
}], searchEnabled: [{
|
|
3134
|
+
type: i0.Input
|
|
3135
|
+
}], searchComponent: [{
|
|
3136
|
+
type: i0.ViewChild,
|
|
3137
|
+
args: [i8.SkySearchComponent, {
|
|
3138
|
+
read: i8.SkySearchComponent,
|
|
3139
|
+
static: false,
|
|
3140
|
+
}]
|
|
3141
|
+
}], sortSelectorEnabled: [{
|
|
3142
|
+
type: i0.Input
|
|
3143
|
+
}], toolbarType: [{
|
|
3144
|
+
type: i0.Input
|
|
3145
|
+
}], searchText: [{
|
|
3146
|
+
type: i0.Input
|
|
3147
|
+
}], toolbarItems: [{
|
|
3148
|
+
type: i0.ContentChildren,
|
|
3149
|
+
args: [SkyListToolbarItemComponent]
|
|
3150
|
+
}], toolbarSorts: [{
|
|
3151
|
+
type: i0.ContentChildren,
|
|
3152
|
+
args: [SkyListToolbarSortComponent]
|
|
3153
|
+
}], filterSummary: [{
|
|
3154
|
+
type: i0.ContentChildren,
|
|
3155
|
+
args: [SkyListFilterSummaryComponent]
|
|
3156
|
+
}], inlineFilter: [{
|
|
3157
|
+
type: i0.ContentChildren,
|
|
3158
|
+
args: [SkyListFilterInlineComponent]
|
|
3159
|
+
}], viewActions: [{
|
|
3160
|
+
type: i0.ContentChildren,
|
|
3161
|
+
args: [SkyListToolbarViewActionsComponent]
|
|
3162
|
+
}], searchTemplate: [{
|
|
3163
|
+
type: i0.ViewChild,
|
|
3164
|
+
args: ['search', {
|
|
3165
|
+
read: i0.TemplateRef,
|
|
3166
|
+
static: true,
|
|
3167
|
+
}]
|
|
3168
|
+
}], sortSelectorTemplate: [{
|
|
3169
|
+
type: i0.ViewChild,
|
|
3170
|
+
args: ['sortSelector', {
|
|
3171
|
+
read: i0.TemplateRef,
|
|
3172
|
+
static: true,
|
|
3173
|
+
}]
|
|
3174
|
+
}], inlineFilterButtonTemplate: [{
|
|
3175
|
+
type: i0.ViewChild,
|
|
3176
|
+
args: ['inlineFilterButton', {
|
|
3177
|
+
read: i0.TemplateRef,
|
|
3178
|
+
static: true,
|
|
3179
|
+
}]
|
|
3180
|
+
}] } });
|
|
3032
3181
|
|
|
3033
3182
|
/**
|
|
3034
3183
|
* Displays custom actions in the toolbar beside to the search bar.
|
|
@@ -3036,56 +3185,95 @@
|
|
|
3036
3185
|
var SkyListToolbarSearchActionsComponent = /** @class */ (function () {
|
|
3037
3186
|
function SkyListToolbarSearchActionsComponent() {
|
|
3038
3187
|
}
|
|
3039
|
-
SkyListToolbarSearchActionsComponent = __decorate([
|
|
3040
|
-
core.Component({
|
|
3041
|
-
selector: 'sky-list-toolbar-search-actions',
|
|
3042
|
-
template: "<div\n class=\"sky-list-toolbar-search-actions\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
3043
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3044
|
-
styles: [".sky-list-toolbar-search-actions{margin-left:10px}"]
|
|
3045
|
-
})
|
|
3046
|
-
], SkyListToolbarSearchActionsComponent);
|
|
3047
3188
|
return SkyListToolbarSearchActionsComponent;
|
|
3048
3189
|
}());
|
|
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: [{
|
|
3193
|
+
type: i0.Component,
|
|
3194
|
+
args: [{
|
|
3195
|
+
selector: 'sky-list-toolbar-search-actions',
|
|
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,
|
|
3199
|
+
}]
|
|
3200
|
+
}] });
|
|
3049
3201
|
|
|
3050
3202
|
var SkyListToolbarModule = /** @class */ (function () {
|
|
3051
3203
|
function SkyListToolbarModule() {
|
|
3052
3204
|
}
|
|
3053
|
-
SkyListToolbarModule = __decorate([
|
|
3054
|
-
core.NgModule({
|
|
3055
|
-
declarations: [
|
|
3056
|
-
SkyListToolbarComponent,
|
|
3057
|
-
SkyListToolbarItemComponent,
|
|
3058
|
-
SkyListToolbarItemRendererComponent,
|
|
3059
|
-
SkyListMultiselectToolbarComponent,
|
|
3060
|
-
SkyListToolbarSearchActionsComponent,
|
|
3061
|
-
SkyListToolbarSortComponent,
|
|
3062
|
-
SkyListToolbarViewActionsComponent
|
|
3063
|
-
],
|
|
3064
|
-
imports: [
|
|
3065
|
-
common.CommonModule,
|
|
3066
|
-
forms.SkyCheckboxModule,
|
|
3067
|
-
i18n.SkyI18nModule,
|
|
3068
|
-
layout.SkyToolbarModule,
|
|
3069
|
-
lookup.SkySearchModule,
|
|
3070
|
-
lists.SkySortModule,
|
|
3071
|
-
lists.SkyFilterModule,
|
|
3072
|
-
SkyListFiltersModule,
|
|
3073
|
-
indicators.SkyIconModule,
|
|
3074
|
-
SkyListBuilderResourcesModule
|
|
3075
|
-
],
|
|
3076
|
-
exports: [
|
|
3077
|
-
SkyListToolbarComponent,
|
|
3078
|
-
SkyListToolbarItemComponent,
|
|
3079
|
-
SkyListToolbarItemRendererComponent,
|
|
3080
|
-
SkyListMultiselectToolbarComponent,
|
|
3081
|
-
SkyListToolbarSearchActionsComponent,
|
|
3082
|
-
SkyListToolbarSortComponent,
|
|
3083
|
-
SkyListToolbarViewActionsComponent
|
|
3084
|
-
]
|
|
3085
|
-
})
|
|
3086
|
-
], SkyListToolbarModule);
|
|
3087
3205
|
return SkyListToolbarModule;
|
|
3088
3206
|
}());
|
|
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,
|
|
3209
|
+
SkyListToolbarItemComponent,
|
|
3210
|
+
SkyListToolbarItemRendererComponent,
|
|
3211
|
+
SkyListMultiselectToolbarComponent,
|
|
3212
|
+
SkyListToolbarSearchActionsComponent,
|
|
3213
|
+
SkyListToolbarSortComponent,
|
|
3214
|
+
SkyListToolbarViewActionsComponent], imports: [i4.CommonModule,
|
|
3215
|
+
i5$1.SkyCheckboxModule,
|
|
3216
|
+
i5.SkyI18nModule,
|
|
3217
|
+
i3$2.SkyToolbarModule,
|
|
3218
|
+
i8.SkySearchModule,
|
|
3219
|
+
i3.SkySortModule,
|
|
3220
|
+
i3.SkyFilterModule,
|
|
3221
|
+
SkyListFiltersModule,
|
|
3222
|
+
i3$1.SkyIconModule,
|
|
3223
|
+
SkyListBuilderResourcesModule], exports: [SkyListToolbarComponent,
|
|
3224
|
+
SkyListToolbarItemComponent,
|
|
3225
|
+
SkyListToolbarSearchActionsComponent,
|
|
3226
|
+
SkyListToolbarSortComponent,
|
|
3227
|
+
SkyListToolbarViewActionsComponent] });
|
|
3228
|
+
SkyListToolbarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, imports: [[
|
|
3229
|
+
i4.CommonModule,
|
|
3230
|
+
i5$1.SkyCheckboxModule,
|
|
3231
|
+
i5.SkyI18nModule,
|
|
3232
|
+
i3$2.SkyToolbarModule,
|
|
3233
|
+
i8.SkySearchModule,
|
|
3234
|
+
i3.SkySortModule,
|
|
3235
|
+
i3.SkyFilterModule,
|
|
3236
|
+
SkyListFiltersModule,
|
|
3237
|
+
i3$1.SkyIconModule,
|
|
3238
|
+
SkyListBuilderResourcesModule,
|
|
3239
|
+
]] });
|
|
3240
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyListToolbarModule, decorators: [{
|
|
3241
|
+
type: i0.NgModule,
|
|
3242
|
+
args: [{
|
|
3243
|
+
declarations: [
|
|
3244
|
+
SkyListToolbarComponent,
|
|
3245
|
+
SkyListToolbarItemComponent,
|
|
3246
|
+
SkyListToolbarItemRendererComponent,
|
|
3247
|
+
SkyListMultiselectToolbarComponent,
|
|
3248
|
+
SkyListToolbarSearchActionsComponent,
|
|
3249
|
+
SkyListToolbarSortComponent,
|
|
3250
|
+
SkyListToolbarViewActionsComponent,
|
|
3251
|
+
],
|
|
3252
|
+
imports: [
|
|
3253
|
+
i4.CommonModule,
|
|
3254
|
+
i5$1.SkyCheckboxModule,
|
|
3255
|
+
i5.SkyI18nModule,
|
|
3256
|
+
i3$2.SkyToolbarModule,
|
|
3257
|
+
i8.SkySearchModule,
|
|
3258
|
+
i3.SkySortModule,
|
|
3259
|
+
i3.SkyFilterModule,
|
|
3260
|
+
SkyListFiltersModule,
|
|
3261
|
+
i3$1.SkyIconModule,
|
|
3262
|
+
SkyListBuilderResourcesModule,
|
|
3263
|
+
],
|
|
3264
|
+
exports: [
|
|
3265
|
+
SkyListToolbarComponent,
|
|
3266
|
+
SkyListToolbarItemComponent,
|
|
3267
|
+
SkyListToolbarSearchActionsComponent,
|
|
3268
|
+
SkyListToolbarSortComponent,
|
|
3269
|
+
SkyListToolbarViewActionsComponent,
|
|
3270
|
+
],
|
|
3271
|
+
}]
|
|
3272
|
+
}] });
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Generated bundle index. Do not edit.
|
|
3276
|
+
*/
|
|
3089
3277
|
|
|
3090
3278
|
exports.ListDataProvider = ListDataProvider;
|
|
3091
3279
|
exports.ListDataRequestModel = ListDataRequestModel;
|
|
@@ -3149,29 +3337,19 @@
|
|
|
3149
3337
|
exports.SkyListSecondaryActionsModule = SkyListSecondaryActionsModule;
|
|
3150
3338
|
exports.SkyListToolbarComponent = SkyListToolbarComponent;
|
|
3151
3339
|
exports.SkyListToolbarModule = SkyListToolbarModule;
|
|
3152
|
-
exports
|
|
3153
|
-
exports
|
|
3154
|
-
exports
|
|
3155
|
-
exports
|
|
3156
|
-
exports
|
|
3157
|
-
exports
|
|
3158
|
-
exports
|
|
3159
|
-
exports
|
|
3160
|
-
exports
|
|
3161
|
-
exports
|
|
3162
|
-
exports
|
|
3163
|
-
exports.ɵl = SkyListBuilderResourcesProvider;
|
|
3164
|
-
exports.ɵm = ListToolbarState;
|
|
3165
|
-
exports.ɵn = ListToolbarStateModel;
|
|
3166
|
-
exports.ɵo = ListToolbarStateDispatcher;
|
|
3167
|
-
exports.ɵp = SkyListToolbarItemComponent;
|
|
3168
|
-
exports.ɵq = SkyListToolbarSortComponent;
|
|
3169
|
-
exports.ɵr = SkyListToolbarViewActionsComponent;
|
|
3170
|
-
exports.ɵs = SkyListToolbarItemRendererComponent;
|
|
3171
|
-
exports.ɵt = SkyListMultiselectToolbarComponent;
|
|
3172
|
-
exports.ɵu = SkyListToolbarSearchActionsComponent;
|
|
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;
|
|
3173
3351
|
|
|
3174
3352
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3175
3353
|
|
|
3176
|
-
}))
|
|
3354
|
+
}));
|
|
3177
3355
|
//# sourceMappingURL=skyux-list-builder.umd.js.map
|