@webitel/ui-sdk 3.2.124 → 3.2.126
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/ui-sdk.common.js +735 -729
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +737 -731
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +2 -1
- package/src/components/index.js +56 -59
- package/src/components/on-demand/wt-cc-agent-status-timers/__tests__/wt-cc-agent-status-timers.spec.js +25 -0
- package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +56 -0
- package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppNavigator.spec.js +1 -1
- package/src/{css/components/organisms → components}/wt-app-header/_variables.scss +1 -1
- package/src/components/wt-app-header/wt-app-header.vue +26 -0
- package/src/components/{organisms/wt-app-header → wt-app-header}/wt-app-navigator.vue +9 -9
- package/src/{css/components/atoms → components}/wt-avatar/_variables.scss +1 -1
- package/src/components/{atoms/wt-avatar → wt-avatar}/wt-avatar.vue +4 -2
- package/src/components/{atoms/wt-badge → wt-badge}/wt-badge.vue +17 -13
- package/src/{css/components/atoms → components}/wt-button/_variables.scss +0 -1
- package/src/components/{atoms/wt-button → wt-button}/wt-button.vue +2 -0
- package/src/{css/components/molecules → components}/wt-button-select/_variables.scss +1 -1
- package/src/components/{molecules/wt-button-select → wt-button-select}/wt-button-select.vue +2 -0
- package/src/components/{molecules/wt-checkbox → wt-checkbox}/__tests__/WtCheckbox.spec.js +1 -1
- package/src/components/wt-checkbox/wt-checkbox.vue +182 -0
- package/src/components/wt-chip/wt-chip.vue +24 -0
- package/src/components/{atoms/wt-context-menu → wt-context-menu}/wt-context-menu.vue +2 -0
- package/src/components/{molecules/wt-datepicker → wt-datepicker}/__tests__/WtDatepicker.spec.js +1 -1
- package/src/components/{molecules/wt-datepicker → wt-datepicker}/wt-datepicker.vue +2 -0
- package/src/components/wt-divider/wt-divider.vue +27 -0
- package/src/components/{molecules/wt-dummy → wt-dummy}/wt-dummy.vue +1 -1
- package/src/components/{organisms/wt-error-page → wt-error-page}/wt-error-page.vue +2 -2
- package/src/components/{organisms/wt-headline → wt-headline}/wt-headline.vue +2 -0
- package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/wt-headline-nav.vue +2 -0
- package/src/components/{atoms/wt-icon → wt-icon}/wt-icon.vue +17 -1
- package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/__tests__/WtIconBtn.spec.js +1 -1
- package/src/components/{molecules/wt-icon-btn → wt-icon-btn}/wt-icon-btn.vue +1 -1
- package/src/components/{atoms/wt-indicator → wt-indicator}/wt-indicator.vue +2 -0
- package/src/components/{molecules/wt-input → wt-input}/wt-input.vue +3 -1
- package/src/components/wt-input-info/wt-input-info.vue +37 -0
- package/src/components/{molecules/wt-label → wt-label}/wt-label.vue +2 -0
- package/src/components/{molecules/wt-load-bar → wt-load-bar}/wt-load-bar.vue +2 -0
- package/src/components/{atoms/wt-loader → wt-loader}/wt-loader.vue +19 -17
- package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/wt-navigation-bar.vue +15 -13
- package/src/components/{molecules/wt-notification → wt-notification}/__tests__/WtNotification.spec.js +1 -1
- package/src/components/wt-notification/wt-notification.vue +83 -0
- package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/__tests__/WtNotificationsBar.spec.js +2 -2
- package/src/components/{organisms/wt-notifications-bar → wt-notifications-bar}/wt-notifications-bar.vue +2 -0
- package/src/components/{organisms/wt-page-header → wt-page-header}/wt-page-header.vue +1 -0
- package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/wt-page-wrapper.vue +2 -0
- package/src/components/{organisms/wt-pagination → wt-pagination}/wt-pagination.vue +3 -1
- package/src/components/{organisms/wt-player → wt-player}/wt-player.vue +9 -4
- package/src/components/{molecules/wt-popup → wt-popup}/wt-popup.vue +2 -0
- package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/wt-progress-bar.vue +9 -2
- package/src/components/{molecules/wt-radio → wt-radio}/__tests__/WtRadio.spec.js +1 -1
- package/src/components/wt-radio/wt-radio.vue +177 -0
- package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/wt-rounded-action.vue +2 -0
- package/src/components/{molecules/wt-search-bar → wt-search-bar}/wt-search-bar.vue +3 -1
- package/src/{css/components/molecules → components}/wt-select/_multiselect.scss +1 -1
- package/src/components/{molecules/wt-select → wt-select}/mixins/multiselectMixin.js +3 -3
- package/src/components/{molecules/wt-select → wt-select}/wt-select.vue +2 -1
- package/src/components/{molecules/wt-slider → wt-slider}/wt-slider.vue +2 -0
- package/src/components/{organisms/wt-status-select → wt-status-select}/__tests__/WtStatusSelect.spec.js +1 -1
- package/src/components/{organisms/wt-status-select → wt-status-select}/_internals/StatusOptions.lookup.js +1 -1
- package/src/components/{organisms/wt-status-select → wt-status-select}/wt-status-select.vue +4 -2
- package/src/components/wt-switcher/wt-switcher.vue +185 -0
- package/src/components/{organisms/wt-table → wt-table}/__tests__/WtTable.spec.js +1 -1
- package/src/components/{organisms/wt-table → wt-table}/wt-table.vue +2 -0
- package/src/components/{organisms/wt-table-actions → wt-table-actions}/wt-table-actions.vue +2 -0
- package/src/components/{molecules/wt-tabs → wt-tabs}/wt-tabs.vue +2 -0
- package/src/components/{molecules/wt-tags-input → wt-tags-input}/wt-tags-input.vue +2 -1
- package/src/components/wt-textarea/wt-textarea.vue +217 -0
- package/src/components/{molecules/wt-time-input → wt-time-input}/wt-time-input.vue +1 -1
- package/src/components/{molecules/wt-timepicker → wt-timepicker}/wt-timepicker.vue +4 -2
- package/src/components/wt-tooltip/_variables.scss +11 -0
- package/src/components/{atoms/wt-tooltip → wt-tooltip}/wt-tooltip.vue +2 -0
- package/src/composables/useRepresentableAgentPauseCause/__tests__/useRepresentableAgentPauseCause.spec.js +78 -0
- package/src/composables/useRepresentableAgentPauseCause/useRepresentableAgentPauseCause.js +36 -0
- package/src/css/main.scss +0 -2
- package/src/locale/en/en.js +7 -0
- package/src/locale/ru/ru.js +7 -0
- package/src/locale/ua/ua.js +7 -0
- package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +1 -1
- package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +5 -5
- package/src/modules/AuditForm/components/audit-form.vue +1 -1
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +3 -3
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +2 -2
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +2 -2
- package/src/components/atoms/wt-chip/wt-chip.vue +0 -23
- package/src/components/atoms/wt-divider/wt-divider.vue +0 -25
- package/src/components/atoms/wt-input-info/wt-input-info.vue +0 -35
- package/src/components/molecules/wt-checkbox/wt-checkbox.vue +0 -180
- package/src/components/molecules/wt-notification/wt-notification.vue +0 -75
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -174
- package/src/components/molecules/wt-switcher/wt-switcher.vue +0 -182
- package/src/components/molecules/wt-textarea/wt-textarea.vue +0 -215
- package/src/components/organisms/wt-app-header/wt-app-header.vue +0 -24
- package/src/css/components/_components.scss +0 -45
- package/src/css/components/atoms/wt-tooltip/_variables.scss +0 -29
- package/src/css/components/molecules/wt-icon-btn/_variables.scss +0 -3
- package/src/css/components/organisms/wt-icon-action/_variables.scss +0 -0
- package/src/locale/.DS_Store +0 -0
- /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppHeader.spec.js +0 -0
- /package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtHeaderActions.spec.js +0 -0
- /package/src/components/{organisms/wt-app-header → wt-app-header}/wt-header-actions.vue +0 -0
- /package/src/components/{atoms/wt-avatar → wt-avatar}/__tests__/wt-avatar.spec.js +0 -0
- /package/src/components/{atoms/wt-badge → wt-badge}/__tests__/wt-badge.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-badge/_variables.scss +0 -0
- /package/src/components/{atoms/wt-button → wt-button}/__tests__/WtButton.spec.js +0 -0
- /package/src/components/{molecules/wt-button-select → wt-button-select}/__tests__/WtButtonSelect.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-checkbox/_variables.scss +0 -0
- /package/src/components/{atoms/wt-chip → wt-chip}/__tests__/WtChip.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-chip/_variables.scss +0 -0
- /package/src/{css/components/atoms → components}/wt-chip/wt-chip.scss +0 -0
- /package/src/components/{atoms/wt-context-menu → wt-context-menu}/__tests__/WtContextMenu.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-context-menu/_variables.scss +0 -0
- /package/src/components/{molecules/wt-copy-action → wt-copy-action}/__tests__/WtCopyAction.spec.js +0 -0
- /package/src/components/{molecules/wt-copy-action → wt-copy-action}/wt-copy-action.vue +0 -0
- /package/src/{css/components/molecules → components}/wt-datepicker/_variables.scss +0 -0
- /package/src/components/{atoms/wt-divider → wt-divider}/__tests__/WtDivider.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-divider/_variables.scss +0 -0
- /package/src/components/{molecules/wt-dummy → wt-dummy}/__tests__/WtDummy.spec.js +0 -0
- /package/src/components/{organisms/wt-error-page → wt-error-page}/__tests__/wt-error-page.spec.js +0 -0
- /package/src/components/{organisms/wt-expansion-panel → wt-expansion-panel}/__tests__/WtExpansionPanel.spec.js +0 -0
- /package/src/components/{organisms/wt-expansion-panel → wt-expansion-panel}/wt-expansion-panel.vue +0 -0
- /package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/__tests__/WtFiltersPanelWrapper.spec.js +0 -0
- /package/src/components/{organisms/wt-filters-panel-wrapper → wt-filters-panel-wrapper}/wt-filters-panel-wrapper.vue +0 -0
- /package/src/components/{organisms/wt-headline → wt-headline}/__tests__/WtHeadline.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-headline/_variables.scss +0 -0
- /package/src/components/{organisms/wt-headline-nav → wt-headline-nav}/__tests__/wt-headline-nav.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-headline-nav/_variables.scss +0 -0
- /package/src/components/{molecules/wt-hint → wt-hint}/__tests__/WtHint.spec.js +0 -0
- /package/src/components/{molecules/wt-hint → wt-hint}/wt-hint.vue +0 -0
- /package/src/components/{atoms/wt-icon → wt-icon}/__tests__/WtIcon.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-icon/_variables.scss +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/__tests__/WtIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtAddIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtDeleteIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtDownloadIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtEditIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtHistoryIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/__tests__/WtRefreshIconAction.spec.js +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-add-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-delete-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-download-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-edit-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-history-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-refresh-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-icon-action → wt-icon-action}/wt-icon-action.vue +0 -0
- /package/src/components/{atoms/wt-indicator → wt-indicator}/__tests__/WtIndicator.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-indicator/_variables.scss +0 -0
- /package/src/components/{molecules/wt-input → wt-input}/__tests__/WtInput.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-input/_variables.scss +0 -0
- /package/src/components/{atoms/wt-input-info → wt-input-info}/__tests__/WtInputInfo.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-input-info/_variables.scss +0 -0
- /package/src/components/{molecules/wt-item-link → wt-item-link}/__tests__/WtItemLink.spec.js +0 -0
- /package/src/components/{molecules/wt-item-link → wt-item-link}/wt-item-link.vue +0 -0
- /package/src/components/{molecules/wt-label → wt-label}/__tests__/WtLabel.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-label/_variables.scss +0 -0
- /package/src/components/{molecules/wt-label → wt-label}/mixins/labelUsageMixin.js +0 -0
- /package/src/components/{molecules/wt-load-bar → wt-load-bar}/__tests__/WtLoadBar.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-load-bar/_variables.scss +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/__tests__/WtLoader.spec.js +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--md.vue +0 -0
- /package/src/components/{atoms/wt-loader → wt-loader}/_internals/wt-loader--sm.vue +0 -0
- /package/src/{css/components/atoms → components}/wt-loader/_variables.scss +0 -0
- /package/src/components/{organisms/wt-navigation-bar → wt-navigation-bar}/__tests__/WtNavigationBar.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-navigation-bar/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-notification/_variables.scss +0 -0
- /package/src/{css/components/organisms → components}/wt-notifications-bar/_variables.scss +0 -0
- /package/src/components/{organisms/wt-page-header → wt-page-header}/__tests__/wt-page-header.spec.js +0 -0
- /package/src/components/{organisms/wt-page-wrapper → wt-page-wrapper}/__tests__/WtPageWrapper.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-page-wrapper/_variables.scss +0 -0
- /package/src/components/{organisms/wt-pagination → wt-pagination}/__tests__/WtPagination.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-pagination/_variables.scss +0 -0
- /package/src/components/{organisms/wt-player → wt-player}/__tests__/WtPlayer.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-player/_variables.scss +0 -0
- /package/src/components/{molecules/wt-popup → wt-popup}/__tests__/WtPopup.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-popup/_variables.scss +0 -0
- /package/src/components/{molecules/wt-progress-bar → wt-progress-bar}/__tests__/WtProgressBar.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-progress-bar/_variables.scss +0 -0
- /package/src/{css/components/molecules → components}/wt-radio/_variables.scss +0 -0
- /package/src/components/{atoms/wt-rounded-action → wt-rounded-action}/__tests__/WtRoundedAction.spec.js +0 -0
- /package/src/{css/components/atoms → components}/wt-rounded-action/_variables.scss +0 -0
- /package/src/components/{molecules/wt-search-bar → wt-search-bar}/__tests__/WtSearchBar.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-search-bar/_variables.scss +0 -0
- /package/src/components/{molecules/wt-select → wt-select}/__tests__/WtSelect.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-select/_variables.scss +0 -0
- /package/src/components/{molecules/wt-select → wt-select}/mixins/__tests__/multiselectMixin.spec.js +0 -0
- /package/src/components/{molecules/wt-slider → wt-slider}/__tests__/WtSlider.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-slider/_variables.scss +0 -0
- /package/src/{css/components/organisms → components}/wt-status-select/_variables.scss +0 -0
- /package/src/components/{organisms/wt-stepper → wt-stepper}/__tests__/WtStepper.spec.vue.js +0 -0
- /package/src/components/{organisms/wt-stepper → wt-stepper}/wt-stepper.vue +0 -0
- /package/src/components/{molecules/wt-switcher → wt-switcher}/__tests__/WtSwitcher.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-switcher/_variables.scss +0 -0
- /package/src/components/{organisms/wt-table → wt-table}/_internals/getSortOrder.js +0 -0
- /package/src/{css/components/organisms → components}/wt-table/_variables.scss +0 -0
- /package/src/components/{organisms/wt-table-actions → wt-table-actions}/__tests__/WtTableActions.spec.js +0 -0
- /package/src/{css/components/organisms → components}/wt-table-actions/_variables.scss +0 -0
- /package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/__tests__/WtTableColumnSelect.spec.js +0 -0
- /package/src/components/{organisms/wt-table-column-select → wt-table-column-select}/wt-table-column-select.vue +0 -0
- /package/src/components/{molecules/wt-tabs → wt-tabs}/__tests__/WtTabs.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-tabs/_variables.scss +0 -0
- /package/src/components/{molecules/wt-tags-input → wt-tags-input}/__tests__/WtTagsInput.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-tags-input/_variables.scss +0 -0
- /package/src/components/{molecules/wt-textarea → wt-textarea}/__tests__/WtTextarea.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-textarea/_variables.scss +0 -0
- /package/src/components/{molecules/wt-time-input → wt-time-input}/__tests__/WtTimeInput.spec.js +0 -0
- /package/src/components/{molecules/wt-timepicker → wt-timepicker}/__tests__/WtTimepicker.spec.js +0 -0
- /package/src/{css/components/molecules → components}/wt-timepicker/_variables.scss +0 -0
- /package/src/components/{atoms/wt-tooltip → wt-tooltip}/__tests__/WtTooltip.spec.js +0 -0
- /package/src/components/{atoms/wt-tooltip → wt-tooltip}/_internals/useTooltipTriggerSubscriptions.js +0 -0
- /package/src/components/{atoms/wt-tooltip → wt-tooltip}/_internals/wt-tooltip-floating.vue +0 -0
- /package/src/{scripts/validators → validators}/domainValidator.js +0 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="wt-radio"
|
|
4
|
+
:class="{
|
|
5
|
+
'wt-radio--active': isChecked,
|
|
6
|
+
'wt-radio--outline': outline,
|
|
7
|
+
'wt-radio--disabled': disabled,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<wt-label class="wt-radio__wrapper">
|
|
11
|
+
<input
|
|
12
|
+
class="wt-radio__input"
|
|
13
|
+
type="radio"
|
|
14
|
+
:value="value"
|
|
15
|
+
:checked="isChecked"
|
|
16
|
+
:disabled="disabled"
|
|
17
|
+
@input="inputHandler"
|
|
18
|
+
>
|
|
19
|
+
<wt-icon class="wt-radio__icon" :icon="radioIcon"></wt-icon>
|
|
20
|
+
<!-- @slot Custom input label -->
|
|
21
|
+
<slot name="label" v-bind="{ label, isChecked, disabled }">
|
|
22
|
+
<div v-if="label" class="wt-radio__label">{{ label }}</div>
|
|
23
|
+
</slot>
|
|
24
|
+
</wt-label>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
export default {
|
|
30
|
+
name: 'wt-radio',
|
|
31
|
+
props: {
|
|
32
|
+
// value, set by radio
|
|
33
|
+
value: {
|
|
34
|
+
type: [String, Number, Boolean, Object],
|
|
35
|
+
default: '',
|
|
36
|
+
},
|
|
37
|
+
// currently selected value
|
|
38
|
+
selected: {
|
|
39
|
+
type: [String, Number, Boolean, Object],
|
|
40
|
+
default: '',
|
|
41
|
+
},
|
|
42
|
+
label: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: '',
|
|
45
|
+
},
|
|
46
|
+
required: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false,
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
54
|
+
outline: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
model: {
|
|
60
|
+
prop: 'selected',
|
|
61
|
+
event: 'input',
|
|
62
|
+
},
|
|
63
|
+
computed: {
|
|
64
|
+
isChecked() {
|
|
65
|
+
return this.value === this.selected;
|
|
66
|
+
},
|
|
67
|
+
radioIcon() {
|
|
68
|
+
return this.isChecked ? 'radio--checked' : 'radio';
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
inputHandler() {
|
|
73
|
+
this.$emit('input', this.value);
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<style lang="scss" scoped>
|
|
80
|
+
|
|
81
|
+
@import './variables.scss';
|
|
82
|
+
|
|
83
|
+
/* Customize the label (the container) */
|
|
84
|
+
.wt-radio {
|
|
85
|
+
@include width-fit-content;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
|
|
88
|
+
.wt-label {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wt-radio__wrapper {
|
|
94
|
+
position: relative;
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
user-select: none;
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.wt-radio__label {
|
|
102
|
+
margin-left: var(--radio-icon-margin);
|
|
103
|
+
transition: var(--transition);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Hide the browser's default radio button */
|
|
107
|
+
.wt-radio__input {
|
|
108
|
+
position: absolute;
|
|
109
|
+
width: 0;
|
|
110
|
+
height: 0;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wt-radio__icon {
|
|
116
|
+
flex: 0 0 var(--icon-md-size);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.wt-radio:hover {
|
|
120
|
+
.wt-radio__label {
|
|
121
|
+
color: var(--form-label--hover-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
::v-deep .wt-icon__icon {
|
|
125
|
+
fill: var(--icon-color--hover);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.wt-radio--active {
|
|
130
|
+
.wt-radio__label {
|
|
131
|
+
color: var(--form-label--active-color);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
::v-deep .wt-icon__icon {
|
|
135
|
+
fill: var(--icon-color-active);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.wt-radio--outline {
|
|
140
|
+
.wt-radio__label {
|
|
141
|
+
color: var(--form-outline-label-color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
::v-deep .wt-icon__icon {
|
|
145
|
+
fill: var(--icon-outline-color);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.wt-radio--active {
|
|
149
|
+
.wt-radio__label {
|
|
150
|
+
color: var(--form-label--active-color);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
::v-deep .wt-icon__icon {
|
|
154
|
+
fill: var(--icon-outline--active-color);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&:hover {
|
|
159
|
+
|
|
160
|
+
::v-deep .wt-icon__icon {
|
|
161
|
+
fill: var(--icon-outline--hover-color);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.wt-radio--disabled {
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
|
|
169
|
+
.wt-radio__label {
|
|
170
|
+
color: var(--form-label--disabled-color);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
::v-deep .wt-icon__icon {
|
|
174
|
+
fill: var(--icon-color-disabled);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
</style>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup>
|
|
35
|
-
import debounce from '
|
|
35
|
+
import debounce from '../../scripts/debounce';
|
|
36
36
|
|
|
37
37
|
const props = defineProps({
|
|
38
38
|
/**
|
|
@@ -81,6 +81,8 @@ function handleKeyup(event) {
|
|
|
81
81
|
</script>
|
|
82
82
|
|
|
83
83
|
<style lang="scss" scoped>
|
|
84
|
+
@import './variables.scss';
|
|
85
|
+
|
|
84
86
|
.wt-search-bar {
|
|
85
87
|
cursor: text;
|
|
86
88
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import VueMultiselect from 'vue-multiselect';
|
|
2
2
|
import { ObserveVisibility } from 'vue-observe-visibility';
|
|
3
3
|
import validationMixin
|
|
4
|
-
from '
|
|
5
|
-
import debounce from '
|
|
6
|
-
import isEmpty from '
|
|
4
|
+
from '../../../mixins/validationMixin/validationMixin';
|
|
5
|
+
import debounce from '../../../scripts/debounce';
|
|
6
|
+
import isEmpty from '../../../scripts/isEmpty';
|
|
7
7
|
import labelUsageMixin from '../../wt-label/mixins/labelUsageMixin';
|
|
8
8
|
|
|
9
9
|
export default {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
import WtStatusSelect from '../wt-status-select.vue';
|
|
3
|
-
import WtSelect from '
|
|
3
|
+
import WtSelect from '../../wt-select/wt-select.vue';
|
|
4
4
|
|
|
5
5
|
describe('WtStatusSelect', () => {
|
|
6
6
|
it('renders a component', () => {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
|
-
import AgentStatus from '
|
|
28
|
-
import convertDuration from '
|
|
27
|
+
import AgentStatus from '../../enums/AgentStatus/AgentStatus.enum';
|
|
28
|
+
import convertDuration from '../../scripts/convertDuration';
|
|
29
29
|
import StatusOptions from './_internals/StatusOptions.lookup';
|
|
30
30
|
|
|
31
31
|
export default {
|
|
@@ -95,6 +95,8 @@ export default {
|
|
|
95
95
|
</script>
|
|
96
96
|
|
|
97
97
|
<style lang="scss" scoped>
|
|
98
|
+
@import './variables.scss';
|
|
99
|
+
|
|
98
100
|
.wt-status-select.wt-select ::v-deep {
|
|
99
101
|
box-shadow: var(--elevation-5);
|
|
100
102
|
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="wt-switcher"
|
|
4
|
+
:class="{
|
|
5
|
+
'wt-switcher--off': !value,
|
|
6
|
+
'wt-switcher--on': value,
|
|
7
|
+
'wt-switcher--disabled': disabled,
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<wt-label
|
|
11
|
+
class="wt-switcher__wrapper"
|
|
12
|
+
:class="{'wt-switcher__wrapper--label-left': labelLeft}"
|
|
13
|
+
v-bind="labelProps"
|
|
14
|
+
>
|
|
15
|
+
<input
|
|
16
|
+
class="wt-switcher__input"
|
|
17
|
+
type="checkbox"
|
|
18
|
+
:checked="value"
|
|
19
|
+
:disabled="disabled"
|
|
20
|
+
@change="inputHandler"
|
|
21
|
+
>
|
|
22
|
+
<span class="wt-switcher__checkmark"></span>
|
|
23
|
+
<!-- @slot Custom input label -->
|
|
24
|
+
<slot name="label" v-bind="{ label, value, disabled }">
|
|
25
|
+
<div v-if="label" class="wt-switcher__label">{{ label }}</div>
|
|
26
|
+
</slot>
|
|
27
|
+
</wt-label>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
export default {
|
|
33
|
+
name: 'wt-switcher',
|
|
34
|
+
props: {
|
|
35
|
+
value: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false,
|
|
38
|
+
},
|
|
39
|
+
label: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: '',
|
|
42
|
+
},
|
|
43
|
+
labelLeft: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false,
|
|
46
|
+
},
|
|
47
|
+
disabled: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false,
|
|
50
|
+
},
|
|
51
|
+
labelProps: {
|
|
52
|
+
type: Object,
|
|
53
|
+
description: 'Object with props, passed down to wt-label as props',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
model: {
|
|
57
|
+
prop: 'value',
|
|
58
|
+
event: 'change',
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
inputHandler() {
|
|
62
|
+
this.$emit('change', !this.value);
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style lang="scss" scoped>
|
|
69
|
+
@import './variables.scss';
|
|
70
|
+
|
|
71
|
+
.wt-switcher {
|
|
72
|
+
@include width-fit-content;
|
|
73
|
+
position: relative;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
|
|
76
|
+
.wt-label {
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.wt-switcher__wrapper {
|
|
82
|
+
position: relative;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
user-select: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
|
|
88
|
+
&.wt-switcher__wrapper--label-left {
|
|
89
|
+
flex-direction: row-reverse;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wt-switcher__label {
|
|
94
|
+
margin-left: var(--switcher-icon-margin);
|
|
95
|
+
transition: var(--transition);
|
|
96
|
+
|
|
97
|
+
.wt-switcher__wrapper--label-left & {
|
|
98
|
+
margin-left: 0;
|
|
99
|
+
margin-right: var(--switcher-icon-margin);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.wt-switcher:hover & {
|
|
103
|
+
color: var(--form-label--hover-color);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wt-switcher__input {
|
|
108
|
+
position: absolute;
|
|
109
|
+
width: 0;
|
|
110
|
+
height: 0;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wt-switcher__checkmark {
|
|
116
|
+
position: relative;
|
|
117
|
+
display: block;
|
|
118
|
+
flex: 0 0 var(--switcher-width);
|
|
119
|
+
width: var(--switcher-width);
|
|
120
|
+
height: var(--switcher-height);
|
|
121
|
+
border-radius: var(--switcher-border-radius);
|
|
122
|
+
transition: var(--transition);
|
|
123
|
+
|
|
124
|
+
&:before {
|
|
125
|
+
content: '';
|
|
126
|
+
position: absolute;
|
|
127
|
+
bottom: var(--switcher-cicle-margin);
|
|
128
|
+
left: var(--switcher-cicle-margin);
|
|
129
|
+
height: var(--switcher-cicle-size);
|
|
130
|
+
width: var(--switcher-cicle-size);
|
|
131
|
+
background: var(--switcher-circle-bg-color);
|
|
132
|
+
border-radius: 50%;
|
|
133
|
+
transition: var(--transition);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.wt-switcher--off {
|
|
138
|
+
.wt-switcher__checkmark {
|
|
139
|
+
background: var(--switcher-bg-color--off);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:hover {
|
|
143
|
+
.wt-switcher__checkmark {
|
|
144
|
+
background: var(--switcher-bg-color--off--hover);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.wt-switcher--disabled {
|
|
149
|
+
.wt-switcher__checkmark {
|
|
150
|
+
background: var(--switcher-bg-color--off--disabled);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.wt-switcher--on {
|
|
156
|
+
.wt-switcher__checkmark {
|
|
157
|
+
background: var(--switcher-bg-color--on);
|
|
158
|
+
|
|
159
|
+
/* Show the indicator (dot/circle) when checked */
|
|
160
|
+
&:before {
|
|
161
|
+
transform: translateX(var(--switcher-cicle-translateX));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
.wt-switcher__checkmark {
|
|
167
|
+
background: var(--switcher-bg-color--on--hover);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.wt-switcher--disabled {
|
|
172
|
+
.wt-switcher__checkmark {
|
|
173
|
+
background: var(--switcher-bg-color--on--disabled);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.wt-switcher--disabled {
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
|
|
181
|
+
.wt-switcher__label {
|
|
182
|
+
color: var(--form-label--disabled-color);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</style>
|
|
@@ -156,7 +156,8 @@ export default {
|
|
|
156
156
|
</script>
|
|
157
157
|
|
|
158
158
|
<style lang="scss" scoped>
|
|
159
|
-
@import '
|
|
159
|
+
@import './variables.scss';
|
|
160
|
+
@import '../wt-select/multiselect.scss';
|
|
160
161
|
|
|
161
162
|
.wt-tags-input {
|
|
162
163
|
width: 100%;
|