@freegridjs/core 0.7.1 → 0.8.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/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { G as GridOptions, a as GridApi, L as LocalePack } from './types-CusLVNhk.js';
2
- export { A as Aggregator, C as CellEvent, b as CellParams, c as ChartHandle, d as ChartOptions, e as ColumnDef, f as ColumnState, g as ColumnType, h as ContextMenuItem, i as ContextMenuParams, j as CustomEditor, D as Datasource, k as DateFilterModel, l as DateOp, E as EditorParams, m as EditorSpec, n as ExportOptions, F as FilterModel, o as FilterOp, p as FilterType, q as GridEvents, r as GridRange, K as KeyAction, M as Messages, N as NumberFilterModel, s as NumberOp, P as PivotConfig, R as Region, t as Row, S as SelectOption, u as ServerParams, v as SetFilterModel, w as SortDir, x as SortItem, y as SummaryCell, z as SummaryOptions, B as SummaryRowDef, T as TextFilterModel, H as TextOp } from './types-CusLVNhk.js';
1
+ import { G as GridOptions, a as GridApi, L as LocalePack } from './types-e45suTSB.js';
2
+ export { A as Aggregator, C as CellEvent, b as CellParams, c as ChartHandle, d as ChartOptions, e as ColumnDef, f as ColumnState, g as ColumnType, h as ContextMenuItem, i as ContextMenuParams, j as CustomEditor, D as Datasource, k as DateFilterModel, l as DateOp, E as EditorParams, m as EditorSpec, n as ExportOptions, F as FilterModel, o as FilterOp, p as FilterType, q as GridEvents, r as GridRange, I as InvalidCell, K as KeyAction, M as Messages, N as NumberFilterModel, s as NumberOp, P as PivotConfig, R as Region, t as Row, u as RowDragOptions, v as RowDropParams, w as RowDropPosition, S as ScrollPosition, x as SelectOption, y as ServerParams, z as SetFilterModel, B as SortDir, H as SortItem, J as SpanParams, O as SummaryCell, Q as SummaryOptions, T as SummaryRowDef, U as TextFilterModel, V as TextOp } from './types-e45suTSB.js';
3
3
  export { default as en } from './locales/en.js';
4
4
 
5
5
  declare function createGrid(host: HTMLElement, options: GridOptions): GridApi;
6
6
 
7
7
  /** FreeGrid version (kept in sync with releases.json by scripts/release.mjs). */
8
- declare const version = "0.7.1";
8
+ declare const version = "0.8.1";
9
9
 
10
10
  interface LicenseInfo {
11
- /** Licensed domains; each also covers its subdomains. */
11
+ /** Licensed domains (plus their www. host); `*.example.com` also covers every subdomain. */
12
12
  domains: string[];
13
13
  company: string;
14
14
  /** Last valid day, YYYY-MM-DD. */
@@ -31,13 +31,20 @@ declare function verifyLicense(key: string, host: string, opts?: {
31
31
  /** Set the license key once for every grid on the page. */
32
32
  declare function setLicenseKey(key: string): void;
33
33
 
34
- /** A cell value, optionally with an Excel number format and bold text. */
34
+ /** A cell value, optionally with an Excel number format and text styles. Colors are ARGB hex like 'FFDC2626'. */
35
35
  type XlsxValue = string | number | boolean | Date | null | undefined;
36
- type XlsxCell = XlsxValue | {
37
- v: XlsxValue;
36
+ interface XlsxStyle {
38
37
  fmt?: string;
39
38
  bold?: boolean;
40
- };
39
+ align?: 'left' | 'center' | 'right';
40
+ color?: string;
41
+ fill?: string;
42
+ /** Header look: bold on a light gray fill. */
43
+ header?: boolean;
44
+ }
45
+ type XlsxCell = XlsxValue | ({
46
+ v: XlsxValue;
47
+ } & XlsxStyle);
41
48
  interface XlsxSheet {
42
49
  name?: string;
43
50
  rows: XlsxCell[][];