aloha-vue 1.2.152 → 1.2.154

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
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.2.152",
17
+ "version": "1.2.154",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -167,6 +167,11 @@ export default {
167
167
  required: false,
168
168
  default: () => modalPluginOptions.value.propsDefault.selectorCloseIds,
169
169
  },
170
+ showCloseButton: {
171
+ type: Boolean,
172
+ required: false,
173
+ default: true,
174
+ },
170
175
  size: {
171
176
  type: String,
172
177
  validator: value => ["small", "large", "xl", "xxl", "fullscreen"].indexOf(value) !== -1,
@@ -322,13 +327,13 @@ export default {
322
327
  extra: this.extra,
323
328
  }),
324
329
  ]),
325
- h(AButton, {
330
+ this.showCloseButton ? h(AButton, {
326
331
  class: "a_btn_close",
327
332
  disabled: this.disabledLocal,
328
333
  textScreenReader: this.closeButtonText,
329
334
  title: this.closeButtonText,
330
335
  onClick: () => this.close(true),
331
- })
336
+ }) : "",
332
337
  ]),
333
338
  h("div", {
334
339
  ref: "modal_body",
@@ -30,6 +30,7 @@ export default {
30
30
  isModalHidden: isModalHidden.value,
31
31
  isConfirm: true,
32
32
  ...confirmOptions.value,
33
+ showCloseButton: false,
33
34
  close: closeConfirm,
34
35
  };
35
36
  });
@@ -644,10 +644,12 @@ export default {
644
644
  })
645
645
  ]),
646
646
  ]),
647
- this.hasNotElementsWithSearch && h(ATranslation, {
648
- class: "a_form__not_elements",
649
- text: "_A_CHECKBOX_HAS_NOT_ELEMENTS_WITH_SEARCH_",
650
- }),
647
+ (!this.dataSort.length || this.hasNotElementsWithSearch) ?
648
+ h(ATranslation, {
649
+ class: "a_form__not_elements",
650
+ text: "_A_CHECKBOX_HAS_NOT_ELEMENTS_WITH_SEARCH_",
651
+ }) :
652
+ "",
651
653
  ]),
652
654
  ]),
653
655
  ]),
@@ -652,10 +652,12 @@ export default {
652
652
  })
653
653
  ]),
654
654
  ]),
655
- this.hasNotElementsWithSearch && h(ATranslation, {
656
- class: "a_form__not_elements",
657
- text: "_A_RADIO_HAS_NOT_ELEMENTS_WITH_SEARCH_",
658
- }),
655
+ (!this.dataSort.length || this.hasNotElementsWithSearch) ?
656
+ h(ATranslation, {
657
+ class: "a_form__not_elements",
658
+ text: "_A_RADIO_HAS_NOT_ELEMENTS_WITH_SEARCH_",
659
+ }) :
660
+ "",
659
661
  ]),
660
662
  ]),
661
663
  ]),
@@ -875,10 +875,12 @@ export default {
875
875
  })
876
876
  ]),
877
877
  ]),
878
- this.hasNotElementsWithSearch && h(ATranslation, {
879
- class: "a_form__not_elements",
880
- text: "_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_",
881
- }),
878
+ (!this.dataSort.length || this.hasNotElementsWithSearch) ?
879
+ h(ATranslation, {
880
+ class: "a_form__not_elements",
881
+ text: "_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_",
882
+ }) :
883
+ "",
882
884
  ]),
883
885
  ]),
884
886
  ]),
@@ -1,4 +1,4 @@
1
1
  {
2
- "_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_": "[No choicesНет элементов для выбора]",
2
+ "_A_SELECT_HAS_NOT_ELEMENTS_WITH_SEARCH_": "[Нет элементов для выбора]",
3
3
  "_A_SELECT_SEARCH_": "Поиск"
4
4
  }
@@ -84,6 +84,7 @@ export default function ATinymceAPI(props, context, {
84
84
  content_langs: contentLangs.value,
85
85
  content_style: contentStyle.value,
86
86
  contextmenu: "copy link",
87
+ convert_urls: false,
87
88
  entity_encoding: "raw",
88
89
  force_br_newlines: true,
89
90
  indent: false,