@webitel/ui-sdk 26.2.11 → 26.2.13

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 (56) hide show
  1. package/dist/{install-BQEiwn-1.js → install-Bz5xCw3_.js} +21492 -19141
  2. package/dist/{plyr-CjUrzECD.js → plyr-DrCXX54g.js} +1 -1
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +802 -264
  6. package/dist/{vidstack-Bq6c3Bam-Bpv5gW7w.js → vidstack-Bq6c3Bam-B7cxzEP8.js} +2 -2
  7. package/dist/{vidstack-D2pY00kU-BR-BS_RW.js → vidstack-D2pY00kU-g2aAQYXG.js} +2 -2
  8. package/dist/{vidstack-DDXt6fpN-CM4I1hXK.js → vidstack-DDXt6fpN-BhyQ95X9.js} +1 -1
  9. package/dist/{vidstack-D_-9AA6_-CL_t8-mc.js → vidstack-D_-9AA6_-B5H5LlZ_.js} +1 -1
  10. package/dist/{vidstack-DqAw8m9J-BcAl_1U1.js → vidstack-DqAw8m9J-BjxYoxKC.js} +1 -1
  11. package/dist/{vidstack-audio-CnzMOYiV.js → vidstack-audio-CdaspgKJ.js} +2 -2
  12. package/dist/{vidstack-dash-DJm0KX-U.js → vidstack-dash-CyF2xpLm.js} +3 -3
  13. package/dist/{vidstack-google-cast-BV7suY1R.js → vidstack-google-cast-BPD9Sm36.js} +3 -3
  14. package/dist/{vidstack-hls-DV2cPFRZ.js → vidstack-hls-CvrjEqso.js} +3 -3
  15. package/dist/{vidstack-video-DCNihKnl.js → vidstack-video-CDJVFZPt.js} +2 -2
  16. package/dist/{vidstack-vimeo-Cr8lysI9.js → vidstack-vimeo-B3AMYq9Z.js} +3 -3
  17. package/dist/{vidstack-youtube-y0Vd9OeV.js → vidstack-youtube-CLo-FbfO.js} +2 -2
  18. package/dist/{vuex.esm-bundler-DUrRebcJ.js → vuex.esm-bundler-DPqy4wnP.js} +1 -1
  19. package/package.json +2 -2
  20. package/src/components/index.js +12 -0
  21. package/src/components/wt-input-number/wt-input-number.vue +168 -0
  22. package/src/components/wt-input-text/wt-input-text.vue +147 -0
  23. package/src/components/wt-message/wt-message.vue +40 -0
  24. package/src/components/wt-password/wt-password.vue +145 -0
  25. package/src/components/wt-table/wt-table.vue +13 -1
  26. package/src/composables/index.ts +1 -0
  27. package/src/composables/useInputControl/useInputControl.ts +15 -0
  28. package/src/enums/MessageColor/MessageColor.ts +10 -0
  29. package/src/enums/MessageVariant/MessageVariant.ts +7 -0
  30. package/src/enums/index.ts +4 -0
  31. package/src/plugins/primevue/primevue.plugin.js +10 -0
  32. package/src/plugins/primevue/theme/components/components.js +10 -0
  33. package/src/plugins/primevue/theme/components/input-group/input-group.js +8 -0
  34. package/src/plugins/primevue/theme/components/input-number/input-number.js +8 -0
  35. package/src/plugins/primevue/theme/components/input-text/input-text.js +8 -0
  36. package/src/plugins/primevue/theme/components/message/message.js +37 -0
  37. package/src/plugins/primevue/theme/components/password/password.js +14 -0
  38. package/types/components/index.d.ts +9 -1
  39. package/types/components/wt-input-number/wt-input-number.vue.d.ts +59 -0
  40. package/types/components/wt-input-text/wt-input-text.vue.d.ts +49 -0
  41. package/types/components/wt-message/wt-message.vue.d.ts +23 -0
  42. package/types/components/wt-password/wt-password.vue.d.ts +45 -0
  43. package/types/components/wt-player/wt-player.vue.d.ts +1 -1
  44. package/types/components/wt-table/wt-table.vue.d.ts +11 -0
  45. package/types/components/wt-vidstack-player/wt-vidstack-player.vue.d.ts +1 -1
  46. package/types/composables/index.d.ts +1 -0
  47. package/types/composables/useInputControl/useInputControl.d.ts +4 -0
  48. package/types/enums/MessageColor/MessageColor.d.ts +9 -0
  49. package/types/enums/MessageVariant/MessageVariant.d.ts +6 -0
  50. package/types/enums/index.d.ts +3 -1
  51. package/types/plugins/primevue/theme/components/components.d.ts +10 -0
  52. package/types/plugins/primevue/theme/components/input-group/input-group.d.ts +24 -0
  53. package/types/plugins/primevue/theme/components/input-number/input-number.d.ts +39 -0
  54. package/types/plugins/primevue/theme/components/input-text/input-text.d.ts +70 -0
  55. package/types/plugins/primevue/theme/components/message/message.d.ts +351 -0
  56. package/types/plugins/primevue/theme/components/password/password.d.ts +57 -0
