@wra-gov/vue-components 0.28.0 → 0.28.5
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 +341 -16
- package/dist/vue-components.js +662 -357
- package/dist/vue-components.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -754,7 +754,7 @@ default: string;
|
|
|
754
754
|
* @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
|
|
755
755
|
*/
|
|
756
756
|
inputmode: {
|
|
757
|
-
type: PropType<"
|
|
757
|
+
type: PropType<InputHTMLAttributes["inputmode"]>;
|
|
758
758
|
default: string;
|
|
759
759
|
};
|
|
760
760
|
/**
|
|
@@ -764,7 +764,7 @@ default: string;
|
|
|
764
764
|
* @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
|
|
765
765
|
*/
|
|
766
766
|
type: {
|
|
767
|
-
type: PropType<"text" | "
|
|
767
|
+
type: PropType<"text" | "tel" | "url" | "email" | "number" | "search" | "password">;
|
|
768
768
|
default: string;
|
|
769
769
|
};
|
|
770
770
|
/**
|
|
@@ -894,7 +894,7 @@ default: string;
|
|
|
894
894
|
* @validator value {string} - The input mode must be one of ["none", "text", "tel", "url", "email", "numeric", "decimal", "search"].
|
|
895
895
|
*/
|
|
896
896
|
inputmode: {
|
|
897
|
-
type: PropType<"
|
|
897
|
+
type: PropType<InputHTMLAttributes["inputmode"]>;
|
|
898
898
|
default: string;
|
|
899
899
|
};
|
|
900
900
|
/**
|
|
@@ -904,7 +904,7 @@ default: string;
|
|
|
904
904
|
* @validator value {string} - The type must be one of ["text", "none", "tel", "url", "email", "numeric", "decimal"].
|
|
905
905
|
*/
|
|
906
906
|
type: {
|
|
907
|
-
type: PropType<"text" | "
|
|
907
|
+
type: PropType<"text" | "tel" | "url" | "email" | "number" | "search" | "password">;
|
|
908
908
|
default: string;
|
|
909
909
|
};
|
|
910
910
|
/**
|
|
@@ -959,12 +959,12 @@ default: boolean;
|
|
|
959
959
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
960
960
|
onValid?: (...args: any[]) => any;
|
|
961
961
|
}>, {
|
|
962
|
-
type: "number" | "
|
|
962
|
+
type: "number" | "search" | "text" | "tel" | "url" | "email" | "password";
|
|
963
963
|
modelValue: string | number;
|
|
964
964
|
id: string;
|
|
965
|
+
inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
965
966
|
dataMaskaEager: boolean;
|
|
966
967
|
dataMaskaReversed: boolean;
|
|
967
|
-
inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
968
968
|
rules: ((value: string | number) => true | string)[];
|
|
969
969
|
emitMaskaDetails: boolean;
|
|
970
970
|
}, {}, {}, {
|
|
@@ -1105,7 +1105,7 @@ default: string;
|
|
|
1105
1105
|
* The input mode for the input field.
|
|
1106
1106
|
* @type {string}
|
|
1107
1107
|
* @default "numeric"
|
|
1108
|
-
* @validator value {string}
|
|
1108
|
+
* @validator value {string}
|
|
1109
1109
|
*/
|
|
1110
1110
|
inputmode: {
|
|
1111
1111
|
type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
|
|
@@ -1196,7 +1196,7 @@ default: string;
|
|
|
1196
1196
|
* The input mode for the input field.
|
|
1197
1197
|
* @type {string}
|
|
1198
1198
|
* @default "numeric"
|
|
1199
|
-
* @validator value {string}
|
|
1199
|
+
* @validator value {string}
|
|
1200
1200
|
*/
|
|
1201
1201
|
inputmode: {
|
|
1202
1202
|
type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
|
|
@@ -1946,10 +1946,10 @@ default: string;
|
|
|
1946
1946
|
* The type of the input field.
|
|
1947
1947
|
* @type {string}
|
|
1948
1948
|
* @default "text"
|
|
1949
|
-
* @validator value {string}
|
|
1949
|
+
* @validator value {string}
|
|
1950
1950
|
*/
|
|
1951
1951
|
type: {
|
|
1952
|
-
type: PropType<"text" | "
|
|
1952
|
+
type: PropType<"text" | "number">;
|
|
1953
1953
|
default: string;
|
|
1954
1954
|
validator(value: string): boolean;
|
|
1955
1955
|
};
|
|
@@ -1959,7 +1959,7 @@ validator(value: string): boolean;
|
|
|
1959
1959
|
* @default "numeric"
|
|
1960
1960
|
*/
|
|
1961
1961
|
inputmode: {
|
|
1962
|
-
type: PropType<"
|
|
1962
|
+
type: PropType<InputHTMLAttributes["inputmode"]>;
|
|
1963
1963
|
default: string;
|
|
1964
1964
|
validator(value: string): boolean;
|
|
1965
1965
|
};
|
|
@@ -2043,10 +2043,10 @@ default: string;
|
|
|
2043
2043
|
* The type of the input field.
|
|
2044
2044
|
* @type {string}
|
|
2045
2045
|
* @default "text"
|
|
2046
|
-
* @validator value {string}
|
|
2046
|
+
* @validator value {string}
|
|
2047
2047
|
*/
|
|
2048
2048
|
type: {
|
|
2049
|
-
type: PropType<"text" | "
|
|
2049
|
+
type: PropType<"text" | "number">;
|
|
2050
2050
|
default: string;
|
|
2051
2051
|
validator(value: string): boolean;
|
|
2052
2052
|
};
|
|
@@ -2056,7 +2056,7 @@ validator(value: string): boolean;
|
|
|
2056
2056
|
* @default "numeric"
|
|
2057
2057
|
*/
|
|
2058
2058
|
inputmode: {
|
|
2059
|
-
type: PropType<"
|
|
2059
|
+
type: PropType<InputHTMLAttributes["inputmode"]>;
|
|
2060
2060
|
default: string;
|
|
2061
2061
|
validator(value: string): boolean;
|
|
2062
2062
|
};
|
|
@@ -2101,10 +2101,10 @@ default: boolean;
|
|
|
2101
2101
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
2102
2102
|
onValid?: (...args: any[]) => any;
|
|
2103
2103
|
}>, {
|
|
2104
|
-
type: "
|
|
2104
|
+
type: "number" | "text";
|
|
2105
2105
|
modelValue: string | number;
|
|
2106
2106
|
id: string;
|
|
2107
|
-
inputmode: "text" | "numeric" | "decimal";
|
|
2107
|
+
inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
2108
2108
|
rules: RuleFunction[];
|
|
2109
2109
|
emitMaskaDetails: boolean;
|
|
2110
2110
|
}, {}, {}, {
|
|
@@ -2662,6 +2662,331 @@ required: boolean;
|
|
|
2662
2662
|
items: any[];
|
|
2663
2663
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2664
2664
|
|
|
2665
|
+
export declare const WraSeparateDateInput: DefineComponent<ExtractPropTypes< {
|
|
2666
|
+
/**
|
|
2667
|
+
* The value of the date input (object with day, month, year properties).
|
|
2668
|
+
* @default null
|
|
2669
|
+
*/
|
|
2670
|
+
modelValue: {
|
|
2671
|
+
type: PropType<{
|
|
2672
|
+
day: number | null;
|
|
2673
|
+
month: number | null;
|
|
2674
|
+
year: number | null;
|
|
2675
|
+
} | null>;
|
|
2676
|
+
default: any;
|
|
2677
|
+
};
|
|
2678
|
+
/**
|
|
2679
|
+
* The label for the day input field.
|
|
2680
|
+
* @type {string}
|
|
2681
|
+
* @default "Day"
|
|
2682
|
+
*/
|
|
2683
|
+
dayLabel: {
|
|
2684
|
+
type: PropType<string>;
|
|
2685
|
+
required: false;
|
|
2686
|
+
default: string;
|
|
2687
|
+
};
|
|
2688
|
+
/**
|
|
2689
|
+
* The label for the month input field.
|
|
2690
|
+
* @type {string}
|
|
2691
|
+
* @default "Month"
|
|
2692
|
+
*/
|
|
2693
|
+
monthLabel: {
|
|
2694
|
+
type: PropType<string>;
|
|
2695
|
+
required: false;
|
|
2696
|
+
default: string;
|
|
2697
|
+
};
|
|
2698
|
+
/**
|
|
2699
|
+
* The label for the year input field.
|
|
2700
|
+
* @type {string}
|
|
2701
|
+
* @default "Year"
|
|
2702
|
+
*/
|
|
2703
|
+
yearLabel: {
|
|
2704
|
+
type: PropType<string>;
|
|
2705
|
+
required: false;
|
|
2706
|
+
default: string;
|
|
2707
|
+
};
|
|
2708
|
+
/**
|
|
2709
|
+
* The ID for the input fields.
|
|
2710
|
+
* @type {string}
|
|
2711
|
+
* @required
|
|
2712
|
+
* @default "dateInput"
|
|
2713
|
+
*/
|
|
2714
|
+
id: {
|
|
2715
|
+
type: PropType<string>;
|
|
2716
|
+
required: true;
|
|
2717
|
+
default: string;
|
|
2718
|
+
};
|
|
2719
|
+
/**
|
|
2720
|
+
* The input mode for the input fields.
|
|
2721
|
+
* @type {string}
|
|
2722
|
+
* @default "numeric"
|
|
2723
|
+
* @validator value {string}
|
|
2724
|
+
*/
|
|
2725
|
+
inputmode: {
|
|
2726
|
+
type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
|
|
2727
|
+
default: string;
|
|
2728
|
+
validator(value: string): boolean;
|
|
2729
|
+
};
|
|
2730
|
+
/**
|
|
2731
|
+
* Placeholder for day input field.
|
|
2732
|
+
* @type {string}
|
|
2733
|
+
* @default "DD"
|
|
2734
|
+
*/
|
|
2735
|
+
placeholderDay: {
|
|
2736
|
+
type: PropType<string>;
|
|
2737
|
+
required: false;
|
|
2738
|
+
default: string;
|
|
2739
|
+
};
|
|
2740
|
+
/**
|
|
2741
|
+
* Placeholder for month input field.
|
|
2742
|
+
* @type {string}
|
|
2743
|
+
* @default "MM"
|
|
2744
|
+
*/
|
|
2745
|
+
placeholderMonth: {
|
|
2746
|
+
type: PropType<string>;
|
|
2747
|
+
required: false;
|
|
2748
|
+
default: string;
|
|
2749
|
+
};
|
|
2750
|
+
/**
|
|
2751
|
+
* Placeholder for year input field.
|
|
2752
|
+
* @type {string}
|
|
2753
|
+
* @default "YYYY"
|
|
2754
|
+
*/
|
|
2755
|
+
placeholderYear: {
|
|
2756
|
+
type: PropType<string>;
|
|
2757
|
+
required: false;
|
|
2758
|
+
default: string;
|
|
2759
|
+
};
|
|
2760
|
+
/**
|
|
2761
|
+
* Automatically advance focus to the next field when max characters are reached.
|
|
2762
|
+
* @type {boolean}
|
|
2763
|
+
* @default false
|
|
2764
|
+
*/
|
|
2765
|
+
autoAdvance: {
|
|
2766
|
+
type: PropType<boolean>;
|
|
2767
|
+
required: false;
|
|
2768
|
+
default: boolean;
|
|
2769
|
+
};
|
|
2770
|
+
/**
|
|
2771
|
+
* Maximum width for day input field.
|
|
2772
|
+
* @type {string}
|
|
2773
|
+
* @default "47px"
|
|
2774
|
+
*/
|
|
2775
|
+
dayInputWidth: {
|
|
2776
|
+
type: PropType<string>;
|
|
2777
|
+
required: false;
|
|
2778
|
+
default: string;
|
|
2779
|
+
};
|
|
2780
|
+
/**
|
|
2781
|
+
* Maximum width for month input field.
|
|
2782
|
+
* @type {string}
|
|
2783
|
+
* @default "47px"
|
|
2784
|
+
*/
|
|
2785
|
+
monthInputWidth: {
|
|
2786
|
+
type: PropType<string>;
|
|
2787
|
+
required: false;
|
|
2788
|
+
default: string;
|
|
2789
|
+
};
|
|
2790
|
+
/**
|
|
2791
|
+
* Maximum width for year input field.
|
|
2792
|
+
* @type {string}
|
|
2793
|
+
* @default "72px"
|
|
2794
|
+
*/
|
|
2795
|
+
yearInputWidth: {
|
|
2796
|
+
type: PropType<string>;
|
|
2797
|
+
required: false;
|
|
2798
|
+
default: string;
|
|
2799
|
+
};
|
|
2800
|
+
}>, {}, {
|
|
2801
|
+
day: string;
|
|
2802
|
+
month: string;
|
|
2803
|
+
year: string;
|
|
2804
|
+
}, {}, {
|
|
2805
|
+
/**
|
|
2806
|
+
* Gets the current date object to emit.
|
|
2807
|
+
*/
|
|
2808
|
+
getDateObject(): {
|
|
2809
|
+
day: number | null;
|
|
2810
|
+
month: number | null;
|
|
2811
|
+
year: number | null;
|
|
2812
|
+
};
|
|
2813
|
+
/**
|
|
2814
|
+
* Handles day input.
|
|
2815
|
+
*/
|
|
2816
|
+
onDayInput(event: Event): void;
|
|
2817
|
+
/**
|
|
2818
|
+
* Handles month input.
|
|
2819
|
+
*/
|
|
2820
|
+
onMonthInput(event: Event): void;
|
|
2821
|
+
/**
|
|
2822
|
+
* Handles year input.
|
|
2823
|
+
*/
|
|
2824
|
+
onYearInput(event: Event): void;
|
|
2825
|
+
/**
|
|
2826
|
+
* Emits the update with the constructed date object.
|
|
2827
|
+
*/
|
|
2828
|
+
emitUpdate(): void;
|
|
2829
|
+
/**
|
|
2830
|
+
* Sets the initial state based on modelValue prop.
|
|
2831
|
+
*/
|
|
2832
|
+
setInitialState(): void;
|
|
2833
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
2834
|
+
/**
|
|
2835
|
+
* The value of the date input (object with day, month, year properties).
|
|
2836
|
+
* @default null
|
|
2837
|
+
*/
|
|
2838
|
+
modelValue: {
|
|
2839
|
+
type: PropType<{
|
|
2840
|
+
day: number | null;
|
|
2841
|
+
month: number | null;
|
|
2842
|
+
year: number | null;
|
|
2843
|
+
} | null>;
|
|
2844
|
+
default: any;
|
|
2845
|
+
};
|
|
2846
|
+
/**
|
|
2847
|
+
* The label for the day input field.
|
|
2848
|
+
* @type {string}
|
|
2849
|
+
* @default "Day"
|
|
2850
|
+
*/
|
|
2851
|
+
dayLabel: {
|
|
2852
|
+
type: PropType<string>;
|
|
2853
|
+
required: false;
|
|
2854
|
+
default: string;
|
|
2855
|
+
};
|
|
2856
|
+
/**
|
|
2857
|
+
* The label for the month input field.
|
|
2858
|
+
* @type {string}
|
|
2859
|
+
* @default "Month"
|
|
2860
|
+
*/
|
|
2861
|
+
monthLabel: {
|
|
2862
|
+
type: PropType<string>;
|
|
2863
|
+
required: false;
|
|
2864
|
+
default: string;
|
|
2865
|
+
};
|
|
2866
|
+
/**
|
|
2867
|
+
* The label for the year input field.
|
|
2868
|
+
* @type {string}
|
|
2869
|
+
* @default "Year"
|
|
2870
|
+
*/
|
|
2871
|
+
yearLabel: {
|
|
2872
|
+
type: PropType<string>;
|
|
2873
|
+
required: false;
|
|
2874
|
+
default: string;
|
|
2875
|
+
};
|
|
2876
|
+
/**
|
|
2877
|
+
* The ID for the input fields.
|
|
2878
|
+
* @type {string}
|
|
2879
|
+
* @required
|
|
2880
|
+
* @default "dateInput"
|
|
2881
|
+
*/
|
|
2882
|
+
id: {
|
|
2883
|
+
type: PropType<string>;
|
|
2884
|
+
required: true;
|
|
2885
|
+
default: string;
|
|
2886
|
+
};
|
|
2887
|
+
/**
|
|
2888
|
+
* The input mode for the input fields.
|
|
2889
|
+
* @type {string}
|
|
2890
|
+
* @default "numeric"
|
|
2891
|
+
* @validator value {string}
|
|
2892
|
+
*/
|
|
2893
|
+
inputmode: {
|
|
2894
|
+
type: PropType<"numeric" | "search" | "text" | "email" | "tel" | "url" | "none" | "decimal">;
|
|
2895
|
+
default: string;
|
|
2896
|
+
validator(value: string): boolean;
|
|
2897
|
+
};
|
|
2898
|
+
/**
|
|
2899
|
+
* Placeholder for day input field.
|
|
2900
|
+
* @type {string}
|
|
2901
|
+
* @default "DD"
|
|
2902
|
+
*/
|
|
2903
|
+
placeholderDay: {
|
|
2904
|
+
type: PropType<string>;
|
|
2905
|
+
required: false;
|
|
2906
|
+
default: string;
|
|
2907
|
+
};
|
|
2908
|
+
/**
|
|
2909
|
+
* Placeholder for month input field.
|
|
2910
|
+
* @type {string}
|
|
2911
|
+
* @default "MM"
|
|
2912
|
+
*/
|
|
2913
|
+
placeholderMonth: {
|
|
2914
|
+
type: PropType<string>;
|
|
2915
|
+
required: false;
|
|
2916
|
+
default: string;
|
|
2917
|
+
};
|
|
2918
|
+
/**
|
|
2919
|
+
* Placeholder for year input field.
|
|
2920
|
+
* @type {string}
|
|
2921
|
+
* @default "YYYY"
|
|
2922
|
+
*/
|
|
2923
|
+
placeholderYear: {
|
|
2924
|
+
type: PropType<string>;
|
|
2925
|
+
required: false;
|
|
2926
|
+
default: string;
|
|
2927
|
+
};
|
|
2928
|
+
/**
|
|
2929
|
+
* Automatically advance focus to the next field when max characters are reached.
|
|
2930
|
+
* @type {boolean}
|
|
2931
|
+
* @default false
|
|
2932
|
+
*/
|
|
2933
|
+
autoAdvance: {
|
|
2934
|
+
type: PropType<boolean>;
|
|
2935
|
+
required: false;
|
|
2936
|
+
default: boolean;
|
|
2937
|
+
};
|
|
2938
|
+
/**
|
|
2939
|
+
* Maximum width for day input field.
|
|
2940
|
+
* @type {string}
|
|
2941
|
+
* @default "47px"
|
|
2942
|
+
*/
|
|
2943
|
+
dayInputWidth: {
|
|
2944
|
+
type: PropType<string>;
|
|
2945
|
+
required: false;
|
|
2946
|
+
default: string;
|
|
2947
|
+
};
|
|
2948
|
+
/**
|
|
2949
|
+
* Maximum width for month input field.
|
|
2950
|
+
* @type {string}
|
|
2951
|
+
* @default "47px"
|
|
2952
|
+
*/
|
|
2953
|
+
monthInputWidth: {
|
|
2954
|
+
type: PropType<string>;
|
|
2955
|
+
required: false;
|
|
2956
|
+
default: string;
|
|
2957
|
+
};
|
|
2958
|
+
/**
|
|
2959
|
+
* Maximum width for year input field.
|
|
2960
|
+
* @type {string}
|
|
2961
|
+
* @default "72px"
|
|
2962
|
+
*/
|
|
2963
|
+
yearInputWidth: {
|
|
2964
|
+
type: PropType<string>;
|
|
2965
|
+
required: false;
|
|
2966
|
+
default: string;
|
|
2967
|
+
};
|
|
2968
|
+
}>> & Readonly<{
|
|
2969
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
2970
|
+
}>, {
|
|
2971
|
+
modelValue: {
|
|
2972
|
+
day: number | null;
|
|
2973
|
+
month: number | null;
|
|
2974
|
+
year: number | null;
|
|
2975
|
+
};
|
|
2976
|
+
id: string;
|
|
2977
|
+
inputmode: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
2978
|
+
dayLabel: string;
|
|
2979
|
+
monthLabel: string;
|
|
2980
|
+
yearLabel: string;
|
|
2981
|
+
placeholderDay: string;
|
|
2982
|
+
placeholderMonth: string;
|
|
2983
|
+
placeholderYear: string;
|
|
2984
|
+
autoAdvance: boolean;
|
|
2985
|
+
dayInputWidth: string;
|
|
2986
|
+
monthInputWidth: string;
|
|
2987
|
+
yearInputWidth: string;
|
|
2988
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2989
|
+
|
|
2665
2990
|
export declare const WraServiceLogo: DefineComponent<ExtractPropTypes< {
|
|
2666
2991
|
/**
|
|
2667
2992
|
* The URL or path to the logo image to display.
|