rb-document-form-constructor 0.9.22 → 0.9.24

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.
@@ -828,7 +828,7 @@ var __vue_inject_styles__$5 = undefined;
828
828
  var __vue_scope_id__$5 = undefined;
829
829
  /* module identifier */
830
830
 
831
- var __vue_module_identifier__$5 = "data-v-779f90b2";
831
+ var __vue_module_identifier__$5 = "data-v-4f837662";
832
832
  /* functional template */
833
833
 
834
834
  var __vue_is_functional_template__$5 = false;
@@ -6400,7 +6400,7 @@ var __vue_inject_styles__$4 = undefined;
6400
6400
  var __vue_scope_id__$4 = undefined;
6401
6401
  /* module identifier */
6402
6402
 
6403
- var __vue_module_identifier__$4 = "data-v-6cf21488";
6403
+ var __vue_module_identifier__$4 = "data-v-0746865a";
6404
6404
  /* functional template */
6405
6405
 
6406
6406
  var __vue_is_functional_template__$4 = false;
@@ -6478,17 +6478,79 @@ var _typeof = function(object) {
6478
6478
  },
6479
6479
  data: function data() {
6480
6480
  return {
6481
- validationState: {}
6481
+ validationState: {},
6482
+ systemFieldsValues: {}
6482
6483
  };
6483
6484
  },
6484
6485
  watch: {
6485
6486
  formConfig: function formConfig() {
6486
6487
  this.validationState = {};
6488
+ this.systemFieldsValues = {};
6487
6489
  this.execApplyDefaultValues();
6488
6490
  this.execApplyDefaultValRule();
6489
6491
  }
6490
6492
  },
