@dcodegroup-au/dsg-vue 0.0.12-alpha.2 → 0.0.12-alpha.4
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/components/Elements/DsgDatepicker.vue.d.ts +12 -14
- package/dist/components/Elements/DsgInput.vue.d.ts +5 -6
- package/dist/dsg-vue.cjs +1 -1
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.esm.js +1003 -1003
- package/dist/main.d.ts +30 -40
- package/package.json +9 -9
|
@@ -545,15 +545,16 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
545
545
|
readonly websiteHttps?: boolean | undefined;
|
|
546
546
|
readonly websiteWww?: boolean | undefined;
|
|
547
547
|
readonly validateOnInput?: boolean | undefined;
|
|
548
|
-
readonly
|
|
548
|
+
readonly validationPatterns?: import('./DsgInput.vue').DsgInputValidationPattern[] | undefined;
|
|
549
549
|
readonly hideHintOnError?: boolean | undefined;
|
|
550
550
|
readonly minLength?: number | undefined;
|
|
551
551
|
readonly classes?: string | undefined;
|
|
552
|
-
readonly hasError?: boolean | undefined;
|
|
553
552
|
readonly errors?: string[] | undefined;
|
|
554
553
|
readonly hasCopyButton?: boolean | undefined;
|
|
555
554
|
readonly preventDefault?: boolean | undefined;
|
|
556
555
|
readonly iconClickable?: boolean | undefined;
|
|
556
|
+
readonly allowableCharacters?: (string | string[] | RegExp) | undefined;
|
|
557
|
+
readonly formatter?: Function | undefined;
|
|
557
558
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
558
559
|
$attrs: {
|
|
559
560
|
[x: string]: unknown;
|
|
@@ -588,10 +589,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
588
589
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
589
590
|
}>, {
|
|
590
591
|
focus: (isFocused?: boolean) => void;
|
|
591
|
-
validate: () =>
|
|
592
|
+
validate: () => void;
|
|
592
593
|
callbackValidation: (callback: Function) => void;
|
|
593
594
|
setErrors: (errors: string[]) => void;
|
|
594
|
-
setHasErrors: (hasErrors: boolean) => void;
|
|
595
595
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
596
596
|
[x: string]: any;
|
|
597
597
|
} & {
|
|
@@ -620,12 +620,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
620
620
|
modelValue?: any;
|
|
621
621
|
} & import('./DsgInput.vue').DsgInputProps> & Readonly<{
|
|
622
622
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
623
|
-
}>, "focus" | "validate" | "callbackValidation" | "setErrors"
|
|
623
|
+
}>, "focus" | "validate" | "callbackValidation" | "setErrors"> & import('vue').ShallowUnwrapRef<{
|
|
624
624
|
focus: (isFocused?: boolean) => void;
|
|
625
|
-
validate: () =>
|
|
625
|
+
validate: () => void;
|
|
626
626
|
callbackValidation: (callback: Function) => void;
|
|
627
627
|
setErrors: (errors: string[]) => void;
|
|
628
|
-
setHasErrors: (hasErrors: boolean) => void;
|
|
629
628
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
630
629
|
$slots: {
|
|
631
630
|
'dsg-input--tooltip-content'?(_: {}): any;
|
|
@@ -658,15 +657,16 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
658
657
|
readonly websiteHttps?: boolean | undefined;
|
|
659
658
|
readonly websiteWww?: boolean | undefined;
|
|
660
659
|
readonly validateOnInput?: boolean | undefined;
|
|
661
|
-
readonly
|
|
660
|
+
readonly validationPatterns?: import('./DsgInput.vue').DsgInputValidationPattern[] | undefined;
|
|
662
661
|
readonly hideHintOnError?: boolean | undefined;
|
|
663
662
|
readonly minLength?: number | undefined;
|
|
664
663
|
readonly classes?: string | undefined;
|
|
665
|
-
readonly hasError?: boolean | undefined;
|
|
666
664
|
readonly errors?: string[] | undefined;
|
|
667
665
|
readonly hasCopyButton?: boolean | undefined;
|
|
668
666
|
readonly preventDefault?: boolean | undefined;
|
|
669
667
|
readonly iconClickable?: boolean | undefined;
|
|
668
|
+
readonly allowableCharacters?: (string | string[] | RegExp) | undefined;
|
|
669
|
+
readonly formatter?: Function | undefined;
|
|
670
670
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
671
671
|
$attrs: {
|
|
672
672
|
[x: string]: unknown;
|
|
@@ -701,10 +701,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
701
701
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
702
702
|
}>, {
|
|
703
703
|
focus: (isFocused?: boolean) => void;
|
|
704
|
-
validate: () =>
|
|
704
|
+
validate: () => void;
|
|
705
705
|
callbackValidation: (callback: Function) => void;
|
|
706
706
|
setErrors: (errors: string[]) => void;
|
|
707
|
-
setHasErrors: (hasErrors: boolean) => void;
|
|
708
707
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
709
708
|
[x: string]: any;
|
|
710
709
|
} & {
|
|
@@ -733,12 +732,11 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
733
732
|
modelValue?: any;
|
|
734
733
|
} & import('./DsgInput.vue').DsgInputProps> & Readonly<{
|
|
735
734
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
736
|
-
}>, "focus" | "validate" | "callbackValidation" | "setErrors"
|
|
735
|
+
}>, "focus" | "validate" | "callbackValidation" | "setErrors"> & import('vue').ShallowUnwrapRef<{
|
|
737
736
|
focus: (isFocused?: boolean) => void;
|
|
738
|
-
validate: () =>
|
|
737
|
+
validate: () => void;
|
|
739
738
|
callbackValidation: (callback: Function) => void;
|
|
740
739
|
setErrors: (errors: string[]) => void;
|
|
741
|
-
setHasErrors: (hasErrors: boolean) => void;
|
|
742
740
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
743
741
|
$slots: {
|
|
744
742
|
'dsg-input--tooltip-content'?(_: {}): any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
1
|
/**
|
|
3
2
|
* ------------------------------------------------
|
|
4
3
|
* # Setup: Props
|
|
@@ -15,7 +14,7 @@ export interface DsgInputPhoneFormat {
|
|
|
15
14
|
format: string;
|
|
16
15
|
}
|
|
17
16
|
export interface DsgInputValidationPattern {
|
|
18
|
-
pattern: string;
|
|
17
|
+
pattern: string | RegExp | Function;
|
|
19
18
|
error: string;
|
|
20
19
|
}
|
|
21
20
|
export type DsgInputTheme = "default" | "phone" | "currency" | "website" | "copy" | "credit-card" | "tags" | "textarea" | "textarea-tags";
|
|
@@ -45,15 +44,16 @@ export interface DsgInputProps {
|
|
|
45
44
|
websiteHttps?: boolean;
|
|
46
45
|
websiteWww?: boolean;
|
|
47
46
|
validateOnInput?: boolean;
|
|
48
|
-
|
|
47
|
+
validationPatterns?: DsgInputValidationPattern[];
|
|
49
48
|
hideHintOnError?: boolean;
|
|
50
49
|
minLength?: number;
|
|
51
50
|
classes?: string;
|
|
52
|
-
hasError?: boolean;
|
|
53
51
|
errors?: string[];
|
|
54
52
|
hasCopyButton?: boolean;
|
|
55
53
|
preventDefault?: boolean;
|
|
56
54
|
iconClickable?: boolean;
|
|
55
|
+
allowableCharacters?: string | string[] | RegExp;
|
|
56
|
+
formatter?: Function;
|
|
57
57
|
}
|
|
58
58
|
type __VLS_Props = DsgInputProps;
|
|
59
59
|
type __VLS_PublicProps = {
|
|
@@ -83,10 +83,9 @@ declare function __VLS_template(): {
|
|
|
83
83
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
84
84
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
85
85
|
focus: (isFocused?: boolean) => void;
|
|
86
|
-
validate: () =>
|
|
86
|
+
validate: () => void;
|
|
87
87
|
callbackValidation: (callback: Function) => void;
|
|
88
88
|
setErrors: (errors: string[]) => void;
|
|
89
|
-
setHasErrors: (hasErrors: boolean) => void;
|
|
90
89
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
91
90
|
[x: string]: any;
|
|
92
91
|
} & {
|