rb-document-form-constructor 0.6.4 → 0.6.7

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.
@@ -4983,6 +4983,15 @@ let fcInputs = {
4983
4983
  },
4984
4984
  propsData: {},
4985
4985
  defaultValue: null
4986
+ },
4987
+ email: {
4988
+ text: 'Email',
4989
+ name: 'email',
4990
+ type: 'rb-email-input',
4991
+ props: {},
4992
+ propsData: {},
4993
+ defaultValue: [],
4994
+ multiple: true
4986
4995
  }
4987
4996
  };
4988
4997
  let fcPrimitiveInputs = {
@@ -4995,7 +5004,8 @@ let fcPrimitiveInputs = {
4995
5004
  long: [__clone(fcInputs.string), __clone(fcInputs.number)],
4996
5005
  date: [__clone(fcInputs.date)],
4997
5006
  datetime: [__clone(fcInputs.datetime)],
4998
- boolean: [__clone(fcInputs.boolean)]
5007
+ boolean: [__clone(fcInputs.boolean)],
5008
+ email: [__clone(fcInputs.email)]
4999
5009
  };
5000
5010
  let fcDictInputs = [];
5001
5011
  let fcRefInputs = {};
@@ -11213,8 +11223,10 @@ var script$3 = {
11213
11223
  },
11214
11224
 
11215
11225
  mounted() {
11216
- this.execApplyDefaultValues();
11217
- this.execApplyDefaultValRule();
11226
+ this.$nextTick(() => {
11227
+ this.execApplyDefaultValues();
11228
+ this.execApplyDefaultValRule();
11229
+ });
11218
11230
  },
11219
11231
 
11220
11232
  activated() {
@@ -11857,9 +11869,13 @@ var script$1 = {
11857
11869
  }
11858
11870
  },
11859
11871
 
11860
- field() {
11861
- this.$emit('input', this.field);
11862
- this.$emit('change', this.field);
11872
+ field: {
11873
+ handler() {
11874
+ this.$emit('input', this.field);
11875
+ this.$emit('change', this.field);
11876
+ },
11877
+
11878
+ deep: true
11863
11879
  },
11864
11880
 
11865
11881
  currentInputName() {
@@ -12379,6 +12395,11 @@ var script = {
12379
12395
  newIndex
12380
12396
  } = event;
12381
12397
  let field = event.item._underlying_vm_;
12398
+
12399
+ if (!field.hasOwnProperty('defaultValue')) {
12400
+ field.defaultValue = null;
12401
+ }
12402
+
12382
12403
  let found = this.multipleFieldAreOnFormConfig(field);
12383
12404
 
12384
12405
  if (found) {