@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
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="wt-textarea"
|
|
4
|
-
:class="{
|
|
5
|
-
'wt-textarea--disabled': disabled,
|
|
6
|
-
'wt-textarea--invalid': invalid,
|
|
7
|
-
}"
|
|
8
|
-
>
|
|
9
|
-
<wt-label
|
|
10
|
-
:for="name"
|
|
11
|
-
:disabled="disabled"
|
|
12
|
-
:invalid="invalid"
|
|
13
|
-
v-bind="labelProps"
|
|
14
|
-
>
|
|
15
|
-
<!-- @slot Custom input label -->
|
|
16
|
-
<slot name="label" v-bind="{ label }">{{ requiredLabel }}</slot>
|
|
17
|
-
</wt-label>
|
|
18
|
-
<div class="wt-textarea__wrapper">
|
|
19
|
-
<textarea
|
|
20
|
-
:id="name"
|
|
21
|
-
ref="wt-textarea"
|
|
22
|
-
class="wt-textarea__textarea"
|
|
23
|
-
:value="value"
|
|
24
|
-
:placeholder="placeholder || label"
|
|
25
|
-
:disabled="disabled"
|
|
26
|
-
v-on="listeners"
|
|
27
|
-
></textarea>
|
|
28
|
-
<div class="wt-textarea__after-wrapper" ref="after-wrapper">
|
|
29
|
-
<slot name="after-input"></slot>
|
|
30
|
-
<wt-icon-btn
|
|
31
|
-
class="wt-textarea__reset-icon-btn"
|
|
32
|
-
:class="{ 'hidden': !value }"
|
|
33
|
-
icon="close--filled"
|
|
34
|
-
size="sm"
|
|
35
|
-
:disabled="disabled"
|
|
36
|
-
@click="$emit('input', '')"
|
|
37
|
-
></wt-icon-btn>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<wt-input-info
|
|
41
|
-
v-if="isValidation"
|
|
42
|
-
:invalid="invalid"
|
|
43
|
-
>{{ validationText }}
|
|
44
|
-
</wt-input-info>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import validationMixin from '../../../mixins/validationMixin/validationMixin';
|
|
50
|
-
|
|
51
|
-
export default {
|
|
52
|
-
name: 'wt-textarea',
|
|
53
|
-
mixins: [validationMixin],
|
|
54
|
-
props: {
|
|
55
|
-
/**
|
|
56
|
-
* Current textarea value (`v-model`)
|
|
57
|
-
*/
|
|
58
|
-
value: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: '',
|
|
61
|
-
},
|
|
62
|
-
/**
|
|
63
|
-
* textarea label
|
|
64
|
-
*/
|
|
65
|
-
label: {
|
|
66
|
-
type: String,
|
|
67
|
-
default: '',
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* textarea placeholder
|
|
71
|
-
*/
|
|
72
|
-
placeholder: {
|
|
73
|
-
type: String,
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* Native textarea disabled attribute
|
|
77
|
-
*/
|
|
78
|
-
disabled: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: false,
|
|
81
|
-
description: 'Native textarea disabled attribute',
|
|
82
|
-
},
|
|
83
|
-
/**
|
|
84
|
-
* textarea name
|
|
85
|
-
*/
|
|
86
|
-
name: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: '',
|
|
89
|
-
},
|
|
90
|
-
chatMode: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false,
|
|
93
|
-
},
|
|
94
|
-
labelProps: {
|
|
95
|
-
type: Object,
|
|
96
|
-
description: 'Object with props, passed down to wt-label as props',
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
emits: ['input', 'enter'],
|
|
100
|
-
computed: {
|
|
101
|
-
listeners() {
|
|
102
|
-
return {
|
|
103
|
-
...this.$listeners,
|
|
104
|
-
input: (event) => this.$emit('input', event.target.value),
|
|
105
|
-
keypress: (event) => this.handleKeypress(event),
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
requiredLabel() {
|
|
110
|
-
return this.required ? `${this.label}*` : this.label;
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
methods: {
|
|
115
|
-
handleKeypress(event) {
|
|
116
|
-
if (!this.chatMode) return;
|
|
117
|
-
if (event.key === 'Enter' && !event.shiftKey) {
|
|
118
|
-
this.$emit('enter');
|
|
119
|
-
event.preventDefault();
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
updateInputPaddings() {
|
|
124
|
-
// cant test this thing cause vue test utils doesnt render elements width :/
|
|
125
|
-
const afterWrapperWidth = this.$refs['after-wrapper'].offsetWidth;
|
|
126
|
-
const inputEl = this.$refs['wt-textarea'];
|
|
127
|
-
const defaultInputPadding = getComputedStyle(document.documentElement)
|
|
128
|
-
.getPropertyValue('--textarea-padding');
|
|
129
|
-
inputEl.style.paddingRight = `calc(${defaultInputPadding} * 2 + ${afterWrapperWidth}px)`;
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
mounted() {
|
|
133
|
-
this.updateInputPaddings();
|
|
134
|
-
},
|
|
135
|
-
};
|
|
136
|
-
</script>
|
|
137
|
-
|
|
138
|
-
<style lang="scss" scoped>
|
|
139
|
-
.wt-textarea {
|
|
140
|
-
cursor: text;
|
|
141
|
-
|
|
142
|
-
&--disabled {
|
|
143
|
-
pointer-events: none;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.wt-textarea__wrapper {
|
|
148
|
-
position: relative;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.wt-label {
|
|
152
|
-
.wt-textarea:hover &,
|
|
153
|
-
.wt-textarea:focus-within & {
|
|
154
|
-
color: var(--form-label--hover-color);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.wt-textarea--invalid:hover &,
|
|
158
|
-
.wt-textarea--invalid:focus-within & {
|
|
159
|
-
color: var(--label--invalid-color);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.wt-textarea__textarea {
|
|
164
|
-
@extend %typo-body-1;
|
|
165
|
-
@extend %wt-scrollbar;
|
|
166
|
-
@include wt-placeholder;
|
|
167
|
-
|
|
168
|
-
display: block;
|
|
169
|
-
width: 100%;
|
|
170
|
-
min-height: var(--textarea-min-height);
|
|
171
|
-
box-sizing: border-box;
|
|
172
|
-
padding: var(--textarea-padding);
|
|
173
|
-
color: var(--form-input-color);
|
|
174
|
-
border: var(--input-border);
|
|
175
|
-
border-color: var(--form-border-color);
|
|
176
|
-
border-radius: var(--border-radius);
|
|
177
|
-
transition: var(--transition);
|
|
178
|
-
resize: none;
|
|
179
|
-
|
|
180
|
-
&:focus {
|
|
181
|
-
@include wt-placeholder('focus');
|
|
182
|
-
|
|
183
|
-
border-color: var(--form-border--hover-color);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.wt-textarea--disabled & {
|
|
187
|
-
@include wt-placeholder('disabled');
|
|
188
|
-
|
|
189
|
-
background: var(--form-border--disabled-color);
|
|
190
|
-
border-color: var(--form-border--disabled-color);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.wt-textarea--invalid &,
|
|
194
|
-
.wt-textarea--invalid:hover & {
|
|
195
|
-
border-color: var(--false-color);
|
|
196
|
-
outline: none; // prevent outline overlapping false color
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* make icons black */
|
|
201
|
-
.wt-textarea:hover ::v-deep .wt-icon-btn:not(.wt-textarea__reset-icon-btn) .wt-icon__icon,
|
|
202
|
-
.wt-textarea:focus-within ::v-deep .wt-icon-btn:not(.wt-textarea__reset-icon-btn) .wt-icon__icon {
|
|
203
|
-
fill: var(--icon-color--hover);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.wt-textarea__after-wrapper {
|
|
207
|
-
display: flex;
|
|
208
|
-
gap: var(--input-after-wrapper-gap);
|
|
209
|
-
align-items: center;
|
|
210
|
-
position: absolute;
|
|
211
|
-
top: var(--input-icon-margin);
|
|
212
|
-
right: var(--input-icon-margin);
|
|
213
|
-
pointer-events: auto; // override --disabled p-events none
|
|
214
|
-
}
|
|
215
|
-
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<header class="wt-app-header">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</header>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'wt-app-header',
|
|
10
|
-
};
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style lang="scss" scoped>
|
|
14
|
-
.wt-app-header {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
justify-content: flex-end;
|
|
18
|
-
gap: var(--wt-app-header-content-gap);
|
|
19
|
-
min-height: var(--wt-app-header-min-height); // fixed height because anything can be put inside slot, so padding won't work properly
|
|
20
|
-
padding: var(--wt-app-header-padding);
|
|
21
|
-
box-sizing: border-box;
|
|
22
|
-
background: var(--header-color);
|
|
23
|
-
}
|
|
24
|
-
</style>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
@import 'atoms/wt-avatar/variables';
|
|
2
|
-
@import 'atoms/wt-badge/variables';
|
|
3
|
-
@import 'atoms/wt-chip/variables';
|
|
4
|
-
@import "atoms/wt-button/variables";
|
|
5
|
-
@import "atoms/wt-icon/variables";
|
|
6
|
-
@import "atoms/wt-indicator/variables";
|
|
7
|
-
@import "atoms/wt-input-info/variables";
|
|
8
|
-
@import "atoms/wt-divider/variables";
|
|
9
|
-
@import "atoms/wt-label/variables";
|
|
10
|
-
@import "atoms/wt-loader/variables";
|
|
11
|
-
@import "atoms/wt-rounded-action/variables";
|
|
12
|
-
@import "atoms/wt-tooltip/variables";
|
|
13
|
-
@import "atoms/wt-context-menu/variables";
|
|
14
|
-
|
|
15
|
-
@import "molecules/wt-icon-btn/variables";
|
|
16
|
-
@import "molecules/wt-popup/variables";
|
|
17
|
-
@import "molecules/wt-progress-bar/variables";
|
|
18
|
-
@import "molecules/wt-radio/variables";
|
|
19
|
-
@import "molecules/wt-checkbox/variables";
|
|
20
|
-
@import "molecules/wt-datepicker/variables";
|
|
21
|
-
@import "molecules/wt-input/variables";
|
|
22
|
-
@import "molecules/wt-notification/variables";
|
|
23
|
-
@import "molecules/wt-search-bar/variables";
|
|
24
|
-
@import "molecules/wt-select/variables";
|
|
25
|
-
@import "molecules/wt-slider/variables";
|
|
26
|
-
@import "molecules/wt-switcher/variables";
|
|
27
|
-
@import "molecules/wt-tabs/variables";
|
|
28
|
-
@import "molecules/wt-tags-input/variables";
|
|
29
|
-
@import "molecules/wt-textarea/variables";
|
|
30
|
-
@import "molecules/wt-timepicker/variables";
|
|
31
|
-
@import "molecules/wt-button-select/variables";
|
|
32
|
-
@import "molecules/wt-load-bar/variables";
|
|
33
|
-
|
|
34
|
-
@import "organisms/wt-headline/variables";
|
|
35
|
-
@import "organisms/wt-headline-nav/variables";
|
|
36
|
-
@import "organisms/wt-app-header/variables";
|
|
37
|
-
@import "organisms/wt-navigation-bar/variables";
|
|
38
|
-
@import "organisms/wt-notifications-bar/variables";
|
|
39
|
-
@import "organisms/wt-page-wrapper/variables";
|
|
40
|
-
@import "organisms/wt-pagination/variables";
|
|
41
|
-
@import "organisms/wt-status-select/variables";
|
|
42
|
-
@import "organisms/wt-table/variables";
|
|
43
|
-
@import "organisms/wt-table-actions/variables";
|
|
44
|
-
@import "organisms/wt-player/variables";
|
|
45
|
-
@import "organisms/wt-icon-action/variables";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
:root {
|
|
3
|
-
--tooltip-padding: var(--spacing-2xs) var(--spacing-xs);
|
|
4
|
-
|
|
5
|
-
--tooltip-light-text-color: var(--text-primary-color);
|
|
6
|
-
--tooltip-light-bg-color: var(--main-color);
|
|
7
|
-
--tooltip-dark-text-color: var(--text-contrast-color);
|
|
8
|
-
--tooltip-dark-bg-color: var(--contrast-color);
|
|
9
|
-
|
|
10
|
-
--tooltip-elevation: var(--elevation-10);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// cause we need to set styles to element somewhere in the HTML, not inside .wt-tooltip scope
|
|
14
|
-
.wt-tooltip__popper .v-popper__inner {
|
|
15
|
-
@extend %typo-body-1;
|
|
16
|
-
max-width: 80vw;
|
|
17
|
-
max-height: 80vh;
|
|
18
|
-
padding: var(--tooltip-padding);
|
|
19
|
-
color: var(--tooltip-light-text-color);
|
|
20
|
-
background: var(--tooltip-light-bg-color);
|
|
21
|
-
border-radius: var(--border-radius);
|
|
22
|
-
box-shadow: var(--tooltip-elevation);
|
|
23
|
-
transition: var(--transition);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.wt-tooltip--contrast__popper .v-popper__inner {
|
|
27
|
-
color: var(--tooltip-dark-text-color);
|
|
28
|
-
background: var(--tooltip-dark-bg-color);
|
|
29
|
-
}
|
|
File without changes
|
package/src/locale/.DS_Store
DELETED
|
Binary file
|
/package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtAppHeader.spec.js
RENAMED
|
File without changes
|
/package/src/components/{organisms/wt-app-header → wt-app-header}/__tests__/WtHeaderActions.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{atoms/wt-context-menu → wt-context-menu}/__tests__/WtContextMenu.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-copy-action → wt-copy-action}/__tests__/WtCopyAction.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{organisms/wt-error-page → wt-error-page}/__tests__/wt-error-page.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/components/{organisms/wt-expansion-panel → wt-expansion-panel}/wt-expansion-panel.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{atoms/wt-icon-action → wt-icon-action}/__tests__/WtIconAction.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-add-icon-action.vue
RENAMED
|
File without changes
|
/package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-delete-icon-action.vue
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/components/{atoms/wt-icon-action → wt-icon-action}/_internals/wt-edit-icon-action.vue
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-item-link → wt-item-link}/__tests__/WtItemLink.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{organisms/wt-page-header → wt-page-header}/__tests__/wt-page-header.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{organisms/wt-pagination → wt-pagination}/__tests__/WtPagination.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-search-bar → wt-search-bar}/__tests__/WtSearchBar.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-select → wt-select}/mixins/__tests__/multiselectMixin.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-tags-input → wt-tags-input}/__tests__/WtTagsInput.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{molecules/wt-time-input → wt-time-input}/__tests__/WtTimeInput.spec.js
RENAMED
|
File without changes
|
/package/src/components/{molecules/wt-timepicker → wt-timepicker}/__tests__/WtTimepicker.spec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{atoms/wt-tooltip → wt-tooltip}/_internals/useTooltipTriggerSubscriptions.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|