@svgrid/grid 2.6.16 → 2.6.18

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 (212) hide show
  1. package/dist/DockNodeView.svelte.d.ts +1 -1
  2. package/dist/DockPopoutHost.svelte.d.ts +1 -1
  3. package/dist/FlexRender.svelte.d.ts +1 -1
  4. package/dist/GridFooter.svelte +6 -3
  5. package/dist/GridFooter.svelte.d.ts +3 -3
  6. package/dist/GridMenus.svelte.d.ts +3 -3
  7. package/dist/SvAccordion.svelte.d.ts +3 -3
  8. package/dist/SvAutoComplete.svelte.d.ts +2 -2
  9. package/dist/SvBreadcrumb.svelte.d.ts +2 -2
  10. package/dist/SvButtonGroup.svelte.d.ts +3 -3
  11. package/dist/SvCalendar.svelte.d.ts +7 -7
  12. package/dist/SvCarousel.svelte.d.ts +1 -1
  13. package/dist/SvCheckBox.svelte.d.ts +1 -1
  14. package/dist/SvColorInput.svelte.d.ts +1 -1
  15. package/dist/SvComboBox.svelte.d.ts +2 -2
  16. package/dist/SvCommand.svelte.d.ts +2 -2
  17. package/dist/SvCountryInput.svelte.d.ts +1 -1
  18. package/dist/SvDateRangeInput.svelte.d.ts +3 -3
  19. package/dist/SvDateTimePicker.svelte.d.ts +4 -4
  20. package/dist/SvDockLayout.svelte.d.ts +2 -2
  21. package/dist/SvDockManager.svelte.d.ts +2 -2
  22. package/dist/SvDropDownList.svelte.d.ts +2 -2
  23. package/dist/SvDurationInput.svelte.d.ts +1 -1
  24. package/dist/SvField.svelte.d.ts +1 -1
  25. package/dist/SvFileUpload.svelte.d.ts +3 -3
  26. package/dist/SvForm.svelte.d.ts +4 -4
  27. package/dist/SvGauge.svelte.d.ts +1 -1
  28. package/dist/SvGrid.controller.svelte.d.ts +28 -28
  29. package/dist/SvGrid.controller.svelte.js +117 -45
  30. package/dist/SvGrid.css +42 -2
  31. package/dist/SvGrid.helpers.d.ts +2 -2
  32. package/dist/SvGrid.svelte.d.ts +3 -3
  33. package/dist/SvGrid.types.d.ts +28 -7
  34. package/dist/SvGridCellEditor.svelte.d.ts +2 -2
  35. package/dist/SvGridChart.svelte.d.ts +1 -1
  36. package/dist/SvGridChartPanel.svelte.d.ts +2 -2
  37. package/dist/SvGridChartView.svelte.d.ts +1 -1
  38. package/dist/SvGridDropdown.svelte.d.ts +1 -1
  39. package/dist/SvGridSelect.svelte.d.ts +4 -4
  40. package/dist/SvGroupCell.svelte.d.ts +1 -1
  41. package/dist/SvHoverCard.svelte.d.ts +1 -1
  42. package/dist/SvListBox.svelte.d.ts +2 -2
  43. package/dist/SvMaskedInput.svelte.d.ts +1 -1
  44. package/dist/SvMenu.svelte.d.ts +1 -1
  45. package/dist/SvMenuList.svelte.d.ts +3 -3
  46. package/dist/SvMenubar.svelte.d.ts +3 -3
  47. package/dist/SvMultiSelect.svelte.d.ts +3 -3
  48. package/dist/SvNavPane.svelte.d.ts +1 -1
  49. package/dist/SvNumberInput.svelte.d.ts +1 -1
  50. package/dist/SvOtpInput.svelte.d.ts +1 -1
  51. package/dist/SvPasswordInput.svelte.d.ts +1 -1
  52. package/dist/SvPhoneInput.svelte.d.ts +2 -2
  53. package/dist/SvPopconfirm.svelte.d.ts +1 -1
  54. package/dist/SvPopover.svelte.d.ts +1 -1
  55. package/dist/SvRadioGroup.svelte.d.ts +3 -3
  56. package/dist/SvRating.svelte.d.ts +1 -1
  57. package/dist/SvSegmented.svelte.d.ts +3 -3
  58. package/dist/SvSlider.svelte.d.ts +1 -1
  59. package/dist/SvSparkline.svelte.d.ts +1 -1
  60. package/dist/SvSplitter.svelte.d.ts +3 -3
  61. package/dist/SvStepper.svelte.d.ts +2 -2
  62. package/dist/SvSwitchButton.svelte.d.ts +1 -1
  63. package/dist/SvTabs.svelte.d.ts +3 -3
  64. package/dist/SvTagsInput.svelte.d.ts +1 -1
  65. package/dist/SvTextArea.svelte.d.ts +1 -1
  66. package/dist/SvTextInput.svelte.d.ts +1 -1
  67. package/dist/SvTimePicker.svelte.d.ts +3 -3
  68. package/dist/SvTimeline.svelte.d.ts +2 -2
  69. package/dist/SvToggleButton.svelte.d.ts +1 -1
  70. package/dist/SvTooltip.svelte.d.ts +1 -1
  71. package/dist/SvTour.svelte.d.ts +3 -3
  72. package/dist/SvTree.svelte.d.ts +3 -3
  73. package/dist/SvTreeSelect.svelte.d.ts +3 -3
  74. package/dist/advanced-filter.svelte.d.ts +1 -1
  75. package/dist/ai.d.ts +1 -1
  76. package/dist/ai.js +1 -1
  77. package/dist/build-api.d.ts +2 -2
  78. package/dist/build-api.js +8 -8
  79. package/dist/builtin-editors.js +1 -1
  80. package/dist/cdn/{GridMenus-CPdy5dxw.js → GridMenus-B0F9iBrG.js} +1 -1
  81. package/dist/cdn/{GridMenus-BLajq_RP.js → GridMenus-IHK_l7m6.js} +1 -1
  82. package/dist/cdn/{src-CKpl94Cx.js → src-B1TdiyS8.js} +272 -270
  83. package/dist/cdn/{src-ogpR-lHu.js → src-Cd0tearp.js} +272 -270
  84. package/dist/cdn/svgrid.js +2 -2
  85. package/dist/cdn/svgrid.svelte-external.js +2 -2
  86. package/dist/cell-render.d.ts +3 -3
  87. package/dist/cell-render.js +6 -6
  88. package/dist/cell-values.d.ts +1 -1
  89. package/dist/cell-values.js +1 -1
  90. package/dist/chart-export.d.ts +1 -1
  91. package/dist/clipboard.d.ts +2 -2
  92. package/dist/clipboard.js +5 -5
  93. package/dist/column-groups.js +1 -1
  94. package/dist/columns.d.ts +2 -2
  95. package/dist/columns.js +1 -1
  96. package/dist/core.d.ts +1 -1
  97. package/dist/core.js +1 -1
  98. package/dist/createAutocomplete.svelte.d.ts +1 -1
  99. package/dist/createAutocomplete.svelte.js +2 -2
  100. package/dist/createButtonGroup.svelte.js +1 -1
  101. package/dist/createCalendar.svelte.d.ts +4 -4
  102. package/dist/createCalendar.svelte.js +4 -4
  103. package/dist/createCarousel.svelte.d.ts +1 -1
  104. package/dist/createCheckbox.svelte.js +1 -1
  105. package/dist/createColorInput.svelte.js +1 -1
  106. package/dist/createCombobox.svelte.d.ts +1 -1
  107. package/dist/createCombobox.svelte.js +2 -2
  108. package/dist/createCommand.svelte.d.ts +1 -1
  109. package/dist/createCommand.svelte.js +2 -2
  110. package/dist/createCountryInput.svelte.d.ts +1 -1
  111. package/dist/createCountryInput.svelte.js +2 -2
  112. package/dist/createDateTimePicker.svelte.d.ts +1 -1
  113. package/dist/createDateTimePicker.svelte.js +3 -3
  114. package/dist/createDropdownList.svelte.d.ts +1 -1
  115. package/dist/createDropdownList.svelte.js +2 -2
  116. package/dist/createFileUpload.svelte.js +1 -1
  117. package/dist/createForm.svelte.d.ts +1 -1
  118. package/dist/createForm.svelte.js +2 -2
  119. package/dist/createGrid.svelte.d.ts +1 -1
  120. package/dist/createGrid.svelte.js +1 -1
  121. package/dist/createGridState.svelte.d.ts +1 -1
  122. package/dist/createListbox.svelte.d.ts +1 -1
  123. package/dist/createListbox.svelte.js +2 -2
  124. package/dist/createMaskedInput.svelte.js +2 -2
  125. package/dist/createMenu.svelte.d.ts +2 -2
  126. package/dist/createMenu.svelte.js +2 -2
  127. package/dist/createNumberInput.svelte.js +1 -1
  128. package/dist/createOverlay.svelte.js +3 -3
  129. package/dist/createPagination.d.ts +1 -1
  130. package/dist/createPagination.js +1 -1
  131. package/dist/createPasswordInput.svelte.js +1 -1
  132. package/dist/createPhoneInput.svelte.js +3 -3
  133. package/dist/createPopoverSelect.svelte.d.ts +1 -1
  134. package/dist/createPopoverSelect.svelte.js +3 -3
  135. package/dist/createRadioGroup.svelte.js +1 -1
  136. package/dist/createRating.svelte.js +1 -1
  137. package/dist/createSlider.svelte.js +1 -1
  138. package/dist/createSwitch.svelte.js +1 -1
  139. package/dist/createTabs.svelte.d.ts +1 -1
  140. package/dist/createTagsInput.svelte.js +1 -1
  141. package/dist/createToggle.svelte.js +1 -1
  142. package/dist/createTooltip.svelte.js +1 -1
  143. package/dist/createTree.svelte.d.ts +1 -1
  144. package/dist/datetime/date-restrict.d.ts +1 -1
  145. package/dist/datetime/date-restrict.js +1 -1
  146. package/dist/datetime/date-selection.js +1 -1
  147. package/dist/dock-context.d.ts +1 -1
  148. package/dist/dock-manager-model.d.ts +1 -1
  149. package/dist/dock-manager-model.js +1 -1
  150. package/dist/dock-popout.d.ts +1 -1
  151. package/dist/dock-popout.js +1 -1
  152. package/dist/editing.d.ts +2 -2
  153. package/dist/editing.js +5 -5
  154. package/dist/editor-registry.d.ts +1 -1
  155. package/dist/editors/cell-editors.js +1 -1
  156. package/dist/export-format.d.ts +2 -2
  157. package/dist/export-format.js +2 -2
  158. package/dist/export-provider.d.ts +1 -1
  159. package/dist/facet-buckets.d.ts +1 -1
  160. package/dist/facet-buckets.js +1 -1
  161. package/dist/features.d.ts +2 -2
  162. package/dist/features.js +2 -2
  163. package/dist/filter-operators.d.ts +2 -2
  164. package/dist/filter-operators.js +1 -1
  165. package/dist/form-field.d.ts +1 -1
  166. package/dist/grid-messages.js +1 -1
  167. package/dist/headless.d.ts +11 -4
  168. package/dist/headless.js +11 -4
  169. package/dist/index.d.ts +120 -120
  170. package/dist/index.js +111 -111
  171. package/dist/keyboard-handlers.d.ts +2 -2
  172. package/dist/keyboard-handlers.js +2 -2
  173. package/dist/keyboard.d.ts +1 -1
  174. package/dist/menus.d.ts +3 -3
  175. package/dist/menus.js +3 -3
  176. package/dist/named-views.d.ts +1 -1
  177. package/dist/pivot-view.svelte.d.ts +1 -1
  178. package/dist/recurrence.d.ts +1 -1
  179. package/dist/recurrence.js +1 -1
  180. package/dist/row-drag.js +1 -1
  181. package/dist/scheduler-ical.d.ts +1 -1
  182. package/dist/scheduler-model.d.ts +3 -3
  183. package/dist/scheduler-model.js +2 -2
  184. package/dist/scroll-sync.d.ts +2 -2
  185. package/dist/scroll-sync.js +1 -1
  186. package/dist/selection.d.ts +2 -2
  187. package/dist/selection.js +3 -3
  188. package/dist/server-data-source.d.ts +1 -1
  189. package/dist/server-group-model.d.ts +1 -1
  190. package/dist/static-functions.d.ts +1 -1
  191. package/dist/static-functions.js +1 -1
  192. package/dist/subscribe.d.ts +1 -1
  193. package/dist/summaries.d.ts +2 -2
  194. package/dist/summaries.js +3 -3
  195. package/dist/svgrid-wrapper.types.d.ts +5 -5
  196. package/dist/themes/index.d.ts +3 -1
  197. package/dist/themes/index.js +4 -2
  198. package/dist/toast-store.svelte.js +1 -1
  199. package/dist/tree-select.d.ts +1 -1
  200. package/dist/virtualization/column-virtualizer.d.ts +3 -3
  201. package/dist/virtualization/column-virtualizer.js +1 -1
  202. package/dist/virtualization/svelte-virtualizer.svelte.d.ts +3 -3
  203. package/dist/virtualization/svelte-virtualizer.svelte.js +1 -1
  204. package/dist/virtualization/virtualizer.d.ts +1 -1
  205. package/package.json +14 -2
  206. package/src/GridFooter.svelte +6 -3
  207. package/src/SvGrid.controller.svelte.ts +90 -14
  208. package/src/SvGrid.css +42 -2
  209. package/src/SvGrid.types.ts +21 -0
  210. package/src/headless.ts +7 -0
  211. package/src/svgrid.behavior.test.ts +208 -0
  212. package/src/themes/index.ts +4 -2
