@webitel/ui-sdk 26.4.33 → 26.4.35
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/{index-BDgdQJdj.js → index-Roia5eMO.js} +1 -1
- package/dist/{index-CvGa5rmw.js → index-oyJmkeim.js} +1 -1
- package/dist/{install-MwLwnvU6.js → install-QMIeJaQP.js} +1653 -1650
- package/dist/{isObject-D3jo0fTl.js → isObject-47V3csS5.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +406 -406
- package/dist/{useVidstackSrc-DYb1DPie.js → useVidstackSrc-CGEzqvQp.js} +1 -1
- package/dist/{vidstack-Bq6c3Bam-DNZccXBt.js → vidstack-Bq6c3Bam-DI2seNfv.js} +3 -3
- package/dist/{vidstack-D2pY00kU-iOQTy6WI.js → vidstack-D2pY00kU-Bnd9jPy3.js} +3 -3
- package/dist/{vidstack-DDXt6fpN-f0upxo66.js → vidstack-DDXt6fpN-D94vez1w.js} +2 -2
- package/dist/{vidstack-D_-9AA6_-LUV4ot8A.js → vidstack-D_-9AA6_-4njHBpdi.js} +2 -2
- package/dist/{vidstack-DqAw8m9J-D4l_CBtS.js → vidstack-DqAw8m9J-DzQijIZr.js} +1 -1
- package/dist/{vidstack-audio-BCDiWP6e.js → vidstack-audio-BmvM3Qam.js} +2 -2
- package/dist/{vidstack-dash-BzKYQPP9.js → vidstack-dash-MOhANEa2.js} +4 -4
- package/dist/{vidstack-google-cast-_VGW2e2l.js → vidstack-google-cast-0Ym-39oi.js} +4 -4
- package/dist/{vidstack-hls-B3DkEUtV.js → vidstack-hls-hVw-GZOs.js} +4 -4
- package/dist/{vidstack-video-B0YccQdG.js → vidstack-video-h4GIsOmA.js} +3 -3
- package/dist/{vidstack-vimeo-CoYecsti.js → vidstack-vimeo-BWpgnTHH.js} +4 -4
- package/dist/{vidstack-youtube-B4IL7ImC.js → vidstack-youtube-BTrv_J1m.js} +3 -3
- package/dist/{wt-action-bar-CgaGWhD-.js → wt-action-bar-DddMeUuz.js} +1 -1
- package/dist/{wt-button-select-aC4JO7XO.js → wt-button-select-F4QMC6dm.js} +1 -1
- package/dist/{wt-chat-emoji-DYXEUfIV.js → wt-chat-emoji-B3x1ns7c.js} +2 -2
- package/dist/{wt-confirm-dialog-D6q1YHiE.js → wt-confirm-dialog-Kp2ZVO86.js} +1 -1
- package/dist/{wt-context-menu-BvC0CepY.js → wt-context-menu-m4yJ7keo.js} +1 -1
- package/dist/{wt-copy-action-DcvapqvU.js → wt-copy-action-Df9iBfO2.js} +1 -1
- package/dist/{wt-datepicker-CLB-xRka.js → wt-datepicker-OnFIF-X9.js} +1 -1
- package/dist/{wt-display-chip-items-DoF7UKSg.js → wt-display-chip-items-B4lLiSne.js} +1 -1
- package/dist/{wt-dual-panel-wgelkQ6M.js → wt-dual-panel-DOna0CxV.js} +1 -1
- package/dist/{wt-dummy-CjuwwVGB.js → wt-dummy-9zwFlOGt.js} +1 -1
- package/dist/{wt-error-page-nil4zmk5.js → wt-error-page-D_WumGk-.js} +1 -1
- package/dist/{wt-expansion-card-CYWWuotp.js → wt-expansion-card-Dbm7uO1A.js} +1 -1
- package/dist/{wt-expansion-panel-CWpVdXzh.js → wt-expansion-panel-BlaJf3n6.js} +1 -1
- package/dist/{wt-filters-panel-wrapper-CP9v2NgW.js → wt-filters-panel-wrapper-b5LFEGBw.js} +1 -1
- package/dist/{wt-galleria-CISxmwmC.js → wt-galleria-BT_fZLWH.js} +1 -1
- package/dist/wt-inline-add-panel-DxdeUuAT.js +49 -0
- package/dist/{wt-navigation-menu-DnbjYCbR.js → wt-navigation-menu-cwEF2ijX.js} +1 -1
- package/dist/{wt-notifications-bar-c8gagwVi.js → wt-notifications-bar-BGrDiB8v.js} +2 -2
- package/dist/{wt-pagination-CNwu_pbv.js → wt-pagination-DwWIF6nl.js} +1 -1
- package/dist/{wt-player-BbZvuEdb.js → wt-player-B7YgHjUK.js} +2 -2
- package/dist/{wt-screen-recordings-action-CwrfjXDp.js → wt-screen-recordings-action-DKKwRMLp.js} +1 -1
- package/dist/{wt-search-bar-BXFWI64i.js → wt-search-bar-Dtp9U0LR.js} +1 -1
- package/dist/{wt-selection-popup-DQZzcMk7.js → wt-selection-popup-CCnPMPZB.js} +1 -1
- package/dist/{wt-start-page-wmYWrsnu.js → wt-start-page-B-i-pQw3.js} +1 -1
- package/dist/{wt-status-select-EDYuOVKB.js → wt-status-select-DISQXQjg.js} +1 -1
- package/dist/{wt-stepper-C4i7jd7S.js → wt-stepper-C5yC0VYM.js} +1 -1
- package/dist/{wt-table-DfKqxtz8.js → wt-table-B4kc-ipH.js} +1 -1
- package/dist/{wt-table-actions-D1DhH5T0.js → wt-table-actions-DntooC4W.js} +1 -1
- package/dist/{wt-table-column-select-C8cac1Bf.js → wt-table-column-select-DbhHTkMe.js} +2 -2
- package/dist/{wt-tabs-D2cD4T3p.js → wt-tabs-QcPjT0wy.js} +1 -1
- package/dist/{wt-tags-input-wdDP3Q_y.js → wt-tags-input-CqvTyjDV.js} +2 -2
- package/dist/{wt-timepicker-4a-WappU.js → wt-timepicker-DdzK-Tyi.js} +1 -1
- package/dist/{wt-tree-M-3tOdhH.js → wt-tree-B1Q2YeD6.js} +2 -2
- package/dist/{wt-tree-table-IKzY97S6.js → wt-tree-table-Buj_TA4d.js} +1 -1
- package/dist/{wt-type-extension-value-input-C2CqgqO3.js → wt-type-extension-value-input-CoiLEZP5.js} +28 -30
- package/dist/{wt-vidstack-player-g30K82ZR.js → wt-vidstack-player-DK1jhBLF.js} +287 -297
- package/package.json +1 -1
- package/src/components/index.js +6 -0
- package/src/components/wt-inline-add-panel/__tests__/WtInlineAddPanel.spec.js +70 -0
- package/src/components/wt-inline-add-panel/wt-inline-add-panel.vue +69 -0
- package/src/components/wt-vidstack-player/components/panels/video-display-panel/video-display-panel.vue +6 -2
- package/src/components/wt-vidstack-player/components/toggle-button.vue +6 -27
- package/types/components/wt-inline-add-panel/__tests__/WtInlineAddPanel.spec.d.ts +1 -0
- package/types/components/wt-inline-add-panel/wt-inline-add-panel.vue.d.ts +26 -0
- package/types/components/wt-vidstack-player/components/toggle-button.vue.d.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.35",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run biome:format:all || true) && npm run publish-lib",
|
package/src/components/index.js
CHANGED
|
@@ -162,6 +162,10 @@ const WtScreenRecordingsAction = defineAsyncComponent(
|
|
|
162
162
|
),
|
|
163
163
|
);
|
|
164
164
|
|
|
165
|
+
const WtInlineAddPanel = defineAsyncComponent(
|
|
166
|
+
() => import('./wt-inline-add-panel/wt-inline-add-panel.vue'),
|
|
167
|
+
);
|
|
168
|
+
|
|
165
169
|
const Components = {
|
|
166
170
|
WtActionBar,
|
|
167
171
|
WtImage,
|
|
@@ -243,6 +247,7 @@ const Components = {
|
|
|
243
247
|
WtExpansionCard,
|
|
244
248
|
WtDatetimeText,
|
|
245
249
|
WtScreenRecordingsAction,
|
|
250
|
+
WtInlineAddPanel,
|
|
246
251
|
};
|
|
247
252
|
|
|
248
253
|
export {
|
|
@@ -281,6 +286,7 @@ export {
|
|
|
281
286
|
WtIconBtn,
|
|
282
287
|
WtImage,
|
|
283
288
|
WtIndicator,
|
|
289
|
+
WtInlineAddPanel,
|
|
284
290
|
WtInputNumber,
|
|
285
291
|
WtInputText,
|
|
286
292
|
WtIntersectionObserver,
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { shallowMount } from '@vue/test-utils';
|
|
2
|
+
|
|
3
|
+
import WtInlineAddPanel from '../wt-inline-add-panel.vue';
|
|
4
|
+
|
|
5
|
+
describe('WtInlineAddPanel', () => {
|
|
6
|
+
it('renders a component', () => {
|
|
7
|
+
const wrapper = shallowMount(WtInlineAddPanel);
|
|
8
|
+
expect(wrapper.classes('wt-inline-add-panel')).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('renders default direction class "row"', () => {
|
|
12
|
+
const wrapper = shallowMount(WtInlineAddPanel);
|
|
13
|
+
expect(wrapper.classes('wt-inline-add-panel--row')).toBe(true);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('renders "column" direction class when direction prop is "column"', () => {
|
|
17
|
+
const wrapper = shallowMount(WtInlineAddPanel, {
|
|
18
|
+
props: {
|
|
19
|
+
direction: 'column',
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
expect(wrapper.classes('wt-inline-add-panel--column')).toBe(true);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('renders content via default slot', () => {
|
|
26
|
+
const content = 'slot content';
|
|
27
|
+
const wrapper = shallowMount(WtInlineAddPanel, {
|
|
28
|
+
slots: {
|
|
29
|
+
default: content,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
expect(wrapper.text()).toContain(content);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
it('emits "submit" on submit button click', async () => {
|
|
36
|
+
const wrapper = shallowMount(WtInlineAddPanel);
|
|
37
|
+
const buttons = wrapper.findAllComponents({
|
|
38
|
+
name: 'WtButton',
|
|
39
|
+
});
|
|
40
|
+
await buttons[0].trigger('click');
|
|
41
|
+
expect(wrapper.emitted('submit')).toBeTruthy();
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('emits "reset" on close button click', async () => {
|
|
45
|
+
const wrapper = shallowMount(WtInlineAddPanel);
|
|
46
|
+
const buttons = wrapper.findAllComponents({
|
|
47
|
+
name: 'WtButton',
|
|
48
|
+
});
|
|
49
|
+
await buttons[1].trigger('click');
|
|
50
|
+
expect(wrapper.emitted('reset')).toBeTruthy();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('disables submit button when disabledAddAction is true', () => {
|
|
54
|
+
const wrapper = shallowMount(WtInlineAddPanel, {
|
|
55
|
+
props: {
|
|
56
|
+
disabledAddAction: true,
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
const submitButton = wrapper.findAllComponents({
|
|
60
|
+
name: 'WtButton',
|
|
61
|
+
})[0];
|
|
62
|
+
expect(submitButton.props('disabled')).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('emits "submit" on form submit', async () => {
|
|
66
|
+
const wrapper = shallowMount(WtInlineAddPanel);
|
|
67
|
+
await wrapper.find('form').trigger('submit');
|
|
68
|
+
expect(wrapper.emitted('submit')).toBeTruthy();
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<form
|
|
3
|
+
class="wt-inline-add-panel"
|
|
4
|
+
:class="[`wt-inline-add-panel--${props.direction}`]"
|
|
5
|
+
@submit.prevent="submit"
|
|
6
|
+
>
|
|
7
|
+
<slot />
|
|
8
|
+
<div class="wt-inline-add-panel__actions">
|
|
9
|
+
<wt-button
|
|
10
|
+
:disabled="props.disabledAddAction"
|
|
11
|
+
icon="tick"
|
|
12
|
+
color="secondary"
|
|
13
|
+
outlined
|
|
14
|
+
@click="submit"
|
|
15
|
+
/>
|
|
16
|
+
<wt-button
|
|
17
|
+
icon="close"
|
|
18
|
+
outlined
|
|
19
|
+
color="secondary"
|
|
20
|
+
@click="reset"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
</form>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script lang="ts" setup>
|
|
28
|
+
interface WtInlineAddPanel {
|
|
29
|
+
disabledAddAction?: boolean;
|
|
30
|
+
direction?: 'row' | 'column';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const props = withDefaults(defineProps<WtInlineAddPanel>(), {
|
|
34
|
+
direction: 'row',
|
|
35
|
+
disabledAddAction: false,
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const emit = defineEmits([
|
|
39
|
+
'submit',
|
|
40
|
+
'reset',
|
|
41
|
+
]);
|
|
42
|
+
|
|
43
|
+
function submit() {
|
|
44
|
+
emit('submit');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function reset() {
|
|
48
|
+
emit('reset');
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
|
|
52
|
+
<style scoped>
|
|
53
|
+
.wt-inline-add-panel {
|
|
54
|
+
display: flex;
|
|
55
|
+
width: 100%;
|
|
56
|
+
gap: var(--spacing-xs);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wt-inline-add-panel__actions {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: flex-end;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
gap: var(--spacing-xs);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.wt-inline-add-panel--column {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
/>
|
|
25
25
|
<toggle-button
|
|
26
26
|
v-if="!props.hideExpand"
|
|
27
|
-
|
|
28
|
-
secondary-icon="collapse"
|
|
27
|
+
:icon="toggleIcon"
|
|
29
28
|
color="on-dark"
|
|
30
29
|
@toggle="handlePlayerSize"
|
|
31
30
|
/>
|
|
@@ -41,6 +40,7 @@
|
|
|
41
40
|
|
|
42
41
|
<script setup lang="ts">
|
|
43
42
|
import {
|
|
43
|
+
computed,
|
|
44
44
|
defineEmits,
|
|
45
45
|
defineProps,
|
|
46
46
|
inject,
|
|
@@ -58,6 +58,10 @@ import ToggleButton from '../../toggle-button.vue';
|
|
|
58
58
|
const { size, fullscreen, changeSize } =
|
|
59
59
|
inject<WtVidstackPlayerSizeProvider>('size');
|
|
60
60
|
|
|
61
|
+
const toggleIcon = computed(() =>
|
|
62
|
+
size.value === ComponentSize.SM ? 'expand' : 'collapse',
|
|
63
|
+
);
|
|
64
|
+
|
|
61
65
|
const props = defineProps<{
|
|
62
66
|
title?: string;
|
|
63
67
|
username?: string;
|
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
ref="toggleButton"
|
|
2
|
+
<div
|
|
4
3
|
class="toggle-button"
|
|
5
|
-
:disabled="props.disabled"
|
|
6
4
|
@click="setToggleState"
|
|
7
5
|
>
|
|
8
6
|
<wt-icon-btn
|
|
9
|
-
:icon="props.
|
|
7
|
+
:icon="props.icon"
|
|
10
8
|
:color="props.color"
|
|
11
9
|
:disabled="props.disabled"
|
|
12
|
-
class="toggle-button__primary"
|
|
13
10
|
/>
|
|
14
|
-
|
|
15
|
-
:icon="props.secondaryIcon"
|
|
16
|
-
:color="props.color"
|
|
17
|
-
:disabled="props.disabled"
|
|
18
|
-
class="toggle-button__secondary"
|
|
19
|
-
/>
|
|
20
|
-
</media-toggle-button>
|
|
11
|
+
</div>
|
|
21
12
|
</template>
|
|
22
13
|
|
|
23
14
|
<script setup lang="ts">
|
|
24
|
-
import { defineEmits, defineProps, type Ref, useTemplateRef } from 'vue';
|
|
25
|
-
|
|
26
15
|
import WtIconBtn from '../../wt-icon-btn/wt-icon-btn.vue';
|
|
27
16
|
|
|
28
17
|
const props = defineProps<{
|
|
29
|
-
|
|
30
|
-
secondaryIcon: string;
|
|
18
|
+
icon: string;
|
|
31
19
|
color?: string;
|
|
32
20
|
disabled?: boolean;
|
|
33
21
|
}>();
|
|
34
22
|
|
|
35
|
-
const toggleButton = useTemplateRef('toggleButton') as Ref<HTMLElement>;
|
|
36
|
-
|
|
37
23
|
const emit = defineEmits<{
|
|
38
|
-
toggle: [
|
|
39
|
-
value: boolean,
|
|
40
|
-
];
|
|
24
|
+
toggle: [];
|
|
41
25
|
}>();
|
|
42
26
|
|
|
43
27
|
const setToggleState = () => {
|
|
44
28
|
if (props.disabled) return;
|
|
45
|
-
emit('toggle'
|
|
29
|
+
emit('toggle');
|
|
46
30
|
};
|
|
47
31
|
</script>
|
|
48
|
-
|
|
49
|
-
<style scoped>.toggle-button[data-pressed] .toggle-button__primary,
|
|
50
|
-
.toggle-button:not([data-pressed]) .toggle-button__secondary {
|
|
51
|
-
display: none;
|
|
52
|
-
}</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface WtInlineAddPanel {
|
|
2
|
+
disabledAddAction?: boolean;
|
|
3
|
+
direction?: 'row' | 'column';
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<WtInlineAddPanel, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
submit: (...args: any[]) => void;
|
|
11
|
+
reset: (...args: any[]) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<WtInlineAddPanel> & Readonly<{
|
|
13
|
+
onSubmit?: (...args: any[]) => any;
|
|
14
|
+
onReset?: (...args: any[]) => any;
|
|
15
|
+
}>, {
|
|
16
|
+
disabledAddAction: boolean;
|
|
17
|
+
direction: "row" | "column";
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
secondaryIcon: string;
|
|
2
|
+
icon: string;
|
|
4
3
|
color?: string;
|
|
5
4
|
disabled?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
toggle: (
|
|
7
|
+
toggle: () => any;
|
|
9
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onToggle?: (
|
|
9
|
+
onToggle?: () => any;
|
|
11
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
11
|
declare const _default: typeof __VLS_export;
|
|
13
12
|
export default _default;
|