@webitel/ui-sdk 24.12.37 → 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.
Files changed (90) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +2637 -2634
  4. package/dist/ui-sdk.umd.cjs +17 -17
  5. package/package.json +2 -1
  6. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-1.vue +1 -1
  7. package/src/components/on-demand/wt-navigation-menu/components/_internals/nav-menu-lvl-2.vue +1 -1
  8. package/src/components/on-demand/wt-navigation-menu/components/wt-navigation-menu.vue +3 -3
  9. package/src/components/on-demand/wt-navigation-menu/css/_nav-menu.scss +1 -1
  10. package/src/components/on-demand/wt-selection-popup/wt-selection-popup.vue +1 -1
  11. package/src/components/on-demand/wt-start-page/components/start-page-card.vue +2 -1
  12. package/src/components/wt-app-header/wt-app-header.vue +1 -1
  13. package/src/components/wt-app-header/wt-app-navigator.vue +2 -2
  14. package/src/components/wt-app-header/wt-header-actions.vue +1 -1
  15. package/src/components/wt-avatar/wt-avatar.vue +1 -1
  16. package/src/components/wt-badge/wt-badge.vue +1 -1
  17. package/src/components/wt-button/wt-button.vue +2 -2
  18. package/src/components/wt-button-select/wt-button-select.vue +1 -1
  19. package/src/components/wt-checkbox/wt-checkbox.vue +1 -1
  20. package/src/components/wt-chip/wt-chip.scss +1 -1
  21. package/src/components/wt-chip/wt-chip.vue +2 -2
  22. package/src/components/wt-context-menu/wt-context-menu.vue +2 -2
  23. package/src/components/wt-datepicker/wt-datepicker.vue +4 -3
  24. package/src/components/wt-divider/wt-divider.vue +1 -1
  25. package/src/components/wt-dual-panel/wt-dual-panel.vue +4 -3
  26. package/src/components/wt-dummy/wt-dummy.vue +3 -2
  27. package/src/components/wt-empty/wt-empty.vue +3 -2
  28. package/src/components/wt-expansion-panel/wt-expansion-panel.vue +4 -3
  29. package/src/components/wt-headline/wt-headline.vue +2 -2
  30. package/src/components/wt-headline-nav/wt-headline-nav.vue +2 -2
  31. package/src/components/wt-icon/wt-icon.vue +1 -1
  32. package/src/components/wt-icon-btn/wt-icon-btn.vue +1 -1
  33. package/src/components/wt-image/wt-image.vue +1 -1
  34. package/src/components/wt-indicator/wt-indicator.vue +2 -2
  35. package/src/components/wt-input/wt-input.vue +5 -4
  36. package/src/components/wt-input-info/wt-input-info.vue +2 -2
  37. package/src/components/wt-item-link/wt-item-link.vue +1 -1
  38. package/src/components/wt-label/wt-label.vue +2 -2
  39. package/src/components/wt-load-bar/wt-load-bar.vue +1 -1
  40. package/src/components/wt-loader/_internals/wt-loader--md.vue +3 -1
  41. package/src/components/wt-loader/wt-loader.vue +1 -1
  42. package/src/components/wt-logo/wt-logo.vue +1 -1
  43. package/src/components/wt-navigation-bar/wt-navigation-bar.vue +2 -2
  44. package/src/components/wt-notification/wt-notification.vue +2 -2
  45. package/src/components/wt-notifications-bar/wt-notifications-bar.vue +2 -2
  46. package/src/components/wt-page-wrapper/wt-page-wrapper.vue +1 -1
  47. package/src/components/wt-pagination/wt-pagination.vue +2 -2
  48. package/src/components/wt-player/wt-player.vue +3 -3
  49. package/src/components/wt-popup/wt-popup.vue +2 -2
  50. package/src/components/wt-progress-bar/wt-progress-bar.vue +1 -1
  51. package/src/components/wt-radio/wt-radio.vue +1 -1
  52. package/src/components/wt-rounded-action/wt-rounded-action.vue +1 -1
  53. package/src/components/wt-search-bar/wt-search-bar.vue +3 -2
  54. package/src/components/wt-select/_multiselect.scss +1 -1
  55. package/src/components/wt-select/wt-select.vue +2 -2
  56. package/src/components/wt-slider/wt-slider.vue +1 -1
  57. package/src/components/wt-status-select/wt-status-select.vue +1 -1
  58. package/src/components/wt-stepper/wt-stepper.vue +1 -1
  59. package/src/components/wt-switcher/wt-switcher.vue +1 -1
  60. package/src/components/wt-table/wt-table.vue +2 -2
  61. package/src/components/wt-table-actions/wt-table-actions.vue +1 -1
  62. package/src/components/wt-table-column-select/wt-table-column-select.vue +1 -1
  63. package/src/components/wt-tabs/wt-tabs.vue +2 -2
  64. package/src/components/wt-tags-input/wt-tags-input.vue +1 -1
  65. package/src/components/wt-textarea/wt-textarea.vue +4 -4
  66. package/src/components/wt-time-input/wt-time-input.vue +3 -3
  67. package/src/components/wt-timepicker/wt-timepicker.vue +1 -1
  68. package/src/components/wt-tooltip/wt-tooltip.vue +3 -2
  69. package/src/components/wt-tree-table/wt-tree-table.vue +33 -16
  70. package/src/components/wt-tree-table-row/wt-tree-table-row.vue +49 -15
  71. package/src/css/main.scss +5 -4
  72. package/src/css/pages/card-page.scss +2 -0
  73. package/src/css/pages/table-page.scss +3 -0
  74. package/src/css/styleguide/_styleguide.scss +5 -9
  75. package/src/css/styleguide/display-helpers/_display-helpers.scss +2 -1
  76. package/src/css/styleguide/placeholder/_placeholder.scss +14 -2
  77. package/src/css/styleguide/transitions/_transitions.scss +1 -1
  78. package/src/install.ts +3 -2
  79. package/src/modules/QueryFilters/components/filter-from-to.vue +2 -0
  80. package/src/css/styleguide/border-radius/_border-radius.scss +0 -4
  81. package/src/css/styleguide/colors/_colors.scss +0 -199
  82. package/src/css/styleguide/colors/_deprecated.scss +0 -210
  83. package/src/css/styleguide/colors/_palette.scss +0 -1447
  84. package/src/css/styleguide/colors/reusable/_text-field.scss +0 -47
  85. package/src/css/styleguide/elevations/_elevations.scss +0 -13
  86. package/src/css/styleguide/fonts/_fonts.scss +0 -143
  87. package/src/css/styleguide/scroll.scss +0 -44
  88. package/src/css/styleguide/spacings/_spacings.scss +0 -15
  89. package/src/css/styleguide/typography/_typography.scss +0 -124
  90. 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
