@skyux/ag-grid 12.41.0 → 12.41.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.
@@ -1,17 +1,60 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { SkyAutocompleteSelectionChange } from '@skyux/lookup';
3
3
  export interface SkyAgGridAutocompleteProperties {
4
+ /**
5
+ * Allows users to specify arbitrary values not in the search results.
6
+ * @default false
7
+ */
4
8
  allowAnyValue?: boolean;
9
+ /**
10
+ * The static data source for the autocomplete cell to search when users enter text. For a dynamic data source, such as an array that changes due to server calls, use search instead. You can specify static data, such as an array of objects, or you can pull data from a database.
11
+ */
5
12
  data?: unknown[];
13
+ /**
14
+ * How many milliseconds to wait before searching while users enter text in the autocomplete field.
15
+ * @default 0
16
+ */
6
17
  debounceTime?: number;
18
+ /**
19
+ * The object property to display in the text input after users select an item in the dropdown list.
20
+ * @default "name"
21
+ */
7
22
  descriptorProperty?: string;
23
+ /**
24
+ * Highlights the search text in each search result. Set this to `false` when your search returns results that aren't exact text matches, such as returning "Bob" for "Robert."
25
+ * @default true
26
+ */
8
27
  highlightSearchText?: boolean;
28
+ /**
29
+ * The array of object properties to search when utilizing the `data` property and the built-in search function.
30
+
31
+ * @default ["name"]
32
+ */
9
33
  propertiesToSearch?: string[];
34
+ /**
35
+ * The function that dynamically manages the data to display in search results when users change the text in the autocomplete cell. The search function must return an array or a promise of an array.
36
+ */
10
37
  search?: (searchText: string, data?: unknown[]) => unknown[] | Promise<unknown[]>;
38
+ /**
39
+ * The array of functions to call against each search result. This filters the search results when using the `data` input and the default search function. When the `search` property specifies a custom search function, you must manually apply filters inside that function. The function must return `true` or `false` for each result to indicate whether to display it in the dropdown list.
40
+ */
11
41
  searchFilters?: ((searchText: string, item: unknown) => boolean)[];
42
+ /**
43
+ * The maximum number of search results to display in the dropdown list. By default, the autocomplete component displays all matching results.
44
+ */
12
45
  searchResultsLimit?: number;
46
+ /**
47
+ * The template that formats each search result in the dropdown list. The autocomplete component injects search result values into the template as `item` variables that reference all of the object properties of the search results.
48
+ */
13
49
  searchResultTemplate?: TemplateRef<unknown>;
50
+ /**
51
+ * The minimum number of characters that users must enter before the autocomplete component searches the data source and displays search results in the dropdown list.
52
+ * @default 1
53
+ */
14
54
  searchTextMinimumCharacters?: number;
55
+ /**
56
+ * Output that fires when users select items in the dropdown list.
57
+ */
15
58
  selectionChange?: (event: SkyAutocompleteSelectionChange) => void;
16
59
  }
17
60
  /**
@@ -1,5 +1,8 @@
1
1
  import { ICellEditorParams } from 'ag-grid-community';
2
2
  import { SkyAgGridAutocompleteProperties, SkyAutocompleteProperties } from './autocomplete-properties';
3
3
  export interface SkyCellEditorAutocompleteParams extends ICellEditorParams {
4
+ /**
5
+ * The parameters provided to the autocomplete component.
6
+ */
4
7
  skyComponentProperties?: SkyAutocompleteProperties | SkyAgGridAutocompleteProperties;
5
8
  }
@@ -4,5 +4,8 @@ import type { SkyAgGridCurrencyProperties } from './currency-properties';
4
4
  * @internal
5
5
  */
6
6
  export interface SkyCellEditorCurrencyParams extends ICellEditorParams {
7
+ /**
8
+ * The parameters provided to the currency cell editor.
9
+ */
7
10
  skyComponentProperties?: SkyAgGridCurrencyProperties;
8
11
  }
