rb-document-form-constructor 0.8.77 → 0.8.78

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.
@@ -1,16 +1,40 @@
1
- 'use strict';var Vue$1=require('vue');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var Vue__default=/*#__PURE__*/_interopDefaultLegacy(Vue$1);function ownKeys(object, enumerableOnly) {
1
+ 'use strict';var Vue$1=require('vue');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var Vue__default=/*#__PURE__*/_interopDefaultLegacy(Vue$1);function _iterableToArrayLimit(arr, i) {
2
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
+ if (null != _i) {
4
+ var _s,
5
+ _e,
6
+ _x,
7
+ _r,
8
+ _arr = [],
9
+ _n = !0,
10
+ _d = !1;
11
+ try {
12
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
13
+ if (Object(_i) !== _i) return;
14
+ _n = !1;
15
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
16
+ } catch (err) {
17
+ _d = !0, _e = err;
18
+ } finally {
19
+ try {
20
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
21
+ } finally {
22
+ if (_d) throw _e;
23
+ }
24
+ }
25
+ return _arr;
26
+ }
27
+ }
28
+ function ownKeys(object, enumerableOnly) {
2
29
  var keys = Object.keys(object);
3
-
4
30
  if (Object.getOwnPropertySymbols) {
5
31
  var symbols = Object.getOwnPropertySymbols(object);
6
32
  enumerableOnly && (symbols = symbols.filter(function (sym) {
7
33
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8
34
  })), keys.push.apply(keys, symbols);
9
35
  }
10
-
11
36
  return keys;
12
37
  }
13
-
14
38
  function _objectSpread2(target) {
15
39
  for (var i = 1; i < arguments.length; i++) {
16
40
  var source = null != arguments[i] ? arguments[i] : {};
@@ -20,11 +44,10 @@ function _objectSpread2(target) {
20
44
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
21
45
  });
22
46
  }
23
-
24
47
  return target;
25
48
  }
26
-
27
49
  function _defineProperty$1(obj, key, value) {
50
+ key = _toPropertyKey(key);
28
51
  if (key in obj) {
29
52
  Object.defineProperty(obj, key, {
30
53
  value: value,
@@ -35,48 +58,14 @@ function _defineProperty$1(obj, key, value) {
35
58
  } else {
36
59
  obj[key] = value;
37
60
  }
38
-
39
61
  return obj;
40
62
  }
41
-
42
63
  function _slicedToArray(arr, i) {
43
64
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
44
65
  }
45
-
46
66
  function _arrayWithHoles(arr) {
47
67
  if (Array.isArray(arr)) return arr;
48
68
  }
49
-
50
- function _iterableToArrayLimit(arr, i) {
51
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
52
-
53
- if (_i == null) return;
54
- var _arr = [];
55
- var _n = true;
56
- var _d = false;
57
-
58
- var _s, _e;
59
-
60
- try {
61
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
62
- _arr.push(_s.value);
63
-
64
- if (i && _arr.length === i) break;
65
- }
66
- } catch (err) {
67
- _d = true;
68
- _e = err;
69
- } finally {
70
- try {
71
- if (!_n && _i["return"] != null) _i["return"]();
72
- } finally {
73
- if (_d) throw _e;
74
- }
75
- }
76
-
77
- return _arr;
78
- }
79
-
80
69
  function _unsupportedIterableToArray(o, minLen) {
81
70
  if (!o) return;
82
71
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -85,23 +74,32 @@ function _unsupportedIterableToArray(o, minLen) {
85
74
  if (n === "Map" || n === "Set") return Array.from(o);
86
75
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
87
76
  }
88
-
89
77
  function _arrayLikeToArray(arr, len) {
90
78
  if (len == null || len > arr.length) len = arr.length;
91
-
92
79
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
93
-
94
80
  return arr2;
95
81
  }
96
-
97
82
  function _nonIterableRest() {
98
83
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
84
+ }
85
+ function _toPrimitive(input, hint) {
86
+ if (typeof input !== "object" || input === null) return input;
87
+ var prim = input[Symbol.toPrimitive];
88
+ if (prim !== undefined) {
89
+ var res = prim.call(input, hint || "default");
90
+ if (typeof res !== "object") return res;
91
+ throw new TypeError("@@toPrimitive must return a primitive value.");
92
+ }
93
+ return (hint === "string" ? String : Number)(input);
94
+ }
95
+ function _toPropertyKey(arg) {
96
+ var key = _toPrimitive(arg, "string");
97
+ return typeof key === "symbol" ? key : String(key);
99
98
  }var UtFormConfig = {
100
99
  findField: function findField(fieldName, formConfig) {
101
100
  if (!formConfig || !formConfig.sections) {
102
101
  return null;
103
102
  }
104
-
105
103
  var found = null;
106
104
  formConfig.sections.every(function (r) {
107
105
  if (r.columns) {
@@ -111,13 +109,11 @@ function _nonIterableRest() {
111
109
  found = f;
112
110
  }
113
111
  });
114
-
115
112
  if (found) {
116
113
  return false;
117
114
  }
118
115
  });
119
116
  }
120
-
121
117
  if (found) {
122
118
  return false;
123
119
  }
@@ -128,7 +124,6 @@ function _nonIterableRest() {
128
124
  if (!formConfig || !formConfig.sections) {
129
125
  return null;
130
126
  }
131
-
132
127
  var found = null;
133
128
  formConfig.sections.every(function (s) {
134
129
  if (s.columns) {
@@ -141,18 +136,15 @@ function _nonIterableRest() {
141
136
  }
142
137
  });
143
138
  }
144
-
145
139
  if (found) {
146
140
  return false;
147
141
  }
148
142
  });
149
-
150
143
  if (found) {
151
144
  return false;
152
145
  }
153
146
  });
154
147
  }
155
-
156
148
  if (found) {
157
149
  return false;
158
150
  }
@@ -190,27 +182,19 @@ function _nonIterableRest() {
190
182
  };var __clone = function __clone(data) {
191
183
  return JSON.parse(JSON.stringify(data));
192
184
  };
