slick-table 1.1.54 → 1.1.55
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/index.cjs.js +55 -55
- package/dist/index.es.js +20517 -20515
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/shared/lib/slickgrid/ui/SlickgridTable/ui/SlickgridTable.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/entities/popup/ui/Popup.style.ts +1 -1
- package/src/index.ts +0 -4
- package/src/shared/lib/slickgrid/ui/SlickgridTable/ui/SlickgridTable.tsx +35 -26
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export { Skeleton } from './entities/skeleton';
|
|
2
|
-
export { PopupSummary } from './entities/popup-summary';
|
|
3
|
-
export { ColumnFilters } from './features/column-filters';
|
|
4
|
-
export { ContextMenu } from './features/context-menu';
|
|
5
|
-
export { HeaderContextMenu } from './features/header-context-menu';
|
|
6
2
|
export { Autocomplete, ColumnPicker, ColumnSorter, DecoratorColumnFilter, DecoratorFilter, DefaultHotKeys, DefaultPrinter, DeletedRowsFilter, EditorAutocomplete, FORMATTER_NUMBER, Filter, HotKeysDecorator, PreventCopying, RedoUndoOnly, SlickTable, SlickgridTable, TotalCalculator, WithSummary, WithoutHotKeys, columnIsEdited, columnCheckboxSelector, commitCurrentEdit, copySelectedRows, formatterGroupTotals, formatterCheckMark, getDisplayedRows, getFormatterNumber, getNextId, handleHeaderButtons, headerButtons, highlightCell, highlightColumns, hotKeysCopy, hotKeysDelete, hotKeysRedo, hotKeysUndo, openColumnFilter, openContextMenu, printerCheckMark, useListenIfTablesWereEdited, } from './shared/lib/slickgrid';
|
|
7
3
|
export { formatNumber } from './shared/lib/format';
|
|
8
4
|
export type { IColumn, IFilter, IFilterArguments, IFormatterNumberOptions, IHotKeysBehavior, IPrinter, ISlickTable, ITotalCalculator, } from './shared/model/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,eAAe,EACf,WAAW,EACX,cAAc,EACd,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,2BAA2B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACX,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,gBAAgB,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EACN,aAAa,EACb,mBAAmB,EACnB,SAAS,GACT,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlickgridTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/SlickgridTable/ui/SlickgridTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SlickgridTable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/shared/lib/slickgrid/ui/SlickgridTable/ui/SlickgridTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQ3B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAsDpC,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export { Skeleton } from "entities/skeleton";
|
|
2
|
-
export { PopupSummary } from "entities/popup-summary";
|
|
3
|
-
export { ColumnFilters } from "features/column-filters";
|
|
4
|
-
export { ContextMenu } from "features/context-menu";
|
|
5
|
-
export { HeaderContextMenu } from "features/header-context-menu";
|
|
6
2
|
export {
|
|
7
3
|
Autocomplete,
|
|
8
4
|
ColumnPicker,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
2
|
|
|
3
|
+
import { PopupSummary } from "entities/popup-summary";
|
|
4
|
+
|
|
5
|
+
import { ColumnFilters } from "features/column-filters";
|
|
6
|
+
import { ContextMenu } from "features/context-menu";
|
|
7
|
+
import { HeaderContextMenu } from "features/header-context-menu";
|
|
8
|
+
|
|
3
9
|
import { Props } from "../model";
|
|
4
10
|
import { Table } from "./Table";
|
|
5
11
|
|
|
@@ -27,33 +33,36 @@ export const SlickgridTable: FC<Props> = ({
|
|
|
27
33
|
options,
|
|
28
34
|
table,
|
|
29
35
|
}) => {
|
|
36
|
+
if (isLoading)
|
|
37
|
+
return <Styled.Skeleton animation="wave" variant={"rectangular"} />;
|
|
38
|
+
|
|
30
39
|
return (
|
|
31
|
-
<Styled.Wrapper>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
40
|
+
<Styled.Wrapper id={"slick-table"}>
|
|
41
|
+
<Table
|
|
42
|
+
SlickDataView={SlickDataView}
|
|
43
|
+
applyCellCssStyles={applyCellCssStyles}
|
|
44
|
+
assignIds={assignIds}
|
|
45
|
+
columnSorter={columnSorter}
|
|
46
|
+
columns={columns}
|
|
47
|
+
getItemMetadata={getItemMetadata}
|
|
48
|
+
groups={groups}
|
|
49
|
+
idPropertyName={idPropertyName}
|
|
50
|
+
items={items}
|
|
51
|
+
onAddNewRow={onAddNewRow}
|
|
52
|
+
onBeforeEditCell={onBeforeEditCell}
|
|
53
|
+
onCellChange={onCellChange}
|
|
54
|
+
onClick={onClick}
|
|
55
|
+
onDblClick={onDblClick}
|
|
56
|
+
onHeaderMenuCommand={onHeaderMenuCommand}
|
|
57
|
+
onRowCountChanged={onRowCountChanged}
|
|
58
|
+
onSelectedRowsChanged={onSelectedRowsChanged}
|
|
59
|
+
options={options}
|
|
60
|
+
table={table}
|
|
61
|
+
/>
|
|
62
|
+
<HeaderContextMenu />
|
|
63
|
+
<ColumnFilters />
|
|
64
|
+
<ContextMenu clientId={5} clientName={"BostonMart"} />
|
|
65
|
+
<PopupSummary />
|
|
57
66
|
</Styled.Wrapper>
|
|
58
67
|
);
|
|
59
68
|
};
|