@@ -1,5 +1,8 @@
1
1
  import { ICellEditorParams } from 'ag-grid-community';
2
2
  import { SkyAgGridDatepickerProperties, SkyDatepickerProperties } from './datepicker-properties';
3
3
  export interface SkyCellEditorDatepickerParams extends ICellEditorParams {
4
+ /**
5
+ * The parameters provided to the datepicker component.
6
+ */
4
7
  skyComponentProperties?: SkyDatepickerProperties | SkyAgGridDatepickerProperties;
5
8
  }
@@ -1,5 +1,8 @@
1
1
  import { ICellEditorParams } from 'ag-grid-community';
2
2
  import { SkyAgGridLookupProperties } from './lookup-properties';
3
3
  export interface SkyCellEditorLookupParams extends ICellEditorParams {
4
+ /**
5
+ * The parameters provided to the lookup component.
6
+ */
4
7
  skyComponentProperties?: SkyAgGridLookupProperties;
5
8
  }
@@ -4,5 +4,8 @@ import { SkyAgGridNumberProperties } from './number-properties';
4
4
  * @internal
5
5
  */
6
6
  export interface SkyCellEditorNumberParams extends ICellEditorParams {
7
+ /**
8
+ * The parameters provided to the number cell editor.
9
+ */
7
10
  skyComponentProperties?: SkyAgGridNumberProperties;
8
11
  }
@@ -4,5 +4,8 @@ import { SkyAgGridTextProperties } from './text-properties';
4
4
  * @internal
5
5
  */
6
6
  export interface SkyCellEditorTextParams extends ICellEditorParams {
7
+ /**
8
+ * The parameters provided to the text cell editor.
9
+ */
7
10
  skyComponentProperties?: SkyAgGridTextProperties;
8
11
  }
@@ -6,5 +6,10 @@ export declare class SkyAgGridCellEditorUtils {
6
6
  * @param params The editor's initializing parameters.
7
7
  */
8
8
  static getEditorInitialAction(params: ICellEditorParams | undefined): SkyAgGridCellEditorInitialAction;
9
+ /**
10
+ * Returns the difference between the minuend and subtrahend. If the minuend is not defined, returns 0.
11
+ * @param minuend The number from which another number is subtracted.
12
+ * @param subtrahend The number that is subtracted from the minuend.
13
+ */
9
14
  static subtractOrZero(minuend: number | null | undefined, subtrahend: number): number;
10
15
  }
@@ -1,5 +1,16 @@
1
1
  export interface SkyAgGridCurrencyProperties {
2
+ /**
3
+ * The currency symbol to display in the cell.
4
+ * @default "$"
5
+ */
2
6
  currencySymbol?: string;
7
+ /**
8
+ * The number of decimal places to display on the currency.
9
+ * @default 2
10
+ */
3
11
  decimalPlaces?: number | string;
12
+ /**
13
+ * Adds the specified brackets around negative values when unfocused.
14
+ */
4
15
  negativeBracketsTypeOnBlur?: '(,)' | '[,]' | '<,>' | '{,}' | '〈,〉' | '「,」' | '⸤,⸥' | '⟦,⟧' | '‹,›' | '«,»' | null;
5
16
  }
@@ -1,9 +1,31 @@
1
1
  export interface SkyAgGridDatepickerProperties {
2
+ /**
3
+ * The date format for the input.
4
+ * @default "MM/DD/YYYY"
5
+ */
2
6
  dateFormat?: string;
7
+ /**
8
+ * Whether to disable the datepicker cell.
9
+ * @default false
10
+ */
3
11
  disabled?: boolean;
12
+ /**
13
+ * The latest date that is available in the calendar.
14
+ */
4
15
  maxDate?: Date;
16
+ /**
17
+ * The earliest date that is available in the calendar. To avoid validation errors, the time associated with the minimum date is midnight. This is necessary because the datepicker automatically sets the time on the Date object for selected dates to midnight in the current user's time zone.
18
+ */
5
19
  minDate?: Date;
20
+ /**
21
+ * Whether to disable date validation on the datepicker input.
22
+ * @default false
23
+ */
6
24
  skyDatepickerNoValidate?: boolean;
25
+ /**
26
+ * The starting day of the week in the calendar. `0` sets the starting day to Sunday.
27
+ * @default 0
28
+ */
7
29
  startingDay?: number;
8
30
  }
