@mediafly/js-ui 50.5.0 → 51.1.0-0
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/.semaphore/promotion-deploy-docs.yml +35 -0
- package/.semaphore/scripts/notify_jira.sh +115 -0
- package/.semaphore/semaphore.yml +91 -0
- package/CHANGELOG.md +25 -346
- package/README.md +7 -4
- package/archive/old-changelog.md +347 -0
- package/lib/checkbox/checkbox.html +2 -0
- package/lib/color-input/spectrum-color-picker.js +1 -2
- package/lib/color-input/spectrum-color-picker.js.map +1 -1
- package/lib/constants/constants.js +0 -1
- package/lib/constants/constants.js.map +1 -1
- package/lib/date-input/date-input.js +2 -3
- package/lib/date-input/date-input.js.map +1 -1
- package/lib/date-input/validate-date.js +1 -2
- package/lib/date-input/validate-date.js.map +1 -1
- package/lib/date-time-zone-picker/date-time-zone-picker.js +1 -2
- package/lib/date-time-zone-picker/date-time-zone-picker.js.map +1 -1
- package/lib/date-time-zone-picker/datepicker.html +17 -18
- package/lib/date-time-zone-picker/timepicker.html +19 -9
- package/lib/first-time-motivator/first-time-motivator.js +3 -4
- package/lib/first-time-motivator/first-time-motivator.js.map +1 -1
- package/lib/fonts.css +1 -1
- package/lib/gesture-handler/gesture-handler.js +14 -6
- package/lib/gesture-handler/gesture-handler.js.map +1 -1
- package/lib/hover-tooltip/hover-tooltip.js +7 -4
- package/lib/hover-tooltip/hover-tooltip.js.map +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -5
- package/lib/index.js.map +1 -1
- package/lib/jsui.module.css +46 -49
- package/lib/loading-indicator/loading-indicator.component.html +6 -6
- package/lib/metadata-form/metadata-form.component.d.ts +1 -0
- package/lib/metadata-form/metadata-form.component.js +32 -0
- package/lib/metadata-form/metadata-form.component.js.map +1 -1
- package/lib/metadata-form/metadata-form.html +1 -1
- package/lib/rich-text/rich-text.component.d.ts +3 -2
- package/lib/rich-text/rich-text.component.js +8 -0
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/styles.css +176 -369
- package/lib/time-input/time-input.html +1 -1
- package/lib/time-input/time-input.js +2 -3
- package/lib/time-input/time-input.js.map +1 -1
- package/lib/time-input/validate-time.js +1 -2
- package/lib/time-input/validate-time.js.map +1 -1
- package/lib/tree/tree.js +3 -4
- package/lib/tree/tree.js.map +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +26 -155
- package/package.json +1 -2
- package/src/components/checkbox/checkbox.html +2 -0
- package/src/components/color-input/spectrum-color-picker.js +2 -3
- package/src/components/constants/constants.js +0 -1
- package/src/components/date-input/date-input.js +2 -3
- package/src/components/date-input/validate-date.js +1 -2
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +20 -19
- package/src/components/date-time-zone-picker/date-time-zone-picker.ts +10 -7
- package/src/components/date-time-zone-picker/datepicker.html +17 -18
- package/src/components/date-time-zone-picker/timepicker.html +19 -9
- package/src/components/feedback/feedback.less +1 -1
- package/src/components/first-time-motivator/first-time-motivator.ts +4 -5
- package/src/components/font-selector/font-selector.less +2 -1
- package/src/components/gesture-handler/{gesture-handler.js → gesture-handler.ts} +18 -6
- package/src/components/hover-tooltip/hover-tooltip.ts +7 -4
- package/src/components/index.less +0 -1
- package/src/components/index.ts +0 -5
- package/src/components/legacy/mediafly-bootstrap.css +0 -5
- package/src/components/less/fonts/mfly-webfont.less +1 -1
- package/src/components/less/objects/buttons.less +12 -63
- package/src/components/less/objects/buttons.module.css +8 -2
- package/src/components/less/objects/containers.less +2 -2
- package/src/components/less/objects/forms.less +31 -245
- package/src/components/less/objects/labels.less +5 -1
- package/src/components/less/objects/radios-checkboxes.less +2 -1
- package/src/components/less/utilities/reset.less +1 -1
- package/src/components/less/utilities/utilities.less +2 -0
- package/src/components/less/variables/colors.less +39 -44
- package/src/components/less/variables/effects.less +3 -7
- package/src/components/less/variables.module.css +37 -46
- package/src/components/less/vendor/pikaday.css +12 -8
- package/src/components/loading-indicator/loading-indicator.component.html +6 -6
- package/src/components/metadata-form/metadata-form.component.ts +39 -0
- package/src/components/metadata-form/metadata-form.html +1 -1
- package/src/components/progress-bar/progress-bar.less +2 -1
- package/src/components/rich-text/rich-text.component.ts +8 -2
- package/src/components/time-input/time-input.html +1 -1
- package/src/components/time-input/time-input.js +3 -3
- package/src/components/time-input/validate-time.js +1 -2
- package/src/components/tree/tree.less +16 -8
- package/src/components/tree/tree.ts +5 -6
- package/src/fonts/mfly-webfont.woff +0 -0
- package/src/index.html +3 -2
- package/src/index.spec.js +0 -6
- package/Dockerfile +0 -42
- package/Jenkinsfile +0 -138
- package/lib/date-time-utilities/date-time-utilities.d.ts +0 -1
- package/lib/date-time-utilities/date-time-utilities.js +0 -79
- package/lib/date-time-utilities/date-time-utilities.js.map +0 -1
- package/lib/date-time-utilities/index.d.ts +0 -1
- package/lib/date-time-utilities/index.js +0 -4
- package/lib/date-time-utilities/index.js.map +0 -1
- package/lib/disable-context-menu/disable-context-menu.d.ts +0 -1
- package/lib/disable-context-menu/disable-context-menu.js +0 -23
- package/lib/disable-context-menu/disable-context-menu.js.map +0 -1
- package/lib/disable-context-menu/index.d.ts +0 -1
- package/lib/disable-context-menu/index.js +0 -4
- package/lib/disable-context-menu/index.js.map +0 -1
- package/lib/show-image-loader/index.d.ts +0 -1
- package/lib/show-image-loader/index.js +0 -4
- package/lib/show-image-loader/index.js.map +0 -1
- package/lib/show-image-loader/show-image-loader.d.ts +0 -1
- package/lib/show-image-loader/show-image-loader.js +0 -23
- package/lib/show-image-loader/show-image-loader.js.map +0 -1
- package/lib/slides/index.d.ts +0 -1
- package/lib/slides/index.js +0 -4
- package/lib/slides/index.js.map +0 -1
- package/lib/slides/slides.d.ts +0 -1
- package/lib/slides/slides.html +0 -17
- package/lib/slides/slides.js +0 -96
- package/lib/slides/slides.js.map +0 -1
- package/lib/time-conversion/index.d.ts +0 -1
- package/lib/time-conversion/index.js +0 -4
- package/lib/time-conversion/index.js.map +0 -1
- package/lib/time-conversion/time-conversion-factory.d.ts +0 -1
- package/lib/time-conversion/time-conversion-factory.js +0 -91
- package/lib/time-conversion/time-conversion-factory.js.map +0 -1
- package/src/components/date-time-utilities/date-time-utilities.js +0 -94
- package/src/components/date-time-utilities/index.ts +0 -1
- package/src/components/disable-context-menu/disable-context-menu.ts +0 -21
- package/src/components/disable-context-menu/index.ts +0 -1
- package/src/components/show-image-loader/index.ts +0 -1
- package/src/components/show-image-loader/show-image-loader.js +0 -22
- package/src/components/slides/index.ts +0 -1
- package/src/components/slides/slides.html +0 -17
- package/src/components/slides/slides.less +0 -155
- package/src/components/slides/slides.ts +0 -101
- package/src/components/time-conversion/index.ts +0 -1
- package/src/components/time-conversion/time-conversion-factory.ts +0 -114
- package/tsconfig.tsbuildinfo +0 -7221
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
overflow-y: scroll;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
// The toggle should look like a link
|
|
16
15
|
.c-date-time-zone-picker__timezone-menu__toggle {
|
|
17
16
|
cursor: pointer;
|
|
18
17
|
}
|
|
@@ -21,6 +20,26 @@
|
|
|
21
20
|
text-decoration: underline;
|
|
22
21
|
}
|
|
23
22
|
|
|
23
|
+
.c-datepicker-input {
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.c-datepicker-input__date-icon,
|
|
28
|
+
.c-timepicker-input__time-icon {
|
|
29
|
+
color: @color-gray-medium;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 10px;
|
|
33
|
+
|
|
34
|
+
// Vertical centering
|
|
35
|
+
top: 50%;
|
|
36
|
+
transform: translateY(-50%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.c-timepicker-input {
|
|
40
|
+
position: relative;
|
|
41
|
+
}
|
|
42
|
+
|
|
24
43
|
.c-timepicker-dropdown > .o-dropdown-menu__wrapper {
|
|
25
44
|
display: inline;
|
|
26
45
|
}
|
|
@@ -34,21 +53,3 @@
|
|
|
34
53
|
height: 250px;
|
|
35
54
|
overflow-y: scroll;
|
|
36
55
|
}
|
|
37
|
-
|
|
38
|
-
// Pika overrides
|
|
39
|
-
// ----------------------------------------------------
|
|
40
|
-
.pika-button:hover {
|
|
41
|
-
background-color: @color-mfly-green;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.is-selected .pika-button {
|
|
45
|
-
background-color: @color-mfly-blue;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.is-today .pika-button {
|
|
49
|
-
color: @color-mfly-blue;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.is-today.is-selected .pika-button {
|
|
53
|
-
color: #fff;
|
|
54
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import angular from 'angular'
|
|
2
|
-
import is from 'is_js'
|
|
3
2
|
import moment from 'moment'
|
|
4
3
|
|
|
5
4
|
// This type is necessary because the directive link function expects something
|
|
@@ -71,9 +70,10 @@ angular.module('app').directive('mflyDateTimeZonePicker', ['dateTimeZoneFactory'
|
|
|
71
70
|
// where we initialize our moment.
|
|
72
71
|
ngModelCtrl.$formatters.push(function(modelValue) {
|
|
73
72
|
|
|
74
|
-
if (
|
|
73
|
+
if (modelValue) {
|
|
75
74
|
initParentMomentFromAPI(modelValue)
|
|
76
|
-
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
77
|
// If we don't have a value, we should insure we clear the control
|
|
78
78
|
// by passing NULL to the update function.
|
|
79
79
|
$scope.dateMoment = null
|
|
@@ -87,9 +87,11 @@ angular.module('app').directive('mflyDateTimeZonePicker', ['dateTimeZoneFactory'
|
|
|
87
87
|
})
|
|
88
88
|
|
|
89
89
|
function updateAPIFromMoment() {
|
|
90
|
+
|
|
90
91
|
if ($scope.parentMoment) {
|
|
91
92
|
ngModelCtrl.$setViewValue($scope.parentMoment.format())
|
|
92
|
-
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
93
95
|
ngModelCtrl.$setViewValue(null)
|
|
94
96
|
}
|
|
95
97
|
}
|
|
@@ -104,12 +106,13 @@ angular.module('app').directive('mflyDateTimeZonePicker', ['dateTimeZoneFactory'
|
|
|
104
106
|
$scope.parentMoment.month(newDate.month())
|
|
105
107
|
$scope.parentMoment.year(newDate.year())
|
|
106
108
|
$scope.parentMoment.date(newDate.date())
|
|
107
|
-
}
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
108
111
|
// if we do not have a parent moment b/c no previous date existed
|
|
109
112
|
initParentMomentFromDatePicker(newDate)
|
|
110
113
|
}
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
113
116
|
// we are clearing out a date
|
|
114
117
|
$scope.parentMoment = ''
|
|
115
118
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<ng-form class="o-form" name="form.validation" autocomplete="off">
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
<div class="o-form-group c-datepicker-input">
|
|
4
|
+
|
|
5
|
+
<input
|
|
6
|
+
autocomplete="off"
|
|
4
7
|
class="o-form-control"
|
|
5
8
|
id="{{ inputId }}"
|
|
6
9
|
mfly-datepicker="momentDate"
|
|
@@ -12,21 +15,17 @@
|
|
|
12
15
|
ng-keydown="inputKeyDown($event)"
|
|
13
16
|
ng-model="dateInputValue.date"
|
|
14
17
|
ng-required="isRequired === 'true'"
|
|
15
|
-
type="text"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'o-input-group__add-on--disabled': isDisabled
|
|
28
|
-
}">
|
|
29
|
-
<span class="far fa-calendar-alt"></span>
|
|
30
|
-
</div>
|
|
18
|
+
type="text"
|
|
19
|
+
/>
|
|
20
|
+
|
|
21
|
+
<span
|
|
22
|
+
ng-show="form.validation.mflyDatepicker.$error.required"
|
|
23
|
+
class="o-text-validation o-text-validation--warning">{{ requiredText }}</span>
|
|
24
|
+
<span
|
|
25
|
+
ng-show="form.validation.mflyDatepicker.$error.invalidDate"
|
|
26
|
+
class="o-text-validation o-text-validation--warning">{{ invalidDateText }}</span>
|
|
27
|
+
|
|
28
|
+
<span class="far fa-calendar-alt c-date-input__date-icon"></span>
|
|
29
|
+
|
|
31
30
|
</div>
|
|
32
31
|
</ng-form>
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
<ng-form name="form.validation">
|
|
2
|
+
|
|
2
3
|
<mfly:dropdown-menu pins-to="right" class="c-timepicker-dropdown">
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
<div
|
|
6
|
+
class="c-timepicker-input c-timepicker-dropdown__input"
|
|
7
|
+
mfly-dropdown-menu-toggle>
|
|
8
|
+
|
|
9
|
+
<input
|
|
10
|
+
name="mflyTimepicker"
|
|
5
11
|
id="{{inputId}}"
|
|
6
12
|
type="text"
|
|
7
|
-
class="o-form-control"
|
|
13
|
+
class="o-form-control c-time-input__box"
|
|
8
14
|
ng-model="timeValue.time"
|
|
9
15
|
ng-change="validateTime()"
|
|
10
16
|
ng-focus="focusAddOn = true"
|
|
11
|
-
ng-blur="focusAddOn = false"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
ng-blur="focusAddOn = false"
|
|
18
|
+
/>
|
|
19
|
+
|
|
20
|
+
<span
|
|
21
|
+
ng-show="form.validation.$error.invalidTime"
|
|
22
|
+
class="o-text-validation o-text-validation--warning">{{ invalidTimeText }}</span>
|
|
23
|
+
|
|
24
|
+
<span class="far fa-clock c-timepicker-input__time-icon"></span>
|
|
17
25
|
</div>
|
|
26
|
+
|
|
18
27
|
<mfly:dropdown-menu-contents class="c-timepicker-dropdown__contents">
|
|
19
28
|
<mfly:dropdown-menu-action action="itemClicked(item)" ng-repeat="item in dropdownItems">{{ item }}</mfly:dropdown-menu-action>
|
|
20
29
|
</mfly:dropdown-menu-contents>
|
|
30
|
+
|
|
21
31
|
</mfly:dropdown-menu>
|
|
22
32
|
</ng-form>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import angular from 'angular'
|
|
2
|
-
import is from 'is_js'
|
|
3
2
|
import $ from 'jquery'
|
|
4
3
|
import _ from 'lodash'
|
|
5
4
|
import template from './first-time-motivator-transclude.html'
|
|
6
5
|
import firstTimeMotivatorTemplate from './first-time-motivator.html'
|
|
7
6
|
|
|
7
|
+
|
|
8
8
|
angular.module('app').directive('mflyFirstTimeMotivator', [
|
|
9
9
|
'$compile',
|
|
10
10
|
'$timeout',
|
|
@@ -46,11 +46,10 @@ angular.module('app').directive('mflyFirstTimeMotivator', [
|
|
|
46
46
|
let ftmIsCompiled = false
|
|
47
47
|
|
|
48
48
|
// assume we are positioned to the top if a position is not provided
|
|
49
|
-
if (
|
|
49
|
+
if (!$scope.position) {
|
|
50
50
|
$scope.position = 'top'
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
54
53
|
this.setTargetVisibility = (newValue) => {
|
|
55
54
|
|
|
56
55
|
if (newValue && isDisplayed()) {
|
|
@@ -237,12 +236,12 @@ angular.module('app').directive('mflyFirstTimeMotivator', [
|
|
|
237
236
|
let afterOffsetStr
|
|
238
237
|
|
|
239
238
|
// Syntax adjusting for calc() css function
|
|
240
|
-
if (
|
|
239
|
+
if (Number.isFinite(beforeOffset) && beforeOffset < 0) {
|
|
241
240
|
beforeOffsetStr = '- ' + _.trimStart(beforeOffset.toString(), '-')
|
|
242
241
|
} else {
|
|
243
242
|
beforeOffsetStr = '+ ' + beforeOffset.toString()
|
|
244
243
|
}
|
|
245
|
-
if (
|
|
244
|
+
if (Number.isFinite(afterOffset) && afterOffset < 0) {
|
|
246
245
|
afterOffsetStr = '- ' + _.trimStart(afterOffset.toString(), '-')
|
|
247
246
|
} else {
|
|
248
247
|
afterOffsetStr = '+ ' + afterOffset.toString()
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import angular from 'angular'
|
|
2
2
|
import Hammer from 'hammerjs'
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// Essentially inlined from is_js check, it's old but we preserve the behavior.
|
|
5
|
+
function is_iOS() {
|
|
6
|
+
|
|
7
|
+
const ua = (navigator?.userAgent || '').toLowerCase()
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
const is_iPad = !!ua.match(/ipad.+?os (\d+)/)
|
|
11
|
+
const is_iPhone = !!ua.match(/iphone(?:.+?os (\d+))?/)
|
|
12
|
+
/* tslint:enable */
|
|
13
|
+
|
|
14
|
+
return is_iPad || is_iPhone
|
|
15
|
+
}
|
|
4
16
|
|
|
5
17
|
|
|
6
18
|
angular.module('app').directive('mflyGestureHandler', function () {
|
|
@@ -23,11 +35,11 @@ angular.module('app').directive('mflyGestureHandler', function () {
|
|
|
23
35
|
'pageTurnPrevious': '&' // A left-to-right swipe anywhere on the element
|
|
24
36
|
},
|
|
25
37
|
|
|
26
|
-
link
|
|
38
|
+
link($scope: ScopeKeyValuePair, element) {
|
|
27
39
|
|
|
28
40
|
// Set up the Hammer recognizer on the provided element
|
|
29
41
|
// (note that Hammer wants a DOM element, not a jqlite-wrapped element)
|
|
30
|
-
|
|
42
|
+
const hammerManager = new Hammer.Manager(element[0], {
|
|
31
43
|
|
|
32
44
|
// In some cases (PDF documents), we want the user to be able to select text inside the gesture handler.
|
|
33
45
|
// By default, Hammer prevents text selection to prevent swipe gestures selecting text. Override this.
|
|
@@ -66,7 +78,7 @@ angular.module('app').directive('mflyGestureHandler', function () {
|
|
|
66
78
|
})
|
|
67
79
|
|
|
68
80
|
// iOS Safari only supports `manipulation` or `auto`.
|
|
69
|
-
if (
|
|
81
|
+
if (is_iOS()) {
|
|
70
82
|
element.css('touch-action', 'manipulation')
|
|
71
83
|
} else {
|
|
72
84
|
element.css('touch-action', 'pan-y pinch-zoom')
|
|
@@ -74,7 +86,7 @@ angular.module('app').directive('mflyGestureHandler', function () {
|
|
|
74
86
|
|
|
75
87
|
|
|
76
88
|
// Gesture handler: pageTurnNext
|
|
77
|
-
|
|
89
|
+
const swipeLeftHandler = function (event) {
|
|
78
90
|
|
|
79
91
|
if (!$scope.handlerDisabled) {
|
|
80
92
|
$scope.$apply($scope.pageTurnNext)
|
|
@@ -84,7 +96,7 @@ angular.module('app').directive('mflyGestureHandler', function () {
|
|
|
84
96
|
hammerManager.on('swipeleft', swipeLeftHandler)
|
|
85
97
|
|
|
86
98
|
// Gesture handler: pageTurnPrevious
|
|
87
|
-
|
|
99
|
+
const swipeRightHandler = function (event) {
|
|
88
100
|
|
|
89
101
|
if (!$scope.handlerDisabled) {
|
|
90
102
|
$scope.$apply($scope.pageTurnPrevious)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import angular from 'angular'
|
|
2
|
-
import is from 'is_js'
|
|
3
2
|
import $ from 'jquery'
|
|
4
3
|
import _ from 'lodash'
|
|
5
4
|
|
|
@@ -24,10 +23,14 @@ angular.module('app').directive('mflyHoverTooltip', [
|
|
|
24
23
|
let deregisterChangeWatcher = _.noop
|
|
25
24
|
|
|
26
25
|
const options = {
|
|
27
|
-
delay
|
|
26
|
+
delay: Number.isFinite(attrs.mflyHoverTooltipDelay)
|
|
27
|
+
? attrs.mflyHoverTooltipDelay
|
|
28
|
+
: 500,
|
|
28
29
|
flushArrow: attrs.mflyHoverTooltipFlushArrow === 'true',
|
|
29
|
-
maxWidth:
|
|
30
|
-
|
|
30
|
+
maxWidth: Number.isFinite(attrs.mflyHoverTooltipMaxWidth)
|
|
31
|
+
? attrs.mflyHoverTooltipMaxWidth
|
|
32
|
+
: 300,
|
|
33
|
+
position: attrs.mflyHoverTooltipPosition || 'top left',
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
const getTooltipTemplate = () => {
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
@import './progress-circle/progress-circle';
|
|
28
28
|
@import './rich-text/rich-text.component.less';
|
|
29
29
|
@import './site-header/site-header';
|
|
30
|
-
@import './slides/slides';
|
|
31
30
|
@import './table-blank-slate/table-blank-slate';
|
|
32
31
|
@import './tabs/tabs';
|
|
33
32
|
@import './tag-input/tag-input';
|
package/src/components/index.ts
CHANGED
|
@@ -8,9 +8,7 @@ import './color-input'
|
|
|
8
8
|
import './color-utils'
|
|
9
9
|
import './constants'
|
|
10
10
|
import './date-input'
|
|
11
|
-
import './date-time-utilities'
|
|
12
11
|
import './date-time-zone-picker'
|
|
13
|
-
import './disable-context-menu'
|
|
14
12
|
import './dropdown-menu'
|
|
15
13
|
import './dropdown'
|
|
16
14
|
import './feedback'
|
|
@@ -35,16 +33,13 @@ import './progress-bar'
|
|
|
35
33
|
import './progress-circle'
|
|
36
34
|
import './response-handlers'
|
|
37
35
|
import './rich-text'
|
|
38
|
-
import './show-image-loader'
|
|
39
36
|
import './site-header'
|
|
40
|
-
import './slides'
|
|
41
37
|
import './table-blank-slate'
|
|
42
38
|
import './tabs'
|
|
43
39
|
import './tag-input'
|
|
44
40
|
import './textarea'
|
|
45
41
|
import './textinput'
|
|
46
42
|
import './theme'
|
|
47
|
-
import './time-conversion'
|
|
48
43
|
import './time-input'
|
|
49
44
|
import './translate'
|
|
50
45
|
import './tree'
|
|
@@ -238,11 +238,6 @@ input[type=search] {
|
|
|
238
238
|
-webkit-box-sizing: border-box;
|
|
239
239
|
box-sizing: border-box;
|
|
240
240
|
}
|
|
241
|
-
input[type=radio], input[type=checkbox] {
|
|
242
|
-
margin: 4px 0 0;
|
|
243
|
-
margin-top: 1px \9;
|
|
244
|
-
line-height: normal;
|
|
245
|
-
}
|
|
246
241
|
input[type=file] {
|
|
247
242
|
display: block;
|
|
248
243
|
}
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
// Local Mixins
|
|
15
15
|
// -------------------------------------------------
|
|
16
|
-
.disabled-button () {
|
|
17
|
-
box-shadow: none;
|
|
18
|
-
cursor: not-allowed;
|
|
19
|
-
opacity: 0.65;
|
|
20
|
-
pointer-events: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
16
|
.hover-button () {
|
|
24
17
|
background-color: @color-button-default-hover-background;
|
|
25
18
|
border-color: @color-button-default-hover-border;
|
|
@@ -79,16 +72,16 @@
|
|
|
79
72
|
&.is-disabled:active,
|
|
80
73
|
&.disabled.active,
|
|
81
74
|
&[disabled].active,
|
|
82
|
-
&.is-disabled.active
|
|
83
|
-
.disabled-button();
|
|
84
|
-
}
|
|
85
|
-
|
|
75
|
+
&.is-disabled.active,
|
|
86
76
|
fieldset[disabled] &,
|
|
87
77
|
fieldset[disabled] &:hover,
|
|
88
78
|
fieldset[disabled] &:focus,
|
|
89
79
|
fieldset[disabled] &:active,
|
|
90
80
|
fieldset[disabled] &.active {
|
|
91
|
-
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
color: @color-ui-theme-text-disabled;
|
|
83
|
+
cursor: not-allowed;
|
|
84
|
+
pointer-events: none;
|
|
92
85
|
}
|
|
93
86
|
|
|
94
87
|
@media (hover) {
|
|
@@ -124,6 +117,12 @@
|
|
|
124
117
|
}
|
|
125
118
|
}
|
|
126
119
|
|
|
120
|
+
&.o-button--primary[disabled] {
|
|
121
|
+
background-color: @color-gray-xx-light;
|
|
122
|
+
border-color: @color-gray-xx-light;
|
|
123
|
+
color: @color-ui-theme-text-disabled;
|
|
124
|
+
}
|
|
125
|
+
|
|
127
126
|
.open .o-button--primary.dropdown-toggle {
|
|
128
127
|
.hover-primary-button();
|
|
129
128
|
}
|
|
@@ -252,7 +251,7 @@
|
|
|
252
251
|
|
|
253
252
|
// "Selected" buttons can be used to indicate state.
|
|
254
253
|
& > .o-button.is-selected {
|
|
255
|
-
background-color: @color-gray-
|
|
254
|
+
background-color: @color-gray-xx-light;
|
|
256
255
|
color: @color-gray-x-dark;
|
|
257
256
|
}
|
|
258
257
|
}
|
|
@@ -276,53 +275,3 @@
|
|
|
276
275
|
margin-left: 10px;
|
|
277
276
|
}
|
|
278
277
|
}
|
|
279
|
-
|
|
280
|
-
.o-input-group-button {
|
|
281
|
-
display: table-cell;
|
|
282
|
-
font-size: 0;
|
|
283
|
-
position: relative;
|
|
284
|
-
vertical-align: middle;
|
|
285
|
-
white-space: nowrap;
|
|
286
|
-
width: 1%;
|
|
287
|
-
|
|
288
|
-
& .o-button {
|
|
289
|
-
border: 1px solid @color-gray-x-light;
|
|
290
|
-
border-bottom-left-radius: 0;
|
|
291
|
-
border-bottom-right-radius: 5px;
|
|
292
|
-
border-top-left-radius: 0;
|
|
293
|
-
border-top-right-radius: 5px;
|
|
294
|
-
margin-left: -1px;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.o-input-group--sm & {
|
|
298
|
-
/* stylelint-disable-next-line max-nesting-depth */
|
|
299
|
-
& .o-button {
|
|
300
|
-
border-bottom-right-radius: 3px;
|
|
301
|
-
border-top-right-radius: 3px;
|
|
302
|
-
font-size: 12px;
|
|
303
|
-
height: 30px;
|
|
304
|
-
line-height: 1.5px;
|
|
305
|
-
padding: 5px 10px;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.o-input-group--inverse & {
|
|
310
|
-
/* stylelint-disable-next-line max-nesting-depth */
|
|
311
|
-
& .o-button {
|
|
312
|
-
background-color: @color-button-primary-background;
|
|
313
|
-
border-bottom: 1px solid #666;
|
|
314
|
-
border-color: @color-button-primary-border;
|
|
315
|
-
color: @color-button-primary-text;
|
|
316
|
-
|
|
317
|
-
@media (hover) {
|
|
318
|
-
&:hover {
|
|
319
|
-
background-color: @color-gray-dark;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
/* stylelint-disable-next-line max-nesting-depth */
|
|
323
|
-
&.active {
|
|
324
|
-
background-color: @color-gray-dark;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
&[disabled] {
|
|
44
44
|
box-shadow: none;
|
|
45
|
-
|
|
45
|
+
color: var(--color-ui-theme-text-disabled);
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -64,6 +64,12 @@
|
|
|
64
64
|
inset 1000px 400px 0 0 rgba(0, 0, 0, 0),
|
|
65
65
|
0 0 8px rgba(131, 131, 131, 0.9);
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
&[disabled] {
|
|
69
|
+
background-color: var(--color-gray-xx-light);
|
|
70
|
+
border-color: var(--color-gray-xx-light);
|
|
71
|
+
color: var(--color-ui-theme-text-disabled);
|
|
72
|
+
}
|
|
67
73
|
}
|
|
68
74
|
|
|
69
75
|
.button.isTertiary {
|
|
@@ -159,7 +165,7 @@
|
|
|
159
165
|
|
|
160
166
|
/* "Selected" buttons can be used to indicate state. */
|
|
161
167
|
& .button.isSelected {
|
|
162
|
-
background-color: var(--color-gray-
|
|
168
|
+
background-color: var(--color-gray-xx-light);
|
|
163
169
|
color: var(--color-gray-x-dark);
|
|
164
170
|
}
|
|
165
171
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
.o-alert--warning {
|
|
45
45
|
background-color: @color-warning-light;
|
|
46
46
|
border-color: darken(@color-warning-light, 10%);
|
|
47
|
-
color: @color-warning;
|
|
47
|
+
color: @color-warning-dark;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.o-alert--info {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
.o-alert a { color: @color-gray-dark; }
|
|
57
57
|
.o-alert.o-alert--success a { color: @color-success; }
|
|
58
58
|
.o-alert.o-alert--danger a { color: @color-danger; }
|
|
59
|
-
.o-alert.o-alert--warning a { color: @color-warning; }
|
|
59
|
+
.o-alert.o-alert--warning a { color: @color-warning-dark; }
|
|
60
60
|
.o-alert.o-alert--info a { color: @color-info; }
|
|
61
61
|
|
|
62
62
|
// Headers
|