@freegridjs/core 1.0.0 → 1.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/dist/cdn/freegrid.esm.js +8 -8
- package/dist/cdn/freegrid.min.js +8 -8
- package/dist/index.d.ts +8 -6
- package/dist/index.js +368 -126
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/id.d.ts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/ja.d.ts +1 -1
- package/dist/locales/ko.d.ts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/ru.d.ts +1 -1
- package/dist/locales/th.d.ts +1 -1
- package/dist/locales/vi.d.ts +1 -1
- package/dist/locales/zh-CN.d.ts +1 -1
- package/dist/locales/zh-TW.d.ts +1 -1
- package/dist/{types-D9gm8TyF.d.ts → types-bFz-Q6ac.d.ts} +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as GridOptions, a as GridApi, E as ExportOptions, R as Row, D as Datasource, L as LocalePack } from './types-
|
|
2
|
-
export { A as AdvancedFilter, b as AdvancedFilterCondition, c as Aggregator, C as CellEvent, d as CellParams, e as ChartHandle, f as ChartOptions, g as ColumnDef, h as ColumnState, i as ColumnType, j as CombinedFilterModel, k as ContextMenuItem, l as ContextMenuParams, m as CustomEditor, n as DateFilterModel, o as DateOp, p as EditorParams, q as EditorSpec, F as FilterModel, r as FilterOp, s as FilterType, t as GridEvents, u as GridRange, I as InvalidCell, K as KeyAction, M as Messages, N as NumberFilterModel, v as NumberOp, P as PivotConfig, w as Region, x as RowDragOptions, y as RowDropParams, z as RowDropPosition, B as RowTransaction, S as SavedGridState, H as SavedStatePart, J as ScrollPosition, O as SelectOption, Q as ServerParams, T as SetFilterModel, U as SortDir, V as SortItem, W as SpanParams, X as SummaryCell, Y as SummaryOptions, Z as SummaryRowDef, _ as TextFilterModel, $ as TextOp, a0 as TransactionResult, a1 as XlsxCell, a2 as XlsxSheet, a3 as readXlsx, a4 as writeXlsx } from './types-
|
|
1
|
+
import { G as GridOptions, a as GridApi, E as ExportOptions, R as Row, D as Datasource, L as LocalePack } from './types-bFz-Q6ac.js';
|
|
2
|
+
export { A as AdvancedFilter, b as AdvancedFilterCondition, c as Aggregator, C as CellEvent, d as CellParams, e as ChartHandle, f as ChartOptions, g as ColumnDef, h as ColumnState, i as ColumnType, j as CombinedFilterModel, k as ContextMenuItem, l as ContextMenuParams, m as CustomEditor, n as DateFilterModel, o as DateOp, p as EditorParams, q as EditorSpec, F as FilterModel, r as FilterOp, s as FilterType, t as GridEvents, u as GridRange, I as InvalidCell, K as KeyAction, M as Messages, N as NumberFilterModel, v as NumberOp, P as PivotConfig, w as Region, x as RowDragOptions, y as RowDropParams, z as RowDropPosition, B as RowTransaction, S as SavedGridState, H as SavedStatePart, J as ScrollPosition, O as SelectOption, Q as ServerParams, T as SetFilterModel, U as SortDir, V as SortItem, W as SpanParams, X as SummaryCell, Y as SummaryOptions, Z as SummaryRowDef, _ as TextFilterModel, $ as TextOp, a0 as TransactionResult, a1 as XlsxCell, a2 as XlsxSheet, a3 as readXlsx, a4 as writeXlsx } from './types-bFz-Q6ac.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 = "1.0.
|
|
8
|
+
declare const version = "1.0.1";
|
|
9
9
|
|
|
10
10
|
interface LicenseInfo {
|
|
11
11
|
/** Licensed domains (plus their www. host); `*.example.com` also covers every subdomain. */
|
|
@@ -46,7 +46,8 @@ declare function exportWorkbook(filename: string, sheets: WorkbookSheet[]): void
|
|
|
46
46
|
/**
|
|
47
47
|
* Server helpers for REST back ends (Spring Boot, eGovFrame, Express…).
|
|
48
48
|
*
|
|
49
|
-
* Request (POST JSON, or GET query): { start, end, page, size, sort: [{ colId, dir }], filters, quickFilter,
|
|
49
|
+
* Request (POST JSON, or GET query): { start, end, page, size, sort: [{ colId, dir }], filters, quickFilter,
|
|
50
|
+
* advancedFilter?, groupBy?, groupKeys?, ...params }
|
|
50
51
|
* Response: { rows, total } — also { list, totalCount }, { content, totalElements } (Spring Page) or { data, total }.
|
|
51
52
|
*/
|
|
52
53
|
interface RestOptions {
|
|
@@ -67,9 +68,10 @@ interface RestOptions {
|
|
|
67
68
|
/** A datasource that asks your server for each block of rows. */
|
|
68
69
|
declare function restDatasource(url: string, options?: RestOptions): Datasource;
|
|
69
70
|
/**
|
|
70
|
-
* POST { created, updated, deleted } (from getModifiedRows) to `url`. On success the changes become the new
|
|
71
|
+
* POST { created, updated, deleted } (from getModifiedRows) to `url`. On success the sent changes become the new
|
|
71
72
|
* baseline (commitChanges) and the server's JSON is returned; on failure it throws and the changes stay.
|
|
72
|
-
* Nothing is sent when there are no changes.
|
|
73
|
+
* Nothing is sent when there are no changes. While a save is in flight, calling again returns that same save;
|
|
74
|
+
* edits made meanwhile stay changes for the next save.
|
|
73
75
|
*/
|
|
74
76
|
declare function saveChanges(grid: GridApi, url: string, options?: Omit<RestOptions, 'method' | 'transform'>): Promise<unknown>;
|
|
75
77
|
/**
|