@jetbrains/ring-ui-built 7.0.71 → 7.0.73
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/components/_helpers/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +35 -16
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +3 -9
|
@@ -1,40 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState, useId
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import { useState, useId } from 'react';
|
|
3
3
|
import { CollapseContext } from './collapse-context.js';
|
|
4
4
|
import { BASE_ANIMATION_DURATION } from './consts.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
const Collapse = t0 => {
|
|
8
|
+
const $ = c(16);
|
|
9
|
+
if ($[0] !== "a4a6b3332539b9c2959a845fc7f7ca21f64b1f889ab9f549f7c7d22f6a1be723") {
|
|
10
|
+
for (let $i = 0; $i < 16; $i += 1) {
|
|
11
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12
|
+
}
|
|
13
|
+
$[0] = "a4a6b3332539b9c2959a845fc7f7ca21f64b1f889ab9f549f7c7d22f6a1be723";
|
|
14
|
+
}
|
|
15
|
+
const {
|
|
16
|
+
children,
|
|
17
|
+
duration: t1,
|
|
18
|
+
disableAnimation: t2,
|
|
19
|
+
className: t3,
|
|
20
|
+
onChange: t4,
|
|
21
|
+
defaultCollapsed: t5,
|
|
22
|
+
collapsed: t6
|
|
23
|
+
} = t0;
|
|
24
|
+
const duration = t1 === undefined ? BASE_ANIMATION_DURATION : t1;
|
|
25
|
+
const disableAnimation = t2 === undefined ? false : t2;
|
|
26
|
+
const className = t3 === undefined ? "" : t3;
|
|
27
|
+
const onChange = t4 === undefined ? _temp : t4;
|
|
28
|
+
const defaultCollapsed = t5 === undefined ? true : t5;
|
|
29
|
+
const collapsed = t6 === undefined ? null : t6;
|
|
18
30
|
const [innerCollapsed, setInnerCollapsed] = useState(defaultCollapsed);
|
|
19
31
|
const id = useId();
|
|
20
|
-
const finalCollapsedValue =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
const finalCollapsedValue = collapsed !== null && collapsed !== void 0 ? collapsed : innerCollapsed;
|
|
33
|
+
let t7;
|
|
34
|
+
if ($[1] !== finalCollapsedValue || $[2] !== onChange) {
|
|
35
|
+
t7 = () => {
|
|
36
|
+
setInnerCollapsed(!finalCollapsedValue);
|
|
37
|
+
onChange(!finalCollapsedValue);
|
|
38
|
+
};
|
|
39
|
+
$[1] = finalCollapsedValue;
|
|
40
|
+
$[2] = onChange;
|
|
41
|
+
$[3] = t7;
|
|
42
|
+
} else {
|
|
43
|
+
t7 = $[3];
|
|
44
|
+
}
|
|
45
|
+
const setCollapsed = t7;
|
|
46
|
+
let t8;
|
|
47
|
+
if ($[4] !== disableAnimation || $[5] !== duration || $[6] !== finalCollapsedValue || $[7] !== id || $[8] !== setCollapsed) {
|
|
48
|
+
t8 = {
|
|
49
|
+
collapsed: finalCollapsedValue,
|
|
50
|
+
setCollapsed,
|
|
51
|
+
duration,
|
|
52
|
+
disableAnimation,
|
|
53
|
+
id
|
|
54
|
+
};
|
|
55
|
+
$[4] = disableAnimation;
|
|
56
|
+
$[5] = duration;
|
|
57
|
+
$[6] = finalCollapsedValue;
|
|
58
|
+
$[7] = id;
|
|
59
|
+
$[8] = setCollapsed;
|
|
60
|
+
$[9] = t8;
|
|
61
|
+
} else {
|
|
62
|
+
t8 = $[9];
|
|
63
|
+
}
|
|
64
|
+
let t9;
|
|
65
|
+
if ($[10] !== children || $[11] !== t8) {
|
|
66
|
+
t9 = /*#__PURE__*/jsx(CollapseContext.Provider, {
|
|
67
|
+
value: t8,
|
|
35
68
|
children: children
|
|
36
|
-
})
|
|
37
|
-
|
|
69
|
+
});
|
|
70
|
+
$[10] = children;
|
|
71
|
+
$[11] = t8;
|
|
72
|
+
$[12] = t9;
|
|
73
|
+
} else {
|
|
74
|
+
t9 = $[12];
|
|
75
|
+
}
|
|
76
|
+
let t10;
|
|
77
|
+
if ($[13] !== className || $[14] !== t9) {
|
|
78
|
+
t10 = /*#__PURE__*/jsx("div", {
|
|
79
|
+
className: className,
|
|
80
|
+
children: t9
|
|
81
|
+
});
|
|
82
|
+
$[13] = className;
|
|
83
|
+
$[14] = t9;
|
|
84
|
+
$[15] = t10;
|
|
85
|
+
} else {
|
|
86
|
+
t10 = $[15];
|
|
87
|
+
}
|
|
88
|
+
return t10;
|
|
38
89
|
};
|
|
90
|
+
function _temp() {}
|
|
39
91
|
|
|
40
92
|
export { Collapse, Collapse as default };
|
|
@@ -31,6 +31,6 @@ export default class Confirm extends PureComponent<ConfirmProps> {
|
|
|
31
31
|
onReject: () => void;
|
|
32
32
|
};
|
|
33
33
|
onEscPress: () => void;
|
|
34
|
-
render():
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
export type ConfirmAttributes = React.JSX.LibraryManagedAttributes<typeof Confirm, ConfirmProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent } from 'react';
|
|
3
2
|
import Dialog from '../dialog/dialog.js';
|
|
4
3
|
import { Button } from '../button/button.js';
|
|
5
4
|
import 'classnames';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
6
|
import '../_helpers/island.js';
|
|
7
7
|
import HeaderWrapper from '../island/header.js';
|
|
8
8
|
import ContentWrapper from '../island/content.js';
|
|
@@ -13,6 +13,7 @@ import '../island/island.js';
|
|
|
13
13
|
import '../global/data-tests.js';
|
|
14
14
|
import '../island/adaptive-island-hoc.js';
|
|
15
15
|
import '../global/linear-function.js';
|
|
16
|
+
import 'react-compiler-runtime';
|
|
16
17
|
import 'element-resize-detector';
|
|
17
18
|
import '../global/schedule-raf.js';
|
|
18
19
|
import '../global/get-uid.js';
|
|
@@ -42,9 +43,6 @@ import '../link/clickable-link.js';
|
|
|
42
43
|
import '../global/controls-height.js';
|
|
43
44
|
import '../_helpers/button.classes.js';
|
|
44
45
|
|
|
45
|
-
/**
|
|
46
|
-
* @name Confirm
|
|
47
|
-
*/
|
|
48
46
|
class Confirm extends PureComponent {
|
|
49
47
|
static defaultProps = {
|
|
50
48
|
text: null,
|
|
@@ -77,28 +75,28 @@ class Confirm extends PureComponent {
|
|
|
77
75
|
onReject,
|
|
78
76
|
native
|
|
79
77
|
} = this.props;
|
|
80
|
-
return jsxs(Dialog, {
|
|
78
|
+
return /*#__PURE__*/jsxs(Dialog, {
|
|
81
79
|
label: text || (typeof description === 'string' ? description : undefined),
|
|
82
80
|
className: className,
|
|
83
81
|
onEscPress: this.onEscPress,
|
|
84
82
|
show: show,
|
|
85
83
|
trapFocus: true,
|
|
86
|
-
"data-test":
|
|
84
|
+
"data-test": "ring-confirm",
|
|
87
85
|
native: native,
|
|
88
|
-
children: [text && jsx(HeaderWrapper, {
|
|
86
|
+
children: [text && /*#__PURE__*/jsx(HeaderWrapper, {
|
|
89
87
|
children: text
|
|
90
|
-
}), description && jsx(ContentWrapper, {
|
|
88
|
+
}), description && /*#__PURE__*/jsx(ContentWrapper, {
|
|
91
89
|
children: description
|
|
92
|
-
}), jsxs(Panel, {
|
|
93
|
-
children: [jsx(Button, {
|
|
94
|
-
"data-test":
|
|
90
|
+
}), /*#__PURE__*/jsxs(Panel, {
|
|
91
|
+
children: [/*#__PURE__*/jsx(Button, {
|
|
92
|
+
"data-test": "confirm-ok-button",
|
|
95
93
|
primary: !cancelIsDefault,
|
|
96
94
|
loader: inProgress,
|
|
97
95
|
disabled: inProgress,
|
|
98
96
|
onClick: onConfirm,
|
|
99
97
|
children: confirmLabel
|
|
100
|
-
}), jsx(Button, {
|
|
101
|
-
"data-test":
|
|
98
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
99
|
+
"data-test": "confirm-reject-button",
|
|
102
100
|
onClick: onReject,
|
|
103
101
|
disabled: inProgress,
|
|
104
102
|
primary: cancelIsDefault,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { createRoot } from 'react-dom/client';
|
|
3
2
|
import Confirm from '../confirm/confirm.js';
|
|
4
3
|
import { getGlobalControlsHeight, ControlsHeightContext } from '../global/controls-height.js';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '../dialog/dialog.js';
|
|
7
7
|
import 'react-dom';
|
|
@@ -13,6 +13,7 @@ import '../island/adaptive-island-hoc.js';
|
|
|
13
13
|
import '../global/linear-function.js';
|
|
14
14
|
import '../_helpers/island.js';
|
|
15
15
|
import '../island/header.js';
|
|
16
|
+
import 'react-compiler-runtime';
|
|
16
17
|
import '../island/content.js';
|
|
17
18
|
import 'element-resize-detector';
|
|
18
19
|
import '../global/schedule-raf.js';
|
|
@@ -54,9 +55,9 @@ function renderConfirm(props) {
|
|
|
54
55
|
buttonsHeight = getGlobalControlsHeight(),
|
|
55
56
|
...restProps
|
|
56
57
|
} = props;
|
|
57
|
-
reactRoot.render(jsx(ControlsHeightContext.Provider, {
|
|
58
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext.Provider, {
|
|
58
59
|
value: buttonsHeight,
|
|
59
|
-
children: jsx(Confirm, {
|
|
60
|
+
children: /*#__PURE__*/jsx(Confirm, {
|
|
60
61
|
...restProps
|
|
61
62
|
})
|
|
62
63
|
}));
|
|
@@ -14,6 +14,6 @@ export default class ContentLayout extends Component<ContentLayoutProps> {
|
|
|
14
14
|
contentNode: null;
|
|
15
15
|
};
|
|
16
16
|
saveContentNode: (contentNode: HTMLElement | null) => void;
|
|
17
|
-
render(): import("react
|
|
17
|
+
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export { default as Sidebar } from './sidebar';
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { Component, Children, cloneElement } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import 'react-waypoint';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* @name Content Layout
|
|
9
|
-
*/
|
|
10
7
|
class ContentLayout extends Component {
|
|
11
8
|
static defaultProps = {
|
|
12
9
|
responsive: true
|
|
@@ -37,11 +34,11 @@ class ContentLayout extends Component {
|
|
|
37
34
|
contentNode: this.state.contentNode
|
|
38
35
|
});
|
|
39
36
|
const contentChildren = childrenArray.filter(child => child !== sidebarChild);
|
|
40
|
-
return jsxs("div", {
|
|
41
|
-
"data-test":
|
|
37
|
+
return /*#__PURE__*/jsxs("div", {
|
|
38
|
+
"data-test": "content-layout",
|
|
42
39
|
...restProps,
|
|
43
40
|
className: classes,
|
|
44
|
-
children: [sidebar, jsx("main", {
|
|
41
|
+
children: [sidebar, /*#__PURE__*/jsx("main", {
|
|
45
42
|
className: contentClasses,
|
|
46
43
|
ref: this.saveContentNode,
|
|
47
44
|
children: contentChildren
|
|
@@ -18,5 +18,5 @@ export default class Sidebar extends Component<SidebarProps> {
|
|
|
18
18
|
shouldUseFixation(): boolean;
|
|
19
19
|
shouldFixateBottom(): boolean;
|
|
20
20
|
sidebarRef: (node: HTMLElement | null) => void;
|
|
21
|
-
render(): import("react
|
|
21
|
+
render(): import("react").JSX.Element;
|
|
22
22
|
}
|
|
@@ -18,9 +18,9 @@ declare class ContentEditableBase extends Component<ContentEditableBaseProps> {
|
|
|
18
18
|
};
|
|
19
19
|
shouldComponentUpdate(nextProps: ContentEditableBaseProps): boolean;
|
|
20
20
|
componentDidUpdate(prevProps: ContentEditableBaseProps): void;
|
|
21
|
-
render(): import("react
|
|
21
|
+
render(): import("react").JSX.Element;
|
|
22
22
|
}
|
|
23
23
|
type ContentEditableBaseAttrs = React.JSX.LibraryManagedAttributes<typeof ContentEditableBase, ContentEditableBaseProps>;
|
|
24
24
|
export type ContentEditableProps = Omit<ContentEditableBaseAttrs, '__html'>;
|
|
25
|
-
declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react
|
|
25
|
+
declare const ContentEditable: ({ children, ...props }: ContentEditableProps) => import("react").JSX.Element;
|
|
26
26
|
export default ContentEditable;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { Component } from 'react';
|
|
3
3
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* @name ContentEditable
|
|
7
|
-
*/
|
|
8
6
|
function noop() {}
|
|
9
7
|
class ContentEditableBase extends Component {
|
|
10
8
|
static defaultProps = {
|
|
@@ -29,13 +27,14 @@ class ContentEditableBase extends Component {
|
|
|
29
27
|
inputRef,
|
|
30
28
|
...props
|
|
31
29
|
} = this.props;
|
|
32
|
-
return jsx("div", {
|
|
30
|
+
return /*#__PURE__*/jsx("div", {
|
|
33
31
|
...props,
|
|
34
|
-
ref: inputRef
|
|
32
|
+
ref: inputRef
|
|
35
33
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
34
|
// @ts-ignore
|
|
35
|
+
,
|
|
37
36
|
disabled: disabled,
|
|
38
|
-
role:
|
|
37
|
+
role: "textbox",
|
|
39
38
|
tabIndex: disabled ? undefined : tabIndex,
|
|
40
39
|
contentEditable: !this.props.disabled,
|
|
41
40
|
dangerouslySetInnerHTML: {
|
|
@@ -44,12 +43,49 @@ class ContentEditableBase extends Component {
|
|
|
44
43
|
});
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
|
-
const ContentEditable =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
const ContentEditable = t0 => {
|
|
47
|
+
const $ = c(9);
|
|
48
|
+
if ($[0] !== "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348") {
|
|
49
|
+
for (let $i = 0; $i < 9; $i += 1) {
|
|
50
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
51
|
+
}
|
|
52
|
+
$[0] = "a16faaa5b9814b3292a3bdccbd3ed2550092bea3ba98e71aa85f18aa005eb348";
|
|
53
|
+
}
|
|
54
|
+
let children;
|
|
55
|
+
let props;
|
|
56
|
+
if ($[1] !== t0) {
|
|
57
|
+
({
|
|
58
|
+
children,
|
|
59
|
+
...props
|
|
60
|
+
} = t0);
|
|
61
|
+
$[1] = t0;
|
|
62
|
+
$[2] = children;
|
|
63
|
+
$[3] = props;
|
|
64
|
+
} else {
|
|
65
|
+
children = $[2];
|
|
66
|
+
props = $[3];
|
|
67
|
+
}
|
|
68
|
+
let t1;
|
|
69
|
+
if ($[4] !== children) {
|
|
70
|
+
t1 = renderToStaticMarkup(children);
|
|
71
|
+
$[4] = children;
|
|
72
|
+
$[5] = t1;
|
|
73
|
+
} else {
|
|
74
|
+
t1 = $[5];
|
|
75
|
+
}
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
78
|
+
t2 = /*#__PURE__*/jsx(ContentEditableBase, {
|
|
79
|
+
...props,
|
|
80
|
+
__html: t1
|
|
81
|
+
});
|
|
82
|
+
$[6] = props;
|
|
83
|
+
$[7] = t1;
|
|
84
|
+
$[8] = t2;
|
|
85
|
+
} else {
|
|
86
|
+
t2 = $[8];
|
|
87
|
+
}
|
|
88
|
+
return t2;
|
|
89
|
+
};
|
|
54
90
|
|
|
55
91
|
export { ContentEditable as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type HTMLAttributes } from 'react';
|
|
2
2
|
type ControlHelpProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
-
export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react
|
|
3
|
+
export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,16 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
var styles = {"help":"ring-control-help-help"};
|
|
5
6
|
|
|
6
|
-
function ControlHelp({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
7
|
+
function ControlHelp(t0) {
|
|
8
|
+
const $ = c(9);
|
|
9
|
+
if ($[0] !== "bb004edfe1dacdc07f0fa88dca3e2759708deda4b53bc20ef0799dfbcacb049d") {
|
|
10
|
+
for (let $i = 0; $i < 9; $i += 1) {
|
|
11
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
12
|
+
}
|
|
13
|
+
$[0] = "bb004edfe1dacdc07f0fa88dca3e2759708deda4b53bc20ef0799dfbcacb049d";
|
|
14
|
+
}
|
|
15
|
+
let className;
|
|
16
|
+
let restProps;
|
|
17
|
+
if ($[1] !== t0) {
|
|
18
|
+
({
|
|
19
|
+
className,
|
|
20
|
+
...restProps
|
|
21
|
+
} = t0);
|
|
22
|
+
$[1] = t0;
|
|
23
|
+
$[2] = className;
|
|
24
|
+
$[3] = restProps;
|
|
25
|
+
} else {
|
|
26
|
+
className = $[2];
|
|
27
|
+
restProps = $[3];
|
|
28
|
+
}
|
|
29
|
+
let t1;
|
|
30
|
+
if ($[4] !== className) {
|
|
31
|
+
t1 = classNames(className, styles.help);
|
|
32
|
+
$[4] = className;
|
|
33
|
+
$[5] = t1;
|
|
34
|
+
} else {
|
|
35
|
+
t1 = $[5];
|
|
36
|
+
}
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[6] !== restProps || $[7] !== t1) {
|
|
39
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
40
|
+
className: t1,
|
|
41
|
+
...restProps
|
|
42
|
+
});
|
|
43
|
+
$[6] = restProps;
|
|
44
|
+
$[7] = t1;
|
|
45
|
+
$[8] = t2;
|
|
46
|
+
} else {
|
|
47
|
+
t2 = $[8];
|
|
48
|
+
}
|
|
49
|
+
return t2;
|
|
14
50
|
}
|
|
15
51
|
|
|
16
52
|
export { ControlHelp as default };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
5
|
|
|
4
6
|
var styles = {"label":"ring-control-label-label","formLabel":"ring-control-label-formLabel","secondaryLabel":"ring-control-label-secondaryLabel","disabledLabel":"ring-control-label-disabledLabel"};
|
|
5
7
|
|
|
@@ -12,17 +14,64 @@ const classNameByType = {
|
|
|
12
14
|
[LabelType.SECONDARY]: styles.secondaryLabel,
|
|
13
15
|
[LabelType.FORM]: styles.formLabel
|
|
14
16
|
};
|
|
15
|
-
const ControlLabel =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
const ControlLabel = t0 => {
|
|
18
|
+
const $ = c(13);
|
|
19
|
+
if ($[0] !== "bb4c1a3448a8ab687255dd795b9f172a7ee374fecb5dfc264c1d31d9ce69f171") {
|
|
20
|
+
for (let $i = 0; $i < 13; $i += 1) {
|
|
21
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
22
|
+
}
|
|
23
|
+
$[0] = "bb4c1a3448a8ab687255dd795b9f172a7ee374fecb5dfc264c1d31d9ce69f171";
|
|
24
|
+
}
|
|
25
|
+
let children;
|
|
26
|
+
let disabled;
|
|
27
|
+
let rest;
|
|
28
|
+
let t1;
|
|
29
|
+
if ($[1] !== t0) {
|
|
30
|
+
({
|
|
31
|
+
children,
|
|
32
|
+
type: t1,
|
|
33
|
+
disabled,
|
|
34
|
+
...rest
|
|
35
|
+
} = t0);
|
|
36
|
+
$[1] = t0;
|
|
37
|
+
$[2] = children;
|
|
38
|
+
$[3] = disabled;
|
|
39
|
+
$[4] = rest;
|
|
40
|
+
$[5] = t1;
|
|
41
|
+
} else {
|
|
42
|
+
children = $[2];
|
|
43
|
+
disabled = $[3];
|
|
44
|
+
rest = $[4];
|
|
45
|
+
t1 = $[5];
|
|
46
|
+
}
|
|
47
|
+
const type = t1 === undefined ? LabelType.SECONDARY : t1;
|
|
48
|
+
const t2 = classNameByType[type];
|
|
49
|
+
let t3;
|
|
50
|
+
if ($[6] !== disabled || $[7] !== t2) {
|
|
51
|
+
t3 = classNames(styles.label, t2, {
|
|
52
|
+
[styles.disabledLabel]: disabled
|
|
53
|
+
});
|
|
54
|
+
$[6] = disabled;
|
|
55
|
+
$[7] = t2;
|
|
56
|
+
$[8] = t3;
|
|
57
|
+
} else {
|
|
58
|
+
t3 = $[8];
|
|
59
|
+
}
|
|
60
|
+
let t4;
|
|
61
|
+
if ($[9] !== children || $[10] !== rest || $[11] !== t3) {
|
|
62
|
+
t4 = /*#__PURE__*/jsx("label", {
|
|
63
|
+
className: t3,
|
|
64
|
+
...rest,
|
|
65
|
+
children: children
|
|
66
|
+
});
|
|
67
|
+
$[9] = children;
|
|
68
|
+
$[10] = rest;
|
|
69
|
+
$[11] = t3;
|
|
70
|
+
$[12] = t4;
|
|
71
|
+
} else {
|
|
72
|
+
t4 = $[12];
|
|
73
|
+
}
|
|
74
|
+
return t4;
|
|
75
|
+
};
|
|
27
76
|
|
|
28
77
|
export { ControlLabel, LabelType, ControlLabel as default };
|
|
@@ -21,6 +21,6 @@ type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHov
|
|
|
21
21
|
export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
|
|
22
22
|
export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
|
|
23
23
|
DataList: import("react").ComponentClass<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>, any>;
|
|
24
|
-
render(): import("react
|
|
24
|
+
render(): import("react").JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
1
|
import { Component, PureComponent } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
@@ -9,6 +8,7 @@ import Shortcuts from '../shortcuts/shortcuts.js';
|
|
|
9
8
|
import Loader from '../loader/loader.js';
|
|
10
9
|
import Item, { moreLessButtonStates } from './item.js';
|
|
11
10
|
import { s as styles } from '../_helpers/title.js';
|
|
11
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import '../global/compose-refs.js';
|
|
13
13
|
import 'memoize-one';
|
|
14
14
|
import '../shortcuts/core.js';
|
|
@@ -31,6 +31,7 @@ import 'util-deprecate';
|
|
|
31
31
|
import '../icon/icon.js';
|
|
32
32
|
import '../icon/icon.constants.js';
|
|
33
33
|
import '../_helpers/icon-svg.js';
|
|
34
|
+
import 'react-compiler-runtime';
|
|
34
35
|
import '../global/memoize.js';
|
|
35
36
|
import '../global/controls-height.js';
|
|
36
37
|
import '../global/configuration.js';
|
|
@@ -121,14 +122,14 @@ class DataList extends PureComponent {
|
|
|
121
122
|
[styles.disabledHover]: disabledHover,
|
|
122
123
|
[styles.multiSelection]: selection.getSelected().size > 0
|
|
123
124
|
});
|
|
124
|
-
return jsxs("div", {
|
|
125
|
+
return /*#__PURE__*/jsxs("div", {
|
|
125
126
|
className: styles.dataListWrapper,
|
|
126
|
-
"data-test":
|
|
127
|
+
"data-test": "ring-data-list",
|
|
127
128
|
ref: innerRef,
|
|
128
|
-
children: [focused && jsx(Shortcuts, {
|
|
129
|
+
children: [focused && /*#__PURE__*/jsx(Shortcuts, {
|
|
129
130
|
map: shortcutsMap,
|
|
130
131
|
scope: this.shortcutsScope
|
|
131
|
-
}), jsx("ul", {
|
|
132
|
+
}), /*#__PURE__*/jsx("ul", {
|
|
132
133
|
className: classes,
|
|
133
134
|
children: data.map(model => {
|
|
134
135
|
const item = itemFormatter(model);
|
|
@@ -139,7 +140,7 @@ class DataList extends PureComponent {
|
|
|
139
140
|
items
|
|
140
141
|
} = item;
|
|
141
142
|
const showMoreLessButton = this.props.itemMoreLessState?.(item);
|
|
142
|
-
return jsx(Item, {
|
|
143
|
+
return /*#__PURE__*/jsx(Item, {
|
|
143
144
|
item: model,
|
|
144
145
|
title: title,
|
|
145
146
|
items: items,
|
|
@@ -159,9 +160,9 @@ class DataList extends PureComponent {
|
|
|
159
160
|
onItemMoreLess: this.props.onItemMoreLess
|
|
160
161
|
}, key || id);
|
|
161
162
|
})
|
|
162
|
-
}), loading && jsx("div", {
|
|
163
|
+
}), loading && /*#__PURE__*/jsx("div", {
|
|
163
164
|
className: data.length > 0 ? styles.loadingOverlay : undefined,
|
|
164
|
-
children: jsx(Loader, {})
|
|
165
|
+
children: /*#__PURE__*/jsx(Loader, {})
|
|
165
166
|
})]
|
|
166
167
|
});
|
|
167
168
|
}
|
|
@@ -172,7 +173,7 @@ class DataListContainer extends Component {
|
|
|
172
173
|
// https://stackoverflow.com/a/53882322/6304152
|
|
173
174
|
DataList = getContainer();
|
|
174
175
|
render() {
|
|
175
|
-
return jsx(this.DataList, {
|
|
176
|
+
return /*#__PURE__*/jsx(this.DataList, {
|
|
176
177
|
...this.props
|
|
177
178
|
});
|
|
178
179
|
}
|