@webitel/ui-sdk 26.6.71 → 26.6.73

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 (45) hide show
  1. package/dist/{clients-DjB6nJHf.js → clients-B_u-8Hev.js} +191 -192
  2. package/dist/{components-CXf44HOY.js → components-DXso3cNH.js} +10 -10
  3. package/dist/{enums-CoY-pIuZ.js → enums-CaJ2Kh6z.js} +6 -0
  4. package/dist/ui-sdk.css +1 -1
  5. package/dist/ui-sdk.js +3 -3
  6. package/dist/ui-sdk.umd.cjs +545 -539
  7. package/dist/{useValidation-DMp_AiNP.js → useValidation-D966lfIa.js} +1 -1
  8. package/dist/{wt-action-bar-CSdnxT_s.js → wt-action-bar-4kYwf6im.js} +2 -2
  9. package/dist/{wt-button-BVX4GDCP.js → wt-button-CT1JWvQo.js} +2 -2
  10. package/dist/{wt-chat-emoji-BdKDyZmY.js → wt-chat-emoji-Bg2CkUHQ.js} +4 -4
  11. package/dist/{wt-datepicker-CJXKrxBh.js → wt-datepicker-C-hb329G.js} +87 -54
  12. package/dist/{wt-display-chip-items-BIw3LDyc.js → wt-display-chip-items-CIpASRgr.js} +1 -1
  13. package/dist/{wt-dual-panel-Dn52cFd0.js → wt-dual-panel-BzJePzqE.js} +1 -1
  14. package/dist/{wt-expansion-card-C4ratcs-.js → wt-expansion-card-H6a_Nfe5.js} +1 -1
  15. package/dist/{wt-expansion-panel-BUta42RO.js → wt-expansion-panel-95IUAB3-.js} +1 -1
  16. package/dist/{wt-icon-CXZgq3LL.js → wt-icon-RopCKnvN.js} +2 -1
  17. package/dist/{wt-icon-action-SuNhSnx4.js → wt-icon-action-9anRgrpl.js} +1 -1
  18. package/dist/{wt-icon-btn-gkyWWthY.js → wt-icon-btn-DaAa_Ywc.js} +1 -1
  19. package/dist/{wt-notifications-bar-kewyyshr.js → wt-notifications-bar-uj3OVFZc.js} +2 -2
  20. package/dist/{wt-player-CP_9u3G3.js → wt-player-CvX-MhQf.js} +3 -3
  21. package/dist/{wt-search-bar-DmwAjznv.js → wt-search-bar-CIkp_KW3.js} +1 -1
  22. package/dist/{wt-send-message-popup-C83QgUfa.js → wt-send-message-popup-ClWBSwxI.js} +14 -14
  23. package/dist/{wt-status-select-D20EwR17.js → wt-status-select-BLq_dxqN.js} +1 -1
  24. package/dist/{wt-timepicker-BivkZpXq.js → wt-timepicker-CuflSCqz.js} +2 -2
  25. package/dist/{wt-toast-Dufgfee5.js → wt-toast-BLDcVPXR.js} +2 -2
  26. package/dist/{wt-tree-table-BFvSXadM.js → wt-tree-table-CLLEP40A.js} +1 -1
  27. package/dist/{wt-type-extension-value-input-DdGZn73d.js → wt-type-extension-value-input-X7FXHDUW.js} +21 -21
  28. package/dist/{wt-vidstack-player-B4lxjSc4.js → wt-vidstack-player-DZYW8huS.js} +4 -4
  29. package/package.json +2 -2
  30. package/src/assets/icons/sprite/custom-provider.svg +6 -0
  31. package/src/assets/icons/sprite/index.ts +2 -0
  32. package/src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts +72 -0
  33. package/src/components/wt-datepicker/wt-datepicker.vue +3 -0
  34. package/src/enums/SingleSignOnProvider/SingleSignOnProvider.ts +9 -0
  35. package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.ts +14 -0
  36. package/src/enums/index.ts +4 -0
  37. package/src/locale/en/en.js +1 -1
  38. package/src/locale/ru/ru.js +1 -1
  39. package/src/locale/uk/uk.js +1 -1
  40. package/src/modules/Userinfo/enums/ScopeClass/ScopeClass.ts +1 -1
  41. package/types/components/wt-datepicker/_internals/composables/usePreventZeroPad.d.ts +15 -0
  42. package/types/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +7 -0
  43. package/types/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +3 -0
  44. package/types/enums/index.d.ts +3 -1
  45. package/types/modules/Userinfo/enums/ScopeClass/ScopeClass.d.ts +1 -1
