ag-grid-community 32.2.0 → 32.2.2

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 (49) hide show
  1. package/dist/ag-grid-community.js +109 -125
  2. package/dist/ag-grid-community.min.js +1 -1
  3. package/dist/ag-grid-community.min.noStyle.js +1 -1
  4. package/dist/ag-grid-community.noStyle.js +109 -125
  5. package/dist/package/main.cjs.js +109 -125
  6. package/dist/package/main.cjs.min.js +13 -13
  7. package/dist/package/main.esm.min.mjs +56 -56
  8. package/dist/package/main.esm.mjs +109 -125
  9. package/dist/package/package.json +7 -7
  10. package/dist/types/client-side-row-model/version.d.ts +1 -1
  11. package/dist/types/core/api/gridApi.d.ts +4 -4
  12. package/dist/types/core/components/componentUtil.d.ts +1 -1
  13. package/dist/types/core/entities/colDef.d.ts +4 -4
  14. package/dist/types/core/entities/gridOptions.d.ts +28 -37
  15. package/dist/types/core/events.d.ts +3 -3
  16. package/dist/types/core/gridOptionsUtils.d.ts +8 -7
  17. package/dist/types/core/main.d.ts +2 -2
  18. package/dist/types/core/version.d.ts +1 -1
  19. package/dist/types/csv-export/version.d.ts +1 -1
  20. package/dist/types/infinite-row-model/version.d.ts +1 -1
  21. package/dist/types/main.d.ts +1 -0
  22. package/dist/types/theming/Part.d.ts +33 -0
  23. package/dist/types/theming/Theme.d.ts +39 -0
  24. package/dist/types/theming/main.d.ts +9 -0
  25. package/dist/types/theming/styles/core/GENERATED-core.d.ts +1 -0
  26. package/dist/types/theming/styles/core/core-css.d.ts +468 -0
  27. package/dist/types/theming/styles/parts/checkbox-style/GENERATED-checkbox-style-default.d.ts +1 -0
  28. package/dist/types/theming/styles/parts/checkbox-style/checkbox-styles.d.ts +56 -0
  29. package/dist/types/theming/styles/parts/color-scheme/color-schemes.d.ts +6 -0
  30. package/dist/types/theming/styles/parts/icon-set/alpine/GENERATED-icon-set-alpine.d.ts +1 -0
  31. package/dist/types/theming/styles/parts/icon-set/alpine/icon-set-alpine.d.ts +1 -0
  32. package/dist/types/theming/styles/parts/icon-set/icon-sets.d.ts +3 -0
  33. package/dist/types/theming/styles/parts/icon-set/material/GENERATED-icon-set-material.d.ts +1 -0
  34. package/dist/types/theming/styles/parts/icon-set/material/icon-set-material.d.ts +1 -0
  35. package/dist/types/theming/styles/parts/icon-set/quartz/GENERATED-icon-set-quartz.d.ts +1 -0
  36. package/dist/types/theming/styles/parts/icon-set/quartz/icon-set-quartz.d.ts +6 -0
  37. package/dist/types/theming/styles/parts/icon-set/quartz/quartz-icon-data.d.ts +3 -0
  38. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-base.d.ts +1 -0
  39. package/dist/types/theming/styles/parts/input-style/GENERATED-input-style-underlined.d.ts +1 -0
  40. package/dist/types/theming/styles/parts/input-style/input-styles.d.ts +70 -0
  41. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-base.d.ts +1 -0
  42. package/dist/types/theming/styles/parts/tab-style/GENERATED-tab-style-rolodex.d.ts +1 -0
  43. package/dist/types/theming/styles/parts/tab-style/tab-styles.d.ts +101 -0
  44. package/dist/types/theming/styles/parts/theme/themes.d.ts +3 -0
  45. package/dist/types/theming/theme-types.d.ts +206 -0
  46. package/dist/types/theming/theme-utils.d.ts +8 -0
  47. package/dist/types/theming/version.d.ts +1 -0
  48. package/package.json +7 -7
  49. package/dist/types/core/validation/rules/selectionValidations.d.ts +0 -3
