voiptime-components 1.7.11 → 1.8.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.d.ts CHANGED
@@ -179,12 +179,12 @@ declare const __VLS_component_6: DefineComponent<DropdownProps, {
179
179
  onCommand?: ((command: string | number) => any) | undefined;
180
180
  }>, {
181
181
  disabled: boolean;
182
- maxHeight: string | number;
183
182
  trigger: DropdownTriggerType;
184
183
  placement: DropdownPlacement;
185
184
  showTimeout: number;
186
185
  hideTimeout: number;
187
186
  hideOnClick: boolean;
187
+ maxHeight: string | number;
188
188
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
189
189
  dropdownRef: HTMLDivElement;
190
190
  triggerRef: HTMLDivElement;
@@ -223,7 +223,6 @@ declare const __VLS_component_8: DefineComponent<VtSelectProps, {
223
223
  disabled: boolean;
224
224
  loading: boolean;
225
225
  placeholder: string;
226
- maxHeight: number;
227
226
  trigger: string;
228
227
  placement: string;
229
228
  showTimeout: number;
@@ -236,6 +235,7 @@ declare const __VLS_component_8: DefineComponent<VtSelectProps, {
236
235
  filterable: boolean;
237
236
  noDataText: string;
238
237
  loadingText: string;
238
+ maxHeight: number;
239
239
  collapsedTags: boolean;
240
240
  filterPlaceholder: string;
241
241
  allowRemoteFilter: boolean;
@@ -605,20 +605,25 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
605
605
  };
606
606
  };
607
607
 
608
- declare interface DatePickerShortcut {
608
+ export declare interface DatePickerShortcut {
609
609
  text: string;
610
610
  value: () => DatePickerValue;
611
611
  }
612
612
 
613
- declare type DatePickerSize = 'small' | 'default' | 'large';
613
+ export declare type DatePickerSize = 'small' | 'default' | 'large';
614
+
615
+ export declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange';
614
616
 
615
- declare type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange';
617
+ export declare type DatePickerValue = DateValue | DateRangeValue | null | undefined;
616
618
 
617
- declare type DatePickerValue = DateValue | DateRangeValue | null | undefined;
619
+ export declare type DateRangeValue = [DateValue, DateValue];
618
620
 
619
- declare type DateRangeValue = [DateValue, DateValue];
621
+ export declare interface DateValidationResult {
622
+ isValid: boolean;
623
+ errors: string[];
624
+ }
620
625
 
621
- declare type DateValue = string | number | Date;
626
+ export declare type DateValue = string | number | Date;
622
627
 
623
628
  export declare const DEFAULT_COLUMN_CONFIG: {
624
629
  readonly sortable: true;
@@ -629,6 +634,15 @@ export declare const DEFAULT_COLUMN_CONFIG: {
629
634
  readonly pinnedRight: false;
630
635
  };
631
636
 
637
+ export declare const DEFAULT_FORMATS: Record<DatePickerType, string>;
638
+
639
+ export declare const DEFAULT_TIME_FORMATS: {
640
+ readonly '24h': "HH:mm:ss";
641
+ readonly '24h_no_seconds': "HH:mm";
642
+ readonly '12h': "hh:mm:ss A";
643
+ readonly '12h_no_seconds': "hh:mm A";
644
+ };
645
+
632
646
  export declare interface DropdownContext {
633
647
  handleCommand: (command: string | number) => void;
634
648
  hideOnClick: boolean;
@@ -675,6 +689,21 @@ export declare interface DropdownProps {
675
689
 
676
690
  export declare type DropdownTriggerType = 'click' | 'hover';
677
691
 
692
+ export declare const FORMAT_TOKENS: Record<string, FormatToken>;
693
+
694
+ export declare const formatTime: (hour: number, minute: number, second?: number, format?: string, use12Hours?: boolean) => string;
695
+
696
+ export declare interface FormatToken {
697
+ pattern: RegExp;
698
+ replacement: (date: Date) => string;
699
+ }
700
+
701
+ export declare const generateTimeOptions: (min?: number, max?: number, step?: number, disabled?: number[]) => Array<{
702
+ value: number;
703
+ label: string;
704
+ disabled: boolean;
705
+ }>;
706
+
678
707
  export declare type IconName = keyof typeof icons;
679
708
 
680
709
  declare const icons: {
@@ -706,6 +735,14 @@ declare const icons: {
706
735
  readonly arrowReload: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
707
736
  readonly arrowRight: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
708
737
  readonly arrowTop: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
738
+ readonly answerCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
739
+ readonly clientCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
740
+ readonly hangupCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
741
+ readonly keyboardCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
742
+ readonly microphoneCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
743
+ readonly scenarioCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
744
+ readonly transferCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
745
+ readonly volumeCall: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
709
746
  readonly emptyImg: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
710
747
  readonly fileDoc: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
711
748
  readonly fileSign: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
@@ -722,6 +759,7 @@ declare const icons: {
722
759
  readonly alertTriangle: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
723
760
  readonly calendar: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
724
761
  readonly checkCircle: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
762
+ readonly clock: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
725
763
  readonly eyeClosed: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
726
764
  readonly eyeOpened: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
727
765
  readonly search: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
@@ -734,8 +772,12 @@ declare const icons: {
734
772
  readonly emailOutgoing: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
735
773
  readonly emailQueue: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
736
774
  readonly emailSpam: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
775
+ readonly add: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
737
776
  readonly dsr: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
777
+ readonly hold: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
738
778
  readonly ivr: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
779
+ readonly minus: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
780
+ readonly plus: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
739
781
  readonly predictive: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
740
782
  readonly preview: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
741
783
  readonly progressive: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
@@ -754,8 +796,16 @@ declare const icons: {
754
796
 
755
797
  export declare const install: (app: App, options?: VUIPluginOptions) => void;
756
798
 
799
+ export declare const isValidDate: (value: any) => boolean;
800
+
801
+ export declare const isValidTimeString: (timeStr: string) => boolean;
802
+
757
803
  export declare const modalManager: VModalManager;
758
804
 
805
+ export declare const MONTH_NAMES: string[];
806
+
807
+ export declare const MONTH_NAMES_SHORT: string[];
808
+
759
809
  export declare interface PaginationCalculations {
760
810
  /** Обчислює загальну кількість сторінок */
761
811
  getTotalPages(totalItems: number, pageSize: number): number;
@@ -811,6 +861,8 @@ export declare interface PaginationState {
811
861
  toItem: number;
812
862
  }
813
863
 
864
+ export declare const parseTimeString: (timeStr: string) => TimeObject | null;
865
+
814
866
  declare interface Props {
815
867
  name: IconName;
816
868
  width?: string | number;
@@ -847,10 +899,36 @@ export declare interface SortState {
847
899
 
848
900
  export declare type StickyPosition = 'left' | 'right';
849
901
 
902
+ export declare interface TimeObject {
903
+ hour: number;
904
+ minute: number;
905
+ second: number;
906
+ period?: 'AM' | 'PM';
907
+ }
908
+
909
+ export declare type TimePickerSize = 'small' | 'default' | 'large';
910
+
911
+ export declare type TimePickerType = 'time' | 'timerange';
912
+
913
+ export declare type TimePickerValue = TimeValue | TimeRangeValue | null | undefined;
914
+
915
+ export declare type TimeRangeValue = [TimeValue, TimeValue];
916
+
917
+ export declare interface TimeValidationResult {
918
+ isValid: boolean;
919
+ errors: string[];
920
+ }
921
+
922
+ export declare type TimeValue = string | Date;
923
+
850
924
  export declare const tooltipDirective: ObjectDirective;
851
925
 
852
926
  export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
853
927
 
928
+ export declare const validateDateValue: (value: DatePickerValue | null | undefined, type: DatePickerType, required?: boolean) => DateValidationResult;
929
+
930
+ export declare const validateTimeValue: (value: TimePickerValue, type: TimePickerType, required?: boolean) => TimeValidationResult;
931
+
854
932
  export declare const VButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
855
933
 
856
934
  export declare interface VButtonEmits {
@@ -932,7 +1010,23 @@ export declare const VDatePicker: DefineComponent<VDatePickerProps, {}, {}, {},
932
1010
  dropdownRef: HTMLDivElement;
933
1011
  }, HTMLDivElement>;
934
1012
 
935
- declare interface VDatePickerProps {
1013
+ export declare interface VDatePickerEmits {
1014
+ (e: 'update:modelValue', value: DatePickerValue): void;
1015
+ (e: 'change', value: DatePickerValue): void;
1016
+ (e: 'blur', instance: any): void;
1017
+ (e: 'focus', instance: any): void;
1018
+ (e: 'calendar-change', value: [Date, Date | null]): void;
1019
+ (e: 'panel-change', value: Date, mode: string, view: string): void;
1020
+ }
1021
+
1022
+ export declare interface VDatePickerMethods {
1023
+ focus(): void;
1024
+ blur(): void;
1025
+ handleOpen(): void;
1026
+ handleClose(): void;
1027
+ }
1028
+
1029
+ export declare interface VDatePickerProps {
936
1030
  modelValue?: DatePickerValue;
937
1031
  type?: DatePickerType;
938
1032
  placeholder?: string;
@@ -1244,6 +1338,83 @@ export declare interface VTableStyleConfig {
1244
1338
  [key: string]: string;
1245
1339
  }
1246
1340
 
1341
+ export declare const VTimePicker: DefineComponent<VTimePickerProps, {
1342
+ focus: () => void;
1343
+ blur: () => void;
1344
+ open: () => void;
1345
+ close: () => void;
1346
+ validate: (value: TimePickerValue, required?: boolean) => TimeValidationResult;
1347
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1348
+ blur: (instance: any) => any;
1349
+ change: (value: TimePickerValue) => any;
1350
+ focus: (instance: any) => any;
1351
+ "update:modelValue": (value: TimePickerValue) => any;
1352
+ "open-change": (open: boolean) => any;
1353
+ }, string, PublicProps, Readonly<VTimePickerProps> & Readonly<{
1354
+ onBlur?: ((instance: any) => any) | undefined;
1355
+ onChange?: ((value: TimePickerValue) => any) | undefined;
1356
+ onFocus?: ((instance: any) => any) | undefined;
1357
+ "onUpdate:modelValue"?: ((value: TimePickerValue) => any) | undefined;
1358
+ "onOpen-change"?: ((open: boolean) => any) | undefined;
1359
+ }>, {
1360
+ type: TimePickerType;
1361
+ disabled: boolean;
1362
+ size: TimePickerSize;
1363
+ placeholder: string;
1364
+ clearable: boolean;
1365
+ startPlaceholder: string;
1366
+ endPlaceholder: string;
1367
+ rangeSeparator: string;
1368
+ format: string;
1369
+ hourStep: number;
1370
+ minuteStep: number;
1371
+ secondStep: number;
1372
+ showSeconds: boolean;
1373
+ use12Hours: boolean;
1374
+ hideDisabledOptions: boolean;
1375
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
1376
+ timePickerRef: HTMLDivElement;
1377
+ triggerRef: HTMLDivElement;
1378
+ dropdownRef: HTMLDivElement;
1379
+ }, HTMLDivElement>;
1380
+
1381
+ export declare interface VTimePickerEmits {
1382
+ (e: 'update:modelValue', value: TimePickerValue): void;
1383
+ (e: 'change', value: TimePickerValue): void;
1384
+ (e: 'blur', instance: any): void;
1385
+ (e: 'focus', instance: any): void;
1386
+ (e: 'open-change', open: boolean): void;
1387
+ }
1388
+
1389
+ export declare interface VTimePickerMethods {
1390
+ focus(): void;
1391
+ blur(): void;
1392
+ open(): void;
1393
+ close(): void;
1394
+ }
1395
+
1396
+ export declare interface VTimePickerProps {
1397
+ modelValue?: TimePickerValue;
1398
+ type?: TimePickerType;
1399
+ placeholder?: string;
1400
+ startPlaceholder?: string;
1401
+ endPlaceholder?: string;
1402
+ rangeSeparator?: string;
1403
+ format?: string;
1404
+ disabled?: boolean;
1405
+ clearable?: boolean;
1406
+ size?: TimePickerSize;
1407
+ hourStep?: number;
1408
+ minuteStep?: number;
1409
+ secondStep?: number;
1410
+ showSeconds?: boolean;
1411
+ use12Hours?: boolean;
1412
+ disabledHours?: () => number[];
1413
+ disabledMinutes?: (selectedHour: number) => number[];
1414
+ disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[];
1415
+ hideDisabledOptions?: boolean;
1416
+ }
1417
+
1247
1418
  export declare interface VtInputAutosizeConfig {
1248
1419
  minRows?: number;
1249
1420
  maxRows?: number;
@@ -1431,6 +1602,10 @@ export declare interface VUIPluginOptions {
1431
1602
  modal?: boolean;
1432
1603
  }
1433
1604
 
1605
+ export declare const WEEKDAY_NAMES: string[];
1606
+
1607
+ export declare const WEEKDAY_NAMES_SHORT: string[];
1608
+
1434
1609
  export { }
1435
1610
 
1436
1611