@wra-gov/vue-components 0.25.6 → 0.26.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
@@ -1,15 +1,11 @@
1
1
  import { ComponentOptionsMixin } from 'vue';
2
2
  import { ComponentProvideOptions } from 'vue';
3
3
  import { DefineComponent } from 'vue';
4
+ import { Directive } from 'vue';
4
5
  import { ExtractPropTypes } from 'vue';
6
+ import { HTMLAttributes } from 'vue';
5
7
  import { PropType } from 'vue';
6
8
  import { PublicProps } from 'vue';
7
- import { default as WraCustomInput } from '../src/components/CustomInput.vue';
8
- import { default as WraDateInput } from '../src/components/DateInput.vue';
9
- import { default as WraNumberInput } from '../src/components/NumberInput.vue';
10
- import { default as WraPriceInput } from '../src/components/PriceInput.vue';
11
- import { default as WraRadioGroup } from '../src/components/RadioGroup.vue';
12
- import { default as WraTextInput } from '../src/components/TextInput.vue';
13
9
 
14
10
  declare type DataTableHeader = {
15
11
  key: string;
@@ -37,6 +33,15 @@ declare const plugin: {
37
33
  };
38
34
  export default plugin;
39
35
 
36
+ declare interface RadioOption {
37
+ label: string;
38
+ value: string | number;
39
+ info?: string;
40
+ id?: string;
41
+ }
42
+
43
+ declare type RuleFunction = (value: string | number) => true | string;
44
+
40
45
  declare interface TableHeader {
41
46
  key: string;
42
47
  title: string;
@@ -52,6 +57,8 @@ declare interface TableItem {
52
57
 
53
58
  declare type ValidationRule = (value: string) => true | string;
54
59
 
60
+ declare type ValidationRule_2 = (value: string | number) => true | string;
61
+
55
62
  export declare const WraAppBar: DefineComponent<ExtractPropTypes< {
56
63
  /**
57
64
  * If true, the app bar will be hidden when printing the page.
@@ -181,7 +188,7 @@ type: () => boolean;
181
188
  default: boolean;
182
189
  };
183
190
  }>> & Readonly<{
184
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
191
+ "onUpdate:modelValue"?: (...args: any[]) => any;
185
192
  }>, {
186
193
  optionValue: string;
187
194
  optionLabel: string;
@@ -445,7 +452,7 @@ export declare const WraCheckboxGroup: DefineComponent<ExtractPropTypes< {
445
452
  */
446
453
  modelValue: {
447
454
  type: PropType<OptionType[]>;
448
- default: () => never[];
455
+ default: () => any[];
449
456
  };
450
457
  /**
451
458
  * The array of options to display as checkboxes.
@@ -453,7 +460,7 @@ default: () => never[];
453
460
  options: {
454
461
  type: PropType<OptionType[]>;
455
462
  required: true;
456
- default: () => never[];
463
+ default: () => any[];
457
464
  };
458
465
  /**
459
466
  * The property name to use as the value from each option object.
@@ -502,7 +509,7 @@ checkForObjectValue(input: OptionType): string;
502
509
  */
503
510
  modelValue: {
504
511
  type: PropType<OptionType[]>;
505
- default: () => never[];
512
+ default: () => any[];
506
513
  };
507
514
  /**
508
515
  * The array of options to display as checkboxes.
@@ -510,7 +517,7 @@ default: () => never[];
510
517
  options: {
511
518
  type: PropType<OptionType[]>;
512
519
  required: true;
513
- default: () => never[];
520
+ default: () => any[];
514
521
  };
515
522
  /**
516
523
  * The property name to use as the value from each option object.
@@ -590,7 +597,293 @@ required: true;
590
597
 
591
598
  export declare const WraContentSectionTitle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
592
599
 
593
- export { WraCustomInput }
600
+ export declare const WraCustomInput: DefineComponent<ExtractPropTypes< {
601
+ /**
602
+ * The value of the input field.
603
+ * @type {string|number}
604
+ * @required
605
+ */
606
+ modelValue: {
607
+ type: PropType<string | number>;
608
+ required: true;
609
+ default: string;
610
+ };
611
+ /**
612
+ * The mask pattern for the input field.
613
+ * @type {string}
614
+ */
615
+ dataMaska: {
616
+ type: PropType<string>;
617
+ required: false;
618
+ };
619
+ /**
620
+ * Whether to apply the mask eagerly.
621
+ * @type {boolean}
622
+ * @default false
623
+ */
624
+ dataMaskaEager: {
625
+ type: PropType<boolean>;
626
+ default: boolean;
627
+ };
628
+ /**
629
+ * Whether to apply the mask in reverse.
630
+ * @type {boolean}
631
+ * @default false
632
+ */
633
+ dataMaskaReversed: {
634
+ type: PropType<boolean>;
635
+ default: boolean;
636
+ };
637
+ /**
638
+ * Custom tokens for the mask.
639
+ * @type {string}
640
+ */
641
+ dataMaskaTokens: {
642
+ type: PropType<string>;
643
+ required: false;
644
+ };
645
+ /**
646
+ * The label for the input field.
647
+ * @type {string}
648
+ */
649
+ label: {
650
+ type: PropType<string>;
651
+ required: false;
652
+ };
653
+ /**
654
+ * The ID for the input field.
655
+ * @type {string}
656
+ * @required
657
+ * @default "customInput"
658
+ */
659
+ id: {
660
+ type: PropType<string>;
661
+ required: true;
662
+ default: string;
663
+ };
664
+ /**
665
+ * The input mode for the input field.
666
+ * @type {string}
667
+ * @default "numeric"
668
+ * @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
669
+ */
670
+ inputmode: {
671
+ type: PropType<"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search">;
672
+ default: string;
673
+ };
674
+ /**
675
+ * The type of the input field.
676
+ * @type {string}
677
+ * @default "text"
678
+ * @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
679
+ */
680
+ type: {
681
+ type: PropType<"text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | "number">;
682
+ default: string;
683
+ };
684
+ /**
685
+ * The minimum value allowed for the input field.
686
+ * @type {number}
687
+ */
688
+ minimumValue: {
689
+ type: PropType<number>;
690
+ required: false;
691
+ };
692
+ /**
693
+ * The placeholder text for the input field.
694
+ * @type {string}
695
+ */
696
+ placeholder: {
697
+ type: PropType<string>;
698
+ required: false;
699
+ };
700
+ /**
701
+ * An array of validation rule functions. Each function should return true or an error message string.
702
+ */
703
+ rules: {
704
+ type: PropType<Array<(value: string | number) => true | string>>;
705
+ default: () => any[];
706
+ };
707
+ /**
708
+ * The prefix text to display before the input field.
709
+ * @type {string}
710
+ */
711
+ prefix: {
712
+ type: PropType<string>;
713
+ required: false;
714
+ };
715
+ /**
716
+ * The suffix text to display after the input field.
717
+ * @type {string}
718
+ */
719
+ suffix: {
720
+ type: PropType<string>;
721
+ required: false;
722
+ };
723
+ /**
724
+ * Whether to emit maska details.
725
+ * @type {boolean}
726
+ * @default false
727
+ */
728
+ emitMaskaDetails: {
729
+ type: PropType<boolean>;
730
+ default: boolean;
731
+ };
732
+ }>, {}, {
733
+ errorMessage: string;
734
+ firstValidation: boolean;
735
+ }, {
736
+ prefixPadding(): string;
737
+ }, {
738
+ onMaska(event: any): void;
739
+ validate(value: string | number): void;
740
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
741
+ /**
742
+ * The value of the input field.
743
+ * @type {string|number}
744
+ * @required
745
+ */
746
+ modelValue: {
747
+ type: PropType<string | number>;
748
+ required: true;
749
+ default: string;
750
+ };
751
+ /**
752
+ * The mask pattern for the input field.
753
+ * @type {string}
754
+ */
755
+ dataMaska: {
756
+ type: PropType<string>;
757
+ required: false;
758
+ };
759
+ /**
760
+ * Whether to apply the mask eagerly.
761
+ * @type {boolean}
762
+ * @default false
763
+ */
764
+ dataMaskaEager: {
765
+ type: PropType<boolean>;
766
+ default: boolean;
767
+ };
768
+ /**
769
+ * Whether to apply the mask in reverse.
770
+ * @type {boolean}
771
+ * @default false
772
+ */
773
+ dataMaskaReversed: {
774
+ type: PropType<boolean>;
775
+ default: boolean;
776
+ };
777
+ /**
778
+ * Custom tokens for the mask.
779
+ * @type {string}
780
+ */
781
+ dataMaskaTokens: {
782
+ type: PropType<string>;
783
+ required: false;
784
+ };
785
+ /**
786
+ * The label for the input field.
787
+ * @type {string}
788
+ */
789
+ label: {
790
+ type: PropType<string>;
791
+ required: false;
792
+ };
793
+ /**
794
+ * The ID for the input field.
795
+ * @type {string}
796
+ * @required
797
+ * @default "customInput"
798
+ */
799
+ id: {
800
+ type: PropType<string>;
801
+ required: true;
802
+ default: string;
803
+ };
804
+ /**
805
+ * The input mode for the input field.
806
+ * @type {string}
807
+ * @default "numeric"
808
+ * @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
809
+ */
810
+ inputmode: {
811
+ type: PropType<"none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search">;
812
+ default: string;
813
+ };
814
+ /**
815
+ * The type of the input field.
816
+ * @type {string}
817
+ * @default "text"
818
+ * @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
819
+ */
820
+ type: {
821
+ type: PropType<"text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | "number">;
822
+ default: string;
823
+ };
824
+ /**
825
+ * The minimum value allowed for the input field.
826
+ * @type {number}
827
+ */
828
+ minimumValue: {
829
+ type: PropType<number>;
830
+ required: false;
831
+ };
832
+ /**
833
+ * The placeholder text for the input field.
834
+ * @type {string}
835
+ */
836
+ placeholder: {
837
+ type: PropType<string>;
838
+ required: false;
839
+ };
840
+ /**
841
+ * An array of validation rule functions. Each function should return true or an error message string.
842
+ */
843
+ rules: {
844
+ type: PropType<Array<(value: string | number) => true | string>>;
845
+ default: () => any[];
846
+ };
847
+ /**
848
+ * The prefix text to display before the input field.
849
+ * @type {string}
850
+ */
851
+ prefix: {
852
+ type: PropType<string>;
853
+ required: false;
854
+ };
855
+ /**
856
+ * The suffix text to display after the input field.
857
+ * @type {string}
858
+ */
859
+ suffix: {
860
+ type: PropType<string>;
861
+ required: false;
862
+ };
863
+ /**
864
+ * Whether to emit maska details.
865
+ * @type {boolean}
866
+ * @default false
867
+ */
868
+ emitMaskaDetails: {
869
+ type: PropType<boolean>;
870
+ default: boolean;
871
+ };
872
+ }>> & Readonly<{
873
+ "onUpdate:modelValue"?: (...args: any[]) => any;
874
+ onValid?: (...args: any[]) => any;
875
+ }>, {
876
+ type: "number" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
877
+ modelValue: string | number;
878
+ id: string;
879
+ dataMaskaEager: boolean;
880
+ dataMaskaReversed: boolean;
881
+ inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
882
+ rules: ((value: string | number) => true | string)[];
883
+ emitMaskaDetails: boolean;
884
+ }, {}, {}, {
885
+ maska: Directive;
886
+ }, string, ComponentProvideOptions, true, {}, any>;
594
887
 
595
888
  export declare const WraDataTable: DefineComponent<ExtractPropTypes< {
596
889
  /**
@@ -692,70 +985,242 @@ required: false;
692
985
  itemsPerPage: number;
693
986
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
694
987
 
695
- export { WraDateInput }
696
-
697
- export declare const WraDialog: DefineComponent<ExtractPropTypes< {
988
+ export declare const WraDateInput: DefineComponent<ExtractPropTypes< {
698
989
  /**
699
- * The title text displayed at the top of the dialog.
990
+ * The value of the input field.
991
+ * @required
992
+ * @default ""
700
993
  */
701
- title: {
702
- type: PropType<string>;
994
+ modelValue: {
995
+ type: PropType<string | Date>;
703
996
  required: true;
997
+ default: string;
704
998
  };
705
999
  /**
706
- * The main message or content displayed in the dialog body.
1000
+ * The label for the input field.
1001
+ * @type {string}
707
1002
  */
708
- message: {
1003
+ label: {
709
1004
  type: PropType<string>;
710
- required: true;
1005
+ required: false;
711
1006
  };
712
1007
  /**
713
- * The text label for the confirm button.
1008
+ * The ID for the input field.
1009
+ * @type {string}
1010
+ * @required
1011
+ * @default "dateInput"
714
1012
  */
715
- confirmText: {
1013
+ id: {
716
1014
  type: PropType<string>;
717
1015
  required: true;
718
1016
  default: string;
719
1017
  };
720
1018
  /**
721
- * The text label for the cancel button.
1019
+ * The input mode for the input field.
1020
+ * @type {string}
1021
+ * @default "numeric"
1022
+ * @validator value {string} - The input mode must be "numeric".
722
1023
  */
723
- cancelText: {
724
- type: PropType<string>;
725
- required: true;
1024
+ inputmode: {
1025
+ type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
726
1026
  default: string;
1027
+ validator(value: string): boolean;
727
1028
  };
728
1029
  /**
729
- * If true, styles the confirm button as a destructive action (red for delete).
1030
+ * Whether the input field is required.
1031
+ * @type {boolean}
1032
+ * @default false
730
1033
  */
731
- isDelete: {
1034
+ required: {
732
1035
  type: PropType<boolean>;
733
1036
  default: boolean;
734
1037
  };
735
- }>, {}, {
736
- lastFocused: Element | null;
737
- }, {}, {
738
- openDialog(): void;
739
- closeDialog(): void;
740
- confirm(): void;
741
- cancel(): void;
742
- handleTab(e: KeyboardEvent): void;
743
- focusConfirm(): void;
744
- restoreFocus(): void;
745
- }, ComponentOptionsMixin, ComponentOptionsMixin, ("confirm" | "cancel" | "close")[], "confirm" | "cancel" | "close", PublicProps, Readonly<ExtractPropTypes< {
746
1038
  /**
747
- * The title text displayed at the top of the dialog.
1039
+ * The placeholder text for the input field.
1040
+ * @type {string}
1041
+ * @default "DD/MM/YYYY"
1042
+ *
748
1043
  */
749
- title: {
1044
+ placeholder: {
750
1045
  type: PropType<string>;
751
- required: true;
1046
+ default: string;
752
1047
  };
753
1048
  /**
754
- * The main message or content displayed in the dialog body.
1049
+ * Whether to use default validation for the input field.
1050
+ * @type {boolean}
1051
+ * @default false
755
1052
  */
756
- message: {
757
- type: PropType<string>;
758
- required: true;
1053
+ defaultValidation: {
1054
+ type: PropType<boolean>;
1055
+ default: boolean;
1056
+ };
1057
+ }>, {}, {
1058
+ maskedValue: string;
1059
+ showError: boolean;
1060
+ firstValidation: boolean;
1061
+ dateObjectValue: Date | null;
1062
+ }, {}, {
1063
+ /**
1064
+ * Handles input event safely for TypeScript.
1065
+ */
1066
+ onInputHandler(event: Event): void;
1067
+ /**
1068
+ * Swaps the day and month in a date string.
1069
+ * @param {string} input - The input date string in DD/MM/YYYY format.
1070
+ * @returns {string} - The date string with day and month swapped.
1071
+ */
1072
+ swapMonthDay(input: string): string;
1073
+ convertToDate(value: string): void;
1074
+ validate(dateInput: Date | null | string): boolean;
1075
+ /**
1076
+ * Sets the initial state of the component based on the modelValue prop.
1077
+ */
1078
+ setInitialState(): void;
1079
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
1080
+ /**
1081
+ * The value of the input field.
1082
+ * @required
1083
+ * @default ""
1084
+ */
1085
+ modelValue: {
1086
+ type: PropType<string | Date>;
1087
+ required: true;
1088
+ default: string;
1089
+ };
1090
+ /**
1091
+ * The label for the input field.
1092
+ * @type {string}
1093
+ */
1094
+ label: {
1095
+ type: PropType<string>;
1096
+ required: false;
1097
+ };
1098
+ /**
1099
+ * The ID for the input field.
1100
+ * @type {string}
1101
+ * @required
1102
+ * @default "dateInput"
1103
+ */
1104
+ id: {
1105
+ type: PropType<string>;
1106
+ required: true;
1107
+ default: string;
1108
+ };
1109
+ /**
1110
+ * The input mode for the input field.
1111
+ * @type {string}
1112
+ * @default "numeric"
1113
+ * @validator value {string} - The input mode must be "numeric".
1114
+ */
1115
+ inputmode: {
1116
+ type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
1117
+ default: string;
1118
+ validator(value: string): boolean;
1119
+ };
1120
+ /**
1121
+ * Whether the input field is required.
1122
+ * @type {boolean}
1123
+ * @default false
1124
+ */
1125
+ required: {
1126
+ type: PropType<boolean>;
1127
+ default: boolean;
1128
+ };
1129
+ /**
1130
+ * The placeholder text for the input field.
1131
+ * @type {string}
1132
+ * @default "DD/MM/YYYY"
1133
+ *
1134
+ */
1135
+ placeholder: {
1136
+ type: PropType<string>;
1137
+ default: string;
1138
+ };
1139
+ /**
1140
+ * Whether to use default validation for the input field.
1141
+ * @type {boolean}
1142
+ * @default false
1143
+ */
1144
+ defaultValidation: {
1145
+ type: PropType<boolean>;
1146
+ default: boolean;
1147
+ };
1148
+ }>> & Readonly<{
1149
+ "onUpdate:modelValue"?: (...args: any[]) => any;
1150
+ onValid?: (...args: any[]) => any;
1151
+ }>, {
1152
+ required: boolean;
1153
+ modelValue: string | Date;
1154
+ id: string;
1155
+ placeholder: string;
1156
+ inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
1157
+ defaultValidation: boolean;
1158
+ }, {}, {}, {
1159
+ maska: Directive;
1160
+ }, string, ComponentProvideOptions, true, {}, any>;
1161
+
1162
+ export declare const WraDialog: DefineComponent<ExtractPropTypes< {
1163
+ /**
1164
+ * The title text displayed at the top of the dialog.
1165
+ */
1166
+ title: {
1167
+ type: PropType<string>;
1168
+ required: true;
1169
+ };
1170
+ /**
1171
+ * The main message or content displayed in the dialog body.
1172
+ */
1173
+ message: {
1174
+ type: PropType<string>;
1175
+ required: true;
1176
+ };
1177
+ /**
1178
+ * The text label for the confirm button.
1179
+ */
1180
+ confirmText: {
1181
+ type: PropType<string>;
1182
+ required: true;
1183
+ default: string;
1184
+ };
1185
+ /**
1186
+ * The text label for the cancel button.
1187
+ */
1188
+ cancelText: {
1189
+ type: PropType<string>;
1190
+ required: true;
1191
+ default: string;
1192
+ };
1193
+ /**
1194
+ * If true, styles the confirm button as a destructive action (red for delete).
1195
+ */
1196
+ isDelete: {
1197
+ type: PropType<boolean>;
1198
+ default: boolean;
1199
+ };
1200
+ }>, {}, {
1201
+ lastFocused: Element | null;
1202
+ }, {}, {
1203
+ openDialog(): void;
1204
+ closeDialog(): void;
1205
+ confirm(): void;
1206
+ cancel(): void;
1207
+ handleTab(e: KeyboardEvent): void;
1208
+ focusConfirm(): void;
1209
+ restoreFocus(): void;
1210
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("confirm" | "cancel" | "close")[], "confirm" | "cancel" | "close", PublicProps, Readonly<ExtractPropTypes< {
1211
+ /**
1212
+ * The title text displayed at the top of the dialog.
1213
+ */
1214
+ title: {
1215
+ type: PropType<string>;
1216
+ required: true;
1217
+ };
1218
+ /**
1219
+ * The main message or content displayed in the dialog body.
1220
+ */
1221
+ message: {
1222
+ type: PropType<string>;
1223
+ required: true;
759
1224
  };
760
1225
  /**
761
1226
  * The text label for the confirm button.
@@ -781,9 +1246,9 @@ type: PropType<boolean>;
781
1246
  default: boolean;
782
1247
  };
783
1248
  }>> & Readonly<{
784
- onConfirm?: ((...args: any[]) => any) | undefined;
785
- onCancel?: ((...args: any[]) => any) | undefined;
786
- onClose?: ((...args: any[]) => any) | undefined;
1249
+ onConfirm?: (...args: any[]) => any;
1250
+ onCancel?: (...args: any[]) => any;
1251
+ onClose?: (...args: any[]) => any;
787
1252
  }>, {
788
1253
  confirmText: string;
789
1254
  cancelText: string;
@@ -887,8 +1352,8 @@ type: PropType<string>;
887
1352
  default: string;
888
1353
  };
889
1354
  }>> & Readonly<{}>, {
890
- role: string;
891
1355
  thickness: "small" | "large" | "medium";
1356
+ role: string;
892
1357
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
893
1358
 
894
1359
  export declare const WraExpansionPanel: DefineComponent<ExtractPropTypes< {
@@ -1144,15 +1609,15 @@ type: PropType<string>;
1144
1609
  default: string;
1145
1610
  };
1146
1611
  }>> & Readonly<{
1147
- onChange?: ((...args: any[]) => any) | undefined;
1612
+ onChange?: (...args: any[]) => any;
1148
1613
  }>, {
1149
1614
  label: string;
1150
1615
  id: string;
1151
1616
  backgroundColor: string;
1152
1617
  errorMessage: string;
1153
- error: boolean;
1154
1618
  multiple: boolean;
1155
1619
  buttonText: string;
1620
+ error: boolean;
1156
1621
  fileSizeErrorMessage: string;
1157
1622
  }, {}, {
1158
1623
  ValidationTooltip: DefineComponent<ExtractPropTypes< {
@@ -1170,7 +1635,7 @@ default: string;
1170
1635
  }>> & Readonly<{}>, {
1171
1636
  type: string;
1172
1637
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1173
- Button: DefineComponent<ExtractPropTypes< {
1638
+ WraButton: DefineComponent<ExtractPropTypes< {
1174
1639
  size: {
1175
1640
  type: () => string;
1176
1641
  default: string;
@@ -1362,125 +1827,321 @@ validator(value: string): boolean;
1362
1827
  colour: "wra-blue" | "wra-red" | "wra-green" | "wra-revenue" | "wra-charcoal" | "wra-yellow";
1363
1828
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1364
1829
 
1365
- export { WraNumberInput }
1366
-
1367
- export declare const WraPagination: DefineComponent<ExtractPropTypes< {
1830
+ export declare const WraNumberInput: DefineComponent<ExtractPropTypes< {
1368
1831
  /**
1369
- * The current page number (v-model).
1832
+ * The value of the input field.
1833
+ * @type {string|number}
1834
+ * @required
1370
1835
  */
1371
1836
  modelValue: {
1372
- type: PropType<number>;
1837
+ type: PropType<string | number>;
1373
1838
  required: true;
1374
- default: number;
1839
+ default: string;
1375
1840
  };
1376
1841
  /**
1377
- * The total number of pages available.
1842
+ * The label for the input field.
1843
+ * @type {string}
1378
1844
  */
1379
- totalPages: {
1380
- type: PropType<number>;
1845
+ label: {
1846
+ type: PropType<string>;
1847
+ };
1848
+ /**
1849
+ * The ID for the input field.
1850
+ * @type {string}
1851
+ * @required
1852
+ * @default "numberInput"
1853
+ */
1854
+ id: {
1855
+ type: PropType<string>;
1381
1856
  required: true;
1857
+ default: string;
1382
1858
  };
1383
1859
  /**
1384
- * The maximum number of page buttons to display at once.
1860
+ * The type of the input field.
1861
+ * @type {string}
1862
+ * @default "text"
1863
+ * @validator value {string} - The type must be one of ["text", "password", "search"].
1385
1864
  */
1386
- length: {
1387
- type: PropType<number>;
1388
- default: number;
1865
+ type: {
1866
+ type: PropType<"text" | "password" | "search">;
1867
+ default: string;
1868
+ validator(value: string): boolean;
1389
1869
  };
1390
1870
  /**
1391
- * If true, shows 'skip' controls (divider & jump to start/end).
1871
+ * The input mode for the input field.
1872
+ * @type {string}
1873
+ * @default "numeric"
1392
1874
  */
1393
- skip: {
1394
- type: PropType<boolean>;
1395
- default: boolean;
1875
+ inputmode: {
1876
+ type: PropType<"numeric" | "decimal" | "text">;
1877
+ default: string;
1878
+ validator(value: string): boolean;
1396
1879
  };
1397
1880
  /**
1398
- * The starting page number (usually 1).
1881
+ * The placeholder text for the input field.
1882
+ * @type {string}
1399
1883
  */
1400
- startIndex: {
1401
- type: PropType<number>;
1402
- default: number;
1884
+ placeholder: {
1885
+ type: PropType<string>;
1403
1886
  };
1404
1887
  /**
1405
- * The label text for the 'previous' button.
1888
+ * An array of validation rule functions. Each function should return true or an error message string.
1406
1889
  */
1407
- previousLabel: {
1890
+ rules: {
1891
+ type: PropType<RuleFunction[]>;
1892
+ default: () => any[];
1893
+ };
1894
+ /**
1895
+ * The prefix text to display before the input field.
1896
+ * @type {string}
1897
+ */
1898
+ prefix: {
1408
1899
  type: PropType<string>;
1409
- default: string;
1410
1900
  };
1411
1901
  /**
1412
- * The label text for the 'next' button.
1902
+ * The suffix text to display after the input field.
1903
+ * @type {string}
1413
1904
  */
1414
- nextLabel: {
1905
+ suffix: {
1415
1906
  type: PropType<string>;
1416
- default: string;
1907
+ };
1908
+ /**
1909
+ * Whether to emit full maska details, including masked and unmasked values.
1910
+ * @type {boolean}
1911
+ * @default false
1912
+ */
1913
+ emitMaskaDetails: {
1914
+ type: PropType<boolean>;
1915
+ default: boolean;
1417
1916
  };
1418
1917
  }>, {}, {
1419
- currentPage: number;
1918
+ dataValue: string;
1919
+ errorMessage: string;
1920
+ firstValidation: boolean;
1921
+ returnValue: string;
1420
1922
  }, {
1421
- pageArray(): number[];
1422
- viewablePages(): number[];
1423
- skipStart(): boolean;
1424
- skipEnd(): boolean;
1923
+ prefixPadding(): string;
1425
1924
  }, {
1426
- incPage(): void;
1427
- decPage(): void;
1428
- changePage(page: number): void;
1429
- onKeyLeft(): void;
1430
- onKeyRight(): void;
1431
- }, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1925
+ validate(value: string | number): void;
1926
+ onMaska(value: any): void;
1927
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
1432
1928
  /**
1433
- * The current page number (v-model).
1929
+ * The value of the input field.
1930
+ * @type {string|number}
1931
+ * @required
1434
1932
  */
1435
1933
  modelValue: {
1436
- type: PropType<number>;
1934
+ type: PropType<string | number>;
1437
1935
  required: true;
1438
- default: number;
1936
+ default: string;
1439
1937
  };
1440
1938
  /**
1441
- * The total number of pages available.
1939
+ * The label for the input field.
1940
+ * @type {string}
1442
1941
  */
1443
- totalPages: {
1444
- type: PropType<number>;
1445
- required: true;
1942
+ label: {
1943
+ type: PropType<string>;
1446
1944
  };
1447
1945
  /**
1448
- * The maximum number of page buttons to display at once.
1946
+ * The ID for the input field.
1947
+ * @type {string}
1948
+ * @required
1949
+ * @default "numberInput"
1449
1950
  */
1450
- length: {
1451
- type: PropType<number>;
1452
- default: number;
1951
+ id: {
1952
+ type: PropType<string>;
1953
+ required: true;
1954
+ default: string;
1453
1955
  };
1454
1956
  /**
1455
- * If true, shows 'skip' controls (divider & jump to start/end).
1957
+ * The type of the input field.
1958
+ * @type {string}
1959
+ * @default "text"
1960
+ * @validator value {string} - The type must be one of ["text", "password", "search"].
1456
1961
  */
1457
- skip: {
1458
- type: PropType<boolean>;
1459
- default: boolean;
1962
+ type: {
1963
+ type: PropType<"text" | "password" | "search">;
1964
+ default: string;
1965
+ validator(value: string): boolean;
1460
1966
  };
1461
1967
  /**
1462
- * The starting page number (usually 1).
1968
+ * The input mode for the input field.
1969
+ * @type {string}
1970
+ * @default "numeric"
1463
1971
  */
1464
- startIndex: {
1465
- type: PropType<number>;
1466
- default: number;
1972
+ inputmode: {
1973
+ type: PropType<"numeric" | "decimal" | "text">;
1974
+ default: string;
1975
+ validator(value: string): boolean;
1467
1976
  };
1468
1977
  /**
1469
- * The label text for the 'previous' button.
1978
+ * The placeholder text for the input field.
1979
+ * @type {string}
1470
1980
  */
1471
- previousLabel: {
1981
+ placeholder: {
1472
1982
  type: PropType<string>;
1473
- default: string;
1474
1983
  };
1475
1984
  /**
1476
- * The label text for the 'next' button.
1985
+ * An array of validation rule functions. Each function should return true or an error message string.
1477
1986
  */
1478
- nextLabel: {
1479
- type: PropType<string>;
1987
+ rules: {
1988
+ type: PropType<RuleFunction[]>;
1989
+ default: () => any[];
1990
+ };
1991
+ /**
1992
+ * The prefix text to display before the input field.
1993
+ * @type {string}
1994
+ */
1995
+ prefix: {
1996
+ type: PropType<string>;
1997
+ };
1998
+ /**
1999
+ * The suffix text to display after the input field.
2000
+ * @type {string}
2001
+ */
2002
+ suffix: {
2003
+ type: PropType<string>;
2004
+ };
2005
+ /**
2006
+ * Whether to emit full maska details, including masked and unmasked values.
2007
+ * @type {boolean}
2008
+ * @default false
2009
+ */
2010
+ emitMaskaDetails: {
2011
+ type: PropType<boolean>;
2012
+ default: boolean;
2013
+ };
2014
+ }>> & Readonly<{
2015
+ "onUpdate:modelValue"?: (...args: any[]) => any;
2016
+ onValid?: (...args: any[]) => any;
2017
+ }>, {
2018
+ type: "search" | "text" | "password";
2019
+ modelValue: string | number;
2020
+ id: string;
2021
+ inputmode: "text" | "numeric" | "decimal";
2022
+ rules: RuleFunction[];
2023
+ emitMaskaDetails: boolean;
2024
+ }, {}, {}, {
2025
+ maska: Directive;
2026
+ }, string, ComponentProvideOptions, true, {}, any>;
2027
+
2028
+ export declare const WraPagination: DefineComponent<ExtractPropTypes< {
2029
+ /**
2030
+ * The current page number (v-model).
2031
+ */
2032
+ modelValue: {
2033
+ type: PropType<number>;
2034
+ required: true;
2035
+ default: number;
2036
+ };
2037
+ /**
2038
+ * The total number of pages available.
2039
+ */
2040
+ totalPages: {
2041
+ type: PropType<number>;
2042
+ required: true;
2043
+ };
2044
+ /**
2045
+ * The maximum number of page buttons to display at once.
2046
+ */
2047
+ length: {
2048
+ type: PropType<number>;
2049
+ default: number;
2050
+ };
2051
+ /**
2052
+ * If true, shows 'skip' controls (divider & jump to start/end).
2053
+ */
2054
+ skip: {
2055
+ type: PropType<boolean>;
2056
+ default: boolean;
2057
+ };
2058
+ /**
2059
+ * The starting page number (usually 1).
2060
+ */
2061
+ startIndex: {
2062
+ type: PropType<number>;
2063
+ default: number;
2064
+ };
2065
+ /**
2066
+ * The label text for the 'previous' button.
2067
+ */
2068
+ previousLabel: {
2069
+ type: PropType<string>;
2070
+ default: string;
2071
+ };
2072
+ /**
2073
+ * The label text for the 'next' button.
2074
+ */
2075
+ nextLabel: {
2076
+ type: PropType<string>;
2077
+ default: string;
2078
+ };
2079
+ }>, {}, {
2080
+ currentPage: number;
2081
+ }, {
2082
+ pageArray(): number[];
2083
+ viewablePages(): number[];
2084
+ skipStart(): boolean;
2085
+ skipEnd(): boolean;
2086
+ }, {
2087
+ incPage(): void;
2088
+ decPage(): void;
2089
+ changePage(page: number): void;
2090
+ onKeyLeft(): void;
2091
+ onKeyRight(): void;
2092
+ }, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
2093
+ /**
2094
+ * The current page number (v-model).
2095
+ */
2096
+ modelValue: {
2097
+ type: PropType<number>;
2098
+ required: true;
2099
+ default: number;
2100
+ };
2101
+ /**
2102
+ * The total number of pages available.
2103
+ */
2104
+ totalPages: {
2105
+ type: PropType<number>;
2106
+ required: true;
2107
+ };
2108
+ /**
2109
+ * The maximum number of page buttons to display at once.
2110
+ */
2111
+ length: {
2112
+ type: PropType<number>;
2113
+ default: number;
2114
+ };
2115
+ /**
2116
+ * If true, shows 'skip' controls (divider & jump to start/end).
2117
+ */
2118
+ skip: {
2119
+ type: PropType<boolean>;
2120
+ default: boolean;
2121
+ };
2122
+ /**
2123
+ * The starting page number (usually 1).
2124
+ */
2125
+ startIndex: {
2126
+ type: PropType<number>;
2127
+ default: number;
2128
+ };
2129
+ /**
2130
+ * The label text for the 'previous' button.
2131
+ */
2132
+ previousLabel: {
2133
+ type: PropType<string>;
2134
+ default: string;
2135
+ };
2136
+ /**
2137
+ * The label text for the 'next' button.
2138
+ */
2139
+ nextLabel: {
2140
+ type: PropType<string>;
1480
2141
  default: string;
1481
2142
  };
1482
2143
  }>> & Readonly<{
1483
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2144
+ "onUpdate:modelValue"?: (...args: any[]) => any;
1484
2145
  }>, {
1485
2146
  length: number;
1486
2147
  modelValue: number;
@@ -1490,9 +2151,308 @@ previousLabel: string;
1490
2151
  nextLabel: string;
1491
2152
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1492
2153
 
1493
- export { WraPriceInput }
2154
+ export declare const WraPriceInput: DefineComponent<ExtractPropTypes< {
2155
+ /**
2156
+ * The value of the input field.
2157
+ * @type {string|number}
2158
+ * @required
2159
+ * @default ""
2160
+ */
2161
+ modelValue: {
2162
+ required: true;
2163
+ default: string;
2164
+ type: PropType<string | number>;
2165
+ };
2166
+ /**
2167
+ * The label for the input field.
2168
+ * @type {string}
2169
+ */
2170
+ label: {
2171
+ type: PropType<string>;
2172
+ };
2173
+ /**
2174
+ * The ID for the input field.
2175
+ * @type {string}
2176
+ * @required
2177
+ * @default "priceInput"
2178
+ */
2179
+ id: {
2180
+ type: PropType<string>;
2181
+ required: true;
2182
+ default: string;
2183
+ };
2184
+ /**
2185
+ * The input mode for the input field.
2186
+ * @type {string}
2187
+ * @default "decimal"
2188
+ * @validator value {string} - The input mode must be one of ["numeric", "decimal", "text"].
2189
+ */
2190
+ inputmode: {
2191
+ default: string;
2192
+ type: PropType<"numeric" | "decimal" | "text">;
2193
+ validator(value: string): boolean;
2194
+ };
2195
+ /**
2196
+ * The placeholder text for the input field.
2197
+ * @type {string}
2198
+ * @default "0.00"
2199
+ */
2200
+ placeholder: {
2201
+ default: string;
2202
+ type: PropType<string>;
2203
+ };
2204
+ /**
2205
+ * An array of validation rule functions. Each function should return true or an error message string.
2206
+ */
2207
+ rules: {
2208
+ type: PropType<Array<(value: string | number) => true | string>>;
2209
+ default: () => any[];
2210
+ };
2211
+ /**
2212
+ * The prefix text to display before the input field.
2213
+ * @type {string}
2214
+ * @default "£"
2215
+ */
2216
+ prefix: {
2217
+ default: string;
2218
+ type: PropType<string>;
2219
+ };
2220
+ /**
2221
+ * The suffix text to display after the input field.
2222
+ * @type {string}
2223
+ */
2224
+ suffix: {
2225
+ type: PropType<string>;
2226
+ };
2227
+ }>, {}, {
2228
+ maskedValue: string;
2229
+ mask: {
2230
+ preProcess: (val: string) => string;
2231
+ postProcess: (val: string) => string;
2232
+ };
2233
+ errorMessage: string;
2234
+ firstValidation: boolean;
2235
+ }, {
2236
+ prefixPadding(): string;
2237
+ }, {
2238
+ onMaska(event: {
2239
+ detail: {
2240
+ masked: string;
2241
+ };
2242
+ }): void;
2243
+ validate(value: string | number): void;
2244
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
2245
+ /**
2246
+ * The value of the input field.
2247
+ * @type {string|number}
2248
+ * @required
2249
+ * @default ""
2250
+ */
2251
+ modelValue: {
2252
+ required: true;
2253
+ default: string;
2254
+ type: PropType<string | number>;
2255
+ };
2256
+ /**
2257
+ * The label for the input field.
2258
+ * @type {string}
2259
+ */
2260
+ label: {
2261
+ type: PropType<string>;
2262
+ };
2263
+ /**
2264
+ * The ID for the input field.
2265
+ * @type {string}
2266
+ * @required
2267
+ * @default "priceInput"
2268
+ */
2269
+ id: {
2270
+ type: PropType<string>;
2271
+ required: true;
2272
+ default: string;
2273
+ };
2274
+ /**
2275
+ * The input mode for the input field.
2276
+ * @type {string}
2277
+ * @default "decimal"
2278
+ * @validator value {string} - The input mode must be one of ["numeric", "decimal", "text"].
2279
+ */
2280
+ inputmode: {
2281
+ default: string;
2282
+ type: PropType<"numeric" | "decimal" | "text">;
2283
+ validator(value: string): boolean;
2284
+ };
2285
+ /**
2286
+ * The placeholder text for the input field.
2287
+ * @type {string}
2288
+ * @default "0.00"
2289
+ */
2290
+ placeholder: {
2291
+ default: string;
2292
+ type: PropType<string>;
2293
+ };
2294
+ /**
2295
+ * An array of validation rule functions. Each function should return true or an error message string.
2296
+ */
2297
+ rules: {
2298
+ type: PropType<Array<(value: string | number) => true | string>>;
2299
+ default: () => any[];
2300
+ };
2301
+ /**
2302
+ * The prefix text to display before the input field.
2303
+ * @type {string}
2304
+ * @default "£"
2305
+ */
2306
+ prefix: {
2307
+ default: string;
2308
+ type: PropType<string>;
2309
+ };
2310
+ /**
2311
+ * The suffix text to display after the input field.
2312
+ * @type {string}
2313
+ */
2314
+ suffix: {
2315
+ type: PropType<string>;
2316
+ };
2317
+ }>> & Readonly<{
2318
+ "onUpdate:modelValue"?: (...args: any[]) => any;
2319
+ onValid?: (...args: any[]) => any;
2320
+ }>, {
2321
+ modelValue: string | number;
2322
+ id: string;
2323
+ placeholder: string;
2324
+ inputmode: "text" | "numeric" | "decimal";
2325
+ rules: ((value: string | number) => true | string)[];
2326
+ prefix: string;
2327
+ }, {}, {}, {
2328
+ maska: Directive;
2329
+ }, string, ComponentProvideOptions, true, {}, any>;
1494
2330
 
1495
- export { WraRadioGroup }
2331
+ export declare const WraRadioGroup: DefineComponent<ExtractPropTypes< {
2332
+ /**
2333
+ * The name attribute for the radio group, used to group radio buttons together.
2334
+ */
2335
+ groupName: {
2336
+ type: PropType<string>;
2337
+ required: true;
2338
+ };
2339
+ /**
2340
+ * The v-model binding for the selected radio value.
2341
+ */
2342
+ modelValue: {
2343
+ type: PropType<string | number>;
2344
+ };
2345
+ /**
2346
+ * The array of options to display as radio buttons.
2347
+ */
2348
+ options: {
2349
+ type: PropType<RadioOption[]>;
2350
+ required: true;
2351
+ default: () => any[];
2352
+ };
2353
+ /**
2354
+ * The label text for the radio group, used for accessibility.
2355
+ */
2356
+ label: {
2357
+ type: PropType<string>;
2358
+ };
2359
+ /**
2360
+ * The hint or description for the radio group, referenced by aria-describedby.
2361
+ */
2362
+ hint: {
2363
+ type: PropType<string>;
2364
+ };
2365
+ }>, {}, {}, {
2366
+ validOptions(): RadioOption[];
2367
+ }, {
2368
+ checkInput(optionValue: string | number): boolean;
2369
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2370
+ /**
2371
+ * The name attribute for the radio group, used to group radio buttons together.
2372
+ */
2373
+ groupName: {
2374
+ type: PropType<string>;
2375
+ required: true;
2376
+ };
2377
+ /**
2378
+ * The v-model binding for the selected radio value.
2379
+ */
2380
+ modelValue: {
2381
+ type: PropType<string | number>;
2382
+ };
2383
+ /**
2384
+ * The array of options to display as radio buttons.
2385
+ */
2386
+ options: {
2387
+ type: PropType<RadioOption[]>;
2388
+ required: true;
2389
+ default: () => any[];
2390
+ };
2391
+ /**
2392
+ * The label text for the radio group, used for accessibility.
2393
+ */
2394
+ label: {
2395
+ type: PropType<string>;
2396
+ };
2397
+ /**
2398
+ * The hint or description for the radio group, referenced by aria-describedby.
2399
+ */
2400
+ hint: {
2401
+ type: PropType<string>;
2402
+ };
2403
+ }>> & Readonly<{}>, {
2404
+ options: RadioOption[];
2405
+ }, {}, {
2406
+ WraRadio: DefineComponent<ExtractPropTypes< {
2407
+ groupName: {
2408
+ type: PropType<string>;
2409
+ required: true;
2410
+ };
2411
+ option: {
2412
+ type: PropType<RadioOption>;
2413
+ required: true;
2414
+ default: () => {
2415
+ label: string;
2416
+ value: string;
2417
+ };
2418
+ validator: (value: RadioOption) => boolean;
2419
+ };
2420
+ isChecked: {
2421
+ type: PropType<boolean>;
2422
+ required: true;
2423
+ };
2424
+ id: {
2425
+ type: PropType<string | undefined>;
2426
+ required: false;
2427
+ };
2428
+ }>, {}, {}, {}, {
2429
+ onChange(): void;
2430
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2431
+ groupName: {
2432
+ type: PropType<string>;
2433
+ required: true;
2434
+ };
2435
+ option: {
2436
+ type: PropType<RadioOption>;
2437
+ required: true;
2438
+ default: () => {
2439
+ label: string;
2440
+ value: string;
2441
+ };
2442
+ validator: (value: RadioOption) => boolean;
2443
+ };
2444
+ isChecked: {
2445
+ type: PropType<boolean>;
2446
+ required: true;
2447
+ };
2448
+ id: {
2449
+ type: PropType<string | undefined>;
2450
+ required: false;
2451
+ };
2452
+ }>> & Readonly<{}>, {
2453
+ option: RadioOption;
2454
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2455
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
1496
2456
 
1497
2457
  export declare const WraSelect: DefineComponent<ExtractPropTypes< {
1498
2458
  /**
@@ -1501,7 +2461,7 @@ export declare const WraSelect: DefineComponent<ExtractPropTypes< {
1501
2461
  items: {
1502
2462
  type: PropType<any[]>;
1503
2463
  required: true;
1504
- default: () => never[];
2464
+ default: () => any[];
1505
2465
  };
1506
2466
  /**
1507
2467
  * The property name to use as the value from each option object.
@@ -1561,7 +2521,7 @@ checkForObjectLabel(input: any): any;
1561
2521
  items: {
1562
2522
  type: PropType<any[]>;
1563
2523
  required: true;
1564
- default: () => never[];
2524
+ default: () => any[];
1565
2525
  };
1566
2526
  /**
1567
2527
  * The property name to use as the value from each option object.
@@ -1608,8 +2568,8 @@ modelValue: {
1608
2568
  required: true;
1609
2569
  };
1610
2570
  }>> & Readonly<{
1611
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1612
- onValid?: ((...args: any[]) => any) | undefined;
2571
+ "onUpdate:modelValue"?: (...args: any[]) => any;
2572
+ onValid?: (...args: any[]) => any;
1613
2573
  }>, {
1614
2574
  name: string;
1615
2575
  required: boolean;
@@ -1787,7 +2747,7 @@ type: PropType<boolean>;
1787
2747
  default: boolean;
1788
2748
  };
1789
2749
  }>> & Readonly<{
1790
- onClick?: ((...args: any[]) => any) | undefined;
2750
+ onClick?: (...args: any[]) => any;
1791
2751
  }>, {
1792
2752
  text: string;
1793
2753
  fullWidth: boolean;
@@ -1856,7 +2816,7 @@ type: PropType<boolean>;
1856
2816
  default: boolean;
1857
2817
  };
1858
2818
  }>> & Readonly<{
1859
- "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
2819
+ "onUpdate:visible"?: (...args: any[]) => any;
1860
2820
  }>, {
1861
2821
  type: string;
1862
2822
  visible: boolean;
@@ -1897,7 +2857,7 @@ default: boolean;
1897
2857
  };
1898
2858
  caption: {
1899
2859
  type: PropType<string | undefined>;
1900
- default: undefined;
2860
+ default: any;
1901
2861
  };
1902
2862
  /**
1903
2863
  * The array of header definitions for the table columns.
@@ -1923,7 +2883,7 @@ default: boolean;
1923
2883
  };
1924
2884
  caption: {
1925
2885
  type: PropType<string | undefined>;
1926
- default: undefined;
2886
+ default: any;
1927
2887
  };
1928
2888
  /**
1929
2889
  * The array of header definitions for the table columns.
@@ -1940,7 +2900,7 @@ type: PropType<TableItem[]>;
1940
2900
  required: true;
1941
2901
  };
1942
2902
  }>> & Readonly<{}>, {
1943
- caption: string | undefined;
2903
+ caption: string;
1944
2904
  inheritBackground: boolean;
1945
2905
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1946
2906
 
@@ -1974,7 +2934,7 @@ type: PropType<string[]>;
1974
2934
  required: true;
1975
2935
  };
1976
2936
  }>> & Readonly<{
1977
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2937
+ "onUpdate:modelValue"?: (...args: any[]) => any;
1978
2938
  }>, {
1979
2939
  modelValue: number;
1980
2940
  }, {}, {
@@ -2039,7 +2999,7 @@ required: false;
2039
2999
  */
2040
3000
  rules: {
2041
3001
  type: PropType<ValidationRule[]>;
2042
- default: () => never[];
3002
+ default: () => any[];
2043
3003
  required: false;
2044
3004
  };
2045
3005
  /**
@@ -2081,7 +3041,7 @@ required: false;
2081
3041
  */
2082
3042
  rules: {
2083
3043
  type: PropType<ValidationRule[]>;
2084
- default: () => never[];
3044
+ default: () => any[];
2085
3045
  required: false;
2086
3046
  };
2087
3047
  /**
@@ -2092,13 +3052,201 @@ type: PropType<number>;
2092
3052
  required: false;
2093
3053
  };
2094
3054
  }>> & Readonly<{
2095
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2096
- onValid?: ((...args: any[]) => any) | undefined;
3055
+ "onUpdate:modelValue"?: (...args: any[]) => any;
3056
+ onValid?: (...args: any[]) => any;
2097
3057
  }>, {
2098
3058
  rules: ValidationRule[];
2099
3059
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2100
3060
 
2101
- export { WraTextInput }
3061
+ export declare const WraTextInput: DefineComponent<ExtractPropTypes< {
3062
+ /**
3063
+ * The value of the input field.
3064
+ * @type {string|number}
3065
+ * @required
3066
+ * @default ""
3067
+ */
3068
+ modelValue: {
3069
+ type: PropType<string | number>;
3070
+ required: true;
3071
+ default: string;
3072
+ };
3073
+ /**
3074
+ * The label for the input field.
3075
+ * @type {string}
3076
+ */
3077
+ label: {
3078
+ type: PropType<string>;
3079
+ required: false;
3080
+ };
3081
+ /**
3082
+ * The ID for the input field.
3083
+ * @type {string}
3084
+ * @required
3085
+ * @default "customInput"
3086
+ */
3087
+ id: {
3088
+ type: PropType<string>;
3089
+ required: true;
3090
+ default: string;
3091
+ };
3092
+ /**
3093
+ * The input mode for the input field.
3094
+ * @type {string}
3095
+ * @default "numeric"
3096
+ * @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
3097
+ */
3098
+ inputmode: {
3099
+ type: PropType<HTMLAttributes["inputmode"]>;
3100
+ default: string;
3101
+ validator(value: string): boolean;
3102
+ };
3103
+ /**
3104
+ * The type of the input field.
3105
+ * @type {string}
3106
+ * @default "text"
3107
+ * @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
3108
+ */
3109
+ type: {
3110
+ type: PropType<string>;
3111
+ default: string;
3112
+ validator(value: string): boolean;
3113
+ };
3114
+ /**
3115
+ * An array of validation rule functions. Each function should return true or an error message string.
3116
+ */
3117
+ rules: {
3118
+ type: PropType<ValidationRule_2[]>;
3119
+ default: () => any[];
3120
+ };
3121
+ /**
3122
+ * The mask pattern for the input field.
3123
+ * @type {string}
3124
+ */
3125
+ dataMaska: {
3126
+ type: PropType<string>;
3127
+ required: false;
3128
+ };
3129
+ /**
3130
+ * Custom tokens for the mask.
3131
+ * @type {string}
3132
+ */
3133
+ dataMaskaTokens: {
3134
+ type: PropType<string>;
3135
+ required: false;
3136
+ };
3137
+ /**
3138
+ * The placeholder text for the input field.
3139
+ * @type {string}
3140
+ */
3141
+ placeholder: {
3142
+ type: PropType<string>;
3143
+ required: false;
3144
+ };
3145
+ }>, {}, {
3146
+ errorMessage: string;
3147
+ firstValidation: boolean;
3148
+ }, {}, {
3149
+ /**
3150
+ * Validates the input value based on the provided rules.
3151
+ * @param {string|number} value - The input value to validate.
3152
+ */
3153
+ validate(value: string | number): void;
3154
+ }, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
3155
+ /**
3156
+ * The value of the input field.
3157
+ * @type {string|number}
3158
+ * @required
3159
+ * @default ""
3160
+ */
3161
+ modelValue: {
3162
+ type: PropType<string | number>;
3163
+ required: true;
3164
+ default: string;
3165
+ };
3166
+ /**
3167
+ * The label for the input field.
3168
+ * @type {string}
3169
+ */
3170
+ label: {
3171
+ type: PropType<string>;
3172
+ required: false;
3173
+ };
3174
+ /**
3175
+ * The ID for the input field.
3176
+ * @type {string}
3177
+ * @required
3178
+ * @default "customInput"
3179
+ */
3180
+ id: {
3181
+ type: PropType<string>;
3182
+ required: true;
3183
+ default: string;
3184
+ };
3185
+ /**
3186
+ * The input mode for the input field.
3187
+ * @type {string}
3188
+ * @default "numeric"
3189
+ * @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
3190
+ */
3191
+ inputmode: {
3192
+ type: PropType<HTMLAttributes["inputmode"]>;
3193
+ default: string;
3194
+ validator(value: string): boolean;
3195
+ };
3196
+ /**
3197
+ * The type of the input field.
3198
+ * @type {string}
3199
+ * @default "text"
3200
+ * @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
3201
+ */
3202
+ type: {
3203
+ type: PropType<string>;
3204
+ default: string;
3205
+ validator(value: string): boolean;
3206
+ };
3207
+ /**
3208
+ * An array of validation rule functions. Each function should return true or an error message string.
3209
+ */
3210
+ rules: {
3211
+ type: PropType<ValidationRule_2[]>;
3212
+ default: () => any[];
3213
+ };
3214
+ /**
3215
+ * The mask pattern for the input field.
3216
+ * @type {string}
3217
+ */
3218
+ dataMaska: {
3219
+ type: PropType<string>;
3220
+ required: false;
3221
+ };
3222
+ /**
3223
+ * Custom tokens for the mask.
3224
+ * @type {string}
3225
+ */
3226
+ dataMaskaTokens: {
3227
+ type: PropType<string>;
3228
+ required: false;
3229
+ };
3230
+ /**
3231
+ * The placeholder text for the input field.
3232
+ * @type {string}
3233
+ */
3234
+ placeholder: {
3235
+ type: PropType<string>;
3236
+ required: false;
3237
+ };
3238
+ }>> & Readonly<{
3239
+ "onUpdate:modelValue"?: (...args: any[]) => any;
3240
+ onValid?: (...args: any[]) => any;
3241
+ }>, {
3242
+ type: string;
3243
+ modelValue: string | number;
3244
+ id: string;
3245
+ inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
3246
+ rules: ValidationRule_2[];
3247
+ }, {}, {}, {
3248
+ maska: Directive;
3249
+ }, string, ComponentProvideOptions, true, {}, any>;
2102
3250
 
2103
3251
  export declare const WraValidationTooltip: DefineComponent<ExtractPropTypes< {
2104
3252
  /**