@@ -0,0 +1,145 @@
1
+ <template>
2
+ <div class="wt-password">
3
+ <wt-label
4
+ v-if="hasLabel"
5
+ :disabled="disabled"
6
+ :for="inputId"
7
+ :invalid="invalid"
8
+ >
9
+ <slot
10
+ name="label"
11
+ v-bind="{ label }"
12
+ >
13
+ {{ requiredLabel }}
14
+ </slot>
15
+ </wt-label>
16
+ <p-input-group>
17
+ <p-password
18
+ :id="inputId"
19
+ ref="password"
20
+ v-model="model"
21
+ :disabled="disabled"
22
+ :invalid="invalid"
23
+ :placeholder="placeholder || label"
24
+ :toggle-mask="false"
25
+ :feedback="false"
26
+ :input-props="{ type: inputType }"
27
+ input-class="wt-password__input"
28
+ v-bind="$attrs"
29
+ @keyup="handleKeyup"
30
+ >
31
+ </p-password>
32
+ <p-input-group-addon v-if="toggleMask">
33
+ <wt-icon-btn
34
+ :disabled="disabled"
35
+ :icon="showPasswordIcon"
36
+ @click="togglePassword"
37
+ />
38
+ </p-input-group-addon>
39
+ </p-input-group>
40
+ <wt-message
41
+ v-if="isValidation && validationText"
42
+ :color="getMessageColor"
43
+ :variant="MessageVariant.SIMPLE"
44
+ :size="ComponentSize.SM"
45
+ >
46
+ {{ validationText }}
47
+ </wt-message>
48
+ </div>
49
+ </template>
50
+
51
+ <script setup lang="ts">
52
+ import type { RegleFieldStatus } from '@regle/core';
53
+ import type { PasswordProps } from 'primevue';
54
+ import { computed, defineModel, ref, toRefs, useSlots,useTemplateRef } from 'vue';
55
+
56
+ import { useInputControl } from '../../composables';
57
+ import { ComponentSize,MessageColor, MessageVariant } from '../../enums';
58
+ import { useValidation } from '../../mixins/validationMixin/useValidation';
59
+
60
+ interface WtPasswordProps extends /* @vue-ignore */ PasswordProps {
61
+ label?: string;
62
+ placeholder?: string;
63
+ disabled?: boolean;
64
+ required?: boolean;
65
+ toggleMask?: boolean;
66
+ v?: Record<string, unknown>;
67
+ regleValidation?: RegleFieldStatus<string>;
68
+ customValidators?: unknown[];
69
+ }
70
+
71
+ const props = withDefaults(defineProps<WtPasswordProps>(), {
72
+ label: '',
73
+ placeholder: '',
74
+ disabled: false,
75
+ required: false,
76
+ toggleMask: true,
77
+ v: null,
78
+ regleValidation: null,
79
+ customValidators: () => [],
80
+ });
81
+
82
+ const model = defineModel<string>({ default: '' });
83
+
84
+ const password = useTemplateRef('password');
85
+
86
+ const inputId = `password-${Math.random().toString(36).slice(2, 11)}`;
87
+
88
+ const slots = useSlots();
89
+
90
+ const { v, customValidators, regleValidation } = toRefs(props);
91
+
92
+ const {
93
+ isValidation,
94
+ invalid,
95
+ validationText,
96
+ } = useValidation({
97
+ v,
98
+ customValidators,
99
+ regleValidation,
100
+ });
101
+
102
+ const {
103
+ focus,
104
+ handleKeyup
105
+ } = useInputControl(password);
106
+
107
+ const isPasswordVisible = ref(false);
108
+
109
+ const hasLabel = computed(() => {
110
+ return props.label || slots.label;
111
+ });
112
+
113
+ const requiredLabel = computed(() => {
114
+ return props.required ? `${props.label}*` : props.label;
115
+ });
116
+
117
+ const showPasswordIcon = computed(() => {
118
+ return isPasswordVisible.value ? 'eye--closed' : 'eye--opened';
119
+ });
120
+
121
+ const inputType = computed(() => {
122
+ return isPasswordVisible.value ? 'text' : 'password';
123
+ });
124
+
125
+ const getMessageColor = computed(() => {
126
+ return invalid.value ? MessageColor.ERROR : MessageColor.SECONDARY;
127
+ });
128
+
129
+ const togglePassword = () => {
130
+ isPasswordVisible.value = !isPasswordVisible.value;
131
+ };
132
+
133
+ defineExpose({
134
+ focus,
135
+ });
136
+ </script>
137
+
138
+ <style lang="scss" scoped>
139
+ @use '../../css/styleguide/styleguide' as *;
140
+
141
+ :deep(.wt-password__input) {
142
+ @extend %typo-body-1;
143
+ @include wt-placeholder;
144
+ }
145
+ </style>
@@ -9,6 +9,7 @@
9
9
  :row-style="rowStyle"