@@ -1,7 +1,7 @@
1
- import { a as e, o as t, r as n, s as r } from "./components-CXf44HOY.js";
2
- import { t as i } from "./enums-CoY-pIuZ.js";
3
- import { t as a } from "./vue-i18n-Db_oYfO8.js";
4
- import { t as o } from "./clients-DjB6nJHf.js";
1
+ import { t as e } from "./clients-B_u-8Hev.js";
2
+ import { a as t, o as n, r, s as i } from "./components-DXso3cNH.js";
3
+ import { t as a } from "./enums-CaJ2Kh6z.js";
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";
6
6
  //#endregion
7
7
  //#region src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue
@@ -20,7 +20,7 @@ var y = /* @__PURE__ */ d({
20
20
  setup(d) {
21
21
  let f = v(d, "modelValue"), y = d;
22
22
  y.v?.$touch();
23
- let { t: b } = a(), x = s(() => y.label || b(y.field?.name || "vocabulary.labels")), S = s(() => y.required ?? y.field.required), C = s(() => f.value), w = s(() => ({
23
+ let { t: b } = o(), x = s(() => y.label || b(y.field?.name || "vocabulary.labels")), S = s(() => y.required ?? y.field.required), C = s(() => f.value), w = s(() => ({
24
24
  label: x.value,
25
25
  required: S.value,
26
26
  v: y.v
@@ -30,11 +30,11 @@ var y = /* @__PURE__ */ d({
30
30
  searchMethod: () => O(y.field.lookup)
31
31
  })), E = s(() => ({ ...T.value })), D = (e) => {
32
32
  f.value = e;
33
- }, O = ({ path: e, display: t, primary: n }) => (r) => o.getSysTypeRecordsLookup({
34
- ...r,
35
- path: e,
36
- display: t,
37
- primary: n
33
+ }, O = ({ path: t, display: n, primary: r }) => (i) => e.getSysTypeRecordsLookup({
34
+ ...i,
35
+ path: t,
36
+ display: n,
37
+ primary: r
38
38
  }), k = (e) => {
39
39
  if (Object.values(e).length === 0) return D(null);
40
40
  D({
@@ -47,52 +47,52 @@ var y = /* @__PURE__ */ d({
47
47
  name: e.name
48
48
  })));
49
49
  };
50
- return (a, o) => {
50
+ return (e, o) => {
51
51
  let s = g("wt-input-text"), f = g("wt-input-number");
52
- return d.field.kind === _(i).Text ? (m(), c(s, p({ key: 0 }, w.value, {
52
+ return d.field.kind === _(a).Text ? (m(), c(s, p({ key: 0 }, w.value, {
53
53
  "model-value": C.value,
54
54
  "onUpdate:modelValue": D
55
- }), null, 16, ["model-value"])) : d.field.kind === _(i).Number ? (m(), c(f, p({ key: 1 }, w.value, {
55
+ }), null, 16, ["model-value"])) : d.field.kind === _(a).Number ? (m(), c(f, p({ key: 1 }, w.value, {
56
56
  "model-value": C.value,
57
57
  "onUpdate:modelValue": D
58
- }), null, 16, ["model-value"])) : d.field.kind === _(i).Boolean ? h(a.$slots, _(i).Boolean, {
58
+ }), null, 16, ["model-value"])) : d.field.kind === _(a).Boolean ? h(e.$slots, _(a).Boolean, {
59
59
  key: 2,
60
60
  defaultProps: { ...w.value }
61
- }, () => [u(_(e), p(w.value, {
61
+ }, () => [u(_(t), p(w.value, {
62
62
  "model-value": C.value,
63
63
  "onUpdate:modelValue": D
64
- }), null, 16, ["model-value"])]) : d.field.kind === _(i).Select ? h(a.$slots, _(i).Select, {
64
+ }), null, 16, ["model-value"])]) : d.field.kind === _(a).Select ? h(e.$slots, _(a).Select, {
65
65
  key: 3,
66
66
  defaultProps: {
67
67
  ...w.value,
68
68
  ...T.value,
69
69
  value: C.value
70
70
  }
71
- }, () => [u(_(t), p(w.value, {
71
+ }, () => [u(_(n), p(w.value, {
72
72
  "model-value": C.value,
73
73
  "search-method": O(d.field.lookup),
74
74
  "data-key": "id",
75
75
  "onUpdate:modelValue": k
76
- }), null, 16, ["model-value", "search-method"])]) : d.field.kind === _(i).Multiselect ? h(a.$slots, _(i).Multiselect, {
76
+ }), null, 16, ["model-value", "search-method"])]) : d.field.kind === _(a).Multiselect ? h(e.$slots, _(a).Multiselect, {
77
77
  key: 4,
78
78
  defaultProps: {
79
79
  ...w.value,
80
80
  ...E.value,
81
81
  value: C.value
82
82
  }
83
- }, () => [u(_(r), p({
83
+ }, () => [u(_(i), p({
84
84
  ...w.value,
85
85
  ...E.value
86
86
  }, {
87
87
  "model-value": C.value,
88
88
  "onUpdate:modelValue": A
89
- }), null, 16, ["model-value"])]) : d.field.kind === _(i).Calendar ? h(a.$slots, _(i).Calendar, {
89
+ }), null, 16, ["model-value"])]) : d.field.kind === _(a).Calendar ? h(e.$slots, _(a).Calendar, {
90
90
  key: 5,
91
91
  defaultProps: {
92
92
  ...w.value,
93
93
  value: C.value
94
94
  }
95
- }, () => [u(_(n), p(w.value, {
95
+ }, () => [u(_(r), p(w.value, {
96
96
  "model-value": C.value,
97
97
  "show-time": "",
98
98
  "onUpdate:modelValue": D
@@ -1,8 +1,8 @@
1
- import { w as e } from "./components-CXf44HOY.js";
1
+ import { w as e } from "./components-DXso3cNH.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { l as n } from "./enums-CoY-pIuZ.js";
4
- import "./wt-button-BVX4GDCP.js";
5
- import { t as r } from "./wt-icon-btn-gkyWWthY.js";
3
+ import { l as n } from "./enums-CaJ2Kh6z.js";
4
+ import "./wt-button-CT1JWvQo.js";
5
+ import { t as r } from "./wt-icon-btn-DaAa_Ywc.js";
6
6
  import { $ as i, C as a, D as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as ee, P as te, Q as g, R as ne, S as _, U as re, V as v, W as y, X as b, Y as ie, Z as x, _ as S, a as ae, b as oe, c as se, d as ce, et as le, f as ue, g as de, h as fe, i as C, it as pe, j as me, k as he, l as w, m as ge, n as T, nt as E, o as D, ot as _e, p as O, q as k, r as A, rt as ve, t as ye, tt as be, u as xe, v as j, w as Se, y as Ce, z as we } from "./vidstack-D9mvYVIz-DesuYgKV.js";
7
7
  import { _ as M, a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as N, u as ze } from "./vidstack-CgfrU1hS-CNTJkyzm.js";
8
8
  import { _ as Be, a as Ve, c as He, f as Ue, g as We, h as Ge, i as Ke, l as qe, n as Je, r as Ye, s as Xe, t as Ze, u as Qe, v as $e, x as et, y as tt } from "./useVidstackSrc-epUQZhkL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.71",
3
+ "version": "26.6.73",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -68,7 +68,7 @@
68
68
  "flat": "^6.0.1",
69
69
  "is-valid-domain": "^0.1.6",
70
70
  "path-browserify": "^1.0.1",
71
- "primelocale": "^2.3.2",
71
+ "primelocale": "^2.4.0",
72
72
  "primevue": "^4.5.4",
73
73
  "qs-esm": "^7.0.3",
74
74
  "sortablejs": "^1.15.3",
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="12" cy="12" r="11" fill="#B8E4F9"/>
3
+ <path d="M9.1513 17.7578L7.15997 17.7916L6.18118 16.8128L6.21492 14.8215L11.2776 9.75879L14.214 12.6952L12.1889 14.7202L11.1932 14.7371L11.1764 15.7328L10.6701 16.239L9.67443 16.2559L9.65756 17.2516L9.1513 17.7578Z" fill="#0082FB"/>
4
+ <path d="M19.5128 11.3113C19.8461 10.7333 19.8081 10.0372 19.5187 9.49463C19.058 8.78078 18.3298 7.69821 17.3021 6.67047C16.2743 5.64274 15.1918 4.91455 14.4779 4.45384C13.9354 4.16442 13.2392 4.12645 12.6612 4.45974C12.1086 4.76772 11.3787 5.25289 10.7206 5.91104C10.0624 6.56918 9.57724 7.29905 9.26926 7.85173C8.93597 8.42972 8.94947 9.10137 9.28867 9.64308C9.72407 10.3822 10.4523 11.4648 11.48 12.4925C12.5077 13.5203 13.5903 14.2485 14.3041 14.7092C14.8459 15.0484 15.5428 15.0366 16.0955 14.7286C16.6482 14.4206 17.378 13.9354 18.0362 13.2773C18.7197 12.5938 19.2048 11.864 19.5128 11.3113ZM15.9942 10.4253L13.5472 7.97832C13.2781 7.70915 13.2857 7.2611 13.5641 6.98265L14.0704 6.47639C14.2223 6.32451 15.0821 6.98182 16.0364 7.93614C16.9907 8.89047 17.648 9.75028 17.4962 9.90216L16.9899 10.4084C16.7114 10.6869 16.2634 10.6945 15.9942 10.4253Z" fill="#0082FB"/>
5
+ <path d="M11.522 12.7039L10.9314 12.1133L6.20624 16.8384L6.79689 17.4291L11.522 12.7039Z" fill="#1A2EB2"/>
6
+ </svg>
@@ -76,6 +76,7 @@ import conference from './conference.svg?raw';
76
76
  import consultativeTransfer from './consultative-transfer.svg?raw';
77
77
  import contacts from './contacts.svg?raw';
78
78
  import copy from './copy.svg?raw';
79
+ import customProvider from './custom-provider.svg?raw';
79
80
  import customChatGateway from './custom-chat-gateway.svg?raw';
80
81
  import darkMode from './dark-mode.svg?raw';
81
82
  import dislike from './dislike.svg?raw';
@@ -299,6 +300,7 @@ export default objCamelToKebab({
299
300
  'call-transfer--filled': callTransferFilled,
300
301
  consultativeTransfer,
301
302
  updateCalls,
303
+ customProvider,
302
304
 
303
305
  caseAuthor,
304
306
  cases,
@@ -0,0 +1,72 @@
1
+ import { onMounted, onUnmounted } from 'vue';
2
+
3
+ /**
4
+ * @author @HlukhovYe
5
+ *
6
+ * https://webitel.atlassian.net/browse/WTEL-9865
7
+ *
8
+ * Prevents PrimeVue's DatePicker from zero-padding a dd/mm segment while the user
9
+ * is mid-typing. Without this, typing "2" into a cleared two-digit slot immediately
10
+ * reformats to "02", forcing the user to delete the leading zero before the second digit.
11
+ *
12
+ * Works by registering two listeners on the same input event:
13
+ * - capture phase (before PrimeVue): snapshots the partial single-digit value
14
+ * - bubble phase (after PrimeVue): if PrimeVue zero-padded the value, restores the
15
+ * snapshot and cancels further propagation so the model is not updated yet
16
+ */
17
+ export function usePreventZeroPad(getInput: () => HTMLInputElement | null) {
18
+ let pendingPartial: {
19
+ value: string;
20
+ cursor: number;
21
+ } | null = null;
22
+
23
+ function onInputCapture(event: Event) {
24
+ const input = event.target as HTMLInputElement;
25
+ const raw = input.value;
26
+ const cursor = input.selectionStart ?? 0;
27
+ const parts = raw.split('/');
28
+ let offset = 0;
29
+ for (let i = 0; i < Math.min(parts.length, 2); i++) {
30
+ const seg = parts[i];
31
+ const segEnd = offset + seg.length;
32
+ if (cursor <= segEnd && seg.length === 1 && /^\d$/.test(seg)) {
33
+ pendingPartial = {
34
+ value: raw,
35
+ cursor,
36
+ };
37
+ return;
38
+ }
39
+ offset = segEnd + 1;
40
+ }
41
+ }
42
+
43
+ function onInputBubble(event: Event) {
44
+ if (!pendingPartial) return;
45
+ const input = event.target as HTMLInputElement;
46
+ const { value, cursor } = pendingPartial;
47
+ pendingPartial = null;
48
+ if (input.value !== value) {
49
+ input.value = value;
50
+ input.setSelectionRange(cursor, cursor);
51
+ event.stopImmediatePropagation();
52
+ }
53
+ }
54
+
55
+ onMounted(() => {
56
+ const input = getInput();
57
+ if (!input) return;
58
+ input.addEventListener('input', onInputCapture, {
59
+ capture: true,
60
+ });
61
+ input.addEventListener('input', onInputBubble);
62
+ });
63
+
64
+ onUnmounted(() => {
65
+ const input = getInput();
66
+ if (!input) return;
67
+ input.removeEventListener('input', onInputCapture, {
68
+ capture: true,
69
+ });
70
+ input.removeEventListener('input', onInputBubble);
71
+ });
72
+ }
@@ -150,6 +150,7 @@ import {
150
150
  MessageVariant,
151
151
  } from '../../enums';
152
152
  import { useValidation } from '../../mixins/validationMixin/useValidation';
153
+ import { usePreventZeroPad } from './_internals/composables/usePreventZeroPad';
153
154
 
154
155
  interface Props extends DatePickerProps {
155
156
  showTime?: boolean;
@@ -199,6 +200,8 @@ const datepicker = useTemplateRef<HTMLDivElement>('datepicker');
199
200
 
200
201
  const datepickerId = `datepicker-${Math.random().toString(36).slice(2, 11)}`;
201
202
 
203
+ usePreventZeroPad(() => datepicker.value?.$el?.querySelector('input'));
204
+
202
205
  const getPlaceholder = computed(() => {
203
206
  return props.placholder || `dd/mm/yyyy ${props.showTime ? 'hh:mm' : ''}`;
204
207
  });
@@ -0,0 +1,9 @@
1
+ export const SingleSignOnProvider = {
2
+ Microsoft: 'microsoft',
3
+ Google: 'google',
4
+ Facebook: 'facebook',
5
+ Custom: 'custom',
6
+ } as const;
7
+
8
+ export type SingleSignOnProvider =
9
+ (typeof SingleSignOnProvider)[keyof typeof SingleSignOnProvider];
@@ -0,0 +1,14 @@
1
+ import { SingleSignOnProvider } from '../SingleSignOnProvider/SingleSignOnProvider';
2
+
3
+ export const SingleSignOnProviderIconMappings: Record<
4
+ SingleSignOnProvider,
5
+ string
6
+ > = {
7
+ [SingleSignOnProvider.Microsoft]: 'microsoft',
8
+ [SingleSignOnProvider.Google]: 'google',
9
+ [SingleSignOnProvider.Facebook]: 'messenger',
10
+ [SingleSignOnProvider.Custom]: 'custom-provider',
11
+ };
12
+
13
+ export type SingleSignOnProviderIconMappings =
14
+ (typeof SingleSignOnProviderIconMappings)[keyof typeof SingleSignOnProviderIconMappings];
@@ -39,6 +39,8 @@ import { WfmSections } from './WebitelApplications/WfmSections';
39
39
  import { WtApplication } from './WebitelApplications/WtApplication';
40
40
  import { WtObject } from './WtObject/WtObject';
41
41
  import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
42
+ import { SingleSignOnProvider } from './SingleSignOnProvider/SingleSignOnProvider';
43
+ import { SingleSignOnProviderIconMappings } from './SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings';
42
44
 
43
45
  export type {
44
46
  ConnectionQualityLevelsType,
@@ -82,4 +84,6 @@ export {
82
84
  WtApplication,
83
85
  WtObject,
84
86
  WtTypeExtensionFieldKind,
87
+ SingleSignOnProvider,
88
+ SingleSignOnProviderIconMappings,
85
89
  };
@@ -410,7 +410,7 @@ export default deepmerge(
410
410
  [AdminSections.StoragePolicies]: 'Storage policies',
411
411
  [AdminSections.CognitiveProfiles]: 'Cognitive profiles',
412
412
  [AdminSections.EmailProfiles]: 'Email profiles',
413
- [AdminSections.SingleSignOn]: 'Single Sign-on',
413
+ [AdminSections.SingleSignOn]: 'SSO',
414
414
  [AdminSections.ImportCsv]: 'Imports of CSV from file',
415
415
  [AdminSections.Triggers]: 'Triggers',
416
416
  [AdminSections.Media]: 'Media files',
@@ -403,7 +403,7 @@ export default {
403
403
  [AdminSections.StoragePolicies]: 'Политики хранения файлов',
404
404
  [AdminSections.CognitiveProfiles]: 'Голосовые профили',
405
405
  [AdminSections.EmailProfiles]: 'Email профили',
406
- [AdminSections.SingleSignOn]: 'Single Sign-on',
406
+ [AdminSections.SingleSignOn]: 'SSO',
407
407
  [AdminSections.ImportCsv]: 'Импорт данных из CSV файлов',
408
408
  [AdminSections.Triggers]: 'Триггеры',
409
409
  [AdminSections.Roles]: 'Роли',
@@ -402,7 +402,7 @@ export default {
402
402
  [AdminSections.StoragePolicies]: 'Політики збереження файлів',
403
403
  [AdminSections.CognitiveProfiles]: 'Голосові профілі',
404
404
  [AdminSections.EmailProfiles]: 'Email профілі',
405
- [AdminSections.SingleSignOn]: 'Single Sign-on',
405
+ [AdminSections.SingleSignOn]: 'SSO',
406
406
  [AdminSections.ImportCsv]: 'Імпорт даних з CSV файлів',
407
407
  [AdminSections.Triggers]: 'Тригери',
408
408
  [AdminSections.Roles]: 'Ролі',
@@ -28,7 +28,6 @@ export const ScopeClass = {
28
28
  Resource: 'cc_resource',
29
29
  StorageProfile: 'storage_profile',
30
30
  CognitiveProfile: 'cognitive_profile',
31
- SingleSignOn: 'single_sign_on',
32
31
  ImportTemplate: 'import_template',
33
32
  Trigger: 'trigger',
34
33
  Schema: 'schema',
@@ -53,6 +52,7 @@ export const ScopeClass = {
53
52
  FilesPolicy: 'files_policy',
54
53
  PortalUsers: 'portal_users',
55
54
  Custom: 'custom',
55
+ SingleSignOn: 'sso',
56
56
  } as const;
57
57
 
58
58
  export type ScopeClass = (typeof ScopeClass)[keyof typeof ScopeClass];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @author @HlukhovYe
3
+ *
4
+ * https://webitel.atlassian.net/browse/WTEL-9865
5
+ *
6
+ * Prevents PrimeVue's DatePicker from zero-padding a dd/mm segment while the user
7
+ * is mid-typing. Without this, typing "2" into a cleared two-digit slot immediately
8
+ * reformats to "02", forcing the user to delete the leading zero before the second digit.
9
+ *
10
+ * Works by registering two listeners on the same input event:
11
+ * - capture phase (before PrimeVue): snapshots the partial single-digit value
12
+ * - bubble phase (after PrimeVue): if PrimeVue zero-padded the value, restores the
13
+ * snapshot and cancels further propagation so the model is not updated yet
14
+ */
15
+ export declare function usePreventZeroPad(getInput: () => HTMLInputElement | null): void;
@@ -0,0 +1,7 @@
1
+ export declare const SingleSignOnProvider: {
2
+ readonly Microsoft: "microsoft";
3
+ readonly Google: "google";
4
+ readonly Facebook: "facebook";
5
+ readonly Custom: "custom";
6
+ };
7
+ export type SingleSignOnProvider = (typeof SingleSignOnProvider)[keyof typeof SingleSignOnProvider];
@@ -0,0 +1,3 @@
1
+ import { SingleSignOnProvider } from '../SingleSignOnProvider/SingleSignOnProvider';
2
+ export declare const SingleSignOnProviderIconMappings: Record<SingleSignOnProvider, string>;
3
+ export type SingleSignOnProviderIconMappings = (typeof SingleSignOnProviderIconMappings)[keyof typeof SingleSignOnProviderIconMappings];
@@ -32,5 +32,7 @@ import { WfmSections } from './WebitelApplications/WfmSections';
32
32
  import { WtApplication } from './WebitelApplications/WtApplication';
33
33
  import { WtObject } from './WtObject/WtObject';
34
34
  import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
35
+ import { SingleSignOnProvider } from './SingleSignOnProvider/SingleSignOnProvider';
36
+ import { SingleSignOnProviderIconMappings } from './SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings';
35
37
  export type { ConnectionQualityLevelsType, UserSettingsBroadcastMessage, WebphoneBroadcastMessage, WebphoneBroadcastPayload, };
36
- export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, ConnectionQualityLevels, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, LoginOptions, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind, };
38
+ export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, BroadcastChannelName, ButtonColor, ButtonVariant, ChatGatewayProvider, ChipColor, ComponentSize, ConnectionQualityLevels, CrmSections, CrudAction, DefaultWorkspaceTabSettings, EmptyCause, FormatDateMode, IconAction, IconColor, LoginOptions, MessageColor, MessageVariant, MimeTypes, ProcessingTableColumnType, ProviderIconType, QueueType, QueueTypeName, RelativeDatetimeValue, RingtoneType, SupervisorSections, TypesExportedSettings, WfmSections, WtApplication, WtObject, WtTypeExtensionFieldKind, SingleSignOnProvider, SingleSignOnProviderIconMappings, };
@@ -27,7 +27,6 @@ export declare const ScopeClass: {
27
27
  readonly Resource: "cc_resource";
28
28
  readonly StorageProfile: "storage_profile";
29
29
  readonly CognitiveProfile: "cognitive_profile";
30
- readonly SingleSignOn: "single_sign_on";
31
30
  readonly ImportTemplate: "import_template";
32
31
  readonly Trigger: "trigger";
33
32
  readonly Schema: "schema";
@@ -52,5 +51,6 @@ export declare const ScopeClass: {
52
51
  readonly FilesPolicy: "files_policy";
53
52
  readonly PortalUsers: "portal_users";
54
53
  readonly Custom: "custom";
54
+ readonly SingleSignOn: "sso";
55
55
  };
56
56
  export type ScopeClass = (typeof ScopeClass)[keyof typeof ScopeClass];