@webitel/ui-sdk 24.12.36 → 24.12.38
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 +12 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2641 -2636
- package/dist/ui-sdk.umd.cjs +17 -17
- package/package.json +2 -1
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +1 -1
- package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +1 -1
- package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +3 -3
- package/src/components/on-demand/wt-navigation-menu/css/_nav-menu.scss +1 -1
- package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +1 -1
- package/src/components/on-demand/wt-start-page/components/start-page-card.vue +2 -1
- package/src/components/wt-app-header/wt-app-header.vue +1 -1
- package/src/components/wt-app-header/wt-app-navigator.vue +2 -2
- package/src/components/wt-app-header/wt-header-actions.vue +1 -1
- package/src/components/wt-avatar/wt-avatar.vue +1 -1
- package/src/components/wt-badge/wt-badge.vue +1 -1
- package/src/components/wt-button/wt-button.vue +2 -2
- package/src/components/wt-button-select/wt-button-select.vue +1 -1
- package/src/components/wt-checkbox/wt-checkbox.vue +1 -1
- package/src/components/wt-chip/wt-chip.scss +1 -1
- package/src/components/wt-chip/wt-chip.vue +2 -2
- package/src/components/wt-context-menu/wt-context-menu.vue +2 -2
- package/src/components/wt-datepicker/wt-datepicker.vue +4 -3
- package/src/components/wt-divider/wt-divider.vue +1 -1
- package/src/components/wt-dual-panel/wt-dual-panel.vue +4 -3
- package/src/components/wt-dummy/wt-dummy.vue +3 -2
- package/src/components/wt-empty/wt-empty.vue +3 -2
- package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -3
- package/src/components/wt-headline/wt-headline.vue +2 -2
- package/src/components/wt-headline-nav/wt-headline-nav.vue +2 -2
- package/src/components/wt-icon/wt-icon.vue +1 -1
- package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
- package/src/components/wt-image/wt-image.vue +1 -1
- package/src/components/wt-indicator/wt-indicator.vue +2 -2
- package/src/components/wt-input/wt-input.vue +5 -4
- package/src/components/wt-input-info/wt-input-info.vue +2 -2
- package/src/components/wt-item-link/wt-item-link.vue +1 -1
- package/src/components/wt-label/wt-label.vue +2 -2
- package/src/components/wt-load-bar/wt-load-bar.vue +1 -1
- package/src/components/wt-loader/_internals/wt-loader--md.vue +3 -1
- package/src/components/wt-loader/wt-loader.vue +1 -1
- package/src/components/wt-logo/wt-logo.vue +1 -1
- package/src/components/wt-navigation-bar/wt-navigation-bar.vue +2 -2
- package/src/components/wt-notification/wt-notification.vue +2 -2
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +2 -2
- package/src/components/wt-page-wrapper/wt-page-wrapper.vue +1 -1
- package/src/components/wt-pagination/wt-pagination.vue +2 -2
- package/src/components/wt-player/wt-player.vue +3 -3
- package/src/components/wt-popup/wt-popup.vue +2 -2
- package/src/components/wt-progress-bar/wt-progress-bar.vue +1 -1
- package/src/components/wt-radio/wt-radio.vue +1 -1
- package/src/components/wt-rounded-action/wt-rounded-action.vue +1 -1
- package/src/components/wt-search-bar/wt-search-bar.vue +3 -2
- package/src/components/wt-select/_multiselect.scss +1 -1
- package/src/components/wt-select/wt-select.vue +6 -6
- package/src/components/wt-slider/wt-slider.vue +1 -1
- package/src/components/wt-status-select/wt-status-select.vue +1 -1
- package/src/components/wt-stepper/wt-stepper.vue +1 -1
- package/src/components/wt-switcher/wt-switcher.vue +1 -1
- package/src/components/wt-table/wt-table.vue +2 -2
- package/src/components/wt-table-actions/wt-table-actions.vue +1 -1
- package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -1
- package/src/components/wt-tabs/wt-tabs.vue +2 -2
- package/src/components/wt-tags-input/wt-tags-input.vue +1 -1
- package/src/components/wt-textarea/wt-textarea.vue +4 -4
- package/src/components/wt-time-input/wt-time-input.vue +3 -3
- package/src/components/wt-timepicker/wt-timepicker.vue +1 -1
- package/src/components/wt-tooltip/wt-tooltip.vue +3 -2
- package/src/components/wt-tree-table/wt-tree-table.vue +33 -16
- package/src/components/wt-tree-table-row/wt-tree-table-row.vue +49 -15
- package/src/css/main.scss +5 -4
- package/src/css/pages/card-page.scss +2 -0
- package/src/css/pages/table-page.scss +3 -0
- package/src/css/styleguide/_styleguide.scss +5 -9
- package/src/css/styleguide/display-helpers/_display-helpers.scss +2 -1
- package/src/css/styleguide/placeholder/_placeholder.scss +14 -2
- package/src/css/styleguide/transitions/_transitions.scss +1 -1
- package/src/install.ts +3 -2
- package/src/modules/QueryFilters/components/filter-from-to.vue +2 -0
- package/src/css/styleguide/border-radius/_border-radius.scss +0 -4
- package/src/css/styleguide/colors/_colors.scss +0 -199
- package/src/css/styleguide/colors/_deprecated.scss +0 -210
- package/src/css/styleguide/colors/_palette.scss +0 -1447
- package/src/css/styleguide/colors/reusable/_text-field.scss +0 -47
- package/src/css/styleguide/elevations/_elevations.scss +0 -13
- package/src/css/styleguide/fonts/_fonts.scss +0 -143
- package/src/css/styleguide/scroll.scss +0 -44
- package/src/css/styleguide/spacings/_spacings.scss +0 -15
- package/src/css/styleguide/typography/_typography.scss +0 -124
- package/src/css/styleguide/viewport-breakpoints/_viewport-breakpoints.scss +0 -24
|
@@ -84,11 +84,11 @@ export default {
|
|
|
84
84
|
</script>
|
|
85
85
|
|
|
86
86
|
<style lang="scss">
|
|
87
|
-
@
|
|
87
|
+
@use './variables.scss';
|
|
88
88
|
</style>
|
|
89
89
|
|
|
90
90
|
<style lang="scss" scoped>
|
|
91
|
-
@
|
|
91
|
+
@use '../../css/main.scss';
|
|
92
92
|
|
|
93
93
|
.wt-popup {
|
|
94
94
|
position: fixed;
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
<script setup>
|
|
82
82
|
import { computed, toRefs } from 'vue';
|
|
83
|
+
|
|
83
84
|
import { useValidation } from '../../mixins/validationMixin/useValidation.js';
|
|
84
85
|
import debounce from '../../scripts/debounce.js';
|
|
85
86
|
|
|
@@ -162,11 +163,11 @@ function updateSearchMode({ option }) {
|
|
|
162
163
|
</script>
|
|
163
164
|
|
|
164
165
|
<style lang="scss">
|
|
165
|
-
@
|
|
166
|
+
@use './variables.scss';
|
|
166
167
|
</style>
|
|
167
168
|
|
|
168
169
|
<style lang="scss" scoped>
|
|
169
|
-
@
|
|
170
|
+
@use '../../css/main' as *;
|
|
170
171
|
|
|
171
172
|
.wt-search-bar {
|
|
172
173
|
cursor: text;
|
|
@@ -155,13 +155,13 @@ export default {
|
|
|
155
155
|
],
|
|
156
156
|
props: {
|
|
157
157
|
// vue 3
|
|
158
|
-
modelValue: {},
|
|
158
|
+
// modelValue: {},
|
|
159
159
|
|
|
160
160
|
// vue 2 fallback
|
|
161
161
|
value: {
|
|
162
|
-
default: (props) => {
|
|
163
|
-
|
|
164
|
-
},
|
|
162
|
+
// default: (props) => {
|
|
163
|
+
// return props.modelValue;
|
|
164
|
+
// },
|
|
165
165
|
},
|
|
166
166
|
|
|
167
167
|
multiple: {
|
|
@@ -284,11 +284,11 @@ export default {
|
|
|
284
284
|
</script>
|
|
285
285
|
|
|
286
286
|
<style lang="scss">
|
|
287
|
-
@
|
|
287
|
+
@use './variables.scss';
|
|
288
288
|
</style>
|
|
289
289
|
|
|
290
290
|
<style lang="scss" scoped>
|
|
291
|
-
@
|
|
291
|
+
@use './multiselect.scss' as *;
|
|
292
292
|
|
|
293
293
|
.wt-select {
|
|
294
294
|
width: 100%;
|
|
@@ -293,11 +293,11 @@ export default {
|
|
|
293
293
|
</script>
|
|
294
294
|
|
|
295
295
|
<style lang="scss">
|
|
296
|
-
@
|
|
296
|
+
@use './variables.scss';
|
|
297
297
|
</style>
|
|
298
298
|
|
|
299
299
|
<style lang="scss" scoped>
|
|
300
|
-
@
|
|
300
|
+
@use '../../css/main.scss';
|
|
301
301
|
|
|
302
302
|
.wt-table {
|
|
303
303
|
@extend %wt-scrollbar;
|
|
@@ -83,11 +83,11 @@ export default {
|
|
|
83
83
|
</script>
|
|
84
84
|
|
|
85
85
|
<style lang="scss">
|
|
86
|
-
@
|
|
86
|
+
@use './variables.scss';
|
|
87
87
|
</style>
|
|
88
88
|
|
|
89
89
|
<style lang="scss" scoped>
|
|
90
|
-
@
|
|
90
|
+
@use '../../css/main.scss';
|
|
91
91
|
|
|
92
92
|
.wt-tabs {
|
|
93
93
|
position: relative;
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
</wt-label>
|
|
24
24
|
<div class="wt-textarea__wrapper">
|
|
25
25
|
<textarea
|
|
26
|
-
ref="wt-textarea"
|
|
27
26
|
:id="name"
|
|
27
|
+
ref="wt-textarea"
|
|
28
28
|
:disabled="disabled"
|
|
29
29
|
:placeholder="placeholder || label"
|
|
30
30
|
:value="value"
|
|
@@ -168,11 +168,11 @@ export default {
|
|
|
168
168
|
</script>
|
|
169
169
|
|
|
170
170
|
<style lang="scss">
|
|
171
|
-
@
|
|
171
|
+
@use './variables.scss';
|
|
172
172
|
</style>
|
|
173
173
|
|
|
174
174
|
<style lang="scss" scoped>
|
|
175
|
-
@
|
|
175
|
+
@use '../../css/main' as *;
|
|
176
176
|
|
|
177
177
|
.wt-textarea {
|
|
178
178
|
cursor: text;
|
|
@@ -226,10 +226,10 @@ export default {
|
|
|
226
226
|
|
|
227
227
|
.wt-textarea--invalid &,
|
|
228
228
|
.wt-textarea--invalid:hover & {
|
|
229
|
-
@include wt-placeholder('error');
|
|
230
229
|
color: var(--wt-text-field-error-text-color);
|
|
231
230
|
border-color: var(--wt-text-field-input-border-error-color);
|
|
232
231
|
outline: none; // prevent outline overlapping false color
|
|
232
|
+
@include wt-placeholder('error');
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
</script>
|
|
112
112
|
|
|
113
113
|
<style lang="scss" scoped>
|
|
114
|
-
@
|
|
114
|
+
@use '../../css/main' as *;
|
|
115
115
|
|
|
116
116
|
.wt-time-input {
|
|
117
117
|
display: inline-block;
|
|
@@ -137,16 +137,16 @@ export default {
|
|
|
137
137
|
|
|
138
138
|
.wt-time-input--invalid &,
|
|
139
139
|
.wt-time-input--invalid:hover & {
|
|
140
|
-
@include wt-placeholder('error');
|
|
141
140
|
color: var(--wt-text-field-error-text-color);
|
|
142
141
|
border-color: var(--wt-text-field-input-border-error-color);
|
|
143
142
|
outline: none; // prevent outline overlapping false color
|
|
143
|
+
@include wt-placeholder('error');
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.wt-time-input--disabled & {
|
|
147
|
-
@include wt-placeholder('disabled');
|
|
148
147
|
border-color: var(--wt-text-field-input-border-disabled-color);
|
|
149
148
|
background: var(--wt-text-field-input-background-disabled-color);
|
|
149
|
+
@include wt-placeholder('disabled');
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
useFloating,
|
|
38
38
|
} from '@floating-ui/vue';
|
|
39
39
|
import { onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
|
40
|
+
|
|
40
41
|
import debounce from '../../scripts/debounce.js';
|
|
41
42
|
import { useTooltipTriggerSubscriptions } from './_internals/useTooltipTriggerSubscriptions.js';
|
|
42
43
|
import WtTooltipFloating from './_internals/wt-tooltip-floating.vue';
|
|
@@ -142,11 +143,11 @@ onBeforeUnmount(() => {
|
|
|
142
143
|
</script>
|
|
143
144
|
|
|
144
145
|
<style lang="scss">
|
|
145
|
-
@
|
|
146
|
+
@use './variables.scss';
|
|
146
147
|
</style>
|
|
147
148
|
|
|
148
149
|
<style lang="scss" scoped>
|
|
149
|
-
@
|
|
150
|
+
@use '../../css/main.scss';
|
|
150
151
|
|
|
151
152
|
.wt-tooltip {
|
|
152
153
|
display: inline-block;
|
|
@@ -18,7 +18,10 @@
|
|
|
18
18
|
>
|
|
19
19
|
<div class="wt-tree-table-th__content">
|
|
20
20
|
<div v-if="key === 0 && selectable">
|
|
21
|
-
<wt-checkbox
|
|
21
|
+
<wt-checkbox
|
|
22
|
+
:selected="isAllSelected"
|
|
23
|
+
@change="selectAll"
|
|
24
|
+
/>
|
|
22
25
|
</div>
|
|
23
26
|
<div class="wt-tree-table-th__text">
|
|
24
27
|
{{ col.text }}
|
|
@@ -37,7 +40,10 @@
|
|
|
37
40
|
/>
|
|
38
41
|
</div>
|
|
39
42
|
</th>
|
|
40
|
-
<th
|
|
43
|
+
<th
|
|
44
|
+
v-if="gridActions"
|
|
45
|
+
class="wt-tree-table-th__actions"
|
|
46
|
+
>
|
|
41
47
|
<div class="wt-tree-table-th__content">
|
|
42
48
|
<slot name="actions-header" />
|
|
43
49
|
</div>
|
|
@@ -58,14 +64,21 @@
|
|
|
58
64
|
@update:selected="handleSelection($event.data, $event.select)"
|
|
59
65
|
>
|
|
60
66
|
<template #actions="{ item }">
|
|
61
|
-
<slot
|
|
67
|
+
<slot
|
|
68
|
+
name="actions"
|
|
69
|
+
:item="item"
|
|
70
|
+
/>
|
|
62
71
|
</template>
|
|
63
72
|
<template
|
|
64
73
|
v-for="(col, headerKey) of dataHeaders"
|
|
65
74
|
:key="headerKey"
|
|
66
75
|
#[col.value]="{ item }"
|
|
67
76
|
>
|
|
68
|
-
<slot
|
|
77
|
+
<slot
|
|
78
|
+
:index="dataKey"
|
|
79
|
+
:item="item"
|
|
80
|
+
:name="col.value"
|
|
81
|
+
>
|
|
69
82
|
{{ item[col.value] }}
|
|
70
83
|
</slot>
|
|
71
84
|
</template>
|
|
@@ -76,11 +89,12 @@
|
|
|
76
89
|
</template>
|
|
77
90
|
|
|
78
91
|
<script setup lang="ts">
|
|
79
|
-
import { computed, withDefaults } from
|
|
80
|
-
|
|
81
|
-
import {
|
|
82
|
-
import
|
|
83
|
-
import
|
|
92
|
+
import { computed, withDefaults } from 'vue';
|
|
93
|
+
|
|
94
|
+
import { useWtTable } from '../../composables/useWtTable/useWtTable.ts';
|
|
95
|
+
import { getNextSortOrder } from '../../scripts/sortQueryAdapters';
|
|
96
|
+
import type { TableHeader } from '../wt-table/types/table-header.js';
|
|
97
|
+
import WtTreeTableRow from '../wt-tree-table-row/wt-tree-table-row.vue';
|
|
84
98
|
|
|
85
99
|
const props = withDefaults(
|
|
86
100
|
defineProps<{
|
|
@@ -117,7 +131,7 @@ const props = withDefaults(
|
|
|
117
131
|
},
|
|
118
132
|
);
|
|
119
133
|
|
|
120
|
-
const emit = defineEmits([
|
|
134
|
+
const emit = defineEmits(['sort', 'update:selected']);
|
|
121
135
|
|
|
122
136
|
const checkHasChildItems = (item: Record<string, any>) => {
|
|
123
137
|
return item[props.childrenProp] && Array.isArray(item[props.childrenProp]);
|
|
@@ -184,7 +198,7 @@ const isColSortable = ({ sort }: TableHeader) => {
|
|
|
184
198
|
const sort = (col: TableHeader) => {
|
|
185
199
|
if (!isColSortable(col)) return;
|
|
186
200
|
const nextSort = getNextSortOrder(col.sort);
|
|
187
|
-
emit(
|
|
201
|
+
emit('sort', col, nextSort);
|
|
188
202
|
};
|
|
189
203
|
|
|
190
204
|
const changeSelectItem = (items: Record<string, any>[], selected: boolean) => {
|
|
@@ -200,7 +214,10 @@ const changeSelectItem = (items: Record<string, any>[], selected: boolean) => {
|
|
|
200
214
|
|
|
201
215
|
const selectAll = () => {
|
|
202
216
|
if (props.selected) {
|
|
203
|
-
emit(
|
|
217
|
+
emit(
|
|
218
|
+
'update:selected',
|
|
219
|
+
isAllSelected.value ? [] : [...getAllNestedElements(props.data)],
|
|
220
|
+
);
|
|
204
221
|
} else {
|
|
205
222
|
// for backwards compatibility
|
|
206
223
|
|
|
@@ -219,10 +236,10 @@ const selectAll = () => {
|
|
|
219
236
|
const handleSelection = (row, select) => {
|
|
220
237
|
if (props.selected) {
|
|
221
238
|
if (select) {
|
|
222
|
-
emit(
|
|
239
|
+
emit('update:selected', [...selectedElements.value, row]);
|
|
223
240
|
} else {
|
|
224
241
|
emit(
|
|
225
|
-
|
|
242
|
+
'update:selected',
|
|
226
243
|
selectedElements.value.filter((item) => item !== row),
|
|
227
244
|
);
|
|
228
245
|
}
|
|
@@ -234,11 +251,11 @@ const handleSelection = (row, select) => {
|
|
|
234
251
|
</script>
|
|
235
252
|
|
|
236
253
|
<style lang="scss">
|
|
237
|
-
@
|
|
254
|
+
@use './variables.scss';
|
|
238
255
|
</style>
|
|
239
256
|
|
|
240
257
|
<style lang="scss" scoped>
|
|
241
|
-
@
|
|
258
|
+
@use '../../css/main.scss' as *;
|
|
242
259
|
|
|
243
260
|
.wt-tree-table {
|
|
244
261
|
@extend %wt-scrollbar;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tr
|
|
3
|
-
|
|
2
|
+
<tr
|
|
3
|
+
class="wt-tree-table-row"
|
|
4
|
+
:class="[{ 'wt-tree-table-row--alternate': rowPosition % 2 }]"
|
|
5
|
+
>
|
|
6
|
+
<td
|
|
7
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
8
|
+
:key="headerKey"
|
|
9
|
+
class="wt-tree-table-td"
|
|
10
|
+
>
|
|
4
11
|
<div class="wt-tree-table-td__content">
|
|
5
|
-
<div
|
|
12
|
+
<div
|
|
13
|
+
v-if="!headerKey"
|
|
14
|
+
class="wt-tree-table-td__icon-wrapper"
|
|
15
|
+
>
|
|
6
16
|
<div
|
|
7
17
|
v-for="treeLine in lineCount"
|
|
8
18
|
:key="treeLine"
|
|
@@ -31,15 +41,26 @@
|
|
|
31
41
|
@click="collapsed = !collapsed"
|
|
32
42
|
/>
|
|
33
43
|
</div>
|
|
34
|
-
<slot
|
|
44
|
+
<slot
|
|
45
|
+
:index="rowPosition"
|
|
46
|
+
:item="data"
|
|
47
|
+
:name="col.value"
|
|
48
|
+
>
|
|
35
49
|
{{ data[col.value] }}
|
|
36
50
|
</slot>
|
|
37
51
|
</div>
|
|
38
52
|
</td>
|
|
39
53
|
|
|
40
|
-
<td
|
|
54
|
+
<td
|
|
55
|
+
v-if="gridActions"
|
|
56
|
+
class="wt-tree-table-td__actions"
|
|
57
|
+
>
|
|
41
58
|
<div class="wt-tree-table-td__content">
|
|
42
|
-
<slot
|
|
59
|
+
<slot
|
|
60
|
+
:index="rowPosition"
|
|
61
|
+
:item="data"
|
|
62
|
+
name="actions"
|
|
63
|
+
/>
|
|
43
64
|
</div>
|
|
44
65
|
</td>
|
|
45
66
|
</tr>
|
|
@@ -62,23 +83,36 @@
|
|
|
62
83
|
})
|
|
63
84
|
"
|
|
64
85
|
>
|
|
65
|
-
<template
|
|
66
|
-
|
|
86
|
+
<template
|
|
87
|
+
v-for="(col, headerKey) of dataHeaders"
|
|
88
|
+
:key="headerKey"
|
|
89
|
+
#[col.value]="{ item }"
|
|
90
|
+
>
|
|
91
|
+
<slot
|
|
92
|
+
:index="rowPosition"
|
|
93
|
+
:item="item"
|
|
94
|
+
:name="col.value"
|
|
95
|
+
>
|
|
67
96
|
<div>{{ item[col.value] }}</div>
|
|
68
97
|
</slot>
|
|
69
98
|
</template>
|
|
70
99
|
<template #actions="{ item }">
|
|
71
|
-
<slot
|
|
100
|
+
<slot
|
|
101
|
+
:index="rowPosition"
|
|
102
|
+
:item="item"
|
|
103
|
+
name="actions"
|
|
104
|
+
/>
|
|
72
105
|
</template>
|
|
73
106
|
</wt-tree-table-row>
|
|
74
107
|
</template>
|
|
75
108
|
</template>
|
|
76
109
|
|
|
77
110
|
<script setup lang="ts">
|
|
78
|
-
import { computed, ref } from
|
|
79
|
-
|
|
80
|
-
import
|
|
81
|
-
import
|
|
111
|
+
import { computed, ref } from 'vue';
|
|
112
|
+
|
|
113
|
+
import WtCheckbox from '../wt-checkbox/wt-checkbox.vue';
|
|
114
|
+
import WtIconBtn from '../wt-icon-btn/wt-icon-btn.vue';
|
|
115
|
+
import type { TableHeader } from '../wt-table/types/table-header.ts';
|
|
82
116
|
|
|
83
117
|
const props = withDefaults(
|
|
84
118
|
defineProps<{
|
|
@@ -110,7 +144,7 @@ const props = withDefaults(
|
|
|
110
144
|
},
|
|
111
145
|
);
|
|
112
146
|
|
|
113
|
-
defineEmits([
|
|
147
|
+
defineEmits(['update:selected']);
|
|
114
148
|
|
|
115
149
|
const collapsed = ref(true);
|
|
116
150
|
const lineCount = computed(() => {
|
|
@@ -126,7 +160,7 @@ const isSelectedRow = computed(() => {
|
|
|
126
160
|
</script>
|
|
127
161
|
|
|
128
162
|
<style lang="scss" scoped>
|
|
129
|
-
@
|
|
163
|
+
@use '../../css/main.scss' as *;
|
|
130
164
|
|
|
131
165
|
.wt-tree-table-td {
|
|
132
166
|
@extend %typo-body-1;
|
package/src/css/main.scss
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@forward 'styleguide/styleguide';
|
|
2
|
+
@use 'styleguide/styleguide' as *;
|
|
3
|
+
@use 'pages/card-page';
|
|
4
|
+
@use 'pages/table-page';
|
|
5
|
+
|
|
5
6
|
|
|
6
7
|
@include wt-placeholder;
|
|
7
8
|
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@import 'spacings/spacings';
|
|
7
|
-
@import 'viewport-breakpoints/viewport-breakpoints';
|
|
8
|
-
@import 'transitions/transitions';
|
|
9
|
-
@import 'placeholder/placeholder';
|
|
1
|
+
@forward '@webitel/styleguide';
|
|
2
|
+
|
|
3
|
+
@forward 'transitions/transitions';
|
|
4
|
+
@forward 'placeholder/placeholder';
|
|
5
|
+
@forward 'display-helpers/display-helpers';
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
// https://stackoverflow.com/a/17181946/17782185
|
|
2
2
|
// https://stackoverflow.com/a/49192800/17782185
|
|
3
|
+
@use "sass:selector";
|
|
3
4
|
|
|
5
|
+
//@mixin optional-at-root($sel) {
|
|
6
|
+
// @at-root #{if(not &, $sel, selector-append(&, $sel))} {
|
|
7
|
+
// @content;
|
|
8
|
+
// }
|
|
9
|
+
//}
|
|
4
10
|
@mixin optional-at-root($sel) {
|
|
5
|
-
@
|
|
6
|
-
@
|
|
11
|
+
@if & {
|
|
12
|
+
@at-root #{selector.append(&, $sel)} {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
} @else {
|
|
16
|
+
@at-root #{$sel} {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
7
19
|
}
|
|
8
20
|
}
|
|
9
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'fade/fade';
|
package/src/install.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import 'vue-multiselect/dist/vue-multiselect.css';
|
|
2
|
+
import '@webitel/styleguide/fonts';
|
|
2
3
|
import './css/main.scss';
|
|
4
|
+
import './assets/icons/sprite/index.js';
|
|
5
|
+
|
|
3
6
|
import generateInstance from './api/axios/generateInstance.js';
|
|
4
7
|
import Components from './components/index.js'; // init all components
|
|
5
8
|
import Directives from './directives/index.js'; // init all directives
|
|
6
|
-
import './css/styleguide/fonts/_fonts.scss';
|
|
7
|
-
import './assets/icons/sprite/index.js';
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
install(app, { eventBus, router, globals = {} }) {
|