@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,138 +0,0 @@
|
|
|
1
|
-
/* global inject: false */
|
|
2
|
-
import angular from 'angular';
|
|
3
|
-
|
|
4
|
-
import 'angular-mocks';
|
|
5
|
-
import React, {PureComponent} from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import {act, Simulate} from 'react-dom/test-utils';
|
|
8
|
-
|
|
9
|
-
import angularComponentFactory from './angular-component-factory';
|
|
10
|
-
|
|
11
|
-
class TestComponent extends PureComponent {
|
|
12
|
-
static propTypes = {
|
|
13
|
-
id: PropTypes.string,
|
|
14
|
-
someObj: PropTypes.object,
|
|
15
|
-
onClick: PropTypes.func,
|
|
16
|
-
className: PropTypes.string,
|
|
17
|
-
children: PropTypes.node
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
static defaultProps = {
|
|
21
|
-
someObj: {}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
handleClick = () => this.props.onClick('payload');
|
|
25
|
-
|
|
26
|
-
render() {
|
|
27
|
-
const {id, someObj, className, children} = this.props;
|
|
28
|
-
return (
|
|
29
|
-
<>
|
|
30
|
-
<button
|
|
31
|
-
type="button"
|
|
32
|
-
id={id}
|
|
33
|
-
data-some-obj={someObj.foo}
|
|
34
|
-
onClick={this.handleClick}
|
|
35
|
-
className={className}
|
|
36
|
-
/>
|
|
37
|
-
{children}
|
|
38
|
-
</>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const testModule = angularComponentFactory(TestComponent, 'TestComponent').name;
|
|
44
|
-
|
|
45
|
-
describe('angularComponentFactory', () => {
|
|
46
|
-
let $componentController;
|
|
47
|
-
let $compile;
|
|
48
|
-
let $rootScope;
|
|
49
|
-
|
|
50
|
-
beforeEach(window.module(testModule));
|
|
51
|
-
|
|
52
|
-
beforeEach(inject((_$componentController_, _$compile_, _$rootScope_) => {
|
|
53
|
-
$componentController = _$componentController_;
|
|
54
|
-
$compile = _$compile_;
|
|
55
|
-
$rootScope = _$rootScope_;
|
|
56
|
-
}));
|
|
57
|
-
|
|
58
|
-
it('should return an Angular module with the proper name', () => {
|
|
59
|
-
testModule.should.be.equal('Ring.testComponent');
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should register an Angular component with the proper name', () => {
|
|
63
|
-
const $element = angular.element('<div></div>');
|
|
64
|
-
const $transclude = callback => callback();
|
|
65
|
-
const ctrl = $componentController('rgTestComponent', {
|
|
66
|
-
$scope: $rootScope,
|
|
67
|
-
$element,
|
|
68
|
-
$transclude
|
|
69
|
-
});
|
|
70
|
-
ctrl.should.not.be.undefined;
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('should use one-way binding for object props', () => {
|
|
74
|
-
$rootScope.testObj = {
|
|
75
|
-
foo: 'bar'
|
|
76
|
-
};
|
|
77
|
-
const $element = $compile(
|
|
78
|
-
'<rg-test-component some-obj="testObj"></rg-test-component>'
|
|
79
|
-
)($rootScope);
|
|
80
|
-
const component = $element[0].firstChild;
|
|
81
|
-
component.should.have.attribute('data-some-obj', 'bar');
|
|
82
|
-
|
|
83
|
-
$rootScope.testObj = {
|
|
84
|
-
foo: 'test value'
|
|
85
|
-
};
|
|
86
|
-
$rootScope.$digest();
|
|
87
|
-
component.should.have.attribute('data-some-obj', 'test value');
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
it('should use string binding for string props', () => {
|
|
91
|
-
$rootScope.id = '1';
|
|
92
|
-
const $element = $compile('<rg-test-component id="id"></rg-test-component>')($rootScope);
|
|
93
|
-
const component = $element[0].firstChild;
|
|
94
|
-
component.should.have.attribute('id', '1');
|
|
95
|
-
|
|
96
|
-
$rootScope.id = '2';
|
|
97
|
-
$rootScope.$digest();
|
|
98
|
-
component.should.have.attribute('id', '2');
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it('should pass given css classes', () => {
|
|
102
|
-
const $element = $compile(
|
|
103
|
-
'<rg-test-component class-name="\'test-class1 test-class2\'"></rg-test-component>'
|
|
104
|
-
)($rootScope);
|
|
105
|
-
const component = $element[0].firstChild;
|
|
106
|
-
component.should.have.class('test-class1');
|
|
107
|
-
component.should.have.class('test-class2');
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
it('should use one-way binding for function props', () => {
|
|
111
|
-
$rootScope.callback = sandbox.spy();
|
|
112
|
-
const $element = $compile(
|
|
113
|
-
'<rg-test-component on-click="callback"></rg-test-component>'
|
|
114
|
-
)($rootScope);
|
|
115
|
-
const component = $element[0].firstChild;
|
|
116
|
-
|
|
117
|
-
Simulate.click(component);
|
|
118
|
-
|
|
119
|
-
$rootScope.callback.should.have.been.called;
|
|
120
|
-
$rootScope.callback.should.have.been.calledWith('payload');
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it('should support ng-if in nested content', () => {
|
|
124
|
-
let $element = null;
|
|
125
|
-
act(() => {
|
|
126
|
-
$element = $compile(`
|
|
127
|
-
<rg-test-component>
|
|
128
|
-
<span data-test="hello">HELLO</span>
|
|
129
|
-
</rg-test-component>`
|
|
130
|
-
)($rootScope);
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
const component = $element[0].querySelector('[data-test~=hello]');
|
|
134
|
-
$rootScope.$digest();
|
|
135
|
-
|
|
136
|
-
should.exist(component);
|
|
137
|
-
});
|
|
138
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default class RingAngularComponent {
|
|
2
|
-
static get controller() {
|
|
3
|
-
return this;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
$inject = {};
|
|
7
|
-
|
|
8
|
-
constructor(...args) {
|
|
9
|
-
(this.constructor.$inject ?? []).forEach((injectName, i) => {
|
|
10
|
-
this.$inject[injectName] = args[i];
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* global inject: false */
|
|
2
|
-
import angular from 'angular';
|
|
3
|
-
import 'angular-mocks';
|
|
4
|
-
|
|
5
|
-
import RingAngularComponent from './ring-angular-component';
|
|
6
|
-
|
|
7
|
-
class TestComponent extends RingAngularComponent {
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
TestComponent.$inject = ['$scope'];
|
|
11
|
-
|
|
12
|
-
const testModule = angular.module('Test', []).component('testComponent', TestComponent).name;
|
|
13
|
-
|
|
14
|
-
describe('RingAngularComponent', () => {
|
|
15
|
-
let $componentController;
|
|
16
|
-
|
|
17
|
-
beforeEach(window.module(testModule));
|
|
18
|
-
|
|
19
|
-
beforeEach(inject(_$componentController_ => {
|
|
20
|
-
$componentController = _$componentController_;
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
it('should return a controller as a static property', () => {
|
|
24
|
-
const ctrl = $componentController('testComponent');
|
|
25
|
-
ctrl.should.not.be.undefined;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
it('should copy dependencies to class instances', () => {
|
|
29
|
-
const ctrl = $componentController('testComponent');
|
|
30
|
-
ctrl.should.have.nested.property('$inject.$scope');
|
|
31
|
-
});
|
|
32
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name Group Ng
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import angular from 'angular';
|
|
6
|
-
|
|
7
|
-
import styles from '../group/group.css';
|
|
8
|
-
|
|
9
|
-
const angularModule = angular.module('Ring.group', []);
|
|
10
|
-
|
|
11
|
-
angularModule.component('rgGroup', {
|
|
12
|
-
transclude: true,
|
|
13
|
-
template: `<span ng-transclude class="${styles.group}"></span>`
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default angularModule.name;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
|
|
5
|
-
import ButtonNG from '../button-ng/button-ng';
|
|
6
|
-
|
|
7
|
-
import GroupNG from './group-ng';
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
title: 'Legacy Angular/Group Ng',
|
|
11
|
-
decorators: [angularDecorator()],
|
|
12
|
-
|
|
13
|
-
parameters: {
|
|
14
|
-
notes: 'Provides an Angular wrapper for Group.'
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const basic = () => {
|
|
19
|
-
angular.module(APP_NAME, [ButtonNG, GroupNG]);
|
|
20
|
-
|
|
21
|
-
return `
|
|
22
|
-
<rg-group>
|
|
23
|
-
<rg-button>First item</rg-button>
|
|
24
|
-
<rg-button>Second item</rg-button>
|
|
25
|
-
</rg-group>
|
|
26
|
-
`;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
basic.storyName = 'Group Ng';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
import Heading from '../heading/heading';
|
|
5
|
-
|
|
6
|
-
import HeadingNG from './heading-ng';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Legacy Angular/Heading Ng',
|
|
10
|
-
decorators: [angularDecorator()],
|
|
11
|
-
|
|
12
|
-
parameters: {
|
|
13
|
-
notes: 'Provides an Angular wrapper for Heading.',
|
|
14
|
-
hermione: {skip: true}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const basic = () => {
|
|
19
|
-
angular.module(APP_NAME, [HeadingNG]);
|
|
20
|
-
|
|
21
|
-
return `
|
|
22
|
-
<rg-heading level="${Heading.Levels.H1}">Heading 1</rg-heading>
|
|
23
|
-
<rg-heading level="${Heading.Levels.H2}">Heading 2</rg-heading>
|
|
24
|
-
<rg-heading level="${Heading.Levels.H3}">Heading 3</rg-heading>
|
|
25
|
-
<rg-heading level="${Heading.Levels.H4}">Heading 4</rg-heading>
|
|
26
|
-
`;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
basic.storyName = 'Heading Ng';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import {Color} from '../icon/icon__constants';
|
|
4
|
-
import TemplateNg from '../template-ng/template-ng';
|
|
5
|
-
import styles from '../icon/icon.css';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @name Icon Ng
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
const angularModule = angular.module('Ring.icon', [TemplateNg]);
|
|
12
|
-
const BASE64_PREFIX = 'data:image/svg+xml;base64,';
|
|
13
|
-
|
|
14
|
-
angularModule.directive('rgIcon', function rgIconDirective() {
|
|
15
|
-
return {
|
|
16
|
-
restrict: 'E',
|
|
17
|
-
scope: {
|
|
18
|
-
glyph: '@',
|
|
19
|
-
loading: '=?',
|
|
20
|
-
color: '@?',
|
|
21
|
-
size: '@?',
|
|
22
|
-
height: '@?',
|
|
23
|
-
width: '@?'
|
|
24
|
-
},
|
|
25
|
-
template: `<span class="${styles.icon}" rg-template="normalizedGlyph" rg-template-class="${styles.glyph}"></span>`,
|
|
26
|
-
controller: $scope => {
|
|
27
|
-
function decodeBase64IfNeeded(glyph) {
|
|
28
|
-
// This hack allows passing SVG content as string from angular templates like
|
|
29
|
-
// <rg-icon glyph="data:image/svg+xml;base64,PHN2ZyB4bWx...></rg-icon>
|
|
30
|
-
const isEncoded = glyph.indexOf(BASE64_PREFIX) === 0;
|
|
31
|
-
return isEncoded ? window.atob(glyph.replace(BASE64_PREFIX, '')) : glyph;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
$scope.$watch('glyph', value => {
|
|
35
|
-
if (!value) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
$scope.normalizedGlyph = decodeBase64IfNeeded(value);
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
link: function link(scope, iElement, iAttrs) {
|
|
42
|
-
iAttrs.$addClass('ring-icon'); // TODO: We keep this class for now for compatibility reasons (styles overrides)
|
|
43
|
-
|
|
44
|
-
scope.$watch('loading', value => {
|
|
45
|
-
if (value) {
|
|
46
|
-
iAttrs.$addClass(styles.loading);
|
|
47
|
-
} else {
|
|
48
|
-
iAttrs.$removeClass(styles.loading);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
scope.$watch(() => scope.color && Color[scope.color] && styles[Color[scope.color]],
|
|
53
|
-
(colorClass, prevColorClass) => {
|
|
54
|
-
if (colorClass) {
|
|
55
|
-
iAttrs.$addClass(colorClass);
|
|
56
|
-
|
|
57
|
-
// Remove previous class, but don't remove initial one
|
|
58
|
-
if (prevColorClass && prevColorClass !== colorClass) {
|
|
59
|
-
iAttrs.$removeClass(prevColorClass);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
scope.$watchGroup(['size', 'width', 'height'], ([size, width, height]) => {
|
|
66
|
-
const svgNode = iElement[0].querySelector('svg');
|
|
67
|
-
if (!svgNode) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (size && !width && !height) {
|
|
72
|
-
const sizeString = `${size}px`;
|
|
73
|
-
const style = `width: ${sizeString}; height: ${sizeString};`;
|
|
74
|
-
svgNode.setAttribute('style', style);
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (width) {
|
|
79
|
-
svgNode.setAttribute('style', `width: ${width}px;`);
|
|
80
|
-
}
|
|
81
|
-
if (height) {
|
|
82
|
-
svgNode.setAttribute('style', `height: ${height}px;`);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
export default angularModule.name;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import checkmarkIcon from '@jetbrains/icons/checkmark';
|
|
4
|
-
import warningIcon from '@jetbrains/icons/warning';
|
|
5
|
-
|
|
6
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
7
|
-
|
|
8
|
-
import IconNG from './icon-ng';
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: 'Legacy Angular/Icon Ng',
|
|
12
|
-
decorators: [angularDecorator()],
|
|
13
|
-
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: 'Provides an Angular wrapper for Icon.'
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const basic = () => {
|
|
20
|
-
angular.module(APP_NAME, [IconNG]).controller('testCtrl', function ctrl() {
|
|
21
|
-
this.icon = checkmarkIcon;
|
|
22
|
-
this.error = warningIcon;
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return `
|
|
26
|
-
<div ng-controller="testCtrl as ctrl">
|
|
27
|
-
<rg-icon glyph="{{ctrl.icon}}"></rg-icon>
|
|
28
|
-
<rg-icon glyph="{{ctrl.icon}}" color="MAGENTA"></rg-icon>
|
|
29
|
-
<rg-icon glyph="{{ctrl.icon}}" color="{{'BLUE'}}" loading="true"></rg-icon>
|
|
30
|
-
</div>
|
|
31
|
-
`;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
basic.storyName = 'Icon Ng';
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name Input Ng
|
|
3
|
-
*/
|
|
4
|
-
import angular from 'angular';
|
|
5
|
-
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import closeIcon from '@jetbrains/icons/close';
|
|
8
|
-
|
|
9
|
-
import RingAngularComponent from '../global/ring-angular-component';
|
|
10
|
-
import styles from '../input/input.css';
|
|
11
|
-
import labelStyles from '../control-label/control-label.css';
|
|
12
|
-
import ButtonNg from '../button-ng/button-ng';
|
|
13
|
-
|
|
14
|
-
import styleOverrides from './input-ng.css';
|
|
15
|
-
|
|
16
|
-
const angularModule = angular.module('Ring.input', [ButtonNg]);
|
|
17
|
-
|
|
18
|
-
class RingInputComponent extends RingAngularComponent {
|
|
19
|
-
|
|
20
|
-
static require = {
|
|
21
|
-
ngModelCtrl: '?ngModel'
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
static bindings = {
|
|
25
|
-
name: '@',
|
|
26
|
-
required: '@',
|
|
27
|
-
ngMinlength: '@',
|
|
28
|
-
ngMaxlength: '@',
|
|
29
|
-
placeholder: '@',
|
|
30
|
-
ngModel: '<',
|
|
31
|
-
onChange: '&',
|
|
32
|
-
label: '@',
|
|
33
|
-
hint: '@',
|
|
34
|
-
size: '@',
|
|
35
|
-
disabled: '@',
|
|
36
|
-
active: '<',
|
|
37
|
-
error: '@',
|
|
38
|
-
empty: '<',
|
|
39
|
-
clearable: '<',
|
|
40
|
-
borderless: '<',
|
|
41
|
-
multiline: '<'
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
$onInit() {
|
|
45
|
-
this.closeIcon = closeIcon;
|
|
46
|
-
if (!this.ngModelCtrl) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
this.ngModelCtrl.$render = () => {
|
|
51
|
-
this.value = this.ngModelCtrl.$viewValue;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
onInputChange() {
|
|
56
|
-
if (!this.ngModelCtrl) {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this.ngModelCtrl.$setViewValue(this.value);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
stretch(el) {
|
|
63
|
-
if (!el) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
onKeyUp() {
|
|
70
|
-
if (!this.inputNode) {
|
|
71
|
-
this.inputNode = this.$inject.$element[0].querySelector('[data-test="ring-input"]');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (this.multiline && this.inputNode.scrollHeight > this.inputNode.clientHeight) {
|
|
75
|
-
this.stretch(this.inputNode);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
onClear() {
|
|
80
|
-
this.value = '';
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
getContainerClasses() {
|
|
84
|
-
return classNames(
|
|
85
|
-
styles.outerContainer,
|
|
86
|
-
this.size ? [styles[`size${this.size}`]] : null,
|
|
87
|
-
styles.heightS,
|
|
88
|
-
{
|
|
89
|
-
[styles.active]: this.active,
|
|
90
|
-
[styles.error]: this.error != null,
|
|
91
|
-
[styles.empty]: !this.value,
|
|
92
|
-
[styles.noLabel]: !this.label,
|
|
93
|
-
[styles.clearable]: this.clearable,
|
|
94
|
-
[styles.borderless]: this.borderless
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
static template = `
|
|
100
|
-
<div
|
|
101
|
-
data-test="ring-input-container"
|
|
102
|
-
ng-class="$ctrl.getContainerClasses()"
|
|
103
|
-
>
|
|
104
|
-
<label
|
|
105
|
-
ng-if="!$ctrl.borderless"
|
|
106
|
-
class="${labelStyles.label} ${labelStyles.secondaryLabel}"
|
|
107
|
-
>{{$ctrl.label}}</label>
|
|
108
|
-
<div class="${styles.container}">
|
|
109
|
-
<input
|
|
110
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
111
|
-
type="text"
|
|
112
|
-
data-test="ring-input"
|
|
113
|
-
class="${styles.input}"
|
|
114
|
-
name="{{$ctrl.name}}"
|
|
115
|
-
ng-if="!$ctrl.multiline"
|
|
116
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
117
|
-
ng-model="$ctrl.value"
|
|
118
|
-
ng-required="$ctrl.required"
|
|
119
|
-
ng-disabled="$ctrl.disabled"
|
|
120
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
121
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
122
|
-
ng-change="$ctrl.onInputChange()"
|
|
123
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
124
|
-
/>
|
|
125
|
-
|
|
126
|
-
<textarea
|
|
127
|
-
aria-label="{{$ctrl.label || $ctrl.placeholder}}"
|
|
128
|
-
data-test="ring-input"
|
|
129
|
-
ng-if="$ctrl.multiline"
|
|
130
|
-
class="${styles.input}"
|
|
131
|
-
rows="1"
|
|
132
|
-
name="{{$ctrl.name}}"
|
|
133
|
-
placeholder="{{$ctrl.placeholder}}"
|
|
134
|
-
ng-model="$ctrl.value"
|
|
135
|
-
ng-required="$ctrl.required"
|
|
136
|
-
ng-disabled="$ctrl.disabled"
|
|
137
|
-
ng-minlength="$ctrl.ngMinlength"
|
|
138
|
-
ng-maxlength="$ctrl.ngMaxlength"
|
|
139
|
-
ng-change="$ctrl.onInputChange()"
|
|
140
|
-
ng-keyup="$ctrl.onKeyUp()"
|
|
141
|
-
></textarea>
|
|
142
|
-
|
|
143
|
-
<rg-button
|
|
144
|
-
ng-if="$ctrl.clearable"
|
|
145
|
-
data-test="ring-input-clear"
|
|
146
|
-
class="${styles.clear} ${styleOverrides.clear}"
|
|
147
|
-
icon="{{:: $ctrl.closeIcon}}"
|
|
148
|
-
ng-click="$ctrl.onClear()"
|
|
149
|
-
></rg-button>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<div ng-if="!$ctrl.borderless && $ctrl.error" class="${styles.errorText} ${styleOverrides.errorText}">{{$ctrl.error}}</div>
|
|
153
|
-
</div>
|
|
154
|
-
`;
|
|
155
|
-
}
|
|
156
|
-
RingInputComponent.$inject = ['$element'];
|
|
157
|
-
|
|
158
|
-
angularModule.component('rgInput', RingInputComponent);
|
|
159
|
-
|
|
160
|
-
export default angularModule.name;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import angular from 'angular';
|
|
2
|
-
|
|
3
|
-
import angularDecorator, {APP_NAME} from '../../.storybook/angular-decorator';
|
|
4
|
-
|
|
5
|
-
import darkStyles from '../global/variables_dark.css';
|
|
6
|
-
|
|
7
|
-
import InputNG from './input-ng';
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
title: 'Legacy Angular/Input Ng',
|
|
11
|
-
decorators: [angularDecorator()],
|
|
12
|
-
|
|
13
|
-
parameters: {
|
|
14
|
-
notes: 'Text input fields of varying size.'
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const basic = () => {
|
|
19
|
-
angular.module(APP_NAME, [InputNG]).controller('InputTestCtrl', function controller() {
|
|
20
|
-
this.inputModel = 'Default value';
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return `
|
|
24
|
-
<div class="inputs" data-test="inputs">
|
|
25
|
-
<rg-input
|
|
26
|
-
size="M"
|
|
27
|
-
label="Type something"
|
|
28
|
-
></rg-input>
|
|
29
|
-
|
|
30
|
-
<rg-input
|
|
31
|
-
name="login"
|
|
32
|
-
size="M"
|
|
33
|
-
label="Label and hint"
|
|
34
|
-
placeholder="Hint"
|
|
35
|
-
></rg-input>
|
|
36
|
-
|
|
37
|
-
<rg-input
|
|
38
|
-
label="Label and value"
|
|
39
|
-
size="M"
|
|
40
|
-
ng-model="ctrl.inputModel"
|
|
41
|
-
></rg-input>
|
|
42
|
-
|
|
43
|
-
<rg-input
|
|
44
|
-
label="Clearable input"
|
|
45
|
-
size="M"
|
|
46
|
-
ng-model="ctrl.inputModel"
|
|
47
|
-
clearable="true"
|
|
48
|
-
></rg-input>
|
|
49
|
-
|
|
50
|
-
<rg-input
|
|
51
|
-
placeholder="Hint"
|
|
52
|
-
size="M"
|
|
53
|
-
ng-model="ctrl.inputModel"
|
|
54
|
-
borderless="true"
|
|
55
|
-
></rg-input>
|
|
56
|
-
|
|
57
|
-
<rg-input
|
|
58
|
-
label="Active input"
|
|
59
|
-
active="true"
|
|
60
|
-
size="M"
|
|
61
|
-
ng-model="ctrl.inputModel"
|
|
62
|
-
></rg-input>
|
|
63
|
-
|
|
64
|
-
<rg-input
|
|
65
|
-
label="Disabled input"
|
|
66
|
-
data-disabled="true"
|
|
67
|
-
size="M"
|
|
68
|
-
ng-model="ctrl.inputModel"
|
|
69
|
-
></rg-input>
|
|
70
|
-
|
|
71
|
-
<rg-input
|
|
72
|
-
label="Invalid input"
|
|
73
|
-
size="M"
|
|
74
|
-
error="Error description that wraps over lines because of being really long"
|
|
75
|
-
ng-model="ctrl.inputModel"
|
|
76
|
-
></rg-input>
|
|
77
|
-
|
|
78
|
-
<rg-input
|
|
79
|
-
label="Short input"
|
|
80
|
-
size="S"
|
|
81
|
-
></rg-input>
|
|
82
|
-
|
|
83
|
-
<rg-input
|
|
84
|
-
label="Long input"
|
|
85
|
-
size="L"
|
|
86
|
-
></rg-input>
|
|
87
|
-
|
|
88
|
-
<rg-input
|
|
89
|
-
label="Autogrowing textarea"
|
|
90
|
-
size="M"
|
|
91
|
-
multiline="true"
|
|
92
|
-
></rg-input>
|
|
93
|
-
|
|
94
|
-
<div class="dark ${darkStyles.dark}">
|
|
95
|
-
<rg-input
|
|
96
|
-
label="Input on dark background"
|
|
97
|
-
placeholder="Hint on dark background"
|
|
98
|
-
theme="dark"
|
|
99
|
-
></rg-input>
|
|
100
|
-
</div>
|
|
101
|
-
</div>
|
|
102
|
-
`;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
basic.storyName = 'Input Ng';
|
|
106
|
-
|
|
107
|
-
basic.parameters = {
|
|
108
|
-
storyStyles: `
|
|
109
|
-
<style>
|
|
110
|
-
.inputs {
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-flow: column wrap;
|
|
113
|
-
max-height: 100vh;
|
|
114
|
-
margin-top: 8px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.inputs rg-input {
|
|
118
|
-
margin: 4px 16px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.dark {
|
|
122
|
-
background: #000;
|
|
123
|
-
margin-left: 0;
|
|
124
|
-
padding-left: 16px;
|
|
125
|
-
}
|
|
126
|
-
</style>`
|
|
127
|
-
};
|