@webitel/ui-sdk 0.9.51 → 0.9.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "0.9.51",
3
+ "version": "0.9.55",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -92,6 +92,8 @@ export default {
92
92
  fill: var(--button-select-icon-color-dark);
93
93
  }
94
94
 
95
+ // For secondary color, the icon color and icon hover color are the same as in primary color mode
96
+
95
97
  &.danger,
96
98
  &.success,
97
99
  &.transfer {
@@ -152,18 +154,17 @@ export default {
152
154
  }
153
155
  }
154
156
  }
155
- }
156
-
157
- // SECONDARY MODE (is same for outline and normal modes)
158
- &.secondary::v-deep {
159
- .wt-icon__icon {
160
- fill: var(--button-select-icon-color-secondary);
161
- }
162
157
 
163
- &:hover,
164
- &:active {
158
+ &.secondary {
165
159
  .wt-icon__icon {
166
- fill: var(--button-select-icon-color-secondary--hover);
160
+ fill: var(--button-select-icon-color-secondary);
161
+ }
162
+
163
+ &:hover,
164
+ &:active {
165
+ .wt-icon__icon {
166
+ fill: var(--button-select-icon-color-secondary--hover);
167
+ }
167
168
  }
168
169
  }
169
170
  }
@@ -227,6 +227,7 @@ export default {
227
227
 
228
228
  methods: {
229
229
  handleSearchChange(search) {
230
+ if (!this.isApiMode) return;
230
231
  this.isLoading = true;
231
232
  this.searchParams.page = 1;
232
233
  this.searchParams.search = search;
@@ -7,6 +7,11 @@
7
7
  controls
8
8
  v-on="listeners"
9
9
  ></audio>
10
+ <wt-icon-btn
11
+ class="wt-player__close-icon"
12
+ icon="close"
13
+ @click="$emit('close')"
14
+ ></wt-icon-btn>
10
15
  </aside>
11
16
  </template>
12
17
 
@@ -84,19 +89,22 @@ export default {
84
89
  <style lang="scss">
85
90
  @import "~plyr/src/sass/plyr.scss";
86
91
 
87
- :root {
88
- --plyr-color-main: var(--main-accent-color);
89
- --plyr-audio-control-color: var(--icon-primary-color);
90
- // --plyr-control-toggle-checked-background: var(--main-primary-color);
91
- }
92
-
93
92
  .wt-player {
94
93
  @extend %typo-body-md;
95
94
  position: sticky;
96
95
  bottom: 60px;
96
+ display: flex;
97
97
  box-shadow: var(--box-shadow);
98
98
  border-radius: var(--border-radius);
99
99
 
100
+ .plyr {
101
+ flex-grow: 1;
102
+ }
103
+
104
+ &__close-icon {
105
+ margin: var(--player-close-icon-spacing) var(--player-close-icon-spacing) 0 0;
106
+ }
107
+
100
108
  .plyr__control:hover, {
101
109
  background: var(--main-option-hover-color);
102
110
  color: var(--text-primary-color);
@@ -69,11 +69,10 @@ export default {
69
69
  }),
70
70
 
71
71
  watch: {
72
- headers: {
72
+ isColumnSelectPopup: {
73
73
  handler() {
74
74
  this.fillHeadersDraft();
75
75
  },
76
- immediate: true,
77
76
  },
78
77
  },
79
78
  computed: {
@@ -38,3 +38,4 @@
38
38
  @import "organisms/wt-status-select/variables";
39
39
  @import "organisms/wt-table/variables";
40
40
  @import "organisms/wt-table-actions/variables";
41
+ @import "organisms/wt-player/variables";
@@ -0,0 +1,6 @@
1
+ .wt-player {
2
+ --plyr-color-main: var(--main-accent-color);
3
+ --plyr-audio-control-color: var(--icon-primary-color);
4
+ // --plyr-control-toggle-checked-background: var(--main-primary-color);
5
+ --player-close-icon-spacing: var(--spacing--xs);
6
+ }