@skyux/list-builder 7.4.2 → 7.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.
- package/documentation.json +49 -49
- package/esm2020/lib/modules/list/list-data-request.model.mjs +2 -2
- package/esm2020/lib/modules/list/list-paging.component.mjs +2 -2
- package/esm2020/lib/modules/list/list.component.mjs +3 -3
- package/esm2020/lib/modules/list/state/search/search.model.mjs +4 -4
- package/esm2020/lib/modules/list/state/sort/label.model.mjs +3 -3
- package/esm2020/lib/modules/list/state/sort/sort.model.mjs +4 -4
- package/esm2020/lib/modules/list-filters/filter.model.mjs +2 -2
- package/esm2020/lib/modules/list-filters/list-filter-inline-item.component.mjs +1 -1
- package/esm2020/lib/modules/list-paging/list-paging.component.mjs +4 -4
- package/esm2020/lib/modules/list-toolbar/list-multiselect-toolbar.component.mjs +4 -4
- package/esm2020/lib/modules/list-toolbar/list-toolbar-item.component.mjs +4 -4
- package/esm2020/lib/modules/list-toolbar/list-toolbar-sort.component.mjs +1 -1
- package/esm2020/lib/modules/list-toolbar/list-toolbar.component.mjs +2 -2
- package/esm2020/lib/modules/shared/sky-list-builder-resources.module.mjs +3 -3
- package/fesm2015/skyux-list-builder.mjs +25 -25
- package/fesm2015/skyux-list-builder.mjs.map +1 -1
- package/fesm2020/skyux-list-builder.mjs +25 -25
- package/fesm2020/skyux-list-builder.mjs.map +1 -1
- package/lib/modules/list/list-data-request.model.d.ts +6 -6
- package/lib/modules/list/list-paging.component.d.ts +1 -1
- package/lib/modules/list/list.component.d.ts +7 -7
- package/lib/modules/list/state/search/search.model.d.ts +3 -3
- package/lib/modules/list/state/sort/label.model.d.ts +5 -5
- package/lib/modules/list/state/sort/sort.model.d.ts +3 -3
- package/lib/modules/list-filters/filter.model.d.ts +6 -6
- package/lib/modules/list-filters/list-filter-inline-item.component.d.ts +5 -5
- package/lib/modules/list-paging/list-paging.component.d.ts +3 -3
- package/lib/modules/list-toolbar/list-toolbar-item.component.d.ts +3 -3
- package/lib/modules/list-toolbar/list-toolbar-sort.component.d.ts +4 -4
- package/lib/modules/list-toolbar/list-toolbar.component.d.ts +5 -5
- package/package.json +10 -10
|
@@ -27,7 +27,7 @@ import { SkySearchComponent, SkySearchModule } from '@skyux/lookup';
|
|
|
27
27
|
class ListDataRequestModel {
|
|
28
28
|
constructor(data) {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Whether to disable the search bar and filter button.
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
33
|
this.isToolbarDisabled = false;
|
|
@@ -74,18 +74,18 @@ class ListDataProvider {
|
|
|
74
74
|
class ListSearchModel {
|
|
75
75
|
constructor(data) {
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* The text to search.
|
|
78
78
|
* @default ""
|
|
79
79
|
*/
|
|
80
80
|
this.searchText = '';
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* The array of functions that returns a `boolean` value of `true` when
|
|
83
83
|
* the search is successful. This property accepts a function of type
|
|
84
84
|
* `(data: any, searchText: string) => boolean>.`
|
|
85
85
|
*/
|
|
86
86
|
this.functions = [];
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* The columns to search. The columns correspond to `field` values that
|
|
89
89
|
* you specify with the list component's `data` property.
|
|
90
90
|
*/
|
|
91
91
|
this.fieldSelectors = [];
|
|
@@ -635,15 +635,15 @@ class ListSelectedModel {
|
|
|
635
635
|
class ListSortModel {
|
|
636
636
|
constructor(data) {
|
|
637
637
|
/**
|
|
638
|
-
*
|
|
638
|
+
* The list of available views to sort.
|
|
639
639
|
*/
|
|
640
640
|
this.available = [];
|
|
641
641
|
/**
|
|
642
|
-
*
|
|
642
|
+
* The list views that the sort applies to.
|
|
643
643
|
*/
|
|
644
644
|
this.global = [];
|
|
645
645
|
/**
|
|
646
|
-
*
|
|
646
|
+
* The fields to sort.
|
|
647
647
|
* For information about `ListSortFieldSelectorModel`, see the
|
|
648
648
|
* [shared classes for lists](https://developer.blackbaud.com/skyux-list-builder-common/docs/list-builder-common).
|
|
649
649
|
*/
|
|
@@ -887,12 +887,12 @@ class ListSelectedOrchestrator extends ListStateOrchestrator {
|
|
|
887
887
|
class ListSortLabelModel {
|
|
888
888
|
constructor(data) {
|
|
889
889
|
/**
|
|
890
|
-
*
|
|
890
|
+
* Whether to sort all fields.
|
|
891
891
|
* @default false
|
|
892
892
|
*/
|
|
893
893
|
this.global = false;
|
|
894
894
|
/**
|
|
895
|
-
*
|
|
895
|
+
* Whether to sort in descending order.
|
|
896
896
|
* @default false
|
|
897
897
|
*/
|
|
898
898
|
this.descending = false;
|
|
@@ -1103,7 +1103,7 @@ class SkyListComponent {
|
|
|
1103
1103
|
this.dispatcher = dispatcher;
|
|
1104
1104
|
this.id = `sky-list-cmp-${++idIndex$1}`;
|
|
1105
1105
|
/**
|
|
1106
|
-
*
|
|
1106
|
+
* The data to display. The list component requires this property or the
|
|
1107
1107
|
* `dataProvider` property. For checklist or multiselect grids, each row requires an
|
|
1108
1108
|
* `id` property to manage selected items with the `selectedIds` input and the
|
|
1109
1109
|
* `selectedIdsChange` event. If you do not provide an `id`, the list automatically
|
|
@@ -1112,7 +1112,7 @@ class SkyListComponent {
|
|
|
1112
1112
|
*/
|
|
1113
1113
|
this.data = [];
|
|
1114
1114
|
/**
|
|
1115
|
-
*
|
|
1115
|
+
* The set of filters to apply to list data.
|
|
1116
1116
|
* These filters create a filter summary when the list includes the
|
|
1117
1117
|
* [`sky-list-filter-summary`](https://developer.blackbaud.com/skyux/components/list/filters)
|
|
1118
1118
|
* component.
|
|
@@ -1401,7 +1401,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1401
1401
|
class ListFilterModel {
|
|
1402
1402
|
constructor(data) {
|
|
1403
1403
|
/**
|
|
1404
|
-
*
|
|
1404
|
+
* Whether users can dismiss the filter's summary item.
|
|
1405
1405
|
* @default true
|
|
1406
1406
|
*/
|
|
1407
1407
|
this.dismissible = true;
|
|
@@ -1692,7 +1692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1692
1692
|
}] });
|
|
1693
1693
|
|
|
1694
1694
|
/**
|
|
1695
|
-
*
|
|
1695
|
+
* The SKY UX-themed pagination control that displays list data across multiple pages.
|
|
1696
1696
|
* @internal
|
|
1697
1697
|
* @deprecated
|
|
1698
1698
|
*/
|
|
@@ -1714,17 +1714,17 @@ class SkyListPagingComponent extends ListPagingComponent {
|
|
|
1714
1714
|
constructor(state, dispatcher, logger) {
|
|
1715
1715
|
super(state, dispatcher);
|
|
1716
1716
|
/**
|
|
1717
|
-
*
|
|
1717
|
+
* The number of list items per page.
|
|
1718
1718
|
* @default 10
|
|
1719
1719
|
*/
|
|
1720
1720
|
this.pageSize = 10;
|
|
1721
1721
|
/**
|
|
1722
|
-
*
|
|
1722
|
+
* The maximum pages to display.
|
|
1723
1723
|
* @default 5
|
|
1724
1724
|
*/
|
|
1725
1725
|
this.maxPages = 5;
|
|
1726
1726
|
/**
|
|
1727
|
-
*
|
|
1727
|
+
* The current page number.
|
|
1728
1728
|
* @default 1
|
|
1729
1729
|
*/
|
|
1730
1730
|
this.pageNumber = 1;
|
|
@@ -1807,8 +1807,8 @@ const RESOURCES = {
|
|
|
1807
1807
|
'EN-US': {
|
|
1808
1808
|
skyux_list_show_secondary_actions_button: { message: 'More' },
|
|
1809
1809
|
skyux_list_multiselect_clear_all: { message: 'Clear all' },
|
|
1810
|
-
|
|
1811
|
-
|
|
1810
|
+
skyux_list_multiselect_select_all: { message: 'Select all' },
|
|
1811
|
+
skyux_list_multiselect_show_selected: {
|
|
1812
1812
|
message: 'Only show selected items',
|
|
1813
1813
|
},
|
|
1814
1814
|
skyux_list_view_switcher_dropdown_title: { message: 'Select view' },
|
|
@@ -2064,7 +2064,7 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2064
2064
|
this.reapplyFilter(true);
|
|
2065
2065
|
}
|
|
2066
2066
|
});
|
|
2067
|
-
// If 'show-selected' filter is
|
|
2067
|
+
// If 'show-selected' filter is programmatically set from a child component (e.g. checklist),
|
|
2068
2068
|
// make sure the checked state of the 'show-selected' checkbox stays in sync.
|
|
2069
2069
|
this.state
|
|
2070
2070
|
.pipe(map((t) => t.filters), takeUntil(this.ngUnsubscribe), distinctUntilChanged(this.showSelectedValuesEqual))
|
|
@@ -2167,10 +2167,10 @@ class SkyListMultiselectToolbarComponent {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
2169
|
SkyListMultiselectToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: SkyListMultiselectToolbarComponent, deps: [{ token: ListState }, { token: ListStateDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
2170
|
-
SkyListMultiselectToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.11", type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: { showOnlySelected: "showOnlySelected" }, ngImport: i0, 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 {{ '
|
|
2170
|
+
SkyListMultiselectToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.11", type: SkyListMultiselectToolbarComponent, selector: "sky-list-multiselect-toolbar", inputs: { showOnlySelected: "showOnlySelected" }, ngImport: i0, 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_multiselect_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_multiselect_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"], dependencies: [{ kind: "directive", type: i3$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4$2.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "indeterminate", "required"], outputs: ["change", "checkedChange", "disabledChange", "indeterminateChange"] }, { kind: "component", type: i4$2.λ4, selector: "sky-checkbox-label" }, { kind: "component", type: i5$1.λ37, selector: "sky-toolbar" }, { kind: "component", type: i5$1.λ39, selector: "sky-toolbar-item" }, { kind: "component", type: i5$1.λ38, selector: "sky-toolbar-section" }, { kind: "component", type: i5$1.λ40, selector: "sky-toolbar-view-actions" }, { kind: "component", type: SkyListToolbarItemRendererComponent, selector: "sky-list-toolbar-item-renderer", inputs: ["template"] }, { kind: "pipe", type: i5.SkyLibResourcesPipe, name: "skyLibResources" }] });
|
|
2171
2171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: SkyListMultiselectToolbarComponent, decorators: [{
|
|
2172
2172
|
type: Component,
|
|
2173
|
-
args: [{ selector: 'sky-list-multiselect-toolbar', 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 {{ '
|
|
2173
|
+
args: [{ selector: 'sky-list-multiselect-toolbar', 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_multiselect_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_multiselect_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"] }]
|
|
2174
2174
|
}], ctorParameters: function () { return [{ type: ListState }, { type: ListStateDispatcher }]; }, propDecorators: { showOnlySelected: [{
|
|
2175
2175
|
type: Input
|
|
2176
2176
|
}] } });
|
|
@@ -2183,16 +2183,16 @@ let idIndex = 0;
|
|
|
2183
2183
|
class SkyListToolbarItemComponent {
|
|
2184
2184
|
constructor() {
|
|
2185
2185
|
/**
|
|
2186
|
-
*
|
|
2186
|
+
* The ID of the item.
|
|
2187
2187
|
*/
|
|
2188
2188
|
this.id = `sky-list-toolbar-item-${++idIndex}`;
|
|
2189
2189
|
/**
|
|
2190
|
-
*
|
|
2190
|
+
* The index of the item at the given item location.
|
|
2191
2191
|
* @default -1
|
|
2192
2192
|
*/
|
|
2193
2193
|
this.index = -1;
|
|
2194
2194
|
/**
|
|
2195
|
-
*
|
|
2195
|
+
* The toolbar location of the item. The valid options are `"left"`,
|
|
2196
2196
|
* `"center"`, and `"right"`.
|
|
2197
2197
|
* @default "left"
|
|
2198
2198
|
*/
|
|
@@ -2414,7 +2414,7 @@ class SkyListToolbarComponent {
|
|
|
2414
2414
|
});
|
|
2415
2415
|
}
|
|
2416
2416
|
/**
|
|
2417
|
-
*
|
|
2417
|
+
* Whether to use the in-memory search.
|
|
2418
2418
|
* Setting this to `false` will allow consumers to run their own searches remotely,
|
|
2419
2419
|
* and push new values to the list component by updating the `data` property.
|
|
2420
2420
|
* @default true
|