@webitel/ui-sdk 25.8.6 → 25.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui-sdk.js CHANGED
@@ -30081,7 +30081,9 @@ const W6 = {
30081
30081
  }), lH = ({ headers: e }) => {
30082
30082
  const { t: r } = Q2();
30083
30083
  return {
30084
- tableHeaders: re(() => e.filter((o) => o.show === void 0 || o.show).map((o) => !o.text && o.locale ? {
30084
+ tableHeaders: re(() => e.filter(
30085
+ (o) => o.show === void 0 || o.show
30086
+ ).map((o) => !o.text && o.locale ? {
30085
30087
  ...o,
30086
30088
  text: typeof o.locale == "string" ? r(o.locale) : r(...o.locale)
30087
30089
  } : o))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.8.6",
3
+ "version": "25.8.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "npm run docs:dev",
@@ -53,7 +53,7 @@
53
53
  "@vuelidate/validators": "^2.0.4",
54
54
  "@vuepic/vue-datepicker": "^4.5.1",
55
55
  "@vueuse/components": "^13.0.0",
56
- "@webitel/api-services": "^0.0.22",
56
+ "@webitel/api-services": "^0.0.24",
57
57
  "@webitel/styleguide": "^24.12.26",
58
58
  "autosize": "^6.0.1",
59
59
  "axios": "^1.8.3",
@@ -161,7 +161,7 @@
161
161
  },
162
162
  "./enums": {
163
163
  "types": "./types/enums/index.d.ts",
164
- "import": "./src/enums/index.js"
164
+ "import": "./src/enums/index.ts"
165
165
  },
166
166
  "./enums*": {
167
167
  "types": "./types/enums*",
@@ -211,6 +211,10 @@
211
211
  "types": "./types/locale*",
212
212
  "import": "./src/locale*"
213
213
  },
214
+ "./composables": {
215
+ "types": "./types/composables/index.d.ts",
216
+ "import": "./src/composables/index.ts"
217
+ },
214
218
  "./composables*": {
215
219
  "types": "./types/composables*",
216
220
  "import": "./src/composables*"
@@ -0,0 +1,10 @@
1
+ export * from './useAccessControl';
2
+ export * from './useCachedInterval/useCachedInterval';
3
+ export * from './useCachedItemInstanceName/useCachedItemInstanceName';
4
+ export * from './useCard/useCardComponent';
5
+ export * from './useCard/useCardTabs';
6
+ export * from './useClose/useClose';
7
+ export * from './useDestroyableSortable/useDestroyableSortable';
8
+ export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
9
+ export * from './useValidate/useValidate';
10
+ export * from './useWtTable/useWtTable';
@@ -0,0 +1 @@
1
+ export * from './v2/createUserAccessControl';
@@ -34,9 +34,7 @@ import updateObject from './updateObject.js';
34
34
 
35
35
  export {
36
36
  camelToKebab,
37
- // caseConverters.js
38
37
  camelToSnake,
39
- // compareSize.js
40
38
  compareSize,
41
39
  convertDuration,
42
40
  debounce,
@@ -0,0 +1,10 @@
1
+ export * from './useAccessControl';
2
+ export * from './useCachedInterval/useCachedInterval';
3
+ export * from './useCachedItemInstanceName/useCachedItemInstanceName';
4
+ export * from './useCard/useCardComponent';
5
+ export * from './useCard/useCardTabs';
6
+ export * from './useClose/useClose';
7
+ export * from './useDestroyableSortable/useDestroyableSortable';
8
+ export * from './useRepresentableAgentPauseCause/useRepresentableAgentPauseCause';
9
+ export * from './useValidate/useValidate';
10
+ export * from './useWtTable/useWtTable';
@@ -0,0 +1 @@
1
+ export * from './v2/createUserAccessControl';
@@ -1,24 +0,0 @@
1
- import { computed } from 'vue';
2
- import { useI18n } from 'vue-i18n';
3
- export const useWtTable = ({ headers }) => {
4
- const { t } = useI18n();
5
- const tableHeaders = computed(() => {
6
- return headers
7
- .filter((header) => header.show === undefined || header.show)
8
- .map((header) => {
9
- if (!header.text && header.locale) {
10
- return {
11
- ...header,
12
- text:
13
- typeof header.locale === 'string'
14
- ? t(header.locale)
15
- : t(...header.locale),
16
- };
17
- }
18
- return header;
19
- });
20
- });
21
- return {
22
- tableHeaders,
23
- };
24
- };
@@ -1,39 +0,0 @@
1
- import AbstractUserStatus from './AbstractUserStatus/AbstractUserStatus.enum.js';
2
- import AgentStatus from './AgentStatus/AgentStatus.enum.js';
3
- import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum.js';
4
- import { ButtonColor } from './ButtonColor/ButtonColor';
5
- import { ComponentSize } from './ComponentSize/ComponentSize';
6
- import { CrudAction } from './CrudAction/CrudAction';
7
- import IconAction from './IconAction/IconAction.enum.js';
8
- import QueueType from './QueueType/QueueType.enum.js';
9
- import { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
10
- import TypesExportedSettings from './TypesExportedSettings/TypesExportedSettings.enum.js';
11
- import { AdminSections } from './WebitelApplications/AdminSections';
12
- import { AuditorSections } from './WebitelApplications/AuditorSections';
13
- import { CrmSections } from './WebitelApplications/CrmSections';
14
- import { SupervisorSections } from './WebitelApplications/SupervisorSections';
15
- import WebitelApplications from './WebitelApplications/WebitelApplications.enum.js';
16
- import { WtApplication } from './WebitelApplications/WtApplication';
17
- import { WtObject } from './WtObject/WtObject';
18
- import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
19
-
20
- export {
21
- AbstractUserStatus,
22
- AdminSections,
23
- AgentStatus,
24
- AuditorSections,
25
- ButtonColor,
26
- ChatGatewayProvider,
27
- ComponentSize,
28
- CrmSections,
29
- CrudAction,
30
- IconAction,
31
- QueueType,
32
- RelativeDatetimeValue,
33
- SupervisorSections,
34
- TypesExportedSettings,
35
- WebitelApplications,
36
- WtApplication,
37
- WtObject,
38
- WtTypeExtensionFieldKind,
39
- };
@@ -1,57 +0,0 @@
1
- import { ComponentSize } from '../enums/ComponentSize/ComponentSize';
2
- const numerics = Object.values(ComponentSize).reduce((nums, size, index) => {
3
- return {
4
- ...nums,
5
- [size]: index,
6
- };
7
- }, {});
8
- /**
9
- * Compare two sizes, returning a number indicating the difference between them.
10
- *
11
- * @param s1
12
- * @param s2
13
- * @returns {number}
14
- *
15
- * @example
16
- * compareSize(ComponentSize.XS, ComponentSize.MD); // true
17
- * compareSize(ComponentSize.LG, ComponentSize.SM); // false
18
- */
19
- export const compareSize = (s1, s2) => {
20
- return numerics[s1] - numerics[s2];
21
- };
22
- /**
23
- * Check if s1 is smaller than s2
24
- * @param s1
25
- * @param s2
26
- * @returns {boolean}
27
- */
28
- export const smallerThen = (s1, s2) => {
29
- return compareSize(s1, s2) < 0;
30
- };
31
- /**
32
- * Check if s1 is smaller or equal to s2
33
- * @param s1
34
- * @param s2
35
- * @returns {boolean}
36
- */
37
- export const smallerOrEqual = (s1, s2) => {
38
- return compareSize(s1, s2) <= 0;
39
- };
40
- /**
41
- * Check if s1 is greater than s2
42
- * @param s1
43
- * @param s2
44
- * @returns {boolean}
45
- */
46
- export const greaterThen = (s1, s2) => {
47
- return compareSize(s1, s2) > 0;
48
- };
49
- /**
50
- * Check if s1 is greater or equal to s2
51
- * @param s1
52
- * @param s2
53
- * @returns {boolean}
54
- */
55
- export const greaterOrEqual = (s1, s2) => {
56
- return compareSize(s1, s2) >= 0;
57
- };