@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.
Files changed (45) hide show
  1. package/dist/DataTable.svelte +3 -3
  2. package/dist/DataTable.svelte.d.ts +1 -1
  3. package/dist/DataTableDataCell.svelte +3 -3
  4. package/dist/DataTableDataCell.svelte.d.ts +1 -1
  5. package/dist/DataTableHeaderCell.svelte +3 -3
  6. package/dist/DataTableHeaderCell.svelte.d.ts +1 -1
  7. package/dist/DataTableIcon.svelte +1 -1
  8. package/dist/DataTableIcon.svelte.d.ts +1 -1
  9. package/dist/DataTableRow.svelte +3 -3
  10. package/dist/DataTableRow.svelte.d.ts +1 -1
  11. package/dist/cells/Actions.d.ts +1 -1
  12. package/dist/cells/ActionsCell.svelte +3 -3
  13. package/dist/cells/ActionsCell.svelte.d.ts +1 -1
  14. package/dist/cells/ButtonCell.svelte +3 -3
  15. package/dist/cells/ButtonCell.svelte.d.ts +1 -1
  16. package/dist/cells/CheckboxCell.svelte +3 -3
  17. package/dist/cells/CheckboxCell.svelte.d.ts +1 -1
  18. package/dist/cells/InputCell.svelte +3 -3
  19. package/dist/cells/InputCell.svelte.d.ts +1 -1
  20. package/dist/cells/MultiSelectCell.svelte +3 -3
  21. package/dist/cells/MultiSelectCell.svelte.d.ts +1 -1
  22. package/dist/cells/NumberInputCell.svelte +3 -3
  23. package/dist/cells/NumberInputCell.svelte.d.ts +1 -1
  24. package/dist/cells/RadioCell.svelte +3 -3
  25. package/dist/cells/RadioCell.svelte.d.ts +1 -1
  26. package/dist/cells/RangeCell.svelte +2 -2
  27. package/dist/cells/SelectCell.svelte +3 -3
  28. package/dist/cells/SelectCell.svelte.d.ts +1 -1
  29. package/dist/cells/SpinCell.svelte +3 -3
  30. package/dist/cells/SpinCell.svelte.d.ts +1 -1
  31. package/dist/cells/TabWrapper.svelte +1 -1
  32. package/dist/cells/TabWrapper.svelte.d.ts +1 -1
  33. package/dist/cells/index.d.ts +1 -1
  34. package/dist/cells/index.js +1 -1
  35. package/dist/common.d.ts +1 -0
  36. package/dist/index.d.ts +3 -3
  37. package/dist/index.js +3 -3
  38. package/dist/themes/active.d.ts +1 -1
  39. package/dist/themes/active.js +1 -1
  40. package/dist/themes/daisyUI.d.ts +1 -1
  41. package/dist/themes/default.d.ts +1 -1
  42. package/dist/themes/iconify.d.ts +1 -1
  43. package/dist/themes/index.d.ts +4 -4
  44. package/dist/themes/index.js +4 -4
  45. package/package.json +1 -1
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig } from './common';
1
+ import type { ColumnConfig } from './common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  isSorted?: boolean;
@@ -2,7 +2,7 @@
2
2
  import type { Component } from 'svelte';
3
3
  import Icon from '@iconify/svelte';
4
4
 
5
- import type { IconifyProps, IconProp } from './common';
5
+ import type { IconifyProps, IconProp } from './common.ts';
6
6
 
