@webitel/ui-sdk 23.12.39-vite-6 → 23.12.40

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.
Files changed (135) hide show
  1. package/dist/demo.html +1 -0
  2. package/dist/img/sprite/index.js +1 -147
  3. package/dist/ui-sdk.common.js +43304 -0
  4. package/dist/ui-sdk.common.js.map +1 -0
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.umd.js +43303 -18
  7. package/dist/ui-sdk.umd.js.map +1 -0
  8. package/dist/ui-sdk.umd.min.js +35 -0
  9. package/dist/ui-sdk.umd.min.js.map +1 -0
  10. package/package.json +38 -20
  11. package/src/components/on-demand/wt-cc-agent-status-timers/wt-cc-agent-status-timers.vue +3 -3
  12. package/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js +9 -0
  13. package/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue +70 -0
  14. package/src/components/transitions/wt-expand-transition.vue +2 -2
  15. package/src/components/wt-app-header/wt-app-header.vue +2 -2
  16. package/src/components/wt-app-header/wt-app-navigator.vue +5 -6
  17. package/src/components/wt-app-header/wt-header-actions.vue +14 -30
  18. package/src/components/wt-avatar/wt-avatar.vue +2 -2
  19. package/src/components/wt-badge/wt-badge.vue +3 -3
  20. package/src/components/wt-button/wt-button.vue +3 -5
  21. package/src/components/wt-button-select/__tests__/WtButtonSelect.spec.js +4 -4
  22. package/src/components/wt-button-select/wt-button-select.vue +3 -3
  23. package/src/components/wt-checkbox/wt-checkbox.vue +7 -12
  24. package/src/components/wt-chip/wt-chip.vue +3 -6
  25. package/src/components/wt-context-menu/wt-context-menu.vue +4 -4
  26. package/src/components/wt-copy-action/wt-copy-action.vue +6 -6
  27. package/src/components/wt-datepicker/wt-datepicker.vue +12 -14
  28. package/src/components/wt-divider/wt-divider.vue +1 -1
  29. package/src/components/wt-dummy/wt-dummy.vue +2 -6
  30. package/src/components/wt-error-page/wt-error-page.vue +4 -10
  31. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -4
  32. package/src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +4 -7
  33. package/src/components/wt-headline/wt-headline.vue +4 -4
  34. package/src/components/wt-headline-nav/wt-headline-nav.vue +4 -11
  35. package/src/components/wt-hint/wt-hint.vue +4 -4
  36. package/src/components/wt-icon/wt-icon.vue +5 -5
  37. package/src/components/wt-icon-action/_internals/wt-add-icon-action.vue +2 -2
  38. package/src/components/wt-icon-action/_internals/wt-delete-icon-action.vue +2 -2
  39. package/src/components/wt-icon-action/_internals/wt-download-icon-action.vue +2 -2
  40. package/src/components/wt-icon-action/_internals/wt-edit-icon-action.vue +2 -2
  41. package/src/components/wt-icon-action/_internals/wt-history-icon-action.vue +2 -2
  42. package/src/components/wt-icon-action/_internals/wt-refresh-icon-action.vue +2 -2
  43. package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
  44. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  45. package/src/components/wt-indicator/wt-indicator.vue +3 -6
  46. package/src/components/wt-input/wt-input.vue +182 -193
  47. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  48. package/src/components/wt-item-link/wt-item-link.vue +1 -1
  49. package/src/components/wt-label/wt-label.vue +2 -2
  50. package/src/components/wt-load-bar/wt-load-bar.vue +2 -5
  51. package/src/components/wt-loader/_internals/wt-loader--md.vue +2 -11
  52. package/src/components/wt-loader/_internals/wt-loader--sm.vue +2 -9
  53. package/src/components/wt-loader/wt-loader.vue +3 -10
  54. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +8 -16
  55. package/src/components/wt-notification/wt-notification.vue +3 -3
  56. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +5 -9
  57. package/src/components/wt-page-header/wt-page-header.vue +8 -7
  58. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +5 -8
  59. package/src/components/wt-pagination/wt-pagination.vue +15 -17
  60. package/src/components/wt-player/wt-player.vue +16 -16
  61. package/src/components/wt-popup/wt-popup.vue +7 -13
  62. package/src/components/wt-progress-bar/wt-progress-bar.vue +7 -11
  63. package/src/components/wt-radio/wt-radio.vue +7 -15
  64. package/src/components/wt-rounded-action/wt-rounded-action.vue +2 -2
  65. package/src/components/wt-search-bar/__tests__/WtSearchBar.spec.js +1 -1
  66. package/src/components/wt-search-bar/wt-search-bar.vue +5 -6
  67. package/src/components/wt-select/_multiselect.scss +1 -0
  68. package/src/components/wt-select/wt-select.vue +19 -33
  69. package/src/components/wt-slider/wt-slider.vue +5 -5
  70. package/src/components/wt-status-select/wt-status-select.vue +9 -9
  71. package/src/components/wt-stepper/wt-stepper.vue +6 -8
  72. package/src/components/wt-switcher/wt-switcher.vue +7 -12
  73. package/src/components/wt-table/wt-table.vue +72 -110
  74. package/src/components/wt-table-actions/wt-table-actions.vue +14 -14
  75. package/src/components/wt-table-column-select/wt-table-column-select.vue +26 -28
  76. package/src/components/wt-tabs/wt-tabs.vue +7 -7
  77. package/src/components/wt-tags-input/wt-tags-input.vue +15 -23
  78. package/src/components/wt-textarea/wt-textarea.vue +10 -15
  79. package/src/components/wt-time-input/wt-time-input.vue +4 -7
  80. package/src/components/wt-timepicker/wt-timepicker.vue +15 -19
  81. package/src/components/wt-tooltip/_internals/wt-tooltip-floating.vue +2 -2
  82. package/src/components/wt-tooltip/wt-tooltip.vue +4 -4
  83. package/src/composables/useCachedInterval/__tests__/useCachedInterval.spec.js +5 -5
  84. package/src/css/styleguide/colors/_colors.scss +8 -9
  85. package/src/locale/en/en.js +5 -0
  86. package/src/locale/i18n.js +1 -1
  87. package/src/locale/kz/kz.js +5 -0
  88. package/src/locale/ru/ru.js +5 -0
  89. package/src/locale/ua/ua.js +5 -0
  90. package/src/mixins/validationMixin/useValidation.js +2 -2
  91. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -4
  92. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-pause-cause-popup.vue +9 -11
  93. package/src/modules/AgentStatusSelect/components/_internals/wt-cc-status-select-error-popup.vue +5 -6
  94. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +3 -3
  95. package/src/modules/AuditForm/components/__tests__/audit-form.spec.js +1 -1
  96. package/src/modules/AuditForm/components/audit-form-question-read-wrapper.vue +6 -10
  97. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +8 -8
  98. package/src/modules/AuditForm/components/audit-form-question.vue +8 -8
  99. package/src/modules/AuditForm/components/audit-form.vue +5 -6
  100. package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +4 -4
  101. package/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +4 -7
  102. package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +3 -3
  103. package/src/modules/CSVExport/__tests__/CSVExport.spec.js +2 -2
  104. package/src/modules/DeleteConfirmationPopup/__tests__/delete-confirmation-popup.spec.js +6 -6
  105. package/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue +6 -13
  106. package/src/modules/FilesExport/__tests__/FilesExport.spec.js +3 -3
  107. package/src/modules/Filters/components/filter-pagination.vue +1 -1
  108. package/src/modules/Filters/components/filter-table-fields.vue +1 -1
  109. package/src/modules/Notifications/store/__tests__/NotificationsStoreModule.actions.spec.js +3 -3
  110. package/src/modules/QueryFilters/classes/__tests__/ApiFilterSchema.spec.js +1 -1
  111. package/src/modules/QueryFilters/components/__tests__/abstract-api-filter.spec.js +4 -4
  112. package/src/modules/QueryFilters/components/__tests__/filter-datetime.spec.js +2 -2
  113. package/src/modules/QueryFilters/components/__tests__/filter-from-to.spec.js +4 -4
  114. package/src/modules/QueryFilters/components/__tests__/filter-search.spec.js +2 -2
  115. package/src/modules/QueryFilters/components/abstract-api-filter.vue +2 -2
  116. package/src/modules/QueryFilters/components/abstract-enum-filter.vue +2 -2
  117. package/src/modules/QueryFilters/components/filter-datetime.vue +2 -2
  118. package/src/modules/QueryFilters/components/filter-from-to.vue +10 -12
  119. package/src/modules/QueryFilters/components/filter-search.vue +2 -2
  120. package/src/modules/QueryFilters/components/filter-table-fields.vue +7 -7
  121. package/src/modules/QueryFilters/mixins/__tests__/apiFilterMixin.spec.js +1 -1
  122. package/src/modules/QueryFilters/mixins/__tests__/enumFilterMixin.spec.js +2 -2
  123. package/src/modules/QueryFilters/mixins/__tests__/paginationFilterMixin.spec.js +2 -2
  124. package/src/modules/QueryFilters/mixins/__tests__/sortFilterMixin.spec.js +1 -1
  125. package/src/modules/QueryFilters/store/__tests__/QueryFiltersStoreModule.spec.js +2 -2
  126. package/src/modules/Userinfo/components/__tests__/auth.spec.js +4 -4
  127. package/src/modules/Userinfo/components/the-auth.vue +4 -7
  128. package/src/scripts/saveAsJSON.js +7 -0
  129. package/src/store/BaseStoreModules/__tests__/BaseStoreModule.spec.js +6 -6
  130. package/dist/favicon.ico +0 -0
  131. package/dist/plyr.svg +0 -70
  132. package/dist/ui-sdk.mjs +0 -22678
  133. package/src/components/wt-input/Readme.md +0 -96
  134. package/src/css/styleguide/colors/reusable/_text-field.scss +0 -20
  135. package/src/locale/.DS_Store +0 -0