@@ -1,4 +1,4 @@
1
- export type { RadioOption as SegmentedOption } from './createRadioGroup.svelte';
1
+ export type { RadioOption as SegmentedOption } from './createRadioGroup.svelte.js';
2
2
  /**
3
3
  * SvSegmented - a segmented control: a compact row of mutually-exclusive
4
4
  * options in a shared track (the modern alternative to a small radio group or a
@@ -11,8 +11,8 @@ export type { RadioOption as SegmentedOption } from './createRadioGroup.svelte';
11
11
  * ```
12
12
  */
13
13
  import type { Snippet } from 'svelte';
14
- import { type RadioOption } from './createRadioGroup.svelte';
15
- import { type SvEditorProps } from './editor-contract';
14
+ import { type RadioOption } from './createRadioGroup.svelte.js';
15
+ import { type SvEditorProps } from './editor-contract.js';
16
16
  type SegOption = RadioOption & {
17
17
  icon?: Snippet;
18
18
  };
@@ -1,4 +1,4 @@
1
- import { type SvEditorProps } from './editor-contract';
1
+ import { type SvEditorProps } from './editor-contract.js';
2
2
  type Props = SvEditorProps & {
3
3
  value?: number | [number, number];
4
4
  onChange?: (value: any) => void;
@@ -7,7 +7,7 @@
7
7
  * <SvSparkline data={[3, 7, 4, 9, 6, 11, 8]} type="area" />
8
8
  * ```
9
9
  */
10
- import { type SparklineType } from './sparkline';
10
+ import { type SparklineType } from './sparkline.js';
11
11
  type Props = {
12
12
  data: ReadonlyArray<number>;
13
13
  type?: SparklineType;
@@ -1,4 +1,4 @@
1
- export type { SplitterOrientation } from './createSplitter.svelte';
1
+ export type { SplitterOrientation } from './createSplitter.svelte.js';
2
2
  /**
3
3
  * SvSplitter - two resizable panes with a draggable separator (WAI-ARIA
4
4
  * `separator`), pointer drag + keyboard resize. Parity: Smart `smart-splitter`.
@@ -9,8 +9,8 @@ export type { SplitterOrientation } from './createSplitter.svelte';
9
9
  * core; this component owns only the container measurement for pointer drags.
10
10
  */
11
11
  import type { Snippet } from 'svelte';
12
- import { type EditorDir } from './editor-contract';
13
- import { type SplitterOrientation } from './createSplitter.svelte';
12
+ import { type EditorDir } from './editor-contract.js';
13
+ import { type SplitterOrientation } from './createSplitter.svelte.js';
14
14
  type Props = {
15
15
  /** Size of the first pane as a fraction of the container (0..1). */
16
16
  fraction?: number;
@@ -1,4 +1,4 @@
1
- export type { StepItem } from './ui-app.types';
1
+ export type { StepItem } from './ui-app.types.js';
2
2
  /**
3
3
  * SvStepper - a progress stepper for wizards/multi-step forms. Shows completed
4
4
  * / active / upcoming steps horizontally or vertically. In `linear` mode only
@@ -9,7 +9,7 @@ export type { StepItem } from './ui-app.types';
9
9
  * <SvStepper steps={steps} current={i} onChange={(n) => (i = n)} />
10
10
  * ```
11
11
  */
12
- import type { StepItem } from './ui-app.types';
12
+ import type { StepItem } from './ui-app.types.js';
13
13
  type Props = {
14
14
  steps: ReadonlyArray<StepItem>;
15
15
  /** 0-based index of the active step. */
@@ -1,4 +1,4 @@
1
- import { type SvEditorProps } from './editor-contract';
1
+ import { type SvEditorProps } from './editor-contract.js';
2
2
  type Props = SvEditorProps & {
3
3
  checked?: boolean;
4
4
  onChange?: (checked: boolean) => void;
@@ -1,4 +1,4 @@
1
- export type { TabItem } from './createTabs.svelte';
1
+ export type { TabItem } from './createTabs.svelte.js';
2
2
  /**
3
3
  * SvTabs - a WAI-ARIA tabs widget with roving tabindex + arrow-key navigation,
4
4
  * four `tabPosition`s (top / bottom / left / right) and optional closable tabs.
@@ -9,8 +9,8 @@ export type { TabItem } from './createTabs.svelte';
9
9
  * `createTabs` core; this component is one styled renderer over it.
10
10
  */
11
11
  import type { Snippet } from 'svelte';
12
- import { type EditorDir } from './editor-contract';
13
- import { type TabItem } from './createTabs.svelte';
12
+ import { type EditorDir } from './editor-contract.js';
13
+ import { type TabItem } from './createTabs.svelte.js';
14
14
  type Props = {
15
15
  tabs: ReadonlyArray<TabItem>;
16
16
  value?: string;
@@ -1,4 +1,4 @@
1
- import { type SvEditorProps } from './editor-contract';
1
+ import { type SvEditorProps } from './editor-contract.js';
2
2
  /** User-facing strings (localizable via `messages`). */
3
3
  type TagsMessages = {
4
4
  add: string;
@@ -1,4 +1,4 @@
1
- import { type SvEditorProps } from './editor-contract';
1
+ import { type SvEditorProps } from './editor-contract.js';
2
2
  type Props = SvEditorProps & {
3
3
  value?: string;
4
4
  onChange?: (value: string) => void;
@@ -9,7 +9,7 @@
9
9
  * across the text-input family.
10
10
  */
11
11
  import type { Snippet } from 'svelte';
12
- import { type EditorAction, type SvEditorProps } from './editor-contract';
12
+ import { type EditorAction, type SvEditorProps } from './editor-contract.js';
13
13
  type Props = SvEditorProps & {
14
14
  value?: string;
15
15
  onChange?: (value: string) => void;
@@ -1,6 +1,6 @@
1
- export type { TimeValue } from './createTimePicker.svelte';
2
- import { type EditorDir, type EditorSize } from './editor-contract';
3
- import { type TimeValue, type TimeFormat, type TimeSelection } from './createTimePicker.svelte';
1
+ export type { TimeValue } from './createTimePicker.svelte.js';
2
+ import { type EditorDir, type EditorSize } from './editor-contract.js';
3
+ import { type TimeValue, type TimeFormat, type TimeSelection } from './createTimePicker.svelte.js';
4
4
  /** User-facing strings (localizable via `messages`). */
5
5
  type TimeMessages = {
6
6
  label: string;
@@ -1,4 +1,4 @@
1
- export type { TimelineItem } from './ui-app.types';
1
+ export type { TimelineItem } from './ui-app.types.js';
2
2
  /**
3
3
  * SvTimeline - a vertical activity / history feed: a connecting line with a
4
4
  * marker (colour + optional glyph) per entry, and a title / time / description.
@@ -13,7 +13,7 @@ export type { TimelineItem } from './ui-app.types';
13
13
  * ```
14
14
  */
15
15
  import type { Snippet } from 'svelte';
16
- import type { TimelineItem } from './ui-app.types';
16
+ import type { TimelineItem } from './ui-app.types.js';
17
17
  type Props = {
18
18
  items: ReadonlyArray<TimelineItem>;
19
19
  /** Render custom content per entry (receives the item). */
@@ -3,7 +3,7 @@
3
3
  * Parity: Smart `smart-toggle-button`. Controlled via `pressed` + `onChange`.
4
4
  */
5
5
  import type { Snippet } from 'svelte';
6
- import { type SvEditorProps } from './editor-contract';
6
+ import { type SvEditorProps } from './editor-contract.js';
7
7
  type Props = SvEditorProps & {
8
8
  pressed?: boolean;
9
9
  onChange?: (pressed: boolean) => void;
@@ -14,7 +14,7 @@
14
14
  * ```
15
15
  */
16
16
  import type { Snippet } from 'svelte';
17
- import { type Placement } from './positioning';
17
+ import { type Placement } from './positioning.js';
18
18
  type Props = {
19
19
  text: string;
20
20
  /** Preferred placement; flips when there is no room. Default `top`. */
@@ -1,4 +1,4 @@
1
- export type { TourStep } from './ui-app.types';
1
+ export type { TourStep } from './ui-app.types.js';
2
2
  /**
3
3
  * SvTour - a guided product tour / onboarding: it spotlights each step's target
4
4
  * element (a dimmed backdrop with a cut-out), anchors a popover with the step's
@@ -12,8 +12,8 @@ export type { TourStep } from './ui-app.types';
12
12
  * ]} />
13
13
  * ```
14
14
  */
15
- import type { TourStep } from './ui-app.types';
16
- import type { EditorDir } from './editor-contract';
15
+ import type { TourStep } from './ui-app.types.js';
16
+ import type { EditorDir } from './editor-contract.js';
17
17
  type Props = {
18
18
  steps: ReadonlyArray<TourStep>;
19
19
  open?: boolean;
@@ -1,6 +1,6 @@
1
- export type { TreeNode } from './createTree.svelte';
2
- import { type EditorDir } from './editor-contract';
3
- import { type TreeNode, type TreeDropPosition } from './createTree.svelte';
1
+ export type { TreeNode } from './createTree.svelte.js';
2
+ import { type EditorDir } from './editor-contract.js';
3
+ import { type TreeNode, type TreeDropPosition } from './createTree.svelte.js';
4
4
  type Props = {
5
5
  nodes: ReadonlyArray<TreeNode>;
6
6
  /** Selected node id (single-select highlight). */
@@ -1,4 +1,4 @@
1
- export type { TreeSelectNode } from './ui-app.types';
1
+ export type { TreeSelectNode } from './ui-app.types.js';
2
2
  /**
3
3
  * SvTreeSelect - a single-select dropdown that shows an indented, collapsible
4
4
  * tree in its panel (pick a node from a hierarchy). The open / position /
@@ -7,8 +7,8 @@ export type { TreeSelectNode } from './ui-app.types';
7
7
  * expand/collapse); this component adds the tree flattening + rendering. Covers
8
8
  * the "cascader / tree select" pattern without depending on SvTree.
9
9
  */
10
- import type { TreeSelectNode } from './ui-app.types';
11
- import { type SvEditorProps } from './editor-contract';
10
+ import type { TreeSelectNode } from './ui-app.types.js';
11
+ import { type SvEditorProps } from './editor-contract.js';
12
12
  type Props = Pick<SvEditorProps, 'disabled' | 'readonly' | 'label' | 'hint' | 'error' | 'required' | 'invalid' | 'size' | 'id' | 'name' | 'dir' | 'ariaLabel' | 'loading'> & {
13
13
  nodes: ReadonlyArray<TreeSelectNode>;
14
14
  value?: string | number | null;
@@ -5,7 +5,7 @@
5
5
  * Same shape as `pivot-view.svelte.ts`: a module-level `$state` holder with a
6
6
  * register / get / has triple, so the free package carries no commercial code.
7
7
  */
8
- import type { GridPredicateExpr } from './filtering/predicate-expr';
8
+ import type { GridPredicateExpr } from './filtering/predicate-expr.js';
9
9
  /** What the engine needs in order to compile an expression into a predicate. */
10
10
  export type AdvancedFilterCompileContext<TRow> = {
11
11
  /**
package/dist/ai.d.ts CHANGED
@@ -24,7 +24,7 @@
24
24
  * client and do nothing until you register a provider with `setAIProvider(...)`,
25
25
  * so they add nothing to the base bundle unless you actually use them.
26
26
  */
27
- import type { RowData, SvGridApi, TableFeatures } from './index';
27
+ import type { RowData, SvGridApi, TableFeatures } from './index.js';
28
28
  type ExportFormat = 'xlsx' | 'xls' | 'pdf' | 'csv' | 'tsv' | 'html' | 'json' | 'xml' | 'md';
29
29
  /**
30
30
  * Shape every consumer-provided model adapter must implement. Keeping this
package/dist/ai.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * client and do nothing until you register a provider with `setAIProvider(...)`,
25
25
  * so they add nothing to the base bundle unless you actually use them.
26
26
  */
27
- import { getExportProvider } from './export-provider';
27
+ import { getExportProvider } from './export-provider.js';
28
28
  let provider = null;
29
29
  /**
30
30
  * Register the model adapter every AI call will route through. Call once
@@ -1,5 +1,5 @@
1
- import { type RowData, type SvGridApi, type TableFeatures } from "./index";
2
- import "./sv-grid-scrollbar";
1
+ import { type RowData, type SvGridApi, type TableFeatures } from "./index.js";
2
+ import "./sv-grid-scrollbar.js";
3
3
  export declare function createGridApi<TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData>(ctx: any): {
4
4
  buildApi: () => SvGridApi<TFeatures, TData>;
5
5
  };
package/dist/build-api.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./sv-grid-scrollbar";
1
+ import "./sv-grid-scrollbar.js";
2
2
  import { untrack } from "svelte";
3
- import { isGroupRow, getColumnAlign, columnDefMatchesId, } from "./cell-values";
4
- import { hasAdvancedFilterEngine } from "./advanced-filter.svelte";
3
+ import { isGroupRow, getColumnAlign, columnDefMatchesId, } from "./cell-values.js";
4
+ import { hasAdvancedFilterEngine } from "./advanced-filter.svelte.js";
5
5
  export function createGridApi(ctx) {
6
6
  function buildApi() {
7
7
  const findColumn = (columnId) => ctx.grid.getAllColumns().find((column) => column.id === columnId);
@@ -31,7 +31,7 @@ export function createGridApi(ctx) {
31
31
  return out;
32
32
  };
33
33
  const projectForExport = async (scope, columns, rawValues) => {
34
- const { projectGridRows } = await import("./export-format");
34
+ const { projectGridRows } = await import("./export-format.js");
35
35
  return projectGridRows(exportScopeRows(scope), exportColumns(), { columns, rawValues });
36
36
  };
37
37
  return {
@@ -438,7 +438,7 @@ export function createGridApi(ctx) {
438
438
  },
439
439
  // ---- Free data export (CSV / TSV / JSON + clipboard) -----------------
440
440
  async exportCsv(options = {}) {
441
- const { serializeDelimited, downloadTextFile } = await import("./export-format");
441
+ const { serializeDelimited, downloadTextFile } = await import("./export-format.js");
442
442
  const { records, fields } = await projectForExport(options.rows ?? "displayed", options.columns, options.rawValues);
443
443
  const text = await serializeDelimited(records, fields, {
444
444
  csv: { delimiter: ",", bom: options.bom ?? true },
@@ -450,7 +450,7 @@ export function createGridApi(ctx) {
450
450
  return text;
451
451
  },
452
452
  async exportTsv(options = {}) {
453
- const { serializeDelimited, downloadTextFile } = await import("./export-format");
453
+ const { serializeDelimited, downloadTextFile } = await import("./export-format.js");
454
454
  const { records, fields } = await projectForExport(options.rows ?? "displayed", options.columns, options.rawValues);
455
455
  const text = await serializeDelimited(records, fields, {
456
456
  csv: { delimiter: "\t", bom: options.bom ?? true },
@@ -462,7 +462,7 @@ export function createGridApi(ctx) {
462
462
  return text;
463
463
  },
464
464
  async exportJson(options = {}) {
465
- const { serializeJson, downloadTextFile } = await import("./export-format");
465
+ const { serializeJson, downloadTextFile } = await import("./export-format.js");
466
466
  const { records, fields } = await projectForExport(options.rows ?? "displayed", options.columns, options.rawValues);
467
467
  const text = await serializeJson(records, fields, {
468
468
  signal: options.signal,
@@ -473,7 +473,7 @@ export function createGridApi(ctx) {
473
473
  return text;
474
474
  },
475
475
  async copyToClipboard(options = {}) {
476
- const { serializeDelimited, serializeMarkdown, copyTextToClipboard } = await import("./export-format");
476
+ const { serializeDelimited, serializeMarkdown, copyTextToClipboard } = await import("./export-format.js");
477
477
  const { records, fields, align } = await projectForExport(options.rows ?? "displayed", options.columns, options.rawValues);
478
478
  const format = options.format ?? "tsv";
479
479
  const text = format === "markdown"
@@ -22,7 +22,7 @@
22
22
  * })
23
23
  * ```
24
24
  */
25
- import { registerCellEditor } from './editor-registry';
25
+ import { registerCellEditor } from './editor-registry.js';
26
26
  import SvOtpInput from './SvOtpInput.svelte';
27
27
  import SvDurationInput from './SvDurationInput.svelte';
28
28
  /**
@@ -1,4 +1,4 @@
1
- import { Kn as e, co as t, so as n } from "./src-ogpR-lHu.js";
1
+ import { Kn as e, co as t, so as n } from "./src-Cd0tearp.js";
2
2
  import { E as r, F as i, G as a, H as o, I as s, L as c, N as l, Q as u, U as d, V as f, X as p, Y as m, Z as h, _ as g, d as _, et as v, f as y, ft as b, g as x, h as S, j as C, k as w, lt as T, m as E, mt as D, nt as O, o as k, pt as A, st as j, t as M, tt as N, u as P, ut as F, v as I } from "./disclose-version-Dr7rEVv-.js";
3
3
  import { b as ee } from "./editor-registry-CiI0xlKg.js";
4
4
  import { l as te } from "./SvDateTimePicker-CRQH_U7E.js";
@@ -1,4 +1,4 @@
1
- import { Kn as e, co as t, so as n } from "./src-CKpl94Cx.js";
1
+ import { Kn as e, co as t, so as n } from "./src-B1TdiyS8.js";
2
2
  import { b as r } from "./editor-registry-CiI0xlKg.js";
3
3
  import { l as i } from "./SvDateTimePicker-CHnUkWcH.js";
4
4
  import * as a from "svelte/internal/client";