aloha-vue 1.0.43 → 1.0.46

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.
@@ -60,6 +60,7 @@ export default {
60
60
  id: "aloha1",
61
61
  classColumn: "a_column_8",
62
62
  required: true,
63
+ isHide: true,
63
64
  },
64
65
  {
65
66
  type: "text",
@@ -79,6 +80,7 @@ export default {
79
80
  keyGroup: "group",
80
81
  data: this.selectData,
81
82
  helpText: "ALOHA help!!!",
83
+ change: this.changeAloha,
82
84
  },
83
85
  {
84
86
  type: "text",
@@ -196,5 +198,9 @@ export default {
196
198
  reset() {
197
199
  this.errors = undefined;
198
200
  },
201
+
202
+ changeAloha(arg) {
203
+ console.log("arg", arg);
204
+ },
199
205
  },
200
206
  };
@@ -7,7 +7,7 @@ div
7
7
  type="text"
8
8
  label="Input 1"
9
9
  :required="true"
10
- @change="changeModel1"
10
+ :change="changeModel1"
11
11
  )
12
12
  div model1: {{ model1 }}
13
13
  h2 Textarea
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.43",
4
+ "version": "1.0.46",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -415,7 +415,7 @@ export default {
415
415
  ref: "modal_header",
416
416
  class: "a_modal_header",
417
417
  }, [
418
- this.$slots.header && this.$slots.header(),
418
+ this.$slots.modalHeader && this.$slots.modalHeader(),
419
419
  this.headerText && h(this.headerTag, {
420
420
  class: "a_modal_title",
421
421
  }, [
@@ -433,7 +433,7 @@ export default {
433
433
  ref: "modal_body",
434
434
  class: "a_modal_body",
435
435
  }, [
436
- this.$slots.body && this.$slots.body(),
436
+ this.$slots.modalBodyPrepend && this.$slots.modalBodyPrepend(),
437
437
  this.isDataForm && h(AForm, {
438
438
  modelValue: this.modelValue,
439
439
  data: this.dataForm,
@@ -446,12 +446,13 @@ export default {
446
446
  this.bodyHtml && h("div", {
447
447
  innerHTML: this.bodyHtml,
448
448
  }),
449
+ this.$slots.modalBodyAppend && this.$slots.modalBodyAppend(),
449
450
  ]),
450
451
  h("div", {
451
452
  ref: "modal_footer",
452
453
  class: "a_modal_footer",
453
454
  }, [
454
- this.$slots.footer && this.$slots.footer(),
455
+ this.$slots.modalFooter && this.$slots.modalFooter(),
455
456
  this.save && h("button", {
456
457
  type: "button",
457
458
  class: this.saveButtonClass,
@@ -95,7 +95,7 @@ export default {
95
95
  };
96
96
  },
97
97
  render() {
98
- return h("div", {
98
+ return !this.isHide && h("div", {
99
99
  style: this.componentStyleHideDependencies,
100
100
  }, [
101
101
  h("div", {
@@ -68,7 +68,7 @@ export default {
68
68
  };
69
69
  },
70
70
  render() {
71
- return h("div", {
71
+ return !this.isHide && h("div", {
72
72
  style: this.componentStyleHideDependencies,
73
73
  }, [
74
74
  h("fieldset", {
@@ -122,7 +122,7 @@ export default {
122
122
  };
123
123
  },
124
124
  render() {
125
- return h("div", {
125
+ return !this.isHide && h("div", {
126
126
  style: this.componentStyleHideDependencies,
127
127
  }, [
128
128
  h("div", {
@@ -89,7 +89,7 @@ export default {
89
89
  };
90
90
  },
91
91
  render() {
92
- return h("div", {
92
+ return !this.isHide && h("div", {
93
93
  style: this.componentStyleHideDependencies,
94
94
  }, [
95
95
  h("div", {
@@ -100,7 +100,7 @@ export default {
100
100
  };
101
101
  },
102
102
  render() {
103
- return h("div", {
103
+ return !this.isHide && h("div", {
104
104
  style: this.componentStyleHideDependencies,
105
105
  }, [
106
106
  h("div", {
@@ -267,6 +267,7 @@ export default {
267
267
  changeModel,
268
268
  togglePopover,
269
269
  dataLocal,
270
+ dataKeyByKeyIdLocal,
270
271
  });
271
272
 
272
273
  const {
@@ -355,7 +356,7 @@ export default {
355
356
  };
356
357
  },
357
358
  render() {
358
- return h("div", {
359
+ return !this.isHide && h("div", {
359
360
  style: this.componentStyleHideDependencies,
360
361
  }, [
361
362
  h("div", {
@@ -14,6 +14,7 @@ export default function ASelectModelChangeAPI(props, {
14
14
  changeModel = () => {},
15
15
  togglePopover = () => {},
16
16
  dataLocal = computed(() => []),
17
+ dataKeyByKeyIdLocal = computed(() => ({})),
17
18
  }) {
18
19
  const isCloseByClick = toRef(props, "isCloseByClick");
19
20
  const isCloseByClickLocal = computed(() => {
@@ -50,6 +51,8 @@ export default function ASelectModelChangeAPI(props, {
50
51
  changeModel({
51
52
  model: modelValueLocal,
52
53
  $event,
54
+ currentModel: currentValue,
55
+ item: dataKeyByKeyIdLocal.value[currentValue],
53
56
  });
54
57
 
55
58
  if (isCloseByClickLocal.value) {
@@ -179,7 +179,7 @@ export default {
179
179
  };
180
180
  },
181
181
  render() {
182
- return h("div", {
182
+ return !this.isHide && h("div", {
183
183
  style: this.componentStyleHideDependencies,
184
184
  }, [
185
185
  h("div", {
@@ -38,7 +38,7 @@ export default {
38
38
  };
39
39
  },
40
40
  render() {
41
- return h("div", {
41
+ return !this.isHide && h("div", {
42
42
  class: "a_template",
43
43
  ...this.attributesWithHtml,
44
44
  }, this.$slots[this.slotName] &&
@@ -157,7 +157,7 @@ export default {
157
157
  };
158
158
  },
159
159
  render() {
160
- return h("div", null, [
160
+ return !this.isHide && h("div", null, [
161
161
  h("div", {
162
162
  class: ["a_form_element__parent", {
163
163
  a_form_element__parent_float: this.isLabelFloat,
@@ -25,11 +25,14 @@ export default function UiAPI(props, { emit }) {
25
25
  htmlIdLocal,
26
26
  });
27
27
 
28
- const changeModel = ({ model }) => {
28
+ const change = toRef(props, "change");
29
+ const changeModel = ({ model, currentModel, item }) => {
29
30
  emit("update:modelValue", model);
30
- emit("change", {
31
+ change.value({
31
32
  model,
32
33
  props,
34
+ currentModel,
35
+ item,
33
36
  });
34
37
  };
35
38
 
@@ -91,10 +91,18 @@ export default {
91
91
  type: String,
92
92
  required: false,
93
93
  },
94
+ isHide: {
95
+ type: Boolean,
96
+ required: false,
97
+ },
98
+ change: {
99
+ type: Function,
100
+ required: false,
101
+ default: () => {},
102
+ },
94
103
  },
95
104
  emits: [
96
105
  "update:modelValue",
97
- "change",
98
106
  "focus",
99
107
  "blur",
100
108
  ],