@bigbinary/neeto-atoms 1.0.122 → 1.0.124
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-DI4qPCmM.js → DataTable-288mhy24.js} +4864 -167
- package/dist/DataTable-288mhy24.js.map +1 -0
- package/dist/cjs/{DataTable-Cu5Gon12.js → DataTable-dKha6uAk.js} +4863 -166
- package/dist/cjs/DataTable-dKha6uAk.js.map +1 -0
- package/dist/cjs/components/DataTable.js +3 -2
- package/dist/cjs/components/DataTable.js.map +1 -1
- package/dist/cjs/components/index.js +2 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/DataTable/components/SortableColumnLabel.d.ts +8 -0
- package/dist/components/DataTable/hooks/useColumnDrag.d.ts +11 -0
- package/dist/components/DataTable/hooks/useColumnOrdering.d.ts +2 -2
- package/dist/components/DataTable.js +3 -2
- package/dist/components/DataTable.js.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/DataTable-DI4qPCmM.js.map +0 -1
- package/dist/cjs/DataTable-Cu5Gon12.js.map +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DataTable = require('../DataTable-
|
|
3
|
+
var DataTable = require('../DataTable-dKha6uAk.js');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
require('ramda');
|
|
6
8
|
require('../primitives/Table.js');
|
|
7
9
|
require('../utils-BhM0B89p.js');
|
|
8
10
|
require('../hyphenize-BTrVNVv3.js');
|
|
@@ -20,7 +22,6 @@ require('../index-CF951Pw9.js');
|
|
|
20
22
|
require('../index-Bf0WsHta.js');
|
|
21
23
|
require('../index-DcCSSgb7.js');
|
|
22
24
|
require('../index-DMbj7vXd.js');
|
|
23
|
-
require('react-dom');
|
|
24
25
|
require('../primitives/Spinner.js');
|
|
25
26
|
require('../loader-circle-Bw7zP2Gn.js');
|
|
26
27
|
require('../primitives/Button.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,7 +9,7 @@ var Badge = require('../Badge-DPGWAq4H.js');
|
|
|
9
9
|
var Callout = require('../Callout-Bci3POCo.js');
|
|
10
10
|
var Checkbox = require('../Checkbox-83g1FDsc.js');
|
|
11
11
|
var ColorPicker = require('../ColorPicker-rhCnblTv.js');
|
|
12
|
-
var DataTable = require('../DataTable-
|
|
12
|
+
var DataTable = require('../DataTable-dKha6uAk.js');
|
|
13
13
|
var DatePicker = require('../DatePicker-ErDXIHLu.js');
|
|
14
14
|
var Dialog = require('../Dialog-ZUHGaoAE.js');
|
|
15
15
|
var Empty = require('../Empty-DGvhPdiG.js');
|
|
@@ -107,6 +107,7 @@ require('../HelpIcon-fsWWgStQ.js');
|
|
|
107
107
|
require('../label-BdcX4_ud.js');
|
|
108
108
|
require('react-colorful');
|
|
109
109
|
require('../primitives/Popover.js');
|
|
110
|
+
require('ramda');
|
|
110
111
|
require('../primitives/Table.js');
|
|
111
112
|
require('../primitives/Pagination.js');
|
|
112
113
|
require('../chevron-left-BldoOh5p.js');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var Button = require('./Button-BQ4rpzsl.js');
|
|
|
13
13
|
var Callout = require('./Callout-Bci3POCo.js');
|
|
14
14
|
var Checkbox = require('./Checkbox-83g1FDsc.js');
|
|
15
15
|
var ColorPicker = require('./ColorPicker-rhCnblTv.js');
|
|
16
|
-
var DataTable = require('./DataTable-
|
|
16
|
+
var DataTable = require('./DataTable-dKha6uAk.js');
|
|
17
17
|
var DatePicker = require('./DatePicker-ErDXIHLu.js');
|
|
18
18
|
var Dialog = require('./Dialog-ZUHGaoAE.js');
|
|
19
19
|
var DirectionProvider = require('./DirectionProvider-BTtE4FcN.js');
|
|
@@ -109,6 +109,7 @@ require('./HelpIcon-fsWWgStQ.js');
|
|
|
109
109
|
require('./label-BdcX4_ud.js');
|
|
110
110
|
require('react-colorful');
|
|
111
111
|
require('./primitives/Popover.js');
|
|
112
|
+
require('ramda');
|
|
112
113
|
require('./primitives/Table.js');
|
|
113
114
|
require('./primitives/Pagination.js');
|
|
114
115
|
require('./chevron-left-BldoOh5p.js');
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":["dayjs"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":["dayjs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,0BAAA,GAA6B,CACxC,aAAA,KACoC;AACpC,EAAA,MAAM,KAAA,GAAQ,CAAC,IAAA,KACb,IAAA,IAAQ,OAAO,IAAA,CAAK,MAAA,KAAW,UAAA,GAC3BA,aAAA,CAAM,IAAA,CAAK,MAAA,CAAO,qBAAqB,CAAC,CAAA,GACxC,IAAA;AAEN,EAAA,OAAO,KAAA,CAAM,QAAQ,aAAa,CAAA,GAC9B,cAAc,GAAA,CAAI,KAAK,CAAA,GACvB,KAAA,CAAM,aAAa,CAAA;AACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
interface SortableColumnLabelProps {
|
|
3
|
+
id: string;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const SortableColumnLabel: ({ id, disabled, children, }: SortableColumnLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type CollisionDetection, type DragEndEvent } from "@dnd-kit/core";
|
|
2
|
+
interface UseColumnDragOptions {
|
|
3
|
+
availableColumnIds: string[];
|
|
4
|
+
onReorder: (fromId: string, toId: string, availableColumnIds: string[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const useColumnDrag: ({ availableColumnIds, onReorder, }: UseColumnDragOptions) => {
|
|
7
|
+
sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
8
|
+
collisionDetection: CollisionDetection;
|
|
9
|
+
handleDragEnd: ({ active, over }: DragEndEvent) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -7,7 +7,7 @@ interface UseColumnOrderingOptions {
|
|
|
7
7
|
export declare const useColumnOrdering: ({ enabled, columnOrder: controlledOrder, onColumnOrderChange: controlledOnChange, }: UseColumnOrderingOptions) => {
|
|
8
8
|
columnOrder: ColumnOrderState;
|
|
9
9
|
onColumnOrderChange: OnChangeFn<ColumnOrderState>;
|
|
10
|
-
moveColumn: (columnId: string, direction: -1 | 1) => void;
|
|
11
|
-
reorderColumn: (fromId: string, toId: string) => void;
|
|
10
|
+
moveColumn: (columnId: string, direction: -1 | 1, availableColumnIds?: string[]) => void;
|
|
11
|
+
reorderColumn: (fromId: string, toId: string, availableColumnIds?: string[]) => void;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
1
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-288mhy24.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
|
+
import 'react-dom';
|
|
5
|
+
import 'ramda';
|
|
4
6
|
import '../primitives/Table.js';
|
|
5
7
|
import '../utils-BJnb9o5c.js';
|
|
6
8
|
import '../hyphenize-TRhMI0tl.js';
|
|
@@ -18,7 +20,6 @@ import '../index-30QpKM0j.js';
|
|
|
18
20
|
import '../index-BYZaLNq1.js';
|
|
19
21
|
import '../index-yFgkK_AM.js';
|
|
20
22
|
import '../index-DhnfW8wQ.js';
|
|
21
|
-
import 'react-dom';
|
|
22
23
|
import '../primitives/Spinner.js';
|
|
23
24
|
import '../loader-circle-DycHUAWN.js';
|
|
24
25
|
import '../primitives/Button.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTable.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/components/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { B as Badge } from '../Badge-Bl5cyQ5Q.js';
|
|
|
7
7
|
export { C as Callout } from '../Callout-DJGi3MQR.js';
|
|
8
8
|
export { C as Checkbox } from '../Checkbox-BalUzegZ.js';
|
|
9
9
|
export { C as ColorPicker } from '../ColorPicker-ClnRUq9y.js';
|
|
10
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
10
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-288mhy24.js';
|
|
11
11
|
export { D as DatePicker } from '../DatePicker-Ds_csFkl.js';
|
|
12
12
|
export { D as Dialog } from '../Dialog-Yw34WDqY.js';
|
|
13
13
|
export { E as Empty } from '../Empty-XqdCD2dj.js';
|
|
@@ -105,6 +105,7 @@ import '../HelpIcon-CB6wsVSF.js';
|
|
|
105
105
|
import '../label-YEsizr2c.js';
|
|
106
106
|
import 'react-colorful';
|
|
107
107
|
import '../primitives/Popover.js';
|
|
108
|
+
import 'ramda';
|
|
108
109
|
import '../primitives/Table.js';
|
|
109
110
|
import '../primitives/Pagination.js';
|
|
110
111
|
import '../chevron-left-BDoT8E2-.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export { b as Button } from './Button-ZssOVkG0.js';
|
|
|
12
12
|
export { C as Callout } from './Callout-DJGi3MQR.js';
|
|
13
13
|
export { C as Checkbox } from './Checkbox-BalUzegZ.js';
|
|
14
14
|
export { C as ColorPicker } from './ColorPicker-ClnRUq9y.js';
|
|
15
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-
|
|
15
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-288mhy24.js';
|
|
16
16
|
export { D as DatePicker } from './DatePicker-Ds_csFkl.js';
|
|
17
17
|
export { D as Dialog } from './Dialog-Yw34WDqY.js';
|
|
18
18
|
export { D as DirectionProvider } from './DirectionProvider-weqLz_BJ.js';
|
|
@@ -108,6 +108,7 @@ import './HelpIcon-CB6wsVSF.js';
|
|
|
108
108
|
import './label-YEsizr2c.js';
|
|
109
109
|
import 'react-colorful';
|
|
110
110
|
import './primitives/Popover.js';
|
|
111
|
+
import 'ramda';
|
|
111
112
|
import './primitives/Table.js';
|
|
112
113
|
import './primitives/Pagination.js';
|
|
113
114
|
import './chevron-left-BDoT8E2-.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,0BAAA,GAA6B,CACxC,aAAA,KACoC;AACpC,EAAA,MAAM,KAAA,GAAQ,CAAC,IAAA,KACb,IAAA,IAAQ,OAAO,IAAA,CAAK,MAAA,KAAW,UAAA,GAC3B,KAAA,CAAM,IAAA,CAAK,MAAA,CAAO,qBAAqB,CAAC,CAAA,GACxC,IAAA;AAEN,EAAA,OAAO,KAAA,CAAM,QAAQ,aAAa,CAAA,GAC9B,cAAc,GAAA,CAAI,KAAK,CAAA,GACvB,KAAA,CAAM,aAAa,CAAA;AACzB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-atoms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.124",
|
|
4
4
|
"author": "BigBinary",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -77,6 +77,9 @@
|
|
|
77
77
|
"@base-ui/react": "^1.3.0",
|
|
78
78
|
"@bigbinary/neeto-commons-frontend": "4.13.113",
|
|
79
79
|
"@chromatic-com/storybook": "^5.0.1",
|
|
80
|
+
"@dnd-kit/core": "6.3.1",
|
|
81
|
+
"@dnd-kit/sortable": "10.0.0",
|
|
82
|
+
"@dnd-kit/utilities": "3.2.2",
|
|
80
83
|
"@fontsource-variable/geist": "^5.2.8",
|
|
81
84
|
"@hookform/resolvers": "^5.2.2",
|
|
82
85
|
"@radix-ui/react-accordion": "^1.2.12",
|