pdap-design-system 3.1.0-beta.3 → 3.1.0-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/FormV2/PdapFormV2.vue.d.ts +26 -17
- package/dist/components/InputCheckbox/PdapInputCheckbox.vue.d.ts +2 -6
- package/dist/components/InputDatePicker/PdapInputDatePicker.vue.d.ts +21 -0
- package/dist/components/InputDatePicker/index.d.ts +1 -0
- package/dist/components/InputDatePicker/types.d.ts +6 -0
- package/dist/components/InputPassword/PdapInputPassword.vue.d.ts +2 -6
- package/dist/components/InputRadio/PdapInputRadio.vue.d.ts +19 -0
- package/dist/components/InputRadio/index.d.ts +1 -0
- package/dist/components/InputRadio/types.d.ts +7 -0
- package/dist/components/InputRadioGroup/PdapInputRadioGroup.vue.d.ts +23 -0
- package/dist/components/InputRadioGroup/index.d.ts +1 -0
- package/dist/components/InputSelect/PdapInputSelect.vue.d.ts +44 -0
- package/dist/components/InputSelect/index.d.ts +1 -0
- package/dist/components/InputSelect/types.d.ts +13 -0
- package/dist/components/InputText/PdapInputText.vue.d.ts +2 -6
- package/dist/components/InputTextArea/PdapInputTextArea.vue.d.ts +34 -0
- package/dist/components/InputTextArea/index.d.ts +1 -0
- package/dist/components/InputTextArea/types.d.ts +6 -0
- package/dist/components/Spinner/PdapSpinner.vue.d.ts +1 -1
- package/dist/components/index.d.ts +5 -0
- package/dist/index.cjs +11 -11
- package/dist/index.d.ts +5 -1
- package/dist/index.js +11709 -2511
- package/dist/styles.css +1 -1
- package/dist/utils/vuelidate.d.ts +7 -0
- package/docs/components.md +3 -0
- package/package.json +3 -1
@@ -1,19 +1,36 @@
|
|
1
1
|
import { PdapFormPropsV2 } from './types';
|
2
2
|
declare const values: import("vue").Ref<Record<PropertyKey, unknown>>;
|
3
3
|
declare function setValues(val: Partial<typeof values.value>): void;
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<
|
5
|
-
error: null;
|
6
|
-
}>, {
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapFormPropsV2>, {
|
7
5
|
setValues: typeof setValues;
|
6
|
+
v$: import("vue").Ref<import("@vuelidate/core").Validation<Record<string, {
|
7
|
+
[x: string]: import("@vuelidate/core").ValidationRuleWithParams<{
|
8
|
+
max: number;
|
9
|
+
}, any> | import("@vuelidate/core").ValidationRuleWithParams<{
|
10
|
+
min: number;
|
11
|
+
}, any>;
|
12
|
+
} | {
|
13
|
+
[x: string]: import("@vuelidate/core").ValidationRuleWithParams<object, any>;
|
14
|
+
} | {
|
15
|
+
required: import("@vuelidate/core").ValidationRuleWithoutParams<any>;
|
16
|
+
} | {
|
17
|
+
required: import("@vuelidate/core").ValidationRuleWithParams<object, any>;
|
18
|
+
} | {
|
19
|
+
email: import("@vuelidate/core").ValidationRuleWithoutParams<any>;
|
20
|
+
} | {
|
21
|
+
email: import("@vuelidate/core").ValidationRuleWithParams<object, any>;
|
22
|
+
} | {
|
23
|
+
password: any;
|
24
|
+
}>, Record<PropertyKey, unknown>>>;
|
8
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
26
|
+
change: (...args: any[]) => void;
|
27
|
+
error: (...args: any[]) => void;
|
9
28
|
submit: (...args: any[]) => void;
|
10
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<
|
11
|
-
|
12
|
-
}>>> & {
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapFormPropsV2>>> & {
|
30
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
13
31
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
14
|
-
|
15
|
-
|
16
|
-
}, {}>, {
|
32
|
+
onError?: ((...args: any[]) => any) | undefined;
|
33
|
+
}, {}, {}>, {
|
17
34
|
error?(_: {}): any;
|
18
35
|
default?(_: {}): any;
|
19
36
|
}>;
|
@@ -27,14 +44,6 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
44
|
required: true;
|
28
45
|
};
|
29
46
|
};
|
30
|
-
type __VLS_WithDefaults<P, D> = {
|
31
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
32
|
-
default: D[K];
|
33
|
-
}> : P[K];
|
34
|
-
};
|
35
|
-
type __VLS_Prettify<T> = {
|
36
|
-
[K in keyof T]: T[K];
|
37
|
-
} & {};
|
38
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
39
48
|
new (): {
|
40
49
|
$slots: S;
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import { PdapInputCheckboxProps } from './types';
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapInputCheckboxProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapInputCheckboxProps>>>, {}, {}>, {
|
3
|
-
error?(_: {
|
4
|
-
|
5
|
-
}): any;
|
6
|
-
label?(_: {
|
7
|
-
for: string;
|
8
|
-
}): any;
|
3
|
+
error?(_: {}): any;
|
4
|
+
label?(_: {}): any;
|
9
5
|
}>;
|
10
6
|
export default _default;
|
11
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import '@vuepic/vue-datepicker/dist/main.css';
|
2
|
+
import { PdapDatePickerProps } from './types';
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapDatePickerProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapDatePickerProps>>>, {}, {}>, {
|
4
|
+
label?(_: {}): any;
|
5
|
+
error?(_: {}): any;
|
6
|
+
}>;
|
7
|
+
export default _default;
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
12
|
+
} : {
|
13
|
+
type: import('vue').PropType<T[K]>;
|
14
|
+
required: true;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
18
|
+
new (): {
|
19
|
+
$slots: S;
|
20
|
+
};
|
21
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as InputDatePicker } from './PdapInputDatePicker.vue';
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import { PdapInputTextProps } from '../InputText/types';
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapInputTextProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapInputTextProps>>>, {}, {}>, {
|
3
|
-
|
4
|
-
|
5
|
-
}): any;
|
6
|
-
label?(_: {
|
7
|
-
for: string;
|
8
|
-
}): any;
|
3
|
+
label?(_: {}): any;
|
4
|
+
error?(_: {}): any;
|
9
5
|
}>;
|
10
6
|
export default _default;
|
11
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { PdapInputRadioProps } from './types';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapInputRadioProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapInputRadioProps>>>, {}, {}>, {
|
3
|
+
label?(_: {}): any;
|
4
|
+
}>;
|
5
|
+
export default _default;
|
6
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
7
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
8
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
9
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
10
|
+
} : {
|
11
|
+
type: import('vue').PropType<T[K]>;
|
12
|
+
required: true;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
16
|
+
new (): {
|
17
|
+
$slots: S;
|
18
|
+
};
|
19
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as InputRadio } from './PdapInputRadio.vue';
|
@@ -0,0 +1,23 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
2
|
+
name: string;
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
4
|
+
name: string;
|
5
|
+
}>>>, {}, {}>, {
|
6
|
+
error?(_: {}): any;
|
7
|
+
default?(_: {}): any;
|
8
|
+
}>;
|
9
|
+
export default _default;
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
14
|
+
} : {
|
15
|
+
type: import('vue').PropType<T[K]>;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
20
|
+
new (): {
|
21
|
+
$slots: S;
|
22
|
+
};
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as RadioGroup } from './PdapInputRadioGroup.vue';
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { PdapSelectOption as Option, PdapInputSelectProps } from './types';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
3
|
+
combobox: boolean;
|
4
|
+
placeholder: string;
|
5
|
+
filter: (searchText: any, options: any) => any;
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
7
|
+
change: (...args: any[]) => void;
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
9
|
+
combobox: boolean;
|
10
|
+
placeholder: string;
|
11
|
+
filter: (searchText: any, options: any) => any;
|
12
|
+
}>>> & {
|
13
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
14
|
+
}, {
|
15
|
+
filter: (searchText: string, options: Option[]) => Option[];
|
16
|
+
placeholder: string;
|
17
|
+
combobox: boolean;
|
18
|
+
}, {}>, {
|
19
|
+
label?(_: {}): any;
|
20
|
+
error?(_: {}): any;
|
21
|
+
}>;
|
22
|
+
export default _default;
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
27
|
+
} : {
|
28
|
+
type: import('vue').PropType<T[K]>;
|
29
|
+
required: true;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
34
|
+
default: D[K];
|
35
|
+
}> : P[K];
|
36
|
+
};
|
37
|
+
type __VLS_Prettify<T> = {
|
38
|
+
[K in keyof T]: T[K];
|
39
|
+
} & {};
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
41
|
+
new (): {
|
42
|
+
$slots: S;
|
43
|
+
};
|
44
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as InputSelect } from './PdapInputSelect.vue';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface PdapSelectOption {
|
2
|
+
value: string;
|
3
|
+
label: string;
|
4
|
+
}
|
5
|
+
export interface PdapInputSelectProps {
|
6
|
+
id: string;
|
7
|
+
label?: string;
|
8
|
+
name: string;
|
9
|
+
placeholder?: string;
|
10
|
+
options: PdapSelectOption[];
|
11
|
+
combobox?: boolean;
|
12
|
+
filter?: (searchText: string, options: PdapSelectOption[]) => PdapSelectOption[];
|
13
|
+
}
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import { PdapInputTextProps } from './types';
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<PdapInputTextProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapInputTextProps>>>, {}, {}>, {
|
3
|
-
|
4
|
-
|
5
|
-
}): any;
|
6
|
-
label?(_: {
|
7
|
-
for: string;
|
8
|
-
}): any;
|
3
|
+
label?(_: {}): any;
|
4
|
+
error?(_: {}): any;
|
9
5
|
}>;
|
10
6
|
export default _default;
|
11
7
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { PdapInputTextAreaProps } from './types';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputTextAreaProps>, {
|
3
|
+
placeholder: string;
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputTextAreaProps>, {
|
5
|
+
placeholder: string;
|
6
|
+
}>>>, {
|
7
|
+
placeholder: string;
|
8
|
+
}, {}>, {
|
9
|
+
label?(_: {}): any;
|
10
|
+
error?(_: {}): any;
|
11
|
+
}>;
|
12
|
+
export default _default;
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
17
|
+
} : {
|
18
|
+
type: import('vue').PropType<T[K]>;
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
24
|
+
default: D[K];
|
25
|
+
}> : P[K];
|
26
|
+
};
|
27
|
+
type __VLS_Prettify<T> = {
|
28
|
+
[K in keyof T]: T[K];
|
29
|
+
} & {};
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
31
|
+
new (): {
|
32
|
+
$slots: S;
|
33
|
+
};
|
34
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as InputTextArea } from './PdapInputTextArea.vue';
|
@@ -5,8 +5,13 @@ export { Form } from './Form';
|
|
5
5
|
export { FormV2 } from './FormV2';
|
6
6
|
export { Input } from './Input';
|
7
7
|
export { InputCheckbox } from './InputCheckbox';
|
8
|
+
export { InputDatePicker } from './InputDatePicker';
|
8
9
|
export { InputPassword } from './InputPassword';
|
10
|
+
export { InputRadio } from './InputRadio';
|
11
|
+
export { RadioGroup } from './InputRadioGroup';
|
12
|
+
export { InputSelect } from './InputSelect';
|
9
13
|
export { InputText } from './InputText';
|
14
|
+
export { InputTextArea } from './InputTextArea';
|
10
15
|
export { Header } from './Header';
|
11
16
|
export { Nav } from './Nav';
|
12
17
|
export { QuickSearchForm } from './QuickSearchForm';
|