glib-web 3.0.2 → 3.0.3
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.
|
@@ -31,12 +31,13 @@ export default {
|
|
|
31
31
|
},
|
|
32
32
|
childSpec(childView) {
|
|
33
33
|
const cls = Object.assign({}, childView)
|
|
34
|
+
cls.styleClasses ||= []
|
|
34
35
|
if (this.activeClass(cls)) {
|
|
35
36
|
if (!cls.styleClasses.includes('radio--active')) {
|
|
36
37
|
cls.styleClasses.push('radio--active')
|
|
37
38
|
}
|
|
38
39
|
} else {
|
|
39
|
-
cls.styleClasses =
|
|
40
|
+
cls.styleClasses = cls.styleClasses.filter((v) => v != 'radio--active')
|
|
40
41
|
}
|
|
41
42
|
return cls;
|
|
42
43
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
use-custom-image-handler :editor-options="editorSettings" @text-change="onRichTextEditorChanged"
|
|
13
13
|
@image-added="uploadImage" /> -->
|
|
14
14
|
<QuillEditor v-if="!rawMode" ref="quilEditor" theme="snow" :toolbar="customToolbar" :content="richEditorValue"
|
|
15
|
-
contentType="html" :modules="modules" @textChange="onRichTextEditorChanged" />
|
|
15
|
+
contentType="html" :modules="modules" @textChange="onRichTextEditorChanged" class="rich-editor" />
|
|
16
16
|
<!-- Hide these fields but don't remove them because these are the values that will get submitted. -->
|
|
17
17
|
<div :style="{ display: rawMode ? 'block' : 'none' }">
|
|
18
|
-
<v-textarea
|
|
18
|
+
<v-textarea class="raw-editor" v-model="rawEditorValue" :style="$styles()" :class="$classes()"
|
|
19
19
|
:outlined="$classes().includes('outlined') || null" @input="onRawTextEditorChanged"></v-textarea>
|
|
20
20
|
<v-text-field v-for="(imageKey, index) in imageKeys" :key="index" :label="`Image ${index + 1}`" :style="$styles()"
|
|
21
21
|
:outlined="$classes().includes('outlined') || null" type="text" :name="imageUploader.name"
|
|
@@ -348,8 +348,8 @@ export default {
|
|
|
348
348
|
z-index: 99;
|
|
349
349
|
background-color: white;
|
|
350
350
|
} */
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
.rich-editor,
|
|
352
|
+
.raw-editor {
|
|
353
353
|
height: 350px;
|
|
354
354
|
}
|
|
355
355
|
</style>
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
<v-textarea v-model="fieldModel" :label="spec.label" :name="fieldName" :hint="spec.hint"
|
|
4
4
|
:placeholder="spec.placeholder" :maxlength="spec.maxLength || 255" :disabled="spec.readOnly" :height="height"
|
|
5
5
|
:rules="$validation()" counter :outlined="$classes().includes('outlined')"
|
|
6
|
-
:no-resize="$classes().includes('no-resize')" validate-on="blur" :variant="variant"
|
|
6
|
+
:no-resize="$classes().includes('no-resize')" validate-on="blur" :variant="variant"
|
|
7
|
+
persistent-placeholder></v-textarea>
|
|
7
8
|
<input v-if="spec.readOnly" type="hidden" :name="fieldName" :value="fieldModel" />
|
|
8
9
|
</div>
|
|
9
10
|
</template>
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
:small="itemClasses(item).includes('small') || null" :large="itemClasses(item).includes('large')"
|
|
7
7
|
:hide-dot="item.hide_dot" fill-dot>
|
|
8
8
|
<template v-slot:icon>
|
|
9
|
-
<div :class="
|
|
10
|
-
|
|
11
|
-
">
|
|
9
|
+
<div :class="itemClasses(item).includes('outlined') ? 'outlined-dots' : ''
|
|
10
|
+
">
|
|
12
11
|
<div v-if="item.text" class="number-circle" :style="{ color: item.color }">
|
|
13
12
|
{{ item.text }}
|
|
14
13
|
</div>
|
|
@@ -95,7 +94,7 @@ export default {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
.outlined .v-timeline-item {
|
|
98
|
-
|
|
97
|
+
:deep(.v-timeline-item__dot) {
|
|
99
98
|
box-shadow: none;
|
|
100
99
|
}
|
|
101
100
|
}
|