@jetbrains/ring-ui 5.0.139 → 5.0.140
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/alert/alert.d.ts +1 -1
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.d.ts +2 -1
- package/components/badge/badge.d.ts +2 -2
- package/components/button/button.d.ts +1 -1
- package/components/button-group/button-group.d.ts +2 -2
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/checkbox/checkbox.d.ts +2 -2
- package/components/code/code.d.ts +1 -1
- package/components/confirm/confirm.d.ts +1 -1
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/title.d.ts +1 -1
- package/components/date-picker/consts.d.ts +5 -5
- package/components/date-picker/date-input.d.ts +3 -12
- package/components/date-picker/date-input.js +7 -15
- package/components/date-picker/date-picker.d.ts +8 -6
- package/components/date-picker/date-picker.js +9 -15
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/month-names.d.ts +2 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month.d.ts +2 -1
- package/components/date-picker/months.d.ts +2 -1
- package/components/date-picker/weekdays.d.ts +2 -1
- package/components/date-picker/years.d.ts +2 -2
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +8 -1
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/grid/col.d.ts +2 -2
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/row.d.ts +2 -2
- package/components/group/group.d.ts +2 -2
- package/components/header/header.d.ts +2 -2
- package/components/header/logo.d.ts +2 -2
- package/components/header/profile.d.ts +1 -1
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services.d.ts +2 -2
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray.d.ts +2 -2
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/input/input-label.d.ts +2 -2
- package/components/input/input.d.ts +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/content.d.ts +1 -1
- package/components/island/header.d.ts +2 -2
- package/components/island/island.d.ts +3 -3
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.d.ts +8 -8
- package/components/list/list.d.ts +6 -6
- package/components/list/list__custom.d.ts +1 -1
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__title.d.ts +2 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/markdown/code.d.ts +2 -1
- package/components/markdown/heading.d.ts +2 -1
- package/components/markdown/link.d.ts +2 -1
- package/components/markdown/markdown.d.ts +2 -2
- package/components/message/message.d.ts +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/panel/panel.d.ts +2 -2
- package/components/popup/popup.d.ts +2 -2
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.d.ts +2 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio__item.d.ts +1 -1
- package/components/select/select.d.ts +4 -4
- package/components/select/select.js +1 -1
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__popup.d.ts +7 -7
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table/cell.d.ts +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header.d.ts +3 -3
- package/components/table/multitable.d.ts +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row.d.ts +1 -1
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/table.d.ts +4 -4
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tag/tag.d.ts +5 -5
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/text/text.d.ts +2 -2
- package/components/toggle/toggle.d.ts +2 -2
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/tooltip.d.ts +3 -3
- package/dist/alert/alert.d.ts +1 -1
- package/dist/alert-service/alert-service.d.ts +2 -2
- package/dist/auth/iframe-flow.js +1 -1
- package/dist/auth/landing.js +3 -3
- package/dist/auth-dialog/auth-dialog.d.ts +2 -2
- package/dist/avatar/avatar.d.ts +2 -2
- package/dist/avatar/fallback-avatar.d.ts +2 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +2 -2
- package/dist/badge/badge.d.ts +2 -2
- package/dist/breadcrumb-ng/breadcrumb-ng.js +2 -2
- package/dist/button/button.d.ts +1 -1
- package/dist/button-group/button-group.d.ts +2 -2
- package/dist/button-group/caption.d.ts +2 -2
- package/dist/button-ng/button-ng.js +2 -2
- package/dist/button-set/button-set.d.ts +2 -2
- package/dist/button-toolbar/button-toolbar.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts +2 -2
- package/dist/code/code.d.ts +1 -1
- package/dist/confirm/confirm.d.ts +1 -1
- package/dist/confirm-ng/confirm-ng.js +2 -2
- package/dist/content-layout/content-layout.d.ts +2 -2
- package/dist/content-layout/sidebar.d.ts +2 -2
- package/dist/contenteditable/contenteditable.d.ts +3 -3
- package/dist/data-list/data-list.d.ts +3 -3
- package/dist/data-list/data-list.mock.d.ts +2 -2
- package/dist/data-list/item.d.ts +3 -3
- package/dist/data-list/title.d.ts +1 -1
- package/dist/date-picker/consts.d.ts +5 -5
- package/dist/date-picker/date-input.d.ts +3 -12
- package/dist/date-picker/date-input.js +11 -17
- package/dist/date-picker/date-picker.d.ts +8 -6
- package/dist/date-picker/date-picker.js +15 -18
- package/dist/date-picker/date-popup.d.ts +1 -1
- package/dist/date-picker/date-popup.js +1 -1
- package/dist/date-picker/day.d.ts +2 -2
- package/dist/date-picker/month-names.d.ts +2 -1
- package/dist/date-picker/month-slider.d.ts +2 -2
- package/dist/date-picker/month.d.ts +2 -1
- package/dist/date-picker/months.d.ts +2 -1
- package/dist/date-picker/weekdays.d.ts +2 -1
- package/dist/date-picker/years.d.ts +2 -2
- package/dist/dialog-ng/dialog-ng.js +8 -8
- package/dist/dropdown/anchor.d.ts +1 -1
- package/dist/dropdown/dropdown.d.ts +8 -1
- package/dist/editable-heading/editable-heading.d.ts +2 -2
- package/dist/error-bubble/error-bubble.d.ts +2 -2
- package/dist/error-message/error-message.d.ts +2 -2
- package/dist/error-message-ng/error-message-ng.js +2 -2
- package/dist/form-ng/form-ng.js +2 -2
- package/dist/global/create-stateful-context.d.ts +1 -1
- package/dist/global/react-dom-renderer.d.ts +2 -2
- package/dist/grid/col.d.ts +2 -2
- package/dist/grid/grid.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/group/group.d.ts +2 -2
- package/dist/header/header.d.ts +2 -2
- package/dist/header/logo.d.ts +2 -2
- package/dist/header/profile.d.ts +1 -1
- package/dist/header/services-link.d.ts +2 -2
- package/dist/header/services.d.ts +2 -2
- package/dist/header/smart-profile.d.ts +2 -2
- package/dist/header/smart-services.d.ts +2 -2
- package/dist/header/tray-icon.d.ts +2 -2
- package/dist/header/tray.d.ts +2 -2
- package/dist/icon/icon.d.ts +2 -2
- package/dist/icon/icon__svg.d.ts +1 -1
- package/dist/input/input-label.d.ts +2 -2
- package/dist/input/input.d.ts +1 -1
- package/dist/input-ng/input-ng.js +2 -2
- package/dist/island/adaptive-island-hoc.d.ts +2 -2
- package/dist/island/content.d.ts +1 -1
- package/dist/island/header.d.ts +2 -2
- package/dist/island/island.d.ts +3 -3
- package/dist/island-legacy/content-legacy.d.ts +2 -2
- package/dist/island-legacy/header-legacy.d.ts +2 -2
- package/dist/island-legacy/island-legacy.d.ts +2 -2
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/link.d.ts +8 -8
- package/dist/link/link.js +1 -1
- package/dist/link-ng/link-ng.js +2 -2
- package/dist/list/list.d.ts +6 -6
- package/dist/list/list__custom.d.ts +1 -1
- package/dist/list/list__hint.d.ts +2 -2
- package/dist/list/list__item.d.ts +2 -2
- package/dist/list/list__link.d.ts +2 -2
- package/dist/list/list__separator.d.ts +2 -2
- package/dist/list/list__title.d.ts +2 -2
- package/dist/loader/loader.d.ts +2 -2
- package/dist/loader-inline/loader-inline.d.ts +2 -2
- package/dist/loader-screen/loader-screen.d.ts +2 -2
- package/dist/login-dialog/login-dialog.d.ts +2 -2
- package/dist/markdown/code.d.ts +2 -1
- package/dist/markdown/heading.d.ts +2 -1
- package/dist/markdown/link.d.ts +2 -1
- package/dist/markdown/markdown.d.ts +2 -2
- package/dist/message/message.d.ts +2 -2
- package/dist/message-bundle-ng/message-bundle-ng.js +2 -2
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.d.ts +5 -5
- package/dist/panel/panel.d.ts +2 -2
- package/dist/popup/popup.d.ts +2 -2
- package/dist/popup-menu/popup-menu.d.ts +2 -2
- package/dist/progress-bar/progress-bar.d.ts +2 -2
- package/dist/query-assist/query-assist.d.ts +2 -2
- package/dist/query-assist/query-assist.js +4 -4
- package/dist/query-assist/query-assist__suggestions.d.ts +2 -1
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio__item.d.ts +1 -1
- package/dist/save-field-ng/save-field-ng.js +5 -5
- package/dist/select/select.d.ts +4 -4
- package/dist/select/select.js +2 -2
- package/dist/select/select__filter.d.ts +2 -2
- package/dist/select/select__popup.d.ts +7 -7
- package/dist/select/select__popup.js +4 -4
- package/dist/select-ng/select-ng.js +2 -2
- package/dist/shortcuts/core.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/dist/shortcuts/shortcuts.js +6 -6
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +3 -3
- package/dist/shortcuts-ng/shortcuts-ng.js +24 -24
- package/dist/sidebar-ng/sidebar-ng.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/table/cell.d.ts +2 -2
- package/dist/table/disable-hover-hoc.d.ts +2 -2
- package/dist/table/header-cell.d.ts +2 -2
- package/dist/table/header.d.ts +3 -3
- package/dist/table/multitable.d.ts +2 -2
- package/dist/table/row-with-focus-sensor.d.ts +1 -1
- package/dist/table/row.d.ts +1 -1
- package/dist/table/smart-table.d.ts +1 -1
- package/dist/table/table.d.ts +4 -4
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +2 -2
- package/dist/tabs/collapsible-more.d.ts +3 -3
- package/dist/tabs/collapsible-more.js +5 -5
- package/dist/tabs/collapsible-tab.d.ts +1 -1
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/dumb-tabs.d.ts +3 -3
- package/dist/tabs/smart-tabs.d.ts +2 -2
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab.d.ts +2 -2
- package/dist/tag/tag.d.ts +5 -5
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-list/tags-list.d.ts +2 -2
- package/dist/text/text.d.ts +2 -2
- package/dist/toggle/toggle.d.ts +2 -2
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/user-agreement/service.js +7 -7
- package/dist/user-agreement/user-agreement.d.ts +2 -2
- package/dist/user-agreement/user-agreement.js +3 -3
- package/dist/user-card/card.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/dist/user-card/smart-user-card-tooltip.js +28 -28
- package/dist/user-card/tooltip.d.ts +3 -3
- package/dist/user-card-ng/user-card-ng.js +4 -4
- package/package.json +43 -43
package/dist/radio/radio.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export default class Radio extends Component<RadioProps> {
|
|
|
14
14
|
};
|
|
15
15
|
static Item: React.ForwardRefExoticComponent<import("./radio__item").RadioItemProps & React.RefAttributes<import("./radio__item").Radio>>;
|
|
16
16
|
uid: string;
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
@@ -19,7 +19,7 @@ export declare class Radio extends Component<InputHTMLAttributes<HTMLInputElemen
|
|
|
19
19
|
inputRef: (el: HTMLElement | null) => void;
|
|
20
20
|
label?: HTMLElement | null;
|
|
21
21
|
labelRef: (el: HTMLElement | null) => void;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
}
|
|
24
24
|
export interface RadioItemProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
25
25
|
value: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import '../loader-inline/loader-inline.js';
|
|
3
3
|
import ButtonSet from '../button-set-ng/button-set-ng.js';
|
|
4
|
-
import
|
|
4
|
+
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
5
5
|
import Form from '../form-ng/form-ng.js';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import ShortcutsNg from '../shortcuts-ng/shortcuts-ng.js';
|
|
7
|
+
import ButtonNG from '../button-ng/button-ng.js';
|
|
8
8
|
import PromisedClick from '../promised-click-ng/promised-click-ng.js';
|
|
9
9
|
import template from './save-field-ng__template.js';
|
|
10
10
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
@@ -27,11 +27,11 @@ import '../_helpers/icon.js';
|
|
|
27
27
|
import '../_helpers/button__classes.js';
|
|
28
28
|
import '../global/controls-height.js';
|
|
29
29
|
|
|
30
|
-
const angularModule = angular.module('Ring.save-field', [
|
|
30
|
+
const angularModule = angular.module('Ring.save-field', [MessageBundle,
|
|
31
31
|
/**
|
|
32
32
|
* for error-bubble
|
|
33
33
|
*/
|
|
34
|
-
Form,
|
|
34
|
+
Form, ShortcutsNg, ButtonNG, ButtonSet, PromisedClick]);
|
|
35
35
|
angularModule.constant('rgSaveFieldShortcutsMode', {
|
|
36
36
|
id: 'ring-save-field',
|
|
37
37
|
shortcuts: [{
|
package/dist/select/select.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare function noop(): void;
|
|
|
12
12
|
/**
|
|
13
13
|
* @enum {number}
|
|
14
14
|
*/
|
|
15
|
-
declare enum Type {
|
|
15
|
+
export declare enum Type {
|
|
16
16
|
BUTTON = "BUTTON",
|
|
17
17
|
INPUT = "INPUT",
|
|
18
18
|
CUSTOM = "CUSTOM",
|
|
@@ -214,7 +214,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
214
214
|
_showPopup(): void;
|
|
215
215
|
_hidePopup(tryFocusAnchor?: boolean): void;
|
|
216
216
|
addHandler: () => void;
|
|
217
|
-
getToolbar(): JSX.Element | null;
|
|
217
|
+
getToolbar(): React.JSX.Element | null;
|
|
218
218
|
getLowerCaseLabel: typeof getLowerCaseLabel;
|
|
219
219
|
doesLabelMatch: typeof doesLabelMatch;
|
|
220
220
|
getFilterFn(): FilterFn<T>;
|
|
@@ -252,8 +252,8 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
252
252
|
'shift+down': typeof noop;
|
|
253
253
|
space: typeof noop;
|
|
254
254
|
};
|
|
255
|
-
renderSelect(activeItemId: string | undefined): JSX.Element;
|
|
256
|
-
render(): JSX.Element;
|
|
255
|
+
renderSelect(activeItemId: string | undefined): React.JSX.Element;
|
|
256
|
+
render(): React.JSX.Element;
|
|
257
257
|
}
|
|
258
258
|
export type SingleSelectAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
|
259
259
|
export type MultipleSelectAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
package/dist/select/select.js
CHANGED
|
@@ -68,8 +68,8 @@ import '../list/list__title.js';
|
|
|
68
68
|
import '../list/list__separator.js';
|
|
69
69
|
import '../list/list__hint.js';
|
|
70
70
|
import '../list/consts.js';
|
|
71
|
-
import '../global/react-render-adapter.js';
|
|
72
71
|
import '../i18n/i18n.js';
|
|
72
|
+
import '../global/react-render-adapter.js';
|
|
73
73
|
import '@jetbrains/icons/search';
|
|
74
74
|
import '../loader-inline/loader-inline.js';
|
|
75
75
|
import '../_helpers/loader-inline.js';
|
|
@@ -1160,4 +1160,4 @@ Select.propTypes = {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
const RerenderableSelect = rerenderHOC(Select);
|
|
1162
1162
|
|
|
1163
|
-
export { RerenderableSelect, Select as default };
|
|
1163
|
+
export { RerenderableSelect, Type, Select as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, RefCallback } from 'react';
|
|
1
|
+
import React, { Component, RefCallback } from 'react';
|
|
2
2
|
import { InputAttrs } from '../input/input';
|
|
3
3
|
declare function noop(): void;
|
|
4
4
|
type SelectFilterProps = InputAttrs & {
|
|
@@ -14,6 +14,6 @@ export default class SelectFilter extends Component<SelectFilterProps> {
|
|
|
14
14
|
blur(): void;
|
|
15
15
|
input?: HTMLInputElement | HTMLTextAreaElement | null;
|
|
16
16
|
inputRef: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -101,16 +101,16 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
101
101
|
onListSelect: (selected: ListDataItem<T>, event?: Event | SyntheticEvent, opts?: SelectHandlerParams) => void;
|
|
102
102
|
tabPress: (event: Event) => void;
|
|
103
103
|
onClickHandler: () => void | undefined;
|
|
104
|
-
getFilter(): JSX.Element | null;
|
|
104
|
+
getFilter(): React.JSX.Element | null;
|
|
105
105
|
handleRemoveTag: (arg: ListDataItem<T>) => (event: SyntheticEvent) => void;
|
|
106
106
|
handleTagClick: (arg: ListDataItem<T>) => () => void;
|
|
107
|
-
getTags(): false | JSX.Element;
|
|
108
|
-
getFilterWithTags(): JSX.Element | null;
|
|
109
|
-
getBottomLine(): "" | JSX.Element | null;
|
|
107
|
+
getTags(): false | React.JSX.Element;
|
|
108
|
+
getFilterWithTags(): React.JSX.Element | null;
|
|
109
|
+
getBottomLine(): "" | React.JSX.Element | null;
|
|
110
110
|
handleListResize: () => void;
|
|
111
|
-
getList(ringPopupTarget: string | Element | undefined): JSX.Element | null;
|
|
111
|
+
getList(ringPopupTarget: string | Element | undefined): React.JSX.Element | null;
|
|
112
112
|
handleSelectAll: () => void;
|
|
113
|
-
getSelectAll: () => false | JSX.Element;
|
|
113
|
+
getSelectAll: () => false | React.JSX.Element;
|
|
114
114
|
private _adjustListMaxHeight;
|
|
115
115
|
popupRef: (el: Popup | null) => void;
|
|
116
116
|
list?: List<T> | null;
|
|
@@ -121,6 +121,6 @@ export default class SelectPopup<T = unknown> extends PureComponent<SelectPopupP
|
|
|
121
121
|
tab: (event: Event) => void;
|
|
122
122
|
};
|
|
123
123
|
popupFilterShortcutsMap: ShortcutsMap;
|
|
124
|
-
render(): JSX.Element;
|
|
124
|
+
render(): React.JSX.Element;
|
|
125
125
|
}
|
|
126
126
|
export type SelectPopupAttrs<T = unknown> = JSX.LibraryManagedAttributes<typeof SelectPopup, SelectPopupProps<T>>;
|
|
@@ -30,10 +30,6 @@ import 'react-dom';
|
|
|
30
30
|
import '../global/schedule-raf.js';
|
|
31
31
|
import '../global/data-tests.js';
|
|
32
32
|
import '../tab-trap/tab-trap.js';
|
|
33
|
-
import '../shortcuts/core.js';
|
|
34
|
-
import 'combokeys';
|
|
35
|
-
import '../global/sniffer.js';
|
|
36
|
-
import 'sniffr';
|
|
37
33
|
import 'react-virtualized/dist/es/List';
|
|
38
34
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
39
35
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -60,6 +56,10 @@ import '../list/list__title.js';
|
|
|
60
56
|
import '../list/list__separator.js';
|
|
61
57
|
import '../list/list__hint.js';
|
|
62
58
|
import '../list/consts.js';
|
|
59
|
+
import '../shortcuts/core.js';
|
|
60
|
+
import 'combokeys';
|
|
61
|
+
import '../global/sniffer.js';
|
|
62
|
+
import 'sniffr';
|
|
63
63
|
import '../_helpers/loader-inline.js';
|
|
64
64
|
import '../tag/tag.js';
|
|
65
65
|
import '@jetbrains/icons/close-12px';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { unmountComponentAtNode, render } from '../global/react-render-adapter.js';
|
|
5
5
|
import getEventKey from '../global/get-event-key.js';
|
|
6
6
|
import Select, { RerenderableSelect } from '../select/select.js';
|
|
7
|
-
import
|
|
7
|
+
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
8
8
|
import { ControlsHeight } from '../global/controls-height.js';
|
|
9
9
|
import SelectNgOptions from './select-ng__options.js';
|
|
10
10
|
import SelectLazy from './select-ng__lazy.js';
|
|
@@ -92,7 +92,7 @@ const DIALOG_NG_SELECTOR = '[data-anchor=dialog-container][data-in-sidebar=false
|
|
|
92
92
|
* @name Select Ng
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
const angularModule = angular.module('Ring.select', [SelectNgOptions,
|
|
95
|
+
const angularModule = angular.module('Ring.select', [SelectNgOptions, MessageBundle]);
|
|
96
96
|
angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
97
97
|
const types = {
|
|
98
98
|
input: Select.Type.INPUT,
|
package/dist/shortcuts/core.js
CHANGED
|
@@ -11,7 +11,7 @@ export interface ShortcutsHOCProps {
|
|
|
11
11
|
export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentType<P> | string): {
|
|
12
12
|
new (props: (P & ShortcutsHOCProps) | Readonly<P & ShortcutsHOCProps>): {
|
|
13
13
|
_shortcutsScopeUid: string;
|
|
14
|
-
render(): JSX.Element;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
15
|
context: unknown;
|
|
16
16
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
17
17
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -35,7 +35,7 @@ export default function shortcutsHOC<P extends {}>(ComposedComponent: ComponentT
|
|
|
35
35
|
};
|
|
36
36
|
new (props: P & ShortcutsHOCProps, context: any): {
|
|
37
37
|
_shortcutsScopeUid: string;
|
|
38
|
-
render(): JSX.Element;
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
39
|
context: unknown;
|
|
40
40
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<P & ShortcutsHOCProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
41
41
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import shortcutsInstance from './core.js';
|
|
4
4
|
import 'combokeys';
|
|
5
5
|
import '../global/sniffer.js';
|
|
6
6
|
import 'sniffr';
|
|
@@ -33,7 +33,7 @@ class Shortcuts extends PureComponent {
|
|
|
33
33
|
this.turnShorcutsOn();
|
|
34
34
|
}
|
|
35
35
|
if (prevProps.map !== map) {
|
|
36
|
-
|
|
36
|
+
shortcutsInstance.bindMap(map, this.props);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
componentWillUnmount() {
|
|
@@ -47,15 +47,15 @@ class Shortcuts extends PureComponent {
|
|
|
47
47
|
scope,
|
|
48
48
|
options
|
|
49
49
|
} = this.props;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
shortcutsInstance.bindMap(map, this.props);
|
|
51
|
+
shortcutsInstance.pushScope(scope, options);
|
|
52
52
|
}
|
|
53
53
|
turnShorcutsOff() {
|
|
54
54
|
const {
|
|
55
55
|
scope
|
|
56
56
|
} = this.props;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
shortcutsInstance.unbindScope(scope);
|
|
58
|
+
shortcutsInstance.spliceScope(scope);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
61
|
return this.props.children || null;
|
|
@@ -2,7 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import searchIcon from '@jetbrains/icons/search';
|
|
3
3
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
4
4
|
import DialogNg from '../dialog-ng/dialog-ng.js';
|
|
5
|
-
import
|
|
5
|
+
import ShortcutsNg from '../shortcuts-ng/shortcuts-ng.js';
|
|
6
6
|
import RingTemplateNg from '../template-ng/template-ng.js';
|
|
7
7
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
8
8
|
import InputNg from '../input-ng/input-ng.js';
|
|
@@ -19,9 +19,9 @@ import 'classnames';
|
|
|
19
19
|
import '../_helpers/button__classes.js';
|
|
20
20
|
import '../global/controls-height.js';
|
|
21
21
|
import 'react';
|
|
22
|
+
import '../promised-click-ng/promised-click-ng.js';
|
|
22
23
|
import '../icon/icon__constants.js';
|
|
23
24
|
import '../_helpers/icon.js';
|
|
24
|
-
import '../promised-click-ng/promised-click-ng.js';
|
|
25
25
|
import '../compiler-ng/compiler-ng.js';
|
|
26
26
|
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
27
27
|
import 'scrollbar-width';
|
|
@@ -34,7 +34,7 @@ import '../_helpers/input.js';
|
|
|
34
34
|
* @name Shortcuts Ng Hint Popup
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
-
const angularModule = angular.module('Ring.shortcuts.hint-popup', [DialogNg,
|
|
37
|
+
const angularModule = angular.module('Ring.shortcuts.hint-popup', [DialogNg, ShortcutsNg, IconNG, InputNg, RingTemplateNg]);
|
|
38
38
|
const getTitle = title => typeof title === 'function' ? title() : title;
|
|
39
39
|
class HintPopupService extends RingAngularComponent {
|
|
40
40
|
show() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import { getStyles } from '../global/dom.js';
|
|
3
|
-
import
|
|
3
|
+
import shortcutsInstance from '../shortcuts/core.js';
|
|
4
4
|
import 'combokeys';
|
|
5
5
|
import '../global/sniffer.js';
|
|
6
6
|
import 'sniffr';
|
|
@@ -38,7 +38,7 @@ angularModule.provider('shortcuts', function provider() {
|
|
|
38
38
|
if (!angular.isFunction(handlers[key.action])) {
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
shortcutsInstance.bind({
|
|
42
42
|
key: key.key,
|
|
43
43
|
scope: scope || name,
|
|
44
44
|
handler: function () {
|
|
@@ -57,21 +57,21 @@ angularModule.provider('shortcuts', function provider() {
|
|
|
57
57
|
const actions = modes[mode];
|
|
58
58
|
for (let i = actions.length - 1; i >= 0; i--) {
|
|
59
59
|
if (actions[i].action === action) {
|
|
60
|
-
return
|
|
60
|
+
return shortcutsInstance.trigger(actions[i].key[0] || actions[i].key);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return undefined;
|
|
64
64
|
},
|
|
65
65
|
isMainMode: name => mainModes[name],
|
|
66
66
|
getRegisteredShortcuts: () => reference,
|
|
67
|
-
shortcuts:
|
|
67
|
+
shortcuts: shortcutsInstance
|
|
68
68
|
};
|
|
69
69
|
}];
|
|
70
70
|
});
|
|
71
71
|
angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
72
72
|
return {
|
|
73
73
|
restrict: 'A',
|
|
74
|
-
controller: ["$scope", "$rootScope", "$attrs", "shortcuts", function controller($scope, $rootScope, $attrs, shortcuts
|
|
74
|
+
controller: ["$scope", "$rootScope", "$attrs", "shortcuts", function controller($scope, $rootScope, $attrs, shortcuts) {
|
|
75
75
|
$scope.zones = [];
|
|
76
76
|
$scope.loop = 'shortcutsLoop' in $attrs;
|
|
77
77
|
function getNext(current, back) {
|
|
@@ -103,13 +103,13 @@ angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
if ($scope.current) {
|
|
106
|
-
|
|
106
|
+
shortcutsInstance.spliceScope($scope.current.scope);
|
|
107
107
|
this.deselect();
|
|
108
108
|
}
|
|
109
109
|
if (!next) {
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
shortcutsInstance.pushScope(next.scope);
|
|
113
113
|
$scope.current = next;
|
|
114
114
|
};
|
|
115
115
|
this.route = (action, e, combo, mode) => {
|
|
@@ -121,12 +121,12 @@ angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// Reset current zone if it's not equal to the current scope
|
|
124
|
-
if ($scope.current && $scope.current.scope !==
|
|
124
|
+
if ($scope.current && $scope.current.scope !== shortcutsInstance.getScope().pop().scopeId) {
|
|
125
125
|
this.deselect();
|
|
126
126
|
}
|
|
127
127
|
if (action === 'main') {
|
|
128
128
|
$scope.zones.forEach((zone, index) => {
|
|
129
|
-
if (shortcuts
|
|
129
|
+
if (shortcuts.isMainMode(zone.name)) {
|
|
130
130
|
next = $scope.zones[index];
|
|
131
131
|
}
|
|
132
132
|
});
|
|
@@ -137,12 +137,12 @@ angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
|
137
137
|
// Select next zone and trigger same combo there
|
|
138
138
|
if (next) {
|
|
139
139
|
this.select(next);
|
|
140
|
-
if (
|
|
141
|
-
|
|
140
|
+
if (shortcutsInstance.hasKey(combo, next.scope)) {
|
|
141
|
+
shortcutsInstance.trigger(combo);
|
|
142
142
|
}
|
|
143
143
|
// Otherwise go back
|
|
144
144
|
} else {
|
|
145
|
-
shortcuts
|
|
145
|
+
shortcuts.triggerAction(mode, action === 'next' ? 'prev' : 'next');
|
|
146
146
|
}
|
|
147
147
|
return false;
|
|
148
148
|
};
|
|
@@ -154,13 +154,13 @@ angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
|
154
154
|
$scope.zones.sort((a, b) => a.order - b.order);
|
|
155
155
|
};
|
|
156
156
|
this.setup = (zone, keys) => {
|
|
157
|
-
shortcuts
|
|
157
|
+
shortcuts.bind(zone.name, keys, zone.scope);
|
|
158
158
|
$scope.zones.push(zone);
|
|
159
159
|
this.sort();
|
|
160
160
|
};
|
|
161
161
|
this.destroy = zone => {
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
shortcutsInstance.spliceScope(zone.scope);
|
|
163
|
+
shortcutsInstance.unbindScope(zone.scope);
|
|
164
164
|
const position = $scope.zones.indexOf(zone);
|
|
165
165
|
if (position !== -1) {
|
|
166
166
|
$scope.zones.splice(position, 1);
|
|
@@ -173,8 +173,8 @@ angularModule.directive('rgShortcutsApp', function rgShortcutsAppDirective() {
|
|
|
173
173
|
prev: this.route.bind(this, 'prev'),
|
|
174
174
|
main: this.route.bind(this, 'main')
|
|
175
175
|
};
|
|
176
|
-
shortcuts
|
|
177
|
-
|
|
176
|
+
shortcuts.bind('ring-shortcuts', keyMap);
|
|
177
|
+
shortcutsInstance.pushScope('ring-shortcuts');
|
|
178
178
|
}]
|
|
179
179
|
};
|
|
180
180
|
});
|
|
@@ -208,23 +208,23 @@ angularModule.directive('rgShortcuts', ["$parse", function rgShortcutsDirective(
|
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
}]);
|
|
211
|
-
angularModule.directive('rgShortcutsGlobal', ["shortcuts", function rgShortcutsGlobalDirective(shortcuts
|
|
211
|
+
angularModule.directive('rgShortcutsGlobal', ["shortcuts", function rgShortcutsGlobalDirective(shortcuts) {
|
|
212
212
|
return {
|
|
213
213
|
restrict: 'A',
|
|
214
214
|
link: function link($scope, iElement, iAttrs) {
|
|
215
215
|
const name = iAttrs.rgShortcutsGlobal;
|
|
216
216
|
const scope = `${name}-${$scope.$id}`;
|
|
217
217
|
$scope.$evalAsync(() => {
|
|
218
|
-
shortcuts
|
|
219
|
-
|
|
218
|
+
shortcuts.bind(name, $scope.$eval(iAttrs.shortcutsMap), scope);
|
|
219
|
+
shortcutsInstance.pushScope(scope);
|
|
220
220
|
});
|
|
221
221
|
$scope.$on('$destroy', () => {
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
shortcutsInstance.spliceScope(scope);
|
|
223
|
+
shortcutsInstance.unbindScope(scope);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
}]);
|
|
228
|
-
var
|
|
228
|
+
var ShortcutsNg = angularModule.name;
|
|
229
229
|
|
|
230
|
-
export {
|
|
230
|
+
export { ShortcutsNg as default };
|
|
@@ -4,7 +4,7 @@ import chevronLeftIcon from '@jetbrains/icons/chevron-left';
|
|
|
4
4
|
import PlaceUnder from '../place-under-ng/place-under-ng.js';
|
|
5
5
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
6
6
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
7
|
-
import
|
|
7
|
+
import ButtonNG from '../button-ng/button-ng.js';
|
|
8
8
|
import template from './sidebar-ng__template.js';
|
|
9
9
|
import buttonTemplate from './sidebar-ng__button-template.js';
|
|
10
10
|
import 'just-debounce-it';
|
|
@@ -22,7 +22,7 @@ import 'react';
|
|
|
22
22
|
* @name Sidebar Ng
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
const angularModule = angular.module('Ring.sidebar', [PlaceUnder, IconNG,
|
|
25
|
+
const angularModule = angular.module('Ring.sidebar', [PlaceUnder, IconNG, ButtonNG]);
|
|
26
26
|
class SidebarController extends RingAngularComponent {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(...arguments);
|