@webitel/ui-sdk 0.9.65 → 1.0.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/CHANGELOG.md +42 -0
- package/dist/fonts/Montserrat-Black.27e3649b.ttf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.d9b6ba59.ttf +0 -0
- package/dist/fonts/Montserrat-Bold.ade91f47.ttf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.1b384149.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.19ba7aa5.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.52a50ca0.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.570a244c.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.1170df55.ttf +0 -0
- package/dist/fonts/Montserrat-Italic.a7063e0c.ttf +0 -0
- package/dist/fonts/Montserrat-Light.409c7f79.ttf +0 -0
- package/dist/fonts/Montserrat-LightItalic.01c4560c.ttf +0 -0
- package/dist/fonts/Montserrat-Medium.c8b6e083.ttf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.40a74702.ttf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.83c1ec1f.ttf +0 -0
- package/dist/fonts/Montserrat-Thin.43dd5b7a.ttf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.3c2b290f.ttf +0 -0
- package/dist/ui-sdk.common.js +948 -929
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +948 -929
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +5 -5
- package/src/components/atoms/wt-button/wt-button.vue +187 -150
- package/src/components/atoms/wt-chip/__tests__/WtChip.spec.js +19 -0
- package/src/components/atoms/wt-chip/wt-chip.vue +23 -0
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +4 -0
- package/src/components/atoms/wt-indicator/wt-indicator.vue +39 -6
- package/src/components/atoms/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +34 -153
- package/src/components/atoms/wt-loader/wt-loader.vue +2 -4
- package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +0 -11
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +27 -179
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +2 -2
- package/src/components/index.js +2 -2
- package/src/components/molecules/wt-button-select/wt-button-select.vue +2 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +59 -62
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +2 -7
- package/src/components/molecules/wt-input/wt-input.vue +4 -25
- package/src/components/molecules/wt-label/wt-label.vue +5 -2
- package/src/components/molecules/wt-notification/wt-notification.vue +3 -2
- package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/molecules/wt-popup/wt-popup.vue +26 -28
- package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +3 -4
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -2
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +4 -20
- package/src/components/molecules/wt-select/wt-select.vue +26 -28
- package/src/components/molecules/wt-tabs/wt-tabs.vue +6 -18
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +31 -25
- package/src/components/molecules/wt-textarea/wt-textarea.vue +6 -17
- package/src/components/molecules/wt-time-input/wt-time-input.vue +1 -3
- package/src/components/molecules/wt-timepicker/wt-timepicker.vue +0 -3
- package/src/components/organisms/wt-app-header/wt-app-header.vue +1 -0
- package/src/components/organisms/wt-app-header/wt-app-navigator.vue +32 -33
- package/src/components/organisms/wt-app-header/wt-header-actions.vue +145 -144
- package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/organisms/wt-headline/wt-headline.vue +1 -2
- package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +8 -11
- package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +6 -14
- package/src/components/organisms/wt-pagination/wt-pagination.vue +5 -5
- package/src/components/organisms/wt-player/wt-player.vue +1 -1
- package/src/components/organisms/wt-status-select/wt-status-select.vue +24 -4
- package/src/components/organisms/wt-table/wt-table.vue +15 -12
- package/src/components/organisms/wt-table-actions/wt-table-actions.vue +2 -4
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/css/components/_components.scss +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +22 -24
- package/src/css/components/atoms/wt-chip/_variables.scss +7 -0
- package/src/css/components/atoms/{wt-badge/wt-badge.scss → wt-chip/wt-chip.scss} +12 -7
- package/src/css/components/atoms/wt-context-menu/_variables.scss +1 -1
- package/src/css/components/atoms/wt-indicator/_variables.scss +6 -2
- package/src/css/components/atoms/wt-label/_variables.scss +0 -1
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +3 -26
- package/src/css/components/atoms/wt-tooltip/_variables.scss +7 -5
- package/src/css/components/molecules/wt-button-select/_variables.scss +5 -8
- package/src/css/components/molecules/wt-checkbox/_variables.scss +1 -1
- package/src/css/components/molecules/wt-datepicker/_variables.scss +15 -14
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +20 -31
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +5 -5
- package/src/css/components/molecules/wt-input/_variables.scss +3 -3
- package/src/css/components/molecules/wt-notification/_variables.scss +4 -4
- package/src/css/components/molecules/wt-popup/_variables.scss +16 -8
- package/src/css/components/molecules/wt-progress-bar/_variables.scss +3 -3
- package/src/css/components/molecules/wt-radio/_variables.scss +1 -1
- package/src/css/components/molecules/wt-search-bar/_variables.scss +5 -1
- package/src/css/components/molecules/wt-select/_variables.scss +49 -13
- package/src/css/components/molecules/wt-switcher/_variables.scss +1 -1
- package/src/css/components/molecules/wt-tabs/_variables.scss +2 -2
- package/src/css/components/molecules/wt-tags-input/_variables.scss +4 -5
- package/src/css/components/molecules/wt-textarea/_variables.scss +9 -1
- package/src/css/components/molecules/wt-timepicker/_variables.scss +1 -1
- package/src/css/components/organisms/wt-app-header/_variables.scss +13 -9
- package/src/css/components/organisms/wt-headline/_variables.scss +3 -4
- package/src/css/components/organisms/wt-navigation-bar/_variables.scss +10 -10
- package/src/css/components/organisms/wt-notifications-bar/_variables.scss +2 -2
- package/src/css/components/organisms/wt-page-wrapper/_variables.scss +3 -3
- package/src/css/components/organisms/wt-pagination/_variables.scss +1 -3
- package/src/css/components/organisms/wt-player/_variables.scss +2 -2
- package/src/css/components/organisms/wt-status-select/_variables.scss +3 -3
- package/src/css/components/organisms/wt-table/_variables.scss +9 -9
- package/src/css/components/organisms/wt-table-actions/_variables.scss +2 -1
- package/src/css/main.scss +7 -5
- package/src/css/styleguide/_styleguide.scss +8 -3
- package/src/css/styleguide/border-radius/_border-radius.scss +4 -0
- package/src/css/{colors → styleguide/colors}/_colors.scss +5 -7
- package/src/css/{display-helpers → styleguide/display-helpers}/_display-helpers.scss +2 -0
- package/src/css/styleguide/elevations/_elevations.scss +13 -0
- package/src/css/styleguide/fonts/_fonts.scss +126 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +49 -0
- package/src/css/styleguide/spacings/_spacings.scss +15 -0
- package/src/css/styleguide/transitions/_transitions.scss +1 -0
- package/src/css/{transitions → styleguide/transitions}/fade/_fade.scss +0 -0
- package/src/css/styleguide/typography/_typography.scss +102 -0
- package/src/css/{sizes → styleguide/viewport-breakpoints}/_viewport-breakpoints.scss +0 -0
- package/src/locale/en/en.js +28 -3
- package/src/locale/ru/ru.js +26 -1
- package/src/locale/ua/ua.js +26 -1
- package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +0 -19
- package/src/components/atoms/wt-badge/wt-badge.vue +0 -23
- package/src/css/components/atoms/wt-badge/_variables.scss +0 -7
- package/src/css/fonts/_fonts.scss +0 -9
- package/src/css/shadows/_shadows.scss +0 -7
- package/src/css/sizes/_sizes.scss +0 -2
- package/src/css/sizes/_spacing.scss +0 -33
- package/src/css/transitions/_transitions.scss +0 -1
- package/src/css/typography/_typography.scss +0 -72
|
@@ -79,8 +79,7 @@
|
|
|
79
79
|
class="wt-select__clear"
|
|
80
80
|
:class="{ 'hidden': !isValue }"
|
|
81
81
|
:disabled="disabled"
|
|
82
|
-
icon="close
|
|
83
|
-
size="sm"
|
|
82
|
+
icon="close"
|
|
84
83
|
@click="clearValue"
|
|
85
84
|
></wt-icon-btn>
|
|
86
85
|
</template>
|
|
@@ -276,7 +275,7 @@ export default {
|
|
|
276
275
|
|
|
277
276
|
<style lang="scss" scoped>
|
|
278
277
|
@import '~vue-multiselect/dist/vue-multiselect.min.css';
|
|
279
|
-
@import '../../../css/components/atoms/wt-
|
|
278
|
+
@import '../../../css/components/atoms/wt-chip/wt-chip';
|
|
280
279
|
|
|
281
280
|
.wt-select {
|
|
282
281
|
width: 100%;
|
|
@@ -284,9 +283,6 @@ export default {
|
|
|
284
283
|
}
|
|
285
284
|
|
|
286
285
|
.wt-label {
|
|
287
|
-
margin-bottom: var(--label-margin);
|
|
288
|
-
cursor: text;
|
|
289
|
-
|
|
290
286
|
.wt-select:hover &,
|
|
291
287
|
.wt-select:focus-within & {
|
|
292
288
|
color: var(--form-label--hover-color);
|
|
@@ -328,25 +324,30 @@ export default {
|
|
|
328
324
|
|
|
329
325
|
.multiselect__input,
|
|
330
326
|
.multiselect__single {
|
|
331
|
-
@extend %typo-body-
|
|
327
|
+
@extend %typo-body-1;
|
|
328
|
+
@include wt-placeholder;
|
|
332
329
|
min-height: var(--select-input-min-height); // reset original 20px style
|
|
333
330
|
padding: 0;
|
|
334
331
|
margin: 0;
|
|
335
332
|
background: transparent;
|
|
336
333
|
}
|
|
337
334
|
|
|
335
|
+
.multiselect__input:focus {
|
|
336
|
+
@include wt-placeholder('focus');
|
|
337
|
+
}
|
|
338
|
+
|
|
338
339
|
.multiselect__strong {
|
|
339
|
-
@extend %typo-body-
|
|
340
|
-
@extend .wt-
|
|
340
|
+
@extend %typo-body-1;
|
|
341
|
+
@extend .wt-chip;
|
|
341
342
|
position: absolute;
|
|
342
|
-
right: var(--select-
|
|
343
|
+
right: var(--select-chip-right-pos);
|
|
343
344
|
min-height: var(--select-input-min-height); // reset original 20px style
|
|
344
345
|
margin: 0;
|
|
345
346
|
font-weight: normal;
|
|
346
|
-
z-index: var(--select-
|
|
347
|
+
z-index: var(--select-chip-z-index);
|
|
347
348
|
|
|
348
|
-
/* these before-after elements are fixing issue when
|
|
349
|
-
selected option name (yep,
|
|
349
|
+
/* these before-after elements are fixing issue when chip is visually overflown by
|
|
350
|
+
selected option name (yep, chip has z-index, but its background has 0.3 opacity)*/
|
|
350
351
|
&:before {
|
|
351
352
|
content: '';
|
|
352
353
|
position: absolute;
|
|
@@ -354,19 +355,19 @@ export default {
|
|
|
354
355
|
right: 0;
|
|
355
356
|
bottom: 0;
|
|
356
357
|
left: 0;
|
|
357
|
-
z-index: -2; // below
|
|
358
|
+
z-index: -2; // below chip itself
|
|
358
359
|
background: var(--main-color);
|
|
359
360
|
}
|
|
360
361
|
|
|
361
362
|
&:after {
|
|
362
|
-
@extend .wt-
|
|
363
|
+
@extend .wt-chip;
|
|
363
364
|
content: '';
|
|
364
365
|
position: absolute;
|
|
365
366
|
top: 0;
|
|
366
367
|
right: 0;
|
|
367
368
|
bottom: 0;
|
|
368
369
|
left: 0;
|
|
369
|
-
z-index: -1; // below
|
|
370
|
+
z-index: -1; // below chip itself
|
|
370
371
|
|
|
371
372
|
}
|
|
372
373
|
}
|
|
@@ -376,7 +377,7 @@ export default {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
.multiselect__custom-tag, .multiselect__single-label {
|
|
379
|
-
@extend %typo-body-
|
|
380
|
+
@extend %typo-body-1;
|
|
380
381
|
color: var(--form-input-color);
|
|
381
382
|
|
|
382
383
|
// text overflow 3 dots
|
|
@@ -387,9 +388,9 @@ export default {
|
|
|
387
388
|
}
|
|
388
389
|
|
|
389
390
|
.multiselect__placeholder {
|
|
391
|
+
@extend %wt-placeholder;
|
|
390
392
|
padding: 0;
|
|
391
393
|
margin: 0;
|
|
392
|
-
color: var(--form-placeholder-color);
|
|
393
394
|
|
|
394
395
|
// text overflow 3 dots
|
|
395
396
|
white-space: nowrap;
|
|
@@ -406,11 +407,11 @@ export default {
|
|
|
406
407
|
transition: var(--transition);
|
|
407
408
|
|
|
408
409
|
.multiselect__option {
|
|
409
|
-
@extend %typo-body-
|
|
410
|
+
@extend %typo-body-1;
|
|
410
411
|
padding: var(--select-options-padding);
|
|
411
412
|
|
|
412
413
|
& > span {
|
|
413
|
-
|
|
414
|
+
@extend %wt-placeholder;
|
|
414
415
|
}
|
|
415
416
|
|
|
416
417
|
&:after {
|
|
@@ -418,7 +419,7 @@ export default {
|
|
|
418
419
|
}
|
|
419
420
|
|
|
420
421
|
&--highlight {
|
|
421
|
-
background: var(
|
|
422
|
+
background: var(--т, еselect-option--hover-color);
|
|
422
423
|
|
|
423
424
|
& > span {
|
|
424
425
|
color: var(--form-input-color);
|
|
@@ -459,10 +460,6 @@ export default {
|
|
|
459
460
|
.multiselect__tags {
|
|
460
461
|
border-color: var(--form-border--hover-color);
|
|
461
462
|
}
|
|
462
|
-
|
|
463
|
-
.multiselect__placeholder {
|
|
464
|
-
color: var(--form-placeholder--hover-color);
|
|
465
|
-
}
|
|
466
463
|
}
|
|
467
464
|
}
|
|
468
465
|
|
|
@@ -485,7 +482,7 @@ export default {
|
|
|
485
482
|
}
|
|
486
483
|
|
|
487
484
|
.multiselect__placeholder {
|
|
488
|
-
|
|
485
|
+
@extend %wt-placeholder--focus;
|
|
489
486
|
}
|
|
490
487
|
}
|
|
491
488
|
}
|
|
@@ -532,7 +529,8 @@ export default {
|
|
|
532
529
|
border-color: var(--form-border--disabled-color);
|
|
533
530
|
|
|
534
531
|
.multiselect__placeholder {
|
|
535
|
-
|
|
532
|
+
@extend %wt-placeholder--disabled;
|
|
533
|
+
//color: var(--form-placeholder--disabled-color);
|
|
536
534
|
}
|
|
537
535
|
}
|
|
538
536
|
}
|
|
@@ -546,7 +544,7 @@ export default {
|
|
|
546
544
|
}
|
|
547
545
|
|
|
548
546
|
.multiselect__strong {
|
|
549
|
-
right: var(--select-
|
|
547
|
+
right: var(--select-chip-right-pos--clearable);
|
|
550
548
|
}
|
|
551
549
|
}
|
|
552
550
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@click="open(tab)"
|
|
13
13
|
>
|
|
14
14
|
<slot :name="tab.value" v-bind="{ tab, current }">
|
|
15
|
-
{{tab.text}}
|
|
15
|
+
<span style="display: block;">{{ tab.text }}</span>
|
|
16
16
|
</slot>
|
|
17
17
|
</button>
|
|
18
18
|
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.wt-tab {
|
|
78
|
-
@extend %typo-body-
|
|
78
|
+
@extend %typo-body-1;
|
|
79
79
|
position: relative;
|
|
80
80
|
display: inline-block;
|
|
81
|
-
padding: var(--tab-padding);
|
|
81
|
+
padding-bottom: var(--tab-padding);
|
|
82
82
|
margin: var(--tab-margin);
|
|
83
83
|
color: var(--tab-color);
|
|
84
84
|
background: transparent;
|
|
@@ -92,36 +92,24 @@
|
|
|
92
92
|
|
|
93
93
|
&:hover,
|
|
94
94
|
&:focus, {
|
|
95
|
-
@extend %typo-strong-lg;
|
|
96
95
|
color: var(--tab--hover-color);
|
|
96
|
+
border-bottom-color: var(--tab--active-border-color);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
&.wt-tab--highlight {
|
|
100
|
-
@extend %typo-strong-lg;
|
|
101
100
|
color: var(--tab--active-color);
|
|
102
101
|
border-bottom-color: var(--tab--active-border-color);
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
|
|
104
|
+
//// disables bold font resize on hover
|
|
106
105
|
&:after {
|
|
107
106
|
display: block;
|
|
108
107
|
content: attr(value);
|
|
109
|
-
font-
|
|
108
|
+
font-weight: bold;
|
|
110
109
|
height: 0;
|
|
111
110
|
overflow: hidden;
|
|
112
111
|
visibility: hidden;
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
// all tabs underline
|
|
117
|
-
.wt-tabs__underline {
|
|
118
|
-
position: absolute;
|
|
119
|
-
left: 0;
|
|
120
|
-
right: 0;
|
|
121
|
-
bottom: 0;
|
|
122
|
-
height: var(--tabs-underiline-height);
|
|
123
|
-
background: var(--tabs-underiline-color);
|
|
124
|
-
z-index: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
115
|
</style>
|
|
@@ -147,20 +147,12 @@ export default {
|
|
|
147
147
|
</script>
|
|
148
148
|
|
|
149
149
|
<style lang="scss" scoped>
|
|
150
|
+
@import '../../../css/components/atoms/wt-chip/wt-chip';
|
|
151
|
+
|
|
150
152
|
.wt-tags-input {
|
|
151
153
|
width: 100%;
|
|
152
154
|
}
|
|
153
155
|
|
|
154
|
-
.wt-label {
|
|
155
|
-
margin-bottom: var(--label-margin);
|
|
156
|
-
cursor: text;
|
|
157
|
-
|
|
158
|
-
.wt-tags-input:hover &,
|
|
159
|
-
.wt-tags-input:focus-within & {
|
|
160
|
-
color: var(--form-label--hover-color);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
156
|
// increase specificity
|
|
165
157
|
.wt-tags-input .wt-tags-input__tags-input {
|
|
166
158
|
width: 100%;
|
|
@@ -179,6 +171,7 @@ export default {
|
|
|
179
171
|
.ti-tags {
|
|
180
172
|
display: flex;
|
|
181
173
|
align-items: center;
|
|
174
|
+
gap: var(--tags-input-tags-gap);
|
|
182
175
|
padding: var(--tags-input-padding);
|
|
183
176
|
margin: 0; // reset default
|
|
184
177
|
word-break: break-word; //break long word
|
|
@@ -190,23 +183,17 @@ export default {
|
|
|
190
183
|
}
|
|
191
184
|
|
|
192
185
|
.ti-new-tag-input {
|
|
193
|
-
@extend %typo-body-
|
|
194
|
-
|
|
186
|
+
@extend %typo-body-1;
|
|
187
|
+
@include wt-placeholder;
|
|
195
188
|
|
|
196
|
-
|
|
197
|
-
@extend %typo-body-lg;
|
|
198
|
-
color: var(--form-placeholder-color);
|
|
199
|
-
}
|
|
189
|
+
border-radius: var(--border-radius);
|
|
200
190
|
}
|
|
201
191
|
|
|
202
192
|
.ti-tag {
|
|
203
|
-
@extend
|
|
193
|
+
@extend .wt-chip;
|
|
194
|
+
display: flex;
|
|
204
195
|
height: fit-content;
|
|
205
|
-
|
|
206
|
-
margin: 0 var(--tags-input-tag-spacing-margin) var(--tags-input-tag-spacing-margin) 0; // reset default
|
|
207
|
-
color: var(--tags-input-tag-text-color);
|
|
208
|
-
background: var(--tags-input-tag-bg-color);
|
|
209
|
-
border-radius: var(--tags-input-tag-border-radius);
|
|
196
|
+
margin: 0; // reset default
|
|
210
197
|
transition: var(--transition);
|
|
211
198
|
|
|
212
199
|
.ti-actions {
|
|
@@ -237,7 +224,7 @@ export default {
|
|
|
237
224
|
background: transparent; // reset default
|
|
238
225
|
|
|
239
226
|
& > div {
|
|
240
|
-
@extend %typo-body-
|
|
227
|
+
@extend %typo-body-1;
|
|
241
228
|
padding: var(--tags-input-autocomplete-option-padding);
|
|
242
229
|
color: var(--tags-input-autocomplete-option--text-color);
|
|
243
230
|
transition: var(--transition);
|
|
@@ -252,6 +239,27 @@ export default {
|
|
|
252
239
|
}
|
|
253
240
|
}
|
|
254
241
|
|
|
242
|
+
.wt-tags-input:hover,
|
|
243
|
+
.wt-tags-input:focus-within {
|
|
244
|
+
.wt-label {
|
|
245
|
+
color: var(--form-label--hover-color);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.wt-tags-input__tags-input ::v-deep {
|
|
249
|
+
.ti-new-tag-input {
|
|
250
|
+
border-color: var(--form-border--hover-color);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.wt-tags-input:focus-within {
|
|
256
|
+
.wt-tags-input__tags-input ::v-deep {
|
|
257
|
+
.ti-new-tag-input {
|
|
258
|
+
@include wt-placeholder('focus');
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
255
263
|
.wt-tags-input--invalid,
|
|
256
264
|
.wt-tags-input--invalid:hover,
|
|
257
265
|
.wt-tags-input--invalid:focus-within, {
|
|
@@ -269,8 +277,6 @@ export default {
|
|
|
269
277
|
}
|
|
270
278
|
|
|
271
279
|
.wt-tags-input--disabled {
|
|
272
|
-
pointer-events: none;
|
|
273
|
-
|
|
274
280
|
.wt-tags-input__tags-input {
|
|
275
281
|
width: 100%;
|
|
276
282
|
max-width: 100%; // reset default
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.wt-label {
|
|
122
|
-
margin-bottom: var(--label-margin);
|
|
123
|
-
cursor: text;
|
|
124
|
-
|
|
125
122
|
.wt-textarea:hover &,
|
|
126
123
|
.wt-textarea:focus-within & {
|
|
127
124
|
color: var(--form-label--hover-color);
|
|
@@ -140,7 +137,8 @@
|
|
|
140
137
|
}
|
|
141
138
|
|
|
142
139
|
.wt-textarea__textarea {
|
|
143
|
-
@extend %typo-body-
|
|
140
|
+
@extend %typo-body-1;
|
|
141
|
+
@include wt-placeholder;
|
|
144
142
|
|
|
145
143
|
display: block;
|
|
146
144
|
width: 100%;
|
|
@@ -154,26 +152,17 @@
|
|
|
154
152
|
transition: var(--transition);
|
|
155
153
|
resize: none;
|
|
156
154
|
|
|
157
|
-
&::placeholder {
|
|
158
|
-
color: var(--form-placeholder-color)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.wt-textarea:hover &,
|
|
162
155
|
&:focus {
|
|
163
|
-
|
|
156
|
+
@include wt-placeholder('focus');
|
|
164
157
|
|
|
165
|
-
|
|
166
|
-
color: var(--form-placeholder--hover-color)
|
|
167
|
-
}
|
|
158
|
+
border-color: var(--form-border--hover-color);
|
|
168
159
|
}
|
|
169
160
|
|
|
170
161
|
.wt-textarea--disabled & {
|
|
162
|
+
@include wt-placeholder('disabled');
|
|
163
|
+
|
|
171
164
|
background: var(--form-border--disabled-color);
|
|
172
165
|
border-color: var(--form-border--disabled-color);
|
|
173
|
-
|
|
174
|
-
&::placeholder {
|
|
175
|
-
color: var(--form-placeholder--disabled-color);
|
|
176
|
-
}
|
|
177
166
|
}
|
|
178
167
|
}
|
|
179
168
|
|
|
@@ -137,8 +137,6 @@ import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
|
137
137
|
|
|
138
138
|
.wt-label {
|
|
139
139
|
text-align: center;
|
|
140
|
-
margin-bottom: var(--label-margin);
|
|
141
|
-
cursor: text;
|
|
142
140
|
|
|
143
141
|
.wt-time-input:hover &,
|
|
144
142
|
.wt-time-input:focus-within & {
|
|
@@ -152,7 +150,7 @@ import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
.wt-time-input__input {
|
|
155
|
-
@extend %typo-body-
|
|
153
|
+
@extend %typo-body-1;
|
|
156
154
|
|
|
157
155
|
display: block;
|
|
158
156
|
width: 100%;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: flex-end;
|
|
18
|
+
gap: var(--wt-app-header-content-gap);
|
|
18
19
|
min-height: var(--wt-app-header-min-height); // fixed height because anything can be put inside slot, so padding won't work properly
|
|
19
20
|
padding: var(--wt-app-header-padding);
|
|
20
21
|
box-sizing: border-box;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="wt-app-navigator"
|
|
2
|
+
<div v-clickaway="close" class="wt-app-navigator">
|
|
3
3
|
<wt-icon-btn
|
|
4
|
-
class="wt-app-navigator__btn"
|
|
5
4
|
:class="{'active': isOpened}"
|
|
6
5
|
:tooltip="$t('webitelUI.appNavigator.title')"
|
|
6
|
+
class="wt-app-navigator__btn"
|
|
7
7
|
icon="app-navigator"
|
|
8
8
|
@click="isOpened = !isOpened"
|
|
9
9
|
></wt-icon-btn>
|
|
10
10
|
<transition name="fade">
|
|
11
11
|
<nav
|
|
12
|
-
class="wt-app-navigator__nav-wrapper"
|
|
13
12
|
v-show="isOpened"
|
|
13
|
+
class="wt-app-navigator__nav-wrapper"
|
|
14
14
|
>
|
|
15
15
|
<h3 class="wt-app-navigator__nav-title">
|
|
16
16
|
{{ $t('webitelUI.appNavigator.title') }}
|
|
@@ -19,114 +19,114 @@
|
|
|
19
19
|
|
|
20
20
|
<li
|
|
21
21
|
v-if="formattedApps[WebitelApplications.AGENT]"
|
|
22
|
-
class="wt-app-navigator__card"
|
|
23
22
|
:class="{'active': formattedApps[WebitelApplications.AGENT].currentApp }"
|
|
23
|
+
class="wt-app-navigator__card"
|
|
24
24
|
>
|
|
25
25
|
<a
|
|
26
|
-
class="wt-app-navigator__card__link"
|
|
27
26
|
:href="formattedApps[WebitelApplications.AGENT].href"
|
|
28
27
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.AGENT]}`)"
|
|
28
|
+
class="wt-app-navigator__card__link"
|
|
29
29
|
target="_blank"
|
|
30
30
|
>
|
|
31
31
|
<img
|
|
32
|
+
:alt="`${[WebitelApplications.AGENT]}-pic`"
|
|
32
33
|
class="wt-app-navigator__card__img"
|
|
33
34
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-agent.svg"
|
|
34
|
-
:alt="`${[WebitelApplications.AGENT]}-pic`"
|
|
35
35
|
>
|
|
36
36
|
</a>
|
|
37
37
|
</li>
|
|
38
38
|
|
|
39
39
|
<li
|
|
40
40
|
v-if="formattedApps[WebitelApplications.SUPERVISOR]"
|
|
41
|
-
class="wt-app-navigator__card"
|
|
42
41
|
:class="{'active': formattedApps[WebitelApplications.SUPERVISOR].currentApp }"
|
|
42
|
+
class="wt-app-navigator__card"
|
|
43
43
|
>
|
|
44
44
|
<a
|
|
45
|
-
class="wt-app-navigator__card__link"
|
|
46
45
|
:href="formattedApps[WebitelApplications.SUPERVISOR].href"
|
|
47
46
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.SUPERVISOR]}`)"
|
|
47
|
+
class="wt-app-navigator__card__link"
|
|
48
48
|
target="_blank"
|
|
49
49
|
>
|
|
50
50
|
<img
|
|
51
|
+
:alt="`${[WebitelApplications.SUPERVISOR]}-pic`"
|
|
51
52
|
class="wt-app-navigator__card__img"
|
|
52
53
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-supervisor.svg"
|
|
53
|
-
:alt="`${[WebitelApplications.SUPERVISOR]}-pic`"
|
|
54
54
|
>
|
|
55
55
|
</a>
|
|
56
56
|
</li>
|
|
57
57
|
|
|
58
58
|
<li
|
|
59
59
|
v-if="formattedApps[WebitelApplications.HISTORY]"
|
|
60
|
-
class="wt-app-navigator__card"
|
|
61
60
|
:class="{'active': formattedApps[WebitelApplications.HISTORY].currentApp }"
|
|
61
|
+
class="wt-app-navigator__card"
|
|
62
62
|
>
|
|
63
63
|
<a
|
|
64
|
-
class="wt-app-navigator__card__link"
|
|
65
64
|
:href="formattedApps[WebitelApplications.HISTORY].href"
|
|
66
65
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.HISTORY]}`)"
|
|
66
|
+
class="wt-app-navigator__card__link"
|
|
67
67
|
target="_blank"
|
|
68
68
|
>
|
|
69
69
|
<img
|
|
70
|
+
:alt="`${[WebitelApplications.HISTORY]}-pic`"
|
|
70
71
|
class="wt-app-navigator__card__img"
|
|
71
72
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-history.svg"
|
|
72
|
-
:alt="`${[WebitelApplications.HISTORY]}-pic`"
|
|
73
73
|
>
|
|
74
74
|
</a>
|
|
75
75
|
</li>
|
|
76
76
|
|
|
77
77
|
<li
|
|
78
78
|
v-if="false && formattedApps[WebitelApplications.AUDIT]"
|
|
79
|
-
class="wt-app-navigator__card"
|
|
80
79
|
:class="{'active': formattedApps[WebitelApplications.AUDIT].currentApp }"
|
|
80
|
+
class="wt-app-navigator__card"
|
|
81
81
|
>
|
|
82
82
|
<a
|
|
83
|
-
class="wt-app-navigator__card__link"
|
|
84
83
|
:href="formattedApps[WebitelApplications.AUDIT].href"
|
|
85
84
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.AUDIT]}`)"
|
|
85
|
+
class="wt-app-navigator__card__link"
|
|
86
86
|
target="_blank"
|
|
87
87
|
>
|
|
88
88
|
<img
|
|
89
|
+
:alt="`${[WebitelApplications.AUDIT]}-pic`"
|
|
89
90
|
class="wt-app-navigator__card__img"
|
|
90
91
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-audit.svg"
|
|
91
|
-
:alt="`${[WebitelApplications.AUDIT]}-pic`"
|
|
92
92
|
>
|
|
93
93
|
</a>
|
|
94
94
|
</li>
|
|
95
95
|
|
|
96
96
|
<li
|
|
97
97
|
v-if="formattedApps[WebitelApplications.ADMIN]"
|
|
98
|
-
class="wt-app-navigator__card"
|
|
99
98
|
:class="{'active': formattedApps[WebitelApplications.ADMIN].currentApp }"
|
|
99
|
+
class="wt-app-navigator__card"
|
|
100
100
|
>
|
|
101
101
|
<a
|
|
102
|
-
class="wt-app-navigator__card__link"
|
|
103
102
|
:href="formattedApps[WebitelApplications.ADMIN].href"
|
|
104
103
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.ADMIN]}`)"
|
|
104
|
+
class="wt-app-navigator__card__link"
|
|
105
105
|
target="_blank"
|
|
106
106
|
>
|
|
107
107
|
<img
|
|
108
|
+
:alt="`${[WebitelApplications.ADMIN]}-pic`"
|
|
108
109
|
class="wt-app-navigator__card__img"
|
|
109
110
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-admin.svg"
|
|
110
|
-
:alt="`${[WebitelApplications.ADMIN]}-pic`"
|
|
111
111
|
>
|
|
112
112
|
</a>
|
|
113
113
|
</li>
|
|
114
114
|
|
|
115
115
|
<li
|
|
116
116
|
v-if="formattedApps[WebitelApplications.ANALYTICS]"
|
|
117
|
-
class="wt-app-navigator__card"
|
|
118
117
|
:class="{'active': formattedApps[WebitelApplications.ANALYTICS].currentApp }"
|
|
118
|
+
class="wt-app-navigator__card"
|
|
119
119
|
>
|
|
120
120
|
<a
|
|
121
|
-
class="wt-app-navigator__card__link"
|
|
122
121
|
:href="formattedApps[WebitelApplications.ANALYTICS].href"
|
|
123
122
|
:title="$t(`webitelUI.appNavigator.${[WebitelApplications.ANALYTICS]}`)"
|
|
123
|
+
class="wt-app-navigator__card__link"
|
|
124
124
|
target="_blank"
|
|
125
125
|
>
|
|
126
126
|
<img
|
|
127
|
+
:alt="`${[WebitelApplications.ANALYTICS]}-pic`"
|
|
127
128
|
class="wt-app-navigator__card__img"
|
|
128
129
|
src="../../../assets/components/organisms/wt-app-header/app-navigator/app-analytics.svg"
|
|
129
|
-
:alt="`${[WebitelApplications.ANALYTICS]}-pic`"
|
|
130
130
|
>
|
|
131
131
|
</a>
|
|
132
132
|
</li>
|
|
@@ -180,10 +180,9 @@ export default {
|
|
|
180
180
|
<style lang="scss" scoped>
|
|
181
181
|
.wt-app-navigator {
|
|
182
182
|
position: relative;
|
|
183
|
+
z-index: var(--wt-app-header-content-z-index);
|
|
183
184
|
display: flex;
|
|
184
185
|
align-items: center;
|
|
185
|
-
margin-left: var(--wt-app-header-content-gap);
|
|
186
|
-
z-index: var(--wt-app-header-content-z-index);
|
|
187
186
|
}
|
|
188
187
|
|
|
189
188
|
// dropdown part
|
|
@@ -192,38 +191,38 @@ export default {
|
|
|
192
191
|
position: absolute;
|
|
193
192
|
top: 100%; // icon
|
|
194
193
|
right: 0;
|
|
194
|
+
overflow: auto;
|
|
195
195
|
max-height: var(--wt-app-navigator-max-height);
|
|
196
|
-
padding: var(--wt-app-header-content-gap);
|
|
197
196
|
margin-top: var(--wt-app-header-content-panel-margin);
|
|
198
|
-
|
|
199
|
-
box-shadow: var(--box-shadow);
|
|
200
|
-
border-radius: var(--border-radius);
|
|
197
|
+
padding: var(--wt-app-header-content-gap);
|
|
201
198
|
transition: var(--transition);
|
|
202
|
-
|
|
199
|
+
border-radius: var(--border-radius);
|
|
200
|
+
background: var(--wt-app-header-content-bg-color);
|
|
201
|
+
box-shadow: var(--elevation-1);
|
|
203
202
|
}
|
|
204
203
|
|
|
205
204
|
.wt-app-navigator__nav-title {
|
|
206
|
-
@extend %typo-
|
|
205
|
+
@extend %typo-subtitle-1;
|
|
206
|
+
margin-bottom: var(--wt-app-header-content-gap);
|
|
207
207
|
text-align: center;
|
|
208
208
|
text-transform: uppercase;
|
|
209
|
-
margin-bottom: var(--wt-app-header-content-gap);
|
|
210
209
|
}
|
|
211
210
|
|
|
212
211
|
// ul with li apps
|
|
213
212
|
.wt-app-navigator__nav {
|
|
214
213
|
display: grid;
|
|
215
214
|
grid-template-columns: 1fr 1fr;
|
|
216
|
-
grid-gap: var(--wt-app-
|
|
215
|
+
grid-gap: var(--wt-app-navigator-item-gap);
|
|
217
216
|
}
|
|
218
217
|
|
|
219
218
|
.wt-app-navigator__card {
|
|
219
|
+
box-sizing: border-box;
|
|
220
220
|
width: var(--wt-app-navigator-item-size);
|
|
221
221
|
height: var(--wt-app-navigator-item-size);
|
|
222
|
-
|
|
222
|
+
transition: var(--transition);
|
|
223
223
|
border: var(--wt-app-navigator-item-border);
|
|
224
224
|
border-color: var(--wt-app-navigator-item-border-color);
|
|
225
225
|
border-radius: var(--border-radius);
|
|
226
|
-
transition: var(--transition);
|
|
227
226
|
|
|
228
227
|
&.active, &:hover {
|
|
229
228
|
border-color: var(--wt-app-navigator-item-border-color--hover);
|