@jetbrains/ring-ui-built 6.0.68 → 6.0.70
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.
@@ -45,7 +45,7 @@ declare class SimpleTable<T extends SelectionItem> extends PureComponent<SimpleT
|
|
45
45
|
stickyHeaderOffset?: import("react").Validator<string | null | undefined> | undefined;
|
46
46
|
renderEmpty?: import("react").Validator<(() => import("react").ReactNode) | null | undefined> | undefined;
|
47
47
|
RowComponent?: import("react").Validator<typeof import("./row-with-focus-sensor").default | null | undefined> | undefined;
|
48
|
-
|
48
|
+
renderLoader?: import("react").Validator<((loaderClassName?: string) => import("react").ReactNode) | null | undefined> | undefined;
|
49
49
|
shortcuts?: import("react").Validator<import("../shortcuts/core").ShortcutsMap | null | undefined> | undefined;
|
50
50
|
};
|
51
51
|
static defaultProps: {
|
@@ -49,7 +49,7 @@ declare class SmartTable<T extends SelectionItem> extends PureComponent<SmartTab
|
|
49
49
|
stickyHeaderOffset?: import("react").Validator<string | null | undefined> | undefined;
|
50
50
|
renderEmpty?: import("react").Validator<(() => import("react").ReactNode) | null | undefined> | undefined;
|
51
51
|
RowComponent?: import("react").Validator<typeof import("./row-with-focus-sensor").default | null | undefined> | undefined;
|
52
|
-
|
52
|
+
renderLoader?: import("react").Validator<((loaderClassName?: string) => import("react").ReactNode) | null | undefined> | undefined;
|
53
53
|
selectable?: import("react").Validator<boolean | null | undefined> | undefined;
|
54
54
|
shortcuts?: import("react").Validator<import("../shortcuts/core").ShortcutsMap | null | undefined> | undefined;
|
55
55
|
onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
|
@@ -50,7 +50,7 @@ export interface TableProps<T extends SelectionItem> extends FocusSensorAddProps
|
|
50
50
|
stickyHeaderOffset?: string | undefined;
|
51
51
|
renderEmpty?: (() => ReactNode) | null | undefined;
|
52
52
|
RowComponent: typeof Row;
|
53
|
-
|
53
|
+
renderLoader?: ((loaderClassName?: string) => ReactNode) | null | undefined;
|
54
54
|
}
|
55
55
|
/**
|
56
56
|
* Interactive table with selection and keyboard navigation support.
|
@@ -221,7 +221,7 @@ var Table = /*#__PURE__*/function (_PureComponent) {
|
|
221
221
|
onItemClick = _this$props4.onItemClick,
|
222
222
|
renderEmpty = _this$props4.renderEmpty,
|
223
223
|
RowComponent = _this$props4.RowComponent,
|
224
|
-
|
224
|
+
renderLoader = _this$props4.renderLoader;
|
225
225
|
// NOTE: Do not construct new object per render because it causes all rows rerendering
|
226
226
|
var columnsArray = typeof columns === 'function' ? columns(null) : columns;
|
227
227
|
var headerProps = {
|
@@ -347,7 +347,7 @@ var Table = /*#__PURE__*/function (_PureComponent) {
|
|
347
347
|
})
|
348
348
|
}), loading && /*#__PURE__*/jsx("div", {
|
349
349
|
className: modules_1db4bbca.loadingOverlay,
|
350
|
-
children:
|
350
|
+
children: renderLoader ? renderLoader(loaderClassName) : /*#__PURE__*/jsx(Loader, {
|
351
351
|
className: loaderClassName
|
352
352
|
})
|
353
353
|
})]
|
@@ -123,7 +123,14 @@ var UserAgreementService = /*#__PURE__*/_createClass(function UserAgreementServi
|
|
123
123
|
_defineProperty(this, "userConsent", DEFAULT_CONSENT);
|
124
124
|
_defineProperty(this, "intervalId", void 0);
|
125
125
|
_defineProperty(this, "startChecking", function () {
|
126
|
-
_this.intervalId = window.setInterval(
|
126
|
+
_this.intervalId = window.setInterval(function () {
|
127
|
+
return _this.checkConsentAndShowDialog().catch(function (reason) {
|
128
|
+
if (reason === 'Postponed') {
|
129
|
+
return;
|
130
|
+
}
|
131
|
+
throw reason;
|
132
|
+
});
|
133
|
+
}, _this.interval);
|
127
134
|
window.addEventListener('storage', _this.onStorageEvent);
|
128
135
|
_this.checkConsentAndShowDialog();
|
129
136
|
});
|