193
-
194
185
  var _assign = function __assign() {
195
186
  _assign = Object.assign || function __assign(t) {
196
187
  for (var s, i = 1, n = arguments.length; i < n; i++) {
197
188
  s = arguments[i];
198
-
199
- for (var p in s) {
200
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
201
- }
189
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
202
190
  }
203
-
204
191
  return t;
205
192
  };
206
-
207
193
  return _assign.apply(this, arguments);
208
194
  };
209
-
210
195
  var __mergeInputInMapOfArrays = function __mergeInputInMapOfArrays(inputs, formConfigInputs) {
211
196
  for (var dataType in formConfigInputs) {
212
197
  var foundInputs = inputs[dataType];
213
-
214
198
  if (foundInputs) {
215
199
  __mergeInputsInArray(foundInputs, formConfigInputs[dataType]);
216
200
  } else {
@@ -218,19 +202,16 @@ var __mergeInputInMapOfArrays = function __mergeInputInMapOfArrays(inputs, formC
218
202
  }
219
203
  }
220
204
  };
221
-
222
205
  var __mergeInputsInMap = function __mergeInputsInMap(inputs, formConfigInputs) {
223
206
  for (var name in formConfigInputs) {
224
207
  inputs[name] = _assign(inputs[name] ? inputs[name] : {}, formConfigInputs[name] ? formConfigInputs[name] : {});
225
208
  }
226
209
  };
227
-
228
210
  var __mergeInputsInArray = function __mergeInputsInArray(inputs, formConfigInputs) {
229
211
  formConfigInputs.forEach(function (input) {
230
212
  var index = inputs.findIndex(function (item) {
231
213
  return item.name === input.name;
232
214
  });
233
-
234
215
  if (index >= 0) {
235
216
  inputs[index] = input;
236
217
  } else {
@@ -238,16 +219,13 @@ var __mergeInputsInArray = function __mergeInputsInArray(inputs, formConfigInput
238
219
  }
239
220
  });
240
221
  };
241
-
242
222
  var __applyDefaultProps = function __applyDefaultProps(input, field) {
243
223
  for (var propName in input.props) {
244
224
  if (field) {
245
225
  if (field.input.propsData[propName]) {
246
- var _input$propsData, _input$props, _input$props$type;
247
-
226
+ var _input$propsData, _input$props;
248
227
  input.propsData[propName] = field.input.propsData[propName];
249
-
250
- if ((_input$propsData = input.propsData) !== null && _input$propsData !== void 0 && _input$propsData.type && (_input$props = input.props) !== null && _input$props !== void 0 && (_input$props$type = _input$props.type) !== null && _input$props$type !== void 0 && _input$props$type.default) {
228
+ if ((_input$propsData = input.propsData) !== null && _input$propsData !== void 0 && _input$propsData.type && (_input$props = input.props) !== null && _input$props !== void 0 && (_input$props = _input$props.type) !== null && _input$props !== void 0 && _input$props.default) {
251
229
  input.propsData.type = input.props.type.default;
252
230
  }
253
231
  }
@@ -256,7 +234,6 @@ var __applyDefaultProps = function __applyDefaultProps(input, field) {
256
234
  }
257
235
  }
258
236
  };
259
-
260
237
  var __applyRefProps = function __applyRefProps(input, refConfig) {
261
238
  if (refConfig !== null && refConfig !== void 0 && refConfig.propsData) {
262
239
  for (var propName in refConfig.propsData) {
@@ -264,13 +241,11 @@ var __applyRefProps = function __applyRefProps(input, refConfig) {
264
241
  }
265
242
  }
266
243
  };
267
-
268
244
  var __filterInputsByMultiple = function __filterInputsByMultiple(inputs, multiple) {
269
245
  return inputs.filter(function (i) {
270
246
  return i.multiple && multiple || !i.multiple && !multiple;
271
247
  });
272
248
  };
273
-
274
249
  var fcInputs = {
275
250
  string: {
276
251
  text: 'Текст',
@@ -474,36 +449,28 @@ var UtFormConstructor = {
474
449
  config: {},
475
450
  init: function init(formConfig) {
476
451
  this.config = __clone(baseConfig);
477
-
478
452
  if (formConfig) {
479
453
  if (formConfig.inputs) {
480
454
  __mergeInputsInMap(this.config.inputs, formConfig.inputs);
481
455
  }
482
-
483
456
  if (formConfig.primitiveInputs) {
484
457
  __mergeInputInMapOfArrays(this.config.primitiveInputs, formConfig.primitiveInputs);
485
458
  }
486
-
487
459
  if (formConfig.dictInputs) {
488
460
  __mergeInputsInArray(this.config.dictInputs, formConfig.dictInputs);
489
461
  }
490
-
491
462
  if (formConfig.refInputs) {
492
463
  __mergeInputInMapOfArrays(this.config.refInputs, formConfig.refInputs);
493
464
  }
494
-
495
465
  if (formConfig.refInputConfigs) {
496
466
  this.config.refInputConfigs = formConfig.refInputConfigs;
497
467
  }
498
-
499
468
  if (formConfig.icons) {
500
469
  this.config.icons = _assign(this.config.icons, formConfig.icons);
501
470
  }
502
-
503
471
  if (formConfig.rules) {
504
472
  this.config.rules = formConfig.rules;
505
473
  }
506
-
507
474
  if (formConfig.ruleContext) {
508
475
  this.config.ruleContext = formConfig.ruleContext;
509
476
  }
@@ -511,11 +478,9 @@ var UtFormConstructor = {
511
478
  },
512
479
  getInputTypes: function getInputTypes(field) {
513
480
  var inputs = [];
514
-
515
481
  if (!field) {
516
482
  return inputs;
517
483
  }
518
-
519
484
  if (field.dict && !this.config.refInputs[field.ref]) {
520
485
  inputs = __filterInputsByMultiple(this.config.dictInputs, field.multiple);
521
486
  } else if (field.ref) {
@@ -523,7 +488,6 @@ var UtFormConstructor = {
523
488
  } else {
524
489
  inputs = __filterInputsByMultiple(this.config.primitiveInputs[field.type], field.multiple);
525
490
  }
526
-
527
491
  return inputs;
528
492
  },
529
493
  hasMultipleInputTypes: function hasMultipleInputTypes(field) {
@@ -535,49 +499,38 @@ var UtFormConstructor = {
535
499
  getDefaultInput: function getDefaultInput(field) {
536
500
  var input = null;
537
501
  var inputs = this.getInputTypes(field);
538
-
539
502
  if (!inputs) {
540
503
  input = this.primitiveInputs[0];
541
504
  }
542
-
543
505
  if (field.ref && this.config.refInputs[field.ref]) {
544
506
  input = __clone(inputs[0]);
545
-
546
507
  __applyDefaultProps(input);
547
-
548
508
  if (this.config.refInputConfigs[field.ref] && this.config.refInputConfigs[field.ref][input.name]) {
549
509
  __applyRefProps(input, this.config.refInputConfigs[field.ref][input.name]);
550
510
  }
551
511
  } else if (field.dict) {
552
512
  input = __clone(inputs[0]);
553
513
  input.props.dict.default = field.ref;
554
-
555
514
  __applyDefaultProps(input);
556
515
  } else {
557
516
  input = __clone(inputs[0]);
558
-
559
517
  __applyDefaultProps(input);
560
518
  }
561
-
562
519
  return input;
563
520
  },
564
521
  getInputTypeByName: function getInputTypeByName(name, field) {
565
522
  var input = __clone(this.config.inputs[name]);
566
-
567
523
  if (field.ref && this.config.refInputs[field.ref]) {
568
524
  __applyDefaultProps(input);
569
-
570
525
  if (this.config.refInputConfigs[field.ref] && this.config.refInputConfigs[field.ref][input.name]) {
571
526
  __applyRefProps(input, this.config.refInputConfigs[field.ref][input.name]);
572
527
  }
573
528
  } else if (field.dict) {
574
529
  input.props.dict.default = field.ref;
575
-
576
530
  __applyDefaultProps(input);
577
531
  } else {
578
532
  __applyDefaultProps(input, field);
579
533
  }
580
-
581
534
  input.propsData['ref'] = field.name;
582
535
  return input;
583
536
  },
@@ -595,17 +548,13 @@ var UtFormConstructor = {
595
548
  context['Date'] = Date;
596
549
  context['Math'] = Math;
597
550
  var appendScript = '';
598
-
599
551
  for (var v in context) {
600
552
  appendScript = appendScript + "var ".concat(v, " = this.").concat(v, ";\n");
601
553
  }
602
-
603
554
  appendScript = appendScript ? appendScript + '\n' : '';
604
-
605
555
  var func = function func(script) {
606
556
  return eval(script);
607
557
  };
608
-
609
558
  func.call(context, appendScript + script);
610
559
  }
611
560
  };/*!
@@ -2860,6 +2809,7 @@ var i18n = new VueI18n$1({
2860
2809
  //
2861
2810
  //
2862
2811
  //
2812
+
2863
2813
  var script$5 = {
2864
2814
  name: 'DocTemplateSectionModal',
2865
2815
  props: {
@@ -2894,13 +2844,10 @@ var script$5 = {
2894
2844
  methods: {
2895
2845
  onOk: function onOk() {
2896
2846
  var _this = this;
2897
-
2898
2847
  this.section = this.label;
2899
-
2900
2848
  if (this.onAfterOk) {
2901
2849
  this.onAfterOk();
2902
2850
  }
2903
-
2904
2851
  this.$nextTick(function () {
2905
2852
  _this.$bvModal.hide(_this.id);
2906
2853
  });
@@ -2986,15 +2933,12 @@ var script$5 = {
2986
2933
  return script;
2987
2934
  }/* script */
2988
2935
  var __vue_script__$5 = script$5;
2989
- /* template */
2990
2936
 
2937
+ /* template */
2991
2938
  var __vue_render__$5 = function __vue_render__() {
2992
2939
  var _vm = this;
2993
-
2994
2940
  var _h = _vm.$createElement;
2995
-
2996
2941
  var _c = _vm._self._c || _h;
2997
-
2998
2942
  return _c('b-modal', {
2999
2943
  attrs: {
3000
2944
  "id": "rb-doc-template-section-modal",
@@ -3035,19 +2979,15 @@ var __vue_render__$5 = function __vue_render__() {
3035
2979
  }
3036
2980
  })], 1)], 1)], 1)], 1)], 1);
3037
2981
  };
3038
-
3039
2982
  var __vue_staticRenderFns__$5 = [];
3040
- /* style */
3041
2983
 
2984
+ /* style */
3042
2985
  var __vue_inject_styles__$5 = undefined;
3043
2986
  /* scoped */
3044
-
3045
2987
  var __vue_scope_id__$5 = undefined;
3046
2988
  /* module identifier */
3047
-
3048
2989
  var __vue_module_identifier__$5 = "data-v-4f837662";
3049
2990
  /* functional template */
3050
-
3051
2991
  var __vue_is_functional_template__$5 = false;
3052
2992
  /* style inject */
3053
2993
 
@@ -3059,7 +2999,6 @@ var __vue_component__$6 = /*#__PURE__*/normalizeComponent({
3059
2999
  render: __vue_render__$5,
3060
3000
  staticRenderFns: __vue_staticRenderFns__$5
3061
3001
  }, __vue_inject_styles__$5, __vue_script__$5, __vue_scope_id__$5, __vue_is_functional_template__$5, __vue_module_identifier__$5, false, undefined, undefined, undefined);
3062
-
3063
3002
  var DocTemplateSectionModal = __vue_component__$6;var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3064
3003
 
3065
3004
  function createCommonjsModule(fn, basedir, module) {
@@ -8489,21 +8428,17 @@ if (typeof window !== "undefined" && "Vue" in window) {
8489
8428
  },
8490
8429
  findInFacets: function findInFacets(str) {
8491
8430
  str = str.toLowerCase();
8492
-
8493
8431
  if (!str || str.length === 0) {
8494
8432
  this.innerFacets = this.allFacets;
8495
8433
  }
8496
-
8497
8434
  var facets = JSON.parse(JSON.stringify(this.allFacets));
8498
8435
  facets = facets.filter(function (facet) {
8499
8436
  var facetFound = false;
8500
8437
  facet.fields = facet.fields.filter(function (field) {
8501
8438
  var fieldFound = field.labelRu.toLowerCase().indexOf(str) >= 0;
8502
-
8503
8439
  if (fieldFound) {
8504
8440
  facetFound = true;
8505
8441
  }
8506
-
8507
8442
  return fieldFound;
8508
8443
  });
8509
8444
  return facetFound;
@@ -8516,7 +8451,6 @@ if (typeof window !== "undefined" && "Vue" in window) {
8516
8451
  expanded: false
8517
8452
  });
8518
8453
  });
8519
-
8520
8454
  if (innerFacets) {
8521
8455
  innerFacets.forEach(function (facet) {
8522
8456
  facet.fields = facet.fields.filter(function (field) {
@@ -8524,7 +8458,6 @@ if (typeof window !== "undefined" && "Vue" in window) {
8524
8458
  });
8525
8459
  });
8526
8460
  }
8527
-
8528
8461
  this.innerFacets = JSON.parse(JSON.stringify(innerFacets));
8529
8462
  this.allFacets = JSON.parse(JSON.stringify(innerFacets));
8530
8463
  }
@@ -8534,15 +8467,12 @@ if (typeof window !== "undefined" && "Vue" in window) {
8534
8467
  }
8535
8468
  };/* script */
8536
8469
  var __vue_script__$4 = script$4;
8537
- /* template */
8538
8470
 
8471
+ /* template */
8539
8472
  var __vue_render__$4 = function __vue_render__() {
8540
8473
  var _vm = this;
8541
-
8542
8474
  var _h = _vm.$createElement;
8543
-
8544
8475
  var _c = _vm._self._c || _h;
8545
-
8546
8476
  return _c('div', {
8547
8477
  staticClass: "rb-facets-sidebar"
8548
8478
  }, [_vm._ssrNode("<h4>Компоненты</h4> "), _c('b-form', [_c('b-form-row', [_c('b-col', {
@@ -8601,19 +8531,15 @@ var __vue_render__$4 = function __vue_render__() {
8601
8531
  }), 1)], 1) : _vm._e()], 2) : _vm._e();
8602
8532
  }), 0)], 2);
8603
8533
  };
