@skyux/ag-grid 15.0.0-alpha.5 → 15.0.0-alpha.7
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 +28 -2
- package/fesm2022/skyux-ag-grid.mjs.map +1 -1
- package/package.json +13 -13
- package/types/skyux-ag-grid.d.ts +373 -186
|
@@ -134,6 +134,12 @@ const RESOURCES = {
|
|
|
134
134
|
sky_ag_grid_column_group_header_collapse_aria_label: {
|
|
135
135
|
message: 'Réduire le groupe de colonnes {0}',
|
|
136
136
|
},
|
|
137
|
+
sky_ag_grid_locale_no_rows_to_show: {
|
|
138
|
+
message: 'Aucune donnée disponible.',
|
|
139
|
+
},
|
|
140
|
+
sky_ag_grid_locale_no_matching_rows: {
|
|
141
|
+
message: 'Aucune ligne correspondante',
|
|
142
|
+
},
|
|
137
143
|
},
|
|
138
144
|
};
|
|
139
145
|
SkyLibResourcesService.addResources(RESOURCES);
|
|
@@ -321,6 +327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
321
327
|
/**
|
|
322
328
|
* 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
329
|
* 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.
|
|
330
|
+
* Use `defineSkyAgGridColDef()` to validate a column definition's `cellEditorParams` and `cellRendererParams` against its cell type.
|
|
324
331
|
*/
|
|
325
332
|
var SkyCellType;
|
|
326
333
|
(function (SkyCellType) {
|
|
@@ -367,7 +374,7 @@ var SkyCellType;
|
|
|
367
374
|
*
|
|
368
375
|
* **Read-only mode**
|
|
369
376
|
*
|
|
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.
|
|
377
|
+
* 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
378
|
*/
|
|
372
379
|
SkyCellType["Lookup"] = "skyCellLookup";
|
|
373
380
|
/**
|
|
@@ -6037,11 +6044,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImpor
|
|
|
6037
6044
|
}]
|
|
6038
6045
|
}] });
|
|
6039
6046
|
|
|
6047
|
+
/**
|
|
6048
|
+
* Builds a column definition whose `cellEditorParams` and `cellRendererParams`
|
|
6049
|
+
* are validated against the SKY UX cell types in the `type` property. The cell
|
|
6050
|
+
* type is inferred, so no type arguments are needed:
|
|
6051
|
+
* ```
|
|
6052
|
+
* defineSkyAgGridColDef({
|
|
6053
|
+
* field: 'endDate',
|
|
6054
|
+
* type: [SkyCellType.Date, SkyCellType.Validator],
|
|
6055
|
+
* cellRendererParams: { skyComponentProperties: { validator: ... } },
|
|
6056
|
+
* })
|
|
6057
|
+
* ```
|
|
6058
|
+
*/
|
|
6059
|
+
// `C` preserves the exact shape of the passed literal (like `satisfies`), `F`
|
|
6060
|
+
// keeps `field` narrowed to its literal type for row-typed grid options, and
|
|
6061
|
+
// the `Record` intersection rejects misspelled or unknown properties.
|
|
6062
|
+
function defineSkyAgGridColDef(colDef) {
|
|
6063
|
+
return colDef;
|
|
6064
|
+
}
|
|
6065
|
+
|
|
6040
6066
|
// Export any types that should be included in the root.
|
|
6041
6067
|
|
|
6042
6068
|
/**
|
|
6043
6069
|
* Generated bundle index. Do not edit.
|
|
6044
6070
|
*/
|
|
6045
6071
|
|
|
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 };
|
|
6072
|
+
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
6073
|
//# sourceMappingURL=skyux-ag-grid.mjs.map
|