@skyux/list-builder 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/bundles/skyux-list-builder.umd.js +699 -699
  2. package/documentation.json +123 -123
  3. package/esm2015/lib/modules/list/list-data-request.model.js.map +1 -1
  4. package/esm2015/lib/modules/list/list-paging.component.js.map +1 -1
  5. package/esm2015/lib/modules/list/list-view.component.js.map +1 -1
  6. package/esm2015/lib/modules/list/list.component.js +17 -17
  7. package/esm2015/lib/modules/list/list.component.js.map +1 -1
  8. package/esm2015/lib/modules/list/list.module.js +1 -1
  9. package/esm2015/lib/modules/list/list.module.js.map +1 -1
  10. package/esm2015/lib/modules/list/state/filters/filters.orchestrator.js.map +1 -1
  11. package/esm2015/lib/modules/list/state/items/items.orchestrator.js +5 -5
  12. package/esm2015/lib/modules/list/state/items/items.orchestrator.js.map +1 -1
  13. package/esm2015/lib/modules/list/state/list-state-action.type.js.map +1 -1
  14. package/esm2015/lib/modules/list/state/list-state.model.js +1 -1
  15. package/esm2015/lib/modules/list/state/list-state.model.js.map +1 -1
  16. package/esm2015/lib/modules/list/state/list-state.rxstate.js +2 -2
  17. package/esm2015/lib/modules/list/state/list-state.rxstate.js.map +1 -1
  18. package/esm2015/lib/modules/list/state/list-state.state-node.js +4 -4
  19. package/esm2015/lib/modules/list/state/list-state.state-node.js.map +1 -1
  20. package/esm2015/lib/modules/list/state/paging/paging.orchestrator.js +1 -1
  21. package/esm2015/lib/modules/list/state/paging/paging.orchestrator.js.map +1 -1
  22. package/esm2015/lib/modules/list/state/search/search.model.js.map +1 -1
  23. package/esm2015/lib/modules/list/state/search/search.orchestrator.js +2 -2
  24. package/esm2015/lib/modules/list/state/search/search.orchestrator.js.map +1 -1
  25. package/esm2015/lib/modules/list/state/search/set-options.action.js.map +1 -1
  26. package/esm2015/lib/modules/list/state/selected/selected.orchestrator.js +3 -3
  27. package/esm2015/lib/modules/list/state/selected/selected.orchestrator.js.map +1 -1
  28. package/esm2015/lib/modules/list/state/sort/label.model.js.map +1 -1
  29. package/esm2015/lib/modules/list/state/sort/sort.orchestrator.js +2 -2
  30. package/esm2015/lib/modules/list/state/sort/sort.orchestrator.js.map +1 -1
  31. package/esm2015/lib/modules/list/state/toolbar/toolbar-item.model.js.map +1 -1
  32. package/esm2015/lib/modules/list/state/toolbar/toolbar.orchestrator.js +3 -3
  33. package/esm2015/lib/modules/list/state/toolbar/toolbar.orchestrator.js.map +1 -1
  34. package/esm2015/lib/modules/list/state/views/views.orchestrator.js +1 -1
  35. package/esm2015/lib/modules/list/state/views/views.orchestrator.js.map +1 -1
  36. package/esm2015/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.js +12 -12
  37. package/esm2015/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.js.map +1 -1
  38. package/esm2015/lib/modules/list-filters/filter.model.js.map +1 -1
  39. package/esm2015/lib/modules/list-filters/list-filter-button.component.js.map +1 -1
  40. package/esm2015/lib/modules/list-filters/list-filter-inline-item-renderer.component.js +1 -1
  41. package/esm2015/lib/modules/list-filters/list-filter-inline-item-renderer.component.js.map +1 -1
  42. package/esm2015/lib/modules/list-filters/list-filter-inline-item.component.js +1 -1
  43. package/esm2015/lib/modules/list-filters/list-filter-inline-item.component.js.map +1 -1
  44. package/esm2015/lib/modules/list-filters/list-filter-inline.component.js +3 -3
  45. package/esm2015/lib/modules/list-filters/list-filter-inline.component.js.map +1 -1
  46. package/esm2015/lib/modules/list-filters/list-filter-inline.model.js.map +1 -1
  47. package/esm2015/lib/modules/list-filters/list-filter-summary.component.js +1 -1
  48. package/esm2015/lib/modules/list-filters/list-filter-summary.component.js.map +1 -1
  49. package/esm2015/lib/modules/list-filters/list-filters.module.js +3 -3
  50. package/esm2015/lib/modules/list-filters/list-filters.module.js.map +1 -1
  51. package/esm2015/lib/modules/list-paging/list-paging.component.js +3 -3
  52. package/esm2015/lib/modules/list-paging/list-paging.component.js.map +1 -1
  53. package/esm2015/lib/modules/list-paging/list-paging.module.js +2 -2
  54. package/esm2015/lib/modules/list-paging/list-paging.module.js.map +1 -1
  55. package/esm2015/lib/modules/list-toolbar/list-multiselect-toolbar.component.js +3 -3
  56. package/esm2015/lib/modules/list-toolbar/list-multiselect-toolbar.component.js.map +1 -1
  57. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js +1 -1
  58. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.js.map +1 -1
  59. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js +1 -1
  60. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.js.map +1 -1
  61. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js +2 -2
  62. package/esm2015/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.js.map +1 -1
  63. package/esm2015/lib/modules/list-toolbar/list-toolbar-item-renderer.component.js +1 -1
  64. package/esm2015/lib/modules/list-toolbar/list-toolbar-item-renderer.component.js.map +1 -1
  65. package/esm2015/lib/modules/list-toolbar/list-toolbar-item.component.js +1 -1
  66. package/esm2015/lib/modules/list-toolbar/list-toolbar-item.component.js.map +1 -1
  67. package/esm2015/lib/modules/list-toolbar/list-toolbar.component.js +14 -14
  68. package/esm2015/lib/modules/list-toolbar/list-toolbar.component.js.map +1 -1
  69. package/esm2015/lib/modules/list-toolbar/list-toolbar.module.js +10 -10
  70. package/esm2015/lib/modules/list-toolbar/list-toolbar.module.js.map +1 -1
  71. package/esm2015/lib/modules/list-toolbar/state/config/config.model.js.map +1 -1
  72. package/esm2015/lib/modules/list-toolbar/state/config/config.orchestrator.js.map +1 -1
  73. package/esm2015/lib/modules/list-toolbar/state/toolbar-state-action.type.js.map +1 -1
  74. package/esm2015/lib/modules/list-toolbar/state/toolbar-state.rxstate.js.map +1 -1
  75. package/esm2015/lib/modules/list-toolbar/state/toolbar-state.state-node.js +1 -1
  76. package/esm2015/lib/modules/list-toolbar/state/toolbar-state.state-node.js.map +1 -1
  77. package/esm2015/lib/modules/shared/sky-list-builder-resources.module.js +1 -1
  78. package/esm2015/lib/modules/shared/sky-list-builder-resources.module.js.map +1 -1
  79. package/fesm2015/skyux-list-builder.js +643 -643
  80. package/fesm2015/skyux-list-builder.js.map +1 -1
  81. package/lib/modules/list/list-paging.component.d.ts +1 -1
  82. package/lib/modules/list/list-view.component.d.ts +1 -1
  83. package/lib/modules/list/list.component.d.ts +4 -4
  84. package/lib/modules/list/state/filters/filters.orchestrator.d.ts +1 -1
  85. package/lib/modules/list/state/list-state-action.type.d.ts +13 -13
  86. package/lib/modules/list/state/list-state.model.d.ts +1 -1
  87. package/lib/modules/list/state/search/set-options.action.d.ts +1 -1
  88. package/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.d.ts +2 -2
  89. package/lib/modules/list-filters/list-filter-inline-item-renderer.component.d.ts +1 -1
  90. package/lib/modules/list-filters/list-filter-inline-item.component.d.ts +1 -1
  91. package/lib/modules/list-filters/list-filter-inline.component.d.ts +1 -1
  92. package/lib/modules/list-filters/list-filter-inline.model.d.ts +1 -1
  93. package/lib/modules/list-filters/list-filter-summary.component.d.ts +1 -1
  94. package/lib/modules/list-paging/list-paging.component.d.ts +1 -1
  95. package/lib/modules/list-toolbar/list-multiselect-toolbar.component.d.ts +2 -2
  96. package/lib/modules/list-toolbar/list-toolbar-item-renderer.component.d.ts +1 -1
  97. package/lib/modules/list-toolbar/list-toolbar.component.d.ts +5 -5
  98. package/package.json +10 -10
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
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
- typeof define === 'function' && define.amd ? define('@skyux/list-builder', ['exports', '@angular/core', '@angular/common', 'rxjs', 'rxjs/operators', '@skyux/list-builder-common', '@skyux/lists', '@skyux/i18n', '@skyux/indicators', '@skyux/popovers', '@skyux/layout', '@skyux/lookup', '@skyux/forms'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["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';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/list-builder-common'), require('rxjs'), require('rxjs/operators'), require('@skyux/lists'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/popovers'), require('@skyux/forms'), require('@skyux/layout'), require('@skyux/lookup')) :
3
+ typeof define === 'function' && define.amd ? define('@skyux/list-builder', ['exports', '@angular/common', '@angular/core', '@skyux/list-builder-common', 'rxjs', 'rxjs/operators', '@skyux/lists', '@skyux/i18n', '@skyux/indicators', '@skyux/popovers', '@skyux/forms', '@skyux/layout', '@skyux/lookup'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["list-builder"] = {}), global.ng.common, global.ng.core, global.listBuilderCommon, global.rxjs, global.rxjs.operators, global.i3, global.i5, global.i3$1, global.i2, global.i5$1, global.i3$2, global.i8));
5
+ })(this, (function (exports, i4, i0, listBuilderCommon, rxjs, operators, i3, i5, i3$1, i2, i5$1, i3$2, i8) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -22,15 +22,15 @@
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
25
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
26
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
27
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
28
28
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
29
29
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
30
30
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
31
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
31
32
  var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
32
33
  var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
33
- var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
34
34
 
35
35
  var ListDataRequestModel = /** @class */ (function () {
36
36
  function ListDataRequestModel(data) {
@@ -70,91 +70,6 @@
70
70
  return ListDataProvider;
71
71
  }());
72
72
 
73
- /**
74
- * @internal
75
- */
76
- var ListItemsLoadAction = /** @class */ (function () {
77
- function ListItemsLoadAction(items, refresh, dataChanged, count) {
78
- if (refresh === void 0) { refresh = false; }
79
- if (dataChanged === void 0) { dataChanged = true; }
80
- this.items = items;
81
- this.refresh = refresh;
82
- this.dataChanged = dataChanged;
83
- this.count = count;
84
- }
85
- return ListItemsLoadAction;
86
- }());
87
-
88
- /**
89
- * @internal
90
- */
91
- var ListItemsSetLoadingAction = /** @class */ (function () {
92
- function ListItemsSetLoadingAction(loading) {
93
- if (loading === void 0) { loading = true; }
94
- this.loading = loading;
95
- }
96
- return ListItemsSetLoadingAction;
97
- }());
98
-
99
- /**
100
- * @internal
101
- */
102
- var ListSelectedLoadAction = /** @class */ (function () {
103
- function ListSelectedLoadAction(items) {
104
- this.items = items;
105
- }
106
- return ListSelectedLoadAction;
107
- }());
108
-
109
- /**
110
- * @internal
111
- */
112
- var ListSelectedSetLoadingAction = /** @class */ (function () {
113
- function ListSelectedSetLoadingAction(loading) {
114
- if (loading === void 0) { loading = true; }
115
- this.loading = loading;
116
- }
117
- return ListSelectedSetLoadingAction;
118
- }());
119
-
120
- /**
121
- * Specifies a set of fields to sort by.
122
- */
123
- var ListSortModel = /** @class */ (function () {
124
- function ListSortModel(data) {
125
- /**
126
- * Specifies the list of available views to sort.
127
- */
128
- this.available = [];
129
- /**
130
- * Specifies whether the sort applies to all list views.
131
- */
132
- this.global = [];
133
- /**
134
- * Specifies the fields to sort.
135
- * For information about `ListSortFieldSelectorModel`, see the
136
- * [shared classes for lists](https://developer.blackbaud.com/skyux-list-builder-common/docs/list-builder-common).
137
- */
138
- this.fieldSelectors = [];
139
- if (data) {
140
- this.available = data.available;
141
- this.global = data.global;
142
- this.fieldSelectors = data.fieldSelectors;
143
- }
144
- }
145
- return ListSortModel;
146
- }());
147
-
148
- /**
149
- * @internal
150
- */
151
- var ListSortSetFieldSelectorsAction = /** @class */ (function () {
152
- function ListSortSetFieldSelectorsAction(fieldSelectors) {
153
- this.fieldSelectors = fieldSelectors;
154
- }
155
- return ListSortSetFieldSelectorsAction;
156
- }());
157
-
158
73
  /*! *****************************************************************************
159
74
  Copyright (c) Microsoft Corporation.
160
75
 
@@ -664,89 +579,88 @@
664
579
  return SkyListInMemoryDataProvider;
665
580
  }(ListDataProvider));
666
581
 
582
+ var idIndex$2 = 0;
667
583
  /**
668
584
  * @internal
669
585
  */
670
- var ListPagingModel = /** @class */ (function () {
671
- function ListPagingModel(data) {
672
- if (data !== undefined) {
673
- this.itemsPerPage = data.itemsPerPage || 10;
674
- this.maxDisplayedPages = data.maxDisplayedPages || 5;
675
- this.pageCount = data.pageCount || 0;
676
- this.pageNumber = data.pageNumber || 1;
677
- }
678
- }
679
- return ListPagingModel;
680
- }());
681
-
682
- /**
683
- * Contains data about the selected items in the list.
684
- */
685
- var ListSelectedModel = /** @class */ (function () {
686
- function ListSelectedModel() {
687
- this.selectedIdMap = new Map();
586
+ var ListViewComponent = /** @class */ (function () {
587
+ function ListViewComponent(state, defaultName) {
588
+ var _this = this;
589
+ this.viewId = "sky-list-view-cmp-" + ++idIndex$2;
590
+ this.state = state;
591
+ this.viewName = defaultName;
592
+ /* istanbul ignore next */
593
+ this.hasToolbar = this.state.pipe(operators.map(function (s) { return s.toolbar.exists; }));
594
+ this.active = this.state.pipe(operators.map(function (s) { return s.views.active === _this.viewId; }));
595
+ this.active
596
+ .pipe(operators.distinctUntilChanged())
597
+ .subscribe(function (isActive) { return isActive ? _this.onViewActive() : _this.onViewInactive(); });
688
598
  }
689
- return ListSelectedModel;
599
+ Object.defineProperty(ListViewComponent.prototype, "id", {
600
+ get: function () {
601
+ return this.viewId;
602
+ },
603
+ enumerable: false,
604
+ configurable: true
605
+ });
606
+ Object.defineProperty(ListViewComponent.prototype, "label", {
607
+ get: function () {
608
+ return this.viewName;
609
+ },
610
+ enumerable: false,
611
+ configurable: true
612
+ });
613
+ /* istanbul ignore next */
614
+ ListViewComponent.prototype.onViewActive = function () { };
615
+ ListViewComponent.prototype.onViewInactive = function () { };
616
+ return ListViewComponent;
690
617
  }());
691
618
 
692
619
  /**
693
620
  * @internal
694
621
  */
695
- var ListToolbarModel = /** @class */ (function () {
696
- function ListToolbarModel(data) {
697
- this.items = [];
698
- this.showMultiselectToolbar = false;
699
- if (data) {
700
- this.exists = data.exists;
701
- this.disabled = data.disabled;
702
- this.items = data.items;
703
- this.type = data.type;
704
- this.showMultiselectToolbar = data.showMultiselectToolbar;
705
- }
622
+ var ListItemsLoadAction = /** @class */ (function () {
623
+ function ListItemsLoadAction(items, refresh, dataChanged, count) {
624
+ if (refresh === void 0) { refresh = false; }
625
+ if (dataChanged === void 0) { dataChanged = true; }
626
+ this.items = items;
627
+ this.refresh = refresh;
628
+ this.dataChanged = dataChanged;
629
+ this.count = count;
706
630
  }
707
- return ListToolbarModel;
631
+ return ListItemsLoadAction;
708
632
  }());
709
633
 
710
634
  /**
711
635
  * @internal
712
636
  */
713
- var ListViewsModel = /** @class */ (function () {
714
- function ListViewsModel(data) {
715
- this.views = [];
716
- if (data) {
717
- this.active = data.active;
718
- this.views = data.views;
719
- }
637
+ var ListItemsSetLoadingAction = /** @class */ (function () {
638
+ function ListItemsSetLoadingAction(loading) {
639
+ if (loading === void 0) { loading = true; }
640
+ this.loading = loading;
720
641
  }
721
- return ListViewsModel;
642
+ return ListItemsSetLoadingAction;
722
643
  }());
723
644
 
724
645
  /**
725
646
  * @internal
726
647
  */
727
- var ListStateModel = /** @class */ (function () {
728
- function ListStateModel() {
729
- this.filters = [];
730
- this.items = new listBuilderCommon.AsyncList();
731
- this.paging = new ListPagingModel();
732
- this.search = new ListSearchModel();
733
- this.selected = new listBuilderCommon.AsyncItem();
734
- this.sort = new ListSortModel();
735
- this.toolbar = new ListToolbarModel();
736
- this.views = new ListViewsModel();
737
- this.selected.item = new ListSelectedModel();
648
+ var ListFiltersUpdateAction = /** @class */ (function () {
649
+ function ListFiltersUpdateAction(filters) {
650
+ this.filters = filters;
738
651
  }
739
- return ListStateModel;
652
+ return ListFiltersUpdateAction;
740
653
  }());
741
654
 
742
655
  /**
743
656
  * @internal
744
657
  */
745
- var ListFiltersUpdateAction = /** @class */ (function () {
746
- function ListFiltersUpdateAction(filters) {
747
- this.filters = filters;
658
+ var ListSearchSetFieldSelectorsAction = /** @class */ (function () {
659
+ function ListSearchSetFieldSelectorsAction(fieldSelectors) {
660
+ if (fieldSelectors === void 0) { fieldSelectors = []; }
661
+ this.fieldSelectors = fieldSelectors;
748
662
  }
749
- return ListFiltersUpdateAction;
663
+ return ListSearchSetFieldSelectorsAction;
750
664
  }());
751
665
 
752
666
  /**
@@ -760,27 +674,6 @@
760
674
  return ListSearchSetFunctionsAction;
761
675
  }());
762
676
 
763
- /**
764
- * @internal
765
- */
766
- var ListSearchSetSearchTextAction = /** @class */ (function () {
767
- function ListSearchSetSearchTextAction(searchText) {
768
- this.searchText = searchText;
769
- }
770
- return ListSearchSetSearchTextAction;
771
- }());
772
-
773
- /**
774
- * @internal
775
- */
776
- var ListSearchSetFieldSelectorsAction = /** @class */ (function () {
777
- function ListSearchSetFieldSelectorsAction(fieldSelectors) {
778
- if (fieldSelectors === void 0) { fieldSelectors = []; }
779
- this.fieldSelectors = fieldSelectors;
780
- }
781
- return ListSearchSetFieldSelectorsAction;
782
- }());
783
-
784
677
  /**
785
678
  * @internal
786
679
  */
@@ -793,6 +686,16 @@
793
686
  return ListSearchSetOptionsAction;
794
687
  }());
795
688
 
689
+ /**
690
+ * @internal
691
+ */
692
+ var ListSearchSetSearchTextAction = /** @class */ (function () {
693
+ function ListSearchSetSearchTextAction(searchText) {
694
+ this.searchText = searchText;
695
+ }
696
+ return ListSearchSetSearchTextAction;
697
+ }());
698
+
796
699
  /**
797
700
  * @internal
798
701
  */
@@ -817,6 +720,16 @@
817
720
  return ListSortSetAvailableAction;
818
721
  }());
819
722
 
723
+ /**
724
+ * @internal
725
+ */
726
+ var ListSortSetFieldSelectorsAction = /** @class */ (function () {
727
+ function ListSortSetFieldSelectorsAction(fieldSelectors) {
728
+ this.fieldSelectors = fieldSelectors;
729
+ }
730
+ return ListSortSetFieldSelectorsAction;
731
+ }());
732
+
820
733
  /**
821
734
  * @internal
822
735
  */
@@ -1048,187 +961,159 @@
1048
961
  /**
1049
962
  * @internal
1050
963
  */
1051
- var ListPagingSetMaxPagesAction = /** @class */ (function () {
1052
- function ListPagingSetMaxPagesAction(maxPages) {
1053
- this.maxPages = maxPages;
964
+ var ListPagingModel = /** @class */ (function () {
965
+ function ListPagingModel(data) {
966
+ if (data !== undefined) {
967
+ this.itemsPerPage = data.itemsPerPage || 10;
968
+ this.maxDisplayedPages = data.maxDisplayedPages || 5;
969
+ this.pageCount = data.pageCount || 0;
970
+ this.pageNumber = data.pageNumber || 1;
971
+ }
1054
972
  }
1055
- return ListPagingSetMaxPagesAction;
973
+ return ListPagingModel;
1056
974
  }());
1057
975
 
1058
976
  /**
1059
- * @internal
977
+ * Contains data about the selected items in the list.
1060
978
  */
1061
- var ListPagingSetItemsPerPageAction = /** @class */ (function () {
1062
- function ListPagingSetItemsPerPageAction(itemsPerPage) {
1063
- this.itemsPerPage = itemsPerPage;
979
+ var ListSelectedModel = /** @class */ (function () {
980
+ function ListSelectedModel() {
981
+ this.selectedIdMap = new Map();
1064
982
  }
1065
- return ListPagingSetItemsPerPageAction;
983
+ return ListSelectedModel;
984
+ }());
985
+
986
+ /**
987
+ * Specifies a set of fields to sort by.
988
+ */
989
+ var ListSortModel = /** @class */ (function () {
990
+ function ListSortModel(data) {
991
+ /**
992
+ * Specifies the list of available views to sort.
993
+ */
994
+ this.available = [];
995
+ /**
996
+ * Specifies whether the sort applies to all list views.
997
+ */
998
+ this.global = [];
999
+ /**
1000
+ * Specifies the fields to sort.
1001
+ * For information about `ListSortFieldSelectorModel`, see the
1002
+ * [shared classes for lists](https://developer.blackbaud.com/skyux-list-builder-common/docs/list-builder-common).
1003
+ */
1004
+ this.fieldSelectors = [];
1005
+ if (data) {
1006
+ this.available = data.available;
1007
+ this.global = data.global;
1008
+ this.fieldSelectors = data.fieldSelectors;
1009
+ }
1010
+ }
1011
+ return ListSortModel;
1066
1012
  }());
1067
1013
 
1068
1014
  /**
1069
1015
  * @internal
1070
1016
  */
1071
- var ListPagingSetPageNumberAction = /** @class */ (function () {
1072
- function ListPagingSetPageNumberAction(pageNumber) {
1073
- this.pageNumber = pageNumber;
1017
+ var ListToolbarModel = /** @class */ (function () {
1018
+ function ListToolbarModel(data) {
1019
+ this.items = [];
1020
+ this.showMultiselectToolbar = false;
1021
+ if (data) {
1022
+ this.exists = data.exists;
1023
+ this.disabled = data.disabled;
1024
+ this.items = data.items;
1025
+ this.type = data.type;
1026
+ this.showMultiselectToolbar = data.showMultiselectToolbar;
1027
+ }
1074
1028
  }
1075
- return ListPagingSetPageNumberAction;
1029
+ return ListToolbarModel;
1076
1030
  }());
1077
1031
 
1078
1032
  /**
1079
1033
  * @internal
1080
1034
  */
1081
- var ListPagingOrchestrator = /** @class */ (function (_super) {
1082
- __extends(ListPagingOrchestrator, _super);
1083
- /* istanbul ignore next */
1084
- function ListPagingOrchestrator() {
1085
- var _this = _super.call(this) || this;
1086
- _this.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
1087
- .register(ListPagingSetItemsPerPageAction, _this.setItemsPerPage)
1088
- .register(ListPagingSetPageNumberAction, _this.setPageNumber);
1089
- return _this;
1035
+ var ListViewsModel = /** @class */ (function () {
1036
+ function ListViewsModel(data) {
1037
+ this.views = [];
1038
+ if (data) {
1039
+ this.active = data.active;
1040
+ this.views = data.views;
1041
+ }
1090
1042
  }
1091
- ListPagingOrchestrator.prototype.setMaxPages = function (state, action) {
1092
- return new ListPagingModel(Object.assign({}, state, { maxDisplayedPages: Number(action.maxPages) }));
1093
- };
1094
- ListPagingOrchestrator.prototype.setItemsPerPage = function (state, action) {
1095
- return new ListPagingModel(Object.assign({}, state, { itemsPerPage: Number(action.itemsPerPage) }));
1096
- };
1097
- ListPagingOrchestrator.prototype.setPageNumber = function (state, action) {
1098
- return new ListPagingModel(Object.assign({}, state, { pageNumber: Number(action.pageNumber) }));
1099
- };
1100
- return ListPagingOrchestrator;
1101
- }(ListStateOrchestrator));
1043
+ return ListViewsModel;
1044
+ }());
1102
1045
 
1103
1046
  /**
1104
1047
  * @internal
1105
1048
  */
1106
- var ListViewsLoadAction = /** @class */ (function () {
1107
- function ListViewsLoadAction(views) {
1108
- this.views = views;
1049
+ var ListStateModel = /** @class */ (function () {
1050
+ function ListStateModel() {
1051
+ this.filters = [];
1052
+ this.items = new listBuilderCommon.AsyncList();
1053
+ this.paging = new ListPagingModel();
1054
+ this.search = new ListSearchModel();
1055
+ this.selected = new listBuilderCommon.AsyncItem();
1056
+ this.sort = new ListSortModel();
1057
+ this.toolbar = new ListToolbarModel();
1058
+ this.views = new ListViewsModel();
1059
+ this.selected.item = new ListSelectedModel();
1109
1060
  }
1110
- return ListViewsLoadAction;
1061
+ return ListStateModel;
1111
1062
  }());
1112
1063
 
1113
1064
  /**
1114
1065
  * @internal
1115
1066
  */
1116
- var ListViewsOrchestrator = /** @class */ (function (_super) {
1117
- __extends(ListViewsOrchestrator, _super);
1118
- /* istanbul ignore next */
1119
- function ListViewsOrchestrator() {
1120
- var _this = _super.call(this) || this;
1121
- _this.register(ListViewsSetActiveAction, _this.setActive).register(ListViewsLoadAction, _this.load);
1122
- return _this;
1067
+ var ListPagingSetItemsPerPageAction = /** @class */ (function () {
1068
+ function ListPagingSetItemsPerPageAction(itemsPerPage) {
1069
+ this.itemsPerPage = itemsPerPage;
1123
1070
  }
1124
- ListViewsOrchestrator.prototype.setActive = function (state, action) {
1125
- return new ListViewsModel(Object.assign({}, state, { active: action.view }));
1126
- };
1127
- ListViewsOrchestrator.prototype.load = function (state, action) {
1128
- return new ListViewsModel(Object.assign({}, state, { views: action.views }));
1129
- };
1130
- return ListViewsOrchestrator;
1131
- }(ListStateOrchestrator));
1071
+ return ListPagingSetItemsPerPageAction;
1072
+ }());
1132
1073
 
1133
1074
  /**
1134
1075
  * @internal
1135
1076
  */
1136
- var ListToolbarItemModel = /** @class */ (function () {
1137
- function ListToolbarItemModel(data) {
1138
- this.index = -1;
1139
- if (data) {
1140
- this.index = data.index;
1141
- this.template = data.template;
1142
- this.location = data.location;
1143
- this.view = data.view;
1144
- this.id = data.id;
1145
- }
1077
+ var ListPagingSetMaxPagesAction = /** @class */ (function () {
1078
+ function ListPagingSetMaxPagesAction(maxPages) {
1079
+ this.maxPages = maxPages;
1146
1080
  }
1147
- return ListToolbarItemModel;
1081
+ return ListPagingSetMaxPagesAction;
1148
1082
  }());
1149
1083
 
1150
1084
  /**
1151
1085
  * @internal
1152
1086
  */
1153
- var ListToolbarSetTypeAction = /** @class */ (function () {
1154
- function ListToolbarSetTypeAction(type) {
1155
- this.type = type;
1087
+ var ListPagingSetPageNumberAction = /** @class */ (function () {
1088
+ function ListPagingSetPageNumberAction(pageNumber) {
1089
+ this.pageNumber = pageNumber;
1156
1090
  }
1157
- return ListToolbarSetTypeAction;
1091
+ return ListPagingSetPageNumberAction;
1158
1092
  }());
1159
1093
 
1160
1094
  /**
1161
1095
  * @internal
1162
1096
  */
1163
- var ListToolbarOrchestrator = /** @class */ (function (_super) {
1164
- __extends(ListToolbarOrchestrator, _super);
1097
+ var ListPagingOrchestrator = /** @class */ (function (_super) {
1098
+ __extends(ListPagingOrchestrator, _super);
1165
1099
  /* istanbul ignore next */
1166
- function ListToolbarOrchestrator() {
1100
+ function ListPagingOrchestrator() {
1167
1101
  var _this = _super.call(this) || this;
1168
- _this.register(ListToolbarSetExistsAction, _this.setExists)
1169
- .register(ListToolbarItemsDisableAction, _this.setDisabled)
1170
- .register(ListToolbarItemsLoadAction, _this.load)
1171
- .register(ListToolbarSetTypeAction, _this.setType)
1172
- .register(ListToolbarItemsRemoveAction, _this.remove)
1173
- .register(ListToolbarShowMultiselectToolbarAction, _this.showMultiselectToolbar);
1102
+ _this.register(ListPagingSetMaxPagesAction, _this.setMaxPages)
1103
+ .register(ListPagingSetItemsPerPageAction, _this.setItemsPerPage)
1104
+ .register(ListPagingSetPageNumberAction, _this.setPageNumber);
1174
1105
  return _this;
1175
1106
  }
1176
- ListToolbarOrchestrator.prototype.setExists = function (state, action) {
1177
- var newModel = new ListToolbarModel(state);
1178
- newModel.exists = action.exists;
1179
- return newModel;
1180
- };
1181
- ListToolbarOrchestrator.prototype.setDisabled = function (state, action) {
1182
- var newModel = new ListToolbarModel(state);
1183
- newModel.disabled = action.disable;
1184
- return newModel;
1185
- };
1186
- ListToolbarOrchestrator.prototype.setType = function (state, action) {
1187
- var newModel = new ListToolbarModel(state);
1188
- newModel.type = action.type;
1189
- return newModel;
1190
- };
1191
- ListToolbarOrchestrator.prototype.load = function (state, action) {
1192
- var newModel = new ListToolbarModel(state);
1193
- var newListItems = action.items.map(function (item) {
1194
- /**
1195
- * NOTE: Originally this function went off the action index and item models did not include
1196
- * the index. We changed this but must leave functionality to convert the action index for
1197
- * backwards compatibility.
1198
- */
1199
- if (!item.index) {
1200
- item.index = action.index;
1201
- }
1202
- return new ListToolbarItemModel(item);
1203
- });
1204
- var items = __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
1205
- items = items.sort(function (a, b) {
1206
- if (a.index < b.index) {
1207
- return -1;
1208
- }
1209
- else if (a.index > b.index) {
1210
- return 1;
1211
- }
1212
- else {
1213
- return 0;
1214
- }
1215
- });
1216
- newModel.items = items;
1217
- return newModel;
1107
+ ListPagingOrchestrator.prototype.setMaxPages = function (state, action) {
1108
+ return new ListPagingModel(Object.assign({}, state, { maxDisplayedPages: Number(action.maxPages) }));
1218
1109
  };
1219
- ListToolbarOrchestrator.prototype.remove = function (state, action) {
1220
- var newModel = new ListToolbarModel(state);
1221
- newModel.items = newModel.items.filter(function (item) {
1222
- return action.ids.indexOf(item.id) === -1;
1223
- });
1224
- return newModel;
1110
+ ListPagingOrchestrator.prototype.setItemsPerPage = function (state, action) {
1111
+ return new ListPagingModel(Object.assign({}, state, { itemsPerPage: Number(action.itemsPerPage) }));
1225
1112
  };
1226
- ListToolbarOrchestrator.prototype.showMultiselectToolbar = function (state, action) {
1227
- var newModel = new ListToolbarModel(state);
1228
- newModel.showMultiselectToolbar = action.exists;
1229
- return newModel;
1113
+ ListPagingOrchestrator.prototype.setPageNumber = function (state, action) {
1114
+ return new ListPagingModel(Object.assign({}, state, { pageNumber: Number(action.pageNumber) }));
1230
1115
  };
1231
- return ListToolbarOrchestrator;
1116
+ return ListPagingOrchestrator;
1232
1117
  }(ListStateOrchestrator));
1233
1118
 
1234
1119
  /**
@@ -1275,6 +1160,16 @@
1275
1160
  return ListSearchOrchestrator;
1276
1161
  }(ListStateOrchestrator));
1277
1162
 
1163
+ /**
1164
+ * @internal
1165
+ */
1166
+ var ListSelectedLoadAction = /** @class */ (function () {
1167
+ function ListSelectedLoadAction(items) {
1168
+ this.items = items;
1169
+ }
1170
+ return ListSelectedLoadAction;
1171
+ }());
1172
+
1278
1173
  /**
1279
1174
  * @internal
1280
1175
  */
@@ -1286,6 +1181,17 @@
1286
1181
  return ListSelectedSetItemSelectedAction;
1287
1182
  }());
1288
1183
 
1184
+ /**
1185
+ * @internal
1186
+ */
1187
+ var ListSelectedSetLoadingAction = /** @class */ (function () {
1188
+ function ListSelectedSetLoadingAction(loading) {
1189
+ if (loading === void 0) { loading = true; }
1190
+ this.loading = loading;
1191
+ }
1192
+ return ListSelectedSetLoadingAction;
1193
+ }());
1194
+
1289
1195
  /**
1290
1196
  * @internal
1291
1197
  */
@@ -1392,66 +1298,160 @@
1392
1298
  /**
1393
1299
  * @internal
1394
1300
  */
1395
- var ListState = /** @class */ (function (_super) {
1396
- __extends(ListState, _super);
1397
- function ListState(dispatcher) {
1398
- var _this = _super.call(this, new ListStateModel(), dispatcher) || this;
1399
- _this.register('filters', ListFiltersOrchestrator)
1400
- .register('items', ListItemsOrchestrator)
1401
- .register('paging', ListPagingOrchestrator)
1402
- .register('search', ListSearchOrchestrator)
1403
- .register('sort', ListSortOrchestrator)
1404
- .register('toolbar', ListToolbarOrchestrator)
1405
- .register('views', ListViewsOrchestrator)
1406
- .register('selected', ListSelectedOrchestrator)
1407
- .begin();
1408
- return _this;
1301
+ var ListToolbarSetTypeAction = /** @class */ (function () {
1302
+ function ListToolbarSetTypeAction(type) {
1303
+ this.type = type;
1409
1304
  }
1410
- return ListState;
1411
- }(listBuilderCommon.StateNode));
1412
- ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1413
- ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState });
1414
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, decorators: [{
1415
- type: i0.Injectable
1416
- }], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
1305
+ return ListToolbarSetTypeAction;
1306
+ }());
1417
1307
 
1418
- var idIndex$2 = 0;
1419
1308
  /**
1420
1309
  * @internal
1421
1310
  */
1422
- var ListViewComponent = /** @class */ (function () {
1423
- function ListViewComponent(state, defaultName) {
1424
- var _this = this;
1425
- this.viewId = "sky-list-view-cmp-" + ++idIndex$2;
1426
- this.state = state;
1427
- this.viewName = defaultName;
1428
- /* istanbul ignore next */
1429
- this.hasToolbar = this.state.pipe(operators.map(function (s) { return s.toolbar.exists; }));
1430
- this.active = this.state.pipe(operators.map(function (s) { return s.views.active === _this.viewId; }));
1431
- this.active
1432
- .pipe(operators.distinctUntilChanged())
1433
- .subscribe(function (isActive) { return isActive ? _this.onViewActive() : _this.onViewInactive(); });
1311
+ var ListToolbarItemModel = /** @class */ (function () {
1312
+ function ListToolbarItemModel(data) {
1313
+ this.index = -1;
1314
+ if (data) {
1315
+ this.index = data.index;
1316
+ this.template = data.template;
1317
+ this.location = data.location;
1318
+ this.view = data.view;
1319
+ this.id = data.id;
1320
+ }
1434
1321
  }
1435
- Object.defineProperty(ListViewComponent.prototype, "id", {
1436
- get: function () {
1437
- return this.viewId;
1438
- },
1439
- enumerable: false,
1440
- configurable: true
1441
- });
1442
- Object.defineProperty(ListViewComponent.prototype, "label", {
1443
- get: function () {
1444
- return this.viewName;
1445
- },
1446
- enumerable: false,
1447
- configurable: true
1448
- });
1322
+ return ListToolbarItemModel;
1323
+ }());
1324
+
1325
+ /**
1326
+ * @internal
1327
+ */
1328
+ var ListToolbarOrchestrator = /** @class */ (function (_super) {
1329
+ __extends(ListToolbarOrchestrator, _super);
1449
1330
  /* istanbul ignore next */
1450
- ListViewComponent.prototype.onViewActive = function () { };
1451
- ListViewComponent.prototype.onViewInactive = function () { };
1452
- return ListViewComponent;
1331
+ function ListToolbarOrchestrator() {
1332
+ var _this = _super.call(this) || this;
1333
+ _this.register(ListToolbarSetExistsAction, _this.setExists)
1334
+ .register(ListToolbarItemsDisableAction, _this.setDisabled)
1335
+ .register(ListToolbarItemsLoadAction, _this.load)
1336
+ .register(ListToolbarSetTypeAction, _this.setType)
1337
+ .register(ListToolbarItemsRemoveAction, _this.remove)
1338
+ .register(ListToolbarShowMultiselectToolbarAction, _this.showMultiselectToolbar);
1339
+ return _this;
1340
+ }
1341
+ ListToolbarOrchestrator.prototype.setExists = function (state, action) {
1342
+ var newModel = new ListToolbarModel(state);
1343
+ newModel.exists = action.exists;
1344
+ return newModel;
1345
+ };
1346
+ ListToolbarOrchestrator.prototype.setDisabled = function (state, action) {
1347
+ var newModel = new ListToolbarModel(state);
1348
+ newModel.disabled = action.disable;
1349
+ return newModel;
1350
+ };
1351
+ ListToolbarOrchestrator.prototype.setType = function (state, action) {
1352
+ var newModel = new ListToolbarModel(state);
1353
+ newModel.type = action.type;
1354
+ return newModel;
1355
+ };
1356
+ ListToolbarOrchestrator.prototype.load = function (state, action) {
1357
+ var newModel = new ListToolbarModel(state);
1358
+ var newListItems = action.items.map(function (item) {
1359
+ /**
1360
+ * NOTE: Originally this function went off the action index and item models did not include
1361
+ * the index. We changed this but must leave functionality to convert the action index for
1362
+ * backwards compatibility.
1363
+ */
1364
+ if (!item.index) {
1365
+ item.index = action.index;
1366
+ }
1367
+ return new ListToolbarItemModel(item);
1368
+ });
1369
+ var items = __spreadArray(__spreadArray([], __read(state.items)), __read(newListItems));
1370
+ items = items.sort(function (a, b) {
1371
+ if (a.index < b.index) {
1372
+ return -1;
1373
+ }
1374
+ else if (a.index > b.index) {
1375
+ return 1;
1376
+ }
1377
+ else {
1378
+ return 0;
1379
+ }
1380
+ });
1381
+ newModel.items = items;
1382
+ return newModel;
1383
+ };
1384
+ ListToolbarOrchestrator.prototype.remove = function (state, action) {
1385
+ var newModel = new ListToolbarModel(state);
1386
+ newModel.items = newModel.items.filter(function (item) {
1387
+ return action.ids.indexOf(item.id) === -1;
1388
+ });
1389
+ return newModel;
1390
+ };
1391
+ ListToolbarOrchestrator.prototype.showMultiselectToolbar = function (state, action) {
1392
+ var newModel = new ListToolbarModel(state);
1393
+ newModel.showMultiselectToolbar = action.exists;
1394
+ return newModel;
1395
+ };
1396
+ return ListToolbarOrchestrator;
1397
+ }(ListStateOrchestrator));
1398
+
1399
+ /**
1400
+ * @internal
1401
+ */
1402
+ var ListViewsLoadAction = /** @class */ (function () {
1403
+ function ListViewsLoadAction(views) {
1404
+ this.views = views;
1405
+ }
1406
+ return ListViewsLoadAction;
1453
1407
  }());
1454
1408
 
1409
+ /**
1410
+ * @internal
1411
+ */
1412
+ var ListViewsOrchestrator = /** @class */ (function (_super) {
1413
+ __extends(ListViewsOrchestrator, _super);
1414
+ /* istanbul ignore next */
1415
+ function ListViewsOrchestrator() {
1416
+ var _this = _super.call(this) || this;
1417
+ _this.register(ListViewsSetActiveAction, _this.setActive).register(ListViewsLoadAction, _this.load);
1418
+ return _this;
1419
+ }
1420
+ ListViewsOrchestrator.prototype.setActive = function (state, action) {
1421
+ return new ListViewsModel(Object.assign({}, state, { active: action.view }));
1422
+ };
1423
+ ListViewsOrchestrator.prototype.load = function (state, action) {
1424
+ return new ListViewsModel(Object.assign({}, state, { views: action.views }));
1425
+ };
1426
+ return ListViewsOrchestrator;
1427
+ }(ListStateOrchestrator));
1428
+
1429
+ /**
1430
+ * @internal
1431
+ */
1432
+ var ListState = /** @class */ (function (_super) {
1433
+ __extends(ListState, _super);
1434
+ function ListState(dispatcher) {
1435
+ var _this = _super.call(this, new ListStateModel(), dispatcher) || this;
1436
+ _this.register('filters', ListFiltersOrchestrator)
1437
+ .register('items', ListItemsOrchestrator)
1438
+ .register('paging', ListPagingOrchestrator)
1439
+ .register('search', ListSearchOrchestrator)
1440
+ .register('sort', ListSortOrchestrator)
1441
+ .register('toolbar', ListToolbarOrchestrator)
1442
+ .register('views', ListViewsOrchestrator)
1443
+ .register('selected', ListSelectedOrchestrator)
1444
+ .begin();
1445
+ return _this;
1446
+ }
1447
+ return ListState;
1448
+ }(listBuilderCommon.StateNode));
1449
+ ListState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, deps: [{ token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1450
+ ListState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState });
1451
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListState, decorators: [{
1452
+ type: i0.Injectable
1453
+ }], ctorParameters: function () { return [{ type: ListStateDispatcher }]; } });
1454
+
1455
1455
  /**
1456
1456
  * @internal
1457
1457
  */
@@ -1866,57 +1866,38 @@
1866
1866
  }] } });
1867
1867
 
1868
1868
  /**
1869
- * Creates a filter summary based on the
1870
- * [list component's](https://developer.blackbaud.com/skyux/components/list/overview#list-properties)
1871
- * `appliedFilters` property. Place this component within the
1872
- * [`sky-list-toolbar`](https://developer.blackbaud.com/skyux/components/list/toolbar) component.
1869
+ * @internal
1873
1870
  */
1874
- var SkyListFilterSummaryComponent = /** @class */ (function () {
1875
- function SkyListFilterSummaryComponent(state, dispatcher) {
1876
- this.state = state;
1877
- this.dispatcher = dispatcher;
1878
- /**
1879
- * Emits a `ListFilterModel` when users select a summary item. A common use case is
1880
- * to open a filter modal when this event is received.
1881
- */
1882
- this.summaryItemClick = new i0.EventEmitter();
1871
+ var SkyListFilterInlineItemRendererComponent = /** @class */ (function () {
1872
+ function SkyListFilterInlineItemRendererComponent() {
1883
1873
  }
1884
- SkyListFilterSummaryComponent.prototype.ngAfterContentInit = function () {
1885
- var _this = this;
1886
- // The setTimeout here is to ensure we avoid any ExpressionChangedAfterItHasBeenCheckedError issues.
1887
- setTimeout(function () {
1888
- _this.appliedFilters = _this.state.pipe(operators.map(function (state) {
1889
- return state.filters.filter(function (filter) {
1890
- return (filter.value !== '' &&
1891
- filter.value !== undefined &&
1892
- filter.value !== false &&
1893
- filter.value !== filter.defaultValue);
1894
- });
1895
- }));
1896
- });
1897
- };
1898
- SkyListFilterSummaryComponent.prototype.filterSummaryItemDismiss = function (index) {
1899
- var _this = this;
1900
- this.appliedFilters.pipe(operators.take(1)).subscribe(function (filters) {
1901
- filters.splice(index, 1);
1902
- _this.dispatcher.filtersUpdate(filters.slice());
1903
- });
1904
- };
1905
- SkyListFilterSummaryComponent.prototype.filterSummaryItemClick = function (item) {
1906
- this.summaryItemClick.emit(item);
1874
+ SkyListFilterInlineItemRendererComponent.prototype.ngOnInit = function () {
1875
+ /* istanbul ignore else */
1876
+ /* sanity check */
1877
+ if (this.template !== undefined) {
1878
+ this.container.createEmbeddedView(this.template, this);
1879
+ }
1907
1880
  };
1908
- return SkyListFilterSummaryComponent;
1881
+ return SkyListFilterInlineItemRendererComponent;
1909
1882
  }());
1910
- SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
1911
- SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 } });
1912
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, decorators: [{
1883
+ SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1884
+ SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
1885
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, decorators: [{
1913
1886
  type: i0.Component,
1914
1887
  args: [{
1915
- selector: 'sky-list-filter-summary',
1916
- 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",
1888
+ selector: 'sky-list-filter-inline-item-renderer',
1889
+ template: '<ng-template #container></ng-template>',
1917
1890
  }]
1918
- }], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
1919
- type: i0.Output
1891
+ }], propDecorators: { template: [{
1892
+ type: i0.Input
1893
+ }], filter: [{
1894
+ type: i0.Input
1895
+ }], container: [{
1896
+ type: i0.ViewChild,
1897
+ args: ['container', {
1898
+ read: i0.ViewContainerRef,
1899
+ static: true,
1900
+ }]
1920
1901
  }] } });
1921
1902
 
1922
1903
  /**
@@ -1968,49 +1949,14 @@
1968
1949
  }] } });
1969
1950
 
1970
1951
  /**
1971
- * @internal
1952
+ * Creates an inline filter area for the list. Place each filter
1953
+ * in a `sky-list-filter-inline-item` component.
1972
1954
  */
1973
- var SkyListFilterInlineItemRendererComponent = /** @class */ (function () {
1974
- function SkyListFilterInlineItemRendererComponent() {
1975
- }
1976
- SkyListFilterInlineItemRendererComponent.prototype.ngOnInit = function () {
1977
- /* istanbul ignore else */
1978
- /* sanity check */
1979
- if (this.template !== undefined) {
1980
- this.container.createEmbeddedView(this.template, this);
1981
- }
1982
- };
1983
- return SkyListFilterInlineItemRendererComponent;
1984
- }());
1985
- SkyListFilterInlineItemRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1986
- SkyListFilterInlineItemRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
1987
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterInlineItemRendererComponent, decorators: [{
1988
- type: i0.Component,
1989
- args: [{
1990
- selector: 'sky-list-filter-inline-item-renderer',
1991
- template: '<ng-template #container></ng-template>',
1992
- }]
1993
- }], propDecorators: { template: [{
1994
- type: i0.Input
1995
- }], filter: [{
1996
- type: i0.Input
1997
- }], container: [{
1998
- type: i0.ViewChild,
1999
- args: ['container', {
2000
- read: i0.ViewContainerRef,
2001
- static: true,
2002
- }]
2003
- }] } });
2004
-
2005
- /**
2006
- * Creates an inline filter area for the list. Place each filter
2007
- * in a `sky-list-filter-inline-item` component.
2008
- */
2009
- var SkyListFilterInlineComponent = /** @class */ (function () {
2010
- function SkyListFilterInlineComponent(dispatcher, state) {
2011
- this.dispatcher = dispatcher;
2012
- this.state = state;
2013
- this.inlineFilters = [];
1955
+ var SkyListFilterInlineComponent = /** @class */ (function () {
1956
+ function SkyListFilterInlineComponent(dispatcher, state) {
1957
+ this.dispatcher = dispatcher;
1958
+ this.state = state;
1959
+ this.inlineFilters = [];
2014
1960
  }
2015
1961
  SkyListFilterInlineComponent.prototype.ngAfterContentInit = function () {
2016
1962
  var _this = this;
@@ -2065,6 +2011,60 @@
2065
2011
  args: [SkyListFilterInlineItemComponent]
2066
2012
  }] } });
2067
2013
 
2014
+ /**
2015
+ * Creates a filter summary based on the
2016
+ * [list component's](https://developer.blackbaud.com/skyux/components/list/overview#list-properties)
2017
+ * `appliedFilters` property. Place this component within the
2018
+ * [`sky-list-toolbar`](https://developer.blackbaud.com/skyux/components/list/toolbar) component.
2019
+ */
2020
+ var SkyListFilterSummaryComponent = /** @class */ (function () {
2021
+ function SkyListFilterSummaryComponent(state, dispatcher) {
2022
+ this.state = state;
2023
+ this.dispatcher = dispatcher;
2024
+ /**
2025
+ * Emits a `ListFilterModel` when users select a summary item. A common use case is
2026
+ * to open a filter modal when this event is received.
2027
+ */
2028
+ this.summaryItemClick = new i0.EventEmitter();
2029
+ }
2030
+ SkyListFilterSummaryComponent.prototype.ngAfterContentInit = function () {
2031
+ var _this = this;
2032
+ // The setTimeout here is to ensure we avoid any ExpressionChangedAfterItHasBeenCheckedError issues.
2033
+ setTimeout(function () {
2034
+ _this.appliedFilters = _this.state.pipe(operators.map(function (state) {
2035
+ return state.filters.filter(function (filter) {
2036
+ return (filter.value !== '' &&
2037
+ filter.value !== undefined &&
2038
+ filter.value !== false &&
2039
+ filter.value !== filter.defaultValue);
2040
+ });
2041
+ }));
2042
+ });
2043
+ };
2044
+ SkyListFilterSummaryComponent.prototype.filterSummaryItemDismiss = function (index) {
2045
+ var _this = this;
2046
+ this.appliedFilters.pipe(operators.take(1)).subscribe(function (filters) {
2047
+ filters.splice(index, 1);
2048
+ _this.dispatcher.filtersUpdate(filters.slice());
2049
+ });
2050
+ };
2051
+ SkyListFilterSummaryComponent.prototype.filterSummaryItemClick = function (item) {
2052
+ this.summaryItemClick.emit(item);
2053
+ };
2054
+ return SkyListFilterSummaryComponent;
2055
+ }());
2056
+ SkyListFilterSummaryComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Component });
2057
+ SkyListFilterSummaryComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 } });
2058
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListFilterSummaryComponent, decorators: [{
2059
+ type: i0.Component,
2060
+ args: [{
2061
+ selector: 'sky-list-filter-summary',
2062
+ 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",
2063
+ }]
2064
+ }], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { summaryItemClick: [{
2065
+ type: i0.Output
2066
+ }] } });
2067
+
2068
2068
  var SkyListFiltersModule = /** @class */ (function () {
2069
2069
  function SkyListFiltersModule() {
2070
2070
  }
@@ -2300,6 +2300,36 @@
2300
2300
  type: i0.Injectable
2301
2301
  }] });
2302
2302
 
2303
+ /**
2304
+ * Adds actions to the secondary actions dropdown in the list toolbar.
2305
+ */
2306
+ var SkyListSecondaryActionComponent = /** @class */ (function () {
2307
+ function SkyListSecondaryActionComponent(actionService) {
2308
+ this.actionService = actionService;
2309
+ }
2310
+ SkyListSecondaryActionComponent.prototype.ngAfterContentInit = function () {
2311
+ this.actionService.addSecondaryAction({
2312
+ template: this.templateRef,
2313
+ });
2314
+ };
2315
+ return SkyListSecondaryActionComponent;
2316
+ }());
2317
+ SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, deps: [{ token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2318
+ SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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" });
2319
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, decorators: [{
2320
+ type: i0.Component,
2321
+ args: [{
2322
+ selector: 'sky-list-secondary-action',
2323
+ template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n",
2324
+ }]
2325
+ }], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
2326
+ type: i0.ViewChild,
2327
+ args: ['listSecondaryAction', {
2328
+ read: i0.TemplateRef,
2329
+ static: true,
2330
+ }]
2331
+ }] } });
2332
+
2303
2333
  // Note: this component is needed to ensure any reactive styles placed in the element have
2304
2334
  // their host to be based off of. Without this component the host is not written via the dispatcher.
2305
2335
  /**
@@ -2381,36 +2411,6 @@
2381
2411
  }]
2382
2412
  }] } });
2383
2413
 
2384
- /**
2385
- * Adds actions to the secondary actions dropdown in the list toolbar.
2386
- */
2387
- var SkyListSecondaryActionComponent = /** @class */ (function () {
2388
- function SkyListSecondaryActionComponent(actionService) {
2389
- this.actionService = actionService;
2390
- }
2391
- SkyListSecondaryActionComponent.prototype.ngAfterContentInit = function () {
2392
- this.actionService.addSecondaryAction({
2393
- template: this.templateRef,
2394
- });
2395
- };
2396
- return SkyListSecondaryActionComponent;
2397
- }());
2398
- SkyListSecondaryActionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, deps: [{ token: SkyListSecondaryActionsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2399
- SkyListSecondaryActionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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" });
2400
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListSecondaryActionComponent, decorators: [{
2401
- type: i0.Component,
2402
- args: [{
2403
- selector: 'sky-list-secondary-action',
2404
- template: "<ng-template #listSecondaryAction>\n <ng-content></ng-content>\n</ng-template>\n",
2405
- }]
2406
- }], ctorParameters: function () { return [{ type: SkyListSecondaryActionsService }]; }, propDecorators: { templateRef: [{
2407
- type: i0.ViewChild,
2408
- args: ['listSecondaryAction', {
2409
- read: i0.TemplateRef,
2410
- static: true,
2411
- }]
2412
- }] } });
2413
-
2414
2414
  var SkyListSecondaryActionsModule = /** @class */ (function () {
2415
2415
  function SkyListSecondaryActionsModule() {
2416
2416
  }
@@ -2442,222 +2442,13 @@
2442
2442
  imports: [
2443
2443
  i4.CommonModule,
2444
2444
  i2.SkyDropdownModule,
2445
- i5.SkyI18nModule,
2446
- i3$1.SkyIconModule,
2447
- SkyListBuilderResourcesModule,
2448
- ],
2449
- exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
2450
- }]
2451
- }] });
2452
-
2453
- var idIndex = 0;
2454
- /**
2455
- * Defines a toolbar item for the list toolbar.
2456
- */
2457
- var SkyListToolbarItemComponent = /** @class */ (function () {
2458
- function SkyListToolbarItemComponent() {
2459
- /**
2460
- * Specifies the ID of the item.
2461
- */
2462
- this.id = "sky-list-toolbar-item-" + ++idIndex;
2463
- /**
2464
- * Specifies the index of the item at the given item location.
2465
- * @default -1
2466
- */
2467
- this.index = -1;
2468
- /**
2469
- * Specifies the toolbar location of the item. The valid options are `"left"`,
2470
- * `"center"`, and `"right"`.
2471
- * @default "left"
2472
- */
2473
- this.location = 'left';
2474
- }
2475
- Object.defineProperty(SkyListToolbarItemComponent.prototype, "template", {
2476
- get: function () {
2477
- return this.templates.length > 0 ? this.templates.first : undefined;
2478
- },
2479
- enumerable: false,
2480
- configurable: true
2481
- });
2482
- return SkyListToolbarItemComponent;
2483
- }());
2484
- SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2485
- SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
2486
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, decorators: [{
2487
- type: i0.Component,
2488
- args: [{
2489
- selector: 'sky-list-toolbar-item',
2490
- template: '<ng-content></ng-content>',
2491
- }]
2492
- }], propDecorators: { id: [{
2493
- type: i0.Input
2494
- }], index: [{
2495
- type: i0.Input
2496
- }], location: [{
2497
- type: i0.Input
2498
- }], templates: [{
2499
- type: i0.ContentChildren,
2500
- args: [i0.TemplateRef]
2501
- }] } });
2502
-
2503
- /**
2504
- * Adds a sort dropdown to the list toolbar.
2505
- */
2506
- var SkyListToolbarSortComponent = /** @class */ (function () {
2507
- function SkyListToolbarSortComponent() {
2508
- }
2509
- return SkyListToolbarSortComponent;
2510
- }());
2511
- SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2512
- SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarSortComponent, selector: "sky-list-toolbar-sort", inputs: { label: "label", field: "field", type: "type", descending: "descending" }, ngImport: i0__namespace, template: '', isInline: true });
2513
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, decorators: [{
2514
- type: i0.Component,
2515
- args: [{
2516
- selector: 'sky-list-toolbar-sort',
2517
- template: '',
2518
- }]
2519
- }], propDecorators: { label: [{
2520
- type: i0.Input
2521
- }], field: [{
2522
- type: i0.Input
2523
- }], type: [{
2524
- type: i0.Input
2525
- }], descending: [{
2526
- type: i0.Input
2527
- }] } });
2528
-
2529
- /**
2530
- * Adds a section on the right side of the toolbar for items that substantially change
2531
- * or affect the view of the list. This includes simple filters and view switchers.
2532
- * If the view section includes more than one item, simple filters appear on the left
2533
- * and view switchers appear on the right.
2534
- */
2535
- var SkyListToolbarViewActionsComponent = /** @class */ (function () {
2536
- function SkyListToolbarViewActionsComponent() {
2537
- }
2538
- return SkyListToolbarViewActionsComponent;
2539
- }());
2540
- SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2541
- SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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"] });
2542
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, decorators: [{
2543
- type: i0.Component,
2544
- args: [{
2545
- selector: 'sky-list-toolbar-view-actions',
2546
- template: "<ng-content></ng-content>\n",
2547
- 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"],
2548
- }]
2549
- }] });
2550
-
2551
- /**
2552
- * @internal
2553
- */
2554
- var ListToolbarConfigSetSearchEnabledAction = /** @class */ (function () {
2555
- function ListToolbarConfigSetSearchEnabledAction(enabled) {
2556
- this.enabled = enabled;
2557
- }
2558
- return ListToolbarConfigSetSearchEnabledAction;
2559
- }());
2560
-
2561
- /**
2562
- * @internal
2563
- */
2564
- var ListToolbarConfigSetSortSelectorEnabledAction = /** @class */ (function () {
2565
- /* istanbul ignore next */
2566
- function ListToolbarConfigSetSortSelectorEnabledAction(enabled) {
2567
- if (enabled === void 0) { enabled = true; }
2568
- this.enabled = enabled;
2569
- }
2570
- return ListToolbarConfigSetSortSelectorEnabledAction;
2571
- }());
2572
-
2573
- /**
2574
- * @internal
2575
- */
2576
- var ListToolbarStateDispatcher = /** @class */ (function (_super) {
2577
- __extends(ListToolbarStateDispatcher, _super);
2578
- function ListToolbarStateDispatcher() {
2579
- return _super !== null && _super.apply(this, arguments) || this;
2580
- }
2581
- return ListToolbarStateDispatcher;
2582
- }(listBuilderCommon.StateDispatcher));
2583
- ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
2584
- ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher });
2585
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, decorators: [{
2586
- type: i0.Injectable
2587
- }] });
2588
- /**
2589
- * @internal
2590
- */
2591
- var ListToolbarStateOrchestrator = /** @class */ (function (_super) {
2592
- __extends(ListToolbarStateOrchestrator, _super);
2593
- function ListToolbarStateOrchestrator() {
2594
- return _super !== null && _super.apply(this, arguments) || this;
2595
- }
2596
- return ListToolbarStateOrchestrator;
2597
- }(listBuilderCommon.StateOrchestrator));
2598
-
2599
- /**
2600
- * @internal
2601
- */
2602
- var ListToolbarConfigModel = /** @class */ (function () {
2603
- function ListToolbarConfigModel(data) {
2604
- this.searchEnabled = true;
2605
- this.sortSelectorEnabled = true;
2606
- if (data) {
2607
- this.searchEnabled = data.searchEnabled;
2608
- this.sortSelectorEnabled = data.sortSelectorEnabled;
2609
- }
2610
- }
2611
- return ListToolbarConfigModel;
2612
- }());
2613
-
2614
- /**
2615
- * @internal
2616
- */
2617
- var ListToolbarConfigOrchestrator = /** @class */ (function (_super) {
2618
- __extends(ListToolbarConfigOrchestrator, _super);
2619
- /* istanbul ignore next */
2620
- function ListToolbarConfigOrchestrator() {
2621
- var _this = _super.call(this) || this;
2622
- _this.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
2623
- return _this;
2624
- }
2625
- ListToolbarConfigOrchestrator.prototype.setSearchEnabled = function (state, action) {
2626
- return new ListToolbarConfigModel(Object.assign({}, state, { searchEnabled: action.enabled }));
2627
- };
2628
- ListToolbarConfigOrchestrator.prototype.setSortSelectorEnabled = function (state, action) {
2629
- return new ListToolbarConfigModel(Object.assign({}, state, { sortSelectorEnabled: action.enabled }));
2630
- };
2631
- return ListToolbarConfigOrchestrator;
2632
- }(ListToolbarStateOrchestrator));
2633
-
2634
- /**
2635
- * @internal
2636
- */
2637
- var ListToolbarStateModel = /** @class */ (function () {
2638
- function ListToolbarStateModel() {
2639
- this.config = new ListToolbarConfigModel();
2640
- }
2641
- return ListToolbarStateModel;
2642
- }());
2643
-
2644
- /**
2645
- * @internal
2646
- */
2647
- var ListToolbarState = /** @class */ (function (_super) {
2648
- __extends(ListToolbarState, _super);
2649
- function ListToolbarState(initialState, dispatcher) {
2650
- var _this = _super.call(this, initialState, dispatcher) || this;
2651
- _this.register('config', ListToolbarConfigOrchestrator).begin();
2652
- return _this;
2653
- }
2654
- return ListToolbarState;
2655
- }(listBuilderCommon.StateNode));
2656
- ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, deps: [{ token: ListToolbarStateModel }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2657
- ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState });
2658
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, decorators: [{
2659
- type: i0.Injectable
2660
- }], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
2445
+ i5.SkyI18nModule,
2446
+ i3$1.SkyIconModule,
2447
+ SkyListBuilderResourcesModule,
2448
+ ],
2449
+ exports: [SkyListSecondaryActionsComponent, SkyListSecondaryActionComponent],
2450
+ }]
2451
+ }] });
2661
2452
 
