@kiva/kv-components 3.102.1 → 3.102.3

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 CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.102.3](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.102.2...@kiva/kv-components@3.102.3) (2024-09-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * width classes added to pie chart ([#463](https://github.com/kiva/kv-ui-elements/issues/463)) ([77715e2](https://github.com/kiva/kv-ui-elements/commit/77715e2d27a19bbb9c3cdd5239a037ae04ee5715))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.102.2](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.102.1...@kiva/kv-components@3.102.2) (2024-09-26)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * change how model value is handled for select component ([5626a8f](https://github.com/kiva/kv-ui-elements/commit/5626a8fcb2a464d72abbda06968dec56496e4204))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [3.102.1](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.102.0...@kiva/kv-components@3.102.1) (2024-09-23)
7
29
 
8
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "3.102.1",
3
+ "version": "3.102.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -83,5 +83,5 @@
83
83
  "optional": true
84
84
  }
85
85
  },
86
- "gitHead": "6e2360df11de20e781c327c45d43fd8d4dae1c58"
86
+ "gitHead": "95526e533545173c47b945ef8c8d85509cb8aa18"
87
87
  }
@@ -4,18 +4,17 @@
4
4
  @mouseleave="activeSlice = null"
5
5
  >
6
6
  <!-- pie chart -->
7
- <div class="tw-relative tw-h-full">
7
+ <div class="tw-relative">
8
8
  <div
9
9
  v-if="loading"
10
- class="pie-placeholder tw-h-full tw-p-2.5"
10
+ class="pie-placeholder tw-mt-2.5"
11
11
  >
12
- <div class="tw-overflow-hidden tw-rounded-full tw-h-full">
12
+ <div class="tw-overflow-hidden tw-rounded-full">
13
13
  <kv-loading-placeholder />
14
14
  </div>
15
15
  </div>
16
16
  <svg
17
17
  v-else
18
- class="tw-h-full"
19
18
  viewBox="0 0 32 32"
20
19
  xmlns="http://www.w3.org/2000/svg"
21
20
  xmlns:xlink="http://www.w3.org/1999/xlink"
@@ -236,14 +235,13 @@ export default {
236
235
  </script>
237
236
 
238
237
  <style lang="postcss" scoped>
239
- .pie-chart {
240
- height: 40rem;
241
- @screen md {
242
- height: 20rem;
243
- }
238
+ .pie-chart svg {
239
+ width: 20rem;
240
+ height: 20rem;
244
241
  }
245
242
 
246
- .pie-placeholder {
247
- width: 20rem;
243
+ .pie-placeholder, .pie-placeholder div {
244
+ width: 17.5rem;
245
+ height: 17.5rem;
248
246
  }
249
247
  </style>
package/vue/KvSelect.vue CHANGED
@@ -9,8 +9,8 @@
9
9
  <select
10
10
  :id="id"
11
11
  v-bind="inputAttrs"
12
+ v-model="inputValue"
12
13
  :disabled="disabled"
13
- :value="modelValue"
14
14
  class="tw-text-base tw-bg-primary tw-h-6 tw-pr-4 tw-pl-2 tw-border tw-border-tertiary tw-rounded-sm tw-appearance-none tw-w-full tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-action focus:tw-border-transparent"
15
15
  :class="{ 'tw-opacity-low': disabled }"
16
16
  @change="onChange"
@@ -28,7 +28,7 @@
28
28
  </template>
29
29
 
30
30
  <script>
31
- import 'vue-demi';
31
+ import { ref, watch } from 'vue-demi';
32
32
  import { mdiChevronDown } from '@mdi/js';
33
33
  import KvMaterialIcon from './KvMaterialIcon.vue';
34
34
  import { useAttrs } from '../utils/attrs';
@@ -82,6 +82,14 @@ export default {
82
82
  inputListeners,
83
83
  } = useAttrs(context, emits);
84
84
 
85
+ const inputValue = ref(props.modelValue);
86
+
87
+ watch(() => props.modelValue, (newValue) => {
88
+ if (newValue !== inputValue.value) {
89
+ inputValue.value = newValue;
90
+ }
91
+ });
92
+
85
93
  const onChange = (event) => {
86
94
  /**
87
95
  * The value that the select has changed to
@@ -91,6 +99,7 @@ export default {
91
99
  emit('change', event.target.value);
92
100
  emit('update:modelValue', event.target.value);
93
101
  };
102
+
94
103
  return {
95
104
  mdiChevronDown,
96
105
  onChange,
@@ -98,6 +107,7 @@ export default {
98
107
  styles,
99
108
  inputAttrs,
100
109
  inputListeners,
110
+ inputValue,
101
111
  };
102
112
  },
103
113
  };