@webitel/ui-sdk 25.12.25 → 25.12.27
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/{install-Dlm9F6VX.js → install-A9G4M7-6.js} +13392 -14121
- package/dist/{plyr-C2xH9S2_.js → plyr-dI1qsIWm.js} +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +936 -936
- package/dist/{vidstack-Bq6c3Bam-LBg_N7NA.js → vidstack-Bq6c3Bam-Bpshd13A.js} +17 -17
- package/dist/{vidstack-D2pY00kU-B54jdjLZ.js → vidstack-D2pY00kU-DknwOKzI.js} +22 -22
- package/dist/{vidstack-DDXt6fpN-0R_qWhr7.js → vidstack-DDXt6fpN-2JcEs0WE.js} +4 -4
- package/dist/{vidstack-D_-9AA6_-C20rEPA8.js → vidstack-D_-9AA6_-ltFyEXo5.js} +1 -1
- package/dist/vidstack-DqAw8m9J-CL4FNO5F.js +29 -0
- package/dist/{vidstack-audio-CVUfqXtN.js → vidstack-audio-CnLJOsQb.js} +2 -2
- package/dist/{vidstack-dash-DH1tKEgp.js → vidstack-dash-DE9OxUbu.js} +3 -3
- package/dist/{vidstack-google-cast-Chb7A1N-.js → vidstack-google-cast-DUF-rvcM.js} +10 -10
- package/dist/{vidstack-hls-isJ6fzIa.js → vidstack-hls-B5QgAztZ.js} +32 -32
- package/dist/{vidstack-video-Oj0vav_S.js → vidstack-video-DK5nUu2T.js} +8 -8
- package/dist/{vidstack-vimeo-t7YlxjO1.js → vidstack-vimeo-BPIRVQ20.js} +22 -22
- package/dist/{vidstack-youtube-Dx4AYrj5.js → vidstack-youtube-BBGQ_xiA.js} +29 -29
- package/dist/vuex.esm-bundler-07IDl-KX.js +950 -0
- package/package.json +1 -1
- package/src/components/wt-button/wt-button.vue +28 -4
- package/src/plugins/primevue/theme/components/breadcrumb/breadcrumb.js +1 -1
- package/src/plugins/primevue/theme/components/button/button.js +1 -1
- package/src/plugins/primevue/theme/components/checkbox/checkbox.js +1 -1
- package/src/plugins/primevue/theme/components/chip/chip.js +1 -2
- package/src/plugins/primevue/theme/components/divider/divider.js +1 -1
- package/src/plugins/primevue/theme/components/galleria/galleria.js +1 -1
- package/src/plugins/primevue/theme/components/menubar/menubar.js +1 -1
- package/src/plugins/primevue/theme/components/popover/popover.js +1 -1
- package/src/plugins/primevue/theme/components/radio/radio.js +1 -1
- package/src/plugins/primevue/theme/components/slider/slider.js +1 -1
- package/src/plugins/primevue/theme/components/switcher/switcher.js +1 -1
- package/src/plugins/primevue/theme/components/table/table.js +1 -1
- package/src/plugins/primevue/theme/components/textarea/textarea.js +1 -1
- package/src/plugins/primevue/theme/components/toolbar/toolbar.js +1 -1
- package/src/plugins/primevue/theme/components/tooltip/tooltip.js +1 -1
- package/types/plugins/primevue/theme/components/breadcrumb/breadcrumb.d.ts +24 -22
- package/types/plugins/primevue/theme/components/button/button.d.ts +55 -53
- package/types/plugins/primevue/theme/components/checkbox/checkbox.d.ts +36 -34
- package/types/plugins/primevue/theme/components/chip/chip.d.ts +20 -18
- package/types/plugins/primevue/theme/components/divider/divider.d.ts +19 -17
- package/types/plugins/primevue/theme/components/galleria/galleria.d.ts +94 -92
- package/types/plugins/primevue/theme/components/menubar/menubar.d.ts +10 -8
- package/types/plugins/primevue/theme/components/popover/popover.d.ts +10 -8
- package/types/plugins/primevue/theme/components/radio/radio.d.ts +36 -34
- package/types/plugins/primevue/theme/components/slider/slider.d.ts +27 -25
- package/types/plugins/primevue/theme/components/switcher/switcher.d.ts +20 -18
- package/types/plugins/primevue/theme/components/table/table.d.ts +103 -101
- package/types/plugins/primevue/theme/components/textarea/textarea.d.ts +29 -27
- package/types/plugins/primevue/theme/components/toolbar/toolbar.d.ts +8 -6
- package/types/plugins/primevue/theme/components/tooltip/tooltip.d.ts +12 -10
- package/dist/vidstack-DqAw8m9J-BVoQCcQn.js +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.12.
|
|
3
|
+
"version": "25.12.27",
|
|
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 lint:fix || true) && npm run publish-lib",
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
<script lang="ts" setup>
|
|
37
37
|
import type { ButtonProps } from 'primevue';
|
|
38
|
-
import {computed, defineEmits, defineProps, ref, useAttrs, watch} from 'vue';
|
|
39
|
-
import {useStore} from "vuex";
|
|
38
|
+
import { computed, defineEmits, defineProps, inject,ref, useAttrs, watch } from 'vue';
|
|
40
39
|
|
|
41
40
|
import { ButtonColor, ButtonVariant, ComponentSize, } from '../../enums';
|
|
42
41
|
|
|
@@ -81,9 +80,34 @@ const emit = defineEmits(['click']);
|
|
|
81
80
|
const attrs = useAttrs();
|
|
82
81
|
|
|
83
82
|
const showLoader = ref(false);
|
|
84
|
-
const store = useStore();
|
|
85
83
|
|
|
86
|
-
|
|
84
|
+
// @Ler24
|
|
85
|
+
// Compatibility mode for Vuex (old mode) and when there is no Vuex in project (new mode)
|
|
86
|
+
const store = ref(null);
|
|
87
|
+
|
|
88
|
+
const initStore = async () => {
|
|
89
|
+
try {
|
|
90
|
+
const vuex = await import('vuex');
|
|
91
|
+
store.value = vuex.useStore();
|
|
92
|
+
} catch (e) {
|
|
93
|
+
store.value = null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
initStore();
|
|
97
|
+
|
|
98
|
+
const injectDarkMode = inject('darkMode');
|
|
99
|
+
|
|
100
|
+
const darkMode = computed(() => {
|
|
101
|
+
if (injectDarkMode?.value) {
|
|
102
|
+
return injectDarkMode.value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (store?.value?.getters) {
|
|
106
|
+
return store?.value?.getters['appearance/DARK_MODE'] ?? false;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return false;
|
|
110
|
+
});
|
|
87
111
|
|
|
88
112
|
/**
|
|
89
113
|
* @author: @Opelsandr Palonnyi
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChipScheme } from '@webitel/styleguide/component-schemes';
|
|
2
|
-
|
|
3
2
|
const generateCustomColorCss = ({ colorName, dt }) => `
|
|
4
3
|
.p-chip-${colorName} {
|
|
5
4
|
background: ${dt(`chip.${colorName}.background`)};
|
|
@@ -16,7 +15,7 @@ const generateCustomColorCss = ({ colorName, dt }) => `
|
|
|
16
15
|
`;
|
|
17
16
|
|
|
18
17
|
const chip = {
|
|
19
|
-
|
|
18
|
+
root: ChipScheme.sizes,
|
|
20
19
|
colorScheme: ChipScheme.colorScheme,
|
|
21
20
|
|
|
22
21
|
// Rewrite the default chip styles in the theme here:
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
export default breadcrumb;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare namespace breadcrumb {
|
|
3
|
+
let root: {
|
|
4
|
+
root: {
|
|
5
|
+
padding: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
transitionDuration: string;
|
|
8
|
+
};
|
|
9
|
+
item: {
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
gap: string;
|
|
12
|
+
focusRing: {
|
|
13
|
+
width: string;
|
|
14
|
+
style: string;
|
|
15
|
+
offset: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
separator: {
|
|
19
|
+
size: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
let colorScheme: {
|
|
4
23
|
light: {
|
|
5
24
|
root: {
|
|
6
25
|
background: string;
|
|
@@ -44,24 +63,7 @@ declare const breadcrumb: {
|
|
|
44
63
|
};
|
|
45
64
|
};
|
|
46
65
|
};
|
|
47
|
-
css
|
|
66
|
+
function css({ dt }: {
|
|
48
67
|
dt: any;
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
padding: string;
|
|
52
|
-
gap: string;
|
|
53
|
-
transitionDuration: string;
|
|
54
|
-
};
|
|
55
|
-
item: {
|
|
56
|
-
borderRadius: string;
|
|
57
|
-
gap: string;
|
|
58
|
-
focusRing: {
|
|
59
|
-
width: string;
|
|
60
|
-
style: string;
|
|
61
|
-
offset: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
separator: {
|
|
65
|
-
size: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
+
}): string;
|
|
69
|
+
}
|
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
export default button;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare namespace button {
|
|
3
|
+
let root: {
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
roundedBorderRadius: string;
|
|
6
|
+
gap: string;
|
|
7
|
+
paddingX: string;
|
|
8
|
+
paddingY: string;
|
|
9
|
+
iconOnlyWidth: string;
|
|
10
|
+
sm: {
|
|
11
|
+
fontSize: string;
|
|
12
|
+
paddingX: string;
|
|
13
|
+
paddingY: string;
|
|
14
|
+
iconOnlyWidth: string;
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
fontSize: string;
|
|
18
|
+
paddingX: string;
|
|
19
|
+
paddingY: string;
|
|
20
|
+
iconOnlyWidth: string;
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
xs: {
|
|
24
|
+
padding: string;
|
|
25
|
+
};
|
|
26
|
+
sm: {
|
|
27
|
+
padding: string;
|
|
28
|
+
};
|
|
29
|
+
md: {
|
|
30
|
+
padding: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
label: {
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
};
|
|
36
|
+
raisedShadow: string;
|
|
37
|
+
focusRing: {
|
|
38
|
+
width: string;
|
|
39
|
+
style: string;
|
|
40
|
+
offset: string;
|
|
41
|
+
};
|
|
42
|
+
badgeSize: string;
|
|
43
|
+
transitionDuration: string;
|
|
44
|
+
};
|
|
45
|
+
let colorScheme: {
|
|
4
46
|
light: {
|
|
5
47
|
root: {
|
|
6
48
|
primary: {
|
|
@@ -452,55 +494,15 @@ declare const button: {
|
|
|
452
494
|
};
|
|
453
495
|
};
|
|
454
496
|
};
|
|
455
|
-
extend
|
|
456
|
-
transfer
|
|
457
|
-
background: string;
|
|
458
|
-
hoverBackground: string;
|
|
459
|
-
color: string;
|
|
460
|
-
hoverColor: string;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
css
|
|
497
|
+
namespace extend {
|
|
498
|
+
namespace transfer {
|
|
499
|
+
let background: string;
|
|
500
|
+
let hoverBackground: string;
|
|
501
|
+
let color: string;
|
|
502
|
+
let hoverColor: string;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function css({ dt }: {
|
|
464
506
|
dt: any;
|
|
465
|
-
})
|
|
466
|
-
|
|
467
|
-
roundedBorderRadius: string;
|
|
468
|
-
gap: string;
|
|
469
|
-
paddingX: string;
|
|
470
|
-
paddingY: string;
|
|
471
|
-
iconOnlyWidth: string;
|
|
472
|
-
sm: {
|
|
473
|
-
fontSize: string;
|
|
474
|
-
paddingX: string;
|
|
475
|
-
paddingY: string;
|
|
476
|
-
iconOnlyWidth: string;
|
|
477
|
-
};
|
|
478
|
-
lg: {
|
|
479
|
-
fontSize: string;
|
|
480
|
-
paddingX: string;
|
|
481
|
-
paddingY: string;
|
|
482
|
-
iconOnlyWidth: string;
|
|
483
|
-
};
|
|
484
|
-
icon: {
|
|
485
|
-
xs: {
|
|
486
|
-
padding: string;
|
|
487
|
-
};
|
|
488
|
-
sm: {
|
|
489
|
-
padding: string;
|
|
490
|
-
};
|
|
491
|
-
md: {
|
|
492
|
-
padding: string;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
label: {
|
|
496
|
-
fontWeight: string;
|
|
497
|
-
};
|
|
498
|
-
raisedShadow: string;
|
|
499
|
-
focusRing: {
|
|
500
|
-
width: string;
|
|
501
|
-
style: string;
|
|
502
|
-
offset: string;
|
|
503
|
-
};
|
|
504
|
-
badgeSize: string;
|
|
505
|
-
transitionDuration: string;
|
|
506
|
-
};
|
|
507
|
+
}): string;
|
|
508
|
+
}
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
export default checkbox;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare namespace checkbox {
|
|
3
|
+
let root: {
|
|
4
|
+
root: {
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
wrapperWidth: string;
|
|
9
|
+
wrapperHeight: string;
|
|
10
|
+
sm: {
|
|
11
|
+
width: string;
|
|
12
|
+
height: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
};
|
|
18
|
+
focusRing: {
|
|
19
|
+
width: string;
|
|
20
|
+
style: string;
|
|
21
|
+
offset: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
size: string;
|
|
26
|
+
sm: {
|
|
27
|
+
size: string;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
size: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
let colorScheme: {
|
|
4
35
|
light: {
|
|
5
36
|
root: {
|
|
6
37
|
background: string;
|
|
@@ -60,36 +91,7 @@ declare const checkbox: {
|
|
|
60
91
|
};
|
|
61
92
|
};
|
|
62
93
|
};
|
|
63
|
-
css
|
|
94
|
+
function css({ dt }: {
|
|
64
95
|
dt: any;
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
borderRadius: string;
|
|
68
|
-
width: string;
|
|
69
|
-
height: string;
|
|
70
|
-
wrapperWidth: string;
|
|
71
|
-
wrapperHeight: string;
|
|
72
|
-
sm: {
|
|
73
|
-
width: string;
|
|
74
|
-
height: string;
|
|
75
|
-
};
|
|
76
|
-
lg: {
|
|
77
|
-
width: string;
|
|
78
|
-
height: string;
|
|
79
|
-
};
|
|
80
|
-
focusRing: {
|
|
81
|
-
width: string;
|
|
82
|
-
style: string;
|
|
83
|
-
offset: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
icon: {
|
|
87
|
-
size: string;
|
|
88
|
-
sm: {
|
|
89
|
-
size: string;
|
|
90
|
-
};
|
|
91
|
-
lg: {
|
|
92
|
-
size: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
+
}): string;
|
|
97
|
+
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
export default chip;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare namespace chip {
|
|
3
|
+
let root: {
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
paddingX: string;
|
|
6
|
+
paddingY: string;
|
|
7
|
+
gap: string;
|
|
8
|
+
transitionDuration: string;
|
|
9
|
+
removeIcon: {
|
|
10
|
+
size: string;
|
|
11
|
+
focusRing: {
|
|
12
|
+
width: string;
|
|
13
|
+
style: string;
|
|
14
|
+
offset: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
let colorScheme: {
|
|
4
19
|
light: {
|
|
5
20
|
background: string;
|
|
6
21
|
color: string;
|
|
@@ -104,20 +119,7 @@ declare const chip: {
|
|
|
104
119
|
};
|
|
105
120
|
};
|
|
106
121
|
};
|
|
107
|
-
css
|
|
122
|
+
function css({ dt }: {
|
|
108
123
|
dt: any;
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
paddingX: string;
|
|
112
|
-
paddingY: string;
|
|
113
|
-
gap: string;
|
|
114
|
-
transitionDuration: string;
|
|
115
|
-
removeIcon: {
|
|
116
|
-
size: string;
|
|
117
|
-
focusRing: {
|
|
118
|
-
width: string;
|
|
119
|
-
style: string;
|
|
120
|
-
offset: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
+
}): string;
|
|
125
|
+
}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
export default divider;
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare namespace divider {
|
|
3
|
+
let root: {
|
|
4
|
+
horizontal: {
|
|
5
|
+
margin: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
content: {
|
|
8
|
+
padding: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
vertical: {
|
|
12
|
+
margin: string;
|
|
13
|
+
padding: string;
|
|
14
|
+
content: {
|
|
15
|
+
padding: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
let colorScheme: {
|
|
4
20
|
light: {
|
|
5
21
|
root: {
|
|
6
22
|
borderColor: string;
|
|
@@ -20,18 +36,4 @@ declare const divider: {
|
|
|
20
36
|
};
|
|
21
37
|
};
|
|
22
38
|
};
|
|
23
|
-
|
|
24
|
-
margin: string;
|
|
25
|
-
padding: string;
|
|
26
|
-
content: {
|
|
27
|
-
padding: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
vertical: {
|
|
31
|
-
margin: string;
|
|
32
|
-
padding: string;
|
|
33
|
-
content: {
|
|
34
|
-
padding: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
39
|
+
}
|