@gridsheet/react-core 3.2.0 → 3.4.0

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 (51) hide show
  1. package/dist/components/AsyncProgressOverlay.d.ts +14 -0
  2. package/dist/components/AsyncProgressOverlay.d.ts.map +1 -0
  3. package/dist/components/Cell.d.ts.map +1 -1
  4. package/dist/components/CellStateOverlay.d.ts.map +1 -1
  5. package/dist/components/ColumnMenu.d.ts.map +1 -1
  6. package/dist/components/ColumnMenuLabelSection.d.ts.map +1 -1
  7. package/dist/components/ContextMenu.d.ts.map +1 -1
  8. package/dist/components/Editor.d.ts.map +1 -1
  9. package/dist/components/FormulaBar.d.ts.map +1 -1
  10. package/dist/components/FunctionGuide.d.ts +1 -1
  11. package/dist/components/FunctionGuide.d.ts.map +1 -1
  12. package/dist/components/GridSheet.d.ts +1 -1
  13. package/dist/components/GridSheet.d.ts.map +1 -1
  14. package/dist/components/HeaderCellTop.d.ts.map +1 -1
  15. package/dist/components/MenuNodes.d.ts +28 -0
  16. package/dist/components/MenuNodes.d.ts.map +1 -0
  17. package/dist/components/ProgressOverlay.d.ts +18 -0
  18. package/dist/components/ProgressOverlay.d.ts.map +1 -0
  19. package/dist/components/RowMenu.d.ts.map +1 -1
  20. package/dist/components/ScrollHandle.d.ts.map +1 -1
  21. package/dist/components/StoreObserver.d.ts.map +1 -1
  22. package/dist/components/Tabular.d.ts.map +1 -1
  23. package/dist/components/useAutocomplete.d.ts +1 -1
  24. package/dist/components/useAutocomplete.d.ts.map +1 -1
  25. package/dist/hooks-Bt6-NgDa.mjs +6784 -0
  26. package/dist/hooks-Bt6-NgDa.mjs.map +1 -0
  27. package/dist/index.d.ts +5 -3
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2244 -2076
  30. package/dist/index.js.map +1 -1
  31. package/dist/lib/clipboard.d.ts +1 -1
  32. package/dist/lib/clipboard.d.ts.map +1 -1
  33. package/dist/lib/hooks.d.ts +1 -1
  34. package/dist/lib/hooks.d.ts.map +1 -1
  35. package/dist/lib/menu.d.ts +17 -4
  36. package/dist/lib/menu.d.ts.map +1 -1
  37. package/dist/policy/checkbox.d.ts +1 -1
  38. package/dist/policy/checkbox.d.ts.map +1 -1
  39. package/dist/spellbook.d.ts +3 -3
  40. package/dist/spellbook.d.ts.map +1 -1
  41. package/dist/spellbook.js +4 -5
  42. package/dist/spellbook.js.map +1 -1
  43. package/dist/store/actions.d.ts +56 -1
  44. package/dist/store/actions.d.ts.map +1 -1
  45. package/dist/store/helpers.d.ts +1 -1
  46. package/dist/store/helpers.d.ts.map +1 -1
  47. package/dist/types.d.ts +19 -2
  48. package/dist/types.d.ts.map +1 -1
  49. package/package.json +3 -3
  50. package/dist/hooks-CvkA2lFB.mjs +0 -1186
  51. package/dist/hooks-CvkA2lFB.mjs.map +0 -1
