mediacube-ui 0.1.346 → 0.1.348
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/CHANGELOG.md +4 -0
- package/dist/mediacube-ui.umd.js +1 -0
- package/package.json +13 -8
- package/src/assets/tokens/tokens.json +5 -0
- package/src/elements/McAvatar/McAvatar.vue +2 -0
- package/src/elements/McBadge/McBadge.vue +5 -0
- package/src/elements/McButton/McButton.vue +9 -0
- package/src/elements/McChip/McChip.vue +6 -1
- package/src/elements/McCropper/McCropper.vue +2 -0
- package/src/elements/McDate/McDate.vue +2 -0
- package/src/elements/McDatePicker/McDatePicker.vue +10 -2
- package/src/elements/McField/McFieldCheckbox/McFieldCheckbox.vue +7 -0
- package/src/elements/McField/McFieldRadio/McFieldRadioButton/McFieldRadioButton.vue +6 -0
- package/src/elements/McField/McFieldRadio/McFieldRadioGroup/McFieldRadioGroup.vue +4 -0
- package/src/elements/McField/McFieldSelect/McFieldSelect.vue +1 -0
- package/src/elements/McField/McFieldText/McFieldText.vue +13 -5
- package/src/elements/McField/McFieldToggle/McFieldToggle.vue +5 -0
- package/src/elements/McNotification/McNotification.vue +6 -0
- package/src/elements/McProgress/McProgress.vue +5 -0
- package/src/elements/McRangeSlider/McRangeSlider.vue +4 -0
- package/src/elements/McSvgIcon/McSvgIcon.vue +1 -0
- package/src/elements/McTabs/McTab/McTab.vue +2 -0
- package/src/elements/McTabs/McTabs/McTabs.vue +7 -0
- package/src/elements/McTitle/McTitle.vue +5 -0
- package/src/elements/McTooltip/McTooltip.vue +5 -0
- package/src/helpers/storybookFunctions.js +0 -1
- package/src/patterns/McCells/McCell/McCell.vue +1 -0
- package/src/patterns/McChat/McChat.vue +1 -0
- package/src/patterns/McChat/McChatComment/McChatComment.vue +4 -1
- package/src/patterns/McChat/McChatForm/McChatForm.vue +3 -0
- package/src/patterns/McCollapse/McCollapse.vue +2 -0
- package/src/patterns/McDrawer/McDrawer.vue +4 -0
- package/src/patterns/McDropdown/McDropdown.vue +2 -0
- package/src/patterns/McDropdown/McDropdownPanel/McDropdownPanel.vue +4 -0
- package/src/patterns/McFakeScroll/McFakeScroll.vue +2 -0
- package/src/patterns/McFilter/McFilterChip/McFilterChip.vue +2 -0
- package/src/patterns/McFilter/McFilterTags/McFilterTags.vue +2 -0
- package/src/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue +1 -0
- package/src/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue +3 -0
- package/src/patterns/McFilter/McFilterTypeSimple/McFilterTypeSimple.vue +4 -1
- package/src/patterns/McGrid/McGridCol/McGridCol.vue +1 -0
- package/src/patterns/McModal/McModal.vue +7 -1
- package/src/patterns/McOverlay/McOverlay.vue +1 -0
- package/src/patterns/McPreview/McPreview.vue +1 -0
- package/src/patterns/McSideBar/McSideBar/McSideBar.vue +2 -0
- package/src/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue +1 -0
- package/src/patterns/McSideBar/McSideBarButton/McSideBarButton.vue +5 -0
- package/src/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue +2 -0
- package/src/patterns/McSideBar/McSideBarTop/McSideBarTop.vue +5 -0
- package/src/patterns/McStack/McStack.vue +5 -0
- package/src/patterns/McTable/McTable/McTable.vue +7 -1
- package/src/patterns/McTable/McTableCol/McTableCol.vue +6 -3
- package/src/patterns/McTableCard/McTableCard.vue +3 -0
- package/src/patterns/McTableCard/McTableCardHeader/McTableCardHeader.vue +2 -0
- package/src/patterns/McTopBar/McTopBar.vue +2 -0
- package/src/patterns/McWrapScroll/McWrapScroll.vue +2 -0
- package/src/styles/_functions.scss +2 -0
- package/src/styles/_mixins.scss +7 -0
- package/src/styles/global.scss +3 -0
- package/src/styles/table.scss +2 -0
- package/src/styles/toast.scss +4 -0
- package/src/utils/filters.js +6 -6
- package/src/utils/load-icons.js +1 -1
- package/src/utils/treeSearch.js +23 -23
- package/dist/mediacube-ui.common.js +0 -378
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediacube-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.348",
|
|
4
4
|
"description": "Design system for Mediacube services",
|
|
5
5
|
"author": "Mediacube",
|
|
6
6
|
"private": false,
|
|
7
7
|
"homepage": "https://mediacube.co",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"main": "dist/mediacube-ui.
|
|
9
|
+
"main": "dist/mediacube-ui.umd.js",
|
|
10
10
|
"files": [
|
|
11
11
|
"src/assets/fonts",
|
|
12
12
|
"src/assets/img",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"src/main.js"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"start": "
|
|
26
|
+
"start": "start-storybook -p 6006 -s public",
|
|
27
27
|
"build-storybook": "build-storybook",
|
|
28
|
-
"serve": "
|
|
29
|
-
"build": "
|
|
28
|
+
"serve": "vue-cli-service serve",
|
|
29
|
+
"build": "vue-cli-service build",
|
|
30
30
|
"test:unit": "vue-cli-service test:unit",
|
|
31
31
|
"lint": "vue-cli-service lint",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"release": "node createsvgsprite.js && standard-version",
|
|
33
|
+
"build:lib": "webpack --config webpack.config.js"
|
|
34
34
|
},
|
|
35
35
|
"husky": {
|
|
36
36
|
"hooks": {
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
"webfontloader": "^1.6.28",
|
|
66
66
|
"xe-utils": "2.7.2"
|
|
67
67
|
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"vue": "^2.6.11"
|
|
70
|
+
},
|
|
68
71
|
"devDependencies": {
|
|
69
72
|
"@babel/core": "^7.12.10",
|
|
70
73
|
"@babel/plugin-proposal-optional-chaining": "^7.12.7",
|
|
@@ -97,13 +100,13 @@
|
|
|
97
100
|
"eslint-loader": "^4.0.2",
|
|
98
101
|
"eslint-plugin-prettier": "^3.1.3",
|
|
99
102
|
"eslint-plugin-vue": "^6.2.2",
|
|
103
|
+
"file-loader": "^6.2.0",
|
|
100
104
|
"husky": "^4.3.0",
|
|
101
105
|
"jest-vue-preprocessor": "^1.7.1",
|
|
102
106
|
"lint-staged": "^10.5.1",
|
|
103
107
|
"node-sass": "^4.14.1",
|
|
104
108
|
"numeral": "^2.0.6",
|
|
105
109
|
"prettier": "^1.19.1",
|
|
106
|
-
"sass-export": "^1.0.8",
|
|
107
110
|
"sass-loader": "^8.0.2",
|
|
108
111
|
"sass-resources-loader": "^2.0.3",
|
|
109
112
|
"standard-version": "^8.0.0",
|
|
@@ -116,6 +119,8 @@
|
|
|
116
119
|
"vue-slider-component": "^3.2.2",
|
|
117
120
|
"vue-style-loader": "^4.1.2",
|
|
118
121
|
"vue-template-compiler": "^2.6.11",
|
|
122
|
+
"webpack": "4.x",
|
|
123
|
+
"webpack-cli": "3.x",
|
|
119
124
|
"xe-clipboard": "^1.9.0"
|
|
120
125
|
}
|
|
121
126
|
}
|
|
@@ -686,6 +686,11 @@
|
|
|
686
686
|
"value": "linear-gradient(277.29deg, #d6e8ff 5.67%, #efe9ff 94.33%)",
|
|
687
687
|
"compiledValue": "linear-gradient(277.29deg, #d6e8ff 5.67%, #efe9ff 94.33%)"
|
|
688
688
|
},
|
|
689
|
+
{
|
|
690
|
+
"name": "$gradient-purple-blue",
|
|
691
|
+
"value": "linear-gradient(272.54deg, #18bfe3 17.19%, #8756ff 70.31%)",
|
|
692
|
+
"compiledValue": "linear-gradient(272.54deg, #18bfe3 17.19%, #8756ff 70.31%)"
|
|
693
|
+
},
|
|
689
694
|
{
|
|
690
695
|
"name": "$gradient-primary-radial",
|
|
691
696
|
"value": "radial-gradient(rgb(179, 211, 255), rgb(62, 132, 244))",
|
|
@@ -188,6 +188,8 @@ export default {
|
|
|
188
188
|
<style lang="scss">
|
|
189
189
|
@import '../../styles/mixins';
|
|
190
190
|
@import '../../tokens/durations';
|
|
191
|
+
@import '../../tokens/colors';
|
|
192
|
+
@import '../../tokens/spacings';
|
|
191
193
|
$color-borders: $token-colors;
|
|
192
194
|
$dot-colors: $token-colors;
|
|
193
195
|
|
|
@@ -97,6 +97,11 @@ export default {
|
|
|
97
97
|
@import '../../styles/mixins';
|
|
98
98
|
@import '../../tokens/font-families';
|
|
99
99
|
@import '../../tokens/letter-spacings';
|
|
100
|
+
@import '../../tokens/colors';
|
|
101
|
+
@import '../../tokens/font-sizes';
|
|
102
|
+
@import '../../tokens/line-heights';
|
|
103
|
+
@import '../../tokens/font-weights';
|
|
104
|
+
@import '../../tokens/spacings';
|
|
100
105
|
.mc-badge {
|
|
101
106
|
$block-name: &;
|
|
102
107
|
--mc-badge-color: #{$color-white};
|
|
@@ -50,6 +50,7 @@ export default {
|
|
|
50
50
|
* Если нужна ссылка внутри приложения:
|
|
51
51
|
* `{name: 'test', params: { id: test.id }}`
|
|
52
52
|
*/
|
|
53
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
53
54
|
to: {
|
|
54
55
|
default: null,
|
|
55
56
|
},
|
|
@@ -57,6 +58,7 @@ export default {
|
|
|
57
58
|
* Если нужна обычная ссылка:
|
|
58
59
|
* `https://mediacube.agency/`
|
|
59
60
|
*/
|
|
61
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
60
62
|
href: {
|
|
61
63
|
default: null,
|
|
62
64
|
},
|
|
@@ -422,6 +424,13 @@ export default {
|
|
|
422
424
|
@import '../../tokens/font-families';
|
|
423
425
|
@import '../../tokens/letter-spacings';
|
|
424
426
|
@import '../../tokens/animations';
|
|
427
|
+
@import '../../tokens/colors';
|
|
428
|
+
@import '../../tokens/font-weights';
|
|
429
|
+
@import '../../tokens/media-queries';
|
|
430
|
+
@import '../../tokens/sizes';
|
|
431
|
+
@import '../../tokens/spacings';
|
|
432
|
+
@import '../../tokens/line-heights';
|
|
433
|
+
@import '../../tokens/font-sizes';
|
|
425
434
|
.mc-button {
|
|
426
435
|
$block-name: &;
|
|
427
436
|
@include reset();
|
|
@@ -123,6 +123,11 @@ export default {
|
|
|
123
123
|
@import '../../styles/mixins';
|
|
124
124
|
@import '../../tokens/durations';
|
|
125
125
|
@import '../../tokens/font-families';
|
|
126
|
+
@import '../../tokens/colors';
|
|
127
|
+
@import '../../tokens/font-sizes';
|
|
128
|
+
@import '../../tokens/line-heights';
|
|
129
|
+
@import '../../tokens/spacings';
|
|
130
|
+
@import '../../tokens/sizes';
|
|
126
131
|
.mc-chip {
|
|
127
132
|
$block-name: &;
|
|
128
133
|
--mc-chip-text-color: #{$color-black};
|
|
@@ -292,7 +297,7 @@ export default {
|
|
|
292
297
|
color: $color-black;
|
|
293
298
|
&:before {
|
|
294
299
|
background-color: var(--mc-chip-color);
|
|
295
|
-
opacity: 0.
|
|
300
|
+
opacity: 0.1;
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
303
|
}
|
|
@@ -35,6 +35,7 @@ export default {
|
|
|
35
35
|
/**
|
|
36
36
|
* Формат даты
|
|
37
37
|
*/
|
|
38
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
38
39
|
format: {
|
|
39
40
|
default: 'DD.MM.YYYY',
|
|
40
41
|
},
|
|
@@ -90,6 +91,7 @@ export default {
|
|
|
90
91
|
<style lang="scss">
|
|
91
92
|
@import '../../styles/mixins';
|
|
92
93
|
@import '../../tokens/font-families';
|
|
94
|
+
@import '../../tokens/spacings';
|
|
93
95
|
.mc-date {
|
|
94
96
|
$block-name: &;
|
|
95
97
|
|
|
@@ -188,6 +188,7 @@ export default {
|
|
|
188
188
|
/**
|
|
189
189
|
* Значение
|
|
190
190
|
*/
|
|
191
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
191
192
|
value: {
|
|
192
193
|
default: null,
|
|
193
194
|
},
|
|
@@ -403,8 +404,8 @@ export default {
|
|
|
403
404
|
return this.useFormat || (!this.setDefaultToday && !this.value)
|
|
404
405
|
? this.value
|
|
405
406
|
: this.value
|
|
406
|
-
|
|
407
|
-
|
|
407
|
+
? new Date(this.value)
|
|
408
|
+
: new Date()
|
|
408
409
|
}
|
|
409
410
|
const formattingDate = date =>
|
|
410
411
|
dayjs.tz(dayjs.utc(date, 'YYYY-MM-DD HH:mm:ss'), this.currentTimezone).format(this.format)
|
|
@@ -584,6 +585,13 @@ export default {
|
|
|
584
585
|
@import '../../styles/mixins';
|
|
585
586
|
@import '../../tokens/font-families';
|
|
586
587
|
@import '../../tokens/box-shadows';
|
|
588
|
+
@import '../../tokens/spacings';
|
|
589
|
+
@import '../../tokens/colors';
|
|
590
|
+
@import '../../tokens/sizes';
|
|
591
|
+
@import '../../tokens/font-sizes';
|
|
592
|
+
@import '../../tokens/font-weights';
|
|
593
|
+
@import '../../tokens/line-heights';
|
|
594
|
+
@import '../../tokens/media-queries';
|
|
587
595
|
.mc-date-picker {
|
|
588
596
|
$block-name: &;
|
|
589
597
|
|
|
@@ -68,6 +68,7 @@ export default {
|
|
|
68
68
|
* Значение
|
|
69
69
|
*
|
|
70
70
|
*/
|
|
71
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
71
72
|
value: {
|
|
72
73
|
default: null,
|
|
73
74
|
},
|
|
@@ -85,6 +86,7 @@ export default {
|
|
|
85
86
|
* Выбранное значение
|
|
86
87
|
*
|
|
87
88
|
*/
|
|
89
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
88
90
|
checkedValue: {
|
|
89
91
|
default: true,
|
|
90
92
|
},
|
|
@@ -93,6 +95,7 @@ export default {
|
|
|
93
95
|
* Невыбранное значение
|
|
94
96
|
*
|
|
95
97
|
*/
|
|
98
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
96
99
|
uncheckedValue: {
|
|
97
100
|
default: false,
|
|
98
101
|
},
|
|
@@ -223,6 +226,10 @@ export default {
|
|
|
223
226
|
|
|
224
227
|
<style lang="scss">
|
|
225
228
|
@import '../../../styles/mixins';
|
|
229
|
+
@import '../../../tokens/spacings';
|
|
230
|
+
@import '../../../tokens/line-heights';
|
|
231
|
+
@import '../../../tokens/font-sizes';
|
|
232
|
+
@import '../../../tokens/colors';
|
|
226
233
|
.mc-field-checkbox {
|
|
227
234
|
$block-name: &;
|
|
228
235
|
position: relative;
|
|
@@ -33,6 +33,7 @@ export default {
|
|
|
33
33
|
/**
|
|
34
34
|
* Значение
|
|
35
35
|
*/
|
|
36
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
36
37
|
value: {
|
|
37
38
|
default: null,
|
|
38
39
|
},
|
|
@@ -152,6 +153,11 @@ export default {
|
|
|
152
153
|
|
|
153
154
|
<style lang="scss">
|
|
154
155
|
@import '../../../../styles/mixins';
|
|
156
|
+
@import '../../../../tokens/sizes';
|
|
157
|
+
@import '../../../../tokens/spacings';
|
|
158
|
+
@import '../../../../tokens/font-sizes';
|
|
159
|
+
@import '../../../../tokens/line-heights';
|
|
160
|
+
@import '../../../../tokens/colors';
|
|
155
161
|
.mc-field-radio-button {
|
|
156
162
|
$block-name: &;
|
|
157
163
|
display: inline-block;
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
/**
|
|
49
49
|
* Значение
|
|
50
50
|
*/
|
|
51
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
51
52
|
value: {
|
|
52
53
|
default: null,
|
|
53
54
|
},
|
|
@@ -157,6 +158,9 @@ export default {
|
|
|
157
158
|
|
|
158
159
|
<style lang="scss">
|
|
159
160
|
@import '../../../../styles/mixins';
|
|
161
|
+
@import '../../../../tokens/spacings';
|
|
162
|
+
@import '../../../../tokens/sizes';
|
|
163
|
+
@import '../../../../tokens/line-heights';
|
|
160
164
|
.mc-field-radio-group {
|
|
161
165
|
$block-name: &;
|
|
162
166
|
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
<mc-button v-if="copy" variation="black-link" size="m-compact" @click.prevent="handlerCopy(value)">
|
|
63
63
|
<mc-svg-icon slot="icon-append" name="copy" />
|
|
64
64
|
</mc-button>
|
|
65
|
+
<!-- eslint-disable-next-line -->
|
|
65
66
|
<component v-bind="passwordTooltipProps">
|
|
66
67
|
<mc-button
|
|
67
68
|
v-if="isPassword"
|
|
@@ -205,6 +206,7 @@ export default {
|
|
|
205
206
|
* Значение
|
|
206
207
|
*
|
|
207
208
|
*/
|
|
209
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
208
210
|
value: {
|
|
209
211
|
default: null,
|
|
210
212
|
},
|
|
@@ -595,6 +597,7 @@ export default {
|
|
|
595
597
|
if (number_types.includes(this.type)) value = value?.replace(',', '.')
|
|
596
598
|
switch (this.type) {
|
|
597
599
|
case 'num': {
|
|
600
|
+
//eslint-disable-next-line
|
|
598
601
|
let [num] = /-?\d*[\.]?\d*/.exec(String(value)) || []
|
|
599
602
|
num = this.setDecimalsLimit(num)
|
|
600
603
|
num = this.removeLeadingZero(num)
|
|
@@ -644,6 +647,7 @@ export default {
|
|
|
644
647
|
break
|
|
645
648
|
}
|
|
646
649
|
case 'password':
|
|
650
|
+
//eslint-disable-next-line
|
|
647
651
|
const cursor_position = this.getCaretPos(e.target)?.start
|
|
648
652
|
value = value?.replace(/ /gm, '')
|
|
649
653
|
e.target.value = value
|
|
@@ -675,8 +679,8 @@ export default {
|
|
|
675
679
|
this.$emit('keydown', e)
|
|
676
680
|
},
|
|
677
681
|
formattedToNumber(value) {
|
|
678
|
-
|
|
679
|
-
|
|
682
|
+
//eslint-disable-next-line
|
|
683
|
+
const [first] = /-?\d*[\.]?\d*/.exec(
|
|
680
684
|
String(value)
|
|
681
685
|
?.replace(/ /gm, '')
|
|
682
686
|
?.trim(),
|
|
@@ -719,9 +723,8 @@ export default {
|
|
|
719
723
|
getAmountFormat(value) {
|
|
720
724
|
const formatted_number = this.formattedToNumber(value)
|
|
721
725
|
const has_fraction = !!String(formatted_number)?.match(/\./)
|
|
722
|
-
|
|
723
|
-
const [int, fraction] = String(formatted_number)
|
|
724
|
-
.replace(/[^\d\.-]/g, '')
|
|
726
|
+
//eslint-disable-next-line
|
|
727
|
+
const [int, fraction] = String(formatted_number).replace(/[^\d\.-]/g, '')
|
|
725
728
|
.replace(/\B(?=(?:\d{3})+(?!\d))/g, ' ')
|
|
726
729
|
.split('.')
|
|
727
730
|
|
|
@@ -786,6 +789,11 @@ export default {
|
|
|
786
789
|
@import '../../../styles/mixins';
|
|
787
790
|
@import '../../../tokens/durations';
|
|
788
791
|
@import '../../../tokens/font-families';
|
|
792
|
+
@import '../../../tokens/spacings';
|
|
793
|
+
@import '../../../tokens/sizes';
|
|
794
|
+
@import '../../../tokens/colors';
|
|
795
|
+
@import '../../../tokens/line-heights';
|
|
796
|
+
@import '../../../tokens/font-sizes';
|
|
789
797
|
.mc-field-text {
|
|
790
798
|
$block-name: &;
|
|
791
799
|
display: block;
|
|
@@ -155,6 +155,11 @@ export default {
|
|
|
155
155
|
<style lang="scss">
|
|
156
156
|
@import '../../../styles/mixins';
|
|
157
157
|
@import '../../../tokens/durations';
|
|
158
|
+
@import '../../../tokens/colors';
|
|
159
|
+
@import '../../../tokens/font-sizes';
|
|
160
|
+
@import '../../../tokens/line-heights';
|
|
161
|
+
@import '../../../tokens/spacings';
|
|
162
|
+
@import '../../../tokens/sizes';
|
|
158
163
|
.mc-field-toggle {
|
|
159
164
|
$block-name: &;
|
|
160
165
|
$toggle-indent: calc(#{$space-50} / 2);
|
|
@@ -127,6 +127,12 @@ export default {
|
|
|
127
127
|
|
|
128
128
|
<style lang="scss">
|
|
129
129
|
@import '../../styles/mixins';
|
|
130
|
+
@import '../../tokens/colors';
|
|
131
|
+
@import '../../tokens/font-sizes';
|
|
132
|
+
@import '../../tokens/line-heights';
|
|
133
|
+
@import '../../tokens/sizes';
|
|
134
|
+
@import '../../tokens/spacings';
|
|
135
|
+
@import '../../tokens/media-queries';
|
|
130
136
|
.mc-notification {
|
|
131
137
|
$block-name: &;
|
|
132
138
|
--mc-notification-color: #{$color-orange};
|
|
@@ -154,6 +154,11 @@ export default {
|
|
|
154
154
|
<style lang="scss">
|
|
155
155
|
@import '../../tokens/border-radius';
|
|
156
156
|
@import '../../tokens/font-families';
|
|
157
|
+
@import '../../tokens/colors';
|
|
158
|
+
@import '../../tokens/line-heights';
|
|
159
|
+
@import '../../tokens/font-sizes';
|
|
160
|
+
@import '../../tokens/sizes';
|
|
161
|
+
@import '../../tokens/spacings';
|
|
157
162
|
.mc-progress {
|
|
158
163
|
$block-name: &;
|
|
159
164
|
--mc-progress-color: #{$color-dark-gray};
|
|
@@ -147,6 +147,10 @@ export default {
|
|
|
147
147
|
|
|
148
148
|
<style lang="scss">
|
|
149
149
|
@import '../../tokens/box-shadows';
|
|
150
|
+
@import '../../tokens/line-heights';
|
|
151
|
+
@import '../../tokens/font-sizes';
|
|
152
|
+
@import '../../tokens/spacings';
|
|
153
|
+
@import '../../tokens/colors';
|
|
150
154
|
.mc-range-slider {
|
|
151
155
|
$block-name: &;
|
|
152
156
|
--mc-range-slider-color: #{$color-purple};
|
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
/**
|
|
32
32
|
* Имя таба
|
|
33
33
|
*/
|
|
34
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
34
35
|
name: {
|
|
35
36
|
required: true,
|
|
36
37
|
},
|
|
@@ -104,6 +105,7 @@ export default {
|
|
|
104
105
|
* Если нужна ссылка внутри приложения:
|
|
105
106
|
* `{name: 'test', params: { id: test.id }}`
|
|
106
107
|
*/
|
|
108
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
107
109
|
to: {
|
|
108
110
|
default: null,
|
|
109
111
|
},
|
|
@@ -73,9 +73,11 @@ export default {
|
|
|
73
73
|
type: Number,
|
|
74
74
|
default: 0,
|
|
75
75
|
},
|
|
76
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
76
77
|
useUrlFragment: {
|
|
77
78
|
default: false,
|
|
78
79
|
},
|
|
80
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
79
81
|
defaultTabHash: {
|
|
80
82
|
default: null,
|
|
81
83
|
},
|
|
@@ -372,6 +374,11 @@ export default {
|
|
|
372
374
|
@import '../../../styles/mixins';
|
|
373
375
|
@import '../../../tokens/z-indexes';
|
|
374
376
|
@import '../../../tokens/font-families';
|
|
377
|
+
@import '../../../tokens/colors';
|
|
378
|
+
@import '../../../tokens/font-sizes';
|
|
379
|
+
@import '../../../tokens/line-heights';
|
|
380
|
+
@import '../../../tokens/font-weights';
|
|
381
|
+
@import '../../../tokens/spacings';
|
|
375
382
|
.mc-tabs {
|
|
376
383
|
$block-name: &;
|
|
377
384
|
|
|
@@ -169,6 +169,11 @@ export default {
|
|
|
169
169
|
@import '../../styles/mixins';
|
|
170
170
|
@import '../../tokens/font-families';
|
|
171
171
|
@import '../../tokens/letter-spacings';
|
|
172
|
+
@import '../../tokens/font-sizes';
|
|
173
|
+
@import '../../tokens/line-heights';
|
|
174
|
+
@import '../../tokens/font-weights';
|
|
175
|
+
@import '../../tokens/spacings';
|
|
176
|
+
@import '../../tokens/media-queries';
|
|
172
177
|
.mc-title {
|
|
173
178
|
$block-name: &;
|
|
174
179
|
--mc-title-color: initial;
|
|
@@ -78,6 +78,7 @@ export default {
|
|
|
78
78
|
/**
|
|
79
79
|
* В каком контенере отображать
|
|
80
80
|
*/
|
|
81
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
81
82
|
container: {
|
|
82
83
|
default: 'body', //Boolean, String, HTMLElement,
|
|
83
84
|
},
|
|
@@ -142,6 +143,10 @@ export default {
|
|
|
142
143
|
@import '../../tokens/durations';
|
|
143
144
|
@import '../../tokens/font-families';
|
|
144
145
|
@import '../../tokens/box-shadows';
|
|
146
|
+
@import '../../tokens/spacings';
|
|
147
|
+
@import '../../tokens/colors';
|
|
148
|
+
@import '../../tokens/line-heights';
|
|
149
|
+
@import '../../tokens/font-sizes';
|
|
145
150
|
.mc-tooltip-target {
|
|
146
151
|
display: inline-flex;
|
|
147
152
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
v-html="filteredComment"
|
|
27
27
|
/>
|
|
28
28
|
<mc-title v-if="comment.message" slot="bottom" :ellipsis="false" pre-line class="mc-chat-comment__message"
|
|
29
|
-
|
|
29
|
+
>{{ comment.message }}
|
|
30
30
|
</mc-title>
|
|
31
31
|
<mc-button
|
|
32
32
|
v-if="canEdit"
|
|
@@ -125,6 +125,7 @@ export default {
|
|
|
125
125
|
return nl2br ? nl2br(this.commentWithLinks) : this.commentWithLinks
|
|
126
126
|
},
|
|
127
127
|
commentWithLinks() {
|
|
128
|
+
//eslint-disable-next-line
|
|
128
129
|
const regExp = /((http|https):\/\/)?(([0-9a-zA-Zа-яА-Я.-]*)\.([a-zA-Zа-яА-Я]+[^\s,.;:'"\])]+)(\/[^ ,.;\/\])]*)?)/gi
|
|
129
130
|
return this.comment.content.replace(regExp, match => {
|
|
130
131
|
const url = /^http/.test(match) ? match : `http://${match}`
|
|
@@ -165,6 +166,8 @@ export default {
|
|
|
165
166
|
|
|
166
167
|
<style lang="scss">
|
|
167
168
|
@import '../../../styles/mixins';
|
|
169
|
+
@import '../../../tokens/spacings';
|
|
170
|
+
@import '../../../tokens/colors';
|
|
168
171
|
.mc-chat-comment {
|
|
169
172
|
$block-name: &;
|
|
170
173
|
--mc-chat-comment-color: initial;
|
|
@@ -114,6 +114,9 @@ export default {
|
|
|
114
114
|
|
|
115
115
|
<style lang="scss">
|
|
116
116
|
@import '../../../styles/mixins';
|
|
117
|
+
@import '../../../tokens/line-heights';
|
|
118
|
+
@import '../../../tokens/spacings';
|
|
119
|
+
@import '../../../tokens/sizes';
|
|
117
120
|
.mc-chat-form {
|
|
118
121
|
$block-name: &;
|
|
119
122
|
line-height: $line-height-200;
|
|
@@ -83,6 +83,10 @@ export default {
|
|
|
83
83
|
|
|
84
84
|
<style lang="scss">
|
|
85
85
|
@import '../../styles/mixins';
|
|
86
|
+
@import '../../tokens/spacings';
|
|
87
|
+
@import '../../tokens/colors';
|
|
88
|
+
@import '../../tokens/sizes';
|
|
89
|
+
@import '../../tokens/media-queries';
|
|
86
90
|
.mc-drawer {
|
|
87
91
|
$block-name: &;
|
|
88
92
|
|
|
@@ -14,6 +14,10 @@ export default {
|
|
|
14
14
|
<style lang="scss">
|
|
15
15
|
@import '../../../styles/mixins';
|
|
16
16
|
@import '../../../tokens/box-shadows';
|
|
17
|
+
@import '../../../tokens/colors';
|
|
18
|
+
@import '../../../tokens/spacings';
|
|
19
|
+
@import '../../../tokens/font-weights';
|
|
20
|
+
@import '../../../tokens/sizes';
|
|
17
21
|
.mc-dropdown-panel {
|
|
18
22
|
$block-name: &;
|
|
19
23
|
|