@@ -0,0 +1,206 @@
1
+ import { type CoreParams } from './styles/core/core-css';
2
+ export type CssFragment = string | (() => string);
3
+ export type Feature = 'colorScheme' | 'iconSet' | 'checkboxStyle' | 'inputStyle' | 'tabStyle';
4
+ export type ParamType = 'color' | 'colorScheme' | 'length' | 'scale' | 'border' | 'borderStyle' | 'shadow' | 'image' | 'fontFamily' | 'fontWeight' | 'duration';
5
+ /**
6
+ * Return the ParamType for a given param name,
7
+ */
8
+ export declare const getParamType: (arg: string) => ParamType;
9
+ type ColorParam = CoreParamWithSuffix<'Color'>;
10
+ type LengthParam = 'spacing' | CoreParamWithSuffix<'Padding' | 'Spacing' | 'Size' | 'Width' | 'Height' | 'Radius' | 'Indent' | 'Start' | 'End' | 'Top' | 'Bottom' | 'Horizontal' | 'Vertical'>;
11
+ type BorderParam = CoreParamWithSuffix<'Border'>;
12
+ type ShadowParam = CoreParamWithSuffix<'Shadow'>;
13
+ type ImageParam = CoreParamWithSuffix<'Image'>;
14
+ type FontFamilyParam = CoreParamWithSuffix<'Family'>;
15
+ type DurationParam = CoreParamWithSuffix<'Duration'>;
16
+ type CoreParamWithSuffix<Suffix extends string> = {
17
+ [K in keyof CoreParams]: K extends `${infer _}${Suffix}` ? K : never;
18
+ }[keyof CoreParams];
19
+ type AnyString = string & {};
20
+ /**
21
+ * The 'brand color' for the grid, used wherever a non-neutral color is
22
+ * required. Selections, focus outlines and checkboxes use the accent color by
23
+ * default.
24
+ */
25
+ export type ColorValue = string | {
26
+ /**
27
+ * The name of the color parameter to reference
28
+ */
29
+ ref: ColorParam | AnyString;
30
+ /**
31
+ * Enable color mixing. Provide a value between 0 and 1 determining the amount of the referenced color used in the mix.
32
+ *
33
+ * By default, the referenced color will be mixed with `transparent` so 0 = fully transparent and 1 = fully opaque.
34
+ */
35
+ mix?: number;
36
+ /**
37
+ * Provide a second color reference to mix with instead of `transparent` This has no effect if `mix` is unspecified.
38
+ */
39
+ onto?: ColorParam | AnyString;
40
+ };
41
+ /**
42
+ * A CSS color-scheme value, e.g. "light", "dark", or "inherit" to use the
43
+ * same setting as the parent application
44
+ *
45
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
46
+ */
47
+ export type ColorSchemeValue = 'light' | 'dark' | 'inherit' | 'normal';
48
+ /**
49
+ * A CSS dimension value with length units, e.g. "1px" or "2em". Alternatively:
50
+ *
51
+ * - `4` -> "4px" (a plain JavaScript number will be given pixel units)
52
+ * - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
53
+ * - `{calc: "foo + bar * 2"}` -> Use a dynamically calculated expression. You can use param names like spacing and fontSize in the expression, as well as built-in CSS math functions like `min(spacing, fontSize)`
54
+ */
55
+ export type LengthValue = number | string | {
56
+ /**
57
+ * An expression that can include param names and maths, e.g.
58
+ * "spacing * 2". NOTE: In CSS the `-` character is valid in variable
59
+ * names, so leave a space around it.
60
+ */
61
+ calc: string;
62
+ } | {
63
+ ref: LengthParam | AnyString;
64
+ };
65
+ /**
66
+ * A number without units.
67
+ */
68
+ export type ScaleValue = number;
69
+ /**
70
+ * A CSS border value e.g. "solid 1px red". Alternatively an object containing optional properties:
71
+ *
72
+ * - `style` -> a CSS border-style, default `"solid"`
73
+ * - `width` -> a width in pixels, default `1`
74
+ * - `color` -> a ColorValue as you would pass to any color param, default `{ref: "borderColor"}`
75
+ *
76
+ * Or a reference:
77
+ * - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
78
+ *
79
+ * Or boolean value
80
+ * - `true` -> `{}` (the default border style, equivalent to `{style: "solid", width: 1, color: {ref: "borderColor"}`)
81
+ * - `false` -> `"none"` (no border).
82
+ *
83
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/border
84
+ */
85
+ export type BorderValue = string | boolean | {
86
+ style?: BorderStyleValue;
87
+ width?: LengthValue;
88
+ color?: ColorValue;
89
+ } | {
90
+ ref: BorderParam | AnyString;
91
+ };
92
+ /**
93
+ * A CSS box shadow value e.g. "10px 5px 5px red;". Alternatively an object containing optional properties:
94
+ *
95
+ * - `offsetX` -> number of pixels to move the shadow to the right, or a negative value to move left, default 0
96
+ * - `offsetY` -> number of pixels to move the shadow downwards, or a negative value to move up, default 0
97
+ * - `radius` -> softness of the shadow. 0 = hard edge, 10 = 10px wide blur
98
+ * - `spread` -> size of the shadow. 0 = same size as the shadow-casting element. 10 = 10px wider in all directions.
99
+ * - `color` -> color of the shadow e.g. `"red"`. Default `{ref: "foregroundColor"}`
100
+ *
101
+ * Or a reference:
102
+ * - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
103
+ *
104
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
105
+ */
106
+ export type ShadowValue = string | false | {
107
+ /**
108
+ * Positive values move the shadow to the right, negative values move left
109
+ *
110
+ * @default 0
111
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
112
+ */
113
+ offsetX?: LengthValue;
114
+ /**
115
+ * Positive values move the shadow downwards, negative values move up
116
+ *
117
+ * @default 0
118
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
119
+ */
120
+ offsetY?: LengthValue;
121
+ /**
122
+ * Softness of the shadow. 0 = hard edge, 10 = 10px wide blur.
123
+ *
124
+ * @default 0
125
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
126
+ */
127
+ radius?: LengthValue;
128
+ /**
129
+ * Size of the shadow. 0 = same size as the shadow-casting element. 10 = 10px wider in all directions.
130
+ *
131
+ * @default 0
132
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
133
+ */
134
+ spread?: LengthValue;
135
+ /**
136
+ * Shadow color. Can accept any value that is valid for a color parameter, e.g. 'red' or {ref: 'accentColor'}
137
+ *
138
+ * @default {ref: 'foregroundColor'}
139
+ */
140
+ color?: ColorValue;
141
+ } | {
142
+ ref: ShadowParam | AnyString;
143
+ };
144
+ /**
145
+ * A CSS line-style value e.g. "solid" or "dashed".
146
+ *
147
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/line-style
148
+ */
149
+ export type BorderStyleValue = 'none' | 'solid' | 'dotted' | 'dashed';
150
+ /**
151
+ * A CSS font-family value consisting of a font name or comma-separated list of fonts in order of preference e.g. `"Roboto, -apple-system, 'Segoe UI', sans-serif"`. Alternatively:
152
+ *
153
+ * - `["Roboto", "-apple-system", "Segoe UI", "sans-serif"]` -> an array of font names in order of preference
154
+ * - `["Dave's Font"]` -> when passing an array, special characters in font names will automatically be escaped
155
+ * - `{ref: "foo"}` -> use the same value as `foo` which must be a valid font family param name
156
+ *
157
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
158
+ */
159
+ export type FontFamilyValue = string | {
160
+ googleFont: string;
161
+ } | Array<string | {
162
+ googleFont: string;
163
+ }> | {
164
+ ref: FontFamilyParam | AnyString;
165
+ };
166
+ /**
167
+ * A CSS font-weight value e.g. `500` or `"bold"`
168
+ *
169
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
170
+ */
171
+ export type FontWeightValue = 'normal' | 'bold' | number;
172
+ /**
173
+ * A CSS image value e.g. `"url(...image-url...)"`. Alternatively:
174
+ *
175
+ * - `{svg: "...XML source of SVG image..."}` -> embed an SVG as a data: uri
176
+ * - `{url: "https://..."}` -> a URL to load an image asset from. Can be a HTTPS URL, or image assets such as PNGs can be converted to data: URLs
177
+ * - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
178
+ *
179
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/image
180
+ */
181
+ export type ImageValue = string | {
182
+ /**
183
+ * The URL of an image. data: URLs can be used embed assets.
184
+ */
185
+ url: string;
186
+ } | {
187
+ /**
188
+ * The XML text of an SVG file
189
+ */
190
+ svg: string;
191
+ } | {
192
+ ref: ImageParam | AnyString;
193
+ };
194
+ /**
195
+ * A CSS time value with second or millisecond units e.g. `"0.3s"` or `"300ms"`. Alternatively:
196
+ *
197
+ * - `0.4` -> "0.4s" (a plain JavaScript number is assumed to be a number of seconds.
198
+ * - `{ref: "foo"}` -> use the same value as the `foo` param (`ref` must be a valid param name)
199
+ *
200
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration
201
+ */
202
+ export type DurationValue = number | string | {
203
+ ref: DurationParam | AnyString;
204
+ };
205
+ export declare const paramValueToCss: (param: string, value: unknown) => string | false;
206
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const kebabCase: (str: string) => string;
2
+ export declare const paramToVariableName: (paramName: string) => string;
3
+ export declare const paramToVariableExpression: (paramName: string) => string;
4
+ export declare const clamp: (value: number, min: number, max: number) => number;
5
+ export declare const logErrorMessage: (message: unknown, error?: unknown) => void;
6
+ export declare const proportionToPercent: (value: number) => number;
7
+ export declare const camelCase: (str: string) => string;
8
+ export declare const memoize: <R, A = void>(fn: (arg: A) => R) => ((arg: A) => R);
@@ -0,0 +1 @@
1
+ export declare const VERSION = "32.2.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-grid-community",
3
- "version": "32.2.0",
3
+ "version": "32.2.2",
4
4
  "description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",
