@afeefa/vue-app 0.0.101 → 0.0.104

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.101
1
+ 0.0.104
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.101",
3
+ "version": "0.0.104",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -113,6 +113,15 @@
113
113
  :editor="editor"
114
114
  :class="['a-rich-text-editor', {editorFocus}]"
115
115
  />
116
+ <v-text-field
117
+ v-show="false"
118
+ ref="input"
119
+ v-model="currentValueStripped"
120
+ :label="label"
121
+ :rules="validationRules"
122
+ v-bind="$attrs"
123
+ v-on="$listeners"
124
+ />
116
125
  </div>
117
126
  </template>
118
127
 
@@ -137,7 +146,7 @@ import { Color } from '@tiptap/extension-color'
137
146
  import Highlight from '@tiptap/extension-highlight'
138
147
 
139
148
  @Component({
140
- props: ['value', 'validator', 'focus'],
149
+ props: ['value', 'validator', 'focus', 'label'],
141
150
  components: {
142
151
  EditorContent
143
152
  }
@@ -167,9 +176,6 @@ export default class ARichTextArea extends Vue {
167
176
  mounted () {
168
177
  this.editorFocus = !!this.focus
169
178
 
170
- if (this.validator) {
171
- this.$refs.input.validate(true)
172
- }
173
179
 
174
180
  this.editor = new Editor({
175
181
  content: this.internalValue,
@@ -230,6 +236,12 @@ export default class ARichTextArea extends Vue {
230
236
  }
231
237
  return this.validator.getParams().max || false
232
238
  }
239
+
240
+ get currentValueStripped () {
241
+ if (this.editor) {
242
+ return this.editor.state.doc.textContent
243
+ }
244
+ }
233
245
  }
234
246
  </script>
235
247
 
@@ -2,6 +2,8 @@
2
2
  <a-rich-text-area
3
3
  v-model="model[name]"
4
4
  v-bind="$attrs"
5
+ :validator="validator"
6
+ :label="label"
5
7
  v-on="$listeners"
6
8
  >
7
9
  <template #buttons>
@@ -1,10 +1,9 @@
1
1
  <template>
2
2
  <a-row
3
- v-if="numPages > 1"
4
3
  gap="8"
5
4
  >
6
5
  <a-pagination
7
- v-if="count"
6
+ v-if="count && numPages > 1"
8
7
  v-model="filter.value"
9
8
  :length="numPages"
10
9
  :total-visible="_totalVisible"
@@ -60,7 +60,7 @@
60
60
  </div>
61
61
  </div>
62
62
 
63
- <a-context-menu triggerIcon="$dotsVerticalIcon">
63
+ <a-context-menu>
64
64
  <a-context-menu-item
65
65
  :to="{name: 'settings', params: {accountId: account.id}}"
66
66
  >