@webitel/ui-sdk 3.2.103 → 3.2.104

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.
Files changed (22) hide show
  1. package/dist/ui-sdk.common.js +144 -135
  2. package/dist/ui-sdk.common.js.map +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.umd.js +144 -135
  5. package/dist/ui-sdk.umd.js.map +1 -1
  6. package/dist/ui-sdk.umd.min.js +3 -3
  7. package/dist/ui-sdk.umd.min.js.map +1 -1
  8. package/package.json +1 -1
  9. package/src/components/{organisms → atoms}/wt-icon-action/_internals/wt-add-icon-action.vue +9 -10
  10. package/src/components/{organisms → atoms}/wt-icon-action/_internals/wt-delete-icon-action.vue +9 -10
  11. package/src/components/{organisms → atoms}/wt-icon-action/_internals/wt-download-icon-action.vue +9 -10
  12. package/src/components/{organisms → atoms}/wt-icon-action/_internals/wt-edit-icon-action.vue +9 -10
  13. package/src/components/{organisms → atoms}/wt-icon-action/_internals/wt-history-icon-action.vue +9 -10
  14. package/src/components/{organisms → atoms}/wt-icon-action/wt-icon-action.vue +3 -1
  15. package/src/components/index.js +1 -1
  16. package/src/components/molecules/wt-icon-btn/wt-icon-btn.vue +1 -0
  17. /package/src/components/{organisms → atoms}/wt-icon-action/__tests__/WtIconAction.spec.js +0 -0
  18. /package/src/components/{organisms → atoms}/wt-icon-action/_internals/__tests__/WtAddIconAction.spec.js +0 -0
  19. /package/src/components/{organisms → atoms}/wt-icon-action/_internals/__tests__/WtDeleteIconAction.spec.js +0 -0
  20. /package/src/components/{organisms → atoms}/wt-icon-action/_internals/__tests__/WtDownloadIconAction.spec.js +0 -0
  21. /package/src/components/{organisms → atoms}/wt-icon-action/_internals/__tests__/WtEditIconAction.spec.js +0 -0
  22. /package/src/components/{organisms → atoms}/wt-icon-action/_internals/__tests__/WtHistoryIconAction.spec.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "3.2.103",
3
+ "version": "3.2.104",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -4,23 +4,22 @@
4
4
  <wt-icon-btn
5
5
  icon="plus"
6
6
  :disabled="disabled"
7
- @click="$emit('click')"
7
+ @click="emit('click')"
8
8
  ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.addActionHint') }}
11
11
  </wt-tooltip>
12
12
  </template>
13
13
 
14
- <script>
15
- export default {
16
- name: 'wt-add-icon-action',
17
- props: {
18
- disabled: {
19
- type: Boolean,
20
- default: false,
21
- },
14
+ <script setup>
15
+ const props = defineProps({
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false,
22
19
  },
23
- };
20
+ });
21
+
22
+ const emit = defineEmits(['click']);
24
23
  </script>
25
24
 
26
25
  <style scoped>
@@ -4,23 +4,22 @@
4
4
  <wt-icon-btn
5
5
  icon="bucket"
6
6
  :disabled="disabled"
7
- @click="$emit('click')"
7
+ @click="emit('click')"
8
8
  ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.deleteActionHint') }}
11
11
  </wt-tooltip>
12
12
  </template>
13
13
 
14
- <script>
15
- export default {
16
- name: 'wt-delete-icon-action',
17
- props: {
18
- disabled: {
19
- type: Boolean,
20
- default: false,
21
- },
14
+ <script setup>
15
+ const props = defineProps({
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false,
22
19
  },
23
- };
20
+ });
21
+
22
+ const emit = defineEmits(['click']);
24
23
  </script>
25
24
 
26
25
  <style scoped>
@@ -4,23 +4,22 @@
4
4
  <wt-icon-btn
5
5
  icon="download"
6
6
  :disabled="disabled"
7
- @click="$emit('click')"
7
+ @click="emit('click')"
8
8
  ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.downloadActionHint') }}
