@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,12 +1,11 @@
1
1
  <template>
2
2
  <div
3
3
  ref="root"
4
- v-bind="$attrs"
5
4
  :class="rootStyles"
6
5
  >
7
6
  <template v-if="label">
8
7
  <OrLabel
9
- :control-id="controlAttributes.id"
8
+ :control-id="controlId"
10
9
  :variant="'input'"
11
10
  :required="required"
12
11
  :disabled="disabled"
@@ -26,13 +25,12 @@
26
25
  :disabled="disabled"
27
26
  >
28
27
  <textarea
29
- ref="control"
28
+ :id="controlId"
30
29
  v-model="proxyModelValue"
31
- v-bind="controlAttributes"
30
+ v-bind="$attrs"
32
31
  :class="controlStyles"
33
32
  :placeholder="placeholder"
34
33
  :required="required"
35
- :readonly="readonly"
36
34
  :disabled="disabled"
37
35
  @keydown="$emit('keydown', $event)"
38
36
  @keyup="$emit('keyup', $event)"
@@ -72,8 +70,8 @@
72
70
  </template>
73
71
 
74
72
  <script lang="ts">
75
- import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
76
- import { useClassAttribute, useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
73
+ import { computed, defineComponent, getCurrentInstance, PropType, ref } from 'vue-demi';
74
+ import { useClassAttribute } from '../../hooks';
77
75
  import { OrErrorV3 as OrError } from '../or-error-v3';
78
76
  import { OrHintV3 as OrHint } from '../or-hint-v3';
79
77
  import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
@@ -134,11 +132,6 @@ export default defineComponent({
134
132
  default: false,
135
133
  },
136
134
 
137
- readonly: {
138
- type: Boolean,
139
- default: false,
140
- },
141
-
142
135
  disabled: {
143
136
  type: Boolean,
144
137
  default: false,
@@ -157,15 +150,13 @@ export default defineComponent({
157
150
 
158
151
  expose: [
159
152
  'root',
160
-
161
- 'focus',
162
- 'blur',
163
153
  ],
164
154
 
165
155
  setup(props, context) {
156
+ const currentInstance = getCurrentInstance()!;
157
+
166
158
  // Refs
167
159
  const root = ref<HTMLElement>();
168
- const control = ref<HTMLTextAreaElement>();
169
160
 
170
161
  // Styles
171
162
  const classAttribute = useClassAttribute();
@@ -181,11 +172,7 @@ export default defineComponent({
181
172
  ]);
182
173
 
183
174
  // State
184
- const controlAttributes = reactive({
185
- id: useIdAttribute(),
186
- ...useControlAttributes(),
187
- ...useValidationAttributes(),
188
- });
175
+ const controlId = ref(context.attrs.id as string ?? currentInstance.uid.toString());
189
176
 
190
177
  const proxyModelValue = computed({
191
178
  get: () => {
@@ -198,32 +185,22 @@ export default defineComponent({
198
185
  },
199
186
  });
200
187
 
201
- const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
202
- const maxLength = computed(() => controlAttributes.maxlength);
203
-
204
188
  const invalid = computed(() => !!props.error);
189
+ const readonly = computed(() => context.attrs.readonly as boolean);
205
190
 
206
- // Methods
207
- function focus(): void {
208
- control.value?.focus();
209
- }
210
-
211
- function blur(): void {
212
- control.value?.blur();
213
- }
191
+ const currentLength = computed(() => proxyModelValue.value?.toString().length ?? 0);
192
+ const maxLength = computed(() => context.attrs.maxlength as number | undefined);
214
193
 
215
194
  return {
216
195
  root,
217
- control,
218
196
  rootStyles,
219
197
  controlStyles,
220
- controlAttributes,
198
+ controlId,
221
199
  proxyModelValue,
200
+ invalid,
201
+ readonly,
222
202
  currentLength,
223
203
  maxLength,
224
- invalid,
225
- focus,
226
- blur,
227
204
  };
228
205
  },
229
206
  });
@@ -1,8 +1,5 @@
1
1
  export { useClassAttribute } from './useClassAttribute';
2
- export { useControlAttributes } from './useControlAttributes';
3
2
  export { useElevation } from './useElevation';
4
- export { useIdAttribute } from './useIdAttribute';
5
3
  export { useOverflow } from './useOverflow';
6
4
  export { useResponsive } from './useResponsive';
7
5
  export { default as useToggle } from './useToggle';
8
- export { useValidationAttributes } from './useValidationAttributes';
@@ -1,8 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ControlAttributes {
3
- readonly: ComputedRef<boolean | undefined>;
4
- disabled: ComputedRef<boolean | undefined>;
5
- 'force-state': ComputedRef<string | undefined>;
6
- }
7
- export declare function useControlAttributes(): ControlAttributes;
8
- export {};
@@ -1,2 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- export declare function useIdAttribute(): ComputedRef<string | undefined>;
@@ -1,12 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ValidationAttributes {
3
- required: ComputedRef<boolean | undefined>;
4
- minlength: ComputedRef<number | undefined>;
5
- maxlength: ComputedRef<number | undefined>;
6
- pattern: ComputedRef<string | undefined>;
7
- min: ComputedRef<number | undefined>;
8
- max: ComputedRef<number | undefined>;
9
- step: ComputedRef<number | undefined>;
10
- }
11
- export declare function useValidationAttributes(): ValidationAttributes;
12
- export {};
@@ -1,22 +0,0 @@
1
- import './index-fa6eb4ca.js';
2
- import { useAttrs, computed, getCurrentInstance } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
-
4
- function useControlAttributes() {
5
- const attributes = useAttrs();
6
- return {
7
- readonly: computed(() => attributes['readonly']),
8
- disabled: computed(() => attributes['disabled']),
9
- 'force-state': computed(() => attributes['force-state'])
10
- };
11
- }
12
-
13
- function useIdAttribute() {
14
- const attributes = useAttrs(),
15
- component = getCurrentInstance();
16
- return computed(() => {
17
- var _a;
18
- return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
19
- });
20
- }
21
-
22
- export { useIdAttribute as a, useControlAttributes as u };
@@ -1,17 +0,0 @@
1
- import './index-fa6eb4ca.js';
2
- import { useAttrs, computed } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
-
4
- function useValidationAttributes() {
5
- const attributes = useAttrs();
6
- return {
7
- required: computed(() => attributes['required']),
8
- minlength: computed(() => attributes['minlength']),
9
- maxlength: computed(() => attributes['maxlength']),
10
- pattern: computed(() => attributes['pattern']),
11
- min: computed(() => attributes['min']),
12
- max: computed(() => attributes['max']),
13
- step: computed(() => attributes['step'])
14
- };
15
- }
16
-
17
- export { useValidationAttributes as u };
@@ -1,8 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ControlAttributes {
3
- readonly: ComputedRef<boolean | undefined>;
4
- disabled: ComputedRef<boolean | undefined>;
5
- 'force-state': ComputedRef<string | undefined>;
6
- }
7
- export declare function useControlAttributes(): ControlAttributes;
8
- export {};
@@ -1,2 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- export declare function useIdAttribute(): ComputedRef<string | undefined>;
@@ -1,12 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ValidationAttributes {
3
- required: ComputedRef<boolean | undefined>;
4
- minlength: ComputedRef<number | undefined>;
5
- maxlength: ComputedRef<number | undefined>;
6
- pattern: ComputedRef<string | undefined>;
7
- min: ComputedRef<number | undefined>;
8
- max: ComputedRef<number | undefined>;
9
- step: ComputedRef<number | undefined>;
10
- }
11
- export declare function useValidationAttributes(): ValidationAttributes;
12
- export {};
@@ -1,21 +0,0 @@
1
- import { useAttrs, computed, getCurrentInstance } from 'vue';
2
-
3
- function useControlAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- readonly: computed(() => attributes['readonly']),
7
- disabled: computed(() => attributes['disabled']),
8
- 'force-state': computed(() => attributes['force-state'])
9
- };
10
- }
11
-
12
- function useIdAttribute() {
13
- const attributes = useAttrs(),
14
- component = getCurrentInstance();
15
- return computed(() => {
16
- var _a;
17
- return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
18
- });
19
- }
20
-
21
- export { useIdAttribute as a, useControlAttributes as u };
@@ -1,16 +0,0 @@
1
- import { useAttrs, computed } from 'vue';
2
-
3
- function useValidationAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- required: computed(() => attributes['required']),
7
- minlength: computed(() => attributes['minlength']),
8
- maxlength: computed(() => attributes['maxlength']),
9
- pattern: computed(() => attributes['pattern']),
10
- min: computed(() => attributes['min']),
11
- max: computed(() => attributes['max']),
12
- step: computed(() => attributes['step'])
13
- };
14
- }
15
-
16
- export { useValidationAttributes as u };
@@ -1,8 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ControlAttributes {
3
- readonly: ComputedRef<boolean | undefined>;
4
- disabled: ComputedRef<boolean | undefined>;
5
- 'force-state': ComputedRef<string | undefined>;
6
- }
7
- export declare function useControlAttributes(): ControlAttributes;
8
- export {};
@@ -1,2 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- export declare function useIdAttribute(): ComputedRef<string | undefined>;
@@ -1,12 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ValidationAttributes {
3
- required: ComputedRef<boolean | undefined>;
4
- minlength: ComputedRef<number | undefined>;
5
- maxlength: ComputedRef<number | undefined>;
6
- pattern: ComputedRef<string | undefined>;
7
- min: ComputedRef<number | undefined>;
8
- max: ComputedRef<number | undefined>;
9
- step: ComputedRef<number | undefined>;
10
- }
11
- export declare function useValidationAttributes(): ValidationAttributes;
12
- export {};
@@ -1,21 +0,0 @@
1
- import { useAttrs, computed, getCurrentInstance } from 'vue-demi';
2
-
3
- function useControlAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- readonly: computed(() => attributes['readonly']),
7
- disabled: computed(() => attributes['disabled']),
8
- 'force-state': computed(() => attributes['force-state'])
9
- };
10
- }
11
-
12
- function useIdAttribute() {
13
- const attributes = useAttrs(),
14
- component = getCurrentInstance();
15
- return computed(() => {
16
- var _a;
17
- return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
18
- });
19
- }
20
-
21
- export { useIdAttribute as a, useControlAttributes as u };
@@ -1,16 +0,0 @@
1
- import { useAttrs, computed } from 'vue-demi';
2
-
3
- function useValidationAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- required: computed(() => attributes['required']),
7
- minlength: computed(() => attributes['minlength']),
8
- maxlength: computed(() => attributes['maxlength']),
9
- pattern: computed(() => attributes['pattern']),
10
- min: computed(() => attributes['min']),
11
- max: computed(() => attributes['max']),
12
- step: computed(() => attributes['step'])
13
- };
14
- }
15
-
16
- export { useValidationAttributes as u };
@@ -1,8 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ControlAttributes {
3
- readonly: ComputedRef<boolean | undefined>;
4
- disabled: ComputedRef<boolean | undefined>;
5
- 'force-state': ComputedRef<string | undefined>;
6
- }
7
- export declare function useControlAttributes(): ControlAttributes;
8
- export {};
@@ -1,2 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- export declare function useIdAttribute(): ComputedRef<string | undefined>;
@@ -1,12 +0,0 @@
1
- import { ComputedRef } from 'vue-demi';
2
- interface ValidationAttributes {
3
- required: ComputedRef<boolean | undefined>;
4
- minlength: ComputedRef<number | undefined>;
5
- maxlength: ComputedRef<number | undefined>;
6
- pattern: ComputedRef<string | undefined>;
7
- min: ComputedRef<number | undefined>;
8
- max: ComputedRef<number | undefined>;
9
- step: ComputedRef<number | undefined>;
10
- }
11
- export declare function useValidationAttributes(): ValidationAttributes;
12
- export {};
@@ -1,21 +0,0 @@
1
- import { useAttrs, computed, getCurrentInstance } from 'vue-demi';
2
-
3
- function useControlAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- readonly: computed(() => attributes['readonly']),
7
- disabled: computed(() => attributes['disabled']),
8
- 'force-state': computed(() => attributes['force-state'])
9
- };
10
- }
11
-
12
- function useIdAttribute() {
13
- const attributes = useAttrs(),
14
- component = getCurrentInstance();
15
- return computed(() => {
16
- var _a;
17
- return (_a = attributes['id']) !== null && _a !== void 0 ? _a : component === null || component === void 0 ? void 0 : component.uid.toString();
18
- });
19
- }
20
-
21
- export { useIdAttribute as a, useControlAttributes as u };
@@ -1,16 +0,0 @@
1
- import { useAttrs, computed } from 'vue-demi';
2
-
3
- function useValidationAttributes() {
4
- const attributes = useAttrs();
5
- return {
6
- required: computed(() => attributes['required']),
7
- minlength: computed(() => attributes['minlength']),
8
- maxlength: computed(() => attributes['maxlength']),
9
- pattern: computed(() => attributes['pattern']),
10
- min: computed(() => attributes['min']),
11
- max: computed(() => attributes['max']),
12
- step: computed(() => attributes['step'])
13
- };
14
- }
15
-
16
- export { useValidationAttributes as u };
@@ -1,19 +0,0 @@
1
- import { computed, ComputedRef, useAttrs } from 'vue-demi';
2
-
3
- interface ControlAttributes {
4
- readonly: ComputedRef<boolean | undefined>;
5
- disabled: ComputedRef<boolean | undefined>;
6
-
7
- 'force-state': ComputedRef<string | undefined>;
8
- }
9
-
10
- export function useControlAttributes(): ControlAttributes {
11
- const attributes = useAttrs();
12
-
13
- return {
14
- readonly: computed(() => attributes['readonly'] as boolean | undefined),
15
- disabled: computed(() => attributes['disabled'] as boolean | undefined),
16
-
17
- 'force-state': computed(() => attributes['force-state'] as string | undefined),
18
- };
19
- }
@@ -1,9 +0,0 @@
1
- import { computed, ComputedRef, getCurrentInstance, useAttrs } from 'vue-demi';
2
-
3
- export function useIdAttribute(): ComputedRef<string | undefined> {
4
- const attributes = useAttrs(), component = getCurrentInstance();
5
-
6
- return computed(() => {
7
- return attributes['id'] as string | undefined ?? component?.uid.toString();
8
- });
9
- }
@@ -1,25 +0,0 @@
1
- import { computed, ComputedRef, useAttrs } from 'vue-demi';
2
-
3
- interface ValidationAttributes {
4
- required: ComputedRef<boolean | undefined>;
5
- minlength: ComputedRef<number | undefined>;
6
- maxlength: ComputedRef<number | undefined>;
7
- pattern: ComputedRef<string | undefined>;
8
- min: ComputedRef<number | undefined>;
9
- max: ComputedRef<number | undefined>;
10
- step: ComputedRef<number | undefined>;
11
- }
12
-
13
- export function useValidationAttributes(): ValidationAttributes {
14
- const attributes = useAttrs();
15
-
16
- return {
17
- required: computed(() => attributes['required'] as boolean | undefined),
18
- minlength: computed(() => attributes['minlength'] as number | undefined),
19
- maxlength: computed(() => attributes['maxlength'] as number | undefined),
20
- pattern: computed(() => attributes['pattern'] as string | undefined),
21
- min: computed(() => attributes['min'] as number | undefined),
22
- max: computed(() => attributes['max'] as number | undefined),
23
- step: computed(() => attributes['step'] as number | undefined),
24
- };
25
- }