@@ -10,15 +10,11 @@
10
10
  </div>
11
11
  <p
12
12
  v-if="!hiddenText"
13
- class="wt-dummy__text"
14
- >
15
- {{ text || $t('webitelUI.dummy.text') }}
16
- </p>
13
+ class="wt-dummy__text">{{ text || $t('webitelUI.dummy.text') }}</p>
17
14
  <wt-button
18
15
  v-if="showAction"
19
16
  @click="emits('create')"
20
- >
21
- {{ buttonText || $t('reusable.add') }}
17
+ >{{ buttonText || $t('reusable.add') }}
22
18
  </wt-button>
23
19
  </div>
24
20
  </template>
@@ -7,18 +7,12 @@
7
7
  :alt="errorPic.alt"
8
8
  >
9
9
  <h2
10
- class="wt-error-page__title"
11
- >
12
- {{ errorTitle }}
13
- </h2>
14
- <p class="wt-error-page__text">
15
- {{ errorText }}
16
- </p>
10
+ class="wt-error-page__title">{{ errorTitle }}</h2>
11
+ <p class="wt-error-page__text">{{ errorText }}</p>
17
12
  <wt-button
18
13
  class="wt-error-page__action"
19
14
  @click="$emit('back')"
20
- >
21
- {{ $t('webitelUI.errorPages.goBack') }}
15
+ >{{ $t('webitelUI.errorPages.goBack') }}
22
16
  </wt-button>
