@skyux/data-manager 12.27.0 → 13.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/fesm2022/skyux-data-manager-testing.mjs.map +1 -1
  2. package/fesm2022/skyux-data-manager.mjs +41 -41
  3. package/fesm2022/skyux-data-manager.mjs.map +1 -1
  4. package/index.d.ts +705 -25
  5. package/package.json +14 -14
  6. package/testing/index.d.ts +359 -3
  7. package/lib/modules/data-manager/data-manager-column-picker/data-manager-column-picker-context.d.ts +0 -8
  8. package/lib/modules/data-manager/data-manager-column-picker/data-manager-column-picker-impl.service.d.ts +0 -7
  9. package/lib/modules/data-manager/data-manager-column-picker/data-manager-column-picker-providers.d.ts +0 -2
  10. package/lib/modules/data-manager/data-manager-column-picker/data-manager-column-picker.component.d.ts +0 -42
  11. package/lib/modules/data-manager/data-manager-column-picker/data-manager-column-picker.service.d.ts +0 -13
  12. package/lib/modules/data-manager/data-manager-filter-context.d.ts +0 -10
  13. package/lib/modules/data-manager/data-manager-toolbar/data-manager-toolbar-left-item.component.d.ts +0 -10
  14. package/lib/modules/data-manager/data-manager-toolbar/data-manager-toolbar-primary-item.component.d.ts +0 -10
  15. package/lib/modules/data-manager/data-manager-toolbar/data-manager-toolbar-right-item.component.d.ts +0 -11
  16. package/lib/modules/data-manager/data-manager-toolbar/data-manager-toolbar-section.component.d.ts +0 -10
  17. package/lib/modules/data-manager/data-manager-toolbar/data-manager-toolbar.component.d.ts +0 -36
  18. package/lib/modules/data-manager/data-manager.component.d.ts +0 -22
  19. package/lib/modules/data-manager/data-manager.module.d.ts +0 -13
  20. package/lib/modules/data-manager/data-manager.service.d.ts +0 -117
  21. package/lib/modules/data-manager/data-view.component.d.ts +0 -26
  22. package/lib/modules/data-manager/models/data-manager-column-picker-option.d.ts +0 -31
  23. package/lib/modules/data-manager/models/data-manager-column-picker-sort-strategy.d.ts +0 -14
  24. package/lib/modules/data-manager/models/data-manager-config.d.ts +0 -28
  25. package/lib/modules/data-manager/models/data-manager-filter-data.d.ts +0 -11
  26. package/lib/modules/data-manager/models/data-manager-init-args.d.ts +0 -25
  27. package/lib/modules/data-manager/models/data-manager-sort-option.d.ts +0 -22
  28. package/lib/modules/data-manager/models/data-manager-state-change.d.ts +0 -9
  29. package/lib/modules/data-manager/models/data-manager-state-options.d.ts +0 -35
  30. package/lib/modules/data-manager/models/data-manager-state-update-filter-args.d.ts +0 -16
  31. package/lib/modules/data-manager/models/data-manager-state.d.ts +0 -58
  32. package/lib/modules/data-manager/models/data-manager-summary-change.d.ts +0 -9
  33. package/lib/modules/data-manager/models/data-manager-summary.d.ts +0 -13
  34. package/lib/modules/data-manager/models/data-view-column-widths.d.ts +0 -10
  35. package/lib/modules/data-manager/models/data-view-config.d.ts +0 -96
  36. package/lib/modules/data-manager/models/data-view-state-options.d.ts +0 -24
  37. package/lib/modules/data-manager/models/data-view-state.d.ts +0 -34
  38. package/lib/modules/shared/sky-data-manager-resources.module.d.ts +0 -10
  39. package/testing/modules/data-manager/data-manager-column-picker-column-harness-filters.d.ts +0 -6
  40. package/testing/modules/data-manager/data-manager-column-picker-column-harness.d.ts +0 -81
  41. package/testing/modules/data-manager/data-manager-column-picker-harness.d.ts +0 -45
  42. package/testing/modules/data-manager/data-manager-harness-filters.d.ts +0 -6
  43. package/testing/modules/data-manager/data-manager-harness.d.ts +0 -33
  44. package/testing/modules/data-manager/data-manager-toolbar-harness-filters.d.ts +0 -6
  45. package/testing/modules/data-manager/data-manager-toolbar-harness.d.ts +0 -94
  46. package/testing/modules/data-manager/data-manager-toolbar-left-item-harness-filters.d.ts +0 -6
  47. package/testing/modules/data-manager/data-manager-toolbar-left-item-harness.d.ts +0 -17
  48. package/testing/modules/data-manager/data-manager-toolbar-primary-item-harness-filters.d.ts +0 -6
  49. package/testing/modules/data-manager/data-manager-toolbar-primary-item-harness.d.ts +0 -17
  50. package/testing/modules/data-manager/data-manager-toolbar-right-item-harness-filters.d.ts +0 -6
  51. package/testing/modules/data-manager/data-manager-toolbar-right-item-harness.d.ts +0 -17
  52. package/testing/modules/data-manager/data-manager-toolbar-section-harness-filters.d.ts +0 -6
  53. package/testing/modules/data-manager/data-manager-toolbar-section-harness.d.ts +0 -17
  54. package/testing/modules/data-manager/data-view-harness-filters.d.ts +0 -7
  55. package/testing/modules/data-manager/data-view-harness.d.ts +0 -17
  56. package/testing/public-api.d.ts +0 -17
