@pibit.ai/cure-design-system 0.3.26 → 0.3.30
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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +96 -91
- package/dist/patterns/table/TableWrapper.d.ts +1 -1
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +897 -542
- package/dist/patterns/table/cellRangeSelection.d.ts +64 -0
- package/dist/patterns/table/cellRangeSelection.d.ts.map +1 -0
- package/dist/patterns/table/cellRangeSelection.js +150 -0
- package/dist/patterns/table/cellRangeSelection.test.d.ts +2 -0
- package/dist/patterns/table/cellRangeSelection.test.d.ts.map +1 -0
- package/dist/patterns/table/index.d.ts +3 -2
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/rowReorderDrag.d.ts +70 -0
- package/dist/patterns/table/rowReorderDrag.d.ts.map +1 -0
- package/dist/patterns/table/rowReorderDrag.js +151 -0
- package/dist/patterns/table/rowReorderDrag.test.d.ts +2 -0
- package/dist/patterns/table/rowReorderDrag.test.d.ts.map +1 -0
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +36 -36
- package/dist/patterns/table/tableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/tableUndoRedo.js +21 -18
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts +17 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.js +69 -51
- package/dist/patterns/table/types.d.ts +29 -0
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.d.ts +9 -0
- package/dist/patterns/table/useTableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.js +217 -127
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +16 -16
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +2 -1
- package/dist/primitives/select/SearchInput.d.ts +7 -7
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +66 -62
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { Shimmer, ShimmerLine, ShimmerCircle, ShimmerBox } from './primitives/sh
|
|
|
15
15
|
export { Snackbar, type SnackbarProps } from './primitives/snackbar';
|
|
16
16
|
export { MultiChipsSelect, type MultiChipsSelectProps, type SelectOption, tagKeyFromLabel, } from './primitives/multi-chips-select';
|
|
17
17
|
export { ScheduleCalendar, WEEKDAYS, formatHour, formatHourLabel, schedulesToCellSet, cellSetToSchedules, mergeHoursToWindows, type WeekdayKey, type ScheduleWindow, type DaySchedule, type ScheduleCalendarProps, } from './applications/schedule-calendar';
|
|
18
|
-
export { Table, TableCard, TableCell, TableRowActionsDropdown, TableWrapper, type TableWrapperProps, type TableWrapperPaginationConfig, type TableWrapperToolbarConfig, type BulkActionContext, type TableWrapperEditChrome, type TableWrapperSelectedKeys, type TableWrapperSelectionChange, type ColumnConfig, TablePagination, type TablePaginationConfig, type TablePaginationProps, PaginationCardDefault, Pagination, ROW_HEIGHT_ICONS, type RowHeightIconKey, TOOLBAR_ICONS, type TableColumnSchema, type TableColumnMenuSchema, type TableColumnValueType, TableToolbar, pickCoreToolbarProps, registerToolbarExtensions, getToolbarExtensions, type ToolbarExtensionComponents, type SortToolConfig, type FilterToolConfig, type LegacySortToolConfig, type LegacyFilterToolConfig, RowHeightDropdown, HideFieldsDropdown, AlignDropdown, GroupByDropdown, ShowSummaryDropdown, SummaryFooterRow, ColumnHeaderMenu, RowActionsMenu, BulkActionBar, applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, ROW_HEIGHT_CLASS, AGGREGATION_LABELS, type SearchToolConfig, type RowHeightToolConfig, type HideFieldsToolConfig, type AlignToolConfig, type GroupByToolConfig, type SummaryToolConfig, type UndoRedoToolConfig, type RowHeightOption, type SummaryFooterRowProps, type ColumnMenuAction, type ColumnMenuCapabilities, type RowActionsConfig, type CellAlignment, type AggregationType, type AggregationOption, type RowGroup, GridNavProvider, useGridKeyboardNavigation, isWithinCellEditor, findGridCell, focusGridCell, getGridNeighbor, getGridTabNeighbor, type GridNavDirection, type GridNeighbor, type GridNavValue, TableUndoRedoProvider, useTableUndoRedo, useTableUndoRedoScope, useIntegrateTableUndoRedo, type IntegrateTableUndoRedoOptions, type IntegrateTableUndoRedoResult, type TableUndoRedoRegistration, type TableUndoRedoScopeApi, type TableUndoRedoState, type TableUndoSnapshot, captureTableUndoSnapshot, applyTableUndoSnapshot, wrapColumnHeaderActionWithUndoRedo, wrapEditChromeWithUndoRedo, wrapRowActionsWithUndoRedo, wrapSummaryFooterWithUndoRedo, wrapToolbarWithUndoRedo, } from './patterns/table';
|
|
18
|
+
export { Table, TableCard, TableCell, TableRowActionsDropdown, TableWrapper, type TableWrapperProps, type TableWrapperPaginationConfig, type TableWrapperToolbarConfig, type BulkActionContext, type TableWrapperEditChrome, type TableWrapperSelectedKeys, type TableWrapperSelectionChange, type ColumnConfig, type TableCellCoord, type TableCellRangeRect, type TableCellSelection, TablePagination, type TablePaginationConfig, type TablePaginationProps, PaginationCardDefault, Pagination, ROW_HEIGHT_ICONS, type RowHeightIconKey, TOOLBAR_ICONS, type TableColumnSchema, type TableColumnMenuSchema, type TableColumnValueType, TableToolbar, pickCoreToolbarProps, registerToolbarExtensions, getToolbarExtensions, type ToolbarExtensionComponents, type SortToolConfig, type FilterToolConfig, type LegacySortToolConfig, type LegacyFilterToolConfig, RowHeightDropdown, HideFieldsDropdown, AlignDropdown, GroupByDropdown, ShowSummaryDropdown, SummaryFooterRow, ColumnHeaderMenu, RowActionsMenu, BulkActionBar, applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, ROW_HEIGHT_CLASS, AGGREGATION_LABELS, type SearchToolConfig, type RowHeightToolConfig, type HideFieldsToolConfig, type AlignToolConfig, type GroupByToolConfig, type SummaryToolConfig, type UndoRedoToolConfig, type RowHeightOption, type SummaryFooterRowProps, type ColumnMenuAction, type ColumnMenuCapabilities, type RowActionsConfig, type CellAlignment, type AggregationType, type AggregationOption, type RowGroup, GridNavProvider, useGridKeyboardNavigation, isWithinCellEditor, findGridCell, focusGridCell, getGridNeighbor, getGridTabNeighbor, type GridNavDirection, type GridNeighbor, type GridNavValue, TableUndoRedoProvider, useTableUndoRedo, useTableUndoRedoScope, useIntegrateTableUndoRedo, MAX_HISTORY, type IntegrateTableUndoRedoOptions, type IntegrateTableUndoRedoResult, type TableUndoRedoRegistration, type TableUndoRedoScopeApi, type TableUndoRedoState, type TableUndoSnapshot, captureTableUndoSnapshot, applyTableUndoSnapshot, wrapColumnHeaderActionWithUndoRedo, wrapEditChromeWithUndoRedo, wrapRowActionsWithUndoRedo, wrapSummaryFooterWithUndoRedo, wrapToolbarWithUndoRedo, isSingleCellSelection, selectionFromSingleCell, buildCellRangeRect, } from './patterns/table';
|
|
19
19
|
export { TreeView, buildTreeViewNodes, type TreeViewNode, type TreeViewProps, type TreeViewBuildConfig, } from './patterns/tree-view';
|
|
20
20
|
export { cn, cx, sortCx } from './utils/cn';
|
|
21
21
|
export { getShortcutLabel, getPlatformShortcutLabel, type ShortcutModifier, } from './utils/keyboard-shortcut';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,KAAK,IAAI,cAAc,EAC5B,KAAK,WAAW,IAAI,iBAAiB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,oBAAoB,EACpB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBA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AAwB,EACxB,sBAAsB,EACtB,kCAAkC,EAClC,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,KAAK,gBAAgB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,164 +1,169 @@
|
|
|
1
1
|
import "./styles/theme.css";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { cn as p, cx as a, sortCx as
|
|
4
|
-
import { getPlatformShortcutLabel as
|
|
3
|
+
import { cn as p, cx as a, sortCx as i } from "./utils/cn.js";
|
|
4
|
+
import { getPlatformShortcutLabel as m, getShortcutLabel as n } from "./utils/keyboard-shortcut.js";
|
|
5
5
|
import { isClassComponent as f, isForwardRefComponent as x, isFunctionComponent as s, isReactComponent as g } from "./utils/is-react-component.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { Button as
|
|
6
|
+
import { default as c, ShimmerBox as T, ShimmerCircle as S, ShimmerLine as b } from "./primitives/shimmer/shimmer.js";
|
|
7
|
+
import { Button as h, styles as R } from "./primitives/button/button.js";
|
|
8
8
|
import { ButtonUtility as A } from "./primitives/button/button-utility.js";
|
|
9
9
|
import { Input as B } from "./primitives/input/input.js";
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Toggle as
|
|
12
|
-
import { Badge as U, BadgeIcon as D, BadgeWithButton as
|
|
13
|
-
import { Avatar as
|
|
10
|
+
import { Checkbox as E } from "./primitives/checkbox/checkbox.js";
|
|
11
|
+
import { Toggle as y } from "./primitives/toggle/toggle.js";
|
|
12
|
+
import { Badge as U, BadgeIcon as D, BadgeWithButton as F, BadgeWithDot as L, BadgeWithFlag as N, BadgeWithIcon as O, BadgeWithImage as v, filledColors as P } from "./primitives/badge/badge.js";
|
|
13
|
+
import { Avatar as M } from "./primitives/avatar/avatar.js";
|
|
14
14
|
import { Icon as K } from "./primitives/icon/icon.js";
|
|
15
15
|
import { Text as Y } from "./primitives/text/text.js";
|
|
16
|
-
import { Heading as
|
|
17
|
-
import { Select as
|
|
18
|
-
import { SearchableSelect as
|
|
16
|
+
import { Heading as j } from "./primitives/heading/heading.js";
|
|
17
|
+
import { Select as z } from "./primitives/select/select.js";
|
|
18
|
+
import { SearchableSelect as Q } from "./primitives/select/searchable-select.js";
|
|
19
19
|
import { MultiSelect as $ } from "./primitives/select/multi-select.js";
|
|
20
20
|
import { Popover as eo } from "./primitives/select/popover.js";
|
|
21
21
|
import { ExpandableSearchInput as to } from "./primitives/select/ExpandableSearchInput.js";
|
|
22
|
-
import { Tooltip as ao, TooltipTrigger as
|
|
23
|
-
import { EllipsisContentWithTooltip as
|
|
22
|
+
import { Tooltip as ao, TooltipTrigger as io } from "./primitives/tooltip/tooltip.js";
|
|
23
|
+
import { EllipsisContentWithTooltip as mo, createEllipsisContent as no } from "./primitives/tooltip/ellipsis-content.js";
|
|
24
24
|
import { CustomIcon as xo } from "./primitives/custom-icon/custom-icon.js";
|
|
25
25
|
import { ICONS as go } from "./primitives/custom-icon/registry.js";
|
|
26
|
-
import { Dropdown as
|
|
27
|
-
import { Snackbar as
|
|
28
|
-
import { MultiChipsSelect as
|
|
29
|
-
import { tagKeyFromLabel as
|
|
26
|
+
import { Dropdown as co } from "./primitives/dropdown/dropdown.js";
|
|
27
|
+
import { Snackbar as So } from "./primitives/snackbar/snackbar.js";
|
|
28
|
+
import { MultiChipsSelect as Co } from "./primitives/multi-chips-select/MultiChipsSelect.js";
|
|
29
|
+
import { tagKeyFromLabel as Ro } from "./primitives/multi-chips-select/tagKeyFromLabel.js";
|
|
30
30
|
import { ScheduleCalendar as Ao } from "./applications/schedule-calendar/schedule-calendar.js";
|
|
31
31
|
import { WEEKDAYS as Bo } from "./applications/schedule-calendar/types.js";
|
|
32
|
-
import { cellSetToSchedules as
|
|
33
|
-
import { Table as
|
|
32
|
+
import { cellSetToSchedules as Eo, formatHour as Ho, formatHourLabel as yo, mergeHoursToWindows as Go, schedulesToCellSet as Uo } from "./applications/schedule-calendar/utils.js";
|
|
33
|
+
import { Table as Fo, TableCard as Lo, TableCell as No, TableRowActionsDropdown as Oo } from "./patterns/table/table.js";
|
|
34
34
|
import { TableWrapper as Po } from "./patterns/table/TableWrapper.js";
|
|
35
|
-
import { TablePagination as
|
|
35
|
+
import { TablePagination as Mo } from "./patterns/table/TablePagination.js";
|
|
36
36
|
import { PaginationCardDefault as Ko } from "./patterns/table/pagination-card.js";
|
|
37
37
|
import { Pagination as Yo } from "./patterns/table/pagination-base.js";
|
|
38
|
-
import { ROW_HEIGHT_ICONS as
|
|
39
|
-
import { TOOLBAR_ICONS as
|
|
40
|
-
import { TableToolbar as
|
|
38
|
+
import { ROW_HEIGHT_ICONS as jo } from "./patterns/table/row-height-icons.js";
|
|
39
|
+
import { TOOLBAR_ICONS as zo } from "./patterns/table/toolbar-icons.js";
|
|
40
|
+
import { TableToolbar as Qo, pickCoreToolbarProps as Zo } from "./patterns/table/toolbar/TableToolbar.js";
|
|
41
41
|
import { getToolbarExtensions as oe, registerToolbarExtensions as ee } from "./patterns/table/toolbar/toolbarExtensions.js";
|
|
42
42
|
import { RowHeightDropdown as te } from "./patterns/table/toolbar/RowHeightDropdown.js";
|
|
43
43
|
import { HideFieldsDropdown as ae } from "./patterns/table/toolbar/HideFieldsDropdown.js";
|
|
44
|
-
import { AlignDropdown as
|
|
45
|
-
import { GroupByDropdown as
|
|
44
|
+
import { AlignDropdown as le } from "./patterns/table/toolbar/AlignDropdown.js";
|
|
45
|
+
import { GroupByDropdown as ne } from "./patterns/table/toolbar/GroupByDropdown.js";
|
|
46
46
|
import { ShowSummaryDropdown as fe } from "./patterns/table/toolbar/ShowSummaryDropdown.js";
|
|
47
47
|
import { SummaryFooterRow as se } from "./patterns/table/toolbar/SummaryFooter.js";
|
|
48
48
|
import { ColumnHeaderMenu as ue } from "./patterns/table/toolbar/ColumnHeaderMenu.js";
|
|
49
|
-
import { RowActionsMenu as
|
|
50
|
-
import { BulkActionBar as
|
|
51
|
-
import { AGGREGATION_LABELS as
|
|
52
|
-
import { GridNavProvider as Ue, findGridCell as De, focusGridCell as
|
|
53
|
-
import {
|
|
54
|
-
import { useIntegrateTableUndoRedo as
|
|
55
|
-
import { applyTableUndoSnapshot as je, captureTableUndoSnapshot as qe, wrapColumnHeaderActionWithUndoRedo as ze, wrapEditChromeWithUndoRedo as Je, wrapRowActionsWithUndoRedo as Qe, wrapSummaryFooterWithUndoRedo as
|
|
56
|
-
import {
|
|
49
|
+
import { RowActionsMenu as Te } from "./patterns/table/toolbar/RowActionsMenu.js";
|
|
50
|
+
import { BulkActionBar as be } from "./patterns/table/toolbar/BulkActionBar.js";
|
|
51
|
+
import { AGGREGATION_LABELS as he, ROW_HEIGHT_CLASS as Re, alignmentClass as we, applyHideAndReorder as Ae, computeAggregation as We, getAggregationsForType as Be, getDefaultAlignmentForType as Ie, getEffectiveAlignment as Ee, groupRows as He, resolveColumnLabel as ye } from "./patterns/table/toolbar/tableToolbarHelpers.js";
|
|
52
|
+
import { GridNavProvider as Ue, findGridCell as De, focusGridCell as Fe, getGridNeighbor as Le, getGridTabNeighbor as Ne, isWithinCellEditor as Oe, useGridKeyboardNavigation as ve } from "./patterns/table/useGridKeyboardNavigation.js";
|
|
53
|
+
import { MAX_HISTORY as _e, TableUndoRedoProvider as Me, useTableUndoRedo as ke, useTableUndoRedoScope as Ke } from "./patterns/table/useTableUndoRedo.js";
|
|
54
|
+
import { useIntegrateTableUndoRedo as Ye } from "./patterns/table/integrateTableUndoRedo.js";
|
|
55
|
+
import { applyTableUndoSnapshot as je, captureTableUndoSnapshot as qe, wrapColumnHeaderActionWithUndoRedo as ze, wrapEditChromeWithUndoRedo as Je, wrapRowActionsWithUndoRedo as Qe, wrapSummaryFooterWithUndoRedo as Ze, wrapToolbarWithUndoRedo as $e } from "./patterns/table/tableUndoRedo.js";
|
|
56
|
+
import { buildCellRangeRect as er, isSingleCellSelection as rr, selectionFromSingleCell as tr } from "./patterns/table/cellRangeSelection.js";
|
|
57
|
+
import { TreeView as ar, buildTreeViewNodes as ir } from "./patterns/tree-view/tree-view.js";
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
he as AGGREGATION_LABELS,
|
|
60
|
+
le as AlignDropdown,
|
|
61
|
+
M as Avatar,
|
|
61
62
|
U as Badge,
|
|
62
63
|
D as BadgeIcon,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
F as BadgeWithButton,
|
|
65
|
+
L as BadgeWithDot,
|
|
65
66
|
N as BadgeWithFlag,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
O as BadgeWithIcon,
|
|
68
|
+
v as BadgeWithImage,
|
|
69
|
+
be as BulkActionBar,
|
|
70
|
+
h as Button,
|
|
70
71
|
A as ButtonUtility,
|
|
71
|
-
|
|
72
|
+
E as Checkbox,
|
|
72
73
|
ue as ColumnHeaderMenu,
|
|
73
74
|
xo as CustomIcon,
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
co as Dropdown,
|
|
76
|
+
mo as EllipsisContentWithTooltip,
|
|
76
77
|
to as ExpandableSearchInput,
|
|
77
78
|
Ue as GridNavProvider,
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
ne as GroupByDropdown,
|
|
80
|
+
j as Heading,
|
|
80
81
|
ae as HideFieldsDropdown,
|
|
81
82
|
go as ICONS,
|
|
82
83
|
K as Icon,
|
|
83
84
|
B as Input,
|
|
84
|
-
|
|
85
|
+
_e as MAX_HISTORY,
|
|
86
|
+
Co as MultiChipsSelect,
|
|
85
87
|
$ as MultiSelect,
|
|
86
88
|
Yo as Pagination,
|
|
87
89
|
Ko as PaginationCardDefault,
|
|
88
90
|
eo as Popover,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
Re as ROW_HEIGHT_CLASS,
|
|
92
|
+
jo as ROW_HEIGHT_ICONS,
|
|
93
|
+
Te as RowActionsMenu,
|
|
92
94
|
te as RowHeightDropdown,
|
|
93
95
|
Ao as ScheduleCalendar,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
Q as SearchableSelect,
|
|
97
|
+
z as Select,
|
|
98
|
+
c as Shimmer,
|
|
99
|
+
T as ShimmerBox,
|
|
100
|
+
S as ShimmerCircle,
|
|
101
|
+
b as ShimmerLine,
|
|
100
102
|
fe as ShowSummaryDropdown,
|
|
101
|
-
|
|
103
|
+
So as Snackbar,
|
|
102
104
|
se as SummaryFooterRow,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
zo as TOOLBAR_ICONS,
|
|
106
|
+
Fo as Table,
|
|
107
|
+
Lo as TableCard,
|
|
106
108
|
No as TableCell,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Mo as TablePagination,
|
|
110
|
+
Oo as TableRowActionsDropdown,
|
|
111
|
+
Qo as TableToolbar,
|
|
112
|
+
Me as TableUndoRedoProvider,
|
|
111
113
|
Po as TableWrapper,
|
|
112
114
|
Y as Text,
|
|
113
|
-
|
|
115
|
+
y as Toggle,
|
|
114
116
|
ao as Tooltip,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
io as TooltipTrigger,
|
|
118
|
+
ar as TreeView,
|
|
117
119
|
Bo as WEEKDAYS,
|
|
118
|
-
|
|
120
|
+
we as alignmentClass,
|
|
119
121
|
Ae as applyHideAndReorder,
|
|
120
122
|
je as applyTableUndoSnapshot,
|
|
121
|
-
er as
|
|
122
|
-
|
|
123
|
+
er as buildCellRangeRect,
|
|
124
|
+
ir as buildTreeViewNodes,
|
|
125
|
+
R as buttonStyles,
|
|
123
126
|
qe as captureTableUndoSnapshot,
|
|
124
|
-
|
|
127
|
+
Eo as cellSetToSchedules,
|
|
125
128
|
p as cn,
|
|
126
129
|
We as computeAggregation,
|
|
127
|
-
|
|
130
|
+
no as createEllipsisContent,
|
|
128
131
|
a as cx,
|
|
129
132
|
P as filledColors,
|
|
130
133
|
De as findGridCell,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
Fe as focusGridCell,
|
|
135
|
+
Ho as formatHour,
|
|
136
|
+
yo as formatHourLabel,
|
|
134
137
|
Be as getAggregationsForType,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
Ie as getDefaultAlignmentForType,
|
|
139
|
+
Ee as getEffectiveAlignment,
|
|
140
|
+
Le as getGridNeighbor,
|
|
138
141
|
Ne as getGridTabNeighbor,
|
|
139
|
-
|
|
140
|
-
|
|
142
|
+
m as getPlatformShortcutLabel,
|
|
143
|
+
n as getShortcutLabel,
|
|
141
144
|
oe as getToolbarExtensions,
|
|
142
|
-
|
|
145
|
+
He as groupRows,
|
|
143
146
|
f as isClassComponent,
|
|
144
147
|
x as isForwardRefComponent,
|
|
145
148
|
s as isFunctionComponent,
|
|
146
149
|
g as isReactComponent,
|
|
147
|
-
|
|
150
|
+
rr as isSingleCellSelection,
|
|
151
|
+
Oe as isWithinCellEditor,
|
|
148
152
|
Go as mergeHoursToWindows,
|
|
149
153
|
Zo as pickCoreToolbarProps,
|
|
150
154
|
ee as registerToolbarExtensions,
|
|
151
|
-
|
|
155
|
+
ye as resolveColumnLabel,
|
|
152
156
|
Uo as schedulesToCellSet,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
tr as selectionFromSingleCell,
|
|
158
|
+
i as sortCx,
|
|
159
|
+
Ro as tagKeyFromLabel,
|
|
160
|
+
ve as useGridKeyboardNavigation,
|
|
161
|
+
Ye as useIntegrateTableUndoRedo,
|
|
157
162
|
ke as useTableUndoRedo,
|
|
158
|
-
|
|
163
|
+
Ke as useTableUndoRedoScope,
|
|
159
164
|
ze as wrapColumnHeaderActionWithUndoRedo,
|
|
160
165
|
Je as wrapEditChromeWithUndoRedo,
|
|
161
166
|
Qe as wrapRowActionsWithUndoRedo,
|
|
162
|
-
|
|
163
|
-
|
|
167
|
+
Ze as wrapSummaryFooterWithUndoRedo,
|
|
168
|
+
$e as wrapToolbarWithUndoRedo
|
|
164
169
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TableWrapperProps } from './types';
|
|
2
|
-
export type { BulkActionContext, ColumnConfig, TableWrapperEditChrome, TableWrapperPaginationConfig, TableWrapperProps, TableWrapperSelectedKeys, TableWrapperSelectionChange, TableWrapperToolbarConfig, } from './types';
|
|
2
|
+
export type { BulkActionContext, ColumnConfig, TableWrapperEditChrome, TableWrapperPaginationConfig, TableWrapperProps, TableWrapperSelectedKeys, TableWrapperSelectionChange, TableWrapperToolbarConfig, TableCellCoord, TableCellRangeRect, TableCellSelection, } from './types';
|
|
3
3
|
export declare const TableWrapper: import('react').ForwardRefExoticComponent<TableWrapperProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
4
|
//# sourceMappingURL=TableWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAqCjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AA8IjB,eAAO,MAAM,YAAY,8GAqtDxB,CAAC"}
|