@onereach/ui-components-vue2 20.3.0-beta.5253.0 → 20.3.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/esm/components/or-checkbox-group-v3/index.js +4 -3
- package/dist/esm/components/or-checkbox-tree-v3/index.js +1 -1
- package/dist/esm/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/components/or-data-grid-v3/index.js +2 -0
- package/dist/esm/components/or-form-group-v3/index.js +1 -1
- package/dist/esm/components/or-input-v3/index.js +6 -3
- package/dist/esm/components/or-radio-group-v3/index.js +15 -5
- package/dist/esm/components/or-select-v3/index.js +11 -2
- package/dist/esm/components/or-select-v3/styles.d.ts +3 -0
- package/dist/esm/components/or-tag-input-v3/index.js +5 -3
- package/package.json +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, toRef } from 'vue-demi';
|
|
1
|
+
import { defineComponent, toRef, computed } from 'vue-demi';
|
|
2
2
|
import { a as re, n as ne } from '../../useValidationAttributes-w0RCHARs-21132c84.js';
|
|
3
3
|
import { OrCheckboxTreeV3 as OrCheckboxTree } from '../or-checkbox-tree-v3/index.js';
|
|
4
4
|
import { OrFormGroupV3 as OrFormGroup, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
@@ -73,9 +73,10 @@ var script = defineComponent({
|
|
|
73
73
|
const {
|
|
74
74
|
isMobile
|
|
75
75
|
} = ne();
|
|
76
|
+
const localSpacing = computed(() => isMobile.value ? FormGroupSpacing.NONE : props.spacing);
|
|
76
77
|
return {
|
|
77
78
|
proxyModelValue,
|
|
78
|
-
|
|
79
|
+
localSpacing
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
});
|
|
@@ -95,7 +96,7 @@ var __vue_render__ = function () {
|
|
|
95
96
|
"hint": _vm.hint,
|
|
96
97
|
"disabled": _vm.disabled,
|
|
97
98
|
"direction": _vm.direction,
|
|
98
|
-
"spacing": _vm.
|
|
99
|
+
"spacing": _vm.localSpacing
|
|
99
100
|
},
|
|
100
101
|
scopedSlots: _vm._u([{
|
|
101
102
|
key: "addon",
|
|
@@ -14,7 +14,7 @@ const Checkbox = [
|
|
|
14
14
|
// Layout
|
|
15
15
|
'layout-row',
|
|
16
16
|
// Spacing
|
|
17
|
-
'
|
|
17
|
+
'md:gap-sm'];
|
|
18
18
|
const CheckboxControl = [
|
|
19
19
|
// Layout
|
|
20
20
|
'layout-inline-row justify-center',
|
|
@@ -23,7 +23,7 @@ const CheckboxControl = [
|
|
|
23
23
|
// Shape
|
|
24
24
|
'rounded-sm leading-[0]',
|
|
25
25
|
// Box
|
|
26
|
-
'w-md+ md:w-md', 'h-md+ md:h-md',
|
|
26
|
+
'w-md+ md:w-md', 'h-md+ md:h-md', 'm-[10px] md:m-none',
|
|
27
27
|
// Iconography
|
|
28
28
|
'iconography-outlined',
|
|
29
29
|
// Theme
|
|
@@ -1588,6 +1588,7 @@ var __vue_render__ = function () {
|
|
|
1588
1588
|
"variant": _vm.variant
|
|
1589
1589
|
}
|
|
1590
1590
|
}, [_vm.features.selecting ? [_c('OrDataGridTableHeaderCell', {
|
|
1591
|
+
staticClass: "!py-xs !px-xs md:!py-none md:!px-sm+",
|
|
1591
1592
|
attrs: {
|
|
1592
1593
|
"column": {
|
|
1593
1594
|
stickiness: 'start'
|
|
@@ -1668,6 +1669,7 @@ var __vue_render__ = function () {
|
|
|
1668
1669
|
"selected": _vm.selectingModel.includes(item.id)
|
|
1669
1670
|
}
|
|
1670
1671
|
}, [_vm.features.selecting ? [_c('OrDataGridTableContentCell', {
|
|
1672
|
+
staticClass: "!py-xs !px-xs md:!py-none md:!px-sm+",
|
|
1671
1673
|
attrs: {
|
|
1672
1674
|
"column": {
|
|
1673
1675
|
stickiness: 'start'
|
|
@@ -197,7 +197,7 @@ var script = defineComponent({
|
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
|
|
200
|
-
var css_248z = "input[data-v-
|
|
200
|
+
var css_248z = "input[data-v-3d8fe668]{min-width:0;background:0 0;outline:0}input[type=search][data-v-3d8fe668]::-webkit-search-cancel-button{display:none}";
|
|
201
201
|
styleInject(css_248z);
|
|
202
202
|
|
|
203
203
|
/* script */
|
|
@@ -227,7 +227,7 @@ var __vue_render__ = function () {
|
|
|
227
227
|
}, [_vm._t("label", function () {
|
|
228
228
|
return [_vm._v("\n " + _vm._s(_vm.label) + "\n ")];
|
|
229
229
|
})], 2)] : _vm._e(), _vm._v(" "), _c('div', {
|
|
230
|
-
staticClass: "layout-row gap-
|
|
230
|
+
staticClass: "layout-row gap-md md:gap-md"
|
|
231
231
|
}, [_vm._t("prepend"), _vm._v(" "), _c('OrInputBox', {
|
|
232
232
|
attrs: {
|
|
233
233
|
"variant": _vm.variant,
|
|
@@ -258,6 +258,7 @@ var __vue_render__ = function () {
|
|
|
258
258
|
icon: _vm.disclosed ? 'visibility' : 'visibility_off',
|
|
259
259
|
variant: 'filled'
|
|
260
260
|
},
|
|
261
|
+
"size": 'l',
|
|
261
262
|
"color": 'inherit',
|
|
262
263
|
"disabled": _vm.disabled
|
|
263
264
|
},
|
|
@@ -271,6 +272,7 @@ var __vue_render__ = function () {
|
|
|
271
272
|
attrs: {
|
|
272
273
|
"icon": 'close',
|
|
273
274
|
"color": 'inherit',
|
|
275
|
+
"size": 'l',
|
|
274
276
|
"disabled": _vm.disabled
|
|
275
277
|
},
|
|
276
278
|
on: {
|
|
@@ -282,6 +284,7 @@ var __vue_render__ = function () {
|
|
|
282
284
|
})] : [_c('OrIcon', {
|
|
283
285
|
attrs: {
|
|
284
286
|
"icon": 'search',
|
|
287
|
+
"size": 'l',
|
|
285
288
|
"variant": 'outlined'
|
|
286
289
|
}
|
|
287
290
|
})]] : _vm._e()]];
|
|
@@ -381,7 +384,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
381
384
|
/* style */
|
|
382
385
|
const __vue_inject_styles__ = undefined;
|
|
383
386
|
/* scoped */
|
|
384
|
-
const __vue_scope_id__ = "data-v-
|
|
387
|
+
const __vue_scope_id__ = "data-v-3d8fe668";
|
|
385
388
|
/* module identifier */
|
|
386
389
|
const __vue_module_identifier__ = undefined;
|
|
387
390
|
/* functional template */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, toRef } from 'vue-demi';
|
|
2
|
-
import { a as re } from '../../useValidationAttributes-w0RCHARs-21132c84.js';
|
|
3
|
-
import { OrFormGroupV3 as OrFormGroup, FormGroupDirection } from '../or-form-group-v3/index.js';
|
|
1
|
+
import { defineComponent, toRef, computed } from 'vue-demi';
|
|
2
|
+
import { a as re, n as ne } from '../../useValidationAttributes-w0RCHARs-21132c84.js';
|
|
3
|
+
import { OrFormGroupV3 as OrFormGroup, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
4
4
|
import { OrRadioV3 as OrRadio } from '../or-radio-v3/index.js';
|
|
5
5
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
6
6
|
import '../../dom-DzNS5tBj-6d9cf0ef.js';
|
|
@@ -56,14 +56,23 @@ var script = defineComponent({
|
|
|
56
56
|
readonly: {
|
|
57
57
|
type: Boolean,
|
|
58
58
|
default: false
|
|
59
|
+
},
|
|
60
|
+
spacing: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: FormGroupSpacing.SM
|
|
59
63
|
}
|
|
60
64
|
},
|
|
61
65
|
emits: ['update:modelValue'],
|
|
62
66
|
setup(props, context) {
|
|
63
67
|
// State
|
|
64
68
|
const proxyModelValue = re(toRef(props, 'modelValue'), context.emit);
|
|
69
|
+
const {
|
|
70
|
+
isMobile
|
|
71
|
+
} = ne();
|
|
72
|
+
const localSpacing = computed(() => isMobile.value ? FormGroupSpacing.NONE : props.spacing);
|
|
65
73
|
return {
|
|
66
|
-
proxyModelValue
|
|
74
|
+
proxyModelValue,
|
|
75
|
+
localSpacing
|
|
67
76
|
};
|
|
68
77
|
}
|
|
69
78
|
});
|
|
@@ -82,7 +91,8 @@ var __vue_render__ = function () {
|
|
|
82
91
|
"label": _vm.label,
|
|
83
92
|
"hint": _vm.hint,
|
|
84
93
|
"error": _vm.error,
|
|
85
|
-
"disabled": _vm.disabled
|
|
94
|
+
"disabled": _vm.disabled,
|
|
95
|
+
"spacing": _vm.localSpacing
|
|
86
96
|
},
|
|
87
97
|
scopedSlots: _vm._u([{
|
|
88
98
|
key: "addon",
|
|
@@ -671,11 +671,20 @@ const SelectDropdownItem = [
|
|
|
671
671
|
// Typography
|
|
672
672
|
'!typography-body-2-regular',
|
|
673
673
|
// Padding Override todo: check design
|
|
674
|
-
'
|
|
674
|
+
'md:!pt-[6px] md:!pb-[7px]',
|
|
675
675
|
// Typography (selected)
|
|
676
676
|
'selected:!typography-body-2-semibold',
|
|
677
677
|
// Theme
|
|
678
678
|
'!theme-foreground-default dark:!theme-foreground-default-dark'];
|
|
679
|
+
const SelectDropdownItemPaddingSingle = [
|
|
680
|
+
// Padding Override
|
|
681
|
+
'!py-md md:!pt-[6px] md:!pb-[7px]'];
|
|
682
|
+
const SelectDropdownItemPaddingMultiple = [
|
|
683
|
+
// Padding Override
|
|
684
|
+
'md:!pt-[6px] md:!pb-[7px]'];
|
|
685
|
+
const SelectDropdownItemPaddingMultipleMobile = [
|
|
686
|
+
// Padding Override
|
|
687
|
+
'px-md'];
|
|
679
688
|
const SelectNoSearchResults = [
|
|
680
689
|
// Layout
|
|
681
690
|
'layout-row justify-center',
|
|
@@ -898,7 +907,7 @@ var script = defineComponent({
|
|
|
898
907
|
return ['or-select-popover-v3', ...SelectDropdown, ...(((_a = popover.value) === null || _a === void 0 ? void 0 : _a.isFlipped) ? SelectDropdownFlipped : SelectDropdownDefault)];
|
|
899
908
|
});
|
|
900
909
|
const dropdownContainerStyles = computed(() => [isMobile.value ? 'layout-column' : 'contains', bottomSheetFullscreen.value ? 'overflow-y-auto' : 'overflow-hidden']);
|
|
901
|
-
const dropdownItemStyles = computed(() => [...SelectDropdownItem]);
|
|
910
|
+
const dropdownItemStyles = computed(() => [...SelectDropdownItem, ...(props.multiple ? SelectDropdownItemPaddingMultiple : SelectDropdownItemPaddingSingle), ...(isMobile.value ? SelectDropdownItemPaddingMultipleMobile : [])]);
|
|
902
911
|
const noSearchResultsStyles = computed(() => [...SelectNoSearchResults]);
|
|
903
912
|
const loaderStyles = computed(() => [...SelectLoader]);
|
|
904
913
|
// Methods
|
|
@@ -5,5 +5,8 @@ export declare const SelectDropdown: string[];
|
|
|
5
5
|
export declare const SelectDropdownDefault: string[];
|
|
6
6
|
export declare const SelectDropdownFlipped: string[];
|
|
7
7
|
export declare const SelectDropdownItem: string[];
|
|
8
|
+
export declare const SelectDropdownItemPaddingSingle: string[];
|
|
9
|
+
export declare const SelectDropdownItemPaddingMultiple: string[];
|
|
10
|
+
export declare const SelectDropdownItemPaddingMultipleMobile: string[];
|
|
8
11
|
export declare const SelectNoSearchResults: string[];
|
|
9
12
|
export declare const SelectLoader: string[];
|
|
@@ -212,6 +212,7 @@ var script = defineComponent({
|
|
|
212
212
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
213
213
|
proxyModelValue.value = $s(newItem, (_b = proxyModelValue.value) !== null && _b !== void 0 ? _b : []);
|
|
214
214
|
draftModelValue.value = '';
|
|
215
|
+
nextTick(() => focus());
|
|
215
216
|
}
|
|
216
217
|
function remove(value) {
|
|
217
218
|
var _a;
|
|
@@ -234,7 +235,8 @@ var script = defineComponent({
|
|
|
234
235
|
});
|
|
235
236
|
watch(proxyModelValue, (items, prevItems) => {
|
|
236
237
|
var _a;
|
|
237
|
-
if (
|
|
238
|
+
if (overflow.value !== TagsOverflow.Scroll) return;
|
|
239
|
+
if ((items === null || items === void 0 ? void 0 : items.length) !== (prevItems === null || prevItems === void 0 ? void 0 : prevItems.length)) {
|
|
238
240
|
((_a = tags.value) === null || _a === void 0 ? void 0 : _a.scrollToEnd)();
|
|
239
241
|
}
|
|
240
242
|
});
|
|
@@ -270,7 +272,7 @@ var script = defineComponent({
|
|
|
270
272
|
}
|
|
271
273
|
});
|
|
272
274
|
|
|
273
|
-
var css_248z = "input[data-v-
|
|
275
|
+
var css_248z = "input[data-v-1dce37a5]{min-width:0;background:0 0;outline:0}";
|
|
274
276
|
styleInject(css_248z);
|
|
275
277
|
|
|
276
278
|
/* script */
|
|
@@ -480,7 +482,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
480
482
|
/* style */
|
|
481
483
|
const __vue_inject_styles__ = undefined;
|
|
482
484
|
/* scoped */
|
|
483
|
-
const __vue_scope_id__ = "data-v-
|
|
485
|
+
const __vue_scope_id__ = "data-v-1dce37a5";
|
|
484
486
|
/* module identifier */
|
|
485
487
|
const __vue_module_identifier__ = undefined;
|
|
486
488
|
/* functional template */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "20.3.0
|
|
3
|
+
"version": "20.3.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@codemirror/view": "^6",
|
|
40
40
|
"@floating-ui/dom": "1.5.3",
|
|
41
41
|
"@lezer/highlight": "*",
|
|
42
|
-
"@onereach/styles": "^20.
|
|
43
|
-
"@onereach/ui-components-common": "^20.
|
|
42
|
+
"@onereach/styles": "^20.3.0",
|
|
43
|
+
"@onereach/ui-components-common": "^20.3.0",
|
|
44
44
|
"@splidejs/splide": "4.0.6",
|
|
45
45
|
"@tiptap/core": "2.0.3",
|
|
46
46
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -103,5 +103,6 @@
|
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|
|
105
105
|
},
|
|
106
|
-
"npmUnpacked": "4.15.2"
|
|
106
|
+
"npmUnpacked": "4.15.2",
|
|
107
|
+
"gitHead": "da62f7d2af0507ea35abbe990f2c03918721e4f6"
|
|
107
108
|
}
|