@webitel/ui-sdk 0.9.65 → 1.0.2
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 +42 -0
- package/dist/fonts/Montserrat-Black.27e3649b.ttf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.d9b6ba59.ttf +0 -0
- package/dist/fonts/Montserrat-Bold.ade91f47.ttf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.1b384149.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.19ba7aa5.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.52a50ca0.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.570a244c.ttf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.1170df55.ttf +0 -0
- package/dist/fonts/Montserrat-Italic.a7063e0c.ttf +0 -0
- package/dist/fonts/Montserrat-Light.409c7f79.ttf +0 -0
- package/dist/fonts/Montserrat-LightItalic.01c4560c.ttf +0 -0
- package/dist/fonts/Montserrat-Medium.c8b6e083.ttf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.40a74702.ttf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.83c1ec1f.ttf +0 -0
- package/dist/fonts/Montserrat-Thin.43dd5b7a.ttf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.3c2b290f.ttf +0 -0
- package/dist/ui-sdk.common.js +948 -929
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +948 -929
- 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 +5 -5
- package/src/components/atoms/wt-button/wt-button.vue +187 -150
- package/src/components/atoms/wt-chip/__tests__/WtChip.spec.js +19 -0
- package/src/components/atoms/wt-chip/wt-chip.vue +23 -0
- package/src/components/atoms/wt-context-menu/wt-context-menu.vue +1 -1
- package/src/components/atoms/wt-icon/wt-icon.vue +4 -0
- package/src/components/atoms/wt-indicator/wt-indicator.vue +39 -6
- package/src/components/atoms/wt-input-info/wt-input-info.vue +1 -1
- package/src/components/atoms/wt-loader/_internals/wt-loader--sm.vue +34 -153
- package/src/components/atoms/wt-loader/wt-loader.vue +2 -4
- package/src/components/atoms/wt-rounded-action/__tests__/WtRoundedAction.spec.js +0 -11
- package/src/components/atoms/wt-rounded-action/wt-rounded-action.vue +27 -179
- package/src/components/atoms/wt-tooltip/wt-tooltip.vue +2 -2
- package/src/components/index.js +2 -2
- package/src/components/molecules/wt-button-select/wt-button-select.vue +2 -1
- package/src/components/molecules/wt-datepicker/wt-datepicker.vue +59 -62
- package/src/components/molecules/wt-datetimepicker/wt-datetimepicker.vue +2 -7
- package/src/components/molecules/wt-input/wt-input.vue +4 -25
- package/src/components/molecules/wt-label/wt-label.vue +5 -2
- package/src/components/molecules/wt-notification/wt-notification.vue +3 -2
- package/src/components/molecules/wt-popup/__tests__/WtPopup.spec.js +1 -1
- package/src/components/molecules/wt-popup/wt-popup.vue +26 -28
- package/src/components/molecules/wt-progress-bar/wt-progress-bar.vue +3 -4
- package/src/components/molecules/wt-radio/wt-radio.vue +0 -2
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +4 -20
- package/src/components/molecules/wt-select/wt-select.vue +26 -28
- package/src/components/molecules/wt-tabs/wt-tabs.vue +6 -18
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +31 -25
- package/src/components/molecules/wt-textarea/wt-textarea.vue +6 -17
- package/src/components/molecules/wt-time-input/wt-time-input.vue +1 -3
- package/src/components/molecules/wt-timepicker/wt-timepicker.vue +0 -3
- package/src/components/organisms/wt-app-header/wt-app-header.vue +1 -0
- package/src/components/organisms/wt-app-header/wt-app-navigator.vue +32 -33
- package/src/components/organisms/wt-app-header/wt-header-actions.vue +145 -144
- package/src/components/organisms/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue +3 -3
- package/src/components/organisms/wt-headline/wt-headline.vue +1 -2
- package/src/components/organisms/wt-navigation-bar/wt-navigation-bar.vue +8 -11
- package/src/components/organisms/wt-page-wrapper/wt-page-wrapper.vue +6 -14
- package/src/components/organisms/wt-pagination/wt-pagination.vue +5 -5
- package/src/components/organisms/wt-player/wt-player.vue +1 -1
- package/src/components/organisms/wt-status-select/wt-status-select.vue +24 -4
- package/src/components/organisms/wt-table/wt-table.vue +15 -12
- package/src/components/organisms/wt-table-actions/wt-table-actions.vue +2 -4
- package/src/components/organisms/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/css/components/_components.scss +1 -1
- package/src/css/components/atoms/wt-button/_variables.scss +22 -24
- package/src/css/components/atoms/wt-chip/_variables.scss +7 -0
- package/src/css/components/atoms/{wt-badge/wt-badge.scss → wt-chip/wt-chip.scss} +12 -7
- package/src/css/components/atoms/wt-context-menu/_variables.scss +1 -1
- package/src/css/components/atoms/wt-indicator/_variables.scss +6 -2
- package/src/css/components/atoms/wt-label/_variables.scss +0 -1
- package/src/css/components/atoms/wt-rounded-action/_variables.scss +3 -26
- package/src/css/components/atoms/wt-tooltip/_variables.scss +7 -5
- package/src/css/components/molecules/wt-button-select/_variables.scss +5 -8
- package/src/css/components/molecules/wt-checkbox/_variables.scss +1 -1
- package/src/css/components/molecules/wt-datepicker/_variables.scss +15 -14
- package/src/css/components/molecules/wt-datepicker/datepicker-calendar.scss +20 -31
- package/src/css/components/molecules/wt-datetimepicker/_variables.scss +5 -5
- package/src/css/components/molecules/wt-input/_variables.scss +3 -3
- package/src/css/components/molecules/wt-notification/_variables.scss +4 -4
- package/src/css/components/molecules/wt-popup/_variables.scss +16 -8
- package/src/css/components/molecules/wt-progress-bar/_variables.scss +3 -3
- package/src/css/components/molecules/wt-radio/_variables.scss +1 -1
- package/src/css/components/molecules/wt-search-bar/_variables.scss +5 -1
- package/src/css/components/molecules/wt-select/_variables.scss +49 -13
- package/src/css/components/molecules/wt-switcher/_variables.scss +1 -1
- package/src/css/components/molecules/wt-tabs/_variables.scss +2 -2
- package/src/css/components/molecules/wt-tags-input/_variables.scss +4 -5
- package/src/css/components/molecules/wt-textarea/_variables.scss +9 -1
- package/src/css/components/molecules/wt-timepicker/_variables.scss +1 -1
- package/src/css/components/organisms/wt-app-header/_variables.scss +13 -9
- package/src/css/components/organisms/wt-headline/_variables.scss +3 -4
- package/src/css/components/organisms/wt-navigation-bar/_variables.scss +10 -10
- package/src/css/components/organisms/wt-notifications-bar/_variables.scss +2 -2
- package/src/css/components/organisms/wt-page-wrapper/_variables.scss +3 -3
- package/src/css/components/organisms/wt-pagination/_variables.scss +1 -3
- package/src/css/components/organisms/wt-player/_variables.scss +2 -2
- package/src/css/components/organisms/wt-status-select/_variables.scss +3 -3
- package/src/css/components/organisms/wt-table/_variables.scss +9 -9
- package/src/css/components/organisms/wt-table-actions/_variables.scss +2 -1
- package/src/css/main.scss +7 -5
- package/src/css/styleguide/_styleguide.scss +8 -3
- package/src/css/styleguide/border-radius/_border-radius.scss +4 -0
- package/src/css/{colors → styleguide/colors}/_colors.scss +5 -7
- package/src/css/{display-helpers → styleguide/display-helpers}/_display-helpers.scss +2 -0
- package/src/css/styleguide/elevations/_elevations.scss +13 -0
- package/src/css/styleguide/fonts/_fonts.scss +126 -0
- package/src/css/styleguide/placeholder/_placeholder.scss +49 -0
- package/src/css/styleguide/spacings/_spacings.scss +15 -0
- package/src/css/styleguide/transitions/_transitions.scss +1 -0
- package/src/css/{transitions → styleguide/transitions}/fade/_fade.scss +0 -0
- package/src/css/styleguide/typography/_typography.scss +102 -0
- package/src/css/{sizes → styleguide/viewport-breakpoints}/_viewport-breakpoints.scss +0 -0
- package/src/locale/en/en.js +28 -3
- package/src/locale/ru/ru.js +26 -1
- package/src/locale/ua/ua.js +26 -1
- package/src/components/atoms/wt-badge/__tests__/WtBadge.spec.js +0 -19
- package/src/components/atoms/wt-badge/wt-badge.vue +0 -23
- package/src/css/components/atoms/wt-badge/_variables.scss +0 -7
- package/src/css/fonts/_fonts.scss +0 -9
- package/src/css/shadows/_shadows.scss +0 -7
- package/src/css/sizes/_sizes.scss +0 -2
- package/src/css/sizes/_spacing.scss +0 -33
- package/src/css/transitions/_transitions.scss +0 -1
- package/src/css/typography/_typography.scss +0 -72
|
@@ -1,177 +1,178 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="wt-header-actions">
|
|
3
3
|
<wt-icon-btn
|
|
4
|
-
|
|
4
|
+
v-clickaway="close"
|
|
5
5
|
:class="{'active': isOpened}"
|
|
6
6
|
:tooltip="$t('webitelUI.headerActions.account')"
|
|
7
|
+
class="wt-header-actions__btn"
|
|
7
8
|
icon="account"
|
|
8
9
|
@click="isOpened = !isOpened"
|
|
9
|
-
v-clickaway="close"
|
|
10
10
|
></wt-icon-btn>
|
|
11
11
|
<transition name="fade">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
12
|
+
<section v-show="isOpened" class="wt-header-actions__panel-wrapper">
|
|
13
|
+
<header v-if="isHeader" class="wt-header-actions__header">
|
|
14
|
+
<h3
|
|
15
|
+
class="wt-header-actions__name"
|
|
16
|
+
>{{ userName }}</h3>
|
|
17
|
+
<p
|
|
18
|
+
class="wt-header-actions__account"
|
|
19
|
+
>{{ userAccount }}</p>
|
|
20
|
+
</header>
|
|
21
|
+
<ul class="wt-header-actions__actions-wrapper">
|
|
22
|
+
<li class="wt-header-actions__action">
|
|
23
|
+
<a
|
|
24
|
+
class="wt-header-actions__action__link"
|
|
25
|
+
href="https://docs.webitel.com/display/WEP/Webitel+Elastic+Platform"
|
|
26
|
+
target="_blank"
|
|
27
|
+
@click="close"
|
|
28
|
+
>
|
|
29
|
+
<wt-icon icon="docs" size="sm"></wt-icon>
|
|
30
|
+
<span>{{ $t('webitelUI.headerActions.docs') }}</span>
|
|
31
|
+
</a>
|
|
32
|
+
</li>
|
|
33
|
+
<li class="wt-header-actions__action">
|
|
34
|
+
<a
|
|
35
|
+
class="wt-header-actions__action__link"
|
|
36
|
+
@click.prevent="settings"
|
|
37
|
+
>
|
|
38
|
+
<wt-icon icon="settings" size="sm"></wt-icon>
|
|
39
|
+
<span>{{ $t('webitelUI.headerActions.settings') }}</span>
|
|
40
|
+
</a>
|
|
41
|
+
</li>
|
|
42
|
+
<li class="wt-header-actions__action wt-header-actions__action--logout">
|
|
43
|
+
<a
|
|
44
|
+
class="wt-header-actions__action__link"
|
|
45
|
+
@click.prevent="logout"
|
|
46
|
+
>
|
|
47
|
+
<wt-icon color="danger" icon="logout" size="sm"></wt-icon>
|
|
48
|
+
<span>{{ $t('webitelUI.headerActions.logout') }}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</li>
|
|
51
|
+
</ul>
|
|
52
|
+
<footer v-if="isFooter" class="wt-header-actions__footer">
|
|
53
|
+
<p class="wt-header-actions__build__version">
|
|
54
|
+
{{ buildVersion }}
|
|
55
|
+
</p>
|
|
56
|
+
</footer>
|
|
57
|
+
</section>
|
|
56
58
|
</transition>
|
|
57
59
|
</div>
|
|
58
60
|
</template>
|
|
59
61
|
|
|
60
62
|
<script>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
buildInfo: {
|
|
72
|
-
type: Object,
|
|
73
|
-
},
|
|
63
|
+
export default {
|
|
64
|
+
name: 'wt-header-actions',
|
|
65
|
+
data: () => ({
|
|
66
|
+
isOpened: false,
|
|
67
|
+
}),
|
|
68
|
+
props: {
|
|
69
|
+
user: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default: () => ({}),
|
|
74
72
|
},
|
|
73
|
+
buildInfo: {
|
|
74
|
+
type: Object,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
75
77
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
userAccount() {
|
|
87
|
-
return this.user.preferredUsername || this.user.account;
|
|
88
|
-
},
|
|
89
|
-
buildVersion() {
|
|
90
|
-
return `${this.$t('webitelUI.headerActions.buildVersion')}: v${this.buildInfo.release}-${this.buildInfo.build}`;
|
|
91
|
-
},
|
|
78
|
+
computed: {
|
|
79
|
+
isHeader() {
|
|
80
|
+
return !!(this.userName || this.userAccount);
|
|
81
|
+
},
|
|
82
|
+
isFooter() {
|
|
83
|
+
return this.buildInfo;
|
|
84
|
+
},
|
|
85
|
+
userName() {
|
|
86
|
+
return this.user.name || this.user.username;
|
|
92
87
|
},
|
|
88
|
+
userAccount() {
|
|
89
|
+
return this.user.preferredUsername || this.user.account;
|
|
90
|
+
},
|
|
91
|
+
buildVersion() {
|
|
92
|
+
return `${this.$t('webitelUI.headerActions.buildVersion')}: v${this.buildInfo.release}-${this.buildInfo.build}`;
|
|
93
|
+
},
|
|
94
|
+
},
|
|
93
95
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
methods: {
|
|
97
|
+
settings() {
|
|
98
|
+
this.$emit('settings');
|
|
99
|
+
this.close();
|
|
100
|
+
},
|
|
99
101
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
logout() {
|
|
103
|
+
this.$emit('logout');
|
|
104
|
+
this.close();
|
|
105
|
+
},
|
|
104
106
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
107
|
+
close() {
|
|
108
|
+
this.isOpened = false;
|
|
108
109
|
},
|
|
109
|
-
}
|
|
110
|
+
},
|
|
111
|
+
};
|
|
110
112
|
</script>
|
|
111
113
|
|
|
112
114
|
<style lang="scss" scoped>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
115
|
+
.wt-header-actions {
|
|
116
|
+
position: relative;
|
|
117
|
+
z-index: var(--wt-app-header-content-z-index);
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.wt-header-actions__panel-wrapper {
|
|
123
|
+
position: absolute;
|
|
124
|
+
top: 100%; // icon
|
|
125
|
+
right: 0;
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: var(--wt-header-actions-content-sections-gap);
|
|
129
|
+
min-width: var(--wt-header-actions-min-width);
|
|
130
|
+
margin-top: var(--wt-app-header-content-panel-margin);
|
|
131
|
+
padding: var(--wt-header-actions-padding);
|
|
132
|
+
transition: var(--transition);
|
|
133
|
+
border-radius: var(--border-radius);
|
|
134
|
+
background: var(--wt-app-header-content-bg-color);
|
|
135
|
+
box-shadow: var(--elevation-1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.wt-header-actions__name {
|
|
139
|
+
@extend %typo-subtitle-1;
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.wt-header-actions__account {
|
|
144
|
+
@extend %typo-body-1;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.wt-header-actions__action {
|
|
149
|
+
display: flex;
|
|
150
|
+
transition: var(--transition);
|
|
151
|
+
|
|
152
|
+
&:hover {
|
|
153
|
+
background: var(--wt-header-actions-action-bg-color--hover);
|
|
146
154
|
}
|
|
147
155
|
|
|
148
|
-
.wt-header-
|
|
156
|
+
.wt-header-actions__action__link {
|
|
157
|
+
@extend %typo-body-1;
|
|
149
158
|
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
width: 100%;
|
|
161
|
+
padding: var(--wt-header-actions-action-link-padding);
|
|
162
|
+
cursor: pointer;
|
|
150
163
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.wt-header-actions__action__link {
|
|
156
|
-
@extend %typo-body-md;
|
|
157
|
-
display: flex;
|
|
158
|
-
align-items: center;
|
|
159
|
-
width: 100%;
|
|
160
|
-
padding: var(--wt-header-actions-action-link-padding);
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
|
|
163
|
-
.wt-icon {
|
|
164
|
-
margin-right: 10px;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&--logout .wt-header-actions__action__link {
|
|
169
|
-
color: var(--false-color);
|
|
164
|
+
.wt-icon {
|
|
165
|
+
margin-right: var(--wt-header-actions-action-link-padding);
|
|
170
166
|
}
|
|
171
167
|
}
|
|
172
168
|
|
|
173
|
-
.wt-header-
|
|
174
|
-
|
|
175
|
-
white-space: nowrap;
|
|
169
|
+
&--logout .wt-header-actions__action__link {
|
|
170
|
+
color: var(--false-color);
|
|
176
171
|
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.wt-header-actions__build__version {
|
|
175
|
+
@extend %typo-caption;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
}
|
|
177
178
|
</style>
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
</script>
|
|
43
43
|
|
|
44
44
|
<style lang="scss" scoped>
|
|
45
|
-
$actions-width: calc(2 * (
|
|
45
|
+
$actions-width: calc(2 * (var(--icon-md-size) + var(--table-actions-icon-gap)));
|
|
46
46
|
|
|
47
47
|
.filters-panel-wrapper {
|
|
48
48
|
display: flex;
|
|
@@ -67,7 +67,7 @@ $actions-width: calc(2 * (24px + var(--table-actions-icon-gap)));
|
|
|
67
67
|
// -- sass doesnt work with css variables :(
|
|
68
68
|
$width-except-filters: 60px + 60px + 88px;
|
|
69
69
|
$filter-width: 230px;
|
|
70
|
-
$filter-gap: 10px; // var(--
|
|
70
|
+
$filter-gap: 10px; // var(--spacing-xs)
|
|
71
71
|
@function filters-width($num) {
|
|
72
72
|
// 1px corrects max width
|
|
73
73
|
@return ($filter-width * $num) + $filter-gap * $num + $width-except-filters - 1px;
|
|
@@ -76,7 +76,7 @@ $filter-gap: 10px; // var(--component-spacing)
|
|
|
76
76
|
.filters-wrap {
|
|
77
77
|
display: grid;
|
|
78
78
|
flex-wrap: wrap;
|
|
79
|
-
grid-gap: var(--
|
|
79
|
+
grid-gap: var(--spacing-xs);
|
|
80
80
|
|
|
81
81
|
.filters-panel-wrapper & > * {
|
|
82
82
|
}
|
|
@@ -27,14 +27,13 @@ export default {
|
|
|
27
27
|
justify-content: space-between;
|
|
28
28
|
flex-wrap: wrap;
|
|
29
29
|
min-height: var(--headline-min-height);
|
|
30
|
-
padding: var(--headline-padding);
|
|
31
30
|
box-sizing: border-box;
|
|
32
31
|
background: var(--headline-background);
|
|
33
32
|
border-radius: var(--border-radius);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
.wt-headline__title {
|
|
37
|
-
@extend %typo-heading-
|
|
36
|
+
@extend %typo-heading-2;
|
|
38
37
|
margin-right: var(--headline-title-margin);
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -158,10 +158,11 @@ export default {
|
|
|
158
158
|
bottom: 0;
|
|
159
159
|
left: 0;
|
|
160
160
|
width: var(--navigation-bar-width);
|
|
161
|
+
padding: var(--navigation-bar-padding);
|
|
161
162
|
overflow: auto;
|
|
162
163
|
z-index: var(--navigation-bar-z-index);
|
|
163
164
|
border-radius: var(--border-radius);
|
|
164
|
-
box-shadow: var(--
|
|
165
|
+
box-shadow: var(--elevation-10);
|
|
165
166
|
background: var(--navigation-bar-bg-color);
|
|
166
167
|
|
|
167
168
|
// expand animation optimization
|
|
@@ -180,28 +181,24 @@ export default {
|
|
|
180
181
|
padding: var(--navigation-bar-header-padding);
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
.wt-navigation-bar__nav-list {
|
|
184
|
-
padding: var(--navigation-bar-list-padding);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
184
|
.wt-navigation-bar__nav-item-link {
|
|
188
|
-
@extend %typo-body-
|
|
185
|
+
@extend %typo-body-1;
|
|
189
186
|
display: block;
|
|
190
187
|
padding: var(--navigation-bar-link-padding);
|
|
191
188
|
transition: var(--transition);
|
|
192
189
|
word-wrap: break-word;
|
|
193
190
|
|
|
194
191
|
&:hover {
|
|
195
|
-
background: var(--
|
|
192
|
+
background: var(--accent-secondary-color);
|
|
196
193
|
}
|
|
197
194
|
|
|
198
195
|
&--active {
|
|
199
|
-
background: var(--
|
|
196
|
+
background: var(--accent-secondary-color);
|
|
200
197
|
}
|
|
201
198
|
}
|
|
202
199
|
|
|
203
200
|
.wt-navigation-bar__nav-expansion {
|
|
204
|
-
@extend %typo-heading-
|
|
201
|
+
@extend %typo-heading-3;
|
|
205
202
|
position: relative;
|
|
206
203
|
display: flex;
|
|
207
204
|
justify-content: space-between;
|
|
@@ -216,10 +213,10 @@ export default {
|
|
|
216
213
|
position: absolute;
|
|
217
214
|
top: 0;
|
|
218
215
|
bottom: 0;
|
|
219
|
-
left:
|
|
216
|
+
left: 0;
|
|
220
217
|
width: var(--navigation-bar-active-expansion-flag-width);
|
|
221
218
|
border-radius: var(--border-radius);
|
|
222
|
-
background: var(--
|
|
219
|
+
background: var(--accent-color);
|
|
223
220
|
transition: var(--transition);
|
|
224
221
|
}
|
|
225
222
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="wt-page-wrapper__header">
|
|
4
4
|
<slot name="header"></slot>
|
|
5
5
|
</div>
|
|
6
|
-
<div class="wt-page-wrapper__actions-panel"
|
|
6
|
+
<div v-if="actionsPanel" class="wt-page-wrapper__actions-panel">
|
|
7
7
|
<slot name="actions-panel"></slot>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="wt-page-wrapper__main">
|
|
@@ -28,33 +28,25 @@ export default {
|
|
|
28
28
|
.wt-page-wrapper {
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
31
|
-
min-height: 100%;
|
|
32
31
|
box-sizing: border-box;
|
|
32
|
+
min-height: 100%;
|
|
33
33
|
padding: var(--page-wrapper-padding);
|
|
34
|
+
gap: var(--page-wrapper-section-gap);
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
.wt-page-wrapper__header,
|
|
37
38
|
.wt-page-wrapper__actions-panel,
|
|
38
39
|
.wt-page-wrapper__main {
|
|
39
40
|
box-sizing: border-box;
|
|
40
|
-
|
|
41
|
+
padding: var(--page-wrapper-section-padding);
|
|
41
42
|
border-radius: var(--border-radius);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.wt-page-wrapper__header,
|
|
45
|
-
.wt-page-wrapper__actions-panel {
|
|
46
|
-
margin-bottom: var(--page-wrapper-section-margin);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.wt-page-wrapper__actions-panel {
|
|
50
|
-
padding: var(--page-wrapper-padding);
|
|
43
|
+
background: var(--main-color);
|
|
51
44
|
}
|
|
52
45
|
|
|
53
46
|
.wt-page-wrapper__main {
|
|
54
|
-
flex: 1;
|
|
55
47
|
display: flex;
|
|
48
|
+
flex: 1;
|
|
56
49
|
width: 100%;
|
|
57
|
-
padding: var(--page-wrapper-main-section-padding);
|
|
58
50
|
}
|
|
59
51
|
|
|
60
52
|
</style>
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
|
|
78
78
|
methods: {
|
|
79
79
|
inputHandler(value) {
|
|
80
|
-
const size = (value
|
|
80
|
+
const size = (value >= 0 && value <= 1000)
|
|
81
81
|
? value
|
|
82
82
|
: this.defaultSize;
|
|
83
83
|
this.$emit('input', size);
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
|
|
99
99
|
<style lang="scss" scoped>
|
|
100
100
|
.wt-pagination {
|
|
101
|
-
@extend %typo-body-
|
|
101
|
+
@extend %typo-body-1;
|
|
102
102
|
|
|
103
103
|
display: inline-flex;
|
|
104
104
|
align-items: center;
|
|
@@ -108,11 +108,11 @@ export default {
|
|
|
108
108
|
.wt-pagination__size {
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
|
-
margin-right: var(--pagination-
|
|
111
|
+
margin-right: var(--pagination-gap);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.wt-pagination__size-text {
|
|
115
|
-
margin-right: var(--pagination-
|
|
115
|
+
margin-right: var(--pagination-gap);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.wt-pagination__size-input {
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.wt-pagination__page-control {
|
|
128
|
-
margin-left: var(--pagination-
|
|
128
|
+
margin-left: var(--pagination-gap);
|
|
129
129
|
|
|
130
130
|
&:first-child {
|
|
131
131
|
margin-left: 0;
|
|
@@ -42,6 +42,11 @@ export default {
|
|
|
42
42
|
options: {
|
|
43
43
|
type: Array,
|
|
44
44
|
},
|
|
45
|
+
// size: {
|
|
46
|
+
// type: String,
|
|
47
|
+
// default: 'md',
|
|
48
|
+
// options: ['sm', 'md'],
|
|
49
|
+
// },
|
|
45
50
|
},
|
|
46
51
|
model: {
|
|
47
52
|
prop: 'status',
|
|
@@ -90,19 +95,34 @@ export default {
|
|
|
90
95
|
</script>
|
|
91
96
|
|
|
92
97
|
<style lang="scss" scoped>
|
|
93
|
-
.wt-select ::v-deep {
|
|
94
|
-
box-shadow: var(--
|
|
98
|
+
.wt-status-select.wt-select ::v-deep {
|
|
99
|
+
box-shadow: var(--elevation-5);
|
|
100
|
+
|
|
101
|
+
.multiselect {
|
|
102
|
+
min-height: 0;
|
|
103
|
+
}
|
|
95
104
|
|
|
96
105
|
.multiselect__tags {
|
|
97
|
-
|
|
106
|
+
min-height: 0;
|
|
107
|
+
padding: var(--status-select-padding);
|
|
98
108
|
border: none;
|
|
99
109
|
}
|
|
100
110
|
|
|
111
|
+
.wt-select__arrow-caret {
|
|
112
|
+
top: 0;
|
|
113
|
+
right: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
101
116
|
.multiselect__content-wrapper {
|
|
102
117
|
border: none;
|
|
103
118
|
|
|
119
|
+
.multiselect__option {
|
|
120
|
+
min-height: 0;
|
|
121
|
+
padding: 0;
|
|
122
|
+
color: var(--status-select-option-color);
|
|
123
|
+
}
|
|
124
|
+
|
|
104
125
|
.multiselect__option--highlight {
|
|
105
|
-
color: var(--status-select--hover-color);
|
|
106
126
|
background: var(--status-select-bg--hover-color);
|
|
107
127
|
}
|
|
108
128
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<table class="wt-table__table">
|
|
4
4
|
<thead class="wt-table__head">
|
|
5
5
|
<tr class="wt-table__tr wt-table__tr__head" :style="columnsStyle">
|
|
6
|
-
<th class="wt-
|
|
6
|
+
<th class="wt-table__th wt-table__th--checkbox" v-if="selectable">
|
|
7
7
|
<wt-checkbox
|
|
8
8
|
:selected="isAllSelected"
|
|
9
9
|
@change="selectAll"
|
|
@@ -24,11 +24,13 @@
|
|
|
24
24
|
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
|
|
25
25
|
v-if="sortable"
|
|
26
26
|
icon="sort-arrow-up"
|
|
27
|
+
size="sm"
|
|
27
28
|
></wt-icon>
|
|
28
29
|
<wt-icon
|
|
29
30
|
class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
|
|
30
31
|
v-if="sortable"
|
|
31
32
|
icon="sort-arrow-down"
|
|
33
|
+
size="sm"
|
|
32
34
|
></wt-icon>
|
|
33
35
|
</th>
|
|
34
36
|
<th class="wt-table__th__actions" v-if="gridActions">
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
:key="dataKey"
|
|
46
48
|
:style="columnsStyle"
|
|
47
49
|
>
|
|
48
|
-
<td class="wt-
|
|
50
|
+
<td class="wt-table__td wt-table__td--checkbox" v-if="selectable">
|
|
49
51
|
<wt-checkbox
|
|
50
52
|
v-model="row._isSelected"
|
|
51
53
|
></wt-checkbox>
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
|
|
70
72
|
<tfoot class="wt-table__foot" v-if="isTableFooter">
|
|
71
73
|
<tr class="wt-table__tr wt-table__tr__foot" :style="columnsStyle">
|
|
72
|
-
<!-- empty checkbox column -->
|
|
74
|
+
<!-- empty checkbox column -->
|
|
73
75
|
<th class="wt-table__th__checkbox" v-if="selectable"></th>
|
|
74
76
|
<td
|
|
75
77
|
class="wt-table__td"
|
|
@@ -121,7 +123,7 @@ export default {
|
|
|
121
123
|
|
|
122
124
|
dataHeaders() {
|
|
123
125
|
return this.headers
|
|
124
|
-
|
|
126
|
+
.filter((header) => header.show === undefined || header.show);
|
|
125
127
|
},
|
|
126
128
|
|
|
127
129
|
columnsStyle() {
|
|
@@ -168,9 +170,10 @@ export default {
|
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
.wt-table__head {
|
|
171
|
-
|
|
172
|
-
border-
|
|
173
|
-
border
|
|
173
|
+
display: block;
|
|
174
|
+
border-radius: var(--border-radius);
|
|
175
|
+
border: var(--table-head-border);
|
|
176
|
+
border-color: var(--table-head-border-color);
|
|
174
177
|
}
|
|
175
178
|
|
|
176
179
|
//.wt-table__head {
|
|
@@ -181,7 +184,6 @@ export default {
|
|
|
181
184
|
display: grid;
|
|
182
185
|
grid-template-columns: repeat(auto-fit, var(--table-col-min-width));
|
|
183
186
|
grid-column-gap: var(--table-column-gap);
|
|
184
|
-
min-height: var(--table-min-height);
|
|
185
187
|
padding: var(--table-row-padding);
|
|
186
188
|
transition: var(--transition);
|
|
187
189
|
|
|
@@ -192,12 +194,14 @@ export default {
|
|
|
192
194
|
|
|
193
195
|
.wt-table__th,
|
|
194
196
|
.wt-table__td {
|
|
195
|
-
@extend %typo-body-
|
|
197
|
+
@extend %typo-body-1;
|
|
196
198
|
display: flex;
|
|
197
199
|
align-items: center;
|
|
198
200
|
padding: 0;
|
|
199
201
|
width: 100%;
|
|
200
202
|
max-width: 100%;
|
|
203
|
+
min-height: var(--table-min-height);
|
|
204
|
+
height: fit-content;
|
|
201
205
|
overflow-wrap: break-word;
|
|
202
206
|
word-break: break-all;
|
|
203
207
|
|
|
@@ -209,7 +213,6 @@ export default {
|
|
|
209
213
|
}
|
|
210
214
|
|
|
211
215
|
.wt-table__th {
|
|
212
|
-
min-height: 24px; // prevent sort arrow toggling layout shift
|
|
213
216
|
font-weight: normal;
|
|
214
217
|
|
|
215
218
|
&--sortable {
|
|
@@ -235,7 +238,7 @@ export default {
|
|
|
235
238
|
}
|
|
236
239
|
|
|
237
240
|
.wt-table__foot {
|
|
238
|
-
border-top: var(--table-head-
|
|
239
|
-
border-color: var(--table-head-
|
|
241
|
+
border-top: var(--table-head-border);
|
|
242
|
+
border-color: var(--table-head-border-color);
|
|
240
243
|
}
|
|
241
244
|
</style>
|