plugin-ui-for-kzt 0.0.6 → 0.0.7

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": "plugin-ui-for-kzt",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "plugin-ui for kazaktelekom",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -7,7 +7,7 @@
7
7
  [getTypeModal.nameClass]: getTypeModal.nameClass !== '',
8
8
  }"
9
9
  >
10
- {{getTypeModal}}
10
+ {{getTypeModal.nameClass}}
11
11
  <div class="modal-container-header-title">
12
12
  <component :is="getTypeModal.img" />
13
13
  <div>{{ options.title }}</div>
@@ -55,7 +55,7 @@ const getTypeModal = computed<{ img: Component; nameClass: string }>(() => {
55
55
  case "warning":
56
56
  return { img: WarningIcon, nameClass: "warning" };
57
57
  case "info":
58
- return { img: InfoIcon, nameClass: "info" };
58
+ return { img: InfoIcon, nameClass: "info-modal" };
59
59
  default:
60
60
  return {
61
61
  img: SuccessIcon,
@@ -139,7 +139,7 @@ const getTypeModal = computed<{ img: Component; nameClass: string }>(() => {
139
139
  background: #15b853;
140
140
  }
141
141
 
142
- .infoModal {
142
+ .info-modal {
143
143
  background: #f4a900;
144
144
  }
145
145
 
@@ -36,9 +36,9 @@ export default {
36
36
 
37
37
  modalContainer.addEventListener("click", (event) => {
38
38
  console.log(`Closing modal with id: ${modal.id}`);
39
- console.log("this click on background", modalStore.modals.length);
40
- modalStore.closeModal(modal.id);
39
+ console.log("this click on background", modalStore.modals);
41
40
  if (modalStore.modals.length === 1) modalContainer.classList.remove("modal")
41
+ modalStore.closeModal(modal.id);
42
42
  });
43
43
  modalContainer.setAttribute("name", modal.name);
44
44
  modalContainer.classList.add("modal");