@xen-orchestra/web-core 0.39.0 → 0.39.1

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.
@@ -4,12 +4,13 @@
4
4
  <input
5
5
  :id="wrapperController?.id ?? id"
6
6
  ref="inputRef"
7
- v-model.trim="modelValue"
7
+ :value="modelValue"
8
8
  :disabled
9
9
  :required
10
10
  :type
11
11
  class="typo-body-regular input text-ellipsis"
12
12
  v-bind="attrs"
13
+ @input="event => handleInput(event)"
13
14
  />
14
15
  <UiButtonIcon
15
16
  v-if="!disabled && modelValue && clearable"
@@ -42,7 +43,6 @@ export type InputType = 'text' | 'number' | 'password' | 'search'
42
43
  defineOptions({
43
44
  inheritAttrs: false,
44
45
  })
45
-
46
46
  const {
47
47
  accent: _accent,
48
48
  required,
@@ -65,6 +65,10 @@ const slots = defineSlots<{
65
65
  'right-icon'?(): any
66
66
  }>()
67
67
 
68
+ function handleInput(event: Event) {
69
+ modelValue.value = (event.target as HTMLInputElement).value
70
+ }
71
+
68
72
  const attrs = useAttrs()
69
73
 
70
74
  const inputRef = ref<HTMLInputElement>()
@@ -73,11 +77,11 @@ const wrapperController = inject(IK_INPUT_WRAPPER_CONTROLLER, undefined)
73
77
 
74
78
  const accent = useMapper<LabelAccent, InputAccent>(
75
79
  () => wrapperController?.labelAccent,
76
- {
80
+ () => ({
77
81
  neutral: _accent,
78
82
  warning: 'warning',
79
83
  danger: 'danger',
80
- },
84
+ }),
81
85
  'neutral'
82
86
  )
83
87
 
@@ -144,6 +144,8 @@ const progress = computed(() => {
144
144
  }
145
145
 
146
146
  .tree-section {
147
+ --line-container-base-width: 2.8rem;
148
+ --line-width: 0.1rem;
147
149
  display: flex;
148
150
  align-items: center;
149
151
  padding-left: 1.6rem;
@@ -152,10 +154,11 @@ const progress = computed(() => {
152
154
  .tree-lines {
153
155
  display: flex;
154
156
  align-self: stretch;
157
+ min-width: calc(var(--line-container-base-width) * v-bind(depth - 1));
155
158
  }
156
159
 
157
160
  .tree-line {
158
- flex: 0 0 2.8rem;
161
+ flex: 0 0 calc(var(--line-container-base-width) + var(--line-width));
159
162
  display: flex;
160
163
  align-items: center;
161
164
  justify-content: center;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xen-orchestra/web-core",
3
3
  "type": "module",
4
- "version": "0.39.0",
4
+ "version": "0.39.1",
5
5
  "private": false,
6
6
  "exports": {
7
7
  "./*": {