@webitel/ui-sdk 23.12.2 → 23.12.5-1
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/link.svg +8 -0
- 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 +22670 -0
- package/dist/ui-sdk.umd.js +37 -43084
- package/package.json +34 -40
- package/src/api/axios/generateInstance.js +1 -1
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
- package/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js +9 -0
- package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +70 -0
- package/src/components/transitions/wt-expand-transition.vue +2 -2
- package/src/components/wt-app-header/_variables.scss +1 -1
- package/src/components/wt-app-header/wt-app-header.vue +2 -5
- 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/_variables.scss +1 -1
- 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/_variables.scss +2 -32
- package/src/components/wt-button/wt-button.vue +5 -3
- package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +9 -8
- package/src/components/wt-button-select/wt-button-select.vue +58 -59
- package/src/components/wt-checkbox/wt-checkbox.vue +15 -48
- package/src/components/wt-chip/_variables.scss +21 -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/_variables.scss +1 -1
- 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/_variables.scss +5 -2
- package/src/components/wt-headline-nav/wt-headline-nav.vue +46 -33
- package/src/components/wt-hint/wt-hint.vue +5 -6
- package/src/components/wt-icon/_variables.scss +5 -10
- package/src/components/wt-icon/wt-icon.vue +15 -6
- 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 +4 -2
- package/src/components/wt-indicator/_variables.scss +14 -19
- package/src/components/wt-indicator/wt-indicator.vue +26 -27
- package/src/components/wt-input/wt-input.vue +200 -219
- 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 +7 -4
- 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/_variables.scss +2 -2
- package/src/components/wt-loader/wt-loader.vue +10 -3
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +17 -9
- package/src/components/wt-notification/wt-notification.vue +4 -4
- 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/__tests__/WtPlayer.spec.js +1 -1
- package/src/components/wt-player/_variables.scss +1 -1
- package/src/components/wt-player/wt-player.vue +17 -17
- 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/_variables.scss +10 -8
- package/src/components/wt-progress-bar/wt-progress-bar.vue +27 -18
- package/src/components/wt-radio/wt-radio.vue +26 -54
- package/src/components/wt-rounded-action/_variables.scss +4 -35
- package/src/components/wt-rounded-action/wt-rounded-action.vue +15 -70
- package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +18 -42
- package/src/components/wt-select/_multiselect.scss +48 -53
- package/src/components/wt-select/_variables.scss +0 -3
- package/src/components/wt-select/mixins/multiselectMixin.js +9 -1
- package/src/components/wt-select/wt-select.vue +41 -40
- package/src/components/wt-slider/_variables.scss +6 -0
- package/src/components/wt-slider/wt-slider.vue +25 -9
- package/src/components/wt-status-select/_variables.scss +7 -4
- package/src/components/wt-status-select/wt-status-select.vue +18 -12
- package/src/components/wt-stepper/_variables.scss +5 -0
- package/src/components/wt-stepper/wt-stepper.vue +15 -9
- 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 +37 -54
- 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/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +1 -1
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +1 -1
- package/src/css/styleguide/colors/_colors.scss +45 -29
- package/src/css/styleguide/colors/reusable/_text-field.scss +36 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +9 -9
- package/src/enums/WebitelApplications/AdminSections.enum.js +2 -1
- package/src/locale/en/en.js +11 -3
- package/src/locale/es/es.js +2 -0
- package/src/locale/i18n.js +3 -1
- package/src/locale/kz/kz.js +327 -0
- package/src/locale/ru/ru.js +11 -3
- package/src/locale/ua/ua.js +11 -3
- package/src/mixins/validationMixin/__tests__/validationMixin.spec.js +2 -2
- package/src/mixins/validationMixin/useValidation.js +19 -4
- package/src/mixins/validationMixin/validationMixin.js +1 -0
- 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 +11 -8
- 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 +77 -0
- package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +35 -17
- package/src/modules/FilesExport/__tests__/FilesExport.spec.js +6 -3
- package/src/modules/FilesExport/scripts/generateMediaURL.js +1 -1
- 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 +7 -5
- package/src/modules/QueryFilters/components/__tests__/abstract-enum-filter.spec.js +3 -1
- 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/classes/ApplicationsAccess.js +6 -2
- package/src/modules/Userinfo/components/__tests__/auth.spec.js +7 -8
- package/src/modules/Userinfo/components/the-auth.vue +8 -5
- package/src/scripts/debounce.js +1 -1
- package/src/scripts/saveAsJSON.js +9 -0
- package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
- package/src/validators/variableSearchValidator/__tests__/variableSearchValidator.spec.js +48 -0
- package/src/validators/variableSearchValidator/variableSearchValidator.js +10 -0
- package/src/validators/websocketValidator/__tests__/websocketValidator.spec.js +28 -0
- package/src/validators/websocketValidator/websocketValidator.js +9 -0
- package/dist/demo.html +0 -1
- package/dist/ui-sdk.common.js +0 -43066
- 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-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/locale/.DS_Store +0 -0
|
@@ -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
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
--wt-slider-width: 100%;
|
|
7
7
|
--wt-slider-input-height: 8px;
|
|
8
8
|
--wt-slider-border: 1px solid var(--secondary-color);
|
|
9
|
+
--wt-slider-background-color: var(--dp-1-surface-color);
|
|
10
|
+
--wt-slider-background-completed-color: var(--primary-color);
|
|
11
|
+
|
|
12
|
+
--wt-slider-pointer-background-color: var(--dp-24-surface-color);
|
|
13
|
+
--wt-slider-pointer-background-hover-color: var(--dp-22-surface-color);
|
|
14
|
+
--wt-slider-pointer-border-color: var(--dp-10-surface-color);
|
|
9
15
|
|
|
10
16
|
--wt-slider-pointer-radius: 50%;
|
|
11
17
|
|
|
@@ -17,14 +17,14 @@ 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
|
>
|
|
26
26
|
<div
|
|
27
|
-
:style="{ width:
|
|
27
|
+
:style="{ width: vertical && verticalHeight }"
|
|
28
28
|
class="wt-slider__wrapper"
|
|
29
29
|
>
|
|
30
30
|
<!-- The row above is needed in order to set correct component width when slider is vertical -->
|
|
@@ -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,
|
|
@@ -77,10 +77,11 @@ export default {
|
|
|
77
77
|
default: 100,
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
|
+
emits: ['input'],
|
|
80
81
|
computed: {
|
|
81
82
|
progressStyle() { // To achieve the correct color styling:
|
|
82
83
|
const progressPercent = ((this.value - this.min) / (this.max - this.min)) * 100;
|
|
83
|
-
return `linear-gradient(to right, var(--
|
|
84
|
+
return `linear-gradient(to right, var(--wt-slider-background-completed-color) ${progressPercent}%, var(--wt-slider-background-color) 0%)`;
|
|
84
85
|
},
|
|
85
86
|
verticalHeight() { // in order to have correct parent height after slider rotation
|
|
86
87
|
return this.vertical ? `${this.height}px` : '100%';
|
|
@@ -123,8 +124,9 @@ export default {
|
|
|
123
124
|
height: var(--wt-slider-pointer-size);
|
|
124
125
|
border: var(--wt-slider-border);
|
|
125
126
|
border-radius: var(--wt-slider-pointer-radius);
|
|
126
|
-
background: var(--
|
|
127
|
+
background: var(--wt-slider-pointer-background-color);
|
|
127
128
|
-webkit-appearance: none;
|
|
129
|
+
transition: var(--transition);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
&::-webkit-slider-runnable-track {
|
|
@@ -136,8 +138,10 @@ export default {
|
|
|
136
138
|
height: var(--wt-slider-pointer-size);
|
|
137
139
|
border: var(--wt-slider-border);
|
|
138
140
|
border-radius: var(--wt-slider-pointer-radius);
|
|
139
|
-
|
|
141
|
+
border-color: var(--wt-slider-pointer-border-color);
|
|
142
|
+
background: var(--wt-slider-pointer-background-color);
|
|
140
143
|
-moz-appearance: none;
|
|
144
|
+
transition: var(--transition);
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
&::-moz-range-track {
|
|
@@ -153,6 +157,18 @@ export default {
|
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
159
|
|
|
160
|
+
.wt-slider:hover {
|
|
161
|
+
.wt-slider__slider {
|
|
162
|
+
&::-webkit-slider-thumb {
|
|
163
|
+
background: var(--wt-slider-pointer-background-hover-color);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::-moz-range-thumb {
|
|
167
|
+
background: var(--wt-slider-pointer-background-hover-color);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
156
172
|
.wt-slider--disabled {
|
|
157
173
|
.wt-slider__slider {
|
|
158
174
|
pointer-events: none;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
:root {
|
|
3
|
-
--status-select-padding: 0 calc(var(--icon-size-md) + var(--spacing-xs)) 0 0; // reset wt-select padding, but preserve arrow icon padding
|
|
4
|
-
|
|
5
|
-
--status-select-
|
|
6
|
-
|
|
3
|
+
--wt-status-select-padding: 0 calc(var(--icon-size-md) + var(--spacing-xs)) 0 0; // reset wt-select padding, but preserve arrow icon padding
|
|
4
|
+
|
|
5
|
+
--wt-status-select-option-text-color: var(--text-main-color);
|
|
6
|
+
--wt-status-select-option-background-color: var(--dp-22-surface-color);
|
|
7
|
+
--wt-status-select-option-background-hover-color: var(--secondary-light-color);
|
|
8
|
+
//--wt-status-select-option-background-selected-color: var(--primary-light-color);
|
|
9
|
+
}
|
|
@@ -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,7 @@ export default {
|
|
|
48
52
|
// options: ['sm', 'md'],
|
|
49
53
|
// },
|
|
50
54
|
},
|
|
51
|
-
|
|
52
|
-
prop: 'status',
|
|
53
|
-
event: 'change',
|
|
54
|
-
},
|
|
55
|
+
emits: ['change'],
|
|
55
56
|
computed: {
|
|
56
57
|
selectedOption() {
|
|
57
58
|
return this.statusOptions.find((option) => option.value === this.status);
|
|
@@ -107,7 +108,7 @@ export default {
|
|
|
107
108
|
|
|
108
109
|
.multiselect__tags {
|
|
109
110
|
min-height: 0;
|
|
110
|
-
padding: var(--status-select-padding);
|
|
111
|
+
padding: var(--wt-status-select-padding);
|
|
111
112
|
border: none;
|
|
112
113
|
}
|
|
113
114
|
|
|
@@ -122,11 +123,16 @@ export default {
|
|
|
122
123
|
.multiselect__option {
|
|
123
124
|
min-height: 0;
|
|
124
125
|
padding: 0;
|
|
125
|
-
color: var(--status-select-option-color);
|
|
126
|
+
color: var(--wt-status-select-option-text-color);
|
|
127
|
+
background: var(--wt-status-select-option-background-color);
|
|
126
128
|
}
|
|
127
129
|
|
|
128
130
|
.multiselect__option--highlight {
|
|
129
|
-
background: var(--status-select-
|
|
131
|
+
background: var(--wt-status-select-option-background-hover-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.multiselect__option--selected {
|
|
135
|
+
//background: var(--wt-status-select-option-background-selected-color);
|
|
130
136
|
}
|
|
131
137
|
}
|
|
132
138
|
}
|
|
@@ -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
|
-
:color="
|
|
19
|
-
>
|
|
18
|
+
:color="completed ? 'primary' : 'secondary'"
|
|
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>
|
|
@@ -51,6 +53,10 @@ const stepWithCompleted = computed(() => props.steps.map((item, idx) => ({
|
|
|
51
53
|
})));
|
|
52
54
|
</script>
|
|
53
55
|
|
|
56
|
+
<style lang="scss">
|
|
57
|
+
@import './variables.scss';
|
|
58
|
+
</style>
|
|
59
|
+
|
|
54
60
|
<style lang="scss" scoped>
|
|
55
61
|
.wt-stepper {
|
|
56
62
|
width: 100%;
|
|
@@ -74,10 +80,10 @@ const stepWithCompleted = computed(() => props.steps.map((item, idx) => ({
|
|
|
74
80
|
&__divider {
|
|
75
81
|
flex: 1 1 auto;
|
|
76
82
|
height: 1px;
|
|
77
|
-
background: var(--
|
|
83
|
+
background: var(--wt-stepper-divider-background-color);
|
|
78
84
|
|
|
79
85
|
&--completed {
|
|
80
|
-
background-color: var(--
|
|
86
|
+
background-color: var(--wt-stepper-divider-background-completed-color);
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
89
|
}
|
|
@@ -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-lighten-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
|
}
|