pdap-design-system 3.1.0-beta.9 → 3.2.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/README.md +1 -1
- package/dist/components/AsyncTypeahead/AsyncTypeahead.vue.d.ts +88 -0
- package/dist/components/AsyncTypeahead/index.d.ts +1 -0
- package/dist/components/AsyncTypeahead/types.d.ts +8 -0
- package/dist/components/ErrorBoundary/PdapErrorBoundary.vue.d.ts +3 -3
- package/dist/components/Footer/PdapFooter.vue.d.ts +1 -31
- package/dist/components/Footer/constants.d.ts +12 -0
- package/dist/components/Footer/index.d.ts +1 -0
- package/dist/components/Footer/types.d.ts +3 -4
- package/dist/components/Form/PdapForm.vue.d.ts +1 -1
- package/dist/components/Form/types.d.ts +4 -15
- package/dist/components/FormV2/PdapFormV2.vue.d.ts +16 -18
- package/dist/components/FormV2/types.d.ts +4 -14
- package/dist/components/Header/PdapHeader.vue.d.ts +4 -7
- package/dist/components/Header/types.d.ts +1 -2
- 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/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 +16 -3
- package/dist/components/InputSelect/types.d.ts +3 -0
- package/dist/components/InputSelectMulti/PdapInputSelectMulti.vue.d.ts +41 -0
- package/dist/components/InputSelectMulti/index.d.ts +1 -0
- package/dist/components/InputSelectMulti/types.d.ts +12 -0
- package/dist/components/Nav/types.d.ts +4 -1
- package/dist/components/Spinner/PdapSpinner.vue.d.ts +1 -1
- package/dist/components/index.d.ts +7 -2
- package/dist/demo/pages/TypeaheadDemo.vue.d.ts +2 -0
- package/dist/index.cjs +11 -11
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12585 -3313
- package/dist/styles.css +1 -1
- package/dist/utils/format.d.ts +1 -0
- package/dist/utils/isKey.d.ts +1 -0
- package/dist/utils/vuelidate.d.ts +10 -43
- package/docs/components.md +4 -0
- package/package.json +3 -1
package/README.md
CHANGED
@@ -6,7 +6,7 @@ _A `Vue` component library, styling system, and image asset repository for PDAP-
|
|
6
6
|
|
7
7
|
[](https://discord.gg/vKhDv7nC8B)
|
8
8
|
|
9
|
-
## Usage
|
9
|
+
## Usage
|
10
10
|
|
11
11
|
1. Install the package
|
12
12
|
|
@@ -0,0 +1,88 @@
|
|
1
|
+
declare const _default: <T>(__VLS_props: {
|
2
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
3
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
4
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
5
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
6
|
+
id: string;
|
7
|
+
placeholder?: string | undefined;
|
8
|
+
items: T[] | undefined;
|
9
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
10
|
+
error?: string | undefined;
|
11
|
+
position?: "top" | "bottom" | undefined;
|
12
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
13
|
+
attrs: any;
|
14
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
15
|
+
slots: {
|
16
|
+
label?(_: {}): any;
|
17
|
+
error?(_: {}): any;
|
18
|
+
item?(_: T): any;
|
19
|
+
"not-found"?(_: {}): any;
|
20
|
+
};
|
21
|
+
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
22
|
+
boldMatchText: (text: string) => string;
|
23
|
+
clearInput: () => void;
|
24
|
+
focusInput: () => void;
|
25
|
+
readonly value: string;
|
26
|
+
}>) => void) | undefined, __VLS_setup?: Promise<{
|
27
|
+
props: {
|
28
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
29
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
30
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
31
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
32
|
+
id: string;
|
33
|
+
placeholder?: string | undefined;
|
34
|
+
items: T[] | undefined;
|
35
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
36
|
+
error?: string | undefined;
|
37
|
+
position?: "top" | "bottom" | undefined;
|
38
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
39
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
40
|
+
boldMatchText: (text: string) => string;
|
41
|
+
clearInput: () => void;
|
42
|
+
focusInput: () => void;
|
43
|
+
readonly value: string;
|
44
|
+
}>): void;
|
45
|
+
attrs: any;
|
46
|
+
slots: {
|
47
|
+
label?(_: {}): any;
|
48
|
+
error?(_: {}): any;
|
49
|
+
item?(_: T): any;
|
50
|
+
"not-found"?(_: {}): any;
|
51
|
+
};
|
52
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
53
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
54
|
+
[key: string]: any;
|
55
|
+
}> & {
|
56
|
+
__ctx?: {
|
57
|
+
props: {
|
58
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
59
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
60
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
61
|
+
onSelectItem?: ((...args: any[]) => any) | undefined;
|
62
|
+
id: string;
|
63
|
+
placeholder?: string | undefined;
|
64
|
+
items: T[] | undefined;
|
65
|
+
formatItemForDisplay?: ((item: T) => string) | undefined;
|
66
|
+
error?: string | undefined;
|
67
|
+
position?: "top" | "bottom" | undefined;
|
68
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
69
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
70
|
+
boldMatchText: (text: string) => string;
|
71
|
+
clearInput: () => void;
|
72
|
+
focusInput: () => void;
|
73
|
+
readonly value: string;
|
74
|
+
}>): void;
|
75
|
+
attrs: any;
|
76
|
+
slots: {
|
77
|
+
label?(_: {}): any;
|
78
|
+
error?(_: {}): any;
|
79
|
+
item?(_: T): any;
|
80
|
+
"not-found"?(_: {}): any;
|
81
|
+
};
|
82
|
+
emit: (event: "onInput" | "onFocus" | "onBlur" | "selectItem", ...args: any[]) => void;
|
83
|
+
} | undefined;
|
84
|
+
};
|
85
|
+
export default _default;
|
86
|
+
type __VLS_Prettify<T> = {
|
87
|
+
[K in keyof T]: T[K];
|
88
|
+
} & {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as AsyncTypeahead } from './AsyncTypeahead.vue';
|
@@ -16,11 +16,11 @@ import { PdapErrorBoundaryProps, PdapErrorEmitted } from './types';
|
|
16
16
|
*
|
17
17
|
* <template>
|
18
18
|
* <AuthWrapper>
|
19
|
-
* <Header
|
19
|
+
* <Header />
|
20
20
|
* <ErrorBoundary component="main">
|
21
21
|
* <router-view />
|
22
22
|
* </ErrorBoundary>
|
23
|
-
* <Footer
|
23
|
+
* <Footer />
|
24
24
|
* </AuthWrapper>
|
25
25
|
* </template>
|
26
26
|
*
|
@@ -53,8 +53,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
53
53
|
}>>> & {
|
54
54
|
onOnError?: ((args_0: PdapErrorEmitted) => any) | undefined;
|
55
55
|
}, {
|
56
|
-
params: Record<string, string>;
|
57
56
|
onError: (error: Error, target?: ComponentPublicInstance | null | undefined, info?: string | undefined) => void;
|
57
|
+
params: Record<string, string>;
|
58
58
|
component: string;
|
59
59
|
}, {}>, {
|
60
60
|
default?(_: {}): any;
|
@@ -1,37 +1,7 @@
|
|
1
|
-
import { PdapFooterProps } from './types';
|
2
1
|
/**
|
3
2
|
* # `Footer`
|
4
3
|
*
|
5
|
-
* ## Props
|
6
|
-
* @prop {string} logoImageSrc Src for the PDAP logo image to be displayed
|
7
|
-
* @prop {string } logoImageAnchorPath Path for the link that wraps the PDAP logo image
|
8
4
|
*
|
9
5
|
*/
|
10
|
-
declare const _default: import("vue").DefineComponent<
|
11
|
-
logoImageSrc: string;
|
12
|
-
logoImageAnchorPath: string;
|
13
|
-
}>, {}, 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<PdapFooterProps>, {
|
14
|
-
logoImageSrc: string;
|
15
|
-
logoImageAnchorPath: string;
|
16
|
-
}>>>, {
|
17
|
-
logoImageSrc: string;
|
18
|
-
logoImageAnchorPath: string;
|
19
|
-
}, {}>;
|
6
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
20
7
|
export default _default;
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
22
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
25
|
-
} : {
|
26
|
-
type: import('vue').PropType<T[K]>;
|
27
|
-
required: true;
|
28
|
-
};
|
29
|
-
};
|
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
|
-
} & {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* Icons for particular footer links
|
3
|
+
*/
|
4
|
+
export declare const FOOTER_LINK_ICONS: {
|
5
|
+
readonly GITHUB: "github";
|
6
|
+
readonly DISCORD: "discord";
|
7
|
+
readonly JOBS: "jobs";
|
8
|
+
readonly NEWSLETTER: "newsletter";
|
9
|
+
readonly DOCS: "docs";
|
10
|
+
readonly EMAIL: "email";
|
11
|
+
readonly PUBLISH: "publish";
|
12
|
+
};
|
@@ -1,9 +1,8 @@
|
|
1
|
+
import { FOOTER_LINK_ICONS } from './constants';
|
1
2
|
export interface PdapFooterSocialLinks {
|
2
3
|
href?: string;
|
3
4
|
path?: string;
|
4
5
|
text: string;
|
6
|
+
icon?: FooterIconName;
|
5
7
|
}
|
6
|
-
export
|
7
|
-
logoImageSrc?: string;
|
8
|
-
logoImageAnchorPath?: string;
|
9
|
-
}
|
8
|
+
export type FooterIconName = (typeof FOOTER_LINK_ICONS)[keyof typeof FOOTER_LINK_ICONS];
|
@@ -113,8 +113,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
113
113
|
}>, {
|
114
114
|
setValues: <T extends Record<string, string>>(update: T) => void;
|
115
115
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
116
|
-
change: (...args: any[]) => void;
|
117
116
|
submit: (...args: any[]) => void;
|
117
|
+
change: (...args: any[]) => void;
|
118
118
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapFormProps>, {
|
119
119
|
error: null;
|
120
120
|
resetOn: string;
|
@@ -1,22 +1,11 @@
|
|
1
1
|
import { PdapInputProps } from '../Input/types';
|
2
|
-
|
2
|
+
import * as validators from '@vuelidate/validators';
|
3
3
|
export interface PdapFormValidator<T> {
|
4
4
|
message?: string;
|
5
|
-
value
|
6
|
-
|
7
|
-
/**
|
8
|
-
* Keyed by currently used validators.
|
9
|
-
* Add any Vuelidate validators or custom ones here as we need them.
|
10
|
-
* See https://vuelidate-next.netlify.app/validators.html#using-builtin-validators for more.
|
11
|
-
*
|
12
|
-
*/
|
13
|
-
export interface PdapFormValidators {
|
14
|
-
maxLength: PdapFormValidator<number>;
|
15
|
-
minLength: PdapFormValidator<number>;
|
16
|
-
required: PdapFormValidator<boolean>;
|
17
|
-
email: PdapFormValidator<boolean>;
|
18
|
-
password: PdapFormValidator<boolean>;
|
5
|
+
value?: T;
|
6
|
+
predicate?: (value: T) => boolean;
|
19
7
|
}
|
8
|
+
export type PdapFormValidators = Record<keyof typeof validators, PdapFormValidator<boolean | string | number>>;
|
20
9
|
export type PdapFormInputProps = PdapInputProps & {
|
21
10
|
validators?: Partial<PdapFormValidators>;
|
22
11
|
};
|
@@ -1,21 +1,27 @@
|
|
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
|
+
password: any;
|
8
|
+
} | {
|
9
|
+
[x: string]: any;
|
10
|
+
custom?: undefined;
|
11
|
+
} | {
|
12
|
+
custom: import("@vuelidate/core").ValidationRuleWithParams<object, any>;
|
13
|
+
} | {
|
14
|
+
custom: ((value: unknown) => boolean) | ((value: unknown) => boolean);
|
15
|
+
} | undefined>, Record<PropertyKey, unknown>>>;
|
8
16
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
-
|
17
|
+
error: (...args: any[]) => void;
|
10
18
|
submit: (...args: any[]) => void;
|
11
|
-
|
12
|
-
|
13
|
-
}>>> & {
|
19
|
+
change: (...args: any[]) => void;
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PdapFormPropsV2>>> & {
|
14
21
|
onChange?: ((...args: any[]) => any) | undefined;
|
15
22
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
16
|
-
|
17
|
-
|
18
|
-
}, {}>, {
|
23
|
+
onError?: ((...args: any[]) => any) | undefined;
|
24
|
+
}, {}, {}>, {
|
19
25
|
error?(_: {}): any;
|
20
26
|
default?(_: {}): any;
|
21
27
|
}>;
|
@@ -29,14 +35,6 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
35
|
required: true;
|
30
36
|
};
|
31
37
|
};
|
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
38
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
41
39
|
new (): {
|
42
40
|
$slots: S;
|
@@ -1,23 +1,13 @@
|
|
1
1
|
import useVuelidate from '@vuelidate/core';
|
2
2
|
import { makeRules } from './util';
|
3
3
|
import { Ref } from 'vue';
|
4
|
+
import * as validators from '@vuelidate/validators';
|
4
5
|
export interface PdapFormValidatorV2<T> {
|
5
6
|
message?: string;
|
6
|
-
value
|
7
|
-
|
8
|
-
/**
|
9
|
-
* Keyed by currently used validators.
|
10
|
-
* Add any Vuelidate validators or custom ones here as we need them.
|
11
|
-
* See https://vuelidate-next.netlify.app/validators.html#using-builtin-validators for more.
|
12
|
-
*
|
13
|
-
*/
|
14
|
-
export interface PdapFormValidatorsV2 {
|
15
|
-
maxLength: PdapFormValidatorV2<number>;
|
16
|
-
minLength: PdapFormValidatorV2<number>;
|
17
|
-
required: PdapFormValidatorV2<boolean>;
|
18
|
-
email: PdapFormValidatorV2<boolean>;
|
19
|
-
password: PdapFormValidatorV2<boolean>;
|
7
|
+
value?: T;
|
8
|
+
predicate?: (value: T) => boolean;
|
20
9
|
}
|
10
|
+
export type PdapFormValidatorsV2 = Record<keyof typeof validators, PdapFormValidatorV2<string | number | boolean>>;
|
21
11
|
export type ValidationSchemaV2 = {
|
22
12
|
name: string;
|
23
13
|
validators: Partial<PdapFormValidatorsV2>;
|
@@ -4,21 +4,18 @@ import { PdapHeaderProps } from './types';
|
|
4
4
|
*
|
5
5
|
* ## Props
|
6
6
|
* @prop {string} logoImageSrc Src for the PDAP logo image to be displayed
|
7
|
-
* @prop {string }
|
7
|
+
* @prop {string } logoAnchorPath Path for the link that wraps the PDAP logo image
|
8
8
|
*
|
9
9
|
* ## Notes
|
10
10
|
* The `Header` component does not require any props to be passed. But keep in mind that it is responsible for rendering the `Nav` component. Consuming applications will need to `provide` an array of nav links -- **there are no defaults for this**, you must `provide` these links either 1\. in a layout component (see example below), at the route level, or at the app level. This allows for flexibility in which links are rendered on which routes
|
11
11
|
*
|
12
12
|
*/
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapHeaderProps>, {
|
14
|
-
|
15
|
-
logoImageAnchorPath: string;
|
14
|
+
logoAnchorPath: string;
|
16
15
|
}>, {}, 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<PdapHeaderProps>, {
|
17
|
-
|
18
|
-
logoImageAnchorPath: string;
|
16
|
+
logoAnchorPath: string;
|
19
17
|
}>>>, {
|
20
|
-
|
21
|
-
logoImageAnchorPath: string;
|
18
|
+
logoAnchorPath: string;
|
22
19
|
}, {}>;
|
23
20
|
export default _default;
|
24
21
|
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';
|
@@ -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';
|
@@ -1,10 +1,23 @@
|
|
1
|
-
import { PdapInputSelectProps } from './types';
|
1
|
+
import { PdapSelectOption as Option, PdapInputSelectProps } from './types';
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
3
|
+
combobox: boolean;
|
3
4
|
placeholder: string;
|
4
|
-
|
5
|
+
position: string;
|
6
|
+
filter: (searchText: any, options: any) => any;
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
8
|
+
change: (...args: any[]) => void;
|
9
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
10
|
+
combobox: boolean;
|
5
11
|
placeholder: string;
|
6
|
-
|
12
|
+
position: string;
|
13
|
+
filter: (searchText: any, options: any) => any;
|
14
|
+
}>>> & {
|
15
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
16
|
+
}, {
|
17
|
+
filter: (searchText: string, options: Option[]) => Option[];
|
7
18
|
placeholder: string;
|
19
|
+
position: "top" | "bottom";
|
20
|
+
combobox: boolean;
|
8
21
|
}, {}>, {
|
9
22
|
label?(_: {}): any;
|
10
23
|
error?(_: {}): any;
|
@@ -7,5 +7,8 @@ export interface PdapInputSelectProps {
|
|
7
7
|
label?: string;
|
8
8
|
name: string;
|
9
9
|
placeholder?: string;
|
10
|
+
position?: 'top' | 'bottom';
|
10
11
|
options: PdapSelectOption[];
|
12
|
+
combobox?: boolean;
|
13
|
+
filter?: (searchText: string, options: PdapSelectOption[]) => PdapSelectOption[];
|
11
14
|
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { PdapInputSelectProps } from './types';
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
3
|
+
placeholder: string;
|
4
|
+
position: string;
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
change: (...args: any[]) => void;
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PdapInputSelectProps>, {
|
8
|
+
placeholder: string;
|
9
|
+
position: string;
|
10
|
+
}>>> & {
|
11
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
12
|
+
}, {
|
13
|
+
placeholder: string;
|
14
|
+
position: "top" | "bottom";
|
15
|
+
}, {}>, {
|
16
|
+
label?(_: {}): any;
|
17
|
+
error?(_: {}): any;
|
18
|
+
}>;
|
19
|
+
export default _default;
|
20
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
21
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
22
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
23
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
24
|
+
} : {
|
25
|
+
type: import('vue').PropType<T[K]>;
|
26
|
+
required: true;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
31
|
+
default: D[K];
|
32
|
+
}> : P[K];
|
33
|
+
};
|
34
|
+
type __VLS_Prettify<T> = {
|
35
|
+
[K in keyof T]: T[K];
|
36
|
+
} & {};
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
38
|
+
new (): {
|
39
|
+
$slots: S;
|
40
|
+
};
|
41
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as InputSelectMulti } from './PdapInputSelectMulti.vue';
|
@@ -1,7 +1,10 @@
|
|
1
|
+
import { Component } from 'node_modules/vue-demi/lib';
|
2
|
+
import type { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
1
3
|
export interface PdapLinkData {
|
2
4
|
href?: string;
|
3
5
|
path?: string;
|
4
|
-
text
|
6
|
+
text?: string;
|
7
|
+
icon?: Component | IconDefinition;
|
5
8
|
}
|
6
9
|
export interface PdapNavState {
|
7
10
|
isExpanded: boolean;
|
@@ -1,13 +1,17 @@
|
|
1
1
|
export { Button } from './Button';
|
2
2
|
export { ErrorBoundary } from './ErrorBoundary';
|
3
|
-
export
|
3
|
+
export * from './Footer';
|
4
4
|
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';
|
9
|
-
export {
|
10
|
+
export { InputRadio } from './InputRadio';
|
11
|
+
export { RadioGroup } from './InputRadioGroup';
|
10
12
|
export { InputSelect } from './InputSelect';
|
13
|
+
export { InputSelectMulti } from './InputSelectMulti';
|
14
|
+
export { InputText } from './InputText';
|
11
15
|
export { InputTextArea } from './InputTextArea';
|
12
16
|
export { Header } from './Header';
|
13
17
|
export { Nav } from './Nav';
|
@@ -17,3 +21,4 @@ export { Dropdown } from './Dropdown';
|
|
17
21
|
export { Breadcrumbs } from './Breadcrumbs';
|
18
22
|
export { Spinner } from './Spinner';
|
19
23
|
export { RecordTypeIcon } from './RecordTypeIcon';
|
24
|
+
export { AsyncTypeahead } from './AsyncTypeahead';
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
2
|
+
export default _default;
|