23
17
  </article>
24
18
  </section>
@@ -29,7 +23,7 @@ import pic403 from '../../assets/components/organisms/wt-error-page/403.svg';
29
23
  import pic404 from '../../assets/components/organisms/wt-error-page/404.svg';
30
24
 
31
25
  export default {
32
- name: 'WtErrorPage',
26
+ name: 'wt-error-page',
33
27
  props: {
34
28
  type: {
35
29
  type: String,
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  :class="[{'wt-expansion-panel--opened':open},
4
- `wt-expansion-panel--${props.size}`]"
4
+ `wt-expansion-panel--${props.size}`]"
5
5
  class="wt-expansion-panel"
6
6
  >
7
7
  <div
@@ -10,14 +10,14 @@
10
10
  @click="open = !open"
11
11
  @keypress.enter="open = !open"
12
12
  >
13
- <slot name="title" />
13
+ <slot name="title"></slot>
14
14
  <wt-icon
15
15
  icon="arrow-right"
16
- />
16
+ ></wt-icon>
17
17
  </div>
18
18
  <wt-expand-transition>
19
19
  <div v-show="open">
20
- <slot />
20
+ <slot></slot>
21
21
  </div>
22
22
  </wt-expand-transition>
23
23
  </div>
@@ -1,23 +1,20 @@
1
1
  <template>
2
- <article
3
- class="filters-panel-wrapper"
4
- :class="{ 'filters-panel-wrapper--opened': isOpened }"
5
- >
2
+ <article class="filters-panel-wrapper" :class="{ 'filters-panel-wrapper--opened': isOpened }">
6
3
  <div class="filters-wrap">
7
- <slot />
4
+ <slot></slot>
8
5
  </div>
9
6
  <div class="actions-wrap">
10
7
  <wt-table-actions
11
8
  :icons="['filter-reset', 'settings']"
12
9
  @input="tableActionsHandler"
13
- />
10
+ ></wt-table-actions>
14
11
  </div>
15
12
  </article>
16
13
  </template>
17
14
 
18
15
  <script>
19
16
  export default {
20
- name: 'FiltersPanelWrapper',
17
+ name: 'filters-panel-wrapper',
21
18
  data: () => ({
22
19
  isOpened: false,
23
20
  filtersCount: 0,
@@ -3,12 +3,12 @@
3
3
  <slot>
4
4
  <slot name="title-wrapper">
5
5
  <h1 class="wt-headline__title">
6
- <slot name="title" />
6
+ <slot name="title"></slot>
7
7
  </h1>
8
8
  </slot>
9
9
  <div class="wt-headline__actions-wrapper">
10
- <slot name="search" />
11
- <slot name="actions" />
10
+ <slot name="search"></slot>
11
+ <slot name="actions"></slot>
12
12
  </div>
13
13
  </slot>
14
14
  </header>
@@ -16,7 +16,7 @@
16
16
 
17
17
  <script>
18
18
  export default {
19
- name: 'WtHeadline',
19
+ name: 'wt-headline',
20
20
  };
21
21
  </script>
22
22
 
@@ -5,22 +5,15 @@
5
5
  :key="key"
6
6
  class="wt-headline-nav__wrapper"
7
7
  >
8
- <span
9
- v-if="key !== 0"
10
- class="wt-headline-nav__indicator"
11
- />
8
+ <span v-if="key !== 0" class="wt-headline-nav__indicator"></span>
12
9
  <h1 class="wt-headline-nav__title">
13
10
  <router-link
14
11
  v-if="singlePath.route"
15
12
  :to="singlePath.route"
16
13
  class="wt-headline-nav__text wt-headline-nav__text--link"
17
- >
18
- {{ singlePath.name }}
14
+ >{{ singlePath.name }}
19
15
  </router-link>
20
- <span
21
- v-else
22
- class="wt-headline-nav__text"
23
- >{{ singlePath.name }}</span>
16
+ <span v-else class="wt-headline-nav__text">{{ singlePath.name }}</span>
24
17
  </h1>
25
18
  </div>
26
19
  </nav>
@@ -84,7 +77,7 @@ const props = defineProps({
84
77
  }
85
78
 
86
79
  .wt-headline-nav__text {
87
- color: var(--text-main-color);
80
+ color: var(--main-text-color);
88
81
  }
89
82
 
90
83
  .wt-headline-nav__wrapper:last-child {
@@ -1,18 +1,18 @@
1
1
  <template>
2
2
  <wt-tooltip class="wt-hint">
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="rounded-info"
6
6
  :color="iconColor"
7
- />
7
+ ></wt-icon-btn>
8
8
  </template>
9
- <slot />
9
+ <slot></slot>
10
10
  </wt-tooltip>
11
11
  </template>
12
12
 
13
13
  <script>
14
14
  export default {
15
- name: 'WtHint',
15
+ name: 'wt-hint',
16
16
  props: {
17
17
  iconColor: {
18
18
  type: String,
@@ -2,13 +2,13 @@
2
2
  <i
3
3
  class="wt-icon"
4
4
  :class="[
5
- `wt-icon--size-${size}`,
6
- `wt-icon--color-${color}`,
7
- { 'wt-icon--disabled': disabled },
8
- ]"
5
+ `wt-icon--size-${size}`,
6
+ `wt-icon--color-${color}`,
7
+ { 'wt-icon--disabled': disabled },
8
+ ]"
9
9
  >
10
10
  <svg class="wt-icon__icon">
11
- <use :xlink:href="iconName" />
11
+ <use :xlink:href="iconName"></use>
12
12
  </svg>
13
13
  </i>
14
14
  </template>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="plus"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.addActionHint') }}
11
11
  </wt-tooltip>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="bucket"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.deleteActionHint') }}
11
11
  </wt-tooltip>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="download"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.downloadActionHint') }}
11
11
  </wt-tooltip>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="edit"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.editActionHint') }}
11
11
  </wt-tooltip>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="history"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.historyActionHint') }}
11
11
  </wt-tooltip>
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <wt-tooltip>
3
- <template #activator>
3
+ <template v-slot:activator>
4
4
  <wt-icon-btn
5
5
  icon="refresh"
6
6
  :disabled="disabled"
7
7
  @click="emit('click')"
8
- />
8
+ ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('reusable.refresh') }}
11
11
  </wt-tooltip>
@@ -3,7 +3,7 @@
3
3
  :is="actionComponent"
4
4
  :disabled="disabled"
5
5
  @click="emit('click')"
6
- />
6
+ ></component>
7
7
  </template>
8
8
 
9
9
  <script setup>
@@ -8,7 +8,7 @@
8
8
  <wt-icon
9
9
  v-bind="$attrs"
10
10
  :disabled="disabled"
11
- />
11
+ ></wt-icon>
12
12
  </button>
13
13
  </template>
14
14
 
@@ -10,11 +10,8 @@
10
10
  :class="[
11
11
  `wt-indicator__indicator--${color}`,
12
12
  ]"
13
- />
14
- <div
15
- v-if="isText"
16
- class="wt-indicator__text"
17
- >
13
+ ></span>
14
+ <div v-if="isText" class="wt-indicator__text">
18
15
  {{ text }}
19
16
  </div>
20
17
  </div>
@@ -22,7 +19,7 @@
22
19
 
23
20
  <script>
24
21
  export default {
25
- name: 'WtIndicator',
22
+ name: 'wt-indicator',
26
23
  props: {
27
24
  color: {
28
25
  type: String,