8604
-
8605
8534
  var __vue_staticRenderFns__$4 = [];
8606
- /* style */
8607
8535
 
8536
+ /* style */
8608
8537
  var __vue_inject_styles__$4 = undefined;
8609
8538
  /* scoped */
8610
-
8611
8539
  var __vue_scope_id__$4 = undefined;
8612
8540
  /* module identifier */
8613
-
8614
8541
  var __vue_module_identifier__$4 = "data-v-12095172";
8615
8542
  /* functional template */
8616
-
8617
8543
  var __vue_is_functional_template__$4 = false;
8618
8544
  /* style inject */
8619
8545
 
@@ -8625,7 +8551,6 @@ var __vue_component__$5 = /*#__PURE__*/normalizeComponent({
8625
8551
  render: __vue_render__$4,
8626
8552
  staticRenderFns: __vue_staticRenderFns__$4
8627
8553
  }, __vue_inject_styles__$4, __vue_script__$4, __vue_scope_id__$4, __vue_is_functional_template__$4, __vue_module_identifier__$4, false, undefined, undefined, undefined);
8628
-
8629
8554
  var DocTemplateFacetList = __vue_component__$5;var toString = Object.prototype.toString;
8630
8555
 
8631
8556
  var _typeof = function(object) {
@@ -8690,7 +8615,6 @@ var _typeof = function(object) {
8690
8615
  if ((field.dict || field.ref) && !field.multiple) {
8691
8616
  return field.name.substring(0, field.name.length - 2);
8692
8617
  }
8693
-
8694
8618
  return field.name;
8695
8619
  },
8696
8620
  getResolveValue: function getResolveValue(field) {
@@ -8698,7 +8622,7 @@ var _typeof = function(object) {
8698
8622
  },
8699
8623
  setResolveValue: function setResolveValue(_ref) {
8700
8624
  var field = _ref.field;
8701
- _ref.multiple;
8625
+ _ref.multiple;
8702
8626
  this.getResolveValue(field);
8703
8627
  },
8704
8628
  getDisplayField: function getDisplayField(value) {
@@ -8710,19 +8634,15 @@ var _typeof = function(object) {
8710
8634
  },
8711
8635
  onEventFired: function onEventFired(eventName, event, field) {
8712
8636
  var _this = this;
8713
-
8714
8637
  if (eventName === 'input' && field.ref && !field.multiple) {
8715
8638
  var dataField = null;
8716
-
8717
8639
  if (field.name.lastIndexOf(this.refSuffix) >= 0) {
8718
8640
  dataField = field.name.substring(0, field.name.lastIndexOf(this.refSuffix));
8719
8641
  }
8720
-
8721
8642
  if (dataField && dataField.length > 0) {
8722
8643
  this.doc[dataField] = null;
8723
8644
  }
8724
8645
  }
8725
-
8726
8646
  if (field.rules) {
8727
8647
  field.rules.forEach(function (rule) {
8728
8648
  if (rule.event === eventName && rule.script) {
@@ -8736,7 +8656,6 @@ var _typeof = function(object) {
8736
8656
  },
8737
8657
  onGlobalEventFired: function onGlobalEventFired(eventName, event) {
8738
8658
  var _this2 = this;
8739
-
8740
8659
  var fields = UtFormConfig.getFields(this.formConfig);
8741
8660
  fields.forEach(function (f) {
8742
8661
  if (f.rules) {
@@ -8762,73 +8681,58 @@ var _typeof = function(object) {
8762
8681
  },
8763
8682
  isValueEmpty: function isValueEmpty(fieldName) {
8764
8683
  var _this$doc$fieldName;
8765
-
8766
8684
  if (this.doc[fieldName] == null) {
8767
8685
  return true;
8768
8686
  }
8769
-
8770
8687
  if (Array.isArray(this.doc[fieldName]) && !((_this$doc$fieldName = this.doc[fieldName]) !== null && _this$doc$fieldName !== void 0 && _this$doc$fieldName.length)) {
8771
8688
  return true;
8772
8689
  }
8773
-
8774
8690
  if (_typeof(this.doc[fieldName] === 'string') && this.doc[fieldName] === '') {
8775
8691
  return true;
8776
8692
  }
8777
-
8778
8693
  return false;
8779
8694
  },
8780
8695
  isValueLessThanMax: function isValueLessThanMax(fieldname, max) {
8781
8696
  if (this.doc[fieldname] && max) {
8782
8697
  var _this$doc$fieldname;
8783
-
8784
8698
  return ((_this$doc$fieldname = this.doc[fieldname]) === null || _this$doc$fieldname === void 0 ? void 0 : _this$doc$fieldname.length) > parseInt(max);
8785
8699
  }
8786
-
8787
8700
  return false;
8788
8701
  },
8789
8702
  isValueLessThanMin: function isValueLessThanMin(fieldname, min) {
8790
8703
  if (this.doc[fieldname] && min) {
8791
8704
  return parseInt(this.doc[fieldname]) < parseInt(min);
8792
8705
  }
8793
-
8794
8706
  return false;
8795
8707
  },
8796
8708
  validate: function validate() {
8797
8709
  var _this3 = this;
8798
-
8799
8710
  this.formConfig.sections.forEach(function (s) {
8800
8711
  s.columns.forEach(function (c) {
8801
8712
  c.fields.forEach(function (f) {
8802
8713
  var _f$input$propsData;
8803
-
8804
8714
  var feedback = '';
8805
-
8806
8715
  if (f.required && _this3.isValueEmpty(f.name)) {
8807
8716
  feedback += i18n.t('validate.required', {
8808
8717
  field: _this3.getDisplayField(f)
8809
8718
  });
8810
8719
  }
8811
-
8812
8720
  if (f.type === 'integer' && _this3.isValueLessThanMin(f.name, f.input.propsData.min)) {
8813
8721
  feedback += "\n".concat(i18n.t('validate.min', {
8814
8722
  min: f.input.propsData.min
8815
8723
  }));
8816
- } // TODO: Костыль так как на бэке нету типа memo
8817
-
8818
-
8724
+ }
8725
+ // TODO: Костыль так как на бэке нету типа memo
8819
8726
  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)) {
8820
8727
  var _f$input$propsData2;
8821
-
8822
8728
  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);
8823
8729
  }
8824
-
8825
8730
  if (feedback) {
8826
8731
  Vue__default["default"].set(_this3.validationState, f.name, false);
8827
8732
  Vue__default["default"].set(_this3.validationState, "".concat(f.name, "__feedback"), feedback);
8828
8733
  } else {
8829
8734
  Vue__default["default"].set(_this3.validationState, f.name, null);
8830
8735
  }
8831
-
8832
8736
  _this3.onEventFired('validate', {
8833
8737
  validationState: _this3.validationState,
8834
8738
  doc: _this3.doc
@@ -8836,41 +8740,34 @@ var _typeof = function(object) {
8836
8740
  });
8837
8741
  });
8838
8742
  });
8839
-
8840
8743
  for (var fieldName in this.validationState) {
8841
8744
  if (this.validationState[fieldName] === false) {
8842
8745
  return false;
8843
8746
  }
8844
8747
  }
8845
-
8846
8748
  return true;
8847
8749
  },
8848
8750
  getColumnSize: function getColumnSize(section) {
8849
8751
  var MAX_COLUMN_SIZE = 12;
8850
-
8851
8752
  if (!section || !section.columnCount) {
8852
8753
  return MAX_COLUMN_SIZE;
8853
8754
  }
8854
-
8855
8755
  var colSize = Math.floor(MAX_COLUMN_SIZE / section.columnCount);
8856
8756
  return colSize;
8857
8757
  },
8858
8758
  execApplyDefaultValues: function execApplyDefaultValues() {
8859
8759
  var _this4 = this;
8860
-
8861
8760
  if (this.applyDefaultValues) {
8862
8761
  this.formConfig.sections.forEach(function (r) {
8863
8762
  r.columns.forEach(function (c) {
8864
8763
  c.fields.forEach(function (f) {
8865
8764
  if (f.defaultValue) {
8866
8765
  var defValue;
8867
-
8868
8766
  if (_this4.defaultValue && _typeof(f.defaultValue) === 'function') {
8869
8767
  defValue = f.defaultValue();
8870
8768
  } else {
8871
8769
  defValue = f.defaultValue == null ? null : f.defaultValue;
8872
8770
  }
8873
-
8874
8771
  _this4.$set(_this4.doc, f.name, f.defaultValue = defValue);
8875
8772
  }
8876
8773
  });
@@ -8880,7 +8777,6 @@ var _typeof = function(object) {
8880
8777
  },
8881
8778
  execApplyDefaultValRule: function execApplyDefaultValRule() {
8882
8779
  var _this5 = this;
8883
-
8884
8780
  this.formConfig.sections.forEach(function (el) {
8885
8781
  el.columns.forEach(function (c) {
8886
8782
  c.fields.forEach(function (f) {
@@ -8889,7 +8785,6 @@ var _typeof = function(object) {
8889
8785
  var rule = f.rules.find(function (rule) {
8890
8786
  return rule.event === 'defaultValue';
8891
8787
  });
8892
-
8893
8788
  if (rule && !_this5.doc[f.name]) {
8894
8789
  _this5.$set(_this5.doc, f.name, f.defaultValue = eval(rule.script));
8895
8790
  }
@@ -8912,15 +8807,12 @@ var _typeof = function(object) {
8912
8807
  }
8913
8808
  };/* script */
8914
8809
  var __vue_script__$3 = script$3;
8915
- /* template */
8916
8810
 
8811
+ /* template */
8917
8812
  var __vue_render__$3 = function __vue_render__() {
8918
8813
  var _vm = this;
8919
-
8920
8814
  var _h = _vm.$createElement;
8921
-
8922
8815
  var _c = _vm._self._c || _h;
8923
-
8924
8816
  return _vm.formConfig && _vm.formConfig.sections ? _c('b-form', {
8925
8817
  staticClass: "rb-doc-form",
8926
8818
  on: {
@@ -9018,19 +8910,15 @@ var __vue_render__$3 = function __vue_render__() {
9018
8910
  })], 2)], 1);
9019
8911
  }), 1) : _vm._e();
9020
8912
  };
9021
-
9022
8913
  var __vue_staticRenderFns__$3 = [];
9023
- /* style */
9024
8914
 
8915
+ /* style */
9025
8916
  var __vue_inject_styles__$3 = undefined;
9026
8917
  /* scoped */
9027
-
9028
8918
  var __vue_scope_id__$3 = undefined;
9029
8919
  /* module identifier */
9030
-
9031
8920
  var __vue_module_identifier__$3 = "data-v-64d07636";
9032
8921
  /* functional template */
9033
-
9034
8922
  var __vue_is_functional_template__$3 = false;
9035
8923
  /* style inject */
9036
8924
 
@@ -9042,19 +8930,15 @@ var __vue_component__$4 = /*#__PURE__*/normalizeComponent({
9042
8930
  render: __vue_render__$3,
9043
8931
  staticRenderFns: __vue_staticRenderFns__$3
9044
8932
  }, __vue_inject_styles__$3, __vue_script__$3, __vue_scope_id__$3, __vue_is_functional_template__$3, __vue_module_identifier__$3, false, undefined, undefined, undefined);
9045
-
9046
8933
  var DocForm = __vue_component__$4;var generateRandomString = function generateRandomString(length) {
9047
8934
  var result = '';
9048
8935
  var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
9049
8936
  var charactersLength = characters.length;
9050
-
9051
8937
  for (var i = 0; i < length; i++) {
9052
8938
  result += characters.charAt(Math.floor(Math.random() * charactersLength));
9053
8939
  }
9054
-
9055
8940
  return result;
9056
8941
  };
9057
-
9058
8942
  var UtRandom = {
9059
8943
  getRandomString: function getRandomString(length) {
9060
8944
  return generateRandomString(length);
@@ -9109,7 +8993,6 @@ var script$2 = {
9109
8993
  methods: {
9110
8994
  validateFields: function validateFields(fieldName) {
9111
8995
  var _this = this;
9112
-
9113
8996
  var fields = fieldName ? [fieldName] : ['name', 'event', 'script'];
9114
8997
  fields.forEach(function (field) {
9115
8998
  if (!_this.innerRule[field]) {
@@ -9127,10 +9010,8 @@ var script$2 = {
9127
9010
  applyRuleToInnerFormConfig: function applyRuleToInnerFormConfig() {
9128
9011
  if (this.innerFormConfig) {
9129
9012
  var foundRule = UtFormConfig.findRule(this.innerRule.id, this.innerFormConfig);
9130
-
9131
9013
  if (!foundRule) {
9132
9014
  var foundField = UtFormConfig.findField(this.field.name, this.innerFormConfig);
9133
-
9134
9015
  if (foundField) {
9135
9016
  foundField.rules = foundField.rules ? foundField.rules : [];
9136
9017
  foundField.rules.push(this.rule);
@@ -9188,7 +9069,6 @@ var script$2 = {
9188
9069
  var rule = this.rulePresets.find(function (rule) {
9189
9070
  return rule.name === ruleName;
9190
9071
  });
9191
-
9192
9072
  if (rule) {
9193
9073
  Object.assign(this.innerRule, rule);
9194
9074
  this.innerRule.script = this.innerRule.script.trim();
@@ -9196,17 +9076,13 @@ var script$2 = {
9196
9076
  },
9197
9077
  onOk: function onOk() {
9198
9078
  var _this2 = this;
9199
-
9200
9079
  this.validateFields();
9201
-
9202
9080
  if (this.state.name && this.state.script) {
9203
9081
  if (this.onAfterOk) {
9204
9082
  this.onAfterOk(this.innerRule);
9205
9083
  }
9206
-
9207
9084
  this.$nextTick(function () {
9208
9085
  _this2.resetModal();
9209
-
9210
9086
  _this2.$bvModal.hide(_this2.id);
9211
9087
  });
9212
9088
  }
@@ -9217,15 +9093,12 @@ var script$2 = {
9217
9093
  }
9218
9094
  };/* script */
9219
9095
  var __vue_script__$2 = script$2;
9220
- /* template */
9221
9096
 
9097
+ /* template */
9222
9098
  var __vue_render__$2 = function __vue_render__() {
9223
9099
  var _vm = this;
9224
-
9225
9100
  var _h = _vm.$createElement;
9226
-
9227
9101
  var _c = _vm._self._c || _h;
9228
-
9229
9102
  return _c('b-modal', {
9230
9103
  attrs: {
9231
9104
  "id": _vm.id,
@@ -9478,19 +9351,15 @@ var __vue_render__$2 = function __vue_render__() {
9478
9351
  }
9479
9352
  })], 1) : _vm._e()], 1)], 1)], 1);
9480
9353
  };
9481
-
9482
9354
  var __vue_staticRenderFns__$2 = [];
9483
- /* style */
9484
9355
 
9356
+ /* style */
9485
9357
  var __vue_inject_styles__$2 = undefined;
9486
9358
  /* scoped */
9487
-
9488
9359
  var __vue_scope_id__$2 = undefined;
9489
9360
  /* module identifier */
9490
-
9491
9361
  var __vue_module_identifier__$2 = "data-v-cc4d6922";
9492
9362
  /* functional template */
9493
-
9494
9363
  var __vue_is_functional_template__$2 = false;
9495
9364
  /* style inject */
9496
9365
 
@@ -9502,7 +9371,6 @@ var __vue_component__$3 = /*#__PURE__*/normalizeComponent({
9502
9371
  render: __vue_render__$2,
9503
9372
  staticRenderFns: __vue_staticRenderFns__$2
9504
9373
  }, __vue_inject_styles__$2, __vue_script__$2, __vue_scope_id__$2, __vue_is_functional_template__$2, __vue_module_identifier__$2, false, undefined, undefined, undefined);
9505
-
9506
9374
  var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9507
9375
  name: 'DocTemplateFieldSidebar',
9508
9376
  components: {
@@ -9561,7 +9429,6 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9561
9429
  },
9562
9430
  value: function value() {
9563
9431
  this.field = this.value;
9564
-
9565
9432
  if (this.field && this.field.input) {
9566
9433
  this.currentInputName = this.field.input.name;
9567
9434
  }
@@ -9578,7 +9445,6 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9578
9445
  },
9579
9446
  multiple: function multiple() {
9580
9447
  var input = UtFormConstructor.getDefaultInput(this.field);
9581
-
9582
9448
  if (this.field.multiple) {
9583
9449
  this.currentInputName = input.name;
9584
9450
  }
@@ -9613,7 +9479,6 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9613
9479
  },
9614
9480
  addRule: function addRule() {
9615
9481
  var _this = this;
9616
-
9617
9482
  this.ruleModalCfg = {
9618
9483
  mode: 'ins',
9619
9484
  rule: {
@@ -9622,9 +9487,7 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9622
9487
  },
9623
9488
  onAfterOk: function onAfterOk(rule) {
9624
9489
  _this.field.rules = _this.field.rules ? _this.field.rules : [];
9625
-
9626
9490
  _this.field.rules.push(_objectSpread2({}, rule));
9627
-
9628
9491
  _this.rulesHash = UtRandom.getRandomString(10);
9629
9492
  }
9630
9493
  };
@@ -9634,7 +9497,6 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9634
9497
  if (event.target.classList && event.target.classList.contains('rb-remove-rule')) {
9635
9498
  return;
9636
9499
  }
9637
-
9638
9500
  this.ruleModalCfg = {
9639
9501
  mode: 'upd',
9640
9502
  rule: _objectSpread2({}, rule),
@@ -9648,11 +9510,9 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9648
9510
  var index = this.field.rules.findIndex(function (r) {
9649
9511
  return r.id === rule.id;
9650
9512
  });
9651
-
9652
9513
  if (index >= 0) {
9653
9514
  this.field.rules.splice(index, 1);
9654
9515
  }
9655
-
9656
9516
  this.rulesHash = UtRandom.getRandomString(10);
9657
9517
  }
9658
9518
  },
@@ -9660,7 +9520,6 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9660
9520
  if (this.value) {
9661
9521
  this.innerVisible = this.visible;
9662
9522
  this.field = this.value;
9663
-
9664
9523
  if (this.field && this.field.input) {
9665
9524
  this.currentInputName = this.field.input.name;
9666
9525
  }
@@ -9668,15 +9527,12 @@ var FieldRuleFormModal = __vue_component__$3;var script$1 = {
9668
9527
  }
9669
9528
  };/* script */
9670
9529
  var __vue_script__$1 = script$1;
9671
- /* template */
9672
9530
 
9531
+ /* template */
9673
9532
  var __vue_render__$1 = function __vue_render__() {
9674
9533
  var _vm = this;
9675
-
9676
9534
  var _h = _vm.$createElement;
9677
-
9678
9535
  var _c = _vm._self._c || _h;
9679
-
9680
9536
  return _c('b-sidebar', {
9681
9537
  staticClass: "rb-doc-template-field-sidebar",
9682
9538
  attrs: {
@@ -9914,19 +9770,15 @@ var __vue_render__$1 = function __vue_render__() {
9914
9770
  }
9915
9771
  })], 1);
9916
9772
  };
9917
-
9918
9773
  var __vue_staticRenderFns__$1 = [];
9919
- /* style */
9920
9774
 
9775
+ /* style */
9921
9776
  var __vue_inject_styles__$1 = undefined;
9922
9777
  /* scoped */
9923
-
9924
9778
  var __vue_scope_id__$1 = undefined;
9925
9779
  /* module identifier */
9926
-
9927
9780
  var __vue_module_identifier__$1 = "data-v-44fffe29";
9928
9781
  /* functional template */
9929
-
9930
9782
  var __vue_is_functional_template__$1 = false;
9931
9783
  /* style inject */
9932
9784
 
@@ -9938,7 +9790,6 @@ var __vue_component__$2 = /*#__PURE__*/normalizeComponent({
9938
9790
  render: __vue_render__$1,
9939
9791
  staticRenderFns: __vue_staticRenderFns__$1
9940
9792
  }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
9941
-
9942
9793
  var DocTemplateFieldSidebar = __vue_component__$2;var script = {
9943
9794
  name: 'DocTemplateConstructor',
9944
9795
  components: {
@@ -9996,41 +9847,33 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
9996
9847
  if (event.target.classList && event.target.classList.contains('rb-remove-field')) {
9997
9848
  return;
9998
9849
  }
9999
-
10000
9850
  this.sidebarVisible = true;
10001
9851
  this.sidebarField = field;
10002
9852
  },
10003
9853
  addSection: function addSection(columnCount) {
10004
9854
  var _this = this;
10005
-
10006
9855
  var section = {
10007
9856
  labelRu: null,
10008
9857
  columnCount: columnCount
10009
9858
  };
10010
9859
  this.sectionModalCfg.mode = 'ins';
10011
9860
  this.sectionModalCfg.section = section;
10012
-
10013
9861
  this.sectionModalCfg.onAfterOk = function () {
10014
9862
  section.columns = [];
10015
-
10016
9863
  for (var i = 0; i < columnCount; i++) {
10017
9864
  section.columns.push({
10018
9865
  index: i,
10019
9866
  fields: []
10020
9867
  });
10021
9868
  }
10022
-
10023
9869
  _this.formConfig.sections.push(section);
10024
9870
  };
10025
-
10026
9871
  this.$bvModal.show(this.sectionModalCfg.id);
10027
9872
  },
10028
9873
  editSection: function editSection(section) {
10029
9874
  this.sectionModalCfg.mode = 'update';
10030
9875
  this.sectionModalCfg.section = section;
10031
-
10032
9876
  this.sectionModalCfg.onAfterOk = function () {};
10033
-
10034
9877
  this.$bvModal.show(this.sectionModalCfg.id);
10035
9878
  },
10036
9879
  removeSection: function removeSection(section, index) {
@@ -10057,13 +9900,11 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
10057
9900
  },
10058
9901
  removeFieldFromColumn: function removeFieldFromColumn(field, column, newIndex) {
10059
9902
  var index = newIndex != null ? newIndex : -1;
10060
-
10061
9903
  if (index < 0) {
10062
9904
  index = column.fields.findIndex(function (f) {
10063
9905
  return field.name === f.name;
10064
9906
  });
10065
9907
  }
10066
-
10067
9908
  if (index >= 0) {
10068
9909
  column.fields.splice(index, 1);
10069
9910
  }
@@ -10078,13 +9919,10 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
10078
9919
  onFieldMoveEnd: function onFieldMoveEnd(event) {
10079
9920
  var newIndex = event.newIndex;
10080
9921
  var field = event.item._underlying_vm_;
10081
-
10082
9922
  if (!field.hasOwnProperty('defaultValue')) {
10083
9923
  this.$set(field, 'defaultValue', undefined);
10084
9924
  }
10085
-
10086
9925
  var found = this.multipleFieldAreOnFormConfig(field);
10087
-
10088
9926
  if (found) {
10089
9927
  this.removeFieldFromColumn(field, this.columnTo, newIndex);
10090
9928
  this.resetDragVariables();
@@ -10098,7 +9936,6 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
10098
9936
  noCloseOnEsc: true
10099
9937
  });
10100
9938
  }
10101
-
10102
9939
  this.resetDragVariables();
10103
9940
  this.hash = (Math.random() + 1).toString(36).substring(7);
10104
9941
  },
@@ -10114,15 +9951,12 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
10114
9951
  }
10115
9952
  };/* script */
10116
9953
  var __vue_script__ = script;
10117
- /* template */
10118
9954
 
9955
+ /* template */
10119
9956
  var __vue_render__ = function __vue_render__() {
10120
9957
  var _vm = this;
10121
-
10122
9958
  var _h = _vm.$createElement;
10123
-
10124
9959
  var _c = _vm._self._c || _h;
10125
-
10126
9960
  return _c('div', {
10127
9961
  staticClass: "rb-doc-template-constructor d-flex"
10128
9962
  }, [_c('doc-template-facet-list', {
@@ -10339,19 +10173,15 @@ var __vue_render__ = function __vue_render__() {
10339
10173
  }
10340
10174
  })], 2)], 2);
10341
10175
  };
10342
-
10343
10176
  var __vue_staticRenderFns__ = [];
10344
- /* style */
10345
10177
 
10178
+ /* style */
10346
10179
  var __vue_inject_styles__ = undefined;
10347
10180
  /* scoped */
10348
-
10349
10181
  var __vue_scope_id__ = undefined;
10350
10182
  /* module identifier */
10351
-
10352
10183
  var __vue_module_identifier__ = "data-v-1d0e94ea";
10353
10184
  /* functional template */
10354
-
10355
10185
  var __vue_is_functional_template__ = false;
10356
10186
  /* style inject */
10357
10187
 
@@ -10363,24 +10193,21 @@ var __vue_component__ = /*#__PURE__*/normalizeComponent({
10363
10193
  render: __vue_render__,
10364
10194
  staticRenderFns: __vue_staticRenderFns__
10365
10195
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
10366
-
10367
- var __vue_component__$1 = __vue_component__;/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});var install = function installRbDocumentFormConstructor(Vue) {
10196
+ var __vue_component__$1 = __vue_component__;/* eslint-disable import/prefer-default-export */var components$1=/*#__PURE__*/Object.freeze({__proto__:null,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});// install function executed by Vue.use()
10197
+ var install = function installRbDocumentFormConstructor(Vue) {
10368
10198
  Object.entries(components$1).forEach(function (_ref) {
10369
10199
  var _ref2 = _slicedToArray(_ref, 2),
10370
- componentName = _ref2[0],
10371
- component = _ref2[1];
10372
-
10200
+ componentName = _ref2[0],
10201
+ component = _ref2[1];
10373
10202
  Vue.component(componentName, component);
10374
10203
  });
10375
- }; // Create module definition for Vue.use()
10376
- var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});// only expose one global var, with component exports exposed as properties of
10204
+ };var components=/*#__PURE__*/Object.freeze({__proto__:null,'default':install,UtFormConfig:UtFormConfig,UtFormConstructor:UtFormConstructor,i18n:i18n,DocTemplateSectionModal:DocTemplateSectionModal,DocTemplateFacetList:DocTemplateFacetList,DocTemplateFieldSidebar:DocTemplateFieldSidebar,DocTemplateConstructor:__vue_component__$1,FieldRuleFormModal:FieldRuleFormModal,DocForm:DocForm});// Attach named exports directly to plugin. IIFE/CJS will
10205
+ // only expose one global var, with component exports exposed as properties of
10377
10206
  // that global var (eg. plugin.component)
10378
-
10379
10207
  Object.entries(components).forEach(function (_ref) {
10380
10208
  var _ref2 = _slicedToArray(_ref, 2),
10381
- componentName = _ref2[0],
10382
- component = _ref2[1];
10383
-
10209
+ componentName = _ref2[0],
10210
+ component = _ref2[1];
10384
10211
  if (componentName !== 'default') {
10385
10212
  install[componentName] = component;
10386
10213
  }