@atlaskit/dynamic-table 14.8.0 → 14.8.2
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/CHANGELOG.md +12 -0
- package/dist/cjs/components/loading-container-advanced.js +1 -1
- package/dist/cjs/components/stateless.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/loading-container-advanced.js +1 -1
- package/dist/es2019/components/stateless.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/loading-container-advanced.js +1 -1
- package/dist/esm/components/stateless.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/loading-container-advanced.d.ts +2 -2
- package/dist/types/components/stateless.d.ts +2 -2
- package/dist/types/styled/dynamic-table.d.ts +1 -1
- package/dist/types/styled/loading-container-advanced.d.ts +1 -1
- package/dist/types/styled/table-head.d.ts +1 -1
- package/dist/types-ts4.0/components/body.d.ts +112 -0
- package/dist/types-ts4.0/components/loading-container-advanced.d.ts +43 -0
- package/dist/types-ts4.0/components/loading-container.d.ts +18 -0
- package/dist/types-ts4.0/components/managed-pagination.d.ts +15 -0
- package/dist/types-ts4.0/components/rankable/body.d.ts +122 -0
- package/dist/types-ts4.0/components/rankable/table-cell.d.ts +14 -0
- package/dist/types-ts4.0/components/rankable/table-head-cell.d.ts +5 -0
- package/dist/types-ts4.0/components/rankable/table-row.d.ts +18 -0
- package/dist/types-ts4.0/components/stateful.d.ts +60 -0
- package/dist/types-ts4.0/components/stateless.d.ts +58 -0
- package/dist/types-ts4.0/components/table-head-cell.d.ts +17 -0
- package/dist/types-ts4.0/components/table-head.d.ts +19 -0
- package/dist/types-ts4.0/components/table-row.d.ts +11 -0
- package/dist/types-ts4.0/hoc/with-dimensions.d.ts +12 -0
- package/dist/types-ts4.0/hoc/with-sorted-page-rows.d.ts +117 -0
- package/dist/types-ts4.0/index.d.ts +2 -0
- package/dist/types-ts4.0/internal/constants.d.ts +5 -0
- package/dist/types-ts4.0/internal/helpers.d.ts +7 -0
- package/dist/types-ts4.0/styled/constants.d.ts +17 -0
- package/dist/types-ts4.0/styled/dynamic-table.d.ts +15 -0
- package/dist/types-ts4.0/styled/empty-body.d.ts +4 -0
- package/dist/types-ts4.0/styled/loading-container-advanced.d.ts +6 -0
- package/dist/types-ts4.0/styled/loading-container.d.ts +9 -0
- package/dist/types-ts4.0/styled/rankable/row-placeholder.d.ts +3 -0
- package/dist/types-ts4.0/styled/rankable/table-cell.d.ts +8 -0
- package/dist/types-ts4.0/styled/rankable/table-row.d.ts +11 -0
- package/dist/types-ts4.0/styled/table-cell.d.ts +4 -0
- package/dist/types-ts4.0/styled/table-head.d.ts +15 -0
- package/dist/types-ts4.0/styled/table-row.d.ts +9 -0
- package/dist/types-ts4.0/theme.d.ts +22 -0
- package/dist/types-ts4.0/types.d.ts +345 -0
- package/package.json +11 -4
- package/theme/package.json +8 -1
- package/types/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dynamic-table
|
|
2
2
|
|
|
3
|
+
## 14.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f9cd9e55e43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f9cd9e55e43) - Update to disabled tokens which slightly affects the opacity in disabled states
|
|
8
|
+
|
|
9
|
+
## 14.8.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
14
|
+
|
|
3
15
|
## 14.8.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -258,5 +258,5 @@ exports.default = LoadingContainerAdvanced;
|
|
|
258
258
|
(0, _defineProperty2.default)(LoadingContainerAdvanced, "defaultProps", {
|
|
259
259
|
isLoading: true,
|
|
260
260
|
spinnerSize: _constants.LARGE,
|
|
261
|
-
contentsOpacity: _constants.LOADING_CONTENTS_OPACITY
|
|
261
|
+
contentsOpacity: "var(--ds-opacity-loading, ".concat("".concat(_constants.LOADING_CONTENTS_OPACITY), ")")
|
|
262
262
|
});
|
|
@@ -54,7 +54,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
54
54
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
55
55
|
|
|
56
56
|
var packageName = "@atlaskit/dynamic-table";
|
|
57
|
-
var packageVersion = "14.8.
|
|
57
|
+
var packageVersion = "14.8.2";
|
|
58
58
|
|
|
59
59
|
function toggleSortOrder(currentSortOrder) {
|
|
60
60
|
switch (currentSortOrder) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -213,5 +213,5 @@ export default class LoadingContainerAdvanced extends React.Component {
|
|
|
213
213
|
_defineProperty(LoadingContainerAdvanced, "defaultProps", {
|
|
214
214
|
isLoading: true,
|
|
215
215
|
spinnerSize: LARGE,
|
|
216
|
-
contentsOpacity: LOADING_CONTENTS_OPACITY
|
|
216
|
+
contentsOpacity: `var(--ds-opacity-loading, ${`${LOADING_CONTENTS_OPACITY}`})`
|
|
217
217
|
});
|
|
@@ -14,7 +14,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
14
14
|
import RankableTableBody from './rankable/body';
|
|
15
15
|
import TableHead from './table-head';
|
|
16
16
|
const packageName = "@atlaskit/dynamic-table";
|
|
17
|
-
const packageVersion = "14.8.
|
|
17
|
+
const packageVersion = "14.8.2";
|
|
18
18
|
|
|
19
19
|
function toggleSortOrder(currentSortOrder) {
|
|
20
20
|
switch (currentSortOrder) {
|
package/dist/es2019/version.json
CHANGED
|
@@ -254,7 +254,7 @@ var LoadingContainerAdvanced = /*#__PURE__*/function (_React$Component) {
|
|
|
254
254
|
_defineProperty(LoadingContainerAdvanced, "defaultProps", {
|
|
255
255
|
isLoading: true,
|
|
256
256
|
spinnerSize: LARGE,
|
|
257
|
-
contentsOpacity: LOADING_CONTENTS_OPACITY
|
|
257
|
+
contentsOpacity: "var(--ds-opacity-loading, ".concat("".concat(LOADING_CONTENTS_OPACITY), ")")
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
export { LoadingContainerAdvanced as default };
|
|
@@ -25,7 +25,7 @@ import ManagedPagination from './managed-pagination';
|
|
|
25
25
|
import RankableTableBody from './rankable/body';
|
|
26
26
|
import TableHead from './table-head';
|
|
27
27
|
var packageName = "@atlaskit/dynamic-table";
|
|
28
|
-
var packageVersion = "14.8.
|
|
28
|
+
var packageVersion = "14.8.2";
|
|
29
29
|
|
|
30
30
|
function toggleSortOrder(currentSortOrder) {
|
|
31
31
|
switch (currentSortOrder) {
|
package/dist/esm/version.json
CHANGED
|
@@ -4,7 +4,7 @@ export interface LoadingContainerAdvancedProps {
|
|
|
4
4
|
children: React.ReactElement<any>;
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
spinnerSize?: SpinnerSizeType;
|
|
7
|
-
contentsOpacity: number;
|
|
7
|
+
contentsOpacity: number | string;
|
|
8
8
|
targetRef?: () => HTMLDivElement | undefined;
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
@@ -14,7 +14,7 @@ export default class LoadingContainerAdvanced extends React.Component<LoadingCon
|
|
|
14
14
|
static defaultProps: {
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
spinnerSize: string;
|
|
17
|
-
contentsOpacity:
|
|
17
|
+
contentsOpacity: "var(--ds-opacity-loading)";
|
|
18
18
|
};
|
|
19
19
|
componentDidMount: () => void;
|
|
20
20
|
UNSAFE_componentWillReceiveProps: (nextProps: LoadingContainerAdvancedProps) => void;
|
|
@@ -38,7 +38,7 @@ declare class DynamicTable extends React.Component<Props, State> {
|
|
|
38
38
|
render(): JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export { DynamicTable as DynamicTableWithoutAnalytics };
|
|
41
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "caption" | "head" | "
|
|
41
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "caption" | "head" | "rows" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onPageRowsUpdate" | "sortKey" | "sortOrder" | "highlightedRowIndex" | "testId" | "label"> & Partial<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "isLoading" | "isFixedSize" | "rowsPerPage" | "onSetPage" | "onSort" | "page" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n">> & Partial<Pick<{
|
|
42
42
|
isLoading: boolean;
|
|
43
43
|
isFixedSize: boolean;
|
|
44
44
|
rowsPerPage: number;
|
|
@@ -54,5 +54,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<Props, ke
|
|
|
54
54
|
next: string;
|
|
55
55
|
label: string;
|
|
56
56
|
};
|
|
57
|
-
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "
|
|
57
|
+
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "rows" | "emptyView" | "loadingSpinnerSize" | "isLoading" | "isFixedSize" | "rowsPerPage" | "totalRows" | "onSetPage" | "onSort" | "onPageRowsUpdate" | "page" | "sortKey" | "sortOrder" | "isRankable" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "paginationi18n" | "highlightedRowIndex" | "testId" | "label" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
58
58
|
export default _default;
|
|
@@ -10,6 +10,6 @@ export declare const tableRowCSSVars: {
|
|
|
10
10
|
CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
|
|
11
11
|
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "
|
|
13
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "rows" | "isFixedSize" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "height" | "content" | "hasDataRow" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
14
14
|
export declare const Caption: FC;
|
|
15
15
|
export declare const PaginationWrapper: FC;
|
|
@@ -3,4 +3,4 @@ import { FC, HTMLProps } from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
export declare const Container: (props: HTMLProps<HTMLDivElement>) => jsx.JSX.Element;
|
|
5
5
|
export declare const SpinnerBackdrop: FC;
|
|
6
|
-
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "
|
|
6
|
+
export declare const SpinnerContainer: import("react").ForwardRefExoticComponent<Pick<HTMLProps<HTMLDivElement>, "rows" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "width" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -11,5 +11,5 @@ declare type HeadCellProps = TruncateStyleProps & HTMLProps<HTMLTableCellElement
|
|
|
11
11
|
isSortable?: boolean;
|
|
12
12
|
sortOrder?: SortOrderType;
|
|
13
13
|
};
|
|
14
|
-
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "
|
|
14
|
+
export declare const HeadCell: import("react").ForwardRefExoticComponent<Pick<HeadCellProps, "rows" | "isFixedSize" | "sortOrder" | "testId" | "label" | "cite" | "data" | "form" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isSortable" | "width" | "shouldTruncate" | "height" | "content" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "innerRef"> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
15
15
|
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithSortedPageRowsProps } from '../hoc/with-sorted-page-rows';
|
|
3
|
+
import { HeadType } from '../types';
|
|
4
|
+
interface BodyProps extends WithSortedPageRowsProps {
|
|
5
|
+
head?: HeadType;
|
|
6
|
+
highlightedRowIndex?: number | number[];
|
|
7
|
+
isFixedSize: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: {
|
|
11
|
+
new (props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
12
|
+
state: {
|
|
13
|
+
pageRows: never[];
|
|
14
|
+
};
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
17
|
+
pageRows: import("../types").RowType[];
|
|
18
|
+
}): void;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
context: any;
|
|
21
|
+
setState<K extends "pageRows">(state: {
|
|
22
|
+
pageRows: import("../types").RowType[];
|
|
23
|
+
} | ((prevState: Readonly<{
|
|
24
|
+
pageRows: import("../types").RowType[];
|
|
25
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
26
|
+
pageRows: import("../types").RowType[];
|
|
27
|
+
} | Pick<{
|
|
28
|
+
pageRows: import("../types").RowType[];
|
|
29
|
+
}, K> | null) | Pick<{
|
|
30
|
+
pageRows: import("../types").RowType[];
|
|
31
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
32
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
33
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}>;
|
|
36
|
+
refs: {
|
|
37
|
+
[key: string]: React.ReactInstance;
|
|
38
|
+
};
|
|
39
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
40
|
+
pageRows: import("../types").RowType[];
|
|
41
|
+
}>, nextContext: any): boolean;
|
|
42
|
+
componentWillUnmount?(): void;
|
|
43
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
45
|
+
pageRows: import("../types").RowType[];
|
|
46
|
+
}>): any;
|
|
47
|
+
componentWillMount?(): void;
|
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
52
|
+
pageRows: import("../types").RowType[];
|
|
53
|
+
}>, nextContext: any): void;
|
|
54
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
55
|
+
pageRows: import("../types").RowType[];
|
|
56
|
+
}>, nextContext: any): void;
|
|
57
|
+
};
|
|
58
|
+
new (props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
59
|
+
state: {
|
|
60
|
+
pageRows: never[];
|
|
61
|
+
};
|
|
62
|
+
componentDidMount(): void;
|
|
63
|
+
componentDidUpdate(_prevProps: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
64
|
+
pageRows: import("../types").RowType[];
|
|
65
|
+
}): void;
|
|
66
|
+
render(): JSX.Element;
|
|
67
|
+
context: any;
|
|
68
|
+
setState<K extends "pageRows">(state: {
|
|
69
|
+
pageRows: import("../types").RowType[];
|
|
70
|
+
} | ((prevState: Readonly<{
|
|
71
|
+
pageRows: import("../types").RowType[];
|
|
72
|
+
}>, props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
73
|
+
pageRows: import("../types").RowType[];
|
|
74
|
+
} | Pick<{
|
|
75
|
+
pageRows: import("../types").RowType[];
|
|
76
|
+
}, K> | null) | Pick<{
|
|
77
|
+
pageRows: import("../types").RowType[];
|
|
78
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
79
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
80
|
+
readonly props: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
}>;
|
|
83
|
+
refs: {
|
|
84
|
+
[key: string]: React.ReactInstance;
|
|
85
|
+
};
|
|
86
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
87
|
+
pageRows: import("../types").RowType[];
|
|
88
|
+
}>, nextContext: any): boolean;
|
|
89
|
+
componentWillUnmount?(): void;
|
|
90
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
92
|
+
pageRows: import("../types").RowType[];
|
|
93
|
+
}>): any;
|
|
94
|
+
componentWillMount?(): void;
|
|
95
|
+
UNSAFE_componentWillMount?(): void;
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
97
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
98
|
+
componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
99
|
+
pageRows: import("../types").RowType[];
|
|
100
|
+
}>, nextContext: any): void;
|
|
101
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
102
|
+
pageRows: import("../types").RowType[];
|
|
103
|
+
}>, nextContext: any): void;
|
|
104
|
+
};
|
|
105
|
+
getDerivedStateFromProps(props: Omit<BodyProps & import("../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
106
|
+
pageRows: import("../types").RowType[];
|
|
107
|
+
}): {
|
|
108
|
+
pageRows: import("../types").RowType[];
|
|
109
|
+
};
|
|
110
|
+
contextType?: React.Context<any> | undefined;
|
|
111
|
+
};
|
|
112
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpinnerSizeType } from '../types';
|
|
3
|
+
export interface LoadingContainerAdvancedProps {
|
|
4
|
+
children: React.ReactElement<any>;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
spinnerSize?: SpinnerSizeType;
|
|
7
|
+
contentsOpacity: number | string;
|
|
8
|
+
targetRef?: () => HTMLDivElement | undefined;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class LoadingContainerAdvanced extends React.Component<LoadingContainerAdvancedProps, {}> {
|
|
12
|
+
children?: HTMLElement;
|
|
13
|
+
spinnerRef?: HTMLDivElement;
|
|
14
|
+
static defaultProps: {
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
spinnerSize: string;
|
|
17
|
+
contentsOpacity: "var(--ds-opacity-loading)";
|
|
18
|
+
};
|
|
19
|
+
componentDidMount: () => void;
|
|
20
|
+
UNSAFE_componentWillReceiveProps: (nextProps: LoadingContainerAdvancedProps) => void;
|
|
21
|
+
componentDidUpdate: () => void;
|
|
22
|
+
componentWillUnmount: () => void;
|
|
23
|
+
getTargetNode: (nextProps?: LoadingContainerAdvancedProps) => Element | Text | null;
|
|
24
|
+
getThisNode: () => Element | Text | null;
|
|
25
|
+
getSpinnerNode: () => Element | Text | null;
|
|
26
|
+
hasTargetNode: (nextProps?: LoadingContainerAdvancedProps | undefined) => boolean;
|
|
27
|
+
isVerticallyVisible: (elementRect: {
|
|
28
|
+
top: number;
|
|
29
|
+
bottom: number;
|
|
30
|
+
}, viewportHeight: number) => boolean;
|
|
31
|
+
isFullyVerticallyVisible: (elementRect: {
|
|
32
|
+
top: number;
|
|
33
|
+
bottom: number;
|
|
34
|
+
}, viewportHeight: number) => boolean;
|
|
35
|
+
attachListeners(): void;
|
|
36
|
+
detachListeners(): void;
|
|
37
|
+
handleResize: () => void;
|
|
38
|
+
handleScroll: () => void;
|
|
39
|
+
translateSpinner: (spinnerNode: HTMLElement, transformY: number, isFixed?: boolean | undefined) => void;
|
|
40
|
+
updateTargetAppearance: () => void;
|
|
41
|
+
updateSpinnerPosition(): void;
|
|
42
|
+
render(): JSX.Element;
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpinnerSizeType } from '../types';
|
|
3
|
+
interface LoadingContainerProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
spinnerSize?: SpinnerSizeType;
|
|
7
|
+
contentsOpacity: number;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export default class LoadingContainer extends React.Component<LoadingContainerProps> {
|
|
11
|
+
static defaultProps: {
|
|
12
|
+
isLoading: boolean;
|
|
13
|
+
spinnerSize: string;
|
|
14
|
+
contentsOpacity: number;
|
|
15
|
+
};
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { I18nShape } from '../types';
|
|
4
|
+
interface ManagedPaginationProps {
|
|
5
|
+
value?: number;
|
|
6
|
+
onChange: (newValue: any, analyticsEvent?: UIAnalyticsEvent) => void;
|
|
7
|
+
total: number;
|
|
8
|
+
i18n?: I18nShape;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
export default class ManagedPagination extends React.Component<ManagedPaginationProps> {
|
|
12
|
+
onChange: (_event: any, newValue: any, analyticsEvent?: UIAnalyticsEvent | undefined) => void;
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DragStart, DropResult } from 'react-beautiful-dnd';
|
|
3
|
+
import { WithSortedPageRowsProps } from '../../hoc/with-sorted-page-rows';
|
|
4
|
+
import { HeadType, RankEnd, RankStart, RowType } from '../../types';
|
|
5
|
+
export interface RankableBodyProps extends WithSortedPageRowsProps {
|
|
6
|
+
highlightedRowIndex?: number | number[];
|
|
7
|
+
onRankStart: (rankStart: RankStart) => void;
|
|
8
|
+
onRankEnd: (rankEnd: RankEnd) => void;
|
|
9
|
+
isFixedSize: boolean;
|
|
10
|
+
isRanking: boolean;
|
|
11
|
+
isRankingDisabled: boolean;
|
|
12
|
+
head?: HeadType;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class RankableBody extends React.Component<RankableBodyProps, {}> {
|
|
16
|
+
onBeforeDragStart: (dragStart: DragStart) => void;
|
|
17
|
+
onDragEnd: (result: DropResult) => void;
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: {
|
|
21
|
+
new (props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>): {
|
|
22
|
+
state: {
|
|
23
|
+
pageRows: never[];
|
|
24
|
+
};
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
27
|
+
pageRows: RowType[];
|
|
28
|
+
}): void;
|
|
29
|
+
render(): JSX.Element;
|
|
30
|
+
context: any;
|
|
31
|
+
setState<K extends "pageRows">(state: {
|
|
32
|
+
pageRows: RowType[];
|
|
33
|
+
} | ((prevState: Readonly<{
|
|
34
|
+
pageRows: RowType[];
|
|
35
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
36
|
+
pageRows: RowType[];
|
|
37
|
+
} | Pick<{
|
|
38
|
+
pageRows: RowType[];
|
|
39
|
+
}, K> | null) | Pick<{
|
|
40
|
+
pageRows: RowType[];
|
|
41
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
43
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
refs: {
|
|
47
|
+
[key: string]: React.ReactInstance;
|
|
48
|
+
};
|
|
49
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
50
|
+
pageRows: RowType[];
|
|
51
|
+
}>, nextContext: any): boolean;
|
|
52
|
+
componentWillUnmount?(): void;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
55
|
+
pageRows: RowType[];
|
|
56
|
+
}>): any;
|
|
57
|
+
componentWillMount?(): void;
|
|
58
|
+
UNSAFE_componentWillMount?(): void;
|
|
59
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
60
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
61
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
62
|
+
pageRows: RowType[];
|
|
63
|
+
}>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
65
|
+
pageRows: RowType[];
|
|
66
|
+
}>, nextContext: any): void;
|
|
67
|
+
};
|
|
68
|
+
new (props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, context?: any): {
|
|
69
|
+
state: {
|
|
70
|
+
pageRows: never[];
|
|
71
|
+
};
|
|
72
|
+
componentDidMount(): void;
|
|
73
|
+
componentDidUpdate(_prevProps: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, prevState: {
|
|
74
|
+
pageRows: RowType[];
|
|
75
|
+
}): void;
|
|
76
|
+
render(): JSX.Element;
|
|
77
|
+
context: any;
|
|
78
|
+
setState<K extends "pageRows">(state: {
|
|
79
|
+
pageRows: RowType[];
|
|
80
|
+
} | ((prevState: Readonly<{
|
|
81
|
+
pageRows: RowType[];
|
|
82
|
+
}>, props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>) => {
|
|
83
|
+
pageRows: RowType[];
|
|
84
|
+
} | Pick<{
|
|
85
|
+
pageRows: RowType[];
|
|
86
|
+
}, K> | null) | Pick<{
|
|
87
|
+
pageRows: RowType[];
|
|
88
|
+
}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
|
+
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
90
|
+
readonly props: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">> & Readonly<{
|
|
91
|
+
children?: React.ReactNode;
|
|
92
|
+
}>;
|
|
93
|
+
refs: {
|
|
94
|
+
[key: string]: React.ReactInstance;
|
|
95
|
+
};
|
|
96
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
97
|
+
pageRows: RowType[];
|
|
98
|
+
}>, nextContext: any): boolean;
|
|
99
|
+
componentWillUnmount?(): void;
|
|
100
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
101
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, prevState: Readonly<{
|
|
102
|
+
pageRows: RowType[];
|
|
103
|
+
}>): any;
|
|
104
|
+
componentWillMount?(): void;
|
|
105
|
+
UNSAFE_componentWillMount?(): void;
|
|
106
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
107
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextContext: any): void;
|
|
108
|
+
componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
109
|
+
pageRows: RowType[];
|
|
110
|
+
}>, nextContext: any): void;
|
|
111
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">>, nextState: Readonly<{
|
|
112
|
+
pageRows: RowType[];
|
|
113
|
+
}>, nextContext: any): void;
|
|
114
|
+
};
|
|
115
|
+
getDerivedStateFromProps(props: Omit<RankableBodyProps & import("../../hoc/with-sorted-page-rows").TableProps, "pageRows">, state: {
|
|
116
|
+
pageRows: RowType[];
|
|
117
|
+
}): {
|
|
118
|
+
pageRows: RowType[];
|
|
119
|
+
};
|
|
120
|
+
contextType?: React.Context<any> | undefined;
|
|
121
|
+
};
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithDimensionsProps } from '../../hoc/with-dimensions';
|
|
3
|
+
import { HeadCellType, RowCellType } from '../../types';
|
|
4
|
+
export interface RankableTableCellProps extends WithDimensionsProps {
|
|
5
|
+
head?: HeadCellType;
|
|
6
|
+
cell: RowCellType;
|
|
7
|
+
isFixedSize: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class RankableTableCell extends React.Component<RankableTableCellProps, {}> {
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.ComponentClass<Omit<RankableTableCellProps, "innerRef" | "refWidth" | "refHeight">, import("../../hoc/with-dimensions").State>;
|
|
14
|
+
export default _default;
|