@webitel/ui-sdk 25.4.17 → 25.4.19
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/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +73 -66
- package/dist/ui-sdk.umd.cjs +5 -5
- package/package.json +1 -1
- package/src/components/wt-divider/_variables.scss +1 -1
- package/src/components/wt-empty/wt-empty.vue +1 -0
- package/src/components/wt-icon-action/iconMappings.js +2 -0
- package/src/components/wt-icon-action/wt-icon-action.vue +5 -2
- package/src/enums/IconAction/IconAction.enum.js +2 -0
- package/src/locale/en/en.js +3 -1
- package/src/locale/ru/ru.js +2 -0
- package/src/locale/ua/ua.js +2 -0
package/package.json
CHANGED
|
@@ -13,6 +13,8 @@ export const WtIconActionIconMappings = Object.freeze({
|
|
|
13
13
|
[IconAction.COLUMNS]: 'column-select',
|
|
14
14
|
[IconAction.VARIABLES]: 'variable-select',
|
|
15
15
|
[IconAction.CLOSE]: 'close--filled',
|
|
16
|
+
[IconAction.CANCEL]: 'close',
|
|
16
17
|
[IconAction.CLEAR]: 'clear',
|
|
17
18
|
[IconAction.ADD_FILTER]: 'add-filter',
|
|
19
|
+
[IconAction.SAVE]: 'save',
|
|
18
20
|
});
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
<wt-icon-btn
|
|
5
5
|
:disabled="disabled"
|
|
6
6
|
:icon="iconAction.icon"
|
|
7
|
-
@click="emit('click')"
|
|
7
|
+
@click="emit('click', $event)"
|
|
8
|
+
@mousedown="emit('mousedown', $event)"
|
|
8
9
|
/>
|
|
9
10
|
</template>
|
|
10
11
|
{{ t(iconAction.hint) }}
|
|
@@ -33,6 +34,8 @@ const props = defineProps({
|
|
|
33
34
|
IconAction.HISTORY,
|
|
34
35
|
IconAction.DOWNLOAD,
|
|
35
36
|
IconAction.REFRESH,
|
|
37
|
+
IconAction.SAVE,
|
|
38
|
+
IconAction.CANCEL,
|
|
36
39
|
]).includes(v),
|
|
37
40
|
},
|
|
38
41
|
disabled: {
|
|
@@ -41,7 +44,7 @@ const props = defineProps({
|
|
|
41
44
|
},
|
|
42
45
|
});
|
|
43
46
|
|
|
44
|
-
const emit = defineEmits(['click']);
|
|
47
|
+
const emit = defineEmits(['click', 'mousedown']);
|
|
45
48
|
|
|
46
49
|
const { t } = useI18n();
|
|
47
50
|
|
|
@@ -13,9 +13,11 @@ const IconAction = Object.freeze({
|
|
|
13
13
|
COLLAPSE: 'collapse',
|
|
14
14
|
EXPAND: 'expand',
|
|
15
15
|
CLOSE: 'close',
|
|
16
|
+
CANCEL: 'cancel',
|
|
16
17
|
VARIABLES: 'variables',
|
|
17
18
|
CLEAR: 'clear',
|
|
18
19
|
ADD_FILTER: 'add-filter',
|
|
20
|
+
SAVE: 'save',
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
export default IconAction;
|
package/src/locale/en/en.js
CHANGED
|
@@ -153,7 +153,7 @@ export default {
|
|
|
153
153
|
gateway: 'Gateway | Gateways',
|
|
154
154
|
hangupCause: 'Hangup cause',
|
|
155
155
|
hasOption: 'Has option',
|
|
156
|
-
hasRecording: '
|
|
156
|
+
hasRecording: 'Recording',
|
|
157
157
|
amdResult: 'AMD result',
|
|
158
158
|
ratedBy: 'Rated by',
|
|
159
159
|
talkDuration: 'Talk duration',
|
|
@@ -418,6 +418,8 @@ export default {
|
|
|
418
418
|
[IconAction.CLEAR]: ({ linked }) =>
|
|
419
419
|
linked('webitelUI.tableActions.filterReset'),
|
|
420
420
|
[IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
|
|
421
|
+
[IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
|
|
422
|
+
[IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
|
|
421
423
|
},
|
|
422
424
|
},
|
|
423
425
|
errorPages: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -416,6 +416,8 @@ export default {
|
|
|
416
416
|
[IconAction.CLEAR]: ({ linked }) =>
|
|
417
417
|
linked('webitelUI.tableActions.filterReset'),
|
|
418
418
|
[IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
|
|
419
|
+
[IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
|
|
420
|
+
[IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
|
|
419
421
|
},
|
|
420
422
|
},
|
|
421
423
|
errorPages: {
|
package/src/locale/ua/ua.js
CHANGED
|
@@ -416,6 +416,8 @@ export default {
|
|
|
416
416
|
[IconAction.CLEAR]: ({ linked }) =>
|
|
417
417
|
linked('webitelUI.tableActions.filterReset'),
|
|
418
418
|
[IconAction.ADD_FILTER]: ({ linked }) => linked('reusable.add'),
|
|
419
|
+
[IconAction.SAVE]: ({ linked }) => linked('reusable.save'),
|
|
420
|
+
[IconAction.CANCEL]: ({ linked }) => linked('reusable.cancel'),
|
|
419
421
|
},
|
|
420
422
|
},
|
|
421
423
|
errorPages: {
|