@onereach/ui-components 2.71.2-beta.2238.0 → 2.71.2-beta.2240.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/{OrCardCollection-166cfcc6.js → OrCardCollection-89428bbf.js} +5 -5
  2. package/dist/bundled/v2/{OrCardCollection-091e2193.js → OrCardCollection-c1ccde63.js} +1 -1
  3. package/dist/bundled/v2/{OrConfirm-55b89b17.js → OrConfirm-56d01cff.js} +4 -4
  4. package/dist/bundled/v2/{OrConfirm-bb2df177.js → OrConfirm-cc8b767f.js} +1 -1
  5. package/dist/bundled/v2/{OrInput-5404a234.js → OrInput-c539e47c.js} +23 -6
  6. package/dist/bundled/v2/{OrListOfInputs-ab7f9d97.js → OrListOfInputs-8f076650.js} +4 -4
  7. package/dist/bundled/v2/{OrTextarea-71ff236d.js → OrPassword-7da938aa.js} +449 -7
  8. package/dist/bundled/v2/{OrSearch-d1169241.js → OrSearch-d7326373.js} +1 -1
  9. package/dist/bundled/v2/{OrSearch-832d7978.js → OrSearch-f7cfa52f.js} +4 -4
  10. package/dist/bundled/v2/{OrSelect-5634790b.js → OrSelect-8802f330.js} +1 -1
  11. package/dist/bundled/v2/components/index.d.ts +1 -5
  12. package/dist/bundled/v2/components/index.js +13 -15
  13. package/dist/bundled/v2/components/or-card-collection/index.js +4 -4
  14. package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
  15. package/dist/bundled/v2/components/or-confirm/index.js +2 -2
  16. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  17. package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  18. package/dist/bundled/v2/components/or-input-v3/index.js +2 -1
  19. package/dist/bundled/v2/components/or-inputs/index.d.ts +5 -0
  20. package/dist/bundled/v2/components/{or-password → or-inputs}/index.js +4 -3
  21. package/dist/bundled/v2/components/or-list-of-inputs/index.js +2 -2
  22. package/dist/bundled/v2/components/or-search-v3/index.js +3 -2
  23. package/dist/bundled/v2/components/or-select-v3/index.js +3 -2
  24. package/dist/bundled/v2/index.js +11 -13
  25. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-cd84f344.js → OrCardCollection.vue_vue_type_script_lang-d8124dda.js} +4 -4
  26. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60403ae6.js → OrCardCollection.vue_vue_type_script_lang-f9897e01.js} +1 -1
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-41b4d791.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +1 -2
  28. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9231d51e.js → OrConfirm.vue_vue_type_script_lang-e9ba9909.js} +2 -2
  29. package/dist/bundled/v3/{OrInput-2a7c6b57.js → OrInput-41f8351a.js} +13 -4
  30. package/dist/bundled/v3/{OrInput-704e72ba.js → OrInput-7d4b571a.js} +193 -5
  31. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-509de504.js → OrInput.vue_vue_type_script_lang-b88324b6.js} +13 -1
  32. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-6c5cf7a5.js → OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js} +1 -2
  33. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-13bc5b00.js +390 -0
  34. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-5356fa79.js → OrSearch.vue_vue_type_script_lang-16fbccc0.js} +1 -2
  35. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ab2ef22c.js → OrSearch.vue_vue_type_script_lang-56eb4e93.js} +2 -2
  36. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-54f683a2.js → OrSelect.vue_vue_type_script_lang-ee433d47.js} +2 -2
  37. package/dist/bundled/v3/components/index.d.ts +1 -5
  38. package/dist/bundled/v3/components/index.js +14 -17
  39. package/dist/bundled/v3/components/or-card-collection/index.js +4 -5
  40. package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
  41. package/dist/bundled/v3/components/or-confirm/index.js +2 -3
  42. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
  43. package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  44. package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
  45. package/dist/bundled/v3/components/or-inputs/index.d.ts +5 -0
  46. package/dist/bundled/v3/components/{or-search → or-inputs}/index.js +5 -4
  47. package/dist/bundled/v3/components/or-list-of-inputs/index.js +2 -3
  48. package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
  49. package/dist/bundled/v3/components/or-select-v3/index.js +5 -3
  50. package/dist/bundled/v3/index.js +659 -664
  51. package/dist/esm/v2/{OrCardCollection-19582949.js → OrCardCollection-f6b07557.js} +7 -6
  52. package/dist/esm/v2/{OrCardCollection-bbdb6159.js → OrCardCollection-ff1e9819.js} +1 -1
  53. package/dist/esm/v2/{OrConfirm-ede619eb.js → OrConfirm-d7112dd3.js} +4 -4
  54. package/dist/esm/v2/{OrConfirm-cfaf4266.js → OrConfirm-ec81498e.js} +1 -1
  55. package/dist/esm/v2/{OrInput-e8fe9102.js → OrInput-b029d058.js} +23 -6
  56. package/dist/esm/v2/{OrListOfInputs-4298fa2c.js → OrListOfInputs-50aa1ef1.js} +5 -5
  57. package/dist/esm/v2/{OrTextarea-91a95068.js → OrPassword-1fa97156.js} +245 -187
  58. package/dist/esm/v2/{OrSearch-b4f4d59b.js → OrSearch-0589d17d.js} +5 -122
  59. package/dist/esm/v2/{OrSearch-4b774707.js → OrSearch-1c934f72.js} +1 -1
  60. package/dist/esm/v2/{OrInput-6e6cfd11.js → OrSearch.vue_rollup-plugin-vue_script-197d77fc.js} +492 -4
  61. package/dist/esm/v2/{OrSelect-d7016575.js → OrSelect-cfcb233a.js} +1 -1
  62. package/dist/esm/v2/components/index.d.ts +1 -5
  63. package/dist/esm/v2/components/index.js +13 -15
  64. package/dist/esm/v2/components/or-card-collection/index.js +4 -3
  65. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  66. package/dist/esm/v2/components/or-confirm/index.js +3 -2
  67. package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
  68. package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
  69. package/dist/esm/v2/components/or-input-v3/index.js +3 -2
  70. package/dist/esm/v2/components/or-inputs/index.d.ts +5 -0
  71. package/dist/esm/v2/components/{or-password → or-inputs}/index.js +6 -5
  72. package/dist/esm/v2/components/or-list-of-inputs/index.js +4 -2
  73. package/dist/esm/v2/components/or-search-v3/index.js +4 -3
  74. package/dist/esm/v2/components/or-select-v3/index.js +4 -3
  75. package/dist/esm/v2/index.js +11 -13
  76. package/dist/esm/v3/{OrCardCollection-47f61c40.js → OrCardCollection-5ecdcbaf.js} +1 -1
  77. package/dist/esm/v3/{OrCardCollection-1e44c758.js → OrCardCollection-a5e326ef.js} +2 -2
  78. package/dist/esm/v3/{OrConfirm-e7cbf54c.js → OrConfirm-beeb74d6.js} +1 -1
  79. package/dist/esm/v3/{OrConfirm-c11ee2ec.js → OrConfirm-f39bd784.js} +1 -1
  80. package/dist/esm/v3/{OrInput-6fb81556.js → OrInput-8a4573cd.js} +24 -4
  81. package/dist/esm/v3/{OrListOfInputs-508e056f.js → OrListOfInputs-7a67440f.js} +1 -1
  82. package/dist/esm/v3/{OrSearch-e15955a7.js → OrSearch-10d09806.js} +1 -1
  83. package/dist/esm/v3/OrSearch-7cb2c91c.js +1075 -0
  84. package/dist/esm/v3/{OrSelect-027b5e8f.js → OrSelect-1e4c6062.js} +1 -1
  85. package/dist/esm/v3/components/index.d.ts +1 -5
  86. package/dist/esm/v3/components/index.js +11 -15
  87. package/dist/esm/v3/components/or-card-collection/index.js +3 -3
  88. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  89. package/dist/esm/v3/components/or-confirm/index.js +3 -2
  90. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  91. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
  92. package/dist/esm/v3/components/or-input-v3/index.js +3 -2
  93. package/dist/esm/v3/components/or-inputs/index.d.ts +5 -0
  94. package/dist/esm/v3/components/{or-password → or-inputs}/index.js +2 -3
  95. package/dist/esm/v3/components/or-list-of-inputs/index.js +4 -2
  96. package/dist/esm/v3/components/or-search-v3/index.js +4 -3
  97. package/dist/esm/v3/components/or-select-v3/index.js +4 -3
  98. package/dist/esm/v3/index.js +9 -13
  99. package/package.json +1 -1
  100. package/src/components/index.ts +1 -5
  101. package/src/components/or-card-collection/OrCardCollection.vue +8 -8
  102. package/src/components/or-confirm/OrConfirm.vue +1 -1
  103. package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
  104. package/src/components/or-input-v3/OrInput.vue +37 -17
  105. package/src/components/{or-number-input → or-inputs}/OrNumberInput.vue +1 -1
  106. package/src/components/{or-password → or-inputs}/OrPassword.vue +1 -1
  107. package/src/components/{or-search → or-inputs}/OrSearch.vue +1 -1
  108. package/src/components/{or-textarea → or-inputs}/OrTextarea.vue +6 -225
  109. package/src/components/or-inputs/index.ts +5 -0
  110. package/src/components/or-list/OrList.stories.ts +1 -1
  111. package/src/components/or-list-of-inputs/OrListOfInputs.vue +1 -1
  112. package/src/components/or-modal/OrModal.stories.ts +1 -1
  113. package/dist/bundled/v2/OrNumberInput-face8ccc.js +0 -227
  114. package/dist/bundled/v2/OrPassword-a818e7b5.js +0 -227
  115. package/dist/bundled/v2/components/or-input/index.d.ts +0 -1
  116. package/dist/bundled/v2/components/or-input/index.js +0 -13
  117. package/dist/bundled/v2/components/or-number-input/index.d.ts +0 -1
  118. package/dist/bundled/v2/components/or-number-input/index.js +0 -14
  119. package/dist/bundled/v2/components/or-password/index.d.ts +0 -1
  120. package/dist/bundled/v2/components/or-search/index.d.ts +0 -1
  121. package/dist/bundled/v2/components/or-search/index.js +0 -25
  122. package/dist/bundled/v2/components/or-textarea/index.d.ts +0 -1
  123. package/dist/bundled/v2/components/or-textarea/index.js +0 -13
  124. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-409235cc.js +0 -190
  125. package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-f061d829.js +0 -113
  126. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-b75f6543.js +0 -99
  127. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-69ea22e9.js +0 -187
  128. package/dist/bundled/v3/components/or-input/index.d.ts +0 -1
  129. package/dist/bundled/v3/components/or-input/index.js +0 -14
  130. package/dist/bundled/v3/components/or-number-input/index.d.ts +0 -1
  131. package/dist/bundled/v3/components/or-number-input/index.js +0 -16
  132. package/dist/bundled/v3/components/or-password/index.d.ts +0 -1
  133. package/dist/bundled/v3/components/or-password/index.js +0 -31
  134. package/dist/bundled/v3/components/or-search/index.d.ts +0 -1
  135. package/dist/bundled/v3/components/or-textarea/index.d.ts +0 -1
  136. package/dist/bundled/v3/components/or-textarea/index.js +0 -14
  137. package/dist/esm/v2/OrNumberInput-b20d75d2.js +0 -225
  138. package/dist/esm/v2/OrPassword-e6d5e968.js +0 -225
  139. package/dist/esm/v2/components/or-input/index.d.ts +0 -1
  140. package/dist/esm/v2/components/or-input/index.js +0 -11
  141. package/dist/esm/v2/components/or-number-input/index.d.ts +0 -1
  142. package/dist/esm/v2/components/or-number-input/index.js +0 -12
  143. package/dist/esm/v2/components/or-password/index.d.ts +0 -1
  144. package/dist/esm/v2/components/or-search/index.d.ts +0 -1
  145. package/dist/esm/v2/components/or-search/index.js +0 -23
  146. package/dist/esm/v2/components/or-textarea/index.d.ts +0 -1
  147. package/dist/esm/v2/components/or-textarea/index.js +0 -11
  148. package/dist/esm/v3/OrInput-81125804.js +0 -295
  149. package/dist/esm/v3/OrNumberInput-b32b5ce3.js +0 -170
  150. package/dist/esm/v3/OrPassword-b0cbb578.js +0 -162
  151. package/dist/esm/v3/OrSearch-11fdf667.js +0 -188
  152. package/dist/esm/v3/OrTextarea-1f5c3be1.js +0 -290
  153. package/dist/esm/v3/components/or-input/index.d.ts +0 -1
  154. package/dist/esm/v3/components/or-input/index.js +0 -11
  155. package/dist/esm/v3/components/or-number-input/index.d.ts +0 -1
  156. package/dist/esm/v3/components/or-number-input/index.js +0 -12
  157. package/dist/esm/v3/components/or-password/index.d.ts +0 -1
  158. package/dist/esm/v3/components/or-search/index.d.ts +0 -1
  159. package/dist/esm/v3/components/or-search/index.js +0 -20
  160. package/dist/esm/v3/components/or-textarea/index.d.ts +0 -1
  161. package/dist/esm/v3/components/or-textarea/index.js +0 -11
  162. package/src/components/or-input/index.ts +0 -1
  163. package/src/components/or-number-input/index.ts +0 -1
  164. package/src/components/or-password/index.ts +0 -1
  165. package/src/components/or-search/index.ts +0 -1
  166. package/src/components/or-textarea/index.ts +0 -1
  167. /package/dist/bundled/v2/{OrInput-df1a14fa.js → OrInput-08f2f666.js} +0 -0
  168. /package/dist/bundled/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  169. /package/dist/bundled/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  170. /package/dist/bundled/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  171. /package/dist/bundled/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  172. /package/dist/bundled/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  173. /package/dist/bundled/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  174. /package/dist/bundled/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  175. /package/dist/bundled/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  176. /package/dist/bundled/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  177. /package/dist/bundled/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  178. /package/dist/esm/v2/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  179. /package/dist/esm/v2/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  180. /package/dist/esm/v2/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  181. /package/dist/esm/v2/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  182. /package/dist/esm/v2/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  183. /package/dist/esm/v3/components/{or-input → or-inputs}/OrInput.vue.d.ts +0 -0
  184. /package/dist/esm/v3/components/{or-number-input → or-inputs}/OrNumberInput.vue.d.ts +0 -0
  185. /package/dist/esm/v3/components/{or-password → or-inputs}/OrPassword.vue.d.ts +0 -0
  186. /package/dist/esm/v3/components/{or-search → or-inputs}/OrSearch.vue.d.ts +0 -0
  187. /package/dist/esm/v3/components/{or-textarea → or-inputs}/OrTextarea.vue.d.ts +0 -0
  188. /package/src/components/{or-input → or-inputs}/OrInput.stories.ts +0 -0
  189. /package/src/components/{or-input → or-inputs}/OrInput.vue +0 -0
  190. /package/src/components/{or-number-input → or-inputs}/OrNumberInput.stories.ts +0 -0
  191. /package/src/components/{or-password → or-inputs}/OrPassword.stories.ts +0 -0
  192. /package/src/components/{or-search → or-inputs}/OrSearch.stories.ts +0 -0
  193. /package/src/components/{or-textarea → or-inputs}/OrTextarea.stories.ts +0 -0
  194. /package/src/components/{or-input → or-inputs}/or-textbox-migration.stories.mdx +0 -0
  195. /package/src/components/{or-input → or-inputs}/styles.scss +0 -0
