@jetbrains/ring-ui 4.2.9 → 4.2.12
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/http/http.js +28 -3
- package/components/http/http.test.js +14 -0
- package/dist/_helpers/_rollupPluginBabelHelpers.js +34 -0
- package/dist/_helpers/anchor.js +33 -0
- package/dist/_helpers/badge.js +3 -0
- package/dist/_helpers/button-group.js +3 -0
- package/dist/_helpers/button-set.js +3 -0
- package/dist/_helpers/button-toolbar.js +3 -0
- package/dist/_helpers/button__classes.js +39 -0
- package/dist/_helpers/card.js +75 -0
- package/dist/_helpers/checkbox.js +3 -0
- package/dist/_helpers/date-picker.js +3 -0
- package/dist/_helpers/dialog__body-scroll-preventer.js +58 -0
- package/dist/_helpers/error-message.js +3 -0
- package/dist/_helpers/footer.js +121 -0
- package/dist/_helpers/grid.js +3 -0
- package/dist/_helpers/group.js +3 -0
- package/dist/_helpers/header.js +3 -0
- package/dist/_helpers/icon.js +3 -0
- package/dist/_helpers/inject-styles.js +22 -0
- package/dist/_helpers/input.js +3 -0
- package/dist/_helpers/island.js +3 -0
- package/dist/_helpers/link.js +3 -0
- package/dist/_helpers/list.js +3 -0
- package/dist/_helpers/loader-screen.js +3 -0
- package/dist/_helpers/panel.js +3 -0
- package/dist/_helpers/query-assist__suggestions.js +95 -0
- package/dist/_helpers/radio.js +3 -0
- package/dist/_helpers/select__filter.js +77 -0
- package/dist/_helpers/services-link.js +40 -0
- package/dist/_helpers/sidebar.js +126 -0
- package/dist/_helpers/table.js +3 -0
- package/dist/_helpers/tabs.js +3 -0
- package/dist/_helpers/title.js +100 -0
- package/dist/alert/alert.js +262 -0
- package/dist/alert/container.js +48 -0
- package/dist/alert-service/alert-service.js +173 -0
- package/dist/analytics/analytics.js +118 -0
- package/dist/analytics/analytics__custom-plugin.js +128 -0
- package/dist/analytics/analytics__fus-plugin.js +102 -0
- package/dist/analytics/analytics__ga-plugin.js +75 -0
- package/dist/analytics/analytics__plugin-utils.js +80 -0
- package/dist/analytics-ng/analytics-ng.js +95 -0
- package/dist/auth/auth.js +96 -0
- package/dist/auth/auth__core.js +1065 -0
- package/dist/auth/background-flow.js +123 -0
- package/dist/auth/down-notification.js +117 -0
- package/dist/auth/iframe-flow.js +153 -0
- package/dist/auth/landing-entry.js +5 -0
- package/dist/auth/landing.js +90 -0
- package/dist/auth/request-builder.js +76 -0
- package/dist/auth/response-parser.js +118 -0
- package/dist/auth/storage.js +283 -0
- package/dist/auth/token-validator.js +180 -0
- package/dist/auth/window-flow.js +134 -0
- package/dist/auth-dialog/auth-dialog.js +180 -0
- package/dist/auth-dialog-service/auth-dialog-service.js +71 -0
- package/dist/auth-ng/auth-ng.js +206 -0
- package/dist/auth-ng/auth-ng.mock.js +33 -0
- package/dist/autofocus-ng/autofocus-ng.js +51 -0
- package/dist/avatar/avatar-example-datauri.js +4 -0
- package/dist/avatar/avatar.js +163 -0
- package/dist/avatar/fallback-avatar.js +142 -0
- package/dist/avatar-editor-ng/avatar-editor-ng.js +167 -0
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +3 -0
- package/dist/avatar-ng/avatar-ng.js +21 -0
- package/dist/badge/badge.js +51 -0
- package/dist/badge-ng/badge-ng.js +18 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +37 -0
- package/dist/button/button.js +125 -0
- package/dist/button/button__classes.js +5 -0
- package/dist/button-group/button-group.js +30 -0
- package/dist/button-group/caption.js +24 -0
- package/dist/button-group-ng/button-group-ng.js +39 -0
- package/dist/button-ng/button-ng.js +217 -0
- package/dist/button-set/button-set.js +26 -0
- package/dist/button-set-ng/button-set-ng.js +19 -0
- package/dist/button-toolbar/button-toolbar.js +29 -0
- package/dist/button-toolbar-ng/button-toolbar-ng.js +24 -0
- package/dist/caret/caret.js +266 -0
- package/dist/checkbox/checkbox.js +110 -0
- package/dist/checkbox-ng/checkbox-ng.js +38 -0
- package/dist/code/code.js +137 -0
- package/dist/compiler-ng/compiler-ng.js +53 -0
- package/dist/confirm/confirm.js +127 -0
- package/dist/confirm-ng/confirm-ng.js +69 -0
- package/dist/confirm-service/confirm-service.js +117 -0
- package/dist/content-layout/content-layout.js +66 -0
- package/dist/content-layout/sidebar.js +7 -0
- package/dist/contenteditable/contenteditable.js +78 -0
- package/dist/data-list/data-list.js +208 -0
- package/dist/data-list/data-list.mock.js +191 -0
- package/dist/data-list/item.js +229 -0
- package/dist/data-list/selection.js +102 -0
- package/dist/data-list/title.js +20 -0
- package/dist/data-list-ng/data-list-ng.js +62 -0
- package/dist/date-picker/consts.js +69 -0
- package/dist/date-picker/date-input.js +175 -0
- package/dist/date-picker/date-picker.js +367 -0
- package/dist/date-picker/date-popup.js +483 -0
- package/dist/date-picker/day.js +120 -0
- package/dist/date-picker/formats.js +3 -0
- package/dist/date-picker/month-names.js +100 -0
- package/dist/date-picker/month-slider.js +84 -0
- package/dist/date-picker/month.js +55 -0
- package/dist/date-picker/months.js +122 -0
- package/dist/date-picker/weekdays.js +32 -0
- package/dist/date-picker/years.js +110 -0
- package/dist/dialog/dialog.js +205 -0
- package/dist/dialog/dialog__body-scroll-preventer.js +3 -0
- package/dist/dialog-ng/dialog-ng.js +604 -0
- package/dist/dialog-ng/dialog-ng__template.js +3 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +171 -0
- package/dist/dropdown/anchor.js +19 -0
- package/dist/dropdown/dropdown.js +236 -0
- package/dist/dropdown-menu/dropdown-menu.js +177 -0
- package/dist/error-bubble/error-bubble.js +59 -0
- package/dist/error-message/error-message.js +57 -0
- package/dist/error-message-ng/error-message-ng.js +35 -0
- package/dist/footer/footer.js +12 -0
- package/dist/footer-ng/footer-ng.js +64 -0
- package/dist/form-ng/form-ng.js +167 -0
- package/dist/global/angular-component-factory.js +84 -0
- package/dist/global/compose.js +9 -0
- package/dist/global/composeRefs.js +15 -0
- package/dist/global/conic-gradient.js +35 -0
- package/dist/global/create-stateful-context.js +55 -0
- package/dist/global/data-tests.js +24 -0
- package/dist/global/dom.js +125 -0
- package/dist/global/focus-sensor-hoc.js +146 -0
- package/dist/global/fuzzy-highlight.js +67 -0
- package/dist/global/get-event-key.js +111 -0
- package/dist/global/get-uid.js +15 -0
- package/dist/global/inject-styles.js +15 -0
- package/dist/global/linear-function.js +17 -0
- package/dist/global/listeners.js +44 -0
- package/dist/global/memoize.js +20 -0
- package/dist/global/normalize-indent.js +30 -0
- package/dist/global/promise-with-timeout.js +17 -0
- package/dist/global/radial-gradient-mask.js +38 -0
- package/dist/global/react-dom-renderer.js +46 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.js +55 -0
- package/dist/global/ring-angular-component.js +24 -0
- package/dist/global/schedule-raf.js +31 -0
- package/dist/global/sniffer.js +6 -0
- package/dist/global/supports-css.js +22 -0
- package/dist/global/theme.js +54 -0
- package/dist/global/trivial-template-tag.js +17 -0
- package/dist/global/url.js +165 -0
- package/dist/global/variables_dark.js +57 -0
- package/dist/grid/col.js +60 -0
- package/dist/grid/grid.js +33 -0
- package/dist/grid/row.js +64 -0
- package/dist/group/group.js +31 -0
- package/dist/group-ng/group-ng.js +11 -0
- package/dist/header/header.js +150 -0
- package/dist/header/logo.js +40 -0
- package/dist/header/profile.js +219 -0
- package/dist/header/services-link.js +12 -0
- package/dist/header/services.js +138 -0
- package/dist/header/smart-profile.js +233 -0
- package/dist/header/smart-services.js +163 -0
- package/dist/header/tray-icon.js +47 -0
- package/dist/header/tray.js +31 -0
- package/dist/heading/heading.js +73 -0
- package/dist/http/http.js +238 -0
- package/dist/http/http.mock.js +67 -0
- package/dist/hub-source/hub-source.js +130 -0
- package/dist/hub-source/hub-source__user.js +30 -0
- package/dist/hub-source/hub-source__users-groups.js +63 -0
- package/dist/icon/icon.js +105 -0
- package/dist/icon/icon__constants.js +33 -0
- package/dist/icon/icon__svg.js +83 -0
- package/dist/icon/index.js +12 -0
- package/dist/icon-ng/icon-ng.js +91 -0
- package/dist/input/input.js +230 -0
- package/dist/input-ng/input-ng.js +111 -0
- package/dist/island/adaptive-island-hoc.js +48 -0
- package/dist/island/content.js +160 -0
- package/dist/island/header.js +84 -0
- package/dist/island/island.js +51 -0
- package/dist/island-legacy/content-legacy.js +26 -0
- package/dist/island-legacy/header-legacy.js +28 -0
- package/dist/island-legacy/island-legacy.js +28 -0
- package/dist/island-ng/island-content-ng.js +42 -0
- package/dist/island-ng/island-header-ng.js +26 -0
- package/dist/island-ng/island-ng-class-fixer.js +11 -0
- package/dist/island-ng/island-ng.js +25 -0
- package/dist/link/clickableLink.js +64 -0
- package/dist/link/link.js +115 -0
- package/dist/link-ng/link-ng.js +22 -0
- package/dist/list/consts.js +26 -0
- package/dist/list/list.js +822 -0
- package/dist/list/list__custom.js +86 -0
- package/dist/list/list__hint.js +26 -0
- package/dist/list/list__item.js +206 -0
- package/dist/list/list__link.js +65 -0
- package/dist/list/list__separator.js +30 -0
- package/dist/list/list__title.js +39 -0
- package/dist/list/list__users-groups-source.js +130 -0
- package/dist/loader/loader.js +71 -0
- package/dist/loader/loader__core.js +273 -0
- package/dist/loader-inline/inject-styles.js +13 -0
- package/dist/loader-inline/loader-inline.js +58 -0
- package/dist/loader-inline-ng/loader-inline-ng.js +44 -0
- package/dist/loader-ng/loader-ng.js +44 -0
- package/dist/loader-screen/loader-screen.js +44 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +95 -0
- package/dist/login-dialog/login-dialog.js +188 -0
- package/dist/login-dialog/service.js +72 -0
- package/dist/markdown/code.js +31 -0
- package/dist/markdown/heading.js +23 -0
- package/dist/markdown/link.js +31 -0
- package/dist/markdown/markdown.js +74 -0
- package/dist/message/message.js +235 -0
- package/dist/message-bundle-ng/message-bundle-ng.js +111 -0
- package/dist/old-browsers-message/old-browsers-message.js +101 -0
- package/dist/old-browsers-message/old-browsers-message__stop.js +5 -0
- package/dist/old-browsers-message/white-list.js +34 -0
- package/dist/pager/pager.js +365 -0
- package/dist/pager-ng/pager-ng.js +100 -0
- package/dist/panel/panel.js +31 -0
- package/dist/panel-ng/panel-ng.js +17 -0
- package/dist/permissions/permissions.js +200 -0
- package/dist/permissions/permissions__cache.js +272 -0
- package/dist/permissions-ng/permissions-ng.js +277 -0
- package/dist/place-under-ng/place-under-ng.js +158 -0
- package/dist/popup/popup.consts.js +41 -0
- package/dist/popup/popup.js +396 -0
- package/dist/popup/popup.target.js +26 -0
- package/dist/popup/position.js +280 -0
- package/dist/popup-menu/popup-menu.js +117 -0
- package/dist/progress-bar/progress-bar.js +114 -0
- package/dist/progress-bar-ng/progress-bar-ng.js +17 -0
- package/dist/promised-click-ng/promised-click-ng.js +128 -0
- package/dist/proxy-attrs/proxy-attrs.js +21 -0
- package/dist/query-assist/query-assist.js +1096 -0
- package/dist/query-assist/query-assist__suggestions.js +49 -0
- package/dist/query-assist-ng/query-assist-ng.js +86 -0
- package/dist/radio/radio.js +42 -0
- package/dist/radio/radio__item.js +78 -0
- package/dist/radio-ng/radio-ng.js +47 -0
- package/dist/save-field-ng/save-field-ng.js +337 -0
- package/dist/save-field-ng/save-field-ng__template.js +3 -0
- package/dist/select/select.js +1357 -0
- package/dist/select/select__filter.js +56 -0
- package/dist/select/select__popup.js +553 -0
- package/dist/select-ng/select-ng.js +637 -0
- package/dist/select-ng/select-ng__lazy.js +169 -0
- package/dist/select-ng/select-ng__options.js +145 -0
- package/dist/shortcuts/core.js +245 -0
- package/dist/shortcuts/shortcut-title.js +51 -0
- package/dist/shortcuts/shortcuts-hoc.js +42 -0
- package/dist/shortcuts/shortcuts.js +72 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +123 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +3 -0
- package/dist/shortcuts-ng/shortcuts-ng.js +262 -0
- package/dist/sidebar-ng/sidebar-ng.js +113 -0
- package/dist/sidebar-ng/sidebar-ng__button-template.js +3 -0
- package/dist/sidebar-ng/sidebar-ng__template.js +3 -0
- package/dist/storage/storage.js +59 -0
- package/dist/storage/storage__fallback.js +215 -0
- package/dist/storage/storage__local.js +154 -0
- package/dist/style.css +1 -0
- package/dist/tab-trap/tab-trap.js +177 -0
- package/dist/table/cell.js +26 -0
- package/dist/table/disable-hover-hoc.js +54 -0
- package/dist/table/header-cell.js +92 -0
- package/dist/table/header.js +193 -0
- package/dist/table/multitable.js +141 -0
- package/dist/table/row-with-focus-sensor.js +83 -0
- package/dist/table/row.js +278 -0
- package/dist/table/selection-adapter.js +16 -0
- package/dist/table/selection-shortcuts-hoc.js +215 -0
- package/dist/table/selection.js +223 -0
- package/dist/table/smart-table.js +125 -0
- package/dist/table/table.js +409 -0
- package/dist/table-legacy-ng/table-legacy-ng.js +468 -0
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +120 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +123 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +179 -0
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +57 -0
- package/dist/table-ng/smart-table-ng.js +68 -0
- package/dist/table-ng/table-ng.js +67 -0
- package/dist/tabs/collapsible-more.js +198 -0
- package/dist/tabs/collapsible-tab.js +91 -0
- package/dist/tabs/collapsible-tabs.js +362 -0
- package/dist/tabs/custom-item.js +13 -0
- package/dist/tabs/dumb-tabs.js +164 -0
- package/dist/tabs/smart-tabs.js +106 -0
- package/dist/tabs/tab-link.js +42 -0
- package/dist/tabs/tab.js +33 -0
- package/dist/tabs/tabs.js +71 -0
- package/dist/tabs-ng/tabs-ng.js +194 -0
- package/dist/tabs-ng/tabs-ng__template.js +3 -0
- package/dist/tag/tag.js +197 -0
- package/dist/tags-input/tags-input.js +482 -0
- package/dist/tags-input-ng/tags-input-ng.js +93 -0
- package/dist/tags-list/tags-list.js +95 -0
- package/dist/template-ng/template-ng.js +71 -0
- package/dist/text/text.js +36 -0
- package/dist/theme-ng/theme-ng.js +45 -0
- package/dist/title-ng/title-ng.js +114 -0
- package/dist/toggle/toggle.js +78 -0
- package/dist/toggle-ng/toggle-ng.js +18 -0
- package/dist/tooltip/tooltip.js +209 -0
- package/dist/tooltip-ng/tooltip-ng.js +104 -0
- package/dist/user-agreement/service.js +412 -0
- package/dist/user-agreement/toolbox.eula.js +3 -0
- package/dist/user-agreement/user-agreement.js +169 -0
- package/dist/user-card/card.js +19 -0
- package/dist/user-card/smart-user-card-tooltip.js +114 -0
- package/dist/user-card/tooltip.js +95 -0
- package/dist/user-card/user-card.js +51 -0
- package/dist/user-card-ng/user-card-ng.js +62 -0
- package/package.json +2 -2
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import debounce from 'just-debounce-it';
|
|
3
|
+
import { getStyles, getRect, getWindowHeight } from '../global/dom.js';
|
|
4
|
+
import PlaceUnder from '../place-under-ng/place-under-ng.js';
|
|
5
|
+
import Checkbox from '../checkbox-ng/checkbox-ng.js';
|
|
6
|
+
import Selection from './table-legacy-ng__selection.js';
|
|
7
|
+
import SelectionNavigateActions from './table-legacy-ng__selection-navigate-actions.js';
|
|
8
|
+
import TableToolbar from './table-legacy-ng__toolbar.js';
|
|
9
|
+
import TablePager from './table-legacy-ng__pager.js';
|
|
10
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
12
|
+
import 'element-resize-detector';
|
|
13
|
+
import '@jetbrains/icons/checkmark';
|
|
14
|
+
import '../icon-ng/icon-ng.js';
|
|
15
|
+
import 'core-js/modules/es.string.replace.js';
|
|
16
|
+
import '../icon/icon__constants.js';
|
|
17
|
+
import '../template-ng/template-ng.js';
|
|
18
|
+
import '../global/ring-angular-component.js';
|
|
19
|
+
import '../_helpers/icon.js';
|
|
20
|
+
import '../proxy-attrs/proxy-attrs.js';
|
|
21
|
+
import '../_helpers/checkbox.js';
|
|
22
|
+
import '../global/schedule-raf.js';
|
|
23
|
+
import '../pager-ng/pager-ng.js';
|
|
24
|
+
import '../global/angular-component-factory.js';
|
|
25
|
+
import 'react';
|
|
26
|
+
import '../global/react-render-adapter.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import '../global/react-dom-renderer.js';
|
|
29
|
+
import 'prop-types';
|
|
30
|
+
import '../pager/pager.js';
|
|
31
|
+
import 'classnames';
|
|
32
|
+
import '@jetbrains/icons/chevron-left';
|
|
33
|
+
import '@jetbrains/icons/chevron-right';
|
|
34
|
+
import '../button/button.js';
|
|
35
|
+
import 'focus-visible';
|
|
36
|
+
import '@jetbrains/icons/chevron-10px';
|
|
37
|
+
import '../icon/icon.js';
|
|
38
|
+
import 'util-deprecate';
|
|
39
|
+
import '../icon/icon__svg.js';
|
|
40
|
+
import '../global/memoize.js';
|
|
41
|
+
import '../global/theme.js';
|
|
42
|
+
import '../link/clickableLink.js';
|
|
43
|
+
import '../_helpers/button__classes.js';
|
|
44
|
+
import '../button-group/button-group.js';
|
|
45
|
+
import '../button-group/caption.js';
|
|
46
|
+
import '../_helpers/button-group.js';
|
|
47
|
+
import '../button-toolbar/button-toolbar.js';
|
|
48
|
+
import '../_helpers/button-toolbar.js';
|
|
49
|
+
import '../select/select.js';
|
|
50
|
+
import '@jetbrains/icons/close';
|
|
51
|
+
import 'deep-equal';
|
|
52
|
+
import '../dropdown/dropdown.js';
|
|
53
|
+
import '../global/data-tests.js';
|
|
54
|
+
import '../_helpers/anchor.js';
|
|
55
|
+
import '../avatar/avatar.js';
|
|
56
|
+
import '../global/url.js';
|
|
57
|
+
import '../avatar/fallback-avatar.js';
|
|
58
|
+
import '../global/get-uid.js';
|
|
59
|
+
import '../popup/popup.js';
|
|
60
|
+
import '../shortcuts/shortcuts.js';
|
|
61
|
+
import '../shortcuts/core.js';
|
|
62
|
+
import 'combokeys';
|
|
63
|
+
import '../global/sniffer.js';
|
|
64
|
+
import 'sniffr';
|
|
65
|
+
import '../tab-trap/tab-trap.js';
|
|
66
|
+
import '../popup/position.js';
|
|
67
|
+
import '../popup/popup.consts.js';
|
|
68
|
+
import '../popup/popup.target.js';
|
|
69
|
+
import '../list/list.js';
|
|
70
|
+
import 'react-virtualized/dist/es/List';
|
|
71
|
+
import 'react-virtualized/dist/es/AutoSizer';
|
|
72
|
+
import 'react-virtualized/dist/es/WindowScroller';
|
|
73
|
+
import 'react-virtualized/dist/es/CellMeasurer';
|
|
74
|
+
import 'memoize-one';
|
|
75
|
+
import '../global/create-stateful-context.js';
|
|
76
|
+
import '../list/list__link.js';
|
|
77
|
+
import '../link/link.js';
|
|
78
|
+
import '../_helpers/link.js';
|
|
79
|
+
import '../_helpers/list.js';
|
|
80
|
+
import '../list/list__item.js';
|
|
81
|
+
import '../checkbox/checkbox.js';
|
|
82
|
+
import '@jetbrains/icons/remove-10px';
|
|
83
|
+
import '../list/list__custom.js';
|
|
84
|
+
import '../global/get-event-key.js';
|
|
85
|
+
import '../list/list__title.js';
|
|
86
|
+
import '../list/list__separator.js';
|
|
87
|
+
import '../list/list__hint.js';
|
|
88
|
+
import '../list/consts.js';
|
|
89
|
+
import '../input/input.js';
|
|
90
|
+
import '../_helpers/input.js';
|
|
91
|
+
import '../global/rerender-hoc.js';
|
|
92
|
+
import '../global/composeRefs.js';
|
|
93
|
+
import '../global/fuzzy-highlight.js';
|
|
94
|
+
import '../select/select__popup.js';
|
|
95
|
+
import '@jetbrains/icons/search';
|
|
96
|
+
import '../loader-inline/loader-inline.js';
|
|
97
|
+
import '../_helpers/inject-styles.js';
|
|
98
|
+
import '../global/conic-gradient.js';
|
|
99
|
+
import 'conic-gradient';
|
|
100
|
+
import '../global/supports-css.js';
|
|
101
|
+
import '../global/inject-styles.js';
|
|
102
|
+
import '../global/radial-gradient-mask.js';
|
|
103
|
+
import '../shortcuts/shortcuts-hoc.js';
|
|
104
|
+
import '../tags-list/tags-list.js';
|
|
105
|
+
import '../tag/tag.js';
|
|
106
|
+
import '../caret/caret.js';
|
|
107
|
+
import '../text/text.js';
|
|
108
|
+
import '../_helpers/select__filter.js';
|
|
109
|
+
import '../message-bundle-ng/message-bundle-ng.js';
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @name Table Legacy Ng
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
const angularModule = angular.module('Ring.table-legacy', [TableToolbar, TablePager, Checkbox, PlaceUnder]);
|
|
116
|
+
angularModule.directive('rgLegacyTable', function rgLegacyTableDirective() {
|
|
117
|
+
return {
|
|
118
|
+
restrict: 'E',
|
|
119
|
+
transclude: true,
|
|
120
|
+
template: '<div><table class="ring-table" ng-transclude></table></div>',
|
|
121
|
+
controllerAs: 'ctrl',
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* {{
|
|
125
|
+
* items: array, items of table
|
|
126
|
+
* selection: {Selection}?, a selection object link can be provided to use it outside the table
|
|
127
|
+
* }}
|
|
128
|
+
*/
|
|
129
|
+
scope: {
|
|
130
|
+
items: '=',
|
|
131
|
+
selection: '=?',
|
|
132
|
+
disableSelection: '@'
|
|
133
|
+
},
|
|
134
|
+
bindToController: true,
|
|
135
|
+
controller: ["$scope", function controller($scope) {
|
|
136
|
+
this.$onInit = () => {
|
|
137
|
+
if (this.disableSelection) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Create Selection instance first to make sure it is always available
|
|
142
|
+
* @type {Selection}
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
this.selection = new Selection(this.items, (name, item, index) => {
|
|
147
|
+
$scope.$emit(name, item, index);
|
|
148
|
+
$scope.$broadcast(name, item, index);
|
|
149
|
+
});
|
|
150
|
+
/**
|
|
151
|
+
* Updating items when data is initiated or updated
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
$scope.$watch(() => this.items, newItems => {
|
|
155
|
+
if (newItems) {
|
|
156
|
+
this.selection.setItems(newItems);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
}]
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
angularModule.directive('rgLegacyTableHeader', ["getClosestElementWithCommonParent", function rgLegacyTableHeaderDirective(getClosestElementWithCommonParent) {
|
|
164
|
+
const HEADER_RESIZE_DEBOUNCE = 50;
|
|
165
|
+
const HEADER_SCROLL_DEBOUNCE = 10;
|
|
166
|
+
const TOOLBAR_FIXED_CLASSNAME = 'ring-table__toolbar-controls_fixed';
|
|
167
|
+
return {
|
|
168
|
+
restrict: 'E',
|
|
169
|
+
template: "<thead>\n <tr class=\"ring-table__header\" ng-transclude></tr>\n <tr class=\"ring-table__header ring-table__header_sticky\" rg-place-under=\"{{stickToSelector}}\" ng-transclude></tr>\n</thead>",
|
|
170
|
+
transclude: true,
|
|
171
|
+
replace: true,
|
|
172
|
+
link: function link(scope, iElement, iAttrs) {
|
|
173
|
+
const element = iElement[0];
|
|
174
|
+
let stickToElement = null;
|
|
175
|
+
scope.stickToSelector = iAttrs.stickTo; //Shortcut for placing under table toolbar
|
|
176
|
+
|
|
177
|
+
if (iAttrs.stickToToolbar !== undefined) {
|
|
178
|
+
scope.stickToSelector = '.ring-table__toolbar';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
const scrollableHeader = element.querySelector('.ring-table__header:not(.ring-table__header_sticky)');
|
|
182
|
+
const fixedHeader = element.querySelector('.ring-table__header_sticky');
|
|
183
|
+
|
|
184
|
+
const toolbarFixed = () => stickToElement.querySelector(".".concat(TOOLBAR_FIXED_CLASSNAME)) !== null;
|
|
185
|
+
/**
|
|
186
|
+
* Sync header columns width with real table
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
const resizeFixedHeader = debounce(() => {
|
|
191
|
+
fixedHeader.style.width = "".concat(scrollableHeader.offsetWidth, "px");
|
|
192
|
+
const titles = Array.from(fixedHeader.querySelectorAll('.ring-table__title'));
|
|
193
|
+
titles.forEach((titleElement, index) => {
|
|
194
|
+
const targetHeaderTitle = scrollableHeader.querySelectorAll('.ring-table__title')[index];
|
|
195
|
+
titleElement.style.width = getStyles(targetHeaderTitle).width;
|
|
196
|
+
});
|
|
197
|
+
}, HEADER_RESIZE_DEBOUNCE, true);
|
|
198
|
+
/**
|
|
199
|
+
* Toggle headers on scroll. Also resize header columns with some big interval
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
const scrollListener = debounce(() => {
|
|
203
|
+
if (toolbarFixed()) {
|
|
204
|
+
fixedHeader.style.display = 'block';
|
|
205
|
+
scrollableHeader.style.visibility = 'hidden';
|
|
206
|
+
} else {
|
|
207
|
+
fixedHeader.style.display = 'none';
|
|
208
|
+
scrollableHeader.style.visibility = 'visible';
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
resizeFixedHeader();
|
|
212
|
+
}, HEADER_SCROLL_DEBOUNCE);
|
|
213
|
+
|
|
214
|
+
function startSticking() {
|
|
215
|
+
scope.$evalAsync(() => {
|
|
216
|
+
window.addEventListener('resize', resizeFixedHeader);
|
|
217
|
+
window.addEventListener('scroll', scrollListener);
|
|
218
|
+
scope.$on('rgLegacyTable:itemsChanged', scrollListener);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (scope.stickToSelector) {
|
|
223
|
+
stickToElement = getClosestElementWithCommonParent(element, scope.stickToSelector);
|
|
224
|
+
startSticking();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}]);
|
|
229
|
+
angularModule.directive('rgLegacyTableBody', function rgLegacyTableBodyDirective() {
|
|
230
|
+
return {
|
|
231
|
+
restrict: 'E',
|
|
232
|
+
template: '<tbody ng-transclude></tbody>',
|
|
233
|
+
transclude: true,
|
|
234
|
+
replace: true
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
angularModule.directive('rgLegacyTableRow', function rgLegacyTableRowDirective() {
|
|
238
|
+
return {
|
|
239
|
+
template: "<tr ng-click=\"rowCtrl.setActiveItem(rowCtrl.rowItem)\"\n ng-mouseover=\"rowCtrl.onMouseOver(rowCtrl.rowItem)\"\n ng-mouseout=\"rowCtrl.onMouseOut(rowCtrl.rowItem)\"\n class=\"ring-table__row\" ng-class=\"{\n 'ring-table__row_active': rowCtrl.rowItem.active,\n 'ring-table__row_checked': rowCtrl.rowItem.checked,\n 'ring-table__row_active-checked': rowCtrl.rowItem.active && !rowCtrl.hasCheckedItems(),\n 'ring-table__row_implicit': rowCtrl.rowItem.implicit,\n 'ring-table__row_expanded': rowCtrl.rowItem.expanded,\n 'ring-table__row_unselectable': rowCtrl.rowItem.unselectable\n }\" ng-transclude>\n</tr>",
|
|
240
|
+
restrict: 'E',
|
|
241
|
+
transclude: true,
|
|
242
|
+
replace: true,
|
|
243
|
+
require: ['^rgLegacyTable', 'rgLegacyTableRow'],
|
|
244
|
+
scope: {
|
|
245
|
+
rowItem: '='
|
|
246
|
+
},
|
|
247
|
+
link: function link(scope, iElement, iAttrs, ctrls) {
|
|
248
|
+
const rgLegacyTableCtrl = ctrls[0];
|
|
249
|
+
const rgLegacyTableRowCtrl = ctrls[1];
|
|
250
|
+
rgLegacyTableRowCtrl.setSelection(rgLegacyTableCtrl.selection);
|
|
251
|
+
},
|
|
252
|
+
controllerAs: 'rowCtrl',
|
|
253
|
+
bindToController: true,
|
|
254
|
+
controller: ["$scope", "$element", function controller($scope, $element) {
|
|
255
|
+
const element = $element[0];
|
|
256
|
+
let watchRowCheckFlag;
|
|
257
|
+
|
|
258
|
+
this.setSelection = selection => {
|
|
259
|
+
if (!selection) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
this.selection = selection;
|
|
264
|
+
|
|
265
|
+
if (!watchRowCheckFlag) {
|
|
266
|
+
watchRowCheckFlag = $scope.$watch('rowCtrl.rowItem.checked', newValue => {
|
|
267
|
+
if (newValue !== undefined) {
|
|
268
|
+
this.selection.triggerSelectionChanged(this.rowItem);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
this.setActiveItem = item => {
|
|
275
|
+
item && !item.unselectable && this.selection && this.selection.activateItem(item);
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
this.onMouseOver = item => {
|
|
279
|
+
item && !item.unselectable && this.selection && this.selection.setSuggestedItem(item);
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
this.onMouseOut = item => {
|
|
283
|
+
item && this.selection && item === this.selection.suggestedItem && this.selection.setSuggestedItem(null);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
this.hasCheckedItems = () => {
|
|
287
|
+
if (!this.selection) {
|
|
288
|
+
return false;
|
|
289
|
+
} //TODO: cache this operation if there are performance issues
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
const checkedItems = this.selection.getCheckedItems();
|
|
293
|
+
return checkedItems && checkedItems.length > 0;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
function getRowOutOfViewInfo(el, offsetInRows) {
|
|
297
|
+
const rect = getRect(el);
|
|
298
|
+
const offset = rect.height * offsetInRows;
|
|
299
|
+
const isGoneUp = rect.top < offset;
|
|
300
|
+
const isGoneDown = rect.bottom > getWindowHeight() - offset;
|
|
301
|
+
return {
|
|
302
|
+
offset,
|
|
303
|
+
isOutOfView: isGoneDown || isGoneUp,
|
|
304
|
+
isGoneUp,
|
|
305
|
+
isGoneDown
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function addSpacingAfterScroll(offset) {
|
|
310
|
+
if (window.scrollY) {
|
|
311
|
+
window.scrollBy(0, offset);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
$scope.$on('rgLegacyTable:activateItem', (e, item) => {
|
|
316
|
+
if (item === this.rowItem) {
|
|
317
|
+
const scrollInfo = getRowOutOfViewInfo(element, 2);
|
|
318
|
+
|
|
319
|
+
if (scrollInfo.isOutOfView) {
|
|
320
|
+
element.scrollIntoView(scrollInfo.isGoneUp);
|
|
321
|
+
addSpacingAfterScroll(scrollInfo.isGoneDown ? scrollInfo.offset : -scrollInfo.offset);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
}]
|
|
326
|
+
};
|
|
327
|
+
});
|
|
328
|
+
angularModule.directive('rgLegacyTableHeaderCheckbox', function rgLegacyTableHeaderCheckboxDirective() {
|
|
329
|
+
return {
|
|
330
|
+
restrict: 'E',
|
|
331
|
+
require: '^rgLegacyTable',
|
|
332
|
+
replace: true,
|
|
333
|
+
template: '<span class="ring-table__header-checkbox"><rg-checkbox ng-click="onClickChange()" ng-model="allChecked"/></span>',
|
|
334
|
+
link: function link(scope, iElement, iAttrs, tableCtrl) {
|
|
335
|
+
// TODO: reduce number of recheckSelection() calls
|
|
336
|
+
scope.allChecked = false;
|
|
337
|
+
|
|
338
|
+
function recheckSelection() {
|
|
339
|
+
if (tableCtrl.items && tableCtrl.items.length) {
|
|
340
|
+
scope.allChecked = tableCtrl.items.every(item => item.checked);
|
|
341
|
+
} else {
|
|
342
|
+
scope.allChecked = false;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
function markAllItemsAs(state) {
|
|
347
|
+
tableCtrl.items.forEach(item => {
|
|
348
|
+
item.checked = state;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
scope.$on('rgLegacyTable:itemsChanged', () => {
|
|
353
|
+
if (scope.allChecked) {
|
|
354
|
+
markAllItemsAs(true);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
recheckSelection();
|
|
358
|
+
});
|
|
359
|
+
scope.$on('rgLegacyTable:selectionChanged', recheckSelection);
|
|
360
|
+
|
|
361
|
+
scope.onClickChange = () => {
|
|
362
|
+
markAllItemsAs(scope.allChecked);
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
});
|
|
367
|
+
/**
|
|
368
|
+
* A checkbox cell for table. Uses rg-table-row parent directive as model host
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
angularModule.directive('rgLegacyTableCheckboxCell', function rgLegacyTableCheckboxCellDirective() {
|
|
372
|
+
return {
|
|
373
|
+
restrict: 'E',
|
|
374
|
+
transclude: true,
|
|
375
|
+
require: '^rgLegacyTableRow',
|
|
376
|
+
replace: true,
|
|
377
|
+
template: "\n<td class=\"ring-table__selector ring-table__column_selector\" ng-class=\"{'ring-table__column': !isEmbedded}\">\n <rg-checkbox ng-model=\"getRowItem().checked\" title=\"{{getTitle()}}\" aria-label=\"{{geAriaLabel()}}\"/>\n</td>\n ".trim(),
|
|
378
|
+
link: function link(scope, iElement, iAttrs, rowCtrl) {
|
|
379
|
+
/**
|
|
380
|
+
* rowItem getter to use it as ng-model for checkbox
|
|
381
|
+
*/
|
|
382
|
+
scope.getRowItem = () => rowCtrl.rowItem;
|
|
383
|
+
|
|
384
|
+
scope.getTitle = () => iAttrs.title || rowCtrl.rowItem.name;
|
|
385
|
+
|
|
386
|
+
scope.geAriaLabel = () => iAttrs.ariaLabel;
|
|
387
|
+
|
|
388
|
+
scope.isEmbedded = angular.isDefined(iAttrs.embedded);
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
});
|
|
392
|
+
/**
|
|
393
|
+
* Table title wrapper, receive next attributes:
|
|
394
|
+
* {{
|
|
395
|
+
border: whether or not title contain right border
|
|
396
|
+
active: makes title more bolder
|
|
397
|
+
}}
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
angularModule.directive('rgLegacyTableTitle', function rgLegacyTableTitleDirective() {
|
|
401
|
+
return {
|
|
402
|
+
restrict: 'E',
|
|
403
|
+
transclude: true,
|
|
404
|
+
replace: true,
|
|
405
|
+
scope: true,
|
|
406
|
+
template: "<th class=\"ring-table__title\"\n ng-class=\"{\n 'ring-table__title_border': isBorder,\n 'ring-table__title_active': isActive,\n 'ring-table__column_snuggle-right': isPullRight,\n 'ring-table__column_snuggle-left': isPullLeft,\n 'ring-table__column_align-right' : isAlignRight\n }\" ng-transclude>\n</th>",
|
|
407
|
+
link: function link(scope, iElement, iAttrs) {
|
|
408
|
+
/**
|
|
409
|
+
* One time property assigning without watching through isolated scope helps to improve performance
|
|
410
|
+
*/
|
|
411
|
+
scope.isBorder = angular.isDefined(iAttrs.border);
|
|
412
|
+
scope.isActive = angular.isDefined(iAttrs.active);
|
|
413
|
+
scope.isPullRight = angular.isDefined(iAttrs.pullRight);
|
|
414
|
+
scope.isAlignRight = angular.isDefined(iAttrs.alignRight);
|
|
415
|
+
scope.isPullLeft = angular.isDefined(iAttrs.pullLeft);
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
/**
|
|
420
|
+
* Column wrapper, receive next attributes:
|
|
421
|
+
* {{
|
|
422
|
+
limited: is column width should be limited,
|
|
423
|
+
wide: for wide columns
|
|
424
|
+
avatar: for columns contains avatar
|
|
425
|
+
}}
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
angularModule.directive('rgLegacyTableColumn', function rgLegacyTableColumnDirective() {
|
|
429
|
+
return {
|
|
430
|
+
restrict: 'E',
|
|
431
|
+
transclude: true,
|
|
432
|
+
replace: true,
|
|
433
|
+
scope: true,
|
|
434
|
+
template: "<td class=\"ring-table__column\"\n ng-class=\"{\n 'ring-table__column_limited': isLimited,\n 'ring-table__column_unlimited': isUnlimited,\n 'ring-table__column_right': isAlignRight,\n 'ring-table__avatar': isAvatar,\n 'ring-table__column_wide': isWide,\n 'ring-table__column_gray': isGray,\n 'ring-table__column_snuggle-right': isPullRight,\n 'ring-table__column_snuggle-left': isPullLeft\n }\" ng-transclude>\n</td>",
|
|
435
|
+
link: function link(scope, iElement, iAttrs) {
|
|
436
|
+
const element = iElement[0];
|
|
437
|
+
const FULL_WIDTH = 100;
|
|
438
|
+
scope.isLimited = angular.isDefined(iAttrs.limited);
|
|
439
|
+
scope.isUnlimited = angular.isDefined(iAttrs.unlimited);
|
|
440
|
+
scope.isAvatar = angular.isDefined(iAttrs.avatar);
|
|
441
|
+
scope.isWide = angular.isDefined(iAttrs.wide);
|
|
442
|
+
scope.isAlignRight = angular.isDefined(iAttrs.alignRight);
|
|
443
|
+
scope.isGray = angular.isDefined(iAttrs.gray);
|
|
444
|
+
scope.isPullRight = angular.isDefined(iAttrs.pullRight);
|
|
445
|
+
scope.isPullLeft = angular.isDefined(iAttrs.pullLeft);
|
|
446
|
+
|
|
447
|
+
function adjustUnlimitedColumnWidths() {
|
|
448
|
+
const unlimitedColumnsCount = element.parentNode.querySelectorAll('.ring-table__column[unlimited]').length;
|
|
449
|
+
|
|
450
|
+
if (unlimitedColumnsCount > 1) {
|
|
451
|
+
element.style.width = "".concat((FULL_WIDTH / unlimitedColumnsCount).toFixed(), "%");
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
if (scope.isUnlimited) {
|
|
456
|
+
adjustUnlimitedColumnWidths();
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
});
|
|
461
|
+
/**
|
|
462
|
+
* Class with default hotkeys navigation actions (e.g. select, clear selection, move up/down)
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
angularModule.constant('SelectionNavigateActions', SelectionNavigateActions);
|
|
466
|
+
var tableLegacyNg = angularModule.name;
|
|
467
|
+
|
|
468
|
+
export { tableLegacyNg as default };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import angular from 'angular';
|
|
2
|
+
import Pager from '../pager-ng/pager-ng.js';
|
|
3
|
+
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
4
|
+
import '../global/angular-component-factory.js';
|
|
5
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '../global/react-render-adapter.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import '../global/ring-angular-component.js';
|
|
11
|
+
import '../global/react-dom-renderer.js';
|
|
12
|
+
import 'prop-types';
|
|
13
|
+
import '../pager/pager.js';
|
|
14
|
+
import 'classnames';
|
|
15
|
+
import '@jetbrains/icons/chevron-left';
|
|
16
|
+
import '@jetbrains/icons/chevron-right';
|
|
17
|
+
import '../button/button.js';
|
|
18
|
+
import 'focus-visible';
|
|
19
|
+
import '@jetbrains/icons/chevron-10px';
|
|
20
|
+
import '../icon/icon.js';
|
|
21
|
+
import 'util-deprecate';
|
|
22
|
+
import '../icon/icon__constants.js';
|
|
23
|
+
import '../_helpers/icon.js';
|
|
24
|
+
import '../icon/icon__svg.js';
|
|
25
|
+
import 'core-js/modules/es.string.replace.js';
|
|
26
|
+
import '../global/memoize.js';
|
|
27
|
+
import '../global/theme.js';
|
|
28
|
+
import '../link/clickableLink.js';
|
|
29
|
+
import '../_helpers/button__classes.js';
|
|
30
|
+
import '../button-group/button-group.js';
|
|
31
|
+
import '../button-group/caption.js';
|
|
32
|
+
import '../_helpers/button-group.js';
|
|
33
|
+
import '../button-toolbar/button-toolbar.js';
|
|
34
|
+
import '../_helpers/button-toolbar.js';
|
|
35
|
+
import '../select/select.js';
|
|
36
|
+
import '@jetbrains/icons/close';
|
|
37
|
+
import 'deep-equal';
|
|
38
|
+
import '../dropdown/dropdown.js';
|
|
39
|
+
import '../global/data-tests.js';
|
|
40
|
+
import '../_helpers/anchor.js';
|
|
41
|
+
import '../avatar/avatar.js';
|
|
42
|
+
import '../global/url.js';
|
|
43
|
+
import '../global/dom.js';
|
|
44
|
+
import '../avatar/fallback-avatar.js';
|
|
45
|
+
import '../global/get-uid.js';
|
|
46
|
+
import '../popup/popup.js';
|
|
47
|
+
import '../global/schedule-raf.js';
|
|
48
|
+
import '../shortcuts/shortcuts.js';
|
|
49
|
+
import '../shortcuts/core.js';
|
|
50
|
+
import 'combokeys';
|
|
51
|
+
import '../global/sniffer.js';
|
|
52
|
+
import 'sniffr';
|
|
53
|
+
import '../tab-trap/tab-trap.js';
|
|
54
|
+
import '../popup/position.js';
|
|
55
|
+
import '../popup/popup.consts.js';
|
|
56
|
+
import '../popup/popup.target.js';
|
|
57
|
+
import '../list/list.js';
|
|
58
|
+
import 'react-virtualized/dist/es/List';
|
|
59
|
+
import 'react-virtualized/dist/es/AutoSizer';
|
|
60
|
+
import 'react-virtualized/dist/es/WindowScroller';
|
|
61
|
+
import 'react-virtualized/dist/es/CellMeasurer';
|
|
62
|
+
import 'memoize-one';
|
|
63
|
+
import '../global/create-stateful-context.js';
|
|
64
|
+
import '../list/list__link.js';
|
|
65
|
+
import '../link/link.js';
|
|
66
|
+
import '../_helpers/link.js';
|
|
67
|
+
import '../_helpers/list.js';
|
|
68
|
+
import '../list/list__item.js';
|
|
69
|
+
import '../checkbox/checkbox.js';
|
|
70
|
+
import '@jetbrains/icons/checkmark';
|
|
71
|
+
import '@jetbrains/icons/remove-10px';
|
|
72
|
+
import '../_helpers/checkbox.js';
|
|
73
|
+
import '../list/list__custom.js';
|
|
74
|
+
import '../global/get-event-key.js';
|
|
75
|
+
import '../list/list__title.js';
|
|
76
|
+
import '../list/list__separator.js';
|
|
77
|
+
import '../list/list__hint.js';
|
|
78
|
+
import '../list/consts.js';
|
|
79
|
+
import '../input/input.js';
|
|
80
|
+
import '../_helpers/input.js';
|
|
81
|
+
import '../global/rerender-hoc.js';
|
|
82
|
+
import '../global/composeRefs.js';
|
|
83
|
+
import '../global/fuzzy-highlight.js';
|
|
84
|
+
import '../select/select__popup.js';
|
|
85
|
+
import '@jetbrains/icons/search';
|
|
86
|
+
import '../loader-inline/loader-inline.js';
|
|
87
|
+
import '../_helpers/inject-styles.js';
|
|
88
|
+
import '../global/conic-gradient.js';
|
|
89
|
+
import 'conic-gradient';
|
|
90
|
+
import '../global/supports-css.js';
|
|
91
|
+
import '../global/inject-styles.js';
|
|
92
|
+
import '../global/radial-gradient-mask.js';
|
|
93
|
+
import '../shortcuts/shortcuts-hoc.js';
|
|
94
|
+
import '../tags-list/tags-list.js';
|
|
95
|
+
import '../tag/tag.js';
|
|
96
|
+
import '../caret/caret.js';
|
|
97
|
+
import '../text/text.js';
|
|
98
|
+
import '../_helpers/select__filter.js';
|
|
99
|
+
|
|
100
|
+
const angularModule = angular.module('Ring.table-legacy.pager', [MessageBundle, Pager]);
|
|
101
|
+
angularModule.directive('rgLegacyTablePager', function rgLegacyTablePagerDirective() {
|
|
102
|
+
return {
|
|
103
|
+
restrict: 'E',
|
|
104
|
+
template: "<rg-pager\n total=\"pagerCtrl.total\"\n current-page=\"pagerCtrl.getPage()\"\n page-size=\"pagerCtrl.top\"\n on-page-change=\"pagerCtrl.onPageChange\"\n disable-page-size-selector=\"true\"\n></rg-pager>",
|
|
105
|
+
scope: {},
|
|
106
|
+
bindToController: {
|
|
107
|
+
skip: '=',
|
|
108
|
+
top: '=',
|
|
109
|
+
total: '=',
|
|
110
|
+
onPageChange: '&'
|
|
111
|
+
},
|
|
112
|
+
controllerAs: 'pagerCtrl',
|
|
113
|
+
controller: function controller() {
|
|
114
|
+
this.getPage = () => this.top / this.skip;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
var TablePager = angularModule.name;
|
|
119
|
+
|
|
120
|
+
export { TablePager as default };
|