- @import './variables.scss';
87
+ @use './variables.scss';
88
88
  </style>
89
89
 
90
90
  <style lang="scss" scoped>
91
- @import '../../../src/css/main.scss';
91
+ @use '../../css/main.scss';
92
92
 
93
93
  .wt-popup {
94
94
  position: fixed;
@@ -48,7 +48,7 @@ export default {
48
48
  </script>
49
49
 
50
50
  <style lang="scss">
51
- @import './variables.scss';
51
+ @use './variables.scss';
52
52
  </style>
53
53
 
54
54
  <style lang="scss" scoped>
@@ -89,7 +89,7 @@ export default {
89
89
  </script>
90
90
 
91
91
  <style lang="scss">
92
- @import './variables.scss';
92
+ @use './variables.scss';
93
93
  </style>
94
94
 
95
95
  <style lang="scss" scoped>
@@ -86,7 +86,7 @@ const iColor = computed(() => {
86
86
  </script>
87
87
 
88
88
  <style lang="scss">
89
- @import './variables.scss';
89
+ @use './variables.scss';
90
90
  </style>
91
91
 
92
92
  <style lang="scss" scoped>
@@ -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
- @import './variables.scss';
166
+ @use './variables.scss';
166
167
  </style>
167
168
 
168
169
  <style lang="scss" scoped>
169
- @import '../../../src/css/main.scss';
170
+ @use '../../css/main' as *;
170
171
 
171
172
  .wt-search-bar {
172
173
  cursor: text;
@@ -1,4 +1,4 @@
1
- @import '../../../src/css/main.scss';
1
+ @use '../../css/main' as *;
2
2
 
3
3
  :deep(.multiselect) {
4
4
  position: relative;
@@ -284,11 +284,11 @@ export default {
284
284
  </script>
285
285
 
286
286
  <style lang="scss">
287
- @import './variables.scss';
287
+ @use './variables.scss';
288
288
  </style>
289
289
 
290
290
  <style lang="scss" scoped>
291
- @import './multiselect.scss';
291
+ @use './multiselect.scss' as *;
292
292
 
293
293
  .wt-select {
294
294
  width: 100%;
@@ -99,7 +99,7 @@ export default {
99
99
  </script>
100
100
 
101
101
  <style lang="scss">
102
- @import './variables.scss';
102
+ @use './variables.scss';
103
103
  </style>
104
104
 
105
105
  <style lang="scss" scoped>
@@ -104,7 +104,7 @@ export default {
104
104
  </script>
105
105
 
106
106
  <style lang="scss">
107
- @import './variables.scss';
107
+ @use './variables.scss';
108
108
  </style>
109
109
 
110
110
  <style lang="scss" scoped>
@@ -56,7 +56,7 @@ const stepWithCompleted = computed(() =>
56
56
  </script>
57
57
 
58
58
  <style lang="scss">
59
- @import './variables.scss';
59
+ @use './variables.scss';
60
60
  </style>
61
61
 
62
62
  <style lang="scss" scoped>
@@ -76,7 +76,7 @@ export default {
76
76
  </script>
77
77
 
78
78
  <style lang="scss">
79
- @import './variables.scss';
79
+ @use './variables.scss';
80
80
  </style>
81
81
 
82
82
  <style lang="scss" scoped>
@@ -293,11 +293,11 @@ export default {
293
293
  </script>
294
294
 
295
295
  <style lang="scss">
296
- @import './variables.scss';
296
+ @use './variables.scss';
297
297
  </style>
298
298
 
299
299
  <style lang="scss" scoped>
300
- @import '../../../src/css/main.scss';
300
+ @use '../../css/main.scss';
301
301
 
302
302
  .wt-table {
303
303
  @extend %wt-scrollbar;
@@ -96,7 +96,7 @@ export default {
96
96
  </script>
97
97
 
98
98
  <style lang="scss">
99
- @import './variables.scss';
99
+ @use './variables.scss';
100
100
  </style>
101
101
 
102
102
  <style lang="scss" scoped>
@@ -131,7 +131,7 @@ export default {
131
131
  </script>
132
132
 
133
133
  <style lang="scss" scoped>
134
- @import '../../../src/css/main.scss';
134
+ @use '../../css/main.scss';
135
135
 
136
136
  $list-height: 400px;
137
137
  $list-width-sm: calc(
@@ -83,11 +83,11 @@ export default {
83
83
  </script>
84
84
 
85
85
  <style lang="scss">
86
- @import './variables.scss';
86
+ @use './variables.scss';
87
87
  </style>
88
88
 
89
89
  <style lang="scss" scoped>
90
- @import '../../../src/css/main.scss';
90
+ @use '../../css/main.scss';
91
91
 
92
92
  .wt-tabs {
93
93
  position: relative;
@@ -178,7 +178,7 @@ export default {
178
178
  </script>
179
179
 
180
180
  <style lang="scss" scoped>
181
- @import '../wt-select/multiselect.scss';
181
+ @use '../wt-select/multiselect.scss';
182
182
 
183
183
  .wt-tags-input {
184
184
  width: 100%;
@@ -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
- @import './variables.scss';
171
+ @use './variables.scss';
172
172
  </style>
173
173
 
174
174
  <style lang="scss" scoped>
175
- @import '../../../src/css/main.scss';
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
- @import '../../../src/css/main.scss';
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
  }
@@ -182,7 +182,7 @@ export default {
182
182
  </script>
183
183
 
184
184
  <style lang="scss">
185
- @import './variables.scss';
185
+ @use './variables.scss';
186
186
  </style>
187
187
 
188
188
  <style lang="scss" scoped>
@@ -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
- @import './variables.scss';
146
+ @use './variables.scss';
146
147
  </style>
147
148
 
148
149
  <style lang="scss" scoped>
149
- @import '../../../src/css/main.scss';
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 :selected="isAllSelected" @change="selectAll" />
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 v-if="gridActions" class="wt-tree-table-th__actions">
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 name="actions" :item="item" />
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 :index="dataKey" :item="item" :name="col.value">
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 "vue";
80
- import { useWtTable } from "../../composables/useWtTable/useWtTable.ts";
81
- import { getNextSortOrder } from "../../scripts/sortQueryAdapters";
82
- import type { TableHeader } from "../wt-table/types/table-header.js";
83
- import WtTreeTableRow from "../wt-tree-table-row/wt-tree-table-row.vue";
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(["sort", "update:selected"]);
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("sort", col, nextSort);
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("update:selected", isAllSelected.value ? [] : [...getAllNestedElements(props.data)]);
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("update:selected", [...selectedElements.value, row]);
239
+ emit('update:selected', [...selectedElements.value, row]);
223
240
  } else {
224
241
  emit(
225
- "update:selected",
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
- @import "./variables.scss";
254
+ @use './variables.scss';
238
255
  </style>
239
256
 
240
257
  <style lang="scss" scoped>
241
- @import "../../../src/css/main.scss";
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 class="wt-tree-table-row" :class="[{ 'wt-tree-table-row--alternate': rowPosition % 2 }]">
3
- <td v-for="(col, headerKey) of dataHeaders" :key="headerKey" class="wt-tree-table-td">
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 v-if="!headerKey" class="wt-tree-table-td__icon-wrapper">
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 :index="rowPosition" :item="data" :name="col.value">
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 v-if="gridActions" class="wt-tree-table-td__actions">
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 :index="rowPosition" :item="data" name="actions" />
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 v-for="(col, headerKey) of dataHeaders" :key="headerKey" #[col.value]="{ item }">
66
- <slot :index="rowPosition" :item="item" :name="col.value">
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 :index="rowPosition" :item="item" name="actions" />
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 "vue";
79
- import WtCheckbox from "../wt-checkbox/wt-checkbox.vue";
80
- import WtIconBtn from "../wt-icon-btn/wt-icon-btn.vue";
81
- import type { TableHeader } from "../wt-table/types/table-header.ts";
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(["update:selected"]);
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
- @import "../../../src/css/main.scss";
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
- @import 'styleguide/styleguide';
2
- @import 'styleguide/display-helpers/display-helpers';
3
- @import 'pages/card-page';
4
- @import 'pages/table-page';
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,3 +1,5 @@
1
+ @use '../styleguide/styleguide' as *;
2
+
1
3
  .opened-card {
2
4
  width: 100%;
3
5
 
@@ -1,4 +1,7 @@
1
+ @use '../styleguide/styleguide' as *;
2
+
1
3
  .table-page {
4
+
2
5
  &.wt-page-wrapper {
3
6
  width: 100%;
4
7
  height: 100%;
@@ -1,9 +1,5 @@
1
- @import './scroll';
2
- @import 'border-radius/border-radius';
3
- @import 'typography/typography';
4
- @import 'colors/colors';
5
- @import 'elevations/elevations';
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,4 +1,5 @@
1
- @import '../viewport-breakpoints/viewport-breakpoints';
1
+ @use '@webitel/styleguide' as *;
2
+ //@use '../viewport-breakpoints/viewport-breakpoints' as *;
2
3
 
3
4
  .d-none {
4
5
  display: none;
@@ -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
- @at-root #{if(not &, $sel, selector-append(&, $sel))} {
6
- @content;
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
- @import 'fade/fade';
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 = {} }) {
@@ -110,6 +110,8 @@ export default {
110
110
  </script>
111
111
 
112
112
  <style lang="scss" scoped>
113
+ @use '../../../css/main.scss';
114
+
113
115
  .filter-from-to {
114
116
  &:hover > .wt-label {
115
117
  color: var(--form-label--hover-color);
@@ -1,4 +0,0 @@
1
- :root {
2
- --border-radius: var(--spacing-2xs);
3
- --border-radius--pill: 50px;
4
- }