2662
2453
  /**
2663
2454
  * @internal
@@ -2834,6 +2625,235 @@
2834
2625
  type: i0.Input
2835
2626
  }] } });
2836
2627
 
2628
+ var idIndex = 0;
2629
+ /**
2630
+ * Defines a toolbar item for the list toolbar.
2631
+ */
2632
+ var SkyListToolbarItemComponent = /** @class */ (function () {
2633
+ function SkyListToolbarItemComponent() {
2634
+ /**
2635
+ * Specifies the ID of the item.
2636
+ */
2637
+ this.id = "sky-list-toolbar-item-" + ++idIndex;
2638
+ /**
2639
+ * Specifies the index of the item at the given item location.
2640
+ * @default -1
2641
+ */
2642
+ this.index = -1;
2643
+ /**
2644
+ * Specifies the toolbar location of the item. The valid options are `"left"`,
2645
+ * `"center"`, and `"right"`.
2646
+ * @default "left"
2647
+ */
2648
+ this.location = 'left';
2649
+ }
2650
+ Object.defineProperty(SkyListToolbarItemComponent.prototype, "template", {
2651
+ get: function () {
2652
+ return this.templates.length > 0 ? this.templates.first : undefined;
2653
+ },
2654
+ enumerable: false,
2655
+ configurable: true
2656
+ });
2657
+ return SkyListToolbarItemComponent;
2658
+ }());
2659
+ SkyListToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2660
+ SkyListToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
2661
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarItemComponent, decorators: [{
2662
+ type: i0.Component,
2663
+ args: [{
2664
+ selector: 'sky-list-toolbar-item',
2665
+ template: '<ng-content></ng-content>',
2666
+ }]
2667
+ }], propDecorators: { id: [{
2668
+ type: i0.Input
2669
+ }], index: [{
2670
+ type: i0.Input
2671
+ }], location: [{
2672
+ type: i0.Input
2673
+ }], templates: [{
2674
+ type: i0.ContentChildren,
2675
+ args: [i0.TemplateRef]
2676
+ }] } });
2677
+
2678
+ /**
2679
+ * Displays custom actions in the toolbar beside to the search bar.
2680
+ */
2681
+ var SkyListToolbarSearchActionsComponent = /** @class */ (function () {
2682
+ function SkyListToolbarSearchActionsComponent() {
2683
+ }
2684
+ return SkyListToolbarSearchActionsComponent;
2685
+ }());
2686
+ SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2687
+ SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
2688
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, decorators: [{
2689
+ type: i0.Component,
2690
+ args: [{
2691
+ selector: 'sky-list-toolbar-search-actions',
2692
+ template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n",
2693
+ styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"],
2694
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2695
+ }]
2696
+ }] });
2697
+
2698
+ /**
2699
+ * Adds a sort dropdown to the list toolbar.
2700
+ */
2701
+ var SkyListToolbarSortComponent = /** @class */ (function () {
2702
+ function SkyListToolbarSortComponent() {
2703
+ }
2704
+ return SkyListToolbarSortComponent;
2705
+ }());
2706
+ SkyListToolbarSortComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2707
+ SkyListToolbarSortComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyListToolbarSortComponent, selector: "sky-list-toolbar-sort", inputs: { label: "label", field: "field", type: "type", descending: "descending" }, ngImport: i0__namespace, template: '', isInline: true });
2708
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSortComponent, decorators: [{
2709
+ type: i0.Component,
2710
+ args: [{
2711
+ selector: 'sky-list-toolbar-sort',
2712
+ template: '',
2713
+ }]
2714
+ }], propDecorators: { label: [{
2715
+ type: i0.Input
2716
+ }], field: [{
2717
+ type: i0.Input
2718
+ }], type: [{
2719
+ type: i0.Input
2720
+ }], descending: [{
2721
+ type: i0.Input
2722
+ }] } });
2723
+
2724
+ /**
2725
+ * Adds a section on the right side of the toolbar for items that substantially change
2726
+ * or affect the view of the list. This includes simple filters and view switchers.
2727
+ * If the view section includes more than one item, simple filters appear on the left
2728
+ * and view switchers appear on the right.
2729
+ */
2730
+ var SkyListToolbarViewActionsComponent = /** @class */ (function () {
2731
+ function SkyListToolbarViewActionsComponent() {
2732
+ }
2733
+ return SkyListToolbarViewActionsComponent;
2734
+ }());
2735
+ SkyListToolbarViewActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2736
+ SkyListToolbarViewActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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"] });
2737
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarViewActionsComponent, decorators: [{
2738
+ type: i0.Component,
2739
+ args: [{
2740
+ selector: 'sky-list-toolbar-view-actions',
2741
+ template: "<ng-content></ng-content>\n",
2742
+ 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"],
2743
+ }]
2744
+ }] });
2745
+
2746
+ /**
2747
+ * @internal
2748
+ */
2749
+ var ListToolbarConfigSetSearchEnabledAction = /** @class */ (function () {
2750
+ function ListToolbarConfigSetSearchEnabledAction(enabled) {
2751
+ this.enabled = enabled;
2752
+ }
2753
+ return ListToolbarConfigSetSearchEnabledAction;
2754
+ }());
2755
+
2756
+ /**
2757
+ * @internal
2758
+ */
2759
+ var ListToolbarConfigSetSortSelectorEnabledAction = /** @class */ (function () {
2760
+ /* istanbul ignore next */
2761
+ function ListToolbarConfigSetSortSelectorEnabledAction(enabled) {
2762
+ if (enabled === void 0) { enabled = true; }
2763
+ this.enabled = enabled;
2764
+ }
2765
+ return ListToolbarConfigSetSortSelectorEnabledAction;
2766
+ }());
2767
+
2768
+ /**
2769
+ * @internal
2770
+ */
2771
+ var ListToolbarConfigModel = /** @class */ (function () {
2772
+ function ListToolbarConfigModel(data) {
2773
+ this.searchEnabled = true;
2774
+ this.sortSelectorEnabled = true;
2775
+ if (data) {
2776
+ this.searchEnabled = data.searchEnabled;
2777
+ this.sortSelectorEnabled = data.sortSelectorEnabled;
2778
+ }
2779
+ }
2780
+ return ListToolbarConfigModel;
2781
+ }());
2782
+
2783
+ /**
2784
+ * @internal
2785
+ */
2786
+ var ListToolbarStateModel = /** @class */ (function () {
2787
+ function ListToolbarStateModel() {
2788
+ this.config = new ListToolbarConfigModel();
2789
+ }
2790
+ return ListToolbarStateModel;
2791
+ }());
2792
+
2793
+ /**
2794
+ * @internal
2795
+ */
2796
+ var ListToolbarStateDispatcher = /** @class */ (function (_super) {
2797
+ __extends(ListToolbarStateDispatcher, _super);
2798
+ function ListToolbarStateDispatcher() {
2799
+ return _super !== null && _super.apply(this, arguments) || this;
2800
+ }
2801
+ return ListToolbarStateDispatcher;
2802
+ }(listBuilderCommon.StateDispatcher));
2803
+ ListToolbarStateDispatcher.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
2804
+ ListToolbarStateDispatcher.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher });
2805
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarStateDispatcher, decorators: [{
2806
+ type: i0.Injectable
2807
+ }] });
2808
+ /**
2809
+ * @internal
2810
+ */
2811
+ var ListToolbarStateOrchestrator = /** @class */ (function (_super) {
2812
+ __extends(ListToolbarStateOrchestrator, _super);
2813
+ function ListToolbarStateOrchestrator() {
2814
+ return _super !== null && _super.apply(this, arguments) || this;
2815
+ }
2816
+ return ListToolbarStateOrchestrator;
2817
+ }(listBuilderCommon.StateOrchestrator));
2818
+
2819
+ /**
2820
+ * @internal
2821
+ */
2822
+ var ListToolbarConfigOrchestrator = /** @class */ (function (_super) {
2823
+ __extends(ListToolbarConfigOrchestrator, _super);
2824
+ /* istanbul ignore next */
2825
+ function ListToolbarConfigOrchestrator() {
2826
+ var _this = _super.call(this) || this;
2827
+ _this.register(ListToolbarConfigSetSearchEnabledAction, _this.setSearchEnabled).register(ListToolbarConfigSetSortSelectorEnabledAction, _this.setSortSelectorEnabled);
2828
+ return _this;
2829
+ }
2830
+ ListToolbarConfigOrchestrator.prototype.setSearchEnabled = function (state, action) {
2831
+ return new ListToolbarConfigModel(Object.assign({}, state, { searchEnabled: action.enabled }));
2832
+ };
2833
+ ListToolbarConfigOrchestrator.prototype.setSortSelectorEnabled = function (state, action) {
2834
+ return new ListToolbarConfigModel(Object.assign({}, state, { sortSelectorEnabled: action.enabled }));
2835
+ };
2836
+ return ListToolbarConfigOrchestrator;
2837
+ }(ListToolbarStateOrchestrator));
2838
+
2839
+ /**
2840
+ * @internal
2841
+ */
2842
+ var ListToolbarState = /** @class */ (function (_super) {
2843
+ __extends(ListToolbarState, _super);
2844
+ function ListToolbarState(initialState, dispatcher) {
2845
+ var _this = _super.call(this, initialState, dispatcher) || this;
2846
+ _this.register('config', ListToolbarConfigOrchestrator).begin();
2847
+ return _this;
2848
+ }
2849
+ return ListToolbarState;
2850
+ }(listBuilderCommon.StateNode));
2851
+ ListToolbarState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, deps: [{ token: ListToolbarStateModel }, { token: ListToolbarStateDispatcher }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2852
+ ListToolbarState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState });
2853
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ListToolbarState, decorators: [{
2854
+ type: i0.Injectable
2855
+ }], ctorParameters: function () { return [{ type: ListToolbarStateModel }, { type: ListToolbarStateDispatcher }]; } });
2856
+
2837
2857
  var nextId = 0;