@@ -0,0 +1,14 @@
1
+ export type AsyncProgressHandle = {
2
+ setProgress: (ratio: number) => void;
3
+ };
4
+ /**
5
+ * Determinate progress overlay for a chunked async mutation (large fill/paste). Its progress
6
+ * is driven IMPERATIVELY (via the ref) so that a progress tick re-renders only this small
7
+ * component — not the whole grid. Routing progress through the store instead made every tick
8
+ * re-render the (expensive, at deep scroll) grid, so a million-cell fill spent most of its
9
+ * time re-rendering. The visuals come from the shared ProgressOverlay.
10
+ */
11
+ export declare const AsyncProgressOverlay: import('react').ForwardRefExoticComponent<{
12
+ label: string;
13
+ } & import('react').RefAttributes<AsyncProgressHandle>>;
14
+ //# sourceMappingURL=AsyncProgressOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncProgressOverlay.d.ts","sourceRoot":"","sources":["../../src/components/AsyncProgressOverlay.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;WAA4C,MAAM;uDAIjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAuXzB,CAAC"}
1
+ {"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../src/components/Cell.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAK3C,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,KAAK,CAsXzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAyRtC,CAAC"}
1
+ {"version":3,"file":"CellStateOverlay.d.ts","sourceRoot":"","sources":["../../src/components/CellStateOverlay.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAwBnE,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAmEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CA+RtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAqC,MAAM,OAAO,CAAC;AAWnE,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,EA0GxB,CAAC"}
1
+ {"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAqC,MAAM,OAAO,CAAC;AAWnE,OAAO,2BAA2B,CAAC;AACnC,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAElC,eAAO,MAAM,UAAU,EAAE,EA4ExB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnMenuLabelSection.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenuLabelSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAMtF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,mBAAmB,CA6EzC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"ColumnMenuLabelSection.d.ts","sourceRoot":"","sources":["../../src/components/ColumnMenuLabelSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAwD,MAAM,OAAO,CAAC;AAMtF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9E,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,mBAAmB,CA6FzC,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,0BAgEvB,CAAC"}
1
+ {"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../src/components/ContextMenu.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,0BAmCvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA0ChC,OAAO,EAA4C,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK9E,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAotB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../src/components/Editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6ChC,OAAO,EAA4C,QAAQ,EAAE,MAAM,UAAU,CAAC;AAK9E,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CA+vB5B,CAAC;AA2BF,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,gBAgEvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBA0YpD,CAAC"}
1
+ {"version":3,"file":"FormulaBar.d.ts","sourceRoot":"","sources":["../../src/components/FormulaBar.tsx"],"names":[],"mappings":"AAeA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,WAAW,eAAe,gBAoYpD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { FunctionHelp, AutocompleteOption } from '@gridsheet/core';
2
+ import { FunctionHelp, AutocompleteOption } from '@gridsheet/web';
3
3
  type OptionWithGuide = AutocompleteOption & {
4
4
  isFunction?: boolean;
5
5
  example?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAEjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8JtD,CAAC"}
1
+ {"version":3,"file":"FunctionGuide.d.ts","sourceRoot":"","sources":["../../src/components/FunctionGuide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAIzD,KAAK,eAAe,GAAG,kBAAkB,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAEjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8JtD,CAAC"}
@@ -3,5 +3,5 @@ export declare const createSheetRef: () => import('react').RefObject<SheetHandle
3
3
  export declare const useSheetRef: () => import('react').MutableRefObject<SheetHandle | null>;
4
4
  export declare const createStoreRef: () => import('react').RefObject<StoreHandle | null>;
5
5
  export declare const useStoreRef: () => import('react').MutableRefObject<StoreHandle | null>;
6
- export declare function GridSheet({ initialCells, sheetName, sheetRef: initialSheetRef, storeRef: initialStoreRef, options, className, style, book: initialBook, }: Props): JSX.Element;
6
+ export declare function GridSheet({ initialCells, sheetName, sheetRef: initialSheetRef, storeRef: initialStoreRef, options, className, style, book: initialBook, loading: loadingProp, }: Props): JSX.Element;
7
7
  //# sourceMappingURL=GridSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmC,WAAW,EAAE,WAAW,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AA+BzH,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAElE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,eAAe,EACzB,OAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,EAAE,WAAW,GAClB,EAAE,KAAK,eAoSP"}
1
+ {"version":3,"file":"GridSheet.d.ts","sourceRoot":"","sources":["../../src/components/GridSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmC,WAAW,EAAE,WAAW,EAAe,KAAK,EAAa,MAAM,UAAU,CAAC;AAiCzH,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4DAAyC,CAAC;AAElE,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,SAAc,EACd,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,eAAe,EACzB,OAAY,EACZ,SAAS,EACT,KAAK,EACL,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,WAAW,GACrB,EAAE,KAAK,eAgXP"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAkRlC,CAAC"}
1
+ {"version":3,"file":"HeaderCellTop.d.ts","sourceRoot":"","sources":["../../src/components/HeaderCellTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AA6BhC,KAAK,KAAK,GAAG;IACX,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,KAAK,CAySlC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { MenuContext } from '../lib/menu';
3
+ export type MenuNode = {
4
+ type?: 'item' | 'divider' | 'component' | 'submenu';
5
+ id?: string;
6
+ componentId?: string;
7
+ label?: string | ((ctx: MenuContext, ...args: any[]) => string);
8
+ shortcuts?: string[] | ((ctx: MenuContext, ...args: any[]) => string[]);
9
+ visible?: (ctx: MenuContext, ...args: any[]) => boolean;
10
+ disabled?: (ctx: MenuContext, ...args: any[]) => boolean;
11
+ checked?: (ctx: MenuContext, ...args: any[]) => boolean;
12
+ onClick?: (ctx: MenuContext, ...args: any[]) => void | Promise<void>;
13
+ children?: MenuNode[];
14
+ };
15
+ type MenuNodesProps = {
16
+ items: MenuNode[];
17
+ ctx: MenuContext;
18
+ /** Trailing coordinate args passed after ctx to every callback: [] | [x] | [y]. */
19
+ args: number[];
20
+ /** Called after a leaf item is chosen, to close the whole menu. */
21
+ onSelect: () => void;
22
+ /** Renders a `type: 'component'` descriptor (e.g. the column menu's sort/filter sections). */
23
+ renderComponent?: (componentId: string, key: number) => ReactNode;
24
+ };
25
+ /** Renders a list of menu descriptors (with nested submenu support) as `<li>` rows. */
26
+ export declare const MenuNodes: FC<MenuNodesProps>;
27
+ export {};
28
+ //# sourceMappingURL=MenuNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuNodes.d.ts","sourceRoot":"","sources":["../../src/components/MenuNodes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAqC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO/C,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,CAAC;IAChE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;IACxE,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IACzD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,GAAG,EAAE,WAAW,CAAC;IACjB,mFAAmF;IACnF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,mEAAmE;IACnE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,8FAA8F;IAC9F,eAAe,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;CACnE,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAuDxC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FC } from 'react';
2
+ export type ProgressOverlayProps = {
3
+ /** 0..1 for a determinate bar; null/undefined for an indeterminate spinner. */
4
+ progress?: number | null;
5
+ /** Text shown before the percentage (e.g. "Loading", "Saving", "Pasting"). */
6
+ label?: string;
7
+ };
8
+ /**
9
+ * Shared progress overlay: a centered card with a spinner + label, plus a determinate bar
10
+ * when `progress` is given. One component for initial loading, save, and chunked async
11
+ * mutations so every progress indicator looks and behaves the same. It spans its (positioned)
12
+ * container to capture pointer events — blocking interaction while work runs — but does NOT
13
+ * dim, so the grid stays visible behind it. Drive it with a prop for cheap/occasional updates
14
+ * (load/save); for a high-frequency mutation tick use AsyncProgressOverlay's imperative handle
15
+ * so a tick re-renders only the overlay, not the grid.
16
+ */
17
+ export declare const ProgressOverlay: FC<ProgressOverlayProps>;
18
+ //# sourceMappingURL=ProgressOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProgressOverlay.d.ts","sourceRoot":"","sources":["../../src/components/ProgressOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,MAAM,MAAM,oBAAoB,GAAG;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAkBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AA8C5C,eAAO,MAAM,OAAO,EAAE,EAmCrB,CAAC"}
1
+ {"version":3,"file":"RowMenu.d.ts","sourceRoot":"","sources":["../../src/components/RowMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAc,MAAM,OAAO,CAAC;AAQ5C,eAAO,MAAM,OAAO,EAAE,EAmCrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAU3C,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,SAAc,EAAE,EAAE,KAAK,eAoM1F"}
1
+ {"version":3,"file":"ScrollHandle.d.ts","sourceRoot":"","sources":["../../src/components/ScrollHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAU3C,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAQF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAc,EAAE,QAAY,EAAE,SAAc,EAAE,EAAE,KAAK,eAwN1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"StoreObserver.d.ts","sourceRoot":"","sources":["../../src/components/StoreObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAS,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ7E,KAAK,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,YAAY,CAAC,GAAG;IAE1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA0FhD,CAAC"}
1
+ {"version":3,"file":"StoreObserver.d.ts","sourceRoot":"","sources":["../../src/components/StoreObserver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGlD,OAAO,KAAK,EAAE,WAAW,EAAS,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ7E,KAAK,kBAAkB,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,YAAY,CAAC,GAAG;IAE1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,cAAc,qDAAwC,CAAC;AACpE,eAAO,MAAM,WAAW,4CAAyC,CAAC;AAClE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA2OhD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO,0BAyRnB,CAAC"}
1
+ {"version":3,"file":"Tabular.d.ts","sourceRoot":"","sources":["../../src/components/Tabular.tsx"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO,0BA2RnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FunctionHelp, FunctionMapping, AutocompleteOption } from '@gridsheet/core';
1
+ import { FunctionHelp, FunctionMapping, AutocompleteOption } from '@gridsheet/web';
2
2
  type UseAutocompleteProps = {
3
3
  inputting: string;
4
4
  selectionStart: number;
@@ -1 +1 @@
1
- {"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../src/components/useAutocomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sDAAsD,oBAAoB;;;;gCA6L7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}
1
+ {"version":3,"file":"useAutocomplete.d.ts","sourceRoot":"","sources":["../../src/components/useAutocomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,sDAAsD,oBAAoB;;;;gCA6L7F,GAAG;;;;uBAkBR,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;yBAYxC,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;;;;CAsB/C,CAAC"}