@onereach/ui-components 2.70.2-beta.2218.0 → 2.70.2-beta.2219.0

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 (202) hide show
  1. package/dist/bundled/v2/{OrCardCollection-9d8e3fbc.js → OrCardCollection-091e2193.js} +1 -1
  2. package/dist/bundled/v2/{OrCheckbox-a2ceda44.js → OrCheckbox-9be450f9.js} +12 -17
  3. package/dist/bundled/v2/{OrConfirm-d6e533f2.js → OrConfirm-ebff0b61.js} +1 -1
  4. package/dist/bundled/v2/{OrInlineInput-47fca182.js → OrInlineInput-b009a043.js} +9 -14
  5. package/dist/bundled/v2/{OrInlineTextarea-d9b9e485.js → OrInlineTextarea-6e8c1f80.js} +9 -14
  6. package/dist/bundled/v2/{OrInput-9288b667.js → OrInput-5404a234.js} +9 -14
  7. package/dist/bundled/v2/{OrPagination-44e713a2.js → OrPagination-daf25de2.js} +7 -14
  8. package/dist/bundled/v2/{OrRadio-f140c19a.js → OrRadio-fe23947a.js} +12 -17
  9. package/dist/bundled/v2/{OrSearch-ba756661.js → OrSearch-d1169241.js} +1 -1
  10. package/dist/bundled/v2/{OrSegmentedControl-b9d0b95a.js → OrSegmentedControl-878279bf.js} +6 -11
  11. package/dist/bundled/v2/{OrSelect-c91fc506.js → OrSelect-fef400f4.js} +10 -15
  12. package/dist/bundled/v2/{OrSortHeader-180d77ee.js → OrSortHeader-565ace92.js} +8 -13
  13. package/dist/bundled/v2/{OrSwitch-37a3ecf9.js → OrSwitch-782d7b43.js} +12 -17
  14. package/dist/bundled/v2/{OrTabs-92360920.js → OrTabs-d69780fc.js} +6 -11
  15. package/dist/bundled/v2/{OrTextarea-7822c4b6.js → OrTextarea-5c57c02b.js} +9 -14
  16. package/dist/bundled/v2/components/index.js +15 -15
  17. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
  18. package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
  19. package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -1
  20. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  21. package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
  22. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -1
  23. package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
  24. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -1
  25. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +0 -11
  26. package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
  27. package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
  28. package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
  29. package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
  30. package/dist/bundled/v2/components/or-radio-v3/index.js +1 -1
  31. package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
  32. package/dist/bundled/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
  33. package/dist/bundled/v2/components/or-segmented-control-v3/index.js +1 -1
  34. package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +3 -14
  35. package/dist/bundled/v2/components/or-select-v3/index.js +3 -3
  36. package/dist/bundled/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
  37. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  38. package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
  39. package/dist/bundled/v2/components/or-switch-v3/index.js +1 -1
  40. package/dist/bundled/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
  41. package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
  42. package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
  43. package/dist/bundled/v2/components/or-textarea-v3/index.js +1 -1
  44. package/dist/bundled/v2/index.js +15 -15
  45. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-1e3dd861.js → OrCardCollection.vue_vue_type_script_lang-60403ae6.js} +1 -1
  46. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-fec2fa29.js → OrCheckbox.vue_vue_type_script_lang-fc067611.js} +6 -11
  47. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-747c5ce7.js → OrConfirm.vue_vue_type_script_lang-528380c1.js} +2 -2
  48. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-62406472.js → OrInlineInput.vue_vue_type_script_lang-ab296efc.js} +6 -11
  49. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-a55dffd2.js → OrInlineTextarea.vue_vue_type_script_lang-3c3e1b4a.js} +6 -11
  50. package/dist/bundled/v3/{OrInput-9faa2035.js → OrInput-2a7c6b57.js} +1 -1
  51. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-dea5c599.js → OrInput.vue_vue_type_script_lang-509de504.js} +6 -11
  52. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-0d299d07.js → OrPagination.vue_vue_type_script_lang-f64827ef.js} +7 -14
  53. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2f053184.js → OrRadio.vue_vue_type_script_lang-8dc0720c.js} +6 -11
  54. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-2bc9e930.js → OrSearch.vue_vue_type_script_lang-ab2ef22c.js} +2 -2
  55. package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-92379dcc.js → OrSegmentedControl.vue_vue_type_script_lang-38a00b68.js} +6 -11
  56. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-72e0cd5a.js → OrSelect.vue_vue_type_script_lang-8ab7bc56.js} +10 -15
  57. package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-866f9764.js → OrSortHeader.vue_vue_type_script_lang-a20eae87.js} +8 -13
  58. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-45f536b3.js → OrSwitch.vue_vue_type_script_lang-31994be7.js} +6 -11
  59. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2b84672b.js → OrTabs.vue_vue_type_script_lang-cb550e87.js} +6 -11
  60. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-94b94433.js → OrTextarea.vue_vue_type_script_lang-296da567.js} +6 -11
  61. package/dist/bundled/v3/components/index.js +16 -16
  62. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
  63. package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
  64. package/dist/bundled/v3/components/or-checkbox-v3/index.js +1 -1
  65. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  66. package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
  67. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -1
  68. package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
  69. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -1
  70. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +0 -11
  71. package/dist/bundled/v3/components/or-input-v3/index.js +1 -1
  72. package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
  73. package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
  74. package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
  75. package/dist/bundled/v3/components/or-radio-v3/index.js +1 -1
  76. package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
  77. package/dist/bundled/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
  78. package/dist/bundled/v3/components/or-segmented-control-v3/index.js +1 -1
  79. package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +3 -14
  80. package/dist/bundled/v3/components/or-select-v3/index.js +4 -4
  81. package/dist/bundled/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
  82. package/dist/bundled/v3/components/or-sort-header-v3/index.js +1 -1
  83. package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
  84. package/dist/bundled/v3/components/or-switch-v3/index.js +1 -1
  85. package/dist/bundled/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
  86. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
  87. package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
  88. package/dist/bundled/v3/components/or-textarea-v3/index.js +1 -1
  89. package/dist/bundled/v3/index.js +34 -34
  90. package/dist/esm/v2/{OrCardCollection-3fc3a24e.js → OrCardCollection-bbdb6159.js} +1 -1
  91. package/dist/esm/v2/{OrCheckbox-05b9a244.js → OrCheckbox-b380c131.js} +12 -17
  92. package/dist/esm/v2/{OrConfirm-56db44bd.js → OrConfirm-7fb515d4.js} +1 -1
  93. package/dist/esm/v2/{OrInlineInput-c8058b04.js → OrInlineInput-38645a8e.js} +9 -14
  94. package/dist/esm/v2/{OrInlineTextarea-252d3c2c.js → OrInlineTextarea-b49a7107.js} +9 -14
  95. package/dist/esm/v2/{OrInput-fd9b3e7d.js → OrInput-e8fe9102.js} +9 -14
  96. package/dist/esm/v2/{OrPagination-8b604bd9.js → OrPagination-1adbcadb.js} +7 -14
  97. package/dist/esm/v2/{OrRadio-2094e67d.js → OrRadio-87a4d226.js} +12 -17
  98. package/dist/esm/v2/{OrSearch-072ee1b9.js → OrSearch-4b774707.js} +1 -1
  99. package/dist/esm/v2/{OrSegmentedControl-71248337.js → OrSegmentedControl-7486115b.js} +6 -11
  100. package/dist/esm/v2/{OrSelect-23208d36.js → OrSelect-871fae44.js} +10 -15
  101. package/dist/esm/v2/{OrSortHeader-8ca76674.js → OrSortHeader-592727dc.js} +8 -13
  102. package/dist/esm/v2/{OrSwitch-a1f67338.js → OrSwitch-8549219a.js} +12 -17
  103. package/dist/esm/v2/{OrTabs-954838f3.js → OrTabs-96b0473d.js} +6 -11
  104. package/dist/esm/v2/{OrTextarea-5f79faca.js → OrTextarea-a5a3572b.js} +9 -14
  105. package/dist/esm/v2/components/index.js +15 -15
  106. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  107. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
  108. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
  109. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  110. package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
  111. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  112. package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
  113. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  114. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +0 -11
  115. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  116. package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
  117. package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
  118. package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
  119. package/dist/esm/v2/components/or-radio-v3/index.js +1 -1
  120. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  121. package/dist/esm/v2/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
  122. package/dist/esm/v2/components/or-segmented-control-v3/index.js +1 -1
  123. package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +3 -14
  124. package/dist/esm/v2/components/or-select-v3/index.js +3 -3
  125. package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
  126. package/dist/esm/v2/components/or-sort-header-v3/index.js +1 -1
  127. package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
  128. package/dist/esm/v2/components/or-switch-v3/index.js +1 -1
  129. package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
  130. package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
  131. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
  132. package/dist/esm/v2/components/or-textarea-v3/index.js +1 -1
  133. package/dist/esm/v2/index.js +15 -15
  134. package/dist/esm/v3/{OrCardCollection-53e83dbb.js → OrCardCollection-47f61c40.js} +1 -1
  135. package/dist/esm/v3/{OrCheckbox-afadd5b8.js → OrCheckbox-16c1e2f4.js} +7 -12
  136. package/dist/esm/v3/{OrConfirm-06ed85f9.js → OrConfirm-8b7f29c2.js} +1 -1
  137. package/dist/esm/v3/{OrInlineInput-6d363088.js → OrInlineInput-09de432a.js} +6 -11
  138. package/dist/esm/v3/{OrInlineTextarea-3e48b319.js → OrInlineTextarea-56328f22.js} +6 -11
  139. package/dist/esm/v3/{OrInput-5ef51369.js → OrInput-6fb81556.js} +6 -11
  140. package/dist/esm/v3/{OrPagination-010b0bef.js → OrPagination-da9e5017.js} +7 -14
  141. package/dist/esm/v3/{OrRadio-a0bd352b.js → OrRadio-bb9b37c1.js} +7 -12
  142. package/dist/esm/v3/{OrSearch-9eb38b29.js → OrSearch-e15955a7.js} +1 -1
  143. package/dist/esm/v3/{OrSegmentedControl-c7221732.js → OrSegmentedControl-880b4911.js} +6 -11
  144. package/dist/esm/v3/{OrSelect-64fa5d0b.js → OrSelect-acf12fe6.js} +12 -17
  145. package/dist/esm/v3/{OrSortHeader-cab07616.js → OrSortHeader-a39f77f9.js} +8 -13
  146. package/dist/esm/v3/{OrSwitch-f342ee4b.js → OrSwitch-1c2196da.js} +7 -12
  147. package/dist/esm/v3/{OrTabs-a1ffc2a3.js → OrTabs-328d41b9.js} +6 -11
  148. package/dist/esm/v3/{OrTextarea-f3831b3f.js → OrTextarea-37566985.js} +6 -11
  149. package/dist/esm/v3/components/index.js +15 -15
  150. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  151. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -14
  152. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
  153. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  154. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +0 -11
  155. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  156. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +0 -11
  157. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  158. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +0 -11
  159. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  160. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -11
  161. package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
  162. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +0 -11
  163. package/dist/esm/v3/components/or-radio-v3/index.js +1 -1
  164. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  165. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +3 -14
  166. package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -1
  167. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +3 -14
  168. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  169. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +2 -13
  170. package/dist/esm/v3/components/or-sort-header-v3/index.js +1 -1
  171. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +3 -14
  172. package/dist/esm/v3/components/or-switch-v3/index.js +1 -1
  173. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +2 -13
  174. package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
  175. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +0 -11
  176. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  177. package/dist/esm/v3/index.js +15 -15
  178. package/package.json +1 -1
  179. package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +3 -7
  180. package/src/components/or-checkbox-v3/OrCheckbox.vue +8 -12
  181. package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +0 -4
  182. package/src/components/or-inline-input-v3/OrInlineInput.vue +6 -10
  183. package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +0 -4
  184. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +6 -10
  185. package/src/components/or-input-v3/OrInput.stories3.ts +0 -4
  186. package/src/components/or-input-v3/OrInput.vue +6 -10
  187. package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -4
  188. package/src/components/or-pagination-v3/OrPagination.vue +9 -20
  189. package/src/components/or-radio-v3/OrRadio.stories3.ts +3 -7
  190. package/src/components/or-radio-v3/OrRadio.vue +8 -12
  191. package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +0 -4
  192. package/src/components/or-segmented-control-v3/OrSegmentedControl.vue +6 -11
  193. package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
  194. package/src/components/or-select-v3/OrSelect.vue +8 -12
  195. package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +3 -7
  196. package/src/components/or-sort-header-v3/OrSortHeader.vue +9 -13
  197. package/src/components/or-switch-v3/OrSwitch.stories3.ts +3 -7
  198. package/src/components/or-switch-v3/OrSwitch.vue +8 -12
  199. package/src/components/or-tabs-v3/OrTabs.stories3.ts +0 -4
  200. package/src/components/or-tabs-v3/OrTabs.vue +6 -11
  201. package/src/components/or-textarea-v3/OrTextarea.stories3.ts +0 -4
  202. package/src/components/or-textarea-v3/OrTextarea.vue +6 -10
