@onereach/ui-components 2.70.2-beta.2200.0 → 2.70.2-beta.2203.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 (187) hide show
  1. package/dist/bundled/v2/{OrCardCollection-046b51fd.js → OrCardCollection-0141a358.js} +1 -1
  2. package/dist/bundled/v2/{OrCheckbox-251ecafc.js → OrCheckbox-dbef9f9a.js} +17 -32
  3. package/dist/bundled/v2/{OrConfirm-4a96edab.js → OrConfirm-057e997e.js} +13 -6
  4. package/dist/bundled/v2/{OrInlineInput-2133e469.js → OrInlineInput-87589946.js} +22 -38
  5. package/dist/bundled/v2/{OrInlineTextarea-d61ca596.js → OrInlineTextarea-21b0e6fc.js} +18 -34
  6. package/dist/bundled/v2/{OrInput-56314ef0.js → OrInput-82ccfe00.js} +31 -42
  7. package/dist/bundled/v2/{OrPagination-468d0964.js → OrPagination-379c10b8.js} +1 -1
  8. package/dist/bundled/v2/{OrRadio-ae89bc9b.js → OrRadio-cd39b20b.js} +15 -30
  9. package/dist/bundled/v2/{OrSearch-5022873f.js → OrSearch-53470b0e.js} +1 -1
  10. package/dist/bundled/v2/{OrSelect-4f163320.js → OrSelect-c49e1bcf.js} +2 -2
  11. package/dist/bundled/v2/{OrSwitch-20640a05.js → OrSwitch-237a2081.js} +15 -30
  12. package/dist/bundled/v2/{OrTabs-85aefcba.js → OrTabs-42f7c52c.js} +1 -1
  13. package/dist/bundled/v2/{OrTextarea-43c4b8a2.js → OrTextarea-5593fbe9.js} +20 -40
  14. package/dist/bundled/v2/components/index.js +13 -15
  15. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -5
  16. package/dist/bundled/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
  17. package/dist/bundled/v2/components/or-checkbox-v3/index.js +1 -2
  18. package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -6
  19. package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
  20. package/dist/bundled/v2/components/or-inline-input-v3/index.js +1 -3
  21. package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
  22. package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +1 -3
  23. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
  24. package/dist/bundled/v2/components/or-input-v3/index.js +1 -3
  25. package/dist/bundled/v2/components/or-pagination-v3/index.js +1 -1
  26. package/dist/bundled/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
  27. package/dist/bundled/v2/components/or-radio-v3/index.js +1 -2
  28. package/dist/bundled/v2/components/or-search-v3/index.js +2 -4
  29. package/dist/bundled/v2/components/or-select-v3/index.js +3 -5
  30. package/dist/bundled/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
  31. package/dist/bundled/v2/components/or-switch-v3/index.js +1 -2
  32. package/dist/bundled/v2/components/or-tabs-v3/index.js +1 -1
  33. package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
  34. package/dist/bundled/v2/components/or-textarea-v3/index.js +1 -3
  35. package/dist/bundled/v2/hooks/index.d.ts +0 -3
  36. package/dist/bundled/v2/hooks/index.js +0 -2
  37. package/dist/bundled/v2/index.js +14 -16
  38. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-1b263db2.js → OrCardCollection.vue_vue_type_script_lang-2d78a51a.js} +1 -1
  39. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-2024ec32.js → OrCheckbox.vue_vue_type_script_lang-8b36e06c.js} +7 -22
  40. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-35c1085c.js → OrConfirm.vue_vue_type_script_lang-9d9a3917.js} +14 -7
  41. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-40f0073f.js → OrInlineInput.vue_vue_type_script_lang-67218502.js} +11 -27
  42. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-2817edd5.js → OrInlineTextarea.vue_vue_type_script_lang-a1831ab8.js} +11 -27
  43. package/dist/bundled/v3/{OrInput-d1c13e6b.js → OrInput-a4f220ed.js} +13 -14
  44. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-fd850b82.js → OrInput.vue_vue_type_script_lang-607d79d4.js} +15 -26
  45. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-0d9daaa7.js → OrPagination.vue_vue_type_script_lang-c96d7cd7.js} +1 -1
  46. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-29e8b856.js → OrRadio.vue_vue_type_script_lang-2e666a56.js} +7 -22
  47. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-f5f127f6.js → OrSearch.vue_vue_type_script_lang-06f318ca.js} +2 -2
  48. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8092d0c0.js → OrSelect.vue_vue_type_script_lang-58e5a52b.js} +15 -17
  49. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-02b4913a.js → OrSwitch.vue_vue_type_script_lang-04829f64.js} +7 -22
  50. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-01188224.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +1 -1
  51. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-2fdac7b2.js → OrTextarea.vue_vue_type_script_lang-8e3531cd.js} +12 -31
  52. package/dist/bundled/v3/components/index.js +14 -16
  53. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -6
  54. package/dist/bundled/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
  55. package/dist/bundled/v3/components/or-checkbox-v3/index.js +1 -2
  56. package/dist/bundled/v3/components/or-confirm-v3/index.js +4 -6
  57. package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
  58. package/dist/bundled/v3/components/or-inline-input-v3/index.js +1 -3
  59. package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
  60. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +1 -3
  61. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
  62. package/dist/bundled/v3/components/or-input-v3/index.js +1 -3
  63. package/dist/bundled/v3/components/or-pagination-v3/index.js +1 -1
  64. package/dist/bundled/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
  65. package/dist/bundled/v3/components/or-radio-v3/index.js +1 -2
  66. package/dist/bundled/v3/components/or-search-v3/index.js +3 -5
  67. package/dist/bundled/v3/components/or-select-v3/index.js +4 -6
  68. package/dist/bundled/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
  69. package/dist/bundled/v3/components/or-switch-v3/index.js +1 -2
  70. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -1
  71. package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
  72. package/dist/bundled/v3/components/or-textarea-v3/index.js +1 -3
  73. package/dist/bundled/v3/hooks/index.d.ts +0 -3
  74. package/dist/bundled/v3/hooks/index.js +0 -2
  75. package/dist/bundled/v3/index.js +69 -78
  76. package/dist/esm/v2/{OrCardCollection-d51e15f5.js → OrCardCollection-3c38fc85.js} +1 -1
  77. package/dist/esm/v2/{OrCheckbox-7317fe1a.js → OrCheckbox-567e387c.js} +17 -32
  78. package/dist/esm/v2/{OrConfirm-fe4f21bf.js → OrConfirm-047d4086.js} +13 -6
  79. package/dist/esm/v2/{OrInlineInput-7c4f1f92.js → OrInlineInput-10205811.js} +22 -38
  80. package/dist/esm/v2/{OrInlineTextarea-3381e2a9.js → OrInlineTextarea-7658611e.js} +18 -34
  81. package/dist/esm/v2/{OrInput-fbbf5de4.js → OrInput-ada3a970.js} +31 -42
  82. package/dist/esm/v2/{OrPagination-291bd1b9.js → OrPagination-c0dbec6a.js} +1 -1
  83. package/dist/esm/v2/{OrRadio-b0a560d2.js → OrRadio-848ce55d.js} +15 -30
  84. package/dist/esm/v2/{OrSearch-9e3dc7b2.js → OrSearch-0f08f2f5.js} +1 -1
  85. package/dist/esm/v2/{OrSelect-6d3c3d2a.js → OrSelect-1d705445.js} +2 -2
  86. package/dist/esm/v2/{OrSwitch-133052ca.js → OrSwitch-13b6a7ee.js} +15 -30
  87. package/dist/esm/v2/{OrTabs-e5b81f4b.js → OrTabs-71bd3fd2.js} +1 -1
  88. package/dist/esm/v2/{OrTextarea-709eea9b.js → OrTextarea-6712a150.js} +20 -40
  89. package/dist/esm/v2/components/index.js +13 -15
  90. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -5
  91. package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
  92. package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -2
  93. package/dist/esm/v2/components/or-confirm-v3/index.js +8 -10
  94. package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
  95. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -3
  96. package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
  97. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -3
  98. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +8 -43
  99. package/dist/esm/v2/components/or-input-v3/index.js +1 -3
  100. package/dist/esm/v2/components/or-pagination-v3/index.js +1 -1
  101. package/dist/esm/v2/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
  102. package/dist/esm/v2/components/or-radio-v3/index.js +1 -2
  103. package/dist/esm/v2/components/or-search-v3/index.js +2 -4
  104. package/dist/esm/v2/components/or-select-v3/index.js +3 -5
  105. package/dist/esm/v2/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
  106. package/dist/esm/v2/components/or-switch-v3/index.js +1 -2
  107. package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
  108. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
  109. package/dist/esm/v2/components/or-textarea-v3/index.js +1 -3
  110. package/dist/esm/v2/hooks/index.d.ts +0 -3
  111. package/dist/esm/v2/hooks/index.js +0 -2
  112. package/dist/esm/v2/index.js +13 -15
  113. package/dist/esm/v3/{OrCardCollection-14faa91f.js → OrCardCollection-dbb3e839.js} +1 -1
  114. package/dist/esm/v3/{OrCheckbox-7144da06.js → OrCheckbox-3e139eac.js} +19 -36
  115. package/dist/esm/v3/{OrConfirm-671d4ff7.js → OrConfirm-fee3c859.js} +13 -6
  116. package/dist/esm/v3/{OrInlineInput-a6b19dbe.js → OrInlineInput-507fc99c.js} +20 -37
  117. package/dist/esm/v3/{OrInlineTextarea-9eb60363.js → OrInlineTextarea-53a9e027.js} +20 -37
  118. package/dist/esm/v3/{OrInput-8332b985.js → OrInput-9c0426b9.js} +27 -39
  119. package/dist/esm/v3/{OrPagination-5e01a0a5.js → OrPagination-a703307d.js} +1 -1
  120. package/dist/esm/v3/{OrRadio-39d1905d.js → OrRadio-54b6d0de.js} +17 -34
  121. package/dist/esm/v3/{OrSearch-875646f5.js → OrSearch-9885d178.js} +1 -1
  122. package/dist/esm/v3/{OrSelect-1a71fec6.js → OrSelect-dfa4885f.js} +2 -2
  123. package/dist/esm/v3/{OrSwitch-3e9a699d.js → OrSwitch-cca30aa0.js} +18 -34
  124. package/dist/esm/v3/{OrTabs-91618aab.js → OrTabs-d0ee6cef.js} +1 -1
  125. package/dist/esm/v3/{OrTextarea-d0892f73.js → OrTextarea-bb9ef3f2.js} +22 -43
  126. package/dist/esm/v3/components/index.js +13 -15
  127. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -5
  128. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +2 -18
  129. package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -2
  130. package/dist/esm/v3/components/or-confirm-v3/index.js +7 -9
  131. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +6 -36
  132. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -3
  133. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +6 -36
  134. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -3
  135. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +8 -43
  136. package/dist/esm/v3/components/or-input-v3/index.js +1 -3
  137. package/dist/esm/v3/components/or-pagination-v3/index.js +1 -1
  138. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +2 -18
  139. package/dist/esm/v3/components/or-radio-v3/index.js +1 -2
  140. package/dist/esm/v3/components/or-search-v3/index.js +2 -4
  141. package/dist/esm/v3/components/or-select-v3/index.js +3 -5
  142. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +2 -18
  143. package/dist/esm/v3/components/or-switch-v3/index.js +1 -2
  144. package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
  145. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +6 -45
  146. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -3
  147. package/dist/esm/v3/hooks/index.d.ts +0 -3
  148. package/dist/esm/v3/hooks/index.js +0 -2
  149. package/dist/esm/v3/index.js +13 -15
  150. package/package.json +1 -1
  151. package/src/components/or-checkbox-v3/OrCheckbox.vue +10 -28
  152. package/src/components/or-confirm-v3/OrConfirm.vue +11 -10
  153. package/src/components/or-confirm-v3/styles.ts +13 -3
  154. package/src/components/or-inline-input-v3/OrInlineInput.vue +13 -32
  155. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +13 -32
  156. package/src/components/or-input-v3/OrInput.stories3.ts +4 -4
  157. package/src/components/or-input-v3/OrInput.vue +20 -33
  158. package/src/components/or-pagination-v3/OrPagination.vue +1 -1
  159. package/src/components/or-radio-v3/OrRadio.vue +9 -27
  160. package/src/components/or-switch-v3/OrSwitch.vue +9 -27
  161. package/src/components/or-tabs-v3/OrTabs.vue +1 -1
  162. package/src/components/or-textarea-v3/OrTextarea.stories3.ts +4 -4
  163. package/src/components/or-textarea-v3/OrTextarea.vue +14 -37
  164. package/src/hooks/index.ts +0 -3
  165. package/dist/bundled/v2/hooks/useControlAttributes.d.ts +0 -8
  166. package/dist/bundled/v2/hooks/useIdAttribute.d.ts +0 -2
  167. package/dist/bundled/v2/hooks/useValidationAttributes.d.ts +0 -12
  168. package/dist/bundled/v2/useIdAttribute-cf61643f.js +0 -22
  169. package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +0 -17
  170. package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -8
  171. package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
  172. package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -12
  173. package/dist/bundled/v3/useIdAttribute-b2e42f31.js +0 -21
  174. package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +0 -16
  175. package/dist/esm/v2/hooks/useControlAttributes.d.ts +0 -8
  176. package/dist/esm/v2/hooks/useIdAttribute.d.ts +0 -2
  177. package/dist/esm/v2/hooks/useValidationAttributes.d.ts +0 -12
  178. package/dist/esm/v2/useIdAttribute-859439f0.js +0 -21
  179. package/dist/esm/v2/useValidationAttributes-d1abbe34.js +0 -16
  180. package/dist/esm/v3/hooks/useControlAttributes.d.ts +0 -8
  181. package/dist/esm/v3/hooks/useIdAttribute.d.ts +0 -2
  182. package/dist/esm/v3/hooks/useValidationAttributes.d.ts +0 -12
  183. package/dist/esm/v3/useIdAttribute-859439f0.js +0 -21
  184. package/dist/esm/v3/useValidationAttributes-d1abbe34.js +0 -16
  185. package/src/hooks/useControlAttributes.ts +0 -19
  186. package/src/hooks/useIdAttribute.ts +0 -9
  187. package/src/hooks/useValidationAttributes.ts +0 -25