@@ -1,117 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { SkyUIConfigService } from '@skyux/core';
3
- import { BehaviorSubject, Observable } from 'rxjs';
4
- import { SkyDataManagerConfig } from './models/data-manager-config';
5
- import { SkyDataManagerInitArgs } from './models/data-manager-init-args';
6
- import { SkyDataManagerState } from './models/data-manager-state';
7
- import { SkyDataManagerStateUpdateFilterArgs } from './models/data-manager-state-update-filter-args';
8
- import { SkyDataManagerSummary } from './models/data-manager-summary';
9
- import { SkyDataViewConfig } from './models/data-view-config';
10
- import * as i0 from "@angular/core";
11
- /**
12
- * The data manager service provides ways for data views, toolbar items, and more to stay up to date
13
- * with the active view ID, data manager config, registered views and their configs, and data state.
14
- * There are methods to get current values, update values, and get subscriptions to the changing values.
15
- *
16
- * Provide this service at the component level for each instance of a data manager. Do not
17
- * provide it at the module level or in `app-extras`. This allows multiple data
18
- * managers to be used and self-contained.
19
- */
20
- export declare class SkyDataManagerService implements OnDestroy {
21
- #private;
22
- /**
23
- * @internal
24
- */
25
- viewkeeperClasses: BehaviorSubject<Record<string, string[]>>;
26
- constructor(uiConfigService: SkyUIConfigService);
27
- ngOnDestroy(): void;
28
- /**
29
- * Initializes the data manager with the given settings and sets `isInitialized` to `true`.
30
- * This must be called for the data manager to render.
31
- * @param args The initial active view ID, data manager config, and state to use for the data manager.
32
- * If a settings key is provided, it checks for a saved data state in the SKY UI config service before using the default data state
33
- * and saves any state changes to the service.
34
- */
35
- initDataManager(args: SkyDataManagerInitArgs): void;
36
- /**
37
- * Initializes a view within the data manager. This must be called for each view for the views to appear within the data manager.
38
- * @param viewConfig The SkyDataViewConfig settings for the view being registered.
39
- */
40
- initDataView(viewConfig: SkyDataViewConfig): void;
41
- /**
42
- * Returns an observable of data state changes that views and other data manager entities can subscribe to.
43
- * It excludes updates originating from the provided source. This allows subscribers to only respond to
44
- * changes they did not create and helps prevent infinite loops of updates and responses.
45
- * @param sourceId The ID of the entity subscribing to data state updates. This can be any value you choose
46
- * but should be unique within the data manager instance and should also be used when that entity updates the state.
47
- */
48
- getDataStateUpdates(sourceId: string, updateFilter?: SkyDataManagerStateUpdateFilterArgs): Observable<SkyDataManagerState>;
49
- /**
50
- * Updates the data state and emits a new value to entities subscribed to data state changes.
51
- * @param state The new `SkyDataManagerState` value.
52
- * @param sourceId The ID of the entity updating the state. This can be any value you choose,
53
- * but should be unique within the data manager instance and should also be used when that entity
54
- * subscribes to state changes from `getDataStateUpdates`.
55
- */
56
- updateDataState(state: SkyDataManagerState, sourceId: string): void;
57
- /**
58
- * Returns an observable of data summary changes that views and other data manager entities can subscribe to.
59
- * It excludes updates originating from the provided source. This allows subscribers to only respond to
60
- * changes they did not create and helps prevent infinite loops of updates and responses.
61
- * @param sourceId The ID of the entity subscribing to data summary updates. This can be any value you choose
62
- * but should be unique within the data manager instance and should also be used when that entity updates the summary.
63
- */
64
- getDataSummaryUpdates(sourceId: string): Observable<SkyDataManagerSummary>;
65
- /**
66
- * Updates the data summary and emits a new value to entities subscribed to data summary changes.
67
- * @param summary The new `SkyDataManagerSummary` value.
68
- * @param sourceId The ID of the entity updating the summary. This can be any value you choose,
69
- * but should be unique within the data manager instance and should also be used when that entity
70
- * subscribes to summary changes from `getDataSummaryUpdates`.
71
- */
72
- updateDataSummary(summary: SkyDataManagerSummary, sourceId: string): void;
73
- /**
74
- * Returns the current `SkyDataManagerConfig`.
75
- */
76
- getCurrentDataManagerConfig(): SkyDataManagerConfig;
77
- /**
78
- * Returns an observable of data manager config changes that views and other data manager entities can subscribe to.
79
- */
80
- getDataManagerConfigUpdates(): Observable<SkyDataManagerConfig>;
81
- /**
82
- * Updates the data manager config and emits a new value to entities subscribed to data config changes.
83
- * @param value The new `SkyDataManagerConfig` value.
84
- */
85
- updateDataManagerConfig(value: SkyDataManagerConfig): void;
86
- /**
87
- * Returns an observable of data view config changes that views and other data manager entities can subscribe to.
88
- */
89
- getDataViewsUpdates(): Observable<SkyDataViewConfig[]>;
90
- /**
91
- * Returns an observable of the active view ID that views and other data manager entities can subscribe to.
92
- */
93
- getActiveViewIdUpdates(): Observable<string>;
94
- /**
95
- * Updates the active view ID. The data manager changes the displayed view.
96
- * @param id The new active view ID.
97
- */
98
- updateActiveViewId(id: string): void;
99
- /**
100
- * Returns the `SkyDataViewConfig` for the given view ID.
101
- * @param viewId The ID of the view config to get.
102
- */
103
- getViewById(viewId: string): SkyDataViewConfig | undefined;
104
- /**
105
- * Updates the given view config. The registered view with the same ID is updated to the
106
- * provided config, so include all properties regardless of whether they changed. If the
107
- * view was not initialized already, no update happens.
108
- * @param view The new `SkyDataViewConfig` containing all properties.
109
- */
110
- updateViewConfig(view: SkyDataViewConfig): void;
111
- /**
112
- * @internal
113
- */
114
- setViewkeeperClasses(viewId: string, classes: string[]): void;
115
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDataManagerService, never>;
116
- static ɵprov: i0.ɵɵInjectableDeclaration<SkyDataManagerService>;
117
- }
@@ -1,26 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@skyux/core";
4
- import * as i2 from "@skyux/indicators";
5
- /**
6
- * A data view is rendered within a data manager component.
7
- * It can subscribe to data state changes from `SkyDataManagerService` and apply the filters,
8
- * search text, and more to the data it displays.
9
- */
10
- export declare class SkyDataViewComponent implements OnDestroy, OnInit {
11
- #private;
12
- /**
13
- * The configuration for the view. See the `SkyDataViewConfig` interface.
14
- * @required
15
- */
16
- viewId: string | undefined;
17
- get dataViewId(): string | undefined;
18
- get isActive(): boolean;
19
- set isActive(value: boolean);
20
- get textHighlight(): string | undefined;
21
- set textHighlight(value: string | undefined);
22
- ngOnInit(): void;
23
- ngOnDestroy(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDataViewComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SkyDataViewComponent, "sky-data-view", never, { "viewId": { "alias": "viewId"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.SkyResponsiveHostDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.SkyTextHighlightDirective; inputs: {}; outputs: {}; }]>;
26
- }
@@ -1,31 +0,0 @@
1
- /**
2
- * The options to display in a view's column picker.
3
- */
4
- export interface SkyDataManagerColumnPickerOption {
5
- /**
6
- * Whether a column is always visible and is not listed as an option in the column
7
- * picker. For example, a context menu column may always be visible.
8
- */
9
- alwaysDisplayed?: boolean;
10
- /**
11
- * The description text rendered beneath the column label in the column picker.
12
- */
13
- description?: string;
14
- /**
15
- * Initially hide the column when it is added to the grid unless given in the view state's
16
- * `displayedColumnIds`. When enabled, this column will not be automatically added to a view's
17
- * state when this column is recognized as being missing from an initial data state or a data
18
- * state returned via the SKY UI config service.
19
- */
20
- initialHide?: boolean;
21
- /**
22
- * The ID of the corresponding column.
23
- * @required
24
- */
25
- id: string;
26
- /**
27
- * The label to display in the column picker.
28
- * @required
29
- */
30
- label: string;
31
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * These options specify the sorting strategy applied to columns when `columnPickerEnabled` is enabled.
3
- */
4
- export declare enum SkyDataManagerColumnPickerSortStrategy {
5
- /**
6
- * No sorting is applied to the columns.
7
- */
8
- None = "none",
9
- /**
10
- * If `sortEnabled` is set to `true`, then the selected columns are displayed before the unselected columns. Unselected columns are sorted alphabetically.
11
- * If `sortEnabled` is set to `false`, then the columns are displayed in the order specified by `columnOptions`.
12
- */
13
- SelectedThenAlphabetical = "selectedThenAlphabetical"
14
- }
@@ -1,28 +0,0 @@
1
- import { SkyDataManagerSortOption } from './data-manager-sort-option';
2
- /**
3
- * The data manager config contains settings that apply to the data manager across all views,
4
- * such as the sort and filter settings.
5
- */
6
- export interface SkyDataManagerConfig {
7
- /**
8
- * An untyped property that can track any config information relevant to a
9
- * data manager that existing options do not include.
10
- */
11
- additionalOptions?: any;
12
- /**
13
- * The modal component to launch when the filter button is selected. The same filter options are
14
- * used for all views, but views can use `SkyDataViewConfig` to indicate whether to display
15
- * the filter button. The modal receives the `filterData` in the data state as context.
16
- */
17
- filterModalComponent?: any;
18
- /**
19
- * A descriptor for the data that the data manager manipulates. Use a plural term. The descriptor helps set the data manager's `aria-label` attributes for multiselect toolbars, search inputs, sort buttons, and filter buttons to provide text equivalents for screen readers [to support accessibility](https://developer.blackbaud.com/skyux/components/checkbox#accessibility).
20
- * For example, when the descriptor is "constituents," the search input's `aria-label` is "Search constituents." For more information about the `aria-label` attribute, see the [WAI-ARIA definition](https://www.w3.org/TR/wai-aria/#aria-label).
21
- */
22
- listDescriptor?: string;
23
- /**
24
- * The sort options displayed in the sort dropdown. The same sort options are used for all views,
25
- * but views can use `SkyDataViewConfig` to indicate whether to display the sort button.
26
- */
27
- sortOptions?: SkyDataManagerSortOption[];
28
- }
@@ -1,11 +0,0 @@
1
- export interface SkyDataManagerFilterData {
2
- /**
3
- * Whether any filters are applied.
4
- */
5
- filtersApplied?: boolean;
6
- /**
7
- * The filter data used in the data manager. You may use any filter model that works for
8
- * your data set and models. See the demo for an example.
9
- */
10
- filters?: any;
11
- }
@@ -1,25 +0,0 @@
1
- import { SkyDataManagerConfig } from './data-manager-config';
2
- import { SkyDataManagerState } from './data-manager-state';
3
- export interface SkyDataManagerInitArgs {
4
- /**
5
- * The initial active view's ID.
6
- * @required
7
- */
8
- activeViewId: string;
9
- /**
10
- * The initial configuration for the data manager. See the SkyDataManagerConfig interface.
11
- * @required
12
- */
13
- dataManagerConfig: SkyDataManagerConfig;
14
- /**
15
- * The data state used if no settings key is provided or if no data state is saved in the SKY UI
16
- * config service for the user. See the SkyDataManagerState interface.
17
- * @required
18
- */
19
- defaultDataState: SkyDataManagerState;
20
- /**
21
- * The unique key for the UI Config Service to retrieve stored settings from a database.
22
- * The UI Config Service saves configuration settings for users to preserve the current data state. For more information about the UI Config Service, see [the sticky settings documentation](https://developer.blackbaud.com/skyux/learn/develop/sticky-settings).
23
- */
24
- settingsKey?: string;
25
- }
@@ -1,22 +0,0 @@
1
- export interface SkyDataManagerSortOption {
2
- /**
3
- * Whether to apply the sort in descending order.
4
- * @required
5
- */
6
- descending: boolean;
7
- /**
8
- * An ID for the sort option.
9
- * @required
10
- */
11
- id: string;
12
- /**
13
- * The label to display in the sort dropdown.
14
- * @required
15
- */
16
- label: string;
17
- /**
18
- * The data property to sort by.
19
- * @required
20
- */
21
- propertyName: string;
22
- }
@@ -1,9 +0,0 @@
1
- import { SkyDataManagerState } from './data-manager-state';
2
- /**
3
- * @internal
4
- */
5
- export declare class SkyDataManagerStateChange {
6
- dataState: SkyDataManagerState;
7
- source: string;
8
- constructor(dataState: SkyDataManagerState, source: string);
9
- }
@@ -1,35 +0,0 @@
1
- import { SkyDataManagerFilterData } from './data-manager-filter-data';
2
- import { SkyDataManagerSortOption } from './data-manager-sort-option';
3
- import { SkyDataViewStateOptions } from './data-view-state-options';
4
- export interface SkyDataManagerStateOptions {
5
- /**
6
- * The selected SkyDataManagerSortOption to apply.
7
- */
8
- activeSortOption?: SkyDataManagerSortOption;
9
- /**
10
- * An untyped property that tracks any state information that's relevant to a data
11
- * manager but that the existing properties do not cover.
12
- */
13
- additionalData?: any;
14
- /**
15
- * The state of the filters.
16
- */
17
- filterData?: SkyDataManagerFilterData;
18
- /**
19
- * Whether to display only the selected rows or objects. The multiselect toolbar
20
- * uses this property.
21
- */
22
- onlyShowSelected?: boolean;
23
- /**
24
- * The search text to apply.
25
- */
26
- searchText?: string;
27
- /**
28
- * The currently selected rows or objects.
29
- */
30
- selectedIds?: string[];
31
- /**
32
- * The states of the individual views.
33
- */
34
- views?: SkyDataViewStateOptions[];
35
- }
@@ -1,16 +0,0 @@
1
- import { SkyDataManagerState } from './data-manager-state';
2
- /**
3
- * Optional arguments to pass to `getDataStateUpdates`.
4
- * Provide either a list of properties to filter on OR a custom comparator.
5
- */
6
- export interface SkyDataManagerStateUpdateFilterArgs {
7
- /**
8
- * A list of `SkyDataManagerState` properties to compare to test if the new `SkyDataManagerState` is distinct from the previous.
9
- * This allows you to subscribe to changes for only the provided properties.
10
- */
11
- properties?: string[];
12
- /**
13
- * A comparator function called to test if the new `SkyDataManagerState` is distinct from the previous.
14
- */
15
- comparator?: (state1: SkyDataManagerState, state2: SkyDataManagerState) => boolean;
16
- }
@@ -1,58 +0,0 @@
1
- import { SkyDataManagerFilterData } from './data-manager-filter-data';
2
- import { SkyDataManagerSortOption } from './data-manager-sort-option';
3
- import { SkyDataManagerStateOptions } from './data-manager-state-options';
4
- import { SkyDataViewState } from './data-view-state';
5
- /**
6
- * Provides options that control which data to display.
7
- */
8
- export declare class SkyDataManagerState {
9
- /**
10
- * The selected SkyDataManagerSortOption to apply.
11
- */
12
- activeSortOption: SkyDataManagerSortOption | undefined;
13
- /**
14
- * An untyped property that tracks any state information that's relevant to a data
15
- * manager but that the existing properties do not cover.
16
- */
17
- additionalData: any;
18
- /**
19
- * The state of the filters.
20
- */
21
- filterData: SkyDataManagerFilterData | undefined;
22
- /**
23
- * Whether to display only the selected rows or objects. The multiselect toolbar
24
- * uses this property.
25
- */
26
- onlyShowSelected: boolean | undefined;
27
- /**
28
- * The search text to apply.
29
- */
30
- searchText: string | undefined;
31
- /**
32
- * The currently selected rows or objects.
33
- */
34
- selectedIds: string[] | undefined;
35
- /**
36
- * The states of the individual views.
37
- */
38
- views: SkyDataViewState[];
39
- constructor(data: SkyDataManagerStateOptions);
40
- /**
41
- * Returns the `SkyDataManagerStateOptions` for the data manager.
42
- * @returns The `SkyDataManagerStateOptions` for the data manager.
43
- */
44
- getStateOptions(): SkyDataManagerStateOptions;
45
- /**
46
- * Returns the `SkyDataViewState` for the specified view.
47
- * @param viewId The ID for the view.
48
- * @returns The `SkyDataViewState` for the specified view.
49
- */
50
- getViewStateById(viewId: string): SkyDataViewState | undefined;
51
- /**
52
- * Adds a `SkyDataViewState` to a view or updates an existing view.
53
- * @param viewId The ID for the view.
54
- * @param view The `SkyDataViewState` option to add or update.
55
- * @returns The state of the data manager for the specified view.
56
- */
57
- addOrUpdateView(viewId: string, view: SkyDataViewState): SkyDataManagerState;
58
- }
@@ -1,9 +0,0 @@
1
- import { SkyDataManagerSummary } from './data-manager-summary';
2
- /**
3
- * @internal
4
- * A summary of the data displayed within the data manager and the source of the change.
5
- */
6
- export interface SkyDataManagerSummaryChange {
7
- dataSummary: SkyDataManagerSummary;
8
- source: string;
9
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * Contains summary details of the data displayed within the data manager.
3
- */
4
- export interface SkyDataManagerSummary {
5
- /**
6
- * The total number of items in the data set.
7
- */
8
- totalItems: number;
9
- /**
10
- * The total number of items that match the search and filter criteria.
11
- */
12
- itemsMatching: number;
13
- }
@@ -1,10 +0,0 @@
1
- export interface SkyDataViewColumnWidths {
2
- /**
3
- * A map of columnIds to column widths at the xs breakpoint size.
4
- */
5
- xs: Record<string, number>;
6
- /**
7
- * A map of columnIds to column widths at the sm or larger breakpoint size.
8
- */
9
- sm: Record<string, number>;
10
- }
@@ -1,96 +0,0 @@
1
- import { SkyDataManagerColumnPickerOption } from './data-manager-column-picker-option';
2
- import { SkyDataManagerColumnPickerSortStrategy } from './data-manager-column-picker-sort-strategy';
3
- /**
4
- * The data view config contains settings that apply to the specific view, such as
5
- * column picker options and the buttons to display in the toolbar.
6
- */
7
- export interface SkyDataViewConfig {
8
- /**
9
- * An untyped property that can track any view config information relevant to a
10
- * data view that the existing options do not include.
11
- */
12
- additionalOptions?: Record<string, unknown>;
13
- /**
14
- * The column data to pass to the column picker. Columns that are always displayed should be
15
- * passed in addition to the optional columns. See SkyDataManagerColumnPickerOption.
16
- */
17
- columnOptions?: SkyDataManagerColumnPickerOption[];
18
- /**
19
- * Whether to display the column picker button for this view.
20
- */
21
- columnPickerEnabled?: boolean;
22
- /**
23
- * The strategy used to sort the options in the column picker. If no strategy is provided the columns will be sorted
24
- * by selected then alphabetical.
25
- */
26
- columnPickerSortStrategy?: SkyDataManagerColumnPickerSortStrategy;
27
- /**
28
- * Whether to display the filter button for this view.
29
- */
30
- filterButtonEnabled?: boolean;
31
- /**
32
- * The Font Awesome icon name to use for this view in the view switcher.
33
- * Required if you have more than one view. Do not include the `fa-` prefix.
34
- * @deprecated Use `iconName` instead.
35
- */
36
- icon?: string;
37
- /**
38
- * The name of the Blackbaud SVG icon to display for this view in the view switcher.
39
- * Required if you have more than one view.
40
- */
41
- iconName?: string;
42
- /**
43
- * The unique ID for this view.
44
- */
45
- id: string;
46
- /**
47
- * Whether to display the multiselect toolbar for this view.
48
- */
49
- multiselectToolbarEnabled?: boolean;
50
- /**
51
- * The name of the view. This is used in the ARIA label for the view switcher.
52
- */
53
- name: string;
54
- /**
55
- * The function called when a user selects the "Clear all" button on the multi-select toolbar.
56
- * Update your displayed data to indicate it is not selected in this function.
57
- */
58
- onClearAllClick?: () => void;
59
- /**
60
- * The function called when a user selects the "Select all" button on the multi-select toolbar.
61
- * Update your displayed data to indicate it is selected in this function.
62
- */
63
- onSelectAllClick?: () => void;
64
- /**
65
- * Whether to display the search box for this view.
66
- */
67
- searchEnabled?: boolean;
68
- /**
69
- * Placeholder text to display in the search input until users enter search criteria.
70
- * See the <a href="https://developer.blackbaud.com/skyux/components/search">search component</a> for the default value.
71
- */
72
- searchPlaceholderText?: string;
73
- /**
74
- * Sets the `expandMode` property on the search box for this view.
75
- * See the <a href="https://developer.blackbaud.com/skyux/components/search">search component</a> for valid options and the default value.
76
- */
77
- searchExpandMode?: string;
78
- /**
79
- * Highlights text that matches the search text using the text highlight directive.
80
- */
81
- searchHighlightEnabled?: boolean;
82
- /**
83
- * Whether to include the "Filter" text on the displayed filter button for this view.
84
- * If it is not set, no text appears.
85
- */
86
- showFilterButtonText?: boolean;
87
- /**
88
- * Whether to include the "Sort" text on the displayed sort button for this view.
89
- * If it is not set, no text appears.
90
- */
91
- showSortButtonText?: boolean;
92
- /**
93
- * Whether to display the sort button in this view.
94
- */
95
- sortEnabled?: boolean;
96
- }
@@ -1,24 +0,0 @@
1
- import { SkyDataViewColumnWidths } from './data-view-column-widths';
2
- export interface SkyDataViewStateOptions {
3
- /**
4
- * The ID of this view.
5
- */
6
- viewId: string;
7
- /**
8
- * The IDs of the columns able to be displayed for column-based views. This property is required when utilizing a grid-based view, a column picker, or both.
9
- */
10
- columnIds?: string[];
11
- /**
12
- * The widths of columns in column-based views for xs and sm+ breakpoints. If using sticky settings, the widths a user sets will be persisted.
13
- */
14
- columnWidths?: SkyDataViewColumnWidths;
15
- /**
16
- * The IDs of the columns displayed for column-based views.
17
- */
18
- displayedColumnIds?: string[];
19
- /**
20
- * An untyped property that tracks any view-specific state information
21
- * that is relevant to a data manager but that existing properties do not cover.
22
- */
23
- additionalData?: any;
24
- }
@@ -1,34 +0,0 @@
1
- import { SkyDataViewColumnWidths } from './data-view-column-widths';
2
- import { SkyDataViewStateOptions } from './data-view-state-options';
3
- /**
4
- * Provides options for defining how data is displayed, such as which columns appear.
5
- */
6
- export declare class SkyDataViewState {
7
- /**
8
- * The IDs of the columns able to be displayed for column-based views. This property is required when utilizing a grid-based view, a column picker, or both.
9
- */
10
- columnIds: string[];
11
- /**
12
- * The widths of columns in column-based views for xs and sm+ breakpoints. If using sticky settings, the widths a user sets will be persisted.
13
- */
14
- columnWidths: SkyDataViewColumnWidths;
15
- /**
16
- * The IDs of the columns displayed for column-based views.
17
- */
18
- displayedColumnIds: string[];
19
- /**
20
- * The ID of this view.
21
- */
22
- viewId: string;
23
- /**
24
- * An untyped property that tracks any view-specific state information
25
- * that is relevant to a data manager but that existing properties do not cover.
26
- */
27
- additionalData: any;
28
- constructor(data: SkyDataViewStateOptions);
29
- /**
30
- * Returns the `SkyDataViewStateOptions` for the current view.
31
- * @returns The `SkyDataViewStateOptions`.
32
- */
33
- getViewStateOptions(): SkyDataViewStateOptions;
34
- }
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@skyux/i18n";
3
- /**
4
- * Import into any component library module that needs to use resource strings.
5
- */
6
- export declare class SkyDataManagerResourcesModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<SkyDataManagerResourcesModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<SkyDataManagerResourcesModule, never, never, [typeof i1.SkyI18nModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<SkyDataManagerResourcesModule>;
10
- }
@@ -1,6 +0,0 @@
1
- import { SkyRepeaterItemHarnessFilters } from '@skyux/lists/testing';
2
- /**
3
- * A set of criteria that can be used to filter a list of `SkyDataManagerColumnPickerSearchResultHarness` instances.
4
- */
5
- export interface SkyDataManagerColumnPickerColumnHarnessFilters extends Omit<SkyRepeaterItemHarnessFilters, 'ancestor'> {
6
- }