@onereach/ui-components 2.71.2 → 2.71.3-beta.2243.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.
- package/dist/bundled/v2/{OrCardCollection-091e2193.js → OrCardCollection-c1ccde63.js} +1 -1
- package/dist/bundled/v2/{OrConfirm-bb2df177.js → OrConfirm-cc8b767f.js} +1 -1
- package/dist/bundled/v2/{OrInput-5404a234.js → OrInput-c539e47c.js} +23 -6
- package/dist/bundled/v2/{OrSearch-d1169241.js → OrSearch-d7326373.js} +1 -1
- package/dist/bundled/v2/{OrSelect-5634790b.js → OrSelect-8802f330.js} +1 -1
- package/dist/bundled/v2/components/index.js +6 -6
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v2/components/or-input-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +3 -2
- package/dist/bundled/v2/components/or-select-v3/index.js +3 -2
- package/dist/bundled/v2/index.js +5 -5
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-60403ae6.js → OrCardCollection.vue_vue_type_script_lang-f9897e01.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9231d51e.js → OrConfirm.vue_vue_type_script_lang-e9ba9909.js} +2 -2
- package/dist/bundled/v3/{OrInput-2a7c6b57.js → OrInput-41f8351a.js} +13 -4
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-509de504.js → OrInput.vue_vue_type_script_lang-b88324b6.js} +13 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ab2ef22c.js → OrSearch.vue_vue_type_script_lang-56eb4e93.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-54f683a2.js → OrSelect.vue_vue_type_script_lang-ee433d47.js} +2 -2
- package/dist/bundled/v3/components/index.js +7 -7
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/bundled/v3/components/or-input-v3/index.js +3 -1
- package/dist/bundled/v3/components/or-search-v3/index.js +5 -3
- package/dist/bundled/v3/components/or-select-v3/index.js +5 -3
- package/dist/bundled/v3/index.js +9 -9
- package/dist/esm/v2/{OrCardCollection-bbdb6159.js → OrCardCollection-ff1e9819.js} +1 -1
- package/dist/esm/v2/{OrConfirm-cfaf4266.js → OrConfirm-ec81498e.js} +1 -1
- package/dist/esm/v2/{OrInput-e8fe9102.js → OrInput-b029d058.js} +23 -6
- package/dist/esm/v2/{OrSearch-4b774707.js → OrSearch-1c934f72.js} +1 -1
- package/dist/esm/v2/{OrSelect-d7016575.js → OrSelect-cfcb233a.js} +1 -1
- package/dist/esm/v2/components/index.js +6 -6
- package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v2/components/or-input-v3/index.js +3 -2
- package/dist/esm/v2/components/or-search-v3/index.js +4 -3
- package/dist/esm/v2/components/or-select-v3/index.js +4 -3
- package/dist/esm/v2/index.js +5 -5
- package/dist/esm/v3/{OrCardCollection-47f61c40.js → OrCardCollection-5ecdcbaf.js} +1 -1
- package/dist/esm/v3/{OrConfirm-e7cbf54c.js → OrConfirm-beeb74d6.js} +1 -1
- package/dist/esm/v3/{OrInput-6fb81556.js → OrInput-8a4573cd.js} +24 -4
- package/dist/esm/v3/{OrSearch-e15955a7.js → OrSearch-10d09806.js} +1 -1
- package/dist/esm/v3/{OrSelect-027b5e8f.js → OrSelect-1e4c6062.js} +1 -1
- package/dist/esm/v3/components/index.js +6 -6
- package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +13 -0
- package/dist/esm/v3/components/or-input-v3/index.js +3 -2
- package/dist/esm/v3/components/or-search-v3/index.js +4 -3
- package/dist/esm/v3/components/or-select-v3/index.js +4 -3
- package/dist/esm/v3/index.js +5 -5
- package/package.json +2 -3
- package/src/components/or-input-v3/OrInput.stories3.ts +4 -0
- package/src/components/or-input-v3/OrInput.vue +37 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
2
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
|
+
import { u as useResponsive } from './useResponsive-a02e95b7.js';
|
|
4
5
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
5
6
|
import { s as script$1 } from './OrError-19198748.js';
|
|
6
7
|
import { s as script$2 } from './OrHint-6863124f.js';
|
|
@@ -8,7 +9,8 @@ import { s as script$4 } from './OrIconButton-e5781317.js';
|
|
|
8
9
|
import { s as script$3 } from './OrIcon-34f59f73.js';
|
|
9
10
|
import { s as script$5, a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
10
11
|
import { s as script$6 } from './OrLabel-f700f9fb.js';
|
|
11
|
-
import {
|
|
12
|
+
import { s as script$7 } from './OrLoader-a53d2edf.js';
|
|
13
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withDirectives, createElementVNode, mergeProps, vModelDynamic, Fragment, withModifiers, createSlots } from 'vue';
|
|
12
14
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
13
15
|
|
|
14
16
|
var InputType;
|
|
@@ -40,7 +42,8 @@ var script = defineComponent({
|
|
|
40
42
|
OrIcon: script$3,
|
|
41
43
|
OrIconButton: script$4,
|
|
42
44
|
OrInputBox: script$5,
|
|
43
|
-
OrLabel: script$6
|
|
45
|
+
OrLabel: script$6,
|
|
46
|
+
OrLoader: script$7
|
|
44
47
|
},
|
|
45
48
|
model: {
|
|
46
49
|
prop: 'modelValue',
|
|
@@ -75,6 +78,10 @@ var script = defineComponent({
|
|
|
75
78
|
type: String,
|
|
76
79
|
default: undefined
|
|
77
80
|
},
|
|
81
|
+
loading: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
},
|
|
78
85
|
required: {
|
|
79
86
|
type: Boolean,
|
|
80
87
|
default: false
|
|
@@ -120,6 +127,9 @@ var script = defineComponent({
|
|
|
120
127
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
121
128
|
const invalid = computed(() => !!props.error);
|
|
122
129
|
const disclosed = ref(false);
|
|
130
|
+
const {
|
|
131
|
+
isMobile
|
|
132
|
+
} = useResponsive();
|
|
123
133
|
// Methods
|
|
124
134
|
function focus() {
|
|
125
135
|
var _a;
|
|
@@ -140,6 +150,7 @@ var script = defineComponent({
|
|
|
140
150
|
maxLength,
|
|
141
151
|
invalid,
|
|
142
152
|
disclosed,
|
|
153
|
+
isMobile,
|
|
143
154
|
focus,
|
|
144
155
|
blur
|
|
145
156
|
};
|
|
@@ -152,6 +163,7 @@ const _hoisted_2 = {
|
|
|
152
163
|
};
|
|
153
164
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
154
165
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
166
|
+
const _component_OrLoader = resolveComponent("OrLoader");
|
|
155
167
|
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
156
168
|
const _component_OrIcon = resolveComponent("OrIcon");
|
|
157
169
|
const _component_OrInputBox = resolveComponent("OrInputBox");
|
|
@@ -192,7 +204,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
204
|
onKeyup: _cache[2] || (_cache[2] = $event => _ctx.$emit('keyup', $event)),
|
|
193
205
|
onFocus: _cache[3] || (_cache[3] = $event => _ctx.$emit('focus', $event)),
|
|
194
206
|
onBlur: _cache[4] || (_cache[4] = $event => _ctx.$emit('blur', $event))
|
|
195
|
-
}), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.
|
|
207
|
+
}), null, 16 /* FULL_PROPS */, _hoisted_1), [[vModelDynamic, _ctx.proxyModelValue]]), createElementVNode("div", _hoisted_2, [_ctx.loading ? (openBlock(), createBlock(_component_OrLoader, {
|
|
208
|
+
key: 0,
|
|
209
|
+
variant: 'circular',
|
|
210
|
+
color: 'primary',
|
|
211
|
+
size: _ctx.isMobile ? 'm' : 's'
|
|
212
|
+
}, null, 8 /* PROPS */, ["size"])) : (openBlock(), createElementBlock(Fragment, {
|
|
213
|
+
key: 1
|
|
214
|
+
}, [_ctx.type === 'password' ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
196
215
|
key: 0,
|
|
197
216
|
icon: {
|
|
198
217
|
icon: _ctx.disclosed ? 'visibility_off' : 'visibility',
|
|
@@ -213,7 +232,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
213
232
|
key: 1,
|
|
214
233
|
icon: 'search',
|
|
215
234
|
variant: 'outlined'
|
|
216
|
-
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)])]),
|
|
235
|
+
}))], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */))])]),
|
|
236
|
+
|
|
217
237
|
_: 1 /* STABLE */
|
|
218
238
|
}, 8 /* PROPS */, ["variant", "size", "invalid", "readonly", "disabled"]), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
219
239
|
key: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { debouncedWatch } from '@vueuse/core';
|
|
2
2
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
3
|
-
import { s as script$1 } from './OrInput-
|
|
3
|
+
import { s as script$1 } from './OrInput-8a4573cd.js';
|
|
4
4
|
import { a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
5
5
|
import { resolveComponent, openBlock, createBlock, normalizeClass } from 'vue';
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ import { s as script$3 } from './OrExpansionPanel-3a4282da.js';
|
|
|
8
8
|
import { s as script$4 } from './OrHint-6863124f.js';
|
|
9
9
|
import { s as script$5 } from './OrIcon-34f59f73.js';
|
|
10
10
|
import { s as script$7, a as InputBoxSize } from './OrInputBox-e16ade90.js';
|
|
11
|
-
import { s as script$6 } from './OrInput-
|
|
11
|
+
import { s as script$6 } from './OrInput-8a4573cd.js';
|
|
12
12
|
import { s as script$8 } from './OrLabel-f700f9fb.js';
|
|
13
13
|
import { s as script$9 } from './OrMenuItem-58707d47.js';
|
|
14
14
|
import { s as script$a } from './OrPopover-40217b49.js';
|
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-c56998e7.js';
|
|
7
7
|
export { s as OrCard } from '../OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-5ecdcbaf.js';
|
|
10
10
|
export { s as OrCardV3 } from '../OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-c11ee2ec.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-beeb74d6.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-308119de.js';
|
|
@@ -35,7 +35,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-09d
|
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
|
|
36
36
|
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-56328f22.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-e16ade90.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from '../OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from '../OrInput-8a4573cd.js';
|
|
39
39
|
export { s as OrInput } from '../OrInput-81125804.js';
|
|
40
40
|
export { s as OrLabel } from '../OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from '../OrLabel-f700f9fb.js';
|
|
@@ -63,10 +63,10 @@ export { s as OrRadio } from '../OrRadio-c3ab11f2.js';
|
|
|
63
63
|
export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from '../OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from '../OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from '../OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from '../OrSearch-10d09806.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
69
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from '../OrSelect-1e4c6062.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
71
71
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
72
72
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -117,10 +117,10 @@ import '../dom-3a15d036.js';
|
|
|
117
117
|
import '@vueuse/math';
|
|
118
118
|
import '@floating-ui/dom';
|
|
119
119
|
import '../useValidationAttributes-d1abbe34.js';
|
|
120
|
+
import '../useResponsive-a02e95b7.js';
|
|
120
121
|
import 'uuid';
|
|
121
122
|
import 'sortablejs';
|
|
122
123
|
import '../useElevation-31bfe1f6.js';
|
|
123
|
-
import '../useResponsive-a02e95b7.js';
|
|
124
124
|
import '@vueuse/integrations/useFocusTrap';
|
|
125
125
|
import '../useToggle-29e4d7c7.js';
|
|
126
126
|
import '../dropdown-open-0d314aa4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-
|
|
1
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-5ecdcbaf.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrButton-c56998e7.js';
|
|
4
4
|
import '../../OrLoader-a53d2edf.js';
|
|
@@ -16,8 +16,8 @@ import '../../OrOverlay-afad3aa4.js';
|
|
|
16
16
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
17
17
|
import '../../OrMenuItem-58707d47.js';
|
|
18
18
|
import '../../OrMenu-7f3ea117.js';
|
|
19
|
-
import '../../OrSearch-
|
|
20
|
-
import '../../OrInput-
|
|
19
|
+
import '../../OrSearch-10d09806.js';
|
|
20
|
+
import '../../OrInput-8a4573cd.js';
|
|
21
21
|
import '../../useIdAttribute-859439f0.js';
|
|
22
22
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
23
23
|
import '../../OrError-19198748.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-beeb74d6.js';
|
|
2
2
|
import '@vueuse/core';
|
|
3
3
|
import '@vueuse/math';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import '../../OrButton-c56998e7.js';
|
|
6
6
|
import '../../OrLoader-a53d2edf.js';
|
|
7
7
|
import 'vue';
|
|
8
|
-
import '../../OrInput-
|
|
8
|
+
import '../../OrInput-8a4573cd.js';
|
|
9
9
|
import '../../useIdAttribute-859439f0.js';
|
|
10
|
+
import '../../useResponsive-a02e95b7.js';
|
|
10
11
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
11
12
|
import '../../OrError-19198748.js';
|
|
12
13
|
import '../../OrHint-6863124f.js';
|
|
@@ -16,7 +17,6 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
16
17
|
import '../../OrPopover-40217b49.js';
|
|
17
18
|
import '@floating-ui/dom';
|
|
18
19
|
import '../../useElevation-31bfe1f6.js';
|
|
19
|
-
import '../../useResponsive-a02e95b7.js';
|
|
20
20
|
import '../../OrBottomSheet-13a416ef.js';
|
|
21
21
|
import '../../OrOverlay-afad3aa4.js';
|
|
22
22
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
23
23
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
24
24
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
25
25
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
26
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
26
27
|
focus: () => void;
|
|
27
28
|
blur: () => void;
|
|
28
29
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
@@ -54,6 +55,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
54
55
|
type: StringConstructor;
|
|
55
56
|
default: undefined;
|
|
56
57
|
};
|
|
58
|
+
loading: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
57
62
|
required: {
|
|
58
63
|
type: BooleanConstructor;
|
|
59
64
|
default: boolean;
|
|
@@ -99,6 +104,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
99
104
|
type: StringConstructor;
|
|
100
105
|
default: undefined;
|
|
101
106
|
};
|
|
107
|
+
loading: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
102
111
|
required: {
|
|
103
112
|
type: BooleanConstructor;
|
|
104
113
|
default: boolean;
|
|
@@ -123,6 +132,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
123
132
|
placeholder: string;
|
|
124
133
|
hint: string;
|
|
125
134
|
error: string;
|
|
135
|
+
loading: boolean;
|
|
126
136
|
required: boolean;
|
|
127
137
|
readonly: boolean;
|
|
128
138
|
disabled: boolean;
|
|
@@ -152,6 +162,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
152
162
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
153
163
|
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
154
164
|
disclosed: import("@vue/composition-api").Ref<boolean>;
|
|
165
|
+
isMobile: import("@vue/composition-api").Ref<boolean>;
|
|
155
166
|
focus: () => void;
|
|
156
167
|
blur: () => void;
|
|
157
168
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
@@ -162,6 +173,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
162
173
|
placeholder: string;
|
|
163
174
|
hint: string;
|
|
164
175
|
error: string;
|
|
176
|
+
loading: boolean;
|
|
165
177
|
required: boolean;
|
|
166
178
|
readonly: boolean;
|
|
167
179
|
disabled: boolean;
|
|
@@ -176,6 +188,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
176
188
|
placeholder: string;
|
|
177
189
|
hint: string;
|
|
178
190
|
error: string;
|
|
191
|
+
loading: boolean;
|
|
179
192
|
required: boolean;
|
|
180
193
|
readonly: boolean;
|
|
181
194
|
disabled: boolean;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from '../../OrInput-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from '../../OrInput-8a4573cd.js';
|
|
2
2
|
export { a as InputSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
|
+
import '../../useResponsive-a02e95b7.js';
|
|
6
7
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
7
8
|
import '../../OrError-19198748.js';
|
|
8
9
|
import 'vue';
|
|
@@ -13,9 +14,9 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
13
14
|
import '../../OrPopover-40217b49.js';
|
|
14
15
|
import '@floating-ui/dom';
|
|
15
16
|
import '../../useElevation-31bfe1f6.js';
|
|
16
|
-
import '../../useResponsive-a02e95b7.js';
|
|
17
17
|
import '../../OrBottomSheet-13a416ef.js';
|
|
18
18
|
import '../../OrOverlay-afad3aa4.js';
|
|
19
19
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
20
20
|
import '../../OrLabel-f700f9fb.js';
|
|
21
|
+
import '../../OrLoader-a53d2edf.js';
|
|
21
22
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { s as OrSearchV3 } from '../../OrSearch-
|
|
1
|
+
export { s as OrSearchV3 } from '../../OrSearch-10d09806.js';
|
|
2
2
|
export { a as SearchSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import 'vue-demi';
|
|
5
|
-
import '../../OrInput-
|
|
5
|
+
import '../../OrInput-8a4573cd.js';
|
|
6
6
|
import '../../useIdAttribute-859439f0.js';
|
|
7
|
+
import '../../useResponsive-a02e95b7.js';
|
|
7
8
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
8
9
|
import '../../OrError-19198748.js';
|
|
9
10
|
import 'vue';
|
|
@@ -14,9 +15,9 @@ import '../../OrTooltip-b07616f4.js';
|
|
|
14
15
|
import '../../OrPopover-40217b49.js';
|
|
15
16
|
import '@floating-ui/dom';
|
|
16
17
|
import '../../useElevation-31bfe1f6.js';
|
|
17
|
-
import '../../useResponsive-a02e95b7.js';
|
|
18
18
|
import '../../OrBottomSheet-13a416ef.js';
|
|
19
19
|
import '../../OrOverlay-afad3aa4.js';
|
|
20
20
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
21
21
|
import '../../OrLabel-f700f9fb.js';
|
|
22
|
+
import '../../OrLoader-a53d2edf.js';
|
|
22
23
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { s as OrSelectV3 } from '../../OrSelect-1e4c6062.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-e16ade90.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -13,16 +13,17 @@ import '../../OrError-19198748.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-3a4282da.js';
|
|
14
14
|
import '../../OrIcon-34f59f73.js';
|
|
15
15
|
import '../../OrHint-6863124f.js';
|
|
16
|
-
import '../../OrInput-
|
|
16
|
+
import '../../OrInput-8a4573cd.js';
|
|
17
|
+
import '../../useResponsive-a02e95b7.js';
|
|
17
18
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
18
19
|
import '../../OrIconButton-e5781317.js';
|
|
19
20
|
import '../../OrTooltip-b07616f4.js';
|
|
20
21
|
import '../../OrPopover-40217b49.js';
|
|
21
22
|
import '@floating-ui/dom';
|
|
22
23
|
import '../../useElevation-31bfe1f6.js';
|
|
23
|
-
import '../../useResponsive-a02e95b7.js';
|
|
24
24
|
import '../../OrBottomSheet-13a416ef.js';
|
|
25
25
|
import '../../OrOverlay-afad3aa4.js';
|
|
26
26
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
27
|
+
import '../../OrLoader-a53d2edf.js';
|
|
27
28
|
import '../../OrMenuItem-58707d47.js';
|
|
28
29
|
import '../../OrTag-21ba5e15.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from './OrButton-c56998e7.js';
|
|
7
7
|
export { s as OrCard } from './OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from './OrCardCollection-1e44c758.js';
|
|
9
|
-
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-
|
|
9
|
+
export { D as DefaultCardCollectionViews, s as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from './OrCardCollection-5ecdcbaf.js';
|
|
10
10
|
export { s as OrCardV3 } from './OrCard-cd6af82e.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from './OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from './OrCheckbox-ed4a19cf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from './OrCode-5ed69c23.js';
|
|
|
16
16
|
export { s as OrCollapse } from './OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from './OrConfirm-c11ee2ec.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirm-beeb74d6.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from './OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from './OrErrorTag-308119de.js';
|
|
@@ -35,7 +35,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from './OrInlineInput-09de
|
|
|
35
35
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from './OrInlineTextEdit-1aa477b5.js';
|
|
36
36
|
export { s as OrInlineTextareaV3 } from './OrInlineTextarea-56328f22.js';
|
|
37
37
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-e16ade90.js';
|
|
38
|
-
export { I as InputType, s as OrInputV3 } from './OrInput-
|
|
38
|
+
export { I as InputType, s as OrInputV3 } from './OrInput-8a4573cd.js';
|
|
39
39
|
export { s as OrInput } from './OrInput-81125804.js';
|
|
40
40
|
export { s as OrLabel } from './OrLabel-876f8729.js';
|
|
41
41
|
export { L as LabelVariant, s as OrLabelV3 } from './OrLabel-f700f9fb.js';
|
|
@@ -63,10 +63,10 @@ export { s as OrRadio } from './OrRadio-c3ab11f2.js';
|
|
|
63
63
|
export { s as OrRadioGroup } from './OrRadioGroup-00785e41.js';
|
|
64
64
|
export { s as OrRadioV3 } from './OrRadio-bb9b37c1.js';
|
|
65
65
|
export { s as OrSearch } from './OrSearch-11fdf667.js';
|
|
66
|
-
export { s as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { s as OrSearchV3 } from './OrSearch-10d09806.js';
|
|
67
67
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-880b4911.js';
|
|
68
68
|
export { s as OrSelect } from './OrSelect-0821b907.js';
|
|
69
|
-
export { s as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { s as OrSelectV3 } from './OrSelect-1e4c6062.js';
|
|
70
70
|
export { s as OrSidebar, O as OrSidebarSide } from './OrSidebar-375c85a3.js';
|
|
71
71
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from './OrSidebar-a62972f5.js';
|
|
72
72
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-2b1610ce.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "2.71.
|
|
3
|
+
"version": "2.71.3-beta.2243.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -124,6 +124,5 @@
|
|
|
124
124
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
125
125
|
},
|
|
126
126
|
"./package.json": "./package.json"
|
|
127
|
-
}
|
|
128
|
-
"gitHead": "22b0512764d7b8174109011baa78afcb7dd9f85b"
|
|
127
|
+
}
|
|
129
128
|
}
|
|
@@ -42,30 +42,40 @@
|
|
|
42
42
|
>
|
|
43
43
|
|
|
44
44
|
<div :class="['layout-row']">
|
|
45
|
-
<template v-if="
|
|
46
|
-
<
|
|
47
|
-
:
|
|
48
|
-
:color="'
|
|
49
|
-
:
|
|
50
|
-
@click.stop="disclosed = !disclosed"
|
|
45
|
+
<template v-if="loading">
|
|
46
|
+
<OrLoader
|
|
47
|
+
:variant="'circular'"
|
|
48
|
+
:color="'primary'"
|
|
49
|
+
:size="isMobile ? 'm' : 's'"
|
|
51
50
|
/>
|
|
52
51
|
</template>
|
|
53
52
|
|
|
54
|
-
<template v-
|
|
55
|
-
<template v-if="
|
|
53
|
+
<template v-else>
|
|
54
|
+
<template v-if="type === 'password'">
|
|
56
55
|
<OrIconButton
|
|
57
|
-
:icon="'
|
|
56
|
+
:icon="{ icon: disclosed ? 'visibility_off' : 'visibility', variant: 'filled' }"
|
|
58
57
|
:color="'inherit'"
|
|
59
|
-
:disabled="
|
|
60
|
-
@click.stop="
|
|
58
|
+
:disabled="disabled"
|
|
59
|
+
@click.stop="disclosed = !disclosed"
|
|
61
60
|
/>
|
|
62
61
|
</template>
|
|
63
62
|
|
|
64
|
-
<template v-
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
<template v-if="type === 'search'">
|
|
64
|
+
<template v-if="modelValue">
|
|
65
|
+
<OrIconButton
|
|
66
|
+
:icon="'close'"
|
|
67
|
+
:color="'inherit'"
|
|
68
|
+
:disabled="readonly || disabled"
|
|
69
|
+
@click.stop="$emit('update:modelValue', '')"
|
|
70
|
+
/>
|
|
71
|
+
</template>
|
|
72
|
+
|
|
73
|
+
<template v-else>
|
|
74
|
+
<OrIcon
|
|
75
|
+
:icon="'search'"
|
|
76
|
+
:variant="'outlined'"
|
|
77
|
+
/>
|
|
78
|
+
</template>
|
|
69
79
|
</template>
|
|
70
80
|
</template>
|
|
71
81
|
</div>
|
|
@@ -103,13 +113,14 @@
|
|
|
103
113
|
|
|
104
114
|
<script lang="ts">
|
|
105
115
|
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
106
|
-
import { useControlAttributes, useIdAttribute, useValidationAttributes } from '../../hooks';
|
|
116
|
+
import { useControlAttributes, useIdAttribute, useResponsive, useValidationAttributes } from '../../hooks';
|
|
107
117
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
108
118
|
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
109
119
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
110
120
|
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
111
121
|
import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3';
|
|
112
122
|
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
123
|
+
import { OrLoaderV3 as OrLoader } from '../or-loader-v3';
|
|
113
124
|
import { InputSize, InputType } from './props';
|
|
114
125
|
import { InputControl, InputRoot } from './styles';
|
|
115
126
|
|
|
@@ -123,6 +134,7 @@ export default defineComponent({
|
|
|
123
134
|
OrIconButton,
|
|
124
135
|
OrInputBox,
|
|
125
136
|
OrLabel,
|
|
137
|
+
OrLoader,
|
|
126
138
|
},
|
|
127
139
|
|
|
128
140
|
model: {
|
|
@@ -166,6 +178,11 @@ export default defineComponent({
|
|
|
166
178
|
default: undefined,
|
|
167
179
|
},
|
|
168
180
|
|
|
181
|
+
loading: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false,
|
|
184
|
+
},
|
|
185
|
+
|
|
169
186
|
required: {
|
|
170
187
|
type: Boolean,
|
|
171
188
|
default: false,
|
|
@@ -240,6 +257,8 @@ export default defineComponent({
|
|
|
240
257
|
|
|
241
258
|
const disclosed = ref(false);
|
|
242
259
|
|
|
260
|
+
const { isMobile } = useResponsive();
|
|
261
|
+
|
|
243
262
|
// Methods
|
|
244
263
|
function focus(): void {
|
|
245
264
|
control.value?.focus();
|
|
@@ -260,6 +279,7 @@ export default defineComponent({
|
|
|
260
279
|
maxLength,
|
|
261
280
|
invalid,
|
|
262
281
|
disclosed,
|
|
282
|
+
isMobile,
|
|
263
283
|
focus,
|
|
264
284
|
blur,
|
|
265
285
|
};
|