@restio/ui 0.0.10-SNAPSHOT → 0.0.11-SNAPSHOT

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 (77) hide show
  1. package/dist/assets/svg/discussion.svg +1 -0
  2. package/dist/assets/svg/pencil.svg +1 -1
  3. package/dist/components/typography/typography-types.d.ts +11 -2
  4. package/dist/components/typography/typography-types.d.ts.map +1 -1
  5. package/dist/custom-components/chat/chat.d.ts.map +1 -1
  6. package/dist/custom-components/markdown/components/img/zoomable-image.d.ts +5 -0
  7. package/dist/custom-components/markdown/components/img/zoomable-image.d.ts.map +1 -0
  8. package/dist/custom-components/markdown/markdown-types.d.ts +3 -0
  9. package/dist/custom-components/markdown/markdown-types.d.ts.map +1 -1
  10. package/dist/custom-components/markdown/markdown.d.ts.map +1 -1
  11. package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts +9 -0
  12. package/dist/data-components/gantt/ai-assistant/gantt-ai-executor.d.ts.map +1 -0
  13. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts +12 -0
  14. package/dist/data-components/gantt/ai-assistant/gantt-ai-panel.d.ts.map +1 -0
  15. package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts +7 -0
  16. package/dist/data-components/gantt/ai-assistant/gantt-ai-schema.d.ts.map +1 -0
  17. package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts +3 -0
  18. package/dist/data-components/gantt/ai-assistant/gantt-ai-tools.d.ts.map +1 -0
  19. package/dist/data-components/gantt/arrows/gantt-arrows.d.ts +21 -0
  20. package/dist/data-components/gantt/arrows/gantt-arrows.d.ts.map +1 -0
  21. package/dist/data-components/gantt/gantt-context.d.ts +13 -0
  22. package/dist/data-components/gantt/gantt-context.d.ts.map +1 -0
  23. package/dist/data-components/gantt/gantt-types.d.ts +101 -0
  24. package/dist/data-components/gantt/gantt-types.d.ts.map +1 -0
  25. package/dist/data-components/gantt/gantt-utils.d.ts +61 -0
  26. package/dist/data-components/gantt/gantt-utils.d.ts.map +1 -0
  27. package/dist/data-components/gantt/gantt.d.ts +4 -0
  28. package/dist/data-components/gantt/gantt.d.ts.map +1 -0
  29. package/dist/data-components/gantt/hooks/useGanttDrag.d.ts +15 -0
  30. package/dist/data-components/gantt/hooks/useGanttDrag.d.ts.map +1 -0
  31. package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts +18 -0
  32. package/dist/data-components/gantt/hooks/useGanttTimeline.d.ts.map +1 -0
  33. package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts +10 -0
  34. package/dist/data-components/gantt/sidebar/gantt-sidebar-types.d.ts.map +1 -0
  35. package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts +3 -0
  36. package/dist/data-components/gantt/sidebar/gantt-sidebar.d.ts.map +1 -0
  37. package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts +13 -0
  38. package/dist/data-components/gantt/stories/gantt-stories-utils.d.ts.map +1 -0
  39. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts +5 -1
  40. package/dist/data-components/table-grid/ai-assistant/ai-assistant-executor.d.ts.map +1 -1
  41. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts +5 -0
  42. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel-types.d.ts.map +1 -1
  43. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts +1 -1
  44. package/dist/data-components/table-grid/ai-assistant/ai-assistant-panel.d.ts.map +1 -1
  45. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts +2 -0
  46. package/dist/data-components/table-grid/ai-assistant/ai-assistant-tools.d.ts.map +1 -1
  47. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts +36 -0
  48. package/dist/data-components/table-grid/ai-assistant/ai-assistant-types.d.ts.map +1 -1
  49. package/dist/data-components/table-grid/ai-assistant/ai-assistant-validator.d.ts.map +1 -1
  50. package/dist/data-components/table-grid/grouping/grouping.d.ts +15 -0
  51. package/dist/data-components/table-grid/grouping/grouping.d.ts.map +1 -0
  52. package/dist/data-components/table-grid/header/table-grid-column-menu.d.ts.map +1 -1
  53. package/dist/data-components/table-grid/pivot/pivot-config-panel.d.ts.map +1 -1
  54. package/dist/data-components/table-grid/row/table-grid-row.d.ts.map +1 -1
  55. package/dist/data-components/table-grid/selection/selection-utils.d.ts +5 -5
  56. package/dist/data-components/table-grid/selection/selection-utils.d.ts.map +1 -1
  57. package/dist/data-components/table-grid/sorting/sorting.d.ts +3 -5
  58. package/dist/data-components/table-grid/sorting/sorting.d.ts.map +1 -1
  59. package/dist/data-components/table-grid/table-grid-context.d.ts.map +1 -1
  60. package/dist/data-components/table-grid/table-grid-panels.d.ts +22 -0
  61. package/dist/data-components/table-grid/table-grid-panels.d.ts.map +1 -0
  62. package/dist/data-components/table-grid/table-grid-types.d.ts +21 -0
  63. package/dist/data-components/table-grid/table-grid-types.d.ts.map +1 -1
  64. package/dist/data-components/table-grid/table-grid.d.ts +8 -1
  65. package/dist/data-components/table-grid/table-grid.d.ts.map +1 -1
  66. package/dist/data-components/table-grid/table-utils.d.ts +14 -2
  67. package/dist/data-components/table-grid/table-utils.d.ts.map +1 -1
  68. package/dist/index.d.ts +2 -0
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/providers/ai-assistant/ai-assistant-types.d.ts +2 -0
  71. package/dist/providers/ai-assistant/ai-assistant-types.d.ts.map +1 -1
  72. package/dist/providers/ai-assistant/ai-chat-panel.d.ts.map +1 -1
  73. package/dist/restio-ui.cjs.js +54 -26
  74. package/dist/restio-ui.es.js +3225 -1978
  75. package/dist/ui.css +1 -1
  76. package/dist/utility-components/icon/icon-assets.d.ts.map +1 -1
  77. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ <svg fill="currentColor" viewBox="0 0 24 24" transform="" id="injected-svg"><!--Boxicons v3.0.8 https://boxicons.com | License https://docs.boxicons.com/free--><path d="M20 8h-3V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h1v2c0 .38.21.72.55.89.14.07.29.11.45.11.21 0 .42-.07.6-.2L9 15v2c0 1.1.9 2 2 2h3.67l3.73 2.8c.18.13.39.2.6.2.15 0 .31-.04.45-.11A1 1 0 0 0 20 21v-2c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2M6 12H4V4h11v8h-5c-.12 0-.24.03-.35.07-.04.02-.07.04-.11.06-.05.02-.09.04-.14.07L7 14v-1c0-.55-.45-1-1-1m14 5h-1c-.55 0-1 .45-1 1v1l-2.4-1.8a1 1 0 0 0-.6-.2h-4v-3h4c1.1 0 2-.9 2-2v-2h3z"></path></svg>
