@skyux/ag-grid 13.0.0 → 13.0.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.
package/index.d.ts CHANGED
@@ -179,17 +179,60 @@ declare class SkyAgGridService implements OnDestroy {
179
179
  }
180
180
 
181
181
  interface SkyAgGridAutocompleteProperties {
182
+ /**
183
+ * Allows users to specify arbitrary values not in the search results.
184
+ * @default false
185
+ */
182
186
  allowAnyValue?: boolean;
187
+ /**
188
+ * 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.
189
+ */
183
190
  data?: unknown[];
191
+ /**
192
+ * How many milliseconds to wait before searching while users enter text in the autocomplete field.
193
+ * @default 0
194
+ */
184
195
  debounceTime?: number;
196
+ /**
197
+ * The object property to display in the text input after users select an item in the dropdown list.
198
+ * @default "name"
199
+ */
185
200
  descriptorProperty?: string;
201
+ /**
202
+ * 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."
203
+ * @default true
204
+ */
186
205
  highlightSearchText?: boolean;
206
+ /**
207
+ * The array of object properties to search when utilizing the `data` property and the built-in search function.
208
+
209
+ * @default ["name"]
210
+ */
187
211
  propertiesToSearch?: string[];
212
+ /**
213
+ * 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.
214
+ */
188
215
  search?: (searchText: string, data?: unknown[]) => unknown[] | Promise<unknown[]>;
216
+ /**
217
+ * 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.
218
+ */
189
219
  searchFilters?: ((searchText: string, item: unknown) => boolean)[];
220
+ /**
221
+ * The maximum number of search results to display in the dropdown list. By default, the autocomplete component displays all matching results.
222
+ */
190
223
  searchResultsLimit?: number;
224
+ /**
225
+ * 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.
226
+ */
191
227
  searchResultTemplate?: TemplateRef<unknown>;
228
+ /**
229
+ * 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.
230
+ * @default 1
231
+ */
192
232
  searchTextMinimumCharacters?: number;
233
+ /**
234
+ * Output that fires when users select items in the dropdown list.
235
+ */
193
236
  selectionChange?: (event: SkyAutocompleteSelectionChange) => void;
194
237
  }
195
238
  /**
@@ -218,15 +261,40 @@ declare enum SkyCellClass {
218
261
  }
219
262
 
220
263
  interface SkyCellEditorAutocompleteParams extends ICellEditorParams {
264
+ /**
265
+ * The parameters provided to the autocomplete component.
266
+ */
221
267
  skyComponentProperties?: SkyAutocompleteProperties | SkyAgGridAutocompleteProperties;
222
268
  }
223
269
 
224
270
  interface SkyAgGridDatepickerProperties {
271
+ /**
272
+ * The date format for the input.
273
+ * @default "MM/DD/YYYY"
274
+ */
225
275
  dateFormat?: string;
276
+ /**
277
+ * Whether to disable the datepicker cell.
278
+ * @default false
279
+ */
226
280
  disabled?: boolean;
281
+ /**
282
+ * The latest date that is available in the calendar.
283
+ */
227
284
  maxDate?: Date;
285
+ /**
286
+ * 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.
287
+ */
228
288
  minDate?: Date;
289
+ /**
290
+ * Whether to disable date validation on the datepicker input.
291
+ * @default false
292
+ */
229
293
  skyDatepickerNoValidate?: boolean;
294
+ /**
295
+ * The starting day of the week in the calendar. `0` sets the starting day to Sunday.
296
+ * @default 0
297
+ */
230
298
  startingDay?: number;
231
299
  }
232
300
  /**
@@ -236,6 +304,9 @@ interface SkyDatepickerProperties extends SkyAgGridDatepickerProperties {
236
304
  }
237
305
 
238
306
  interface SkyCellEditorDatepickerParams extends ICellEditorParams {
307
+ /**
308
+ * The parameters provided to the datepicker component.
309
+ */
239
310
  skyComponentProperties?: SkyDatepickerProperties | SkyAgGridDatepickerProperties;
240
311
  }
241
312
 
@@ -252,32 +323,114 @@ declare enum SkyAgGridCellEditorInitialAction {
252
323
  }
253
324
 