9
31
  /**
@@ -1,27 +1,106 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { SkyAutocompleteSearchAsyncArgs, SkyAutocompleteSearchFunction, SkyAutocompleteSearchFunctionFilter, SkyLookupAddClickEventArgs, SkyLookupSelectModeType, SkyLookupShowMoreConfig } from '@skyux/lookup';
3
3
  export interface SkyAgGridLookupProperties {
4
+ /**
5
+ * Fires when users select the button to add options to the list.
6
+ */
4
7
  addClick?: (args: SkyLookupAddClickEventArgs) => void;
8
+ /**
9
+ * The `aria-label` text for the lookup cell. If neither `ariaLabel` nor `ariaLabelledBy` are specified, the `aria-label` defaults to the column's `headerName`, `headerTooltip`, `field`, or `colId`.
10
+ */
5
11
  ariaLabel?: string;
12
+ /**
13
+ * The ID of the HTML element that labels the lookup cell. If neither `ariaLabel` nor `ariaLabelledBy` are specified, the `aria-label` defaults to the column's `headerName`, `headerTooltip`, `field`, or `colId`.
14
+ */
6
15
  ariaLabelledBy?: string;
7
- /** @deprecated */
16
+ /**
17
+ * The value to provide to the autocomplete attribute on the form input.
18
+ * @default "off"
19
+ * @deprecated
20
+ */
8
21
  autocompleteAttribute?: string;
22
+ /**
23
+ * The data source for the lookup cell to search when users enter text. You can specify static data, such as an array of objects, or you can pull data from a database.
24
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide data to the lookup component.
25
+ */
9
26
  data?: unknown[];
27
+ /**
28
+ * How many milliseconds to wait before searching while users enter text in the lookup field.
29
+ * @default 0
30
+ */
10
31
  debounceTime?: number;
32
+ /**
33
+ * The object property to display in the text input after users select an item in the dropdown list.
34
+ * @default "name"
35
+ */
11
36
  descriptorProperty?: string;
37
+ /**
38
+ * Whether to disable the lookup cell.
39
+ * @default false
40
+ */
12
41
  disabled?: boolean;
42
+ /**
43
+ * Whether to enable users to open a picker where they can view all options.
44
+ * @default false
45
+ */
13
46
  enableShowMore?: boolean;
47
+ /**
48
+ * The property that represents the object's unique identifier. Specifying this property enables token animations and more efficient rendering. This property is required when using `enableShowMore` and `searchAsync` together.
49
+ */
14
50
  idProperty?: string;
51
+ /**
52
+ * Placeholder text to display in the lookup field.
53
+ */
15
54
  placeholderText?: string;
55
+ /**
56
+ * The array of object properties to search when using the `data` property and the built-in search function.
57
+ * @default ["name"]
58
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide data to the lookup component.
59
+ */
16
60
  propertiesToSearch?: string[];
61
+ /**
62
+ * The function that dynamically manages the data to display in search results when users change the text in the lookup cell. The search function must return an array or a promise of an array.
63
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide searched data to the lookup component.
64
+ */
17
65
  search?: SkyAutocompleteSearchFunction;
66
+ /**
67
+ * Fires when users enter new search information and allows results to be returned via an observable. The event is also fired when the "Show more" picker is opened without search text.
68
+ */
18
69
  searchAsync?: (args: SkyAutocompleteSearchAsyncArgs) => void;
