@webitel/ui-sdk 26.6.96 → 26.6.98
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/{components-Bim818Xf.js → components-CgRNe7Of.js} +4 -4
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +382 -382
- package/dist/{useValidation-lRiKF7xV.js → useValidation-DgSm80YX.js} +1 -1
- package/dist/{wt-chat-emoji-CX65m8Dd.js → wt-chat-emoji-CkQhDrp4.js} +1 -1
- package/dist/{wt-datepicker-BP9bBbGY.js → wt-datepicker-BMyxdXw4.js} +175 -92
- package/dist/{wt-display-chip-items-tL17x2-U.js → wt-display-chip-items-Cehd6VzJ.js} +1 -1
- package/dist/{wt-search-bar-D50lqCd8.js → wt-search-bar-DtJL-csc.js} +1 -1
- package/dist/{wt-send-message-popup-8TZWTO40.js → wt-send-message-popup-bkFSm2O6.js} +1 -1
- package/dist/{wt-timepicker-CYNrvbWf.js → wt-timepicker-CURP_N80.js} +1 -1
- package/dist/{wt-type-extension-value-input-D1wNUHkh.js → wt-type-extension-value-input-BN3bi6Vl.js} +1 -1
- package/dist/{wt-vidstack-player-Z3cdtFBu.js → wt-vidstack-player-Bk4LL-2K.js} +1 -1
- package/package.json +2 -2
- package/src/components/wt-datepicker/_internals/composables/useAutoSeparator.ts +96 -0
- package/src/components/wt-datepicker/_internals/composables/useDatepicker.ts +78 -0
- package/src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts +10 -24
- package/src/components/wt-datepicker/_internals/composables/useStrictInput.ts +61 -0
- package/src/components/wt-datepicker/wt-datepicker.vue +4 -8
- package/src/composables/useEventBus/useEventBus.d.ts +4 -4
- package/src/enums/BroadcastChannelName/BroadcastChannelName.d.ts +3 -2
- package/src/enums/BroadcastChannelName/UserSettingsBroadcastMessage.d.ts +7 -7
- package/src/enums/ButtonColor/ButtonColor.d.ts +8 -8
- package/src/enums/ButtonVariant/ButtonVariant.d.ts +3 -3
- package/src/enums/ChipColor/ChipColor.d.ts +8 -8
- package/src/enums/ComponentSize/ComponentSize.d.ts +14 -14
- package/src/enums/ConnectionQualityLevel/ConnectionQualityLevel.enum.d.ts +5 -4
- package/src/enums/CrudAction/CrudAction.d.ts +4 -4
- package/src/enums/DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings.d.ts +8 -7
- package/src/enums/EmptyCause/EmptyCause.d.ts +3 -3
- package/src/enums/FormatDateMode/FormatDateMode.d.ts +7 -6
- package/src/enums/IconColor/IconColor.d.ts +14 -14
- package/src/enums/LoginOptions/LoginOptions.d.ts +3 -3
- package/src/enums/MessageColor/MessageColor.d.ts +6 -6
- package/src/enums/MessageVariant/MessageVariant.d.ts +3 -3
- package/src/enums/MimeTypes/MimeTypes.enum.d.ts +14 -14
- package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +7 -6
- package/src/enums/QueueType/QueueType.enum.d.ts +22 -22
- package/src/enums/RelativeDatetimeValue/RelativeDatetimeValue.d.ts +6 -5
- package/src/enums/RingtoneType/RingtoneType.d.ts +3 -3
- package/src/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +6 -5
- package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +6 -2
- package/src/enums/WebitelApplications/AdminSections.d.ts +38 -38
- package/src/enums/WebitelApplications/AuditorSections.d.ts +3 -2
- package/src/enums/WebitelApplications/CrmSections.d.ts +13 -13
- package/src/enums/WebitelApplications/SupervisorSections.d.ts +5 -4
- package/src/enums/WebitelApplications/WfmSections.d.ts +3 -3
- package/src/enums/WebitelApplications/WtApplication.d.ts +9 -9
- package/src/enums/WtObject/WtObject.d.ts +57 -57
- package/src/enums/WtTypeExtensionFieldKind/WtTypeExtensionFieldKind.d.ts +8 -7
- package/src/enums/index.d.ts +54 -4
- package/src/locale/en/en.js +1 -0
- package/src/locale/es/es.js +2 -0
- package/src/locale/kz/kz.js +1 -0
- package/src/locale/pl/pl.js +1 -0
- package/src/locale/ro/ro.js +1 -0
- package/src/locale/ru/ru.js +1 -0
- package/src/locale/uk/uk.js +1 -0
- package/src/locale/uz/uz.js +1 -0
- package/src/locale/vi/vi.js +1 -0
- package/src/mixins/validationMixin/vuelidate/useVuelidateValidation.ts +2 -0
- package/src/modules/Userinfo/constants/UserSettingsConstants.d.ts +1 -1
- package/src/utils/displayText.d.ts +1 -1
- package/src/utils/formatDate.d.ts +9 -3
- package/types/components/wt-datepicker/_internals/composables/useAutoSeparator.d.ts +17 -0
- package/types/components/wt-datepicker/_internals/composables/useDatepicker.d.ts +19 -0
- package/types/components/wt-datepicker/_internals/composables/usePreventZeroPad.d.ts +9 -5
- package/types/components/wt-datepicker/_internals/composables/useStrictInput.d.ts +17 -0
- package/types/locale/en/en.d.ts +1 -0
- package/types/locale/es/es.d.ts +1 -0
- package/types/locale/i18n.d.ts +9 -0
- package/types/locale/index.d.ts +9 -0
- package/types/locale/kz/kz.d.ts +1 -0
- package/types/locale/pl/pl.d.ts +1 -0
- package/types/locale/ro/ro.d.ts +1 -0
- package/types/locale/ru/ru.d.ts +1 -0
- package/types/locale/uk/uk.d.ts +1 -0
- package/types/locale/uz/uz.d.ts +1 -0
- package/types/locale/vi/vi.d.ts +1 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare const SingleSignOnProvider: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
readonly Microsoft: 'microsoft';
|
|
3
|
+
readonly Google: 'google';
|
|
4
|
+
readonly Facebook: 'facebook';
|
|
5
|
+
readonly Custom: 'custom';
|
|
6
6
|
};
|
|
7
|
-
export type SingleSignOnProvider =
|
|
7
|
+
export type SingleSignOnProvider =
|
|
8
|
+
(typeof SingleSignOnProvider)[keyof typeof SingleSignOnProvider];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { SingleSignOnProvider } from '../SingleSignOnProvider/SingleSignOnProvider';
|
|
2
|
-
export declare const SingleSignOnProviderIconMappings: Record<
|
|
3
|
-
|
|
2
|
+
export declare const SingleSignOnProviderIconMappings: Record<
|
|
3
|
+
SingleSignOnProvider,
|
|
4
|
+
string
|
|
5
|
+
>;
|
|
6
|
+
export type SingleSignOnProviderIconMappings =
|
|
7
|
+
(typeof SingleSignOnProviderIconMappings)[keyof typeof SingleSignOnProviderIconMappings];
|
|
@@ -4,43 +4,43 @@
|
|
|
4
4
|
* without any relation to WtObjects (?)
|
|
5
5
|
*/
|
|
6
6
|
export declare const AdminSections: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
7
|
+
readonly Agents: 'agents';
|
|
8
|
+
readonly Blacklist: 'blacklist';
|
|
9
|
+
readonly Buckets: 'buckets';
|
|
10
|
+
readonly Calendars: 'calendars';
|
|
11
|
+
readonly Changelogs: 'changelogs';
|
|
12
|
+
readonly ChatGateways: 'chat-gateways';
|
|
13
|
+
readonly Chatplan: 'chatplan';
|
|
14
|
+
readonly CognitiveProfiles: 'cognitive-profiles';
|
|
15
|
+
readonly Communications: 'communications';
|
|
16
|
+
readonly Configuration: 'configuration';
|
|
17
|
+
readonly Dialplan: 'dialplan';
|
|
18
|
+
readonly Devices: 'devices';
|
|
19
|
+
readonly EmailProfiles: 'email-profiles';
|
|
20
|
+
readonly Flow: 'flow';
|
|
21
|
+
readonly Gateways: 'gateways';
|
|
22
|
+
readonly GlobalVariables: 'global-variables';
|
|
23
|
+
readonly ImportCsv: 'import-csv';
|
|
24
|
+
readonly License: 'license';
|
|
25
|
+
readonly Media: 'media';
|
|
26
|
+
readonly Members: 'members';
|
|
27
|
+
readonly Objects: 'objects';
|
|
28
|
+
readonly PauseCause: 'pause-cause';
|
|
29
|
+
readonly PauseTemplates: 'pause-templates';
|
|
30
|
+
readonly Queues: 'queues';
|
|
31
|
+
readonly Regions: 'regions';
|
|
32
|
+
readonly ResourceGroups: 'resource-groups';
|
|
33
|
+
readonly Resources: 'resources';
|
|
34
|
+
readonly Roles: 'roles';
|
|
35
|
+
readonly ShiftTemplates: 'shift-templates';
|
|
36
|
+
readonly SingleSignOn: 'single-sign-on';
|
|
37
|
+
readonly Skills: 'skills';
|
|
38
|
+
readonly Storage: 'storage';
|
|
39
|
+
readonly StoragePolicies: 'storage-policies';
|
|
40
|
+
readonly Teams: 'teams';
|
|
41
|
+
readonly Triggers: 'triggers';
|
|
42
|
+
readonly Users: 'users';
|
|
43
|
+
readonly WorkingConditions: 'working-conditions';
|
|
44
|
+
readonly QuickReplies: 'quick-replies';
|
|
45
45
|
};
|
|
46
46
|
export type AdminSections = (typeof AdminSections)[keyof typeof AdminSections];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const AuditorSections: {
|
|
2
|
-
|
|
2
|
+
readonly Scorecards: 'scorecards';
|
|
3
3
|
};
|
|
4
|
-
export type AuditorSections =
|
|
4
|
+
export type AuditorSections =
|
|
5
|
+
(typeof AuditorSections)[keyof typeof AuditorSections];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const CrmSections: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
readonly Contacts: 'contacts';
|
|
3
|
+
readonly Cases: 'cases';
|
|
4
|
+
readonly Slas: 'slas';
|
|
5
|
+
readonly ServiceCatalogs: 'service-catalogs';
|
|
6
|
+
readonly Priorities: 'priorities';
|
|
7
|
+
readonly Statuses: 'statuses';
|
|
8
|
+
readonly Sources: 'sources';
|
|
9
|
+
readonly CloseReasonGroups: 'close-reason-groups';
|
|
10
|
+
readonly ContactGroups: 'contact-groups';
|
|
11
|
+
readonly CaseSources: 'case-sources';
|
|
12
|
+
readonly CasesExtensions: 'ext-cases';
|
|
13
|
+
readonly ContactsExtensions: 'ext-contacts';
|
|
14
|
+
readonly CustomLookups: 'custom-lookups';
|
|
15
15
|
};
|
|
16
16
|
export type CrmSections = (typeof CrmSections)[keyof typeof CrmSections];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const SupervisorSections: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
readonly Queues: 'queues';
|
|
3
|
+
readonly Agents: 'agents';
|
|
4
|
+
readonly ActiveCalls: 'active-calls';
|
|
5
5
|
};
|
|
6
|
-
export type SupervisorSections =
|
|
6
|
+
export type SupervisorSections =
|
|
7
|
+
(typeof SupervisorSections)[keyof typeof SupervisorSections];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WfmSections: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
readonly MySchedules: 'my-schedules';
|
|
3
|
+
readonly Agents: 'agents';
|
|
4
|
+
readonly Schedules: 'schedules';
|
|
5
5
|
};
|
|
6
6
|
export type WfmSections = (typeof WfmSections)[keyof typeof WfmSections];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const WtApplication: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
readonly Admin: 'admin';
|
|
3
|
+
readonly Agent: 'agent';
|
|
4
|
+
readonly Supervisor: 'supervisor';
|
|
5
|
+
readonly History: 'history';
|
|
6
|
+
readonly Audit: 'audit';
|
|
7
|
+
readonly Analytics: 'grafana';
|
|
8
|
+
readonly Crm: 'crm';
|
|
9
|
+
readonly Wfm: 'wfm';
|
|
10
|
+
readonly Meet: 'meet';
|
|
11
11
|
};
|
|
12
12
|
export type WtApplication = (typeof WtApplication)[keyof typeof WtApplication];
|
|
@@ -2,62 +2,62 @@
|
|
|
2
2
|
* Represents existing Webitel entities
|
|
3
3
|
*/
|
|
4
4
|
export declare const WtObject: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
5
|
+
readonly Agent: 'agent';
|
|
6
|
+
readonly Queue: 'queue';
|
|
7
|
+
readonly Contact: 'contact';
|
|
8
|
+
readonly Region: 'region';
|
|
9
|
+
readonly User: 'user';
|
|
10
|
+
readonly Resource: 'resource';
|
|
11
|
+
readonly Device: 'device';
|
|
12
|
+
readonly License: 'license';
|
|
13
|
+
readonly Flow: 'flow';
|
|
14
|
+
readonly Dialplan: 'dialplan';
|
|
15
|
+
readonly Gateway: 'gateway';
|
|
16
|
+
readonly Chatplan: 'chatplan';
|
|
17
|
+
readonly ChatGateway: 'chatGateway';
|
|
18
|
+
readonly Blacklist: 'blacklist';
|
|
19
|
+
readonly Calendar: 'calendar';
|
|
20
|
+
readonly Communication: 'communication';
|
|
21
|
+
readonly PauseCause: 'pauseCause';
|
|
22
|
+
readonly Media: 'media';
|
|
23
|
+
readonly ShiftTemplate: 'shiftTemplate';
|
|
24
|
+
readonly PauseTemplate: 'pauseTemplate';
|
|
25
|
+
readonly WorkingCondition: 'workingCondition';
|
|
26
|
+
readonly Skill: 'skill';
|
|
27
|
+
readonly Bucket: 'bucket';
|
|
28
|
+
readonly Member: 'member';
|
|
29
|
+
readonly ResourceGroup: 'resourceGroup';
|
|
30
|
+
readonly Team: 'team';
|
|
31
|
+
readonly Storage: 'storage';
|
|
32
|
+
readonly CognitiveProfile: 'cognitiveProfile';
|
|
33
|
+
readonly EmailProfile: 'emailProfile';
|
|
34
|
+
readonly SingleSignOn: 'singleSignOn';
|
|
35
|
+
readonly ImportCsv: 'importCsv';
|
|
36
|
+
readonly Trigger: 'trigger';
|
|
37
|
+
readonly Role: 'role';
|
|
38
|
+
readonly Object: 'object';
|
|
39
|
+
readonly ChangeLog: 'changelog';
|
|
40
|
+
readonly Configuration: 'configuration';
|
|
41
|
+
readonly GlobalVariable: 'globalVariable';
|
|
42
|
+
readonly Call: 'call';
|
|
43
|
+
readonly RecordFile: 'recordFile';
|
|
44
|
+
readonly ContactGroup: 'contactGroup';
|
|
45
|
+
readonly Case: 'case';
|
|
46
|
+
readonly CaseComment: 'caseComment';
|
|
47
|
+
readonly Slas: 'slas';
|
|
48
|
+
readonly ServiceCatalog: 'serviceCatalog';
|
|
49
|
+
readonly CaseSource: 'caseSource';
|
|
50
|
+
readonly CloseReasonGroup: 'closeReasonGroup';
|
|
51
|
+
readonly Priorities: 'priorities';
|
|
52
|
+
readonly Status: 'status';
|
|
53
|
+
readonly Source: 'source';
|
|
54
|
+
readonly CustomLookup: 'customLookup';
|
|
55
|
+
readonly AuditForm: 'auditForm';
|
|
56
|
+
readonly AuditRating: 'auditRating';
|
|
57
|
+
readonly QuickReply: 'quickReply';
|
|
58
|
+
readonly ListNumber: 'listNumber';
|
|
59
|
+
readonly AgentWorkingCondition: 'agentWorkingCondition';
|
|
60
|
+
readonly FilePolicy: 'filePolicy';
|
|
61
|
+
readonly PortalUser: 'portalUser';
|
|
62
62
|
};
|
|
63
63
|
export type WtObject = (typeof WtObject)[keyof typeof WtObject];
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* @description Enumerates (ONLY!) the types of field type.
|
|
4
4
|
*/
|
|
5
5
|
export declare const WtTypeExtensionFieldKind: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
readonly Text: 'string';
|
|
7
|
+
readonly Number: 'int32';
|
|
8
|
+
readonly Select: 'lookup';
|
|
9
|
+
readonly Multiselect: 'list';
|
|
10
|
+
readonly Calendar: 'datetime';
|
|
11
|
+
readonly Boolean: 'bool';
|
|
12
12
|
};
|
|
13
|
-
export type ExtensionFieldType =
|
|
13
|
+
export type ExtensionFieldType =
|
|
14
|
+
(typeof WtTypeExtensionFieldKind)[keyof typeof WtTypeExtensionFieldKind];
|
package/src/enums/index.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import AbstractUserStatus from './AbstractUserStatus/AbstractUserStatus.enum.js';
|
|
2
2
|
import AgentStatus from './AgentStatus/AgentStatus.enum.js';
|
|
3
3
|
import { BroadcastChannelName } from './BroadcastChannelName/BroadcastChannelName';
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
UserSettingsBroadcastMessage,
|
|
6
|
+
WebphoneBroadcastMessage,
|
|
7
|
+
WebphoneBroadcastPayload,
|
|
8
|
+
} from './BroadcastChannelName/UserSettingsBroadcastMessage';
|
|
5
9
|
import { ButtonColor } from './ButtonColor/ButtonColor';
|
|
6
10
|
import { ButtonVariant } from './ButtonVariant/ButtonVariant';
|
|
7
11
|
import ChatGatewayProvider from './ChatGatewayProvider/ChatGatewayProvider.enum.js';
|
|
8
12
|
import ProviderIconType from './ChatGatewayProvider/ProviderIconType.enum';
|
|
9
13
|
import { ChipColor } from './ChipColor/ChipColor';
|
|
10
14
|
import { ComponentSize } from './ComponentSize/ComponentSize';
|
|
11
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
ConnectionQualityLevels,
|
|
17
|
+
type ConnectionQualityLevelsType,
|
|
18
|
+
} from './ConnectionQualityLevel/ConnectionQualityLevel.enum';
|
|
12
19
|
import { CrudAction } from './CrudAction/CrudAction';
|
|
13
20
|
import { DefaultWorkspaceTabSettings } from './DefaultWorkspaceTabSettings/DefaultWorkspaceTabSettings';
|
|
14
21
|
import { EmptyCause } from './EmptyCause/EmptyCause';
|
|
@@ -34,5 +41,48 @@ import { WfmSections } from './WebitelApplications/WfmSections';
|
|
|
34
41
|
import { WtApplication } from './WebitelApplications/WtApplication';
|
|
35
42
|
import { WtObject } from './WtObject/WtObject';
|
|
36
43
|
import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
|
|
37
|
-
|
|
38
|
-
export {
|
|
44
|
+
|
|
45
|
+
export type {
|
|
46
|
+
ConnectionQualityLevelsType,
|
|
47
|
+
UserSettingsBroadcastMessage,
|
|
48
|
+
WebphoneBroadcastMessage,
|
|
49
|
+
WebphoneBroadcastPayload,
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
AbstractUserStatus,
|
|
53
|
+
AdminSections,
|
|
54
|
+
AgentStatus,
|
|
55
|
+
AuditorSections,
|
|
56
|
+
BroadcastChannelName,
|
|
57
|
+
ButtonColor,
|
|
58
|
+
ButtonVariant,
|
|
59
|
+
ChatGatewayProvider,
|
|
60
|
+
ChipColor,
|
|
61
|
+
ComponentSize,
|
|
62
|
+
ConnectionQualityLevels,
|
|
63
|
+
CrmSections,
|
|
64
|
+
CrudAction,
|
|
65
|
+
DefaultWorkspaceTabSettings,
|
|
66
|
+
EmptyCause,
|
|
67
|
+
FormatDateMode,
|
|
68
|
+
IconAction,
|
|
69
|
+
IconColor,
|
|
70
|
+
LoginOptions,
|
|
71
|
+
MessageColor,
|
|
72
|
+
MessageVariant,
|
|
73
|
+
MimeTypes,
|
|
74
|
+
ProcessingTableColumnType,
|
|
75
|
+
ProviderIconType,
|
|
76
|
+
QueueType,
|
|
77
|
+
QueueTypeName,
|
|
78
|
+
RelativeDatetimeValue,
|
|
79
|
+
RingtoneType,
|
|
80
|
+
SingleSignOnProvider,
|
|
81
|
+
SingleSignOnProviderIconMappings,
|
|
82
|
+
SupervisorSections,
|
|
83
|
+
TypesExportedSettings,
|
|
84
|
+
WfmSections,
|
|
85
|
+
WtApplication,
|
|
86
|
+
WtObject,
|
|
87
|
+
WtTypeExtensionFieldKind,
|
|
88
|
+
};
|
package/src/locale/en/en.js
CHANGED
|
@@ -486,6 +486,7 @@ export default deepmerge(
|
|
|
486
486
|
nameAlreadyInUse: 'This name is already in use',
|
|
487
487
|
phoneNumberSymbolsValidator:
|
|
488
488
|
"Number must contain letters (a-z, A-Z), numbers (0-9), and special characters: +, -, _, ., !, ~, *, ', (,)",
|
|
489
|
+
loginValidator: 'Enter login in the format name@domain',
|
|
489
490
|
},
|
|
490
491
|
webitelUI: {
|
|
491
492
|
searchBar: {
|
package/src/locale/es/es.js
CHANGED
|
@@ -472,6 +472,8 @@ export default {
|
|
|
472
472
|
nameAlreadyInUse: 'Este nombre ya está en uso',
|
|
473
473
|
phoneNumberSymbolsValidator:
|
|
474
474
|
"El número solo puede contener letras (a-z, A-Z), números (0-9) y los símbolos: +, -, _, ., !, ~, *, ', (, )",
|
|
475
|
+
loginValidator:
|
|
476
|
+
'Introduzca el inicio de sesión en el formato nombre@dominio',
|
|
475
477
|
},
|
|
476
478
|
webitelUI: {
|
|
477
479
|
searchBar: {
|
package/src/locale/kz/kz.js
CHANGED
|
@@ -474,6 +474,7 @@ export default {
|
|
|
474
474
|
nameAlreadyInUse: 'Бұл атау қолданыста',
|
|
475
475
|
phoneNumberSymbolsValidator:
|
|
476
476
|
"Нөмірде тек әріптер (a-z, A-Z), сандар (0-9) және мына таңбалар болуы мүмкін: +, -, _, ., !, ~, *, ', (, )",
|
|
477
|
+
loginValidator: 'Логинді есім@домен форматында енгізіңіз',
|
|
477
478
|
},
|
|
478
479
|
webitelUI: {
|
|
479
480
|
searchBar: {
|
package/src/locale/pl/pl.js
CHANGED
|
@@ -475,6 +475,7 @@ export default {
|
|
|
475
475
|
nameAlreadyInUse: 'Ta nazwa jest już używana',
|
|
476
476
|
phoneNumberSymbolsValidator:
|
|
477
477
|
"Numer może zawierać wyłącznie litery (a-z, A-Z), cyfry (0-9) oraz symbole: +, -, _, ., !, ~, *, ', (, )",
|
|
478
|
+
loginValidator: 'Wprowadź login w formacie nazwa@domena',
|
|
478
479
|
},
|
|
479
480
|
webitelUI: {
|
|
480
481
|
searchBar: {
|
package/src/locale/ro/ro.js
CHANGED
|
@@ -479,6 +479,7 @@ export default {
|
|
|
479
479
|
nameAlreadyInUse: 'Acest nume este deja folosit',
|
|
480
480
|
phoneNumberSymbolsValidator:
|
|
481
481
|
"Numărul poate conține doar litere (a-z, A-Z), cifre (0-9) și simbolurile: +, -, _, ., !, ~, *, ', (, )",
|
|
482
|
+
loginValidator: 'Introduceți login-ul în formatul nume@domeniu',
|
|
482
483
|
},
|
|
483
484
|
webitelUI: {
|
|
484
485
|
searchBar: {
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -474,6 +474,7 @@ export default {
|
|
|
474
474
|
nameAlreadyInUse: 'Это название уже используется',
|
|
475
475
|
phoneNumberSymbolsValidator:
|
|
476
476
|
"Номер может содержать только буквы (a-z, A-Z), цифры (0-9) и символы: +, -, _, ., !, ~, *, ', (, )",
|
|
477
|
+
loginValidator: 'Введите логин в формате имя@домен',
|
|
477
478
|
},
|
|
478
479
|
webitelUI: {
|
|
479
480
|
searchBar: {
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -473,6 +473,7 @@ export default {
|
|
|
473
473
|
nameAlreadyInUse: 'Така назва вже використовується',
|
|
474
474
|
phoneNumberSymbolsValidator:
|
|
475
475
|
"Номер може містити лише літери (a-z, A-Z), цифри (0-9) та символи: +, -, _, ., !, ~, *, ', (, )",
|
|
476
|
+
loginValidator: 'Введіть логін у форматі імʼя@домен',
|
|
476
477
|
},
|
|
477
478
|
webitelUI: {
|
|
478
479
|
searchBar: {
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -479,6 +479,7 @@ export default {
|
|
|
479
479
|
nameAlreadyInUse: 'Ushbu nom allaqachon mavjud',
|
|
480
480
|
phoneNumberSymbolsValidator:
|
|
481
481
|
"Raqamda faqat harflar (a-z, A-Z), raqamlar (0-9) va quyidagi belgilar bo'lishi mumkin: +, -, _, ., !, ~, *, ', (, )",
|
|
482
|
+
loginValidator: 'Loginni ism@domen formatida kiriting',
|
|
482
483
|
},
|
|
483
484
|
webitelUI: {
|
|
484
485
|
searchBar: {
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -478,6 +478,7 @@ export default {
|
|
|
478
478
|
nameAlreadyInUse: 'Tên này đã được sử dụng',
|
|
479
479
|
phoneNumberSymbolsValidator:
|
|
480
480
|
"Số chỉ được chứa chữ cái (a-z, A-Z), chữ số (0-9) và các ký tự: +, -, _, ., !, ~, *, ', (, )",
|
|
481
|
+
loginValidator: 'Nhập tên đăng nhập theo định dạng tên@miền',
|
|
481
482
|
},
|
|
482
483
|
webitelUI: {
|
|
483
484
|
searchBar: {
|
|
@@ -100,6 +100,8 @@ export const useFieldValidation = ({
|
|
|
100
100
|
validationText = t('validation.nameAlreadyInUse');
|
|
101
101
|
} else if (validation.phoneNumberSymbolsValidator?.$invalid) {
|
|
102
102
|
validationText = t('validation.phoneNumberSymbolsValidator');
|
|
103
|
+
} else if (validation.loginValidator?.$invalid) {
|
|
104
|
+
validationText = t('validation.loginValidator');
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TIMEZONE_STORAGE_KEY =
|
|
1
|
+
export declare const TIMEZONE_STORAGE_KEY = 'user-timezone-setting';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const EMPTY_SYMBOL =
|
|
1
|
+
export declare const EMPTY_SYMBOL = '-';
|
|
2
2
|
export declare const displayText: (text: string) => string;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { FormatDateMode } from '../enums';
|
|
2
|
-
export declare function formatDate(
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare function formatDate(
|
|
3
|
+
date: string | number | Date,
|
|
4
|
+
to: (typeof FormatDateMode)[keyof typeof FormatDateMode],
|
|
5
|
+
{
|
|
6
|
+
timezone,
|
|
7
|
+
}?: {
|
|
8
|
+
timezone?: string;
|
|
9
|
+
},
|
|
10
|
+
): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @HlukhovYe
|
|
3
|
+
*
|
|
4
|
+
* Automatically inserts date/time separators while the user types into the
|
|
5
|
+
* PrimeVue DatePicker input so they don't have to type '/' or ':' manually.
|
|
6
|
+
*
|
|
7
|
+
* Format without time: dd/mm/yyyy → inserts '/' after positions 2 and 5
|
|
8
|
+
* Format with time: dd/mm/yyyy hh:mm → also inserts ' ' after position 10
|
|
9
|
+
* and ':' after position 13
|
|
10
|
+
*
|
|
11
|
+
* The handler runs in the bubble phase (after PrimeVue's own input handler).
|
|
12
|
+
* Listener registration is handled by useDatepicker.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createAutoSeparatorHandler(showTime: () => boolean): {
|
|
15
|
+
onInputBubble: (event: Event) => void;
|
|
16
|
+
resetLength: (input: HTMLInputElement) => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @HlukhovYe
|
|
3
|
+
*
|
|
4
|
+
* Single composable entry point for wt-datepicker. Composes all input-handling
|
|
5
|
+
* and overlay logic into a minimal set of DOM listeners — one capture input,
|
|
6
|
+
* one bubble input, one keydown — so the browser dispatches each event once.
|
|
7
|
+
*
|
|
8
|
+
* Returns:
|
|
9
|
+
* onBlur — forward to p-datepicker's @blur
|
|
10
|
+
* lockOverlay / unlockOverlay — forward to onPanelShow / onPanelHide
|
|
11
|
+
*/
|
|
12
|
+
export declare function useDatepicker(getInput: () => HTMLInputElement | null, getDatepicker: () => {
|
|
13
|
+
rawValue: Date | null;
|
|
14
|
+
updateModel: (v: Date) => void;
|
|
15
|
+
} | null, showTime: () => boolean, isClearable: () => boolean): {
|
|
16
|
+
onBlur: () => void;
|
|
17
|
+
lockOverlay: (panel: HTMLElement) => void;
|
|
18
|
+
unlockOverlay: () => void;
|
|
19
|
+
};
|
|
@@ -7,9 +7,13 @@
|
|
|
7
7
|
* is mid-typing. Without this, typing "2" into a cleared two-digit slot immediately
|
|
8
8
|
* reformats to "02", forcing the user to delete the leading zero before the second digit.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* Capture handler (before PrimeVue): snapshots the partial single-digit value.
|
|
11
|
+
* Bubble handler (after PrimeVue): if PrimeVue zero-padded the value, restores the
|
|
12
|
+
* snapshot and cancels further propagation so the model is not updated yet.
|
|
13
|
+
*
|
|
14
|
+
* Listener registration is handled by useDatepicker.
|
|
14
15
|
*/
|
|
15
|
-
export declare function
|
|
16
|
+
export declare function createPreventZeroPadHandlers(): {
|
|
17
|
+
onInputCapture: (event: Event) => void;
|
|
18
|
+
onInputBubble: (event: Event) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author @HlukhovYe
|
|
3
|
+
*
|
|
4
|
+
* Enforces strict keyboard input on the PrimeVue DatePicker text field:
|
|
5
|
+
*
|
|
6
|
+
* - Only digits, '/', ':', and ' ' are allowed through.
|
|
7
|
+
* - Input is capped at the maximum length for the active format:
|
|
8
|
+
* dd/mm/yyyy → 10 characters
|
|
9
|
+
* dd/mm/yyyy hh:mm → 16 characters
|
|
10
|
+
*
|
|
11
|
+
* Works via a `keydown` handler so the character is blocked before the browser
|
|
12
|
+
* writes it to the input. Control keys and modifier combos always pass through.
|
|
13
|
+
* Listener registration is handled by useDatepicker.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createStrictInputHandler(showTime: () => boolean): {
|
|
16
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
17
|
+
};
|