2838
2858
  /**
2839
2859
  * Displays a toolbar for a SKY UX-themed list of data.
@@ -3180,26 +3200,6 @@
3180
3200
  }]
3181
3201
  }] } });
3182
3202
 
3183
- /**
3184
- * Displays custom actions in the toolbar beside to the search bar.
3185
- */
3186
- var SkyListToolbarSearchActionsComponent = /** @class */ (function () {
3187
- function SkyListToolbarSearchActionsComponent() {
3188
- }
3189
- return SkyListToolbarSearchActionsComponent;
3190
- }());
3191
- SkyListToolbarSearchActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3192
- SkyListToolbarSearchActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", 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 });
3193
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyListToolbarSearchActionsComponent, decorators: [{
3194
- type: i0.Component,
3195
- args: [{
3196
- selector: 'sky-list-toolbar-search-actions',
3197
- template: "<div class=\"sky-list-toolbar-search-actions\">\n <ng-content></ng-content>\n</div>\n",
3198
- styles: [".sky-list-toolbar-search-actions{margin-left:10px}\n"],
3199
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
3200
- }]
3201
- }] });
3202
-
3203
3203
  var SkyListToolbarModule = /** @class */ (function () {
3204
3204
  function SkyListToolbarModule() {
3205
3205
  }