@webitel/ui-sdk 26.6.47 → 26.6.49
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/{components-gi3TmScp.js → components-DQu77Q7M.js} +575 -606
- package/dist/{composables-BJtyGE9D.js → composables-Cw74RLc7.js} +13 -5
- package/dist/{debounce-DrmECuJ2.js → debounce-DPzXwiOS.js} +9 -4
- package/dist/eventBus-By3thVlR.js +31 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +5015 -4022
- package/dist/ui-sdk.umd.cjs +918 -628
- package/dist/{useVidstackSrc-DfNrFbOO.js → useVidstackSrc-jCDCYTce.js} +1 -1
- package/dist/usetoast-BECIyaas.js +10 -0
- package/dist/{vidstack-Bq6c3Bam-3dCf_D36.js → vidstack-Bq6c3Bam-hoRopLll.js} +1 -1
- package/dist/{vidstack-D2pY00kU-DoW028io.js → vidstack-D2pY00kU-dXPuSPZl.js} +1 -1
- package/dist/{vidstack-audio-B58bvsna.js → vidstack-audio-CCSR8cXr.js} +1 -1
- package/dist/{vidstack-dash-CX-LTHx3.js → vidstack-dash-CNcNULYU.js} +2 -2
- package/dist/{vidstack-hls-CLzdTFu6.js → vidstack-hls-BP6P23Cc.js} +2 -2
- package/dist/{vidstack-video-XtP8iTBc.js → vidstack-video-IgjC6GLU.js} +2 -2
- package/dist/{wt-button-BJmzJIU6.js → wt-button-CZfPNaIj.js} +1 -1
- package/dist/{wt-chat-emoji-70Ip-iGR.js → wt-chat-emoji-DogZsQlE.js} +571 -553
- package/dist/{wt-display-chip-items-7t7gfd-q.js → wt-display-chip-items-DESlV2p7.js} +1 -1
- package/dist/{wt-expansion-card-Bvs6YO3O.js → wt-expansion-card-BMsJwsp6.js} +1 -1
- package/dist/{wt-galleria-BXZJO_cB.js → wt-galleria-BPI3140G.js} +1 -1
- package/dist/{wt-icon-pxO7IjwV.js → wt-icon-DZxZg6ON.js} +2 -0
- package/dist/{wt-icon-btn-CjjI4cgE.js → wt-icon-btn-BUpa-fbk.js} +1 -1
- package/dist/wt-notifications-bar-CDTqa7M9.js +29 -0
- package/dist/{wt-pagination-BA_PZPIE.js → wt-pagination-CZuQFM3-.js} +1 -1
- package/dist/{wt-player-DROQ1CPs.js → wt-player-BxvfY3f0.js} +3 -3
- package/dist/{wt-search-bar-CWZdvAOf.js → wt-search-bar-CyMYRgHH.js} +1 -1
- package/dist/{wt-send-message-popup-Bg1K-tw8.js → wt-send-message-popup-ffiDFiVQ.js} +1 -1
- package/dist/{wt-table-D4XANcJ1.js → wt-table-C8kioEyj.js} +1 -1
- package/dist/wt-toast-m61COwji.js +44 -0
- package/dist/{wt-tree-table-MLET4gIv.js → wt-tree-table-2u2mPfO_.js} +1 -1
- package/dist/{wt-type-extension-value-input-DQhC5C4L.js → wt-type-extension-value-input-CDJ1y4xf.js} +1 -1
- package/dist/{wt-vidstack-player-CmdiCgCp.js → wt-vidstack-player-EobMavSI.js} +9 -9
- package/package.json +1 -1
- package/src/assets/icons/sprite/error.svg +4 -0
- package/src/assets/icons/sprite/index.ts +4 -0
- package/src/assets/icons/sprite/warning.svg +3 -0
- package/src/components/_internals/composables/useSelect/useSelectDropdown.ts +30 -0
- package/src/components/index.js +3 -3
- package/src/components/wt-notifications-bar/__tests__/WtNotificationsBar.spec.js +49 -46
- package/src/components/wt-notifications-bar/wt-notifications-bar.vue +24 -84
- package/src/components/wt-toast/__tests__/WtToast.spec.js +19 -0
- package/src/components/wt-toast/types/index.ts +11 -0
- package/src/components/wt-toast/wt-toast.vue +53 -0
- package/src/components/wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue +1 -0
- package/src/css/components-variables.css +0 -1
- package/src/enums/index.ts +2 -2
- package/src/plugins/primevue/primevue.plugin.js +4 -0
- package/src/plugins/primevue/theme/components/components.js +2 -0
- package/src/plugins/primevue/theme/components/toast/toast.js +26 -0
- package/types/components/wt-notifications-bar/wt-notifications-bar.vue.d.ts +1 -12
- package/types/components/wt-player/wt-player.vue.d.ts +1 -1
- package/types/components/wt-toast/types/index.d.ts +7 -0
- package/types/components/wt-toast/wt-toast.vue.d.ts +3 -0
- package/types/enums/index.d.ts +2 -2
- package/types/modules/Flow/lookups/FlowTypeApplications.lookup.d.ts +5 -5
- package/types/plugins/primevue/theme/components/components.d.ts +2 -0
- package/types/plugins/primevue/theme/components/toast/toast.d.ts +223 -0
- package/dist/isObject-Dgs_L5xI.js +0 -11
- package/dist/logger-hl3ueNok.js +0 -47
- package/dist/wt-notifications-bar-BwO_qvrc.js +0 -52
- package/src/components/wt-notification/__tests__/WtNotification.spec.js +0 -28
- package/src/components/wt-notification/_variables.css +0 -9
- package/src/components/wt-notification/wt-notification.vue +0 -68
- package/types/components/wt-notification/wt-notification.vue.d.ts +0 -18
- /package/types/components/{wt-notification/__tests__/WtNotification.spec.d.ts → wt-toast/__tests__/WtToast.spec.d.ts} +0 -0
|
@@ -1,97 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<transition-group
|
|
4
|
-
class="wt-notifications-bar__wrapper"
|
|
5
|
-
name="wt-notifications-transition"
|
|
6
|
-
tag="div"
|
|
7
|
-
>
|
|
8
|
-
<wt-notification
|
|
9
|
-
v-for="(notification, key) of notifications"
|
|
10
|
-
:key="key + notification.text"
|
|
11
|
-
:type="notification.type"
|
|
12
|
-
@close="closeNotification(notification)"
|
|
13
|
-
>
|
|
14
|
-
{{ notification.text }}
|
|
15
|
-
</wt-notification>
|
|
16
|
-
</transition-group>
|
|
17
|
-
</aside>
|
|
2
|
+
<wt-toast position="top-right" />
|
|
18
3
|
</template>
|
|
19
4
|
|
|
20
|
-
<script>
|
|
5
|
+
<script setup>
|
|
6
|
+
import { useToast } from 'primevue/usetoast';
|
|
7
|
+
import { inject, onUnmounted } from 'vue';
|
|
21
8
|
import defaultEventBus from '../../scripts/eventBus.js';
|
|
22
|
-
import {
|
|
9
|
+
import { TypeToSeverityMap } from '../wt-toast/types';
|
|
10
|
+
import WtToast from '../wt-toast/wt-toast.vue';
|
|
23
11
|
|
|
24
|
-
|
|
12
|
+
defineOptions({
|
|
25
13
|
name: 'WtNotificationsBar',
|
|
26
|
-
|
|
27
|
-
'$eventBus',
|
|
28
|
-
],
|
|
29
|
-
data: () => ({
|
|
30
|
-
notificationDuration: 4000,
|
|
31
|
-
notifications: [],
|
|
14
|
+
});
|
|
32
15
|
|
|
33
|
-
|
|
34
|
-
}),
|
|
35
|
-
created() {
|
|
36
|
-
if (this.$eventBus) {
|
|
37
|
-
this.eventBus = this.$eventBus;
|
|
38
|
-
} else {
|
|
39
|
-
loggr.warn({
|
|
40
|
-
entity: 'component',
|
|
41
|
-
module: 'wt-notification-bar',
|
|
42
|
-
})(
|
|
43
|
-
'no globally provided $eventBus found, using default webitel-ui eventBus',
|
|
44
|
-
);
|
|
45
|
-
}
|
|
16
|
+
const DEFAULT_NOTIFICATION_LIFE_MS = 4000;
|
|
46
17
|
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
unmounted() {
|
|
50
|
-
this.eventBus.$off('notification', this.showNotification);
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
showNotification(notification) {
|
|
54
|
-
this.notifications.unshift(notification);
|
|
55
|
-
setTimeout(
|
|
56
|
-
() => this.closeNotification(notification),
|
|
57
|
-
notification.timeout * 1000 || this.notificationDuration,
|
|
58
|
-
);
|
|
59
|
-
},
|
|
60
|
-
closeNotification(notification) {
|
|
61
|
-
const index = this.notifications.indexOf(notification);
|
|
62
|
-
this.notifications.splice(index, 1);
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
</script>
|
|
18
|
+
const injectedEventBus = inject('$eventBus', null);
|
|
67
19
|
|
|
68
|
-
|
|
69
|
-
.wt-notifications-bar {
|
|
70
|
-
position: fixed;
|
|
71
|
-
top: var(--notifications-bar-corner-margin);
|
|
72
|
-
right: var(--notifications-bar-corner-margin);
|
|
73
|
-
z-index: var(--notifications-bar-z-index);
|
|
74
|
-
max-height: var(--notifications-bar-max-height);
|
|
75
|
-
overflow-x: hidden;
|
|
76
|
-
overflow-y: auto;
|
|
77
|
-
}
|
|
20
|
+
const activeEventBus = injectedEventBus ?? defaultEventBus;
|
|
78
21
|
|
|
79
|
-
|
|
80
|
-
display: flex;
|
|
81
|
-
flex-direction: column;
|
|
82
|
-
gap: var(--spacing-xs);
|
|
83
|
-
min-height: 0;
|
|
84
|
-
align-items: flex-end;
|
|
85
|
-
}
|
|
22
|
+
const toast = useToast();
|
|
86
23
|
|
|
87
|
-
|
|
88
|
-
.
|
|
89
|
-
|
|
24
|
+
function showNotification({ type, text, timeout }) {
|
|
25
|
+
toast.add({
|
|
26
|
+
severity: TypeToSeverityMap[type],
|
|
27
|
+
detail: text,
|
|
28
|
+
life: timeout != null ? timeout * 1000 : DEFAULT_NOTIFICATION_LIFE_MS,
|
|
29
|
+
});
|
|
90
30
|
}
|
|
91
31
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
</
|
|
32
|
+
activeEventBus.$on('notification', showNotification);
|
|
33
|
+
|
|
34
|
+
onUnmounted(() => {
|
|
35
|
+
activeEventBus.$off('notification', showNotification);
|
|
36
|
+
});
|
|
37
|
+
</script>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
3
|
+
import WtToast from '../wt-toast.vue';
|
|
4
|
+
|
|
5
|
+
describe('WtToast', () => {
|
|
6
|
+
it('renders a component', () => {
|
|
7
|
+
const wrapper = shallowMount(WtToast);
|
|
8
|
+
expect(wrapper.exists()).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('forwards attributes to the underlying PToast', () => {
|
|
12
|
+
const wrapper = shallowMount(WtToast, {
|
|
13
|
+
attrs: {
|
|
14
|
+
position: 'bottom-right',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
expect(wrapper.attributes('position')).toBe('bottom-right');
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MessageColor } from '../../../enums';
|
|
2
|
+
|
|
3
|
+
export const TypeToSeverityMap = {
|
|
4
|
+
success: MessageColor.SUCCESS,
|
|
5
|
+
info: MessageColor.INFO,
|
|
6
|
+
error: MessageColor.ERROR,
|
|
7
|
+
warning: MessageColor.WARN,
|
|
8
|
+
} as const;
|
|
9
|
+
|
|
10
|
+
export type TypeToSeverityMap =
|
|
11
|
+
(typeof TypeToSeverityMap)[keyof typeof TypeToSeverityMap];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PToast v-bind="$attrs">
|
|
3
|
+
<template #message="{ message }">
|
|
4
|
+
<wt-icon
|
|
5
|
+
:icon="severityToIconNameMap[message.severity] ?? ''"
|
|
6
|
+
:color="severityToIconColorMap[message.severity] ?? MessageColor.CONTRAST"
|
|
7
|
+
class="p-toast-message-icon"
|
|
8
|
+
/>
|
|
9
|
+
<div class="p-toast-message-text">
|
|
10
|
+
<span class="p-toast-summary">{{ message.summary }}</span>
|
|
11
|
+
<div v-if="message.detail" class="p-toast-detail">{{ message.detail }}</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
<template #closeicon>
|
|
15
|
+
<wt-icon icon="close" :size="ComponentSize.SM" />
|
|
16
|
+
</template>
|
|
17
|
+
</PToast>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import { ComponentSize, MessageColor } from '../../enums';
|
|
22
|
+
import WtIcon from '../wt-icon/wt-icon.vue';
|
|
23
|
+
|
|
24
|
+
defineOptions({
|
|
25
|
+
name: 'WtToast',
|
|
26
|
+
inheritAttrs: false,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const severityToIconNameMap: Record<string, string> = {
|
|
30
|
+
success: 'done',
|
|
31
|
+
info: 'rounded-info',
|
|
32
|
+
warn: 'warning',
|
|
33
|
+
error: 'error',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const severityToIconColorMap: Record<string, string> = {
|
|
37
|
+
success: MessageColor.SUCCESS,
|
|
38
|
+
info: MessageColor.INFO,
|
|
39
|
+
warn: MessageColor.WARN,
|
|
40
|
+
error: MessageColor.ERROR,
|
|
41
|
+
contrast: MessageColor.CONTRAST,
|
|
42
|
+
secondary: MessageColor.SECONDARY,
|
|
43
|
+
};
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
.p-toast-close-button:hover {
|
|
48
|
+
background: transparent;
|
|
49
|
+
}
|
|
50
|
+
.p-toast-close-button:focus-visible {
|
|
51
|
+
outline: none;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
@import "../components/wt-loader/_variables.css";
|
|
29
29
|
@import "../components/wt-logo/_variables.css";
|
|
30
30
|
@import "../components/wt-navigation-bar/_variables.css";
|
|
31
|
-
@import "../components/wt-notification/_variables.css";
|
|
32
31
|
@import "../components/wt-notifications-bar/_variables.css";
|
|
33
32
|
@import "../components/wt-page-wrapper/_variables.css";
|
|
34
33
|
@import "../components/wt-pagination/_variables.css";
|
package/src/enums/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { EmptyCause } from './EmptyCause/EmptyCause';
|
|
|
18
18
|
import { FormatDateMode } from './FormatDateMode/FormatDateMode';
|
|
19
19
|
import IconAction from './IconAction/IconAction.enum.js';
|
|
20
20
|
import { IconColor } from './IconColor/IconColor';
|
|
21
|
+
import { LoginOptions } from './LoginOptions/LoginOptions';
|
|
21
22
|
import { MessageColor } from './MessageColor/MessageColor';
|
|
22
23
|
import { MessageVariant } from './MessageVariant/MessageVariant';
|
|
23
24
|
import { MimeTypes } from './MimeTypes/MimeTypes.enum';
|
|
@@ -34,7 +35,6 @@ import { WfmSections } from './WebitelApplications/WfmSections';
|
|
|
34
35
|
import { WtApplication } from './WebitelApplications/WtApplication';
|
|
35
36
|
import { WtObject } from './WtObject/WtObject';
|
|
36
37
|
import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
|
|
37
|
-
import { LoginOptions } from './LoginOptions/LoginOptions';
|
|
38
38
|
|
|
39
39
|
export type {
|
|
40
40
|
UserSettingsBroadcastMessage,
|
|
@@ -60,6 +60,7 @@ export {
|
|
|
60
60
|
FormatDateMode,
|
|
61
61
|
IconAction,
|
|
62
62
|
IconColor,
|
|
63
|
+
LoginOptions,
|
|
63
64
|
MessageColor,
|
|
64
65
|
MessageVariant,
|
|
65
66
|
MimeTypes,
|
|
@@ -75,5 +76,4 @@ export {
|
|
|
75
76
|
WtApplication,
|
|
76
77
|
WtObject,
|
|
77
78
|
WtTypeExtensionFieldKind,
|
|
78
|
-
LoginOptions,
|
|
79
79
|
};
|
|
@@ -24,6 +24,8 @@ import PRadio from 'primevue/radiobutton';
|
|
|
24
24
|
import PSelect from 'primevue/select';
|
|
25
25
|
import PSlider from 'primevue/slider';
|
|
26
26
|
import PTextarea from 'primevue/textarea';
|
|
27
|
+
import PToast from 'primevue/toast';
|
|
28
|
+
import ToastService from 'primevue/toastservice';
|
|
27
29
|
import PToggleSwitch from 'primevue/toggleswitch';
|
|
28
30
|
import PToolbar from 'primevue/toolbar';
|
|
29
31
|
import Tooltip from 'primevue/tooltip';
|
|
@@ -41,6 +43,7 @@ const changeComponentCompatMode = (component) => {
|
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
const initPrimevue = (app) => {
|
|
46
|
+
app.use(ToastService);
|
|
44
47
|
app.use(PrimeVue, {
|
|
45
48
|
theme: {
|
|
46
49
|
preset: WebitelTheme,
|
|
@@ -82,6 +85,7 @@ const initPrimevue = (app) => {
|
|
|
82
85
|
changeComponentCompatMode(PInputGroupAddon),
|
|
83
86
|
);
|
|
84
87
|
app.component('PMessage', changeComponentCompatMode(PMessage));
|
|
88
|
+
app.component('PToast', changeComponentCompatMode(PToast));
|
|
85
89
|
app.component('PMultiSelect', changeComponentCompatMode(PMultiSelect));
|
|
86
90
|
app.component('PSelect', changeComponentCompatMode(PSelect));
|
|
87
91
|
|
|
@@ -22,6 +22,7 @@ import slider from './slider/slider.js';
|
|
|
22
22
|
import switcher from './switcher/switcher.js';
|
|
23
23
|
import table from './table/table.js';
|
|
24
24
|
import textarea from './textarea/textarea.js';
|
|
25
|
+
import toast from './toast/toast.js';
|
|
25
26
|
import toolbar from './toolbar/toolbar.js';
|
|
26
27
|
import tooltip from './tooltip/tooltip.js';
|
|
27
28
|
|
|
@@ -34,6 +35,7 @@ const components = {
|
|
|
34
35
|
chip,
|
|
35
36
|
checkbox,
|
|
36
37
|
textarea,
|
|
38
|
+
toast,
|
|
37
39
|
toggleswitch: switcher,
|
|
38
40
|
divider,
|
|
39
41
|
image,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ToastScheme } from '@webitel/styleguide/component-schemes';
|
|
2
|
+
|
|
3
|
+
import { MessageColor } from '../../../../../enums';
|
|
4
|
+
|
|
5
|
+
const generateCloseIconCss = ({ colorName, dt }) => `
|
|
6
|
+
.p-toast-message-${colorName} .p-toast-close-button svg {
|
|
7
|
+
fill: ${dt(`toast.${colorName}.color`)};
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
const toast = {
|
|
12
|
+
...ToastScheme.sizes,
|
|
13
|
+
colorScheme: ToastScheme.colorScheme,
|
|
14
|
+
|
|
15
|
+
css: ({ dt }) =>
|
|
16
|
+
Object.values(MessageColor)
|
|
17
|
+
.map((colorName) =>
|
|
18
|
+
generateCloseIconCss({
|
|
19
|
+
colorName,
|
|
20
|
+
dt,
|
|
21
|
+
}),
|
|
22
|
+
)
|
|
23
|
+
.join(''),
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default toast;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {
|
|
4
|
-
notificationDuration: number;
|
|
5
|
-
notifications: any[];
|
|
6
|
-
eventBus: {
|
|
7
|
-
$on: (...args: any[]) => void;
|
|
8
|
-
$off: (...args: any[]) => void;
|
|
9
|
-
$emit: (...args: any[]) => void;
|
|
10
|
-
};
|
|
11
|
-
}, {}, {
|
|
12
|
-
showNotification(notification: any): void;
|
|
13
|
-
closeNotification(notification: any): void;
|
|
14
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -88,13 +88,13 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
88
88
|
}>, {
|
|
89
89
|
download: string | ((url: string) => string) | boolean;
|
|
90
90
|
closable: boolean;
|
|
91
|
+
position: string;
|
|
91
92
|
autoplay: boolean;
|
|
92
93
|
loop: boolean;
|
|
93
94
|
resetOnEnd: boolean;
|
|
94
95
|
hideVolumeSlider: boolean;
|
|
95
96
|
hideMuteButton: boolean;
|
|
96
97
|
hideSettings: boolean;
|
|
97
|
-
position: string;
|
|
98
98
|
invertTime: boolean;
|
|
99
99
|
resetVolume: boolean;
|
|
100
100
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
package/types/enums/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { EmptyCause } from './EmptyCause/EmptyCause';
|
|
|
14
14
|
import { FormatDateMode } from './FormatDateMode/FormatDateMode';
|
|
15
15
|
import IconAction from './IconAction/IconAction.enum.js';
|
|
16
16
|
import { IconColor } from './IconColor/IconColor';
|
|
17
|
+
import { LoginOptions } from './LoginOptions/LoginOptions';
|
|
17
18
|
import { MessageColor } from './MessageColor/MessageColor';
|
|
18
19
|
import { MessageVariant } from './MessageVariant/MessageVariant';
|
|
19
20
|
import { MimeTypes } from './MimeTypes/MimeTypes.enum';
|
|
@@ -30,6 +31,5 @@ import { WfmSections } from './WebitelApplications/WfmSections';
|
|
|
30
31
|
import { WtApplication } from './WebitelApplications/WtApplication';
|
|
31
32
|
import { WtObject } from './WtObject/WtObject';
|
|
32
33
|
import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
|
|
33
|
-
import { LoginOptions } from './LoginOptions/LoginOptions';
|
|
34
34
|
export type { UserSettingsBroadcastMessage, WebphoneBroadcastMessage, WebphoneBroadcastPayload, };
|
|
35
|
-
export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind,
|
|
35
|
+
export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, LoginOptions, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const FlowTypeApplications: {
|
|
2
|
-
readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "
|
|
3
|
-
readonly chat: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "
|
|
4
|
-
readonly processing: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "
|
|
5
|
-
readonly service: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "
|
|
6
|
-
readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "
|
|
2
|
+
readonly voice: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "markIVR", "setGrantee", "classifier", "ringReady", "preAnswer", "answer", "sipRedirect", "ringback", "updateCid", "park", "conference", "bridge", "hangup", "inBandDTMF", "flushDTMF", "playback", "recordFile", "recordSession", "generateLink", "tts", "joinQueue", "joinAgent"];
|
|
3
|
+
readonly chat: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "trigger", "menu", "recvMessage", "sendText", "sendTts", "sendFile", "stt", "generateLink", "classifier", "joinQueue", "chatHistory", "chatAi"];
|
|
4
|
+
readonly processing: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "makeCall", "formTextfield", "formSelect", "formSelectService", "formText", "formDatetimePicker", "formRichTextEditor", "formSelectFromObject", "formSelectCaseStatus", "formTable", "formFile", "generateForm", "attemptResult", "iFrame"];
|
|
5
|
+
readonly service: readonly [...("string" | "function" | "set" | "switch" | "export" | "calendar" | "list" | "execute" | "math" | "notification" | "schema" | "log" | "sendMessage" | "userInfo" | "goto" | "if" | "js" | "plataByMono" | "softSleep" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "memberInfo" | "getQueueAgents" | "callbackQueue" | "patchMembers" | "sendEmail" | "broadcastChatMessage" | "getEmail" | "customModule")[], "attemptResult", "stt"];
|
|
6
|
+
readonly default: ("string" | "function" | "set" | "menu" | "stop" | "switch" | "export" | "calendar" | "trigger" | "recordFile" | "list" | "execute" | "math" | "start" | "notification" | "hangup" | "schema" | "log" | "sendMessage" | "tts" | "userInfo" | "answer" | "goto" | "if" | "js" | "plataByMono" | "iFrame" | "markIVR" | "softSleep" | "setGrantee" | "httpRequest" | "customCode" | "unSet" | "listAdd" | "while" | "openLink" | "playback" | "ringReady" | "preAnswer" | "sipRedirect" | "ringback" | "bridge" | "conference" | "generateLink" | "inBandDTMF" | "flushDTMF" | "updateCid" | "park" | "joinQueue" | "recordSession" | "memberInfo" | "getQueueAgents" | "joinAgent" | "callbackQueue" | "patchMembers" | "recvMessage" | "sendText" | "sendFile" | "sendEmail" | "sendTts" | "stt" | "classifier" | "broadcastChatMessage" | "chatHistory" | "chatAi" | "makeCall" | "formTextfield" | "formSelect" | "formSelectService" | "formTable" | "formText" | "formDatetimePicker" | "formRichTextEditor" | "formSelectFromObject" | "formSelectCaseStatus" | "generateForm" | "attemptResult" | "getEmail" | "formFile" | "customModule")[];
|
|
7
7
|
};
|
|
8
8
|
export type FlowTypeApplications = (typeof FlowTypeApplications)[keyof typeof FlowTypeApplications];
|
|
@@ -8,6 +8,7 @@ declare namespace components {
|
|
|
8
8
|
export { chip };
|
|
9
9
|
export { checkbox };
|
|
10
10
|
export { textarea };
|
|
11
|
+
export { toast };
|
|
11
12
|
export { switcher as toggleswitch };
|
|
12
13
|
export { divider };
|
|
13
14
|
export { image };
|
|
@@ -35,6 +36,7 @@ import badge from './badge/badge.js';
|
|
|
35
36
|
import chip from './chip/chip.js';
|
|
36
37
|
import checkbox from './checkbox/checkbox.js';
|
|
37
38
|
import textarea from './textarea/textarea.js';
|
|
39
|
+
import toast from './toast/toast.js';
|
|
38
40
|
import switcher from './switcher/switcher.js';
|
|
39
41
|
import divider from './divider/divider.js';
|
|
40
42
|
import image from './image/image.js';
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
export default toast;
|
|
2
|
+
declare const toast: {
|
|
3
|
+
colorScheme: {
|
|
4
|
+
light: {
|
|
5
|
+
root: {
|
|
6
|
+
blur: string;
|
|
7
|
+
};
|
|
8
|
+
info: {
|
|
9
|
+
background: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
color: string;
|
|
12
|
+
detailColor: string;
|
|
13
|
+
shadow: string;
|
|
14
|
+
closeButton: {
|
|
15
|
+
hoverBackground: string;
|
|
16
|
+
focusRing: {
|
|
17
|
+
color: string;
|
|
18
|
+
shadow: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
success: {
|
|
23
|
+
background: string;
|
|
24
|
+
borderColor: string;
|
|
25
|
+
color: string;
|
|
26
|
+
detailColor: string;
|
|
27
|
+
shadow: string;
|
|
28
|
+
closeButton: {
|
|
29
|
+
hoverBackground: string;
|
|
30
|
+
focusRing: {
|
|
31
|
+
color: string;
|
|
32
|
+
shadow: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
warn: {
|
|
37
|
+
background: string;
|
|
38
|
+
borderColor: string;
|
|
39
|
+
color: string;
|
|
40
|
+
detailColor: string;
|
|
41
|
+
shadow: string;
|
|
42
|
+
closeButton: {
|
|
43
|
+
hoverBackground: string;
|
|
44
|
+
focusRing: {
|
|
45
|
+
color: string;
|
|
46
|
+
shadow: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
error: {
|
|
51
|
+
background: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
color: string;
|
|
54
|
+
detailColor: string;
|
|
55
|
+
shadow: string;
|
|
56
|
+
closeButton: {
|
|
57
|
+
hoverBackground: string;
|
|
58
|
+
focusRing: {
|
|
59
|
+
color: string;
|
|
60
|
+
shadow: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
secondary: {
|
|
65
|
+
background: string;
|
|
66
|
+
borderColor: string;
|
|
67
|
+
color: string;
|
|
68
|
+
detailColor: string;
|
|
69
|
+
shadow: string;
|
|
70
|
+
closeButton: {
|
|
71
|
+
hoverBackground: string;
|
|
72
|
+
focusRing: {
|
|
73
|
+
color: string;
|
|
74
|
+
shadow: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
contrast: {
|
|
79
|
+
background: string;
|
|
80
|
+
borderColor: string;
|
|
81
|
+
color: string;
|
|
82
|
+
detailColor: string;
|
|
83
|
+
shadow: string;
|
|
84
|
+
closeButton: {
|
|
85
|
+
hoverBackground: string;
|
|
86
|
+
focusRing: {
|
|
87
|
+
color: string;
|
|
88
|
+
shadow: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
dark: {
|
|
94
|
+
root: {
|
|
95
|
+
blur: string;
|
|
96
|
+
};
|
|
97
|
+
info: {
|
|
98
|
+
background: string;
|
|
99
|
+
borderColor: string;
|
|
100
|
+
color: string;
|
|
101
|
+
detailColor: string;
|
|
102
|
+
shadow: string;
|
|
103
|
+
closeButton: {
|
|
104
|
+
hoverBackground: string;
|
|
105
|
+
focusRing: {
|
|
106
|
+
color: string;
|
|
107
|
+
shadow: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
success: {
|
|
112
|
+
background: string;
|
|
113
|
+
borderColor: string;
|
|
114
|
+
color: string;
|
|
115
|
+
detailColor: string;
|
|
116
|
+
shadow: string;
|
|
117
|
+
closeButton: {
|
|
118
|
+
hoverBackground: string;
|
|
119
|
+
focusRing: {
|
|
120
|
+
color: string;
|
|
121
|
+
shadow: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
warn: {
|
|
126
|
+
background: string;
|
|
127
|
+
borderColor: string;
|
|
128
|
+
color: string;
|
|
129
|
+
detailColor: string;
|
|
130
|
+
shadow: string;
|
|
131
|
+
closeButton: {
|
|
132
|
+
hoverBackground: string;
|
|
133
|
+
focusRing: {
|
|
134
|
+
color: string;
|
|
135
|
+
shadow: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
error: {
|
|
140
|
+
background: string;
|
|
141
|
+
borderColor: string;
|
|
142
|
+
color: string;
|
|
143
|
+
detailColor: string;
|
|
144
|
+
shadow: string;
|
|
145
|
+
closeButton: {
|
|
146
|
+
hoverBackground: string;
|
|
147
|
+
focusRing: {
|
|
148
|
+
color: string;
|
|
149
|
+
shadow: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
secondary: {
|
|
154
|
+
background: string;
|
|
155
|
+
borderColor: string;
|
|
156
|
+
color: string;
|
|
157
|
+
detailColor: string;
|
|
158
|
+
shadow: string;
|
|
159
|
+
closeButton: {
|
|
160
|
+
hoverBackground: string;
|
|
161
|
+
focusRing: {
|
|
162
|
+
color: string;
|
|
163
|
+
shadow: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
contrast: {
|
|
168
|
+
background: string;
|
|
169
|
+
borderColor: string;
|
|
170
|
+
color: string;
|
|
171
|
+
detailColor: string;
|
|
172
|
+
shadow: string;
|
|
173
|
+
closeButton: {
|
|
174
|
+
hoverBackground: string;
|
|
175
|
+
focusRing: {
|
|
176
|
+
color: string;
|
|
177
|
+
shadow: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
css: ({ dt }: {
|
|
184
|
+
dt: any;
|
|
185
|
+
}) => string;
|
|
186
|
+
root: {
|
|
187
|
+
width: string;
|
|
188
|
+
borderRadius: string;
|
|
189
|
+
borderWidth: string;
|
|
190
|
+
transitionDuration: string;
|
|
191
|
+
};
|
|
192
|
+
icon: {
|
|
193
|
+
size: string;
|
|
194
|
+
};
|
|
195
|
+
content: {
|
|
196
|
+
padding: string;
|
|
197
|
+
gap: string;
|
|
198
|
+
};
|
|
199
|
+
text: {
|
|
200
|
+
gap: string;
|
|
201
|
+
};
|
|
202
|
+
summary: {
|
|
203
|
+
fontWeight: string;
|
|
204
|
+
fontSize: string;
|
|
205
|
+
};
|
|
206
|
+
detail: {
|
|
207
|
+
fontWeight: string;
|
|
208
|
+
fontSize: string;
|
|
209
|
+
};
|
|
210
|
+
closeButton: {
|
|
211
|
+
width: string;
|
|
212
|
+
height: string;
|
|
213
|
+
borderRadius: string;
|
|
214
|
+
focusRing: {
|
|
215
|
+
width: string;
|
|
216
|
+
style: string;
|
|
217
|
+
offset: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
closeIcon: {
|
|
221
|
+
size: string;
|
|
222
|
+
};
|
|
223
|
+
};
|