rb-document-form-constructor 0.7.5 → 0.7.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.
@@ -4936,7 +4936,20 @@ let fcInputs = {
4936
4936
  text: 'Дата',
4937
4937
  name: 'date',
4938
4938
  type: 'rb-date-picker-input',
4939
- props: {},
4939
+ props: {
4940
+ minDate: {
4941
+ type: 'date',
4942
+ default: new Date(),
4943
+ label: 'Установить минимальную дату',
4944
+ visible: true
4945
+ },
4946
+ maxDate: {
4947
+ type: 'date',
4948
+ default: null,
4949
+ label: 'Установить максимальную дату',
4950
+ visible: true
4951
+ }
4952
+ },
4940
4953
  propsData: {},
4941
4954
  defaultValue: null
4942
4955
  },
@@ -4944,7 +4957,20 @@ let fcInputs = {
4944
4957
  text: 'Дата и вермя',
4945
4958
  name: 'date',
4946
4959
  type: 'rb-date-picker-input',
4947
- props: {},
4960
+ props: {
4961
+ minDate: {
4962
+ type: 'date',
4963
+ default: null,
4964
+ label: 'Установить минимальную дату',
4965
+ visible: true
4966
+ },
4967
+ maxDate: {
4968
+ type: 'date',
4969
+ default: null,
4970
+ label: 'Установить максимальную дату',
4971
+ visible: true
4972
+ }
4973
+ },
4948
4974
  propsData: {},
4949
4975
  defaultValue: null
4950
4976
  },
@@ -11249,6 +11275,23 @@ var script$3 = {
11249
11275
  });
11250
11276
  });
11251
11277
  });
11278
+ },
11279
+
11280
+ setResolveValue(name, id) {
11281
+ let multiple = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
11282
+ name = name.substring(0, name.length - 2);
11283
+
11284
+ if (this.doc.name) {
11285
+ if (multiple) {
11286
+ this.doc.name.forEach((el, index) => {
11287
+ if (el.id === id) {
11288
+ this.doc.name[index] = null;
11289
+ }
11290
+ });
11291
+ } else {
11292
+ this.doc.name = null;
11293
+ }
11294
+ }
11252
11295
  }
11253
11296
 
11254
11297
  },
@@ -11929,6 +11972,8 @@ var script$1 = {
11929
11972
  getPropInputType(prop, propName) {
11930
11973
  if (['string', 'number'].includes(prop.type)) {
11931
11974
  return 'b-form-input';
11975
+ } else if (['date'].includes(prop.type)) {
11976
+ return 'rb-date-picker-input';
11932
11977
  } else {
11933
11978
  return 'rb-boolean-single-option-input';
11934
11979
  }