@webitel/ui-sdk 26.6.99 → 26.6.101

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 (102) hide show
  1. package/dist/{clients-Bkj_jr3s.js → clients-DBR1e2Vq.js} +1 -1
  2. package/dist/{components-f_7Xewxl.js → components-B15PvOcM.js} +3 -3
  3. package/dist/ui-sdk.css +1 -1
  4. package/dist/ui-sdk.js +1 -1
  5. package/dist/ui-sdk.umd.cjs +2 -2
  6. package/dist/{wt-chat-emoji-BxcgfPnF.js → wt-chat-emoji-DGWoMhRa.js} +1 -1
  7. package/dist/{wt-display-chip-items-BFcunpPg.js → wt-display-chip-items-BoMTg1Qr.js} +1 -1
  8. package/dist/{wt-send-message-popup-UqRi-DNw.js → wt-send-message-popup-WECZxY7v.js} +2 -2
  9. package/dist/{wt-time-input-CO2cop3y.js → wt-time-input-u5Ay5_X5.js} +3 -1
  10. package/dist/{wt-timepicker-CURP_N80.js → wt-timepicker-CHNPor19.js} +25 -29
  11. package/dist/{wt-type-extension-value-input-BT9q7ZCv.js → wt-type-extension-value-input-Dmq5KjQQ.js} +2 -2
  12. package/dist/{wt-vidstack-player-BKN0dtoX.js → wt-vidstack-player-D-D625Jl.js} +1 -1
  13. package/package.json +1 -1
  14. package/src/api/clients/roles/roles.ts +5 -3
  15. package/src/components/wt-time-input/wt-time-input.vue +6 -1
  16. package/src/components/wt-timepicker/wt-timepicker.vue +13 -16
  17. package/src/composables/useEventBus/useEventBus.d.ts +4 -4
  18. package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +2 -3
  19. package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +7 -7
  20. package/src/enums/ButtonColor/ButtonColor.d.ts +8 -8
  21. package/src/enums/ButtonVariant/ButtonVariant.d.ts +3 -3
  22. package/src/enums/ChipColor/ChipColor.d.ts +8 -8
  23. package/src/enums/ComponentSize/ComponentSize.d.ts +14 -14
  24. package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +4 -5
  25. package/src/enums/CrudAction/CrudAction.d.ts +4 -4
  26. package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +7 -8
  27. package/src/enums/EmptyCause/EmptyCause.d.ts +3 -3
  28. package/src/enums/FormatDateMode/FormatDateMode.d.ts +6 -7
  29. package/src/enums/IconColor/IconColor.d.ts +14 -14
  30. package/src/enums/LoginOptions/LoginOptions.d.ts +3 -3
  31. package/src/enums/MessageColor/MessageColor.d.ts +6 -6
  32. package/src/enums/MessageVariant/MessageVariant.d.ts +3 -3
  33. package/src/enums/MimeTypes/MimeTypes.enum.d.ts +14 -14
  34. package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +6 -7
  35. package/src/enums/QueueType/QueueType.enum.d.ts +22 -22
  36. package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +5 -6
  37. package/src/enums/RingtoneType/RingtoneType.d.ts +3 -3
  38. package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +5 -6
  39. package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +2 -6
  40. package/src/enums/WebitelApplications/AdminSections.d.ts +38 -38
  41. package/src/enums/WebitelApplications/AuditorSections.d.ts +2 -3
  42. package/src/enums/WebitelApplications/CrmSections.d.ts +13 -13
  43. package/src/enums/WebitelApplications/SupervisorSections.d.ts +4 -5
  44. package/src/enums/WebitelApplications/WfmSections.d.ts +3 -3
  45. package/src/enums/WebitelApplications/WtApplication.d.ts +9 -9
  46. package/src/enums/WtObject/WtObject.d.ts +57 -57
  47. package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +7 -8
  48. package/src/enums/index.d.ts +4 -54
  49. package/src/locale/en/en.js +4 -4
  50. package/src/locale/es/es.js +4 -4
  51. package/src/locale/kz/kz.js +4 -4
  52. package/src/locale/pl/pl.js +4 -4
  53. package/src/locale/ro/ro.js +4 -4
  54. package/src/locale/ru/ru.js +4 -4
  55. package/src/locale/uk/uk.js +4 -4
  56. package/src/locale/uz/uz.js +4 -4
  57. package/src/locale/vi/vi.js +4 -4
  58. package/src/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue +190 -0
  59. package/src/modules/ObjectPermissions/{_internals/components → components/_internal}/permissions-tab-role-popup.vue +10 -20
  60. package/src/modules/ObjectPermissions/components/permissions-tab.vue +43 -160
  61. package/src/modules/ObjectPermissions/enums/AccessMode.enum.d.ts +6 -0
  62. package/src/modules/ObjectPermissions/enums/AccessMode.enum.ts +7 -0
  63. package/src/modules/ObjectPermissions/enums/AccessRuleName.enum.d.ts +7 -0
  64. package/src/modules/ObjectPermissions/enums/AccessRuleName.enum.ts +9 -0
  65. package/src/modules/ObjectPermissions/enums/index.d.ts +2 -0
  66. package/src/modules/ObjectPermissions/enums/index.ts +2 -0
  67. package/{types/modules/ObjectPermissions/_internals/store/modules → src/modules/ObjectPermissions/headers}/headers.d.ts +2 -2
  68. package/src/modules/ObjectPermissions/{_internals/store/modules/headers.js → headers/headers.ts} +6 -2
  69. package/src/modules/ObjectPermissions/index.d.ts +7 -0
  70. package/src/modules/ObjectPermissions/index.ts +6 -0
  71. package/src/modules/ObjectPermissions/{_internals/modules → modules}/filters/store/filters.store.js +1 -1
  72. package/src/modules/ObjectPermissions/{_internals/store/helpers → store}/createObjectPermissionsStoreModule.js +2 -2
  73. package/src/modules/ObjectPermissions/store/index.js +1 -1
  74. package/src/modules/ObjectPermissions/{_internals/store/modules → store}/objectPermissionsStoreModule.js +6 -7
  75. package/src/modules/ObjectPermissions/types/PermissionsUserAccess.d.ts +3 -0
  76. package/src/modules/ObjectPermissions/types/PermissionsUserAccess.ts +10 -0
  77. package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -1
  78. package/src/utils/displayText.d.ts +1 -1
  79. package/src/utils/formatDate.d.ts +3 -9
  80. package/types/components/wt-time-input/wt-time-input.vue.d.ts +5 -0
  81. package/types/components/wt-timepicker/wt-timepicker.vue.d.ts +0 -5
  82. package/types/modules/ObjectPermissions/components/_internal/permissions-tab-content.vue.d.ts +97 -0
  83. package/types/modules/ObjectPermissions/components/_internal/permissions-tab-role-popup.vue.d.ts +23 -0
  84. package/types/modules/ObjectPermissions/components/permissions-tab.vue.d.ts +10 -43
  85. package/types/modules/ObjectPermissions/enums/AccessMode.enum.d.ts +6 -0
  86. package/types/modules/ObjectPermissions/enums/AccessRuleName.enum.d.ts +7 -0
  87. package/types/modules/ObjectPermissions/enums/index.d.ts +2 -0
  88. package/types/modules/ObjectPermissions/headers/headers.d.ts +7 -0
  89. package/types/modules/ObjectPermissions/index.d.ts +6 -0
  90. package/types/modules/ObjectPermissions/store/index.d.ts +1 -1
  91. package/types/modules/ObjectPermissions/{_internals/store/modules → store}/objectPermissionsStoreModule.d.ts +1 -0
  92. package/types/modules/ObjectPermissions/types/PermissionsUserAccess.d.ts +3 -0
  93. package/src/modules/ObjectPermissions/_internals/enums/AccessMode.enum.js +0 -5
  94. package/src/modules/Userinfo/composables/types/CreateUserAccessControl.d.ts +0 -2
  95. package/types/modules/ObjectPermissions/_internals/components/permissions-tab-role-popup.vue.d.ts +0 -13
  96. package/types/modules/ObjectPermissions/_internals/enums/AccessMode.enum.d.ts +0 -5
  97. /package/src/modules/ObjectPermissions/{_internals/components → components/_internal}/permissions-role-row.vue +0 -0
  98. /package/src/modules/ObjectPermissions/{_internals/components → components/_internal}/permissions-role-select.vue +0 -0
  99. /package/types/modules/ObjectPermissions/{_internals/components → components/_internal}/permissions-role-row.vue.d.ts +0 -0
  100. /package/types/modules/ObjectPermissions/{_internals/components → components/_internal}/permissions-role-select.vue.d.ts +0 -0
  101. /package/types/modules/ObjectPermissions/{_internals/modules → modules}/filters/store/filters.store.d.ts +0 -0
  102. /package/types/modules/ObjectPermissions/{_internals/store/helpers → store}/createObjectPermissionsStoreModule.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import "./components-f_7Xewxl.js";