70
+ /**
71
+ * The array of functions to call against each search result. This filters the search results when using the `data` input and the default search function. When the `search` property specifies a custom search function, you must manually apply filters inside that function. The function must return `true` or `false` for each result to indicate whether to display it in the dropdown list.
72
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide searched data to the lookup component.
73
+ */
19
74
  searchFilters?: SkyAutocompleteSearchFunctionFilter[];
75
+ /**
76
+ * The maximum number of search results to display in the dropdown list. By default, the lookup component displays all matching results. This property has no effect on the results in the "Show more" picker.
77
+ */
20
78
  searchResultsLimit?: number;
79
+ /**
80
+ * The template that formats each option in the dropdown list. The lookup component injects values into the template as `item` variables that reference all of the object properties of the search results.
81
+ */
21
82
  searchResultTemplate?: TemplateRef<unknown>;
83
+ /**
84
+ * The minimum number of characters that users must enter before the lookup component searches the data source and displays search results in the dropdown list.
85
+ * @default 1
86
+ */
22
87
  searchTextMinimumCharacters?: number;
88
+ /**
89
+ * The ability for users to select one option or multiple options.
90
+ * @default "multiple"
91
+ */
23
92
  selectMode?: SkyLookupSelectModeType;
93
+ /**
94
+ * Whether to display a button that lets users add options to the list.
95
+ * @default false
96
+ */
24
97
  showAddButton?: boolean;
98
+ /**
99
+ * Configuration options for the picker that displays all options.
100
+ */
25
101
  showMoreConfig?: SkyLookupShowMoreConfig;
102
+ /**
103
+ * @internal
104
+ */
26
105
  wrapperClass?: string;
27
106
  }
@@ -1,4 +1,10 @@
1
1
  export interface SkyAgGridNumberProperties {
2
+ /**
3
+ * The maximum number that users can enter in the cell.
4
+ */
2
5
  max?: number;
6
+ /**
7
+ * The minimum number that users can enter in the cell.
8
+ */
3
9
  min?: number;
4
10
  }
@@ -1,3 +1,6 @@
1
1
  export interface SkyAgGridTextProperties {
2
+ /**
3
+ * The maximum length of the text that users can enter into the cell.
4
+ */
2
5
  maxlength?: number;
3
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/ag-grid",
3
- "version": "12.41.0",
3
+ "version": "12.41.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -31,18 +31,18 @@
31
31
  "@angular/common": "^19.2.14",
32
32
  "@angular/core": "^19.2.14",
33
33
  "@angular/forms": "^19.2.14",
34
- "@skyux/autonumeric": "12.41.0",
35
- "@skyux/core": "12.41.0",
36
- "@skyux/data-manager": "12.41.0",
37
- "@skyux/datetime": "12.41.0",
38
- "@skyux/forms": "12.41.0",
39
- "@skyux/i18n": "12.41.0",
40
- "@skyux/icon": "12.41.0",
41
- "@skyux/indicators": "12.41.0",
42
- "@skyux/layout": "12.41.0",
43
- "@skyux/lookup": "12.41.0",
44
- "@skyux/popovers": "12.41.0",
45
- "@skyux/theme": "12.41.0",
34
+ "@skyux/autonumeric": "12.41.1",
35
+ "@skyux/core": "12.41.1",
36
+ "@skyux/data-manager": "12.41.1",
37
+ "@skyux/datetime": "12.41.1",
38
+ "@skyux/forms": "12.41.1",
39
+ "@skyux/i18n": "12.41.1",
40
+ "@skyux/icon": "12.41.1",
41
+ "@skyux/indicators": "12.41.1",
42
+ "@skyux/layout": "12.41.1",
43
+ "@skyux/lookup": "12.41.1",
44
+ "@skyux/popovers": "12.41.1",
45
+ "@skyux/theme": "12.41.1",
46
46
  "ag-grid-angular": "^33.3.2",
47
47
  "ag-grid-community": "^33.3.2"
48
48
  },