@webitel/ui-sdk 23.12.41 → 23.12.44
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/favicon.ico +0 -0
- package/dist/img/sprite/index.js +148 -1
- package/dist/img/sprite/variable-select.svg +9 -0
- package/dist/plyr.svg +70 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.mjs +22671 -0
- package/dist/ui-sdk.umd.js +37 -43322
- package/package.json +33 -41
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/wt-app-header.vue +2 -2
- package/src/components/wt-app-header/wt-app-navigator.vue +6 -5
- package/src/components/wt-app-header/wt-header-actions.vue +30 -14
- package/src/components/wt-avatar/wt-avatar.vue +2 -2
- package/src/components/wt-badge/wt-badge.vue +3 -3
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
- package/src/components/wt-button-select/wt-button-select.vue +3 -3
- package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
- package/src/components/wt-chip/_variables.scss +25 -2
- package/src/components/wt-chip/wt-chip.scss +20 -17
- package/src/components/wt-chip/wt-chip.vue +10 -5
- package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
- package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
- package/src/components/wt-datepicker/wt-datepicker.vue +14 -12
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-dummy/wt-dummy.vue +6 -2
- package/src/components/wt-error-page/wt-error-page.vue +10 -4
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
- package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +7 -4
- package/src/components/wt-headline/wt-headline.vue +4 -4
- package/src/components/wt-headline-nav/wt-headline-nav.vue +11 -4
- package/src/components/wt-hint/wt-hint.vue +4 -4
- package/src/components/wt-icon/wt-icon.vue +5 -5
- package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
- package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +3 -2
- package/src/components/wt-indicator/wt-indicator.vue +6 -3
- package/src/components/wt-input/wt-input.vue +190 -199
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/_variables.scss +4 -2
- package/src/components/wt-label/wt-label.vue +5 -18
- package/src/components/wt-load-bar/wt-load-bar.vue +5 -2
- package/src/components/wt-loader/_internals/wt-loader--md.vue +11 -2
- package/src/components/wt-loader/_internals/wt-loader--sm.vue +9 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +16 -8
- package/src/components/wt-notification/wt-notification.vue +3 -3
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +9 -5
- package/src/components/wt-page-header/wt-page-header.vue +7 -8
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +8 -5
- package/src/components/wt-pagination/wt-pagination.vue +17 -15
- package/src/components/wt-player/wt-player.vue +16 -16
- package/src/components/wt-popup/_variables.scss +4 -3
- package/src/components/wt-popup/wt-popup.vue +18 -10
- package/src/components/wt-progress-bar/wt-progress-bar.vue +11 -7
- package/src/components/wt-radio/wt-radio.vue +15 -7
- package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +6 -5
- package/src/components/wt-select/_multiselect.scss +48 -53
- package/src/components/wt-select/_variables.scss +0 -3
- package/src/components/wt-select/wt-select.vue +41 -40
- package/src/components/wt-slider/wt-slider.vue +5 -5
- package/src/components/wt-status-select/wt-status-select.vue +9 -9
- package/src/components/wt-stepper/wt-stepper.vue +8 -6
- package/src/components/wt-switcher/_variables.scss +30 -7
- package/src/components/wt-switcher/wt-switcher.vue +56 -35
- package/src/components/wt-table/_variables.scss +8 -5
- package/src/components/wt-table/wt-table.vue +123 -90
- package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
- package/src/components/wt-table-column-select/wt-table-column-select.vue +33 -28
- package/src/components/wt-tabs/_variables.scss +4 -4
- package/src/components/wt-tabs/wt-tabs.vue +15 -13
- package/src/components/wt-tags-input/wt-tags-input.vue +26 -35
- package/src/components/wt-textarea/wt-textarea.vue +21 -33
- package/src/components/wt-time-input/wt-time-input.vue +24 -54
- package/src/components/wt-timepicker/wt-timepicker.vue +19 -27
- package/src/components/wt-tooltip/__tests__/WtTooltip.spec.js +0 -10
- package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
- package/src/components/wt-tooltip/_variables.scss +2 -4
- package/src/components/wt-tooltip/wt-tooltip.vue +6 -18
- package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
- package/src/css/styleguide/colors/_colors.scss +15 -14
- package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
- package/src/locale/i18n.js +1 -1
- package/src/locale/kz/kz.js +74 -78
- package/src/mixins/validationMixin/useValidation.js +2 -2
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +11 -9
- package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +6 -5
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
- package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +10 -6
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
- package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
- package/src/modules/AuditForm/components/audit-form.vue +6 -5
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +7 -4
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
- package/src/modules/CSVExport/__tests__/CSVExport.spec.js +5 -2
- package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +13 -6
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/Filters/components/filter-pagination.vue +1 -1
- package/src/modules/Filters/components/filter-table-fields.vue +1 -1
- package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +6 -6
- package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
- package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
- package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
- package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
- package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
- package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +12 -10
- package/src/modules/QueryFilters/components/filter-search.vue +2 -2
- package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
- package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
- package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
- package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +7 -4
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43304
- package/dist/ui-sdk.common.js.map +0 -1
- package/dist/ui-sdk.umd.js.map +0 -1
- package/dist/ui-sdk.umd.min.js +0 -35
- package/dist/ui-sdk.umd.min.js.map +0 -1
- package/src/components/wt-button/Readme.md +0 -23
- package/src/components/wt-button-select/Readme.md +0 -13
- package/src/components/wt-headline-nav/Readme.md +0 -9
- package/src/components/wt-icon/Readme.md +0 -327
- package/src/components/wt-icon/docs/cleanup-svg-fill-none.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-fill.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-correct.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-viewbox-incorrect.png +0 -0
- package/src/components/wt-icon/docs/cleanup-svg-width-height.png +0 -0
- package/src/components/wt-icon/docs/svg-icon-code-example.png +0 -0
- package/src/components/wt-icon/docs/svg-sprite-in-dom.png +0 -0
- package/src/components/wt-icon-btn/Readme.md +0 -10
- package/src/components/wt-rounded-action/Readme.md +0 -68
- package/src/components/wt-tags-input/_variables.scss +0 -24
- package/src/validators/variableSearchValidator/Readme.md +0 -13
- package/src/validators/websocketValidator/Readme.md +0 -7
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
@import '~vue-multiselect/dist/vue3-multiselect.css';
|
|
2
1
|
|
|
3
|
-
.multiselect
|
|
2
|
+
.multiselect :deep {
|
|
4
3
|
cursor: pointer;
|
|
5
4
|
position: relative;
|
|
6
5
|
|
|
@@ -12,6 +11,7 @@
|
|
|
12
11
|
transition: var(--transition);
|
|
13
12
|
width: fit-content; // reset default
|
|
14
13
|
height: fit-content; // reset default
|
|
14
|
+
background: transparent;
|
|
15
15
|
|
|
16
16
|
&:before {
|
|
17
17
|
display: none; // reset default
|
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
// visible select input wrapper
|
|
33
34
|
.multiselect__tags {
|
|
34
35
|
padding: calc(var(--spacing-xs) - 1px); // borders
|
|
35
|
-
color: var(--form-input-color);
|
|
36
36
|
border: var(--select-tags-border);
|
|
37
|
-
border-color: var(--
|
|
37
|
+
border-color: var(--wt-text-field-input-border-color);
|
|
38
38
|
border-radius: var(--border-radius);
|
|
39
|
+
background: transparent;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
|
|
@@ -49,13 +50,9 @@
|
|
|
49
50
|
margin: 0; // reset default
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
.multiselect__input:focus {
|
|
53
|
-
@include wt-placeholder('focus');
|
|
54
|
-
}
|
|
55
|
-
|
|
56
53
|
.multiselect__custom-tag,
|
|
57
54
|
.multiselect__single-label {
|
|
58
|
-
color: var(--
|
|
55
|
+
color: var(--wt-text-field-placeholder-color);
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
.multiselect__placeholder {
|
|
@@ -69,17 +66,22 @@
|
|
|
69
66
|
text-overflow: ellipsis;
|
|
70
67
|
}
|
|
71
68
|
|
|
69
|
+
// select options wrapper
|
|
72
70
|
.multiselect__content-wrapper {
|
|
73
71
|
@extend %wt-distant-scrollbar;
|
|
74
72
|
transition: var(--transition);
|
|
75
73
|
border: var(--select-tags-border);
|
|
76
|
-
border-color: var(--
|
|
74
|
+
border-color: var(--wt-text-field-select-option-wrapper-border-color);
|
|
77
75
|
border-radius: var(--border-radius);
|
|
76
|
+
box-shadow: var(--elevation-10);
|
|
78
77
|
}
|
|
79
78
|
|
|
79
|
+
// select options
|
|
80
80
|
.multiselect__option {
|
|
81
81
|
@extend %typo-body-1;
|
|
82
82
|
padding: var(--select-options-padding);
|
|
83
|
+
color: var(--wt-text-field-select-option-text-color);
|
|
84
|
+
background: var(--wt-text-field-select-option-background-color);
|
|
83
85
|
|
|
84
86
|
&:after {
|
|
85
87
|
display: none;
|
|
@@ -87,53 +89,28 @@
|
|
|
87
89
|
|
|
88
90
|
|
|
89
91
|
&--highlight {
|
|
90
|
-
color: var(--
|
|
91
|
-
|
|
92
|
-
background: none;
|
|
92
|
+
color: var(--wt-text-field-select-option-text-hover-color);
|
|
93
|
+
background: var(--wt-text-field-select-option-background-hover-color);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
|
|
96
97
|
&--selected {
|
|
97
|
-
font-weight: normal;
|
|
98
|
-
|
|
98
|
+
font-weight: normal; // reset
|
|
99
|
+
color: var(--wt-text-field-select-option-text-selected-color);
|
|
100
|
+
background: var(--wt-text-field-select-option-background-selected-color)
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
104
|
|
|
103
|
-
.multiselect--active
|
|
105
|
+
.multiselect--active :deep {
|
|
104
106
|
.multiselect__select .wt-icon__icon {
|
|
105
|
-
fill: var(--icon-color
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.multiselect__tags {
|
|
109
|
-
border-color: var(--form-border--active-color);
|
|
110
|
-
|
|
111
|
-
.multiselect__placeholder {
|
|
112
|
-
@extend %wt-placeholder--focus;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.wt-select:hover,
|
|
119
|
-
.wt-tags-input:hover {
|
|
120
|
-
.multiselect ::v-deep {
|
|
121
|
-
.multiselect__tags {
|
|
122
|
-
border-color: var(--form-border--hover-color);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.multiselect__select,
|
|
126
|
-
.multiselect__clear {
|
|
127
|
-
.wt-icon__icon {
|
|
128
|
-
fill: var(--icon-color--hover);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
107
|
+
fill: var(--icon-active-color);
|
|
131
108
|
}
|
|
132
109
|
}
|
|
133
110
|
|
|
134
111
|
.wt-select--loading,
|
|
135
112
|
.wt-tags-input--loading {
|
|
136
|
-
|
|
113
|
+
:deep {
|
|
137
114
|
.multiselect__content-wrapper {
|
|
138
115
|
overflow-y: hidden;
|
|
139
116
|
}
|
|
@@ -156,11 +133,21 @@
|
|
|
156
133
|
|
|
157
134
|
.wt-select.wt-select--invalid,
|
|
158
135
|
.wt-tags-input.wt-tags-input--invalid {
|
|
159
|
-
.multiselect
|
|
136
|
+
.multiselect :deep {
|
|
160
137
|
.multiselect__tags {
|
|
161
|
-
border-color: var(--
|
|
138
|
+
border-color: var(--wt-text-field-input-border-error-color);
|
|
162
139
|
outline: none; // prevent outline overlapping false color
|
|
163
140
|
}
|
|
141
|
+
|
|
142
|
+
.multiselect__custom-tag,
|
|
143
|
+
.multiselect__single-label {
|
|
144
|
+
color: var(--wt-text-field-placeholder-error-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.multiselect__placeholder {
|
|
148
|
+
@extend %wt-placeholder--error;
|
|
149
|
+
//color: var(--form-placeholder--disabled-color);
|
|
150
|
+
}
|
|
164
151
|
}
|
|
165
152
|
}
|
|
166
153
|
|
|
@@ -177,16 +164,11 @@
|
|
|
177
164
|
background: transparent; // reset default
|
|
178
165
|
}
|
|
179
166
|
|
|
180
|
-
.multiselect__arrow-caret ::v-deep .wt-icon__icon,
|
|
181
|
-
.multiselect__clear ::v-deep .wt-icon__icon {
|
|
182
|
-
fill: var(--icon-color-disabled);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
167
|
.multiselect {
|
|
186
|
-
|
|
168
|
+
:deep {
|
|
187
169
|
.multiselect__tags {
|
|
188
|
-
border-color: var(--
|
|
189
|
-
background: var(--
|
|
170
|
+
border-color: var(--wt-text-field-input-border-disabled-color);
|
|
171
|
+
background: var(--wt-text-field-input-background-disabled-color);
|
|
190
172
|
|
|
191
173
|
.multiselect__placeholder {
|
|
192
174
|
@extend %wt-placeholder--disabled;
|
|
@@ -196,3 +178,16 @@
|
|
|
196
178
|
}
|
|
197
179
|
}
|
|
198
180
|
}
|
|
181
|
+
|
|
182
|
+
// override .wt-select colors on chips
|
|
183
|
+
.wt-tags-input,
|
|
184
|
+
.wt-tags-input--invalid {
|
|
185
|
+
.multiselect :deep {
|
|
186
|
+
.multiselect__tags {
|
|
187
|
+
.multiselect__custom-tag,
|
|
188
|
+
.multiselect__single-label {
|
|
189
|
+
color: var(--wt-chip-main-text-color);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -8,7 +8,4 @@
|
|
|
8
8
|
--select-tags-border: var(--input-border); // right pos = 10px spacing + clear icon size + clear offset
|
|
9
9
|
|
|
10
10
|
--select-options-padding: var(--input-padding);
|
|
11
|
-
|
|
12
|
-
--select-option--hover-color: var(--accent-secondary-color);
|
|
13
|
-
--select-option--active-color: var(--accent-secondary-color);
|
|
14
11
|
}
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
class="wt-select"
|
|
11
11
|
>
|
|
12
12
|
<wt-label
|
|
13
|
-
v-bind="labelProps"
|
|
14
13
|
v-if="hasLabel"
|
|
14
|
+
v-bind="labelProps"
|
|
15
15
|
:disabled="disabled"
|
|
16
16
|
:invalid="invalid"
|
|
17
17
|
class="wt-select__label"
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
<slot
|
|
21
21
|
v-bind="{ label }"
|
|
22
22
|
name="label"
|
|
23
|
-
>
|
|
23
|
+
>
|
|
24
|
+
{{ requiredLabel }}
|
|
25
|
+
</slot>
|
|
24
26
|
</wt-label>
|
|
25
27
|
<vue-multiselect
|
|
26
28
|
v-bind="$attrs"
|
|
@@ -41,19 +43,24 @@
|
|
|
41
43
|
@open="isOpened = true"
|
|
42
44
|
v-on="listeners"
|
|
43
45
|
>
|
|
44
|
-
<template
|
|
45
|
-
|
|
46
|
+
<template
|
|
47
|
+
v-if="!isOpened"
|
|
48
|
+
#limit
|
|
49
|
+
>
|
|
50
|
+
<wt-chip class="multiselect__limit">
|
|
51
|
+
+{{ value.length - 1 }}
|
|
52
|
+
</wt-chip>
|
|
46
53
|
</template>
|
|
47
54
|
|
|
48
55
|
<!-- Slot that is used for all selected options (tags)-->
|
|
49
|
-
<template
|
|
56
|
+
<template #tag="{ option }">
|
|
50
57
|
<span class="multiselect__custom-tag">
|
|
51
|
-
|
|
58
|
+
{{ getOptionLabel({ option, optionLabel }) }}
|
|
52
59
|
</span>
|
|
53
60
|
</template>
|
|
54
61
|
|
|
55
62
|
<!-- Slot for custom label template for single select-->
|
|
56
|
-
<template
|
|
63
|
+
<template #singleLabel="{ option }">
|
|
57
64
|
<slot
|
|
58
65
|
v-bind="{ option, optionLabel }"
|
|
59
66
|
name="singleLabel"
|
|
@@ -65,7 +72,7 @@
|
|
|
65
72
|
</template>
|
|
66
73
|
|
|
67
74
|
<!-- Slot for custom option template -->
|
|
68
|
-
<template
|
|
75
|
+
<template #option="{ option }">
|
|
69
76
|
<slot
|
|
70
77
|
v-bind="{ option, optionLabel }"
|
|
71
78
|
name="option"
|
|
@@ -75,18 +82,18 @@
|
|
|
75
82
|
</template>
|
|
76
83
|
|
|
77
84
|
<!-- Element for opening and closing the dropdown -->
|
|
78
|
-
<template
|
|
85
|
+
<template #caret="{ toggle }">
|
|
79
86
|
<!-- @mousedown.native.prevent.stop="toggle": https://github.com/shentao/vue-multiselect/issues/1204#issuecomment-615114727 -->
|
|
80
87
|
<wt-icon-btn
|
|
81
88
|
:disabled="disabled"
|
|
82
89
|
class="multiselect__select"
|
|
83
90
|
icon="arrow-down"
|
|
84
91
|
@mousedown.prevent.stop="toggle"
|
|
85
|
-
|
|
92
|
+
/>
|
|
86
93
|
</template>
|
|
87
94
|
|
|
88
95
|
<!-- Slot located before the tags -->
|
|
89
|
-
<template
|
|
96
|
+
<template #clear="{}">
|
|
90
97
|
<wt-icon-btn
|
|
91
98
|
v-if="clearable"
|
|
92
99
|
:class="{ 'hidden': !isValue }"
|
|
@@ -94,23 +101,30 @@
|
|
|
94
101
|
class="multiselect__clear"
|
|
95
102
|
icon="close"
|
|
96
103
|
@click="clearValue"
|
|
97
|
-
|
|
104
|
+
/>
|
|
98
105
|
</template>
|
|
99
106
|
|
|
100
|
-
<template
|
|
101
|
-
<div
|
|
102
|
-
|
|
107
|
+
<template #beforeList>
|
|
108
|
+
<div
|
|
109
|
+
v-show="isLoading"
|
|
110
|
+
class="multiselect__loading-wrapper"
|
|
111
|
+
>
|
|
112
|
+
<wt-loader size="sm" />
|
|
103
113
|
</div>
|
|
104
114
|
</template>
|
|
105
115
|
|
|
106
|
-
<template
|
|
107
|
-
|
|
116
|
+
<template
|
|
117
|
+
v-if="showIntersectionObserver"
|
|
118
|
+
#afterList
|
|
119
|
+
>
|
|
120
|
+
<div v-observe-visibility="handleAfterListIntersect" />
|
|
108
121
|
</template>
|
|
109
122
|
</vue-multiselect>
|
|
110
123
|
<wt-input-info
|
|
111
124
|
v-if="isValidation"
|
|
112
125
|
:invalid="invalid"
|
|
113
|
-
>
|
|
126
|
+
>
|
|
127
|
+
{{ validationText }}
|
|
114
128
|
</wt-input-info>
|
|
115
129
|
</div>
|
|
116
130
|
</template>
|
|
@@ -119,7 +133,7 @@
|
|
|
119
133
|
import multiselectMixin from './mixins/multiselectMixin';
|
|
120
134
|
|
|
121
135
|
export default {
|
|
122
|
-
name: '
|
|
136
|
+
name: 'WtSelect',
|
|
123
137
|
mixins: [multiselectMixin],
|
|
124
138
|
props: {
|
|
125
139
|
value: {},
|
|
@@ -162,21 +176,7 @@ export default {
|
|
|
162
176
|
min-width: 0;
|
|
163
177
|
}
|
|
164
178
|
|
|
165
|
-
.
|
|
166
|
-
.wt-select:hover &,
|
|
167
|
-
.wt-select:focus-within &, {
|
|
168
|
-
color: var(--form-label--hover-color);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.wt-select--invalid,
|
|
173
|
-
.wt-select--invalid:hover {
|
|
174
|
-
.wt-label {
|
|
175
|
-
color: var(--false-color);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.multiselect ::v-deep {
|
|
179
|
+
.multiselect :deep {
|
|
180
180
|
.multiselect__custom-tag,
|
|
181
181
|
.multiselect__single-label {
|
|
182
182
|
// text overflow 3 dots
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
.multiselect--active
|
|
191
|
+
.multiselect--active :deep {
|
|
192
192
|
.multiselect__tags-wrap,
|
|
193
193
|
.multiselect__strong {
|
|
194
194
|
display: none;
|
|
@@ -200,7 +200,7 @@ export default {
|
|
|
200
200
|
// default case
|
|
201
201
|
.wt-select {
|
|
202
202
|
// all is fine
|
|
203
|
-
.multiselect
|
|
203
|
+
.multiselect :deep {
|
|
204
204
|
.multiselect__tags {
|
|
205
205
|
padding: var(--input-padding) calc(
|
|
206
206
|
var(--input-padding)
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
213
213
|
|
|
214
214
|
// only chip
|
|
215
215
|
.wt-select.wt-select--multiple:not(.wt-select--clearable) {
|
|
216
|
-
.multiselect
|
|
216
|
+
.multiselect :deep {
|
|
217
217
|
$multiselect-limit-right-pos: calc(
|
|
218
218
|
var(--select-caret-right-pos) // caret offet from border
|
|
219
219
|
+ var(--icon-md-size) // caret size
|
|
@@ -234,9 +234,9 @@ export default {
|
|
|
234
234
|
|
|
235
235
|
// only clearable
|
|
236
236
|
.wt-select.wt-select--clearable:not(.wt-select--multiple) {
|
|
237
|
-
.multiselect
|
|
237
|
+
.multiselect :deep {
|
|
238
238
|
$multiselect-clear-right-pos: calc(
|
|
239
|
-
var(--select-caret-right-pos) // caret
|
|
239
|
+
var(--select-caret-right-pos) // caret offset from border
|
|
240
240
|
+ var(--icon-md-size) // caret size
|
|
241
241
|
+ var(--input-padding) // caret-to-chip offset
|
|
242
242
|
);
|
|
@@ -254,8 +254,9 @@ export default {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
// clearable and chip
|
|
257
258
|
.wt-select.wt-select--multiple.wt-select--clearable {
|
|
258
|
-
.multiselect
|
|
259
|
+
.multiselect :deep {
|
|
259
260
|
$multiselect-clear-right-pos: calc(
|
|
260
261
|
var(--select-caret-right-pos)// caret offet from border
|
|
261
262
|
+ var(--icon-md-size)// caret size
|
|
@@ -17,9 +17,9 @@ and swapping height/width of this component in order to have the correct output.
|
|
|
17
17
|
<template>
|
|
18
18
|
<div
|
|
19
19
|
:class="{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
'wt-slider--disabled': disabled,
|
|
21
|
+
'wt-slider--vertical': vertical,
|
|
22
|
+
}"
|
|
23
23
|
:style="{ height: vertical && verticalHeight }"
|
|
24
24
|
class="wt-slider"
|
|
25
25
|
>
|
|
@@ -38,14 +38,14 @@ and swapping height/width of this component in order to have the correct output.
|
|
|
38
38
|
class="wt-slider__slider"
|
|
39
39
|
type="range"
|
|
40
40
|
@input="inputHandler"
|
|
41
|
-
|
|
41
|
+
>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
47
|
export default {
|
|
48
|
-
name: '
|
|
48
|
+
name: 'WtSlider',
|
|
49
49
|
props: {
|
|
50
50
|
value: {
|
|
51
51
|
type: Number,
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
:searchable="false"
|
|
9
9
|
@input="inputHandler"
|
|
10
10
|
>
|
|
11
|
-
<template
|
|
11
|
+
<template #singleLabel="{ option }">
|
|
12
12
|
<wt-indicator
|
|
13
13
|
:color="option.color"
|
|
14
14
|
:text="duration"
|
|
15
|
-
|
|
15
|
+
/>
|
|
16
16
|
</template>
|
|
17
|
-
<template
|
|
17
|
+
<template #option="{ option }">
|
|
18
18
|
<wt-indicator
|
|
19
19
|
:color="option.color"
|
|
20
20
|
:text="option.text"
|
|
21
|
-
|
|
21
|
+
/>
|
|
22
22
|
</template>
|
|
23
23
|
</wt-select>
|
|
24
24
|
</template>
|
|
@@ -29,7 +29,11 @@ import convertDuration from '../../scripts/convertDuration';
|
|
|
29
29
|
import StatusOptions from './_internals/StatusOptions.lookup';
|
|
30
30
|
|
|
31
31
|
export default {
|
|
32
|
-
name: '
|
|
32
|
+
name: 'WtStatusSelect',
|
|
33
|
+
model: {
|
|
34
|
+
prop: 'status',
|
|
35
|
+
event: 'change',
|
|
36
|
+
},
|
|
33
37
|
props: {
|
|
34
38
|
status: {
|
|
35
39
|
type: String,
|
|
@@ -48,10 +52,6 @@ export default {
|
|
|
48
52
|
// options: ['sm', 'md'],
|
|
49
53
|
// },
|
|
50
54
|
},
|
|
51
|
-
model: {
|
|
52
|
-
prop: 'status',
|
|
53
|
-
event: 'change',
|
|
54
|
-
},
|
|
55
55
|
computed: {
|
|
56
56
|
selectedOption() {
|
|
57
57
|
return this.statusOptions.find((option) => option.value === this.status);
|
|
@@ -5,29 +5,31 @@
|
|
|
5
5
|
class="wt-stepper-steps"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
|
-
class="wt-stepper-steps__wrapper"
|
|
9
8
|
v-for="({name, completed}, idx) in stepWithCompleted"
|
|
9
|
+
class="wt-stepper-steps__wrapper"
|
|
10
10
|
>
|
|
11
11
|
<div
|
|
12
12
|
v-if="idx !== 0"
|
|
13
13
|
class="wt-stepper-steps__divider"
|
|
14
14
|
:class="{ 'wt-stepper-steps__divider--completed': completed }"
|
|
15
|
-
|
|
15
|
+
/>
|
|
16
16
|
<wt-chip
|
|
17
17
|
class="wt-stepper-steps__item"
|
|
18
18
|
:color="!completed && 'secondary'"
|
|
19
|
-
>
|
|
19
|
+
>
|
|
20
|
+
{{ name }}
|
|
20
21
|
</wt-chip>
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
23
24
|
</div>
|
|
24
25
|
|
|
25
26
|
<slot name="description">
|
|
26
|
-
<p class="wt-stepper-description">
|
|
27
|
+
<p class="wt-stepper-description">
|
|
28
|
+
{{ description }}
|
|
29
|
+
</p>
|
|
27
30
|
</slot>
|
|
28
31
|
|
|
29
|
-
<slot name="main"
|
|
30
|
-
|
|
32
|
+
<slot name="main" />
|
|
31
33
|
</div>
|
|
32
34
|
</template>
|
|
33
35
|
<script setup>
|
|
@@ -6,12 +6,35 @@
|
|
|
6
6
|
--switcher-cicle-size: 14px;
|
|
7
7
|
--switcher-cicle-margin: 4px;
|
|
8
8
|
--switcher-cicle-translateX: 17px;
|
|
9
|
-
--switcher-bg-color--off: hsla(var(--_icon-color), var(--_opacity--default));
|
|
10
|
-
--switcher-bg-color--on: hsla(var(--_accent-color), var(--_opacity--default));
|
|
11
|
-
--switcher-bg-color--off--hover: hsla(var(--_icon-color), var(--_opacity--hover));
|
|
12
|
-
--switcher-bg-color--on--hover: hsla(var(--_accent-color), var(--_opacity--hover));
|
|
13
|
-
--switcher-bg-color--off--disabled: hsla(var(--_icon-color), var(--_opacity--disabled));
|
|
14
|
-
--switcher-bg-color--on--disabled: hsla(var(--_accent-color), var(--_opacity--disabled));
|
|
15
|
-
--switcher-circle-bg-color: var(--main-color);
|
|
16
9
|
--switcher-border-radius: 24px;
|
|
10
|
+
|
|
11
|
+
// circle
|
|
12
|
+
--wt-switcher-circle-background-color-on: var(--grey-darken-3);
|
|
13
|
+
--wt-switcher-circle-background-color-on-hover: var(--grey-darken-4);
|
|
14
|
+
--wt-switcher-circle-background-color-on-disabled: var(--grey-darken-3);
|
|
15
|
+
|
|
16
|
+
--wt-switcher-circle-background-color-off: var(--grey-lighten-4);
|
|
17
|
+
--wt-switcher-circle-background-color-off-hover: var(--grey-lighten-5);
|
|
18
|
+
--wt-switcher-circle-background-color-off-disabled: var(--grey-lighten-3);
|
|
19
|
+
|
|
20
|
+
// background
|
|
21
|
+
--wt-switcher-background-color-on: var(--primary-color);
|
|
22
|
+
--wt-switcher-background-color-on-hover: var(--primary-hover-color);
|
|
23
|
+
--wt-switcher-background-color-on-disabled: var(--primary-light-color);
|
|
24
|
+
|
|
25
|
+
--wt-switcher-background-color-off: var(--grey-darken-2);
|
|
26
|
+
--wt-switcher-background-color-off-hover: var(--grey-darken-1);
|
|
27
|
+
--wt-switcher-background-color-off-disabled: var(--grey-lighten-4);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:root.theme--dark {
|
|
31
|
+
// circle
|
|
32
|
+
--wt-switcher-circle-background-color-off: var(--grey-darken-4);
|
|
33
|
+
--wt-switcher-circle-background-color-off-hover: var(--grey-darken-3);
|
|
34
|
+
--wt-switcher-circle-background-color-off-disabled: var(--grey-darken-3);
|
|
35
|
+
|
|
36
|
+
// background
|
|
37
|
+
--wt-switcher-background-color-off: var(--grey-lighten-1);
|
|
38
|
+
--wt-switcher-background-color-off-hover: var(--grey-lighten-2);
|
|
39
|
+
--wt-switcher-background-color-off-disabled: var(--grey-darken-2);
|
|
17
40
|
}
|