@onereach/ui-components 8.21.2-beta.4036.0 → 8.21.2-beta.4037.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/components/OrSelectV3/OrSelect.js +37 -27
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +5 -4
- package/dist/bundled/v2/components/OrTabsV3/styles.js +2 -4
- package/dist/bundled/v2/components/OrTagV3/OrTag.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTeleport/OrTeleport.vue2.vue.d.ts +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrSelectV3-71af01b4.js → OrSelectV3-8a82b579.js} +39 -29
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/props.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTabsV3-e47f4503.js → OrTabsV3-2bf15721.js} +12 -12
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.js +2 -2
- package/dist/esm/v2/{OrSelect-cc2bd414.js → OrSelect-f0c34009.js} +9 -7
- package/dist/esm/v2/{OrSelectControlInput-28c226f8.js → OrSelectControlInput-d968f1b8.js} +2 -2
- package/dist/esm/v2/{OrSelectMultipleControl-51a15177.js → OrSelectMultipleControl-f0edf6cd.js} +20 -16
- package/dist/esm/v2/{OrSelectSingleControl-8ca0d898.js → OrSelectSingleControl-110a4f54.js} +13 -9
- package/dist/esm/v2/{OrTabs-41446c2f.js → OrTabs-a85cf2e5.js} +7 -8
- package/dist/esm/v2/components/index.js +5 -5
- package/dist/esm/v2/components/or-select-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/partials/or-select-control-input/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +43 -32
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +25 -14
- package/dist/esm/v2/components/or-select-v3/partials/or-select-single-control/index.js +6 -6
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/index.js +5 -5
- package/dist/esm/v3/{OrSelect-60246983.js → OrSelect-71224779.js} +11 -9
- package/dist/esm/v3/{OrSelectControlInput-3297e30d.js → OrSelectControlInput-266e9375.js} +2 -2
- package/dist/esm/v3/{OrSelectMultipleControl-9ca93f4d.js → OrSelectMultipleControl-fbc591b1.js} +20 -16
- package/dist/esm/v3/{OrSelectSingleControl-5e78d499.js → OrSelectSingleControl-f7cfe1b9.js} +13 -9
- package/dist/esm/v3/{OrTabs-c7b3c85d.js → OrTabs-7972a45c.js} +12 -12
- package/dist/esm/v3/components/index.js +5 -5
- package/dist/esm/v3/components/or-select-v3/index.js +4 -4
- package/dist/esm/v3/components/or-select-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/partials/or-select-control-input/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue.d.ts +38 -29
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue.d.ts +19 -10
- package/dist/esm/v3/components/or-select-v3/partials/or-select-single-control/index.js +6 -6
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/index.js +5 -5
- package/package.json +1 -1
- package/src/components/or-select-v3/OrSelect.vue +6 -4
- package/src/components/or-select-v3/partials/or-select-control-input/OrSelectControlInput.vue +19 -4
- package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue +42 -16
- package/src/components/or-select-v3/partials/or-select-single-control/OrSelectSingleControl.vue +32 -13
- package/src/components/or-tabs-v3/OrTabs.vue +5 -1
- package/src/components/or-tabs-v3/styles.ts +0 -5
|
@@ -55,7 +55,7 @@ var script$4 = defineComponent({
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
emits: ['update:modelValue'],
|
|
58
|
-
expose: ['
|
|
58
|
+
expose: ['root', 'focus', 'focused'],
|
|
59
59
|
setup(props, context) {
|
|
60
60
|
// Refs
|
|
61
61
|
const root = ref();
|
|
@@ -243,6 +243,10 @@ var script$2 = defineComponent({
|
|
|
243
243
|
event: 'update:modelValue'
|
|
244
244
|
},
|
|
245
245
|
props: {
|
|
246
|
+
modelValue: {
|
|
247
|
+
type: String,
|
|
248
|
+
default: ''
|
|
249
|
+
},
|
|
246
250
|
model: {
|
|
247
251
|
type: [Object, String, Number, Array],
|
|
248
252
|
default: () => []
|
|
@@ -251,33 +255,33 @@ var script$2 = defineComponent({
|
|
|
251
255
|
type: Array,
|
|
252
256
|
default: () => []
|
|
253
257
|
},
|
|
254
|
-
|
|
255
|
-
type:
|
|
256
|
-
default:
|
|
258
|
+
overflow: {
|
|
259
|
+
type: String,
|
|
260
|
+
default: () => TagsOverflow.Hidden
|
|
261
|
+
},
|
|
262
|
+
placeholder: {
|
|
263
|
+
type: String,
|
|
264
|
+
default: ''
|
|
257
265
|
},
|
|
258
266
|
readonly: {
|
|
259
267
|
type: Boolean,
|
|
260
268
|
default: false
|
|
261
269
|
},
|
|
262
|
-
|
|
263
|
-
type:
|
|
264
|
-
default:
|
|
270
|
+
disabled: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
default: false
|
|
265
273
|
},
|
|
266
274
|
enableSearch: {
|
|
267
275
|
type: Boolean,
|
|
268
276
|
default: false
|
|
269
277
|
},
|
|
270
|
-
|
|
271
|
-
type:
|
|
272
|
-
default:
|
|
273
|
-
},
|
|
274
|
-
modelValue: {
|
|
275
|
-
type: String,
|
|
276
|
-
default: ''
|
|
278
|
+
isOpen: {
|
|
279
|
+
type: Boolean,
|
|
280
|
+
default: false
|
|
277
281
|
}
|
|
278
282
|
},
|
|
279
|
-
emits: ['
|
|
280
|
-
expose: ['
|
|
283
|
+
emits: ['update:modelValue', 'reset'],
|
|
284
|
+
expose: ['root', 'focus', 'focused'],
|
|
281
285
|
setup(props, context) {
|
|
282
286
|
// Refs
|
|
283
287
|
const root = ref();
|
|
@@ -446,19 +450,23 @@ var script$1 = defineComponent({
|
|
|
446
450
|
type: [Object, String, Number, Array],
|
|
447
451
|
default: undefined
|
|
448
452
|
},
|
|
453
|
+
options: {
|
|
454
|
+
type: Array,
|
|
455
|
+
default: () => []
|
|
456
|
+
},
|
|
449
457
|
placeholder: {
|
|
450
458
|
type: String,
|
|
451
459
|
default: ''
|
|
452
460
|
},
|
|
453
|
-
|
|
454
|
-
type:
|
|
455
|
-
default:
|
|
461
|
+
disabled: {
|
|
462
|
+
type: Boolean,
|
|
463
|
+
default: false
|
|
456
464
|
},
|
|
457
465
|
enableSearch: {
|
|
458
466
|
type: Boolean,
|
|
459
467
|
default: false
|
|
460
468
|
},
|
|
461
|
-
|
|
469
|
+
isOpen: {
|
|
462
470
|
type: Boolean,
|
|
463
471
|
default: false
|
|
464
472
|
}
|
|
@@ -524,12 +532,12 @@ var __vue_render__$1 = function () {
|
|
|
524
532
|
return _c('div', {
|
|
525
533
|
ref: "root",
|
|
526
534
|
class: _vm.rootStyles
|
|
527
|
-
}, [!_vm.isEmpty ? [_c('span', {
|
|
535
|
+
}, [!_vm.isEmpty && !_vm.isOpen ? [_c('span', {
|
|
528
536
|
staticClass: "truncate"
|
|
529
537
|
}, [_vm._v("\n " + _vm._s(_vm.selectionLabel) + "\n ")])] : [_vm.enableSearch ? _c('OrSelectControlInput', {
|
|
530
538
|
ref: "searchControl",
|
|
531
539
|
attrs: {
|
|
532
|
-
"placeholder": _vm.placeholder
|
|
540
|
+
"placeholder": _vm.isEmpty ? _vm.placeholder : _vm.selectionLabel
|
|
533
541
|
},
|
|
534
542
|
model: {
|
|
535
543
|
value: _vm.searchModelValue,
|
|
@@ -932,13 +940,14 @@ var __vue_render__ = function () {
|
|
|
932
940
|
return [_vm.multiple ? [_c('OrSelectMultipleControl', {
|
|
933
941
|
ref: "multipleControl",
|
|
934
942
|
attrs: {
|
|
935
|
-
"options": _vm.options,
|
|
936
943
|
"model": _vm.proxyModelValue,
|
|
944
|
+
"options": _vm.options,
|
|
945
|
+
"overflow": _vm.overflow,
|
|
937
946
|
"placeholder": _vm.placeholder,
|
|
938
|
-
"disabled": _vm.disabled,
|
|
939
947
|
"readonly": _vm.readonly,
|
|
948
|
+
"disabled": _vm.disabled,
|
|
940
949
|
"enable-search": _vm.enableSearch,
|
|
941
|
-
"
|
|
950
|
+
"is-open": _vm.popoverState === 'open'
|
|
942
951
|
},
|
|
943
952
|
on: {
|
|
944
953
|
"reset": _vm.deselect
|
|
@@ -954,10 +963,11 @@ var __vue_render__ = function () {
|
|
|
954
963
|
ref: "singleControl",
|
|
955
964
|
attrs: {
|
|
956
965
|
"model": _vm.proxyModelValue,
|
|
957
|
-
"disabled": _vm.disabled,
|
|
958
966
|
"options": _vm.options,
|
|
959
967
|
"placeholder": _vm.placeholder,
|
|
960
|
-
"
|
|
968
|
+
"disabled": _vm.disabled,
|
|
969
|
+
"enable-search": _vm.enableSearch,
|
|
970
|
+
"is-open": _vm.popoverState === 'open'
|
|
961
971
|
},
|
|
962
972
|
model: {
|
|
963
973
|
value: _vm.searchText,
|
|
@@ -10,12 +10,14 @@ import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
|
|
|
10
10
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
11
11
|
|
|
12
12
|
var script = defineComponent({
|
|
13
|
+
name: 'OrTabs',
|
|
13
14
|
components: {
|
|
14
15
|
OrIcon: __vue_component__$1,
|
|
15
16
|
OrMenu: __vue_component__$2,
|
|
16
17
|
OrMenuItem: __vue_component__$3,
|
|
17
18
|
OrTab: __vue_component__$4
|
|
18
19
|
},
|
|
20
|
+
inheritAttrs: false,
|
|
19
21
|
model: {
|
|
20
22
|
prop: 'modelValue',
|
|
21
23
|
event: 'update:modelValue'
|
|
@@ -150,10 +152,10 @@ var __vue_render__ = function () {
|
|
|
150
152
|
var _c = _vm._self._c || _h;
|
|
151
153
|
return _c('div', {
|
|
152
154
|
class: _vm.containerStyles
|
|
153
|
-
}, [_c('div', {
|
|
155
|
+
}, [_c('div', _vm._b({
|
|
154
156
|
ref: "root",
|
|
155
157
|
class: _vm.rootStyles
|
|
156
|
-
}, [_vm._l(_vm.tabs.normal, function (tab) {
|
|
158
|
+
}, 'div', _vm.$attrs, false), [_vm._l(_vm.tabs.normal, function (tab) {
|
|
157
159
|
return _c('OrTab', {
|
|
158
160
|
key: tab.value,
|
|
159
161
|
attrs: {
|
|
@@ -215,8 +217,7 @@ var __vue_render__ = function () {
|
|
|
215
217
|
value: String(_vm.proxyModelValue) === String(tab.value),
|
|
216
218
|
expression: "String(proxyModelValue) === String(tab.value)"
|
|
217
219
|
}],
|
|
218
|
-
key: tab.value
|
|
219
|
-
staticClass: "contents"
|
|
220
|
+
key: tab.value
|
|
220
221
|
}, [_vm._t(String(tab.value))], 2) : _vm._e()];
|
|
221
222
|
})], 2)]);
|
|
222
223
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const TabsContainer = [
|
|
2
2
|
// Layout
|
|
3
|
-
'layout-column',
|
|
3
|
+
'layout-column',
|
|
4
4
|
// Box
|
|
5
5
|
'h-full',
|
|
6
6
|
// Spacing
|
|
@@ -24,9 +24,7 @@ const TabsVariants = {
|
|
|
24
24
|
};
|
|
25
25
|
const TabsContent = [
|
|
26
26
|
// Layout
|
|
27
|
-
'
|
|
28
|
-
// Box
|
|
29
|
-
'h-full',
|
|
27
|
+
'grow',
|
|
30
28
|
// Overflow
|
|
31
29
|
'overflow-auto'];
|
|
32
30
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { TagColor, TagVariant } from './props';
|
|
3
|
-
declare const _default: import("
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
6
|
custom: import("@vue/composition-api").ComputedRef<boolean>;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
|
-
}>> & Omit<import("
|
|
33
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
34
34
|
variant: "tag" | "button" | "reset";
|
|
35
35
|
color: string;
|
|
36
36
|
disabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { TagsOverflow } from './props';
|
|
3
3
|
import { Tag } from './types';
|
|
4
|
-
declare const _default: import("
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
6
|
container: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
7
|
localOverflow: import("@vue/composition-api").ComputedRef<TagsOverflow.Hidden | "wrap" | "hidden" | "scroll">;
|
|
@@ -64,7 +64,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
64
64
|
type: BooleanConstructor;
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
|
-
}>> & Omit<import("
|
|
67
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
68
68
|
items: Tag[];
|
|
69
69
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
70
70
|
tagProps: Readonly<Partial<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {}, {
|
|
2
2
|
to: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: boolean;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
20
20
|
required: boolean;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
|
-
}>> & Omit<import("
|
|
23
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
24
24
|
to: string;
|
|
25
25
|
isDisabled: boolean;
|
|
26
26
|
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrSelectV3-
|
|
1
|
+
export { s as default } from '../OrSelectV3-8a82b579.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { s as OrSelectV3 } from '../OrSelectV3-
|
|
1
|
+
export { s as OrSelectV3 } from '../OrSelectV3-8a82b579.js';
|
|
2
2
|
export { I as SelectSize } from '../OrInputBoxV3-ddd117f0.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { S as Select, a as SelectControl, c as SelectDropdown, d as SelectDropdownDefault, e as SelectDropdownFlipped, f as SelectDropdownItem, g as SelectNoSearchResults, b as SelectSearchControl } from '../OrSelectV3-
|
|
1
|
+
export { S as Select, a as SelectControl, c as SelectDropdown, d as SelectDropdownDefault, e as SelectDropdownFlipped, f as SelectDropdownItem, g as SelectNoSearchResults, b as SelectSearchControl } from '../OrSelectV3-8a82b579.js';
|
|
@@ -52,7 +52,7 @@ var script$4 = defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
emits: ['update:modelValue'],
|
|
55
|
-
expose: ['
|
|
55
|
+
expose: ['root', 'focus', 'focused'],
|
|
56
56
|
setup(props, context) {
|
|
57
57
|
// Refs
|
|
58
58
|
const root = ref();
|
|
@@ -172,6 +172,10 @@ var script$2 = defineComponent({
|
|
|
172
172
|
event: 'update:modelValue'
|
|
173
173
|
},
|
|
174
174
|
props: {
|
|
175
|
+
modelValue: {
|
|
176
|
+
type: String,
|
|
177
|
+
default: ''
|
|
178
|
+
},
|
|
175
179
|
model: {
|
|
176
180
|
type: [Object, String, Number, Array],
|
|
177
181
|
default: () => []
|
|
@@ -180,33 +184,33 @@ var script$2 = defineComponent({
|
|
|
180
184
|
type: Array,
|
|
181
185
|
default: () => []
|
|
182
186
|
},
|
|
183
|
-
|
|
184
|
-
type:
|
|
185
|
-
default:
|
|
187
|
+
overflow: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: () => TagsOverflow.Hidden
|
|
190
|
+
},
|
|
191
|
+
placeholder: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: ''
|
|
186
194
|
},
|
|
187
195
|
readonly: {
|
|
188
196
|
type: Boolean,
|
|
189
197
|
default: false
|
|
190
198
|
},
|
|
191
|
-
|
|
192
|
-
type:
|
|
193
|
-
default:
|
|
199
|
+
disabled: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: false
|
|
194
202
|
},
|
|
195
203
|
enableSearch: {
|
|
196
204
|
type: Boolean,
|
|
197
205
|
default: false
|
|
198
206
|
},
|
|
199
|
-
|
|
200
|
-
type:
|
|
201
|
-
default:
|
|
202
|
-
},
|
|
203
|
-
modelValue: {
|
|
204
|
-
type: String,
|
|
205
|
-
default: ''
|
|
207
|
+
isOpen: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: false
|
|
206
210
|
}
|
|
207
211
|
},
|
|
208
|
-
emits: ['
|
|
209
|
-
expose: ['
|
|
212
|
+
emits: ['update:modelValue', 'reset'],
|
|
213
|
+
expose: ['root', 'focus', 'focused'],
|
|
210
214
|
setup(props, context) {
|
|
211
215
|
// Refs
|
|
212
216
|
const root = ref();
|
|
@@ -337,19 +341,23 @@ var script$1 = defineComponent({
|
|
|
337
341
|
type: [Object, String, Number, Array],
|
|
338
342
|
default: undefined
|
|
339
343
|
},
|
|
344
|
+
options: {
|
|
345
|
+
type: Array,
|
|
346
|
+
default: () => []
|
|
347
|
+
},
|
|
340
348
|
placeholder: {
|
|
341
349
|
type: String,
|
|
342
350
|
default: ''
|
|
343
351
|
},
|
|
344
|
-
|
|
345
|
-
type:
|
|
346
|
-
default:
|
|
352
|
+
disabled: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
default: false
|
|
347
355
|
},
|
|
348
356
|
enableSearch: {
|
|
349
357
|
type: Boolean,
|
|
350
358
|
default: false
|
|
351
359
|
},
|
|
352
|
-
|
|
360
|
+
isOpen: {
|
|
353
361
|
type: Boolean,
|
|
354
362
|
default: false
|
|
355
363
|
}
|
|
@@ -414,14 +422,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
414
422
|
return openBlock(), createElementBlock("div", {
|
|
415
423
|
ref: "root",
|
|
416
424
|
class: normalizeClass(_ctx.rootStyles)
|
|
417
|
-
}, [!_ctx.isEmpty ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.selectionLabel), 1 /* TEXT */)) : (openBlock(), createElementBlock(Fragment, {
|
|
425
|
+
}, [!_ctx.isEmpty && !_ctx.isOpen ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(_ctx.selectionLabel), 1 /* TEXT */)) : (openBlock(), createElementBlock(Fragment, {
|
|
418
426
|
key: 1
|
|
419
427
|
}, [_ctx.enableSearch ? (openBlock(), createBlock(_component_OrSelectControlInput, {
|
|
420
428
|
key: 0,
|
|
421
429
|
ref: "searchControl",
|
|
422
430
|
modelValue: _ctx.searchModelValue,
|
|
423
431
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.searchModelValue = $event),
|
|
424
|
-
placeholder: _ctx.placeholder
|
|
432
|
+
placeholder: _ctx.isEmpty ? _ctx.placeholder : _ctx.selectionLabel
|
|
425
433
|
}, null, 8 /* PROPS */, ["modelValue", "placeholder"])) : (openBlock(), createBlock(_component_OrSelectPlaceholder, {
|
|
426
434
|
key: 1,
|
|
427
435
|
disabled: _ctx.disabled
|
|
@@ -853,25 +861,27 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
853
861
|
ref: "multipleControl",
|
|
854
862
|
modelValue: _ctx.searchText,
|
|
855
863
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.searchText = $event),
|
|
856
|
-
options: _ctx.options,
|
|
857
864
|
model: _ctx.proxyModelValue,
|
|
865
|
+
options: _ctx.options,
|
|
866
|
+
overflow: _ctx.overflow,
|
|
858
867
|
placeholder: _ctx.placeholder,
|
|
859
|
-
disabled: _ctx.disabled,
|
|
860
868
|
readonly: _ctx.readonly,
|
|
869
|
+
disabled: _ctx.disabled,
|
|
861
870
|
"enable-search": _ctx.enableSearch,
|
|
862
|
-
|
|
871
|
+
"is-open": _ctx.popoverState === 'open',
|
|
863
872
|
onReset: _ctx.deselect
|
|
864
|
-
}, null, 8 /* PROPS */, ["modelValue", "options", "
|
|
873
|
+
}, null, 8 /* PROPS */, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open", "onReset"])) : (openBlock(), createBlock(_component_OrSelectSingleControl, {
|
|
865
874
|
key: 1,
|
|
866
875
|
ref: "singleControl",
|
|
867
876
|
modelValue: _ctx.searchText,
|
|
868
877
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.searchText = $event),
|
|
869
878
|
model: _ctx.proxyModelValue,
|
|
870
|
-
disabled: _ctx.disabled,
|
|
871
879
|
options: _ctx.options,
|
|
872
880
|
placeholder: _ctx.placeholder,
|
|
873
|
-
|
|
874
|
-
|
|
881
|
+
disabled: _ctx.disabled,
|
|
882
|
+
"enable-search": _ctx.enableSearch,
|
|
883
|
+
"is-open": _ctx.popoverState === 'open'
|
|
884
|
+
}, null, 8 /* PROPS */, ["modelValue", "model", "options", "placeholder", "disabled", "enable-search", "is-open"]))])], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), createElementVNode("div", _hoisted_2, [_ctx.showClear ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
875
885
|
key: 0,
|
|
876
886
|
icon: 'close',
|
|
877
887
|
color: 'inherit',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTabsV3-
|
|
1
|
+
export { s as default } from '../OrTabsV3-2bf15721.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as OrTabsV3, T as TabsVariant } from '../OrTabsV3-
|
|
1
|
+
export { s as OrTabsV3, T as TabsVariant } from '../OrTabsV3-2bf15721.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TabsVariant } from '../OrTabsV3-
|
|
1
|
+
export { T as TabsVariant } from '../OrTabsV3-2bf15721.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as Tabs, a as TabsContainer, d as TabsContent, c as TabsVariants } from '../OrTabsV3-
|
|
1
|
+
export { b as Tabs, a as TabsContainer, d as TabsContent, c as TabsVariants } from '../OrTabsV3-2bf15721.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, withModifiers, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode, withDirectives, vShow } from 'vue';
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, Fragment, renderList, createBlock, withModifiers, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode, withDirectives, vShow } from 'vue';
|
|
2
2
|
import { k as useResizeObserver } from './OrBottomSheetV3-66815f6f.js';
|
|
3
3
|
import { defineComponent, ref, computed, reactive, toRef, watch, nextTick, onMounted } from 'vue-demi';
|
|
4
4
|
import { s as script$1 } from './OrIconV3-5db4e349.js';
|
|
@@ -15,7 +15,7 @@ var TabsVariant;
|
|
|
15
15
|
|
|
16
16
|
const TabsContainer = [
|
|
17
17
|
// Layout
|
|
18
|
-
'layout-column',
|
|
18
|
+
'layout-column',
|
|
19
19
|
// Box
|
|
20
20
|
'h-full',
|
|
21
21
|
// Spacing
|
|
@@ -39,19 +39,19 @@ const TabsVariants = {
|
|
|
39
39
|
};
|
|
40
40
|
const TabsContent = [
|
|
41
41
|
// Layout
|
|
42
|
-
'
|
|
43
|
-
// Box
|
|
44
|
-
'h-full',
|
|
42
|
+
'grow',
|
|
45
43
|
// Overflow
|
|
46
44
|
'overflow-auto'];
|
|
47
45
|
|
|
48
46
|
var script = defineComponent({
|
|
47
|
+
name: 'OrTabs',
|
|
49
48
|
components: {
|
|
50
49
|
OrIcon: script$1,
|
|
51
50
|
OrMenu: script$2,
|
|
52
51
|
OrMenuItem: script$3,
|
|
53
52
|
OrTab: script$4
|
|
54
53
|
},
|
|
54
|
+
inheritAttrs: false,
|
|
55
55
|
model: {
|
|
56
56
|
prop: 'modelValue',
|
|
57
57
|
event: 'update:modelValue'
|
|
@@ -183,10 +183,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
183
183
|
const _component_OrMenu = resolveComponent("OrMenu");
|
|
184
184
|
return openBlock(), createElementBlock("div", {
|
|
185
185
|
class: normalizeClass(_ctx.containerStyles)
|
|
186
|
-
}, [createElementVNode("div", {
|
|
187
|
-
ref: "root"
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
}, [createElementVNode("div", mergeProps({
|
|
187
|
+
ref: "root"
|
|
188
|
+
}, _ctx.$attrs, {
|
|
189
|
+
class: _ctx.rootStyles
|
|
190
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs.normal, tab => {
|
|
190
191
|
return openBlock(), createBlock(_component_OrTab, {
|
|
191
192
|
key: tab.value,
|
|
192
193
|
selected: tab.value === _ctx.proxyModelValue,
|
|
@@ -232,12 +233,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
233
|
}), 128 /* KEYED_FRAGMENT */))]),
|
|
233
234
|
|
|
234
235
|
_: 1 /* STABLE */
|
|
235
|
-
}, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)],
|
|
236
|
+
}, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */), createElementVNode("div", {
|
|
236
237
|
class: normalizeClass(_ctx.contentStyles)
|
|
237
238
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, tab => {
|
|
238
239
|
return openBlock(), createElementBlock(Fragment, null, [_ctx.isTabRendered(tab.value) ? withDirectives((openBlock(), createElementBlock("div", {
|
|
239
|
-
key: tab.value
|
|
240
|
-
class: "contents"
|
|
240
|
+
key: tab.value
|
|
241
241
|
}, [renderSlot(_ctx.$slots, String(tab.value))])), [[vShow, String(_ctx.proxyModelValue) === String(tab.value)]]) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */);
|
|
242
242
|
}), 256 /* UNKEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
|
|
243
243
|
}
|
|
@@ -86,7 +86,7 @@ export { default as OrSearch } from './OrSearch/OrSearch.js';
|
|
|
86
86
|
export { OrSearchV3 } from './OrSearchV3/index.js';
|
|
87
87
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControlV3-56862f95.js';
|
|
88
88
|
export { s as OrSelect } from './OrSelect-ab9e3084.js';
|
|
89
|
-
export { s as OrSelectV3 } from './OrSelectV3-
|
|
89
|
+
export { s as OrSelectV3 } from './OrSelectV3-8a82b579.js';
|
|
90
90
|
export { OrSidebar, OrSidebarSide } from './OrSidebar/index.js';
|
|
91
91
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './OrSidebarV3-d089ce77.js';
|
|
92
92
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeleton-6b7c940e.js';
|
|
@@ -101,7 +101,7 @@ export { default as OrTab } from './OrTab/OrTab.js';
|
|
|
101
101
|
export { default as OrTabHeaderItem } from './OrTabHeaderItem/OrTabHeaderItem.js';
|
|
102
102
|
export { s as OrTabV3 } from './OrTabV3-9dbd8ad9.js';
|
|
103
103
|
export { default as OrTabs } from './OrTabs/OrTabs.js';
|
|
104
|
-
export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-
|
|
104
|
+
export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-2bf15721.js';
|
|
105
105
|
export { default as OrTag } from './OrTag/OrTag.js';
|
|
106
106
|
export { s as OrTagInputV3 } from './OrTagInputV3-31f442b0.js';
|
|
107
107
|
export { s as OrTagV3, T as TagColor, a as TagVariant } from './OrTagV3-923c4802.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -46,7 +46,7 @@ export { s as OrRatingV3 } from './components/OrRatingV3-b6b47938.js';
|
|
|
46
46
|
export { F as Formats, s as OrRichTextEditorV3 } from './components/OrRichTextEditorV3-8f5b6fef.js';
|
|
47
47
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from './components/OrSegmentedControlV3-56862f95.js';
|
|
48
48
|
export { s as OrSelect } from './components/OrSelect-ab9e3084.js';
|
|
49
|
-
export { s as OrSelectV3 } from './components/OrSelectV3-
|
|
49
|
+
export { s as OrSelectV3 } from './components/OrSelectV3-8a82b579.js';
|
|
50
50
|
export { OrSidebar, OrSidebarSide } from './components/OrSidebar/index.js';
|
|
51
51
|
export { S as OrSidebarPlacement, s as OrSidebarV3, S as SidebarPlacement } from './components/OrSidebarV3-d089ce77.js';
|
|
52
52
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './components/OrSkeleton-6b7c940e.js';
|
|
@@ -59,7 +59,7 @@ export { default as OrSwitch } from './components/OrSwitch/OrSwitch.js';
|
|
|
59
59
|
export { s as OrSwitchV3 } from './components/OrSwitchV3-b2e3d181.js';
|
|
60
60
|
export { default as OrTab } from './components/OrTab/OrTab.js';
|
|
61
61
|
export { default as OrTabs } from './components/OrTabs/OrTabs.js';
|
|
62
|
-
export { s as OrTabsV3, T as TabsVariant } from './components/OrTabsV3-
|
|
62
|
+
export { s as OrTabsV3, T as TabsVariant } from './components/OrTabsV3-2bf15721.js';
|
|
63
63
|
export { default as OrTag } from './components/OrTag/OrTag.js';
|
|
64
64
|
export { s as OrTagInputV3 } from './components/OrTagInputV3-31f442b0.js';
|
|
65
65
|
export { s as OrTextV3 } from './components/OrTextV3-ff806d55.js';
|
|
@@ -19,8 +19,8 @@ import { _ as __vue_component__$b } from './OrLabel-6637774a.js';
|
|
|
19
19
|
import { _ as __vue_component__$c } from './OrMenuItem-fbe3e8e4.js';
|
|
20
20
|
import { _ as __vue_component__$d } from './OrPopover-7f93a1a8.js';
|
|
21
21
|
import { T as TagsOverflow } from './OrTags-ec9446c3.js';
|
|
22
|
-
import { _ as __vue_component__$1 } from './OrSelectMultipleControl-
|
|
23
|
-
import { _ as __vue_component__$2 } from './OrSelectSingleControl-
|
|
22
|
+
import { _ as __vue_component__$1 } from './OrSelectMultipleControl-f0edf6cd.js';
|
|
23
|
+
import { _ as __vue_component__$2 } from './OrSelectSingleControl-110a4f54.js';
|
|
24
24
|
import './OrSelectPlaceholder-f36f4e40.js';
|
|
25
25
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
26
26
|
|
|
@@ -443,13 +443,14 @@ var __vue_render__ = function () {
|
|
|
443
443
|
return [_vm.multiple ? [_c('OrSelectMultipleControl', {
|
|
444
444
|
ref: "multipleControl",
|
|
445
445
|
attrs: {
|
|
446
|
-
"options": _vm.options,
|
|
447
446
|
"model": _vm.proxyModelValue,
|
|
447
|
+
"options": _vm.options,
|
|
448
|
+
"overflow": _vm.overflow,
|
|
448
449
|
"placeholder": _vm.placeholder,
|
|
449
|
-
"disabled": _vm.disabled,
|
|
450
450
|
"readonly": _vm.readonly,
|
|
451
|
+
"disabled": _vm.disabled,
|
|
451
452
|
"enable-search": _vm.enableSearch,
|
|
452
|
-
"
|
|
453
|
+
"is-open": _vm.popoverState === 'open'
|
|
453
454
|
},
|
|
454
455
|
on: {
|
|
455
456
|
"reset": _vm.deselect
|
|
@@ -465,10 +466,11 @@ var __vue_render__ = function () {
|
|
|
465
466
|
ref: "singleControl",
|
|
466
467
|
attrs: {
|
|
467
468
|
"model": _vm.proxyModelValue,
|
|
468
|
-
"disabled": _vm.disabled,
|
|
469
469
|
"options": _vm.options,
|
|
470
470
|
"placeholder": _vm.placeholder,
|
|
471
|
-
"
|
|
471
|
+
"disabled": _vm.disabled,
|
|
472
|
+
"enable-search": _vm.enableSearch,
|
|
473
|
+
"is-open": _vm.popoverState === 'open'
|
|
472
474
|
},
|
|
473
475
|
model: {
|
|
474
476
|
value: _vm.searchText,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, toRefs, computed } from 'vue-demi';
|
|
2
1
|
import { useFocus } from '@vueuse/core';
|
|
2
|
+
import { defineComponent, ref, toRefs, computed } from 'vue-demi';
|
|
3
3
|
import './dom-aecadd9a.js';
|
|
4
4
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
5
5
|
import '@onereach/styles/tailwind/plugins/core';
|
|
@@ -38,7 +38,7 @@ var script = defineComponent({
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
emits: ['update:modelValue'],
|
|
41
|
-
expose: ['
|
|
41
|
+
expose: ['root', 'focus', 'focused'],
|
|
42
42
|
setup(props, context) {
|
|
43
43
|
// Refs
|
|
44
44
|
const root = ref();
|