6491
6493
  methods: {
6494
+ isSystemField: function isSystemField(field) {
6495
+ return field.isSystem === true;
6496
+ },
6497
+ getFieldValue: function getFieldValue(field) {
6498
+ if (this.isSystemField(field)) {
6499
+ return this.systemFieldsValues[field.name];
6500
+ }
6501
+
6502
+ return this.doc[field.name];
6503
+ },
6504
+ setFieldValue: function setFieldValue(field, value) {
6505
+ if (this.isSystemField(field)) {
6506
+ this.$set(this.systemFieldsValues, field.name, value);
6507
+ } else {
6508
+ this.$set(this.doc, field.name, value);
6509
+ }
6510
+ },
6511
+ onFieldInput: function onFieldInput(event, field) {
6512
+ var _event$target;
6513
+
6514
+ var value = (event === null || event === void 0 ? void 0 : (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.value) !== undefined ? event.target.value : event;
6515
+ this.setFieldValue(field, value);
6516
+
6517
+ if (this.isSystemField(field)) {
6518
+ this.$emit('isSystemFieldChange', {
6519
+ event: 'input',
6520
+ fieldName: field.name,
6521
+ field: field,
6522
+ value: value
6523
+ });
6524
+ }
6525
+
6526
+ this.onEventFired('input', event, field);
6527
+ },
6528
+ // onFieldChange(event, field) {
6529
+ // const value = event?.target?.value !== undefined ? event.target.value : event;
6530
+ // this.setFieldValue(field, value);
6531
+ // if (this.isSystemField(field)) {
6532
+ // this.$emit('isSystemFieldChange', {
6533
+ // event: 'input',
6534
+ // fieldName: field.name,
6535
+ // field: field,
6536
+ // value: value,
6537
+ // });
6538
+ // }
6539
+ // this.onEventFired('change', event, field);
6540
+ // },
6541
+ onFieldMounted: function onFieldMounted(event, field) {
6542
+ if (this.isSystemField(field)) {
6543
+ var value = this.getFieldValue(field);
6544
+ this.$emit('isSystemFieldChange', {
6545
+ event: 'mounted',
6546
+ fieldName: field.name,
6547
+ field: field,
6548
+ value: value
6549
+ });
6550
+ }
6551
+
6552
+ this.onEventFired('mounted', event, field);
6553
+ },
6492
6554
  getResolveValueName: function getResolveValueName(field) {
6493
6555
  if ((field.dict || field.ref) && !field.multiple) {
6494
6556
  return field.name.substring(0, field.name.length - 2);
@@ -6568,35 +6630,46 @@ var _typeof = function(object) {
6568
6630
  runRule: function runRule(rule, context) {
6569
6631
  UtFormConstructor.runRule(this.createRuleContext(context), rule.script);
6570
6632
  },
6571
- isValueEmpty: function isValueEmpty(fieldName) {
6572
- var _this$doc$fieldName;
6633
+ getFieldValueForValidation: function getFieldValueForValidation(field) {
6634
+ return this.isSystemField(field) ? this.systemFieldsValues[field.name] : this.doc[field.name];
6635
+ },
6636
+ isValueEmpty: function isValueEmpty(field) {
6637
+ var fieldName = typeof field === 'string' ? field : field.name;
6638
+ var fieldObj = typeof field === 'string' ? null : field;
6639
+ var value = fieldObj && this.isSystemField(fieldObj) ? this.systemFieldsValues[fieldName] : this.doc[fieldName];
6573
6640
 
6574
- if (this.doc[fieldName] == null) {
6641
+ if (value == null) {
6575
6642
  return true;
6576
6643
  }
6577
6644
 
6578
- if (Array.isArray(this.doc[fieldName]) && !((_this$doc$fieldName = this.doc[fieldName]) !== null && _this$doc$fieldName !== void 0 && _this$doc$fieldName.length)) {
6645
+ if (Array.isArray(value) && !(value !== null && value !== void 0 && value.length)) {
6579
6646
  return true;
6580
6647
  }
6581
6648
 
6582
- if (_typeof(this.doc[fieldName] === 'string') && this.doc[fieldName] === '') {
6649
+ if (_typeof(value === 'string') && value === '') {
6583
6650
  return true;
6584
6651
  }
6585
6652
 
6586
6653
  return false;
6587
6654
  },
6588
- isValueLessThanMax: function isValueLessThanMax(fieldname, max) {
6589
- if (this.doc[fieldname] && max) {
6590
- var _this$doc$fieldname;
6655
+ isValueLessThanMax: function isValueLessThanMax(field, max) {
6656
+ var fieldName = typeof field === 'string' ? field : field.name;
6657
+ var fieldObj = typeof field === 'string' ? null : field;
6658
+ var value = fieldObj && this.isSystemField(fieldObj) ? this.systemFieldsValues[fieldName] : this.doc[fieldName];
6591
6659
 
6592
- return ((_this$doc$fieldname = this.doc[fieldname]) === null || _this$doc$fieldname === void 0 ? void 0 : _this$doc$fieldname.length) > parseInt(max);
6660
+ if (value && max) {
6661
+ return (value === null || value === void 0 ? void 0 : value.length) > parseInt(max);
6593
6662
  }
6594
6663
 
6595
6664
  return false;
6596
6665
  },
6597
- isValueLessThanMin: function isValueLessThanMin(fieldname, min) {
6598
- if (this.doc[fieldname] && min) {
6599
- return parseInt(this.doc[fieldname]) < parseInt(min);
6666
+ isValueLessThanMin: function isValueLessThanMin(field, min) {
6667
+ var fieldName = typeof field === 'string' ? field : field.name;
6668
+ var fieldObj = typeof field === 'string' ? null : field;
6669
+ var value = fieldObj && this.isSystemField(fieldObj) ? this.systemFieldsValues[fieldName] : this.doc[fieldName];
6670
+
6671
+ if (value && min) {
6672
+ return parseInt(value) < parseInt(min);
6600
6673
  }
6601
6674
 
6602
6675
  return false;
@@ -6612,16 +6685,16 @@ var _typeof = function(object) {
6612
6685
 
6613
6686
  var feedback = '';
6614
6687
 
6615
- if (f.required && _this3.isValueEmpty(f.name)) {
6688
+ if (f.required && _this3.isValueEmpty(f)) {
6616
6689
  feedback += _this3.getDisplayField(f);
6617
6690
  }
6618
6691
 
6619
- if (f.type === 'integer' && _this3.isValueLessThanMin(f.name, f.input.propsData.min)) {
6692
+ if (f.type === 'integer' && _this3.isValueLessThanMin(f, f.input.propsData.min)) {
6620
6693
  feedback += f.input.propsData.min;
6621
6694
  } // TODO: Костыль так как на бэке нету типа memo
6622
6695
 
6623
6696
 
6624
- if (f.input.type === 'b-form-textarea' && _this3.isValueLessThanMax(f.name, (_f$input$propsData = f.input.propsData) === null || _f$input$propsData === void 0 ? void 0 : _f$input$propsData.max)) {
6697
+ if (f.input.type === 'b-form-textarea' && _this3.isValueLessThanMax(f, (_f$input$propsData = f.input.propsData) === null || _f$input$propsData === void 0 ? void 0 : _f$input$propsData.max)) {
6625
6698
  var _f$input$propsData2;
6626
6699
 
6627
6700
  feedback += "\n\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043B\u044F \u044D\u0442\u043E\u0433\u043E \u043F\u043E\u043B\u044F ".concat((_f$input$propsData2 = f.input.propsData) === null || _f$input$propsData2 === void 0 ? void 0 : _f$input$propsData2.max);
@@ -6636,13 +6709,16 @@ var _typeof = function(object) {
6636
6709
  }).join(', ');
6637
6710
  feedback = errors ? _this3.$t('validate.multiRequired', {
6638
6711
  field: errors
6639
- }) : _this3.isValueEmpty(f.name) ? _this3.getDisplayField(f) : '';
6712
+ }) : _this3.isValueEmpty(f) ? _this3.getDisplayField(f) : '';
6640
6713
  } // 🔥 Кастомная валидация для конкретного поля
6641
6714
 
6642
6715
 
6643
6716
  if (typeof f.validate === 'function') {
6644
- console.log(f, _this3.doc);
6645
- var customError = f.validate(_this3.doc[f.name], f, _this3.doc, _this3.formConfig);
6717
+ var fieldValue = _this3.getFieldValueForValidation(f);
6718
+
6719
+ var docForValidation = _this3.isSystemField(f) ? _objectSpread2(_objectSpread2({}, _this3.doc), {}, _defineProperty$1({}, f.name, fieldValue)) : _this3.doc;
6720
+ console.log(f, docForValidation);
6721
+ var customError = f.validate(fieldValue, f, docForValidation, _this3.formConfig);
6646
6722
 
6647
6723
  if (customError) {
6648
6724
  feedback += "\n".concat(customError);
@@ -6703,7 +6779,11 @@ var _typeof = function(object) {
6703
6779
  defValue = f.defaultValue == null ? null : f.defaultValue;
6704
6780
  }
6705
6781
 
6706
- _this4.$set(_this4.doc, f.name, f.defaultValue = defValue);
6782
+ if (_this4.isSystemField(f)) {
6783
+ _this4.$set(_this4.systemFieldsValues, f.name, f.defaultValue = defValue);
6784
+ } else {
6785
+ _this4.$set(_this4.doc, f.name, f.defaultValue = defValue);
6786
+ }
6707
6787
  }
6708
6788
  });
6709
6789
  });
@@ -6722,8 +6802,18 @@ var _typeof = function(object) {
6722
6802
  return rule.event === 'defaultValue';
6723
6803
  });
6724
6804
 
6725
- if (rule && !_this5.doc[f.name]) {
6726
- _this5.$set(_this5.doc, f.name, f.defaultValue = eval(rule.script));
6805
+ if (rule) {
6806
+ var currentValue = _this5.isSystemField(f) ? _this5.systemFieldsValues[f.name] : _this5.doc[f.name];
6807
+
6808
+ if (!currentValue) {
6809
+ var defValue = eval(rule.script);
6810
+
6811
+ if (_this5.isSystemField(f)) {
6812
+ _this5.$set(_this5.systemFieldsValues, f.name, f.defaultValue = defValue);
6813
+ } else {
6814
+ _this5.$set(_this5.doc, f.name, f.defaultValue = defValue);
6815
+ }
6816
+ }
6727
6817
  }
6728
6818
  }
6729
6819
  }
@@ -6739,7 +6829,8 @@ var _typeof = function(object) {
6739
6829
  },
6740
6830
  activated: function activated() {
6741
6831
  this.execApplyDefaultValues();
6742
- this.execApplyDefaultValRule();
6832
+ this.execApplyDefaultValRule(); // this.emitSystemFieldsMounted();
6833
+
6743
6834
  this.onGlobalEventFired('form-activated', this);
6744
6835
  }
6745
6836
  };/* script */
@@ -6810,6 +6901,7 @@ var __vue_render__$3 = function __vue_render__() {
6810
6901
  tag: "component",
6811
6902
  attrs: {
6812
6903
  "id": field.name,
6904
+ "value": _vm.getFieldValue(field),
6813
6905
  "disabled": !_vm.editable || !field.editable,
6814
6906
  "markForBackResolution": _vm.isResolvableField(field),
6815
6907
  "required": field.required,
@@ -6832,7 +6924,7 @@ var __vue_render__$3 = function __vue_render__() {
6832
6924
  return _vm.onEventFired('click', $event, field);
6833
6925
  },
6834
6926
  "input": function input($event) {
6835
- return _vm.onEventFired('input', $event, field);
6927
+ return _vm.onFieldInput($event, field);
6836
6928
  },
6837
6929
  "hook:created": function hookCreated($event) {
6838
6930
  return _vm.onEventFired('created', $event, field);
@@ -6844,15 +6936,8 @@ var __vue_render__$3 = function __vue_render__() {
6844
6936
  return _vm.onEventFired('activated', $event, field);
6845
6937
  },
6846
6938
  "hook:mounted": function hookMounted($event) {
6847
- return _vm.onEventFired('mounted', $event, field);
6939
+ return _vm.onFieldMounted($event, field);
6848
6940
  }
6849
- },
6850
- model: {
6851
- value: _vm.doc[field.name],
6852
- callback: function callback($$v) {
6853
- _vm.$set(_vm.doc, field.name, $$v);
6854
- },
6855
- expression: "doc[field.name]"
6856
6941
  }
6857
6942
  }, 'component', field.input.propsData, false))], 1)], 1)], 1) : _vm._e()];
6858
6943
  })], 2)];