@@ -1,227 +0,0 @@
1
- import './index-fa6eb4ca.js';
2
- import { useVModel } from '@vueuse/core';
3
- import { O as OrInput } from './OrInput-df1a14fa.js';
4
- import { O as OrIconButton } from './OrIconButton-65962c1c.js';
5
- import { u as useToggle } from './useToggle-6166bd53.js';
6
- import { b as BUTTON_SIZE } from './constants-c5d1139f.js';
7
- import { defineComponent, ref } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
- import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
- import { c as createInjector } from './browser-82dea9ed.js';
10
-
11
- var script = defineComponent({
12
- name: 'OrPassword',
13
- components: {
14
- OrInput,
15
- OrIconButton
16
- },
17
- model: {
18
- prop: 'modelValue',
19
- event: 'update:modelValue'
20
- },
21
- props: {
22
- modelValue: {
23
- type: String,
24
- default: '',
25
- required: false
26
- },
27
- htmlId: {
28
- type: String,
29
- default: '',
30
- required: false
31
- },
32
- placeholder: {
33
- type: String,
34
- default: '',
35
- required: false
36
- },
37
- label: {
38
- type: String,
39
- default: '',
40
- required: false
41
- },
42
- error: {
43
- type: String,
44
- default: '',
45
- required: false
46
- },
47
- hint: {
48
- type: String,
49
- default: '',
50
- required: false
51
- },
52
- maxLength: {
53
- type: Number,
54
- default: undefined,
55
- required: false
56
- },
57
- isSmall: Boolean,
58
- isRequired: Boolean,
59
- isDisabled: Boolean,
60
- isReadonly: Boolean,
61
- isInvalid: Boolean
62
- },
63
- emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
64
- setup(props, {
65
- emit
66
- }) {
67
- const inputRef = ref();
68
- const localValue = useVModel(props, 'modelValue', emit);
69
- const {
70
- isActiveToggle,
71
- toggle
72
- } = useToggle();
73
- return {
74
- inputRef,
75
- localValue,
76
- isActiveToggle,
77
- toggle
78
- };
79
- },
80
- computed: {
81
- currentButtonIcon() {
82
- return this.isActiveToggle ? 'visibility' : 'visibility_off';
83
- },
84
- type() {
85
- return this.isActiveToggle ? 'text' : 'password';
86
- },
87
- size() {
88
- return this.isSmall ? BUTTON_SIZE.SMALL : BUTTON_SIZE.DEFAULT;
89
- }
90
- },
91
- methods: {
92
- onClick() {
93
- var _a;
94
- this.toggle();
95
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
96
- }
97
- }
98
- });
99
-
100
- /* script */
101
- const __vue_script__ = script;
102
-
103
- /* template */
104
- var __vue_render__ = function () {
105
- var _vm = this;
106
- var _h = _vm.$createElement;
107
- var _c = _vm._self._c || _h;
108
- return _c('or-input', {
109
- ref: "inputRef",
110
- staticClass: "or-password",
111
- attrs: {
112
- "html-id": _vm.htmlId,
113
- "placeholder": _vm.placeholder,
114
- "html-type": _vm.type,
115
- "label": _vm.label,
116
- "error": _vm.error,
117
- "hint": _vm.hint,
118
- "max-length": _vm.maxLength,
119
- "is-small": _vm.isSmall,
120
- "is-required": _vm.isRequired,
121
- "is-disabled": _vm.isDisabled,
122
- "is-readonly": _vm.isReadonly,
123
- "is-invalid": _vm.isInvalid
124
- },
125
- on: {
126
- "focus": function ($event) {
127
- return _vm.$emit('focus', $event);
128
- },
129
- "blur": function ($event) {
130
- return _vm.$emit('blur', $event);
131
- },
132
- "input": function ($event) {
133
- return _vm.$emit('input', $event);
134
- },
135
- "keypress": function ($event) {
136
- return _vm.$emit('keypress', $event);
137
- },
138
- "keyup": function ($event) {
139
- return _vm.$emit('keyup', $event);
140
- },
141
- "keydown": function ($event) {
142
- return _vm.$emit('keydown', $event);
143
- }
144
- },
145
- scopedSlots: _vm._u([_vm.$slots.prepend ? {
146
- key: "prepend",
147
- fn: function () {
148
- return [_vm._t("prepend")];
149
- },
150
- proxy: true
151
- } : null, _vm.$slots['label-default'] ? {
152
- key: "label-default",
153
- fn: function () {
154
- return [_vm._t("label-default")];
155
- },
156
- proxy: true
157
- } : null, _vm.$slots['label-append'] ? {
158
- key: "label-append",
159
- fn: function () {
160
- return [_vm._t("label-append")];
161
- },
162
- proxy: true
163
- } : null, {
164
- key: "wrapper-end",
165
- fn: function () {
166
- return [_c('or-icon-button', {
167
- attrs: {
168
- "icon": _vm.currentButtonIcon,
169
- "icon-color": "neutral-4",
170
- "size": _vm.size
171
- },
172
- on: {
173
- "click": _vm.onClick
174
- }
175
- })];
176
- },
177
- proxy: true
178
- }, _vm.$slots['input-end'] ? {
179
- key: "input-end",
180
- fn: function () {
181
- return [_vm._t("input-end")];
182
- },
183
- proxy: true
184
- } : null, _vm.$slots.append ? {
185
- key: "append",
186
- fn: function () {
187
- return [_vm._t("append")];
188
- },
189
- proxy: true
190
- } : null], null, true),
191
- model: {
192
- value: _vm.localValue,
193
- callback: function ($$v) {
194
- _vm.localValue = $$v;
195
- },
196
- expression: "localValue"
197
- }
198
- });
199
- };
200
- var __vue_staticRenderFns__ = [];
201
-
202
- /* style */
203
- const __vue_inject_styles__ = function (inject) {
204
- if (!inject) return;
205
- inject("data-v-c5297b48_0", {
206
- source: "@keyframes spinAround-data-v-c5297b48{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-c5297b48{from{opacity:1}to{opacity:0}}.or-password .or-icon-button-root[data-v-c5297b48]{position:absolute;top:50%;right:0;z-index:1;transform:translate(-.625rem,-50%)}.or-password[data-v-c5297b48] .or-textbox--input{padding-right:calc(.625rem + 1.625rem)}.or-password.is-small[data-v-c5297b48] .or-textbox--input{padding-right:calc(.625rem + 1.5rem)}",
207
- map: undefined,
208
- media: undefined
209
- });
210
- };
211
- /* scoped */
212
- const __vue_scope_id__ = "data-v-c5297b48";
213
- /* module identifier */
214
- const __vue_module_identifier__ = undefined;
215
- /* functional template */
216
- const __vue_is_functional_template__ = false;
217
- /* style inject SSR */
218
-
219
- /* style inject shadow dom */
220
-
221
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
222
- render: __vue_render__,
223
- staticRenderFns: __vue_staticRenderFns__
224
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
225
- var __vue_component__$1 = __vue_component__;
226
-
227
- export { __vue_component__$1 as _ };
@@ -1 +0,0 @@
1
- export { default as OrInput } from './OrInput.vue';
@@ -1,13 +0,0 @@
1
- export { O as OrInput } from '../../OrInput-df1a14fa.js';
2
- import '../../index-fa6eb4ca.js';
3
- import 'vue';
4
- import '@vue/composition-api/dist/vue-composition-api.mjs';
5
- import '../../px-to-rem-0b26b83e.js';
6
- import '../../dom-3a15d036.js';
7
- import 'lodash';
8
- import '../../OrLabel-74c73ba4.js';
9
- import '../../normalize-component-6e8e3d80.js';
10
- import '../../browser-82dea9ed.js';
11
- import '../../OrHint-fabea4cf.js';
12
- import '../../OrError-31503e4c.js';
13
- import '../../OrCollapse-3aa9a9b7.js';
@@ -1 +0,0 @@
1
- export { default as OrNumberInput } from './OrNumberInput.vue';
@@ -1,14 +0,0 @@
1
- export { _ as OrNumberInput } from '../../OrNumberInput-face8ccc.js';
2
- import '../../index-fa6eb4ca.js';
3
- import 'vue';
4
- import '@vue/composition-api/dist/vue-composition-api.mjs';
5
- import '../../OrInput-df1a14fa.js';
6
- import '../../px-to-rem-0b26b83e.js';
7
- import '../../dom-3a15d036.js';
8
- import 'lodash';
9
- import '../../OrLabel-74c73ba4.js';
10
- import '../../normalize-component-6e8e3d80.js';
11
- import '../../browser-82dea9ed.js';
12
- import '../../OrHint-fabea4cf.js';
13
- import '../../OrError-31503e4c.js';
14
- import '../../OrCollapse-3aa9a9b7.js';
@@ -1 +0,0 @@
1
- export { default as OrPassword } from './OrPassword.vue';
@@ -1 +0,0 @@
1
- export { default as OrSearch } from './OrSearch.vue';
@@ -1,25 +0,0 @@
1
- export { O as OrSearch } from '../../OrSearch-832d7978.js';
2
- import '../../index-fa6eb4ca.js';
3
- import 'vue';
4
- import '@vue/composition-api/dist/vue-composition-api.mjs';
5
- import '@vueuse/core';
6
- import '../../OrInput-df1a14fa.js';
7
- import '../../px-to-rem-0b26b83e.js';
8
- import '../../dom-3a15d036.js';
9
- import 'lodash';
10
- import '../../OrLabel-74c73ba4.js';
11
- import '../../normalize-component-6e8e3d80.js';
12
- import '../../browser-82dea9ed.js';
13
- import '../../OrHint-fabea4cf.js';
14
- import '../../OrError-31503e4c.js';
15
- import '../../OrCollapse-3aa9a9b7.js';
16
- import '../../OrIconButton-65962c1c.js';
17
- import '../../OrTooltip-dfea7af2.js';
18
- import '../../OrTooltipContent-f0fd5f75.js';
19
- import '../../OrFloating-554d6f58.js';
20
- import '../../floating-ui.dom.esm-83eba816.js';
21
- import '../../OrTeleportVue2-3544f185.js';
22
- import 'portal-vue/dist/portal-vue.esm.js';
23
- import '../../constants-c5d1139f.js';
24
- import '../../OrIcon-10ec459c.js';
25
- import '../../OrLoader-05057239.js';
@@ -1 +0,0 @@
1
- export { default as OrTextarea } from './OrTextarea.vue';
@@ -1,13 +0,0 @@
1
- export { _ as OrTextarea } from '../../OrTextarea-71ff236d.js';
2
- import '../../index-fa6eb4ca.js';
3
- import 'vue';
4
- import '@vue/composition-api/dist/vue-composition-api.mjs';
5
- import '../../px-to-rem-0b26b83e.js';
6
- import '../../dom-3a15d036.js';
7
- import 'lodash';
8
- import '../../OrLabel-74c73ba4.js';
9
- import '../../normalize-component-6e8e3d80.js';
10
- import '../../browser-82dea9ed.js';
11
- import '../../OrHint-fabea4cf.js';
12
- import '../../OrError-31503e4c.js';
13
- import '../../OrCollapse-3aa9a9b7.js';
@@ -1,190 +0,0 @@
1
- import { defineComponent, ref, getCurrentInstance } from 'vue';
2
- import { p as pxToRem } from './px-to-rem-0b26b83e.js';
3
- import { s as setStyle, r as requestAF, g as getCS, a as reflow, c as cancelAF } from './dom-d21d0a92.js';
4
- import './OrLabel-e412c532.js';
5
- import { s as script$1 } from './OrLabel.vue_vue_type_script_lang-27f8b12d.js';
6
- import './OrHint-c9114268.js';
7
- import { s as script$2 } from './OrHint.vue_vue_type_script_lang-78598c8e.js';
8
- import './OrError-b43ebad8.js';
9
- import { s as script$3 } from './OrError.vue_vue_type_script_lang-7c39e012.js';
10
- import './OrCollapse-63e83681.js';
11
- import { s as script$4 } from './OrCollapse.vue_vue_type_script_lang-65cbb754.js';
12
-
13
- var script = defineComponent({
14
- name: 'OrInput',
15
- components: {
16
- OrLabel: script$1,
17
- OrHint: script$2,
18
- OrError: script$3,
19
- OrCollapse: script$4
20
- },
21
- model: {
22
- prop: 'modelValue',
23
- event: 'update:modelValue'
24
- },
25
- props: {
26
- modelValue: {
27
- type: String,
28
- default: '',
29
- required: false
30
- },
31
- htmlId: {
32
- type: String,
33
- default: '',
34
- required: false
35
- },
36
- placeholder: {
37
- type: String,
38
- default: '',
39
- required: false
40
- },
41
- htmlType: {
42
- type: String,
43
- default: 'text',
44
- required: false
45
- },
46
- htmlInputAttrs: {
47
- type: Object,
48
- default: undefined,
49
- required: false
50
- },
51
- label: {
52
- type: String,
53
- default: '',
54
- required: false
55
- },
56
- error: {
57
- type: String,
58
- default: '',
59
- required: false
60
- },
61
- hint: {
62
- type: String,
63
- default: '',
64
- required: false
65
- },
66
- maxLength: {
67
- type: Number,
68
- default: undefined,
69
- required: false
70
- },
71
- isSmall: Boolean,
72
- isRequired: Boolean,
73
- isDisabled: Boolean,
74
- isReadonly: Boolean,
75
- isInvalid: Boolean
76
- },
77
- emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
78
- setup() {
79
- const inputRef = ref();
80
- return {
81
- inputRef
82
- };
83
- },
84
- data() {
85
- return {
86
- reqAF: null,
87
- isFocused: false
88
- };
89
- },
90
- computed: {
91
- localValue() {
92
- if (this.maxLength && this.modelValue.length > this.maxLength) {
93
- return this.modelValue.slice(0, -(this.modelValue.length - this.maxLength));
94
- }
95
- return this.modelValue;
96
- },
97
- localId() {
98
- var _a;
99
- return this.htmlId || `input-${(_a = getCurrentInstance()) === null || _a === void 0 ? void 0 : _a.uid}`;
100
- },
101
- hasValue() {
102
- var _a;
103
- return !!((_a = this.localValue) === null || _a === void 0 ? void 0 : _a.length);
104
- },
105
- counterString() {
106
- return this.maxLength && this.maxLength > 0 ? `${this.localValue.length} / ${this.maxLength}` : '';
107
- },
108
- isInactive() {
109
- return this.isDisabled || this.isReadonly;
110
- },
111
- isShowError() {
112
- return !!this.error && this.isInvalid;
113
- },
114
- isShowHint() {
115
- return !!this.hint && !this.isShowError;
116
- },
117
- isShowInfo() {
118
- return this.isShowError || this.isShowHint || !!this.maxLength;
119
- },
120
- rootClasses() {
121
- return ['or-textbox', {
122
- 'is-show-info': this.isShowInfo,
123
- 'is-small': this.isSmall,
124
- 'has-counter': !!this.maxLength,
125
- 'has-label': !!this.label || !!this.$slots['label-default']
126
- }];
127
- },
128
- inputClasses() {
129
- return ['or-textbox--input', {
130
- 'is-disabled': this.isDisabled,
131
- 'is-readonly': this.isReadonly,
132
- 'is-focused': this.isFocused,
133
- 'is-required': this.isRequired,
134
- 'has-error': this.isInvalid
135
- }];
136
- }
137
- },
138
- methods: {
139
- focus() {
140
- var _a;
141
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
142
- },
143
- onInput(event) {
144
- if (this.isInactive) return;
145
- this.$emit('update:modelValue', event.target.value);
146
- this.$emit('input', event.target.value);
147
- },
148
- onFocus(event) {
149
- var _a;
150
- this.isFocused = true;
151
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.focus();
152
- this.$emit('focus', event);
153
- },
154
- onBlur(event) {
155
- var _a;
156
- this.isFocused = false;
157
- (_a = this.inputRef) === null || _a === void 0 ? void 0 : _a.blur();
158
- this.$emit('blur', event);
159
- },
160
- beforeEnter(el) {
161
- setStyle(el, 'opacity', 0);
162
- },
163
- enter(el) {
164
- const {
165
- scrollHeight,
166
- parentElement
167
- } = el;
168
- this.reqAF = requestAF(() => {
169
- const pt = parseFloat(getCS(parentElement).paddingTop);
170
- const pb = parseFloat(getCS(parentElement).paddingBottom);
171
- const height = scrollHeight + pt + pb;
172
- if (parentElement) {
173
- reflow(parentElement);
174
- setStyle(parentElement, 'height', pxToRem(height));
175
- }
176
- setStyle(el, 'opacity', 1);
177
- });
178
- },
179
- leave(el) {
180
- this.reqAF = requestAF(() => {
181
- el.style.opacity = '0';
182
- });
183
- },
184
- cancelRequestAF() {
185
- cancelAF(this.reqAF);
186
- }
187
- }
188
- });
189
-
190
- export { script as s };
@@ -1,113 +0,0 @@
1
- import { defineComponent, ref } from 'vue';
2
- import './OrInput-704e72ba.js';
3
- import { s as script$1 } from './OrInput.vue_vue_type_script_lang-409235cc.js';
4
-
5
- var script = defineComponent({
6
- name: 'OrNumberInput',
7
- components: {
8
- OrInput: script$1
9
- },
10
- model: {
11
- prop: 'modelValue',
12
- event: 'update:modelValue'
13
- },
14
- props: {
15
- modelValue: {
16
- type: Number,
17
- default: undefined,
18
- required: false
19
- },
20
- htmlId: {
21
- type: String,
22
- default: '',
23
- required: false
24
- },
25
- placeholder: {
26
- type: String,
27
- default: '',
28
- required: false
29
- },
30
- label: {
31
- type: String,
32
- default: '',
33
- required: false
34
- },
35
- error: {
36
- type: String,
37
- default: '',
38
- required: false
39
- },
40
- hint: {
41
- type: String,
42
- default: '',
43
- required: false
44
- },
45
- minValue: {
46
- type: Number,
47
- default: undefined,
48
- required: false
49
- },
50
- maxValue: {
51
- type: Number,
52
- default: undefined,
53
- required: false
54
- },
55
- stepValue: {
56
- type: Number,
57
- default: undefined,
58
- required: false
59
- },
60
- isSmall: Boolean,
61
- isRequired: Boolean,
62
- isDisabled: Boolean,
63
- isReadonly: Boolean,
64
- isInvalid: Boolean
65
- },
66
- emits: ['focus', 'blur', 'update:modelValue', 'input', 'keypress', 'keyup', 'keydown'],
67
- setup(props, {
68
- emit
69
- }) {
70
- const inputRef = ref();
71
- if (props.modelValue) {
72
- if (props.minValue !== undefined && props.modelValue < props.minValue) {
73
- emit('update:modelValue', props.minValue);
74
- } else if (props.maxValue !== undefined && props.modelValue > props.maxValue) {
75
- emit('update:modelValue', props.maxValue);
76
- }
77
- }
78
- return {
79
- inputRef
80
- };
81
- },
82
- computed: {
83
- htmlInputAttrs() {
84
- return {
85
- min: this.minValue,
86
- max: this.maxValue,
87
- step: this.stepValue
88
- };
89
- },
90
- localValue: {
91
- get() {
92
- var _a;
93
- return ((_a = this.modelValue) !== null && _a !== void 0 ? _a : '') + '';
94
- },
95
- set(val) {
96
- if (val === undefined || val === '') {
97
- this.$emit('update:modelValue', undefined);
98
- return;
99
- }
100
- const numVal = +val;
101
- if (this.minValue !== undefined && numVal < this.minValue) {
102
- this.$emit('update:modelValue', this.minValue);
103
- } else if (this.maxValue !== undefined && numVal > this.maxValue) {
104
- this.$emit('update:modelValue', this.maxValue);
105
- } else {
106
- this.$emit('update:modelValue', numVal);
107
- }
108
- }
109
- }
110
- }
111
- });
112
-
113
- export { script as s };