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