rb-document-form-constructor 0.8.43 → 0.8.45

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.43",
3
+ "version": "0.8.45",
4
4
  "description": "",
5
5
  "main": "dist/rb-document-form-constructor.ssr.js",
6
6
  "browser": "dist/rb-document-form-constructor.esm.js",
@@ -30,6 +30,8 @@
30
30
  :state="validationState[field.name]"
31
31
  :ref="field.ref? field.ref: field.name"
32
32
  :required="field.required"
33
+ @hook:created="onEventFired('created', $event, field)"
34
+ @hook:destroyed="onEventFired('destroyed', $event, field)"
33
35
  @hook:activated="onEventFired('activated', $event, field)"
34
36
  @hook:mounted="onEventFired('mounted', $event, field)"
35
37
  @input="onEventFired('input', $event, field)"
@@ -103,6 +105,9 @@ export default {
103
105
  }
104
106
  },
105
107
  onEventFired(eventName, event, field) {
108
+ console.info("eventName", eventName);
109
+ console.info("event", event);
110
+
106
111
  if (eventName === 'input' && field.ref && !field.multiple) {
107
112
  let dataField = null;
108
113
  if (field.name.lastIndexOf(this.refSuffix) >= 0) {
@@ -59,6 +59,15 @@
59
59
  <b-form-select-option :value="'defaultValue'">
60
60
  Установить значение по умолчанию
61
61
  </b-form-select-option>
62
+ <b-form-select-option :value="'created'">
63
+ Инпут создан
64
+ </b-form-select-option>
65
+ <b-form-select-option :value="'mounted'">
66
+ Инпут подключен
67
+ </b-form-select-option>
68
+ <b-form-select-option :value="'activated'">
69
+ Инпут активирован
70
+ </b-form-select-option>
62
71
  <b-form-select-option :value="'form-mounted'">
63
72
  Форма создана
64
73
  </b-form-select-option>