@@ -6869,7 +6954,7 @@ var __vue_inject_styles__$3 = undefined;
6869
6954
  var __vue_scope_id__$3 = undefined;
6870
6955
  /* module identifier */
6871
6956
 
6872
- var __vue_module_identifier__$3 = "data-v-8a0c958c";
6957
+ var __vue_module_identifier__$3 = "data-v-3373ab2f";
6873
6958
  /* functional template */
6874
6959
 
6875
6960
  var __vue_is_functional_template__$3 = false;
@@ -7329,7 +7414,7 @@ var __vue_inject_styles__$2 = undefined;
7329
7414
  var __vue_scope_id__$2 = undefined;
7330
7415
  /* module identifier */
7331
7416
 
7332
- var __vue_module_identifier__$2 = "data-v-6383ddb8";
7417
+ var __vue_module_identifier__$2 = "data-v-cc4d6922";
7333
7418
  /* functional template */
7334
7419
 
7335
7420
  var __vue_is_functional_template__$2 = false;
@@ -7805,7 +7890,7 @@ var __vue_inject_styles__$1 = undefined;
7805
7890
  var __vue_scope_id__$1 = undefined;
7806
7891
  /* module identifier */
7807
7892
 
7808
- var __vue_module_identifier__$1 = "data-v-35b8e683";
7893
+ var __vue_module_identifier__$1 = "data-v-73d1842f";
7809
7894
  /* functional template */
