rb-document-form-constructor 0.8.90 → 0.8.92

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rb-document-form-constructor",
3
- "version": "0.8.90",
3
+ "version": "0.8.92",
4
4
  "description": "",
5
5
  "main": "dist/rb-document-form-constructor.ssr.js",
6
6
  "browser": "dist/rb-document-form-constructor.esm.js",
@@ -50,7 +50,6 @@
50
50
  "sass": "^1.32.0",
51
51
  "sass-loader": "^10.1.0",
52
52
  "vue": "^2.6.14",
53
- "vue-i18n": "^8.28.2",
54
53
  "vue-template-compiler": "^2.6.14"
55
54
  },
56
55
  "peerDependencies": {
@@ -63,7 +63,6 @@
63
63
  import Vue from 'vue';
64
64
  import {UtFormConstructor} from '../utils/UtFormConstructor';
65
65
  import typeOf from 'typeof';
66
- import {i18n} from '../locales/i18n'
67
66
  import {UtFormConfig} from '@/utils/UtFormConfig';
68
67
 
69
68
  export default {
@@ -194,11 +193,11 @@ export default {
194
193
  let feedback = '';
195
194
 
196
195
  if (f.required && this.isValueEmpty(f.name)) {
197
- feedback += i18n.t('validate.required', {field: this.getDisplayField(f)});
196
+ feedback += this.getDisplayField(f);
198
197
  }
199
198
 
200
199
  if (f.type === 'integer' && this.isValueLessThanMin(f.name, f.input.propsData.min)) {
201
- feedback += `\n${i18n.t('validate.min', {min: f.input.propsData.min})}`;
200
+ feedback += f.input.propsData.min;
202
201
  }
203
202
  // TODO: Костыль так как на бэке нету типа memo
204
203
  if (f.input.type === 'b-form-textarea' && this.isValueLessThanMax(f.name, f.input.propsData?.max)) {
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <div class="rb-facets-sidebar">
3
+ <div class="d-flex justify-content-between align-items-center">
3
4
  <h4>Компоненты</h4>
5
+ <slot></slot>
6
+ </div>
4
7
  <b-form>
5
8
  <b-form-row>
6
9
  <b-col lg="12">