1
+ import "./components-B15PvOcM.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as t } from "./enums-De8CDKZ1.js";
4
4
  import { t as n } from "./wt-button-dC4nOW56.js";
@@ -1,4 +1,4 @@
1
- import { C as e, i as t } from "./components-f_7Xewxl.js";
1
+ import { C as e, i as t } from "./components-B15PvOcM.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
- import { n as e, r as t } from "./clients-Bkj_jr3s.js";
2
- import { n } from "./components-f_7Xewxl.js";
1
+ import { n as e, r as t } from "./clients-DBR1e2Vq.js";
2
+ import { n } from "./components-B15PvOcM.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
@@ -7,6 +7,7 @@ var o = /* @__PURE__ */ t({
7
7
  label: { default: "" },
8
8
  name: { default: "" },
9
9
  maxValue: { default: void 0 },
10
+ minValue: { default: 0 },
10
11
  required: {
11
12
  type: Boolean,
12
13
  default: !1
@@ -39,7 +40,7 @@ var o = /* @__PURE__ */ t({
39
40
  "label-props": t.labelProps,
40
41
  name: t.name,
41
42
  max: t.maxValue,
42
- min: 0,
43
+ min: t.minValue,
43
44
  v: t.v,
44
45
  required: t.required,
45
46
  disabled: t.disabled,
@@ -50,6 +51,7 @@ var o = /* @__PURE__ */ t({
50
51
  "label-props",
51
52
  "name",
52
53
  "max",
54
+ "min",
53
55
  "v",
54
56
  "required",
55
57
  "disabled",
@@ -29,11 +29,7 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
29
29
  },
30
30
  v: { default: null },
31
31
  regleValidation: { default: null },
32
- customValidators: { default: () => [] },
33
- noMaxHours: {
34
- type: Boolean,
35
- default: !1
36
- }
32
+ customValidators: { default: () => [] }
37
33
  },
38
34
  emits: ["update:modelValue"],
39
35
  setup(e, { emit: d }) {
@@ -41,32 +37,32 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
41
37
  v: A,
42
38
  customValidators: j,
43
39
  regleValidation: M
44
- }), L = a(() => D.format.includes("hh")), R = a(() => D.format.includes("mm")), z = a(() => D.format.includes("ss")), B = a(() => D.noMaxHours || D.dateMode ? null : 23), V = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.hour")), H = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.min")), U = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.sec")), W = a({
40
+ }), L = a(() => D.format.includes("hh")), R = a(() => D.format.includes("mm")), z = a(() => D.format.includes("ss")), B = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.hour")), V = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.min")), H = a(() => D.noLabel || D.label ? null : k("webitelUI.timepicker.sec")), U = a({
45
41
  get() {
46
42
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getHours() : Math.floor(+D.modelValue / T);
47
43
  },
48
44
  set(e) {
49
- let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setHours(e) : +D.modelValue - W.value * T + e * T;
45
+ let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setHours(e) : Math.max(0, +D.modelValue - U.value * T + e * T);
50
46
  O("update:modelValue", t);
51
47
  }
52
- }), G = a({
48
+ }), W = a({
53
49
  get() {
54
50
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getMinutes() : Math.floor(+D.modelValue / E % 60);
55
51
  },
56
52
  set(e) {
57
- let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setMinutes(e) : +D.modelValue - G.value * E + e * E;
53
+ let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setMinutes(e) : Math.max(0, +D.modelValue - W.value * E + e * E);
58
54
  O("update:modelValue", t);
59
55
  }
60
- }), K = a({
56
+ }), G = a({
61
57
  get() {
62
58
  return D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).getSeconds() : Math.floor(D.modelValue % 60);
63
59
  },
64
60
  set(e) {
65
- let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setSeconds(e) : +D.modelValue - K.value + +e;
61
+ let t = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setSeconds(e) : Math.max(0, +D.modelValue - G.value + +e);
66
62
  O("update:modelValue", t);
67
63
  }
68
- }), q = a(() => D.required ? `${D.label} (${D.format})*` : `${D.label} (${D.format})`), J = () => {
69
- let e = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setHours(W.value) : +D.modelValue - W.value * T + W.value * T;
64
+ }), K = a(() => D.required ? `${D.label} (${D.format})*` : `${D.label} (${D.format})`), q = () => {
65
+ let e = D.dateMode ? (/* @__PURE__ */ new Date(+D.modelValue)).setHours(U.value) : +D.modelValue - U.value * T + U.value * T;
70
66
  O("update:modelValue", 0), m(() => {
71
67
  O("update:modelValue", e);
72
68
  });
@@ -75,34 +71,33 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
75
71
  let a = y("wt-label"), d = y("wt-time-input"), m = y("wt-message");
76
72
  return _(), c("div", { class: h([{ "wt-timepicker--invalid": S(P) }, "wt-timepicker"]) }, [
77
73
  e.label || !e.noLabel ? (_(), o(a, p({ key: 0 }, e.labelProps, { invalid: S(P) }), {
78
- default: C(() => [v(r.$slots, "label", g(f({ label: e.label })), () => [u(b(q.value), 1)], !0)], void 0, !0),
74
+ default: C(() => [v(r.$slots, "label", g(f({ label: e.label })), () => [u(b(K.value), 1)], !0)], void 0, !0),
79
75
  _: 3
80
76
  }, 16, ["invalid"])) : s("", !0),
81
77
  l("div", w, [
82
78
  L.value ? (_(), o(d, {
83
79
  key: 0,
84
- "model-value": W.value,
85
- "onUpdate:modelValue": i[0] ||= (e) => W.value = e,
80
+ "model-value": U.value,
81
+ "onUpdate:modelValue": i[0] ||= (e) => U.value = e,
86
82
  disabled: e.disabled,
87
- label: V.value,
88
- "max-value": B.value,
83
+ label: B.value,
89
84
  v: S(A),
90
85
  "hide-input-info": "",
91
- onBlur: J
86
+ onBlur: q
92
87
  }, null, 8, [
93
88
  "model-value",
94
89
  "disabled",
95
90
  "label",
96
- "max-value",
97
91
  "v"
98
92
  ])) : s("", !0),
99
93
  R.value ? (_(), o(d, {
100
94
  key: 1,
101
- "model-value": G.value,
102
- "onUpdate:modelValue": i[1] ||= (e) => G.value = e,
95
+ "model-value": W.value,
96
+ "onUpdate:modelValue": i[1] ||= (e) => W.value = e,
103
97
  disabled: e.disabled,
104
- label: H.value,
105
- "max-value": 59,
98
+ label: V.value,
99
+ "min-value": -1,
100
+ "max-value": 60,
106
101
  v: S(A),
107
102
  "hide-input-info": ""
108
103
  }, null, 8, [
@@ -113,11 +108,12 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
113
108
  ])) : s("", !0),
114
109
  z.value ? (_(), o(d, {
115
110
  key: 2,
116
- "model-value": K.value,
117
- "onUpdate:modelValue": i[2] ||= (e) => K.value = e,
111
+ "model-value": G.value,
112
+ "onUpdate:modelValue": i[2] ||= (e) => G.value = e,
118
113
  disabled: e.disabled,
119
- label: U.value,
120
- "max-value": 59,
114
+ label: H.value,
115
+ "min-value": -1,
116
+ "max-value": 60,
121
117
  v: S(A),
122
118
  "hide-input-info": ""
123
119
  }, null, 8, [
@@ -143,6 +139,6 @@ var w = { class: "wt-timepicker__wrapper" }, T = 3600, E = 60, D = /*#__PURE__*/
143
139
  ], 2);
144
140
  };
145
141
  }
146
- }), [["__scopeId", "data-v-3b807528"]]);
142
+ }), [["__scopeId", "data-v-323eaef0"]]);
147
143
  //#endregion
