@webitel/ui-sdk 24.4.37 → 24.4.39
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.mjs +9 -5
- package/dist/ui-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/wt-player/wt-player.vue +11 -1
- package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue +1 -1
- package/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +2 -2
package/package.json
CHANGED
|
@@ -41,6 +41,10 @@ export default {
|
|
|
41
41
|
type: Boolean,
|
|
42
42
|
default: false,
|
|
43
43
|
},
|
|
44
|
+
hideDuration: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
44
48
|
download: {
|
|
45
49
|
type: [String, Function, Boolean],
|
|
46
50
|
default: () => (url) => url.replace('/stream', '/download'),
|
|
@@ -107,11 +111,17 @@ export default {
|
|
|
107
111
|
const baseURL = this.$baseURL || process.env.BASE_URL || import.meta.env.BASE_URL;
|
|
108
112
|
const iconUrl = createPlyrURL(baseURL);
|
|
109
113
|
if (this.player) this.player.destroy();
|
|
110
|
-
|
|
114
|
+
|
|
115
|
+
const defaultControls = [
|
|
111
116
|
'play-large', 'play', 'progress', 'current-time',
|
|
112
117
|
'duration', 'mute', 'volume', 'captions', 'settings',
|
|
113
118
|
'pip', 'airplay', 'fullscreen'
|
|
114
119
|
];
|
|
120
|
+
|
|
121
|
+
const controls = this.hideDuration
|
|
122
|
+
? defaultControls.filter(control => control !== 'duration')
|
|
123
|
+
: defaultControls;
|
|
124
|
+
|
|
115
125
|
if (this.download) controls.push('download');
|
|
116
126
|
this.player = new Plyr(this.$refs.player, {
|
|
117
127
|
// this.player = new Plyr('.wt-player__player', {
|
package/src/modules/AuditForm/components/questions/options/audit-form-question-options-write-row.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<wt-input
|
|
11
11
|
:label="$t('webitelUI.auditForm.score', 1)"
|
|
12
|
-
:label-props="{ hint: $t('
|
|
12
|
+
:label-props="{ hint: $t('webitelUI.auditForm.scoreInputTooltip', { min: minScore, max: maxScore}), hintPosition: 'right' }"
|
|
13
13
|
:value="option.score"
|
|
14
14
|
:v="v$.option.score"
|
|
15
15
|
:number-min="minScore"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:number-min="0"
|
|
11
11
|
:number-max="9"
|
|
12
12
|
:label="$t('reusable.from')"
|
|
13
|
-
:label-props="{ hint: $t('
|
|
13
|
+
:label-props="{ hint: $t('webitelUI.auditForm.scoreInputTooltip', { min: '0', max: '9'}), hintPosition: 'right' }"
|
|
14
14
|
type="number"
|
|
15
15
|
required
|
|
16
16
|
@input="updateQuestion({ path: 'min', value: $event })"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:number-min="1"
|
|
22
22
|
:number-max="10"
|
|
23
23
|
:label="$t('reusable.to')"
|
|
24
|
-
:label-props="{ hint: $t('
|
|
24
|
+
:label-props="{ hint: $t('webitelUI.auditForm.scoreInputTooltip', { min: '1', max: '10'}), hintPosition: 'right' }"
|
|
25
25
|
type="number"
|
|
26
26
|
required
|
|
27
27
|
@input="updateQuestion({ path: 'max', value: $event })"
|