voiptime-components 1.7.11 → 1.8.0
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.css +1 -1
- package/dist/index.d.ts +172 -9
- package/dist/index.es.js +4113 -3323
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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
|
|
617
|
+
export declare type DatePickerValue = DateValue | DateRangeValue | null | undefined;
|
|
616
618
|
|
|
617
|
-
declare type
|
|
619
|
+
export declare type DateRangeValue = [DateValue, DateValue];
|
|
618
620
|
|
|
619
|
-
declare
|
|
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: {
|
|
@@ -722,6 +751,7 @@ declare const icons: {
|
|
|
722
751
|
readonly alertTriangle: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
723
752
|
readonly calendar: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
724
753
|
readonly checkCircle: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
754
|
+
readonly clock: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
725
755
|
readonly eyeClosed: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
726
756
|
readonly eyeOpened: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
727
757
|
readonly search: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -754,8 +784,16 @@ declare const icons: {
|
|
|
754
784
|
|
|
755
785
|
export declare const install: (app: App, options?: VUIPluginOptions) => void;
|
|
756
786
|
|
|
787
|
+
export declare const isValidDate: (value: any) => boolean;
|
|
788
|
+
|
|
789
|
+
export declare const isValidTimeString: (timeStr: string) => boolean;
|
|
790
|
+
|
|
757
791
|
export declare const modalManager: VModalManager;
|
|
758
792
|
|
|
793
|
+
export declare const MONTH_NAMES: string[];
|
|
794
|
+
|
|
795
|
+
export declare const MONTH_NAMES_SHORT: string[];
|
|
796
|
+
|
|
759
797
|
export declare interface PaginationCalculations {
|
|
760
798
|
/** Обчислює загальну кількість сторінок */
|
|
761
799
|
getTotalPages(totalItems: number, pageSize: number): number;
|
|
@@ -811,6 +849,8 @@ export declare interface PaginationState {
|
|
|
811
849
|
toItem: number;
|
|
812
850
|
}
|
|
813
851
|
|
|
852
|
+
export declare const parseTimeString: (timeStr: string) => TimeObject | null;
|
|
853
|
+
|
|
814
854
|
declare interface Props {
|
|
815
855
|
name: IconName;
|
|
816
856
|
width?: string | number;
|
|
@@ -847,10 +887,36 @@ export declare interface SortState {
|
|
|
847
887
|
|
|
848
888
|
export declare type StickyPosition = 'left' | 'right';
|
|
849
889
|
|
|
890
|
+
export declare interface TimeObject {
|
|
891
|
+
hour: number;
|
|
892
|
+
minute: number;
|
|
893
|
+
second: number;
|
|
894
|
+
period?: 'AM' | 'PM';
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
export declare type TimePickerSize = 'small' | 'default' | 'large';
|
|
898
|
+
|
|
899
|
+
export declare type TimePickerType = 'time' | 'timerange';
|
|
900
|
+
|
|
901
|
+
export declare type TimePickerValue = TimeValue | TimeRangeValue | null | undefined;
|
|
902
|
+
|
|
903
|
+
export declare type TimeRangeValue = [TimeValue, TimeValue];
|
|
904
|
+
|
|
905
|
+
export declare interface TimeValidationResult {
|
|
906
|
+
isValid: boolean;
|
|
907
|
+
errors: string[];
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export declare type TimeValue = string | Date;
|
|
911
|
+
|
|
850
912
|
export declare const tooltipDirective: ObjectDirective;
|
|
851
913
|
|
|
852
914
|
export declare type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
853
915
|
|
|
916
|
+
export declare const validateDateValue: (value: DatePickerValue | null | undefined, type: DatePickerType, required?: boolean) => DateValidationResult;
|
|
917
|
+
|
|
918
|
+
export declare const validateTimeValue: (value: TimePickerValue, type: TimePickerType, required?: boolean) => TimeValidationResult;
|
|
919
|
+
|
|
854
920
|
export declare const VButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
855
921
|
|
|
856
922
|
export declare interface VButtonEmits {
|
|
@@ -932,7 +998,23 @@ export declare const VDatePicker: DefineComponent<VDatePickerProps, {}, {}, {},
|
|
|
932
998
|
dropdownRef: HTMLDivElement;
|
|
933
999
|
}, HTMLDivElement>;
|
|
934
1000
|
|
|
935
|
-
declare interface
|
|
1001
|
+
export declare interface VDatePickerEmits {
|
|
1002
|
+
(e: 'update:modelValue', value: DatePickerValue): void;
|
|
1003
|
+
(e: 'change', value: DatePickerValue): void;
|
|
1004
|
+
(e: 'blur', instance: any): void;
|
|
1005
|
+
(e: 'focus', instance: any): void;
|
|
1006
|
+
(e: 'calendar-change', value: [Date, Date | null]): void;
|
|
1007
|
+
(e: 'panel-change', value: Date, mode: string, view: string): void;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export declare interface VDatePickerMethods {
|
|
1011
|
+
focus(): void;
|
|
1012
|
+
blur(): void;
|
|
1013
|
+
handleOpen(): void;
|
|
1014
|
+
handleClose(): void;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export declare interface VDatePickerProps {
|
|
936
1018
|
modelValue?: DatePickerValue;
|
|
937
1019
|
type?: DatePickerType;
|
|
938
1020
|
placeholder?: string;
|
|
@@ -1244,6 +1326,83 @@ export declare interface VTableStyleConfig {
|
|
|
1244
1326
|
[key: string]: string;
|
|
1245
1327
|
}
|
|
1246
1328
|
|
|
1329
|
+
export declare const VTimePicker: DefineComponent<VTimePickerProps, {
|
|
1330
|
+
focus: () => void;
|
|
1331
|
+
blur: () => void;
|
|
1332
|
+
open: () => void;
|
|
1333
|
+
close: () => void;
|
|
1334
|
+
validate: (value: TimePickerValue, required?: boolean) => TimeValidationResult;
|
|
1335
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1336
|
+
blur: (instance: any) => any;
|
|
1337
|
+
change: (value: TimePickerValue) => any;
|
|
1338
|
+
focus: (instance: any) => any;
|
|
1339
|
+
"update:modelValue": (value: TimePickerValue) => any;
|
|
1340
|
+
"open-change": (open: boolean) => any;
|
|
1341
|
+
}, string, PublicProps, Readonly<VTimePickerProps> & Readonly<{
|
|
1342
|
+
onBlur?: ((instance: any) => any) | undefined;
|
|
1343
|
+
onChange?: ((value: TimePickerValue) => any) | undefined;
|
|
1344
|
+
onFocus?: ((instance: any) => any) | undefined;
|
|
1345
|
+
"onUpdate:modelValue"?: ((value: TimePickerValue) => any) | undefined;
|
|
1346
|
+
"onOpen-change"?: ((open: boolean) => any) | undefined;
|
|
1347
|
+
}>, {
|
|
1348
|
+
type: TimePickerType;
|
|
1349
|
+
disabled: boolean;
|
|
1350
|
+
size: TimePickerSize;
|
|
1351
|
+
placeholder: string;
|
|
1352
|
+
clearable: boolean;
|
|
1353
|
+
startPlaceholder: string;
|
|
1354
|
+
endPlaceholder: string;
|
|
1355
|
+
rangeSeparator: string;
|
|
1356
|
+
format: string;
|
|
1357
|
+
hourStep: number;
|
|
1358
|
+
minuteStep: number;
|
|
1359
|
+
secondStep: number;
|
|
1360
|
+
showSeconds: boolean;
|
|
1361
|
+
use12Hours: boolean;
|
|
1362
|
+
hideDisabledOptions: boolean;
|
|
1363
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1364
|
+
timePickerRef: HTMLDivElement;
|
|
1365
|
+
triggerRef: HTMLDivElement;
|
|
1366
|
+
dropdownRef: HTMLDivElement;
|
|
1367
|
+
}, HTMLDivElement>;
|
|
1368
|
+
|
|
1369
|
+
export declare interface VTimePickerEmits {
|
|
1370
|
+
(e: 'update:modelValue', value: TimePickerValue): void;
|
|
1371
|
+
(e: 'change', value: TimePickerValue): void;
|
|
1372
|
+
(e: 'blur', instance: any): void;
|
|
1373
|
+
(e: 'focus', instance: any): void;
|
|
1374
|
+
(e: 'open-change', open: boolean): void;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
export declare interface VTimePickerMethods {
|
|
1378
|
+
focus(): void;
|
|
1379
|
+
blur(): void;
|
|
1380
|
+
open(): void;
|
|
1381
|
+
close(): void;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
export declare interface VTimePickerProps {
|
|
1385
|
+
modelValue?: TimePickerValue;
|
|
1386
|
+
type?: TimePickerType;
|
|
1387
|
+
placeholder?: string;
|
|
1388
|
+
startPlaceholder?: string;
|
|
1389
|
+
endPlaceholder?: string;
|
|
1390
|
+
rangeSeparator?: string;
|
|
1391
|
+
format?: string;
|
|
1392
|
+
disabled?: boolean;
|
|
1393
|
+
clearable?: boolean;
|
|
1394
|
+
size?: TimePickerSize;
|
|
1395
|
+
hourStep?: number;
|
|
1396
|
+
minuteStep?: number;
|
|
1397
|
+
secondStep?: number;
|
|
1398
|
+
showSeconds?: boolean;
|
|
1399
|
+
use12Hours?: boolean;
|
|
1400
|
+
disabledHours?: () => number[];
|
|
1401
|
+
disabledMinutes?: (selectedHour: number) => number[];
|
|
1402
|
+
disabledSeconds?: (selectedHour: number, selectedMinute: number) => number[];
|
|
1403
|
+
hideDisabledOptions?: boolean;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1247
1406
|
export declare interface VtInputAutosizeConfig {
|
|
1248
1407
|
minRows?: number;
|
|
1249
1408
|
maxRows?: number;
|
|
@@ -1431,6 +1590,10 @@ export declare interface VUIPluginOptions {
|
|
|
1431
1590
|
modal?: boolean;
|
|
1432
1591
|
}
|
|
1433
1592
|
|
|
1593
|
+
export declare const WEEKDAY_NAMES: string[];
|
|
1594
|
+
|
|
1595
|
+
export declare const WEEKDAY_NAMES_SHORT: string[];
|
|
1596
|
+
|
|
1434
1597
|
export { }
|
|
1435
1598
|
|
|
1436
1599
|
|