@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* shows the exact same content as the docked view.
|
|
5
5
|
*/
|
|
6
6
|
import type { Snippet } from 'svelte';
|
|
7
|
-
import type { DockPane } from './dock-model';
|
|
7
|
+
import type { DockPane } from './dock-model.js';
|
|
8
8
|
type $$ComponentProps = {
|
|
9
9
|
pane: Snippet<[DockPane]>;
|
|
10
10
|
paneData: DockPane;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Cell, CellContext, ColumnDefTemplate, Header, HeaderContext, RowData } from './core';
|
|
1
|
+
import type { Cell, CellContext, ColumnDefTemplate, Header, HeaderContext, RowData } from './core.js';
|
|
2
2
|
declare function $$render<TData extends RowData>(): {
|
|
3
3
|
props: {
|
|
4
4
|
content?: ColumnDefTemplate<HeaderContext<TData> | CellContext<TData>>;
|
package/dist/GridFooter.svelte
CHANGED
|
@@ -117,9 +117,12 @@
|
|
|
117
117
|
onChange={(v) => setPageSize(Number(v))}
|
|
118
118
|
/>
|
|
119
119
|
{:else}
|
|
120
|
-
<!-- Mirrors SvGridDropdown's closed trigger
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
<!-- Mirrors SvGridDropdown's closed trigger (same classes, same
|
|
121
|
+
ARIA). Its box styling comes from the global
|
|
122
|
+
.sv-grid-pagination-pagesize-dd rules in SvGrid.css, NOT from
|
|
123
|
+
SvGridDropdown's scoped styles (those only exist once the chunk
|
|
124
|
+
loads) - so keep the two in step or the placeholder renders as
|
|
125
|
+
a stock <button> until the first click. -->
|
|
123
126
|
<div class="sv-grid-dropdown">
|
|
124
127
|
<button
|
|
125
128
|
type="button"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type RowData, type TableFeatures } from "./index";
|
|
2
|
-
import "./sv-grid-scrollbar";
|
|
3
|
-
import type { SvGridController } from "./SvGrid.controller.svelte";
|
|
1
|
+
import { type RowData, type TableFeatures } from "./index.js";
|
|
2
|
+
import "./sv-grid-scrollbar.js";
|
|
3
|
+
import type { SvGridController } from "./SvGrid.controller.svelte.js";
|
|
4
4
|
declare function $$render<TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData>(): {
|
|
5
5
|
props: {
|
|
6
6
|
ctrl: SvGridController<TFeatures, TData>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type RowData, type TableFeatures } from "./index";
|
|
2
|
-
import "./sv-grid-scrollbar";
|
|
1
|
+
import { type RowData, type TableFeatures } from "./index.js";
|
|
2
|
+
import "./sv-grid-scrollbar.js";
|
|
3
3
|
import type { Snippet } from "svelte";
|
|
4
|
-
import type { SvGridController } from "./SvGrid.controller.svelte";
|
|
4
|
+
import type { SvGridController } from "./SvGrid.controller.svelte.js";
|
|
5
5
|
declare function $$render<TFeatures extends TableFeatures = TableFeatures, TData extends RowData = RowData>(): {
|
|
6
6
|
props: {
|
|
7
7
|
ctrl: SvGridController<TFeatures, TData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AccordionItem, AccordionExpandMode } from './createAccordion.svelte';
|
|
1
|
+
export type { AccordionItem, AccordionExpandMode } from './createAccordion.svelte.js';
|
|
2
2
|
/**
|
|
3
3
|
* SvAccordion - a WAI-ARIA accordion (collapsible sections) with single- or
|
|
4
4
|
* multiple-expand and roving header focus (Up/Down/Home/End). Parity: Smart
|
|
@@ -9,8 +9,8 @@ export type { AccordionItem, AccordionExpandMode } from './createAccordion.svelt
|
|
|
9
9
|
* 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 AccordionItem, type AccordionExpandMode } from './createAccordion.svelte';
|
|
12
|
+
import { type EditorDir } from './editor-contract.js';
|
|
13
|
+
import { type AccordionItem, type AccordionExpandMode } from './createAccordion.svelte.js';
|
|
14
14
|
type Props = {
|
|
15
15
|
items: ReadonlyArray<AccordionItem>;
|
|
16
16
|
/** Expanded item ids (controlled). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ListOption } from './list-option';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
1
|
+
import { type ListOption } from './list-option.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
3
|
type Props = SvEditorProps & {
|
|
4
4
|
value?: string;
|
|
5
5
|
onChange?: (value: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { BreadcrumbItem } from './ui-app.types';
|
|
1
|
+
export type { BreadcrumbItem } from './ui-app.types.js';
|
|
2
2
|
/**
|
|
3
3
|
* SvBreadcrumb - a navigation trail. Each item is a link (`href`), a button
|
|
4
4
|
* (`onClick`), or plain text; the last item is the current page and is never
|
|
@@ -9,7 +9,7 @@ export type { BreadcrumbItem } from './ui-app.types';
|
|
|
9
9
|
* <SvBreadcrumb items={[{label:'Home', href:'/'}, {label:'Orders', href:'/orders'}, {label:'#1024'}]} />
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
|
-
import type { BreadcrumbItem } from './ui-app.types';
|
|
12
|
+
import type { BreadcrumbItem } from './ui-app.types.js';
|
|
13
13
|
type Props = {
|
|
14
14
|
items: ReadonlyArray<BreadcrumbItem>;
|
|
15
15
|
/** Separator between crumbs. Default a chevron. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { ButtonGroupItem, ButtonGroupMode, ButtonGroupValue } from './createButtonGroup.svelte';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
3
|
-
import { type ButtonGroupItem, type ButtonGroupMode, type ButtonGroupValue } from './createButtonGroup.svelte';
|
|
1
|
+
export type { ButtonGroupItem, ButtonGroupMode, ButtonGroupValue } from './createButtonGroup.svelte.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
|
+
import { type ButtonGroupItem, type ButtonGroupMode, type ButtonGroupValue } from './createButtonGroup.svelte.js';
|
|
4
4
|
type Props = SvEditorProps & {
|
|
5
5
|
items: ReadonlyArray<ButtonGroupItem>;
|
|
6
6
|
value?: ButtonGroupValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { CalendarValue, CalendarPreset, CalendarAnimation, DisplayMode } from './createCalendar.svelte';
|
|
1
|
+
export type { CalendarValue, CalendarPreset, CalendarAnimation, DisplayMode } from './createCalendar.svelte.js';
|
|
2
2
|
/**
|
|
3
3
|
* SvCalendar - a themeable, accessible month/year/decade calendar. It is a thin
|
|
4
4
|
* styled renderer over the headless `createCalendar` core (the same split as
|
|
@@ -11,12 +11,12 @@ export type { CalendarValue, CalendarPreset, CalendarAnimation, DisplayMode } fr
|
|
|
11
11
|
* important dates, week numbers, firstDayOfWeek, drill navigation, keyboard).
|
|
12
12
|
*/
|
|
13
13
|
import { type Snippet } from 'svelte';
|
|
14
|
-
import { type EditorDir, type EditorSize } from './editor-contract';
|
|
15
|
-
import { type CalendarValue, type CalendarPreset, type CalendarAnimation, type CalendarDayState, type DisplayMode } from './createCalendar.svelte';
|
|
16
|
-
import type { SelectionMode } from './datetime/date-selection';
|
|
17
|
-
import type { RestrictOptions } from './datetime/date-restrict';
|
|
18
|
-
import type { DateLike } from './datetime/date-core';
|
|
19
|
-
import type { RecurrenceRule } from './recurrence';
|
|
14
|
+
import { type EditorDir, type EditorSize } from './editor-contract.js';
|
|
15
|
+
import { type CalendarValue, type CalendarPreset, type CalendarAnimation, type CalendarDayState, type DisplayMode } from './createCalendar.svelte.js';
|
|
16
|
+
import type { SelectionMode } from './datetime/date-selection.js';
|
|
17
|
+
import type { RestrictOptions } from './datetime/date-restrict.js';
|
|
18
|
+
import type { DateLike } from './datetime/date-core.js';
|
|
19
|
+
import type { RecurrenceRule } from './recurrence.js';
|
|
20
20
|
type NameFormat = 'narrow' | 'short' | 'long';
|
|
21
21
|
/** User-facing strings (localizable via `messages`). */
|
|
22
22
|
type CalendarMessages = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* label. Parity: Smart `smart-check-box`. Controlled via `checked` + `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
|
checked?: boolean;
|
|
9
9
|
indeterminate?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ListOption } from './list-option';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
1
|
+
import { type ListOption } from './list-option.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
/** User-facing strings (localizable via `messages`). */
|
|
5
5
|
type ComboMessages = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { CommandItem } from './ui-app.types';
|
|
1
|
+
export type { CommandItem } from './ui-app.types.js';
|
|
2
2
|
/**
|
|
3
3
|
* SvCommand - a ⌘K command palette: a fuzzy-searchable list of actions in a
|
|
4
4
|
* centered, focus-trapped dialog. Built on the shared primitives (portal +
|
|
@@ -10,7 +10,7 @@ export type { CommandItem } from './ui-app.types';
|
|
|
10
10
|
* <SvCommand commands={cmds} onRun={(c) => run(c)} /> // Cmd/Ctrl+K opens it
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
import type { CommandItem } from './ui-app.types';
|
|
13
|
+
import type { CommandItem } from './ui-app.types.js';
|
|
14
14
|
type Props = {
|
|
15
15
|
open?: boolean;
|
|
16
16
|
onClose?: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type DateRangeValue = [Date, Date] | null;
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
3
|
-
import { type DateLike } from './datetime/date-core';
|
|
4
|
-
import type { CalendarPreset } from './createCalendar.svelte';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
|
+
import { type DateLike } from './datetime/date-core.js';
|
|
4
|
+
import type { CalendarPreset } from './createCalendar.svelte.js';
|
|
5
5
|
/** User-facing strings (localizable via `messages`). */
|
|
6
6
|
type RangeMessages = {
|
|
7
7
|
dialog: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type { DateTimeValue } from './createDateTimePicker.svelte';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
3
|
-
import { type DateTimeValue, type DropDownDisplayMode } from './createDateTimePicker.svelte';
|
|
4
|
-
import type { DateLike } from './datetime/date-core';
|
|
1
|
+
export type { DateTimeValue } from './createDateTimePicker.svelte.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
|
+
import { type DateTimeValue, type DropDownDisplayMode } from './createDateTimePicker.svelte.js';
|
|
4
|
+
import type { DateLike } from './datetime/date-core.js';
|
|
5
5
|
/** User-facing strings (localizable via `messages`). */
|
|
6
6
|
type DateTimeMessages = {
|
|
7
7
|
dialog: string;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* </SvDockLayout>
|
|
20
20
|
*/
|
|
21
21
|
import { type Snippet } from 'svelte';
|
|
22
|
-
import { type DockNode, type DockPane, type DockZone } from './dock-model';
|
|
22
|
+
import { type DockNode, type DockPane, type DockZone } from './dock-model.js';
|
|
23
23
|
type Props = {
|
|
24
24
|
/** The layout tree. Bindable - every dock/resize/close writes a new tree. */
|
|
25
25
|
layout: DockNode;
|
|
@@ -52,7 +52,7 @@ type Props = {
|
|
|
52
52
|
} | null;
|
|
53
53
|
/** Stack-header controls for a leaf (maximize / float / pop-out), rendered
|
|
54
54
|
* by the manager once per leaf at the right of its tab strip. */
|
|
55
|
-
leafActions?: Snippet<[import('./dock-model').DockTabs]>;
|
|
55
|
+
leafActions?: Snippet<[import('./dock-model.js').DockTabs]>;
|
|
56
56
|
/** Manager mode: route tab activation to the parent (controlled). */
|
|
57
57
|
onActivate?: (tabsId: string, index: number) => void;
|
|
58
58
|
/** Manager mode: route pane close to the parent (controlled). */
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* <SvDockManager bind:workspace>{#snippet pane(p)} ... {/snippet}</SvDockManager>
|
|
23
23
|
*/
|
|
24
24
|
import { type Snippet } from 'svelte';
|
|
25
|
-
import type { DockPane } from './dock-model';
|
|
26
|
-
import { type DockManagerState, type DockSide } from './dock-manager-model';
|
|
25
|
+
import type { DockPane } from './dock-model.js';
|
|
26
|
+
import { type DockManagerState, type DockSide } from './dock-manager-model.js';
|
|
27
27
|
/** Imperative handle exposed via `onReady`. */
|
|
28
28
|
export type DockManagerApi = {
|
|
29
29
|
getState: () => DockManagerState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ListOption, type RowHeight } from './list-option';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
1
|
+
import { type ListOption, type RowHeight } from './list-option.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
3
|
import { type Snippet } from 'svelte';
|
|
4
4
|
type Props = SvEditorProps & {
|
|
5
5
|
options: ReadonlyArray<ListOption>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* are owned by SvField's `frame` chrome.
|
|
7
7
|
*/
|
|
8
8
|
import type { Snippet } from 'svelte';
|
|
9
|
-
import { type SvEditorProps } from './editor-contract';
|
|
9
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
10
10
|
type Props = SvEditorProps & {
|
|
11
11
|
/** Value in minutes (or null when empty). */
|
|
12
12
|
value?: number | null;
|
package/dist/SvField.svelte.d.ts
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* so editors no longer re-implement the box / focus ring / invalid / size.
|
|
35
35
|
*/
|
|
36
36
|
import type { Snippet } from 'svelte';
|
|
37
|
-
import { type EditorAction, type EditorDir, type EditorSize } from './editor-contract';
|
|
37
|
+
import { type EditorAction, type EditorDir, type EditorSize } from './editor-contract.js';
|
|
38
38
|
type $$ComponentProps = {
|
|
39
39
|
id?: string;
|
|
40
40
|
label?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { FileRejection, FileRejectReason } from './createFileUpload.svelte';
|
|
2
|
-
import { type SvEditorProps } from './editor-contract';
|
|
3
|
-
import { type FileRejection } from './createFileUpload.svelte';
|
|
1
|
+
export type { FileRejection, FileRejectReason } from './createFileUpload.svelte.js';
|
|
2
|
+
import { type SvEditorProps } from './editor-contract.js';
|
|
3
|
+
import { type FileRejection } from './createFileUpload.svelte.js';
|
|
4
4
|
/** User-facing strings (localizable via `messages`). */
|
|
5
5
|
type FileMessages = {
|
|
6
6
|
prompt: string;
|
package/dist/SvForm.svelte.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type { FormField, FormFieldType, FormSection, FormEntry } from './form-field';
|
|
2
|
-
import { type FormEntry } from './form-field';
|
|
3
|
-
import { type FormMessages } from './createForm.svelte';
|
|
4
|
-
import type { EditorDir } from './editor-contract';
|
|
1
|
+
export type { FormField, FormFieldType, FormSection, FormEntry } from './form-field.js';
|
|
2
|
+
import { type FormEntry } from './form-field.js';
|
|
3
|
+
import { type FormMessages } from './createForm.svelte.js';
|
|
4
|
+
import type { EditorDir } from './editor-contract.js';
|
|
5
5
|
type Props = {
|
|
6
6
|
fields: ReadonlyArray<FormEntry>;
|
|
7
7
|
initial?: Record<string, any>;
|
package/dist/SvGauge.svelte.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The arc/needle geometry + `role="meter"` ARIA live in the headless
|
|
7
7
|
* `createGauge` core; this component is just one styled renderer over it.
|
|
8
8
|
*/
|
|
9
|
-
import { type EditorDir } from './editor-contract';
|
|
9
|
+
import { type EditorDir } from './editor-contract.js';
|
|
10
10
|
type Band = {
|
|
11
11
|
from: number;
|
|
12
12
|
to: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type GridPredicateExpr, type CellEditorOption, type Column, type ColumnDef, type Row, type RowData, type TableFeatures, type ChartType, type ChartSpec, type ChartValueFormat } from "./index";
|
|
2
|
-
import "./sv-grid-scrollbar";
|
|
3
|
-
import { type ColumnStat } from "./conditional-formatting";
|
|
4
|
-
import type { Props, SelectionRange, CellEditState, FilterOperator, MenuPosition, ContextMenuTarget, ChartingConfig } from "./SvGrid.types";
|
|
5
|
-
import { operatorOption, operatorsForColumn, defaultOperatorFor, operatorLabelFor } from "./filter-operators";
|
|
6
|
-
import { type FacetBucket, isBucketableColumn, buildBuckets, isInBucket } from "./facet-buckets";
|
|
7
|
-
import { getColumnBaseValue, isGroupRow, toolPanelHeaderLabel, formatSummaryNumeric, getColumnAlign, getPinnedCellValue, getColumnAccessorValue, columnDefMatchesId } from "./cell-values";
|
|
1
|
+
import { type GridPredicateExpr, type CellEditorOption, type Column, type ColumnDef, type Row, type RowData, type TableFeatures, type ChartType, type ChartSpec, type ChartValueFormat } from "./index.js";
|
|
2
|
+
import "./sv-grid-scrollbar.js";
|
|
3
|
+
import { type ColumnStat } from "./conditional-formatting.js";
|
|
4
|
+
import type { Props, SelectionRange, CellEditState, FilterOperator, MenuPosition, ContextMenuTarget, ChartingConfig } from "./SvGrid.types.js";
|
|
5
|
+
import { operatorOption, operatorsForColumn, defaultOperatorFor, operatorLabelFor } from "./filter-operators.js";
|
|
6
|
+
import { type FacetBucket, isBucketableColumn, buildBuckets, isInBucket } from "./facet-buckets.js";
|
|
7
|
+
import { getColumnBaseValue, isGroupRow, toolPanelHeaderLabel, formatSummaryNumeric, getColumnAlign, getPinnedCellValue, getColumnAccessorValue, columnDefMatchesId } from "./cell-values.js";
|
|
8
8
|
/**
|
|
9
9
|
* SvGrid controller. The component's entire reactive core - every $state,
|
|
10
10
|
* $derived, $effect and handler - lives here so SvGrid.svelte can stay a thin
|
|
@@ -110,7 +110,7 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
110
110
|
readonly selectionColumnWidth: number;
|
|
111
111
|
readonly rowNumberColumnWidth: number;
|
|
112
112
|
readonly showRowNumbersEffective: boolean;
|
|
113
|
-
readonly filterOperatorOptions: import("./SvGrid.types").FilterOption[];
|
|
113
|
+
readonly filterOperatorOptions: import("./SvGrid.types.js").FilterOption[];
|
|
114
114
|
readonly TEXT_OPERATORS: FilterOperator[];
|
|
115
115
|
readonly NUMBER_OPERATORS: FilterOperator[];
|
|
116
116
|
readonly DATE_OPERATORS: FilterOperator[];
|
|
@@ -175,11 +175,11 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
175
175
|
rows: Array<Row<TData>>;
|
|
176
176
|
}) => Row<TData>[];
|
|
177
177
|
readonly resolveEffectiveFeatures: () => TableFeatures;
|
|
178
|
-
readonly grid: import("./createGrid.svelte").SvelteGrid<TableFeatures, TData, {}>;
|
|
178
|
+
readonly grid: import("./createGrid.svelte.js").SvelteGrid<TableFeatures, TData, {}>;
|
|
179
179
|
userColumnOrder: string[];
|
|
180
180
|
lastSeededOrder: string;
|
|
181
181
|
readonly allColumns: Column<TData>[];
|
|
182
|
-
readonly headerGroups: import("./core").HeaderGroup<TData>[];
|
|
182
|
+
readonly headerGroups: import("./core.js").HeaderGroup<TData>[];
|
|
183
183
|
readonly groupHeaderRows: {
|
|
184
184
|
id: string;
|
|
185
185
|
cells: {
|
|
@@ -256,13 +256,13 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
256
256
|
readonly getColumnBaseValue: typeof getColumnBaseValue;
|
|
257
257
|
readonly hasConditionalFormats: boolean;
|
|
258
258
|
readonly conditionalColumnStats: Map<string, ColumnStat>;
|
|
259
|
-
readonly cellConditionalFormat: (row: Row<TData>, column: Column<TData>, value: unknown) => import("./conditional-formatting").ResolvedCellFormat | null;
|
|
259
|
+
readonly cellConditionalFormat: (row: Row<TData>, column: Column<TData>, value: unknown) => import("./conditional-formatting.js").ResolvedCellFormat | null;
|
|
260
260
|
readonly isGroupRow: typeof isGroupRow;
|
|
261
261
|
readonly isCellEditable: (column: Column<TData>, row?: Row<TData> | undefined) => boolean;
|
|
262
262
|
readonly isCellEditableAt: (rowIndex: number, colIndex: number) => boolean;
|
|
263
263
|
readonly sortDirectionByColumn: Record<string, false | "asc" | "desc">;
|
|
264
264
|
readonly groupingColumns: any;
|
|
265
|
-
readonly groupDisplayMode: import("./group-display").GroupDisplayType;
|
|
265
|
+
readonly groupDisplayMode: import("./group-display.js").GroupDisplayType;
|
|
266
266
|
readonly groupColumnMode: boolean;
|
|
267
267
|
readonly autoGroupCell: (row: Row<TData>, columnId: string) => {
|
|
268
268
|
label: string;
|
|
@@ -297,12 +297,12 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
297
297
|
readonly toolPanelHeaderLabel: typeof toolPanelHeaderLabel;
|
|
298
298
|
readonly toggleColumnVisibleInPanel: (columnId: string) => void;
|
|
299
299
|
readonly moveColumnInPanel: (columnId: string, dir: -1 | 1) => void;
|
|
300
|
-
readonly messages: import("./grid-messages").GridMessages;
|
|
301
|
-
readonly pivotConfig: import("./pivot-view.svelte").GridPivotConfig<TData> | null;
|
|
300
|
+
readonly messages: import("./grid-messages.js").GridMessages;
|
|
301
|
+
readonly pivotConfig: import("./pivot-view.svelte.js").GridPivotConfig<TData> | null;
|
|
302
302
|
readonly pivotActive: boolean;
|
|
303
303
|
readonly pivotResult: {
|
|
304
|
-
rows: import("./pivot-view.svelte").GridPivotRow[];
|
|
305
|
-
columns: ColumnDef<TableFeatures, import("./pivot-view.svelte").GridPivotRow>[];
|
|
304
|
+
rows: import("./pivot-view.svelte.js").GridPivotRow[];
|
|
305
|
+
columns: ColumnDef<TableFeatures, import("./pivot-view.svelte.js").GridPivotRow>[];
|
|
306
306
|
} | null;
|
|
307
307
|
readonly pivotModeOn: boolean;
|
|
308
308
|
readonly hasPivotEngine: boolean;
|
|
@@ -395,33 +395,33 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
395
395
|
lastFiltersSerialized: string;
|
|
396
396
|
readonly virtualizer: {
|
|
397
397
|
readonly version: number;
|
|
398
|
-
setOptions: (next: Partial<import("./index").VirtualizerOptions>) => void;
|
|
398
|
+
setOptions: (next: Partial<import("./index.js").VirtualizerOptions>) => void;
|
|
399
399
|
setScrollOffset: (scrollOffset: number) => void;
|
|
400
400
|
setViewportHeight: (viewportHeight: number) => void;
|
|
401
401
|
scrollToIndex: (index: number) => void;
|
|
402
|
-
getVirtualItems: () => import("./index").VirtualItem[];
|
|
402
|
+
getVirtualItems: () => import("./index.js").VirtualItem[];
|
|
403
403
|
getTotalSize: () => number;
|
|
404
404
|
getOffsetForIndex: (index: number) => number;
|
|
405
405
|
getSizeForIndex: (index: number) => number;
|
|
406
|
-
getState: () => import("./index").VirtualizerState;
|
|
406
|
+
getState: () => import("./index.js").VirtualizerState;
|
|
407
407
|
};
|
|
408
408
|
readonly columnVirtualizer: {
|
|
409
409
|
setViewportWidth(viewportWidth: number): void;
|
|
410
410
|
setHorizontalOffset(scrollOffset: number): void;
|
|
411
|
-
setOptions(next: Partial<import("./index").VirtualizerOptions>): void;
|
|
411
|
+
setOptions(next: Partial<import("./index.js").VirtualizerOptions>): void;
|
|
412
412
|
setScrollOffset(scrollOffset: number): void;
|
|
413
413
|
setViewportHeight(viewportHeight: number): void;
|
|
414
414
|
scrollToIndex(index: number): void;
|
|
415
|
-
getVirtualItems(): import("./index").VirtualItem[];
|
|
415
|
+
getVirtualItems(): import("./index.js").VirtualItem[];
|
|
416
416
|
getTotalSize(): number;
|
|
417
417
|
getOffsetForIndex(index: number): number;
|
|
418
418
|
getSizeForIndex(index: number): number;
|
|
419
|
-
getState(): import("./index").VirtualizerState;
|
|
419
|
+
getState(): import("./index.js").VirtualizerState;
|
|
420
420
|
subscribe(listener: () => void): () => boolean;
|
|
421
421
|
};
|
|
422
422
|
readonly rowVirtualizationEnabled: boolean;
|
|
423
423
|
readonly columnVirtualizationEnabled: boolean;
|
|
424
|
-
readonly virtualRows: import("./index").VirtualItem[];
|
|
424
|
+
readonly virtualRows: import("./index.js").VirtualItem[];
|
|
425
425
|
readonly autoRowHeightOn: boolean;
|
|
426
426
|
/** Svelte action: measure this row and report its natural height. */
|
|
427
427
|
readonly measureRowHeight: (node: HTMLElement, index: number) => {
|
|
@@ -441,9 +441,9 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
441
441
|
readonly rowBottomSpacer: number;
|
|
442
442
|
readonly domToLogicalRowOffset: (domTop: number) => number;
|
|
443
443
|
readonly logicalToDomRowOffset: (logical: number) => number;
|
|
444
|
-
readonly virtualColumns: import("./index").VirtualItem[];
|
|
444
|
+
readonly virtualColumns: import("./index.js").VirtualItem[];
|
|
445
445
|
readonly virtualColumnTotalSize: number;
|
|
446
|
-
readonly renderedColumnItems: import("./index").VirtualItem[] | {
|
|
446
|
+
readonly renderedColumnItems: import("./index.js").VirtualItem[] | {
|
|
447
447
|
index: number;
|
|
448
448
|
key: number;
|
|
449
449
|
size: any;
|
|
@@ -472,7 +472,7 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
472
472
|
readonly formatSummaryNumeric: typeof formatSummaryNumeric;
|
|
473
473
|
readonly computeSummaries: (rows: readonly Row<TData>[], columns: readonly Column<TData>[]) => Record<string, string>;
|
|
474
474
|
readonly SUMMARY_DEFER_CELL_LIMIT: number;
|
|
475
|
-
summaryByColumn: Record<string, string>;
|
|
475
|
+
readonly summaryByColumn: Record<string, string>;
|
|
476
476
|
hasMeasured: boolean;
|
|
477
477
|
scrollBottomArmed: boolean;
|
|
478
478
|
readonly onBodyScroll: (event: Event) => void;
|
|
@@ -601,7 +601,7 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
601
601
|
readonly updateFilterMenuValueTo: (columnId: string, valueTo: string) => void;
|
|
602
602
|
readonly toggleCheckboxWithKeyboard: (event: KeyboardEvent, toggle: () => void) => void;
|
|
603
603
|
readonly getColumnAccessorValue: typeof getColumnAccessorValue;
|
|
604
|
-
readonly fallbackOperatorOption: import("./SvGrid.types").FilterOption;
|
|
604
|
+
readonly fallbackOperatorOption: import("./SvGrid.types.js").FilterOption;
|
|
605
605
|
readonly operatorOption: typeof operatorOption;
|
|
606
606
|
readonly operatorsForColumn: typeof operatorsForColumn;
|
|
607
607
|
readonly defaultOperatorFor: typeof defaultOperatorFor;
|
|
@@ -647,6 +647,6 @@ export declare function createSvGridController<TFeatures extends TableFeatures =
|
|
|
647
647
|
readonly clearColumnFilter: (columnId: string) => void;
|
|
648
648
|
readonly onWindowKeydown: (event: KeyboardEvent) => void;
|
|
649
649
|
readonly columnDefMatchesId: typeof columnDefMatchesId;
|
|
650
|
-
readonly buildApi: () => import("./svgrid-wrapper.types").SvGridApi<TFeatures, TData>;
|
|
650
|
+
readonly buildApi: () => import("./svgrid-wrapper.types.js").SvGridApi<TFeatures, TData>;
|
|
651
651
|
apiNotified: boolean;
|
|
652
652
|
};
|