@onereach/ui-components 8.26.2-beta.4183.0 → 8.26.2-beta.4184.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 (195) hide show
  1. package/dist/bundled/v2/OrInlineInput-93d7a690.js +373 -0
  2. package/dist/bundled/v2/OrInput-81df7deb.js +431 -0
  3. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +2 -2
  4. package/dist/bundled/v2/components/OrCombinedInputV3/OrCombinedInput.js +2 -2
  5. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
  6. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -344
  7. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.vue.d.ts +29 -29
  8. package/dist/bundled/v2/components/OrInlineInputV3/index.d.ts +1 -1
  9. package/dist/bundled/v2/components/OrInlineInputV3/index.js +1 -2
  10. package/dist/bundled/v2/components/OrInlineInputV3/{props.d.ts → types.d.ts} +1 -0
  11. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +39 -34
  12. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +30 -28
  13. package/dist/bundled/v2/components/OrInlineTextareaV3/index.d.ts +1 -0
  14. package/dist/bundled/v2/components/OrInlineTextareaV3/types.d.ts +1 -0
  15. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -424
  16. package/dist/bundled/v2/components/OrInputV3/OrInput.vue.d.ts +27 -27
  17. package/dist/bundled/v2/components/OrInputV3/index.d.ts +1 -1
  18. package/dist/bundled/v2/components/OrInputV3/index.js +1 -2
  19. package/dist/bundled/{v3/components/OrInputV3/props.d.ts → v2/components/OrInputV3/types.d.ts} +1 -0
  20. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
  21. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
  22. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +3 -3
  23. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +4 -4
  24. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.js +28 -11
  25. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +39 -5
  26. package/dist/bundled/v2/components/OrTextareaV3/index.d.ts +1 -0
  27. package/dist/bundled/v2/components/OrTextareaV3/types.d.ts +1 -0
  28. package/dist/bundled/v2/components/index.js +2 -4
  29. package/dist/bundled/v2/index.js +2 -4
  30. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +1 -1
  31. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  32. package/dist/bundled/v3/components/OrCardCollectionV3/props.js +1 -1
  33. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +1 -1
  34. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +1 -1
  35. package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
  36. package/dist/bundled/v3/components/OrCodeV3/props.js +1 -1
  37. package/dist/bundled/v3/components/OrCodeV3/styles.js +1 -1
  38. package/dist/bundled/v3/components/{OrCodeV3-7743f120.js → OrCodeV3-dd35568f.js} +1 -1
  39. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +1 -1
  40. package/dist/bundled/v3/components/OrCombinedInputV3/index.js +1 -1
  41. package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +1 -1
  42. package/dist/bundled/v3/components/{OrCombinedInputV3-0f9fe264.js → OrCombinedInputV3-29957e20.js} +1 -1
  43. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +1 -1
  44. package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
  45. package/dist/bundled/v3/components/OrConfirmV3/props.js +1 -1
  46. package/dist/bundled/v3/components/OrConfirmV3/styles.js +1 -1
  47. package/dist/bundled/v3/components/{OrConfirmV3-6da781f0.js → OrConfirmV3-873dafab.js} +1 -1
  48. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +1 -1
  49. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +21 -20
  50. package/dist/bundled/v3/components/OrInlineInputV3/index.d.ts +1 -1
  51. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  52. package/dist/bundled/v3/components/OrInlineInputV3/styles.js +1 -1
  53. package/dist/bundled/v3/components/OrInlineInputV3/{props.d.ts → types.d.ts} +1 -0
  54. package/dist/bundled/v3/components/{OrInlineInputV3-13a3cadd.js → OrInlineInputV3-ba7bbc59.js} +35 -34
  55. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +1 -1
  56. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +22 -19
  57. package/dist/bundled/v3/components/OrInlineTextareaV3/index.d.ts +1 -0
  58. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  59. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +1 -1
  60. package/dist/bundled/v3/components/OrInlineTextareaV3/types.d.ts +1 -0
  61. package/dist/bundled/v3/components/{OrInlineTextareaV3-51fa4af2.js → OrInlineTextareaV3-2e7404cb.js} +30 -30
  62. package/dist/bundled/v3/components/OrInputV3/OrInput.js +1 -1
  63. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +22 -22
  64. package/dist/bundled/v3/components/OrInputV3/index.d.ts +1 -1
  65. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  66. package/dist/bundled/v3/components/OrInputV3/styles.js +1 -1
  67. package/dist/{esm/v2/components/or-input-v3/props.d.ts → bundled/v3/components/OrInputV3/types.d.ts} +1 -0
  68. package/dist/bundled/v3/components/{OrInputV3-8b2b9dab.js → OrInputV3-f678b5fa.js} +21 -21
  69. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
  70. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  71. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +1 -1
  72. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +1 -1
  73. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +1 -1
  74. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +1 -1
  75. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
  76. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -1
  77. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +1 -1
  78. package/dist/bundled/v3/components/{OrRichTextEditorV3-bf6199cf.js → OrRichTextEditorV3-ae80718f.js} +1 -1
  79. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +1 -1
  80. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
  81. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  82. package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
  83. package/dist/bundled/v3/components/OrSelectV3/utils/castToMultipleValue.js +1 -1
  84. package/dist/bundled/v3/components/{OrSelectV3-815e70b7.js → OrSelectV3-c9c94cbd.js} +2 -2
  85. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
  86. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  87. package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
  88. package/dist/bundled/v3/components/{OrTagInputV3-06d4d09d.js → OrTagInputV3-fa9e3845.js} +1 -1
  89. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +1 -1
  90. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +32 -3
  91. package/dist/bundled/v3/components/OrTextareaV3/index.d.ts +1 -0
  92. package/dist/bundled/v3/components/OrTextareaV3/index.js +1 -1
  93. package/dist/bundled/v3/components/OrTextareaV3/styles.js +1 -1
  94. package/dist/bundled/v3/components/OrTextareaV3/types.d.ts +1 -0
  95. package/dist/bundled/v3/components/{OrTextareaV3-017a2641.js → OrTextareaV3-f9714a90.js} +24 -8
  96. package/dist/bundled/v3/components/index.js +11 -11
  97. package/dist/bundled/v3/index.js +11 -11
  98. package/dist/esm/v2/{OrCardCollection-067d27a8.js → OrCardCollection-9a5deaa7.js} +1 -1
  99. package/dist/esm/v2/{OrCode-fd529ecc.js → OrCode-67b3204f.js} +2 -2
  100. package/dist/esm/v2/{OrCombinedInput-15c68f22.js → OrCombinedInput-776fc91d.js} +2 -2
  101. package/dist/esm/v2/{OrConfirm-5c7de417.js → OrConfirm-7136abe6.js} +1 -1
  102. package/dist/esm/v2/{OrInlineInput-0483969d.js → OrInlineInput-3938a451.js} +66 -42
  103. package/dist/esm/v2/{OrInlineTextarea-029ca666.js → OrInlineTextarea-c9dbd88f.js} +39 -34
  104. package/dist/esm/v2/{OrInput-8a6ce5fb.js → OrInput-1842bb90.js} +27 -27
  105. package/dist/esm/v2/{OrRichTextEditor-2f4f2c25.js → OrRichTextEditor-cf1bdcac.js} +1 -1
  106. package/dist/esm/v2/{OrSearch-166a1913.js → OrSearch-ea317262.js} +1 -1
  107. package/dist/esm/v2/{OrSelect-7a221ef0.js → OrSelect-1ae85ca3.js} +3 -3
  108. package/dist/esm/v2/{OrTagInput-f9068b41.js → OrTagInput-83f068cb.js} +4 -4
  109. package/dist/esm/v2/{OrTextarea-6d1a88fd.js → OrTextarea-a6903979.js} +28 -11
  110. package/dist/esm/v2/components/index.js +12 -12
  111. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  112. package/dist/esm/v2/components/or-code-v3/index.js +1 -1
  113. package/dist/esm/v2/components/or-combined-input-v3/index.js +1 -1
  114. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  115. package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +29 -29
  116. package/dist/esm/v2/components/or-inline-input-v3/index.d.ts +1 -1
  117. package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
  118. package/dist/esm/v2/components/or-inline-input-v3/{props.d.ts → types.d.ts} +1 -0
  119. package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +30 -28
  120. package/dist/esm/v2/components/or-inline-textarea-v3/index.d.ts +1 -0
  121. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
  122. package/dist/esm/v2/components/or-inline-textarea-v3/types.d.ts +1 -0
  123. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +27 -27
  124. package/dist/esm/v2/components/or-input-v3/index.d.ts +1 -1
  125. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  126. package/dist/{bundled/v2/components/OrInputV3/props.d.ts → esm/v2/components/or-input-v3/types.d.ts} +1 -0
  127. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +2 -2
  128. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  129. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  130. package/dist/esm/v2/components/or-tag-input-v3/index.js +1 -1
  131. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +39 -5
  132. package/dist/esm/v2/components/or-textarea-v3/index.d.ts +1 -0
  133. package/dist/esm/v2/components/or-textarea-v3/index.js +1 -1
  134. package/dist/esm/v2/components/or-textarea-v3/types.d.ts +1 -0
  135. package/dist/esm/v2/index.js +12 -12
  136. package/dist/esm/v3/{OrCardCollection-969e3192.js → OrCardCollection-f5636477.js} +1 -1
  137. package/dist/esm/v3/{OrCode-9daaea90.js → OrCode-f16c5ea5.js} +1 -1
  138. package/dist/esm/v3/{OrCombinedInput-2185da73.js → OrCombinedInput-b4c65fb7.js} +1 -1
  139. package/dist/esm/v3/{OrConfirm-8f635f18.js → OrConfirm-3c42378d.js} +1 -1
  140. package/dist/esm/v3/{OrInlineInput-e6bf3d25.js → OrInlineInput-e0727d6e.js} +35 -34
  141. package/dist/esm/v3/{OrInlineTextarea-95e5d3d2.js → OrInlineTextarea-2b8f797e.js} +30 -30
  142. package/dist/esm/v3/{OrInput-0e06f7cd.js → OrInput-c1b19d47.js} +21 -21
  143. package/dist/esm/v3/{OrRichTextEditor-b9645112.js → OrRichTextEditor-13a882dc.js} +1 -1
  144. package/dist/esm/v3/{OrSearch-3985909c.js → OrSearch-7dd097fd.js} +1 -1
  145. package/dist/esm/v3/{OrSelect-ac13738f.js → OrSelect-a17821c2.js} +2 -2
  146. package/dist/esm/v3/{OrTagInput-e103d2c1.js → OrTagInput-20985c49.js} +1 -1
  147. package/dist/esm/v3/{OrTextarea-41a454e6.js → OrTextarea-4aeaaf2d.js} +24 -8
  148. package/dist/esm/v3/components/index.js +12 -12
  149. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  150. package/dist/esm/v3/components/or-code-v3/index.js +1 -1
  151. package/dist/esm/v3/components/or-combined-input-v3/index.js +1 -1
  152. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  153. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +21 -20
  154. package/dist/esm/v3/components/or-inline-input-v3/index.d.ts +1 -1
  155. package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
  156. package/dist/esm/v3/components/or-inline-input-v3/{props.d.ts → types.d.ts} +1 -0
  157. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +22 -19
  158. package/dist/esm/v3/components/or-inline-textarea-v3/index.d.ts +1 -0
  159. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
  160. package/dist/esm/v3/components/or-inline-textarea-v3/types.d.ts +1 -0
  161. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +22 -22
  162. package/dist/esm/v3/components/or-input-v3/index.d.ts +1 -1
  163. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  164. package/dist/esm/v3/components/or-input-v3/{props.d.ts → types.d.ts} +1 -0
  165. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +2 -2
  166. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  167. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  168. package/dist/esm/v3/components/or-tag-input-v3/index.js +1 -1
  169. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +32 -3
  170. package/dist/esm/v3/components/or-textarea-v3/index.d.ts +1 -0
  171. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  172. package/dist/esm/v3/components/or-textarea-v3/types.d.ts +1 -0
  173. package/dist/esm/v3/index.js +12 -12
  174. package/package.json +1 -1
  175. package/src/components/or-code-v3/partials/OrCodeControl.vue +1 -1
  176. package/src/components/or-combined-input-v3/OrCombinedInput.vue +1 -1
  177. package/src/components/or-inline-input-v3/OrInlineInput.vue +28 -27
  178. package/src/components/or-inline-input-v3/index.ts +1 -1
  179. package/src/components/or-inline-input-v3/{props.ts → types.ts} +2 -0
  180. package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +29 -27
  181. package/src/components/or-inline-textarea-v3/index.ts +1 -0
  182. package/src/components/or-inline-textarea-v3/types.ts +1 -0
  183. package/src/components/or-input-v3/OrInput.vue +19 -16
  184. package/src/components/or-input-v3/index.ts +1 -1
  185. package/src/components/or-input-v3/{props.ts → types.ts} +2 -0
  186. package/src/components/or-select-v3/OrSelect.vue +1 -1
  187. package/src/components/or-tag-input-v3/OrTagInput.vue +1 -1
  188. package/src/components/or-textarea-v3/OrTextarea.vue +25 -2
  189. package/src/components/or-textarea-v3/index.ts +1 -0
  190. package/src/components/or-textarea-v3/types.ts +1 -0
  191. package/dist/bundled/v2/components/OrInlineInputV3/props.js +0 -7
  192. package/dist/bundled/v2/components/OrInputV3/props.js +0 -9
  193. package/dist/bundled/v3/components/OrInlineInputV3/props.js +0 -1
  194. package/dist/bundled/v3/components/OrInputV3/props.js +0 -1
  195. /package/dist/bundled/v3/components/{OrCardCollectionV3-5a147324.js → OrCardCollectionV3-b54cd88d.js} +0 -0
