@bethinkpl/design-system 14.1.1 → 15.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/dist/design-system.umd.js +657 -367
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Banner/Banner.stories.d.ts +56 -8
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +28 -4
- package/dist/lib/js/components/Buttons/Button/Button.stories.d.ts +14 -2
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +7 -1
- package/dist/lib/js/components/Buttons/IconButton/IconButton.stories.d.ts +98 -14
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +14 -2
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.stories.d.ts +14 -2
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +7 -1
- package/dist/lib/js/components/Dropdown/Dropdown.consts.d.ts +4 -0
- package/dist/lib/js/components/Dropdown/Dropdown.stories.d.ts +12 -0
- package/dist/lib/js/components/Dropdown/Dropdown.vue.d.ts +6 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +7 -1
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +7 -1
- package/dist/lib/js/components/Modals/Modal/Modal.stories.d.ts +140 -20
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +28 -4
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.stories.d.ts +112 -16
- package/dist/lib/js/components/Modals/ModalDialog/ModalDialog.vue.d.ts +28 -4
- package/dist/lib/js/components/OverlayHeader/OverlayHeader.stories.d.ts +78 -6
- package/dist/lib/js/components/OverlayHeader/OverlayHeader.vue.d.ts +39 -3
- package/dist/lib/js/components/Pagination/Pagination.stories.d.ts +42 -6
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +21 -3
- package/dist/lib/js/components/Pill/Pill.stories.d.ts +42 -6
- package/dist/lib/js/components/Pill/Pill.vue.d.ts +21 -3
- package/dist/lib/js/components/ProgressBar/ProgressBar.consts.d.ts +34 -13
- package/dist/lib/js/components/ProgressBar/ProgressBar.stories.d.ts +1477 -169
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +246 -28
- package/dist/lib/js/components/SectionHeader/SectionHeader.stories.d.ts +14 -2
- package/dist/lib/js/components/SectionHeader/SectionHeader.vue.d.ts +7 -1
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.stories.d.ts +14 -2
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +7 -1
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.stories.d.ts +14 -2
- package/dist/lib/js/components/SelectList/SelectListItemToggle/SelectListItemToggle.vue.d.ts +7 -1
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.stories.d.ts +14 -2
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +7 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +7 -1
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockedeStatus.stories.d.ts +14 -2
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.stories.d.ts +70 -10
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +35 -5
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.stories.d.ts +140 -20
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +35 -5
- package/dist/lib/js/components/Tile/Tile.consts.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.stories.d.ts +21 -3
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +7 -1
- package/dist/lib/js/icons/fontawesome.d.ts +7 -0
- package/docs/iframe.html +1 -1
- package/docs/main.a0d19173.iframe.bundle.js +1 -0
- package/docs/project.json +1 -1
- package/docs/vendors~main.09187a93.iframe.bundle.js +3 -0
- package/docs/vendors~main.09187a93.iframe.bundle.js.map +1 -0
- package/lib/js/components/Dropdown/Dropdown.consts.ts +5 -0
- package/lib/js/components/Dropdown/Dropdown.stories.ts +14 -4
- package/lib/js/components/Dropdown/Dropdown.vue +16 -2
- package/lib/js/components/Icons/Icon/Icon.consts.ts +0 -2
- package/lib/js/components/OverlayHeader/OverlayHeader.vue +14 -3
- package/lib/js/components/ProgressBar/ProgressBar.consts.ts +41 -15
- package/lib/js/components/ProgressBar/ProgressBar.stories.ts +37 -49
- package/lib/js/components/ProgressBar/ProgressBar.vue +169 -113
- package/lib/js/components/Tile/Tile.consts.ts +1 -0
- package/lib/js/components/Tile/Tile.vue +16 -0
- package/lib/js/icons/fontawesome.ts +14 -0
- package/package.json +1 -1
- package/docs/main.58fb1ea2.iframe.bundle.js +0 -1
- package/docs/vendors~main.3e958b34.iframe.bundle.js +0 -3
- package/docs/vendors~main.3e958b34.iframe.bundle.js.map +0 -1
- package/lib/images/icons/clipboard-add.svg +0 -1
- /package/docs/{vendors~main.3e958b34.iframe.bundle.js.LICENSE.txt → vendors~main.09187a93.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -2,19 +2,16 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:class="{
|
|
4
4
|
progressBar: true,
|
|
5
|
-
'-primary': color === PROGRESS_BAR_COLORS.PRIMARY,
|
|
6
|
-
'-warning': color === PROGRESS_BAR_COLORS.WARNING,
|
|
7
|
-
'-fail': color === PROGRESS_BAR_COLORS.FAIL,
|
|
8
|
-
'-success': color === PROGRESS_BAR_COLORS.SUCCESS,
|
|
9
|
-
'-neutral': color === PROGRESS_BAR_COLORS.NEUTRAL,
|
|
10
|
-
'-info': color === PROGRESS_BAR_COLORS.INFO,
|
|
11
|
-
'-schemeMedium': colorScheme === PROGRESS_BAR_COLOR_SCHEMES.MEDIUM,
|
|
12
|
-
'-schemeMediumNeutral': colorScheme === PROGRESS_BAR_COLOR_SCHEMES.MEDIUM_NEUTRAL,
|
|
13
5
|
'-compact': layout === PROGRESS_BAR_LAYOUTS.COMPACT,
|
|
14
6
|
}"
|
|
15
7
|
>
|
|
16
8
|
<div class="progressBar__label">
|
|
17
|
-
<div
|
|
9
|
+
<div
|
|
10
|
+
class="progressBar__labelText"
|
|
11
|
+
:class="{ '-medium': labelTextSize === PROGRESS_BAR_LABEL_TEXT_SIZES.MEDIUM }"
|
|
12
|
+
>
|
|
13
|
+
{{ labelText }}
|
|
14
|
+
</div>
|
|
18
15
|
<div v-if="labelDataExists" class="progressBar__labelDataWrapper">
|
|
19
16
|
<span v-if="labelData" class="progressBar__labelData">{{ labelData }}</span>
|
|
20
17
|
<span v-if="labelDataSupporting" class="progressBar__labelDataSupporting">
|
|
@@ -27,21 +24,38 @@
|
|
|
27
24
|
</div>
|
|
28
25
|
</div>
|
|
29
26
|
<div
|
|
27
|
+
class="progressBar__barWrapper"
|
|
30
28
|
:class="{
|
|
31
|
-
progressBar__bar: true,
|
|
32
29
|
'-small': size === PROGRESS_BAR_SIZES.SMALL,
|
|
33
30
|
'-xsmall': size === PROGRESS_BAR_SIZES.XSMALL,
|
|
34
|
-
'-noRadius': radius === PROGRESS_BAR_RADII.NONE,
|
|
35
31
|
}"
|
|
36
32
|
>
|
|
37
33
|
<div
|
|
38
|
-
|
|
39
|
-
:
|
|
34
|
+
class="progressBar__bar"
|
|
35
|
+
:class="{
|
|
36
|
+
'-noRadius': radius === PROGRESS_BAR_RADII.NONE,
|
|
37
|
+
}"
|
|
38
|
+
>
|
|
39
|
+
<div
|
|
40
|
+
v-for="(range, index) in ranges"
|
|
41
|
+
:key="index"
|
|
42
|
+
class="progressBar__range"
|
|
43
|
+
:class="`-${range.color}`"
|
|
44
|
+
:style="{ left: range.start + '%', width: range.length + '%' }"
|
|
45
|
+
/>
|
|
46
|
+
</div>
|
|
47
|
+
<ds-icon
|
|
48
|
+
v-if="badgePosition !== null"
|
|
49
|
+
class="progressBar__badge"
|
|
40
50
|
:class="{
|
|
41
|
-
|
|
42
|
-
|
|
51
|
+
'-small': size !== PROGRESS_BAR_SIZES.MEDIUM,
|
|
52
|
+
[`-${badgeColor}`]: true,
|
|
43
53
|
}"
|
|
44
|
-
:style="
|
|
54
|
+
:style="`left: ${badgePosition}%`"
|
|
55
|
+
:icon="ICONS.FA_LOCATION_DOT"
|
|
56
|
+
:size="
|
|
57
|
+
size === PROGRESS_BAR_SIZES.MEDIUM ? ICON_SIZES.XX_SMALL : ICON_SIZES.XXX_SMALL
|
|
58
|
+
"
|
|
45
59
|
/>
|
|
46
60
|
</div>
|
|
47
61
|
</div>
|
|
@@ -63,100 +77,82 @@ $progress-bar-border-radius: 8px;
|
|
|
63
77
|
$progress-bar-label-text-max-width: 70%;
|
|
64
78
|
$progress-bar-label-data-max-width: 30%;
|
|
65
79
|
|
|
66
|
-
$progress-bar-
|
|
80
|
+
$progress-bar-badge-size: 24px;
|
|
81
|
+
$progress-bar-badge-size-small: 16px;
|
|
82
|
+
|
|
83
|
+
$progress-bar-range-colors: (
|
|
84
|
+
'primaryMedium': $color-primary-data-medium,
|
|
85
|
+
'primary': $color-primary-data,
|
|
86
|
+
'primaryWeak': $color-primary-data-weak,
|
|
87
|
+
'primaryGhost': $color-primary-data-ghost,
|
|
88
|
+
'neutralMedium': $color-neutral-data-medium,
|
|
89
|
+
'neutral': $color-neutral-data,
|
|
90
|
+
'neutralWeak': $color-neutral-data-weak,
|
|
91
|
+
'neutralGhost': $color-neutral-data-ghost,
|
|
92
|
+
'infoMedium': $color-info-data-medium,
|
|
93
|
+
'info': $color-info-data,
|
|
94
|
+
'infoWeak': $color-info-data-weak,
|
|
95
|
+
'infoGhost': $color-info-data-ghost,
|
|
96
|
+
'successMedium': $color-success-data-medium,
|
|
97
|
+
'success': $color-success-data,
|
|
98
|
+
'successWeak': $color-success-data-weak,
|
|
99
|
+
'successGhost': $color-success-data-ghost,
|
|
100
|
+
'warningMedium': $color-warning-data-medium,
|
|
101
|
+
'warning': $color-warning-data,
|
|
102
|
+
'warningWeak': $color-warning-data-weak,
|
|
103
|
+
'warningGhost': $color-warning-data-ghost,
|
|
104
|
+
'failMedium': $color-fail-data-medium,
|
|
105
|
+
'fail': $color-fail-data,
|
|
106
|
+
'failWeak': $color-fail-data-weak,
|
|
107
|
+
'failGhost': $color-fail-data-ghost,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
$progress-bar-badge-colors: (
|
|
67
111
|
'primary': (
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'medium-color-scheme-first-layer': $color-primary-data-medium,
|
|
71
|
-
'medium-color-scheme-second-layer': $color-primary-data-weak,
|
|
72
|
-
'medium-neutral-color-scheme-second-layer': $color-neutral-data-weak,
|
|
73
|
-
),
|
|
74
|
-
'info': (
|
|
75
|
-
'default-color-scheme-first-layer': $color-info-data,
|
|
76
|
-
'default-color-scheme-second-layer': $color-info-data-ghost,
|
|
77
|
-
'medium-color-scheme-first-layer': $color-info-data-medium,
|
|
78
|
-
'medium-color-scheme-second-layer': $color-info-data-weak,
|
|
79
|
-
'medium-neutral-color-scheme-second-layer': $color-neutral-data-weak,
|
|
112
|
+
'background': $color-primary-background-medium,
|
|
113
|
+
'icon': $color-primary-icon,
|
|
80
114
|
),
|
|
81
115
|
'neutral': (
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'
|
|
116
|
+
'background': $color-neutral-background-medium,
|
|
117
|
+
'icon': $color-neutral-icon,
|
|
118
|
+
),
|
|
119
|
+
'info': (
|
|
120
|
+
'background': $color-info-background-medium,
|
|
121
|
+
'icon': $color-info-icon,
|
|
87
122
|
),
|
|
88
123
|
'success': (
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'medium-color-scheme-first-layer': $color-success-data-medium,
|
|
92
|
-
'medium-color-scheme-second-layer': $color-success-data-weak,
|
|
93
|
-
'medium-neutral-color-scheme-second-layer': $color-neutral-data-weak,
|
|
124
|
+
'background': $color-success-background-medium,
|
|
125
|
+
'icon': $color-success-icon,
|
|
94
126
|
),
|
|
95
127
|
'warning': (
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'medium-color-scheme-first-layer': $color-warning-data-medium,
|
|
99
|
-
'medium-color-scheme-second-layer': $color-warning-data-weak,
|
|
100
|
-
'medium-neutral-color-scheme-second-layer': $color-neutral-data-weak,
|
|
128
|
+
'background': $color-warning-background-medium,
|
|
129
|
+
'icon': $color-warning-icon,
|
|
101
130
|
),
|
|
102
131
|
'fail': (
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'medium-color-scheme-first-layer': $color-fail-data-medium,
|
|
106
|
-
'medium-color-scheme-second-layer': $color-fail-data-weak,
|
|
107
|
-
'medium-neutral-color-scheme-second-layer': $color-neutral-data-weak,
|
|
132
|
+
'background': $color-fail-background-medium,
|
|
133
|
+
'icon': $color-fail-icon,
|
|
108
134
|
),
|
|
109
135
|
);
|
|
110
136
|
|
|
111
137
|
.progressBar {
|
|
112
138
|
$self: &;
|
|
113
139
|
|
|
114
|
-
@each $color-name, $color-map in $progress-bar-layers {
|
|
115
|
-
&.-#{$color-name} {
|
|
116
|
-
#{$self}__result {
|
|
117
|
-
background: map-get($color-map, 'default-color-scheme-first-layer');
|
|
118
|
-
|
|
119
|
-
&.-secondary {
|
|
120
|
-
background: map-get($color-map, 'default-color-scheme-second-layer');
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&.-schemeMedium {
|
|
125
|
-
#{$self}__result {
|
|
126
|
-
background: map-get($color-map, 'medium-color-scheme-first-layer');
|
|
127
|
-
|
|
128
|
-
&.-secondary {
|
|
129
|
-
background: map-get($color-map, 'medium-color-scheme-second-layer');
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
&.-schemeMediumNeutral {
|
|
135
|
-
#{$self}__result {
|
|
136
|
-
background: map-get($color-map, 'medium-color-scheme-first-layer');
|
|
137
|
-
|
|
138
|
-
&.-secondary {
|
|
139
|
-
background: map-get($color-map, 'medium-neutral-color-scheme-second-layer');
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
140
|
&.-compact {
|
|
147
141
|
#{$self}__labelText {
|
|
148
142
|
@include label-m-default-bold;
|
|
143
|
+
|
|
144
|
+
&.-medium {
|
|
145
|
+
@include label-l-default-bold;
|
|
146
|
+
}
|
|
149
147
|
}
|
|
148
|
+
|
|
150
149
|
#{$self}__label {
|
|
151
150
|
margin-bottom: $space-xxxs;
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
&
|
|
156
|
-
background-color: $color-default-background;
|
|
157
|
-
border-radius: $progress-bar-border-radius;
|
|
154
|
+
&__barWrapper {
|
|
158
155
|
height: $progress-bar-height;
|
|
159
|
-
overflow: hidden;
|
|
160
156
|
position: relative;
|
|
161
157
|
|
|
162
158
|
&.-small {
|
|
@@ -166,10 +162,18 @@ $progress-bar-layers: (
|
|
|
166
162
|
&.-xsmall {
|
|
167
163
|
height: $progress-bar-xs-height;
|
|
168
164
|
|
|
169
|
-
|
|
165
|
+
#{$self}__bar::after {
|
|
170
166
|
box-shadow: $shadow-inset-s;
|
|
171
167
|
}
|
|
172
168
|
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&__bar {
|
|
172
|
+
background-color: $color-default-background;
|
|
173
|
+
border-radius: $progress-bar-border-radius;
|
|
174
|
+
height: 100%;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
position: relative;
|
|
173
177
|
|
|
174
178
|
&.-noRadius {
|
|
175
179
|
border-radius: 0;
|
|
@@ -207,6 +211,14 @@ $progress-bar-layers: (
|
|
|
207
211
|
@media #{breakpoint-s()} {
|
|
208
212
|
@include label-l-default-bold;
|
|
209
213
|
}
|
|
214
|
+
|
|
215
|
+
&.-medium {
|
|
216
|
+
@include label-l-default-bold;
|
|
217
|
+
|
|
218
|
+
@media #{breakpoint-s()} {
|
|
219
|
+
@include label-xl-default-bold;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
210
222
|
}
|
|
211
223
|
|
|
212
224
|
&__labelDataWrapper {
|
|
@@ -239,60 +251,90 @@ $progress-bar-layers: (
|
|
|
239
251
|
margin-left: $space-xxxxs;
|
|
240
252
|
}
|
|
241
253
|
|
|
242
|
-
&
|
|
254
|
+
&__range {
|
|
255
|
+
@each $class, $color-name in $progress-bar-range-colors {
|
|
256
|
+
&.-#{$class} {
|
|
257
|
+
background: $color-name;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
243
261
|
height: 100%;
|
|
244
262
|
position: absolute;
|
|
245
263
|
top: 0;
|
|
246
264
|
}
|
|
265
|
+
|
|
266
|
+
&__badge {
|
|
267
|
+
@each $class, $colors-map in $progress-bar-badge-colors {
|
|
268
|
+
&.-#{$class} {
|
|
269
|
+
background: map-get($colors-map, 'background');
|
|
270
|
+
color: map-get($colors-map, 'icon');
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
align-items: center;
|
|
275
|
+
border-radius: 50%;
|
|
276
|
+
border: 1px solid $color-inverted-border;
|
|
277
|
+
display: flex;
|
|
278
|
+
height: $progress-bar-badge-size;
|
|
279
|
+
justify-content: center;
|
|
280
|
+
margin-left: -$progress-bar-badge-size / 2;
|
|
281
|
+
margin-top: -$progress-bar-badge-size / 2;
|
|
282
|
+
position: absolute;
|
|
283
|
+
top: 50%;
|
|
284
|
+
width: $progress-bar-badge-size;
|
|
285
|
+
|
|
286
|
+
&.-small {
|
|
287
|
+
height: $progress-bar-badge-size-small;
|
|
288
|
+
margin-left: -$progress-bar-badge-size-small / 2;
|
|
289
|
+
margin-top: -$progress-bar-badge-size-small / 2;
|
|
290
|
+
width: $progress-bar-badge-size-small;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
247
293
|
}
|
|
248
294
|
</style>
|
|
249
295
|
|
|
250
296
|
<script lang="ts">
|
|
251
297
|
import { PropType } from 'vue';
|
|
252
298
|
import {
|
|
253
|
-
PROGRESS_BAR_COLORS,
|
|
254
299
|
PROGRESS_BAR_SIZES,
|
|
255
300
|
PROGRESS_BAR_RADII,
|
|
256
301
|
PROGRESS_BAR_LAYOUTS,
|
|
257
|
-
PROGRESS_BAR_COLOR_SCHEMES,
|
|
258
|
-
PROGRESS_BAR_LAYERS,
|
|
259
302
|
ProgressBarRange,
|
|
303
|
+
PROGRESS_BAR_LABEL_TEXT_SIZES,
|
|
304
|
+
PROGRESS_BAR_BADGE_COLORS,
|
|
260
305
|
} from './ProgressBar.consts';
|
|
261
306
|
|
|
307
|
+
import DsIcon, { ICONS, ICON_SIZES } from '../Icons/Icon';
|
|
308
|
+
|
|
262
309
|
export default {
|
|
263
310
|
name: 'ProgressBar',
|
|
311
|
+
components: {
|
|
312
|
+
DsIcon,
|
|
313
|
+
},
|
|
264
314
|
props: {
|
|
265
|
-
|
|
266
|
-
type: Number,
|
|
267
|
-
default: PROGRESS_BAR_LAYERS.ONE,
|
|
268
|
-
validator(size) {
|
|
269
|
-
return Object.values(PROGRESS_BAR_LAYERS).includes(size);
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
colorScheme: {
|
|
315
|
+
size: {
|
|
273
316
|
type: String,
|
|
274
|
-
default:
|
|
317
|
+
default: PROGRESS_BAR_SIZES.SMALL,
|
|
275
318
|
validator(size) {
|
|
276
|
-
return Object.values(
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
color: {
|
|
280
|
-
type: String,
|
|
281
|
-
default: PROGRESS_BAR_COLORS.INFO,
|
|
282
|
-
validator(color) {
|
|
283
|
-
return Object.values(PROGRESS_BAR_COLORS).includes(color);
|
|
319
|
+
return Object.values(PROGRESS_BAR_SIZES).includes(size);
|
|
284
320
|
},
|
|
285
321
|
},
|
|
286
|
-
|
|
322
|
+
labelTextSize: {
|
|
287
323
|
type: String,
|
|
288
|
-
default:
|
|
324
|
+
default: PROGRESS_BAR_LABEL_TEXT_SIZES.SMALL,
|
|
289
325
|
validator(size) {
|
|
290
|
-
return Object.values(
|
|
326
|
+
return Object.values(PROGRESS_BAR_LABEL_TEXT_SIZES).includes(size);
|
|
291
327
|
},
|
|
292
328
|
},
|
|
293
329
|
ranges: {
|
|
294
330
|
type: Array as PropType<Array<ProgressBarRange>>,
|
|
295
331
|
required: true,
|
|
332
|
+
validator(ranges) {
|
|
333
|
+
return ranges.every(
|
|
334
|
+
(range: ProgressBarRange) =>
|
|
335
|
+
range.start >= 0 && range.length >= 0 && range.start + range.length <= 100,
|
|
336
|
+
);
|
|
337
|
+
},
|
|
296
338
|
},
|
|
297
339
|
radius: {
|
|
298
340
|
type: String,
|
|
@@ -324,15 +366,29 @@ export default {
|
|
|
324
366
|
type: String,
|
|
325
367
|
default: null,
|
|
326
368
|
},
|
|
369
|
+
badgePosition: {
|
|
370
|
+
type: Number,
|
|
371
|
+
default: null,
|
|
372
|
+
validator(position) {
|
|
373
|
+
return position >= 0 && position <= 100;
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
badgeColor: {
|
|
377
|
+
type: String,
|
|
378
|
+
default: PROGRESS_BAR_BADGE_COLORS.INFO,
|
|
379
|
+
validator(color) {
|
|
380
|
+
return Object.values(PROGRESS_BAR_BADGE_COLORS).includes(color);
|
|
381
|
+
},
|
|
382
|
+
},
|
|
327
383
|
},
|
|
328
384
|
data() {
|
|
329
385
|
return {
|
|
330
|
-
PROGRESS_BAR_COLORS: Object.freeze(PROGRESS_BAR_COLORS),
|
|
331
386
|
PROGRESS_BAR_SIZES: Object.freeze(PROGRESS_BAR_SIZES),
|
|
332
387
|
PROGRESS_BAR_RADII: Object.freeze(PROGRESS_BAR_RADII),
|
|
333
388
|
PROGRESS_BAR_LAYOUTS: Object.freeze(PROGRESS_BAR_LAYOUTS),
|
|
334
|
-
|
|
335
|
-
|
|
389
|
+
PROGRESS_BAR_LABEL_TEXT_SIZES: Object.freeze(PROGRESS_BAR_LABEL_TEXT_SIZES),
|
|
390
|
+
ICONS: Object.freeze(ICONS),
|
|
391
|
+
ICON_SIZES: Object.freeze(ICON_SIZES),
|
|
336
392
|
};
|
|
337
393
|
},
|
|
338
394
|
computed: {
|
|
@@ -102,6 +102,21 @@ $tile-colors: (
|
|
|
102
102
|
'icon-interactive': $color-fail-icon-disabled,
|
|
103
103
|
),
|
|
104
104
|
),
|
|
105
|
+
'info': (
|
|
106
|
+
'default': (
|
|
107
|
+
'background': $color-info-background,
|
|
108
|
+
'background-hover': $color-info-background-hovered,
|
|
109
|
+
'eyebrow-text': $color-info-text,
|
|
110
|
+
'icon': $color-info-icon,
|
|
111
|
+
'icon-interactive': $color-info-icon,
|
|
112
|
+
),
|
|
113
|
+
'disabled': (
|
|
114
|
+
'background': $color-info-background-disabled,
|
|
115
|
+
'eyebrow-text': $color-info-text-disabled,
|
|
116
|
+
'icon': $color-info-icon-disabled,
|
|
117
|
+
'icon-interactive': $color-info-icon-disabled,
|
|
118
|
+
),
|
|
119
|
+
),
|
|
105
120
|
);
|
|
106
121
|
|
|
107
122
|
@mixin setColors($root, $color-map) {
|
|
@@ -311,6 +326,7 @@ export default {
|
|
|
311
326
|
[TILE_COLORS.PRIMARY]: '-primary',
|
|
312
327
|
[TILE_COLORS.SUCCESS]: '-success',
|
|
313
328
|
[TILE_COLORS.FAIL]: '-fail',
|
|
329
|
+
[TILE_COLORS.INFO]: '-info',
|
|
314
330
|
}[this.color];
|
|
315
331
|
},
|
|
316
332
|
rippleColor() {
|
|
@@ -21,7 +21,12 @@ import { faBook } from '@fortawesome/pro-regular-svg-icons/faBook';
|
|
|
21
21
|
import { faBookBlank } from '@fortawesome/pro-regular-svg-icons/faBookBlank';
|
|
22
22
|
import { faBookCopy } from '@fortawesome/pro-regular-svg-icons/faBookCopy';
|
|
23
23
|
import { faBoxArchive } from '@fortawesome/pro-regular-svg-icons/faBoxArchive';
|
|
24
|
+
import { faCalendar } from '@fortawesome/pro-regular-svg-icons/faCalendar';
|
|
24
25
|
import { faCalendarDays } from '@fortawesome/pro-regular-svg-icons/faCalendarDays';
|
|
26
|
+
import { faCalendarDay } from '@fortawesome/pro-regular-svg-icons/faCalendarDay';
|
|
27
|
+
import { faCalendarRange } from '@fortawesome/pro-regular-svg-icons/faCalendarRange';
|
|
28
|
+
import { faCalendarCircleExclamation } from '@fortawesome/pro-regular-svg-icons/faCalendarCircleExclamation';
|
|
29
|
+
import { faCalendarCheck } from '@fortawesome/pro-regular-svg-icons/faCalendarCheck';
|
|
25
30
|
import { faCartShopping } from '@fortawesome/pro-regular-svg-icons/faCartShopping';
|
|
26
31
|
import { faChartColumn } from '@fortawesome/pro-regular-svg-icons/faChartColumn';
|
|
27
32
|
import { faChartLineUp } from '@fortawesome/pro-regular-svg-icons/faChartLineUp';
|
|
@@ -39,6 +44,7 @@ import { faCircleInfo } from '@fortawesome/pro-regular-svg-icons/faCircleInfo';
|
|
|
39
44
|
import { faCircleNotch } from '@fortawesome/pro-regular-svg-icons/faCircleNotch';
|
|
40
45
|
import { faCircleQuestion } from '@fortawesome/pro-regular-svg-icons/faCircleQuestion';
|
|
41
46
|
import { faCircleXmark } from '@fortawesome/pro-regular-svg-icons/faCircleXmark';
|
|
47
|
+
import { faClipboardMedical } from '@fortawesome/pro-regular-svg-icons/faClipboardMedical';
|
|
42
48
|
import { faClock } from '@fortawesome/pro-regular-svg-icons/faClock';
|
|
43
49
|
import { faClockRotateLeft } from '@fortawesome/pro-regular-svg-icons/faClockRotateLeft';
|
|
44
50
|
import { faCode } from '@fortawesome/pro-regular-svg-icons/faCode';
|
|
@@ -113,6 +119,7 @@ import { faTag } from '@fortawesome/pro-regular-svg-icons/faTag';
|
|
|
113
119
|
import { faTags } from '@fortawesome/pro-regular-svg-icons/faTags';
|
|
114
120
|
import { faThumbsUp } from '@fortawesome/pro-regular-svg-icons/faThumbsUp';
|
|
115
121
|
import { faTrashCan } from '@fortawesome/pro-regular-svg-icons/faTrashCan';
|
|
122
|
+
import { faTreePalm } from '@fortawesome/pro-regular-svg-icons/faTreePalm';
|
|
116
123
|
import { faTriangleExclamation } from '@fortawesome/pro-regular-svg-icons/faTriangleExclamation';
|
|
117
124
|
import { faTrophyStar } from '@fortawesome/pro-regular-svg-icons/faTrophyStar';
|
|
118
125
|
import { faUnlockKeyhole } from '@fortawesome/pro-regular-svg-icons/faUnlockKeyhole';
|
|
@@ -196,7 +203,12 @@ export const FONTAWESOME_ICONS = {
|
|
|
196
203
|
FA_BOOK_SPARKLES_SOLID: fasBookSparkles,
|
|
197
204
|
FA_BOOKMARK_SOLID: fasBookmark,
|
|
198
205
|
FA_BOX_ARCHIVE: faBoxArchive,
|
|
206
|
+
FA_CALENDAR: faCalendar,
|
|
207
|
+
FA_CALENDAR_CIRCLE_EXCLAMATION: faCalendarCircleExclamation,
|
|
208
|
+
FA_CALENDAR_CHECK: faCalendarCheck,
|
|
209
|
+
FA_CALENDAR_DAY: faCalendarDay,
|
|
199
210
|
FA_CALENDAR_DAYS: faCalendarDays,
|
|
211
|
+
FA_CALENDAR_RANGE: faCalendarRange,
|
|
200
212
|
FA_CAMERA_SOLID: fasCamera,
|
|
201
213
|
FA_CARET_SQUARE_RIGHT_SOLID: fasCaretSquareRight,
|
|
202
214
|
FA_CART_SHOPPING: faCartShopping,
|
|
@@ -221,6 +233,7 @@ export const FONTAWESOME_ICONS = {
|
|
|
221
233
|
FA_CIRCLE_PLAY_SOLID: fasCirclePlay,
|
|
222
234
|
FA_CIRCLE_QUESTION: faCircleQuestion,
|
|
223
235
|
FA_CIRCLE_XMARK: faCircleXmark,
|
|
236
|
+
FA_CLIPBOARD_MEDICAL: faClipboardMedical,
|
|
224
237
|
FA_CLOCK: faClock,
|
|
225
238
|
FA_CLOCK_ROTATE_LEFT: faClockRotateLeft,
|
|
226
239
|
FA_CODE: faCode,
|
|
@@ -317,6 +330,7 @@ export const FONTAWESOME_ICONS = {
|
|
|
317
330
|
FA_THUMBS_UP_SOLID: fasThumbsUp,
|
|
318
331
|
FA_THUMBTACK_SOLID: fasThumbtack,
|
|
319
332
|
FA_TRASH_CAN: faTrashCan,
|
|
333
|
+
FA_TREE_PALM: faTreePalm,
|
|
320
334
|
FA_TRIANGLE_EXCLAMATION: faTriangleExclamation,
|
|
321
335
|
FA_TRIANGLE_EXCLAMATION_SOLID: fasTriangleExclamation,
|
|
322
336
|
FA_TROPHY_STAR: faTrophyStar,
|