@skyux/ag-grid 15.0.0-alpha.5 → 15.0.0-alpha.6
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-ag-grid.mjs +22 -2
- package/fesm2022/skyux-ag-grid.mjs.map +1 -1
- package/package.json +13 -13
- package/types/skyux-ag-grid.d.ts +373 -186
|
@@ -321,6 +321,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
321
321
|
/**
|
|
322
322
|
* These column types can be used by setting the AG Grid [column definition `type`](https://www.ag-grid.com/angular-data-grid/column-properties/#reference-editing) to one of the following values.
|
|
323
323
|
* Any [SKY UX component](https://developer.blackbaud.com/skyux/components) can be made into a [cell editor](https://www.ag-grid.com/angular-data-grid/cell-editors/) or [cell renderer](https://www.ag-grid.com/angular-data-grid/component-cell-renderer/) component. If you would like to use a component that does not have a column definition yet, please consider [contributing it](https://github.com/blackbaud/skyux/blob/main/CONTRIBUTING.md) to the SKY UX data entry grid module.
|
|
324
|
+
* Use `defineSkyAgGridColDef()` to validate a column definition's `cellEditorParams` and `cellRendererParams` against its cell type.
|
|
324
325
|
*/
|
|
325
326
|
var SkyCellType;
|
|
326
327
|
(function (SkyCellType) {
|
|
@@ -367,7 +368,7 @@ var SkyCellType;
|
|
|
367
368
|
*
|
|
368
369
|
* **Read-only mode**
|
|
369
370
|
*
|
|
370
|
-
* Cells the column will display, by default, either: the name(s) of the selected value(s) if there are less than 6, or a summary count of the values if there are more than 5. If the lookup needs to show a different property or needs to be formatted in any way, you can [define a `valueFormatter`](https://www.ag-grid.com/angular-data-grid/value-formatters/) on the column definition.
|
|
371
|
+
* Cells in the column will display, by default, either: the name(s) of the selected value(s) if there are less than 6, or a summary count of the values if there are more than 5. If the lookup needs to show a different property or needs to be formatted in any way, you can [define a `valueFormatter`](https://www.ag-grid.com/angular-data-grid/value-formatters/) on the column definition.
|
|
371
372
|
*/
|
|
372
373
|
SkyCellType["Lookup"] = "skyCellLookup";
|
|
373
374
|
/**
|
|
@@ -6037,11 +6038,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
6037
6038
|
}]
|
|
6038
6039
|
}] });
|
|
6039
6040
|
|
|
6041
|
+
/**
|
|
6042
|
+
* Builds a column definition whose `cellEditorParams` and `cellRendererParams`
|
|
6043
|
+
* are validated against the SKY UX cell types in the `type` property. The cell
|
|
6044
|
+
* type is inferred, so no type arguments are needed:
|
|
6045
|
+
* ```
|
|
6046
|
+
* defineSkyAgGridColDef({
|
|
6047
|
+
* field: 'endDate',
|
|
6048
|
+
* type: [SkyCellType.Date, SkyCellType.Validator],
|
|
6049
|
+
* cellRendererParams: { skyComponentProperties: { validator: ... } },
|
|
6050
|
+
* })
|
|
6051
|
+
* ```
|
|
6052
|
+
*/
|
|
6053
|
+
// `C` preserves the exact shape of the passed literal (like `satisfies`), `F`
|
|
6054
|
+
// keeps `field` narrowed to its literal type for row-typed grid options, and
|
|
6055
|
+
// the `Record` intersection rejects misspelled or unknown properties.
|
|
6056
|
+
function defineSkyAgGridColDef(colDef) {
|
|
6057
|
+
return colDef;
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6040
6060
|
// Export any types that should be included in the root.
|
|
6041
6061
|
|
|
6042
6062
|
/**
|
|
6043
6063
|
* Generated bundle index. Do not edit.
|
|
6044
6064
|
*/
|
|
6045
6065
|
|
|
6046
|
-
export { SkyAgGridCellEditorInitialAction, SkyAgGridCellEditorUtils, SkyAgGridHeaderGroupInfo, SkyAgGridHeaderInfo, SkyAgGridModule, SkyAgGridService, SkyCellClass, SkyCellType, SkyHeaderClass, SkyAgGridCellEditorAutocompleteComponent as λ1, SkyAgGridCellRendererValidatorTooltipComponent as λ10, SkyAgGridCellValidatorTooltipComponent as λ11, SkyAgGridWrapperComponent as λ12, SkyAgGridRowDeleteDirective as λ13, SkyAgGridDataManagerAdapterDirective as λ14, SkyAgGridCellEditorLookupComponent as λ15, SkyAgGridCellRendererLookupComponent as λ16, SkyAgGridHeaderComponent as λ17, SkyAgGridHeaderGroupComponent as λ18, SkyAgGridColumnFilterDatepickerComponent as λ19, SkyAgGridCellEditorTextComponent as λ2, SkyAgGridCellEditorCurrencyComponent as λ3, SkyAgGridCellEditorNumberComponent as λ4, SkyAgGridCellEditorDatepickerComponent as λ5, SkyAgGridRowDeleteComponent as λ6, SkyAgGridCellRendererRowSelectorComponent as λ7, SkyAgGridCellRendererCurrencyValidatorComponent as λ8, SkyAgGridCellRendererCurrencyComponent as λ9 };
|
|
6066
|
+
export { SkyAgGridCellEditorInitialAction, SkyAgGridCellEditorUtils, SkyAgGridHeaderGroupInfo, SkyAgGridHeaderInfo, SkyAgGridModule, SkyAgGridService, SkyCellClass, SkyCellType, SkyHeaderClass, defineSkyAgGridColDef, SkyAgGridCellEditorAutocompleteComponent as λ1, SkyAgGridCellRendererValidatorTooltipComponent as λ10, SkyAgGridCellValidatorTooltipComponent as λ11, SkyAgGridWrapperComponent as λ12, SkyAgGridRowDeleteDirective as λ13, SkyAgGridDataManagerAdapterDirective as λ14, SkyAgGridCellEditorLookupComponent as λ15, SkyAgGridCellRendererLookupComponent as λ16, SkyAgGridHeaderComponent as λ17, SkyAgGridHeaderGroupComponent as λ18, SkyAgGridColumnFilterDatepickerComponent as λ19, SkyAgGridCellEditorTextComponent as λ2, SkyAgGridCellEditorCurrencyComponent as λ3, SkyAgGridCellEditorNumberComponent as λ4, SkyAgGridCellEditorDatepickerComponent as λ5, SkyAgGridRowDeleteComponent as λ6, SkyAgGridCellRendererRowSelectorComponent as λ7, SkyAgGridCellRendererCurrencyValidatorComponent as λ8, SkyAgGridCellRendererCurrencyComponent as λ9 };
|
|
6047
6067
|
//# sourceMappingURL=skyux-ag-grid.mjs.map
|