@emamid/svelte-data-table 1.0.2 → 1.0.4
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/DataTable.svelte +3 -3
- package/dist/DataTable.svelte.d.ts +1 -1
- package/dist/DataTableDataCell.svelte +3 -3
- package/dist/DataTableDataCell.svelte.d.ts +1 -1
- package/dist/DataTableHeaderCell.svelte +3 -3
- package/dist/DataTableHeaderCell.svelte.d.ts +1 -1
- package/dist/DataTableIcon.svelte +1 -1
- package/dist/DataTableIcon.svelte.d.ts +1 -1
- package/dist/DataTableRow.svelte +3 -3
- package/dist/DataTableRow.svelte.d.ts +1 -1
- package/dist/cells/Actions.d.ts +1 -1
- package/dist/cells/ActionsCell.svelte +3 -3
- package/dist/cells/ActionsCell.svelte.d.ts +1 -1
- package/dist/cells/ButtonCell.svelte +3 -3
- package/dist/cells/ButtonCell.svelte.d.ts +1 -1
- package/dist/cells/CheckboxCell.svelte +3 -3
- package/dist/cells/CheckboxCell.svelte.d.ts +1 -1
- package/dist/cells/InputCell.svelte +3 -3
- package/dist/cells/InputCell.svelte.d.ts +1 -1
- package/dist/cells/MultiSelectCell.svelte +3 -3
- package/dist/cells/MultiSelectCell.svelte.d.ts +1 -1
- package/dist/cells/NumberInputCell.svelte +3 -3
- package/dist/cells/NumberInputCell.svelte.d.ts +1 -1
- package/dist/cells/RadioCell.svelte +3 -3
- package/dist/cells/RadioCell.svelte.d.ts +1 -1
- package/dist/cells/RangeCell.svelte +2 -2
- package/dist/cells/SelectCell.svelte +3 -3
- package/dist/cells/SelectCell.svelte.d.ts +1 -1
- package/dist/cells/SpinCell.svelte +3 -3
- package/dist/cells/SpinCell.svelte.d.ts +1 -1
- package/dist/cells/TabWrapper.svelte +1 -1
- package/dist/cells/TabWrapper.svelte.d.ts +1 -1
- package/dist/cells/index.d.ts +1 -1
- package/dist/cells/index.js +1 -1
- package/dist/common.d.ts +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/themes/active.d.ts +1 -1
- package/dist/themes/active.js +1 -1
- package/dist/themes/daisyUI.d.ts +1 -1
- package/dist/themes/default.d.ts +1 -1
- package/dist/themes/iconify.d.ts +1 -1
- package/dist/themes/index.d.ts +4 -4
- package/dist/themes/index.js +4 -4
- package/package.json +1 -1
package/dist/DataTable.svelte
CHANGED
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
RowDropEvent,
|
|
21
21
|
RowEvent,
|
|
22
22
|
SortFunction,
|
|
23
|
-
} from './common';
|
|
23
|
+
} from './common.ts';
|
|
24
24
|
|
|
25
25
|
import {
|
|
26
26
|
dataTableContextName,
|
|
27
27
|
getColumnID,
|
|
28
28
|
joinPartClasses,
|
|
29
|
-
} from './common';
|
|
29
|
+
} from './common.js';
|
|
30
30
|
|
|
31
|
-
import { activeTheme } from './themes';
|
|
31
|
+
import { activeTheme } from './themes/active.js';
|
|
32
32
|
|
|
33
33
|
import DataTableHeaderCell from './DataTableHeaderCell.svelte';
|
|
34
34
|
import DataTableRow from './DataTableRow.svelte';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataTableTheme, EnterAction, HeaderEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent, SortFunction } from './common';
|
|
1
|
+
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataTableTheme, EnterAction, HeaderEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent, SortFunction } from './common.ts';
|
|
2
2
|
interface Props {
|
|
3
3
|
allowRowDrag?: RowBoolean;
|
|
4
4
|
allowRowDrop?: RowDropBoolean;
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
DataCellDropEvent,
|
|
8
8
|
DataCellEvent,
|
|
9
9
|
DataCellMouseEvent,
|
|
10
|
-
} from './common';
|
|
10
|
+
} from './common.js';
|
|
11
11
|
import {
|
|
12
12
|
defaultCellRenderer,
|
|
13
13
|
evalCellDropBoolean,
|
|
14
14
|
evalRowBoolean,
|
|
15
15
|
getDataTableContext,
|
|
16
16
|
joinPartClasses,
|
|
17
|
-
} from './common';
|
|
18
|
-
import { activeTheme } from './themes/active';
|
|
17
|
+
} from './common.ts';
|
|
18
|
+
import { activeTheme } from './themes/active.js';
|
|
19
19
|
|
|
20
20
|
interface Props {
|
|
21
21
|
column: ColumnConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent } from './common';
|
|
1
|
+
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent } from './common.js';
|
|
2
2
|
interface Props {
|
|
3
3
|
column: ColumnConfig;
|
|
4
4
|
item: any;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
getPartIcon,
|
|
5
5
|
joinPartClasses,
|
|
6
|
-
} from './common';
|
|
7
|
-
import type { ColumnConfig } from './common';
|
|
8
|
-
import { activeTheme } from './themes/active';
|
|
6
|
+
} from './common.js';
|
|
7
|
+
import type { ColumnConfig } from './common.ts';
|
|
8
|
+
import { activeTheme } from './themes/active.js';
|
|
9
9
|
|
|
10
10
|
import DataTableIcon from './DataTableIcon.svelte';
|
|
11
11
|
|
package/dist/DataTableRow.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { activeTheme } from './themes/active';
|
|
2
|
+
import { activeTheme } from './themes/active.js';
|
|
3
3
|
import DataTableDataCell from './DataTableDataCell.svelte';
|
|
4
4
|
import {
|
|
5
5
|
evalRowDropBoolean,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
getColumnID,
|
|
8
8
|
getDataTableContext,
|
|
9
9
|
joinPartClasses,
|
|
10
|
-
} from './common';
|
|
10
|
+
} from './common.js';
|
|
11
11
|
import type {
|
|
12
12
|
ActionEvent,
|
|
13
13
|
ColumnConfig,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
RowDropBoolean,
|
|
23
23
|
RowDropEvent,
|
|
24
24
|
RowEvent,
|
|
25
|
-
} from './common';
|
|
25
|
+
} from './common.ts';
|
|
26
26
|
|
|
27
27
|
interface Props {
|
|
28
28
|
allowRowDrag: RowBoolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent } from './common';
|
|
1
|
+
import type { ActionEvent, ColumnConfig, DataCellChangedEvent, DataCellDragEvent, DataCellDropEvent, DataCellEvent, DataCellMouseEvent, RowBoolean, RowClassFunction, RowDragEvent, RowDropBoolean, RowDropEvent, RowEvent } from './common.ts';
|
|
2
2
|
interface Props {
|
|
3
3
|
allowRowDrag: RowBoolean;
|
|
4
4
|
allowRowDrop: RowDropBoolean;
|
package/dist/cells/Actions.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
Action,
|
|
8
8
|
ActionEvent,
|
|
9
9
|
ColumnConfig,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import DataTableIcon from '../DataTableIcon.svelte';
|
|
14
14
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellEvent,
|
|
9
9
|
IconProp,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import DataTableIcon from '../DataTableIcon.svelte';
|
|
14
14
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellChangedEvent,
|
|
9
|
-
} from '../common';
|
|
10
|
-
import { activeTheme } from '../themes/active';
|
|
9
|
+
} from '../common.ts';
|
|
10
|
+
import { activeTheme } from '../themes/active.js';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
13
13
|
caption?: string;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellChangedEvent,
|
|
9
9
|
DataCellEvent,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import TabWrapper from './TabWrapper.svelte';
|
|
14
14
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellChangedEvent,
|
|
9
9
|
DataCellEvent,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import TabWrapper from './TabWrapper.svelte';
|
|
14
14
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
6
|
-
import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common';
|
|
7
|
-
import { activeTheme } from '../themes/active';
|
|
5
|
+
} from '../common.js';
|
|
6
|
+
import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.ts';
|
|
7
|
+
import { activeTheme } from '../themes/active.js';
|
|
8
8
|
|
|
9
9
|
import TabWrapper from './TabWrapper.svelte';
|
|
10
10
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import {
|
|
4
4
|
getDataTableContext,
|
|
5
5
|
joinInputClasses,
|
|
6
|
-
} from '../common';
|
|
6
|
+
} from '../common.js';
|
|
7
7
|
import type {
|
|
8
8
|
ColumnConfig,
|
|
9
9
|
DataCellChangedEvent,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
interface Props {
|
|
14
14
|
column: ColumnConfig;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellChangedEvent,
|
|
9
9
|
} from '../common.ts';
|
|
10
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
import { activeTheme } from '../themes/active.js';
|
|
11
11
|
|
|
12
12
|
interface Props {
|
|
13
13
|
caption?: string;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
joinInputClasses,
|
|
5
|
-
} from '../common';
|
|
5
|
+
} from '../common.js';
|
|
6
6
|
import type {
|
|
7
7
|
ColumnConfig,
|
|
8
8
|
DataCellChangedEvent,
|
|
9
9
|
DataCellEvent,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import TabWrapper from './TabWrapper.svelte';
|
|
14
14
|
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
getDataTableContext,
|
|
4
4
|
getInputIcon,
|
|
5
5
|
joinInputClasses,
|
|
6
|
-
} from '../common';
|
|
6
|
+
} from '../common.js';
|
|
7
7
|
import type {
|
|
8
8
|
ColumnConfig,
|
|
9
9
|
DataCellChangedEvent,
|
|
10
|
-
} from '../common';
|
|
11
|
-
import { activeTheme } from '../themes/active';
|
|
10
|
+
} from '../common.ts';
|
|
11
|
+
import { activeTheme } from '../themes/active.js';
|
|
12
12
|
|
|
13
13
|
import DataTableIcon from '../DataTableIcon.svelte';
|
|
14
14
|
|
package/dist/cells/index.d.ts
CHANGED
package/dist/cells/index.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { default as DataTableDataCell } from './DataTableDataCell.svelte';
|
|
|
4
4
|
export { default as DataTableHeaderCell } from './DataTableHeaderCell.svelte';
|
|
5
5
|
export { default as DataTableIcon } from './DataTableIcon.svelte';
|
|
6
6
|
export { default as DataTableRow } from './DataTableRow.svelte';
|
|
7
|
-
export * from './common.
|
|
8
|
-
export * from './cells/index.
|
|
9
|
-
export * from './themes/index.
|
|
7
|
+
export * from './common.js';
|
|
8
|
+
export * from './cells/index.js';
|
|
9
|
+
export * from './themes/index.js';
|
|
10
10
|
export default DataTable;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { default as DataTableDataCell } from './DataTableDataCell.svelte';
|
|
|
4
4
|
export { default as DataTableHeaderCell } from './DataTableHeaderCell.svelte';
|
|
5
5
|
export { default as DataTableIcon } from './DataTableIcon.svelte';
|
|
6
6
|
export { default as DataTableRow } from './DataTableRow.svelte';
|
|
7
|
-
export * from './common.
|
|
8
|
-
export * from './cells/index.
|
|
9
|
-
export * from './themes/index.
|
|
7
|
+
export * from './common.js';
|
|
8
|
+
export * from './cells/index.js';
|
|
9
|
+
export * from './themes/index.js';
|
|
10
10
|
export default DataTable;
|
package/dist/themes/active.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataTableTheme } from '../common';
|
|
1
|
+
import type { DataTableTheme } from '../common.js';
|
|
2
2
|
export declare let activeTheme: DataTableTheme;
|
|
3
3
|
export declare const mergeThemes: (themes: DataTableTheme | DataTableTheme[]) => DataTableTheme;
|
|
4
4
|
export declare const setActiveTheme: (themes: DataTableTheme | DataTableTheme[]) => DataTableTheme;
|
package/dist/themes/active.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { merge } from 'lodash';
|
|
2
|
-
import { defaultTheme } from './default';
|
|
2
|
+
import { defaultTheme } from './default.js';
|
|
3
3
|
export let activeTheme = defaultTheme;
|
|
4
4
|
export const mergeThemes = (themes) => {
|
|
5
5
|
return (Array.isArray(themes) ? themes : [themes]).reduce((processedThemes, theme) => {
|
package/dist/themes/daisyUI.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataTableTheme } from '../common';
|
|
1
|
+
import type { DataTableTheme } from '../common.js';
|
|
2
2
|
export declare const daisyUITheme: DataTableTheme;
|
package/dist/themes/default.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataTableTheme } from '../common';
|
|
1
|
+
import type { DataTableTheme } from '../common.js';
|
|
2
2
|
export declare const defaultTheme: DataTableTheme;
|
package/dist/themes/iconify.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataTableTheme } from '../common';
|
|
1
|
+
import type { DataTableTheme } from '../common.js';
|
|
2
2
|
export declare const iconifyTheme: DataTableTheme;
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './active.
|
|
2
|
-
export * from './default.
|
|
3
|
-
export * from './daisyUI.
|
|
4
|
-
export * from './iconify.
|
|
1
|
+
export * from './active.js';
|
|
2
|
+
export * from './default.js';
|
|
3
|
+
export * from './daisyUI.js';
|
|
4
|
+
export * from './iconify.js';
|
package/dist/themes/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './active.
|
|
2
|
-
export * from './default.
|
|
3
|
-
export * from './daisyUI.
|
|
4
|
-
export * from './iconify.
|
|
1
|
+
export * from './active.js';
|
|
2
|
+
export * from './default.js';
|
|
3
|
+
export * from './daisyUI.js';
|
|
4
|
+
export * from './iconify.js';
|