@onereach/ui-components-vue2 23.1.1 → 23.1.3-beta.5534.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.
|
@@ -77,6 +77,10 @@ var script = defineComponent({
|
|
|
77
77
|
label: {
|
|
78
78
|
type: String,
|
|
79
79
|
default: 'Filters'
|
|
80
|
+
},
|
|
81
|
+
icon: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: 'filter_list'
|
|
80
84
|
}
|
|
81
85
|
},
|
|
82
86
|
emits: ['reset', 'click'],
|
|
@@ -126,7 +130,7 @@ var __vue_render__ = function () {
|
|
|
126
130
|
}, [_c('OrIcon', {
|
|
127
131
|
class: 'icon',
|
|
128
132
|
attrs: {
|
|
129
|
-
"icon":
|
|
133
|
+
"icon": _vm.icon
|
|
130
134
|
}
|
|
131
135
|
}), _vm._v("\n\n " + _vm._s(_vm.label) + "\n ")], 1), _vm._v(" "), _vm.value ? [_c('div', {
|
|
132
136
|
class: ['layout-inline-row', '-m-[12px] md:-m-[8px]']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, computed, toRef, watch, nextTick } from 'vue-demi';
|
|
2
1
|
import { J, Z, o as oe, e as ee } from '../../useValidationAttributes-C9_kxaDj-ee1d63dd.js';
|
|
2
|
+
import { defineComponent, reactive, ref, computed, toRef, watch, nextTick } from 'vue-demi';
|
|
3
3
|
import { InlineInputBoxSize, OrInlineInputBoxV3 as OrInlineInputBox } from '../or-inline-input-box-v3/index.js';
|
|
4
4
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
5
5
|
import { OrTextV3 as OrText } from '../or-text-v3/index.js';
|
|
@@ -107,7 +107,7 @@ var script = defineComponent({
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur', 'apply', 'reset'],
|
|
110
|
-
expose: ['root', 'apply', 'reset', 'focus', 'blur'],
|
|
110
|
+
expose: ['root', 'apply', 'reset', 'focus', 'blur', 'activate'],
|
|
111
111
|
setup(props, context) {
|
|
112
112
|
const attributes = reactive({
|
|
113
113
|
id: J(),
|
|
@@ -136,13 +136,10 @@ var script = defineComponent({
|
|
|
136
136
|
});
|
|
137
137
|
// Handlers
|
|
138
138
|
function onFocus() {
|
|
139
|
-
|
|
139
|
+
activate();
|
|
140
140
|
}
|
|
141
141
|
function onTextClick() {
|
|
142
|
-
|
|
143
|
-
activated.value = true;
|
|
144
|
-
}
|
|
145
|
-
nextTick(() => focus());
|
|
142
|
+
activate(true);
|
|
146
143
|
}
|
|
147
144
|
function onBlur() {
|
|
148
145
|
if (props.saveOnBlur) {
|
|
@@ -172,6 +169,12 @@ var script = defineComponent({
|
|
|
172
169
|
var _a;
|
|
173
170
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
174
171
|
}
|
|
172
|
+
function activate(forceFocus = false) {
|
|
173
|
+
if (!activated.value) {
|
|
174
|
+
activated.value = true;
|
|
175
|
+
}
|
|
176
|
+
if (forceFocus) nextTick(() => focus());
|
|
177
|
+
}
|
|
175
178
|
return {
|
|
176
179
|
attributes,
|
|
177
180
|
root,
|
|
@@ -190,12 +193,13 @@ var script = defineComponent({
|
|
|
190
193
|
apply,
|
|
191
194
|
reset,
|
|
192
195
|
focus,
|
|
193
|
-
blur
|
|
196
|
+
blur,
|
|
197
|
+
activate
|
|
194
198
|
};
|
|
195
199
|
}
|
|
196
200
|
});
|
|
197
201
|
|
|
198
|
-
var css_248z = "input[data-v-
|
|
202
|
+
var css_248z = "input[data-v-882a6f42]{min-width:0;background:0 0;outline:0}input[type=number][data-v-882a6f42]::-webkit-inner-spin-button{display:none}input[type=search][data-v-882a6f42]::-webkit-search-cancel-button{display:none}";
|
|
199
203
|
styleInject(css_248z);
|
|
200
204
|
|
|
201
205
|
/* script */
|
|
@@ -332,7 +336,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
332
336
|
/* style */
|
|
333
337
|
const __vue_inject_styles__ = undefined;
|
|
334
338
|
/* scoped */
|
|
335
|
-
const __vue_scope_id__ = "data-v-
|
|
339
|
+
const __vue_scope_id__ = "data-v-882a6f42";
|
|
336
340
|
/* module identifier */
|
|
337
341
|
const __vue_module_identifier__ = undefined;
|
|
338
342
|
/* functional template */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.3-beta.5534.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^23.1.
|
|
44
|
-
"@onereach/ui-components-common": "^23.1.
|
|
43
|
+
"@onereach/styles": "^23.1.3-beta.5534.0",
|
|
44
|
+
"@onereach/ui-components-common": "^23.1.3-beta.5534.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.0.3",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.0.3",
|
|
@@ -102,6 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"npmUnpacked": "4.15.2"
|
|
106
|
-
"gitHead": "3614031074e59c370f06423b86612dcf0bd30b1f"
|
|
105
|
+
"npmUnpacked": "4.15.2"
|
|
107
106
|
}
|