148
144
  export { D as default };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clients-Bkj_jr3s.js";
2
- import { a as t, o as n, r, s as i } from "./components-f_7Xewxl.js";
1
+ import { t as e } from "./clients-DBR1e2Vq.js";
2
+ import { a as t, o as n, r, s as i } from "./components-B15PvOcM.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";
@@ -1,4 +1,4 @@
1
- import { w as e } from "./components-f_7Xewxl.js";
1
+ import { w as e } from "./components-B15PvOcM.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { l as n } from "./enums-De8CDKZ1.js";
4
4
  import "./wt-button-dC4nOW56.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "26.6.99",
3
+ "version": "26.6.101",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -63,9 +63,11 @@ const getRoleList = async (params) => {
63
63
 
64
64
  try {
65
65
  const response = await rolesApiFactory.searchRoles(
66
- [
67
- id,
68
- ],
66
+ id
67
+ ? [
68
+ id,
69
+ ]
70
+ : null,
69
71
  name,
70
72
  userId,
71
73
  userName,
@@ -5,7 +5,7 @@
5
5
  :label-props="labelProps"
6
6
  :name="name"
7
7
  :max="maxValue"
8
- :min="0"
8
+ :min="minValue"
9
9
  :v="v"
10
10
  :required="required"
11
11
  :disabled="disabled"
@@ -29,6 +29,10 @@ interface WtTimeInputProps {
29
29
  * Time type: day, minute, second
30
30
  */
31
31
  maxValue?: number;
32
+ /**
33
+ * Minimum selectable value
34
+ */
35
+ minValue?: number;
32
36
  /**
33
37
  * Native input required attribute
34
38
  */
@@ -63,6 +67,7 @@ const props = withDefaults(defineProps<WtTimeInputProps>(), {
63
67
  label: '',
64
68
  name: '',
65
69
  maxValue: undefined,
70
+ minValue: 0,
66
71
  required: false,
67
72
  disabled: false,
68
73
  labelProps: () => ({}),
@@ -35,7 +35,6 @@
35
35
  v-model:model-value="hour"
36
36
  :disabled="disabled"
37
37
  :label="labelHours"
38
- :max-value="getHoursMaxValue"
39
38
  :v="v"
40
39
  hide-input-info
41
40
  @blur="onHoursBlurEvent"
@@ -45,7 +44,8 @@
45
44
  v-model:model-value="min"
46
45
  :disabled="disabled"
47
46
  :label="labelMin"
48
- :max-value="59"
47
+ :min-value="-1"
48
+ :max-value="60"
49
49
  :v="v"
50
50
  hide-input-info
51
51
  />
@@ -54,7 +54,8 @@
54
54
  v-model:model-value="sec"
55
55
  :disabled="disabled"
56
56
  :label="labelSec"
57
- :max-value="59"
57
+ :min-value="-1"
58
+ :max-value="60"
58
59
  :v="v"
59
60
  hide-input-info
60
61
  />
@@ -127,16 +128,11 @@ interface WtTimepickerProps {
127
128
  * Custom validators for vuelidate
128
129
  */
129
130
  customValidators?: unknown[];
130
- /**
131
- * remove max hour restriction
132
- */
133
- noMaxHours?: boolean;
134
131
  }
135
132
 
136
133
  const props = withDefaults(defineProps<WtTimepickerProps>(), {
137
134
  modelValue: 0,
138
135
  dateMode: false,
139
- noMaxHours: false,
140
136
  label: '',
141
137
  format: 'hh:mm:ss',
142
138
  disabled: false,
@@ -172,11 +168,6 @@ const isHour = computed(() => props.format.includes('hh'));
172
168
  const isMin = computed(() => props.format.includes('mm'));
173
169
  const isSec = computed(() => props.format.includes('ss'));
174
170
 
175
- const getHoursMaxValue = computed(() => {
176
- if (props.noMaxHours || props.dateMode) return null;
177
- return 23;
178
- });
179
-
180
171
  // labelDays() {
181
172
  // if (this.noLabel) return null;
182
173
  // return this.label ? null : this.$t('webitelUI.timepicker.day');
@@ -223,7 +214,10 @@ const hour = computed({
223
214
  set(value: number) {
224
215
  const newValue = props.dateMode
225
216
  ? new Date(+props.modelValue).setHours(value)
226
- : +props.modelValue - hour.value * SEC_IN_HOUR + value * SEC_IN_HOUR;
217
+ : Math.max(
218
+ 0,
219
+ +props.modelValue - hour.value * SEC_IN_HOUR + value * SEC_IN_HOUR,
220
+ );
227
221
  emit('update:modelValue', newValue);
228
222
  },
229
223
  });
@@ -237,7 +231,10 @@ const min = computed({
237
231
  set(value: number) {
238
232
  const newValue = props.dateMode
239
233
  ? new Date(+props.modelValue).setMinutes(value)
240
- : +props.modelValue - min.value * SEC_IN_MIN + value * SEC_IN_MIN;
234
+ : Math.max(
235
+ 0,
236
+ +props.modelValue - min.value * SEC_IN_MIN + value * SEC_IN_MIN,
237
+ );
241
238
  emit('update:modelValue', newValue);
242
239
  },
243
240
  });
@@ -251,7 +248,7 @@ const sec = computed({
251
248
  set(value: number) {
252
249
  const newValue = props.dateMode
253
250
  ? new Date(+props.modelValue).setSeconds(value)
254
- : +props.modelValue - sec.value + +value;
251
+ : Math.max(0, +props.modelValue - sec.value + +value);
255
252
  emit('update:modelValue', newValue);
256
253
  },
257
254
  });
@@ -3,9 +3,9 @@
3
3
  * `install(app, { eventBus })` (provided app-wide as '$eventBus').
4
4
  */
5
5
  export interface EventBus {
6
- $emit: (event: string, payload?: unknown) => void;
7
- $on: (event: string, handler: (payload?: unknown) => void) => void;
8
- $off: (event: string, handler?: (payload?: unknown) => void) => void;
6
+ $emit: (event: string, payload?: unknown) => void;
7
+ $on: (event: string, handler: (payload?: unknown) => void) => void;
8
+ $off: (event: string, handler?: (payload?: unknown) => void) => void;
9
9
  }
10
- export declare const EVENT_BUS_INJECTION_KEY = '$eventBus';
10
+ export declare const EVENT_BUS_INJECTION_KEY = "$eventBus";
11
11
  export declare const useEventBus: () => EventBus | undefined;
@@ -1,5 +1,4 @@
1
1
  export declare const BroadcastChannelName: {
2
- readonly UserSettings: 'WtUserSettings';
2
+ readonly UserSettings: "WtUserSettings";
3
3
  };
4
- export type BroadcastChannelName =
5
- (typeof BroadcastChannelName)[keyof typeof BroadcastChannelName];
4
+ export type BroadcastChannelName = (typeof BroadcastChannelName)[keyof typeof BroadcastChannelName];
@@ -1,12 +1,12 @@
1
1
  export interface WebphoneBroadcastPayload {
2
- webrtc: boolean;
3
- stun: boolean;
4
- autoGainControl: boolean;
5
- echoCancellation: boolean;
6
- noiseSuppression: boolean;
2
+ webrtc: boolean;
3
+ stun: boolean;
4
+ autoGainControl: boolean;
5
+ echoCancellation: boolean;
6
+ noiseSuppression: boolean;
7
7
  }
8
8
  export interface WebphoneBroadcastMessage {
9
- type: 'webphone';
10
- payload: WebphoneBroadcastPayload;
9
+ type: 'webphone';
10
+ payload: WebphoneBroadcastPayload;
11
11
  }
12
12
  export type UserSettingsBroadcastMessage = WebphoneBroadcastMessage;
@@ -1,11 +1,11 @@
1
1
  export declare const ButtonColor: {
2
- readonly PRIMARY: 'primary';
3
- readonly SECONDARY: 'secondary';
4
- readonly SUCCESS: 'success';
5
- readonly WARN: 'warn';
6
- readonly ERROR: 'error';
7
- readonly TRANSFER: 'transfer';
8
- readonly JOB: 'job';
9
- readonly INFO: 'info';
2
+ readonly PRIMARY: "primary";
3
+ readonly SECONDARY: "secondary";
4
+ readonly SUCCESS: "success";
5
+ readonly WARN: "warn";
6
+ readonly ERROR: "error";
7
+ readonly TRANSFER: "transfer";
8
+ readonly JOB: "job";
9
+ readonly INFO: "info";
10
10
  };
11
11
  export type ButtonColor = (typeof ButtonColor)[keyof typeof ButtonColor];
@@ -1,6 +1,6 @@
1
1
  export declare const ButtonVariant: {
2
- readonly ACTIVE: 'active';
3
- readonly OUTLINED: 'outlined';
4
- readonly TEXT: 'text';
2
+ readonly ACTIVE: "active";
3
+ readonly OUTLINED: "outlined";
4
+ readonly TEXT: "text";
5
5
  };
6
6
  export type ButtonVariant = (typeof ButtonVariant)[keyof typeof ButtonVariant];
@@ -1,11 +1,11 @@
1
1
  export declare const ChipColor: {
2
- readonly MAIN: 'main';
3
- readonly PRIMARY: 'primary';
4
- readonly ON_PRIMARY: 'on-primary';
5
- readonly SECONDARY: 'secondary';
6
- readonly SUCCESS: 'success';
7
- readonly WARNING: 'warning';
8
- readonly ERROR: 'error';
9
- readonly TRANSFER: 'transfer';
2
+ readonly MAIN: "main";
3
+ readonly PRIMARY: "primary";
4
+ readonly ON_PRIMARY: "on-primary";
5
+ readonly SECONDARY: "secondary";
6
+ readonly SUCCESS: "success";
7
+ readonly WARNING: "warning";
8
+ readonly ERROR: "error";
9
+ readonly TRANSFER: "transfer";
10
10
  };
11
11
  export type ChipColor = (typeof ChipColor)[keyof typeof ChipColor];
@@ -1,17 +1,17 @@
1
1
  export declare const ComponentSize: {
2
- readonly XXXS: '3xs';
3
- readonly XXS: '2xs';
4
- readonly XS: 'xs';
5
- readonly SM: 'sm';
6
- readonly MD: 'md';
7
- readonly LG: 'lg';
8
- readonly XL: 'xl';
9
- readonly XXL: '2xl';
10
- readonly XXXL: '3xl';
11
- readonly '4XL': '4xl';
12
- readonly '5XL': '5xl';
13
- readonly '6XL': '6xl';
14
- readonly '7XL': '7xl';
15
- readonly '8XL': '8xl';
2
+ readonly XXXS: "3xs";
3
+ readonly XXS: "2xs";
4
+ readonly XS: "xs";
5
+ readonly SM: "sm";
6
+ readonly MD: "md";
7
+ readonly LG: "lg";
8
+ readonly XL: "xl";
9
+ readonly XXL: "2xl";
10
+ readonly XXXL: "3xl";
11
+ readonly '4XL': "4xl";
12
+ readonly '5XL': "5xl";
13
+ readonly '6XL': "6xl";
14
+ readonly '7XL': "7xl";
15
+ readonly '8XL': "8xl";
16
16
  };
17
17
  export type ComponentSize = (typeof ComponentSize)[keyof typeof ComponentSize];
@@ -1,7 +1,6 @@
1
1
  export declare const ConnectionQualityLevels: {
2
- readonly High: 'high';
3
- readonly Medium: 'medium';
4
- readonly Low: 'low';
2
+ readonly High: "high";
3
+ readonly Medium: "medium";
4
+ readonly Low: "low";
5
5
  };
6
- export type ConnectionQualityLevelsType =
7
- (typeof ConnectionQualityLevels)[keyof typeof ConnectionQualityLevels];
6
+ export type ConnectionQualityLevelsType = (typeof ConnectionQualityLevels)[keyof typeof ConnectionQualityLevels];
@@ -1,7 +1,7 @@
1
1
  export declare const CrudAction: {
2
- readonly Read: 'read';
3
- readonly Create: 'create';
4
- readonly Update: 'update';
5
- readonly Delete: 'delete';
2
+ readonly Read: "read";
3
+ readonly Create: "create";
4
+ readonly Update: "update";
5
+ readonly Delete: "delete";
6
6
  };
7
7
  export type CrudAction = (typeof CrudAction)[keyof typeof CrudAction];
@@ -1,10 +1,9 @@
1
1
  export declare const DefaultWorkspaceTabSettings: {
2
- readonly GeneralInfo: 'general_info';
3
- readonly ClientInfo: 'client_info';
4
- readonly KnowledgeBase: 'knowledge_base';
5
- readonly TaskProcessing: 'task_processing';
6
- readonly Flows: 'flows';
7
- readonly Screenshots: 'screenshots';
2
+ readonly GeneralInfo: "general_info";
3
+ readonly ClientInfo: "client_info";
4
+ readonly KnowledgeBase: "knowledge_base";
5
+ readonly TaskProcessing: "task_processing";
6
+ readonly Flows: "flows";
7
+ readonly Screenshots: "screenshots";
8
8
  };
9
- export type DefaultWorkspaceTabSettings =
10
- (typeof DefaultWorkspaceTabSettings)[keyof typeof DefaultWorkspaceTabSettings];
9
+ export type DefaultWorkspaceTabSettings = (typeof DefaultWorkspaceTabSettings)[keyof typeof DefaultWorkspaceTabSettings];
@@ -1,6 +1,6 @@
1
1
  export declare const EmptyCause: Readonly<{
2
- ERROR: 'error';
3
- FILTERS: 'filters';
4
- EMPTY: 'empty';
2
+ ERROR: "error";
3
+ FILTERS: "filters";
4
+ EMPTY: "empty";
5
5
  }>;
6
6
  export type EmptyCause = (typeof EmptyCause)[keyof typeof EmptyCause];
@@ -1,9 +1,8 @@
1
1
  export declare const FormatDateMode: {
2
- readonly DATE: 'date';
3
- readonly TIME: 'time';
4
- readonly TIME_SEC: 'timeSec';
5
- readonly DATETIME: 'datetime';
6
- readonly DATETIME_SHORT: 'datetimeShort';
2
+ readonly DATE: "date";
3
+ readonly TIME: "time";
4
+ readonly TIME_SEC: "timeSec";
5
+ readonly DATETIME: "datetime";
6
+ readonly DATETIME_SHORT: "datetimeShort";
7
7
  };
8
- export type FormatDateMode =
9
- (typeof FormatDateMode)[keyof typeof FormatDateMode];
8
+ export type FormatDateMode = (typeof FormatDateMode)[keyof typeof FormatDateMode];
@@ -1,17 +1,17 @@
1
1
  export declare const IconColor: {
2
- readonly DEFAULT: 'default';
3
- readonly ACTIVE: 'active';
4
- readonly DISABLED: 'disabled';
5
- readonly PRIMARY: 'primary';
6
- readonly ERROR: 'error';
7
- readonly SUCCESS: 'success';
8
- readonly WARNING: 'warning';
9
- readonly ON_DARK: 'on-dark';
10
- readonly ON_LIGHT: 'on-light';
11
- readonly ON_PRIMARY: 'on-primary';
12
- readonly INFO: 'info';
13
- readonly CHAT: 'chat';
14
- readonly TRANSFER: 'transfer';
15
- readonly JOB: 'job';
2
+ readonly DEFAULT: "default";
3
+ readonly ACTIVE: "active";
4
+ readonly DISABLED: "disabled";
5
+ readonly PRIMARY: "primary";
6
+ readonly ERROR: "error";
7
+ readonly SUCCESS: "success";
8
+ readonly WARNING: "warning";
9
+ readonly ON_DARK: "on-dark";
10
+ readonly ON_LIGHT: "on-light";
11
+ readonly ON_PRIMARY: "on-primary";
12
+ readonly INFO: "info";
13
+ readonly CHAT: "chat";
14
+ readonly TRANSFER: "transfer";
15
+ readonly JOB: "job";
16
16
  };
17
17
  export type IconColor = (typeof IconColor)[keyof typeof IconColor];
@@ -1,6 +1,6 @@
1
1
  export declare const LoginOptions: {
2
- readonly LOCAL_PASSWORD_ONLY: 'local_password_only';
3
- readonly SSO_AND_LOCAL: 'sso_and_local';
4
- readonly SSO_ONLY: 'sso_only';
2
+ readonly LOCAL_PASSWORD_ONLY: "local_password_only";
3
+ readonly SSO_AND_LOCAL: "sso_and_local";
4
+ readonly SSO_ONLY: "sso_only";
5
5
  };
6
6
  export type LoginOptions = keyof typeof LoginOptions;
@@ -1,9 +1,9 @@
1
1
  export declare const MessageColor: {
2
- readonly SECONDARY: 'secondary';
3
- readonly SUCCESS: 'success';
4
- readonly ERROR: 'error';
5
- readonly WARN: 'warn';
6
- readonly INFO: 'info';
7
- readonly CONTRAST: 'contrast';
2
+ readonly SECONDARY: "secondary";
3
+ readonly SUCCESS: "success";
4
+ readonly ERROR: "error";
5
+ readonly WARN: "warn";
6
+ readonly INFO: "info";
7
+ readonly CONTRAST: "contrast";
8
8
  };
9
9
  export type MessageColor = keyof typeof MessageColor;
@@ -1,6 +1,6 @@
1
1
  export declare const MessageVariant: {
2
- readonly FILLED: 'filled';
3
- readonly OUTLINED: 'outlined';
4
- readonly SIMPLE: 'simple';
2
+ readonly FILLED: "filled";
3
+ readonly OUTLINED: "outlined";
4
+ readonly SIMPLE: "simple";
5
5
  };
6
6
  export type MessageVariant = keyof typeof MessageVariant;