7
7
  interface Props {
8
8
  classes?: string;
@@ -1,5 +1,5 @@
1
1
  import type { Component } from 'svelte';
2
- import type { IconProp } from './common';
2
+ import type { IconProp } from './common.ts';
3
3
  interface Props {
4
4
  classes?: string;
5
5
  icon: IconProp;
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { Action } from '../common';
1
+ import type { Action } from '../common.ts';
2
2
  /**
3
3
  * @constant bookmarkAction
4
4
  * @type {Action}
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { Action, ActionEvent, ColumnConfig } from '../common';
1
+ import type { Action, ActionEvent, ColumnConfig } from '../common.ts';
2
2
  interface Props {
3
3
  actions?: Action[];
4
4
  column: ColumnConfig;
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellEvent, IconProp } from '../common';
1
+ import type { ColumnConfig, DataCellEvent, IconProp } from '../common.ts';
2
2
  interface Props {
3
3
  caption?: string;
4
4
  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
- } 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;
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent } from '../common.ts';
2
2
  interface Props {
3
3
  caption?: string;
4
4
  column: ColumnConfig;
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  inputType?: 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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  item: any;
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  item: any;
@@ -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;
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  item: any;
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent, DataCellEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  item: any;
@@ -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
 
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellChangedEvent } from '../common';
1
+ import type { ColumnConfig, DataCellChangedEvent } from '../common.ts';
2
2
  interface Props {
3
3
  column: ColumnConfig;
4
4
  decValue?: number;
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { ColumnConfig, DataCellEvent } from '../common';
2
+ import type { ColumnConfig, DataCellEvent } from '../common.js';
3
3
 
4
4
  interface Props {
5
5
  item: any;
@@ -1,4 +1,4 @@
1
- import type { ColumnConfig, DataCellEvent } from '../common';
1
+ import type { ColumnConfig, DataCellEvent } from '../common.js';
2
2
  interface Props {
3
3
  item: any;
4
4
  column: ColumnConfig;
@@ -1,4 +1,4 @@
1
- export * from './Actions.ts';
1
+ export * from './Actions.js';
2
2
  export * from './ActionsCell.svelte';
3
3
  export { default as ActionsCell } from './ActionsCell.svelte';
4
4
  export * from './ButtonCell.svelte';
@@ -1,4 +1,4 @@
1
- export * from './Actions.ts';
1
+ export * from './Actions.js';
2
2
  export * from './ActionsCell.svelte';
3
3
  export { default as ActionsCell } from './ActionsCell.svelte';
4
4
  export * from './ButtonCell.svelte';
package/dist/common.d.ts CHANGED
@@ -194,6 +194,7 @@ type Inputs = {
194
194
  spinner?: Spinner;
195
195
  };
196
196
  export type DataTableColumnTheme = {
197
+ inputs?: Inputs;
197
198
  parts?: ColumnParts;
198
199
  };
199
200
  export type DataTableTheme = {
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.ts';
8
- export * from './cells/index.ts';
9
- export * from './themes/index.ts';
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.ts';
8
- export * from './cells/index.ts';
9
- export * from './themes/index.ts';
7
+ export * from './common.js';
8
+ export * from './cells/index.js';
9
+ export * from './themes/index.js';
10
10
  export default DataTable;
@@ -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;
@@ -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) => {
@@ -1,2 +1,2 @@
1
- import type { DataTableTheme } from '../common';
1
+ import type { DataTableTheme } from '../common.js';
2
2
  export declare const daisyUITheme: DataTableTheme;
@@ -1,2 +1,2 @@
1
- import type { DataTableTheme } from '../common';
1
+ import type { DataTableTheme } from '../common.js';
2
2
  export declare const defaultTheme: DataTableTheme;
@@ -1,2 +1,2 @@
1
- import type { DataTableTheme } from '../common';
1
+ import type { DataTableTheme } from '../common.js';
2
2
  export declare const iconifyTheme: DataTableTheme;
@@ -1,4 +1,4 @@
1
- export * from './active.ts';
2
- export * from './default.ts';
3
- export * from './daisyUI.ts';
4
- export * from './iconify.ts';
1
+ export * from './active.js';
2
+ export * from './default.js';
3
+ export * from './daisyUI.js';
4
+ export * from './iconify.js';
@@ -1,4 +1,4 @@
1
- export * from './active.ts';
2
- export * from './default.ts';
3
- export * from './daisyUI.ts';
4
- export * from './iconify.ts';
1
+ export * from './active.js';
2
+ export * from './default.js';
3
+ export * from './daisyUI.js';
4
+ export * from './iconify.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emamid/svelte-data-table",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "homepage": "https://github.com/emamid/svelte-data-table",
5
5
  "repository": "github:emamid/svelte-data-table",
6
6
  "scripts": {