@@ -9,7 +9,7 @@
9
9
  v-bind="controlAttributes"
10
10
  :class="controlStyles"
11
11
  type="radio"
12
- :value="inputValue"
12
+ :value="value"
13
13
  :required="required"
14
14
  :disabled="disabled"
15
15
  @focus="$emit('focus', $event)"
@@ -46,18 +46,18 @@ export default defineComponent({
46
46
  OrLabel,
47
47
  },
48
48
 
49
+ model: {
50
+ prop: 'modelValue',
51
+ event: 'update:modelValue',
52
+ },
53
+
49
54
  props: {
50
55
  modelValue: {
51
56
  type: String,
52
57
  default: undefined,
53
58
  },
54
59
 
55
- value: { // TODO: Remove Vue 2 fallback
56
- type: String,
57
- default: undefined,
58
- },
59
-
60
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
60
+ value: {
61
61
  type: String,
62
62
  required: true,
63
63
  },
@@ -86,7 +86,6 @@ export default defineComponent({
86
86
  emits: [
87
87
  'update:modelValue',
88
88
 
89
- 'input',
90
89
  'focus',
91
90
  'blur',
92
91
  ],
@@ -121,12 +120,9 @@ export default defineComponent({
121
120
  });
122
121
 
123
122
  const proxyModelValue = computed({
124
- get: () => {
125
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
126
- },
123
+ get: () => props.modelValue,
127
124
 
128
125
  set: (value) => {
129
- context.emit('input', value);
130
126
  context.emit('update:modelValue', value);
131
127
  },
132
128
  });
@@ -20,10 +20,6 @@ export default {
20
20
  control: { type: 'text' },
21
21
  },
22
22
 
23
- value: { // TODO: Remove Vue 2 fallback
24
- table: { disable: true },
25
- },
26
-
27
23
  size: {
28
24
  control: { type: 'select' },
29
25
  options: Object.values(SegmentedControlSize),
@@ -30,6 +30,11 @@ export default defineComponent({
30
30
  OrSegmentedControlItem,
31
31
  },
32
32
 
33
+ model: {
34
+ prop: 'modelValue',
35
+ event: 'update:modelValue',
36
+ },
37
+
33
38
  props: {
34
39
  options: {
35
40
  type: Array as PropType<SegmentedControlOption[]>,
@@ -41,11 +46,6 @@ export default defineComponent({
41
46
  default: undefined,
42
47
  },
43
48
 
44
- value: { // TODO: Remove Vue 2 fallback
45
- type: String,
46
- default: undefined,
47
- },
48
-
49
49
  size: {
50
50
  type: String as PropType<SegmentedControlSize>,
51
51
  default: SegmentedControlSize.M,
@@ -59,8 +59,6 @@ export default defineComponent({
59
59
 
60
60
  emits: [
61
61
  'update:modelValue',
62
-
63
- 'input',
64
62
  ],
65
63
 
66
64
  expose: [
@@ -80,12 +78,9 @@ export default defineComponent({
80
78
 
81
79
  // State
82
80
  const proxyModelValue = computed({
83
- get: () => {
84
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
85
- },
81
+ get: () => props.modelValue,
86
82
 
87
83
  set: (value) => {
88
- context.emit('input', value);
89
84
  context.emit('update:modelValue', value);
90
85
  },
91
86
  });
@@ -71,10 +71,6 @@ export default {
71
71
  control: { type: 'object' },
72
72
  },
73
73
 
74
- value: { // TODO: Remove Vue 2 fallback
75
- table: { disable: true },
76
- },
77
-
78
74
  multiple: {
79
75
  control: { type: 'boolean' },
80
76
  },
@@ -125,7 +125,7 @@
125
125
  >
126
126
  <OrCheckbox
127
127
  v-model="proxyModelValue"
128
- :input-value="option.value"
128
+ :value="option.value"
129
129
  :label="option.label"
130
130
  :label-variant="'input'"
131
131
  />
@@ -164,7 +164,7 @@
164
164
  >
165
165
  <OrCheckbox
166
166
  v-model="proxyModelValue"
167
- :input-value="option.value"
167
+ :value="option.value"
168
168
  :label="option.label"
169
169
  :label-variant="'input'"
170
170
  />
@@ -257,6 +257,11 @@ export default defineComponent({
257
257
  DropdownOpen,
258
258
  },
259
259
 
260
+ model: {
261
+ prop: 'modelValue',
262
+ event: 'update:modelValue',
263
+ },
264
+
260
265
  props: {
261
266
  options: {
262
267
  type: Array as PropType<SelectOption[]>,
@@ -273,11 +278,6 @@ export default defineComponent({
273
278
  default: undefined,
274
279
  },
275
280
 
276
- value: { // TODO: Remove Vue 2 fallback
277
- type: [String, Number, Array] as PropType<string | number | (string | number)[]>,
278
- default: undefined,
279
- },
280
-
281
281
  multiple: {
282
282
  type: Boolean,
283
283
  default: false,
@@ -350,7 +350,6 @@ export default defineComponent({
350
350
  emits: [
351
351
  'update:modelValue',
352
352
 
353
- 'input',
354
353
  'focus',
355
354
  'blur',
356
355
 
@@ -402,12 +401,9 @@ export default defineComponent({
402
401
  const controlId = ref(context.attrs.id as string ?? currentInstance.uid.toString());
403
402
 
404
403
  const proxyModelValue = computed({
405
- get: () => {
406
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
407
- },
404
+ get: () => props.modelValue,
408
405
 
409
406
  set: (value) => {
410
- context.emit('input', value);
411
407
  context.emit('update:modelValue', value);
412
408
  },
413
409
  });
@@ -25,11 +25,7 @@ export default {
25
25
  control: { type: 'object' },
26
26
  },
27
27
 
28
- value: { // TODO: Remove Vue 2 fallback
29
- control: { type: 'object' },
30
- },
31
-
32
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
28
+ value: {
33
29
  control: { type: 'text' },
34
30
  },
35
31
 
@@ -109,7 +105,7 @@ const Template: StoryFn<typeof OrSortHeader> = (args) => ({
109
105
 
110
106
  <OrSortHeader
111
107
  v-model="model"
112
- input-value="column-2"
108
+ value="column-2"
113
109
  @update:modelValue="onUpdateModelValue"
114
110
  @input="onInput"
115
111
  @focus="onFocus"
@@ -128,5 +124,5 @@ Default.args = {
128
124
  default: 'Column 1',
129
125
 
130
126
  // Props
131
- inputValue: 'column-1',
127
+ value: 'column-1',
132
128
  };
@@ -29,18 +29,18 @@ export default defineComponent({
29
29
  OrIcon,
30
30
  },
31
31
 
32
+ model: {
33
+ prop: 'modelValue',
34
+ event: 'update:modelValue',
35
+ },
36
+
32
37
  props: {
33
38
  modelValue: {
34
39
  type: Object as PropType<SortHeaderModel>,
35
40
  default: undefined,
36
41
  },
37
42
 
38
- value: { // TODO: Remove Vue 2 fallback
39
- type: Object as PropType<SortHeaderModel>,
40
- default: undefined,
41
- },
42
-
43
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
43
+ value: {
44
44
  type: String,
45
45
  required: true,
46
46
  },
@@ -49,7 +49,6 @@ export default defineComponent({
49
49
  emits: [
50
50
  'update:modelValue',
51
51
 
52
- 'input',
53
52
  'focus',
54
53
  'blur',
55
54
  ],
@@ -70,24 +69,21 @@ export default defineComponent({
70
69
 
71
70
  // State
72
71
  const proxyModelValue = computed({
73
- get: () => {
74
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
75
- },
72
+ get: () => props.modelValue,
76
73
 
77
74
  set: (value) => {
78
- context.emit('input', value);
79
75
  context.emit('update:modelValue', value);
80
76
  },
81
77
  });
82
78
 
83
79
  const activated = computed(() => {
84
- return proxyModelValue.value?.column === props.inputValue;
80
+ return proxyModelValue.value?.column === props.value;
85
81
  });
86
82
 
87
83
  // Methods
88
84
  function toggleDirection(): void {
89
85
  proxyModelValue.value = {
90
- column: props.inputValue,
86
+ column: props.value,
91
87
  direction: proxyModelValue.value?.direction === 'asc' ? 'desc' : 'asc',
92
88
  };
93
89
  }
@@ -26,11 +26,7 @@ export default {
26
26
  control: { type: 'object' },
27
27
  },
28
28
 
29
- value: { // TODO: Remove Vue 2 fallback
30
- table: { disable: true },
31
- },
32
-
33
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
29
+ value: {
34
30
  control: { type: 'text' },
35
31
  },
36
32
 
@@ -139,7 +135,7 @@ const Template: StoryFn<typeof OrSwitch> = (args) => ({
139
135
 
140
136
  <OrSwitch
141
137
  v-model="model"
142
- input-value="switch-2"
138
+ value="switch-2"
143
139
  label="Switch 2"
144
140
  @update:modelValue="onUpdateModelValue"
145
141
  @input="onInput"
@@ -157,6 +153,6 @@ Switch.args = {
157
153
  addon: '<OrIcon icon="info" />',
158
154
 
159
155
  // Props
160
- inputValue: 'switch-1',
156
+ value: 'switch-1',
161
157
  label: 'Switch 1',
162
158
  };
@@ -10,7 +10,7 @@
10
10
  v-bind="controlAttributes"
11
11
  :class="controlStyles"
12
12
  type="checkbox"
13
- :value="inputValue"
13
+ :value="value"
14
14
  :required="required"
15
15
  :disabled="disabled"
16
16
  @focus="$emit('focus', $event)"
@@ -63,18 +63,18 @@ export default defineComponent({
63
63
  OrLoader,
64
64
  },
65
65
 
66
+ model: {
67
+ prop: 'modelValue',
68
+ event: 'update:modelValue',
69
+ },
70
+
66
71
  props: {
67
72
  modelValue: {
68
73
  type: [Boolean, Array] as PropType<boolean | string[]>,
69
74
  default: undefined,
70
75
  },
71
76
 
72
- value: { // TODO: Remove Vue 2 fallback
73
- type: [Boolean, Array] as PropType<boolean | string[]>,
74
- default: undefined,
75
- },
76
-
77
- inputValue: { // TODO: Rename to `value` after complete migration to Vue 3
77
+ value: {
78
78
  type: String,
79
79
  default: undefined,
80
80
  },
@@ -108,7 +108,6 @@ export default defineComponent({
108
108
  emits: [
109
109
  'update:modelValue',
110
110
 
111
- 'input',
112
111
  'focus',
113
112
  'blur',
114
113
  ],
@@ -148,12 +147,9 @@ export default defineComponent({
148
147
  });
149
148
 
150
149
  const proxyModelValue = computed({
151
- get: () => {
152
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
153
- },
150
+ get: () => props.modelValue,
154
151
 
155
152
  set: (value) => {
156
- context.emit('input', value);
157
153
  context.emit('update:modelValue', value);
158
154
  },
159
155
  });
@@ -25,10 +25,6 @@ export default {
25
25
  control: { type: 'text' },
26
26
  },
27
27
 
28
- value: { // TODO: Remove Vue 2 fallback
29
- table: { disable: true },
30
- },
31
-
32
28
  variant: {
33
29
  control: { type: 'select' },
34
30
  options: Object.values(TabsVariant),
@@ -67,6 +67,11 @@ export default defineComponent({
67
67
 
68
68
  inheritAttrs: false,
69
69
 
70
+ model: {
71
+ prop: 'modelValue',
72
+ event: 'update:modelValue',
73
+ },
74
+
70
75
  props: {
71
76
  items: {
72
77
  type: Array as PropType<TabsItem[]>,
@@ -78,11 +83,6 @@ export default defineComponent({
78
83
  default: undefined,
79
84
  },
80
85
 
81
- value: { // TODO: Remove Vue 2 fallback
82
- type: [String, Number],
83
- default: undefined,
84
- },
85
-
86
86
  variant: {
87
87
  type: String as PropType<TabsVariant>,
88
88
  default: TabsVariant.Default,
@@ -91,8 +91,6 @@ export default defineComponent({
91
91
 
92
92
  emits: [
93
93
  'update:modelValue',
94
-
95
- 'input',
96
94
  ],
97
95
 
98
96
  expose: [
@@ -123,12 +121,9 @@ export default defineComponent({
123
121
  });
124
122
 
125
123
  const proxyModelValue = computed({
126
- get: () => {
127
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
128
- },
124
+ get: () => props.modelValue,
129
125
 
130
126
  set: (value) => {
131
- context.emit('input', value);
132
127
  context.emit('update:modelValue', value);
133
128
  },
134
129
  });
@@ -35,10 +35,6 @@ export default {
35
35
  control: { type: 'text' },
36
36
  },
37
37
 
38
- value: { // TODO: Remove Vue 2 fallback
39
- table: { disable: true },
40
- },
41
-
42
38
  size: {
43
39
  control: { type: 'select' },
44
40
  options: Object.values(TextareaSize),
@@ -90,17 +90,17 @@ export default defineComponent({
90
90
  OrLabel,
91
91
  },
92
92
 
93
+ model: {
94
+ prop: 'modelValue',
95
+ event: 'update:modelValue',
96
+ },
97
+
93
98
  props: {
94
99
  modelValue: {
95
100
  type: String,
96
101
  default: undefined,
97
102
  },
98
103
 
99
- value: { // TODO: Remove Vue 2 fallback
100
- type: String,
101
- default: undefined,
102
- },
103
-
104
104
  size: {
105
105
  type: String as PropType<TextareaSize>,
106
106
  default: TextareaSize.M,
@@ -145,7 +145,6 @@ export default defineComponent({
145
145
  emits: [
146
146
  'update:modelValue',
147
147
 
148
- 'input',
149
148
  'keydown',
150
149
  'keyup',
151
150
  'focus',
@@ -182,12 +181,9 @@ export default defineComponent({
182
181
  });
183
182
 
184
183
  const proxyModelValue = computed({
185
- get: () => {
186
- return props.modelValue ?? props.value; // TODO: Remove Vue 2 fallback
187
- },
184
+ get: () => props.modelValue,
188
185
 
189
186
  set: (value) => {
190
- context.emit('input', value);
191
187
  context.emit('update:modelValue', value);
192
188
  },
193
189
  });