@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.
- package/dist/DockNodeView.svelte.d.ts +1 -1
- package/dist/DockPopoutHost.svelte.d.ts +1 -1
- package/dist/FlexRender.svelte.d.ts +1 -1
- package/dist/GridFooter.svelte +6 -3
- package/dist/GridFooter.svelte.d.ts +3 -3
- package/dist/GridMenus.svelte.d.ts +3 -3
- package/dist/SvAccordion.svelte.d.ts +3 -3
- package/dist/SvAutoComplete.svelte.d.ts +2 -2
- package/dist/SvBreadcrumb.svelte.d.ts +2 -2
- package/dist/SvButtonGroup.svelte.d.ts +3 -3
- package/dist/SvCalendar.svelte.d.ts +7 -7
- package/dist/SvCarousel.svelte.d.ts +1 -1
- package/dist/SvCheckBox.svelte.d.ts +1 -1
- package/dist/SvColorInput.svelte.d.ts +1 -1
- package/dist/SvComboBox.svelte.d.ts +2 -2
- package/dist/SvCommand.svelte.d.ts +2 -2
- package/dist/SvCountryInput.svelte.d.ts +1 -1
- package/dist/SvDateRangeInput.svelte.d.ts +3 -3
- package/dist/SvDateTimePicker.svelte.d.ts +4 -4
- package/dist/SvDockLayout.svelte.d.ts +2 -2
- package/dist/SvDockManager.svelte.d.ts +2 -2
- package/dist/SvDropDownList.svelte.d.ts +2 -2
- package/dist/SvDurationInput.svelte.d.ts +1 -1
- package/dist/SvField.svelte.d.ts +1 -1
- package/dist/SvFileUpload.svelte.d.ts +3 -3
- package/dist/SvForm.svelte.d.ts +4 -4
- package/dist/SvGauge.svelte.d.ts +1 -1
- package/dist/SvGrid.controller.svelte.d.ts +28 -28
- package/dist/SvGrid.controller.svelte.js +117 -45
- package/dist/SvGrid.css +42 -2
- package/dist/SvGrid.helpers.d.ts +2 -2
- package/dist/SvGrid.svelte.d.ts +3 -3
- package/dist/SvGrid.types.d.ts +28 -7
- package/dist/SvGridCellEditor.svelte.d.ts +2 -2
- package/dist/SvGridChart.svelte.d.ts +1 -1
- package/dist/SvGridChartPanel.svelte.d.ts +2 -2
- package/dist/SvGridChartView.svelte.d.ts +1 -1
- package/dist/SvGridDropdown.svelte.d.ts +1 -1
- package/dist/SvGridSelect.svelte.d.ts +4 -4
- package/dist/SvGroupCell.svelte.d.ts +1 -1
- package/dist/SvHoverCard.svelte.d.ts +1 -1
- package/dist/SvListBox.svelte.d.ts +2 -2
- package/dist/SvMaskedInput.svelte.d.ts +1 -1
- package/dist/SvMenu.svelte.d.ts +1 -1
- package/dist/SvMenuList.svelte.d.ts +3 -3
- package/dist/SvMenubar.svelte.d.ts +3 -3
- package/dist/SvMultiSelect.svelte.d.ts +3 -3
- package/dist/SvNavPane.svelte.d.ts +1 -1
- package/dist/SvNumberInput.svelte.d.ts +1 -1
- package/dist/SvOtpInput.svelte.d.ts +1 -1
- package/dist/SvPasswordInput.svelte.d.ts +1 -1
- package/dist/SvPhoneInput.svelte.d.ts +2 -2
- package/dist/SvPopconfirm.svelte.d.ts +1 -1
- package/dist/SvPopover.svelte.d.ts +1 -1
- package/dist/SvRadioGroup.svelte.d.ts +3 -3
- package/dist/SvRating.svelte.d.ts +1 -1
- package/dist/SvSegmented.svelte.d.ts +3 -3
- package/dist/SvSlider.svelte.d.ts +1 -1
- package/dist/SvSparkline.svelte.d.ts +1 -1
- package/dist/SvSplitter.svelte.d.ts +3 -3
- package/dist/SvStepper.svelte.d.ts +2 -2
- package/dist/SvSwitchButton.svelte.d.ts +1 -1
- package/dist/SvTabs.svelte.d.ts +3 -3
- package/dist/SvTagsInput.svelte.d.ts +1 -1
- package/dist/SvTextArea.svelte.d.ts +1 -1
- package/dist/SvTextInput.svelte.d.ts +1 -1
- package/dist/SvTimePicker.svelte.d.ts +3 -3
- package/dist/SvTimeline.svelte.d.ts +2 -2
- package/dist/SvToggleButton.svelte.d.ts +1 -1
- package/dist/SvTooltip.svelte.d.ts +1 -1
- package/dist/SvTour.svelte.d.ts +3 -3
- package/dist/SvTree.svelte.d.ts +3 -3
- package/dist/SvTreeSelect.svelte.d.ts +3 -3
- package/dist/advanced-filter.svelte.d.ts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +1 -1
- package/dist/build-api.d.ts +2 -2
- package/dist/build-api.js +8 -8
- package/dist/builtin-editors.js +1 -1
- package/dist/cdn/{GridMenus-CPdy5dxw.js → GridMenus-B0F9iBrG.js} +1 -1
- package/dist/cdn/{GridMenus-BLajq_RP.js → GridMenus-IHK_l7m6.js} +1 -1
- package/dist/cdn/{src-CKpl94Cx.js → src-B1TdiyS8.js} +272 -270
- package/dist/cdn/{src-ogpR-lHu.js → src-Cd0tearp.js} +272 -270
- package/dist/cdn/svgrid.js +2 -2
- package/dist/cdn/svgrid.svelte-external.js +2 -2
- package/dist/cell-render.d.ts +3 -3
- package/dist/cell-render.js +6 -6
- package/dist/cell-values.d.ts +1 -1
- package/dist/cell-values.js +1 -1
- package/dist/chart-export.d.ts +1 -1
- package/dist/clipboard.d.ts +2 -2
- package/dist/clipboard.js +5 -5
- package/dist/column-groups.js +1 -1
- package/dist/columns.d.ts +2 -2
- package/dist/columns.js +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/createAutocomplete.svelte.d.ts +1 -1
- package/dist/createAutocomplete.svelte.js +2 -2
- package/dist/createButtonGroup.svelte.js +1 -1
- package/dist/createCalendar.svelte.d.ts +4 -4
- package/dist/createCalendar.svelte.js +4 -4
- package/dist/createCarousel.svelte.d.ts +1 -1
- package/dist/createCheckbox.svelte.js +1 -1
- package/dist/createColorInput.svelte.js +1 -1
- package/dist/createCombobox.svelte.d.ts +1 -1
- package/dist/createCombobox.svelte.js +2 -2
- package/dist/createCommand.svelte.d.ts +1 -1
- package/dist/createCommand.svelte.js +2 -2
- package/dist/createCountryInput.svelte.d.ts +1 -1
- package/dist/createCountryInput.svelte.js +2 -2
- package/dist/createDateTimePicker.svelte.d.ts +1 -1
- package/dist/createDateTimePicker.svelte.js +3 -3
- package/dist/createDropdownList.svelte.d.ts +1 -1
- package/dist/createDropdownList.svelte.js +2 -2
- package/dist/createFileUpload.svelte.js +1 -1
- package/dist/createForm.svelte.d.ts +1 -1
- package/dist/createForm.svelte.js +2 -2
- package/dist/createGrid.svelte.d.ts +1 -1
- package/dist/createGrid.svelte.js +1 -1
- package/dist/createGridState.svelte.d.ts +1 -1
- package/dist/createListbox.svelte.d.ts +1 -1
- package/dist/createListbox.svelte.js +2 -2
- package/dist/createMaskedInput.svelte.js +2 -2
- package/dist/createMenu.svelte.d.ts +2 -2
- package/dist/createMenu.svelte.js +2 -2
- package/dist/createNumberInput.svelte.js +1 -1
- package/dist/createOverlay.svelte.js +3 -3
- package/dist/createPagination.d.ts +1 -1
- package/dist/createPagination.js +1 -1
- package/dist/createPasswordInput.svelte.js +1 -1
- package/dist/createPhoneInput.svelte.js +3 -3
- package/dist/createPopoverSelect.svelte.d.ts +1 -1
- package/dist/createPopoverSelect.svelte.js +3 -3
- package/dist/createRadioGroup.svelte.js +1 -1
- package/dist/createRating.svelte.js +1 -1
- package/dist/createSlider.svelte.js +1 -1
- package/dist/createSwitch.svelte.js +1 -1
- package/dist/createTabs.svelte.d.ts +1 -1
- package/dist/createTagsInput.svelte.js +1 -1
- package/dist/createToggle.svelte.js +1 -1
- package/dist/createTooltip.svelte.js +1 -1
- package/dist/createTree.svelte.d.ts +1 -1
- package/dist/datetime/date-restrict.d.ts +1 -1
- package/dist/datetime/date-restrict.js +1 -1
- package/dist/datetime/date-selection.js +1 -1
- package/dist/dock-context.d.ts +1 -1
- package/dist/dock-manager-model.d.ts +1 -1
- package/dist/dock-manager-model.js +1 -1
- package/dist/dock-popout.d.ts +1 -1
- package/dist/dock-popout.js +1 -1
- package/dist/editing.d.ts +2 -2
- package/dist/editing.js +5 -5
- package/dist/editor-registry.d.ts +1 -1
- package/dist/editors/cell-editors.js +1 -1
- package/dist/export-format.d.ts +2 -2
- package/dist/export-format.js +2 -2
- package/dist/export-provider.d.ts +1 -1
- package/dist/facet-buckets.d.ts +1 -1
- package/dist/facet-buckets.js +1 -1
- package/dist/features.d.ts +2 -2
- package/dist/features.js +2 -2
- package/dist/filter-operators.d.ts +2 -2
- package/dist/filter-operators.js +1 -1
- package/dist/form-field.d.ts +1 -1
- package/dist/grid-messages.js +1 -1
- package/dist/headless.d.ts +11 -4
- package/dist/headless.js +11 -4
- package/dist/index.d.ts +120 -120
- package/dist/index.js +111 -111
- package/dist/keyboard-handlers.d.ts +2 -2
- package/dist/keyboard-handlers.js +2 -2
- package/dist/keyboard.d.ts +1 -1
- package/dist/menus.d.ts +3 -3
- package/dist/menus.js +3 -3
- package/dist/named-views.d.ts +1 -1
- package/dist/pivot-view.svelte.d.ts +1 -1
- package/dist/recurrence.d.ts +1 -1
- package/dist/recurrence.js +1 -1
- package/dist/row-drag.js +1 -1
- package/dist/scheduler-ical.d.ts +1 -1
- package/dist/scheduler-model.d.ts +3 -3
- package/dist/scheduler-model.js +2 -2
- package/dist/scroll-sync.d.ts +2 -2
- package/dist/scroll-sync.js +1 -1
- package/dist/selection.d.ts +2 -2
- package/dist/selection.js +3 -3
- package/dist/server-data-source.d.ts +1 -1
- package/dist/server-group-model.d.ts +1 -1
- package/dist/static-functions.d.ts +1 -1
- package/dist/static-functions.js +1 -1
- package/dist/subscribe.d.ts +1 -1
- package/dist/summaries.d.ts +2 -2
- package/dist/summaries.js +3 -3
- package/dist/svgrid-wrapper.types.d.ts +5 -5
- package/dist/themes/index.d.ts +3 -1
- package/dist/themes/index.js +4 -2
- package/dist/toast-store.svelte.js +1 -1
- package/dist/tree-select.d.ts +1 -1
- package/dist/virtualization/column-virtualizer.d.ts +3 -3
- package/dist/virtualization/column-virtualizer.js +1 -1
- package/dist/virtualization/svelte-virtualizer.svelte.d.ts +3 -3
- package/dist/virtualization/svelte-virtualizer.svelte.js +1 -1
- package/dist/virtualization/virtualizer.d.ts +1 -1
- package/package.json +14 -2
- package/src/GridFooter.svelte +6 -3
- package/src/SvGrid.controller.svelte.ts +90 -14
- package/src/SvGrid.css +42 -2
- package/src/SvGrid.types.ts +21 -0
- package/src/headless.ts +7 -0
- package/src/svgrid.behavior.test.ts +208 -0
- 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
|
-
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. */
|
package/dist/SvTabs.svelte.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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`. */
|
package/dist/SvTour.svelte.d.ts
CHANGED
|
@@ -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;
|
package/dist/SvTree.svelte.d.ts
CHANGED
|
@@ -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
|
package/dist/build-api.d.ts
CHANGED
|
@@ -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"
|
package/dist/builtin-editors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kn as e, co as t, so as n } from "./src-
|
|
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-
|
|
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";
|