@webitel/ui-sdk 0.9.42 → 0.9.46
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/img/sprite/adfs.svg +5 -0
- package/dist/img/sprite/google.svg +6 -0
- package/dist/img/sprite/index.js +2 -0
- package/dist/img/sprite/messenger-facebook.svg +2 -3
- package/dist/img/sprite/messenger-viber.svg +2 -15
- package/dist/ui-sdk.common.js +99 -99
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +99 -99
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/wt-button/wt-button.vue +2 -2
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +3 -4
- package/src/modules/QueryFilters/components/abstract-enum-filter.vue +1 -1
- package/src/modules/QueryFilters/mixins/enumFilterMixin.js +2 -22
package/package.json
CHANGED
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
&.secondary {
|
|
103
103
|
color: var(--btn-secondary-color);
|
|
104
104
|
border-color: var(--btn-secondary-color);
|
|
105
|
-
background: var(--btn-secondary-
|
|
105
|
+
background: var(--btn-secondary-color);
|
|
106
106
|
|
|
107
107
|
&:hover,
|
|
108
108
|
&:active {
|
|
109
109
|
color: var(--btn-secondary--hover-color);
|
|
110
110
|
border-color: var(--btn-secondary--hover-color);
|
|
111
|
-
background: var(--btn-secondary-
|
|
111
|
+
background: var(--btn-secondary-color);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -39,7 +39,7 @@ export default {
|
|
|
39
39
|
|
|
40
40
|
<style lang="scss" scoped>
|
|
41
41
|
.wt-context-menu {
|
|
42
|
-
@extend %typo-body-
|
|
42
|
+
@extend %typo-body-md;
|
|
43
43
|
min-width: var(--context-menu-min-width);
|
|
44
44
|
max-width: var(--context-menu-max-width);
|
|
45
45
|
background-color: var(--context-menu-background-color);
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
--btn-dark-font-color: #000;
|
|
24
24
|
--btn-light-font-color: #fff;
|
|
25
25
|
|
|
26
|
-
--btn-primary-color: var(--
|
|
26
|
+
--btn-primary-color: var(--accent-color);
|
|
27
27
|
--btn-primary--hover-color: #EFB917;
|
|
28
28
|
|
|
29
|
-
--btn-secondary-color:
|
|
30
|
-
--btn-secondary-
|
|
31
|
-
--btn-secondary--hover-color: #000;
|
|
29
|
+
--btn-secondary-color: hsla(var(--_secondary-color), var(--_opacity--default));
|
|
30
|
+
--btn-secondary--hover-color: hsla(var(--_secondary-color), var(--_opacity--hover));
|
|
32
31
|
|
|
33
32
|
--btn-disabled-color: var(--disabled-color);
|
|
34
33
|
--btn-disabled-bg-color: transparent;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import baseFilterMixin from './baseFilterMixin/baseFilterMixin';
|
|
2
|
-
import isEmpty from '../../../scripts/isEmpty';
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
mixins: [baseFilterMixin],
|
|
@@ -19,25 +18,6 @@ export default {
|
|
|
19
18
|
closeOnSelect() {
|
|
20
19
|
return this.filterSchema?.storedProp;
|
|
21
20
|
},
|
|
22
|
-
localizedValue() {
|
|
23
|
-
if (isEmpty(this.value)) return this.value;
|
|
24
|
-
if (Array.isArray(this.value)) {
|
|
25
|
-
const valueHasLocale = this.value.length && this.value[0].locale; // just check 1st el
|
|
26
|
-
if (valueHasLocale) {
|
|
27
|
-
return this.value.map((val) => ({
|
|
28
|
-
...val,
|
|
29
|
-
name: Array.isArray(val.locale) ? this.$tc(...val.locale) : this.$t(val.locale),
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (typeof this.value === 'object' && this.value.locale) {
|
|
34
|
-
return {
|
|
35
|
-
...this.value,
|
|
36
|
-
name: Array.isArray(this.value.locale) ? this.$tc(...this.value.locale) : this.$t(this.value.locale),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return this.value;
|
|
40
|
-
},
|
|
41
21
|
localizedOptions() {
|
|
42
22
|
const optsHaveLocale = this.options.length && this.options[0].locale; // just check 1st el
|
|
43
23
|
if (optsHaveLocale) {
|
|
@@ -53,11 +33,11 @@ export default {
|
|
|
53
33
|
restoreValue(value) {
|
|
54
34
|
let newValue;
|
|
55
35
|
if (Array.isArray(value)) {
|
|
56
|
-
newValue = this.
|
|
36
|
+
newValue = this.localizedOptions
|
|
57
37
|
.filter((option) => value
|
|
58
38
|
.some((value) => value === option[this.storedProp]));
|
|
59
39
|
} else {
|
|
60
|
-
newValue = this.
|
|
40
|
+
newValue = this.localizedOptions
|
|
61
41
|
.find((option) => value === option[this.storedProp]);
|
|
62
42
|
}
|
|
63
43
|
this.setValue({ filter: this.filterQuery, value: newValue });
|