@@ -0,0 +1,373 @@
1
+ import { defineComponent, ref, computed, reactive, toRef, watch } from 'vue-demi';
2
+ import { InlineInput, InlineInputControl, InlineInputAction, InlineInputActionSizes } from './components/OrInlineInputV3/styles.js';
3
+ import __vue_component__$1 from './components/OrErrorV3/OrError.js';
4
+ import __vue_component__$2 from './components/OrHintV3/OrHint.js';
5
+ import __vue_component__$3 from './components/OrIconButtonV3/OrIconButton.js';
6
+ import __vue_component__$4 from './components/OrInlineInputBoxV3/OrInlineInputBox.js';
7
+ import { InlineInputBoxSize } from './components/OrInlineInputBoxV3/props.js';
8
+ import { useIdAttribute } from './hooks/useIdAttribute.js';
9
+ import { useControlAttributes } from './hooks/useControlAttributes.js';
10
+ import { useValidationAttributes } from './hooks/useValidationAttributes.js';
11
+ import { useProxyModelValue } from './hooks/useProxyModelValue.js';
12
+ import { s as styleInject } from './style-inject.es-4c6f2515.js';
13
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
14
+
15
+ var InlineInputType;
16
+ (function (InlineInputType) {
17
+ InlineInputType["Text"] = "text";
18
+ InlineInputType["Number"] = "number";
19
+ })(InlineInputType || (InlineInputType = {}));
20
+
21
+ var script = defineComponent({
22
+ name: 'OrInlineInput',
23
+ components: {
24
+ OrError: __vue_component__$1,
25
+ OrHint: __vue_component__$2,
26
+ OrIconButton: __vue_component__$3,
27
+ OrInlineInputBox: __vue_component__$4
28
+ },
29
+ model: {
30
+ prop: 'modelValue',
31
+ event: 'update:modelValue'
32
+ },
33
+ props: {
34
+ modelValue: {
35
+ type: undefined,
36
+ default: undefined
37
+ },
38
+ type: {
39
+ type: String,
40
+ default: () => InlineInputType.Text
41
+ },
42
+ size: {
43
+ type: String,
44
+ default: () => InlineInputBoxSize.M
45
+ },
46
+ placeholder: {
47
+ type: String,
48
+ default: undefined
49
+ },
50
+ hint: {
51
+ type: String,
52
+ default: undefined
53
+ },
54
+ error: {
55
+ type: [String, Boolean],
56
+ default: undefined
57
+ },
58
+ saveOnBlur: {
59
+ type: Boolean,
60
+ default: false
61
+ }
62
+ },
63
+ emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
64
+ expose: ['root', 'focus', 'blur'],
65
+ setup(props, context) {
66
+ // Refs
67
+ const root = ref();
68
+ const control = ref();
69
+ // Styles
70
+ const rootStyles = computed(() => ['or-inline-input-v3', ...InlineInput]);
71
+ const controlStyles = computed(() => [...InlineInputControl]);
72
+ const actionStyles = computed(() => [...InlineInputAction, ...InlineInputActionSizes[props.size]]);
73
+ // State
74
+ const controlAttributes = reactive({
75
+ id: useIdAttribute(),
76
+ ...useControlAttributes(),
77
+ ...useValidationAttributes()
78
+ });
79
+ const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
80
+ const draftModelValue = ref(proxyModelValue.value);
81
+ watch(proxyModelValue, value => {
82
+ draftModelValue.value = value;
83
+ });
84
+ const currentLength = computed(() => {
85
+ var _a, _b;
86
+ return (_b = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== null && _b !== void 0 ? _b : 0;
87
+ });
88
+ const maxLength = computed(() => controlAttributes.maxlength);
89
+ const activated = ref(false);
90
+ // Handlers
91
+ function onFocus() {
92
+ activated.value = true;
93
+ }
94
+ function onBlur() {
95
+ if (props.saveOnBlur) {
96
+ apply();
97
+ }
98
+ }
99
+ // Methods
100
+ function apply() {
101
+ if (draftModelValue.value !== proxyModelValue.value) {
102
+ proxyModelValue.value = draftModelValue.value;
103
+ }
104
+ activated.value = false;
105
+ }
106
+ function reset() {
107
+ if (draftModelValue.value !== proxyModelValue.value) {
108
+ draftModelValue.value = proxyModelValue.value;
109
+ }
110
+ activated.value = false;
111
+ }
112
+ function focus() {
113
+ var _a;
114
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
115
+ }
116
+ function blur() {
117
+ var _a;
118
+ (_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
119
+ }
120
+ return {
121
+ root,
122
+ control,
123
+ rootStyles,
124
+ controlStyles,
125
+ actionStyles,
126
+ controlAttributes,
127
+ proxyModelValue,
128
+ draftModelValue,
129
+ currentLength,
130
+ maxLength,
131
+ activated,
132
+ onFocus,
133
+ onBlur,
134
+ apply,
135
+ reset,
136
+ focus,
137
+ blur
138
+ };
139
+ }
140
+ });
141
+
142
+ var css_248z = "input[data-v-571e9732]{min-width:0;background:0 0;outline:0}input[type=number][data-v-571e9732]::-webkit-inner-spin-button{display:none}input[type=search][data-v-571e9732]::-webkit-search-cancel-button{display:none}";
143
+ styleInject(css_248z);
144
+
145
+ /* script */
146
+ const __vue_script__ = script;
147
+ /* template */
148
+ var __vue_render__ = function () {
149
+ var _vm = this;
150
+ var _h = _vm.$createElement;
151
+ var _c = _vm._self._c || _h;
152
+ return _c('div', {
153
+ ref: "root",
154
+ class: _vm.rootStyles
155
+ }, [_c('div', {
156
+ class: ['layout-row', 'gap-sm+']
157
+ }, [_c('OrInlineInputBox', {
158
+ attrs: {
159
+ "size": _vm.size,
160
+ "invalid": !!_vm.error
161
+ }
162
+ }, [_vm.type === 'checkbox' ? _c('input', _vm._b({
163
+ directives: [{
164
+ name: "model",
165
+ rawName: "v-model",
166
+ value: _vm.draftModelValue,
167
+ expression: "draftModelValue"
168
+ }],
169
+ ref: "control",
170
+ class: _vm.controlStyles,
171
+ attrs: {
172
+ "placeholder": _vm.placeholder,
173
+ "activated": _vm.activated,
174
+ "type": "checkbox"
175
+ },
176
+ domProps: {
177
+ "checked": Array.isArray(_vm.draftModelValue) ? _vm._i(_vm.draftModelValue, null) > -1 : _vm.draftModelValue
178
+ },
179
+ on: {
180
+ "input": function ($event) {
181
+ return _vm.$emit('input', $event);
182
+ },
183
+ "keydown": function ($event) {
184
+ return _vm.$emit('keydown', $event);
185
+ },
186
+ "keyup": function ($event) {
187
+ return _vm.$emit('keyup', $event);
188
+ },
189
+ "focus": function ($event) {
190
+ _vm.$emit('focus', $event);
191
+ _vm.onFocus();
192
+ },
193
+ "blur": function ($event) {
194
+ _vm.$emit('blur', $event);
195
+ _vm.onBlur();
196
+ },
197
+ "change": function ($event) {
198
+ var $$a = _vm.draftModelValue,
199
+ $$el = $event.target,
200
+ $$c = $$el.checked ? true : false;
201
+ if (Array.isArray($$a)) {
202
+ var $$v = null,
203
+ $$i = _vm._i($$a, $$v);
204
+ if ($$el.checked) {
205
+ $$i < 0 && (_vm.draftModelValue = $$a.concat([$$v]));
206
+ } else {
207
+ $$i > -1 && (_vm.draftModelValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
208
+ }
209
+ } else {
210
+ _vm.draftModelValue = $$c;
211
+ }
212
+ }
213
+ }
214
+ }, 'input', _vm.controlAttributes, false)) : _vm.type === 'radio' ? _c('input', _vm._b({
215
+ directives: [{
216
+ name: "model",
217
+ rawName: "v-model",
218
+ value: _vm.draftModelValue,
219
+ expression: "draftModelValue"
220
+ }],
221
+ ref: "control",
222
+ class: _vm.controlStyles,
223
+ attrs: {
224
+ "placeholder": _vm.placeholder,
225
+ "activated": _vm.activated,
226
+ "type": "radio"
227
+ },
228
+ domProps: {
229
+ "checked": _vm._q(_vm.draftModelValue, null)
230
+ },
231
+ on: {
232
+ "input": function ($event) {
233
+ return _vm.$emit('input', $event);
234
+ },
235
+ "keydown": function ($event) {
236
+ return _vm.$emit('keydown', $event);
237
+ },
238
+ "keyup": function ($event) {
239
+ return _vm.$emit('keyup', $event);
240
+ },
241
+ "focus": function ($event) {
242
+ _vm.$emit('focus', $event);
243
+ _vm.onFocus();
244
+ },
245
+ "blur": function ($event) {
246
+ _vm.$emit('blur', $event);
247
+ _vm.onBlur();
248
+ },
249
+ "change": function ($event) {
250
+ _vm.draftModelValue = null;
251
+ }
252
+ }
253
+ }, 'input', _vm.controlAttributes, false)) : _c('input', _vm._b({
254
+ directives: [{
255
+ name: "model",
256
+ rawName: "v-model",
257
+ value: _vm.draftModelValue,
258
+ expression: "draftModelValue"
259
+ }],
260
+ ref: "control",
261
+ class: _vm.controlStyles,
262
+ attrs: {
263
+ "placeholder": _vm.placeholder,
264
+ "activated": _vm.activated,
265
+ "type": _vm.type
266
+ },
267
+ domProps: {
268
+ "value": _vm.draftModelValue
269
+ },
270
+ on: {
271
+ "input": [function ($event) {
272
+ if ($event.target.composing) {
273
+ return;
274
+ }
275
+ _vm.draftModelValue = $event.target.value;
276
+ }, function ($event) {
277
+ return _vm.$emit('input', $event);
278
+ }],
279
+ "keydown": function ($event) {
280
+ return _vm.$emit('keydown', $event);
281
+ },
282
+ "keyup": function ($event) {
283
+ return _vm.$emit('keyup', $event);
284
+ },
285
+ "focus": function ($event) {
286
+ _vm.$emit('focus', $event);
287
+ _vm.onFocus();
288
+ },
289
+ "blur": function ($event) {
290
+ _vm.$emit('blur', $event);
291
+ _vm.onBlur();
292
+ }
293
+ }
294
+ }, 'input', _vm.controlAttributes, false))]), _vm._v(" "), _vm.activated && !_vm.saveOnBlur ? [_c('div', {
295
+ class: _vm.actionStyles
296
+ }, [_c('OrIconButton', {
297
+ attrs: {
298
+ "icon": 'done',
299
+ "color": 'inherit'
300
+ },
301
+ on: {
302
+ "click": function ($event) {
303
+ $event.stopPropagation();
304
+ return _vm.apply.apply(null, arguments);
305
+ }
306
+ }
307
+ }), _vm._v(" "), _c('OrIconButton', {
308
+ attrs: {
309
+ "icon": 'close',
310
+ "color": 'inherit'
311
+ },
312
+ on: {
313
+ "click": function ($event) {
314
+ $event.stopPropagation();
315
+ return _vm.reset.apply(null, arguments);
316
+ }
317
+ }
318
+ })], 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
319
+ directives: [{
320
+ name: "show",
321
+ rawName: "v-show",
322
+ value: !_vm.error,
323
+ expression: "!error"
324
+ }],
325
+ class: ['contents']
326
+ }, [_vm.hint || _vm.maxLength ? [_c('OrHint', {
327
+ scopedSlots: _vm._u([_vm.maxLength ? {
328
+ key: "addon",
329
+ fn: function () {
330
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
331
+ },
332
+ proxy: true
333
+ } : null], null, true)
334
+ }, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()], 2), _vm._v(" "), _c('div', {
335
+ directives: [{
336
+ name: "show",
337
+ rawName: "v-show",
338
+ value: typeof _vm.error === 'string' && _vm.error.length > 0,
339
+ expression: "typeof error === 'string' && error.length > 0"
340
+ }],
341
+ class: ['contents']
342
+ }, [_c('OrError', {
343
+ scopedSlots: _vm._u([_vm.maxLength ? {
344
+ key: "addon",
345
+ fn: function () {
346
+ return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
347
+ },
348
+ proxy: true
349
+ } : null], null, true)
350
+ }, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])], 1)]);
351
+ };
352
+ var __vue_staticRenderFns__ = [];
353
+
354
+ /* style */
355
+ const __vue_inject_styles__ = undefined;
356
+ /* scoped */
357
+ const __vue_scope_id__ = "data-v-571e9732";
358
+ /* module identifier */
359
+ const __vue_module_identifier__ = undefined;
360
+ /* functional template */
361
+ const __vue_is_functional_template__ = false;
362
+ /* style inject */
363
+
364
+ /* style inject SSR */
365
+
366
+ /* style inject shadow dom */
367
+
368
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
369
+ render: __vue_render__,
370
+ staticRenderFns: __vue_staticRenderFns__
371
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
372
+
373
+ export { InlineInputType as I, __vue_component__ as _ };