@skyux/list-builder 12.22.0 → 13.0.0-alpha.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/fesm2022/skyux-list-builder.mjs +101 -101
- package/fesm2022/skyux-list-builder.mjs.map +1 -1
- package/index.d.ts +1348 -73
- package/package.json +12 -12
- package/lib/modules/list/list-data-request.model.d.ts +0 -38
- package/lib/modules/list/list-data-response.model.d.ts +0 -16
- package/lib/modules/list/list-data.provider.d.ts +0 -13
- package/lib/modules/list/list-paging.component.d.ts +0 -14
- package/lib/modules/list/list-view.component.d.ts +0 -20
- package/lib/modules/list/list.component.d.ts +0 -95
- package/lib/modules/list/list.module.d.ts +0 -11
- package/lib/modules/list/state/filters/filters.orchestrator.d.ts +0 -10
- package/lib/modules/list/state/filters/update.action.d.ts +0 -9
- package/lib/modules/list/state/items/items.orchestrator.d.ts +0 -13
- package/lib/modules/list/state/items/load.action.d.ts +0 -12
- package/lib/modules/list/state/items/set-items-selected.action.d.ts +0 -10
- package/lib/modules/list/state/items/set-loading.action.d.ts +0 -8
- package/lib/modules/list/state/list-state-action.type.d.ts +0 -30
- package/lib/modules/list/state/list-state.model.d.ts +0 -23
- package/lib/modules/list/state/list-state.rxstate.d.ts +0 -36
- package/lib/modules/list/state/list-state.state-node.d.ts +0 -13
- package/lib/modules/list/state/paging/paging.model.d.ts +0 -11
- package/lib/modules/list/state/paging/paging.orchestrator.d.ts +0 -12
- package/lib/modules/list/state/paging/set-items-per-page.action.d.ts +0 -8
- package/lib/modules/list/state/paging/set-max-pages.action.d.ts +0 -8
- package/lib/modules/list/state/paging/set-page-number.action.d.ts +0 -8
- package/lib/modules/list/state/search/search.model.d.ts +0 -26
- package/lib/modules/list/state/search/search.orchestrator.d.ts +0 -13
- package/lib/modules/list/state/search/set-field-selectors.action.d.ts +0 -8
- package/lib/modules/list/state/search/set-functions.action.d.ts +0 -8
- package/lib/modules/list/state/search/set-options.action.d.ts +0 -13
- package/lib/modules/list/state/search/set-search-text.action.d.ts +0 -8
- package/lib/modules/list/state/selected/load.action.d.ts +0 -8
- package/lib/modules/list/state/selected/selected.model.d.ts +0 -12
- package/lib/modules/list/state/selected/selected.orchestrator.d.ts +0 -15
- package/lib/modules/list/state/selected/set-item-selected.action.d.ts +0 -9
- package/lib/modules/list/state/selected/set-items-selected.action.d.ts +0 -11
- package/lib/modules/list/state/selected/set-loading.action.d.ts +0 -8
- package/lib/modules/list/state/sort/label.model.d.ts +0 -29
- package/lib/modules/list/state/sort/set-available.action.d.ts +0 -9
- package/lib/modules/list/state/sort/set-field-selectors.action.d.ts +0 -9
- package/lib/modules/list/state/sort/set-global.action.d.ts +0 -9
- package/lib/modules/list/state/sort/sort.model.d.ts +0 -23
- package/lib/modules/list/state/sort/sort.orchestrator.d.ts +0 -12
- package/lib/modules/list/state/toolbar/disable.action.d.ts +0 -8
- package/lib/modules/list/state/toolbar/load.action.d.ts +0 -10
- package/lib/modules/list/state/toolbar/remove.action.d.ts +0 -8
- package/lib/modules/list/state/toolbar/set-exists.action.d.ts +0 -8
- package/lib/modules/list/state/toolbar/set-type.action.d.ts +0 -8
- package/lib/modules/list/state/toolbar/show-multiselect-toolbar.action.d.ts +0 -8
- package/lib/modules/list/state/toolbar/toolbar-item.model.d.ts +0 -13
- package/lib/modules/list/state/toolbar/toolbar.model.d.ts +0 -13
- package/lib/modules/list/state/toolbar/toolbar.orchestrator.d.ts +0 -15
- package/lib/modules/list/state/views/load.action.d.ts +0 -9
- package/lib/modules/list/state/views/set-active.action.d.ts +0 -8
- package/lib/modules/list/state/views/view.model.d.ts +0 -9
- package/lib/modules/list/state/views/views.model.d.ts +0 -10
- package/lib/modules/list/state/views/views.orchestrator.d.ts +0 -11
- package/lib/modules/list-data-provider-in-memory/list-data-in-memory.provider.d.ts +0 -21
- package/lib/modules/list-filters/filter.model.d.ts +0 -35
- package/lib/modules/list-filters/list-filter-button.component.d.ts +0 -21
- package/lib/modules/list-filters/list-filter-inline-item-renderer.component.d.ts +0 -13
- package/lib/modules/list-filters/list-filter-inline-item.component.d.ts +0 -43
- package/lib/modules/list-filters/list-filter-inline.component.d.ts +0 -22
- package/lib/modules/list-filters/list-filter-inline.model.d.ts +0 -15
- package/lib/modules/list-filters/list-filter-summary.component.d.ts +0 -29
- package/lib/modules/list-filters/list-filters.module.d.ts +0 -16
- package/lib/modules/list-paging/list-paging.component.d.ts +0 -37
- package/lib/modules/list-paging/list-paging.module.d.ts +0 -12
- package/lib/modules/list-toolbar/list-multiselect-toolbar.component.d.ts +0 -29
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.component.d.ts +0 -15
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-action.d.ts +0 -8
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions-host.component.d.ts +0 -18
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.component.d.ts +0 -18
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.module.d.ts +0 -16
- package/lib/modules/list-toolbar/list-secondary-actions/list-secondary-actions.service.d.ts +0 -18
- package/lib/modules/list-toolbar/list-toolbar-item-renderer.component.d.ts +0 -12
- package/lib/modules/list-toolbar/list-toolbar-item.component.d.ts +0 -27
- package/lib/modules/list-toolbar/list-toolbar-search-actions.component.d.ts +0 -9
- package/lib/modules/list-toolbar/list-toolbar-sort.component.d.ts +0 -29
- package/lib/modules/list-toolbar/list-toolbar-view-actions.component.d.ts +0 -14
- package/lib/modules/list-toolbar/list-toolbar.component.d.ts +0 -114
- package/lib/modules/list-toolbar/list-toolbar.module.d.ts +0 -24
- package/lib/modules/list-toolbar/state/config/config.model.d.ts +0 -8
- package/lib/modules/list-toolbar/state/config/config.orchestrator.d.ts +0 -10
- package/lib/modules/list-toolbar/state/config/set-search-enabled.action.d.ts +0 -7
- package/lib/modules/list-toolbar/state/config/set-sort-selector-enabled.action.d.ts +0 -7
- package/lib/modules/list-toolbar/state/toolbar-state-action.type.d.ts +0 -6
- package/lib/modules/list-toolbar/state/toolbar-state.model.d.ts +0 -7
- package/lib/modules/list-toolbar/state/toolbar-state.rxstate.d.ts +0 -15
- package/lib/modules/list-toolbar/state/toolbar-state.state-node.d.ts +0 -12
- package/lib/modules/shared/sky-list-builder-resources.module.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/list-builder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-alpha.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
},
|
|
17
17
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^
|
|
20
|
-
"@angular/core": "^
|
|
21
|
-
"@skyux/core": "
|
|
22
|
-
"@skyux/forms": "
|
|
23
|
-
"@skyux/i18n": "
|
|
24
|
-
"@skyux/icon": "
|
|
25
|
-
"@skyux/layout": "
|
|
26
|
-
"@skyux/list-builder-common": "
|
|
27
|
-
"@skyux/lists": "
|
|
28
|
-
"@skyux/lookup": "
|
|
29
|
-
"@skyux/popovers": "
|
|
19
|
+
"@angular/common": "^20.0.5",
|
|
20
|
+
"@angular/core": "^20.0.5",
|
|
21
|
+
"@skyux/core": "13.0.0-alpha.0",
|
|
22
|
+
"@skyux/forms": "13.0.0-alpha.0",
|
|
23
|
+
"@skyux/i18n": "13.0.0-alpha.0",
|
|
24
|
+
"@skyux/icon": "13.0.0-alpha.0",
|
|
25
|
+
"@skyux/layout": "13.0.0-alpha.0",
|
|
26
|
+
"@skyux/list-builder-common": "13.0.0-alpha.0",
|
|
27
|
+
"@skyux/lists": "13.0.0-alpha.0",
|
|
28
|
+
"@skyux/lookup": "13.0.0-alpha.0",
|
|
29
|
+
"@skyux/popovers": "13.0.0-alpha.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.8.1"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ListFilterModel } from '../list-filters/filter.model';
|
|
2
|
-
import { ListSearchModel } from './state/search/search.model';
|
|
3
|
-
import { ListSortModel } from './state/sort/sort.model';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListDataRequestModel {
|
|
8
|
-
/**
|
|
9
|
-
* The function that determines whether items are filtered.
|
|
10
|
-
* This property is required when using an in-memory data provider.
|
|
11
|
-
*/
|
|
12
|
-
filters: ListFilterModel[];
|
|
13
|
-
/**
|
|
14
|
-
* The number of items to display per page.
|
|
15
|
-
*/
|
|
16
|
-
pageSize: number;
|
|
17
|
-
/**
|
|
18
|
-
* The current page number.
|
|
19
|
-
*/
|
|
20
|
-
pageNumber: number;
|
|
21
|
-
/**
|
|
22
|
-
* The function to dynamically manage the data source when users
|
|
23
|
-
* change the text in the list field. The search function must return an
|
|
24
|
-
* array or a promise of an array. The `search` property is particularly useful
|
|
25
|
-
* when the data source does not live in the source code.
|
|
26
|
-
*/
|
|
27
|
-
search: ListSearchModel;
|
|
28
|
-
/**
|
|
29
|
-
* The set of fields to sort by.
|
|
30
|
-
*/
|
|
31
|
-
sort: ListSortModel;
|
|
32
|
-
/**
|
|
33
|
-
* Whether to disable the search bar and filter button.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
isToolbarDisabled: boolean;
|
|
37
|
-
constructor(data?: any);
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ListItemModel } from '@skyux/list-builder-common';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
|
-
export declare class ListDataResponseModel {
|
|
6
|
-
/**
|
|
7
|
-
* The total number of records in the list.
|
|
8
|
-
*/
|
|
9
|
-
count: number;
|
|
10
|
-
/**
|
|
11
|
-
* An array of the items returned. For information about `ListItemModel`, see the
|
|
12
|
-
* [shared classes for lists](https://developer.blackbaud.com/skyux-list-builder-common/docs/list-builder-common).
|
|
13
|
-
*/
|
|
14
|
-
items: ListItemModel[];
|
|
15
|
-
constructor(data?: any);
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ListDataRequestModel } from './list-data-request.model';
|
|
3
|
-
import { ListDataResponseModel } from './list-data-response.model';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class ListDataProvider {
|
|
9
|
-
data?: Observable<any[]>;
|
|
10
|
-
constructor(data?: Observable<any[]>);
|
|
11
|
-
abstract get(request: ListDataRequestModel): Observable<ListDataResponseModel>;
|
|
12
|
-
abstract count(): Observable<number>;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { ListStateDispatcher } from './state/list-state.rxstate';
|
|
3
|
-
import { ListState } from './state/list-state.state-node';
|
|
4
|
-
/**
|
|
5
|
-
* The SKY UX-themed pagination control that displays list data across multiple pages.
|
|
6
|
-
* @internal
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class ListPagingComponent {
|
|
10
|
-
protected initialized: BehaviorSubject<boolean>;
|
|
11
|
-
protected state: ListState;
|
|
12
|
-
protected dispatcher: ListStateDispatcher;
|
|
13
|
-
constructor(state: ListState, dispatcher: ListStateDispatcher);
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SkyListComponent } from '../list/list.component';
|
|
3
|
-
import { ListState } from './state/list-state.state-node';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class ListViewComponent {
|
|
9
|
-
active: Observable<boolean>;
|
|
10
|
-
protected viewName: string;
|
|
11
|
-
protected state: ListState;
|
|
12
|
-
protected list: SkyListComponent;
|
|
13
|
-
protected hasToolbar: Observable<boolean>;
|
|
14
|
-
private viewId;
|
|
15
|
-
constructor(state: ListState, defaultName: string);
|
|
16
|
-
get id(): string;
|
|
17
|
-
get label(): string;
|
|
18
|
-
onViewActive(): void;
|
|
19
|
-
onViewInactive(): void;
|
|
20
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { SkyLogService } from '@skyux/core';
|
|
3
|
-
import { ListItemModel, ListSortFieldSelectorModel } from '@skyux/list-builder-common';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ListFilterModel } from '../list-filters/filter.model';
|
|
6
|
-
import { ListDataResponseModel } from './list-data-response.model';
|
|
7
|
-
import { ListDataProvider } from './list-data.provider';
|
|
8
|
-
import { ListViewComponent } from './list-view.component';
|
|
9
|
-
import { ListStateDispatcher } from './state/list-state.rxstate';
|
|
10
|
-
import { ListState } from './state/list-state.state-node';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated List builder and its features are deprecated. Use data manager instead. For more information, see https://developer.blackbaud.com/skyux/components/data-manager.
|
|
14
|
-
*/
|
|
15
|
-
export declare class SkyListComponent implements AfterContentInit, OnChanges, OnDestroy {
|
|
16
|
-
private state;
|
|
17
|
-
private dispatcher;
|
|
18
|
-
id: string;
|
|
19
|
-
/**
|
|
20
|
-
* The data to display. The list component requires this property or the
|
|
21
|
-
* `dataProvider` property. For checklist or multiselect grids, each row requires an
|
|
22
|
-
* `id` property to manage selected items with the `selectedIds` input and the
|
|
23
|
-
* `selectedIdsChange` event. If you do not provide an `id`, the list automatically
|
|
24
|
-
* generates one. To update data in your view outside of a `dataProvider`, you must use
|
|
25
|
-
* an observable instead of a static array.
|
|
26
|
-
*/
|
|
27
|
-
data?: any[] | Observable<any[]>;
|
|
28
|
-
/**
|
|
29
|
-
* The data provider that obtains the data to display. The list component requires
|
|
30
|
-
* this property or the `data` property. For lists that use `dataProvider` instead of `data`,
|
|
31
|
-
* consumers are responsible for managing all `ListDataRequestModel` properties.
|
|
32
|
-
* @default SkyListInMemoryDataProvider
|
|
33
|
-
*/
|
|
34
|
-
dataProvider?: ListDataProvider;
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
defaultView?: ListViewComponent;
|
|
39
|
-
/**
|
|
40
|
-
* The total number of items for the initial data set when initialized. When
|
|
41
|
-
* used in conjunction with `data` and `dataProvider`, it allows an initial data to be
|
|
42
|
-
* set with the need to call the `dataProvider`.
|
|
43
|
-
*/
|
|
44
|
-
initialTotal?: number;
|
|
45
|
-
/**
|
|
46
|
-
* The set of IDs for the items to select in a checklist or multiselect grid.
|
|
47
|
-
* The IDs match the `id` properties of the `data` objects. Items with IDs that are not
|
|
48
|
-
* included are de-selected in the checklist or multiselect grid.
|
|
49
|
-
*/
|
|
50
|
-
selectedIds?: string[] | Observable<string[]>;
|
|
51
|
-
/**
|
|
52
|
-
* The set of fields to sort by. If array of fields then sorted by order of array.
|
|
53
|
-
* For information about `ListSortFieldSelectorModel`, see the
|
|
54
|
-
* [shared classes for lists](https://developer.blackbaud.com/skyux-list-builder-common/docs/list-builder-common).
|
|
55
|
-
*/
|
|
56
|
-
sortFields?: ListSortFieldSelectorModel | ListSortFieldSelectorModel[] | Observable<ListSortFieldSelectorModel[]> | Observable<ListSortFieldSelectorModel>;
|
|
57
|
-
/**
|
|
58
|
-
* The set of filters to apply to list data.
|
|
59
|
-
* These filters create a filter summary when the list includes the
|
|
60
|
-
* [`sky-list-filter-summary`](https://developer.blackbaud.com/skyux/components/list/filters)
|
|
61
|
-
* component.
|
|
62
|
-
*/
|
|
63
|
-
appliedFilters: ListFilterModel[];
|
|
64
|
-
/**
|
|
65
|
-
* For list views that support item selection, emits the selected entries.
|
|
66
|
-
*/
|
|
67
|
-
selectedIdsChange: EventEmitter<Map<string, boolean>>;
|
|
68
|
-
/**
|
|
69
|
-
* Emits the filters applied to the list.
|
|
70
|
-
*/
|
|
71
|
-
appliedFiltersChange: EventEmitter<ListFilterModel[]>;
|
|
72
|
-
/**
|
|
73
|
-
* The function to apply as a global sort on the list.
|
|
74
|
-
*/
|
|
75
|
-
searchFunction: (data: any, searchText: string) => boolean;
|
|
76
|
-
private dataFirstLoad;
|
|
77
|
-
private listViews;
|
|
78
|
-
private lastSelectedIds;
|
|
79
|
-
private lastFilters;
|
|
80
|
-
private ngUnsubscribe;
|
|
81
|
-
constructor(state: ListState, dispatcher: ListStateDispatcher, logger: SkyLogService);
|
|
82
|
-
ngAfterContentInit(): void;
|
|
83
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
84
|
-
ngOnDestroy(): void;
|
|
85
|
-
refreshDisplayedItems(): void;
|
|
86
|
-
get displayedItems(): Observable<ListDataResponseModel>;
|
|
87
|
-
get selectedItems(): Observable<ListItemModel[]>;
|
|
88
|
-
get lastUpdate(): Observable<Date>;
|
|
89
|
-
get views(): ListViewComponent[];
|
|
90
|
-
get itemCount(): Observable<number>;
|
|
91
|
-
private getItemsAndRetainSelections;
|
|
92
|
-
private arraysEqual;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyListComponent, never>;
|
|
94
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkyListComponent, "sky-list", never, { "data": { "alias": "data"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "defaultView": { "alias": "defaultView"; "required": false; }; "initialTotal": { "alias": "initialTotal"; "required": false; }; "selectedIds": { "alias": "selectedIds"; "required": false; }; "sortFields": { "alias": "sortFields"; "required": false; }; "appliedFilters": { "alias": "appliedFilters"; "required": false; }; "searchFunction": { "alias": "search"; "required": false; }; }, { "selectedIdsChange": "selectedIdsChange"; "appliedFiltersChange": "appliedFiltersChange"; }, ["listViews"], ["*"], false, never>;
|
|
95
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./list.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated List builder and its features are deprecated. Use data manager instead. For more information, see https://developer.blackbaud.com/skyux/components/data-manager.
|
|
6
|
-
*/
|
|
7
|
-
export declare class SkyListModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkyListModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkyListModule, [typeof i1.SkyListComponent], [typeof i2.CommonModule], [typeof i1.SkyListComponent]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<SkyListModule>;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ListFilterModel } from '../../../list-filters/filter.model';
|
|
2
|
-
import { ListStateOrchestrator } from '../list-state.rxstate';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListFiltersOrchestrator extends ListStateOrchestrator<ListFilterModel[]> {
|
|
8
|
-
constructor();
|
|
9
|
-
private update;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AsyncList, ListItemModel } from '@skyux/list-builder-common';
|
|
2
|
-
import { ListStateOrchestrator } from '../list-state.rxstate';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListItemsOrchestrator extends ListStateOrchestrator<AsyncList<ListItemModel>> {
|
|
8
|
-
constructor();
|
|
9
|
-
private setLoading;
|
|
10
|
-
private load;
|
|
11
|
-
private setItemsSelected;
|
|
12
|
-
private cloneListItemModelArray;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ListItemModel } from '@skyux/list-builder-common';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare class ListItemsLoadAction {
|
|
7
|
-
items: ListItemModel[];
|
|
8
|
-
refresh: boolean;
|
|
9
|
-
dataChanged: boolean;
|
|
10
|
-
count?: number;
|
|
11
|
-
constructor(items: ListItemModel[], refresh?: boolean, dataChanged?: boolean, count?: number);
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ListFiltersUpdateAction } from './filters/update.action';
|
|
2
|
-
import { ListItemsLoadAction } from './items/load.action';
|
|
3
|
-
import { ListItemsSetSelectedAction } from './items/set-items-selected.action';
|
|
4
|
-
import { ListItemsSetLoadingAction } from './items/set-loading.action';
|
|
5
|
-
import { ListPagingSetItemsPerPageAction } from './paging/set-items-per-page.action';
|
|
6
|
-
import { ListPagingSetMaxPagesAction } from './paging/set-max-pages.action';
|
|
7
|
-
import { ListPagingSetPageNumberAction } from './paging/set-page-number.action';
|
|
8
|
-
import { ListSearchSetFieldSelectorsAction } from './search/set-field-selectors.action';
|
|
9
|
-
import { ListSearchSetFunctionsAction } from './search/set-functions.action';
|
|
10
|
-
import { ListSearchSetOptionsAction } from './search/set-options.action';
|
|
11
|
-
import { ListSearchSetSearchTextAction } from './search/set-search-text.action';
|
|
12
|
-
import { ListSelectedLoadAction } from './selected/load.action';
|
|
13
|
-
import { ListSelectedSetItemSelectedAction } from './selected/set-item-selected.action';
|
|
14
|
-
import { ListSelectedSetItemsSelectedAction } from './selected/set-items-selected.action';
|
|
15
|
-
import { ListSelectedSetLoadingAction } from './selected/set-loading.action';
|
|
16
|
-
import { ListSortSetAvailableAction } from './sort/set-available.action';
|
|
17
|
-
import { ListSortSetFieldSelectorsAction } from './sort/set-field-selectors.action';
|
|
18
|
-
import { ListSortSetGlobalAction } from './sort/set-global.action';
|
|
19
|
-
import { ListToolbarItemsDisableAction } from './toolbar/disable.action';
|
|
20
|
-
import { ListToolbarItemsLoadAction } from './toolbar/load.action';
|
|
21
|
-
import { ListToolbarItemsRemoveAction } from './toolbar/remove.action';
|
|
22
|
-
import { ListToolbarSetExistsAction } from './toolbar/set-exists.action';
|
|
23
|
-
import { ListToolbarSetTypeAction } from './toolbar/set-type.action';
|
|
24
|
-
import { ListViewsLoadAction } from './views/load.action';
|
|
25
|
-
import { ListViewsSetActiveAction } from './views/set-active.action';
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated
|
|
29
|
-
*/
|
|
30
|
-
export type ListStateAction = ListItemsSetLoadingAction | ListItemsLoadAction | ListItemsSetSelectedAction | ListPagingSetMaxPagesAction | ListPagingSetItemsPerPageAction | ListPagingSetPageNumberAction | ListViewsLoadAction | ListViewsSetActiveAction | ListToolbarItemsLoadAction | ListToolbarSetExistsAction | ListSearchSetSearchTextAction | ListSearchSetFunctionsAction | ListSearchSetFieldSelectorsAction | ListSearchSetOptionsAction | ListSelectedSetLoadingAction | ListSelectedLoadAction | ListSelectedSetItemSelectedAction | ListSelectedSetItemsSelectedAction | ListToolbarSetTypeAction | ListSortSetFieldSelectorsAction | ListSortSetAvailableAction | ListSortSetGlobalAction | ListFiltersUpdateAction | ListToolbarItemsRemoveAction | ListToolbarItemsDisableAction;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AsyncItem, AsyncList, ListItemModel } from '@skyux/list-builder-common';
|
|
2
|
-
import { ListFilterModel } from '../../list-filters/filter.model';
|
|
3
|
-
import { ListPagingModel } from './paging/paging.model';
|
|
4
|
-
import { ListSearchModel } from './search/search.model';
|
|
5
|
-
import { ListSelectedModel } from './selected/selected.model';
|
|
6
|
-
import { ListSortModel } from './sort/sort.model';
|
|
7
|
-
import { ListToolbarModel } from './toolbar/toolbar.model';
|
|
8
|
-
import { ListViewsModel } from './views/views.model';
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
* @deprecated
|
|
12
|
-
*/
|
|
13
|
-
export declare class ListStateModel {
|
|
14
|
-
filters: ListFilterModel[];
|
|
15
|
-
items: AsyncList<ListItemModel>;
|
|
16
|
-
paging: ListPagingModel;
|
|
17
|
-
search: ListSearchModel;
|
|
18
|
-
selected: AsyncItem<ListSelectedModel>;
|
|
19
|
-
sort: ListSortModel;
|
|
20
|
-
toolbar: ListToolbarModel;
|
|
21
|
-
views: ListViewsModel;
|
|
22
|
-
constructor();
|
|
23
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ListSortFieldSelectorModel, StateDispatcher, StateOrchestrator } from '@skyux/list-builder-common';
|
|
2
|
-
import { ListFilterModel } from '../../list-filters/filter.model';
|
|
3
|
-
import { ListStateAction } from './list-state-action.type';
|
|
4
|
-
import { ListSearchModel } from './search/search.model';
|
|
5
|
-
import { ListSortLabelModel } from './sort/label.model';
|
|
6
|
-
import { ListToolbarItemModel } from './toolbar/toolbar-item.model';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
export declare class ListStateOrchestrator<T> extends StateOrchestrator<T, ListStateAction> {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
export declare class ListStateDispatcher extends StateDispatcher<ListStateAction> {
|
|
19
|
-
viewsSetActive(id: string): void;
|
|
20
|
-
toolbarExists(exists: boolean): void;
|
|
21
|
-
toolbarSetDisabled(disabled: boolean): void;
|
|
22
|
-
toolbarAddItems(items: ListToolbarItemModel[], index?: number): void;
|
|
23
|
-
toolbarRemoveItems(ids: string[]): void;
|
|
24
|
-
toolbarShowMultiselectToolbar(show: boolean): void;
|
|
25
|
-
searchSetFunctions(sortFunctions: ((data: any, searchText: string) => boolean)[]): void;
|
|
26
|
-
searchSetFieldSelectors(fieldSelectors: string[]): void;
|
|
27
|
-
searchSetText(searchText: string): void;
|
|
28
|
-
searchSetOptions(searchOptions: ListSearchModel): void;
|
|
29
|
-
sortSetAvailable(sortLabels: ListSortLabelModel[]): void;
|
|
30
|
-
sortSetFieldSelectors(fieldSelectors: ListSortFieldSelectorModel[]): void;
|
|
31
|
-
sortSetGlobal(sortLabels: ListSortLabelModel[]): void;
|
|
32
|
-
filtersUpdate(filters: ListFilterModel[]): void;
|
|
33
|
-
setSelected(selectedIds: string[], selected: boolean, refresh?: boolean): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListStateDispatcher, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ListStateDispatcher>;
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StateNode } from '@skyux/list-builder-common';
|
|
2
|
-
import { ListStateModel } from './list-state.model';
|
|
3
|
-
import { ListStateDispatcher } from './list-state.rxstate';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
export declare class ListState extends StateNode<ListStateModel> {
|
|
10
|
-
constructor(dispatcher: ListStateDispatcher);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ListState, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ListState>;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ListStateOrchestrator } from '../list-state.rxstate';
|
|
2
|
-
import { ListPagingModel } from './paging.model';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListPagingOrchestrator extends ListStateOrchestrator<ListPagingModel> {
|
|
8
|
-
constructor();
|
|
9
|
-
private setMaxPages;
|
|
10
|
-
private setItemsPerPage;
|
|
11
|
-
private setPageNumber;
|
|
12
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies a function to dynamically manage the data source when users change the text
|
|
3
|
-
* in the list field. The search function must return an array or a promise of an array.
|
|
4
|
-
* The `search` property is particularly useful when the data source does not live
|
|
5
|
-
* in the source code.
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare class ListSearchModel {
|
|
9
|
-
/**
|
|
10
|
-
* The text to search.
|
|
11
|
-
* @default ""
|
|
12
|
-
*/
|
|
13
|
-
searchText: string;
|
|
14
|
-
/**
|
|
15
|
-
* The array of functions that returns a `boolean` value of `true` when
|
|
16
|
-
* the search is successful. This property accepts a function of type
|
|
17
|
-
* `(data: any, searchText: string) => boolean>.`
|
|
18
|
-
*/
|
|
19
|
-
functions: ((data: any, searchText: string) => boolean)[];
|
|
20
|
-
/**
|
|
21
|
-
* The columns to search. The columns correspond to `field` values that
|
|
22
|
-
* you specify with the list component's `data` property.
|
|
23
|
-
*/
|
|
24
|
-
fieldSelectors: string[];
|
|
25
|
-
constructor(data?: any);
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ListStateOrchestrator } from '../list-state.rxstate';
|
|
2
|
-
import { ListSearchModel } from './search.model';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
* @deprecated
|
|
6
|
-
*/
|
|
7
|
-
export declare class ListSearchOrchestrator extends ListStateOrchestrator<ListSearchModel> {
|
|
8
|
-
constructor();
|
|
9
|
-
private setSearchText;
|
|
10
|
-
private setFunctions;
|
|
11
|
-
private setFieldSelectors;
|
|
12
|
-
private setOptions;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ListSearchSetFieldSelectorsAction } from './set-field-selectors.action';
|
|
2
|
-
import { ListSearchSetFunctionsAction } from './set-functions.action';
|
|
3
|
-
import { ListSearchSetSearchTextAction } from './set-search-text.action';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare class ListSearchSetOptionsAction {
|
|
9
|
-
searchTextAction: ListSearchSetSearchTextAction;
|
|
10
|
-
setFieldSelectorsAction: ListSearchSetFieldSelectorsAction;
|
|
11
|
-
setFunctionsAction: ListSearchSetFunctionsAction;
|
|
12
|
-
constructor(searchTextAction: ListSearchSetSearchTextAction, setFieldSelectorsAction: ListSearchSetFieldSelectorsAction, setFunctionsAction: ListSearchSetFunctionsAction);
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Contains data about the selected items in the list.
|
|
3
|
-
* @deprecated
|
|
4
|
-
*/
|
|
5
|
-
export declare class ListSelectedModel {
|
|
6
|
-
/**
|
|
7
|
-
* A map of key value pairs that consists of IDs for selected items
|
|
8
|
-
* and boolean values for their selected states.
|
|
9
|
-
*/
|
|
10
|
-
selectedIdMap: Map<string, boolean>;
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AsyncItem } from '@skyux/list-builder-common';
|
|
2
|
-
import { ListStateOrchestrator } from '../list-state.rxstate';
|
|
3
|
-
import { ListSelectedModel } from './selected.model';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
* @deprecated
|
|
7
|
-
*/
|
|
8
|
-
export declare class ListSelectedOrchestrator extends ListStateOrchestrator<AsyncItem<ListSelectedModel>> {
|
|
9
|
-
constructor();
|
|
10
|
-
private setLoading;
|
|
11
|
-
private load;
|
|
12
|
-
private setItemSelected;
|
|
13
|
-
private setItemsSelected;
|
|
14
|
-
private cloneListSelectedModel;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare class ListSelectedSetItemsSelectedAction {
|
|
7
|
-
items: string[] | Observable<string[]>;
|
|
8
|
-
selected: boolean;
|
|
9
|
-
refresh: boolean;
|
|
10
|
-
constructor(items: string[] | Observable<string[]>, selected?: boolean, refresh?: boolean);
|
|
11
|
-
}
|