@@ -1,13 +1,11 @@
1
- import { defineComponent, ref, computed, reactive, watch } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed, watch } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
5
- import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
6
4
  import { s as script$1 } from './OrError-ec8c709d.js';
7
5
  import { s as script$2 } from './OrHint-74bb732d.js';
8
6
  import { s as script$3 } from './OrIconButton-1a89fbf9.js';
9
7
  import { s as script$4 } from './OrInlineInputBox-8049f95a.js';
10
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, createVNode, withCtx, withDirectives, vModelText, normalizeClass, withModifiers, createCommentVNode, Fragment, createBlock, createSlots, createTextVNode, toDisplayString } from 'vue';
8
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, withDirectives, mergeProps, vModelText, withModifiers, createCommentVNode, Fragment, createBlock, createSlots, createTextVNode, toDisplayString } from 'vue';
11
9
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
12
10
 
13
11
  const InlineTextareaRoot = [
@@ -66,22 +64,19 @@ var script = defineComponent({
66
64
  }
67
65
  },
68
66
  emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
69
- expose: ['root', 'focus', 'blur'],
67
+ expose: ['root'],
70
68
  setup(props, context) {
69
+ var _a;
70
+ const currentInstance = getCurrentInstance();
71
71
  // Refs
72
72
  const root = ref();
73
- const control = ref();
74
73
  // Styles
75
74
  const classAttribute = useClassAttribute();
76
75
  const rootStyles = computed(() => ['or-inline-textarea', ...InlineTextareaRoot, classAttribute.value]);
77
76
  const controlStyles = computed(() => [...InlineTextareaControl]);
78
77
  const actionStyles = computed(() => [...InlineTextareaAction]);
79
78
  // State
80
- const controlAttributes = reactive({
81
- id: useIdAttribute(),
82
- ...useControlAttributes(),
83
- ...useValidationAttributes()
84
- });
79
+ const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
85
80
  const proxyModelValue = computed({
86
81
  get: () => {
87
82
  var _a;
@@ -94,13 +89,13 @@ var script = defineComponent({
94
89
  }
95
90
  });
96
91
  const draftModelValue = ref('');
92
+ const activated = ref(false);
93
+ const invalid = computed(() => !!props.error);
97
94
  const currentLength = computed(() => {
98
95
  var _a, _b;
99
96
  return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
100
97
  });
101
- const maxLength = computed(() => controlAttributes.maxlength);
102
- const invalid = computed(() => !!props.error);
103
- const activated = ref(false);
98
+ const maxLength = computed(() => context.attrs.maxlength);
104
99
  // Handlers
105
100
  function onFocus(event) {
106
101
  activated.value = true;
@@ -113,14 +108,6 @@ var script = defineComponent({
113
108
  context.emit('blur', event);
114
109
  }
115
110
  // Methods
116
- function focus() {
117
- var _a;
118
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
119
- }
120
- function blur() {
121
- var _a;
122
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
123
- }
124
111
  function apply() {
125
112
  if (draftModelValue.value !== proxyModelValue.value) {
126
113
  proxyModelValue.value = draftModelValue.value;
@@ -142,21 +129,18 @@ var script = defineComponent({
142
129
  });
143
130
  return {
144
131
  root,
145
- control,
146
132
  rootStyles,
147
133
  controlStyles,
148
134
  actionStyles,
149
- controlAttributes,
135
+ controlId,
150
136
  proxyModelValue,
151
137
  draftModelValue,
138
+ activated,
139
+ invalid,
152
140
  currentLength,
153
141
  maxLength,
154
- invalid,
155
- activated,
156
142
  onFocus,
157
143
  onBlur,
158
- focus,
159
- blur,
160
144
  apply,
161
145
  reset
162
146
  };
@@ -166,24 +150,23 @@ var script = defineComponent({
166
150
  const _hoisted_1 = {
167
151
  class: /*#__PURE__*/normalizeClass(['layout-row', 'gap-sm+'])
168
152
  };
169
- const _hoisted_2 = ["placeholder", "activated"];
153
+ const _hoisted_2 = ["id", "placeholder", "activated"];
170
154
  function render(_ctx, _cache, $props, $setup, $data, $options) {
171
155
  const _component_OrInlineInputBox = resolveComponent("OrInlineInputBox");
172
156
  const _component_OrIconButton = resolveComponent("OrIconButton");
173
157
  const _component_OrHint = resolveComponent("OrHint");
174
158
  const _component_OrError = resolveComponent("OrError");
175
- return openBlock(), createElementBlock("div", mergeProps({
176
- ref: "root"
177
- }, _ctx.$attrs, {
178
- class: _ctx.rootStyles
179
- }), [createElementVNode("div", _hoisted_1, [createVNode(_component_OrInlineInputBox, {
159
+ return openBlock(), createElementBlock("div", {
160
+ ref: "root",
161
+ class: normalizeClass(_ctx.rootStyles)
162
+ }, [createElementVNode("div", _hoisted_1, [createVNode(_component_OrInlineInputBox, {
180
163
  size: 's',
181
164
  invalid: _ctx.invalid
182
165
  }, {
183
166
  default: withCtx(() => [withDirectives(createElementVNode("textarea", mergeProps({
184
- ref: "control",
167
+ id: _ctx.controlId,
185
168
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.draftModelValue = $event)
186
- }, _ctx.controlAttributes, {
169
+ }, _ctx.$attrs, {
187
170
  class: _ctx.controlStyles,
188
171
  placeholder: _ctx.placeholder,
189
172
  activated: _ctx.activated ? '' : null,
@@ -228,7 +211,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
228
211
  fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
229
212
 
230
213
  key: "0"
231
- } : undefined]), 1024 /* DYNAMIC_SLOTS */))], 16 /* FULL_PROPS */);
214
+ } : undefined]), 1024 /* DYNAMIC_SLOTS */))], 2 /* CLASS */);
232
215
  }
233
216
 
234
217
  var css_248z = "\ntextarea[data-v-3f016b22] {\n min-width: 0;\n background: none;\n outline: none;\n}\n";
@@ -1,15 +1,13 @@
1
- import { defineComponent, ref, computed, reactive } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
5
- import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
6
4
  import { s as script$1 } from './OrError-ec8c709d.js';
7
5
  import { s as script$2 } from './OrHint-74bb732d.js';
8
6
  import { s as script$4 } from './OrIconButton-1a89fbf9.js';
9
7
  import { s as script$3 } from './OrIcon-b195169c.js';
10
8
  import { s as script$5, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
11
9
  import { s as script$6 } from './OrLabel-bdaec602.js';
12
- import { resolveComponent, openBlock, createElementBlock, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, vModelDynamic, withModifiers, Fragment, createSlots, normalizeClass } from 'vue';
10
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, withModifiers, Fragment, createSlots } from 'vue';
13
11
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
14
12
 
15
13
  var InputType;
@@ -81,10 +79,6 @@ var script = defineComponent({
81
79
  type: Boolean,
82
80
  default: false
83
81
  },
84
- readonly: {
85
- type: Boolean,
86
- default: false
87
- },
88
82
  disabled: {
89
83
  type: Boolean,
90
84
  default: false
@@ -95,21 +89,19 @@ var script = defineComponent({
95
89
  }
96
90
  },
97
91
  emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
98
- expose: ['root', 'focus', 'blur'],
92
+ expose: ['root', 'focus'],
99
93
  setup(props, context) {
94
+ var _a;
95
+ const currentInstance = getCurrentInstance();
100
96
  // Refs
101
97
  const root = ref();
102
- const control = ref();
98
+ const input = ref();
103
99
  // Styles
104
100
  const classAttribute = useClassAttribute();
105
101
  const rootStyles = computed(() => ['or-input', ...InputRoot, classAttribute.value]);
106
102
  const controlStyles = computed(() => [...InputControl]);
107
103
  // State
108
- const controlAttributes = reactive({
109
- id: useIdAttribute(),
110
- ...useControlAttributes(),
111
- ...useValidationAttributes()
112
- });
104
+ const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
113
105
  const proxyModelValue = computed({
114
106
  get: () => {
115
107
  var _a;
@@ -121,40 +113,37 @@ var script = defineComponent({
121
113
  context.emit('update:modelValue', value);
122
114
  }
123
115
  });
116
+ const invalid = computed(() => !!props.error);
117
+ const readonly = computed(() => context.attrs.readonly);
124
118
  const currentLength = computed(() => {
125
119
  var _a, _b;
126
120
  return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
127
121
  });
128
- const maxLength = computed(() => controlAttributes.maxlength);
129
- const invalid = computed(() => !!props.error);
122
+ const maxLength = computed(() => context.attrs.maxlength);
130
123
  const disclosed = ref(false);
131
124
  // Methods
132
125
  function focus() {
133
126
  var _a;
134
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
135
- }
136
- function blur() {
137
- var _a;
138
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
127
+ (_a = input.value) === null || _a === void 0 ? void 0 : _a.focus();
139
128
  }
140
129
  return {
141
130
  root,
142
- control,
131
+ input,
143
132
  rootStyles,
144
133
  controlStyles,
145
- controlAttributes,
134
+ controlId,
146
135
  proxyModelValue,
136
+ invalid,
137
+ readonly,
147
138
  currentLength,
148
139
  maxLength,
149
- invalid,
150
140
  disclosed,
151
- focus,
152
- blur
141
+ focus
153
142
  };
154
143
  }
155
144
  });
156
145
 
157
- const _hoisted_1 = ["type", "placeholder", "required", "readonly", "disabled"];
146
+ const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
158
147
  const _hoisted_2 = {
159
148
  class: /*#__PURE__*/normalizeClass(['layout-row'])
160
149
  };
@@ -165,13 +154,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
165
154
  const _component_OrInputBox = resolveComponent("OrInputBox");
166
155
  const _component_OrHint = resolveComponent("OrHint");
167
156
  const _component_OrError = resolveComponent("OrError");
168
- return openBlock(), createElementBlock("div", mergeProps({
169
- ref: "root"
170
- }, _ctx.$attrs, {
171
- class: _ctx.rootStyles
172
- }), [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
157
+ return openBlock(), createElementBlock("div", {
158
+ ref: "root",
159
+ class: normalizeClass(_ctx.rootStyles)
160
+ }, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
173
161
  key: 0,
174
- "control-id": _ctx.controlAttributes.id,
162
+ "control-id": _ctx.controlId,
175
163
  variant: 'input',
176
164
  required: _ctx.required,
177
165
  disabled: _ctx.disabled
@@ -188,14 +176,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
188
176
  disabled: _ctx.disabled
189
177
  }, {
190
178
  default: withCtx(() => [withDirectives(createElementVNode("input", mergeProps({
191
- ref: "control",
179
+ id: _ctx.controlId,
180
+ ref: "input",
192
181
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
193
- }, _ctx.controlAttributes, {
182
+ }, _ctx.$attrs, {
194
183
  class: _ctx.controlStyles,
195
184
  type: _ctx.type === 'password' && _ctx.disclosed ? 'text' : _ctx.type,
196
185
  placeholder: _ctx.placeholder,
197
186
  required: _ctx.required,
198
- readonly: _ctx.readonly,
199
187
  disabled: _ctx.disabled,
200
188
  onKeydown: _cache[1] || (_cache[1] = $event => _ctx.$emit('keydown', $event)),
201
189
  onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
@@ -216,7 +204,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
216
204
  key: 0,
217
205
  icon: 'close',
218
206
  color: 'inherit',
219
- disabled: _ctx.readonly || _ctx.disabled,
207
+ disabled: _ctx.disabled,
220
208
  onClick: _cache[6] || (_cache[6] = withModifiers($event => _ctx.$emit('update:modelValue', ''), ["stop"]))
221
209
  }, null, 8 /* PROPS */, ["disabled"])) : (openBlock(), createBlock(_component_OrIcon, {
222
210
  key: 1,
@@ -250,7 +238,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
250
238
  fn: withCtx(() => [createTextVNode(toDisplayString(_ctx.currentLength) + " / " + toDisplayString(_ctx.maxLength), 1 /* TEXT */)]),
251
239
 
252
240
  key: "0"
253
- } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 16 /* FULL_PROPS */);
241
+ } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled"]))], 2 /* CLASS */);
254
242
  }
255
243
 
256
244
  var css_248z = "\ninput[data-v-78975fa2] {\n min-width: 0;\n background: none;\n outline: none;\n}\ninput[type=\"number\"][data-v-78975fa2]::-webkit-inner-spin-button {\n display: none;\n}\ninput[type=\"search\"][data-v-78975fa2]::-webkit-search-cancel-button {\n display: none;\n}\n";
@@ -149,7 +149,7 @@ var script = defineComponent({
149
149
  return [...accumulator, page];
150
150
  }, []);
151
151
  });
152
- // Methods
152
+ // Functions
153
153
  function toPreviousPage() {
154
154
  currentPage.value = currentPage.value - 1;
155
155
  }
@@ -1,9 +1,8 @@
1
- import { defineComponent, ref, computed, reactive } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
5
4
  import { s as script$1, L as LabelVariant } from './OrLabel-bdaec602.js';
6
- import { resolveComponent, openBlock, createElementBlock, mergeProps, withDirectives, createElementVNode, vModelRadio, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
5
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, mergeProps, vModelRadio, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
7
6
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
8
7
 
9
8
  const RadioRoot = [
@@ -73,20 +72,18 @@ var script = defineComponent({
73
72
  }
74
73
  },
75
74
  emits: ['update:modelValue', 'input', 'focus', 'blur'],
76
- expose: ['root', 'focus', 'blur'],
75
+ expose: ['root'],
77
76
  setup(props, context) {
77
+ var _a;
78
+ const currentInstance = getCurrentInstance();
78
79
  // Refs
79
80
  const root = ref();
80
- const control = ref();
81
81
  // Styles
82
82
  const classAttribute = useClassAttribute();
83
83
  const rootStyles = computed(() => ['or-radio', ...RadioRoot, classAttribute.value]);
84
84
  const controlStyles = computed(() => [...RadioControl, ...RadioControlHandle]);
85
85
  // State
86
- const controlAttributes = reactive({
87
- id: useIdAttribute(),
88
- ...useControlAttributes()
89
- });
86
+ const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
90
87
  const proxyModelValue = computed({
91
88
  get: () => {
92
89
  var _a;
@@ -98,39 +95,25 @@ var script = defineComponent({
98
95
  context.emit('update:modelValue', value);
99
96
  }
100
97
  });
101
- // Methods
102
- function focus() {
103
- var _a;
104
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
105
- }
106
- function blur() {
107
- var _a;
108
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
109
- }
110
98
  return {
111
99
  root,
112
- control,
113
100
  rootStyles,
114
101
  controlStyles,
115
- controlAttributes,
116
- proxyModelValue,
117
- focus,
118
- blur
102
+ controlId,
103
+ proxyModelValue
119
104
  };
120
105
  }
121
106
  });
122
107
 
123
- const _hoisted_1 = ["value", "required", "disabled"];
108
+ const _hoisted_1 = ["id", "value", "required", "disabled"];
124
109
  function render(_ctx, _cache, $props, $setup, $data, $options) {
125
110
  const _component_OrLabel = resolveComponent("OrLabel");
126
- return openBlock(), createElementBlock("div", mergeProps({
127
- ref: "root"
128
- }, _ctx.$attrs, {
129
- class: _ctx.rootStyles
130
- }), [withDirectives(createElementVNode("input", mergeProps({
131
- ref: "control",
132
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
133
- }, _ctx.controlAttributes, {
111
+ return openBlock(), createElementBlock("div", {
112
+ ref: "root",
113
+ class: normalizeClass(_ctx.rootStyles)
114
+ }, [withDirectives(createElementVNode("input", mergeProps(_ctx.$attrs, {
115
+ id: _ctx.controlId,
116
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
134
117
  class: _ctx.controlStyles,
135
118
  type: "radio",
136
119
  value: _ctx.inputValue,
@@ -140,7 +123,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
140
123
  onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
141
124
  }), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelRadio, _ctx.proxyModelValue]]), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
142
125
  key: 0,
143
- "control-id": _ctx.controlAttributes.id,
126
+ "control-id": _ctx.controlId,
144
127
  variant: _ctx.labelVariant,
145
128
  required: _ctx.required,
146
129
  disabled: _ctx.disabled
@@ -149,7 +132,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
149
132
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
150
133
 
151
134
  _: 3 /* FORWARDED */
152
- }, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
135
+ }, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
153
136
  }
154
137
 
155
138
  var css_248z = "\ninput[data-v-2567d702] {\n appearance: none;\n line-height: 0;\n}\n";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
- import { s as script$1 } from './OrInput-8332b985.js';
4
+ import { s as script$1 } from './OrInput-9c0426b9.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-6d1b6059.js';
6
6
  import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
7
7
 
@@ -3,13 +3,13 @@ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.
3
3
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
4
4
  import { u as useOverflow } from './useOverflow-af6161c8.js';
5
5
  import '@vueuse/core';
6
- import { s as script$1 } from './OrCheckbox-7144da06.js';
6
+ import { s as script$1 } from './OrCheckbox-3e139eac.js';
7
7
  import { s as script$2 } from './OrError-ec8c709d.js';
8
8
  import { s as script$3 } from './OrExpansionPanel-f8d7ff8d.js';
9
9
  import { s as script$4 } from './OrHint-74bb732d.js';
10
10
  import { s as script$5 } from './OrIcon-b195169c.js';
11
11
  import { s as script$7, a as InputBoxSize } from './OrInputBox-6d1b6059.js';
12
- import { s as script$6 } from './OrInput-8332b985.js';
12
+ import { s as script$6 } from './OrInput-9c0426b9.js';
13
13
  import { s as script$8 } from './OrLabel-bdaec602.js';
14
14
  import { s as script$9 } from './OrMenuItem-9da279f6.js';
15
15
  import { s as script$a } from './OrPopover-1075dd38.js';
@@ -1,10 +1,9 @@
1
- import { defineComponent, ref, computed, reactive } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
4
3
  import '@vueuse/core';
5
4
  import { s as script$1, L as LabelVariant } from './OrLabel-bdaec602.js';
6
5
  import { s as script$2 } from './OrLoader-b3cf4231.js';
7
- import { resolveComponent, openBlock, createElementBlock, mergeProps, withDirectives, vModelCheckbox, normalizeClass, createVNode, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
6
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, mergeProps, vModelCheckbox, createVNode, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
8
7
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
9
8
 
10
9
  const SwitchRoot = [
@@ -99,21 +98,19 @@ var script = defineComponent({
99
98
  }
100
99
  },
101
100
  emits: ['update:modelValue', 'input', 'focus', 'blur'],
102
- expose: ['root', 'focus', 'blur'],
101
+ expose: ['root'],
103
102
  setup(props, context) {
103
+ var _a;
104
+ const currentInstance = getCurrentInstance();
104
105
  // Refs
105
106
  const root = ref();
106
- const control = ref();
107
107
  // Styles
108
108
  const classAttribute = useClassAttribute();
109
109
  const rootStyles = computed(() => ['or-switch', ...SwitchRoot, classAttribute.value]);
110
110
  const controlStyles = computed(() => [...SwitchControl, ...SwitchControlHandle]);
111
111
  const loaderStyles = computed(() => [...SwitchLoader, ...SwitchLoaderHandle]);
112
112
  // State
113
- const controlAttributes = reactive({
114
- id: useIdAttribute(),
115
- ...useControlAttributes()
116
- });
113
+ const controlId = ref((_a = context.attrs.id) !== null && _a !== void 0 ? _a : currentInstance.uid.toString());
117
114
  const proxyModelValue = computed({
118
115
  get: () => {
119
116
  var _a;
@@ -125,43 +122,30 @@ var script = defineComponent({
125
122
  context.emit('update:modelValue', value);
126
123
  }
127
124
  });
128
- // Methods
129
- function focus() {
130
- var _a;
131
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
132
- }
133
- function blur() {
134
- var _a;
135
- (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
136
- }
137
125
  return {
138
126
  root,
139
- control,
140
127
  rootStyles,
141
128
  controlStyles,
142
129
  loaderStyles,
143
- controlAttributes,
144
- proxyModelValue,
145
- focus,
146
- blur
130
+ controlId,
131
+ proxyModelValue
147
132
  };
148
133
  }
149
134
  });
150
135
 
151
- const _hoisted_1 = ["value", "required", "disabled"];
136
+ const _hoisted_1 = ["id", "value", "required", "disabled"];
152
137
  const _hoisted_2 = ["disabled"];
153
138
  function render(_ctx, _cache, $props, $setup, $data, $options) {
154
139
  const _component_OrLoader = resolveComponent("OrLoader");
155
140
  const _component_OrLabel = resolveComponent("OrLabel");
156
- return openBlock(), createElementBlock("div", mergeProps({
157
- ref: "root"
141
+ return openBlock(), createElementBlock("div", {
142
+ ref: "root",
143
+ class: normalizeClass(_ctx.rootStyles)
144
+ }, [!_ctx.loading ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
145
+ key: 0
158
146
  }, _ctx.$attrs, {
159
- class: _ctx.rootStyles
160
- }), [!_ctx.loading ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
161
- key: 0,
162
- ref: "control",
163
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event)
164
- }, _ctx.controlAttributes, {
147
+ id: _ctx.controlId,
148
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
165
149
  class: _ctx.controlStyles,
166
150
  type: "checkbox",
167
151
  value: _ctx.inputValue,
@@ -179,7 +163,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
179
163
  size: 'm'
180
164
  })], 10 /* CLASS, PROPS */, _hoisted_2)), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
181
165
  key: 2,
182
- "control-id": _ctx.controlAttributes.id,
166
+ "control-id": _ctx.controlId,
183
167
  variant: _ctx.labelVariant,
184
168
  required: _ctx.required,
185
169
  disabled: _ctx.disabled
@@ -188,7 +172,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
188
172
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)])]),
189
173
 
190
174
  _: 3 /* FORWARDED */
191
- }, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
175
+ }, 8 /* PROPS */, ["control-id", "variant", "required", "disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
192
176
  }
193
177
 
194
178
  var css_248z = "\ninput[data-v-4296509a] {\n appearance: none;\n line-height: 0;\n}\n";
@@ -96,7 +96,7 @@ var script = defineComponent({
96
96
  const activeTab = computed(() => props.items.find(({
97
97
  value
98
98
  }) => value === proxyModelValue.value));
99
- // Methods
99
+ // Functions
100
100
  function rearrangeTabs(items, activeTab, rootElement) {
101
101
  const {
102
102
  children