voiptime-components 1.9.23 → 1.10.1
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/index.cjs.js +1 -1
- package/dist/index.d.ts +94 -0
- package/dist/index.es.js +3226 -2934
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { App } from 'vue';
|
|
|
2
2
|
import { Component } from 'vue';
|
|
3
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
4
4
|
import { ComponentProvideOptions } from 'vue';
|
|
5
|
+
import { ComputedRef } from 'vue';
|
|
5
6
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
6
7
|
import { DefineComponent } from 'vue';
|
|
7
8
|
import { GlobalComponents } from 'vue';
|
|
@@ -721,6 +722,8 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
721
722
|
};
|
|
722
723
|
};
|
|
723
724
|
|
|
725
|
+
declare type AnyObject = Record<string, any>;
|
|
726
|
+
|
|
724
727
|
export declare interface CollapseContext {
|
|
725
728
|
readonly activeNames: string[];
|
|
726
729
|
readonly accordion: boolean;
|
|
@@ -831,6 +834,27 @@ export declare interface DropdownProps {
|
|
|
831
834
|
|
|
832
835
|
export declare type DropdownTriggerType = 'click' | 'hover';
|
|
833
836
|
|
|
837
|
+
export declare const email: ValidatorFn;
|
|
838
|
+
|
|
839
|
+
export declare interface FieldValidation {
|
|
840
|
+
$model: any;
|
|
841
|
+
$dirty: boolean;
|
|
842
|
+
$touched: boolean;
|
|
843
|
+
$error: boolean;
|
|
844
|
+
$invalid: boolean;
|
|
845
|
+
$errors: Array<{
|
|
846
|
+
$message: string;
|
|
847
|
+
$validator: string;
|
|
848
|
+
$params?: any;
|
|
849
|
+
$pending?: boolean;
|
|
850
|
+
}>;
|
|
851
|
+
$pending: boolean;
|
|
852
|
+
$params?: Record<string, any>;
|
|
853
|
+
$touch(): void;
|
|
854
|
+
$reset(): void;
|
|
855
|
+
$validate(): Promise<boolean>;
|
|
856
|
+
}
|
|
857
|
+
|
|
834
858
|
export declare const FORMAT_TOKENS: Record<string, FormatToken>;
|
|
835
859
|
|
|
836
860
|
export declare const formatTime: (hour: number, minute: number, second?: number, format?: string, use12Hours?: boolean) => string;
|
|
@@ -877,8 +901,11 @@ declare const icons: {
|
|
|
877
901
|
readonly answerCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
878
902
|
readonly clientCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
879
903
|
readonly hangupCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
904
|
+
readonly inboundCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
880
905
|
readonly keyboardCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
881
906
|
readonly microphoneCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
907
|
+
readonly outboundCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
908
|
+
readonly ownCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
882
909
|
readonly phoneCancelRecall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
883
910
|
readonly phoneExecuteRecall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
884
911
|
readonly phoneHangup: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -962,14 +989,27 @@ export declare const isValidTimeString: (timeStr: string) => boolean;
|
|
|
962
989
|
|
|
963
990
|
export declare const loaderDirective: ObjectDirective;
|
|
964
991
|
|
|
992
|
+
export declare const maxLength: (max: number) => ValidatorFn;
|
|
993
|
+
|
|
965
994
|
export declare const messageManager: VMessageManager;
|
|
966
995
|
|
|
996
|
+
export declare const minLength: (min: number) => ValidatorFn;
|
|
997
|
+
|
|
998
|
+
export declare function mk<V extends ValidatorFn>(opts: {
|
|
999
|
+
name?: string;
|
|
1000
|
+
params?: Record<string, any>;
|
|
1001
|
+
message?: string | ((params?: any) => string);
|
|
1002
|
+
async?: boolean;
|
|
1003
|
+
}, validator: V): WrappedValidator;
|
|
1004
|
+
|
|
967
1005
|
export declare const modalManager: VModalManager;
|
|
968
1006
|
|
|
969
1007
|
export declare const MONTH_NAMES: string[];
|
|
970
1008
|
|
|
971
1009
|
export declare const MONTH_NAMES_SHORT: string[];
|
|
972
1010
|
|
|
1011
|
+
export declare const numeric: ValidatorFn;
|
|
1012
|
+
|
|
973
1013
|
export declare interface PaginationCalculations {
|
|
974
1014
|
/** Обчислює загальну кількість сторінок */
|
|
975
1015
|
getTotalPages(totalItems: number, pageSize: number): number;
|
|
@@ -1034,12 +1074,20 @@ declare interface Props {
|
|
|
1034
1074
|
color?: string;
|
|
1035
1075
|
}
|
|
1036
1076
|
|
|
1077
|
+
export declare const required: ValidatorFn;
|
|
1078
|
+
|
|
1037
1079
|
export declare interface ResizeState {
|
|
1038
1080
|
resizingCol: VTableColumnProps | null;
|
|
1039
1081
|
startX: number;
|
|
1040
1082
|
startWidth: number;
|
|
1041
1083
|
}
|
|
1042
1084
|
|
|
1085
|
+
export declare type RulesObject = {
|
|
1086
|
+
[key: string]: ValidatorFn[] | ValidatorFn | RulesObject | (() => ValidatorFn[] | RulesObject);
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
export declare const sameAs: (compare: () => any, msg?: string) => ValidatorFn;
|
|
1090
|
+
|
|
1043
1091
|
export declare interface SelectionChangeEventData {
|
|
1044
1092
|
selection: Record<string, any>[];
|
|
1045
1093
|
row?: Record<string, any>;
|
|
@@ -1089,10 +1137,41 @@ export declare const tooltipDirective: ObjectDirective;
|
|
|
1089
1137
|
|
|
1090
1138
|
export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
1091
1139
|
|
|
1140
|
+
export declare const uniqueAsync: (checkFn: (val: any) => Promise<boolean>, message?: string) => ValidatorFn;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Build validation tree recursively
|
|
1144
|
+
*/
|
|
1145
|
+
export declare function useValidate(rulesOrFactory: RulesObject | (() => RulesObject), state: AnyObject, globalOpts?: {
|
|
1146
|
+
silentErrors?: boolean;
|
|
1147
|
+
}): ValidationGroup;
|
|
1148
|
+
|
|
1092
1149
|
export declare const validateDateValue: (value: DatePickerValue | null | undefined, type: DatePickerType, required?: boolean) => DateValidationResult;
|
|
1093
1150
|
|
|
1094
1151
|
export declare const validateTimeValue: (value: TimePickerValue, type: TimePickerType, required?: boolean) => TimeValidationResult;
|
|
1095
1152
|
|
|
1153
|
+
export declare type ValidationGroup = {
|
|
1154
|
+
[key: string]: ValidationNode;
|
|
1155
|
+
} & {
|
|
1156
|
+
$validate(): Promise<boolean>;
|
|
1157
|
+
$touch(): void;
|
|
1158
|
+
$reset(): void;
|
|
1159
|
+
$anyDirty: ComputedRef<boolean>;
|
|
1160
|
+
$anyInvalid: ComputedRef<boolean>;
|
|
1161
|
+
$anyError: ComputedRef<boolean>;
|
|
1162
|
+
$pending: ComputedRef<boolean>;
|
|
1163
|
+
$silentErrors?: boolean;
|
|
1164
|
+
$externalResults?: Array<any>;
|
|
1165
|
+
$addExternalResults?(res: any): void;
|
|
1166
|
+
$clearExternalResults?(): void;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
export declare type ValidationNode = FieldValidation | ValidationGroup;
|
|
1170
|
+
|
|
1171
|
+
export declare type ValidatorFn = (value: any, vm?: any, sibling?: any) => ValidatorResult;
|
|
1172
|
+
|
|
1173
|
+
export declare type ValidatorResult = boolean | string | Promise<boolean | string>;
|
|
1174
|
+
|
|
1096
1175
|
export declare const VButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1097
1176
|
|
|
1098
1177
|
export declare interface VButtonEmits {
|
|
@@ -2021,6 +2100,21 @@ export declare const WEEKDAY_NAMES: string[];
|
|
|
2021
2100
|
|
|
2022
2101
|
export declare const WEEKDAY_NAMES_SHORT: string[];
|
|
2023
2102
|
|
|
2103
|
+
export declare function withAsync(validator: ValidatorFn): WrappedValidator;
|
|
2104
|
+
|
|
2105
|
+
export declare function withMessage(message: string | ((params?: any) => string), validator: ValidatorFn): WrappedValidator;
|
|
2106
|
+
|
|
2107
|
+
export declare function withName(name: string, validator: ValidatorFn): WrappedValidator;
|
|
2108
|
+
|
|
2109
|
+
export declare function withParams(params: Record<string, any>, validator: ValidatorFn): WrappedValidator;
|
|
2110
|
+
|
|
2111
|
+
export declare interface WrappedValidator extends ValidatorFn {
|
|
2112
|
+
$validatorName?: string;
|
|
2113
|
+
$params?: Record<string, any>;
|
|
2114
|
+
$message?: string | ((params?: any) => string);
|
|
2115
|
+
$async?: boolean;
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2024
2118
|
export { }
|
|
2025
2119
|
|
|
2026
2120
|
|