@webitel/ui-sdk 26.8.9 → 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.
Files changed (36) hide show
  1. package/dist/{components-BEEq6Fvq.js → components-BLEJ4Oo8.js} +12 -8
  2. package/dist/ui-sdk.css +1 -1
  3. package/dist/ui-sdk.js +3 -2
  4. package/dist/ui-sdk.umd.cjs +4 -3
  5. package/dist/{wt-chat-emoji-D9v1fWl2.js → wt-chat-emoji-_A9gvxUy.js} +1 -1
  6. package/dist/{wt-display-chip-items-DviuzYP0.js → wt-display-chip-items-CiUuothL.js} +1 -1
  7. package/dist/{wt-player-zWCh3Ozp.js → wt-player-xBVVmERg.js} +1 -1
  8. package/dist/{wt-send-message-popup-oYdzmm4y.js → wt-send-message-popup-ClhwtLh1.js} +1 -1
  9. package/dist/{wt-timepicker-Dj0y9-U_.js → wt-timepicker-Bmyt8-Tx.js} +1 -1
  10. package/dist/{wt-type-extension-value-input-wpaNQiRx.js → wt-type-extension-value-input-CnIycAjD.js} +1 -1
  11. package/dist/{wt-vidstack-player-DQH5QOAU.js → wt-vidstack-player-C9oh23wo.js} +1 -1
  12. package/package.json +1 -1
  13. package/src/components/wt-empty/wt-empty.vue +2 -0
  14. package/src/components/wt-input-number/wt-input-number.vue +2 -2
  15. package/src/components/wt-input-text/wt-input-text.vue +2 -2
  16. package/src/components/wt-multi-select/wt-multi-select.vue +2 -1
  17. package/src/components/wt-password/wt-password.vue +2 -2
  18. package/src/components/wt-player/wt-player.vue +4 -4
  19. package/src/components/wt-single-select/wt-single-select.vue +2 -1
  20. package/src/components/wt-time-input/wt-time-input.vue +2 -2
  21. package/src/components/wt-timepicker/wt-timepicker.vue +2 -3
  22. package/src/mixins/validationMixin/regle/WtRegleFieldValidation.ts +14 -0
  23. package/src/mixins/validationMixin/regle/useRegleValidation.ts +4 -2
  24. package/src/plugins/primevue/theme/components/tooltip/tooltip.js +2 -1
  25. package/types/.tsbuildinfo +1 -1
  26. package/types/components/wt-empty/wt-empty.vue.d.ts +2 -2
  27. package/types/components/wt-input-number/wt-input-number.vue.d.ts +3 -3
  28. package/types/components/wt-input-text/wt-input-text.vue.d.ts +3 -3
  29. package/types/components/wt-multi-select/wt-multi-select.vue.d.ts +2 -1
  30. package/types/components/wt-password/wt-password.vue.d.ts +3 -3
  31. package/types/components/wt-player/wt-player.vue.d.ts +4 -4
  32. package/types/components/wt-single-select/wt-single-select.vue.d.ts +2 -1
  33. package/types/components/wt-time-input/wt-time-input.vue.d.ts +5 -5
  34. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +3 -3
  35. package/types/mixins/validationMixin/regle/WtRegleFieldValidation.d.ts +10 -0
  36. package/types/mixins/validationMixin/regle/useRegleValidation.d.ts +3 -2
@@ -6,7 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  });
7
7
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  image: {
9
- type: ObjectConstructor[];
9
+ type: (ObjectConstructor | StringConstructor)[];
10
10
  };
