@onereach/ui-components 8.16.5-beta.3876.0 → 8.17.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/OrCodeV3/OrCode.js +6 -11
- package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +3 -3
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +31 -15
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +3 -0
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +3 -3
- package/dist/bundled/v2/components/OrTagsV3/types.d.ts +5 -4
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +3 -4
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/props.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrCodeV3-628f8e28.js → OrCodeV3-7ecb46ca.js} +15 -20
- 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-f212f5c6.js → OrSelectV3-e0de09af.js} +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +2 -0
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTagInputV3-7b240c91.js → OrTagInputV3-e1596983.js} +23 -11
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/props.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTagV3-43ee9066.js → OrTagV3-045cac0b.js} +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/props.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/types.d.ts +5 -4
- package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +1 -1
- package/dist/bundled/v3/components/{OrTagsV3-bbda3acd.js → OrTagsV3-6c4fb22c.js} +10 -4
- package/dist/bundled/v3/components/index.js +5 -5
- package/dist/bundled/v3/index.js +6 -6
- package/dist/esm/v2/{OrCode-4c7bbbd2.js → OrCode-c37dabe7.js} +16 -21
- package/dist/esm/v2/{OrSelect-30f5ce68.js → OrSelect-4768c12b.js} +2 -2
- package/dist/esm/v2/{OrSelectMultipleControl-de32c83c.js → OrSelectMultipleControl-685d5af4.js} +1 -1
- package/dist/esm/v2/{OrTagInput-2642f4d9.js → OrTagInput-c4110c0b.js} +32 -16
- package/dist/esm/v2/{OrTags-9d3cf104.js → OrTags-f6434f9b.js} +3 -3
- package/dist/esm/v2/components/index.js +5 -5
- package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +3 -3
- package/dist/esm/v2/components/or-code-v3/index.js +1 -1
- package/dist/esm/v2/components/or-select-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/partials/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +3 -0
- package/dist/esm/v2/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tags-v3/types.d.ts +5 -4
- package/dist/esm/v2/components/or-teleport/OrTeleport.vue2.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +5 -5
- package/dist/esm/v3/{OrCode-37d50c74.js → OrCode-6f8164d5.js} +16 -21
- package/dist/esm/v3/{OrSelect-a65c0b08.js → OrSelect-5a22c1da.js} +2 -2
- package/dist/esm/v3/{OrSelectMultipleControl-96320988.js → OrSelectMultipleControl-6b5a831d.js} +1 -1
- package/dist/esm/v3/{OrTagInput-4cec4018.js → OrTagInput-6e9c7a94.js} +23 -11
- package/dist/esm/v3/{OrTags-384a48e3.js → OrTags-801c20ad.js} +9 -3
- package/dist/esm/v3/components/index.js +5 -5
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +3 -4
- package/dist/esm/v3/components/or-code-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/partials/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tags-v3/types.d.ts +5 -4
- package/dist/esm/v3/index.js +5 -5
- package/package.json +3 -2
- package/src/components/or-code-v3/OrCode.vue +8 -22
- package/src/components/or-code-v3/partials/OrCodeControl.vue +1 -10
- package/src/components/or-tag-input-v3/OrTagInput.vue +23 -12
- package/src/components/or-tags-v3/OrTags.vue +5 -3
- package/src/components/or-tags-v3/types.ts +7 -4
|
@@ -7,9 +7,9 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
7
7
|
import { u as useTheme } from './useTheme-0ef25778.js';
|
|
8
8
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
9
9
|
import { basicSetup } from 'codemirror';
|
|
10
|
+
import { keymap, EditorView } from '@codemirror/view';
|
|
10
11
|
import { indentWithTab } from '@codemirror/commands';
|
|
11
12
|
import { Compartment, EditorState } from '@codemirror/state';
|
|
12
|
-
import { keymap, EditorView } from '@codemirror/view';
|
|
13
13
|
import { _ as __vue_component__$7 } from './OrIconButton-edff56d4.js';
|
|
14
14
|
import { _ as __vue_component__$6 } from './OrModal-b191f8c8.js';
|
|
15
15
|
import { _ as __vue_component__$2 } from './OrError-916e928e.js';
|
|
@@ -19,6 +19,16 @@ import './OrInputBox.vue_rollup-plugin-vue_script-65ebcf4d.js';
|
|
|
19
19
|
import { _ as __vue_component__$5 } from './OrLabel-caf02dc4.js';
|
|
20
20
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
21
21
|
|
|
22
|
+
var CodeLanguage;
|
|
23
|
+
(function (CodeLanguage) {
|
|
24
|
+
CodeLanguage["HTML"] = "html";
|
|
25
|
+
CodeLanguage["CSS"] = "css";
|
|
26
|
+
CodeLanguage["JS"] = "js";
|
|
27
|
+
CodeLanguage["TS"] = "ts";
|
|
28
|
+
CodeLanguage["JSON"] = "json";
|
|
29
|
+
CodeLanguage["MD"] = "md";
|
|
30
|
+
})(CodeLanguage || (CodeLanguage = {}));
|
|
31
|
+
|
|
22
32
|
const Code = [
|
|
23
33
|
// Layout
|
|
24
34
|
'layout-column',
|
|
@@ -194,16 +204,6 @@ const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
|
|
|
194
204
|
staticRenderFns: __vue_staticRenderFns__$1
|
|
195
205
|
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
196
206
|
|
|
197
|
-
var CodeLanguage;
|
|
198
|
-
(function (CodeLanguage) {
|
|
199
|
-
CodeLanguage["HTML"] = "html";
|
|
200
|
-
CodeLanguage["CSS"] = "css";
|
|
201
|
-
CodeLanguage["JS"] = "js";
|
|
202
|
-
CodeLanguage["TS"] = "ts";
|
|
203
|
-
CodeLanguage["JSON"] = "json";
|
|
204
|
-
CodeLanguage["MD"] = "md";
|
|
205
|
-
})(CodeLanguage || (CodeLanguage = {}));
|
|
206
|
-
|
|
207
207
|
var script = defineComponent({
|
|
208
208
|
components: {
|
|
209
209
|
OrModal: __vue_component__$6,
|
|
@@ -257,7 +257,7 @@ var script = defineComponent({
|
|
|
257
257
|
default: true
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
|
-
emits: ['update:modelValue', '
|
|
260
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
261
261
|
expose: ['root', 'editorView', 'control', 'fullscreenControl', 'modal', 'focus', 'blur'],
|
|
262
262
|
setup(props, context) {
|
|
263
263
|
// Refs
|
|
@@ -312,9 +312,6 @@ var script = defineComponent({
|
|
|
312
312
|
// #region Codemirror
|
|
313
313
|
const theme = useTheme();
|
|
314
314
|
const defaultExtensions = [basicSetup, keymap.of([indentWithTab]), EditorState.readOnly.of(props.readonly), EditorView.editable.of(!props.disabled), EditorView.domEventHandlers({
|
|
315
|
-
input: event => {
|
|
316
|
-
context.emit('input', event);
|
|
317
|
-
},
|
|
318
315
|
keydown: event => {
|
|
319
316
|
context.emit('keydown', event);
|
|
320
317
|
},
|
|
@@ -329,7 +326,6 @@ var script = defineComponent({
|
|
|
329
326
|
}
|
|
330
327
|
}), EditorView.theme({
|
|
331
328
|
'&': {
|
|
332
|
-
overflow: 'hidden',
|
|
333
329
|
color: theme.textColor['on-background'],
|
|
334
330
|
backgroundColor: theme.backgroundColor['background']
|
|
335
331
|
},
|
|
@@ -345,8 +341,7 @@ var script = defineComponent({
|
|
|
345
341
|
'.cm-gutters': {
|
|
346
342
|
color: theme.textColor['on-background'],
|
|
347
343
|
backgroundColor: theme.backgroundColor['primary-opacity-0-12'],
|
|
348
|
-
borderColor: theme.borderColor['outline']
|
|
349
|
-
backdropFilter: 'blur(2px)'
|
|
344
|
+
borderColor: theme.borderColor['outline']
|
|
350
345
|
},
|
|
351
346
|
'.cm-activeLineGutter, .cm-activeLine': {
|
|
352
347
|
backgroundColor: theme.backgroundColor['primary-opacity-0-08']
|
|
@@ -422,8 +417,8 @@ var script = defineComponent({
|
|
|
422
417
|
editorView.destroy();
|
|
423
418
|
});
|
|
424
419
|
return {
|
|
425
|
-
root,
|
|
426
420
|
editorView,
|
|
421
|
+
root,
|
|
427
422
|
control,
|
|
428
423
|
fullscreenControl,
|
|
429
424
|
modal,
|
|
@@ -482,8 +477,8 @@ var __vue_render__ = function () {
|
|
|
482
477
|
}), _vm._v(" "), _c('OrModal', {
|
|
483
478
|
ref: "modal",
|
|
484
479
|
attrs: {
|
|
485
|
-
"
|
|
486
|
-
"
|
|
480
|
+
"size": "l",
|
|
481
|
+
"additional-styles": _vm.modalStyles
|
|
487
482
|
},
|
|
488
483
|
scopedSlots: _vm._u([{
|
|
489
484
|
key: "header",
|
|
@@ -18,8 +18,8 @@ import { _ as __vue_component__$9 } from './OrInput-ac6484dd.js';
|
|
|
18
18
|
import { _ as __vue_component__$b } from './OrLabel-caf02dc4.js';
|
|
19
19
|
import { _ as __vue_component__$c } from './OrMenuItem-fbe3e8e4.js';
|
|
20
20
|
import { _ as __vue_component__$d } from './OrPopover-07b82c80.js';
|
|
21
|
-
import { T as TagsOverflow } from './OrTags-
|
|
22
|
-
import { _ as __vue_component__$1 } from './OrSelectMultipleControl-
|
|
21
|
+
import { T as TagsOverflow } from './OrTags-f6434f9b.js';
|
|
22
|
+
import { _ as __vue_component__$1 } from './OrSelectMultipleControl-685d5af4.js';
|
|
23
23
|
import { _ as __vue_component__$2 } from './OrSelectSingleControl-8ca0d898.js';
|
|
24
24
|
import './OrSelectPlaceholder-f36f4e40.js';
|
|
25
25
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
package/dist/esm/v2/{OrSelectMultipleControl-de32c83c.js → OrSelectMultipleControl-685d5af4.js}
RENAMED
|
@@ -5,7 +5,7 @@ import { i as isEqualValue } from './isEqualValue-f8bf73d9.js';
|
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
6
6
|
import '@onereach/styles/tailwind/plugins/core';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import { _ as __vue_component__$3, T as TagsOverflow } from './OrTags-
|
|
8
|
+
import { _ as __vue_component__$3, T as TagsOverflow } from './OrTags-f6434f9b.js';
|
|
9
9
|
import { _ as __vue_component__$1 } from './OrSelectPlaceholder-f36f4e40.js';
|
|
10
10
|
import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
|
|
11
11
|
import { _ as __vue_component__$2 } from './OrSelectControlInput-28c226f8.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
|
|
2
1
|
import { onClickOutside } from '@vueuse/core';
|
|
2
|
+
import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
|
|
3
3
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
4
4
|
import './dom-aecadd9a.js';
|
|
5
5
|
import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
|
|
@@ -12,7 +12,8 @@ import { _ as __vue_component__$3 } from './OrIconButton-edff56d4.js';
|
|
|
12
12
|
import { _ as __vue_component__$4 } from './OrInputBox-140c344d.js';
|
|
13
13
|
import './OrInputBox.vue_rollup-plugin-vue_script-65ebcf4d.js';
|
|
14
14
|
import { _ as __vue_component__$5 } from './OrLabel-caf02dc4.js';
|
|
15
|
-
import {
|
|
15
|
+
import { a as TagColor } from './OrTag-bf15f5ad.js';
|
|
16
|
+
import { _ as __vue_component__$6, T as TagsOverflow } from './OrTags-f6434f9b.js';
|
|
16
17
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
17
18
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
19
|
|
|
@@ -121,6 +122,15 @@ var script = defineComponent({
|
|
|
121
122
|
const activated = ref(false);
|
|
122
123
|
const proxyModelValue = useProxyModelValue(modelValue, context.emit);
|
|
123
124
|
const draftModelValue = ref('');
|
|
125
|
+
const tagsItems = computed(() => {
|
|
126
|
+
return proxyModelValue.value.map(item => ({
|
|
127
|
+
label: item,
|
|
128
|
+
value: item,
|
|
129
|
+
tagProps: {
|
|
130
|
+
color: item === draftModelValue.value ? TagColor.Danger : TagColor.Default
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
});
|
|
124
134
|
const currentLength = computed(() => {
|
|
125
135
|
var _a, _b;
|
|
126
136
|
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -157,8 +167,7 @@ var script = defineComponent({
|
|
|
157
167
|
context.emit('focus');
|
|
158
168
|
}
|
|
159
169
|
function add() {
|
|
160
|
-
|
|
161
|
-
const newItem = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
170
|
+
const newItem = draftModelValue.value;
|
|
162
171
|
if (!newItem) return;
|
|
163
172
|
if (proxyModelValue.value.includes(newItem)) return;
|
|
164
173
|
if (maxLength.value && currentLength.value >= maxLength.value) return;
|
|
@@ -197,6 +206,7 @@ var script = defineComponent({
|
|
|
197
206
|
controlAttributes,
|
|
198
207
|
proxyModelValue,
|
|
199
208
|
draftModelValue,
|
|
209
|
+
tagsItems,
|
|
200
210
|
currentLength,
|
|
201
211
|
maxLength,
|
|
202
212
|
activated,
|
|
@@ -212,7 +222,7 @@ var script = defineComponent({
|
|
|
212
222
|
}
|
|
213
223
|
});
|
|
214
224
|
|
|
215
|
-
var css_248z = "input[data-v-
|
|
225
|
+
var css_248z = "input[data-v-cfe6b850]{min-width:0;background:0 0;outline:0}";
|
|
216
226
|
styleInject(css_248z);
|
|
217
227
|
|
|
218
228
|
/* script */
|
|
@@ -241,14 +251,14 @@ var __vue_render__ = function () {
|
|
|
241
251
|
}], null, true)
|
|
242
252
|
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
243
253
|
ref: "inputBox",
|
|
244
|
-
|
|
254
|
+
class: ['interactivity-select'],
|
|
245
255
|
attrs: {
|
|
246
256
|
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
247
|
-
"force-state": _vm.activated ? 'focus-within' : undefined,
|
|
248
257
|
"invalid": !!_vm.error,
|
|
249
258
|
"readonly": _vm.readonly,
|
|
250
259
|
"disabled": _vm.disabled,
|
|
251
|
-
"tabindex":
|
|
260
|
+
"tabindex": 0,
|
|
261
|
+
"force-state": _vm.activated ? 'focus-within' : undefined
|
|
252
262
|
},
|
|
253
263
|
on: {
|
|
254
264
|
"focus": _vm.activate
|
|
@@ -273,9 +283,9 @@ var __vue_render__ = function () {
|
|
|
273
283
|
} : null], null, true)
|
|
274
284
|
}, [_c('OrTags', {
|
|
275
285
|
ref: "tags",
|
|
276
|
-
|
|
286
|
+
class: ['grow'],
|
|
277
287
|
attrs: {
|
|
278
|
-
"items": _vm.
|
|
288
|
+
"items": _vm.tagsItems,
|
|
279
289
|
"disabled": _vm.disabled,
|
|
280
290
|
"tag-props": {
|
|
281
291
|
variant: _vm.readonly || _vm.disabled ? 'tag' : 'reset',
|
|
@@ -296,21 +306,24 @@ var __vue_render__ = function () {
|
|
|
296
306
|
}, [_c('input', _vm._b({
|
|
297
307
|
directives: [{
|
|
298
308
|
name: "model",
|
|
299
|
-
rawName: "v-model",
|
|
309
|
+
rawName: "v-model.trim",
|
|
300
310
|
value: _vm.draftModelValue,
|
|
301
|
-
expression: "draftModelValue"
|
|
311
|
+
expression: "draftModelValue",
|
|
312
|
+
modifiers: {
|
|
313
|
+
"trim": true
|
|
314
|
+
}
|
|
302
315
|
}],
|
|
303
316
|
ref: "control",
|
|
304
317
|
class: _vm.controlStyles,
|
|
305
318
|
style: _vm.controlInlineStyles,
|
|
306
319
|
attrs: {
|
|
320
|
+
"type": 'text',
|
|
307
321
|
"placeholder": _vm.proxyModelValue.length === 0 ? _vm.placeholder : undefined,
|
|
308
322
|
"readonly": _vm.readonly,
|
|
309
323
|
"disabled": _vm.disabled,
|
|
310
324
|
"autocomplete": 'off',
|
|
311
325
|
"minlength": undefined,
|
|
312
|
-
"maxlength": undefined
|
|
313
|
-
"type": 'text'
|
|
326
|
+
"maxlength": undefined
|
|
314
327
|
},
|
|
315
328
|
domProps: {
|
|
316
329
|
"value": _vm.draftModelValue
|
|
@@ -332,7 +345,10 @@ var __vue_render__ = function () {
|
|
|
332
345
|
if ($event.target.composing) {
|
|
333
346
|
return;
|
|
334
347
|
}
|
|
335
|
-
_vm.draftModelValue = $event.target.value;
|
|
348
|
+
_vm.draftModelValue = $event.target.value.trim();
|
|
349
|
+
},
|
|
350
|
+
"blur": function ($event) {
|
|
351
|
+
return _vm.$forceUpdate();
|
|
336
352
|
}
|
|
337
353
|
}
|
|
338
354
|
}, 'input', _vm.controlAttributes, false))])];
|
|
@@ -384,7 +400,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
384
400
|
/* style */
|
|
385
401
|
const __vue_inject_styles__ = undefined;
|
|
386
402
|
/* scoped */
|
|
387
|
-
const __vue_scope_id__ = "data-v-
|
|
403
|
+
const __vue_scope_id__ = "data-v-cfe6b850";
|
|
388
404
|
/* module identifier */
|
|
389
405
|
const __vue_module_identifier__ = undefined;
|
|
390
406
|
/* functional template */
|
|
@@ -192,13 +192,13 @@ var __vue_render__ = function () {
|
|
|
192
192
|
}, [_vm._l(_vm.localItems, function (item) {
|
|
193
193
|
return _c('OrTag', _vm._b({
|
|
194
194
|
key: item.value,
|
|
195
|
-
|
|
195
|
+
class: ['max-w-full'],
|
|
196
196
|
on: {
|
|
197
197
|
"reset": function ($event) {
|
|
198
198
|
return _vm.$emit('reset', item.value);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
201
|
+
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
202
202
|
}), _vm._v(" "), _vm.localOverflow === 'wrap' ? _vm._t("tail") : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm.localOverflow === 'hidden' && _vm.overflowItems.length > 0 ? [_c('OrButton', {
|
|
203
203
|
ref: "overflowButton",
|
|
204
204
|
class: _vm.overflowButtonStyles,
|
|
@@ -231,7 +231,7 @@ var __vue_render__ = function () {
|
|
|
231
231
|
return _vm.$emit('reset', item.value);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
234
|
+
}, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
235
235
|
}), 1)])] : _vm._e(), _vm._v(" "), _vm.localOverflow != 'wrap' || _vm.items.length === 0 ? _vm._t("tail") : _vm._e()], 2);
|
|
236
236
|
};
|
|
237
237
|
var __vue_staticRenderFns__ = [];
|
|
@@ -24,7 +24,7 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
24
24
|
export { javascript } from '@codemirror/lang-javascript';
|
|
25
25
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
26
26
|
export { html } from '@codemirror/lang-html';
|
|
27
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-
|
|
27
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from '../OrCode-c37dabe7.js';
|
|
28
28
|
export { EditorView } from '@codemirror/view';
|
|
29
29
|
export { EditorState } from '@codemirror/state';
|
|
30
30
|
export { _ as OrCollapse } from '../OrCollapse-9d22b072.js';
|
|
@@ -102,7 +102,7 @@ export { _ as OrSearch } from '../OrSearch-ddf244e6.js';
|
|
|
102
102
|
export { _ as OrSearchV3 } from '../OrSearch-2910207c.js';
|
|
103
103
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-00583234.js';
|
|
104
104
|
export { _ as OrSelect } from '../OrSelect-d271f7a3.js';
|
|
105
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
105
|
+
export { _ as OrSelectV3 } from '../OrSelect-4768c12b.js';
|
|
106
106
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-054b26c6.js';
|
|
107
107
|
export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-e07d338e.js';
|
|
108
108
|
export { _ as OrSkeletonCircle } from '../OrSkeletonCircle-c4bf0e34.js';
|
|
@@ -124,9 +124,9 @@ export { _ as OrTabV3 } from '../OrTab-a989b4fd.js';
|
|
|
124
124
|
export { _ as OrTabs } from '../OrTabs-62e7e478.js';
|
|
125
125
|
export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-778ce12d.js';
|
|
126
126
|
export { _ as OrTag } from '../OrTag-ce728fad.js';
|
|
127
|
-
export { _ as OrTagInputV3 } from '../OrTagInput-
|
|
127
|
+
export { _ as OrTagInputV3 } from '../OrTagInput-c4110c0b.js';
|
|
128
128
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-bf15f5ad.js';
|
|
129
|
-
export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-
|
|
129
|
+
export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-f6434f9b.js';
|
|
130
130
|
export { _ as OrTeleport } from '../OrTeleport.vue2-f0c16c71.js';
|
|
131
131
|
export { _ as OrTeleportV3 } from '../OrTeleport.vue2-9eb0eaee.js';
|
|
132
132
|
export { _ as OrTextV3 } from '../OrText-44449e7b.js';
|
|
@@ -208,7 +208,7 @@ import '../codemirrorView-020fe885.js';
|
|
|
208
208
|
import 'prosemirror-state';
|
|
209
209
|
import 'prosemirror-commands';
|
|
210
210
|
import 'lodash/keyBy';
|
|
211
|
-
import '../OrSelectMultipleControl-
|
|
211
|
+
import '../OrSelectMultipleControl-685d5af4.js';
|
|
212
212
|
import '../isEqualValue-f8bf73d9.js';
|
|
213
213
|
import '../OrSelectPlaceholder-f36f4e40.js';
|
|
214
214
|
import '../OrSelectControlInput-28c226f8.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { Extension } from '@codemirror/state';
|
|
3
2
|
import { EditorView } from '@codemirror/view';
|
|
3
|
+
import { Extension } from '@codemirror/state';
|
|
4
4
|
import { CodeLanguage } from './props';
|
|
5
5
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
7
6
|
editorView: EditorView;
|
|
7
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
8
8
|
control: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
9
9
|
[x: string]: ((...args: any[]) => any) | null;
|
|
10
10
|
} | string[], {} & {}, {
|
|
@@ -136,8 +136,8 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
136
136
|
} & {} & {
|
|
137
137
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
138
138
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
139
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
140
139
|
editorView: EditorView;
|
|
140
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
141
141
|
control: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
142
142
|
[x: string]: ((...args: any[]) => any) | null;
|
|
143
143
|
} | string[], {} & {}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-
|
|
1
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from '../../OrCode-c37dabe7.js';
|
|
2
2
|
export { lintGutter, linter } from '@codemirror/lint';
|
|
3
3
|
export { javascript } from '@codemirror/lang-javascript';
|
|
4
4
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-4768c12b.js';
|
|
2
2
|
export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-65ebcf4d.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-06d651cf.js';
|
|
@@ -36,12 +36,12 @@ import '../../OrInput-ac6484dd.js';
|
|
|
36
36
|
import '../../useValidationAttributes-d1abbe34.js';
|
|
37
37
|
import '../../OrLoader-784e2060.js';
|
|
38
38
|
import '../../OrMenuItem-fbe3e8e4.js';
|
|
39
|
-
import '../../OrTags-
|
|
39
|
+
import '../../OrTags-f6434f9b.js';
|
|
40
40
|
import '../../useOverflow-e91d2314.js';
|
|
41
41
|
import '../../OrButton-8d1efd4a.js';
|
|
42
42
|
import '../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
|
|
43
43
|
import '../../OrTag-bf15f5ad.js';
|
|
44
|
-
import '../../OrSelectMultipleControl-
|
|
44
|
+
import '../../OrSelectMultipleControl-685d5af4.js';
|
|
45
45
|
import '../../isEqualValue-f8bf73d9.js';
|
|
46
46
|
import '../../OrSelectPlaceholder-f36f4e40.js';
|
|
47
47
|
import '../../OrSelectControlInput-28c226f8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-
|
|
1
|
+
export { _ as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-685d5af4.js';
|
|
2
2
|
export { _ as OrSelectSingleControl } from '../../../OrSelectSingleControl-8ca0d898.js';
|
|
3
3
|
export { _ as OrSelectPlaceholder } from '../../../OrSelectPlaceholder-f36f4e40.js';
|
|
4
4
|
import 'vue-demi';
|
|
@@ -10,7 +10,7 @@ import '../../../isEqualValue-f8bf73d9.js';
|
|
|
10
10
|
import '../../../useProxyModelValue-940010d2.js';
|
|
11
11
|
import '@onereach/styles/tailwind/plugins/core';
|
|
12
12
|
import '@onereach/styles/tailwind.config.json';
|
|
13
|
-
import '../../../OrTags-
|
|
13
|
+
import '../../../OrTags-f6434f9b.js';
|
|
14
14
|
import '../../../useOverflow-e91d2314.js';
|
|
15
15
|
import '../../../OrButton-8d1efd4a.js';
|
|
16
16
|
import '../../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-
|
|
1
|
+
export { _ as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-685d5af4.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '../../../../dom-aecadd9a.js';
|
|
@@ -8,7 +8,7 @@ import '../../../../isEqualValue-f8bf73d9.js';
|
|
|
8
8
|
import '../../../../useProxyModelValue-940010d2.js';
|
|
9
9
|
import '@onereach/styles/tailwind/plugins/core';
|
|
10
10
|
import '@onereach/styles/tailwind.config.json';
|
|
11
|
-
import '../../../../OrTags-
|
|
11
|
+
import '../../../../OrTags-f6434f9b.js';
|
|
12
12
|
import '../../../../useOverflow-e91d2314.js';
|
|
13
13
|
import '../../../../OrButton-8d1efd4a.js';
|
|
14
14
|
import '../../../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { TagsOverflow } from '../or-tags-v3';
|
|
3
|
+
import { TagObject } from '../or-tags-v3/types';
|
|
3
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
6
|
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
@@ -34,6 +35,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
34
35
|
};
|
|
35
36
|
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<string[]>;
|
|
36
37
|
draftModelValue: import("@vue/composition-api").Ref<string>;
|
|
38
|
+
tagsItems: import("@vue/composition-api").ComputedRef<TagObject[]>;
|
|
37
39
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
38
40
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
39
41
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
@@ -183,6 +185,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
183
185
|
};
|
|
184
186
|
proxyModelValue: import("../../hooks").UseProxyModelValueReturn<string[]>;
|
|
185
187
|
draftModelValue: import("@vue/composition-api").Ref<string>;
|
|
188
|
+
tagsItems: import("@vue/composition-api").ComputedRef<TagObject[]>;
|
|
186
189
|
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
187
190
|
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
188
191
|
activated: import("@vue/composition-api").Ref<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { _ as OrTagInputV3 } from '../../OrTagInput-
|
|
1
|
+
export { _ as OrTagInputV3 } from '../../OrTagInput-c4110c0b.js';
|
|
2
2
|
export { I as TagInputSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-65ebcf4d.js';
|
|
3
|
-
import 'vue-demi';
|
|
4
3
|
import '@vueuse/core';
|
|
4
|
+
import 'vue-demi';
|
|
5
5
|
import '../../useIdAttribute-859439f0.js';
|
|
6
6
|
import '../../dom-aecadd9a.js';
|
|
7
7
|
import 'lodash/isElement';
|
|
@@ -28,10 +28,10 @@ import 'portal-vue';
|
|
|
28
28
|
import '../../useTheme-0ef25778.js';
|
|
29
29
|
import '../../OrInputBox-140c344d.js';
|
|
30
30
|
import '../../OrLabel-caf02dc4.js';
|
|
31
|
-
import '../../
|
|
31
|
+
import '../../OrTag-bf15f5ad.js';
|
|
32
|
+
import '../../OrTags-f6434f9b.js';
|
|
32
33
|
import '../../useOverflow-e91d2314.js';
|
|
33
34
|
import '../../OrButton-8d1efd4a.js';
|
|
34
35
|
import '../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
|
|
35
36
|
import '../../OrLoader-784e2060.js';
|
|
36
|
-
import '../../OrTag-bf15f5ad.js';
|
|
37
37
|
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export type Tag =
|
|
3
|
-
export
|
|
1
|
+
import { OrTag } from '../or-tag';
|
|
2
|
+
export type Tag = string | TagObject;
|
|
3
|
+
export type TagObject = {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string | number | object;
|
|
6
|
-
|
|
6
|
+
tagProps?: InstanceType<typeof OrTag>['$props'];
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue2").ComponentOptions<import("vue2").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("vue").ComponentOptions<import("vue").default, im
|
|
|
20
20
|
required: boolean;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
|
-
}>> & Omit<import("
|
|
23
|
+
}>> & Omit<import("vue2").VueConstructor<import("vue2").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, {}, {}, {}, {}, {}, {
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export { lintGutter, linter } from '@codemirror/lint';
|
|
|
24
24
|
export { javascript } from '@codemirror/lang-javascript';
|
|
25
25
|
export { json, jsonParseLinter } from '@codemirror/lang-json';
|
|
26
26
|
export { html } from '@codemirror/lang-html';
|
|
27
|
-
export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-
|
|
27
|
+
export { C as CodeLanguage, _ as OrCodeV3 } from './OrCode-c37dabe7.js';
|
|
28
28
|
export { EditorView } from '@codemirror/view';
|
|
29
29
|
export { EditorState } from '@codemirror/state';
|
|
30
30
|
export { _ as OrCollapse } from './OrCollapse-9d22b072.js';
|
|
@@ -102,7 +102,7 @@ export { _ as OrSearch } from './OrSearch-ddf244e6.js';
|
|
|
102
102
|
export { _ as OrSearchV3 } from './OrSearch-2910207c.js';
|
|
103
103
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-00583234.js';
|
|
104
104
|
export { _ as OrSelect } from './OrSelect-d271f7a3.js';
|
|
105
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
105
|
+
export { _ as OrSelectV3 } from './OrSelect-4768c12b.js';
|
|
106
106
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-054b26c6.js';
|
|
107
107
|
export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from './OrSidebar-e07d338e.js';
|
|
108
108
|
export { _ as OrSkeletonCircle } from './OrSkeletonCircle-c4bf0e34.js';
|
|
@@ -124,9 +124,9 @@ export { _ as OrTabV3 } from './OrTab-a989b4fd.js';
|
|
|
124
124
|
export { _ as OrTabs } from './OrTabs-62e7e478.js';
|
|
125
125
|
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-778ce12d.js';
|
|
126
126
|
export { _ as OrTag } from './OrTag-ce728fad.js';
|
|
127
|
-
export { _ as OrTagInputV3 } from './OrTagInput-
|
|
127
|
+
export { _ as OrTagInputV3 } from './OrTagInput-c4110c0b.js';
|
|
128
128
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-bf15f5ad.js';
|
|
129
|
-
export { _ as OrTagsV3, T as TagsOverflow } from './OrTags-
|
|
129
|
+
export { _ as OrTagsV3, T as TagsOverflow } from './OrTags-f6434f9b.js';
|
|
130
130
|
export { _ as OrTeleport } from './OrTeleport.vue2-f0c16c71.js';
|
|
131
131
|
export { _ as OrTeleportV3 } from './OrTeleport.vue2-9eb0eaee.js';
|
|
132
132
|
export { _ as OrTextV3 } from './OrText-44449e7b.js';
|
|
@@ -210,7 +210,7 @@ import './codemirrorView-020fe885.js';
|
|
|
210
210
|
import 'prosemirror-state';
|
|
211
211
|
import 'prosemirror-commands';
|
|
212
212
|
import 'lodash/keyBy';
|
|
213
|
-
import './OrSelectMultipleControl-
|
|
213
|
+
import './OrSelectMultipleControl-685d5af4.js';
|
|
214
214
|
import './OrSelectPlaceholder-f36f4e40.js';
|
|
215
215
|
import './OrSelectControlInput-28c226f8.js';
|
|
216
216
|
import './OrSelectSingleControl-8ca0d898.js';
|
|
@@ -7,9 +7,9 @@ import '@onereach/styles/tailwind/plugins/core';
|
|
|
7
7
|
import { u as useTheme } from './useTheme-0ef25778.js';
|
|
8
8
|
import { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
|
|
9
9
|
import { basicSetup } from 'codemirror';
|
|
10
|
+
import { keymap, EditorView } from '@codemirror/view';
|
|
10
11
|
import { indentWithTab } from '@codemirror/commands';
|
|
11
12
|
import { Compartment, EditorState } from '@codemirror/state';
|
|
12
|
-
import { keymap, EditorView } from '@codemirror/view';
|
|
13
13
|
import { s as script$7 } from './OrIconButton-13fd3f96.js';
|
|
14
14
|
import { s as script$6 } from './OrModal-33100f1a.js';
|
|
15
15
|
import { s as script$2 } from './OrError-69bd7f6a.js';
|
|
@@ -18,6 +18,16 @@ import { s as script$4 } from './OrInputBox-8c1a29dd.js';
|
|
|
18
18
|
import { s as script$5 } from './OrLabel-40af976e.js';
|
|
19
19
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode, withDirectives, createBlock, createCommentVNode, vShow, withModifiers, createSlots } from 'vue';
|
|
20
20
|
|
|
21
|
+
var CodeLanguage;
|
|
22
|
+
(function (CodeLanguage) {
|
|
23
|
+
CodeLanguage["HTML"] = "html";
|
|
24
|
+
CodeLanguage["CSS"] = "css";
|
|
25
|
+
CodeLanguage["JS"] = "js";
|
|
26
|
+
CodeLanguage["TS"] = "ts";
|
|
27
|
+
CodeLanguage["JSON"] = "json";
|
|
28
|
+
CodeLanguage["MD"] = "md";
|
|
29
|
+
})(CodeLanguage || (CodeLanguage = {}));
|
|
30
|
+
|
|
21
31
|
const Code = [
|
|
22
32
|
// Layout
|
|
23
33
|
'layout-column',
|
|
@@ -166,16 +176,6 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
176
|
script$1.render = render$1;
|
|
167
177
|
script$1.__file = "src/components/or-code-v3/partials/OrCodeControl.vue";
|
|
168
178
|
|
|
169
|
-
var CodeLanguage;
|
|
170
|
-
(function (CodeLanguage) {
|
|
171
|
-
CodeLanguage["HTML"] = "html";
|
|
172
|
-
CodeLanguage["CSS"] = "css";
|
|
173
|
-
CodeLanguage["JS"] = "js";
|
|
174
|
-
CodeLanguage["TS"] = "ts";
|
|
175
|
-
CodeLanguage["JSON"] = "json";
|
|
176
|
-
CodeLanguage["MD"] = "md";
|
|
177
|
-
})(CodeLanguage || (CodeLanguage = {}));
|
|
178
|
-
|
|
179
179
|
var script = defineComponent({
|
|
180
180
|
components: {
|
|
181
181
|
OrModal: script$6,
|
|
@@ -229,7 +229,7 @@ var script = defineComponent({
|
|
|
229
229
|
default: true
|
|
230
230
|
}
|
|
231
231
|
},
|
|
232
|
-
emits: ['update:modelValue', '
|
|
232
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
233
233
|
expose: ['root', 'editorView', 'control', 'fullscreenControl', 'modal', 'focus', 'blur'],
|
|
234
234
|
setup(props, context) {
|
|
235
235
|
// Refs
|
|
@@ -284,9 +284,6 @@ var script = defineComponent({
|
|
|
284
284
|
// #region Codemirror
|
|
285
285
|
const theme = useTheme();
|
|
286
286
|
const defaultExtensions = [basicSetup, keymap.of([indentWithTab]), EditorState.readOnly.of(props.readonly), EditorView.editable.of(!props.disabled), EditorView.domEventHandlers({
|
|
287
|
-
input: event => {
|
|
288
|
-
context.emit('input', event);
|
|
289
|
-
},
|
|
290
287
|
keydown: event => {
|
|
291
288
|
context.emit('keydown', event);
|
|
292
289
|
},
|
|
@@ -301,7 +298,6 @@ var script = defineComponent({
|
|
|
301
298
|
}
|
|
302
299
|
}), EditorView.theme({
|
|
303
300
|
'&': {
|
|
304
|
-
overflow: 'hidden',
|
|
305
301
|
color: theme.textColor['on-background'],
|
|
306
302
|
backgroundColor: theme.backgroundColor['background']
|
|
307
303
|
},
|
|
@@ -317,8 +313,7 @@ var script = defineComponent({
|
|
|
317
313
|
'.cm-gutters': {
|
|
318
314
|
color: theme.textColor['on-background'],
|
|
319
315
|
backgroundColor: theme.backgroundColor['primary-opacity-0-12'],
|
|
320
|
-
borderColor: theme.borderColor['outline']
|
|
321
|
-
backdropFilter: 'blur(2px)'
|
|
316
|
+
borderColor: theme.borderColor['outline']
|
|
322
317
|
},
|
|
323
318
|
'.cm-activeLineGutter, .cm-activeLine': {
|
|
324
319
|
backgroundColor: theme.backgroundColor['primary-opacity-0-08']
|
|
@@ -394,8 +389,8 @@ var script = defineComponent({
|
|
|
394
389
|
editorView.destroy();
|
|
395
390
|
});
|
|
396
391
|
return {
|
|
397
|
-
root,
|
|
398
392
|
editorView,
|
|
393
|
+
root,
|
|
399
394
|
control,
|
|
400
395
|
fullscreenControl,
|
|
401
396
|
modal,
|
|
@@ -438,8 +433,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
433
|
_: 3 /* FORWARDED */
|
|
439
434
|
}, 8 /* PROPS */, ["control-id", "label", "hint", "error", "disabled", "readonly"]), createVNode(_component_OrModal, {
|
|
440
435
|
ref: "modal",
|
|
441
|
-
"
|
|
442
|
-
|
|
436
|
+
size: "l",
|
|
437
|
+
"additional-styles": _ctx.modalStyles
|
|
443
438
|
}, createSlots({
|
|
444
439
|
header: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
|
|
445
440
|
|