7810
7895
 
7811
7896
  var __vue_is_functional_template__$1 = false;
@@ -7916,11 +8001,11 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
7916
8001
  },
7917
8002
  removeSection: function removeSection(section, index) {
7918
8003
  this.formConfig.sections.splice(index, 1);
7919
- /*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
7920
- onOk: (event, modal) => {
7921
- this.formConfig.sections.splice(index, 1);
7922
- UtModal.closeModal(modal);
7923
- }
8004
+ /*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
8005
+ onOk: (event, modal) => {
8006
+ this.formConfig.sections.splice(index, 1);
8007
+ UtModal.closeModal(modal);
8008
+ }
7924
8009
  });*/
7925
8010
  },
7926
8011
  multipleFieldAreOnFormConfig: function multipleFieldAreOnFormConfig(field) {
@@ -7966,7 +8051,7 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
7966
8051
 
7967
8052
  var found = this.multipleFieldAreOnFormConfig(field);
7968
8053
 
7969
- if (found) {
8054
+ if (found && !field.isSystem) {
7970
8055
  this.removeFieldFromColumn(field, this.columnTo, newIndex);
7971
8056
  this.resetDragVariables();
7972
8057
  this.$bvModal.msgBoxOk('На форме уже есть это поле', {
@@ -8245,7 +8330,7 @@ var __vue_inject_styles__ = undefined;
8245
8330
  var __vue_scope_id__ = undefined;
8246
8331
  /* module identifier */
8247
8332
 
8248
- var __vue_module_identifier__ = "data-v-72392df9";
8333
+ var __vue_module_identifier__ = "data-v-680aca5b";
8249
8334
  /* functional template */
8250
8335
 
8251
8336
  var __vue_is_functional_template__ = false;
@@ -1,3 +1,3 @@
1
- .cursor-pointer {
2
- cursor: pointer;
3
- }
1
+ .cursor-pointer {
2
+ cursor: pointer;
3
+ }
@@ -1,17 +1,17 @@
1
- // DocTemplateFacetList
2
- $rb-facet-list-border-color: $border-color !default;
3
-
4
- // DocTemplateConstructor
5
- $rb-doc-template-constructor-title-color: #333 !default;
6
- $rb-doc-template-constructor-title-font-size: 16px !default;
7
- $rb-doc-template-section-bg: #E9EAEA !default;
8
- $rb-doc-template-constructor-form-column-border-color: #D5D5D6;
9
-
10
- // DocTemplateFieldSidebar
11
- $rb-doc-template-field-sidebar-font-size-lg: 1rem !default;
12
- $rb-doc-template-field-sidebar-top: 72px !default;
13
- $rb-doc-template-field-sidebar-close-button-left: -46px !default;
14
-
15
- // DocForm
16
- $rb-doc-form-font-size-lg: 1rem !default;
17
- $rb-doc-form-legend-line-height: $line-height-base !default;
1
+ // DocTemplateFacetList
2
+ $rb-facet-list-border-color: $border-color !default;
3
+
4
+ // DocTemplateConstructor
5
+ $rb-doc-template-constructor-title-color: #333 !default;
6
+ $rb-doc-template-constructor-title-font-size: 16px !default;
7
+ $rb-doc-template-section-bg: #E9EAEA !default;
8
+ $rb-doc-template-constructor-form-column-border-color: #D5D5D6;
9
+
10
+ // DocTemplateFieldSidebar
11
+ $rb-doc-template-field-sidebar-font-size-lg: 1rem !default;
12
+ $rb-doc-template-field-sidebar-top: 72px !default;
13
+ $rb-doc-template-field-sidebar-close-button-left: -46px !default;
14
+
15
+ // DocForm
16
+ $rb-doc-form-font-size-lg: 1rem !default;
17
+ $rb-doc-form-legend-line-height: $line-height-base !default;
@@ -1,36 +1,36 @@
1
- .rb-doc-form {
2
- h4 {
3
- font-weight: bold;
4
- font-size: $rb-doc-form-font-size-lg;
5
- }
6
-
7
- .rb-form-section {
8
- padding-bottom: 10px;
9
- padding-top: 10px;
10
- }
11
-
12
- .rb-form-column {
13
- flex: 1;
14
- }
15
-
16
- .rb-form-column:first-child {
17
- margin-left: 0;
18
- }
19
-
20
- .rb-form-column:last-child {
21
- margin-right: 0;
22
- }
23
-
24
- .rb-form-column {
25
- margin-left: 10px;
26
- margin-right: 10px;
27
- }
28
-
29
- legend.col-form-label {
30
- max-width: 100%;
31
- display: block;
32
- overflow: hidden;
33
- text-overflow: ellipsis;
34
- white-space: nowrap;
35
- }
36
- }
1
+ .rb-doc-form {
2
+ h4 {
3
+ font-weight: bold;
4
+ font-size: $rb-doc-form-font-size-lg;
5
+ }
6
+
7
+ .rb-form-section {
8
+ padding-bottom: 10px;
9
+ padding-top: 10px;
10
+ }
11
+
12
+ .rb-form-column {
13
+ flex: 1;
14
+ }
15
+
16
+ .rb-form-column:first-child {
17
+ margin-left: 0;
18
+ }
19
+
20
+ .rb-form-column:last-child {
21
+ margin-right: 0;
22
+ }
23
+
24
+ .rb-form-column {
25
+ margin-left: 10px;
26
+ margin-right: 10px;
27
+ }
28
+
29
+ legend.col-form-label {
30
+ max-width: 100%;
31
+ display: block;
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ }
36
+ }
@@ -1,112 +1,112 @@
1
- .rb-doc-template-constructor {
2
- height: 100%;
3
-
4
- h4 {
5
- color: $rb-doc-template-constructor-title-color;
6
- font-weight: bold;
7
- font-size: $rb-doc-template-constructor-title-font-size;
8
- }
9
-
10
- .rb-form-constructor {
11
- height: 100%;
12
- overflow-y: auto;
13
- background-color: white;
14
- }
15
-
16
- .rb-constructor-toolbar {
17
- padding: 16px 16px 16px 16px;
18
- background-color: white;
19
- border-bottom: 1px solid $border-color;
20
-
21
- h4 {
22
- margin-bottom: 0;
23
- line-height: 38px;
24
- margin-right: 10px;
25
- }
26
-
27
- .btn {
28
- margin-left: 10px;
29
- }
30
- }
31
-
32
- .rb-constructor-body {
33
- padding: 16px;
34
-
35
- .card {
36
- border-width: 2px;
37
- border-style: dashed;
38
- background-color: $rb-doc-template-section-bg;
39
-
40
- .card-header, .card-body {
41
- background-color: $rb-doc-template-section-bg;
42
- border-color: $border-color;
43
-
44
- }
45
- }
46
-
47
- .rb-form-card {
48
- margin-bottom: 20px;
49
-
50
- .rb-form-column {
51
- flex: 1;
52
- }
53
-
54
- .card-header {
55
- border-bottom-width: 0;
56
- display: flex;
57
- flex-direction: row;
58
-
59
- .rb-text {
60
- font-size: 16px;
61
- line-height: 24px;
62
- font-weight: bold;
63
- }
64
-
65
- .rb-icon {
66
- line-height: 24px;
67
- font-size: 16px;
68
- }
69
- }
70
- }
71
-
72
- .rb-form-column {
73
- .form-group:hover {
74
- legend.col-form-label .rb-actions {
75
- visibility: visible;
76
- }
77
- }
78
-
79
- legend.col-form-label {
80
- font-size: $font-size-base;
81
- font-weight: bold;
82
- margin-bottom: 12px;
83
- display: flex;
84
- flex-direction: row;
85
- color: $rb-doc-template-constructor-title-color;
86
-
87
- .rb-text {
88
- flex: 1;
89
- }
90
-
91
- .rb-actions {
92
- visibility: hidden;
93
- }
94
- }
95
-
96
- .form-control:disabled,
97
- .btn.disabled {
98
- background-color: white;
99
- opacity: 1;
100
- }
101
- }
102
-
103
- .rb-form-column {
104
- padding: 10px;
105
- border: 2px dashed $rb-doc-template-constructor-form-column-border-color;
106
- }
107
-
108
- .rb-form-column:not(.rb-single-column) {
109
- margin: 0 10px;
110
- }
111
- }
112
- }
1
+ .rb-doc-template-constructor {
2
+ height: 100%;
3
+
4
+ h4 {
5
+ color: $rb-doc-template-constructor-title-color;
6
+ font-weight: bold;
7
+ font-size: $rb-doc-template-constructor-title-font-size;
8
+ }
9
+
10
+ .rb-form-constructor {
11
+ height: 100%;
12
+ overflow-y: auto;
13
+ background-color: white;
14
+ }
15
+
16
+ .rb-constructor-toolbar {
17
+ padding: 16px 16px 16px 16px;
18
+ background-color: white;
19
+ border-bottom: 1px solid $border-color;
20
+
21
+ h4 {
22
+ margin-bottom: 0;
23
+ line-height: 38px;
24
+ margin-right: 10px;
25
+ }
26
+
27
+ .btn {
28
+ margin-left: 10px;
29
+ }
30
+ }
31
+
32
+ .rb-constructor-body {
33
+ padding: 16px;
34
+
35
+ .card {
36
+ border-width: 2px;
37
+ border-style: dashed;
38
+ background-color: $rb-doc-template-section-bg;
39
+
40
+ .card-header, .card-body {
41
+ background-color: $rb-doc-template-section-bg;
42
+ border-color: $border-color;
43
+
44
+ }
45
+ }
46
+
47
+ .rb-form-card {
48
+ margin-bottom: 20px;
49
+
50
+ .rb-form-column {
51
+ flex: 1;
52
+ }
53
+
54
+ .card-header {
55
+ border-bottom-width: 0;
56
+ display: flex;
57
+ flex-direction: row;
58
+
59
+ .rb-text {
60
+ font-size: 16px;
61
+ line-height: 24px;
62
+ font-weight: bold;
63
+ }
64
+
65
+ .rb-icon {
66
+ line-height: 24px;
67
+ font-size: 16px;
68
+ }
69
+ }
70
+ }
71
+
72
+ .rb-form-column {
73
+ .form-group:hover {
74
+ legend.col-form-label .rb-actions {
75
+ visibility: visible;
76
+ }
77
+ }
78
+
79
+ legend.col-form-label {
80
+ font-size: $font-size-base;
81
+ font-weight: bold;
82
+ margin-bottom: 12px;
83
+ display: flex;
84
+ flex-direction: row;
85
+ color: $rb-doc-template-constructor-title-color;
86
+
87
+ .rb-text {
88
+ flex: 1;
89
+ }
90
+
91
+ .rb-actions {
92
+ visibility: hidden;
93
+ }
94
+ }
95
+
96
+ .form-control:disabled,
97
+ .btn.disabled {
98
+ background-color: white;
99
+ opacity: 1;
100
+ }
101
+ }
102
+
103
+ .rb-form-column {
104
+ padding: 10px;
105
+ border: 2px dashed $rb-doc-template-constructor-form-column-border-color;
106
+ }
107
+
108
+ .rb-form-column:not(.rb-single-column) {
109
+ margin: 0 10px;
110
+ }
111
+ }
112
+ }