254
325
  interface SkyAgGridLookupProperties {
326
+ /**
327
+ * Fires when users select the button to add options to the list.
328
+ */
255
329
  addClick?: (args: SkyLookupAddClickEventArgs) => void;
330
+ /**
331
+ * 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`.
332
+ */
256
333
  ariaLabel?: string;
334
+ /**
335
+ * 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`.
336
+ */
257
337
  ariaLabelledBy?: string;
258
- /** @deprecated */
338
+ /**
339
+ * The value to provide to the autocomplete attribute on the form input.
340
+ * @default "off"
341
+ * @deprecated
342
+ */
259
343
  autocompleteAttribute?: string;
344
+ /**
345
+ * 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.
346
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide data to the lookup component.
347
+ */
260
348
  data?: unknown[];
349
+ /**
350
+ * How many milliseconds to wait before searching while users enter text in the lookup field.
351
+ * @default 0
352
+ */
261
353
  debounceTime?: number;
354
+ /**
355
+ * The object property to display in the text input after users select an item in the dropdown list.
356
+ * @default "name"
357
+ */
262
358
  descriptorProperty?: string;
359
+ /**
360
+ * Whether to disable the lookup cell.
361
+ * @default false
362
+ */
263
363
  disabled?: boolean;
364
+ /**
365
+ * Whether to enable users to open a picker where they can view all options.
366
+ * @default false
367
+ */
264
368
  enableShowMore?: boolean;
369
+ /**
370
+ * 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.
371
+ */
265
372
  idProperty?: string;
373
+ /**
374
+ * Placeholder text to display in the lookup field.
375
+ */
266
376
  placeholderText?: string;
377
+ /**
378
+ * The array of object properties to search when using the `data` property and the built-in search function.
379
+ * @default ["name"]
380
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide data to the lookup component.
381
+ */
267
382
  propertiesToSearch?: string[];
383
+ /**
384
+ * 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.
385
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide searched data to the lookup component.
386
+ */
268
387
  search?: SkyAutocompleteSearchFunction;
388
+ /**
389
+ * 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.
390
+ */
269
391
  searchAsync?: (args: SkyAutocompleteSearchAsyncArgs) => void;
392
+ /**
393
+ * 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.
394
+ * @deprecated Use the `searchAsync` event emitter and callback instead to provide searched data to the lookup component.
395
+ */
270
396
  searchFilters?: SkyAutocompleteSearchFunctionFilter[];
397
+ /**
398
+ * 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.
399
+ */
271
400
  searchResultsLimit?: number;
401
+ /**
402
+ * 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.
403
+ */
272
404
  searchResultTemplate?: TemplateRef<unknown>;
405
+ /**
406
+ * 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.
407
+ * @default 1
408
+ */
273
409
  searchTextMinimumCharacters?: number;
410
+ /**
411
+ * The ability for users to select one option or multiple options.
412
+ * @default "multiple"
413
+ */
274
414
  selectMode?: SkyLookupSelectModeType;
415
+ /**
416
+ * Whether to display a button that lets users add options to the list.
417
+ * @default false
418
+ */
275
419
  showAddButton?: boolean;
420
+ /**
421
+ * Configuration options for the picker that displays all options.
422
+ */
276
423
  showMoreConfig?: SkyLookupShowMoreConfig;
424
+ /**
425
+ * @internal
426
+ */
277
427
  wrapperClass?: string;
278
428
  }
279
429
 
280
430
  interface SkyCellEditorLookupParams extends ICellEditorParams {
431
+ /**
432
+ * The parameters provided to the lookup component.
433
+ */
281
434
  skyComponentProperties?: SkyAgGridLookupProperties;
282
435
  }
283
436
 
@@ -287,6 +440,11 @@ declare class SkyAgGridCellEditorUtils {
287
440
  * @param params The editor's initializing parameters.
288
441
  */
289
442
  static getEditorInitialAction(params: ICellEditorParams | undefined): SkyAgGridCellEditorInitialAction;
443
+ /**
444
+ * Returns the difference between the minuend and subtrahend. If the minuend is not defined, returns 0.
445
+ * @param minuend The number from which another number is subtracted.
446
+ * @param subtrahend The number that is subtracted from the minuend.
447
+ */
290
448
  static subtractOrZero(minuend: number | null | undefined, subtrahend: number): number;
291
449
  }
292
450
 
@@ -394,8 +552,19 @@ declare enum SkyCellType {
394
552
  }
395
553
 