5
5
  "main": "./dist/package/main.cjs.js",
6
6
  "types": "./dist/types/main.d.ts",
@@ -95,12 +95,12 @@
95
95
  "gulp": "^4.0.0",
96
96
  "gulp-replace": "^1.0.0",
97
97
  "gulp-rename": "^2.0.0",
98
- "@ag-grid-community/client-side-row-model": "32.2.0",
99
- "@ag-grid-community/core": "32.2.0",
100
- "@ag-grid-community/csv-export": "32.2.0",
101
- "@ag-grid-community/infinite-row-model": "32.2.0",
102
- "@ag-grid-community/styles": "32.2.0",
103
- "@ag-grid-community/theming": "32.2.0",
98
+ "@ag-grid-community/client-side-row-model": "32.2.2",
99
+ "@ag-grid-community/core": "32.2.2",
100
+ "@ag-grid-community/csv-export": "32.2.2",
101
+ "@ag-grid-community/infinite-row-model": "32.2.2",
102
+ "@ag-grid-community/styles": "32.2.2",
103
+ "@ag-grid-community/theming": "32.2.2",
104
104
  "ts-loader": "^9.5.1",
105
105
  "style-loader": "^3.3.4",
106
106
  "css-loader": "^6.10.0",
@@ -1,3 +0,0 @@
1
- import type { SelectionOptions } from '../../entities/gridOptions';
2
- import type { OptionsValidator } from '../validationTypes';
3
- export declare const SELECTION_VALIDATORS: OptionsValidator<SelectionOptions>;