@webitel/ui-sdk 26.8.10 → 26.8.11
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-BEEq6Fvq.js → components-BLEJ4Oo8.js} +12 -8
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +2 -2
- package/dist/{wt-chat-emoji-D9v1fWl2.js → wt-chat-emoji-_A9gvxUy.js} +1 -1
- package/dist/{wt-display-chip-items-DviuzYP0.js → wt-display-chip-items-CiUuothL.js} +1 -1
- package/dist/{wt-player-zWCh3Ozp.js → wt-player-xBVVmERg.js} +1 -1
- package/dist/{wt-send-message-popup-oYdzmm4y.js → wt-send-message-popup-ClhwtLh1.js} +1 -1
- package/dist/{wt-timepicker-Dj0y9-U_.js → wt-timepicker-Bmyt8-Tx.js} +1 -1
- package/dist/{wt-type-extension-value-input-wpaNQiRx.js → wt-type-extension-value-input-CnIycAjD.js} +1 -1
- package/dist/{wt-vidstack-player-DQH5QOAU.js → wt-vidstack-player-C9oh23wo.js} +1 -1
- package/package.json +1 -1
- package/src/components/wt-empty/wt-empty.vue +2 -0
- package/src/components/wt-input-number/wt-input-number.vue +2 -2
- package/src/components/wt-input-text/wt-input-text.vue +2 -2
- package/src/components/wt-multi-select/wt-multi-select.vue +2 -1
- package/src/components/wt-password/wt-password.vue +2 -2
- package/src/components/wt-player/wt-player.vue +4 -4
- package/src/components/wt-single-select/wt-single-select.vue +2 -1
- package/src/components/wt-time-input/wt-time-input.vue +2 -2
- package/src/components/wt-timepicker/wt-timepicker.vue +2 -3
- package/src/mixins/validationMixin/regle/WtRegleFieldValidation.ts +14 -0
- package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -2
- package/types/.tsbuildinfo +1 -1
- package/types/components/wt-empty/wt-empty.vue.d.ts +2 -2
- package/types/components/wt-input-number/wt-input-number.vue.d.ts +3 -3
- package/types/components/wt-input-text/wt-input-text.vue.d.ts +3 -3
- package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +2 -1
- package/types/components/wt-password/wt-password.vue.d.ts +3 -3
- package/types/components/wt-player/wt-player.vue.d.ts +4 -4
- package/types/components/wt-single-select/wt-single-select.vue.d.ts +2 -1
- package/types/components/wt-time-input/wt-time-input.vue.d.ts +5 -5
- package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +3 -3
- package/types/mixins/validationMixin/regle/WtRegleFieldValidation.d.ts +10 -0
- package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components-
|
|
1
|
+
import { C as e, i as t } from "./components-BLEJ4Oo8.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./displayText-CtaxzaBz.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, r as t } from "./clients-DqzkR0RW.js";
|
|
2
|
-
import { n } from "./components-
|
|
2
|
+
import { n } from "./components-BLEJ4Oo8.js";
|
|
3
3
|
import { t as r } from "./vue-i18n-Db_oYfO8.js";
|
|
4
4
|
import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
5
|
//#endregion
|
package/dist/{wt-type-extension-value-input-wpaNQiRx.js → wt-type-extension-value-input-CnIycAjD.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clients-DqzkR0RW.js";
|
|
2
|
-
import { a as t, o as n, r, s as i } from "./components-
|
|
2
|
+
import { a as t, o as n, r, s as i } from "./components-BLEJ4Oo8.js";
|
|
3
3
|
import { t as a } from "./enums-De8CDKZ1.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-Db_oYfO8.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
package/package.json
CHANGED
|
@@ -92,8 +92,10 @@ import { greaterOrEqual, smallerOrEqual } from '../../scripts/compareSize';
|
|
|
92
92
|
import WtImage from '../wt-image/wt-image.vue';
|
|
93
93
|
|
|
94
94
|
const props = defineProps({
|
|
95
|
+
// SVG URL string (vite) or module object — matches wt-image `src`
|
|
95
96
|
image: {
|
|
96
97
|
type: [
|
|
98
|
+
String,
|
|
97
99
|
Object,
|
|
98
100
|
null,
|
|
99
101
|
],
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
77
|
<script setup lang="ts">
|
|
78
|
-
import type { RegleFieldStatus } from '@regle/core';
|
|
79
78
|
import type { InputNumberProps } from 'primevue';
|
|
80
79
|
import {
|
|
81
80
|
computed,
|
|
@@ -87,6 +86,7 @@ import {
|
|
|
87
86
|
useTemplateRef,
|
|
88
87
|
} from 'vue';
|
|
89
88
|
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
89
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
90
90
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
91
91
|
import { useInputControl } from '../_internals/composables';
|
|
92
92
|
|
|
@@ -104,7 +104,7 @@ interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
|
|
|
104
104
|
maxFractionDigits?: number;
|
|
105
105
|
showButtons?: boolean;
|
|
106
106
|
v?: Record<string, unknown>;
|
|
107
|
-
regleValidation?:
|
|
107
|
+
regleValidation?: WtRegleFieldValidation;
|
|
108
108
|
customValidators?: unknown[];
|
|
109
109
|
hideInputInfo?: boolean;
|
|
110
110
|
}
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script setup lang="ts">
|
|
66
|
-
import type { RegleFieldStatus } from '@regle/core';
|
|
67
66
|
import type { InputTextProps } from 'primevue';
|
|
68
67
|
import {
|
|
69
68
|
computed,
|
|
@@ -74,6 +73,7 @@ import {
|
|
|
74
73
|
useTemplateRef,
|
|
75
74
|
} from 'vue';
|
|
76
75
|
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
76
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
77
77
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
78
78
|
import { useInputControl } from '../_internals/composables';
|
|
79
79
|
|
|
@@ -87,7 +87,7 @@ interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
|
|
|
87
87
|
required?: boolean;
|
|
88
88
|
preventTrim?: boolean;
|
|
89
89
|
v?: Record<string, unknown>;
|
|
90
|
-
regleValidation?:
|
|
90
|
+
regleValidation?: WtRegleFieldValidation;
|
|
91
91
|
customValidators?: unknown[];
|
|
92
92
|
hideInputInfo?: boolean;
|
|
93
93
|
hideInputValue?: boolean;
|
|
@@ -135,6 +135,7 @@ import type { SelectProps } from 'primevue';
|
|
|
135
135
|
import { computed, onMounted, toRefs, useSlots, useTemplateRef } from 'vue';
|
|
136
136
|
import { useI18n } from 'vue-i18n';
|
|
137
137
|
import { ChipColor, ComponentSize, MessageVariant } from '../../enums';
|
|
138
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
138
139
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
139
140
|
import { useSelect } from '../_internals/composables/useSelect/useSelect';
|
|
140
141
|
import { toArray } from '../_internals/composables/useSelect/useSelectUtils';
|
|
@@ -182,7 +183,7 @@ interface Props extends SelectProps {
|
|
|
182
183
|
chipsView?: boolean;
|
|
183
184
|
labelProps?: object;
|
|
184
185
|
v?: Record<string, unknown>;
|
|
185
|
-
regleValidation?:
|
|
186
|
+
regleValidation?: WtRegleFieldValidation;
|
|
186
187
|
customValidators?: unknown[];
|
|
187
188
|
}
|
|
188
189
|
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
</template>
|
|
51
51
|
|
|
52
52
|
<script setup lang="ts">
|
|
53
|
-
import type { RegleFieldStatus } from '@regle/core';
|
|
54
53
|
import type { PasswordProps } from 'primevue';
|
|
55
54
|
import {
|
|
56
55
|
computed,
|
|
@@ -61,6 +60,7 @@ import {
|
|
|
61
60
|
useTemplateRef,
|
|
62
61
|
} from 'vue';
|
|
63
62
|
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
63
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
64
64
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
65
65
|
import { useInputControl } from '../_internals/composables';
|
|
66
66
|
|
|
@@ -72,7 +72,7 @@ interface WtPasswordProps extends /* @vue-ignore */ PasswordProps {
|
|
|
72
72
|
required?: boolean;
|
|
73
73
|
toggleMask?: boolean;
|
|
74
74
|
v?: Record<string, unknown>;
|
|
75
|
-
regleValidation?:
|
|
75
|
+
regleValidation?: WtRegleFieldValidation;
|
|
76
76
|
customValidators?: unknown[];
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
lang="ts"
|
|
56
56
|
>
|
|
57
57
|
import 'vidstack/bundle';
|
|
58
|
-
import type { MediaSrc } from 'vidstack';
|
|
59
58
|
import { ref, toRefs, watch } from 'vue';
|
|
60
59
|
import { ComponentSize } from '../../enums';
|
|
61
60
|
import SettingsPanel, {
|
|
@@ -63,6 +62,7 @@ import SettingsPanel, {
|
|
|
63
62
|
} from '../_shared/settings-panel/settings-panel.vue';
|
|
64
63
|
import TimeGroup from '../wt-vidstack-player/components/panels/playback-controls-panel/components/time-group.vue';
|
|
65
64
|
import { useVidstackSrc } from '../wt-vidstack-player/composables/useVidstackSrc';
|
|
65
|
+
import type { SrcInput } from '../wt-vidstack-player/utils/normalizeVidstackMediaSrc';
|
|
66
66
|
import MuteButton from './src/components/buttons/mute-button.vue';
|
|
67
67
|
import PlayButton from './src/components/buttons/play-button.vue';
|
|
68
68
|
import TimeSlider from './src/components/sliders/time-slider.vue';
|
|
@@ -70,10 +70,10 @@ import VolumeSlider from './src/components/sliders/volume-slider.vue';
|
|
|
70
70
|
|
|
71
71
|
interface Props {
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
73
|
+
* Media source. Accepts a URL string or `{ src, type }` with an untyped
|
|
74
|
+
* MIME (API payloads); useVidstackSrc normalizes to a vidstack PlayerSrc.
|
|
75
75
|
*/
|
|
76
|
-
src?:
|
|
76
|
+
src?: string | SrcInput;
|
|
77
77
|
/**
|
|
78
78
|
* Media id
|
|
79
79
|
* @type {string}
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
import type { SelectProps } from 'primevue';
|
|
111
111
|
import { computed, onMounted, toRefs, useSlots, useTemplateRef } from 'vue';
|
|
112
112
|
import { ComponentSize, MessageColor, MessageVariant } from '../../enums';
|
|
113
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
113
114
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
114
115
|
import { useSelect } from '../_internals/composables/useSelect/useSelect';
|
|
115
116
|
|
|
@@ -152,7 +153,7 @@ interface Props extends SelectProps {
|
|
|
152
153
|
allowCustomValues?: boolean;
|
|
153
154
|
labelProps?: object;
|
|
154
155
|
v?: Record<string, unknown>;
|
|
155
|
-
regleValidation?:
|
|
156
|
+
regleValidation?: WtRegleFieldValidation;
|
|
156
157
|
customValidators?: unknown[];
|
|
157
158
|
}
|
|
158
159
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script setup lang="ts">
|
|
17
|
-
import type {
|
|
17
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
18
18
|
|
|
19
19
|
interface WtTimeInputProps {
|
|
20
20
|
/**
|
|
@@ -56,7 +56,7 @@ interface WtTimeInputProps {
|
|
|
56
56
|
/**
|
|
57
57
|
* Regle validation object
|
|
58
58
|
*/
|
|
59
|
-
regleValidation?:
|
|
59
|
+
regleValidation?: WtRegleFieldValidation;
|
|
60
60
|
/**
|
|
61
61
|
* Custom validators for vuelidate
|
|
62
62
|
*/
|
|
@@ -72,11 +72,10 @@
|
|
|
72
72
|
</template>
|
|
73
73
|
|
|
74
74
|
<script setup lang="ts">
|
|
75
|
-
import type { RegleFieldStatus } from '@regle/core';
|
|
76
75
|
import { computed, nextTick, toRefs } from 'vue';
|
|
77
76
|
import { useI18n } from 'vue-i18n';
|
|
78
|
-
|
|
79
77
|
import { ComponentSize, MessageVariant } from '../../enums';
|
|
78
|
+
import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
|
|
80
79
|
import { useValidation } from '../../mixins/validationMixin/useValidation';
|
|
81
80
|
|
|
82
81
|
// const SEC_IN_DAY = 60 * 60 * 24;
|
|
@@ -123,7 +122,7 @@ interface WtTimepickerProps {
|
|
|
123
122
|
/**
|
|
124
123
|
* Regle validation object
|
|
125
124
|
*/
|
|
126
|
-
regleValidation?:
|
|
125
|
+
regleValidation?: WtRegleFieldValidation;
|
|
127
126
|
/**
|
|
128
127
|
* Custom validators for vuelidate
|
|
129
128
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SuperCompatibleRegleFieldStatus } from '@regle/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Regle field surface consumed by UI inputs (`$error` / `$errors` only).
|
|
5
|
+
*
|
|
6
|
+
* Derived from Regle's SuperCompatibleRegleFieldStatus so both useRegle
|
|
7
|
+
* (RegleFieldStatus) and @regle/schemas (RegleSchemaFieldStatus, which omits
|
|
8
|
+
* `$pending`) are assignable. Picking keeps the prop from requiring members
|
|
9
|
+
* that vary across Regle packages/versions.
|
|
10
|
+
*/
|
|
11
|
+
export type WtRegleFieldValidation = Pick<
|
|
12
|
+
SuperCompatibleRegleFieldStatus,
|
|
13
|
+
'$error' | '$errors'
|
|
14
|
+
>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { RegleFieldStatus } from '@regle/core';
|
|
2
1
|
import { type ComputedRef, computed, type Ref } from 'vue';
|
|
2
|
+
import type { WtRegleFieldValidation } from './WtRegleFieldValidation';
|
|
3
|
+
|
|
4
|
+
export type { WtRegleFieldValidation } from './WtRegleFieldValidation';
|
|
3
5
|
|
|
4
6
|
export type UseFieldValidationParams = {
|
|
5
|
-
field?: Ref<
|
|
7
|
+
field?: Ref<WtRegleFieldValidation>;
|
|
6
8
|
};
|
|
7
9
|
|
|
8
10
|
export type UseFieldValidationReturn = {
|