11
11
  /**
12
12
  * @values 'sm', 'md', 'lg'
@@ -70,7 +70,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
70
70
  "click:secondary": (...args: any[]) => void;
71
71
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
72
  image: {
73
- type: ObjectConstructor[];
73
+ type: (ObjectConstructor | StringConstructor)[];
74
74
  };
75
75
  /**
76
76
  * @values 'sm', 'md', 'lg'
@@ -1,5 +1,5 @@
1
- import type { RegleFieldStatus } from '@regle/core';
2
1
  import type { InputNumberProps } from 'primevue';
2
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
3
3
  interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
4
4
  label?: string;
5
5
  labelProps?: Record<string, unknown>;
@@ -14,7 +14,7 @@ interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
14
14
  maxFractionDigits?: number;
15
15
  showButtons?: boolean;
16
16
  v?: Record<string, unknown>;
17
- regleValidation?: RegleFieldStatus<number>;
17
+ regleValidation?: WtRegleFieldValidation;
18
18
  customValidators?: unknown[];
19
19
  hideInputInfo?: boolean;
20
20
  }
@@ -49,7 +49,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
49
49
  min: number;
50
50
  max: number;
51
51
  v: Record<string, unknown>;
52
- regleValidation: RegleFieldStatus<number>;
52
+ regleValidation: WtRegleFieldValidation;
53
53
  labelProps: Record<string, unknown>;
54
54
  useGrouping: boolean;
55
55
  minFractionDigits: number;
@@ -1,5 +1,5 @@
1
- import type { RegleFieldStatus } from '@regle/core';
2
1
  import type { InputTextProps } from 'primevue';
2
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
3
3
  interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
4
4
  label?: string;
5
5
  labelProps?: Record<string, unknown>;
@@ -10,7 +10,7 @@ interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
10
10
  required?: boolean;
11
11
  preventTrim?: boolean;
12
12
  v?: Record<string, unknown>;
13
- regleValidation?: RegleFieldStatus<string>;
13
+ regleValidation?: WtRegleFieldValidation;
14
14
  customValidators?: unknown[];
15
15
  hideInputInfo?: boolean;
16
16
  hideInputValue?: boolean;
@@ -45,7 +45,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
45
45
  placeholder: string;
46
46
  customValidators: unknown[];
47
47
  v: Record<string, unknown>;
48
- regleValidation: RegleFieldStatus<string>;
48
+ regleValidation: WtRegleFieldValidation;
49
49
  labelProps: Record<string, unknown>;
50
50
  hideInputInfo: boolean;
51
51
  preventTrim: boolean;
@@ -1,4 +1,5 @@
1
1
  import type { SelectProps } from 'primevue';
2
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
2
3
  interface Props extends SelectProps {
3
4
  label?: string;
4
5
  placeholder?: string;
@@ -42,7 +43,7 @@ interface Props extends SelectProps {
42
43
  chipsView?: boolean;
43
44
  labelProps?: object;
44
45
  v?: Record<string, unknown>;
45
- regleValidation?: RegleFieldStatus<string>;
46
+ regleValidation?: WtRegleFieldValidation;
46
47
  customValidators?: unknown[];
47
48
  }
48
49
  type __VLS_Props = Props;
@@ -1,5 +1,5 @@
1
- import type { RegleFieldStatus } from '@regle/core';
2
1
  import type { PasswordProps } from 'primevue';
2
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
3
3
  interface WtPasswordProps extends /* @vue-ignore */ PasswordProps {
4
4
  label?: string;
5
5
  labelProps?: Record<string, unknown>;
@@ -8,7 +8,7 @@ interface WtPasswordProps extends /* @vue-ignore */ PasswordProps {
8
8
  required?: boolean;
9
9
  toggleMask?: boolean;
10
10
  v?: Record<string, unknown>;
11
- regleValidation?: RegleFieldStatus<string>;
11
+ regleValidation?: WtRegleFieldValidation;
12
12
  customValidators?: unknown[];
13
13
  }
14
14
  type __VLS_Props = WtPasswordProps;
@@ -35,7 +35,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
35
35
  placeholder: string;
36
36
  customValidators: unknown[];
37
37
  v: Record<string, unknown>;
38
- regleValidation: RegleFieldStatus<string>;
38
+ regleValidation: WtRegleFieldValidation;
39
39
  labelProps: Record<string, unknown>;
40
40
  toggleMask: boolean;
41
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,11 +1,11 @@
1
1
  import 'vidstack/bundle';
2
- import type { MediaSrc } from 'vidstack';
2
+ import type { SrcInput } from '../wt-vidstack-player/utils/normalizeVidstackMediaSrc';
3
3
  interface Props {
4
4
  /**
5
- * vidstack media src
6
- * @type {MediaSrc}
5
+ * Media source. Accepts a URL string or `{ src, type }` with an untyped
6
+ * MIME (API payloads); useVidstackSrc normalizes to a vidstack PlayerSrc.
7
7
  */
8
- src?: MediaSrc;
8
+ src?: string | SrcInput;
9
9
  /**
10
10
  * Media id
11
11
  * @type {string}
@@ -1,4 +1,5 @@
1
1
  import type { SelectProps } from 'primevue';
2
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
2
3
  interface Props extends SelectProps {
3
4
  label?: string;
4
5
  placeholder?: string;
@@ -38,7 +39,7 @@ interface Props extends SelectProps {
38
39
  allowCustomValues?: boolean;
39
40
  labelProps?: object;
40
41
  v?: Record<string, unknown>;
41
- regleValidation?: RegleFieldStatus<string>;
42
+ regleValidation?: WtRegleFieldValidation;
42
43
  customValidators?: unknown[];
43
44
  }
44
45
  type __VLS_Props = Props;
@@ -1,4 +1,4 @@
1
- import type { RegleFieldStatus } from '@regle/core';
1
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
2
2
  interface WtTimeInputProps {
3
3
  /**
4
4
  * Form input label
@@ -39,7 +39,7 @@ interface WtTimeInputProps {
39
39
  /**
40
40
  * Regle validation object
41
41
  */
42
- regleValidation?: RegleFieldStatus<number>;
42
+ regleValidation?: WtRegleFieldValidation;
43
43
  /**
44
44
  * Custom validators for vuelidate
45
45
  */
@@ -62,11 +62,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
62
62
  required: boolean;
63
63
  label: string;
64
64
  disabled: boolean;
65
- maxValue: number;
66
- minValue: number;
67
65
  customValidators: unknown[];
66
+ minValue: number;
67
+ maxValue: number;
68
68
  v: Record<string, unknown>;
69
- regleValidation: RegleFieldStatus<number>;
69
+ regleValidation: WtRegleFieldValidation;
70
70
  labelProps: Record<string, unknown>;
71
71
  hideInputInfo: boolean;
72
72
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import type { RegleFieldStatus } from '@regle/core';
1
+ import type { WtRegleFieldValidation } from '../../mixins/validationMixin/regle/WtRegleFieldValidation';
2
2
  interface WtTimepickerProps {
3
3
  /**
4
4
  * Time value in seconds (not milliseconds!)
@@ -39,7 +39,7 @@ interface WtTimepickerProps {
39
39
  /**
40
40
  * Regle validation object
41
41
  */
42
- regleValidation?: RegleFieldStatus<number>;
42
+ regleValidation?: WtRegleFieldValidation;
43
43
  /**
44
44
  * Custom validators for vuelidate
45
45
  */
@@ -62,7 +62,7 @@ declare const __VLS_base: import("vue").DefineComponent<WtTimepickerProps, {}, {
62
62
  modelValue: string | number;
63
63
  customValidators: unknown[];
64
64
  v: Record<string, unknown>;
65
- regleValidation: RegleFieldStatus<number>;
65
+ regleValidation: WtRegleFieldValidation;
66
66
  labelProps: Record<string, unknown>;
67
67
  format: string;
68
68
  dateMode: boolean;
@@ -0,0 +1,10 @@
1
+ import type { SuperCompatibleRegleFieldStatus } from '@regle/core';
2
+ /**
3
+ * Regle field surface consumed by UI inputs (`$error` / `$errors` only).
4
+ *
5
+ * Derived from Regle's SuperCompatibleRegleFieldStatus so both useRegle
6
+ * (RegleFieldStatus) and @regle/schemas (RegleSchemaFieldStatus, which omits
7
+ * `$pending`) are assignable. Picking keeps the prop from requiring members
8
+ * that vary across Regle packages/versions.
9
+ */
10
+ export type WtRegleFieldValidation = Pick<SuperCompatibleRegleFieldStatus, '$error' | '$errors'>;
@@ -1,7 +1,8 @@
1
- import type { RegleFieldStatus } from '@regle/core';
2
1
  import { type ComputedRef, type Ref } from 'vue';
2
+ import type { WtRegleFieldValidation } from './WtRegleFieldValidation';
3
+ export type { WtRegleFieldValidation } from './WtRegleFieldValidation';
3
4
  export type UseFieldValidationParams = {
4
- field?: Ref<RegleFieldStatus<string>>;
5
+ field?: Ref<WtRegleFieldValidation>;
5
6
  };
6
7
  export type UseFieldValidationReturn = {
7
8
  invalid: ComputedRef<boolean | null>;