10
10
  :show-headers="!headless"
11
11
  :value="data"
12
+ :data-key="props.dataKey"
12
13
  class="wt-table"
13
14
  column-resize-mode="expand"
14
15
  lazy
@@ -261,6 +262,16 @@ interface Props extends DataTableProps{
261
262
  * 'If true, allows to reorder rows.'
262
263
  */
263
264
  rowReorder?: boolean;
265
+ /**
266
+ * @author @Oleksandr Palonnyi
267
+ *
268
+ * [WTEL-8629](https://webitel.atlassian.net/browse/WTEL-8629)
269
+ *
270
+ * Unique field name used to identify a row.
271
+ * Required for selection, expansion, and virtual scrolling to work correctly.
272
+ * The value must be stable and unique across all rows.
273
+ */
274
+ dataKey?: string;
264
275
  /**
265
276
  * 'If true, restrict sprecific row reorder.'
266
277
  */
@@ -296,7 +307,8 @@ const props = withDefaults(defineProps<Props>(), {
296
307
  reorderableColumns: false,
297
308
  rowExpansionDisabled: () => false,
298
309
  lazy: false,
299
- itemSize: DEFAULT_ITEM_SIZE
310
+ itemSize: DEFAULT_ITEM_SIZE,
311
+ dataKey: '',
300
312
  });
301
313
 
302
314
  const { t } = useI18n();
@@ -7,6 +7,7 @@ export * from './useClose/useClose';
7
7
  export * from './useDestroyableSortable/useDestroyableSortable';
8
8
  export * from './useGalleriaFullscreen/useGalleriaFullscreen';
9
9
  export * from './useGalleriaMaskClick/useGalleriaMaskClick';
10
+ export * from './useInputControl/useInputControl';
10
11
  export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
11
12
  export * from './useTableColumnDrag/useTableColumnDrag'
12
13
  export * from './useValidate/useValidate';
@@ -0,0 +1,15 @@
1
+ import { computed } from 'vue';
2
+
3
+ export const useInputControl = (input) => {
4
+ const inputEl = computed(() => input.value?.$el?.querySelector('input'));
5
+
6
+ const focus = () => inputEl.value?.focus()
7
+
8
+ // prevent double triggering
9
+ const handleKeyup = (e) => e.stopPropagation();
10
+
11
+ return {
12
+ focus,
13
+ handleKeyup
14
+ };
15
+ };
@@ -0,0 +1,10 @@
1
+ export const MessageColor = {
2
+ SECONDARY: 'secondary',
3
+ SUCCESS: 'success',
4
+ ERROR: 'error',
5
+ WARN: 'warn',
6
+ INFO: 'info',
7
+ CONTRAST: 'contrast',
8
+ } as const;
9
+
10
+ export type MessageColor = keyof typeof MessageColor;
@@ -0,0 +1,7 @@
1
+ export const MessageVariant = {
2
+ FILLED: 'filled',
3
+ OUTLINED: 'outlined',
4
+ SIMPLE: 'simple',
5
+ } as const;
6
+
7
+ export type MessageVariant = keyof typeof MessageVariant;
@@ -12,6 +12,8 @@ import { EmptyCause } from './EmptyCause/EmptyCause';
12
12
  import { FormatDateMode } from './FormatDateMode/FormatDateMode';
13
13
  import IconAction from './IconAction/IconAction.enum.js';
14
14
  import { IconColor } from './IconColor/IconColor';
15
+ import { MessageColor } from './MessageColor/MessageColor';
16
+ import { MessageVariant } from './MessageVariant/MessageVariant';
15
17
  import { MimeTypes } from './MimeTypes/MimeTypes.enum';
16
18
  import { ProcessingTableColumnType } from './ProcessingTableColumnType/ProcessingTableColumnType';
17
19
  import { QueueType, QueueTypeName } from './QueueType/QueueType.enum';
@@ -44,6 +46,8 @@ export {
44
46
  FormatDateMode,
45
47
  IconAction,
46
48
  IconColor,
49
+ MessageColor,
50
+ MessageVariant,
47
51
  MimeTypes,
48
52
  ProcessingTableColumnType,
49
53
  ProviderIconType,
@@ -11,8 +11,13 @@ import PTable from 'primevue/datatable';
11
11
  import PDivider from 'primevue/divider';
12
12
  import PGalleria from 'primevue/galleria';
13
13
  import PImage from 'primevue/image';
14
+ import PInputGroup from 'primevue/inputgroup';
15
+ import PInputGroupAddon from 'primevue/inputgroupaddon';
16
+ import PInputNumber from 'primevue/inputnumber';
14
17
  import PInputText from 'primevue/inputtext';
15
18
  import PMenubar from 'primevue/menubar';
19
+ import PMessage from 'primevue/message';
20
+ import PPassword from 'primevue/password';
16
21
  import PPopover from 'primevue/popover';
17
22
  import PRadio from 'primevue/radiobutton';
18
23
  import PSlider from 'primevue/slider';
@@ -59,6 +64,11 @@ const initPrimevue = (app) => {
59
64
  app.component('PImage', changeComponentCompatMode(PImage));
60
65
  app.component('PGalleria', changeComponentCompatMode(PGalleria));
61
66
  app.component('PBadge', changeComponentCompatMode(PBadge));
67
+ app.component('PInputGroup', changeComponentCompatMode(PInputGroup));
68
+ app.component('PInputNumber', changeComponentCompatMode(PInputNumber));
69
+ app.component('PPassword', changeComponentCompatMode(PPassword));
70
+ app.component('PInputGroupAddon', changeComponentCompatMode(PInputGroupAddon));
71
+ app.component('PMessage', changeComponentCompatMode(PMessage));
62
72
 
63
73
  app.directive('tooltip', Tooltip);
64
74
  };
@@ -8,7 +8,12 @@ import chip from './chip/chip.js';
8
8
  import divider from './divider/divider.js';
9
9
  import galleria from './galleria/galleria.js';
10
10
  import image from './image/image.js';
11
+ import inputGroup from './input-group/input-group.js';
12
+ import inputNumber from './input-number/input-number.js';
13
+ import inputText from './input-text/input-text.js';
11
14
  import menubar from './menubar/menubar.js';
15
+ import message from './message/message.js';
16
+ import password from './password/password.js';
12
17
  import popover from './popover/popover.js';
13
18
  import radio from './radio/radio.js';
14
19
  import slider from './slider/slider.js';
@@ -30,7 +35,12 @@ const components = {
30
35
  toggleswitch: switcher,
31
36
  divider,
32
37
  image,
38
+ inputgroup: inputGroup,
39
+ inputnumber: inputNumber,
40
+ inputtext: inputText,
33
41
  menubar,
42
+ message,
43
+ password,
34
44
  popover,
35
45
  radiobutton: radio,
36
46
  slider,
@@ -0,0 +1,8 @@
1
+ import { InputGroupScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ const inputGroup = {
4
+ ...InputGroupScheme.sizes,
5
+ colorScheme: InputGroupScheme.colorScheme,
6
+ };
7
+
8
+ export default inputGroup;
@@ -0,0 +1,8 @@
1
+ import { InputNumberScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ const inputNumber = {
4
+ ...InputNumberScheme.sizes,
5
+ colorScheme: InputNumberScheme.colorScheme,
6
+ };
7
+
8
+ export default inputNumber;
@@ -0,0 +1,8 @@
1
+ import { InputTextScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ const inputText = {
4
+ ...InputTextScheme.sizes,
5
+ colorScheme: InputTextScheme.colorScheme,
6
+ };
7
+
8
+ export default inputText;
@@ -0,0 +1,37 @@
1
+ import { MessageScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ import { MessageColor } from '../../../../../enums';
4
+
5
+ const generateCustomColorCss = ({ colorName, dt }) => `
6
+ .p-message-${colorName} .p-message-close-button svg {
7
+ fill: ${dt(`message.${colorName}.color`)};
8
+ }
9
+
10
+ .p-message-${colorName}.p-message-outlined .p-message-close-button svg {
11
+ fill: ${dt(`message.${colorName}.outlined.color`)};
12
+ }
13
+
14
+ .p-message-${colorName}.p-message-outlined .p-message-close-button:hover {
15
+ background: ${dt(`message.${colorName}.outlined.closeButton.hoverBackground`)};
16
+ }
17
+
18
+ .p-message-${colorName}.p-message-simple .p-message-close-button svg {
19
+ fill: ${dt(`message.${colorName}.simple.color`)};
20
+ }
21
+ `
22
+
23
+ const message = {
24
+ ...MessageScheme.sizes,
25
+ colorScheme: MessageScheme.colorScheme,
26
+
27
+ css: ({ dt }) => `
28
+ ${generateCustomColorCss({ colorName: MessageColor.INFO, dt })}
29
+ ${generateCustomColorCss({ colorName: MessageColor.ERROR, dt })}
30
+ ${generateCustomColorCss({ colorName: MessageColor.SECONDARY, dt })}
31
+ ${generateCustomColorCss({ colorName: MessageColor.SUCCESS, dt })}
32
+ ${generateCustomColorCss({ colorName: MessageColor.WARN, dt })}
33
+ ${generateCustomColorCss({ colorName: MessageColor.CONTRAST, dt })}
34
+ `,
35
+ };
36
+
37
+ export default message;
@@ -0,0 +1,14 @@
1
+ import { PasswordScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ const password = {
4
+ ...PasswordScheme.sizes,
5
+ colorScheme: PasswordScheme.colorScheme,
6
+
7
+ css: ({ dt }) => `
8
+ .wt-password .wt-icon {
9
+ fill: ${dt('password.icon.color')};
10
+ }
11
+ `,
12
+ };
13
+
14
+ export default password;
@@ -34,12 +34,16 @@ import WtImage from './wt-image/wt-image.vue';
34
34
  import WtIndicator from './wt-indicator/wt-indicator.vue';
35
35
  import WtInput from './wt-input/wt-input.vue';
36
36
  import WtInputInfo from './wt-input-info/wt-input-info.vue';
37
+ import WtInputNumber from './wt-input-number/wt-input-number.vue';
38
+ import WtInputText from './wt-input-text/wt-input-text.vue';
37
39
  import WtIntersectionObserver from './wt-intersection-observer/wt-intersection-observer.vue';
38
40
  import WtItemLink from './wt-item-link/wt-item-link.vue';
41
+ import WtPassword from './wt-password/wt-password.vue';
39
42
  import WtLabel from './wt-label/wt-label.vue';
40
43
  import WtLoadBar from './wt-load-bar/wt-load-bar.vue';
41
44
  import WtLoader from './wt-loader/wt-loader.vue';
42
45
  import WtLogo from './wt-logo/wt-logo.vue';
46
+ import WtMessage from './wt-message/wt-message.vue';
43
47
  import WtNavigationBar from './wt-navigation-bar/wt-navigation-bar.vue';
44
48
  import WtNavigationMenu from './on-demand/wt-navigation-menu/components/wt-navigation-menu.vue';
45
49
  import WtNotification from './wt-notification/wt-notification.vue';
@@ -86,6 +90,10 @@ declare namespace Components {
86
90
  export { WtIcon };
87
91
  export { WtIndicator };
88
92
  export { WtInputInfo };
93
+ export { WtInputNumber };
94
+ export { WtInputText };
95
+ export { WtPassword };
96
+ export { WtMessage };
89
97
  export { WtButton };
90
98
  export { WtChip };
91
99
  export { WtConfirmDialog };
@@ -152,4 +160,4 @@ declare namespace Components {
152
160
  export { WtVidstackPlayer };
153
161
  export { WtChatEmoji };
154
162
  }
155
- export { WtActionBar, WtAppHeader, WtAppNavigator, WtAvatar, WtBadge, WtBadgeNew, WtBreadcrumb, WtButton, WtButtonSelect, WtChatEmoji, WtCheckbox, WtChip, WtConfirmDialog, WtContextMenu, WtCopyAction, WtDatepicker, WtDisplayChipItems, WtDivider, WtDualPanel, WtDummy, WtEmpty, WtErrorPage, WtExpansionPanel, WtFiltersPanelWrapper, WtGalleria, WtHeaderActions, WtHeadline, WtHint, WtIcon, WtIconAction, WtIconBtn, WtImage, WtIndicator, WtInput, WtInputInfo, WtIntersectionObserver, WtItemLink, WtLabel, WtLoadBar, WtLoader, WtLogo, WtNavigationBar, WtNavigationMenu, WtNotification, WtNotificationsBar, WtPageHeader, WtPageWrapper, WtPagination, WtPlayer, WtPopover, WtPopup, WtProgressBar, WtRadio, WtReplaceTransition, WtRoundedAction, WtSearchBar, WtSelect, WtSelectionPopup, WtSlider, WtStartPage, WtStatusSelect, WtStepper, WtSwitcher, WtTable, WtTableActions, WtTableColumnSelect, WtTabs, WtTagsInput, WtTextarea, WtTimeInput, WtTimepicker, WtTooltip, WtTree, WtTreeTable, WtTypeExtensionValueInput, WtVidstackPlayer };
163
+ export { WtActionBar, WtAppHeader, WtAppNavigator, WtAvatar, WtBadge, WtBadgeNew, WtBreadcrumb, WtButton, WtButtonSelect, WtChatEmoji, WtCheckbox, WtChip, WtConfirmDialog, WtContextMenu, WtCopyAction, WtDatepicker, WtDisplayChipItems, WtDivider, WtDualPanel, WtDummy, WtEmpty, WtErrorPage, WtExpansionPanel, WtFiltersPanelWrapper, WtGalleria, WtHeaderActions, WtHeadline, WtHint, WtIcon, WtIconAction, WtIconBtn, WtImage, WtIndicator, WtInput, WtInputInfo, WtInputNumber, WtInputText, WtIntersectionObserver, WtItemLink, WtPassword, WtLabel, WtLoadBar, WtLoader, WtLogo, WtMessage, WtNavigationBar, WtNavigationMenu, WtNotification, WtNotificationsBar, WtPageHeader, WtPageWrapper, WtPagination, WtPlayer, WtPopover, WtPopup, WtProgressBar, WtRadio, WtReplaceTransition, WtRoundedAction, WtSearchBar, WtSelect, WtSelectionPopup, WtSlider, WtStartPage, WtStatusSelect, WtStepper, WtSwitcher, WtTable, WtTableActions, WtTableColumnSelect, WtTabs, WtTagsInput, WtTextarea, WtTimeInput, WtTimepicker, WtTooltip, WtTree, WtTreeTable, WtTypeExtensionValueInput, WtVidstackPlayer };
@@ -0,0 +1,59 @@
1
+ import type { InputNumberProps } from 'primevue';
2
+ import type { RegleFieldStatus } from '@regle/core';
3
+ interface WtInputNumberProps extends /* @vue-ignore */ InputNumberProps {
4
+ label?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ minFractionDigits?: number;
12
+ maxFractionDigits?: number;
13
+ showButtons?: boolean;
14
+ v?: Record<string, unknown>;
15
+ regleValidation?: RegleFieldStatus<number>;
16
+ customValidators?: unknown[];
17
+ }
18
+ type __VLS_Props = WtInputNumberProps;
19
+ type __VLS_PublicProps = __VLS_Props & {
20
+ modelValue?: number | null;
21
+ };
22
+ declare var __VLS_5: {
23
+ label: string;
24
+ }, __VLS_15: {}, __VLS_39: {};
25
+ type __VLS_Slots = {} & {
26
+ label?: (props: typeof __VLS_5) => any;
27
+ } & {
28
+ prefix?: (props: typeof __VLS_15) => any;
29
+ } & {
30
+ suffix?: (props: typeof __VLS_39) => any;
31
+ };
32
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
33
+ focus: () => any;
34
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ "update:modelValue": (value: number) => any;
36
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ "onUpdate:modelValue"?: (value: number) => any;
38
+ }>, {
39
+ disabled: boolean;
40
+ required: boolean;
41
+ label: string;
42
+ placeholder: string;
43
+ step: number;
44
+ v: Record<string, unknown>;
45
+ customValidators: unknown[];
46
+ regleValidation: RegleFieldStatus<number>;
47
+ max: number;
48
+ min: number;
49
+ minFractionDigits: number;
50
+ maxFractionDigits: number;
51
+ showButtons: boolean;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
53
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
54
+ export default _default;
55
+ type __VLS_WithSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,49 @@
1
+ import type { InputTextProps } from 'primevue';
2
+ import type { RegleFieldStatus } from '@regle/core';
3
+ interface WtInputTextProps extends /* @vue-ignore */ InputTextProps {
4
+ label?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ preventTrim?: boolean;
9
+ v?: Record<string, unknown>;
10
+ regleValidation?: RegleFieldStatus<string>;
11
+ customValidators?: unknown[];
12
+ }
13
+ type __VLS_Props = WtInputTextProps;
14
+ type __VLS_PublicProps = __VLS_Props & {
15
+ modelValue?: string;
16
+ };
17
+ declare var __VLS_5: {
18
+ label: string;
19
+ }, __VLS_15: {}, __VLS_32: {};
20
+ type __VLS_Slots = {} & {
21
+ label?: (props: typeof __VLS_5) => any;
22
+ } & {
23
+ prefix?: (props: typeof __VLS_15) => any;
24
+ } & {
25
+ suffix?: (props: typeof __VLS_32) => any;
26
+ };
27
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
28
+ focus: () => any;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ "update:modelValue": (...args: any[]) => void;
31
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
+ "onUpdate:modelValue"?: (...args: any[]) => any;
33
+ }>, {
34
+ disabled: boolean;
35
+ required: boolean;
36
+ label: string;
37
+ placeholder: string;
38
+ v: Record<string, unknown>;
39
+ customValidators: unknown[];
40
+ preventTrim: boolean;
41
+ regleValidation: RegleFieldStatus<string>;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,23 @@
1
+ import type { MessageProps } from 'primevue';
2
+ import { MessageColor, MessageVariant, ComponentSize } from '../../enums';
3
+ interface WtMessageProps extends /* @vue-ignore */ MessageProps {
4
+ color?: MessageColor;
5
+ variant?: MessageVariant;
6
+ size?: ComponentSize;
7
+ }
8
+ declare var __VLS_6: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_6) => any;
11
+ };
12
+ declare const __VLS_component: import("vue").DefineComponent<WtMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WtMessageProps> & Readonly<{}>, {
13
+ size: ComponentSize;
14
+ color: MessageColor;
15
+ variant: MessageVariant;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,45 @@
1
+ import type { PasswordProps } from 'primevue';
2
+ import type { RegleFieldStatus } from '@regle/core';
3
+ interface WtPasswordProps extends /* @vue-ignore */ PasswordProps {
4
+ label?: string;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ required?: boolean;
8
+ toggleMask?: boolean;
9
+ v?: Record<string, unknown>;
10
+ regleValidation?: RegleFieldStatus<string>;
11
+ customValidators?: unknown[];
12
+ }
13
+ type __VLS_Props = WtPasswordProps;
14
+ type __VLS_PublicProps = __VLS_Props & {
15
+ modelValue?: string;
16
+ };
17
+ declare var __VLS_5: {
18
+ label: string;
19
+ };
20
+ type __VLS_Slots = {} & {
21
+ label?: (props: typeof __VLS_5) => any;
22
+ };
23
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
24
+ focus: () => any;
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:modelValue": (value: string) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ "onUpdate:modelValue"?: (value: string) => any;
29
+ }>, {
30
+ disabled: boolean;
31
+ required: boolean;
32
+ label: string;
33
+ placeholder: string;
34
+ v: Record<string, unknown>;
35
+ customValidators: unknown[];
36
+ regleValidation: RegleFieldStatus<string>;
37
+ toggleMask: boolean;
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
40
+ export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -98,6 +98,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
98
98
  }>, {
99
99
  download: string | boolean | Function;
100
100
  position: string;
101
+ closable: boolean;
101
102
  autoplay: boolean;
102
103
  loop: boolean;
103
104
  hideDuration: boolean;
@@ -105,6 +106,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
105
106
  resetOnEnd: boolean;
106
107
  invertTime: boolean;
107
108
  resetVolume: boolean;
108
- closable: boolean;
109
109
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
110
110
  export default _default;
@@ -35,6 +35,16 @@ interface Props extends DataTableProps {
35
35
  * 'If true, allows to reorder rows.'
36
36
  */
37
37
  rowReorder?: boolean;
38
+ /**
39
+ * @author @Oleksandr Palonnyi
40
+ *
41
+ * [WTEL-8629](https://webitel.atlassian.net/browse/WTEL-8629)
42
+ *
43
+ * Unique field name used to identify a row.
44
+ * Required for selection, expansion, and virtual scrolling to work correctly.
45
+ * The value must be stable and unique across all rows.
46
+ */
47
+ dataKey?: string;
38
48
  /**
39
49
  * 'If true, restrict sprecific row reorder.'
40
50
  */
@@ -101,6 +111,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
101
111
  fixedActions: boolean;
102
112
  headless: boolean;
103
113
  rowReorder: boolean;
114
+ dataKey: string;
104
115
  isRowReorderDisabled: (row: any) => boolean;
105
116
  rowExpansion: boolean;
106
117
  rowClass: () => string;
@@ -40,9 +40,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
40
40
  }>, {
41
41
  title: string;
42
42
  username: string;
43
+ closable: boolean;
43
44
  autoplay: boolean;
44
45
  mime: string;
45
- closable: boolean;
46
46
  muted: boolean;
47
47
  static: boolean;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -7,6 +7,7 @@ export * from './useClose/useClose';
7
7
  export * from './useDestroyableSortable/useDestroyableSortable';
8
8
  export * from './useGalleriaFullscreen/useGalleriaFullscreen';
9
9
  export * from './useGalleriaMaskClick/useGalleriaMaskClick';
10
+ export * from './useInputControl/useInputControl';
10
11
  export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
11
12
  export * from './useTableColumnDrag/useTableColumnDrag';
12
13
  export * from './useValidate/useValidate';
@@ -0,0 +1,4 @@
1
+ export declare const useInputControl: (input: any) => {
2
+ focus: () => any;
3
+ handleKeyup: (e: any) => any;
4
+ };