@jetbrains/ring-ui 5.1.22 → 6.0.1
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/README.md +9 -5
- package/babel.config.js +0 -1
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.d.ts +4 -2
- package/components/alert-service/alert-service.js +3 -2
- package/components/alert-service/alert-service.stories.css +0 -3
- package/components/analytics/analytics.d.ts +0 -20
- package/components/analytics/analytics.js +0 -64
- package/components/analytics/analytics__custom-plugin.d.ts +0 -1
- package/components/analytics/analytics__custom-plugin.js +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth-dialog/auth-dialog.css +9 -11
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +4 -3
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +10 -12
- package/components/button-group/button-group.css +1 -2
- package/components/button-set/button-set.css +1 -2
- package/components/button-toolbar/button-toolbar.css +1 -2
- package/components/checkbox/checkbox.css +3 -4
- package/components/code/code.css +3 -5
- package/components/confirm/confirm.css +1 -3
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +5 -4
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/date-picker.css +40 -41
- package/components/dialog/dialog.css +16 -13
- package/components/dropdown-menu/dropdown-menu.d.ts +11 -1
- package/components/editable-heading/editable-heading.css +5 -7
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/form/form.stories.js +109 -99
- package/components/global/global.css +1 -7
- package/components/global/react-render-adapter.d.ts +1 -29
- package/components/global/react-render-adapter.js +3 -24
- package/components/global/rerender-hoc.d.ts +4 -35
- package/components/global/rerender-hoc.js +10 -24
- package/components/global/variables.css +1 -2
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +71 -67
- package/components/grid/grid.css +6 -6
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/services-link.js +3 -5
- package/components/header/services.css +12 -14
- package/components/header/smart-services.d.ts +2 -1
- package/components/heading/heading.css +24 -6
- package/components/http/http.d.ts +6 -6
- package/components/http/http.js +0 -12
- package/components/hub-source/hub-source.d.ts +8 -6
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/input-size/input-size.stories.js +51 -197
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +15 -39
- package/components/link/link.d.ts +4 -14
- package/components/link/link.js +5 -34
- package/components/list/consts.d.ts +11 -11
- package/components/list/consts.js +11 -15
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +13 -3
- package/components/loader/loader.css +1 -3
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/login-dialog/service.js +5 -4
- package/components/markdown/markdown.css +53 -3
- package/components/markdown/markdown.d.ts +4 -7
- package/components/markdown/markdown.js +8 -27
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/pager/pager.js +2 -8
- package/components/panel/panel.css +3 -5
- package/components/popup-menu/popup-menu.d.ts +22 -2
- package/components/progress-bar/progress-bar.css +3 -4
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.d.ts +1 -28
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +9 -11
- package/components/select/select.css +13 -14
- package/components/select/select.d.ts +1 -28
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/tab-link.js +7 -7
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/tags-input/tags-input.d.ts +1 -28
- package/components/toggle/toggle.css +28 -23
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/service.d.ts +3 -1
- package/components/user-agreement/service.js +8 -7
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +2 -3
- package/components/user-agreement/user-agreement.js +2 -4
- package/components/user-card/card.d.ts +2 -3
- package/components/user-card/card.js +8 -8
- package/components/user-card/user-card.css +3 -5
- package/package.json +22 -34
- package/webpack.config.js +1 -24
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/auth-ng/auth-ng.js +0 -143
- package/components/auth-ng/auth-ng.mock.js +0 -28
- package/components/auth-ng/auth-ng.stories.js +0 -41
- package/components/autofocus-ng/autofocus-ng.js +0 -51
- package/components/autofocus-ng/autofocus-ng.stories.js +0 -41
- package/components/autofocus-ng/autofocus-ng.test.js +0 -49
- package/components/avatar-editor-ng/avatar-editor-ng.css +0 -104
- package/components/avatar-editor-ng/avatar-editor-ng.js +0 -133
- package/components/avatar-editor-ng/avatar-editor-ng.stories.js +0 -41
- package/components/avatar-editor-ng/avatar-editor-ng__template.js +0 -28
- package/components/avatar-ng/avatar-ng.js +0 -7
- package/components/avatar-ng/avatar-ng.stories.js +0 -33
- package/components/badge-ng/badge-ng.js +0 -8
- package/components/badge-ng/badge-ng.stories.js +0 -32
- package/components/breadcrumb-ng/breadcrumb-ng.js +0 -60
- package/components/breadcrumb-ng/breadcrumb-ng.stories.js +0 -33
- package/components/breadcrumb-ng/breadcrumb.css +0 -70
- package/components/button-group-ng/button-group-ng.css +0 -4
- package/components/button-group-ng/button-group-ng.js +0 -43
- package/components/button-group-ng/button-group-ng.stories.js +0 -30
- package/components/button-ng/button-ng.css +0 -23
- package/components/button-ng/button-ng.js +0 -192
- package/components/button-ng/button-ng.stories.js +0 -114
- package/components/button-ng/button-ng.test.js +0 -95
- package/components/button-set-ng/button-set-ng.js +0 -22
- package/components/button-set-ng/button-set-ng.stories.js +0 -30
- package/components/button-toolbar-ng/button-toolbar-ng.js +0 -23
- package/components/button-toolbar-ng/button-toolbar-ng.stories.js +0 -35
- package/components/checkbox-ng/checkbox-ng.js +0 -64
- package/components/checkbox-ng/checkbox-ng.stories.js +0 -80
- package/components/checkbox-ng/checkbox-ng.test.js +0 -61
- package/components/compiler-ng/compiler-ng.js +0 -63
- package/components/compiler-ng/compiler-ng.stories.js +0 -32
- package/components/compiler-ng/compiler-ng.test.js +0 -207
- package/components/confirm-ng/confirm-ng.js +0 -30
- package/components/confirm-ng/confirm-ng.stories.js +0 -43
- package/components/data-list-ng/data-list-ng.js +0 -7
- package/components/data-list-ng/data-list-ng.stories.js +0 -54
- package/components/dialog-ng/dialog-ng.css +0 -98
- package/components/dialog-ng/dialog-ng.js +0 -606
- package/components/dialog-ng/dialog-ng.stories.js +0 -240
- package/components/dialog-ng/dialog-ng.test.js +0 -829
- package/components/dialog-ng/dialog-ng__template.js +0 -70
- package/components/docked-panel-ng/docked-panel-ng.css +0 -28
- package/components/docked-panel-ng/docked-panel-ng.js +0 -169
- package/components/docked-panel-ng/docked-panel-ng.stories.js +0 -39
- package/components/error-message-ng/error-message-ng.js +0 -50
- package/components/error-message-ng/error-message-ng.stories.js +0 -33
- package/components/error-page-ng/error-page-ng.css +0 -6
- package/components/error-page-ng/error-page-ng.js +0 -269
- package/components/error-page-ng/error-page-ng.stories.js +0 -31
- package/components/error-page-ng/error-page-ng.test.js +0 -138
- package/components/footer-ng/footer-ng.js +0 -61
- package/components/footer-ng/footer-ng.stories.js +0 -35
- package/components/footer-ng/footer-ng.test.js +0 -41
- package/components/form-ng/error-bubble-ng.css +0 -7
- package/components/form-ng/form-ng.js +0 -176
- package/components/form-ng/form-ng.stories.js +0 -73
- package/components/global/angular-component-factory.js +0 -93
- package/components/global/angular-component-factory.test.js +0 -138
- package/components/global/ring-angular-component.js +0 -13
- package/components/global/ring-angular-component.test.js +0 -32
- package/components/group-ng/group-ng.js +0 -16
- package/components/group-ng/group.stories.js +0 -29
- package/components/heading-ng/heading-ng.js +0 -8
- package/components/heading-ng/heading-ng.stories.js +0 -29
- package/components/icon-ng/icon-ng.js +0 -89
- package/components/icon-ng/icon-ng.stories.js +0 -34
- package/components/input-ng/input-ng.css +0 -7
- package/components/input-ng/input-ng.js +0 -160
- package/components/input-ng/input-ng.stories.js +0 -127
- package/components/input-ng/input-ng.test.js +0 -32
- package/components/island-ng/island-content-ng.js +0 -56
- package/components/island-ng/island-header-ng.js +0 -34
- package/components/island-ng/island-ng-class-fixer.js +0 -7
- package/components/island-ng/island-ng.js +0 -35
- package/components/island-ng/island-ng.stories.js +0 -54
- package/components/link/link__legacy.css +0 -29
- package/components/link-ng/link-ng.js +0 -26
- package/components/link-ng/link-ng.stories.js +0 -22
- package/components/link-ng/link-ng.test.js +0 -29
- package/components/loader-inline-ng/loader-inline-ng.js +0 -17
- package/components/loader-inline-ng/loader-inline-ng.stories.js +0 -28
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -28
- package/components/loader-ng/loader-ng.js +0 -37
- package/components/loader-ng/loader-ng.stories.js +0 -27
- package/components/loader-ng/loader-ng.test.js +0 -41
- package/components/loader-screen-ng/loader-screen-ng.js +0 -95
- package/components/loader-screen-ng/loader-screen-ng.stories.js +0 -30
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/components/message-bundle-ng/message-bundle-ng.js +0 -67
- package/components/pager-ng/pager-ng.js +0 -7
- package/components/pager-ng/pager-ng.stories.js +0 -37
- package/components/palette/palette.stories.js +0 -63
- package/components/panel-ng/panel-ng.js +0 -20
- package/components/permissions-ng/permissions-ng.css +0 -5
- package/components/permissions-ng/permissions-ng.js +0 -246
- package/components/permissions-ng/permissions-ng.stories.js +0 -49
- package/components/permissions-ng/permissions-ng.test.js +0 -82
- package/components/place-under-ng/place-under-ng.js +0 -190
- package/components/place-under-ng/place-under-ng.stories.js +0 -94
- package/components/place-under-ng/place-under-ng.test.js +0 -182
- package/components/progress-bar-ng/progress-bar-ng.js +0 -7
- package/components/progress-bar-ng/progress-bar-ng.stories.js +0 -52
- package/components/promised-click-ng/promised-click-ng.js +0 -118
- package/components/promised-click-ng/promised-click-ng.stories.js +0 -42
- package/components/promised-click-ng/promised-click-ng.test.js +0 -166
- package/components/proxy-attrs/proxy-attrs.js +0 -24
- package/components/proxy-attrs/proxy-attrs.test.js +0 -102
- package/components/query-assist-ng/query-assist-ng.js +0 -7
- package/components/query-assist-ng/query-assist-ng.stories.js +0 -89
- package/components/radio-ng/radio-ng.js +0 -61
- package/components/radio-ng/radio-ng.stories.js +0 -31
- package/components/radio-ng/radio-ng.test.js +0 -55
- package/components/save-field-ng/save-field-ng.css +0 -13
- package/components/save-field-ng/save-field-ng.js +0 -358
- package/components/save-field-ng/save-field-ng.stories.js +0 -221
- package/components/save-field-ng/save-field-ng__template.js +0 -32
- package/components/select-ng/select-ng.js +0 -561
- package/components/select-ng/select-ng.stories.js +0 -483
- package/components/select-ng/select-ng.test.js +0 -620
- package/components/select-ng/select-ng__lazy.js +0 -83
- package/components/select-ng/select-ng__lazy.test.js +0 -81
- package/components/select-ng/select-ng__options.js +0 -147
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +0 -116
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -101
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.stories.js +0 -126
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.test.js +0 -113
- package/components/shortcuts-hint-ng/shortcuts-hint-ng__template.js +0 -48
- package/components/shortcuts-ng/shortcuts-ng.js +0 -285
- package/components/sidebar-ng/sidebar-ng.js +0 -99
- package/components/sidebar-ng/sidebar-ng.stories.js +0 -94
- package/components/sidebar-ng/sidebar-ng.test.js +0 -37
- package/components/sidebar-ng/sidebar-ng__button-template.js +0 -18
- package/components/sidebar-ng/sidebar-ng__template.js +0 -10
- package/components/table-legacy-ng/table-legacy-ng.js +0 -433
- package/components/table-legacy-ng/table-legacy-ng.stories.js +0 -192
- package/components/table-legacy-ng/table-legacy-ng.test.js +0 -296
- package/components/table-legacy-ng/table-legacy-ng__pager.js +0 -32
- package/components/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +0 -105
- package/components/table-legacy-ng/table-legacy-ng__selection.js +0 -165
- package/components/table-legacy-ng/table-legacy-ng__toolbar.js +0 -58
- package/components/table-ng/smart-table-ng.js +0 -7
- package/components/table-ng/table-ng.js +0 -7
- package/components/table-ng/table-ng.stories.js +0 -84
- package/components/tabs-ng/tabs-ng.js +0 -206
- package/components/tabs-ng/tabs-ng.stories.js +0 -30
- package/components/tabs-ng/tabs-ng.test.js +0 -76
- package/components/tabs-ng/tabs-ng__template.js +0 -38
- package/components/tags-input-ng/tags-input-ng.js +0 -7
- package/components/tags-input-ng/tags-input-ng.stories.js +0 -41
- package/components/template-ng/template-ng.js +0 -57
- package/components/template-ng/template-ng.stories.js +0 -32
- package/components/template-ng/template-ng.test.js +0 -97
- package/components/title-ng/title-ng.js +0 -120
- package/components/title-ng/title-ng.stories.js +0 -30
- package/components/title-ng/title-ng.test.js +0 -47
- package/components/toggle-ng/toggle-ng.js +0 -8
- package/components/toggle-ng/toggle-ng.stories.js +0 -22
- package/components/tooltip-ng/tooltip-ng.css +0 -25
- package/components/tooltip-ng/tooltip-ng.js +0 -100
- package/components/tooltip-ng/tooltip-ng.stories.js +0 -36
- package/components/tooltip-ng/tooltip-ng.test.js +0 -69
- package/components/user-card-ng/user-card-ng.js +0 -16
- package/components/user-card-ng/user-card-ng.stories.js +0 -66
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -648
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button-group.js +0 -3
- package/dist/_helpers/button-set.js +0 -3
- package/dist/_helpers/button-toolbar.js +0 -3
- package/dist/_helpers/button__classes.js +0 -34
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/checkbox.js +0 -3
- package/dist/_helpers/control-label.js +0 -3
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -54
- package/dist/_helpers/error-message.js +0 -3
- package/dist/_helpers/footer.js +0 -110
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/group.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon.js +0 -3
- package/dist/_helpers/input.js +0 -3
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/link.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/loader-inline.js +0 -3
- package/dist/_helpers/loader-screen.js +0 -3
- package/dist/_helpers/panel.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/radio.js +0 -3
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -123
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/tabs.js +0 -3
- package/dist/_helpers/theme.js +0 -95
- package/dist/_helpers/title.js +0 -103
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -296
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -221
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -108
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -94
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -116
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -100
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -136
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1655
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -147
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -160
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -198
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -158
- package/dist/auth/request-builder.d.ts +0 -48
- package/dist/auth/request-builder.js +0 -104
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -138
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -431
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -269
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -154
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -221
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -91
- package/dist/auth-ng/auth-ng.js +0 -232
- package/dist/auth-ng/auth-ng.mock.js +0 -29
- package/dist/autofocus-ng/autofocus-ng.js +0 -58
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -183
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -151
- package/dist/avatar-editor-ng/avatar-editor-ng.js +0 -191
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +0 -3
- package/dist/avatar-ng/avatar-ng.js +0 -38
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -59
- package/dist/badge-ng/badge-ng.js +0 -27
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -46
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -2
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -30
- package/dist/button-group-ng/button-group-ng.js +0 -45
- package/dist/button-ng/button-ng.js +0 -201
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -46
- package/dist/button-set-ng/button-set-ng.js +0 -17
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -45
- package/dist/button-toolbar-ng/button-toolbar-ng.js +0 -23
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -259
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -130
- package/dist/checkbox-ng/checkbox-ng.js +0 -52
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -187
- package/dist/code/code.d.ts +0 -44
- package/dist/code/code.js +0 -191
- package/dist/compiler-ng/compiler-ng.js +0 -51
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -155
- package/dist/confirm-ng/confirm-ng.js +0 -93
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -142
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -79
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -35
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -254
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -238
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -148
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -30
- package/dist/data-list-ng/data-list-ng.js +0 -84
- package/dist/date-picker/consts.d.ts +0 -98
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -47
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -407
- package/dist/date-picker/date-popup.d.ts +0 -55
- package/dist/date-picker/date-popup.js +0 -491
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -133
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -110
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -93
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -133
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -39
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -134
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -241
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -6
- package/dist/dialog-ng/dialog-ng.js +0 -622
- package/dist/dialog-ng/dialog-ng__template.js +0 -3
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -159
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -248
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -201
- package/dist/editable-heading/editable-heading.d.ts +0 -32
- package/dist/editable-heading/editable-heading.js +0 -278
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -88
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -78
- package/dist/error-message-ng/error-message-ng.js +0 -41
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -19
- package/dist/footer-ng/footer-ng.js +0 -86
- package/dist/form-ng/form-ng.js +0 -157
- package/dist/global/angular-component-factory.js +0 -99
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -151
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -58
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -23
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -60
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -54
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -35
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -57
- package/dist/global/ring-angular-component.js +0 -27
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -42
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -142
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -80
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -46
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -75
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -38
- package/dist/group-ng/group-ng.js +0 -11
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -193
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -260
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -175
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -307
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -195
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -58
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -70
- package/dist/heading-ng/heading-ng.js +0 -24
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -398
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -113
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -217
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -60
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -86
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -27
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -139
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -110
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -79
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/icon-ng/icon-ng.js +0 -95
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -255
- package/dist/input-ng/input-ng.js +0 -128
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -151
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -100
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -60
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/island-ng/island-content-ng.js +0 -44
- package/dist/island-ng/island-header-ng.js +0 -29
- package/dist/island-ng/island-ng-class-fixer.js +0 -12
- package/dist/island-ng/island-ng.js +0 -27
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -126
- package/dist/link-ng/link-ng.js +0 -21
- package/dist/list/consts.d.ts +0 -77
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -195
- package/dist/list/list.js +0 -804
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -92
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -239
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -81
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -39
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -48
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -197
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -93
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -327
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -49
- package/dist/loader-inline-ng/loader-inline-ng.js +0 -14
- package/dist/loader-ng/loader-ng.js +0 -60
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -63
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -98
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -218
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -99
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -52
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -102
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -268
- package/dist/message-bundle-ng/message-bundle-ng.js +0 -151
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -92
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -11
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -37
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -402
- package/dist/pager-ng/pager-ng.js +0 -131
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -38
- package/dist/panel-ng/panel-ng.js +0 -26
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -221
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/permissions-ng/permissions-ng.js +0 -327
- package/dist/place-under-ng/place-under-ng.js +0 -157
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -424
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -271
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -143
- package/dist/progress-bar/progress-bar.d.ts +0 -64
- package/dist/progress-bar/progress-bar.js +0 -120
- package/dist/progress-bar-ng/progress-bar-ng.js +0 -23
- package/dist/promised-click-ng/promised-click-ng.js +0 -138
- package/dist/proxy-attrs/proxy-attrs.js +0 -27
- package/dist/query-assist/query-assist.d.ts +0 -333
- package/dist/query-assist/query-assist.js +0 -1104
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -77
- package/dist/query-assist-ng/query-assist-ng.js +0 -117
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -49
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -87
- package/dist/radio-ng/radio-ng.js +0 -47
- package/dist/save-field-ng/save-field-ng.js +0 -323
- package/dist/save-field-ng/save-field-ng__template.js +0 -3
- package/dist/select/select.d.ts +0 -303
- package/dist/select/select.js +0 -1316
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -89
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -636
- package/dist/select-ng/select-ng.js +0 -625
- package/dist/select-ng/select-ng__lazy.js +0 -203
- package/dist/select-ng/select-ng__options.js +0 -144
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -249
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -61
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -92
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -155
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +0 -3
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -263
- package/dist/sidebar-ng/sidebar-ng.js +0 -128
- package/dist/sidebar-ng/sidebar-ng__button-template.js +0 -3
- package/dist/sidebar-ng/sidebar-ng__template.js +0 -3
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -94
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -254
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -219
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -180
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -110
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -153
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -140
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -119
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -301
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -205
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -257
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -151
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -465
- package/dist/table-legacy-ng/table-legacy-ng.js +0 -485
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +0 -154
- package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +0 -115
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +0 -195
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -65
- package/dist/table-ng/smart-table-ng.js +0 -93
- package/dist/table-ng/table-ng.js +0 -92
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -226
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -95
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -357
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -193
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -144
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -48
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -102
- package/dist/tabs-ng/tabs-ng.js +0 -187
- package/dist/tabs-ng/tabs-ng__template.js +0 -3
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -214
- package/dist/tags-input/tags-input.d.ts +0 -165
- package/dist/tags-input/tags-input.js +0 -540
- package/dist/tags-input-ng/tags-input-ng.js +0 -125
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/template-ng/template-ng.js +0 -68
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -57
- package/dist/title-ng/title-ng.js +0 -108
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/toggle-ng/toggle-ng.js +0 -27
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -229
- package/dist/tooltip-ng/tooltip-ng.js +0 -120
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -503
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -191
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -82
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -174
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -146
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -87
- package/dist/user-card-ng/user-card-ng.js +0 -97
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Heading from '../heading/heading';
|
|
4
|
-
const MarkdownHeading = ({ level, children }) => <Heading level={level}>{children}</Heading>;
|
|
5
|
-
MarkdownHeading.propTypes = {
|
|
6
|
-
level: PropTypes.number.isRequired,
|
|
7
|
-
children: PropTypes.array.isRequired
|
|
8
|
-
};
|
|
9
|
-
export default MarkdownHeading;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { ReactMarkdownProps } from 'react-markdown/lib/complex-types';
|
|
4
|
-
declare const MarkdownLink: {
|
|
5
|
-
({ href, title, children }: JSX.IntrinsicElements['a'] & ReactMarkdownProps): React.JSX.Element;
|
|
6
|
-
propTypes: {
|
|
7
|
-
href: PropTypes.Requireable<string>;
|
|
8
|
-
title: PropTypes.Requireable<string>;
|
|
9
|
-
children: PropTypes.Validator<any[]>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default MarkdownLink;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Link from '../link/link';
|
|
4
|
-
const MarkdownLink = ({ href, title, children }) => <Link href={href} title={title}>{children}</Link>;
|
|
5
|
-
MarkdownLink.propTypes = {
|
|
6
|
-
href: PropTypes.string,
|
|
7
|
-
title: PropTypes.string,
|
|
8
|
-
children: PropTypes.array.isRequired
|
|
9
|
-
};
|
|
10
|
-
export default MarkdownLink;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
/**
|
|
3
|
-
* This service is used by directive to correctly show messages.
|
|
4
|
-
* You can decorate this service to provide your own localized messages.
|
|
5
|
-
*/
|
|
6
|
-
const angularModule = angular.module('Ring.message-bundle', []);
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Empty i18n function. If project supports localization, it should decorate i18n
|
|
10
|
-
* with translating function
|
|
11
|
-
*/
|
|
12
|
-
function emptyI18n() {
|
|
13
|
-
return str => str;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function RingMessageBundle(ringI18n) {
|
|
17
|
-
const i18n = ringI18n;
|
|
18
|
-
|
|
19
|
-
/* eslint-disable camelcase */
|
|
20
|
-
this.form_required = () => i18n('Value is required');
|
|
21
|
-
this.form_invalid = () => i18n('Value is invalid');
|
|
22
|
-
this.form_url = () => i18n('Should be a valid URL');
|
|
23
|
-
this.form_email = () => i18n('Should be a valid email');
|
|
24
|
-
this.form_number = () => i18n('Should be a number');
|
|
25
|
-
this.form_maxlength = () => i18n('Is too long');
|
|
26
|
-
this.form_minlength = () => i18n('Is too short');
|
|
27
|
-
this.form_pattern = () => i18n('Doesn\'t match the pattern');
|
|
28
|
-
this.form_equalvalue = () => i18n('Is not the same');
|
|
29
|
-
this.form_unique = () => i18n('Is not unique');
|
|
30
|
-
this.form_max = () => i18n('Is out of range');
|
|
31
|
-
this.form_min = () => i18n('Is out of range');
|
|
32
|
-
this.form_save = () => i18n('Save');
|
|
33
|
-
this.form_saved = () => i18n('Saved');
|
|
34
|
-
this.form_cancel = () => i18n('Cancel');
|
|
35
|
-
this.avatareditor_nosupport = () => i18n('Sorry, your browser doesn\'t support File API');
|
|
36
|
-
this.avatareditor_noselected = () => i18n('No image file was selected');
|
|
37
|
-
this.avatareditor_delete = () => i18n('Delete Image');
|
|
38
|
-
this.avatareditor_add = () => i18n('Add Image');
|
|
39
|
-
this.errorpage_seriouslywrong = () => i18n('Oh-oh... Something went seriously wrong.');
|
|
40
|
-
this.errorpage_offline = () => i18n('There\'s nothing we can do: The server seems to be offline.');
|
|
41
|
-
this.errorpage_disconnected = () => i18n('Disconnected');
|
|
42
|
-
this.errorpage_disconnectedmsg = () => i18n('No, no one\'s there.');
|
|
43
|
-
this.errorpage_401 = () => i18n('Authorization required');
|
|
44
|
-
this.errorpage_401msg = () => i18n('You have requested access to a page that requires authorization, but the request is missing valid authentication credentials. It can also mean that your account has been banned.');
|
|
45
|
-
this.errorpage_403 = () => i18n('Woah, you can\'t touch this!');
|
|
46
|
-
this.errorpage_403msg = () => i18n('Unfortunately, you are not allowed to access the page you\'ve requested. It seems you don\'t have sufficient permissions.');
|
|
47
|
-
this.errorpage_404 = () => i18n('Nope, can\'t find it!');
|
|
48
|
-
this.errorpage_404msg = () => i18n('Despite our best efforts, there\'s nothing here to show you with the URL you requested. Most likely the URL is invalid or you don\'t have permissions to access the page.');
|
|
49
|
-
this.errorpage_500 = () => i18n('Oh-oh... Something went seriously wrong');
|
|
50
|
-
this.errorpage_500msg = () => i18n('Despite our best efforts, the server is not working properly.');
|
|
51
|
-
this.select_options_not_found = () => i18n('No options found');
|
|
52
|
-
this.select_loading = () => i18n('Loading...');
|
|
53
|
-
this.select_label = () => i18n('Select an option');
|
|
54
|
-
this.previous_page = () => i18n('previous');
|
|
55
|
-
this.next_page = () => i18n('next page');
|
|
56
|
-
this.first_page = () => i18n('First page');
|
|
57
|
-
this.last_page = () => i18n('Last page');
|
|
58
|
-
this.items_per_page = () => i18n('per page');
|
|
59
|
-
this.confirmation_ok = () => i18n('Ok');
|
|
60
|
-
this.confirmation_cancel = () => i18n('Cancel');
|
|
61
|
-
/* eslint-enable camelcase */
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
angularModule.factory('ringI18n', emptyI18n);
|
|
65
|
-
angularModule.service('RingMessageBundle', ['ringI18n', RingMessageBundle]);
|
|
66
|
-
|
|
67
|
-
export default angularModule.name;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
|
|
5
|
-
import RingPager from './pager-ng';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Legacy Angular/Pager Ng',
|
|
9
|
-
decorators: [angularDecorator()],
|
|
10
|
-
|
|
11
|
-
parameters: {
|
|
12
|
-
notes: 'Provides an Angular wrapper for Pager.'
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const basic = () => {
|
|
17
|
-
angular.module(APP_NAME, [RingPager]).controller('testCtrl', function controller() {
|
|
18
|
-
this.total = 750;
|
|
19
|
-
this.currentPage = 1;
|
|
20
|
-
|
|
21
|
-
this.onPageChange = page => {
|
|
22
|
-
this.currentPage = page;
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
return `
|
|
27
|
-
<div ng-controller="testCtrl as ctrl">
|
|
28
|
-
<rg-pager
|
|
29
|
-
total="ctrl.total"
|
|
30
|
-
current-page="ctrl.currentPage"
|
|
31
|
-
on-page-change="ctrl.onPageChange"
|
|
32
|
-
></rg-pager>
|
|
33
|
-
</div>
|
|
34
|
-
`;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
basic.storyName = 'Pager Ng';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
|
|
5
|
-
import './palette.css';
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Style-only/Color fields palette',
|
|
9
|
-
decorators: [angularDecorator()],
|
|
10
|
-
|
|
11
|
-
parameters: {
|
|
12
|
-
notes: 'Defines the color palette used for tags and custom fields.',
|
|
13
|
-
hermione: {skip: true},
|
|
14
|
-
a11y: {options: {rules: {'color-contrast': {enabled: false}}}}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const basic = () => {
|
|
19
|
-
angular.module(APP_NAME, []).controller('TestCtrl', function controller() {
|
|
20
|
-
const xrange = num => [...Array(num)].map((val, index) => index);
|
|
21
|
-
|
|
22
|
-
this.arr5 = xrange(5);
|
|
23
|
-
this.arr7 = xrange(7);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
return `
|
|
27
|
-
<div ng-controller="TestCtrl as testCtrl">
|
|
28
|
-
<h4>ColorId</h4>
|
|
29
|
-
<div ng-repeat="i in testCtrl.arr5" class="example">
|
|
30
|
-
<div ng-repeat="j in testCtrl.arr7"
|
|
31
|
-
ng-init="colorId = i * 7 + j + 1"
|
|
32
|
-
ng-attr-class="ring-palette_color-{{colorId}}">
|
|
33
|
-
Color {{colorId}}
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<h4>ToneId and BrightnessId</h4>
|
|
37
|
-
<div class="example" ng-repeat="toneId in testCtrl.arr7">
|
|
38
|
-
<div><b>Tone {{toneId}}:</b></div>
|
|
39
|
-
<div ng-repeat="brightnessId in testCtrl.arr5"
|
|
40
|
-
ng-attr-class="ring-palette_tone-{{toneId}}-{{brightnessId}}">
|
|
41
|
-
Brightness {{brightnessId}}
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
`;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
basic.storyName = 'Color fields palette';
|
|
49
|
-
|
|
50
|
-
basic.parameters = {
|
|
51
|
-
storyStyles: `
|
|
52
|
-
<style>
|
|
53
|
-
.example {
|
|
54
|
-
margin: 4px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.example div {
|
|
58
|
-
width: 90px;
|
|
59
|
-
display: inline-block;
|
|
60
|
-
}
|
|
61
|
-
</style>
|
|
62
|
-
`
|
|
63
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name Panel Ng
|
|
3
|
-
*/
|
|
4
|
-
import angular from 'angular';
|
|
5
|
-
|
|
6
|
-
import styles from '../panel/panel.css';
|
|
7
|
-
import {addClasses} from '../global/dom';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const angularModule = angular.module('Ring.panel', []);
|
|
11
|
-
|
|
12
|
-
angularModule.directive('rgPanel', function rgEqualValueDirective() {
|
|
13
|
-
return {
|
|
14
|
-
link: function link(scope, iElement) {
|
|
15
|
-
addClasses(iElement[0].classList, styles.panel);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export default angularModule.name;
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name Permissions Ng
|
|
3
|
-
*/
|
|
4
|
-
import angular from 'angular';
|
|
5
|
-
|
|
6
|
-
import '../auth-ng/auth-ng';
|
|
7
|
-
import Permissions from '../permissions/permissions';
|
|
8
|
-
import PermissionCache from '../permissions/permissions__cache';
|
|
9
|
-
|
|
10
|
-
import './permissions-ng.css';
|
|
11
|
-
|
|
12
|
-
function registerPermission(element) {
|
|
13
|
-
const somePermissionsCtrl = element.controller('rgSomePermissions');
|
|
14
|
-
return somePermissionsCtrl && somePermissionsCtrl.registerPermission() || angular.noop;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const angularModule = angular.module('Ring.permissions', ['Ring.auth']);
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @ngdoc object
|
|
22
|
-
* @name userPermissions
|
|
23
|
-
*
|
|
24
|
-
* @description
|
|
25
|
-
* Configured instance of Permissions object.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef {Object} permissionsNgConfig
|
|
30
|
-
* @property {?string} serviceId
|
|
31
|
-
* @property {?string} prefix
|
|
32
|
-
*/
|
|
33
|
-
angularModule.provider('userPermissions', function provider() {
|
|
34
|
-
/**
|
|
35
|
-
* @type {permissionsNgConfig}
|
|
36
|
-
*/
|
|
37
|
-
let _config = {};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @param {permissionsNgConfig} config
|
|
41
|
-
*/
|
|
42
|
-
this.config = config => {
|
|
43
|
-
_config = config;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
this.$get = (auth, $q, $http) => {
|
|
47
|
-
const apiUri = auth.auth.getAPIPath() + Permissions.API_PERMISSION_CACHE_PATH;
|
|
48
|
-
|
|
49
|
-
async function datasource(query) {
|
|
50
|
-
const {data} = await $http.get(apiUri, {
|
|
51
|
-
params: {
|
|
52
|
-
fields: 'permission/key,global,projects(id)',
|
|
53
|
-
query
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
_config.datasource = _config.datasource || datasource;
|
|
61
|
-
|
|
62
|
-
const permissions = new Permissions(auth.auth, _config);
|
|
63
|
-
|
|
64
|
-
// Override load to execute in $digest
|
|
65
|
-
permissions.load = function load() {
|
|
66
|
-
return $q.when(Permissions.prototype.load.call(this));
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return permissions;
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @ngdoc directive
|
|
75
|
-
* @name permission
|
|
76
|
-
*
|
|
77
|
-
* @description
|
|
78
|
-
* The `permission` directive show or hide a portion of the DOM tree (HTML) depending
|
|
79
|
-
* on the logged in user permissions. If the user has listed permissions then the DOM tree
|
|
80
|
-
* is shown, otherwise it is hidden.
|
|
81
|
-
*
|
|
82
|
-
* @restrict A
|
|
83
|
-
* @element ANY
|
|
84
|
-
* @requires userPermissions
|
|
85
|
-
*/
|
|
86
|
-
angularModule.directive(
|
|
87
|
-
'rgPermission',
|
|
88
|
-
function rgPermissionDirective(userPermissions, $interpolate) {
|
|
89
|
-
return {
|
|
90
|
-
controller: function controller($scope, $element, $attrs) {
|
|
91
|
-
const element = $element[0];
|
|
92
|
-
|
|
93
|
-
//noinspection JSPotentiallyInvalidUsageOfThis
|
|
94
|
-
this.permitted = false;
|
|
95
|
-
|
|
96
|
-
element.classList.add('ring-permission-hide');
|
|
97
|
-
|
|
98
|
-
const permission = $interpolate($attrs.rgPermission)($scope);
|
|
99
|
-
|
|
100
|
-
const projectId = $attrs.hasOwnProperty('inGlobal')
|
|
101
|
-
? PermissionCache.GLOBAL_PROJECT_ID
|
|
102
|
-
: $scope.$eval($attrs.inProject);
|
|
103
|
-
|
|
104
|
-
userPermissions.check(permission, projectId).
|
|
105
|
-
then(permitted => {
|
|
106
|
-
this.permitted = permitted;
|
|
107
|
-
if (permitted) {
|
|
108
|
-
element.classList.remove('ring-permission-hide');
|
|
109
|
-
}
|
|
110
|
-
return permitted;
|
|
111
|
-
}).
|
|
112
|
-
then(registerPermission($element));
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @ngdoc directive
|
|
120
|
-
* @name permissionIf
|
|
121
|
-
*
|
|
122
|
-
* @description
|
|
123
|
-
* The `permission` directive transcludes or not a portion of the DOM tree (HTML) depending
|
|
124
|
-
* on the logged in user permissions. If the user has listed permissions then the DOM tree
|
|
125
|
-
* is transcluded, otherwise it is not.
|
|
126
|
-
* @example
|
|
127
|
-
<example name="rgPermissionIf directive">
|
|
128
|
-
<file name="index.html">
|
|
129
|
-
<div rg-permission-if="project-read" in-project="0-0-0-0-0">
|
|
130
|
-
Is transcluded if user has permission 'read-project' in project 0-0-0-0-0.
|
|
131
|
-
</div>
|
|
132
|
-
<div rg-permission-if="project-read">
|
|
133
|
-
Is transcluded if user has permission 'read-project' at least in one project.
|
|
134
|
-
</div>
|
|
135
|
-
<div rg-permission-if="project-read" in-global>
|
|
136
|
-
Is transcluded if user has permission 'read-project' at project "global".
|
|
137
|
-
</div>
|
|
138
|
-
</file>
|
|
139
|
-
</example>
|
|
140
|
-
*
|
|
141
|
-
* @restrict A
|
|
142
|
-
* @element ANY
|
|
143
|
-
* @requires $animate
|
|
144
|
-
* @requires userPermissions
|
|
145
|
-
*/
|
|
146
|
-
angularModule.directive(
|
|
147
|
-
'rgPermissionIf',
|
|
148
|
-
function rgPermissionIfDirective($animate, userPermissions, $interpolate) {
|
|
149
|
-
return {
|
|
150
|
-
transclude: 'element',
|
|
151
|
-
priority: 600,
|
|
152
|
-
terminal: true,
|
|
153
|
-
restrict: 'A',
|
|
154
|
-
// disable error about multiple transclude like in ngIf
|
|
155
|
-
$$tlb: true, // eslint-disable-line angular/no-private-call
|
|
156
|
-
require: '^?rgSomePermissions',
|
|
157
|
-
link: function link(scope, iElement, iAttrs, somePermittedCtrl, $transclude) {
|
|
158
|
-
let block;
|
|
159
|
-
let childScope;
|
|
160
|
-
|
|
161
|
-
const projectId = iAttrs.hasOwnProperty('inGlobal')
|
|
162
|
-
? PermissionCache.GLOBAL_PROJECT_ID
|
|
163
|
-
: scope.$eval(iAttrs.inProject);
|
|
164
|
-
|
|
165
|
-
const permission = $interpolate(iAttrs.rgPermissionIf)(scope);
|
|
166
|
-
|
|
167
|
-
userPermissions.check(permission, projectId).
|
|
168
|
-
then(permitted => {
|
|
169
|
-
if (permitted) {
|
|
170
|
-
if (!childScope) {
|
|
171
|
-
childScope = scope.$new();
|
|
172
|
-
$transclude(childScope, clone => {
|
|
173
|
-
block = {
|
|
174
|
-
startNode: clone[0],
|
|
175
|
-
endNode: clone[clone.length++] = document.
|
|
176
|
-
createComment(` end rgPermissionIf: ${iAttrs.rgPermissionIf} `)
|
|
177
|
-
};
|
|
178
|
-
$animate.enter(clone, iElement.parent(), iElement);
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
} else {
|
|
182
|
-
if (childScope) {
|
|
183
|
-
childScope.$destroy();
|
|
184
|
-
childScope = null;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (block) {
|
|
188
|
-
/* global getBlockElements: false */
|
|
189
|
-
$animate.leave(getBlockElements(block));
|
|
190
|
-
block = null;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}).
|
|
194
|
-
then(registerPermission(iElement));
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @ngdoc directive
|
|
202
|
-
* @name rgSomePermissions
|
|
203
|
-
*
|
|
204
|
-
* @description
|
|
205
|
-
* Binds left-value expression with a boolean value that is true when at least one permission of
|
|
206
|
-
* nested {@link permission} or {@link rgPermissionIf} directive is obtained by the logged in user.
|
|
207
|
-
*
|
|
208
|
-
* @scope
|
|
209
|
-
* @restrict A
|
|
210
|
-
* @element ANY
|
|
211
|
-
*/
|
|
212
|
-
angularModule.directive('rgSomePermissions', function rgSomePermissionsDirective() {
|
|
213
|
-
return ({
|
|
214
|
-
scope: {
|
|
215
|
-
rgSomePermissions: '='
|
|
216
|
-
},
|
|
217
|
-
controller: function controller($scope) {
|
|
218
|
-
const permissions = [];
|
|
219
|
-
$scope.rgSomePermissions = false;
|
|
220
|
-
|
|
221
|
-
function checkPermissions() {
|
|
222
|
-
for (let i = permissions.length - 1; i >= 0; i--) {
|
|
223
|
-
if (permissions[i].permitted) {
|
|
224
|
-
$scope.rgSomePermissions = true;
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
$scope.rgSomePermissions = false;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
//noinspection JSPotentiallyInvalidUsageOfThis
|
|
233
|
-
this.registerPermission = () => {
|
|
234
|
-
const permission = {permitted: false};
|
|
235
|
-
permissions.push(permission);
|
|
236
|
-
|
|
237
|
-
return permitted => {
|
|
238
|
-
permission.permitted = permitted;
|
|
239
|
-
checkPermissions();
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
export default angularModule.name;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
|
|
5
|
-
import hubConfig from '../../.storybook/hub-config';
|
|
6
|
-
|
|
7
|
-
import AuthNG from '../auth-ng/auth-ng';
|
|
8
|
-
|
|
9
|
-
import PermissionsNG from './permissions-ng';
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: 'Legacy Angular/Permissions Ng',
|
|
13
|
-
decorators: [angularDecorator()],
|
|
14
|
-
|
|
15
|
-
parameters: {
|
|
16
|
-
hermione: {skip: true}
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const rgPermissionIf = () => {
|
|
21
|
-
angular.
|
|
22
|
-
module(APP_NAME, [PermissionsNG, AuthNG]).
|
|
23
|
-
config([
|
|
24
|
-
'authProvider',
|
|
25
|
-
function provider(authProvider) {
|
|
26
|
-
authProvider.config(hubConfig);
|
|
27
|
-
}
|
|
28
|
-
]).
|
|
29
|
-
config(userPermissionsProvider => {
|
|
30
|
-
userPermissionsProvider.config({
|
|
31
|
-
serviceId: '0-0-0-0-0',
|
|
32
|
-
prefix: 'jetbrains.jetpass.'
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
return `
|
|
37
|
-
<div rg-permission-if="project-read" in-project="0-0-0-0-0">
|
|
38
|
-
Is transcluded if user has permission 'read-project' in project 0-0-0-0-0.
|
|
39
|
-
</div>
|
|
40
|
-
<div rg-permission-if="project-read">
|
|
41
|
-
Is transcluded if user has permission 'read-project' at least in one project.
|
|
42
|
-
</div>
|
|
43
|
-
<div rg-permission-if="project-read" in-global>
|
|
44
|
-
Is transcluded if user has permission 'read-project' at project "global".
|
|
45
|
-
</div>
|
|
46
|
-
`;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
rgPermissionIf.storyName = 'Permissions Ng';
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/* global inject */
|
|
2
|
-
import 'angular';
|
|
3
|
-
import 'angular-mocks';
|
|
4
|
-
|
|
5
|
-
import PermissionsNg from './permissions-ng';
|
|
6
|
-
|
|
7
|
-
describe('Permissions Ng', () => {
|
|
8
|
-
|
|
9
|
-
const fakeUserPermissions = {
|
|
10
|
-
check: () => null
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
beforeEach(window.module(PermissionsNg, $provide => {
|
|
14
|
-
$provide.value('userPermissions', fakeUserPermissions);
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
describe('rg-permission', () => {
|
|
18
|
-
let q;
|
|
19
|
-
let scope;
|
|
20
|
-
let $compile;
|
|
21
|
-
let renderDirective;
|
|
22
|
-
let element;
|
|
23
|
-
let ctrl;
|
|
24
|
-
beforeEach(inject(($q, $rootScope, _$compile_) => {
|
|
25
|
-
q = $q;
|
|
26
|
-
scope = $rootScope.$new();
|
|
27
|
-
$compile = _$compile_;
|
|
28
|
-
sandbox.stub(fakeUserPermissions, 'check').returns($q.resolve(true));
|
|
29
|
-
|
|
30
|
-
renderDirective = (permissionsString = 'hub-test-perm', inProject) => {
|
|
31
|
-
element = $compile(`<div rg-permission="${permissionsString}" in-project="${inProject}"></div>`)(scope);
|
|
32
|
-
ctrl = element.controller('rgPermission');
|
|
33
|
-
scope.$digest();
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
renderDirective();
|
|
37
|
-
}));
|
|
38
|
-
|
|
39
|
-
it('should init', () => {
|
|
40
|
-
ctrl.should.exist;
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('Should not hide element if permission is granted', () => {
|
|
44
|
-
element[0].should.not.has.class('ring-permission-hide');
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('Should hide element if has no permission', () => {
|
|
48
|
-
fakeUserPermissions.check.returns(q.resolve(false));
|
|
49
|
-
renderDirective();
|
|
50
|
-
|
|
51
|
-
element[0].should.has.class('ring-permission-hide');
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
it('Should pass permission as string to userPermission', () => {
|
|
55
|
-
renderDirective('some-permission');
|
|
56
|
-
|
|
57
|
-
fakeUserPermissions.check.should.have.been.calledWith('some-permission');
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('Should pass complex permission as string to userPermission', () => {
|
|
61
|
-
const complexPermission = 'foo | bar & test';
|
|
62
|
-
renderDirective(complexPermission);
|
|
63
|
-
|
|
64
|
-
fakeUserPermissions.check.should.have.been.calledWith(complexPermission);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it('Should pass permission variable to userPermission', () => {
|
|
68
|
-
scope.permissionValue = 'some-permission';
|
|
69
|
-
|
|
70
|
-
renderDirective('{{permissionValue}}');
|
|
71
|
-
|
|
72
|
-
fakeUserPermissions.check.should.have.been.calledWith('some-permission');
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it('Should pass project id as scope value to userPermission', () => {
|
|
76
|
-
scope.projectId = 'some-project';
|
|
77
|
-
renderDirective('some-permission', 'projectId');
|
|
78
|
-
|
|
79
|
-
fakeUserPermissions.check.should.have.been.calledWith('some-permission', 'some-project');
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
});
|