396
554
  interface SkyAgGridCurrencyProperties {
555
+ /**
556
+ * The currency symbol to display in the cell.
557
+ * @default "$"
558
+ */
397
559
  currencySymbol?: string;
560
+ /**
561
+ * The number of decimal places to display on the currency.
562
+ * @default 2
563
+ */
398
564
  decimalPlaces?: number | string;
565
+ /**
566
+ * Adds the specified brackets around negative values when unfocused.
567
+ */
399
568
  negativeBracketsTypeOnBlur?: '(,)' | '[,]' | '<,>' | '{,}' | '〈,〉' | '「,」' | '⸤,⸥' | '⟦,⟧' | '‹,›' | '«,»' | null;
400
569
  }
401
570
 
@@ -492,11 +661,20 @@ interface SkyAgGridHeaderParams extends IHeaderParams {
492
661
  }
493
662
 
494
663
  interface SkyAgGridNumberProperties {
664
+ /**
665
+ * The maximum number that users can enter in the cell.
666
+ */
495
667
  max?: number;
668
+ /**
669
+ * The minimum number that users can enter in the cell.
670
+ */
496
671
  min?: number;
497
672
  }
498
673
 
499
674
  interface SkyAgGridTextProperties {
675
+ /**
676
+ * The maximum length of the text that users can enter into the cell.
677
+ */
500
678
  maxlength?: number;
501
679
  }
502
680
 
@@ -578,6 +756,9 @@ declare class SkyAgGridCellEditorAutocompleteComponent implements ICellEditorAng
578
756
  * @internal
579
757
  */
580
758
  interface SkyCellEditorCurrencyParams extends ICellEditorParams {
759
+ /**
760
+ * The parameters provided to the currency cell editor.
761
+ */
581
762
  skyComponentProperties?: SkyAgGridCurrencyProperties;
582
763
  }
583
764
 
@@ -684,6 +865,9 @@ declare class SkyAgGridCellEditorLookupComponent implements ICellEditorAngularCo
684
865
  * @internal
685
866
  */
686
867
  interface SkyCellEditorNumberParams extends ICellEditorParams {
868
+ /**
869
+ * The parameters provided to the number cell editor.
870
+ */
687
871
  skyComponentProperties?: SkyAgGridNumberProperties;
688
872
  }
689
873
 
@@ -722,6 +906,9 @@ declare class SkyAgGridCellEditorNumberComponent implements ICellEditorAngularCo
722
906
  * @internal
723
907
  */
724
908
  interface SkyCellEditorTextParams extends ICellEditorParams {
909
+ /**
910
+ * The parameters provided to the text cell editor.
911
+ */
725
912
  skyComponentProperties?: SkyAgGridTextProperties;
726
913
  }
727
914
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/ag-grid",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -31,18 +31,18 @@
31
31
  "@angular/common": "^20.3.0",
32
32
  "@angular/core": "^20.3.0",
33
33
  "@angular/forms": "^20.3.0",
34
- "@skyux/autonumeric": "13.0.0",
35
- "@skyux/core": "13.0.0",
36
- "@skyux/data-manager": "13.0.0",
37
- "@skyux/datetime": "13.0.0",
38
- "@skyux/forms": "13.0.0",
39
- "@skyux/i18n": "13.0.0",
40
- "@skyux/icon": "13.0.0",
41
- "@skyux/indicators": "13.0.0",
42
- "@skyux/layout": "13.0.0",
43
- "@skyux/lookup": "13.0.0",
44
- "@skyux/popovers": "13.0.0",
45
- "@skyux/theme": "13.0.0",
34
+ "@skyux/autonumeric": "13.0.1",
35
+ "@skyux/core": "13.0.1",
36
+ "@skyux/data-manager": "13.0.1",
37
+ "@skyux/datetime": "13.0.1",
38
+ "@skyux/forms": "13.0.1",
39
+ "@skyux/i18n": "13.0.1",
40
+ "@skyux/icon": "13.0.1",
41
+ "@skyux/indicators": "13.0.1",
42
+ "@skyux/layout": "13.0.1",
43
+ "@skyux/lookup": "13.0.1",
44
+ "@skyux/popovers": "13.0.1",
45
+ "@skyux/theme": "13.0.1",
46
46
  "ag-grid-angular": "^34.2.0",
47
47
  "ag-grid-community": "^34.2.0"
48
48
  },