@@ -1 +1 @@
1
- <svg fill="currentColor" viewBox="0 0 24 24" transform="" id="injected-svg"><!--Boxicons v3.0.3 https://boxicons.com | License https://docs.boxicons.com/free--><path d="m19.41,3c-.78-.78-2.05-.78-2.83,0L4.29,15.29c-.13.13-.22.29-.26.46l-1,4c-.08.34.01.7.26.95.19.19.45.29.71.29.08,0,.16,0,.24-.03l4-1c.18-.04.34-.13.46-.26l12.29-12.29c.78-.78.78-2.05,0-2.83l-1.59-1.59Zm-11.93,15.1l-2.11.53.53-2.11L15,7.41l1.59,1.59-9.1,9.1Zm10.51-10.51l-1.59-1.59,1.59-1.59,1.59,1.58-1.59,1.59Z"></path></svg>
1
+ <svg fill="currentColor" viewBox="0 0 24 24" transform="" id="injected-svg"><!--Boxicons v3.0.3 https://boxicons.com | License https://docs.boxicons.com/free--><path d="m19.41,3c-.78-.78-2.05-.78-2.83,0L4.29,15.29c-.13.13-.22.29-.26.46l-1,4c-.08.34.01.7.26.95.19.19.45.29.71.29.08,0,.16,0,.24-.03l4-1c.18-.04.34-.13.46-.26l12.29-12.29c.78-.78.78-2.05,0-2.83l-1.59-1.59Zm-11.93,15.1l-2.11.53.53-2.11L15,7.41l1.59,1.59-9.1,9.1Zm10.51-10.51l-1.59-1.59,1.59-1.59,1.59,1.58-1.59,1.59Z"></path></svg>
@@ -19,16 +19,25 @@ export interface BaseTypographyProps {
19
19
  export type TypographyProps<T extends TypographyVariant> = BaseTypographyProps & {
20
20
  variant: T;
21
21
  } & React.ComponentPropsWithoutRef<VariantToElement<T>>;
22
- export type TypographyVariant = "display" | "heading" | "body" | "label" | "code" | "subtitle" | "title" | "caption";
22
+ export type TypographyVariant = "display" | "heading" | "body" | "label" | "code" | "subtitle" | "title" | "caption" | "article-h1" | "article-h2" | "article-h3" | "article-h4" | "article-body" | "article-code" | "article-quote" | "article-caption" | "article-list";
23
23
  export declare const variantToComponent: {
24
24
  readonly display: "h1";
25
25
  readonly heading: "h2";
26
26
  readonly title: "h3";
27
27
  readonly subtitle: "h4";
28
- readonly body: "h6";
28
+ readonly body: "p";
29
29
  readonly label: "label";
30
30
  readonly code: "code";
31
31
  readonly caption: "span";
32
+ readonly "article-h1": "h1";
33
+ readonly "article-h2": "h2";
34
+ readonly "article-h3": "h3";
35
+ readonly "article-h4": "h4";
36
+ readonly "article-body": "p";
37
+ readonly "article-code": "code";
38
+ readonly "article-quote": "blockquote";
39
+ readonly "article-caption": "figcaption";
40
+ readonly "article-list": "li";
32
41
  };
33
42
  type VariantToElement<T extends TypographyVariant> = (typeof variantToComponent)[T];
34
43
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,iBAAiB,IAAI,mBAAmB,GAAG;IAC/E,OAAO,EAAE,CAAC,CAAC;CACZ,GAAG,KAAK,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAErH,eAAO,MAAM,kBAAkB;;;;;;;;;CASrB,CAAC;AAEX,KAAK,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography-types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,iBAAiB,IAAI,mBAAmB,GAAG;IAC/E,OAAO,EAAE,CAAC,CAAC;CACZ,GAAG,KAAK,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAExD,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,OAAO,GACP,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,cAAc,CAAC;AAEnB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;CAkBrB,CAAC;AAEX,KAAK,gBAAgB,CAAC,CAAC,SAAS,iBAAiB,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/custom-components/chat/chat.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,YAAY,EACZ,cAAsC,EACtC,UAAU,EACV,aAAa,EACb,SAAS,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,aAAa,GACd,EAAE,SAAS,2CA0FX"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/custom-components/chat/chat.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,YAAY,EACZ,cAAsC,EACtC,UAAU,EACV,aAAa,EACb,SAAS,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,aAAa,GACd,EAAE,SAAS,2CAkIX"}
@@ -0,0 +1,5 @@
1
+ export declare const ZoomableImage: ({ src, alt }: {
2
+ readonly src?: string;
3
+ readonly alt?: string;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=zoomable-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoomable-image.d.ts","sourceRoot":"","sources":["../../../../../src/custom-components/markdown/components/img/zoomable-image.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,GAAI,cAAc;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,4CAsD3F,CAAC"}
@@ -16,6 +16,9 @@ export type MDXComponents = {
16
16
  li: React.FC<MDXElementProps>;
17
17
  pre: React.FC<MDXElementProps>;
18
18
  img?: React.FC<React.ImgHTMLAttributes<HTMLImageElement>>;
19
+ hr?: React.FC<MDXElementProps>;
20
+ blockquote?: React.FC<MDXElementProps>;
21
+ ul?: React.FC<MDXElementProps>;
19
22
  Graph: typeof Graph;
20
23
  Tag: typeof Tag;
21
24
  Banner?: typeof Banner;
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-types.d.ts","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown-types.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAI/C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC7B,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAChC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC9B,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC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AC,eAAe,CAAC,CAAC;IAC9B,GAAG,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAC3D,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACvC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,MAAM,CAAC;CACxB,CAAC;AAGF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;KAAE,CAAC,CAAC;CACjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAiB,MAAM,kBAAkB,CAAC;AA6DhE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAO5C,CAAC"}
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/custom-components/markdown/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAiB,MAAM,kBAAkB,CAAC;AAqFhE,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAO5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ToolCall, ExecutionResult } from '../../../providers/ai-assistant/ai-assistant-types';
2
+ /**
3
+ * Returns an `execute` function that runs Gantt AI tool calls
4
+ * against the GanttContext and TableProvider state.
5
+ */
6
+ export declare function useGanttExecutor<TData>(): {
7
+ execute: (toolCalls: ToolCall[]) => ExecutionResult[];
8
+ };
9
+ //# sourceMappingURL=gantt-ai-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-ai-executor.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-executor.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAI/F;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK;yBAKtB,QAAQ,EAAE,KAAG,eAAe,EAAE;EA2C7C"}
@@ -0,0 +1,12 @@
1
+ import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
2
+ export interface GanttAIPanelProps {
3
+ aiProvider: AIProvider;
4
+ requiresConfirmation?: boolean;
5
+ quickActions?: AIQuickAction[];
6
+ }
7
+ /**
8
+ * AI chat panel for the Gantt component. Exposes tools to change the timeline
9
+ * view, navigate to a date, and sort the left data-grid.
10
+ */
11
+ export declare function GanttAIPanel<TData>({ aiProvider, requiresConfirmation, quickActions }: GanttAIPanelProps): import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=gantt-ai-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-ai-panel.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAkB,MAAM,oDAAoD,CAAC;AAQ/G,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,EAAE,iBAAiB,2CA4BxG"}
@@ -0,0 +1,7 @@
1
+ import { DataStructureColumn } from '../../data-structure/data-structure';
2
+ import { ColumnSchema } from '../../../providers/ai-assistant/ai-assistant-types';
3
+ /**
4
+ * Builds the AI column schema from the Gantt's left-grid columns and data.
5
+ */
6
+ export declare function buildGanttSchema<TData>(columns: DataStructureColumn<TData>[], data: TData[]): ColumnSchema[];
7
+ //# sourceMappingURL=gantt-ai-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-ai-schema.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAwBlF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAkB5G"}
@@ -0,0 +1,3 @@
1
+ import { ToolDefinition } from '../../../providers/ai-assistant/ai-assistant-types';
2
+ export declare const ganttToolDefinitions: ToolDefinition[];
3
+ //# sourceMappingURL=gantt-ai-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-ai-tools.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/ai-assistant/gantt-ai-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAEpF,eAAO,MAAM,oBAAoB,EAAE,cAAc,EA2ChD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { DataStructureColumn } from '../../data-structure/data-structure';
2
+ import { TableRow } from '../../table-grid/table-grid-types';
3
+ import { GanttView } from '../gantt-types';
4
+ export interface DependencyArrowsProps<TData> {
5
+ readonly rows: TableRow<TData>[];
6
+ readonly rowByGanttId: Map<string, {
7
+ row: TableRow<TData>;
8
+ index: number;
9
+ }>;
10
+ readonly allColumns: DataStructureColumn<TData>[];
11
+ readonly startColumnId: string | keyof TData;
12
+ readonly endColumnId: string | keyof TData;
13
+ readonly dependencyColumnId?: string | keyof TData;
14
+ readonly idColumnId?: string | keyof TData;
15
+ readonly timelineOrigin: Date;
16
+ readonly view: GanttView;
17
+ readonly totalWidth: number;
18
+ readonly totalHeight: number;
19
+ }
20
+ export declare function DependencyArrows<TData>({ rows, rowByGanttId, allColumns, startColumnId, endColumnId, dependencyColumnId, timelineOrigin, view, totalWidth, totalHeight, }: DependencyArrowsProps<TData>): import("react/jsx-runtime").JSX.Element | null;
21
+ //# sourceMappingURL=gantt-arrows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-arrows.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/arrows/gantt-arrows.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAgC,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAIrF,MAAM,WAAW,qBAAqB,CAAC,KAAK;IAC1C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC5E,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;IAClD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC3C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IACnD,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAC3C,QAAQ,CAAC,cAAc,EAAE,IAAI,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAcD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EACtC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,IAAI,EACJ,UAAU,EACV,WAAW,GACZ,EAAE,qBAAqB,CAAC,KAAK,CAAC,kDA0D9B"}
@@ -0,0 +1,13 @@
1
+ import { GanttView } from './gantt-types';
2
+ export interface GanttContextValue {
3
+ view: GanttView;
4
+ setView: (view: GanttView) => void;
5
+ currentDate: Date;
6
+ setCurrentDate: (date: Date) => void;
7
+ }
8
+ export declare const GanttContext_: import('react').Context<GanttContextValue | null>;
9
+ /**
10
+ * Consumes the GanttContext. Must be used inside a GanttContextProvider.
11
+ */
12
+ export declare function useGanttContext(): GanttContextValue;
13
+ //# sourceMappingURL=gantt-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-context.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-context.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACtC;AAID,eAAO,MAAM,aAAa,mDAAe,CAAC;AAE1C;;GAEG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAInD"}
@@ -0,0 +1,101 @@
1
+ import { DataStructureColumn, DataStructureComponent } from '../data-structure/data-structure';
2
+ import { AIProvider, AIQuickAction } from '../../providers/ai-assistant/ai-assistant-types';
3
+ export type GanttView = "year" | "month" | "week" | "day";
4
+ /**
5
+ * Relation types:
6
+ * - FS (Finish-to-Start): arrow from end of predecessor to start of successor
7
+ * - SS (Start-to-Start): arrow from start of predecessor to start of successor
8
+ * - FF (Finish-to-Finish): arrow from end of predecessor to end of successor
9
+ * - SF (Start-to-Finish): arrow from start of predecessor to end of successor
10
+ */
11
+ export type GanttRelationType = "FS" | "SS" | "FF" | "SF";
12
+ /**
13
+ * A single dependency descriptor.
14
+ * The `dependencyColumnId` field on each row can resolve to:
15
+ * - `string` — single dependency ID (defaults to "FS")
16
+ * - `string[]` — multiple dependency IDs (all default to "FS")
17
+ * - `GanttDependency` — single dependency with explicit type
18
+ * - `GanttDependency[]` — multiple dependencies with explicit types
19
+ */
20
+ export interface GanttDependency {
21
+ id: string;
22
+ type?: GanttRelationType;
23
+ }
24
+ export interface GanttProps<TData> extends DataStructureComponent<TData> {
25
+ /** Column id or accessorKey for the start date (must resolve to Date, ISO string, or timestamp) */
26
+ startColumnId: string | keyof TData;
27
+ /** Column id or accessorKey for the end date (must resolve to Date, ISO string, or timestamp) */
28
+ endColumnId: string | keyof TData;
29
+ /** Column id or accessorKey for the event label */
30
+ eventColumnId: string | keyof TData;
31
+ /** Column id or accessorKey that uniquely identifies each row */
32
+ idColumnId?: string | keyof TData;
33
+ /**
34
+ * Column id or accessorKey for the dependency field.
35
+ * Resolves to string | string[] | GanttDependency | GanttDependency[]
36
+ */
37
+ dependencyColumnId?: string | keyof TData;
38
+ /**
39
+ * IDs of columns to display in the left data-grid panel.
40
+ * If not provided, all columns (excluding dependencyColumnId) are shown.
41
+ */
42
+ gridColumnIds?: string[];
43
+ /** Time granularity for the timeline header */
44
+ view?: GanttView;
45
+ /** Reference date used to determine the visible range. Defaults to `new Date()` */
46
+ initialDate?: Date;
47
+ /** Optional function to override the background color of an event bar */
48
+ eventColorFn?: (row: TData) => string | undefined;
49
+ /** Enable sorting on the left grid panel columns */
50
+ enableSorting?: boolean;
51
+ /** Enable the AI assistant sidebar panel */
52
+ enableAIAssistant?: boolean;
53
+ /** AI provider instance used by the AI assistant panel */
54
+ aiProvider?: AIProvider;
55
+ /** Pre-configured quick-action buttons shown in the AI chat */
56
+ aiQuickActions?: AIQuickAction[];
57
+ /** When true, AI tool calls require explicit user confirmation before being applied */
58
+ requiresConfirmation?: boolean;
59
+ /**
60
+ * Called when the user manually drags or resizes an event bar.
61
+ * Receives the original row data and the new start/end Dates.
62
+ */
63
+ onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void;
64
+ }
65
+ export interface GanttLayoutProps<TData> {
66
+ startColumnId: string | keyof TData;
67
+ endColumnId: string | keyof TData;
68
+ eventColumnId: string | keyof TData;
69
+ idColumnId?: string | keyof TData;
70
+ dependencyColumnId?: string | keyof TData;
71
+ view: GanttView;
72
+ initialDate?: Date;
73
+ eventColorFn?: (row: TData) => string | undefined;
74
+ /** Full column list (includes non-grid columns) for date/label extraction */
75
+ allColumns: DataStructureColumn<TData>[];
76
+ /** Tree accessor — when provided, parent bars are rolled up from all descendants */
77
+ getSubRows?: (row: TData, index: number) => TData[] | undefined;
78
+ /** Called when the user manually drags or resizes an event bar */
79
+ onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void;
80
+ }
81
+ export type GanttDragMode = "move" | "resize-start" | "resize-end";
82
+ export interface GanttDragState<TData> {
83
+ row: {
84
+ id: string;
85
+ data: TData;
86
+ index: number;
87
+ };
88
+ mode: GanttDragMode;
89
+ startX: number;
90
+ origStart: Date;
91
+ origEnd: Date;
92
+ view: GanttView;
93
+ }
94
+ export declare const ROW_HEIGHT = 40;
95
+ export declare const GRID_PANEL_WIDTH = "40vw";
96
+ export declare const LOAD_THRESHOLD = 8;
97
+ export declare const LOAD_BATCH = 20;
98
+ export declare const ARROW_GAP = 10;
99
+ export declare const GRID_HEIGHT = 400;
100
+ export declare const GRID_TABLE_HEIGHT: number;
101
+ //# sourceMappingURL=gantt-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-types.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAE5F,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,UAAU,CAAC,KAAK,CAAE,SAAQ,sBAAsB,CAAC,KAAK,CAAC;IACtE,mGAAmG;IACnG,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAEpC,iGAAiG;IACjG,WAAW,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAElC,mDAAmD;IACnD,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAEpC,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,CAAC;IAE1C;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB,mFAAmF;IACnF,WAAW,CAAC,EAAE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,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;CACpE;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,cAAc,GAAG,YAAY,CAAC;AAEnE,MAAM,WAAW,cAAc,CAAC,KAAK;IACnC,GAAG,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB;AAID,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,eAAO,MAAM,iBAAiB,QAA2B,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { DataStructureColumn } from '../data-structure/data-structure';
2
+ import { GanttDependency, GanttView } from './gantt-types';
3
+ export declare function getColValue<TData>(row: TData, columnId: string | keyof TData, columns?: DataStructureColumn<TData>[]): unknown;
4
+ export declare function toDate(value: unknown): Date | null;
5
+ export declare function normalizeDeps(raw: unknown): GanttDependency[];
6
+ export interface TimelineCell {
7
+ label: string;
8
+ date: Date;
9
+ isToday?: boolean;
10
+ }
11
+ export interface MajorCell {
12
+ label: string;
13
+ /** Number of minor units this cell spans. */
14
+ unitCount: number;
15
+ }
16
+ /**
17
+ * Pixel width of one minor timeline unit.
18
+ *
19
+ * | view | unit | width |
20
+ * |-------|---------|-------|
21
+ * | day | 4 hours | 40 px |
22
+ * | week | 1 day | 30 px |
23
+ * | month | 1 day | 20 px |
24
+ * | year | 1 month | 60 px |
25
+ */
26
+ export declare function unitWidth(view: GanttView): number;
27
+ /** Milliseconds in one minor unit. */
28
+ export declare function msPerUnit(view: GanttView): number;
29
+ /** Number of minor units to load on each side of origin at startup. */
30
+ export declare function initialVisibleUnits(view: GanttView): number;
31
+ /**
32
+ * Generate minor header cells (lower row) starting from `origin`.
33
+ */
34
+ export declare function generateTimelineCells(view: GanttView, origin: Date, count: number): TimelineCell[];
35
+ /**
36
+ * Generate major header cells (upper row) by grouping minor cells.
37
+ *
38
+ * | view | major group | label example |
39
+ * |-------|----------------|------------------------|
40
+ * | day | by day | "Mon 4 May" |
41
+ * | week | by ISO week | "W18 · Apr 28 – May 4" |
42
+ * | month | by month | "May 2026" |
43
+ * | year | by year | "2026" |
44
+ */
45
+ export declare function generateMajorCells(view: GanttView, cells: TimelineCell[]): MajorCell[];
46
+ /**
47
+ * Convert a date to its horizontal pixel offset relative to the timeline origin.
48
+ */
49
+ export declare function dateToX(date: Date, origin: Date, view: GanttView): number;
50
+ /**
51
+ * Recursively computes the effective [start, end] date range for a row.
52
+ * - Leaf rows: returns the row's own start/end.
53
+ * - Parent rows: min(all-descendant starts) → max(all-descendant ends).
54
+ * This ensures parent bars always span the full extent of their subtree,
55
+ * regardless of whether children are expanded or collapsed.
56
+ */
57
+ export declare function computeEffectiveDates<TData>(rowData: TData, getSubRows: (row: TData, index: number) => TData[] | undefined, allColumns: DataStructureColumn<TData>[], startColumnId: string | keyof TData, endColumnId: string | keyof TData): {
58
+ start: Date;
59
+ end: Date;
60
+ } | null;
61
+ //# sourceMappingURL=gantt-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-utils.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI3D,wBAAgB,WAAW,CAAC,KAAK,EAC/B,GAA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K,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,EAAE,GAAG,SAAS,EAC9D,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,EACxC,aAAa,EAAE,MAAM,GAAG,MAAM,KAAK,EACnC,WAAW,EAAE,MAAM,GAAG,MAAM,KAAK,GAChC;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAsBnC"}
@@ -0,0 +1,4 @@
1
+ import { GanttProps } from './gantt-types';
2
+ declare function Gantt<TData>(props: GanttProps<TData>): import("react/jsx-runtime").JSX.Element;
3
+ export default Gantt;
4
+ //# sourceMappingURL=gantt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt.d.ts","sourceRoot":"","sources":["../../../src/data-components/gantt/gantt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AA6NhG,iBAAS,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,2CA+F7C;AAED,eAAe,KAAK,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { GanttDragState } from '../gantt-types';
2
+ /**
3
+ * Manages bar drag-to-move and edge resize interactions.
4
+ * Fires `onEventChange` on mouseup with the updated start/end dates.
5
+ * Attaches document-level listeners — safe to mount once per Gantt instance.
6
+ */
7
+ export declare function useGanttDrag<TData>(onEventChange?: (row: TData, newStart: Date, newEnd: Date) => void): {
8
+ dragRef: import('react').RefObject<GanttDragState<TData> | null>;
9
+ dragOverride: {
10
+ rowId: string;
11
+ start: Date;
12
+ end: Date;
13
+ } | null;
14
+ };
15
+ //# sourceMappingURL=useGanttDrag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGanttDrag.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/hooks/useGanttDrag.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI;;;eAE1C,MAAM;eAAS,IAAI;aAAO,IAAI;;EA2CzF"}
@@ -0,0 +1,18 @@
1
+ import { GanttView } from '../gantt-types';
2
+ /**
3
+ * Manages timeline range state, scroll synchronization between grid and timeline,
4
+ * and infinite horizontal scroll expansion on both edges.
5
+ */
6
+ export declare function useGanttTimeline(view: GanttView, initialDate?: Date): {
7
+ gridBodyRef: import('react').RefObject<HTMLDivElement | null>;
8
+ timelineBodyRef: import('react').RefObject<HTMLDivElement | null>;
9
+ headerInnerRef: import('react').RefObject<HTMLDivElement | null>;
10
+ cells: import('../gantt-utils').TimelineCell[];
11
+ majorCells: import('../gantt-utils').MajorCell[];
12
+ totalWidth: number;
13
+ timelineOrigin: Date;
14
+ todayX: number;
15
+ syncScroll: (source: "grid" | "timeline") => void;
16
+ handleTimelineScroll: (e: React.UIEvent<HTMLDivElement>) => void;
17
+ };
18
+ //# sourceMappingURL=useGanttTimeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGanttTimeline.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/hooks/useGanttTimeline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA8B,MAAM,gBAAgB,CAAC;AAGvE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,IAAI;;;;;;;;;yBA+CtC,MAAM,GAAG,UAAU;8BASd,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;EAiC/D"}
@@ -0,0 +1,10 @@
1
+ export type GanttActiveTool = "ai" | null;
2
+ export interface GanttSidebarProps {
3
+ /** Show the AI assistant button */
4
+ enableAI?: boolean;
5
+ /** Currently open tool panel */
6
+ activeTool: GanttActiveTool;
7
+ /** Called when the AI assistant button is clicked */
8
+ onAIClick?: () => void;
9
+ }
10
+ //# sourceMappingURL=gantt-sidebar-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-sidebar-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/sidebar/gantt-sidebar-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,eAAe,CAAC;IAC5B,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB"}
@@ -0,0 +1,3 @@
1
+ import { GanttSidebarProps } from './gantt-sidebar-types';
2
+ export declare function GanttSidebar({ enableAI, onAIClick }: GanttSidebarProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=gantt-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-sidebar.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/sidebar/gantt-sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAMtE"}
@@ -0,0 +1,13 @@
1
+ import { GanttDependency } from '../gantt-types';
2
+ type Status = "active" | "done" | "pending";
3
+ interface Task {
4
+ id: string;
5
+ name: string;
6
+ start: Date;
7
+ end: Date;
8
+ status: Status;
9
+ deps?: (string | GanttDependency)[] | null;
10
+ }
11
+ export declare function generateRandomTasks(count?: number): Task[];
12
+ export {};
13
+ //# sourceMappingURL=gantt-stories-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gantt-stories-utils.d.ts","sourceRoot":"","sources":["../../../../src/data-components/gantt/stories/gantt-stories-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,KAAK,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C,UAAU,IAAI;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,eAAe,CAAC,EAAE,GAAG,IAAI,CAAC;CAC5C;AAUD,wBAAgB,mBAAmB,CAAC,KAAK,SAAK,GAAG,IAAI,EAAE,CAoDtD"}
@@ -1,5 +1,9 @@
1
1
  import { ToolCall, ExecutionResult } from './ai-assistant-types';
2
- export declare function useToolExecutor<TData>(): {
2
+ import { PivotConfig } from '../pivot/pivot-types';
3
+ export declare function useToolExecutor<TData>(options?: {
4
+ onPivotConfigChange?: (config: PivotConfig) => void;
5
+ onPivotToggle?: (active: boolean) => void;
6
+ }): {
3
7
  execute: (toolCalls: ToolCall[]) => ExecutionResult[];
4
8
  };
5
9
  //# sourceMappingURL=ai-assistant-executor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-executor.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-executor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,eAAe,EAYhB,MAAM,sBAAsB,CAAC;AA+E9B,wBAAgB,eAAe,CAAC,KAAK;yBAiBrB,QAAQ,EAAE,KAAG,eAAe,EAAE;EAqM7C"}
1
+ {"version":3,"file":"ai-assistant-executor.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-executor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EACR,eAAe,EAoBhB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AA4EnD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE;IAC/C,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C;yBAwBe,QAAQ,EAAE,KAAG,eAAe,EAAE;EAsS7C"}
@@ -1,9 +1,14 @@
1
1
  import { AIProvider, AIQuickAction } from '../../../providers/ai-assistant/ai-assistant-types';
2
+ import { PivotConfig } from '../pivot/pivot-types';
2
3
  export interface AIAssistantPanelProps {
3
4
  aiProvider: AIProvider;
4
5
  /** When true, tool calls require user confirmation before being executed */
5
6
  requiresConfirmation?: boolean;
6
7
  /** Pre-configured action buttons shown in the chat for one-click AI commands */
7
8
  quickActions?: AIQuickAction[];
9
+ /** Called when the AI assistant configures or updates the pivot configuration */
10
+ onPivotConfigChange?: (config: PivotConfig) => void;
11
+ /** Called when the AI assistant toggles pivot mode on or off */
12
+ onPivotToggle?: (active: boolean) => void;
8
13
  }
9
14
  //# sourceMappingURL=ai-assistant-panel-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-panel-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAE/F,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,4EAA4E;IAC5E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gFAAgF;IAChF,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC"}
1
+ {"version":3,"file":"ai-assistant-panel-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,4EAA4E;IAC5E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gFAAgF;IAChF,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,gEAAgE;IAChE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C"}
@@ -1,3 +1,3 @@
1
1
  import { AIAssistantPanelProps } from './ai-assistant-panel-types';
2
- export declare function AIAssistantPanel<TData>({ aiProvider, requiresConfirmation, quickActions }: AIAssistantPanelProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AIAssistantPanel<TData>({ aiProvider, requiresConfirmation, quickActions, onPivotConfigChange, onPivotToggle }: AIAssistantPanelProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=ai-assistant-panel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-panel.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,EAAE,qBAAqB,2CAuChH"}
1
+ {"version":3,"file":"ai-assistant-panel.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-panel.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAQnE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,oBAAoB,EAAE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,EAAE,qBAAqB,2CAoDpJ"}
@@ -1,4 +1,6 @@
1
1
  import { ToolDefinition } from './ai-assistant-types';
2
+ /** Tool names that require full row data (tableContext) to function correctly. */
3
+ export declare const ROW_DATA_TOOL_NAMES: readonly ["select_rows", "edit_cells", "fill_column_from_column"];
2
4
  export declare const toolDefinitions: ToolDefinition[];
3
5
  export declare function getToolDefinition(name: string): ToolDefinition | undefined;
4
6
  //# sourceMappingURL=ai-assistant-tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-tools.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,eAAO,MAAM,eAAe,EAAE,cAAc,EAmK3C,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE1E"}
1
+ {"version":3,"file":"ai-assistant-tools.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,mEAAoE,CAAC;AAErG,eAAO,MAAM,eAAe,EAAE,cAAc,EA2R3C,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE1E"}
@@ -55,4 +55,40 @@ export interface FillColumnFromColumnArguments {
55
55
  sourceColumn: string;
56
56
  edits: FillColumnFromColumnEdit[];
57
57
  }
58
+ export type ExpandLevelArguments = {
59
+ level: number;
60
+ };
61
+ export type CollapseLevelArguments = {
62
+ level: number;
63
+ };
64
+ export type TogglePivotArguments = {
65
+ active: boolean;
66
+ };
67
+ export interface PivotValueFieldInput {
68
+ field: string;
69
+ aggregation: "sum" | "count" | "avg" | "min" | "max";
70
+ label?: string;
71
+ }
72
+ export interface ConfigurePivotArguments {
73
+ rowFields: string[];
74
+ columnFields: string[];
75
+ valueFields: PivotValueFieldInput[];
76
+ }
77
+ /** Raw condition node as produced by the LLM (column may be a label, resolved later). */
78
+ export interface RawFilterConditionNode {
79
+ type: "condition";
80
+ column: string;
81
+ operator: string;
82
+ value: unknown;
83
+ }
84
+ /** Raw group node as produced by the LLM (recursive). */
85
+ export interface RawFilterGroupNode {
86
+ type: "group";
87
+ logic: "and" | "or";
88
+ filters: RawFilterNode[];
89
+ }
90
+ export type RawFilterNode = RawFilterConditionNode | RawFilterGroupNode;
91
+ export interface FilterArguments {
92
+ filterGroup: RawFilterGroupNode;
93
+ }
58
94
  //# sourceMappingURL=ai-assistant-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-types.ts"],"names":[],"mappings":"AACA,YAAY,EACV,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,oDAAoD,CAAC;AAM5D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,CAAC;AAErG,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACnC"}
1
+ {"version":3,"file":"ai-assistant-types.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-types.ts"],"names":[],"mappings":"AACA,YAAY,EACV,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,U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AAExE,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,kBAAkB,CAAC;CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-assistant-validator.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAEL,gBAAgB,EAGjB,MAAM,wDAAwD,CAAC;AAEhE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAiJjC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAE7F"}
1
+ {"version":3,"file":"ai-assistant-validator.d.ts","sourceRoot":"","sources":["../../../../src/data-components/table-grid/ai-assistant/ai-assistant-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAA6D,MAAM,sBAAsB,CAAC;AAGzH,OAAO,EAEL,gBAAgB,EAGjB,MAAM,wDAAwD,CAAC;AAEhE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAyOjC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAE7F"}
@@ -0,0 +1,15 @@
1
+ import { ColumnDef, SortingState, TableRow } from '../table-grid-types';
2
+ /**
3
+ * Recursively groups data and sorts both group blocks and leaf records.
4
+ *
5
+ * For each depth level the same `sorting` state is applied:
6
+ * - **Group blocks** are ordered by the AGGREGATE value of the sort column
7
+ * (SUM for numeric columns, first item's value for strings).
8
+ * This makes groups with the largest/smallest total appear first/last.
9
+ * - **Leaf records** within each group are sorted individually via `applySorting`.
10
+ *
11
+ * Because the sort is applied recursively, every sub-group level is also
12
+ * independently sorted among its siblings.
13
+ */
14
+ export declare function groupData<TData>(data: TData[], grouping: string[], columns: ColumnDef<TData>[], expandedRows: Set<string>, sorting?: SortingState, getRowId?: (row: TData, index: number) => string, depth?: number, parentId?: string): TableRow<TData>[];
15
+ //# sourceMappingURL=grouping.d.ts.map