@mediafly/js-ui 51.1.1 → 51.1.2
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/.node-version +1 -1
- package/.release-it.json +13 -13
- package/.semaphore/promotion-deploy-docs.yml +35 -35
- package/.semaphore/scripts/notify_jira.sh +115 -115
- package/.semaphore/semaphore.yml +91 -91
- package/.stylelintignore +5 -5
- package/CHANGELOG.md +468 -464
- package/README.md +61 -61
- package/archive/old-changelog.md +1645 -1645
- package/browserslist.config.js +27 -27
- package/cypress.config.ts +26 -26
- package/lib/actionable-empty-state/actionable-empty-state.html +15 -15
- package/lib/auto-complete/auto-complete-match-renderer.component.html +20 -20
- package/lib/auto-complete/auto-complete.component.html +43 -43
- package/lib/badge/badge.html +3 -3
- package/lib/checkbox/checkbox.html +23 -23
- package/lib/color-input/color-input.html +32 -32
- package/lib/date-input/date-input.html +31 -31
- package/lib/date-time-zone-picker/date-time-zone-picker.html +36 -36
- package/lib/date-time-zone-picker/datepicker.html +31 -31
- package/lib/date-time-zone-picker/time-zone-picker.html +21 -21
- package/lib/date-time-zone-picker/timepicker.html +32 -32
- package/lib/dropdown/dropdown.html +21 -21
- package/lib/dropdown-menu/dropdown-menu-action.component.html +25 -25
- package/lib/dropdown-menu/dropdown-menu-contents.html +3 -3
- package/lib/dropdown-menu/dropdown-menu-header.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-item.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-note.html +1 -1
- package/lib/dropdown-menu/dropdown-menu-separator.html +1 -1
- package/lib/dropdown-menu/dropdown-menu.html +1 -1
- package/lib/feedback/feedback.component.html +24 -24
- package/lib/first-time-motivator/first-time-motivator-transclude.html +1 -1
- package/lib/first-time-motivator/first-time-motivator.html +29 -29
- package/lib/font-selector/font-selector.html +67 -67
- package/lib/footer/footer.html +6 -6
- package/lib/hierarchy/hierarchy.html +38 -38
- package/lib/icon/icon.html +1 -1
- package/lib/icon/icon.service.js +3 -1
- package/lib/icon/icon.service.js.map +1 -1
- package/lib/inline-text-input/inline-text-input.component.html +13 -13
- package/lib/jsui.module.css +494 -494
- package/lib/loading-indicator/loading-indicator.component.html +12 -12
- package/lib/login-textinput/login-textinput.html +14 -14
- package/lib/metadata-form/metadata-form.html +547 -547
- package/lib/metadata-form/typeahead-match.template.html +3 -3
- package/lib/modal/modal.component.html +39 -39
- package/lib/paging/pager.html +20 -20
- package/lib/paging/paging-range-bottom.html +8 -8
- package/lib/paging/paging-range-top.html +34 -34
- package/lib/progress-bar/progress-bar.html +6 -6
- package/lib/progress-circle/progress-circle.html +15 -15
- package/lib/rich-text/rich-text.component.html +64 -64
- package/lib/site-header/site-header-navbar-item.component.html +12 -12
- package/lib/site-header/site-header.component.html +28 -28
- package/lib/table-blank-slate/table-blank-slate.html +16 -16
- package/lib/tabs/tab-group.html +20 -20
- package/lib/tabs/tab.html +2 -2
- package/lib/tag-input/tag-input.html +66 -66
- package/lib/textarea/textarea.html +16 -16
- package/lib/textinput/textinput.html +33 -33
- package/lib/time-input/time-input.html +47 -47
- package/lib/tree/tree-node.html +56 -56
- package/lib/tree/tree.html +27 -27
- package/lib/tsconfig.deploy.tsbuildinfo +140 -140
- package/lib/type-string/type-string.component.html +1 -1
- package/package.json +117 -117
- package/src/components/actionable-empty-state/actionable-empty-state.html +15 -15
- package/src/components/actionable-empty-state/actionable-empty-state.less +19 -19
- package/src/components/actionable-empty-state/actionable-empty-state.ts +36 -36
- package/src/components/actionable-empty-state/index.ts +1 -1
- package/src/components/auto-complete/auto-complete-match-renderer.component.html +20 -20
- package/src/components/auto-complete/auto-complete-match-renderer.component.ts +240 -240
- package/src/components/auto-complete/auto-complete.component.html +43 -43
- package/src/components/auto-complete/auto-complete.component.less +66 -66
- package/src/components/auto-complete/auto-complete.component.ts +69 -69
- package/src/components/auto-complete/index.ts +2 -2
- package/src/components/auto-focus/auto-focus.service.ts +24 -24
- package/src/components/auto-focus/auto-focus.ts +13 -13
- package/src/components/auto-focus/index.ts +2 -2
- package/src/components/badge/badge.html +3 -3
- package/src/components/badge/badge.less +47 -47
- package/src/components/badge/badge.ts +14 -14
- package/src/components/badge/index.ts +1 -1
- package/src/components/checkbox/checkbox.html +23 -23
- package/src/components/checkbox/checkbox.js +29 -29
- package/src/components/checkbox/index.ts +1 -1
- package/src/components/collapse/collapse.js +86 -86
- package/src/components/collapse/collapse.less +17 -17
- package/src/components/collapse/index.ts +1 -1
- package/src/components/color-input/color-input.html +32 -32
- package/src/components/color-input/color-input.less +623 -623
- package/src/components/color-input/color-input.ts +95 -95
- package/src/components/color-input/index.ts +2 -2
- package/src/components/color-input/spectrum-color-picker.js +59 -59
- package/src/components/color-utils/color-utils.service.ts +34 -34
- package/src/components/color-utils/index.ts +1 -1
- package/src/components/constants/constants.js +7 -7
- package/src/components/constants/index.ts +1 -1
- package/src/components/date-input/date-input.html +31 -31
- package/src/components/date-input/date-input.js +115 -115
- package/src/components/date-input/date-input.less +20 -20
- package/src/components/date-input/index.ts +2 -2
- package/src/components/date-input/validate-date.js +32 -32
- package/src/components/date-time-zone-picker/date-time-zone-factory.ts +122 -122
- package/src/components/date-time-zone-picker/date-time-zone-picker.html +36 -36
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +55 -55
- package/src/components/date-time-zone-picker/date-time-zone-picker.ts +159 -159
- package/src/components/date-time-zone-picker/datepicker.html +31 -31
- package/src/components/date-time-zone-picker/datepicker.ts +173 -173
- package/src/components/date-time-zone-picker/index.ts +6 -6
- package/src/components/date-time-zone-picker/time-format-filter.ts +60 -60
- package/src/components/date-time-zone-picker/time-zone-picker.html +21 -21
- package/src/components/date-time-zone-picker/time-zone-picker.js +45 -45
- package/src/components/date-time-zone-picker/timepicker.html +32 -32
- package/src/components/date-time-zone-picker/timepicker.js +115 -115
- package/src/components/decorators/index.ts +82 -82
- package/src/components/dropdown/dropdown.html +21 -21
- package/src/components/dropdown/dropdown.less +67 -67
- package/src/components/dropdown/dropdown.ts +96 -96
- package/src/components/dropdown/index.ts +1 -1
- package/src/components/dropdown-menu/dropdown-menu-action.component.html +25 -25
- package/src/components/dropdown-menu/dropdown-menu-action.component.ts +70 -70
- package/src/components/dropdown-menu/dropdown-menu-contents.html +3 -3
- package/src/components/dropdown-menu/dropdown-menu-contents.ts +119 -119
- package/src/components/dropdown-menu/dropdown-menu-header.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-header.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-item.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-item.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-note.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-note.js +12 -12
- package/src/components/dropdown-menu/dropdown-menu-separator.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu-separator.js +11 -11
- package/src/components/dropdown-menu/dropdown-menu-toggle.js +74 -74
- package/src/components/dropdown-menu/dropdown-menu.html +1 -1
- package/src/components/dropdown-menu/dropdown-menu.less +141 -141
- package/src/components/dropdown-menu/dropdown-menu.ts +84 -84
- package/src/components/dropdown-menu/index.ts +8 -8
- package/src/components/feedback/clipboard.service.ts +42 -42
- package/src/components/feedback/feedback.component.html +24 -24
- package/src/components/feedback/feedback.component.ts +125 -125
- package/src/components/feedback/feedback.less +126 -126
- package/src/components/feedback/feedback.service.ts +51 -51
- package/src/components/feedback/index.ts +3 -3
- package/src/components/first-time-motivator/first-time-motivator-transclude.html +1 -1
- package/src/components/first-time-motivator/first-time-motivator.html +29 -29
- package/src/components/first-time-motivator/first-time-motivator.less +151 -151
- package/src/components/first-time-motivator/first-time-motivator.ts +337 -337
- package/src/components/first-time-motivator/ftm-target-element.ts +98 -98
- package/src/components/first-time-motivator/index.ts +2 -2
- package/src/components/font-selector/font-selector.html +67 -67
- package/src/components/font-selector/font-selector.less +122 -122
- package/src/components/font-selector/font-selector.ts +258 -258
- package/src/components/font-selector/google-webfonts-api.backend.ts +5 -5
- package/src/components/font-selector/google-webfonts-api.service.ts +28 -28
- package/src/components/font-selector/index.ts +3 -3
- package/src/components/font-selector/webfont-loader.service.ts +42 -42
- package/src/components/footer/footer.html +6 -6
- package/src/components/footer/footer.js +21 -21
- package/src/components/footer/footer.less +9 -9
- package/src/components/footer/index.ts +1 -1
- package/src/components/form-validation-utils/form-validation-utils.ts +11 -11
- package/src/components/form-validation-utils/index.ts +1 -1
- package/src/components/full-screen/full-screen.service.ts +62 -62
- package/src/components/full-screen/index.ts +1 -1
- package/src/components/gesture-handler/gesture-handler.ts +116 -116
- package/src/components/gesture-handler/index.ts +1 -1
- package/src/components/gesture-handler/test/gesture-handler.spec.js +26 -26
- package/src/components/hierarchy/hierarchy.html +38 -38
- package/src/components/hierarchy/hierarchy.js +24 -24
- package/src/components/hierarchy/hierarchy.less +42 -42
- package/src/components/hierarchy/index.ts +1 -1
- package/src/components/hover-tooltip/hover-tooltip.less +85 -85
- package/src/components/hover-tooltip/hover-tooltip.ts +145 -145
- package/src/components/hover-tooltip/index.ts +1 -1
- package/src/components/icon/icon.html +1 -1
- package/src/components/icon/icon.service.ts +70 -68
- package/src/components/icon/icon.ts +34 -34
- package/src/components/icon/index.ts +2 -2
- package/src/components/index.less +34 -34
- package/src/components/index.ts +47 -47
- package/src/components/inline-text-input/index.ts +1 -1
- package/src/components/inline-text-input/inline-text-input.component.html +13 -13
- package/src/components/inline-text-input/inline-text-input.component.ts +10 -10
- package/src/components/inline-text-input/inline-text-input.less +17 -17
- package/src/components/legacy/mediafly-bootstrap.css +2890 -2890
- package/src/components/legacy/mediafly-utils.js +15 -15
- package/src/components/legacy/mediafly.css +2323 -2323
- package/src/components/legacy/oocss.css +77 -77
- package/src/components/less/fonts/font-awesome.less +7146 -7146
- package/src/components/less/fonts/index.less +4 -4
- package/src/components/less/fonts/mfly-webfont.less +93 -93
- package/src/components/less/fonts/poppins.less +26 -26
- package/src/components/less/fonts/roboto.less +38 -38
- package/src/components/less/mixins/vendor-prefixes.less +287 -287
- package/src/components/less/objects/buttons.less +277 -277
- package/src/components/less/objects/buttons.module.css +198 -198
- package/src/components/less/objects/containers.less +246 -246
- package/src/components/less/objects/containers.module.css +18 -18
- package/src/components/less/objects/forms.less +203 -203
- package/src/components/less/objects/grid.less +985 -985
- package/src/components/less/objects/headers.less +81 -81
- package/src/components/less/objects/headers.module.css +85 -85
- package/src/components/less/objects/index.less +11 -11
- package/src/components/less/objects/labels.less +26 -26
- package/src/components/less/objects/links.less +58 -58
- package/src/components/less/objects/links.module.css +57 -57
- package/src/components/less/objects/modals.less +40 -40
- package/src/components/less/objects/radios-checkboxes.less +234 -234
- package/src/components/less/objects/tables.less +237 -237
- package/src/components/less/objects/tabs.less +28 -28
- package/src/components/less/standalone.less +8 -8
- package/src/components/less/utilities/accessibility.less +39 -39
- package/src/components/less/utilities/animations.less +41 -41
- package/src/components/less/utilities/grid-utilities.less +115 -115
- package/src/components/less/utilities/index.less +6 -6
- package/src/components/less/utilities/normalize.less +344 -344
- package/src/components/less/utilities/reset.less +52 -52
- package/src/components/less/utilities/utilities.less +173 -173
- package/src/components/less/variables/colors.less +62 -62
- package/src/components/less/variables/effects.less +17 -17
- package/src/components/less/variables/forms.less +16 -16
- package/src/components/less/variables/index.less +6 -6
- package/src/components/less/variables/pages.less +25 -25
- package/src/components/less/variables/typography.less +19 -19
- package/src/components/less/variables/z-index.less +24 -24
- package/src/components/less/variables.module.css +132 -132
- package/src/components/less/vendor/index.less +2 -2
- package/src/components/less/vendor/pikaday.css +225 -225
- package/src/components/less/vendor/quill.snow.css +10 -10
- package/src/components/loading-indicator/index.ts +1 -1
- package/src/components/loading-indicator/loading-indicator.component.html +12 -12
- package/src/components/loading-indicator/loading-indicator.component.ts +10 -10
- package/src/components/loading-indicator/loading-indicator.less +62 -62
- package/src/components/localization/index.strings.json +50 -50
- package/src/components/login-textinput/index.ts +1 -1
- package/src/components/login-textinput/login-textinput.html +14 -14
- package/src/components/login-textinput/login-textinput.js +26 -26
- package/src/components/metadata-form/index.ts +12 -12
- package/src/components/metadata-form/metadata-form.component.ts +352 -352
- package/src/components/metadata-form/metadata-form.html +547 -547
- package/src/components/metadata-form/metadata-form.less +153 -153
- package/src/components/metadata-form/template-cache.run.ts +8 -8
- package/src/components/metadata-form/typeahead-match.template.html +3 -3
- package/src/components/modal/index.ts +2 -2
- package/src/components/modal/modal.component.html +39 -39
- package/src/components/modal/modal.component.less +136 -136
- package/src/components/modal/modal.component.module.css +126 -126
- package/src/components/modal/modal.component.ts +170 -170
- package/src/components/modal/modal.service.ts +169 -169
- package/src/components/on-media-error/index.ts +1 -1
- package/src/components/on-media-error/on-media-error.js +23 -23
- package/src/components/page-thumbnail/index.ts +1 -1
- package/src/components/page-thumbnail/page-thumbnail.ts +159 -159
- package/src/components/paging/index.ts +4 -4
- package/src/components/paging/pager.html +20 -20
- package/src/components/paging/pager.js +63 -63
- package/src/components/paging/paging-factory.js +36 -36
- package/src/components/paging/paging-range-bottom.html +8 -8
- package/src/components/paging/paging-range-bottom.js +50 -50
- package/src/components/paging/paging-range-top.html +34 -34
- package/src/components/paging/paging-range-top.js +36 -36
- package/src/components/paging/paging.less +36 -36
- package/src/components/progress-bar/index.ts +1 -1
- package/src/components/progress-bar/progress-bar.component.ts +27 -27
- package/src/components/progress-bar/progress-bar.html +6 -6
- package/src/components/progress-bar/progress-bar.less +24 -24
- package/src/components/progress-circle/index.ts +1 -1
- package/src/components/progress-circle/progress-circle.html +15 -15
- package/src/components/progress-circle/progress-circle.less +146 -146
- package/src/components/progress-circle/progress-circle.ts +30 -30
- package/src/components/response-handlers/api-success-handlers.ts +14 -14
- package/src/components/response-handlers/error-response.service.ts +40 -40
- package/src/components/response-handlers/feedback-error-handler.ts +25 -25
- package/src/components/response-handlers/index.ts +4 -4
- package/src/components/response-handlers/log-error-handler.ts +15 -15
- package/src/components/rich-text/index.ts +2 -2
- package/src/components/rich-text/rich-text.component.html +64 -64
- package/src/components/rich-text/rich-text.component.less +139 -139
- package/src/components/rich-text/rich-text.component.ts +622 -622
- package/src/components/rich-text/rich-text.service.ts +158 -158
- package/src/components/site-header/default-background-img.b64.js +1 -1
- package/src/components/site-header/index.ts +2 -2
- package/src/components/site-header/site-header-navbar-item.component.html +12 -12
- package/src/components/site-header/site-header-navbar-item.component.ts +24 -24
- package/src/components/site-header/site-header.component.html +28 -28
- package/src/components/site-header/site-header.component.ts +30 -30
- package/src/components/site-header/site-header.less +196 -196
- package/src/components/style-typings/styles.ts +37 -37
- package/src/components/table-blank-slate/index.ts +1 -1
- package/src/components/table-blank-slate/table-blank-slate.html +16 -16
- package/src/components/table-blank-slate/table-blank-slate.js +17 -17
- package/src/components/table-blank-slate/table-blank-slate.less +22 -22
- package/src/components/tabs/index.ts +4 -4
- package/src/components/tabs/tab-group.html +20 -20
- package/src/components/tabs/tab-group.ts +159 -159
- package/src/components/tabs/tab-html-title-append.ts +17 -17
- package/src/components/tabs/tab-html-title.ts +33 -33
- package/src/components/tabs/tab.html +2 -2
- package/src/components/tabs/tab.ts +55 -55
- package/src/components/tabs/tabs.less +44 -44
- package/src/components/tag-input/index.ts +1 -1
- package/src/components/tag-input/tag-input.component.ts +135 -135
- package/src/components/tag-input/tag-input.html +66 -66
- package/src/components/tag-input/tag-input.less +107 -107
- package/src/components/textarea/index.ts +1 -1
- package/src/components/textarea/textarea.html +16 -16
- package/src/components/textarea/textarea.js +30 -30
- package/src/components/textinput/index.ts +1 -1
- package/src/components/textinput/textinput.html +33 -33
- package/src/components/textinput/textinput.ts +54 -54
- package/src/components/theme/index.ts +1 -1
- package/src/components/theme/theme.service.ts +71 -71
- package/src/components/theme/theme.typings.ts +3 -3
- package/src/components/time-input/index.ts +2 -2
- package/src/components/time-input/time-input.html +47 -47
- package/src/components/time-input/time-input.js +160 -160
- package/src/components/time-input/time-input.less +25 -25
- package/src/components/time-input/validate-time.js +30 -30
- package/src/components/translate/index.ts +1 -1
- package/src/components/translate/translate-factory.ts +49 -49
- package/src/components/tree/index.ts +3 -3
- package/src/components/tree/recursion-factory.js +43 -43
- package/src/components/tree/tree-node.html +56 -56
- package/src/components/tree/tree-node.js +30 -30
- package/src/components/tree/tree.html +27 -27
- package/src/components/tree/tree.less +117 -117
- package/src/components/tree/tree.ts +108 -108
- package/src/components/type-string/index.ts +1 -1
- package/src/components/type-string/type-string.component.html +1 -1
- package/src/components/type-string/type-string.component.ts +63 -63
- package/src/components/url-modification/index.ts +1 -1
- package/src/components/url-modification/url-modification.service.ts +33 -33
- package/src/index.html +90 -90
- package/src/index.js +23 -23
- package/src/index.less +16 -16
- package/src/index.spec.js +39 -39
- package/stylelint.config.js +8 -8
- package/tsconfig.deploy.json +29 -29
- package/tsconfig.json +34 -34
- package/tslint.json +4 -4
- package/typings/index.d.ts +46 -46
- package/webpack.config.js +228 -228
- package/tsconfig.tsbuildinfo +0 -7675
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
import _ from 'lodash'
|
|
2
|
-
import { Component, Input } from '../decorators'
|
|
3
|
-
import { ActiveTabColor } from '../style-typings/styles'
|
|
4
|
-
import TabController from './tab'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'mflyTabGroup',
|
|
9
|
-
template: require('./tab-group.html'),
|
|
10
|
-
transclude: true,
|
|
11
|
-
})
|
|
12
|
-
export default class TabGroupController implements ng.IComponentController {
|
|
13
|
-
|
|
14
|
-
@Input('=') activeTab: string
|
|
15
|
-
@Input() activeTabColor: string
|
|
16
|
-
|
|
17
|
-
protected activeTabStyle: ActiveTabColor
|
|
18
|
-
protected allTabsHidden: boolean
|
|
19
|
-
protected tabs: TabController[] = []
|
|
20
|
-
|
|
21
|
-
private bypassWatch: boolean = false
|
|
22
|
-
|
|
23
|
-
$onChanges(changes: { activeTab: ng.IChangesObject<string>, activeTabColor: ng.IChangesObject<string> }) {
|
|
24
|
-
// setup style object
|
|
25
|
-
if (changes.activeTabColor.previousValue !== changes.activeTabColor.currentValue) {
|
|
26
|
-
this.activeTabStyle = {
|
|
27
|
-
'color': this.activeTabColor,
|
|
28
|
-
'border-bottom-color': this.activeTabColor
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// if the watch is called with a bypass we flip the boolean and
|
|
33
|
-
// perform no further execution
|
|
34
|
-
if (this.bypassWatch) {
|
|
35
|
-
this.bypassWatch = false
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (changes.activeTab) {
|
|
40
|
-
// find the desired tab
|
|
41
|
-
const newActiveTab = _.find(this.tabs, {tabId: changes.activeTab.currentValue})
|
|
42
|
-
// if it is found, activate it and disabled all others
|
|
43
|
-
if (newActiveTab) {
|
|
44
|
-
this.activateTab(newActiveTab, { updateSetActive: false, processCallbacks: false})
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// Individual tabs call this controller function so that the tab set
|
|
51
|
-
// knows how many tabs to create and what their labels should be.
|
|
52
|
-
registerTab(tab: TabController): void {
|
|
53
|
-
if (this.tabs.length === 0 && !this.activeTab) {
|
|
54
|
-
this.activeTab = tab.tabId
|
|
55
|
-
}
|
|
56
|
-
this.tabs.push(tab)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// when the active tab is hidden we need to activate the first (non-hidden) tab
|
|
60
|
-
onTabHideChange(tab: TabController) {
|
|
61
|
-
// if we are setting a tab to visible, but all tabs where previously hidded we need to display and activate
|
|
62
|
-
if (!tab.isHidden && this.allTabsHidden) {
|
|
63
|
-
this.activateFirstVisibleTab()
|
|
64
|
-
this.allTabsHidden = false
|
|
65
|
-
return
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// if we set a tab to visible, but another visible tab exists we can exit
|
|
69
|
-
if (!tab.isHidden) { return }
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// since we are hiding a tab we may need to update all tabs hidden
|
|
73
|
-
this.allTabsHidden = !this.hasVisibleTab()
|
|
74
|
-
|
|
75
|
-
// since we are hiding the currently active tab we should try to activate another visible tab
|
|
76
|
-
if (this.activeTab === tab.tabId) {
|
|
77
|
-
this.activateFirstVisibleTab()
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
protected startTabChange = (selectedTab) => {
|
|
83
|
-
// don't do anything for disabled tag
|
|
84
|
-
if (selectedTab.isDisabled) {
|
|
85
|
-
return
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const currentTab = _.find(this.tabs, {tabId: this.activeTab})
|
|
89
|
-
|
|
90
|
-
if (currentTab && !_.isUndefined(currentTab.tabChangeStart)) {
|
|
91
|
-
|
|
92
|
-
const response = currentTab.tabChangeStart(selectedTab)
|
|
93
|
-
|
|
94
|
-
if (!_.isUndefined(response) && !_.isUndefined(response.then)) {
|
|
95
|
-
response.then(() => {
|
|
96
|
-
// resolved successfully
|
|
97
|
-
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
98
|
-
})
|
|
99
|
-
} else {
|
|
100
|
-
// not a good promise default to accepting the tab switch
|
|
101
|
-
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
// no onChange function, default to accept the tab switch
|
|
105
|
-
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
private activateTab(tabToActivate: TabController, options) {
|
|
110
|
-
|
|
111
|
-
_.each(this.tabs, (tab) => {
|
|
112
|
-
if (tab.tabId === tabToActivate.tabId) {
|
|
113
|
-
this.activeTab = tabToActivate.tabId
|
|
114
|
-
|
|
115
|
-
if (options.updateSetActive) {
|
|
116
|
-
this.bypassWatch = true
|
|
117
|
-
this.activeTab = tabToActivate.tabId
|
|
118
|
-
// reset bypass for watch
|
|
119
|
-
this.bypassWatch = false
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (options.processCallbacks) {
|
|
123
|
-
if (!_.isUndefined(tab.tabWhenClicked)) {
|
|
124
|
-
tab.tabWhenClicked()
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
private hasVisibleTab(): boolean {
|
|
134
|
-
let tabFound: boolean = false
|
|
135
|
-
|
|
136
|
-
_.each(this.tabs, (t) => {
|
|
137
|
-
if (t && !t.isHidden) {
|
|
138
|
-
tabFound = true
|
|
139
|
-
return false
|
|
140
|
-
}
|
|
141
|
-
return
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
return tabFound
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// returns true if there is a non-hidden tab to activage, otherwise false
|
|
148
|
-
private activateFirstVisibleTab() {
|
|
149
|
-
|
|
150
|
-
_.each(this.tabs, (t) => {
|
|
151
|
-
if (t && !t.isHidden) {
|
|
152
|
-
this.activateTab(t, {updateSetActive: false, processCallbacks: false})
|
|
153
|
-
return false
|
|
154
|
-
}
|
|
155
|
-
return
|
|
156
|
-
})
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
}
|
|
1
|
+
import _ from 'lodash'
|
|
2
|
+
import { Component, Input } from '../decorators'
|
|
3
|
+
import { ActiveTabColor } from '../style-typings/styles'
|
|
4
|
+
import TabController from './tab'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'mflyTabGroup',
|
|
9
|
+
template: require('./tab-group.html'),
|
|
10
|
+
transclude: true,
|
|
11
|
+
})
|
|
12
|
+
export default class TabGroupController implements ng.IComponentController {
|
|
13
|
+
|
|
14
|
+
@Input('=') activeTab: string
|
|
15
|
+
@Input() activeTabColor: string
|
|
16
|
+
|
|
17
|
+
protected activeTabStyle: ActiveTabColor
|
|
18
|
+
protected allTabsHidden: boolean
|
|
19
|
+
protected tabs: TabController[] = []
|
|
20
|
+
|
|
21
|
+
private bypassWatch: boolean = false
|
|
22
|
+
|
|
23
|
+
$onChanges(changes: { activeTab: ng.IChangesObject<string>, activeTabColor: ng.IChangesObject<string> }) {
|
|
24
|
+
// setup style object
|
|
25
|
+
if (changes.activeTabColor.previousValue !== changes.activeTabColor.currentValue) {
|
|
26
|
+
this.activeTabStyle = {
|
|
27
|
+
'color': this.activeTabColor,
|
|
28
|
+
'border-bottom-color': this.activeTabColor
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// if the watch is called with a bypass we flip the boolean and
|
|
33
|
+
// perform no further execution
|
|
34
|
+
if (this.bypassWatch) {
|
|
35
|
+
this.bypassWatch = false
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (changes.activeTab) {
|
|
40
|
+
// find the desired tab
|
|
41
|
+
const newActiveTab = _.find(this.tabs, {tabId: changes.activeTab.currentValue})
|
|
42
|
+
// if it is found, activate it and disabled all others
|
|
43
|
+
if (newActiveTab) {
|
|
44
|
+
this.activateTab(newActiveTab, { updateSetActive: false, processCallbacks: false})
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
// Individual tabs call this controller function so that the tab set
|
|
51
|
+
// knows how many tabs to create and what their labels should be.
|
|
52
|
+
registerTab(tab: TabController): void {
|
|
53
|
+
if (this.tabs.length === 0 && !this.activeTab) {
|
|
54
|
+
this.activeTab = tab.tabId
|
|
55
|
+
}
|
|
56
|
+
this.tabs.push(tab)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// when the active tab is hidden we need to activate the first (non-hidden) tab
|
|
60
|
+
onTabHideChange(tab: TabController) {
|
|
61
|
+
// if we are setting a tab to visible, but all tabs where previously hidded we need to display and activate
|
|
62
|
+
if (!tab.isHidden && this.allTabsHidden) {
|
|
63
|
+
this.activateFirstVisibleTab()
|
|
64
|
+
this.allTabsHidden = false
|
|
65
|
+
return
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// if we set a tab to visible, but another visible tab exists we can exit
|
|
69
|
+
if (!tab.isHidden) { return }
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// since we are hiding a tab we may need to update all tabs hidden
|
|
73
|
+
this.allTabsHidden = !this.hasVisibleTab()
|
|
74
|
+
|
|
75
|
+
// since we are hiding the currently active tab we should try to activate another visible tab
|
|
76
|
+
if (this.activeTab === tab.tabId) {
|
|
77
|
+
this.activateFirstVisibleTab()
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
protected startTabChange = (selectedTab) => {
|
|
83
|
+
// don't do anything for disabled tag
|
|
84
|
+
if (selectedTab.isDisabled) {
|
|
85
|
+
return
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const currentTab = _.find(this.tabs, {tabId: this.activeTab})
|
|
89
|
+
|
|
90
|
+
if (currentTab && !_.isUndefined(currentTab.tabChangeStart)) {
|
|
91
|
+
|
|
92
|
+
const response = currentTab.tabChangeStart(selectedTab)
|
|
93
|
+
|
|
94
|
+
if (!_.isUndefined(response) && !_.isUndefined(response.then)) {
|
|
95
|
+
response.then(() => {
|
|
96
|
+
// resolved successfully
|
|
97
|
+
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
98
|
+
})
|
|
99
|
+
} else {
|
|
100
|
+
// not a good promise default to accepting the tab switch
|
|
101
|
+
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
// no onChange function, default to accept the tab switch
|
|
105
|
+
this.activateTab(selectedTab, { updateSetActive: true, processCallbacks: true})
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private activateTab(tabToActivate: TabController, options) {
|
|
110
|
+
|
|
111
|
+
_.each(this.tabs, (tab) => {
|
|
112
|
+
if (tab.tabId === tabToActivate.tabId) {
|
|
113
|
+
this.activeTab = tabToActivate.tabId
|
|
114
|
+
|
|
115
|
+
if (options.updateSetActive) {
|
|
116
|
+
this.bypassWatch = true
|
|
117
|
+
this.activeTab = tabToActivate.tabId
|
|
118
|
+
// reset bypass for watch
|
|
119
|
+
this.bypassWatch = false
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (options.processCallbacks) {
|
|
123
|
+
if (!_.isUndefined(tab.tabWhenClicked)) {
|
|
124
|
+
tab.tabWhenClicked()
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
private hasVisibleTab(): boolean {
|
|
134
|
+
let tabFound: boolean = false
|
|
135
|
+
|
|
136
|
+
_.each(this.tabs, (t) => {
|
|
137
|
+
if (t && !t.isHidden) {
|
|
138
|
+
tabFound = true
|
|
139
|
+
return false
|
|
140
|
+
}
|
|
141
|
+
return
|
|
142
|
+
})
|
|
143
|
+
|
|
144
|
+
return tabFound
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// returns true if there is a non-hidden tab to activage, otherwise false
|
|
148
|
+
private activateFirstVisibleTab() {
|
|
149
|
+
|
|
150
|
+
_.each(this.tabs, (t) => {
|
|
151
|
+
if (t && !t.isHidden) {
|
|
152
|
+
this.activateTab(t, {updateSetActive: false, processCallbacks: false})
|
|
153
|
+
return false
|
|
154
|
+
}
|
|
155
|
+
return
|
|
156
|
+
})
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import angular from 'angular'
|
|
2
|
-
|
|
3
|
-
angular.module('app').directive('mflyTabHtmlTitleAppend', function mflyTabHtmlTitleAppend() {
|
|
4
|
-
|
|
5
|
-
return {
|
|
6
|
-
|
|
7
|
-
restrict: 'A',
|
|
8
|
-
scope: {
|
|
9
|
-
mflyTabHtmlTitleAppend: '='
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
link: ($scope: ScopeKeyValuePair, element) => {
|
|
13
|
-
element.append($scope.mflyTabHtmlTitleAppend)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
})
|
|
1
|
+
import angular from 'angular'
|
|
2
|
+
|
|
3
|
+
angular.module('app').directive('mflyTabHtmlTitleAppend', function mflyTabHtmlTitleAppend() {
|
|
4
|
+
|
|
5
|
+
return {
|
|
6
|
+
|
|
7
|
+
restrict: 'A',
|
|
8
|
+
scope: {
|
|
9
|
+
mflyTabHtmlTitleAppend: '='
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
link: ($scope: ScopeKeyValuePair, element) => {
|
|
13
|
+
element.append($scope.mflyTabHtmlTitleAppend)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
})
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import angular from 'angular'
|
|
2
|
-
import {Component, Inject} from '../decorators'
|
|
3
|
-
import TabController from './tab'
|
|
4
|
-
import TabGroupController from './tab-group'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'mflyTabHtmlTitle',
|
|
9
|
-
transclude: true,
|
|
10
|
-
require: {
|
|
11
|
-
parent: '^mflyTab',
|
|
12
|
-
parentGroup: '^mflyTabGroup'
|
|
13
|
-
}
|
|
14
|
-
})
|
|
15
|
-
export default class TabHtmlTitleController implements ng.IComponentController {
|
|
16
|
-
|
|
17
|
-
protected parent: TabController
|
|
18
|
-
protected parentGroup: TabGroupController
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
@Inject('$transclude') private $transclude: ng.ITranscludeFunction
|
|
22
|
-
) {}
|
|
23
|
-
|
|
24
|
-
$onInit() {
|
|
25
|
-
this.$transclude((clone: any) => {
|
|
26
|
-
if (this.parent.loadTab || typeof(this.parent.loadTab) === 'undefined') {
|
|
27
|
-
const titleContent = angular.element(clone)
|
|
28
|
-
this.parent.setHtmlTitle(titleContent)
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
1
|
+
import angular from 'angular'
|
|
2
|
+
import {Component, Inject} from '../decorators'
|
|
3
|
+
import TabController from './tab'
|
|
4
|
+
import TabGroupController from './tab-group'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'mflyTabHtmlTitle',
|
|
9
|
+
transclude: true,
|
|
10
|
+
require: {
|
|
11
|
+
parent: '^mflyTab',
|
|
12
|
+
parentGroup: '^mflyTabGroup'
|
|
13
|
+
}
|
|
14
|
+
})
|
|
15
|
+
export default class TabHtmlTitleController implements ng.IComponentController {
|
|
16
|
+
|
|
17
|
+
protected parent: TabController
|
|
18
|
+
protected parentGroup: TabGroupController
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
@Inject('$transclude') private $transclude: ng.ITranscludeFunction
|
|
22
|
+
) {}
|
|
23
|
+
|
|
24
|
+
$onInit() {
|
|
25
|
+
this.$transclude((clone: any) => {
|
|
26
|
+
if (this.parent.loadTab || typeof(this.parent.loadTab) === 'undefined') {
|
|
27
|
+
const titleContent = angular.element(clone)
|
|
28
|
+
this.parent.setHtmlTitle(titleContent)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<div ng-transclude
|
|
2
|
-
ng-show="$ctrl.parent.activeTab === $ctrl.tabId"></div>
|
|
1
|
+
<div ng-transclude
|
|
2
|
+
ng-show="$ctrl.parent.activeTab === $ctrl.tabId"></div>
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import {Component, Input, Output} from '../decorators'
|
|
2
|
-
import TabGroupController from './tab-group'
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'mflyTab',
|
|
6
|
-
template: require('./tab.html'),
|
|
7
|
-
transclude: true,
|
|
8
|
-
require: {
|
|
9
|
-
parent: '^mflyTabGroup'
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
export default class TabController implements ng.IComponentController {
|
|
13
|
-
|
|
14
|
-
@Input('<')
|
|
15
|
-
isDisabled?: boolean
|
|
16
|
-
|
|
17
|
-
@Input('<')
|
|
18
|
-
isHidden?: boolean
|
|
19
|
-
|
|
20
|
-
@Input('<')
|
|
21
|
-
loadTab?: boolean
|
|
22
|
-
|
|
23
|
-
@Input('@')
|
|
24
|
-
tabId!: string
|
|
25
|
-
|
|
26
|
-
@Input('@')
|
|
27
|
-
tabTitle?: string
|
|
28
|
-
|
|
29
|
-
@Output()
|
|
30
|
-
tabChangeStart?: (selectedTab) => Promise<boolean>
|
|
31
|
-
|
|
32
|
-
@Output()
|
|
33
|
-
tabWhenClicked?: () => void
|
|
34
|
-
|
|
35
|
-
protected parent: TabGroupController
|
|
36
|
-
protected htmlTitle: any
|
|
37
|
-
|
|
38
|
-
$onInit() {
|
|
39
|
-
|
|
40
|
-
if (this.loadTab || typeof(this.loadTab) === 'undefined') {
|
|
41
|
-
this.parent.registerTab(this)
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
$onChanges(changes: { isHidden?: ng.IChangesObject<boolean> }) {
|
|
46
|
-
if (!changes.isHidden) { return }
|
|
47
|
-
if (changes.isHidden.currentValue === changes.isHidden.previousValue) { return }
|
|
48
|
-
|
|
49
|
-
this.parent.onTabHideChange(this)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
setHtmlTitle(htmlTitle) {
|
|
53
|
-
this.htmlTitle = htmlTitle
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
import {Component, Input, Output} from '../decorators'
|
|
2
|
+
import TabGroupController from './tab-group'
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'mflyTab',
|
|
6
|
+
template: require('./tab.html'),
|
|
7
|
+
transclude: true,
|
|
8
|
+
require: {
|
|
9
|
+
parent: '^mflyTabGroup'
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
export default class TabController implements ng.IComponentController {
|
|
13
|
+
|
|
14
|
+
@Input('<')
|
|
15
|
+
isDisabled?: boolean
|
|
16
|
+
|
|
17
|
+
@Input('<')
|
|
18
|
+
isHidden?: boolean
|
|
19
|
+
|
|
20
|
+
@Input('<')
|
|
21
|
+
loadTab?: boolean
|
|
22
|
+
|
|
23
|
+
@Input('@')
|
|
24
|
+
tabId!: string
|
|
25
|
+
|
|
26
|
+
@Input('@')
|
|
27
|
+
tabTitle?: string
|
|
28
|
+
|
|
29
|
+
@Output()
|
|
30
|
+
tabChangeStart?: (selectedTab) => Promise<boolean>
|
|
31
|
+
|
|
32
|
+
@Output()
|
|
33
|
+
tabWhenClicked?: () => void
|
|
34
|
+
|
|
35
|
+
protected parent: TabGroupController
|
|
36
|
+
protected htmlTitle: any
|
|
37
|
+
|
|
38
|
+
$onInit() {
|
|
39
|
+
|
|
40
|
+
if (this.loadTab || typeof(this.loadTab) === 'undefined') {
|
|
41
|
+
this.parent.registerTab(this)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
$onChanges(changes: { isHidden?: ng.IChangesObject<boolean> }) {
|
|
46
|
+
if (!changes.isHidden) { return }
|
|
47
|
+
if (changes.isHidden.currentValue === changes.isHidden.previousValue) { return }
|
|
48
|
+
|
|
49
|
+
this.parent.onTabHideChange(this)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
setHtmlTitle(htmlTitle) {
|
|
53
|
+
this.htmlTitle = htmlTitle
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
@import '../less/variables/colors.less';
|
|
2
|
-
@import '../less/variables/typography.less';
|
|
3
|
-
|
|
4
|
-
.o-tabs__header {
|
|
5
|
-
border-bottom: 1px solid @color-gray-medium;
|
|
6
|
-
display: block;
|
|
7
|
-
|
|
8
|
-
// Override default UL styling from mediafly-bootstrap.css
|
|
9
|
-
margin-bottom: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.o-tabs__header__tab {
|
|
14
|
-
border-bottom: 3px solid transparent;
|
|
15
|
-
color: @color-gray-medium;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
display: inline-block;
|
|
18
|
-
list-style-type: none; // Override default LI styling
|
|
19
|
-
margin-right: 2px;
|
|
20
|
-
padding: 10px 15px;
|
|
21
|
-
transition: all 0.25s;
|
|
22
|
-
|
|
23
|
-
&.is-active {
|
|
24
|
-
border-bottom-color: @color-gray-dark;
|
|
25
|
-
color: @color-gray-x-dark;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@media (hover) {
|
|
29
|
-
&:hover:not(.is-disabled) {
|
|
30
|
-
border-bottom-color: @color-gray-x-light;
|
|
31
|
-
color: @color-gray-dark;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover.is-active {
|
|
35
|
-
border-bottom-color: @color-gray-dark;
|
|
36
|
-
color: @color-gray-x-dark;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.is-disabled {
|
|
41
|
-
color: @color-gray-x-light;
|
|
42
|
-
cursor: not-allowed;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
@import '../less/variables/colors.less';
|
|
2
|
+
@import '../less/variables/typography.less';
|
|
3
|
+
|
|
4
|
+
.o-tabs__header {
|
|
5
|
+
border-bottom: 1px solid @color-gray-medium;
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
// Override default UL styling from mediafly-bootstrap.css
|
|
9
|
+
margin-bottom: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.o-tabs__header__tab {
|
|
14
|
+
border-bottom: 3px solid transparent;
|
|
15
|
+
color: @color-gray-medium;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
list-style-type: none; // Override default LI styling
|
|
19
|
+
margin-right: 2px;
|
|
20
|
+
padding: 10px 15px;
|
|
21
|
+
transition: all 0.25s;
|
|
22
|
+
|
|
23
|
+
&.is-active {
|
|
24
|
+
border-bottom-color: @color-gray-dark;
|
|
25
|
+
color: @color-gray-x-dark;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (hover) {
|
|
29
|
+
&:hover:not(.is-disabled) {
|
|
30
|
+
border-bottom-color: @color-gray-x-light;
|
|
31
|
+
color: @color-gray-dark;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover.is-active {
|
|
35
|
+
border-bottom-color: @color-gray-dark;
|
|
36
|
+
color: @color-gray-x-dark;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-disabled {
|
|
41
|
+
color: @color-gray-x-light;
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import './tag-input.component'
|
|
1
|
+
import './tag-input.component'
|