11
11
  </wt-tooltip>
12
12
  </template>
13
13
 
14
- <script>
15
- export default {
16
- name: 'wt-download-icon-action',
17
- props: {
18
- disabled: {
19
- type: Boolean,
20
- default: false,
21
- },
14
+ <script setup>
15
+ const props = defineProps({
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false,
22
19
  },
23
- };
20
+ });
21
+
22
+ const emit = defineEmits(['click']);
24
23
  </script>
25
24
 
26
25
  <style scoped>
@@ -5,23 +5,22 @@
5
5
  class="table-action"
6
6
  icon="edit"
7
7
  :disabled="disabled"
8
- @click="$emit('click')"
8
+ @click="emit('click')"
9
9
  ></wt-icon-btn>
10
10
  </template>
11
11
  {{ $t('webitelUI.iconAction.editActionHint') }}
12
12
  </wt-tooltip>
13
13
  </template>
14
14
 
15
- <script>
16
- export default {
17
- name: 'wt-edit-icon-action',
18
- props: {
19
- disabled: {
20
- type: Boolean,
21
- default: false,
22
- },
15
+ <script setup>
16
+ const props = defineProps({
17
+ disabled: {
18
+ type: Boolean,
19
+ default: false,
23
20
  },
24
- };
21
+ });
22
+
23
+ const emit = defineEmits(['click']);
25
24
  </script>
26
25
 
27
26
  <style scoped>
@@ -4,23 +4,22 @@
4
4
  <wt-icon-btn
5
5
  icon="history"
6
6
  :disabled="disabled"
7
- @click="$emit('click')"
7
+ @click="emit('click')"
8
8
  ></wt-icon-btn>
9
9
  </template>
10
10
  {{ $t('webitelUI.iconAction.historyActionHint') }}
11
11
  </wt-tooltip>
12
12
  </template>
13
13
 
14
- <script>
15
- export default {
16
- name: 'wt-history-icon-action',
17
- props: {
18
- disabled: {
19
- type: Boolean,
20
- default: false,
21
- },
14
+ <script setup>
15
+ const props = defineProps({
16
+ disabled: {
17
+ type: Boolean,
18
+ default: false,
22
19
  },
23
- };
20
+ });
21
+
22
+ const emit = defineEmits(['click']);
24
23
  </script>
25
24
 
26
25
  <style scoped>
@@ -2,7 +2,7 @@
2
2
  <component
3
3
  :is="actionComponent"
4
4
  :disabled="disabled"
5
- @click="$emit('click')"
5
+ @click="emit('click')"
6
6
  ></component>
7
7
  </template>
8
8
 
@@ -26,6 +26,8 @@ const props = defineProps({
26
26
  },
27
27
  });
28
28
 
29
+ const emit = defineEmits(['click']);
30
+
29
31
  const actionComponent = computed(() => {
30
32
  switch (props.action) {
31
33
  case 'edit':
@@ -53,7 +53,7 @@ import WtStatusSelect from './organisms/wt-status-select/wt-status-select.vue';
53
53
  import WtTable from './organisms/wt-table/wt-table.vue';
54
54
  import WtTableActions from './organisms/wt-table-actions/wt-table-actions.vue';
55
55
  import WtTableColumnSelect from './organisms/wt-table-column-select/wt-table-column-select.vue';
56
- import WtIconAction from './organisms/wt-icon-action/wt-icon-action.vue';
56
+ import WtIconAction from './atoms/wt-icon-action/wt-icon-action.vue';
57
57
  import WtPageHeader from './organisms/wt-page-header/wt-page-header.vue';
58
58
  import WtStepper from './organisms/wt-stepper/wt-stepper.vue';
59
59
 
@@ -38,6 +38,7 @@ export default {
38
38
  type: String,
39
39
  },
40
40
  },
41
+ emits: ['click'],
41
42
  computed: {
42
43
  iconColor() {
43
44
  if (this.disabled) return 'disabled';